llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
|---|---|
; ModuleID = '/tmp/tmpi5klj67l.c'
source_filename = "/tmp/tmpi5klj67l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"Enter an integer to factorize >\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"%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
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)
%6 = load i32, ptr %3, align 4
%7 = call i32 @factorial(i32 noundef %6)
store i32 %7, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %2, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %8, i32 noundef %9)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @factorial(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/tmpi5klj67l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"Enter an integer to factorize >\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"%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
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)
%6 = load i32, ptr %3, align 4
%7 = call i32 @factorial(i32 noundef %6)
store i32 %7, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %2, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %8, i32 noundef %9)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @factorial(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/tmpmnnqd64f.c'
source_filename = "/tmp/tmpmnnqd64f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @empty_cycle() #0 {
%1 = call i32 @usleep(i32 noundef 1)
ret void
}
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/tmpmnnqd64f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @empty_cycle() #0 {
%1 = call i32 @usleep(i32 noundef 1)
ret void
}
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/tmpyn030g8i.c'
source_filename = "/tmp/tmpyn030g8i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0A%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
br label %5
5: ; preds = %62, %0
%6 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
%8 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%9 = load i8, ptr %8, align 16
%10 = sext i8 %9 to i32
%11 = icmp eq i32 %10, 83
br i1 %11, label %12, label %28
12: ; preds = %5
%13 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 1
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 84
br i1 %16, label %17, label %28
17: ; preds = %12
%18 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 2
%19 = load i8, ptr %18, align 2
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 79
br i1 %21, label %22, label %28
22: ; preds = %17
%23 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 3
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 80
br i1 %26, label %27, label %28
27: ; preds = %22
br label %63
28: ; preds = %22, %17, %12, %5
store i32 0, ptr %4, align 4
br label %29
29: ; preds = %55, %28
%30 = load i32, ptr %4, align 4
%31 = icmp slt i32 %30, 100
br i1 %31, label %32, label %58
32: ; preds = %29
%33 = load i32, ptr %4, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp sge i32 %37, 97
br i1 %38, label %39, label %54
39: ; preds = %32
%40 = load i32, ptr %4, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %41
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = icmp sle i32 %44, 122
br i1 %45, label %46, label %54
46: ; preds = %39
%47 = load i32, ptr %4, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %48
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = sub nsw i32 %51, 32
%53 = trunc i32 %52 to i8
store i8 %53, ptr %49, align 1
br label %54
54: ; preds = %46, %39, %32
br label %55
55: ; preds = %54
%56 = load i32, ptr %4, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %4, align 4
br label %29, !llvm.loop !6
58: ; preds = %29
%59 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%60 = call i32 @printf(ptr noundef @.str, ptr noundef %59)
br label %61
61: ; preds = %58
br label %62
62: ; preds = %61
br i1 true, label %5, label %63
63: ; preds = %62, %27
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyn030g8i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0A%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
br label %5
5: ; preds = %63, %0
%6 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
%8 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%9 = load i8, ptr %8, align 16
%10 = sext i8 %9 to i32
%11 = icmp eq i32 %10, 83
br i1 %11, label %12, label %28
12: ; preds = %5
%13 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 1
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 84
br i1 %16, label %17, label %28
17: ; preds = %12
%18 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 2
%19 = load i8, ptr %18, align 2
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 79
br i1 %21, label %22, label %28
22: ; preds = %17
%23 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 3
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 80
br i1 %26, label %27, label %28
27: ; preds = %22
br label %64
28: ; preds = %22, %17, %12, %5
store i32 0, ptr %4, align 4
%29 = load i32, ptr %4, align 4
%30 = icmp slt i32 %29, 100
br i1 %30, label %.lr.ph, label %59
.lr.ph: ; preds = %28
br label %31
31: ; preds = %.lr.ph, %54
%32 = load i32, ptr %4, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %33
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = icmp sge i32 %36, 97
br i1 %37, label %38, label %53
38: ; preds = %31
%39 = load i32, ptr %4, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %40
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
%44 = icmp sle i32 %43, 122
br i1 %44, label %45, label %53
45: ; preds = %38
%46 = load i32, ptr %4, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %47
%49 = load i8, ptr %48, align 1
%50 = sext i8 %49 to i32
%51 = sub nsw i32 %50, 32
%52 = trunc i32 %51 to i8
store i8 %52, ptr %48, align 1
br label %53
53: ; preds = %45, %38, %31
br label %54
54: ; preds = %53
%55 = load i32, ptr %4, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %4, align 4
%57 = load i32, ptr %4, align 4
%58 = icmp slt i32 %57, 100
br i1 %58, label %31, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %54
br label %59
59: ; preds = %._crit_edge, %28
%60 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%61 = call i32 @printf(ptr noundef @.str, ptr noundef %60)
br label %62
62: ; preds = %59
br label %63
63: ; preds = %62
br i1 true, label %5, label %.loopexit
.loopexit: ; preds = %63
br label %64
64: ; preds = %.loopexit, %27
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpbnrd_xwt.c'
source_filename = "/tmp/tmpbnrd_xwt.c"
target datalayout = "e-m:e-p270: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.anon = type { i32, ptr }
@ll_type_n2a.arphrd_names = internal constant [75 x %struct.anon] [%struct.anon { i32 0, ptr @.str }, %struct.anon { i32 172, ptr @.str.1 }, %struct.anon { i32 173, ptr @.str.2 }, %struct.anon { i32 183, ptr @.str.3 }, %struct.anon { i32 139, ptr @.str.4 }, %struct.anon { i32 179, ptr @.str.5 }, %struct.anon { i32 161, ptr @.str.6 }, %struct.anon { i32 186, ptr @.str.7 }, %struct.anon { i32 187, ptr @.str.8 }, %struct.anon { i32 175, ptr @.str.9 }, %struct.anon { i32 184, ptr @.str.10 }, %struct.anon { i32 146, ptr @.str.11 }, %struct.anon { i32 162, ptr @.str.12 }, %struct.anon { i32 154, ptr @.str.13 }, %struct.anon { i32 133, ptr @.str.14 }, %struct.anon { i32 178, ptr @.str.15 }, %struct.anon { i32 132, ptr @.str.16 }, %struct.anon { i32 177, ptr @.str.17 }, %struct.anon { i32 136, ptr @.str.18 }, %struct.anon { i32 188, ptr @.str.19 }, %struct.anon { i32 137, ptr @.str.20 }, %struct.anon { i32 128, ptr @.str.21 }, %struct.anon { i32 163, ptr @.str.22 }, %struct.anon { i32 180, ptr @.str.23 }, %struct.anon { i32 140, ptr @.str.24 }, %struct.anon { i32 165, ptr @.str.25 }, %struct.anon { i32 149, ptr @.str.26 }, %struct.anon { i32 176, ptr @.str.27 }, %struct.anon { i32 138, ptr @.str.28 }, %struct.anon { i32 131, ptr @.str.29 }, %struct.anon { i32 130, ptr @.str.30 }, %struct.anon { i32 166, ptr @.str.31 }, %struct.anon { i32 134, ptr @.str.32 }, %struct.anon { i32 147, ptr @.str.33 }, %struct.anon { i32 148, ptr @.str.34 }, %struct.anon { i32 167, ptr @.str.35 }, %struct.anon { i32 182, ptr @.str.36 }, %struct.anon { i32 135, ptr @.str.37 }, %struct.anon { i32 152, ptr @.str.38 }, %struct.anon { i32 151, ptr @.str.39 }, %struct.anon { i32 141, ptr @.str.40 }, %struct.anon { i32 164, ptr @.str.41 }, %struct.anon { i32 185, ptr @.str.42 }, %struct.anon { i32 174, ptr @.str.43 }, %struct.anon { i32 150, ptr @.str.44 }, %struct.anon { i32 168, ptr @.str.45 }, %struct.anon { i32 171, ptr @.str.46 }, %struct.anon { i32 169, ptr @.str.47 }, %struct.anon { i32 170, ptr @.str.48 }, %struct.anon { i32 171, ptr @.str.49 }, %struct.anon { i32 172, ptr @.str.50 }, %struct.anon { i32 173, ptr @.str.51 }, %struct.anon { i32 174, ptr @.str.52 }, %struct.anon { i32 175, ptr @.str.53 }, %struct.anon { i32 176, ptr @.str.54 }, %struct.anon { i32 177, ptr @.str.55 }, %struct.anon { i32 178, ptr @.str.56 }, %struct.anon { i32 179, ptr @.str.57 }, %struct.anon { i32 180, ptr @.str.58 }, %struct.anon { i32 181, ptr @.str.59 }, %struct.anon { i32 182, ptr @.str.60 }, %struct.anon { i32 155, ptr @.str.61 }, %struct.anon { i32 160, ptr @.str.62 }, %struct.anon { i32 159, ptr @.str.63 }, %struct.anon { i32 158, ptr @.str.64 }, %struct.anon { i32 157, ptr @.str.65 }, %struct.anon { i32 156, ptr @.str.66 }, %struct.anon { i32 143, ptr @.str.67 }, %struct.anon { i32 142, ptr @.str.68 }, %struct.anon { i32 181, ptr @.str.69 }, %struct.anon { i32 153, ptr @.str.70 }, %struct.anon { i32 145, ptr @.str.71 }, %struct.anon { i32 189, ptr @.str.72 }, %struct.anon { i32 144, ptr @.str.73 }, %struct.anon { i32 129, ptr @.str.74 }], align 16
@.str = private unnamed_addr constant [8 x i8] c"generic\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"ether\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"eether\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"ax25\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"pronet\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"chaos\00", align 1
@.str.6 = private unnamed_addr constant [8 x i8] c"ieee802\00", align 1
@.str.7 = private unnamed_addr constant [7 x i8] c"arcnet\00", align 1
@.str.8 = private unnamed_addr constant [6 x i8] c"atalk\00", align 1
@.str.9 = private unnamed_addr constant [5 x i8] c"dlci\00", align 1
@.str.10 = private unnamed_addr constant [4 x i8] c"atm\00", align 1
@.str.11 = private unnamed_addr constant [9 x i8] c"metricom\00", align 1
@.str.12 = private unnamed_addr constant [9 x i8] c"ieee1394\00", align 1
@.str.13 = private unnamed_addr constant [11 x i8] c"infiniband\00", align 1
@.str.14 = private unnamed_addr constant [5 x i8] c"slip\00", align 1
@.str.15 = private unnamed_addr constant [6 x i8] c"cslip\00", align 1
@.str.16 = private unnamed_addr constant [6 x i8] c"slip6\00", align 1
@.str.17 = private unnamed_addr constant [7 x i8] c"cslip6\00", align 1
@.str.18 = private unnamed_addr constant [6 x i8] c"rsrvd\00", align 1
@.str.19 = private unnamed_addr constant [6 x i8] c"adapt\00", align 1
@.str.20 = private unnamed_addr constant [5 x i8] c"rose\00", align 1
@.str.21 = private unnamed_addr constant [4 x i8] c"x25\00", align 1
@.str.22 = private unnamed_addr constant [6 x i8] c"hwx25\00", align 1
@.str.23 = private unnamed_addr constant [4 x i8] c"can\00", align 1
@.str.24 = private unnamed_addr constant [4 x i8] c"ppp\00", align 1
@.str.25 = private unnamed_addr constant [5 x i8] c"hdlc\00", align 1
@.str.26 = private unnamed_addr constant [5 x i8] c"lapb\00", align 1
@.str.27 = private unnamed_addr constant [6 x i8] c"ddcmp\00", align 1
@.str.28 = private unnamed_addr constant [8 x i8] c"rawhdlc\00", align 1
@.str.29 = private unnamed_addr constant [5 x i8] c"ipip\00", align 1
@.str.30 = private unnamed_addr constant [8 x i8] c"tunnel6\00", align 1
@.str.31 = private unnamed_addr constant [5 x i8] c"frad\00", align 1
@.str.32 = private unnamed_addr constant [5 x i8] c"skip\00", align 1
@.str.33 = private unnamed_addr constant [9 x i8] c"loopback\00", align 1
@.str.34 = private unnamed_addr constant [6 x i8] c"ltalk\00", align 1
@.str.35 = private unnamed_addr constant [5 x i8] c"fddi\00", align 1
@.str.36 = private unnamed_addr constant [4 x i8] c"bif\00", align 1
@.str.37 = private unnamed_addr constant [4 x i8] c"sit\00", align 1
@.str.38 = private unnamed_addr constant [7 x i8] c"ip/ddp\00", align 1
@.str.39 = private unnamed_addr constant [4 x i8] c"gre\00", align 1
@.str.40 = private unnamed_addr constant [7 x i8] c"pimreg\00", align 1
@.str.41 = private unnamed_addr constant [6 x i8] c"hippi\00", align 1
@.str.42 = private unnamed_addr constant [4 x i8] c"ash\00", align 1
@.str.43 = private unnamed_addr constant [7 x i8] c"econet\00", align 1
@.str.44 = private unnamed_addr constant [5 x i8] c"irda\00", align 1
@.str.45 = private unnamed_addr constant [5 x i8] c"fcpp\00", align 1
@.str.46 = private unnamed_addr constant [5 x i8] c"fcal\00", align 1
@.str.47 = private unnamed_addr constant [5 x i8] c"fcpl\00", align 1
@.str.48 = private unnamed_addr constant [6 x i8] c"fcfb0\00", align 1
@.str.49 = private unnamed_addr constant [6 x i8] c"fcfb1\00", align 1
@.str.50 = private unnamed_addr constant [6 x i8] c"fcfb2\00", align 1
@.str.51 = private unnamed_addr constant [6 x i8] c"fcfb3\00", align 1
@.str.52 = private unnamed_addr constant [6 x i8] c"fcfb4\00", align 1
@.str.53 = private unnamed_addr constant [6 x i8] c"fcfb5\00", align 1
@.str.54 = private unnamed_addr constant [6 x i8] c"fcfb6\00", align 1
@.str.55 = private unnamed_addr constant [6 x i8] c"fcfb7\00", align 1
@.str.56 = private unnamed_addr constant [6 x i8] c"fcfb8\00", align 1
@.str.57 = private unnamed_addr constant [6 x i8] c"fcfb9\00", align 1
@.str.58 = private unnamed_addr constant [7 x i8] c"fcfb10\00", align 1
@.str.59 = private unnamed_addr constant [7 x i8] c"fcfb11\00", align 1
@.str.60 = private unnamed_addr constant [7 x i8] c"fcfb12\00", align 1
@.str.61 = private unnamed_addr constant [3 x i8] c"tr\00", align 1
@.str.62 = private unnamed_addr constant [11 x i8] c"ieee802.11\00", align 1
@.str.63 = private unnamed_addr constant [17 x i8] c"ieee802.11/prism\00", align 1
@.str.64 = private unnamed_addr constant [20 x i8] c"ieee802.11/radiotap\00", align 1
@.str.65 = private unnamed_addr constant [13 x i8] c"ieee802.15.4\00", align 1
@.str.66 = private unnamed_addr constant [21 x i8] c"ieee802.15.4/monitor\00", align 1
@.str.67 = private unnamed_addr constant [7 x i8] c"phonet\00", align 1
@.str.68 = private unnamed_addr constant [12 x i8] c"phonet_pipe\00", align 1
@.str.69 = private unnamed_addr constant [5 x i8] c"caif\00", align 1
@.str.70 = private unnamed_addr constant [5 x i8] c"gre6\00", align 1
@.str.71 = private unnamed_addr constant [8 x i8] c"netlink\00", align 1
@.str.72 = private unnamed_addr constant [8 x i8] c"6lowpan\00", align 1
@.str.73 = private unnamed_addr constant [5 x i8] c"none\00", align 1
@.str.74 = private unnamed_addr constant [5 x i8] c"void\00", align 1
@.str.75 = private unnamed_addr constant [5 x i8] c"[%d]\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ll_type_n2a(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = 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 %9
9: ; preds = %28, %3
%10 = load i32, ptr %8, align 4
%11 = sext i32 %10 to i64
%12 = icmp ult i64 %11, 75
br i1 %12, label %13, label %31
13: ; preds = %9
%14 = load i32, ptr %8, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [75 x %struct.anon], ptr @ll_type_n2a.arphrd_names, i64 0, i64 %15
%17 = getelementptr inbounds %struct.anon, ptr %16, i32 0, i32 0
%18 = load i32, ptr %17, align 16
%19 = load i32, ptr %5, align 4
%20 = icmp eq i32 %18, %19
br i1 %20, label %21, label %27
21: ; preds = %13
%22 = load i32, ptr %8, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [75 x %struct.anon], ptr @ll_type_n2a.arphrd_names, i64 0, i64 %23
%25 = getelementptr inbounds %struct.anon, ptr %24, i32 0, i32 1
%26 = load ptr, ptr %25, align 8
store ptr %26, ptr %4, align 8
br label %37
27: ; preds = %13
br label %28
28: ; preds = %27
%29 = load i32, ptr %8, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %8, align 4
br label %9, !llvm.loop !6
31: ; preds = %9
%32 = load ptr, ptr %6, align 8
%33 = load i32, ptr %7, align 4
%34 = load i32, ptr %5, align 4
%35 = call i32 @snprintf(ptr noundef %32, i32 noundef %33, ptr noundef @.str.75, i32 noundef %34)
%36 = load ptr, ptr %6, align 8
store ptr %36, ptr %4, align 8
br label %37
37: ; preds = %31, %21
%38 = load ptr, ptr %4, align 8
ret ptr %38
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbnrd_xwt.c"
target datalayout = "e-m:e-p270: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.anon = type { i32, ptr }
@ll_type_n2a.arphrd_names = internal constant [75 x %struct.anon] [%struct.anon { i32 0, ptr @.str }, %struct.anon { i32 172, ptr @.str.1 }, %struct.anon { i32 173, ptr @.str.2 }, %struct.anon { i32 183, ptr @.str.3 }, %struct.anon { i32 139, ptr @.str.4 }, %struct.anon { i32 179, ptr @.str.5 }, %struct.anon { i32 161, ptr @.str.6 }, %struct.anon { i32 186, ptr @.str.7 }, %struct.anon { i32 187, ptr @.str.8 }, %struct.anon { i32 175, ptr @.str.9 }, %struct.anon { i32 184, ptr @.str.10 }, %struct.anon { i32 146, ptr @.str.11 }, %struct.anon { i32 162, ptr @.str.12 }, %struct.anon { i32 154, ptr @.str.13 }, %struct.anon { i32 133, ptr @.str.14 }, %struct.anon { i32 178, ptr @.str.15 }, %struct.anon { i32 132, ptr @.str.16 }, %struct.anon { i32 177, ptr @.str.17 }, %struct.anon { i32 136, ptr @.str.18 }, %struct.anon { i32 188, ptr @.str.19 }, %struct.anon { i32 137, ptr @.str.20 }, %struct.anon { i32 128, ptr @.str.21 }, %struct.anon { i32 163, ptr @.str.22 }, %struct.anon { i32 180, ptr @.str.23 }, %struct.anon { i32 140, ptr @.str.24 }, %struct.anon { i32 165, ptr @.str.25 }, %struct.anon { i32 149, ptr @.str.26 }, %struct.anon { i32 176, ptr @.str.27 }, %struct.anon { i32 138, ptr @.str.28 }, %struct.anon { i32 131, ptr @.str.29 }, %struct.anon { i32 130, ptr @.str.30 }, %struct.anon { i32 166, ptr @.str.31 }, %struct.anon { i32 134, ptr @.str.32 }, %struct.anon { i32 147, ptr @.str.33 }, %struct.anon { i32 148, ptr @.str.34 }, %struct.anon { i32 167, ptr @.str.35 }, %struct.anon { i32 182, ptr @.str.36 }, %struct.anon { i32 135, ptr @.str.37 }, %struct.anon { i32 152, ptr @.str.38 }, %struct.anon { i32 151, ptr @.str.39 }, %struct.anon { i32 141, ptr @.str.40 }, %struct.anon { i32 164, ptr @.str.41 }, %struct.anon { i32 185, ptr @.str.42 }, %struct.anon { i32 174, ptr @.str.43 }, %struct.anon { i32 150, ptr @.str.44 }, %struct.anon { i32 168, ptr @.str.45 }, %struct.anon { i32 171, ptr @.str.46 }, %struct.anon { i32 169, ptr @.str.47 }, %struct.anon { i32 170, ptr @.str.48 }, %struct.anon { i32 171, ptr @.str.49 }, %struct.anon { i32 172, ptr @.str.50 }, %struct.anon { i32 173, ptr @.str.51 }, %struct.anon { i32 174, ptr @.str.52 }, %struct.anon { i32 175, ptr @.str.53 }, %struct.anon { i32 176, ptr @.str.54 }, %struct.anon { i32 177, ptr @.str.55 }, %struct.anon { i32 178, ptr @.str.56 }, %struct.anon { i32 179, ptr @.str.57 }, %struct.anon { i32 180, ptr @.str.58 }, %struct.anon { i32 181, ptr @.str.59 }, %struct.anon { i32 182, ptr @.str.60 }, %struct.anon { i32 155, ptr @.str.61 }, %struct.anon { i32 160, ptr @.str.62 }, %struct.anon { i32 159, ptr @.str.63 }, %struct.anon { i32 158, ptr @.str.64 }, %struct.anon { i32 157, ptr @.str.65 }, %struct.anon { i32 156, ptr @.str.66 }, %struct.anon { i32 143, ptr @.str.67 }, %struct.anon { i32 142, ptr @.str.68 }, %struct.anon { i32 181, ptr @.str.69 }, %struct.anon { i32 153, ptr @.str.70 }, %struct.anon { i32 145, ptr @.str.71 }, %struct.anon { i32 189, ptr @.str.72 }, %struct.anon { i32 144, ptr @.str.73 }, %struct.anon { i32 129, ptr @.str.74 }], align 16
@.str = private unnamed_addr constant [8 x i8] c"generic\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"ether\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"eether\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"ax25\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"pronet\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"chaos\00", align 1
@.str.6 = private unnamed_addr constant [8 x i8] c"ieee802\00", align 1
@.str.7 = private unnamed_addr constant [7 x i8] c"arcnet\00", align 1
@.str.8 = private unnamed_addr constant [6 x i8] c"atalk\00", align 1
@.str.9 = private unnamed_addr constant [5 x i8] c"dlci\00", align 1
@.str.10 = private unnamed_addr constant [4 x i8] c"atm\00", align 1
@.str.11 = private unnamed_addr constant [9 x i8] c"metricom\00", align 1
@.str.12 = private unnamed_addr constant [9 x i8] c"ieee1394\00", align 1
@.str.13 = private unnamed_addr constant [11 x i8] c"infiniband\00", align 1
@.str.14 = private unnamed_addr constant [5 x i8] c"slip\00", align 1
@.str.15 = private unnamed_addr constant [6 x i8] c"cslip\00", align 1
@.str.16 = private unnamed_addr constant [6 x i8] c"slip6\00", align 1
@.str.17 = private unnamed_addr constant [7 x i8] c"cslip6\00", align 1
@.str.18 = private unnamed_addr constant [6 x i8] c"rsrvd\00", align 1
@.str.19 = private unnamed_addr constant [6 x i8] c"adapt\00", align 1
@.str.20 = private unnamed_addr constant [5 x i8] c"rose\00", align 1
@.str.21 = private unnamed_addr constant [4 x i8] c"x25\00", align 1
@.str.22 = private unnamed_addr constant [6 x i8] c"hwx25\00", align 1
@.str.23 = private unnamed_addr constant [4 x i8] c"can\00", align 1
@.str.24 = private unnamed_addr constant [4 x i8] c"ppp\00", align 1
@.str.25 = private unnamed_addr constant [5 x i8] c"hdlc\00", align 1
@.str.26 = private unnamed_addr constant [5 x i8] c"lapb\00", align 1
@.str.27 = private unnamed_addr constant [6 x i8] c"ddcmp\00", align 1
@.str.28 = private unnamed_addr constant [8 x i8] c"rawhdlc\00", align 1
@.str.29 = private unnamed_addr constant [5 x i8] c"ipip\00", align 1
@.str.30 = private unnamed_addr constant [8 x i8] c"tunnel6\00", align 1
@.str.31 = private unnamed_addr constant [5 x i8] c"frad\00", align 1
@.str.32 = private unnamed_addr constant [5 x i8] c"skip\00", align 1
@.str.33 = private unnamed_addr constant [9 x i8] c"loopback\00", align 1
@.str.34 = private unnamed_addr constant [6 x i8] c"ltalk\00", align 1
@.str.35 = private unnamed_addr constant [5 x i8] c"fddi\00", align 1
@.str.36 = private unnamed_addr constant [4 x i8] c"bif\00", align 1
@.str.37 = private unnamed_addr constant [4 x i8] c"sit\00", align 1
@.str.38 = private unnamed_addr constant [7 x i8] c"ip/ddp\00", align 1
@.str.39 = private unnamed_addr constant [4 x i8] c"gre\00", align 1
@.str.40 = private unnamed_addr constant [7 x i8] c"pimreg\00", align 1
@.str.41 = private unnamed_addr constant [6 x i8] c"hippi\00", align 1
@.str.42 = private unnamed_addr constant [4 x i8] c"ash\00", align 1
@.str.43 = private unnamed_addr constant [7 x i8] c"econet\00", align 1
@.str.44 = private unnamed_addr constant [5 x i8] c"irda\00", align 1
@.str.45 = private unnamed_addr constant [5 x i8] c"fcpp\00", align 1
@.str.46 = private unnamed_addr constant [5 x i8] c"fcal\00", align 1
@.str.47 = private unnamed_addr constant [5 x i8] c"fcpl\00", align 1
@.str.48 = private unnamed_addr constant [6 x i8] c"fcfb0\00", align 1
@.str.49 = private unnamed_addr constant [6 x i8] c"fcfb1\00", align 1
@.str.50 = private unnamed_addr constant [6 x i8] c"fcfb2\00", align 1
@.str.51 = private unnamed_addr constant [6 x i8] c"fcfb3\00", align 1
@.str.52 = private unnamed_addr constant [6 x i8] c"fcfb4\00", align 1
@.str.53 = private unnamed_addr constant [6 x i8] c"fcfb5\00", align 1
@.str.54 = private unnamed_addr constant [6 x i8] c"fcfb6\00", align 1
@.str.55 = private unnamed_addr constant [6 x i8] c"fcfb7\00", align 1
@.str.56 = private unnamed_addr constant [6 x i8] c"fcfb8\00", align 1
@.str.57 = private unnamed_addr constant [6 x i8] c"fcfb9\00", align 1
@.str.58 = private unnamed_addr constant [7 x i8] c"fcfb10\00", align 1
@.str.59 = private unnamed_addr constant [7 x i8] c"fcfb11\00", align 1
@.str.60 = private unnamed_addr constant [7 x i8] c"fcfb12\00", align 1
@.str.61 = private unnamed_addr constant [3 x i8] c"tr\00", align 1
@.str.62 = private unnamed_addr constant [11 x i8] c"ieee802.11\00", align 1
@.str.63 = private unnamed_addr constant [17 x i8] c"ieee802.11/prism\00", align 1
@.str.64 = private unnamed_addr constant [20 x i8] c"ieee802.11/radiotap\00", align 1
@.str.65 = private unnamed_addr constant [13 x i8] c"ieee802.15.4\00", align 1
@.str.66 = private unnamed_addr constant [21 x i8] c"ieee802.15.4/monitor\00", align 1
@.str.67 = private unnamed_addr constant [7 x i8] c"phonet\00", align 1
@.str.68 = private unnamed_addr constant [12 x i8] c"phonet_pipe\00", align 1
@.str.69 = private unnamed_addr constant [5 x i8] c"caif\00", align 1
@.str.70 = private unnamed_addr constant [5 x i8] c"gre6\00", align 1
@.str.71 = private unnamed_addr constant [8 x i8] c"netlink\00", align 1
@.str.72 = private unnamed_addr constant [8 x i8] c"6lowpan\00", align 1
@.str.73 = private unnamed_addr constant [5 x i8] c"none\00", align 1
@.str.74 = private unnamed_addr constant [5 x i8] c"void\00", align 1
@.str.75 = private unnamed_addr constant [5 x i8] c"[%d]\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ll_type_n2a(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = 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
%9 = load i32, ptr %8, align 4
%10 = sext i32 %9 to i64
%11 = icmp ult i64 %10, 75
br i1 %11, label %.lr.ph, label %33
.lr.ph: ; preds = %3
br label %12
12: ; preds = %.lr.ph, %27
%13 = load i32, ptr %8, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [75 x %struct.anon], ptr @ll_type_n2a.arphrd_names, i64 0, i64 %14
%16 = getelementptr inbounds %struct.anon, ptr %15, i32 0, i32 0
%17 = load i32, ptr %16, align 16
%18 = load i32, ptr %5, align 4
%19 = icmp eq i32 %17, %18
br i1 %19, label %20, label %26
20: ; preds = %12
%21 = load i32, ptr %8, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [75 x %struct.anon], ptr @ll_type_n2a.arphrd_names, i64 0, i64 %22
%24 = getelementptr inbounds %struct.anon, ptr %23, i32 0, i32 1
%25 = load ptr, ptr %24, align 8
store ptr %25, ptr %4, align 8
br label %39
26: ; preds = %12
br label %27
27: ; preds = %26
%28 = load i32, ptr %8, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %8, align 4
%30 = load i32, ptr %8, align 4
%31 = sext i32 %30 to i64
%32 = icmp ult i64 %31, 75
br i1 %32, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %33
33: ; preds = %._crit_edge, %3
%34 = load ptr, ptr %6, align 8
%35 = load i32, ptr %7, align 4
%36 = load i32, ptr %5, align 4
%37 = call i32 @snprintf(ptr noundef %34, i32 noundef %35, ptr noundef @.str.75, i32 noundef %36)
%38 = load ptr, ptr %6, align 8
store ptr %38, ptr %4, align 8
br label %39
39: ; preds = %33, %20
%40 = load ptr, ptr %4, align 8
ret ptr %40
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpjklu82sl.c'
source_filename = "/tmp/tmpjklu82sl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"Out of memory trying to (c)allocate %d bytes!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @crCalloc(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
%5 = call ptr @malloc(i32 noundef %4)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %12, label %8
8: ; preds = %1
%9 = load i32, ptr %2, align 4
%10 = call i32 @crError(ptr noundef @.str, i32 noundef %9)
%11 = call i32 (...) @abort() #3
unreachable
12: ; preds = %1
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %2, align 4
%15 = call i32 @crMemset(ptr noundef %13, i32 noundef 0, i32 noundef %14)
%16 = load ptr, ptr %3, align 8
ret ptr %16
}
declare ptr @malloc(i32 noundef) #1
declare i32 @crError(ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare i32 @crMemset(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" }
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/tmpjklu82sl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"Out of memory trying to (c)allocate %d bytes!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @crCalloc(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
%5 = call ptr @malloc(i32 noundef %4)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %12, label %8
8: ; preds = %1
%9 = load i32, ptr %2, align 4
%10 = call i32 @crError(ptr noundef @.str, i32 noundef %9)
%11 = call i32 (...) @abort() #3
unreachable
12: ; preds = %1
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %2, align 4
%15 = call i32 @crMemset(ptr noundef %13, i32 noundef 0, i32 noundef %14)
%16 = load ptr, ptr %3, align 8
ret ptr %16
}
declare ptr @malloc(i32 noundef) #1
declare i32 @crError(ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare i32 @crMemset(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" }
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/tmpydiiytdo.c'
source_filename = "/tmp/tmpydiiytdo.c"
target datalayout = "e-m:e-p270: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/tmpydiiytdo.c"
target datalayout = "e-m:e-p270: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/tmp6kgxk1zw.c'
source_filename = "/tmp/tmp6kgxk1zw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @modifyString(ptr noundef %0, ptr noundef %1, ptr noundef %2, i16 noundef signext %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i16, align 2
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = 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 i16 %3, ptr %9, align 2
store i32 0, ptr %12, align 4
%16 = load ptr, ptr %7, align 8
%17 = call i32 @strlen(ptr noundef %16)
store i32 %17, ptr %10, align 4
%18 = load ptr, ptr %8, align 8
%19 = call i32 @strlen(ptr noundef %18)
store i32 %19, ptr %11, align 4
%20 = load i32, ptr %11, align 4
%21 = load i16, ptr %9, align 2
%22 = sext i16 %21 to i32
%23 = add nsw i32 %20, %22
%24 = load i32, ptr %10, align 4
%25 = icmp sgt i32 %23, %24
br i1 %25, label %26, label %62
26: ; preds = %4
%27 = load ptr, ptr %6, align 8
store ptr %27, ptr %13, align 8
br label %28
28: ; preds = %33, %26
%29 = load ptr, ptr %13, align 8
%30 = load ptr, ptr %7, align 8
%31 = call ptr @strstr(ptr noundef %29, ptr noundef %30)
store ptr %31, ptr %14, align 8
%32 = icmp ne ptr %31, null
br i1 %32, label %33, label %40
33: ; preds = %28
%34 = load i32, ptr %12, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %12, align 4
%36 = load ptr, ptr %14, align 8
%37 = load i32, ptr %10, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
store ptr %39, ptr %13, align 8
br label %28, !llvm.loop !6
40: ; preds = %28
%41 = load ptr, ptr %6, align 8
%42 = load ptr, ptr %6, align 8
%43 = call i32 @strlen(ptr noundef %42)
%44 = load i32, ptr %11, align 4
%45 = load i32, ptr %10, align 4
%46 = sub nsw i32 %44, %45
%47 = load i32, ptr %12, align 4
%48 = mul nsw i32 %46, %47
%49 = add nsw i32 %43, %48
%50 = add nsw i32 %49, 1
%51 = load i16, ptr %9, align 2
%52 = sext i16 %51 to i32
%53 = add nsw i32 %50, %52
%54 = call ptr @realloc(ptr noundef %41, i32 noundef %53)
store ptr %54, ptr %13, align 8
%55 = load ptr, ptr %13, align 8
%56 = icmp ne ptr %55, null
br i1 %56, label %57, label %59
57: ; preds = %40
%58 = load ptr, ptr %13, align 8
store ptr %58, ptr %6, align 8
br label %61
59: ; preds = %40
%60 = load ptr, ptr %6, align 8
store ptr %60, ptr %5, align 8
br label %156
61: ; preds = %57
br label %62
62: ; preds = %61, %4
%63 = load ptr, ptr %6, align 8
store ptr %63, ptr %13, align 8
br label %64
64: ; preds = %149, %62
%65 = load ptr, ptr %13, align 8
%66 = icmp ne ptr %65, null
br i1 %66, label %67, label %154
67: ; preds = %64
%68 = load ptr, ptr %13, align 8
%69 = load ptr, ptr %7, align 8
%70 = call ptr @strcasestr(ptr noundef %68, ptr noundef %69)
store ptr %70, ptr %14, align 8
%71 = load ptr, ptr %14, align 8
%72 = icmp ne ptr %71, null
br i1 %72, label %75, label %73
73: ; preds = %67
%74 = load ptr, ptr %6, align 8
store ptr %74, ptr %5, align 8
br label %156
75: ; preds = %67
%76 = load ptr, ptr %14, align 8
%77 = load i32, ptr %11, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i8, ptr %76, i64 %78
%80 = load ptr, ptr %14, align 8
%81 = load i32, ptr %10, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i8, ptr %80, i64 %82
%84 = load ptr, ptr %14, align 8
%85 = load i32, ptr %10, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i8, ptr %84, i64 %86
%88 = call i32 @strlen(ptr noundef %87)
%89 = add nsw i32 %88, 1
%90 = call i32 @memmove(ptr noundef %79, ptr noundef %83, i32 noundef %89)
%91 = load ptr, ptr %14, align 8
%92 = load ptr, ptr %8, align 8
%93 = load i32, ptr %11, align 4
%94 = call i32 @memcpy(ptr noundef %91, ptr noundef %92, i32 noundef %93)
%95 = load i16, ptr %9, align 2
%96 = icmp ne i16 %95, 0
br i1 %96, label %97, label %149
97: ; preds = %75
%98 = load ptr, ptr %14, align 8
%99 = load i32, ptr %11, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i8, ptr %98, i64 %100
store ptr %101, ptr %15, align 8
br label %102
102: ; preds = %107, %97
%103 = load ptr, ptr %15, align 8
%104 = load i8, ptr %103, align 1
%105 = call i64 @isspace(i8 noundef signext %104)
%106 = icmp ne i64 %105, 0
br i1 %106, label %107, label %110
107: ; preds = %102
%108 = load ptr, ptr %15, align 8
%109 = getelementptr inbounds i8, ptr %108, i32 1
store ptr %109, ptr %15, align 8
br label %102, !llvm.loop !8
110: ; preds = %102
%111 = load ptr, ptr %15, align 8
%112 = load i8, ptr %111, align 1
%113 = sext i8 %112 to i32
%114 = icmp eq i32 %113, 34
br i1 %114, label %115, label %148
115: ; preds = %110
%116 = load i16, ptr %9, align 2
%117 = sext i16 %116 to i32
%118 = icmp eq i32 %117, 2
br i1 %118, label %119, label %131
119: ; preds = %115
%120 = load ptr, ptr %15, align 8
%121 = getelementptr inbounds i8, ptr %120, i64 2
%122 = load ptr, ptr %15, align 8
%123 = getelementptr inbounds i8, ptr %122, i64 1
%124 = load ptr, ptr %15, align 8
%125 = getelementptr inbounds i8, ptr %124, i64 1
%126 = call i32 @strlen(ptr noundef %125)
%127 = add nsw i32 %126, 1
%128 = call i32 @memmove(ptr noundef %121, ptr noundef %123, i32 noundef %127)
%129 = load ptr, ptr %15, align 8
%130 = getelementptr inbounds i8, ptr %129, i32 1
store ptr %130, ptr %15, align 8
store i8 37, ptr %130, align 1
br label %131
131: ; preds = %119, %115
br label %132
132: ; preds = %138, %131
%133 = load ptr, ptr %15, align 8
%134 = getelementptr inbounds i8, ptr %133, i32 1
store ptr %134, ptr %15, align 8
%135 = load i8, ptr %134, align 1
%136 = sext i8 %135 to i32
%137 = icmp ne i32 %136, 34
br i1 %137, label %138, label %139
138: ; preds = %132
br label %132, !llvm.loop !9
139: ; preds = %132
%140 = load ptr, ptr %15, align 8
%141 = getelementptr inbounds i8, ptr %140, i64 1
%142 = load ptr, ptr %15, align 8
%143 = load ptr, ptr %15, align 8
%144 = call i32 @strlen(ptr noundef %143)
%145 = add nsw i32 %144, 1
%146 = call i32 @memmove(ptr noundef %141, ptr noundef %142, i32 noundef %145)
%147 = load ptr, ptr %15, align 8
store i8 37, ptr %147, align 1
br label %148
148: ; preds = %139, %110
br label %149
149: ; preds = %148, %75
%150 = load ptr, ptr %14, align 8
%151 = load i32, ptr %11, align 4
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds i8, ptr %150, i64 %152
store ptr %153, ptr %13, align 8
br label %64, !llvm.loop !10
154: ; preds = %64
%155 = load ptr, ptr %6, align 8
store ptr %155, ptr %5, align 8
br label %156
156: ; preds = %154, %73, %59
%157 = load ptr, ptr %5, align 8
ret ptr %157
}
declare i32 @strlen(ptr noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare ptr @strcasestr(ptr noundef, ptr noundef) #1
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6kgxk1zw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @modifyString(ptr noundef %0, ptr noundef %1, ptr noundef %2, i16 noundef signext %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i16, align 2
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = 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 i16 %3, ptr %9, align 2
store i32 0, ptr %12, align 4
%16 = load ptr, ptr %7, align 8
%17 = call i32 @strlen(ptr noundef %16)
store i32 %17, ptr %10, align 4
%18 = load ptr, ptr %8, align 8
%19 = call i32 @strlen(ptr noundef %18)
store i32 %19, ptr %11, align 4
%20 = load i32, ptr %11, align 4
%21 = load i16, ptr %9, align 2
%22 = sext i16 %21 to i32
%23 = add nsw i32 %20, %22
%24 = load i32, ptr %10, align 4
%25 = icmp sgt i32 %23, %24
br i1 %25, label %26, label %65
26: ; preds = %4
%27 = load ptr, ptr %6, align 8
store ptr %27, ptr %13, align 8
%28 = load ptr, ptr %13, align 8
%29 = load ptr, ptr %7, align 8
%30 = call ptr @strstr(ptr noundef %28, ptr noundef %29)
store ptr %30, ptr %14, align 8
%31 = icmp ne ptr %30, null
br i1 %31, label %.lr.ph, label %43
.lr.ph: ; preds = %26
br label %32
32: ; preds = %.lr.ph, %32
%33 = load i32, ptr %12, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %12, align 4
%35 = load ptr, ptr %14, align 8
%36 = load i32, ptr %10, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %35, i64 %37
store ptr %38, ptr %13, align 8
%39 = load ptr, ptr %13, align 8
%40 = load ptr, ptr %7, align 8
%41 = call ptr @strstr(ptr noundef %39, ptr noundef %40)
store ptr %41, ptr %14, align 8
%42 = icmp ne ptr %41, null
br i1 %42, label %32, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %43
43: ; preds = %._crit_edge, %26
%44 = load ptr, ptr %6, align 8
%45 = load ptr, ptr %6, align 8
%46 = call i32 @strlen(ptr noundef %45)
%47 = load i32, ptr %11, align 4
%48 = load i32, ptr %10, align 4
%49 = sub nsw i32 %47, %48
%50 = load i32, ptr %12, align 4
%51 = mul nsw i32 %49, %50
%52 = add nsw i32 %46, %51
%53 = add nsw i32 %52, 1
%54 = load i16, ptr %9, align 2
%55 = sext i16 %54 to i32
%56 = add nsw i32 %53, %55
%57 = call ptr @realloc(ptr noundef %44, i32 noundef %56)
store ptr %57, ptr %13, align 8
%58 = load ptr, ptr %13, align 8
%59 = icmp ne ptr %58, null
br i1 %59, label %60, label %62
60: ; preds = %43
%61 = load ptr, ptr %13, align 8
store ptr %61, ptr %6, align 8
br label %64
62: ; preds = %43
%63 = load ptr, ptr %6, align 8
store ptr %63, ptr %5, align 8
br label %162
64: ; preds = %60
br label %65
65: ; preds = %64, %4
%66 = load ptr, ptr %6, align 8
store ptr %66, ptr %13, align 8
%67 = load ptr, ptr %13, align 8
%68 = icmp ne ptr %67, null
br i1 %68, label %.lr.ph5, label %160
.lr.ph5: ; preds = %65
br label %69
69: ; preds = %.lr.ph5, %153
%70 = load ptr, ptr %13, align 8
%71 = load ptr, ptr %7, align 8
%72 = call ptr @strcasestr(ptr noundef %70, ptr noundef %71)
store ptr %72, ptr %14, align 8
%73 = load ptr, ptr %14, align 8
%74 = icmp ne ptr %73, null
br i1 %74, label %77, label %75
75: ; preds = %69
%76 = load ptr, ptr %6, align 8
store ptr %76, ptr %5, align 8
br label %162
77: ; preds = %69
%78 = load ptr, ptr %14, align 8
%79 = load i32, ptr %11, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i8, ptr %78, i64 %80
%82 = load ptr, ptr %14, align 8
%83 = load i32, ptr %10, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i8, ptr %82, i64 %84
%86 = load ptr, ptr %14, align 8
%87 = load i32, ptr %10, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i8, ptr %86, i64 %88
%90 = call i32 @strlen(ptr noundef %89)
%91 = add nsw i32 %90, 1
%92 = call i32 @memmove(ptr noundef %81, ptr noundef %85, i32 noundef %91)
%93 = load ptr, ptr %14, align 8
%94 = load ptr, ptr %8, align 8
%95 = load i32, ptr %11, align 4
%96 = call i32 @memcpy(ptr noundef %93, ptr noundef %94, i32 noundef %95)
%97 = load i16, ptr %9, align 2
%98 = icmp ne i16 %97, 0
br i1 %98, label %99, label %153
99: ; preds = %77
%100 = load ptr, ptr %14, align 8
%101 = load i32, ptr %11, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i8, ptr %100, i64 %102
store ptr %103, ptr %15, align 8
%104 = load ptr, ptr %15, align 8
%105 = load i8, ptr %104, align 1
%106 = call i64 @isspace(i8 noundef signext %105)
%107 = icmp ne i64 %106, 0
br i1 %107, label %.lr.ph2, label %115
.lr.ph2: ; preds = %99
br label %108
108: ; preds = %.lr.ph2, %108
%109 = load ptr, ptr %15, align 8
%110 = getelementptr inbounds i8, ptr %109, i32 1
store ptr %110, ptr %15, align 8
%111 = load ptr, ptr %15, align 8
%112 = load i8, ptr %111, align 1
%113 = call i64 @isspace(i8 noundef signext %112)
%114 = icmp ne i64 %113, 0
br i1 %114, label %108, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %108
br label %115
115: ; preds = %._crit_edge3, %99
%116 = load ptr, ptr %15, align 8
%117 = load i8, ptr %116, align 1
%118 = sext i8 %117 to i32
%119 = icmp eq i32 %118, 34
br i1 %119, label %120, label %152
120: ; preds = %115
%121 = load i16, ptr %9, align 2
%122 = sext i16 %121 to i32
%123 = icmp eq i32 %122, 2
br i1 %123, label %124, label %136
124: ; preds = %120
%125 = load ptr, ptr %15, align 8
%126 = getelementptr inbounds i8, ptr %125, i64 2
%127 = load ptr, ptr %15, align 8
%128 = getelementptr inbounds i8, ptr %127, i64 1
%129 = load ptr, ptr %15, align 8
%130 = getelementptr inbounds i8, ptr %129, i64 1
%131 = call i32 @strlen(ptr noundef %130)
%132 = add nsw i32 %131, 1
%133 = call i32 @memmove(ptr noundef %126, ptr noundef %128, i32 noundef %132)
%134 = load ptr, ptr %15, align 8
%135 = getelementptr inbounds i8, ptr %134, i32 1
store ptr %135, ptr %15, align 8
store i8 37, ptr %135, align 1
br label %136
136: ; preds = %124, %120
br label %137
137: ; preds = %137, %136
%138 = load ptr, ptr %15, align 8
%139 = getelementptr inbounds i8, ptr %138, i32 1
store ptr %139, ptr %15, align 8
%140 = load i8, ptr %139, align 1
%141 = sext i8 %140 to i32
%142 = icmp ne i32 %141, 34
br i1 %142, label %137, label %143, !llvm.loop !9
143: ; preds = %137
%144 = load ptr, ptr %15, align 8
%145 = getelementptr inbounds i8, ptr %144, i64 1
%146 = load ptr, ptr %15, align 8
%147 = load ptr, ptr %15, align 8
%148 = call i32 @strlen(ptr noundef %147)
%149 = add nsw i32 %148, 1
%150 = call i32 @memmove(ptr noundef %145, ptr noundef %146, i32 noundef %149)
%151 = load ptr, ptr %15, align 8
store i8 37, ptr %151, align 1
br label %152
152: ; preds = %143, %115
br label %153
153: ; preds = %152, %77
%154 = load ptr, ptr %14, align 8
%155 = load i32, ptr %11, align 4
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds i8, ptr %154, i64 %156
store ptr %157, ptr %13, align 8
%158 = load ptr, ptr %13, align 8
%159 = icmp ne ptr %158, null
br i1 %159, label %69, label %._crit_edge6, !llvm.loop !10
._crit_edge6: ; preds = %153
br label %160
160: ; preds = %._crit_edge6, %65
%161 = load ptr, ptr %6, align 8
store ptr %161, ptr %5, align 8
br label %162
162: ; preds = %160, %75, %62
%163 = load ptr, ptr %5, align 8
ret ptr %163
}
declare i32 @strlen(ptr noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare ptr @strcasestr(ptr noundef, ptr noundef) #1
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpn5j8gmkb.c'
source_filename = "/tmp/tmpn5j8gmkb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"%s v0.1 (c) 2010 Craig Smith\0A\00", align 1
@.str.1 = private unnamed_addr constant [51 x i8] c"Original Bysin 1.2g by bysin (ported by guicide)\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [35 x i8] c"%s <command> <filename> <options>\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"Valid commands are:\0A\00", align 1
@.str.4 = private unnamed_addr constant [44 x i8] c" list - lists contents\0A\00", align 1
@.str.5 = private unnamed_addr constant [57 x i8] c" extract [files...] - extract all/specified files\0A\00", align 1
@.str.6 = private unnamed_addr constant [52 x i8] c" update outfile [infile] - update specified files\0A\00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.8 = private unnamed_addr constant [60 x i8] c"You can also use shorthand (first letter) for the commands\0A\00", align 1
@.str.9 = private unnamed_addr constant [11 x i8] c"Example:\0A\0A\00", align 1
@.str.10 = private unnamed_addr constant [21 x i8] c" %s l 09AVN2.bin\0A\00", align 1
@.str.11 = private unnamed_addr constant [36 x i8] c" %s x 09AVN2.bin HMIManager.dll\0A\00", align 1
@.str.12 = private unnamed_addr constant [52 x i8] c" %s u 09AVN2.bin HMIManager.dll HMIManager2.dll\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%6 = load ptr, ptr %2, align 8
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %6)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%15 = load ptr, ptr %2, align 8
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, ptr noundef %15)
%17 = load ptr, ptr %2, align 8
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, ptr noundef %17)
%19 = load ptr, ptr %2, align 8
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, ptr noundef %19)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn5j8gmkb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"%s v0.1 (c) 2010 Craig Smith\0A\00", align 1
@.str.1 = private unnamed_addr constant [51 x i8] c"Original Bysin 1.2g by bysin (ported by guicide)\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [35 x i8] c"%s <command> <filename> <options>\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"Valid commands are:\0A\00", align 1
@.str.4 = private unnamed_addr constant [44 x i8] c" list - lists contents\0A\00", align 1
@.str.5 = private unnamed_addr constant [57 x i8] c" extract [files...] - extract all/specified files\0A\00", align 1
@.str.6 = private unnamed_addr constant [52 x i8] c" update outfile [infile] - update specified files\0A\00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.8 = private unnamed_addr constant [60 x i8] c"You can also use shorthand (first letter) for the commands\0A\00", align 1
@.str.9 = private unnamed_addr constant [11 x i8] c"Example:\0A\0A\00", align 1
@.str.10 = private unnamed_addr constant [21 x i8] c" %s l 09AVN2.bin\0A\00", align 1
@.str.11 = private unnamed_addr constant [36 x i8] c" %s x 09AVN2.bin HMIManager.dll\0A\00", align 1
@.str.12 = private unnamed_addr constant [52 x i8] c" %s u 09AVN2.bin HMIManager.dll HMIManager2.dll\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%6 = load ptr, ptr %2, align 8
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %6)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%15 = load ptr, ptr %2, align 8
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, ptr noundef %15)
%17 = load ptr, ptr %2, align 8
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, ptr noundef %17)
%19 = load ptr, ptr %2, align 8
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, ptr noundef %19)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmperyb37cf.c'
source_filename = "/tmp/tmperyb37cf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr = type { i32 }
@.str = private unnamed_addr constant [10 x i8] c"/dev/null\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
@SOCK_NONBLOCK = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@ENOTSOCK = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.sockaddr, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 4, ptr %3, align 4
%5 = load i32, ptr @O_RDONLY, align 4
%6 = load i32, ptr @O_NONBLOCK, align 4
%7 = or i32 %5, %6
%8 = call i32 @open(ptr noundef @.str, i32 noundef %7)
store i32 %8, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %0
store i32 111, ptr %1, align 4
br label %23
12: ; preds = %0
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr @SOCK_NONBLOCK, align 4
%15 = call i64 @accept4(i32 noundef %13, ptr noundef %2, ptr noundef %3, i32 noundef %14)
%16 = icmp slt i64 %15, 0
br i1 %16, label %17, label %22
17: ; preds = %12
%18 = load i64, ptr @errno, align 8
%19 = load i64, ptr @ENOTSOCK, align 8
%20 = icmp ne i64 %18, %19
br i1 %20, label %21, label %22
21: ; preds = %17
store i32 1, ptr %1, align 4
br label %23
22: ; preds = %17, %12
store i32 0, ptr %1, align 4
br label %23
23: ; preds = %22, %21, %11
%24 = load i32, ptr %1, align 4
ret i32 %24
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i64 @accept4(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmperyb37cf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr = type { i32 }
@.str = private unnamed_addr constant [10 x i8] c"/dev/null\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
@SOCK_NONBLOCK = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@ENOTSOCK = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.sockaddr, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 4, ptr %3, align 4
%5 = load i32, ptr @O_RDONLY, align 4
%6 = load i32, ptr @O_NONBLOCK, align 4
%7 = or i32 %5, %6
%8 = call i32 @open(ptr noundef @.str, i32 noundef %7)
store i32 %8, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %0
store i32 111, ptr %1, align 4
br label %23
12: ; preds = %0
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr @SOCK_NONBLOCK, align 4
%15 = call i64 @accept4(i32 noundef %13, ptr noundef %2, ptr noundef %3, i32 noundef %14)
%16 = icmp slt i64 %15, 0
br i1 %16, label %17, label %22
17: ; preds = %12
%18 = load i64, ptr @errno, align 8
%19 = load i64, ptr @ENOTSOCK, align 8
%20 = icmp ne i64 %18, %19
br i1 %20, label %21, label %22
21: ; preds = %17
store i32 1, ptr %1, align 4
br label %23
22: ; preds = %17, %12
store i32 0, ptr %1, align 4
br label %23
23: ; preds = %22, %21, %11
%24 = load i32, ptr %1, align 4
ret i32 %24
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i64 @accept4(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp33qegjd1.c'
source_filename = "/tmp/tmp33qegjd1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @baseFilename(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 ptr @strrchr(ptr noundef %4, i8 noundef signext 47)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = load ptr, ptr %2, align 8
store ptr %9, ptr %3, align 8
br label %13
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds i8, ptr %11, i32 1
store ptr %12, ptr %3, align 8
br label %13
13: ; preds = %10, %8
%14 = load ptr, ptr %3, align 8
ret ptr %14
}
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp33qegjd1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @baseFilename(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 ptr @strrchr(ptr noundef %4, i8 noundef signext 47)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = load ptr, ptr %2, align 8
store ptr %9, ptr %3, align 8
br label %13
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds i8, ptr %11, i32 1
store ptr %12, ptr %3, align 8
br label %13
13: ; preds = %10, %8
%14 = load ptr, ptr %3, align 8
ret ptr %14
}
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnxmisdfc.c'
source_filename = "/tmp/tmpnxmisdfc.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @get_errmsg() #0 {
%1 = load i32, ptr @errno, align 4
%2 = call ptr @strerror(i32 noundef %1)
ret ptr %2
}
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/tmpnxmisdfc.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @get_errmsg() #0 {
%1 = load i32, ptr @errno, align 4
%2 = call ptr @strerror(i32 noundef %1)
ret ptr %2
}
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/tmpibtvcx5n.c'
source_filename = "/tmp/tmpibtvcx5n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_mergeSort(ptr noundef %0, ptr 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
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%10 = load i32, ptr %8, align 4
%11 = load i32, ptr %7, align 4
%12 = icmp sgt i32 %10, %11
br i1 %12, label %13, label %33
13: ; preds = %4
%14 = load i32, ptr %8, align 4
%15 = load i32, ptr %7, align 4
%16 = add nsw i32 %14, %15
%17 = sdiv i32 %16, 2
store i32 %17, ptr %9, align 4
%18 = load ptr, ptr %5, align 8
%19 = load ptr, ptr %6, align 8
%20 = load i32, ptr %7, align 4
%21 = load i32, ptr %9, align 4
call void @_mergeSort(ptr noundef %18, ptr noundef %19, i32 noundef %20, i32 noundef %21)
%22 = load ptr, ptr %5, align 8
%23 = load ptr, ptr %6, align 8
%24 = load i32, ptr %9, align 4
%25 = add nsw i32 %24, 1
%26 = load i32, ptr %8, align 4
call void @_mergeSort(ptr noundef %22, ptr noundef %23, i32 noundef %25, i32 noundef %26)
%27 = load ptr, ptr %5, align 8
%28 = load ptr, ptr %6, align 8
%29 = load i32, ptr %7, align 4
%30 = load i32, ptr %9, align 4
%31 = load i32, ptr %8, align 4
%32 = call i32 @_merge(ptr noundef %27, ptr noundef %28, i32 noundef %29, i32 noundef %30, i32 noundef %31)
br label %33
33: ; preds = %13, %4
ret void
}
declare i32 @_merge(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpibtvcx5n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_mergeSort(ptr noundef %0, ptr 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
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%10 = load i32, ptr %8, align 4
%11 = load i32, ptr %7, align 4
%12 = icmp sgt i32 %10, %11
br i1 %12, label %13, label %33
13: ; preds = %4
%14 = load i32, ptr %8, align 4
%15 = load i32, ptr %7, align 4
%16 = add nsw i32 %14, %15
%17 = sdiv i32 %16, 2
store i32 %17, ptr %9, align 4
%18 = load ptr, ptr %5, align 8
%19 = load ptr, ptr %6, align 8
%20 = load i32, ptr %7, align 4
%21 = load i32, ptr %9, align 4
call void @_mergeSort(ptr noundef %18, ptr noundef %19, i32 noundef %20, i32 noundef %21)
%22 = load ptr, ptr %5, align 8
%23 = load ptr, ptr %6, align 8
%24 = load i32, ptr %9, align 4
%25 = add nsw i32 %24, 1
%26 = load i32, ptr %8, align 4
call void @_mergeSort(ptr noundef %22, ptr noundef %23, i32 noundef %25, i32 noundef %26)
%27 = load ptr, ptr %5, align 8
%28 = load ptr, ptr %6, align 8
%29 = load i32, ptr %7, align 4
%30 = load i32, ptr %9, align 4
%31 = load i32, ptr %8, align 4
%32 = call i32 @_merge(ptr noundef %27, ptr noundef %28, i32 noundef %29, i32 noundef %30, i32 noundef %31)
br label %33
33: ; preds = %13, %4
ret void
}
declare i32 @_merge(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpom66abjh.c'
source_filename = "/tmp/tmpom66abjh.c"
target datalayout = "e-m:e-p270: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/tmpom66abjh.c"
target datalayout = "e-m:e-p270: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/tmpgfumgoa0.c'
source_filename = "/tmp/tmpgfumgoa0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @r8mat_jac(i32 noundef %0, i32 noundef %1, double noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca double, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca double, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca double, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store double %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%18 = load i32, ptr %6, align 4
%19 = load i32, ptr %7, align 4
%20 = mul nsw i32 %18, %19
%21 = sext i32 %20 to i64
%22 = mul i64 %21, 8
%23 = trunc i64 %22 to i32
%24 = call i64 @malloc(i32 noundef %23)
%25 = inttoptr i64 %24 to ptr
store ptr %25, ptr %12, align 8
%26 = load ptr, ptr %9, align 8
%27 = load i32, ptr %6, align 4
%28 = load i32, ptr %7, align 4
%29 = load ptr, ptr %10, align 8
%30 = call ptr %26(i32 noundef %27, i32 noundef %28, ptr noundef %29)
store ptr %30, ptr %17, align 8
store i32 0, ptr %14, align 4
br label %31
31: ; preds = %103, %5
%32 = load i32, ptr %14, align 4
%33 = load i32, ptr %7, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %35, label %106
35: ; preds = %31
%36 = load ptr, ptr %10, align 8
%37 = load i32, ptr %14, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds double, ptr %36, i64 %38
%40 = load double, ptr %39, align 8
store double %40, ptr %15, align 8
%41 = load double, ptr %8, align 8
%42 = load ptr, ptr %10, align 8
%43 = load i32, ptr %14, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds double, ptr %42, i64 %44
%46 = load double, ptr %45, align 8
%47 = call double @r8_abs(double noundef %46)
%48 = fadd double 1.000000e+00, %47
%49 = fmul double %41, %48
store double %49, ptr %11, align 8
%50 = load ptr, ptr %10, align 8
%51 = load i32, ptr %14, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds double, ptr %50, i64 %52
%54 = load double, ptr %53, align 8
%55 = load double, ptr %11, align 8
%56 = fadd double %54, %55
%57 = load ptr, ptr %10, align 8
%58 = load i32, ptr %14, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds double, ptr %57, i64 %59
store double %56, ptr %60, align 8
%61 = load ptr, ptr %9, align 8
%62 = load i32, ptr %6, align 4
%63 = load i32, ptr %7, align 4
%64 = load ptr, ptr %10, align 8
%65 = call ptr %61(i32 noundef %62, i32 noundef %63, ptr noundef %64)
store ptr %65, ptr %16, align 8
%66 = load double, ptr %15, align 8
%67 = load ptr, ptr %10, align 8
%68 = load i32, ptr %14, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds double, ptr %67, i64 %69
store double %66, ptr %70, align 8
store i32 0, ptr %13, align 4
br label %71
71: ; preds = %97, %35
%72 = load i32, ptr %13, align 4
%73 = load i32, ptr %6, align 4
%74 = icmp slt i32 %72, %73
br i1 %74, label %75, label %100
75: ; preds = %71
%76 = load ptr, ptr %16, align 8
%77 = load i32, ptr %13, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds double, ptr %76, i64 %78
%80 = load double, ptr %79, align 8
%81 = load ptr, ptr %17, align 8
%82 = load i32, ptr %13, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds double, ptr %81, i64 %83
%85 = load double, ptr %84, align 8
%86 = fsub double %80, %85
%87 = load double, ptr %11, align 8
%88 = fdiv double %86, %87
%89 = load ptr, ptr %12, align 8
%90 = load i32, ptr %13, align 4
%91 = load i32, ptr %14, align 4
%92 = load i32, ptr %6, align 4
%93 = mul nsw i32 %91, %92
%94 = add nsw i32 %90, %93
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds double, ptr %89, i64 %95
store double %88, ptr %96, align 8
br label %97
97: ; preds = %75
%98 = load i32, ptr %13, align 4
%99 = add nsw i32 %98, 1
store i32 %99, ptr %13, align 4
br label %71, !llvm.loop !6
100: ; preds = %71
%101 = load ptr, ptr %16, align 8
%102 = call i32 @free(ptr noundef %101)
br label %103
103: ; preds = %100
%104 = load i32, ptr %14, align 4
%105 = add nsw i32 %104, 1
store i32 %105, ptr %14, align 4
br label %31, !llvm.loop !8
106: ; preds = %31
%107 = load ptr, ptr %17, align 8
%108 = call i32 @free(ptr noundef %107)
%109 = load ptr, ptr %12, align 8
ret ptr %109
}
declare i64 @malloc(i32 noundef) #1
declare double @r8_abs(double noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgfumgoa0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @r8mat_jac(i32 noundef %0, i32 noundef %1, double noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca double, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca double, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca double, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store double %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%18 = load i32, ptr %6, align 4
%19 = load i32, ptr %7, align 4
%20 = mul nsw i32 %18, %19
%21 = sext i32 %20 to i64
%22 = mul i64 %21, 8
%23 = trunc i64 %22 to i32
%24 = call i64 @malloc(i32 noundef %23)
%25 = inttoptr i64 %24 to ptr
store ptr %25, ptr %12, align 8
%26 = load ptr, ptr %9, align 8
%27 = load i32, ptr %6, align 4
%28 = load i32, ptr %7, align 4
%29 = load ptr, ptr %10, align 8
%30 = call ptr %26(i32 noundef %27, i32 noundef %28, ptr noundef %29)
store ptr %30, ptr %17, align 8
store i32 0, ptr %14, align 4
%31 = load i32, ptr %14, align 4
%32 = load i32, ptr %7, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %.lr.ph2, label %110
.lr.ph2: ; preds = %5
br label %34
34: ; preds = %.lr.ph2, %104
%35 = load ptr, ptr %10, align 8
%36 = load i32, ptr %14, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds double, ptr %35, i64 %37
%39 = load double, ptr %38, align 8
store double %39, ptr %15, align 8
%40 = load double, ptr %8, align 8
%41 = load ptr, ptr %10, align 8
%42 = load i32, ptr %14, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds double, ptr %41, i64 %43
%45 = load double, ptr %44, align 8
%46 = call double @r8_abs(double noundef %45)
%47 = fadd double 1.000000e+00, %46
%48 = fmul double %40, %47
store double %48, ptr %11, align 8
%49 = load ptr, ptr %10, align 8
%50 = load i32, ptr %14, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds double, ptr %49, i64 %51
%53 = load double, ptr %52, align 8
%54 = load double, ptr %11, align 8
%55 = fadd double %53, %54
%56 = load ptr, ptr %10, align 8
%57 = load i32, ptr %14, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds double, ptr %56, i64 %58
store double %55, ptr %59, align 8
%60 = load ptr, ptr %9, align 8
%61 = load i32, ptr %6, align 4
%62 = load i32, ptr %7, align 4
%63 = load ptr, ptr %10, align 8
%64 = call ptr %60(i32 noundef %61, i32 noundef %62, ptr noundef %63)
store ptr %64, ptr %16, align 8
%65 = load double, ptr %15, align 8
%66 = load ptr, ptr %10, align 8
%67 = load i32, ptr %14, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds double, ptr %66, i64 %68
store double %65, ptr %69, align 8
store i32 0, ptr %13, align 4
%70 = load i32, ptr %13, align 4
%71 = load i32, ptr %6, align 4
%72 = icmp slt i32 %70, %71
br i1 %72, label %.lr.ph, label %101
.lr.ph: ; preds = %34
br label %73
73: ; preds = %.lr.ph, %95
%74 = load ptr, ptr %16, align 8
%75 = load i32, ptr %13, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds double, ptr %74, i64 %76
%78 = load double, ptr %77, align 8
%79 = load ptr, ptr %17, align 8
%80 = load i32, ptr %13, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds double, ptr %79, i64 %81
%83 = load double, ptr %82, align 8
%84 = fsub double %78, %83
%85 = load double, ptr %11, align 8
%86 = fdiv double %84, %85
%87 = load ptr, ptr %12, align 8
%88 = load i32, ptr %13, align 4
%89 = load i32, ptr %14, align 4
%90 = load i32, ptr %6, align 4
%91 = mul nsw i32 %89, %90
%92 = add nsw i32 %88, %91
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds double, ptr %87, i64 %93
store double %86, ptr %94, align 8
br label %95
95: ; preds = %73
%96 = load i32, ptr %13, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %13, align 4
%98 = load i32, ptr %13, align 4
%99 = load i32, ptr %6, align 4
%100 = icmp slt i32 %98, %99
br i1 %100, label %73, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %95
br label %101
101: ; preds = %._crit_edge, %34
%102 = load ptr, ptr %16, align 8
%103 = call i32 @free(ptr noundef %102)
br label %104
104: ; preds = %101
%105 = load i32, ptr %14, align 4
%106 = add nsw i32 %105, 1
store i32 %106, ptr %14, align 4
%107 = load i32, ptr %14, align 4
%108 = load i32, ptr %7, align 4
%109 = icmp slt i32 %107, %108
br i1 %109, label %34, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %104
br label %110
110: ; preds = %._crit_edge3, %5
%111 = load ptr, ptr %17, align 8
%112 = call i32 @free(ptr noundef %111)
%113 = load ptr, ptr %12, align 8
ret ptr %113
}
declare i64 @malloc(i32 noundef) #1
declare double @r8_abs(double noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpyog4n8qe.c'
source_filename = "/tmp/tmpyog4n8qe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"recv\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Recv(i32 noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%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 i64 %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%10 = load i32, ptr %5, align 4
%11 = load ptr, ptr %6, align 8
%12 = load i64, ptr %7, align 8
%13 = load i32, ptr %8, align 4
%14 = call i32 @recv(i32 noundef %10, ptr noundef %11, i64 noundef %12, i32 noundef %13)
store i32 %14, ptr %9, align 4
%15 = icmp slt i32 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %4
%17 = call i32 @perror(ptr noundef @.str)
%18 = call i32 @exit(i32 noundef 1) #3
unreachable
19: ; preds = %4
%20 = load i32, ptr %9, align 4
ret i32 %20
}
declare i32 @recv(i32 noundef, ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyog4n8qe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"recv\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Recv(i32 noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%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 i64 %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%10 = load i32, ptr %5, align 4
%11 = load ptr, ptr %6, align 8
%12 = load i64, ptr %7, align 8
%13 = load i32, ptr %8, align 4
%14 = call i32 @recv(i32 noundef %10, ptr noundef %11, i64 noundef %12, i32 noundef %13)
store i32 %14, ptr %9, align 4
%15 = icmp slt i32 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %4
%17 = call i32 @perror(ptr noundef @.str)
%18 = call i32 @exit(i32 noundef 1) #3
unreachable
19: ; preds = %4
%20 = load i32, ptr %9, align 4
ret i32 %20
}
declare i32 @recv(i32 noundef, ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcweuwocv.c'
source_filename = "/tmp/tmpcweuwocv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lrintf(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = call i64 @__ocml_rint_f32(float noundef %3)
ret i64 %4
}
declare i64 @__ocml_rint_f32(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/tmpcweuwocv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lrintf(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = call i64 @__ocml_rint_f32(float noundef %3)
ret i64 %4
}
declare i64 @__ocml_rint_f32(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/tmp_o8u73iw.c'
source_filename = "/tmp/tmp_o8u73iw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"\0A%s\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printValue(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @printf(ptr noundef @.str, ptr noundef %5)
%7 = call i32 @time(ptr noundef null)
store i32 %7, ptr %3, align 4
%8 = call ptr @localtime(ptr noundef %3)
store ptr %8, ptr %4, align 8
%9 = load ptr, ptr %4, align 8
%10 = call ptr @asctime(ptr noundef %9)
%11 = call i32 @printf(ptr noundef @.str.1, ptr noundef %10)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @time(ptr noundef) #1
declare ptr @localtime(ptr noundef) #1
declare ptr @asctime(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!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_o8u73iw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"\0A%s\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printValue(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @printf(ptr noundef @.str, ptr noundef %5)
%7 = call i32 @time(ptr noundef null)
store i32 %7, ptr %3, align 4
%8 = call ptr @localtime(ptr noundef %3)
store ptr %8, ptr %4, align 8
%9 = load ptr, ptr %4, align 8
%10 = call ptr @asctime(ptr noundef %9)
%11 = call i32 @printf(ptr noundef @.str.1, ptr noundef %10)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @time(ptr noundef) #1
declare ptr @localtime(ptr noundef) #1
declare ptr @asctime(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkz2vj8z_.c'
source_filename = "/tmp/tmpkz2vj8z_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isgraph.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isgraph should be 1 for {\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isgraph_0x7b() #0 {
%1 = call i32 @isgraph(i32 noundef 123) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 620, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isgraph(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkz2vj8z_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isgraph.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isgraph should be 1 for {\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isgraph_0x7b() #0 {
%1 = call i32 @isgraph(i32 noundef 123) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 620, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isgraph(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpx56s5992.c'
source_filename = "/tmp/tmpx56s5992.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [47 x i8] c"M907_f(const char *s) is not yet implemented!\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @M907_f(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 (ptr, ...) @debug(ptr noundef @.str)
%4 = load ptr, ptr %2, align 8
%5 = call i32 (ptr, ...) @debug(ptr noundef @.str.1, ptr noundef %4)
ret i32 1
}
declare i32 @debug(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx56s5992.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [47 x i8] c"M907_f(const char *s) is not yet implemented!\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @M907_f(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 (ptr, ...) @debug(ptr noundef @.str)
%4 = load ptr, ptr %2, align 8
%5 = call i32 (ptr, ...) @debug(ptr noundef @.str.1, ptr noundef %4)
ret i32 1
}
declare i32 @debug(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnspdhwz5.c'
source_filename = "/tmp/tmpnspdhwz5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"csv-task.csv\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c",\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @function_empty_type() #0 {
%1 = call i32 @write(ptr noundef @.str, ptr noundef @.str.1, ptr noundef null)
ret void
}
declare i32 @write(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/tmpnspdhwz5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"csv-task.csv\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c",\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @function_empty_type() #0 {
%1 = call i32 @write(ptr noundef @.str, ptr noundef @.str.1, ptr noundef null)
ret void
}
declare i32 @write(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/tmpban50fdv.c'
source_filename = "/tmp/tmpban50fdv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%3 = call i64 @calloc(i32 noundef 10, i32 noundef 4)
%4 = inttoptr i64 %3 to ptr
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = getelementptr inbounds i32, ptr %5, i64 0
%7 = load i32, ptr %6, align 4
%8 = call i32 @printf(ptr noundef @.str, i32 noundef %7)
%9 = load ptr, ptr %2, align 8
%10 = call i32 @free(ptr noundef %9)
ret i32 0
}
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpban50fdv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%3 = call i64 @calloc(i32 noundef 10, i32 noundef 4)
%4 = inttoptr i64 %3 to ptr
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = getelementptr inbounds i32, ptr %5, i64 0
%7 = load i32, ptr %6, align 4
%8 = call i32 @printf(ptr noundef @.str, i32 noundef %7)
%9 = load ptr, ptr %2, align 8
%10 = call i32 @free(ptr noundef %9)
ret i32 0
}
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_0ix0_1v.c'
source_filename = "/tmp/tmp_0ix0_1v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"Enter thresholds for A, B, C, D\0A\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"in that order, decreasing percentages > \00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"%f%f%f%f\00", align 1
@.str.3 = private unnamed_addr constant [48 x i8] c"Thank you. Now enter student score (percent) > \00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.5 = private unnamed_addr constant [23 x i8] c"Stdent has an A grade\0A\00", align 1
@.str.6 = private unnamed_addr constant [24 x i8] c"Student has an B grade\0A\00", align 1
@.str.7 = private unnamed_addr constant [24 x i8] c"Student has an C grade\0A\00", align 1
@.str.8 = private unnamed_addr constant [24 x i8] c"Student has an D grade\0A\00", align 1
@.str.9 = private unnamed_addr constant [31 x i8] c"Student has failed the course\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
%6 = alloca float, align 4
store i32 0, ptr %1, align 4
%7 = call i32 @printf(ptr noundef @.str)
%8 = call i32 @printf(ptr noundef @.str.1)
%9 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%10 = call i32 @printf(ptr noundef @.str.3)
%11 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.4, ptr noundef %6)
%12 = load float, ptr %6, align 4
%13 = load float, ptr %2, align 4
%14 = fcmp oge float %12, %13
br i1 %14, label %15, label %17
15: ; preds = %0
%16 = call i32 @printf(ptr noundef @.str.5)
br label %52
17: ; preds = %0
%18 = load float, ptr %6, align 4
%19 = load float, ptr %2, align 4
%20 = fcmp olt float %18, %19
br i1 %20, label %21, label %27
21: ; preds = %17
%22 = load float, ptr %6, align 4
%23 = load float, ptr %3, align 4
%24 = fcmp oge float %22, %23
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = call i32 @printf(ptr noundef @.str.6)
br label %51
27: ; preds = %21, %17
%28 = load float, ptr %6, align 4
%29 = load float, ptr %3, align 4
%30 = fcmp olt float %28, %29
br i1 %30, label %31, label %37
31: ; preds = %27
%32 = load float, ptr %6, align 4
%33 = load float, ptr %4, align 4
%34 = fcmp oge float %32, %33
br i1 %34, label %35, label %37
35: ; preds = %31
%36 = call i32 @printf(ptr noundef @.str.7)
br label %50
37: ; preds = %31, %27
%38 = load float, ptr %6, align 4
%39 = load float, ptr %4, align 4
%40 = fcmp olt float %38, %39
br i1 %40, label %41, label %47
41: ; preds = %37
%42 = load float, ptr %6, align 4
%43 = load float, ptr %5, align 4
%44 = fcmp oge float %42, %43
br i1 %44, label %45, label %47
45: ; preds = %41
%46 = call i32 @printf(ptr noundef @.str.8)
br label %49
47: ; preds = %41, %37
%48 = call i32 @printf(ptr noundef @.str.9)
br label %49
49: ; preds = %47, %45
br label %50
50: ; preds = %49, %35
br label %51
51: ; preds = %50, %25
br label %52
52: ; preds = %51, %15
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_0ix0_1v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"Enter thresholds for A, B, C, D\0A\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"in that order, decreasing percentages > \00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"%f%f%f%f\00", align 1
@.str.3 = private unnamed_addr constant [48 x i8] c"Thank you. Now enter student score (percent) > \00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.5 = private unnamed_addr constant [23 x i8] c"Stdent has an A grade\0A\00", align 1
@.str.6 = private unnamed_addr constant [24 x i8] c"Student has an B grade\0A\00", align 1
@.str.7 = private unnamed_addr constant [24 x i8] c"Student has an C grade\0A\00", align 1
@.str.8 = private unnamed_addr constant [24 x i8] c"Student has an D grade\0A\00", align 1
@.str.9 = private unnamed_addr constant [31 x i8] c"Student has failed the course\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
%6 = alloca float, align 4
store i32 0, ptr %1, align 4
%7 = call i32 @printf(ptr noundef @.str)
%8 = call i32 @printf(ptr noundef @.str.1)
%9 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%10 = call i32 @printf(ptr noundef @.str.3)
%11 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.4, ptr noundef %6)
%12 = load float, ptr %6, align 4
%13 = load float, ptr %2, align 4
%14 = fcmp oge float %12, %13
br i1 %14, label %15, label %17
15: ; preds = %0
%16 = call i32 @printf(ptr noundef @.str.5)
br label %52
17: ; preds = %0
%18 = load float, ptr %6, align 4
%19 = load float, ptr %2, align 4
%20 = fcmp olt float %18, %19
br i1 %20, label %21, label %27
21: ; preds = %17
%22 = load float, ptr %6, align 4
%23 = load float, ptr %3, align 4
%24 = fcmp oge float %22, %23
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = call i32 @printf(ptr noundef @.str.6)
br label %51
27: ; preds = %21, %17
%28 = load float, ptr %6, align 4
%29 = load float, ptr %3, align 4
%30 = fcmp olt float %28, %29
br i1 %30, label %31, label %37
31: ; preds = %27
%32 = load float, ptr %6, align 4
%33 = load float, ptr %4, align 4
%34 = fcmp oge float %32, %33
br i1 %34, label %35, label %37
35: ; preds = %31
%36 = call i32 @printf(ptr noundef @.str.7)
br label %50
37: ; preds = %31, %27
%38 = load float, ptr %6, align 4
%39 = load float, ptr %4, align 4
%40 = fcmp olt float %38, %39
br i1 %40, label %41, label %47
41: ; preds = %37
%42 = load float, ptr %6, align 4
%43 = load float, ptr %5, align 4
%44 = fcmp oge float %42, %43
br i1 %44, label %45, label %47
45: ; preds = %41
%46 = call i32 @printf(ptr noundef @.str.8)
br label %49
47: ; preds = %41, %37
%48 = call i32 @printf(ptr noundef @.str.9)
br label %49
49: ; preds = %47, %45
br label %50
50: ; preds = %49, %35
br label %51
51: ; preds = %50, %25
br label %52
52: ; preds = %51, %15
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8mkvh96a.c'
source_filename = "/tmp/tmp8mkvh96a.c"
target datalayout = "e-m:e-p270: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/tmp8mkvh96a.c"
target datalayout = "e-m:e-p270: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/tmph4dfzi3i.c'
source_filename = "/tmp/tmph4dfzi3i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_range(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp sge i32 %7, %8
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call ptr @malloc(i32 noundef 4)
store ptr %11, ptr %6, align 8
store ptr null, ptr %6, align 8
br label %37
12: ; preds = %2
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr %3, align 4
%15 = sub nsw i32 %13, %14
%16 = sext i32 %15 to i64
%17 = mul i64 4, %16
%18 = trunc i64 %17 to i32
%19 = call ptr @malloc(i32 noundef %18)
store ptr %19, ptr %6, align 8
br label %20
20: ; preds = %26, %12
%21 = load i32, ptr %3, align 4
%22 = load i32, ptr %5, align 4
%23 = add nsw i32 %21, %22
%24 = load i32, ptr %4, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %26, label %36
26: ; preds = %20
%27 = load i32, ptr %3, align 4
%28 = load i32, ptr %5, align 4
%29 = add nsw i32 %27, %28
%30 = load ptr, ptr %6, align 8
%31 = load i32, ptr %5, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %30, i64 %32
store i32 %29, ptr %33, align 4
%34 = load i32, ptr %5, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %5, align 4
br label %20, !llvm.loop !6
36: ; preds = %20
br label %37
37: ; preds = %36, %10
%38 = load ptr, ptr %6, align 8
ret ptr %38
}
declare ptr @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmph4dfzi3i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_range(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp sge i32 %7, %8
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call ptr @malloc(i32 noundef 4)
store ptr %11, ptr %6, align 8
store ptr null, ptr %6, align 8
br label %41
12: ; preds = %2
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr %3, align 4
%15 = sub nsw i32 %13, %14
%16 = sext i32 %15 to i64
%17 = mul i64 4, %16
%18 = trunc i64 %17 to i32
%19 = call ptr @malloc(i32 noundef %18)
store ptr %19, ptr %6, align 8
%20 = load i32, ptr %3, align 4
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %20, %21
%23 = load i32, ptr %4, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %.lr.ph, label %40
.lr.ph: ; preds = %12
br label %25
25: ; preds = %.lr.ph, %25
%26 = load i32, ptr %3, align 4
%27 = load i32, ptr %5, align 4
%28 = add nsw i32 %26, %27
%29 = load ptr, ptr %6, align 8
%30 = load i32, ptr %5, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %29, i64 %31
store i32 %28, ptr %32, align 4
%33 = load i32, ptr %5, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %5, align 4
%35 = load i32, ptr %3, align 4
%36 = load i32, ptr %5, align 4
%37 = add nsw i32 %35, %36
%38 = load i32, ptr %4, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %25, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %40
40: ; preds = %._crit_edge, %12
br label %41
41: ; preds = %40, %10
%42 = load ptr, ptr %6, align 8
ret ptr %42
}
declare ptr @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpyfoaucys.c'
source_filename = "/tmp/tmpyfoaucys.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@MAP_FAILED = dso_local global ptr null, align 8
@PTRDIFF_MAX = dso_local global i64 0, align 8
@ENOMEM = dso_local global i32 0, align 4
@MAP_FIXED = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @__mmap(ptr noundef %0, i64 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
store ptr %0, ptr %8, align 8
store i64 %1, ptr %9, align 8
store i32 %2, ptr %10, align 4
store i32 %3, ptr %11, align 4
store i32 %4, ptr %12, align 4
store i32 %5, ptr %13, align 4
%15 = load i32, ptr %13, align 4
%16 = sext i32 %15 to i64
%17 = and i64 %16, 4095
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %6
%20 = load i32, ptr @EINVAL, align 4
store i32 %20, ptr @errno, align 4
%21 = load ptr, ptr @MAP_FAILED, align 8
store ptr %21, ptr %7, align 8
br label %54
22: ; preds = %6
%23 = load i64, ptr %9, align 8
%24 = load i64, ptr @PTRDIFF_MAX, align 8
%25 = icmp uge i64 %23, %24
br i1 %25, label %26, label %29
26: ; preds = %22
%27 = load i32, ptr @ENOMEM, align 4
store i32 %27, ptr @errno, align 4
%28 = load ptr, ptr @MAP_FAILED, align 8
store ptr %28, ptr %7, align 8
br label %54
29: ; preds = %22
%30 = load i32, ptr %11, align 4
%31 = load i32, ptr @MAP_FIXED, align 4
%32 = and i32 %30, %31
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %29
%35 = call i32 @__vm_lock(i32 noundef -1)
br label %36
36: ; preds = %34, %29
%37 = load ptr, ptr %8, align 8
%38 = load i64, ptr %9, align 8
%39 = load i32, ptr %10, align 4
%40 = load i32, ptr %11, align 4
%41 = load i32, ptr %12, align 4
%42 = load i32, ptr %13, align 4
%43 = ashr i32 %42, 12
%44 = call i64 @syscall(i32 noundef 192, ptr noundef %37, i64 noundef %38, i32 noundef %39, i32 noundef %40, i32 noundef %41, i32 noundef %43)
%45 = inttoptr i64 %44 to ptr
store ptr %45, ptr %14, align 8
%46 = load i32, ptr %11, align 4
%47 = load i32, ptr @MAP_FIXED, align 4
%48 = and i32 %46, %47
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %52
50: ; preds = %36
%51 = call i32 (...) @__vm_unlock()
br label %52
52: ; preds = %50, %36
%53 = load ptr, ptr %14, align 8
store ptr %53, ptr %7, align 8
br label %54
54: ; preds = %52, %26, %19
%55 = load ptr, ptr %7, align 8
ret ptr %55
}
declare i32 @__vm_lock(i32 noundef) #1
declare i64 @syscall(i32 noundef, ptr noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @__vm_unlock(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyfoaucys.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@MAP_FAILED = dso_local global ptr null, align 8
@PTRDIFF_MAX = dso_local global i64 0, align 8
@ENOMEM = dso_local global i32 0, align 4
@MAP_FIXED = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @__mmap(ptr noundef %0, i64 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
store ptr %0, ptr %8, align 8
store i64 %1, ptr %9, align 8
store i32 %2, ptr %10, align 4
store i32 %3, ptr %11, align 4
store i32 %4, ptr %12, align 4
store i32 %5, ptr %13, align 4
%15 = load i32, ptr %13, align 4
%16 = sext i32 %15 to i64
%17 = and i64 %16, 4095
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %6
%20 = load i32, ptr @EINVAL, align 4
store i32 %20, ptr @errno, align 4
%21 = load ptr, ptr @MAP_FAILED, align 8
store ptr %21, ptr %7, align 8
br label %54
22: ; preds = %6
%23 = load i64, ptr %9, align 8
%24 = load i64, ptr @PTRDIFF_MAX, align 8
%25 = icmp uge i64 %23, %24
br i1 %25, label %26, label %29
26: ; preds = %22
%27 = load i32, ptr @ENOMEM, align 4
store i32 %27, ptr @errno, align 4
%28 = load ptr, ptr @MAP_FAILED, align 8
store ptr %28, ptr %7, align 8
br label %54
29: ; preds = %22
%30 = load i32, ptr %11, align 4
%31 = load i32, ptr @MAP_FIXED, align 4
%32 = and i32 %30, %31
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %29
%35 = call i32 @__vm_lock(i32 noundef -1)
br label %36
36: ; preds = %34, %29
%37 = load ptr, ptr %8, align 8
%38 = load i64, ptr %9, align 8
%39 = load i32, ptr %10, align 4
%40 = load i32, ptr %11, align 4
%41 = load i32, ptr %12, align 4
%42 = load i32, ptr %13, align 4
%43 = ashr i32 %42, 12
%44 = call i64 @syscall(i32 noundef 192, ptr noundef %37, i64 noundef %38, i32 noundef %39, i32 noundef %40, i32 noundef %41, i32 noundef %43)
%45 = inttoptr i64 %44 to ptr
store ptr %45, ptr %14, align 8
%46 = load i32, ptr %11, align 4
%47 = load i32, ptr @MAP_FIXED, align 4
%48 = and i32 %46, %47
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %52
50: ; preds = %36
%51 = call i32 (...) @__vm_unlock()
br label %52
52: ; preds = %50, %36
%53 = load ptr, ptr %14, align 8
store ptr %53, ptr %7, align 8
br label %54
54: ; preds = %52, %26, %19
%55 = load ptr, ptr %7, align 8
ret ptr %55
}
declare i32 @__vm_lock(i32 noundef) #1
declare i64 @syscall(i32 noundef, ptr noundef, i64 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @__vm_unlock(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2izjhhhk.c'
source_filename = "/tmp/tmp2izjhhhk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 \00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"O reverso \C3\A9\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store ptr null, ptr %2, align 8
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%5 = call ptr @malloc(i32 noundef 400)
store ptr %5, ptr %2, align 8
br label %6
6: ; preds = %9, %0
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %17
9: ; preds = %6
%10 = load i32, ptr %4, align 4
%11 = load ptr, ptr %2, align 8
%12 = load i32, ptr %3, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i32, ptr %11, i64 %13
store i32 %10, ptr %14, align 4
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %3, align 4
br label %6, !llvm.loop !6
17: ; preds = %6
%18 = load ptr, ptr %2, align 8
%19 = load i32, ptr %3, align 4
%20 = call i32 @mostra(ptr noundef %18, i32 noundef %19)
%21 = call i32 @printf(ptr noundef @.str.1)
%22 = load ptr, ptr %2, align 8
%23 = load i32, ptr %3, align 4
%24 = sub nsw i32 %23, 1
%25 = call i32 @revec(ptr noundef %22, i32 noundef 0, i32 noundef %24)
%26 = load ptr, ptr %2, align 8
%27 = load i32, ptr %3, align 4
%28 = call i32 @mostra(ptr noundef %26, i32 noundef %27)
ret i32 0
}
declare ptr @malloc(i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @mostra(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @revec(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2izjhhhk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 \00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"O reverso \C3\A9\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store ptr null, ptr %2, align 8
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%5 = call ptr @malloc(i32 noundef 400)
store ptr %5, ptr %2, align 8
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%7 = icmp eq i32 %6, 1
br i1 %7, label %.lr.ph, label %18
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %8
%9 = load i32, ptr %4, align 4
%10 = load ptr, ptr %2, align 8
%11 = load i32, ptr %3, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i32, ptr %10, i64 %12
store i32 %9, ptr %13, align 4
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %3, align 4
%16 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%17 = icmp eq i32 %16, 1
br i1 %17, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %8
br label %18
18: ; preds = %._crit_edge, %0
%19 = load ptr, ptr %2, align 8
%20 = load i32, ptr %3, align 4
%21 = call i32 @mostra(ptr noundef %19, i32 noundef %20)
%22 = call i32 @printf(ptr noundef @.str.1)
%23 = load ptr, ptr %2, align 8
%24 = load i32, ptr %3, align 4
%25 = sub nsw i32 %24, 1
%26 = call i32 @revec(ptr noundef %23, i32 noundef 0, i32 noundef %25)
%27 = load ptr, ptr %2, align 8
%28 = load i32, ptr %3, align 4
%29 = call i32 @mostra(ptr noundef %27, i32 noundef %28)
ret i32 0
}
declare ptr @malloc(i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @mostra(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @revec(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpx5m1tvn4.c'
source_filename = "/tmp/tmpx5m1tvn4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ULONG_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @htoi(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
store i64 0, ptr %5, align 8
%6 = load ptr, ptr %3, align 8
%7 = load i32, ptr %4, align 4
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds i8, ptr %6, i64 %8
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 48
br i1 %12, label %13, label %14
13: ; preds = %1
store i32 0, ptr %2, align 4
br label %142
14: ; preds = %1
%15 = load i32, ptr %4, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %4, align 4
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %4, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 120
br i1 %23, label %24, label %33
24: ; preds = %14
%25 = load ptr, ptr %3, align 8
%26 = load i32, ptr %4, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp ne i32 %30, 88
br i1 %31, label %32, label %33
32: ; preds = %24
store i32 0, ptr %2, align 4
br label %142
33: ; preds = %24, %14
%34 = load i32, ptr %4, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %4, align 4
br label %36
36: ; preds = %136, %33
%37 = load i64, ptr %5, align 8
%38 = load i32, ptr @ULONG_MAX, align 4
%39 = sdiv i32 %38, 16
%40 = sext i32 %39 to i64
%41 = icmp ult i64 %37, %40
br i1 %41, label %42, label %139
42: ; preds = %36
%43 = load ptr, ptr %3, align 8
%44 = load i32, ptr %4, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i8, ptr %43, i64 %45
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = icmp sge i32 %48, 48
br i1 %49, label %50, label %71
50: ; preds = %42
%51 = load ptr, ptr %3, align 8
%52 = load i32, ptr %4, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, ptr %51, i64 %53
%55 = load i8, ptr %54, align 1
%56 = sext i8 %55 to i32
%57 = icmp sle i32 %56, 57
br i1 %57, label %58, label %71
58: ; preds = %50
%59 = load i64, ptr %5, align 8
%60 = mul i64 %59, 16
store i64 %60, ptr %5, align 8
%61 = load ptr, ptr %3, align 8
%62 = load i32, ptr %4, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i8, ptr %61, i64 %63
%65 = load i8, ptr %64, align 1
%66 = sext i8 %65 to i32
%67 = sub nsw i32 %66, 48
%68 = sext i32 %67 to i64
%69 = load i64, ptr %5, align 8
%70 = add i64 %69, %68
store i64 %70, ptr %5, align 8
br label %136
71: ; preds = %50, %42
%72 = load ptr, ptr %3, align 8
%73 = load i32, ptr %4, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i8, ptr %72, i64 %74
%76 = load i8, ptr %75, align 1
%77 = sext i8 %76 to i32
%78 = icmp sge i32 %77, 97
br i1 %78, label %79, label %101
79: ; preds = %71
%80 = load ptr, ptr %3, align 8
%81 = load i32, ptr %4, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i8, ptr %80, i64 %82
%84 = load i8, ptr %83, align 1
%85 = sext i8 %84 to i32
%86 = icmp sle i32 %85, 102
br i1 %86, label %87, label %101
87: ; preds = %79
%88 = load i64, ptr %5, align 8
%89 = mul i64 %88, 16
store i64 %89, ptr %5, align 8
%90 = load ptr, ptr %3, align 8
%91 = load i32, ptr %4, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i8, ptr %90, i64 %92
%94 = load i8, ptr %93, align 1
%95 = sext i8 %94 to i32
%96 = sub nsw i32 %95, 97
%97 = add nsw i32 %96, 10
%98 = sext i32 %97 to i64
%99 = load i64, ptr %5, align 8
%100 = add i64 %99, %98
store i64 %100, ptr %5, align 8
br label %135
101: ; preds = %79, %71
%102 = load ptr, ptr %3, align 8
%103 = load i32, ptr %4, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds i8, ptr %102, i64 %104
%106 = load i8, ptr %105, align 1
%107 = sext i8 %106 to i32
%108 = icmp sge i32 %107, 65
br i1 %108, label %109, label %131
109: ; preds = %101
%110 = load ptr, ptr %3, align 8
%111 = load i32, ptr %4, align 4
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds i8, ptr %110, i64 %112
%114 = load i8, ptr %113, align 1
%115 = sext i8 %114 to i32
%116 = icmp sle i32 %115, 70
br i1 %116, label %117, label %131
117: ; preds = %109
%118 = load i64, ptr %5, align 8
%119 = mul i64 %118, 16
store i64 %119, ptr %5, align 8
%120 = load ptr, ptr %3, align 8
%121 = load i32, ptr %4, align 4
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds i8, ptr %120, i64 %122
%124 = load i8, ptr %123, align 1
%125 = sext i8 %124 to i32
%126 = sub nsw i32 %125, 65
%127 = add nsw i32 %126, 10
%128 = sext i32 %127 to i64
%129 = load i64, ptr %5, align 8
%130 = add i64 %129, %128
store i64 %130, ptr %5, align 8
br label %134
131: ; preds = %109, %101
%132 = load i64, ptr %5, align 8
%133 = trunc i64 %132 to i32
store i32 %133, ptr %2, align 4
br label %142
134: ; preds = %117
br label %135
135: ; preds = %134, %87
br label %136
136: ; preds = %135, %58
%137 = load i32, ptr %4, align 4
%138 = add nsw i32 %137, 1
store i32 %138, ptr %4, align 4
br label %36, !llvm.loop !6
139: ; preds = %36
%140 = load i64, ptr %5, align 8
%141 = trunc i64 %140 to i32
store i32 %141, ptr %2, align 4
br label %142
142: ; preds = %139, %131, %32, %13
%143 = load i32, ptr %2, align 4
ret i32 %143
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpx5m1tvn4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ULONG_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @htoi(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
store i64 0, ptr %5, align 8
%6 = load ptr, ptr %3, align 8
%7 = load i32, ptr %4, align 4
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds i8, ptr %6, i64 %8
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 48
br i1 %12, label %13, label %14
13: ; preds = %1
store i32 0, ptr %2, align 4
br label %146
14: ; preds = %1
%15 = load i32, ptr %4, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %4, align 4
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %4, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 120
br i1 %23, label %24, label %33
24: ; preds = %14
%25 = load ptr, ptr %3, align 8
%26 = load i32, ptr %4, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp ne i32 %30, 88
br i1 %31, label %32, label %33
32: ; preds = %24
store i32 0, ptr %2, align 4
br label %146
33: ; preds = %24, %14
%34 = load i32, ptr %4, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %4, align 4
%36 = load i64, ptr %5, align 8
%37 = load i32, ptr @ULONG_MAX, align 4
%38 = sdiv i32 %37, 16
%39 = sext i32 %38 to i64
%40 = icmp ult i64 %36, %39
br i1 %40, label %.lr.ph, label %143
.lr.ph: ; preds = %33
br label %41
41: ; preds = %.lr.ph, %135
%42 = load ptr, ptr %3, align 8
%43 = load i32, ptr %4, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, ptr %42, i64 %44
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = icmp sge i32 %47, 48
br i1 %48, label %49, label %70
49: ; preds = %41
%50 = load ptr, ptr %3, align 8
%51 = load i32, ptr %4, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8, ptr %50, i64 %52
%54 = load i8, ptr %53, align 1
%55 = sext i8 %54 to i32
%56 = icmp sle i32 %55, 57
br i1 %56, label %57, label %70
57: ; preds = %49
%58 = load i64, ptr %5, align 8
%59 = mul i64 %58, 16
store i64 %59, ptr %5, align 8
%60 = load ptr, ptr %3, align 8
%61 = load i32, ptr %4, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i8, ptr %60, i64 %62
%64 = load i8, ptr %63, align 1
%65 = sext i8 %64 to i32
%66 = sub nsw i32 %65, 48
%67 = sext i32 %66 to i64
%68 = load i64, ptr %5, align 8
%69 = add i64 %68, %67
store i64 %69, ptr %5, align 8
br label %135
70: ; preds = %49, %41
%71 = load ptr, ptr %3, align 8
%72 = load i32, ptr %4, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i8, ptr %71, i64 %73
%75 = load i8, ptr %74, align 1
%76 = sext i8 %75 to i32
%77 = icmp sge i32 %76, 97
br i1 %77, label %78, label %100
78: ; preds = %70
%79 = load ptr, ptr %3, align 8
%80 = load i32, ptr %4, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds i8, ptr %79, i64 %81
%83 = load i8, ptr %82, align 1
%84 = sext i8 %83 to i32
%85 = icmp sle i32 %84, 102
br i1 %85, label %86, label %100
86: ; preds = %78
%87 = load i64, ptr %5, align 8
%88 = mul i64 %87, 16
store i64 %88, ptr %5, align 8
%89 = load ptr, ptr %3, align 8
%90 = load i32, ptr %4, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i8, ptr %89, i64 %91
%93 = load i8, ptr %92, align 1
%94 = sext i8 %93 to i32
%95 = sub nsw i32 %94, 97
%96 = add nsw i32 %95, 10
%97 = sext i32 %96 to i64
%98 = load i64, ptr %5, align 8
%99 = add i64 %98, %97
store i64 %99, ptr %5, align 8
br label %134
100: ; preds = %78, %70
%101 = load ptr, ptr %3, align 8
%102 = load i32, ptr %4, align 4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i8, ptr %101, i64 %103
%105 = load i8, ptr %104, align 1
%106 = sext i8 %105 to i32
%107 = icmp sge i32 %106, 65
br i1 %107, label %108, label %130
108: ; preds = %100
%109 = load ptr, ptr %3, align 8
%110 = load i32, ptr %4, align 4
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds i8, ptr %109, i64 %111
%113 = load i8, ptr %112, align 1
%114 = sext i8 %113 to i32
%115 = icmp sle i32 %114, 70
br i1 %115, label %116, label %130
116: ; preds = %108
%117 = load i64, ptr %5, align 8
%118 = mul i64 %117, 16
store i64 %118, ptr %5, align 8
%119 = load ptr, ptr %3, align 8
%120 = load i32, ptr %4, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds i8, ptr %119, i64 %121
%123 = load i8, ptr %122, align 1
%124 = sext i8 %123 to i32
%125 = sub nsw i32 %124, 65
%126 = add nsw i32 %125, 10
%127 = sext i32 %126 to i64
%128 = load i64, ptr %5, align 8
%129 = add i64 %128, %127
store i64 %129, ptr %5, align 8
br label %133
130: ; preds = %108, %100
%131 = load i64, ptr %5, align 8
%132 = trunc i64 %131 to i32
store i32 %132, ptr %2, align 4
br label %146
133: ; preds = %116
br label %134
134: ; preds = %133, %86
br label %135
135: ; preds = %134, %57
%136 = load i32, ptr %4, align 4
%137 = add nsw i32 %136, 1
store i32 %137, ptr %4, align 4
%138 = load i64, ptr %5, align 8
%139 = load i32, ptr @ULONG_MAX, align 4
%140 = sdiv i32 %139, 16
%141 = sext i32 %140 to i64
%142 = icmp ult i64 %138, %141
br i1 %142, label %41, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %135
br label %143
143: ; preds = %._crit_edge, %33
%144 = load i64, ptr %5, align 8
%145 = trunc i64 %144 to i32
store i32 %145, ptr %2, align 4
br label %146
146: ; preds = %143, %130, %32, %13
%147 = load i32, ptr %2, align 4
ret i32 %147
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpy2h4n5ef.c'
source_filename = "/tmp/tmpy2h4n5ef.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @aschar(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 = call i32 @printf(ptr noundef @.str, i8 noundef signext %3)
ret void
}
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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy2h4n5ef.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @aschar(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 = call i32 @printf(ptr noundef @.str, i8 noundef signext %3)
ret void
}
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"}
|
; ModuleID = '/tmp/tmp3cqlqbo8.c'
source_filename = "/tmp/tmp3cqlqbo8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hex_to_int(i8 noundef signext %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i8, align 1
store i8 %0, ptr %3, align 1
%4 = load i8, ptr %3, align 1
%5 = call signext i8 @toupper(i8 noundef signext %4)
store i8 %5, ptr %3, align 1
%6 = load i8, ptr %3, align 1
%7 = sext i8 %6 to i32
%8 = icmp sge i32 %7, 48
br i1 %8, label %9, label %17
9: ; preds = %1
%10 = load i8, ptr %3, align 1
%11 = sext i8 %10 to i32
%12 = icmp sle i32 %11, 57
br i1 %12, label %13, label %17
13: ; preds = %9
%14 = load i8, ptr %3, align 1
%15 = sext i8 %14 to i32
%16 = sub nsw i32 %15, 48
store i32 %16, ptr %2, align 4
br label %22
17: ; preds = %9, %1
%18 = load i8, ptr %3, align 1
%19 = sext i8 %18 to i32
%20 = sub nsw i32 %19, 65
%21 = add nsw i32 10, %20
store i32 %21, ptr %2, align 4
br label %22
22: ; preds = %17, %13
%23 = load i32, ptr %2, align 4
ret i32 %23
}
declare signext i8 @toupper(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3cqlqbo8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hex_to_int(i8 noundef signext %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i8, align 1
store i8 %0, ptr %3, align 1
%4 = load i8, ptr %3, align 1
%5 = call signext i8 @toupper(i8 noundef signext %4)
store i8 %5, ptr %3, align 1
%6 = load i8, ptr %3, align 1
%7 = sext i8 %6 to i32
%8 = icmp sge i32 %7, 48
br i1 %8, label %9, label %17
9: ; preds = %1
%10 = load i8, ptr %3, align 1
%11 = sext i8 %10 to i32
%12 = icmp sle i32 %11, 57
br i1 %12, label %13, label %17
13: ; preds = %9
%14 = load i8, ptr %3, align 1
%15 = sext i8 %14 to i32
%16 = sub nsw i32 %15, 48
store i32 %16, ptr %2, align 4
br label %22
17: ; preds = %9, %1
%18 = load i8, ptr %3, align 1
%19 = sext i8 %18 to i32
%20 = sub nsw i32 %19, 65
%21 = add nsw i32 10, %20
store i32 %21, ptr %2, align 4
br label %22
22: ; preds = %17, %13
%23 = load i32, ptr %2, align 4
ret i32 %23
}
declare signext i8 @toupper(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpo7uqi2_o.c'
source_filename = "/tmp/tmpo7uqi2_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"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [21 x i8] c"Switching sonars on\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @carmen_base_direct_sonar_on() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %2, align 4
%3 = load i32, ptr @stderr, align 4
%4 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str)
%5 = call i32 @pioneer_sonar(i32 noundef 1)
store i32 %5, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %0
store i32 -1, ptr %1, align 4
br label %10
9: ; preds = %0
store i32 32, ptr %1, align 4
br label %10
10: ; preds = %9, %8
%11 = load i32, ptr %1, align 4
ret i32 %11
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @pioneer_sonar(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/tmpo7uqi2_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"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [21 x i8] c"Switching sonars on\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @carmen_base_direct_sonar_on() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %2, align 4
%3 = load i32, ptr @stderr, align 4
%4 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str)
%5 = call i32 @pioneer_sonar(i32 noundef 1)
store i32 %5, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %0
store i32 -1, ptr %1, align 4
br label %10
9: ; preds = %0
store i32 32, ptr %1, align 4
br label %10
10: ; preds = %9, %8
%11 = load i32, ptr %1, align 4
ret i32 %11
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @pioneer_sonar(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/tmple61na0w.c'
source_filename = "/tmp/tmple61na0w.c"
target datalayout = "e-m:e-p270: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.ifreq = type { %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { ptr }
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [6 x i8] c"eth%d\00", align 1
@SIOCGIFHWADDR = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [30 x i8] c"%02x:%02x:%02x:%02x:%02x:%02x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_all_macs(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca %struct.ifreq, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %76, %1
%8 = load i32, ptr %5, align 4
%9 = icmp slt i32 %8, 10
br i1 %9, label %10, label %79
10: ; preds = %7
store ptr @.str, ptr %6, align 8
%11 = load i32, ptr @AF_INET, align 4
%12 = load i32, ptr @SOCK_STREAM, align 4
%13 = call i32 @socket(i32 noundef %11, i32 noundef %12, i32 noundef 0)
store i32 %13, ptr %4, align 4
%14 = load ptr, ptr %6, align 8
%15 = load i32, ptr %5, align 4
%16 = trunc i32 %15 to i8
%17 = call i32 (ptr, ptr, i8, ...) @sprintf(ptr noundef %14, ptr noundef @.str.1, i8 noundef zeroext %16)
%18 = getelementptr inbounds %struct.ifreq, ptr %3, i32 0, i32 1
%19 = load i32, ptr %18, align 8
%20 = load ptr, ptr %6, align 8
%21 = call i32 @strcpy(i32 noundef %19, ptr noundef %20)
%22 = load i32, ptr %4, align 4
%23 = load i32, ptr @SIOCGIFHWADDR, align 4
%24 = call i64 @ioctl(i32 noundef %22, i32 noundef %23, ptr noundef %3)
%25 = icmp slt i64 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %10
br label %76
27: ; preds = %10
%28 = load ptr, ptr %2, align 8
%29 = load i32, ptr %5, align 4
%30 = sext i32 %29 to i64
%31 = mul i64 %30, 1
%32 = getelementptr inbounds ptr, ptr %28, i64 %31
%33 = load ptr, ptr %32, align 8
%34 = getelementptr inbounds %struct.ifreq, ptr %3, i32 0, i32 0
%35 = getelementptr inbounds %struct.TYPE_2__, ptr %34, i32 0, i32 0
%36 = load ptr, ptr %35, align 8
%37 = getelementptr inbounds i64, ptr %36, i64 0
%38 = load i64, ptr %37, align 8
%39 = trunc i64 %38 to i8
%40 = getelementptr inbounds %struct.ifreq, ptr %3, i32 0, i32 0
%41 = getelementptr inbounds %struct.TYPE_2__, ptr %40, i32 0, i32 0
%42 = load ptr, ptr %41, align 8
%43 = getelementptr inbounds i64, ptr %42, i64 1
%44 = load i64, ptr %43, align 8
%45 = trunc i64 %44 to i8
%46 = zext i8 %45 to i32
%47 = getelementptr inbounds %struct.ifreq, ptr %3, i32 0, i32 0
%48 = getelementptr inbounds %struct.TYPE_2__, ptr %47, i32 0, i32 0
%49 = load ptr, ptr %48, align 8
%50 = getelementptr inbounds i64, ptr %49, i64 2
%51 = load i64, ptr %50, align 8
%52 = trunc i64 %51 to i8
%53 = zext i8 %52 to i32
%54 = getelementptr inbounds %struct.ifreq, ptr %3, i32 0, i32 0
%55 = getelementptr inbounds %struct.TYPE_2__, ptr %54, i32 0, i32 0
%56 = load ptr, ptr %55, align 8
%57 = getelementptr inbounds i64, ptr %56, i64 3
%58 = load i64, ptr %57, align 8
%59 = trunc i64 %58 to i8
%60 = zext i8 %59 to i32
%61 = getelementptr inbounds %struct.ifreq, ptr %3, i32 0, i32 0
%62 = getelementptr inbounds %struct.TYPE_2__, ptr %61, i32 0, i32 0
%63 = load ptr, ptr %62, align 8
%64 = getelementptr inbounds i64, ptr %63, i64 4
%65 = load i64, ptr %64, align 8
%66 = trunc i64 %65 to i8
%67 = zext i8 %66 to i32
%68 = getelementptr inbounds %struct.ifreq, ptr %3, i32 0, i32 0
%69 = getelementptr inbounds %struct.TYPE_2__, ptr %68, i32 0, i32 0
%70 = load ptr, ptr %69, align 8
%71 = getelementptr inbounds i64, ptr %70, i64 5
%72 = load i64, ptr %71, align 8
%73 = trunc i64 %72 to i8
%74 = zext i8 %73 to i32
%75 = call i32 (ptr, ptr, i8, ...) @sprintf(ptr noundef %33, ptr noundef @.str.2, i8 noundef zeroext %39, i32 noundef %46, i32 noundef %53, i32 noundef %60, i32 noundef %67, i32 noundef %74)
br label %76
76: ; preds = %27, %26
%77 = load i32, ptr %5, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %5, align 4
br label %7, !llvm.loop !6
79: ; preds = %7
ret i32 0
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i8 noundef zeroext, ...) #1
declare i32 @strcpy(i32 noundef, ptr noundef) #1
declare i64 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmple61na0w.c"
target datalayout = "e-m:e-p270: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.ifreq = type { %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { ptr }
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [6 x i8] c"eth%d\00", align 1
@SIOCGIFHWADDR = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [30 x i8] c"%02x:%02x:%02x:%02x:%02x:%02x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_all_macs(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca %struct.ifreq, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = icmp slt i32 %7, 10
br i1 %8, label %.lr.ph, label %80
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %75
store ptr @.str, ptr %6, align 8
%10 = load i32, ptr @AF_INET, align 4
%11 = load i32, ptr @SOCK_STREAM, align 4
%12 = call i32 @socket(i32 noundef %10, i32 noundef %11, i32 noundef 0)
store i32 %12, ptr %4, align 4
%13 = load ptr, ptr %6, align 8
%14 = load i32, ptr %5, align 4
%15 = trunc i32 %14 to i8
%16 = call i32 (ptr, ptr, i8, ...) @sprintf(ptr noundef %13, ptr noundef @.str.1, i8 noundef zeroext %15)
%17 = getelementptr inbounds %struct.ifreq, ptr %3, i32 0, i32 1
%18 = load i32, ptr %17, align 8
%19 = load ptr, ptr %6, align 8
%20 = call i32 @strcpy(i32 noundef %18, ptr noundef %19)
%21 = load i32, ptr %4, align 4
%22 = load i32, ptr @SIOCGIFHWADDR, align 4
%23 = call i64 @ioctl(i32 noundef %21, i32 noundef %22, ptr noundef %3)
%24 = icmp slt i64 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %9
br label %75
26: ; preds = %9
%27 = load ptr, ptr %2, align 8
%28 = load i32, ptr %5, align 4
%29 = sext i32 %28 to i64
%30 = mul i64 %29, 1
%31 = getelementptr inbounds ptr, ptr %27, i64 %30
%32 = load ptr, ptr %31, align 8
%33 = getelementptr inbounds %struct.ifreq, ptr %3, i32 0, i32 0
%34 = getelementptr inbounds %struct.TYPE_2__, ptr %33, i32 0, i32 0
%35 = load ptr, ptr %34, align 8
%36 = getelementptr inbounds i64, ptr %35, i64 0
%37 = load i64, ptr %36, align 8
%38 = trunc i64 %37 to i8
%39 = getelementptr inbounds %struct.ifreq, ptr %3, i32 0, i32 0
%40 = getelementptr inbounds %struct.TYPE_2__, ptr %39, i32 0, i32 0
%41 = load ptr, ptr %40, align 8
%42 = getelementptr inbounds i64, ptr %41, i64 1
%43 = load i64, ptr %42, align 8
%44 = trunc i64 %43 to i8
%45 = zext i8 %44 to i32
%46 = getelementptr inbounds %struct.ifreq, ptr %3, i32 0, i32 0
%47 = getelementptr inbounds %struct.TYPE_2__, ptr %46, i32 0, i32 0
%48 = load ptr, ptr %47, align 8
%49 = getelementptr inbounds i64, ptr %48, i64 2
%50 = load i64, ptr %49, align 8
%51 = trunc i64 %50 to i8
%52 = zext i8 %51 to i32
%53 = getelementptr inbounds %struct.ifreq, ptr %3, i32 0, i32 0
%54 = getelementptr inbounds %struct.TYPE_2__, ptr %53, i32 0, i32 0
%55 = load ptr, ptr %54, align 8
%56 = getelementptr inbounds i64, ptr %55, i64 3
%57 = load i64, ptr %56, align 8
%58 = trunc i64 %57 to i8
%59 = zext i8 %58 to i32
%60 = getelementptr inbounds %struct.ifreq, ptr %3, i32 0, i32 0
%61 = getelementptr inbounds %struct.TYPE_2__, ptr %60, i32 0, i32 0
%62 = load ptr, ptr %61, align 8
%63 = getelementptr inbounds i64, ptr %62, i64 4
%64 = load i64, ptr %63, align 8
%65 = trunc i64 %64 to i8
%66 = zext i8 %65 to i32
%67 = getelementptr inbounds %struct.ifreq, ptr %3, i32 0, i32 0
%68 = getelementptr inbounds %struct.TYPE_2__, ptr %67, i32 0, i32 0
%69 = load ptr, ptr %68, align 8
%70 = getelementptr inbounds i64, ptr %69, i64 5
%71 = load i64, ptr %70, align 8
%72 = trunc i64 %71 to i8
%73 = zext i8 %72 to i32
%74 = call i32 (ptr, ptr, i8, ...) @sprintf(ptr noundef %32, ptr noundef @.str.2, i8 noundef zeroext %38, i32 noundef %45, i32 noundef %52, i32 noundef %59, i32 noundef %66, i32 noundef %73)
br label %75
75: ; preds = %26, %25
%76 = load i32, ptr %5, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %5, align 4
%78 = load i32, ptr %5, align 4
%79 = icmp slt i32 %78, 10
br i1 %79, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %75
br label %80
80: ; preds = %._crit_edge, %1
ret i32 0
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i8 noundef zeroext, ...) #1
declare i32 @strcpy(i32 noundef, ptr noundef) #1
declare i64 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpq81tczlj.c'
source_filename = "/tmp/tmpq81tczlj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter the gallons used (-1 to end): \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"Enter the miles driven: \00", align 1
@.str.3 = private unnamed_addr constant [42 x i8] c"The miles / gallon for this tank was %f\0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [41 x i8] c"The overall average miles/gallon was %f\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
%6 = alloca float, align 4
store i32 0, ptr %1, align 4
store float 0.000000e+00, ptr %4, align 4
store float 0.000000e+00, ptr %5, align 4
store float 0.000000e+00, ptr %6, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%10 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
br label %11
11: ; preds = %33, %0
%12 = load float, ptr %2, align 4
%13 = fcmp une float %12, -1.000000e+00
br i1 %13, label %14, label %34
14: ; preds = %11
%15 = load float, ptr %3, align 4
%16 = load float, ptr %2, align 4
%17 = fdiv float %15, %16
%18 = fpext float %17 to double
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %18)
%20 = load float, ptr %3, align 4
%21 = load float, ptr %4, align 4
%22 = fadd float %21, %20
store float %22, ptr %4, align 4
%23 = load float, ptr %2, align 4
%24 = load float, ptr %6, align 4
%25 = fadd float %24, %23
store float %25, ptr %6, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%27 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%28 = load float, ptr %2, align 4
%29 = fcmp une float %28, -1.000000e+00
br i1 %29, label %30, label %33
30: ; preds = %14
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%32 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
br label %33
33: ; preds = %30, %14
br label %11, !llvm.loop !6
34: ; preds = %11
%35 = load float, ptr %4, align 4
%36 = load float, ptr %6, align 4
%37 = fdiv float %35, %36
%38 = fpext float %37 to double
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %38)
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/tmpq81tczlj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter the gallons used (-1 to end): \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"Enter the miles driven: \00", align 1
@.str.3 = private unnamed_addr constant [42 x i8] c"The miles / gallon for this tank was %f\0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [41 x i8] c"The overall average miles/gallon was %f\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
%6 = alloca float, align 4
store i32 0, ptr %1, align 4
store float 0.000000e+00, ptr %4, align 4
store float 0.000000e+00, ptr %5, align 4
store float 0.000000e+00, ptr %6, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%10 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%11 = load float, ptr %2, align 4
%12 = fcmp une float %11, -1.000000e+00
br i1 %12, label %.lr.ph, label %35
.lr.ph: ; preds = %0
br label %13
13: ; preds = %.lr.ph, %32
%14 = load float, ptr %3, align 4
%15 = load float, ptr %2, align 4
%16 = fdiv float %14, %15
%17 = fpext float %16 to double
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %17)
%19 = load float, ptr %3, align 4
%20 = load float, ptr %4, align 4
%21 = fadd float %20, %19
store float %21, ptr %4, align 4
%22 = load float, ptr %2, align 4
%23 = load float, ptr %6, align 4
%24 = fadd float %23, %22
store float %24, ptr %6, align 4
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%26 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%27 = load float, ptr %2, align 4
%28 = fcmp une float %27, -1.000000e+00
br i1 %28, label %29, label %32
29: ; preds = %13
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%31 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
br label %32
32: ; preds = %29, %13
%33 = load float, ptr %2, align 4
%34 = fcmp une float %33, -1.000000e+00
br i1 %34, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %35
35: ; preds = %._crit_edge, %0
%36 = load float, ptr %4, align 4
%37 = load float, ptr %6, align 4
%38 = fdiv float %36, %37
%39 = fpext float %38 to double
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %39)
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/tmpct0m4ogz.c'
source_filename = "/tmp/tmpct0m4ogz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @list16_delete(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %6
5: ; preds = %1
br label %11
6: ; preds = %1
%7 = load ptr, ptr %2, align 8
%8 = call i32 @list16_deinit(ptr noundef %7)
%9 = load ptr, ptr %2, align 8
%10 = call i32 @g_free(ptr noundef %9)
br label %11
11: ; preds = %6, %5
ret void
}
declare i32 @list16_deinit(ptr noundef) #1
declare i32 @g_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/tmpct0m4ogz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @list16_delete(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %6
5: ; preds = %1
br label %11
6: ; preds = %1
%7 = load ptr, ptr %2, align 8
%8 = call i32 @list16_deinit(ptr noundef %7)
%9 = load ptr, ptr %2, align 8
%10 = call i32 @g_free(ptr noundef %9)
br label %11
11: ; preds = %6, %5
ret void
}
declare i32 @list16_deinit(ptr noundef) #1
declare i32 @g_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/tmpbh5_0qp8.c'
source_filename = "/tmp/tmpbh5_0qp8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ignlgi.ignlgi = internal global i64 0, align 8
@ignlgi.curntg = internal global i64 0, align 8
@ignlgi.k = internal global i64 0, align 8
@ignlgi.s1 = internal global i64 0, align 8
@ignlgi.s2 = internal global i64 0, align 8
@ignlgi.z = internal global i64 0, align 8
@ignlgi.qqssd = internal global i64 0, align 8
@ignlgi.qrgnin = internal global i64 0, align 8
@Xcg1 = external global [0 x i64], align 8
@Xcg2 = external global [0 x i64], align 8
@Xa1 = external global i64, align 8
@Xm1 = external global i64, align 8
@Xa2 = external global i64, align 8
@Xm2 = external global i64, align 8
@Xqanti = external global [0 x i64], align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @ignlgi() #0 {
call void @gsrgs(i64 noundef 0, ptr noundef @ignlgi.qrgnin)
%1 = load i64, ptr @ignlgi.qrgnin, align 8
%2 = icmp ne i64 %1, 0
br i1 %2, label %4, label %3
3: ; preds = %0
call void @inrgcm()
br label %4
4: ; preds = %3, %0
call void @gssst(i64 noundef 0, ptr noundef @ignlgi.qqssd)
%5 = load i64, ptr @ignlgi.qqssd, align 8
%6 = icmp ne i64 %5, 0
br i1 %6, label %9, label %7
7: ; preds = %4
%8 = call i32 @setall(i64 noundef 1234567890, i64 noundef 123456789)
br label %9
9: ; preds = %7, %4
call void @gscgn(i64 noundef 0, ptr noundef @ignlgi.curntg)
%10 = load i64, ptr @ignlgi.curntg, align 8
%11 = getelementptr inbounds i64, ptr @Xcg1, i64 %10
%12 = getelementptr inbounds i64, ptr %11, i64 -1
%13 = load i64, ptr %12, align 8
store i64 %13, ptr @ignlgi.s1, align 8
%14 = load i64, ptr @ignlgi.curntg, align 8
%15 = getelementptr inbounds i64, ptr @Xcg2, i64 %14
%16 = getelementptr inbounds i64, ptr %15, i64 -1
%17 = load i64, ptr %16, align 8
store i64 %17, ptr @ignlgi.s2, align 8
%18 = load i64, ptr @ignlgi.s1, align 8
%19 = sdiv i64 %18, 53668
store i64 %19, ptr @ignlgi.k, align 8
%20 = load i64, ptr @Xa1, align 8
%21 = load i64, ptr @ignlgi.s1, align 8
%22 = load i64, ptr @ignlgi.k, align 8
%23 = mul nsw i64 %22, 53668
%24 = sub nsw i64 %21, %23
%25 = mul nsw i64 %20, %24
%26 = load i64, ptr @ignlgi.k, align 8
%27 = mul nsw i64 %26, 12211
%28 = sub nsw i64 %25, %27
store i64 %28, ptr @ignlgi.s1, align 8
%29 = load i64, ptr @ignlgi.s1, align 8
%30 = icmp slt i64 %29, 0
br i1 %30, label %31, label %35
31: ; preds = %9
%32 = load i64, ptr @Xm1, align 8
%33 = load i64, ptr @ignlgi.s1, align 8
%34 = add nsw i64 %33, %32
store i64 %34, ptr @ignlgi.s1, align 8
br label %35
35: ; preds = %31, %9
%36 = load i64, ptr @ignlgi.s2, align 8
%37 = sdiv i64 %36, 52774
store i64 %37, ptr @ignlgi.k, align 8
%38 = load i64, ptr @Xa2, align 8
%39 = load i64, ptr @ignlgi.s2, align 8
%40 = load i64, ptr @ignlgi.k, align 8
%41 = mul nsw i64 %40, 52774
%42 = sub nsw i64 %39, %41
%43 = mul nsw i64 %38, %42
%44 = load i64, ptr @ignlgi.k, align 8
%45 = mul nsw i64 %44, 3791
%46 = sub nsw i64 %43, %45
store i64 %46, ptr @ignlgi.s2, align 8
%47 = load i64, ptr @ignlgi.s2, align 8
%48 = icmp slt i64 %47, 0
br i1 %48, label %49, label %53
49: ; preds = %35
%50 = load i64, ptr @Xm2, align 8
%51 = load i64, ptr @ignlgi.s2, align 8
%52 = add nsw i64 %51, %50
store i64 %52, ptr @ignlgi.s2, align 8
br label %53
53: ; preds = %49, %35
%54 = load i64, ptr @ignlgi.s1, align 8
%55 = load i64, ptr @ignlgi.curntg, align 8
%56 = getelementptr inbounds i64, ptr @Xcg1, i64 %55
%57 = getelementptr inbounds i64, ptr %56, i64 -1
store i64 %54, ptr %57, align 8
%58 = load i64, ptr @ignlgi.s2, align 8
%59 = load i64, ptr @ignlgi.curntg, align 8
%60 = getelementptr inbounds i64, ptr @Xcg2, i64 %59
%61 = getelementptr inbounds i64, ptr %60, i64 -1
store i64 %58, ptr %61, align 8
%62 = load i64, ptr @ignlgi.s1, align 8
%63 = load i64, ptr @ignlgi.s2, align 8
%64 = sub nsw i64 %62, %63
store i64 %64, ptr @ignlgi.z, align 8
%65 = load i64, ptr @ignlgi.z, align 8
%66 = icmp slt i64 %65, 1
br i1 %66, label %67, label %72
67: ; preds = %53
%68 = load i64, ptr @Xm1, align 8
%69 = sub nsw i64 %68, 1
%70 = load i64, ptr @ignlgi.z, align 8
%71 = add nsw i64 %70, %69
store i64 %71, ptr @ignlgi.z, align 8
br label %72
72: ; preds = %67, %53
%73 = load i64, ptr @ignlgi.curntg, align 8
%74 = getelementptr inbounds i64, ptr @Xqanti, i64 %73
%75 = getelementptr inbounds i64, ptr %74, i64 -1
%76 = load i64, ptr %75, align 8
%77 = icmp ne i64 %76, 0
br i1 %77, label %78, label %82
78: ; preds = %72
%79 = load i64, ptr @Xm1, align 8
%80 = load i64, ptr @ignlgi.z, align 8
%81 = sub nsw i64 %79, %80
store i64 %81, ptr @ignlgi.z, align 8
br label %82
82: ; preds = %78, %72
%83 = load i64, ptr @ignlgi.z, align 8
store i64 %83, ptr @ignlgi.ignlgi, align 8
%84 = load i64, ptr @ignlgi.ignlgi, align 8
ret i64 %84
}
declare void @gsrgs(i64 noundef, ptr noundef) #1
declare void @inrgcm() #1
declare void @gssst(i64 noundef, ptr noundef) #1
declare i32 @setall(i64 noundef, i64 noundef) #1
declare void @gscgn(i64 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/tmpbh5_0qp8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ignlgi.ignlgi = internal global i64 0, align 8
@ignlgi.curntg = internal global i64 0, align 8
@ignlgi.k = internal global i64 0, align 8
@ignlgi.s1 = internal global i64 0, align 8
@ignlgi.s2 = internal global i64 0, align 8
@ignlgi.z = internal global i64 0, align 8
@ignlgi.qqssd = internal global i64 0, align 8
@ignlgi.qrgnin = internal global i64 0, align 8
@Xcg1 = external global [0 x i64], align 8
@Xcg2 = external global [0 x i64], align 8
@Xa1 = external global i64, align 8
@Xm1 = external global i64, align 8
@Xa2 = external global i64, align 8
@Xm2 = external global i64, align 8
@Xqanti = external global [0 x i64], align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @ignlgi() #0 {
call void @gsrgs(i64 noundef 0, ptr noundef @ignlgi.qrgnin)
%1 = load i64, ptr @ignlgi.qrgnin, align 8
%2 = icmp ne i64 %1, 0
br i1 %2, label %4, label %3
3: ; preds = %0
call void @inrgcm()
br label %4
4: ; preds = %3, %0
call void @gssst(i64 noundef 0, ptr noundef @ignlgi.qqssd)
%5 = load i64, ptr @ignlgi.qqssd, align 8
%6 = icmp ne i64 %5, 0
br i1 %6, label %9, label %7
7: ; preds = %4
%8 = call i32 @setall(i64 noundef 1234567890, i64 noundef 123456789)
br label %9
9: ; preds = %7, %4
call void @gscgn(i64 noundef 0, ptr noundef @ignlgi.curntg)
%10 = load i64, ptr @ignlgi.curntg, align 8
%11 = getelementptr inbounds i64, ptr @Xcg1, i64 %10
%12 = getelementptr inbounds i64, ptr %11, i64 -1
%13 = load i64, ptr %12, align 8
store i64 %13, ptr @ignlgi.s1, align 8
%14 = load i64, ptr @ignlgi.curntg, align 8
%15 = getelementptr inbounds i64, ptr @Xcg2, i64 %14
%16 = getelementptr inbounds i64, ptr %15, i64 -1
%17 = load i64, ptr %16, align 8
store i64 %17, ptr @ignlgi.s2, align 8
%18 = load i64, ptr @ignlgi.s1, align 8
%19 = sdiv i64 %18, 53668
store i64 %19, ptr @ignlgi.k, align 8
%20 = load i64, ptr @Xa1, align 8
%21 = load i64, ptr @ignlgi.s1, align 8
%22 = load i64, ptr @ignlgi.k, align 8
%23 = mul nsw i64 %22, 53668
%24 = sub nsw i64 %21, %23
%25 = mul nsw i64 %20, %24
%26 = load i64, ptr @ignlgi.k, align 8
%27 = mul nsw i64 %26, 12211
%28 = sub nsw i64 %25, %27
store i64 %28, ptr @ignlgi.s1, align 8
%29 = load i64, ptr @ignlgi.s1, align 8
%30 = icmp slt i64 %29, 0
br i1 %30, label %31, label %35
31: ; preds = %9
%32 = load i64, ptr @Xm1, align 8
%33 = load i64, ptr @ignlgi.s1, align 8
%34 = add nsw i64 %33, %32
store i64 %34, ptr @ignlgi.s1, align 8
br label %35
35: ; preds = %31, %9
%36 = load i64, ptr @ignlgi.s2, align 8
%37 = sdiv i64 %36, 52774
store i64 %37, ptr @ignlgi.k, align 8
%38 = load i64, ptr @Xa2, align 8
%39 = load i64, ptr @ignlgi.s2, align 8
%40 = load i64, ptr @ignlgi.k, align 8
%41 = mul nsw i64 %40, 52774
%42 = sub nsw i64 %39, %41
%43 = mul nsw i64 %38, %42
%44 = load i64, ptr @ignlgi.k, align 8
%45 = mul nsw i64 %44, 3791
%46 = sub nsw i64 %43, %45
store i64 %46, ptr @ignlgi.s2, align 8
%47 = load i64, ptr @ignlgi.s2, align 8
%48 = icmp slt i64 %47, 0
br i1 %48, label %49, label %53
49: ; preds = %35
%50 = load i64, ptr @Xm2, align 8
%51 = load i64, ptr @ignlgi.s2, align 8
%52 = add nsw i64 %51, %50
store i64 %52, ptr @ignlgi.s2, align 8
br label %53
53: ; preds = %49, %35
%54 = load i64, ptr @ignlgi.s1, align 8
%55 = load i64, ptr @ignlgi.curntg, align 8
%56 = getelementptr inbounds i64, ptr @Xcg1, i64 %55
%57 = getelementptr inbounds i64, ptr %56, i64 -1
store i64 %54, ptr %57, align 8
%58 = load i64, ptr @ignlgi.s2, align 8
%59 = load i64, ptr @ignlgi.curntg, align 8
%60 = getelementptr inbounds i64, ptr @Xcg2, i64 %59
%61 = getelementptr inbounds i64, ptr %60, i64 -1
store i64 %58, ptr %61, align 8
%62 = load i64, ptr @ignlgi.s1, align 8
%63 = load i64, ptr @ignlgi.s2, align 8
%64 = sub nsw i64 %62, %63
store i64 %64, ptr @ignlgi.z, align 8
%65 = load i64, ptr @ignlgi.z, align 8
%66 = icmp slt i64 %65, 1
br i1 %66, label %67, label %72
67: ; preds = %53
%68 = load i64, ptr @Xm1, align 8
%69 = sub nsw i64 %68, 1
%70 = load i64, ptr @ignlgi.z, align 8
%71 = add nsw i64 %70, %69
store i64 %71, ptr @ignlgi.z, align 8
br label %72
72: ; preds = %67, %53
%73 = load i64, ptr @ignlgi.curntg, align 8
%74 = getelementptr inbounds i64, ptr @Xqanti, i64 %73
%75 = getelementptr inbounds i64, ptr %74, i64 -1
%76 = load i64, ptr %75, align 8
%77 = icmp ne i64 %76, 0
br i1 %77, label %78, label %82
78: ; preds = %72
%79 = load i64, ptr @Xm1, align 8
%80 = load i64, ptr @ignlgi.z, align 8
%81 = sub nsw i64 %79, %80
store i64 %81, ptr @ignlgi.z, align 8
br label %82
82: ; preds = %78, %72
%83 = load i64, ptr @ignlgi.z, align 8
store i64 %83, ptr @ignlgi.ignlgi, align 8
%84 = load i64, ptr @ignlgi.ignlgi, align 8
ret i64 %84
}
declare void @gsrgs(i64 noundef, ptr noundef) #1
declare void @inrgcm() #1
declare void @gssst(i64 noundef, ptr noundef) #1
declare i32 @setall(i64 noundef, i64 noundef) #1
declare void @gscgn(i64 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/tmp2_mfagsy.c'
source_filename = "/tmp/tmp2_mfagsy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [53 x i8] c"Usage:\0A\09%s [-ecb] [-key < 128 | 192 | 256 >] <text>\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp eq ptr null, %3
br i1 %4, label %5, label %6
5: ; preds = %1
br label %9
6: ; preds = %1
%7 = load ptr, ptr %2, align 8
%8 = call i32 @printf(ptr noundef @.str, ptr noundef %7)
br label %9
9: ; preds = %6, %5
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2_mfagsy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [53 x i8] c"Usage:\0A\09%s [-ecb] [-key < 128 | 192 | 256 >] <text>\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp eq ptr null, %3
br i1 %4, label %5, label %6
5: ; preds = %1
br label %9
6: ; preds = %1
%7 = load ptr, ptr %2, align 8
%8 = call i32 @printf(ptr noundef @.str, ptr noundef %7)
br label %9
9: ; preds = %6, %5
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7_99fxzf.c'
source_filename = "/tmp/tmp7_99fxzf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %5, align 8
%7 = load ptr, ptr %6, align 8
%8 = call i32 @UserInitializationCalloutf(ptr noundef %7)
%9 = call i32 @Escher_SetFactoryInit(i64 noundef 0)
%10 = call i32 (...) @InitializeOoaEventPool()
%11 = call i32 (...) @ApplicationLevelInitialization()
%12 = load ptr, ptr %5, align 8
%13 = load ptr, ptr %12, align 8
%14 = call i32 @UserPreOoaInitializationCalloutf(ptr noundef %13)
%15 = call i32 (...) @pacemaker_execute_initialization()
%16 = call i32 (...) @hostmonitor_execute_initialization()
%17 = call i32 (...) @heart_execute_initialization()
%18 = call i32 (...) @Escher_xtUML_run()
%19 = call i32 (...) @UserPreShutdownCalloutf()
%20 = call i32 (...) @UserPostShutdownCalloutf()
ret i32 0
}
declare i32 @UserInitializationCalloutf(ptr noundef) #1
declare i32 @Escher_SetFactoryInit(i64 noundef) #1
declare i32 @InitializeOoaEventPool(...) #1
declare i32 @ApplicationLevelInitialization(...) #1
declare i32 @UserPreOoaInitializationCalloutf(ptr noundef) #1
declare i32 @pacemaker_execute_initialization(...) #1
declare i32 @hostmonitor_execute_initialization(...) #1
declare i32 @heart_execute_initialization(...) #1
declare i32 @Escher_xtUML_run(...) #1
declare i32 @UserPreShutdownCalloutf(...) #1
declare i32 @UserPostShutdownCalloutf(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7_99fxzf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %5, align 8
%7 = load ptr, ptr %6, align 8
%8 = call i32 @UserInitializationCalloutf(ptr noundef %7)
%9 = call i32 @Escher_SetFactoryInit(i64 noundef 0)
%10 = call i32 (...) @InitializeOoaEventPool()
%11 = call i32 (...) @ApplicationLevelInitialization()
%12 = load ptr, ptr %5, align 8
%13 = load ptr, ptr %12, align 8
%14 = call i32 @UserPreOoaInitializationCalloutf(ptr noundef %13)
%15 = call i32 (...) @pacemaker_execute_initialization()
%16 = call i32 (...) @hostmonitor_execute_initialization()
%17 = call i32 (...) @heart_execute_initialization()
%18 = call i32 (...) @Escher_xtUML_run()
%19 = call i32 (...) @UserPreShutdownCalloutf()
%20 = call i32 (...) @UserPostShutdownCalloutf()
ret i32 0
}
declare i32 @UserInitializationCalloutf(ptr noundef) #1
declare i32 @Escher_SetFactoryInit(i64 noundef) #1
declare i32 @InitializeOoaEventPool(...) #1
declare i32 @ApplicationLevelInitialization(...) #1
declare i32 @UserPreOoaInitializationCalloutf(ptr noundef) #1
declare i32 @pacemaker_execute_initialization(...) #1
declare i32 @hostmonitor_execute_initialization(...) #1
declare i32 @heart_execute_initialization(...) #1
declare i32 @Escher_xtUML_run(...) #1
declare i32 @UserPreShutdownCalloutf(...) #1
declare i32 @UserPostShutdownCalloutf(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplz77z4sk.c'
source_filename = "/tmp/tmplz77z4sk.c"
target datalayout = "e-m:e-p270: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/tmplz77z4sk.c"
target datalayout = "e-m:e-p270: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/tmp452sywiu.c'
source_filename = "/tmp/tmp452sywiu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"w\00", align 1
@.str.1 = private unnamed_addr constant [45 x i8] c"The file was not created/opened for writing\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"P2\0A\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"%d %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @write_graphics(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
store i32 %5, ptr %12, align 4
%16 = load ptr, ptr %7, align 8
%17 = call ptr @fopen(ptr noundef %16, ptr noundef @.str)
store ptr %17, ptr %13, align 8
%18 = load ptr, ptr %13, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %22
20: ; preds = %6
%21 = call i32 @printf(ptr noundef @.str.1)
br label %103
22: ; preds = %6
%23 = load ptr, ptr %13, align 8
%24 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef @.str.2)
%25 = load ptr, ptr %13, align 8
%26 = load i32, ptr %10, align 4
%27 = load i32, ptr %9, align 4
%28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef @.str.3, i32 noundef %26, i32 noundef %27)
%29 = load ptr, ptr %13, align 8
%30 = load i32, ptr %12, align 4
%31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef @.str.4, i32 noundef %30)
%32 = load i32, ptr %11, align 4
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %67
34: ; preds = %22
store i32 0, ptr %14, align 4
br label %35
35: ; preds = %63, %34
%36 = load i32, ptr %14, align 4
%37 = load i32, ptr %9, align 4
%38 = icmp slt i32 %36, %37
br i1 %38, label %39, label %66
39: ; preds = %35
store i32 0, ptr %15, align 4
br label %40
40: ; preds = %57, %39
%41 = load i32, ptr %15, align 4
%42 = load i32, ptr %10, align 4
%43 = icmp slt i32 %41, %42
br i1 %43, label %44, label %60
44: ; preds = %40
%45 = load ptr, ptr %13, align 8
%46 = load ptr, ptr %8, align 8
%47 = load i32, ptr %14, align 4
%48 = load i32, ptr %10, align 4
%49 = mul nsw i32 %47, %48
%50 = load i32, ptr %15, align 4
%51 = add nsw i32 %49, %50
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds float, ptr %46, i64 %52
%54 = load float, ptr %53, align 4
%55 = fptosi float %54 to i32
%56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef @.str.5, i32 noundef %55)
br label %57
57: ; preds = %44
%58 = load i32, ptr %15, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %15, align 4
br label %40, !llvm.loop !6
60: ; preds = %40
%61 = load ptr, ptr %13, align 8
%62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef @.str.6)
br label %63
63: ; preds = %60
%64 = load i32, ptr %14, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %14, align 4
br label %35, !llvm.loop !8
66: ; preds = %35
br label %100
67: ; preds = %22
store i32 0, ptr %14, align 4
br label %68
68: ; preds = %96, %67
%69 = load i32, ptr %14, align 4
%70 = load i32, ptr %9, align 4
%71 = icmp slt i32 %69, %70
br i1 %71, label %72, label %99
72: ; preds = %68
store i32 0, ptr %15, align 4
br label %73
73: ; preds = %90, %72
%74 = load i32, ptr %15, align 4
%75 = load i32, ptr %10, align 4
%76 = icmp slt i32 %74, %75
br i1 %76, label %77, label %93
77: ; preds = %73
%78 = load ptr, ptr %13, align 8
%79 = load ptr, ptr %8, align 8
%80 = load i32, ptr %15, align 4
%81 = load i32, ptr %9, align 4
%82 = mul nsw i32 %80, %81
%83 = load i32, ptr %14, align 4
%84 = add nsw i32 %82, %83
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds float, ptr %79, i64 %85
%87 = load float, ptr %86, align 4
%88 = fptosi float %87 to i32
%89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %78, ptr noundef @.str.5, i32 noundef %88)
br label %90
90: ; preds = %77
%91 = load i32, ptr %15, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr %15, align 4
br label %73, !llvm.loop !9
93: ; preds = %73
%94 = load ptr, ptr %13, align 8
%95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %94, ptr noundef @.str.6)
br label %96
96: ; preds = %93
%97 = load i32, ptr %14, align 4
%98 = add nsw i32 %97, 1
store i32 %98, ptr %14, align 4
br label %68, !llvm.loop !10
99: ; preds = %68
br label %100
100: ; preds = %99, %66
%101 = load ptr, ptr %13, align 8
%102 = call i32 @fclose(ptr noundef %101)
br label %103
103: ; preds = %100, %20
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @fprintf(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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp452sywiu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"w\00", align 1
@.str.1 = private unnamed_addr constant [45 x i8] c"The file was not created/opened for writing\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"P2\0A\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"%d %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @write_graphics(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
store i32 %5, ptr %12, align 4
%16 = load ptr, ptr %7, align 8
%17 = call ptr @fopen(ptr noundef %16, ptr noundef @.str)
store ptr %17, ptr %13, align 8
%18 = load ptr, ptr %13, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %22
20: ; preds = %6
%21 = call i32 @printf(ptr noundef @.str.1)
br label %111
22: ; preds = %6
%23 = load ptr, ptr %13, align 8
%24 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef @.str.2)
%25 = load ptr, ptr %13, align 8
%26 = load i32, ptr %10, align 4
%27 = load i32, ptr %9, align 4
%28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef @.str.3, i32 noundef %26, i32 noundef %27)
%29 = load ptr, ptr %13, align 8
%30 = load i32, ptr %12, align 4
%31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef @.str.4, i32 noundef %30)
%32 = load i32, ptr %11, align 4
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %71
34: ; preds = %22
store i32 0, ptr %14, align 4
%35 = load i32, ptr %14, align 4
%36 = load i32, ptr %9, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %.lr.ph8, label %70
.lr.ph8: ; preds = %34
br label %38
38: ; preds = %.lr.ph8, %64
store i32 0, ptr %15, align 4
%39 = load i32, ptr %15, align 4
%40 = load i32, ptr %10, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %.lr.ph5, label %61
.lr.ph5: ; preds = %38
br label %42
42: ; preds = %.lr.ph5, %55
%43 = load ptr, ptr %13, align 8
%44 = load ptr, ptr %8, align 8
%45 = load i32, ptr %14, align 4
%46 = load i32, ptr %10, align 4
%47 = mul nsw i32 %45, %46
%48 = load i32, ptr %15, align 4
%49 = add nsw i32 %47, %48
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds float, ptr %44, i64 %50
%52 = load float, ptr %51, align 4
%53 = fptosi float %52 to i32
%54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef @.str.5, i32 noundef %53)
br label %55
55: ; preds = %42
%56 = load i32, ptr %15, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %15, align 4
%58 = load i32, ptr %15, align 4
%59 = load i32, ptr %10, align 4
%60 = icmp slt i32 %58, %59
br i1 %60, label %42, label %._crit_edge6, !llvm.loop !6
._crit_edge6: ; preds = %55
br label %61
61: ; preds = %._crit_edge6, %38
%62 = load ptr, ptr %13, align 8
%63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef @.str.6)
br label %64
64: ; preds = %61
%65 = load i32, ptr %14, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %14, align 4
%67 = load i32, ptr %14, align 4
%68 = load i32, ptr %9, align 4
%69 = icmp slt i32 %67, %68
br i1 %69, label %38, label %._crit_edge9, !llvm.loop !8
._crit_edge9: ; preds = %64
br label %70
70: ; preds = %._crit_edge9, %34
br label %108
71: ; preds = %22
store i32 0, ptr %14, align 4
%72 = load i32, ptr %14, align 4
%73 = load i32, ptr %9, align 4
%74 = icmp slt i32 %72, %73
br i1 %74, label %.lr.ph2, label %107
.lr.ph2: ; preds = %71
br label %75
75: ; preds = %.lr.ph2, %101
store i32 0, ptr %15, align 4
%76 = load i32, ptr %15, align 4
%77 = load i32, ptr %10, align 4
%78 = icmp slt i32 %76, %77
br i1 %78, label %.lr.ph, label %98
.lr.ph: ; preds = %75
br label %79
79: ; preds = %.lr.ph, %92
%80 = load ptr, ptr %13, align 8
%81 = load ptr, ptr %8, align 8
%82 = load i32, ptr %15, align 4
%83 = load i32, ptr %9, align 4
%84 = mul nsw i32 %82, %83
%85 = load i32, ptr %14, align 4
%86 = add nsw i32 %84, %85
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds float, ptr %81, i64 %87
%89 = load float, ptr %88, align 4
%90 = fptosi float %89 to i32
%91 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef @.str.5, i32 noundef %90)
br label %92
92: ; preds = %79
%93 = load i32, ptr %15, align 4
%94 = add nsw i32 %93, 1
store i32 %94, ptr %15, align 4
%95 = load i32, ptr %15, align 4
%96 = load i32, ptr %10, align 4
%97 = icmp slt i32 %95, %96
br i1 %97, label %79, label %._crit_edge, !llvm.loop !9
._crit_edge: ; preds = %92
br label %98
98: ; preds = %._crit_edge, %75
%99 = load ptr, ptr %13, align 8
%100 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %99, ptr noundef @.str.6)
br label %101
101: ; preds = %98
%102 = load i32, ptr %14, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %14, align 4
%104 = load i32, ptr %14, align 4
%105 = load i32, ptr %9, align 4
%106 = icmp slt i32 %104, %105
br i1 %106, label %75, label %._crit_edge3, !llvm.loop !10
._crit_edge3: ; preds = %101
br label %107
107: ; preds = %._crit_edge3, %71
br label %108
108: ; preds = %107, %70
%109 = load ptr, ptr %13, align 8
%110 = call i32 @fclose(ptr noundef %109)
br label %111
111: ; preds = %108, %20
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @fprintf(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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpp7809mvo.c'
source_filename = "/tmp/tmpp7809mvo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"XShrinkRegion called\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @XShrinkRegion() #0 {
%1 = 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/tmpp7809mvo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"XShrinkRegion called\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @XShrinkRegion() #0 {
%1 = 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/tmpha43y98m.c'
source_filename = "/tmp/tmpha43y98m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @l_test_all() #0 {
%1 = call i32 (...) @l_create_test()
%2 = call i32 (...) @l_of_buffer_test()
%3 = call i32 (...) @l_fn_test()
%4 = call i32 (...) @l_copy_test()
%5 = call i32 (...) @l_sub_test()
%6 = call i32 (...) @l_of_a_test()
%7 = call i32 (...) @l_iterator_test()
%8 = call i32 (...) @l_concat_test()
%9 = call i32 (...) @l_index_fn_test()
%10 = call i32 (...) @l_reverse_test()
%11 = call i32 (...) @l_shuffle_test()
%12 = call i32 (...) @l_sort_test()
%13 = call i32 (...) @l_insert_test()
%14 = call i32 (...) @l_remove_test()
%15 = call i32 (...) @l_map_test()
%16 = call i32 (...) @l_map2_test()
%17 = call i32 (...) @l_map3_test()
%18 = call i32 (...) @l_each_test()
%19 = call i32 (...) @l_foldl_test()
%20 = call i32 (...) @l_foldr_test()
%21 = call i32 (...) @l_filter_test()
%22 = call i32 (...) @l_choose_test()
%23 = call i32 (...) @l_exists_test()
%24 = call i32 (...) @l_forall_test()
ret void
}
declare i32 @l_create_test(...) #1
declare i32 @l_of_buffer_test(...) #1
declare i32 @l_fn_test(...) #1
declare i32 @l_copy_test(...) #1
declare i32 @l_sub_test(...) #1
declare i32 @l_of_a_test(...) #1
declare i32 @l_iterator_test(...) #1
declare i32 @l_concat_test(...) #1
declare i32 @l_index_fn_test(...) #1
declare i32 @l_reverse_test(...) #1
declare i32 @l_shuffle_test(...) #1
declare i32 @l_sort_test(...) #1
declare i32 @l_insert_test(...) #1
declare i32 @l_remove_test(...) #1
declare i32 @l_map_test(...) #1
declare i32 @l_map2_test(...) #1
declare i32 @l_map3_test(...) #1
declare i32 @l_each_test(...) #1
declare i32 @l_foldl_test(...) #1
declare i32 @l_foldr_test(...) #1
declare i32 @l_filter_test(...) #1
declare i32 @l_choose_test(...) #1
declare i32 @l_exists_test(...) #1
declare i32 @l_forall_test(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpha43y98m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @l_test_all() #0 {
%1 = call i32 (...) @l_create_test()
%2 = call i32 (...) @l_of_buffer_test()
%3 = call i32 (...) @l_fn_test()
%4 = call i32 (...) @l_copy_test()
%5 = call i32 (...) @l_sub_test()
%6 = call i32 (...) @l_of_a_test()
%7 = call i32 (...) @l_iterator_test()
%8 = call i32 (...) @l_concat_test()
%9 = call i32 (...) @l_index_fn_test()
%10 = call i32 (...) @l_reverse_test()
%11 = call i32 (...) @l_shuffle_test()
%12 = call i32 (...) @l_sort_test()
%13 = call i32 (...) @l_insert_test()
%14 = call i32 (...) @l_remove_test()
%15 = call i32 (...) @l_map_test()
%16 = call i32 (...) @l_map2_test()
%17 = call i32 (...) @l_map3_test()
%18 = call i32 (...) @l_each_test()
%19 = call i32 (...) @l_foldl_test()
%20 = call i32 (...) @l_foldr_test()
%21 = call i32 (...) @l_filter_test()
%22 = call i32 (...) @l_choose_test()
%23 = call i32 (...) @l_exists_test()
%24 = call i32 (...) @l_forall_test()
ret void
}
declare i32 @l_create_test(...) #1
declare i32 @l_of_buffer_test(...) #1
declare i32 @l_fn_test(...) #1
declare i32 @l_copy_test(...) #1
declare i32 @l_sub_test(...) #1
declare i32 @l_of_a_test(...) #1
declare i32 @l_iterator_test(...) #1
declare i32 @l_concat_test(...) #1
declare i32 @l_index_fn_test(...) #1
declare i32 @l_reverse_test(...) #1
declare i32 @l_shuffle_test(...) #1
declare i32 @l_sort_test(...) #1
declare i32 @l_insert_test(...) #1
declare i32 @l_remove_test(...) #1
declare i32 @l_map_test(...) #1
declare i32 @l_map2_test(...) #1
declare i32 @l_map3_test(...) #1
declare i32 @l_each_test(...) #1
declare i32 @l_foldl_test(...) #1
declare i32 @l_foldr_test(...) #1
declare i32 @l_filter_test(...) #1
declare i32 @l_choose_test(...) #1
declare i32 @l_exists_test(...) #1
declare i32 @l_forall_test(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcwykbw2n.c'
source_filename = "/tmp/tmpcwykbw2n.c"
target datalayout = "e-m:e-p270: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.passwd = type { ptr }
@.str = private unnamed_addr constant [8 x i8] c"LOGNAME\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"USER\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @get_user(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%6 = call ptr (...) @getlogin()
%7 = load ptr, ptr %2, align 8
store ptr %6, ptr %7, align 8
%8 = load ptr, ptr %2, align 8
%9 = load ptr, ptr %8, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %14, label %11
11: ; preds = %1
%12 = call ptr @getenv(ptr noundef @.str)
%13 = load ptr, ptr %2, align 8
store ptr %12, ptr %13, align 8
br label %14
14: ; preds = %11, %1
%15 = load ptr, ptr %2, align 8
%16 = load ptr, ptr %15, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %21, label %18
18: ; preds = %14
%19 = call ptr @getenv(ptr noundef @.str.1)
%20 = load ptr, ptr %2, align 8
store ptr %19, ptr %20, align 8
br label %21
21: ; preds = %18, %14
%22 = load ptr, ptr %2, align 8
%23 = load ptr, ptr %22, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %25, label %49
25: ; preds = %21
%26 = load ptr, ptr %2, align 8
%27 = load ptr, ptr %26, align 8
%28 = call ptr @getpwnam(ptr noundef %27)
store ptr %28, ptr %5, align 8
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds %struct.passwd, ptr %29, i32 0, i32 0
%31 = load ptr, ptr %30, align 8
store ptr %31, ptr %3, align 8
%32 = load ptr, ptr %3, align 8
%33 = call ptr @strchr(ptr noundef %32, i8 noundef signext 44)
store ptr %33, ptr %4, align 8
%34 = icmp ne ptr %33, null
br i1 %34, label %35, label %37
35: ; preds = %25
%36 = load ptr, ptr %4, align 8
store i8 0, ptr %36, align 1
br label %37
37: ; preds = %35, %25
%38 = load ptr, ptr %3, align 8
%39 = icmp ne ptr %38, null
br i1 %39, label %40, label %48
40: ; preds = %37
%41 = load ptr, ptr %3, align 8
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
%44 = icmp ne i32 %43, 0
br i1 %44, label %45, label %48
45: ; preds = %40
%46 = load ptr, ptr %3, align 8
%47 = load ptr, ptr %2, align 8
store ptr %46, ptr %47, align 8
br label %48
48: ; preds = %45, %40, %37
br label %49
49: ; preds = %48, %21
ret void
}
declare ptr @getlogin(...) #1
declare ptr @getenv(ptr noundef) #1
declare ptr @getpwnam(ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcwykbw2n.c"
target datalayout = "e-m:e-p270: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.passwd = type { ptr }
@.str = private unnamed_addr constant [8 x i8] c"LOGNAME\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"USER\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @get_user(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%6 = call ptr (...) @getlogin()
%7 = load ptr, ptr %2, align 8
store ptr %6, ptr %7, align 8
%8 = load ptr, ptr %2, align 8
%9 = load ptr, ptr %8, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %14, label %11
11: ; preds = %1
%12 = call ptr @getenv(ptr noundef @.str)
%13 = load ptr, ptr %2, align 8
store ptr %12, ptr %13, align 8
br label %14
14: ; preds = %11, %1
%15 = load ptr, ptr %2, align 8
%16 = load ptr, ptr %15, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %21, label %18
18: ; preds = %14
%19 = call ptr @getenv(ptr noundef @.str.1)
%20 = load ptr, ptr %2, align 8
store ptr %19, ptr %20, align 8
br label %21
21: ; preds = %18, %14
%22 = load ptr, ptr %2, align 8
%23 = load ptr, ptr %22, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %25, label %49
25: ; preds = %21
%26 = load ptr, ptr %2, align 8
%27 = load ptr, ptr %26, align 8
%28 = call ptr @getpwnam(ptr noundef %27)
store ptr %28, ptr %5, align 8
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds %struct.passwd, ptr %29, i32 0, i32 0
%31 = load ptr, ptr %30, align 8
store ptr %31, ptr %3, align 8
%32 = load ptr, ptr %3, align 8
%33 = call ptr @strchr(ptr noundef %32, i8 noundef signext 44)
store ptr %33, ptr %4, align 8
%34 = icmp ne ptr %33, null
br i1 %34, label %35, label %37
35: ; preds = %25
%36 = load ptr, ptr %4, align 8
store i8 0, ptr %36, align 1
br label %37
37: ; preds = %35, %25
%38 = load ptr, ptr %3, align 8
%39 = icmp ne ptr %38, null
br i1 %39, label %40, label %48
40: ; preds = %37
%41 = load ptr, ptr %3, align 8
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
%44 = icmp ne i32 %43, 0
br i1 %44, label %45, label %48
45: ; preds = %40
%46 = load ptr, ptr %3, align 8
%47 = load ptr, ptr %2, align 8
store ptr %46, ptr %47, align 8
br label %48
48: ; preds = %45, %40, %37
br label %49
49: ; preds = %48, %21
ret void
}
declare ptr @getlogin(...) #1
declare ptr @getenv(ptr noundef) #1
declare ptr @getpwnam(ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpl9j2guuc.c'
source_filename = "/tmp/tmpl9j2guuc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @towerOfHanoi(i32 noundef 17, i32 noundef 1, i32 noundef 3, i32 noundef 2)
ret i32 0
}
declare i32 @towerOfHanoi(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl9j2guuc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @towerOfHanoi(i32 noundef 17, i32 noundef 1, i32 noundef 3, i32 noundef 2)
ret i32 0
}
declare i32 @towerOfHanoi(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1u48tnxt.c'
source_filename = "/tmp/tmp1u48tnxt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @sinh(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store double %0, ptr %3, align 8
%6 = load double, ptr %3, align 8
%7 = fcmp oge double %6, 0.000000e+00
br i1 %7, label %8, label %16
8: ; preds = %1
%9 = load double, ptr %3, align 8
%10 = call double @exp(double noundef %9) #2
store double %10, ptr %4, align 8
%11 = load double, ptr %4, align 8
%12 = load double, ptr %4, align 8
%13 = fdiv double 1.000000e+00, %12
%14 = fsub double %11, %13
%15 = fdiv double %14, 2.000000e+00
store double %15, ptr %2, align 8
br label %25
16: ; preds = %1
%17 = load double, ptr %3, align 8
%18 = fneg double %17
%19 = call double @exp(double noundef %18) #2
store double %19, ptr %5, align 8
%20 = load double, ptr %5, align 8
%21 = fdiv double 1.000000e+00, %20
%22 = load double, ptr %5, align 8
%23 = fsub double %21, %22
%24 = fdiv double %23, 2.000000e+00
store double %24, ptr %2, align 8
br label %25
25: ; preds = %16, %8
%26 = load double, ptr %2, align 8
ret double %26
}
; Function Attrs: nounwind
declare double @exp(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1u48tnxt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @sinh(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store double %0, ptr %3, align 8
%6 = load double, ptr %3, align 8
%7 = fcmp oge double %6, 0.000000e+00
br i1 %7, label %8, label %16
8: ; preds = %1
%9 = load double, ptr %3, align 8
%10 = call double @exp(double noundef %9) #2
store double %10, ptr %4, align 8
%11 = load double, ptr %4, align 8
%12 = load double, ptr %4, align 8
%13 = fdiv double 1.000000e+00, %12
%14 = fsub double %11, %13
%15 = fdiv double %14, 2.000000e+00
store double %15, ptr %2, align 8
br label %25
16: ; preds = %1
%17 = load double, ptr %3, align 8
%18 = fneg double %17
%19 = call double @exp(double noundef %18) #2
store double %19, ptr %5, align 8
%20 = load double, ptr %5, align 8
%21 = fdiv double 1.000000e+00, %20
%22 = load double, ptr %5, align 8
%23 = fsub double %21, %22
%24 = fdiv double %23, 2.000000e+00
store double %24, ptr %2, align 8
br label %25
25: ; preds = %16, %8
%26 = load double, ptr %2, align 8
ret double %26
}
; Function Attrs: nounwind
declare double @exp(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4o4svm5e.c'
source_filename = "/tmp/tmp4o4svm5e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@I2C_TENBIT = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @I2C_disable10BitAddressing(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 = load i32, ptr @I2C_TENBIT, align 4
%7 = call i32 @ioctl(i32 noundef %5, i32 noundef %6, i32 noundef 0)
store i32 %7, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %1
%11 = load i32, ptr %4, align 4
store i32 %11, ptr %2, align 4
br label %13
12: ; preds = %1
store i32 0, ptr %2, align 4
br label %13
13: ; preds = %12, %10
%14 = load i32, ptr %2, align 4
ret i32 %14
}
declare i32 @ioctl(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4o4svm5e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@I2C_TENBIT = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @I2C_disable10BitAddressing(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 = load i32, ptr @I2C_TENBIT, align 4
%7 = call i32 @ioctl(i32 noundef %5, i32 noundef %6, i32 noundef 0)
store i32 %7, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %1
%11 = load i32, ptr %4, align 4
store i32 %11, ptr %2, align 4
br label %13
12: ; preds = %1
store i32 0, ptr %2, align 4
br label %13
13: ; preds = %12, %10
%14 = load i32, ptr %2, align 4
ret i32 %14
}
declare i32 @ioctl(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxuzx4_b7.c'
source_filename = "/tmp/tmpxuzx4_b7.c"
target datalayout = "e-m:e-p270: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/tmpxuzx4_b7.c"
target datalayout = "e-m:e-p270: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/tmpyvsvs7s7.c'
source_filename = "/tmp/tmpyvsvs7s7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"CPP Defs:\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cpp_defs() #0 {
%1 = 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/tmpyvsvs7s7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"CPP Defs:\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cpp_defs() #0 {
%1 = 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/tmp32p43hp8.c'
source_filename = "/tmp/tmp32p43hp8.c"
target datalayout = "e-m:e-p270: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/tmp32p43hp8.c"
target datalayout = "e-m:e-p270: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/tmpxy2pyd2l.c'
source_filename = "/tmp/tmpxy2pyd2l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i64 }
@.str = private unnamed_addr constant [7 x i8] c"select\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 %struct.timeval, align 8
store i32 0, ptr %1, align 4
%4 = call i32 @FD_ZERO(ptr noundef %2)
%5 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 0
store i32 3, ptr %5, align 8
%6 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 1
store i64 0, ptr %6, align 8
%7 = call i32 @select(i32 noundef 1, ptr noundef %2, i32 noundef 0, i32 noundef 0, ptr noundef %3)
%8 = icmp eq i32 %7, -1
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 @perror(ptr noundef @.str)
store i32 1, ptr %1, align 4
br label %12
11: ; preds = %0
store i32 0, ptr %1, align 4
br label %12
12: ; preds = %11, %9
%13 = load i32, ptr %1, align 4
ret i32 %13
}
declare i32 @FD_ZERO(ptr noundef) #1
declare i32 @select(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxy2pyd2l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i64 }
@.str = private unnamed_addr constant [7 x i8] c"select\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 %struct.timeval, align 8
store i32 0, ptr %1, align 4
%4 = call i32 @FD_ZERO(ptr noundef %2)
%5 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 0
store i32 3, ptr %5, align 8
%6 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 1
store i64 0, ptr %6, align 8
%7 = call i32 @select(i32 noundef 1, ptr noundef %2, i32 noundef 0, i32 noundef 0, ptr noundef %3)
%8 = icmp eq i32 %7, -1
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 @perror(ptr noundef @.str)
store i32 1, ptr %1, align 4
br label %12
11: ; preds = %0
store i32 0, ptr %1, align 4
br label %12
12: ; preds = %11, %9
%13 = load i32, ptr %1, align 4
ret i32 %13
}
declare i32 @FD_ZERO(ptr noundef) #1
declare i32 @select(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplimbelbe.c'
source_filename = "/tmp/tmplimbelbe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"%d %d %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"\0A\0AProduct: %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"\0AMax count: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i64, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
store i64 0, ptr %11, align 8
store i32 -999, ptr %12, align 4
br label %14
14: ; preds = %61, %2
%15 = load i32, ptr %12, align 4
%16 = icmp sle i32 %15, 999
br i1 %16, label %17, label %64
17: ; preds = %14
store i32 -1000, ptr %13, align 4
br label %18
18: ; preds = %57, %17
%19 = load i32, ptr %13, align 4
%20 = icmp sle i32 %19, 1000
br i1 %20, label %21, label %60
21: ; preds = %18
store i32 1, ptr %10, align 4
store i32 0, ptr %7, align 4
br label %22
22: ; preds = %21, %39
%23 = load i32, ptr %10, align 4
%24 = call i32 @pow(i32 noundef %23, i32 noundef 2)
%25 = load i32, ptr %12, align 4
%26 = load i32, ptr %10, align 4
%27 = mul nsw i32 %25, %26
%28 = add nsw i32 %24, %27
%29 = load i32, ptr %13, align 4
%30 = add nsw i32 %28, %29
%31 = sext i32 %30 to i64
store i64 %31, ptr %11, align 8
%32 = load i64, ptr %11, align 8
%33 = call i64 @is_prime(i64 noundef %32)
%34 = icmp ne i64 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %22
%36 = load i32, ptr %7, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %7, align 4
br label %39
38: ; preds = %22
br label %42
39: ; preds = %35
%40 = load i32, ptr %10, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %10, align 4
br label %22
42: ; preds = %38
%43 = load i32, ptr %7, align 4
%44 = load i32, ptr %6, align 4
%45 = icmp sgt i32 %43, %44
br i1 %45, label %46, label %56
46: ; preds = %42
%47 = load i32, ptr %7, align 4
store i32 %47, ptr %6, align 4
%48 = load i32, ptr %12, align 4
store i32 %48, ptr %8, align 4
%49 = load i32, ptr %13, align 4
store i32 %49, ptr %9, align 4
%50 = load i32, ptr %8, align 4
%51 = load i32, ptr %9, align 4
%52 = load i32, ptr %8, align 4
%53 = load i32, ptr %9, align 4
%54 = mul nsw i32 %52, %53
%55 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %50, i32 noundef %51, i32 noundef %54)
br label %56
56: ; preds = %46, %42
br label %57
57: ; preds = %56
%58 = load i32, ptr %13, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %13, align 4
br label %18, !llvm.loop !6
60: ; preds = %18
br label %61
61: ; preds = %60
%62 = load i32, ptr %12, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %12, align 4
br label %14, !llvm.loop !8
64: ; preds = %14
%65 = load i32, ptr %8, align 4
%66 = load i32, ptr %9, align 4
%67 = mul nsw i32 %65, %66
%68 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %67)
%69 = load i32, ptr %6, align 4
%70 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %69)
ret i32 0
}
declare i32 @pow(i32 noundef, i32 noundef) #1
declare i64 @is_prime(i64 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmplimbelbe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"%d %d %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"\0A\0AProduct: %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"\0AMax count: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i64, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
store i64 0, ptr %11, align 8
store i32 -999, ptr %12, align 4
%14 = load i32, ptr %12, align 4
%15 = icmp sle i32 %14, 999
br i1 %15, label %.lr.ph5, label %77
.lr.ph5: ; preds = %2
br label %16
16: ; preds = %.lr.ph5, %72
store i32 -1000, ptr %13, align 4
%17 = load i32, ptr %13, align 4
%18 = icmp sle i32 %17, 1000
br i1 %18, label %.lr.ph2, label %71
.lr.ph2: ; preds = %16
br label %19
19: ; preds = %.lr.ph2, %66
store i32 1, ptr %10, align 4
store i32 0, ptr %7, align 4
%20 = load i32, ptr %10, align 4
%21 = call i32 @pow(i32 noundef %20, i32 noundef 2)
%22 = load i32, ptr %12, align 4
%23 = load i32, ptr %10, align 4
%24 = mul nsw i32 %22, %23
%25 = add nsw i32 %21, %24
%26 = load i32, ptr %13, align 4
%27 = add nsw i32 %25, %26
%28 = sext i32 %27 to i64
store i64 %28, ptr %11, align 8
%29 = load i64, ptr %11, align 8
%30 = call i64 @is_prime(i64 noundef %29)
%31 = icmp ne i64 %30, 0
br i1 %31, label %.lr.ph, label %35
.lr.ph: ; preds = %19
br label %32
32: ; preds = %.lr.ph, %36
%33 = load i32, ptr %7, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %7, align 4
br label %36
._crit_edge: ; preds = %36
br label %35
35: ; preds = %._crit_edge, %19
br label %51
36: ; preds = %32
%37 = load i32, ptr %10, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %10, align 4
%39 = load i32, ptr %10, align 4
%40 = call i32 @pow(i32 noundef %39, i32 noundef 2)
%41 = load i32, ptr %12, align 4
%42 = load i32, ptr %10, align 4
%43 = mul nsw i32 %41, %42
%44 = add nsw i32 %40, %43
%45 = load i32, ptr %13, align 4
%46 = add nsw i32 %44, %45
%47 = sext i32 %46 to i64
store i64 %47, ptr %11, align 8
%48 = load i64, ptr %11, align 8
%49 = call i64 @is_prime(i64 noundef %48)
%50 = icmp ne i64 %49, 0
br i1 %50, label %32, label %._crit_edge
51: ; preds = %35
%52 = load i32, ptr %7, align 4
%53 = load i32, ptr %6, align 4
%54 = icmp sgt i32 %52, %53
br i1 %54, label %55, label %65
55: ; preds = %51
%56 = load i32, ptr %7, align 4
store i32 %56, ptr %6, align 4
%57 = load i32, ptr %12, align 4
store i32 %57, ptr %8, align 4
%58 = load i32, ptr %13, align 4
store i32 %58, ptr %9, align 4
%59 = load i32, ptr %8, align 4
%60 = load i32, ptr %9, align 4
%61 = load i32, ptr %8, align 4
%62 = load i32, ptr %9, align 4
%63 = mul nsw i32 %61, %62
%64 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %59, i32 noundef %60, i32 noundef %63)
br label %65
65: ; preds = %55, %51
br label %66
66: ; preds = %65
%67 = load i32, ptr %13, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %13, align 4
%69 = load i32, ptr %13, align 4
%70 = icmp sle i32 %69, 1000
br i1 %70, label %19, label %._crit_edge3, !llvm.loop !6
._crit_edge3: ; preds = %66
br label %71
71: ; preds = %._crit_edge3, %16
br label %72
72: ; preds = %71
%73 = load i32, ptr %12, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %12, align 4
%75 = load i32, ptr %12, align 4
%76 = icmp sle i32 %75, 999
br i1 %76, label %16, label %._crit_edge6, !llvm.loop !8
._crit_edge6: ; preds = %72
br label %77
77: ; preds = %._crit_edge6, %2
%78 = load i32, ptr %8, align 4
%79 = load i32, ptr %9, align 4
%80 = mul nsw i32 %78, %79
%81 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %80)
%82 = load i32, ptr %6, align 4
%83 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %82)
ret i32 0
}
declare i32 @pow(i32 noundef, i32 noundef) #1
declare i64 @is_prime(i64 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpxpi_wg7b.c'
source_filename = "/tmp/tmpxpi_wg7b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ini_parse_file(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [200 x i8], align 16
%8 = alloca [50 x i8], align 16
%9 = alloca [50 x i8], align 16
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 50, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 50, i1 false)
store i32 0, ptr %14, align 4
store i32 0, ptr %15, align 4
br label %16
16: ; preds = %191, %3
%17 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
%18 = load ptr, ptr %4, align 8
%19 = call ptr @fgets(ptr noundef %17, i32 noundef 200, ptr noundef %18)
%20 = icmp ne ptr %19, null
br i1 %20, label %21, label %192
21: ; preds = %16
%22 = load i32, ptr %14, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %14, align 4
%24 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
store ptr %24, ptr %10, align 8
%25 = load i32, ptr %14, align 4
%26 = icmp eq i32 %25, 1
br i1 %26, label %27, label %48
27: ; preds = %21
%28 = load ptr, ptr %10, align 8
%29 = getelementptr inbounds i8, ptr %28, i64 0
%30 = load i8, ptr %29, align 1
%31 = zext i8 %30 to i32
%32 = icmp eq i32 %31, 239
br i1 %32, label %33, label %48
33: ; preds = %27
%34 = load ptr, ptr %10, align 8
%35 = getelementptr inbounds i8, ptr %34, i64 1
%36 = load i8, ptr %35, align 1
%37 = zext i8 %36 to i32
%38 = icmp eq i32 %37, 187
br i1 %38, label %39, label %48
39: ; preds = %33
%40 = load ptr, ptr %10, align 8
%41 = getelementptr inbounds i8, ptr %40, i64 2
%42 = load i8, ptr %41, align 1
%43 = zext i8 %42 to i32
%44 = icmp eq i32 %43, 191
br i1 %44, label %45, label %48
45: ; preds = %39
%46 = load ptr, ptr %10, align 8
%47 = getelementptr inbounds i8, ptr %46, i64 3
store ptr %47, ptr %10, align 8
br label %48
48: ; preds = %45, %39, %33, %27, %21
%49 = load ptr, ptr %10, align 8
%50 = call ptr @rstrip(ptr noundef %49)
%51 = call ptr @lskip(ptr noundef %50)
store ptr %51, ptr %10, align 8
%52 = load ptr, ptr %10, align 8
%53 = load i8, ptr %52, align 1
%54 = sext i8 %53 to i32
%55 = icmp eq i32 %54, 59
br i1 %55, label %61, label %56
56: ; preds = %48
%57 = load ptr, ptr %10, align 8
%58 = load i8, ptr %57, align 1
%59 = sext i8 %58 to i32
%60 = icmp eq i32 %59, 35
br i1 %60, label %61, label %62
61: ; preds = %56, %48
br label %191
62: ; preds = %56
%63 = getelementptr inbounds [50 x i8], ptr %9, i64 0, i64 0
%64 = load i8, ptr %63, align 16
%65 = sext i8 %64 to i32
%66 = icmp ne i32 %65, 0
br i1 %66, label %67, label %90
67: ; preds = %62
%68 = load ptr, ptr %10, align 8
%69 = load i8, ptr %68, align 1
%70 = sext i8 %69 to i32
%71 = icmp ne i32 %70, 0
br i1 %71, label %72, label %90
72: ; preds = %67
%73 = load ptr, ptr %10, align 8
%74 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
%75 = icmp ugt ptr %73, %74
br i1 %75, label %76, label %90
76: ; preds = %72
%77 = load ptr, ptr %5, align 8
%78 = load ptr, ptr %6, align 8
%79 = getelementptr inbounds [50 x i8], ptr %8, i64 0, i64 0
%80 = getelementptr inbounds [50 x i8], ptr %9, i64 0, i64 0
%81 = load ptr, ptr %10, align 8
%82 = call i32 %77(ptr noundef %78, ptr noundef %79, ptr noundef %80, ptr noundef %81)
%83 = icmp ne i32 %82, 0
br i1 %83, label %89, label %84
84: ; preds = %76
%85 = load i32, ptr %15, align 4
%86 = icmp ne i32 %85, 0
br i1 %86, label %89, label %87
87: ; preds = %84
%88 = load i32, ptr %14, align 4
store i32 %88, ptr %15, align 4
br label %89
89: ; preds = %87, %84, %76
br label %190
90: ; preds = %72, %67, %62
%91 = load ptr, ptr %10, align 8
%92 = load i8, ptr %91, align 1
%93 = sext i8 %92 to i32
%94 = icmp eq i32 %93, 91
br i1 %94, label %95, label %117
95: ; preds = %90
%96 = load ptr, ptr %10, align 8
%97 = getelementptr inbounds i8, ptr %96, i64 1
%98 = call ptr @find_char_or_comment(ptr noundef %97, i8 noundef signext 93)
store ptr %98, ptr %11, align 8
%99 = load ptr, ptr %11, align 8
%100 = load i8, ptr %99, align 1
%101 = sext i8 %100 to i32
%102 = icmp eq i32 %101, 93
br i1 %102, label %103, label %110
103: ; preds = %95
%104 = load ptr, ptr %11, align 8
store i8 0, ptr %104, align 1
%105 = getelementptr inbounds [50 x i8], ptr %8, i64 0, i64 0
%106 = load ptr, ptr %10, align 8
%107 = getelementptr inbounds i8, ptr %106, i64 1
%108 = call i32 @strncpy0(ptr noundef %105, ptr noundef %107, i32 noundef 50)
%109 = getelementptr inbounds [50 x i8], ptr %9, i64 0, i64 0
store i8 0, ptr %109, align 16
br label %116
110: ; preds = %95
%111 = load i32, ptr %15, align 4
%112 = icmp ne i32 %111, 0
br i1 %112, label %115, label %113
113: ; preds = %110
%114 = load i32, ptr %14, align 4
store i32 %114, ptr %15, align 4
br label %115
115: ; preds = %113, %110
br label %116
116: ; preds = %115, %103
br label %189
117: ; preds = %90
%118 = load ptr, ptr %10, align 8
%119 = load i8, ptr %118, align 1
%120 = sext i8 %119 to i32
%121 = icmp ne i32 %120, 0
br i1 %121, label %122, label %188
122: ; preds = %117
%123 = load ptr, ptr %10, align 8
%124 = load i8, ptr %123, align 1
%125 = sext i8 %124 to i32
%126 = icmp ne i32 %125, 59
br i1 %126, label %127, label %188
127: ; preds = %122
%128 = load ptr, ptr %10, align 8
%129 = call ptr @find_char_or_comment(ptr noundef %128, i8 noundef signext 61)
store ptr %129, ptr %11, align 8
%130 = load ptr, ptr %11, align 8
%131 = load i8, ptr %130, align 1
%132 = sext i8 %131 to i32
%133 = icmp ne i32 %132, 61
br i1 %133, label %134, label %137
134: ; preds = %127
%135 = load ptr, ptr %10, align 8
%136 = call ptr @find_char_or_comment(ptr noundef %135, i8 noundef signext 58)
store ptr %136, ptr %11, align 8
br label %137
137: ; preds = %134, %127
%138 = load ptr, ptr %11, align 8
%139 = load i8, ptr %138, align 1
%140 = sext i8 %139 to i32
%141 = icmp eq i32 %140, 61
br i1 %141, label %147, label %142
142: ; preds = %137
%143 = load ptr, ptr %11, align 8
%144 = load i8, ptr %143, align 1
%145 = sext i8 %144 to i32
%146 = icmp eq i32 %145, 58
br i1 %146, label %147, label %181
147: ; preds = %142, %137
%148 = load ptr, ptr %11, align 8
store i8 0, ptr %148, align 1
%149 = load ptr, ptr %10, align 8
%150 = call ptr @rstrip(ptr noundef %149)
store ptr %150, ptr %12, align 8
%151 = load ptr, ptr %11, align 8
%152 = getelementptr inbounds i8, ptr %151, i64 1
%153 = call ptr @lskip(ptr noundef %152)
store ptr %153, ptr %13, align 8
%154 = load ptr, ptr %13, align 8
%155 = call ptr @find_char_or_comment(ptr noundef %154, i8 noundef signext 0)
store ptr %155, ptr %11, align 8
%156 = load ptr, ptr %11, align 8
%157 = load i8, ptr %156, align 1
%158 = sext i8 %157 to i32
%159 = icmp eq i32 %158, 59
br i1 %159, label %160, label %162
160: ; preds = %147
%161 = load ptr, ptr %11, align 8
store i8 0, ptr %161, align 1
br label %162
162: ; preds = %160, %147
%163 = load ptr, ptr %13, align 8
%164 = call ptr @rstrip(ptr noundef %163)
%165 = getelementptr inbounds [50 x i8], ptr %9, i64 0, i64 0
%166 = load ptr, ptr %12, align 8
%167 = call i32 @strncpy0(ptr noundef %165, ptr noundef %166, i32 noundef 50)
%168 = load ptr, ptr %5, align 8
%169 = load ptr, ptr %6, align 8
%170 = getelementptr inbounds [50 x i8], ptr %8, i64 0, i64 0
%171 = load ptr, ptr %12, align 8
%172 = load ptr, ptr %13, align 8
%173 = call i32 %168(ptr noundef %169, ptr noundef %170, ptr noundef %171, ptr noundef %172)
%174 = icmp ne i32 %173, 0
br i1 %174, label %180, label %175
175: ; preds = %162
%176 = load i32, ptr %15, align 4
%177 = icmp ne i32 %176, 0
br i1 %177, label %180, label %178
178: ; preds = %175
%179 = load i32, ptr %14, align 4
store i32 %179, ptr %15, align 4
br label %180
180: ; preds = %178, %175, %162
br label %187
181: ; preds = %142
%182 = load i32, ptr %15, align 4
%183 = icmp ne i32 %182, 0
br i1 %183, label %186, label %184
184: ; preds = %181
%185 = load i32, ptr %14, align 4
store i32 %185, ptr %15, align 4
br label %186
186: ; preds = %184, %181
br label %187
187: ; preds = %186, %180
br label %188
188: ; preds = %187, %122, %117
br label %189
189: ; preds = %188, %116
br label %190
190: ; preds = %189, %89
br label %191
191: ; preds = %190, %61
br label %16, !llvm.loop !6
192: ; preds = %16
%193 = load i32, ptr %15, align 4
ret i32 %193
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #2
declare ptr @lskip(ptr noundef) #2
declare ptr @rstrip(ptr noundef) #2
declare ptr @find_char_or_comment(ptr noundef, i8 noundef signext) #2
declare i32 @strncpy0(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxpi_wg7b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ini_parse_file(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [200 x i8], align 16
%8 = alloca [50 x i8], align 16
%9 = alloca [50 x i8], align 16
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 50, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 50, i1 false)
store i32 0, ptr %14, align 4
store i32 0, ptr %15, align 4
%16 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
%17 = load ptr, ptr %4, align 8
%18 = call ptr @fgets(ptr noundef %16, i32 noundef 200, ptr noundef %17)
%19 = icmp ne ptr %18, null
br i1 %19, label %.lr.ph, label %194
.lr.ph: ; preds = %3
br label %20
20: ; preds = %.lr.ph, %190
%21 = load i32, ptr %14, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %14, align 4
%23 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
store ptr %23, ptr %10, align 8
%24 = load i32, ptr %14, align 4
%25 = icmp eq i32 %24, 1
br i1 %25, label %26, label %47
26: ; preds = %20
%27 = load ptr, ptr %10, align 8
%28 = getelementptr inbounds i8, ptr %27, i64 0
%29 = load i8, ptr %28, align 1
%30 = zext i8 %29 to i32
%31 = icmp eq i32 %30, 239
br i1 %31, label %32, label %47
32: ; preds = %26
%33 = load ptr, ptr %10, align 8
%34 = getelementptr inbounds i8, ptr %33, i64 1
%35 = load i8, ptr %34, align 1
%36 = zext i8 %35 to i32
%37 = icmp eq i32 %36, 187
br i1 %37, label %38, label %47
38: ; preds = %32
%39 = load ptr, ptr %10, align 8
%40 = getelementptr inbounds i8, ptr %39, i64 2
%41 = load i8, ptr %40, align 1
%42 = zext i8 %41 to i32
%43 = icmp eq i32 %42, 191
br i1 %43, label %44, label %47
44: ; preds = %38
%45 = load ptr, ptr %10, align 8
%46 = getelementptr inbounds i8, ptr %45, i64 3
store ptr %46, ptr %10, align 8
br label %47
47: ; preds = %44, %38, %32, %26, %20
%48 = load ptr, ptr %10, align 8
%49 = call ptr @rstrip(ptr noundef %48)
%50 = call ptr @lskip(ptr noundef %49)
store ptr %50, ptr %10, align 8
%51 = load ptr, ptr %10, align 8
%52 = load i8, ptr %51, align 1
%53 = sext i8 %52 to i32
%54 = icmp eq i32 %53, 59
br i1 %54, label %60, label %55
55: ; preds = %47
%56 = load ptr, ptr %10, align 8
%57 = load i8, ptr %56, align 1
%58 = sext i8 %57 to i32
%59 = icmp eq i32 %58, 35
br i1 %59, label %60, label %61
60: ; preds = %55, %47
br label %190
61: ; preds = %55
%62 = getelementptr inbounds [50 x i8], ptr %9, i64 0, i64 0
%63 = load i8, ptr %62, align 16
%64 = sext i8 %63 to i32
%65 = icmp ne i32 %64, 0
br i1 %65, label %66, label %89
66: ; preds = %61
%67 = load ptr, ptr %10, align 8
%68 = load i8, ptr %67, align 1
%69 = sext i8 %68 to i32
%70 = icmp ne i32 %69, 0
br i1 %70, label %71, label %89
71: ; preds = %66
%72 = load ptr, ptr %10, align 8
%73 = getelementptr inbounds [200 x i8], ptr %7, i64 0, i64 0
%74 = icmp ugt ptr %72, %73
br i1 %74, label %75, label %89
75: ; preds = %71
%76 = load ptr, ptr %5, align 8
%77 = load ptr, ptr %6, align 8
%78 = getelementptr inbounds [50 x i8], ptr %8, i64 0, i64 0
%79 = getelementptr inbounds [50 x i8], ptr %9, i64 0, i64 0
%80 = load ptr, ptr %10, align 8
%81 = call i32 %76(ptr noundef %77, ptr noundef %78, ptr noundef %79, ptr noundef %80)
%82 = icmp ne i32 %81, 0
br i1 %82, label %88, label %83
83: ; preds = %75
%84 = load i32, ptr %15, align 4
%85 = icmp ne i32 %84, 0
br i1 %85, label %88, label %86
86: ; preds = %83
%87 = load i32, ptr %14, align 4
store i32 %87, ptr %15, align 4
br label %88
88: ; preds = %86, %83, %75
br label %189
89: ; preds = %71, %66, %61
%90 = load ptr, ptr %10, align 8
%91 = load i8, ptr %90, align 1
%92 = sext i8 %91 to i32
%93 = icmp eq i32 %92, 91
br i1 %93, label %94, label %116
94: ; preds = %89
%95 = load ptr, ptr %10, align 8
%96 = getelementptr inbounds i8, ptr %95, i64 1
%97 = call ptr @find_char_or_comment(ptr noundef %96, i8 noundef signext 93)
store ptr %97, ptr %11, align 8
%98 = load ptr, ptr %11, align 8
%99 = load i8, ptr %98, align 1
%100 = sext i8 %99 to i32
%101 = icmp eq i32 %100, 93
br i1 %101, label %102, label %109
102: ; preds = %94
%103 = load ptr, ptr %11, align 8
store i8 0, ptr %103, align 1
%104 = getelementptr inbounds [50 x i8], ptr %8, i64 0, i64 0
%105 = load ptr, ptr %10, align 8
%106 = getelementptr inbounds i8, ptr %105, i64 1
%107 = call i32 @strncpy0(ptr noundef %104, ptr noundef %106, i32 noundef 50)
%108 = getelementptr inbounds [50 x i8], ptr %9, i64 0, i64 0
store i8 0, ptr %108, align 16
br label %115
109: ; preds = %94
%110 = load i32, ptr %15, align 4
%111 = icmp ne i32 %110, 0
br i1 %111, label %114, label %112
112: ; preds = %109
%113 = load i32, ptr %14, align 4
store i32 %113, ptr %15, align 4
br label %114
114: ; preds = %112, %109
br label %115
115: ; preds = %114, %102
br label %188
116: ; preds = %89
%117 = load ptr, ptr %10, align 8
%118 = load i8, ptr %117, align 1
%119 = sext i8 %118 to i32
%120 = icmp ne i32 %119, 0
br i1 %120, label %121, label %187
121: ; preds = %116
%122 = load ptr, ptr %10, align 8
%123 = load i8, ptr %122, align 1
%124 = sext i8 %123 to i32
%125 = icmp ne i32 %124, 59
br i1 %125, label %126, label %187
126: ; preds = %121
%127 = load ptr, ptr %10, align 8
%128 = call ptr @find_char_or_comment(ptr noundef %127, i8 noundef signext 61)
store ptr %128, ptr %11, align 8
%129 = load ptr, ptr %11, align 8
%130 = load i8, ptr %129, align 1
%131 = sext i8 %130 to i32
%132 = icmp ne i32 %131, 61
br i1 %132, label %133, label %136
133: ; preds = %126
%134 = load ptr, ptr %10, align 8
%135 = call ptr @find_char_or_comment(ptr noundef %134, i8 noundef signext 58)
store ptr %135, ptr %11, align 8
br label %136
136: ; preds = %133, %126
%137 = load ptr, ptr %11, align 8
%138 = load i8, ptr %137, align 1
%139 = sext i8 %138 to i32
%140 = icmp eq i32 %139, 61
br i1 %140, label %146, label %141
141: ; preds = %136
%142 = load ptr, ptr %11, align 8
%143 = load i8, ptr %142, align 1
%144 = sext i8 %143 to i32
%145 = icmp eq i32 %144, 58
br i1 %145, label %146, label %180
146: ; preds = %141, %136
%147 = load ptr, ptr %11, align 8
store i8 0, ptr %147, align 1
%148 = load ptr, ptr %10, align 8
%149 = call ptr @rstrip(ptr noundef %148)
store ptr %149, ptr %12, align 8
%150 = load ptr, ptr %11, align 8
%151 = getelementptr inbounds i8, ptr %150, i64 1
%152 = call ptr @lskip(ptr noundef %151)
store ptr %152, ptr %13, align 8
%153 = load ptr, ptr %13, align 8
%154 = call ptr @find_char_or_comment(ptr noundef %153, i8 noundef signext 0)
store ptr %154, ptr %11, align 8
%155 = load ptr, ptr %11, align 8
%156 = load i8, ptr %155, align 1
%157 = sext i8 %156 to i32
%158 = icmp eq i32 %157, 59
br i1 %158, label %159, label %161
159: ; preds = %146
%160 = load ptr, ptr %11, align 8
store i8 0, ptr %160, align 1
br label %161
161: ; preds = %159, %146
%162 = load ptr, ptr %13, align 8
%163 = call ptr @rstrip(ptr noundef %162)
%164 = getelementptr inbounds [50 x i8], ptr %9, i64 0, i64 0
%165 = load ptr, ptr %12, align 8
%166 = call i32 @strncpy0(ptr noundef %164, ptr noundef %165, i32 noundef 50)
%167 = load ptr, ptr %5, align 8
%168 = load ptr, ptr %6, align 8
%169 = getelementptr inbounds [50 x i8], ptr %8, i64 0, i64 0
%170 = load ptr, ptr %12, align 8
%171 = load ptr, ptr %13, align 8
%172 = call i32 %167(ptr noundef %168, ptr noundef %169, ptr noundef %170, ptr noundef %171)
%173 = icmp ne i32 %172, 0
br i1 %173, label %179, label %174
174: ; preds = %161
%175 = load i32, ptr %15, align 4
%176 = icmp ne i32 %175, 0
br i1 %176, label %179, label %177
177: ; preds = %174
%178 = load i32, ptr %14, align 4
store i32 %178, ptr %15, align 4
br label %179
179: ; preds = %177, %174, %161
br label %186
180: ; preds = %141
%181 = load i32, ptr %15, align 4
%182 = icmp ne i32 %181, 0
br i1 %182, label %185, label %183
183: ; preds = %180
%184 = load i32, ptr %14, align 4
store i32 %184, ptr %15, align 4
br label %185
185: ; preds = %183, %180
br label %186
186: ; preds = %185, %179
br label %187
187: ; preds = %186, %121, %116
br label %188
188: ; preds = %187, %115
br label %189
189: ; preds = %188, %88
br label %190
190: ; preds = %189, %60
%191 = load ptr, ptr %4, align 8
%192 = call ptr @fgets(ptr noundef %16, i32 noundef 200, ptr noundef %191)
%193 = icmp ne ptr %192, null
br i1 %193, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %190
br label %194
194: ; preds = %._crit_edge, %3
%195 = load i32, ptr %15, align 4
ret i32 %195
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #2
declare ptr @lskip(ptr noundef) #2
declare ptr @rstrip(ptr noundef) #2
declare ptr @find_char_or_comment(ptr noundef, i8 noundef signext) #2
declare i32 @strncpy0(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpnhdgswp4.c'
source_filename = "/tmp/tmpnhdgswp4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PATH_MAX = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [14 x i8] c"/proc/%d/stat\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"?%d?\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"%10u (%80s)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @get_taskname(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca [80 x i8], align 16
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%14 = load i32, ptr @PATH_MAX, align 4
%15 = add nsw i32 %14, 1
%16 = zext i32 %15 to i64
%17 = call ptr @llvm.stacksave()
store ptr %17, ptr %6, align 8
%18 = alloca i8, i64 %16, align 16
store i64 %16, ptr %7, align 8
%19 = load i32, ptr %4, align 4
%20 = call i32 @sprintf(ptr noundef %18, ptr noundef @.str, i32 noundef %19)
%21 = call ptr @fopen(ptr noundef %18, ptr noundef @.str.1)
store ptr %21, ptr %8, align 8
%22 = load ptr, ptr %8, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %29
24: ; preds = %2
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %4, align 4
%27 = call i32 @sprintf(ptr noundef %25, ptr noundef @.str.2, i32 noundef %26)
%28 = load ptr, ptr %5, align 8
store ptr %28, ptr %3, align 8
store i32 1, ptr %13, align 4
br label %58
29: ; preds = %2
%30 = load ptr, ptr %8, align 8
%31 = getelementptr inbounds [80 x i8], ptr %11, i64 0, i64 0
%32 = call i32 @fscanf(ptr noundef %30, ptr noundef @.str.3, ptr noundef %10, ptr noundef %31)
store i32 %32, ptr %9, align 4
%33 = load i32, ptr %9, align 4
%34 = icmp ne i32 %33, 2
br i1 %34, label %35, label %42
35: ; preds = %29
%36 = load ptr, ptr %5, align 8
%37 = load i32, ptr %4, align 4
%38 = call i32 @sprintf(ptr noundef %36, ptr noundef @.str.2, i32 noundef %37)
%39 = load ptr, ptr %8, align 8
%40 = call i32 @fclose(ptr noundef %39)
%41 = load ptr, ptr %5, align 8
store ptr %41, ptr %3, align 8
store i32 1, ptr %13, align 4
br label %58
42: ; preds = %29
%43 = getelementptr inbounds [80 x i8], ptr %11, i64 0, i64 0
%44 = call ptr @strchr(ptr noundef %43, i8 noundef signext 41)
store ptr %44, ptr %12, align 8
%45 = load ptr, ptr %12, align 8
%46 = icmp ne ptr %45, null
br i1 %46, label %47, label %49
47: ; preds = %42
%48 = load ptr, ptr %12, align 8
store i8 0, ptr %48, align 1
br label %49
49: ; preds = %47, %42
%50 = load ptr, ptr %5, align 8
%51 = getelementptr inbounds [80 x i8], ptr %11, i64 0, i64 0
%52 = call i32 @strncpy(ptr noundef %50, ptr noundef %51, i32 noundef 15)
%53 = load ptr, ptr %5, align 8
%54 = getelementptr inbounds i8, ptr %53, i64 15
store i8 0, ptr %54, align 1
%55 = load ptr, ptr %8, align 8
%56 = call i32 @fclose(ptr noundef %55)
%57 = load ptr, ptr %5, align 8
store ptr %57, ptr %3, align 8
store i32 1, ptr %13, align 4
br label %58
58: ; preds = %49, %35, %24
%59 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %59)
%60 = load ptr, ptr %3, align 8
ret ptr %60
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @fclose(ptr noundef) #2
declare ptr @strchr(ptr noundef, i8 noundef signext) #2
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnhdgswp4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PATH_MAX = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [14 x i8] c"/proc/%d/stat\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"?%d?\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"%10u (%80s)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @get_taskname(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca [80 x i8], align 16
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%14 = load i32, ptr @PATH_MAX, align 4
%15 = add nsw i32 %14, 1
%16 = zext i32 %15 to i64
%17 = call ptr @llvm.stacksave()
store ptr %17, ptr %6, align 8
%18 = alloca i8, i64 %16, align 16
store i64 %16, ptr %7, align 8
%19 = load i32, ptr %4, align 4
%20 = call i32 @sprintf(ptr noundef %18, ptr noundef @.str, i32 noundef %19)
%21 = call ptr @fopen(ptr noundef %18, ptr noundef @.str.1)
store ptr %21, ptr %8, align 8
%22 = load ptr, ptr %8, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %29
24: ; preds = %2
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %4, align 4
%27 = call i32 @sprintf(ptr noundef %25, ptr noundef @.str.2, i32 noundef %26)
%28 = load ptr, ptr %5, align 8
store ptr %28, ptr %3, align 8
store i32 1, ptr %13, align 4
br label %58
29: ; preds = %2
%30 = load ptr, ptr %8, align 8
%31 = getelementptr inbounds [80 x i8], ptr %11, i64 0, i64 0
%32 = call i32 @fscanf(ptr noundef %30, ptr noundef @.str.3, ptr noundef %10, ptr noundef %31)
store i32 %32, ptr %9, align 4
%33 = load i32, ptr %9, align 4
%34 = icmp ne i32 %33, 2
br i1 %34, label %35, label %42
35: ; preds = %29
%36 = load ptr, ptr %5, align 8
%37 = load i32, ptr %4, align 4
%38 = call i32 @sprintf(ptr noundef %36, ptr noundef @.str.2, i32 noundef %37)
%39 = load ptr, ptr %8, align 8
%40 = call i32 @fclose(ptr noundef %39)
%41 = load ptr, ptr %5, align 8
store ptr %41, ptr %3, align 8
store i32 1, ptr %13, align 4
br label %58
42: ; preds = %29
%43 = getelementptr inbounds [80 x i8], ptr %11, i64 0, i64 0
%44 = call ptr @strchr(ptr noundef %43, i8 noundef signext 41)
store ptr %44, ptr %12, align 8
%45 = load ptr, ptr %12, align 8
%46 = icmp ne ptr %45, null
br i1 %46, label %47, label %49
47: ; preds = %42
%48 = load ptr, ptr %12, align 8
store i8 0, ptr %48, align 1
br label %49
49: ; preds = %47, %42
%50 = load ptr, ptr %5, align 8
%51 = getelementptr inbounds [80 x i8], ptr %11, i64 0, i64 0
%52 = call i32 @strncpy(ptr noundef %50, ptr noundef %51, i32 noundef 15)
%53 = load ptr, ptr %5, align 8
%54 = getelementptr inbounds i8, ptr %53, i64 15
store i8 0, ptr %54, align 1
%55 = load ptr, ptr %8, align 8
%56 = call i32 @fclose(ptr noundef %55)
%57 = load ptr, ptr %5, align 8
store ptr %57, ptr %3, align 8
store i32 1, ptr %13, align 4
br label %58
58: ; preds = %49, %35, %24
%59 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %59)
%60 = load ptr, ptr %3, align 8
ret ptr %60
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @fclose(ptr noundef) #2
declare ptr @strchr(ptr noundef, i8 noundef signext) #2
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptzd7n57q.c'
source_filename = "/tmp/tmptzd7n57q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmptzd7n57q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpi42_n4ar.c'
source_filename = "/tmp/tmpi42_n4ar.c"
target datalayout = "e-m:e-p270: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.tm = type { i32 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [28 x i8] c"expected argument to \22cd\22\0D\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"error cd:\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cd(ptr noundef %0, i32 %1) #0 {
%3 = alloca i32, align 4
%4 = alloca %struct.tm, align 4
%5 = alloca ptr, align 8
%6 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 0
store i32 %1, ptr %6, align 4
store ptr %0, ptr %5, align 8
%7 = load ptr, ptr %5, align 8
%8 = getelementptr inbounds ptr, ptr %7, i64 1
%9 = load ptr, ptr %8, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %14
11: ; preds = %2
%12 = load i32, ptr @stderr, align 4
%13 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str)
br label %23
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
%18 = call i64 @chdir(ptr noundef %17)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %14
%21 = call i32 @perror(ptr noundef @.str.1)
store i32 1, ptr %3, align 4
br label %24
22: ; preds = %14
br label %23
23: ; preds = %22, %11
store i32 0, ptr %3, align 4
br label %24
24: ; preds = %23, %20
%25 = load i32, ptr %3, align 4
ret i32 %25
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i64 @chdir(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi42_n4ar.c"
target datalayout = "e-m:e-p270: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.tm = type { i32 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [28 x i8] c"expected argument to \22cd\22\0D\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"error cd:\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cd(ptr noundef %0, i32 %1) #0 {
%3 = alloca i32, align 4
%4 = alloca %struct.tm, align 4
%5 = alloca ptr, align 8
%6 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 0
store i32 %1, ptr %6, align 4
store ptr %0, ptr %5, align 8
%7 = load ptr, ptr %5, align 8
%8 = getelementptr inbounds ptr, ptr %7, i64 1
%9 = load ptr, ptr %8, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %14
11: ; preds = %2
%12 = load i32, ptr @stderr, align 4
%13 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str)
br label %23
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
%18 = call i64 @chdir(ptr noundef %17)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %14
%21 = call i32 @perror(ptr noundef @.str.1)
store i32 1, ptr %3, align 4
br label %24
22: ; preds = %14
br label %23
23: ; preds = %22, %11
store i32 0, ptr %3, align 4
br label %24
24: ; preds = %23, %20
%25 = load i32, ptr %3, align 4
ret i32 %25
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i64 @chdir(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdwzhp1sn.c'
source_filename = "/tmp/tmpdwzhp1sn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @assert_false(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 0
%9 = xor i1 %8, true
%10 = zext i1 %9 to i32
%11 = load ptr, ptr %5, align 8
%12 = load i32, ptr %6, align 4
%13 = call i32 @assert_true(i32 noundef %10, ptr noundef %11, i32 noundef %12)
ret i32 %13
}
declare i32 @assert_true(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/tmpdwzhp1sn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @assert_false(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 0
%9 = xor i1 %8, true
%10 = zext i1 %9 to i32
%11 = load ptr, ptr %5, align 8
%12 = load i32, ptr %6, align 4
%13 = call i32 @assert_true(i32 noundef %10, ptr noundef %11, i32 noundef %12)
ret i32 %13
}
declare i32 @assert_true(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/tmp7nry_eif.c'
source_filename = "/tmp/tmp7nry_eif.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"NYI\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getgrgid(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @assert(i32 noundef 0)
ret ptr null
}
declare i32 @assert(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/tmp7nry_eif.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"NYI\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getgrgid(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @assert(i32 noundef 0)
ret ptr null
}
declare i32 @assert(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/tmpxozimt3o.c'
source_filename = "/tmp/tmpxozimt3o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%f\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c" is not a number.\0APlease enter a \00", align 1
@.str.2 = private unnamed_addr constant [37 x i8] c"number, such as 2.5, -1.78E8, or 3: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @get_flt() #0 {
%1 = alloca float, align 4
%2 = alloca i8, align 1
br label %3
3: ; preds = %14, %0
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %1)
%5 = icmp ne i32 %4, 1
br i1 %5, label %6, label %17
6: ; preds = %3
br label %7
7: ; preds = %11, %6
%8 = call signext i8 (...) @getchar()
store i8 %8, ptr %2, align 1
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 10
br i1 %10, label %11, label %14
11: ; preds = %7
%12 = load i8, ptr %2, align 1
%13 = call i32 @putchar(i8 noundef signext %12)
br label %7, !llvm.loop !6
14: ; preds = %7
%15 = call i32 @printf(ptr noundef @.str.1)
%16 = call i32 @printf(ptr noundef @.str.2)
br label %3, !llvm.loop !8
17: ; preds = %3
br label %18
18: ; preds = %22, %17
%19 = call signext i8 (...) @getchar()
%20 = sext i8 %19 to i32
%21 = icmp ne i32 %20, 10
br i1 %21, label %22, label %23
22: ; preds = %18
br label %18, !llvm.loop !9
23: ; preds = %18
%24 = load float, ptr %1, align 4
ret float %24
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare signext i8 @getchar(...) #1
declare i32 @putchar(i8 noundef signext) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxozimt3o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%f\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c" is not a number.\0APlease enter a \00", align 1
@.str.2 = private unnamed_addr constant [37 x i8] c"number, such as 2.5, -1.78E8, or 3: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @get_flt() #0 {
%1 = alloca float, align 4
%2 = alloca i8, align 1
%3 = call i32 @scanf(ptr noundef @.str, ptr noundef %1)
%4 = icmp ne i32 %3, 1
br i1 %4, label %.lr.ph2, label %20
.lr.ph2: ; preds = %0
br label %5
5: ; preds = %.lr.ph2, %15
%6 = call signext i8 (...) @getchar()
store i8 %6, ptr %2, align 1
%7 = sext i8 %6 to i32
%8 = icmp ne i32 %7, 10
br i1 %8, label %.lr.ph, label %15
.lr.ph: ; preds = %5
br label %9
9: ; preds = %.lr.ph, %9
%10 = load i8, ptr %2, align 1
%11 = call i32 @putchar(i8 noundef signext %10)
%12 = call signext i8 (...) @getchar()
store i8 %12, ptr %2, align 1
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 10
br i1 %14, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %15
15: ; preds = %._crit_edge, %5
%16 = call i32 @printf(ptr noundef @.str.1)
%17 = call i32 @printf(ptr noundef @.str.2)
%18 = call i32 @scanf(ptr noundef @.str, ptr noundef %1)
%19 = icmp ne i32 %18, 1
br i1 %19, label %5, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %15
br label %20
20: ; preds = %._crit_edge3, %0
br label %21
21: ; preds = %21, %20
%22 = call signext i8 (...) @getchar()
%23 = sext i8 %22 to i32
%24 = icmp ne i32 %23, 10
br i1 %24, label %21, label %25, !llvm.loop !9
25: ; preds = %21
%26 = load float, ptr %1, align 4
ret float %26
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare signext i8 @getchar(...) #1
declare i32 @putchar(i8 noundef signext) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpoofmg4of.c'
source_filename = "/tmp/tmpoofmg4of.c"
target datalayout = "e-m:e-p270: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 [31 x i8] c"usage: client hostname file.*\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = 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
%9 = load i32, ptr %4, align 4
%10 = icmp ne i32 %9, 3
br i1 %10, label %11, label %16
11: ; preds = %2
%12 = load i32, ptr @stderr, align 4
%13 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str)
%14 = load i32, ptr @EXIT_FAILURE, align 4
%15 = call i32 @exit(i32 noundef %14) #3
unreachable
16: ; preds = %2
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 2
%19 = load ptr, ptr %18, align 8
%20 = call ptr @parseFile(ptr noundef %19)
store ptr %20, ptr %8, align 8
%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 @establishConnection(ptr noundef %23)
store i32 %24, ptr %6, align 4
%25 = load i32, ptr %6, align 4
%26 = load ptr, ptr %8, align 8
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds ptr, ptr %27, i64 2
%29 = load ptr, ptr %28, align 8
%30 = call i32 @sendData(i32 noundef %25, ptr noundef %26, ptr noundef %29)
%31 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %31
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @parseFile(ptr noundef) #1
declare i32 @establishConnection(ptr noundef) #1
declare i32 @sendData(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpoofmg4of.c"
target datalayout = "e-m:e-p270: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 [31 x i8] c"usage: client hostname file.*\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = 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
%9 = load i32, ptr %4, align 4
%10 = icmp ne i32 %9, 3
br i1 %10, label %11, label %16
11: ; preds = %2
%12 = load i32, ptr @stderr, align 4
%13 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str)
%14 = load i32, ptr @EXIT_FAILURE, align 4
%15 = call i32 @exit(i32 noundef %14) #3
unreachable
16: ; preds = %2
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 2
%19 = load ptr, ptr %18, align 8
%20 = call ptr @parseFile(ptr noundef %19)
store ptr %20, ptr %8, align 8
%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 @establishConnection(ptr noundef %23)
store i32 %24, ptr %6, align 4
%25 = load i32, ptr %6, align 4
%26 = load ptr, ptr %8, align 8
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds ptr, ptr %27, i64 2
%29 = load ptr, ptr %28, align 8
%30 = call i32 @sendData(i32 noundef %25, ptr noundef %26, ptr noundef %29)
%31 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %31
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @parseFile(ptr noundef) #1
declare i32 @establishConnection(ptr noundef) #1
declare i32 @sendData(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpyprva4ik.c'
source_filename = "/tmp/tmpyprva4ik.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ConvertWriteDouble(i32 noundef %0, double noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca double, align 8
%6 = alloca [8 x i8], align 1
store i32 %0, ptr %4, align 4
store double %1, ptr %5, align 8
%7 = load double, ptr %5, align 8
%8 = getelementptr inbounds [8 x i8], ptr %6, i64 0, i64 0
%9 = call i32 @ConvertFromDouble(double noundef %7, ptr noundef %8)
%10 = load i32, ptr %4, align 4
%11 = getelementptr inbounds [8 x i8], ptr %6, i64 0, i64 0
%12 = call i32 @write(i32 noundef %10, ptr noundef %11, i32 noundef 8)
%13 = icmp ne i32 %12, 8
br i1 %13, label %14, label %15
14: ; preds = %2
store i32 -1, ptr %3, align 4
br label %16
15: ; preds = %2
store i32 0, ptr %3, align 4
br label %16
16: ; preds = %15, %14
%17 = load i32, ptr %3, align 4
ret i32 %17
}
declare i32 @ConvertFromDouble(double noundef, ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyprva4ik.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ConvertWriteDouble(i32 noundef %0, double noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca double, align 8
%6 = alloca [8 x i8], align 1
store i32 %0, ptr %4, align 4
store double %1, ptr %5, align 8
%7 = load double, ptr %5, align 8
%8 = getelementptr inbounds [8 x i8], ptr %6, i64 0, i64 0
%9 = call i32 @ConvertFromDouble(double noundef %7, ptr noundef %8)
%10 = load i32, ptr %4, align 4
%11 = getelementptr inbounds [8 x i8], ptr %6, i64 0, i64 0
%12 = call i32 @write(i32 noundef %10, ptr noundef %11, i32 noundef 8)
%13 = icmp ne i32 %12, 8
br i1 %13, label %14, label %15
14: ; preds = %2
store i32 -1, ptr %3, align 4
br label %16
15: ; preds = %2
store i32 0, ptr %3, align 4
br label %16
16: ; preds = %15, %14
%17 = load i32, ptr %3, align 4
ret i32 %17
}
declare i32 @ConvertFromDouble(double noundef, ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpviujpo08.c'
source_filename = "/tmp/tmpviujpo08.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isxdigit.c\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"isxdigit should be 1 for d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isxdigit_0x64() #0 {
%1 = call i32 @isxdigit(i32 noundef 100) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 505, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isxdigit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpviujpo08.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isxdigit.c\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"isxdigit should be 1 for d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isxdigit_0x64() #0 {
%1 = call i32 @isxdigit(i32 noundef 100) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 505, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isxdigit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_p1v6cbf.c'
source_filename = "/tmp/tmp_p1v6cbf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"hola UTN!\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, ptr noundef @.str.1)
ret i32 0
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_p1v6cbf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"hola UTN!\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, ptr noundef @.str.1)
ret i32 0
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8hprhlls.c'
source_filename = "/tmp/tmp8hprhlls.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"Hello\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8hprhlls.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"Hello\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2ap3k614.c'
source_filename = "/tmp/tmp2ap3k614.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOSYS = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getcwd(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i32, ptr @ENOSYS, align 4
store i32 %5, ptr @errno, align 4
ret ptr null
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2ap3k614.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOSYS = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getcwd(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i32, ptr @ENOSYS, align 4
store i32 %5, ptr @errno, align 4
ret ptr null
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpr0eekah7.c'
source_filename = "/tmp/tmpr0eekah7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @detab(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [1024 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %49, %1
%8 = load ptr, ptr %2, align 8
%9 = load i32, ptr %4, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i8, ptr %8, i64 %10
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %52
15: ; preds = %7
%16 = load ptr, ptr %2, align 8
%17 = load i32, ptr %4, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 9
br i1 %22, label %23, label %38
23: ; preds = %15
%24 = load i32, ptr %5, align 4
%25 = add nsw i32 %24, 4
store i32 %25, ptr %6, align 4
br label %26
26: ; preds = %34, %23
%27 = load i32, ptr %5, align 4
%28 = load i32, ptr %6, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %30, label %37
30: ; preds = %26
%31 = load i32, ptr %5, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 %32
store i8 32, ptr %33, align 1
br label %34
34: ; preds = %30
%35 = load i32, ptr %5, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %5, align 4
br label %26, !llvm.loop !6
37: ; preds = %26
br label %49
38: ; preds = %15
%39 = load ptr, ptr %2, align 8
%40 = load i32, ptr %4, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8, ptr %39, i64 %41
%43 = load i8, ptr %42, align 1
%44 = load i32, ptr %5, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 %45
store i8 %43, ptr %46, align 1
%47 = load i32, ptr %5, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %5, align 4
br label %49
49: ; preds = %38, %37
%50 = load i32, ptr %4, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %4, align 4
br label %7, !llvm.loop !8
52: ; preds = %7
%53 = load i32, ptr %5, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 %54
store i8 0, ptr %55, align 1
%56 = load ptr, ptr %2, align 8
%57 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%58 = call i32 @copy(ptr noundef %56, ptr noundef %57)
ret void
}
declare i32 @copy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr0eekah7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @detab(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [1024 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%7 = load ptr, ptr %2, align 8
%8 = load i32, ptr %4, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i8, ptr %7, i64 %9
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 0
br i1 %13, label %.lr.ph2, label %60
.lr.ph2: ; preds = %1
br label %14
14: ; preds = %.lr.ph2, %50
%15 = load ptr, ptr %2, align 8
%16 = load i32, ptr %4, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 9
br i1 %21, label %22, label %39
22: ; preds = %14
%23 = load i32, ptr %5, align 4
%24 = add nsw i32 %23, 4
store i32 %24, ptr %6, align 4
%25 = load i32, ptr %5, align 4
%26 = load i32, ptr %6, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %.lr.ph, label %38
.lr.ph: ; preds = %22
br label %28
28: ; preds = %.lr.ph, %32
%29 = load i32, ptr %5, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 %30
store i8 32, ptr %31, align 1
br label %32
32: ; preds = %28
%33 = load i32, ptr %5, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %5, align 4
%35 = load i32, ptr %5, align 4
%36 = load i32, ptr %6, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %38
38: ; preds = %._crit_edge, %22
br label %50
39: ; preds = %14
%40 = load ptr, ptr %2, align 8
%41 = load i32, ptr %4, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %40, i64 %42
%44 = load i8, ptr %43, align 1
%45 = load i32, ptr %5, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 %46
store i8 %44, ptr %47, align 1
%48 = load i32, ptr %5, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %5, align 4
br label %50
50: ; preds = %39, %38
%51 = load i32, ptr %4, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %4, align 4
%53 = load ptr, ptr %2, align 8
%54 = load i32, ptr %4, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, ptr %53, i64 %55
%57 = load i8, ptr %56, align 1
%58 = sext i8 %57 to i32
%59 = icmp ne i32 %58, 0
br i1 %59, label %14, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %50
br label %60
60: ; preds = %._crit_edge3, %1
%61 = load i32, ptr %5, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 %62
store i8 0, ptr %63, align 1
%64 = load ptr, ptr %2, align 8
%65 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%66 = call i32 @copy(ptr noundef %64, ptr noundef %65)
ret void
}
declare i32 @copy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpex_5pebb.c'
source_filename = "/tmp/tmpex_5pebb.c"
target datalayout = "e-m:e-p270: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_num(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %7, align 4
br label %8
8: ; preds = %24, %2
%9 = load ptr, ptr %5, align 8
%10 = call i32 @getc(ptr noundef %9)
store i32 %10, ptr %6, align 4
%11 = load i32, ptr @EOF, align 4
%12 = icmp ne i32 %10, %11
br i1 %12, label %13, label %22
13: ; preds = %8
%14 = load i32, ptr %6, align 4
%15 = icmp sge i32 %14, 48
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = load i32, ptr %6, align 4
%18 = icmp sle i32 %17, 57
br label %19
19: ; preds = %16, %13
%20 = phi i1 [ false, %13 ], [ %18, %16 ]
%21 = xor i1 %20, true
br label %22
22: ; preds = %19, %8
%23 = phi i1 [ false, %8 ], [ %21, %19 ]
br i1 %23, label %24, label %25
24: ; preds = %22
br label %8, !llvm.loop !6
25: ; preds = %22
%26 = load i32, ptr %6, align 4
%27 = load i32, ptr @EOF, align 4
%28 = icmp eq i32 %26, %27
br i1 %28, label %29, label %32
29: ; preds = %25
%30 = load ptr, ptr %4, align 8
store i32 0, ptr %30, align 4
%31 = call i32 @set_error(i32 noundef 8)
store i32 1, ptr %3, align 4
br label %59
32: ; preds = %25
store i32 0, ptr %7, align 4
br label %33
33: ; preds = %54, %32
%34 = load i32, ptr %7, align 4
%35 = mul nsw i32 %34, 10
store i32 %35, ptr %7, align 4
%36 = load i32, ptr %6, align 4
%37 = sub nsw i32 %36, 48
%38 = load i32, ptr %7, align 4
%39 = add nsw i32 %38, %37
store i32 %39, ptr %7, align 4
%40 = load ptr, ptr %5, align 8
%41 = call i32 @getc(ptr noundef %40)
store i32 %41, ptr %6, align 4
br label %42
42: ; preds = %33
%43 = load i32, ptr %6, align 4
%44 = load i32, ptr @EOF, align 4
%45 = icmp ne i32 %43, %44
br i1 %45, label %46, label %54
46: ; preds = %42
%47 = load i32, ptr %6, align 4
%48 = icmp sge i32 %47, 48
br i1 %48, label %49, label %52
49: ; preds = %46
%50 = load i32, ptr %6, align 4
%51 = icmp sle i32 %50, 57
br label %52
52: ; preds = %49, %46
%53 = phi i1 [ false, %46 ], [ %51, %49 ]
br label %54
54: ; preds = %52, %42
%55 = phi i1 [ false, %42 ], [ %53, %52 ]
br i1 %55, label %33, label %56, !llvm.loop !8
56: ; preds = %54
%57 = load i32, ptr %7, align 4
%58 = load ptr, ptr %4, align 8
store i32 %57, ptr %58, align 4
store i32 0, ptr %3, align 4
br label %59
59: ; preds = %56, %29
%60 = load i32, ptr %3, align 4
ret i32 %60
}
declare i32 @getc(ptr noundef) #1
declare i32 @set_error(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/tmpex_5pebb.c"
target datalayout = "e-m:e-p270: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_num(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %7, align 4
br label %8
8: ; preds = %22, %2
%9 = load ptr, ptr %5, align 8
%10 = call i32 @getc(ptr noundef %9)
store i32 %10, ptr %6, align 4
%11 = load i32, ptr @EOF, align 4
%12 = icmp ne i32 %10, %11
br i1 %12, label %13, label %22
13: ; preds = %8
%14 = load i32, ptr %6, align 4
%15 = icmp sge i32 %14, 48
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = load i32, ptr %6, align 4
%18 = icmp sle i32 %17, 57
br label %19
19: ; preds = %16, %13
%20 = phi i1 [ false, %13 ], [ %18, %16 ]
%21 = xor i1 %20, true
br label %22
22: ; preds = %19, %8
%23 = phi i1 [ false, %8 ], [ %21, %19 ]
br i1 %23, label %8, label %24, !llvm.loop !6
24: ; preds = %22
%25 = load i32, ptr %6, align 4
%26 = load i32, ptr @EOF, align 4
%27 = icmp eq i32 %25, %26
br i1 %27, label %28, label %31
28: ; preds = %24
%29 = load ptr, ptr %4, align 8
store i32 0, ptr %29, align 4
%30 = call i32 @set_error(i32 noundef 8)
store i32 1, ptr %3, align 4
br label %58
31: ; preds = %24
store i32 0, ptr %7, align 4
br label %32
32: ; preds = %53, %31
%33 = load i32, ptr %7, align 4
%34 = mul nsw i32 %33, 10
store i32 %34, ptr %7, align 4
%35 = load i32, ptr %6, align 4
%36 = sub nsw i32 %35, 48
%37 = load i32, ptr %7, align 4
%38 = add nsw i32 %37, %36
store i32 %38, ptr %7, align 4
%39 = load ptr, ptr %5, align 8
%40 = call i32 @getc(ptr noundef %39)
store i32 %40, ptr %6, align 4
br label %41
41: ; preds = %32
%42 = load i32, ptr %6, align 4
%43 = load i32, ptr @EOF, align 4
%44 = icmp ne i32 %42, %43
br i1 %44, label %45, label %53
45: ; preds = %41
%46 = load i32, ptr %6, align 4
%47 = icmp sge i32 %46, 48
br i1 %47, label %48, label %51
48: ; preds = %45
%49 = load i32, ptr %6, align 4
%50 = icmp sle i32 %49, 57
br label %51
51: ; preds = %48, %45
%52 = phi i1 [ false, %45 ], [ %50, %48 ]
br label %53
53: ; preds = %51, %41
%54 = phi i1 [ false, %41 ], [ %52, %51 ]
br i1 %54, label %32, label %55, !llvm.loop !8
55: ; preds = %53
%56 = load i32, ptr %7, align 4
%57 = load ptr, ptr %4, align 8
store i32 %56, ptr %57, align 4
store i32 0, ptr %3, align 4
br label %58
58: ; preds = %55, %28
%59 = load i32, ptr %3, align 4
ret i32 %59
}
declare i32 @getc(ptr noundef) #1
declare i32 @set_error(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/tmpz8bpi379.c'
source_filename = "/tmp/tmpz8bpi379.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @uninitvar_cos() #0 {
%1 = alloca float, align 4
%2 = alloca double, align 8
%3 = alloca x86_fp80, align 16
%4 = load float, ptr %1, align 4
%5 = call i32 @cosf(float noundef %4)
%6 = load double, ptr %2, align 8
%7 = call i32 @cos(double noundef %6)
%8 = load x86_fp80, ptr %3, align 16
%9 = call i32 @cosl(x86_fp80 noundef %8)
ret void
}
declare i32 @cosf(float noundef) #1
declare i32 @cos(double noundef) #1
declare i32 @cosl(x86_fp80 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz8bpi379.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @uninitvar_cos() #0 {
%1 = alloca float, align 4
%2 = alloca double, align 8
%3 = alloca x86_fp80, align 16
%4 = load float, ptr %1, align 4
%5 = call i32 @cosf(float noundef %4)
%6 = load double, ptr %2, align 8
%7 = call i32 @cos(double noundef %6)
%8 = load x86_fp80, ptr %3, align 16
%9 = call i32 @cosl(x86_fp80 noundef %8)
ret void
}
declare i32 @cosf(float noundef) #1
declare i32 @cos(double noundef) #1
declare i32 @cosl(x86_fp80 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpun_ew8h8.c'
source_filename = "/tmp/tmpun_ew8h8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0Alibwgdb version: %d.%d.%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"byte order: %s endian\0A\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"little\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"big\00", align 1
@.str.4 = private unnamed_addr constant [168 x i8] c"compile-time features:\0A 64-bit encoded data: %s\0A queued locks: %s\0A chained nodes in T-tree: %s\0A record backlinking: %s\0A child databases: %s\0A index templates: %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"no\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"yes\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @wg_print_code_version() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 1, ptr %1, align 4
store ptr %1, ptr %2, align 8
%3 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str, ptr noundef null, i32 noundef 8, i32 noundef 0)
%4 = load ptr, ptr %2, align 8
%5 = getelementptr inbounds i8, ptr %4, i64 0
%6 = load i8, ptr %5, align 1
%7 = sext i8 %6 to i32
%8 = icmp eq i32 %7, 1
%9 = zext i1 %8 to i64
%10 = select i1 %8, ptr @.str.2, ptr @.str.3
%11 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %10)
%12 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef @.str.6, ptr noundef @.str.5, ptr noundef @.str.6)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpun_ew8h8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0Alibwgdb version: %d.%d.%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"byte order: %s endian\0A\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"little\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"big\00", align 1
@.str.4 = private unnamed_addr constant [168 x i8] c"compile-time features:\0A 64-bit encoded data: %s\0A queued locks: %s\0A chained nodes in T-tree: %s\0A record backlinking: %s\0A child databases: %s\0A index templates: %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"no\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"yes\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @wg_print_code_version() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 1, ptr %1, align 4
store ptr %1, ptr %2, align 8
%3 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str, ptr noundef null, i32 noundef 8, i32 noundef 0)
%4 = load ptr, ptr %2, align 8
%5 = getelementptr inbounds i8, ptr %4, i64 0
%6 = load i8, ptr %5, align 1
%7 = sext i8 %6 to i32
%8 = icmp eq i32 %7, 1
%9 = zext i1 %8 to i64
%10 = select i1 %8, ptr @.str.2, ptr @.str.3
%11 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %10)
%12 = call i32 (ptr, ptr, ...) @printf(ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef @.str.6, ptr noundef @.str.5, ptr noundef @.str.6)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8b8kjdak.c'
source_filename = "/tmp/tmp8b8kjdak.c"
target datalayout = "e-m:e-p270: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.Point = type { i32, i32 }
@__const.main.p2 = private unnamed_addr constant %struct.Point { i32 77, i32 -8 }, align 4
@.str = private unnamed_addr constant [15 x i8] c"p2 at (%d,%d)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca %struct.Point, align 4
%2 = alloca %struct.Point, align 4
%3 = getelementptr inbounds %struct.Point, ptr %1, i32 0, i32 0
store i32 0, ptr %3, align 4
%4 = getelementptr inbounds %struct.Point, ptr %1, i32 0, i32 1
store i32 123, ptr %4, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 4 @__const.main.p2, i64 8, i1 false)
%5 = getelementptr inbounds %struct.Point, ptr %2, i32 0, i32 0
%6 = load i32, ptr %5, align 4
%7 = getelementptr inbounds %struct.Point, ptr %2, i32 0, i32 1
%8 = load i32, ptr %7, align 4
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %6, i32 noundef %8)
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, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8b8kjdak.c"
target datalayout = "e-m:e-p270: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.Point = type { i32, i32 }
@__const.main.p2 = private unnamed_addr constant %struct.Point { i32 77, i32 -8 }, align 4
@.str = private unnamed_addr constant [15 x i8] c"p2 at (%d,%d)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca %struct.Point, align 4
%2 = alloca %struct.Point, align 4
%3 = getelementptr inbounds %struct.Point, ptr %1, i32 0, i32 0
store i32 0, ptr %3, align 4
%4 = getelementptr inbounds %struct.Point, ptr %1, i32 0, i32 1
store i32 123, ptr %4, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 4 @__const.main.p2, i64 8, i1 false)
%5 = getelementptr inbounds %struct.Point, ptr %2, i32 0, i32 0
%6 = load i32, ptr %5, align 4
%7 = getelementptr inbounds %struct.Point, ptr %2, i32 0, i32 1
%8 = load i32, ptr %7, align 4
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %6, i32 noundef %8)
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, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpq6kuh_2_.c'
source_filename = "/tmp/tmpq6kuh_2_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_4__ = type { i32, i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_bits_per_pixel(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 0, ptr %6, align 4
%10 = load ptr, ptr %4, align 8
%11 = call ptr @XListPixmapFormats(ptr noundef %10, ptr noundef %7)
store ptr %11, ptr %9, align 8
%12 = load ptr, ptr %9, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %15, label %14
14: ; preds = %2
store i32 0, ptr %3, align 4
br label %44
15: ; preds = %2
br label %16
16: ; preds = %37, %15
%17 = load i32, ptr %6, align 4
%18 = load i32, ptr %7, align 4
%19 = icmp eq i32 %17, %18
br i1 %19, label %20, label %21
20: ; preds = %16
store i32 0, ptr %8, align 4
br label %40
21: ; preds = %16
%22 = load ptr, ptr %9, align 8
%23 = load i32, ptr %6, align 4
%24 = zext i32 %23 to i64
%25 = getelementptr inbounds %struct.TYPE_4__, ptr %22, i64 %24
%26 = getelementptr inbounds %struct.TYPE_4__, ptr %25, i32 0, i32 0
%27 = load i32, ptr %26, align 4
%28 = load i32, ptr %5, align 4
%29 = icmp eq i32 %27, %28
br i1 %29, label %30, label %37
30: ; preds = %21
%31 = load ptr, ptr %9, align 8
%32 = load i32, ptr %6, align 4
%33 = zext i32 %32 to i64
%34 = getelementptr inbounds %struct.TYPE_4__, ptr %31, i64 %33
%35 = getelementptr inbounds %struct.TYPE_4__, ptr %34, i32 0, i32 1
%36 = load i32, ptr %35, align 4
store i32 %36, ptr %8, align 4
br label %40
37: ; preds = %21
%38 = load i32, ptr %6, align 4
%39 = add i32 %38, 1
store i32 %39, ptr %6, align 4
br label %16
40: ; preds = %30, %20
%41 = load ptr, ptr %9, align 8
%42 = call i32 @XFree(ptr noundef %41)
%43 = load i32, ptr %8, align 4
store i32 %43, ptr %3, align 4
br label %44
44: ; preds = %40, %14
%45 = load i32, ptr %3, align 4
ret i32 %45
}
declare ptr @XListPixmapFormats(ptr noundef, ptr noundef) #1
declare i32 @XFree(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq6kuh_2_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_4__ = type { i32, i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_bits_per_pixel(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 0, ptr %6, align 4
%10 = load ptr, ptr %4, align 8
%11 = call ptr @XListPixmapFormats(ptr noundef %10, ptr noundef %7)
store ptr %11, ptr %9, align 8
%12 = load ptr, ptr %9, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %15, label %14
14: ; preds = %2
store i32 0, ptr %3, align 4
br label %46
15: ; preds = %2
%16 = load i32, ptr %6, align 4
%17 = load i32, ptr %7, align 4
%18 = icmp eq i32 %16, %17
br i1 %18, label %19, label %.lr.ph
.lr.ph: ; preds = %15
br label %20
._crit_edge: ; preds = %36
br label %19
19: ; preds = %._crit_edge, %15
store i32 0, ptr %8, align 4
br label %42
20: ; preds = %.lr.ph, %36
%21 = load ptr, ptr %9, align 8
%22 = load i32, ptr %6, align 4
%23 = zext i32 %22 to i64
%24 = getelementptr inbounds %struct.TYPE_4__, ptr %21, i64 %23
%25 = getelementptr inbounds %struct.TYPE_4__, ptr %24, i32 0, i32 0
%26 = load i32, ptr %25, align 4
%27 = load i32, ptr %5, align 4
%28 = icmp eq i32 %26, %27
br i1 %28, label %29, label %36
29: ; preds = %20
%30 = load ptr, ptr %9, align 8
%31 = load i32, ptr %6, align 4
%32 = zext i32 %31 to i64
%33 = getelementptr inbounds %struct.TYPE_4__, ptr %30, i64 %32
%34 = getelementptr inbounds %struct.TYPE_4__, ptr %33, i32 0, i32 1
%35 = load i32, ptr %34, align 4
store i32 %35, ptr %8, align 4
br label %42
36: ; preds = %20
%37 = load i32, ptr %6, align 4
%38 = add i32 %37, 1
store i32 %38, ptr %6, align 4
%39 = load i32, ptr %6, align 4
%40 = load i32, ptr %7, align 4
%41 = icmp eq i32 %39, %40
br i1 %41, label %._crit_edge, label %20
42: ; preds = %29, %19
%43 = load ptr, ptr %9, align 8
%44 = call i32 @XFree(ptr noundef %43)
%45 = load i32, ptr %8, align 4
store i32 %45, ptr %3, align 4
br label %46
46: ; preds = %42, %14
%47 = load i32, ptr %3, align 4
ret i32 %47
}
declare ptr @XListPixmapFormats(ptr noundef, ptr noundef) #1
declare i32 @XFree(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprphx9cz6.c'
source_filename = "/tmp/tmprphx9cz6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define weak 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 = load ptr, ptr %5, align 8
%8 = call i32 @HonggfuzzMain(i32 noundef %6, ptr noundef %7)
ret i32 %8
}
declare i32 @HonggfuzzMain(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmprphx9cz6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define weak 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 = load ptr, ptr %5, align 8
%8 = call i32 @HonggfuzzMain(i32 noundef %6, ptr noundef %7)
ret i32 %8
}
declare i32 @HonggfuzzMain(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwwm4pc9x.c'
source_filename = "/tmp/tmpwwm4pc9x.c"
target datalayout = "e-m:e-p270: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.tm = type { i32, i32, i32, i32, i32, i32, i32, i64, i32 }
@main.dstr = internal global ptr @.str, align 8
@.str = private unnamed_addr constant [25 x i8] c"Sun Dec 2 06:55:15 1979\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"16\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"Current data -- \00", align 1
@stdout = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [25 x i8] c"SUCCESS testing <time.h>\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [32 x i8], align 16
%3 = alloca i64, align 8
%4 = alloca %struct.tm, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store i32 0, ptr %1, align 4
%7 = call i64 (...) @clock()
store i64 %7, ptr %3, align 8
%8 = call i64 @time(ptr noundef %6)
store i64 %8, ptr %5, align 8
%9 = load i64, ptr %5, align 8
%10 = load i64, ptr %6, align 8
%11 = icmp eq i64 %9, %10
%12 = zext i1 %11 to i32
%13 = call i32 @assert(i32 noundef %12)
%14 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 0
store i32 15, ptr %14, align 8
%15 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 1
store i32 55, ptr %15, align 4
%16 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 2
store i32 6, ptr %16, align 8
%17 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 3
store i32 2, ptr %17, align 4
%18 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 4
store i32 11, ptr %18, align 8
%19 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 5
store i32 79, ptr %19, align 4
%20 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 6
store i32 -2, ptr %20, align 8
%21 = call i64 @mktime(ptr noundef %4)
store i64 %21, ptr %5, align 8
%22 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 7
%23 = load i64, ptr %22, align 8
%24 = icmp eq i64 %23, 0
%25 = zext i1 %24 to i32
%26 = call i32 @assert(i32 noundef %25)
%27 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 8
%28 = load i32, ptr %27, align 8
%29 = icmp eq i32 %28, 335
%30 = zext i1 %29 to i32
%31 = call i32 @assert(i32 noundef %30)
%32 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 0
%33 = load i32, ptr %32, align 8
%34 = add nsw i32 %33, 1
store i32 %34, ptr %32, align 8
%35 = call i64 @mktime(ptr noundef %4)
store i64 %35, ptr %6, align 8
%36 = load i64, ptr %5, align 8
%37 = load i64, ptr %6, align 8
%38 = call double @difftime(i64 noundef %36, i64 noundef %37)
%39 = fcmp olt double %38, 0.000000e+00
%40 = zext i1 %39 to i32
%41 = call i32 @assert(i32 noundef %40)
%42 = call i32 @localtime(ptr noundef %5)
%43 = call ptr @asctime(i32 noundef %42)
%44 = load ptr, ptr @main.dstr, align 8
%45 = call i32 @strcmp(ptr noundef %43, ptr noundef %44)
%46 = call i32 @assert(i32 noundef %45)
%47 = getelementptr inbounds [32 x i8], ptr %2, i64 0, i64 0
%48 = call i32 @strcmp(ptr noundef %47, ptr noundef @.str.1)
%49 = icmp eq i32 %48, 0
%50 = zext i1 %49 to i32
%51 = call i32 @assert(i32 noundef %50)
%52 = load i64, ptr %3, align 8
%53 = call i64 (...) @clock()
%54 = icmp sle i64 %52, %53
%55 = zext i1 %54 to i32
%56 = call i32 @assert(i32 noundef %55)
%57 = load i32, ptr @stdout, align 4
%58 = call i32 @fputs(ptr noundef @.str.2, i32 noundef %57)
%59 = call i64 @time(ptr noundef %5)
%60 = call ptr @ctime(ptr noundef %5)
%61 = load i32, ptr @stdout, align 4
%62 = call i32 @fputs(ptr noundef %60, i32 noundef %61)
%63 = call i32 @puts(ptr noundef @.str.3)
ret i32 0
}
declare i64 @clock(...) #1
declare i64 @time(ptr noundef) #1
declare i32 @assert(i32 noundef) #1
declare i64 @mktime(ptr noundef) #1
declare double @difftime(i64 noundef, i64 noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare ptr @asctime(i32 noundef) #1
declare i32 @localtime(ptr noundef) #1
declare i32 @fputs(ptr noundef, i32 noundef) #1
declare ptr @ctime(ptr noundef) #1
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwwm4pc9x.c"
target datalayout = "e-m:e-p270: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.tm = type { i32, i32, i32, i32, i32, i32, i32, i64, i32 }
@main.dstr = internal global ptr @.str, align 8
@.str = private unnamed_addr constant [25 x i8] c"Sun Dec 2 06:55:15 1979\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"16\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"Current data -- \00", align 1
@stdout = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [25 x i8] c"SUCCESS testing <time.h>\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [32 x i8], align 16
%3 = alloca i64, align 8
%4 = alloca %struct.tm, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store i32 0, ptr %1, align 4
%7 = call i64 (...) @clock()
store i64 %7, ptr %3, align 8
%8 = call i64 @time(ptr noundef %6)
store i64 %8, ptr %5, align 8
%9 = load i64, ptr %5, align 8
%10 = load i64, ptr %6, align 8
%11 = icmp eq i64 %9, %10
%12 = zext i1 %11 to i32
%13 = call i32 @assert(i32 noundef %12)
%14 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 0
store i32 15, ptr %14, align 8
%15 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 1
store i32 55, ptr %15, align 4
%16 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 2
store i32 6, ptr %16, align 8
%17 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 3
store i32 2, ptr %17, align 4
%18 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 4
store i32 11, ptr %18, align 8
%19 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 5
store i32 79, ptr %19, align 4
%20 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 6
store i32 -2, ptr %20, align 8
%21 = call i64 @mktime(ptr noundef %4)
store i64 %21, ptr %5, align 8
%22 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 7
%23 = load i64, ptr %22, align 8
%24 = icmp eq i64 %23, 0
%25 = zext i1 %24 to i32
%26 = call i32 @assert(i32 noundef %25)
%27 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 8
%28 = load i32, ptr %27, align 8
%29 = icmp eq i32 %28, 335
%30 = zext i1 %29 to i32
%31 = call i32 @assert(i32 noundef %30)
%32 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 0
%33 = load i32, ptr %32, align 8
%34 = add nsw i32 %33, 1
store i32 %34, ptr %32, align 8
%35 = call i64 @mktime(ptr noundef %4)
store i64 %35, ptr %6, align 8
%36 = load i64, ptr %5, align 8
%37 = load i64, ptr %6, align 8
%38 = call double @difftime(i64 noundef %36, i64 noundef %37)
%39 = fcmp olt double %38, 0.000000e+00
%40 = zext i1 %39 to i32
%41 = call i32 @assert(i32 noundef %40)
%42 = call i32 @localtime(ptr noundef %5)
%43 = call ptr @asctime(i32 noundef %42)
%44 = load ptr, ptr @main.dstr, align 8
%45 = call i32 @strcmp(ptr noundef %43, ptr noundef %44)
%46 = call i32 @assert(i32 noundef %45)
%47 = getelementptr inbounds [32 x i8], ptr %2, i64 0, i64 0
%48 = call i32 @strcmp(ptr noundef %47, ptr noundef @.str.1)
%49 = icmp eq i32 %48, 0
%50 = zext i1 %49 to i32
%51 = call i32 @assert(i32 noundef %50)
%52 = load i64, ptr %3, align 8
%53 = call i64 (...) @clock()
%54 = icmp sle i64 %52, %53
%55 = zext i1 %54 to i32
%56 = call i32 @assert(i32 noundef %55)
%57 = load i32, ptr @stdout, align 4
%58 = call i32 @fputs(ptr noundef @.str.2, i32 noundef %57)
%59 = call i64 @time(ptr noundef %5)
%60 = call ptr @ctime(ptr noundef %5)
%61 = load i32, ptr @stdout, align 4
%62 = call i32 @fputs(ptr noundef %60, i32 noundef %61)
%63 = call i32 @puts(ptr noundef @.str.3)
ret i32 0
}
declare i64 @clock(...) #1
declare i64 @time(ptr noundef) #1
declare i32 @assert(i32 noundef) #1
declare i64 @mktime(ptr noundef) #1
declare double @difftime(i64 noundef, i64 noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare ptr @asctime(i32 noundef) #1
declare i32 @localtime(ptr noundef) #1
declare i32 @fputs(ptr noundef, i32 noundef) #1
declare ptr @ctime(ptr noundef) #1
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE 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_p95okgr.c'
source_filename = "/tmp/tmp_p95okgr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"czp.dat\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"czp_ex2-1.dat\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"wb\00", align 1
@.str.4 = private unnamed_addr constant [22 x i8] c"zsh plot_ex2-1_czp.sh\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [256 x [256 x i8]], align 16
%3 = alloca [256 x [256 x i8]], align 16
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 65536, i1 false)
%7 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %7, ptr %4, align 8
%8 = getelementptr inbounds [256 x [256 x i8]], ptr %2, i64 0, i64 0
%9 = load ptr, ptr %4, align 8
%10 = call i32 @fread(ptr noundef %8, i32 noundef 1, i32 noundef 65536, ptr noundef %9)
%11 = load ptr, ptr %4, align 8
%12 = call i32 @fclose(ptr noundef %11)
store i32 1, ptr %5, align 4
br label %13
13: ; preds = %107, %0
%14 = load i32, ptr %5, align 4
%15 = icmp slt i32 %14, 255
br i1 %15, label %16, label %110
16: ; preds = %13
store i32 1, ptr %6, align 4
br label %17
17: ; preds = %103, %16
%18 = load i32, ptr %6, align 4
%19 = icmp slt i32 %18, 255
br i1 %19, label %20, label %106
20: ; preds = %17
%21 = load i32, ptr %5, align 4
%22 = sub nsw i32 %21, 1
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [256 x [256 x i8]], ptr %2, i64 0, i64 %23
%25 = load i32, ptr %6, align 4
%26 = sub nsw i32 %25, 1
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [256 x i8], ptr %24, i64 0, i64 %27
%29 = load i8, ptr %28, align 1
%30 = load i32, ptr %5, align 4
%31 = sub nsw i32 %30, 1
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [256 x [256 x i8]], ptr %2, i64 0, i64 %32
%34 = load i32, ptr %6, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [256 x i8], ptr %33, i64 0, i64 %35
%37 = load i8, ptr %36, align 1
%38 = load i32, ptr %5, align 4
%39 = sub nsw i32 %38, 1
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [256 x [256 x i8]], ptr %2, i64 0, i64 %40
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [256 x i8], ptr %41, i64 0, i64 %44
%46 = load i8, ptr %45, align 1
%47 = load i32, ptr %5, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [256 x [256 x i8]], ptr %2, i64 0, i64 %48
%50 = load i32, ptr %6, align 4
%51 = sub nsw i32 %50, 1
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [256 x i8], ptr %49, i64 0, i64 %52
%54 = load i8, ptr %53, align 1
%55 = load i32, ptr %5, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [256 x [256 x i8]], ptr %2, i64 0, i64 %56
%58 = load i32, ptr %6, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [256 x i8], ptr %57, i64 0, i64 %59
%61 = load i8, ptr %60, align 1
%62 = load i32, ptr %5, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [256 x [256 x i8]], ptr %2, i64 0, i64 %63
%65 = load i32, ptr %6, align 4
%66 = add nsw i32 %65, 1
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [256 x i8], ptr %64, i64 0, i64 %67
%69 = load i8, ptr %68, align 1
%70 = load i32, ptr %5, align 4
%71 = add nsw i32 %70, 1
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [256 x [256 x i8]], ptr %2, i64 0, i64 %72
%74 = load i32, ptr %6, align 4
%75 = sub nsw i32 %74, 1
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [256 x i8], ptr %73, i64 0, i64 %76
%78 = load i8, ptr %77, align 1
%79 = load i32, ptr %5, align 4
%80 = add nsw i32 %79, 1
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [256 x [256 x i8]], ptr %2, i64 0, i64 %81
%83 = load i32, ptr %6, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [256 x i8], ptr %82, i64 0, i64 %84
%86 = load i8, ptr %85, align 1
%87 = load i32, ptr %5, align 4
%88 = add nsw i32 %87, 1
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [256 x [256 x i8]], ptr %2, i64 0, i64 %89
%91 = load i32, ptr %6, align 4
%92 = add nsw i32 %91, 1
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [256 x i8], ptr %90, i64 0, i64 %93
%95 = load i8, ptr %94, align 1
%96 = call zeroext i8 @smoothing(i8 noundef zeroext %29, i8 noundef zeroext %37, i8 noundef zeroext %46, i8 noundef zeroext %54, i8 noundef zeroext %61, i8 noundef zeroext %69, i8 noundef zeroext %78, i8 noundef zeroext %86, i8 noundef zeroext %95)
%97 = load i32, ptr %5, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds [256 x [256 x i8]], ptr %3, i64 0, i64 %98
%100 = load i32, ptr %6, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds [256 x i8], ptr %99, i64 0, i64 %101
store i8 %96, ptr %102, align 1
br label %103
103: ; preds = %20
%104 = load i32, ptr %6, align 4
%105 = add nsw i32 %104, 1
store i32 %105, ptr %6, align 4
br label %17, !llvm.loop !6
106: ; preds = %17
br label %107
107: ; preds = %106
%108 = load i32, ptr %5, align 4
%109 = add nsw i32 %108, 1
store i32 %109, ptr %5, align 4
br label %13, !llvm.loop !8
110: ; preds = %13
%111 = call ptr @fopen(ptr noundef @.str.2, ptr noundef @.str.3)
store ptr %111, ptr %4, align 8
%112 = getelementptr inbounds [256 x [256 x i8]], ptr %3, i64 0, i64 0
%113 = load ptr, ptr %4, align 8
%114 = call i32 @fwrite(ptr noundef %112, i32 noundef 1, i32 noundef 65536, ptr noundef %113)
%115 = load ptr, ptr %4, align 8
%116 = call i32 @fclose(ptr noundef %115)
%117 = call i32 @system(ptr noundef @.str.4)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2
declare i32 @fclose(ptr noundef) #2
declare zeroext i8 @smoothing(i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) #2
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2
declare i32 @system(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_p95okgr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"czp.dat\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"czp_ex2-1.dat\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"wb\00", align 1
@.str.4 = private unnamed_addr constant [22 x i8] c"zsh plot_ex2-1_czp.sh\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [256 x [256 x i8]], align 16
%3 = alloca [256 x [256 x i8]], align 16
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 65536, i1 false)
%7 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %7, ptr %4, align 8
%8 = getelementptr inbounds [256 x [256 x i8]], ptr %2, i64 0, i64 0
%9 = load ptr, ptr %4, align 8
%10 = call i32 @fread(ptr noundef %8, i32 noundef 1, i32 noundef 65536, ptr noundef %9)
%11 = load ptr, ptr %4, align 8
%12 = call i32 @fclose(ptr noundef %11)
store i32 1, ptr %5, align 4
%13 = load i32, ptr %5, align 4
%14 = icmp slt i32 %13, 255
br i1 %14, label %.lr.ph2, label %112
.lr.ph2: ; preds = %0
br label %15
15: ; preds = %.lr.ph2, %107
store i32 1, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = icmp slt i32 %16, 255
br i1 %17, label %.lr.ph, label %106
.lr.ph: ; preds = %15
br label %18
18: ; preds = %.lr.ph, %101
%19 = load i32, ptr %5, align 4
%20 = sub nsw i32 %19, 1
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [256 x [256 x i8]], ptr %2, i64 0, i64 %21
%23 = load i32, ptr %6, align 4
%24 = sub nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [256 x i8], ptr %22, i64 0, i64 %25
%27 = load i8, ptr %26, align 1
%28 = load i32, ptr %5, align 4
%29 = sub nsw i32 %28, 1
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [256 x [256 x i8]], ptr %2, i64 0, i64 %30
%32 = load i32, ptr %6, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [256 x i8], ptr %31, i64 0, i64 %33
%35 = load i8, ptr %34, align 1
%36 = load i32, ptr %5, align 4
%37 = sub nsw i32 %36, 1
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [256 x [256 x i8]], ptr %2, i64 0, i64 %38
%40 = load i32, ptr %6, align 4
%41 = add nsw i32 %40, 1
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [256 x i8], ptr %39, i64 0, i64 %42
%44 = load i8, ptr %43, align 1
%45 = load i32, ptr %5, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [256 x [256 x i8]], ptr %2, i64 0, i64 %46
%48 = load i32, ptr %6, align 4
%49 = sub nsw i32 %48, 1
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [256 x i8], ptr %47, i64 0, i64 %50
%52 = load i8, ptr %51, align 1
%53 = load i32, ptr %5, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [256 x [256 x i8]], ptr %2, i64 0, i64 %54
%56 = load i32, ptr %6, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [256 x i8], ptr %55, i64 0, i64 %57
%59 = load i8, ptr %58, align 1
%60 = load i32, ptr %5, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [256 x [256 x i8]], ptr %2, i64 0, i64 %61
%63 = load i32, ptr %6, align 4
%64 = add nsw i32 %63, 1
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [256 x i8], ptr %62, i64 0, i64 %65
%67 = load i8, ptr %66, align 1
%68 = load i32, ptr %5, align 4
%69 = add nsw i32 %68, 1
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [256 x [256 x i8]], ptr %2, i64 0, i64 %70
%72 = load i32, ptr %6, align 4
%73 = sub nsw i32 %72, 1
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [256 x i8], ptr %71, i64 0, i64 %74
%76 = load i8, ptr %75, align 1
%77 = load i32, ptr %5, align 4
%78 = add nsw i32 %77, 1
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [256 x [256 x i8]], ptr %2, i64 0, i64 %79
%81 = load i32, ptr %6, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [256 x i8], ptr %80, i64 0, i64 %82
%84 = load i8, ptr %83, align 1
%85 = load i32, ptr %5, align 4
%86 = add nsw i32 %85, 1
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [256 x [256 x i8]], ptr %2, i64 0, i64 %87
%89 = load i32, ptr %6, align 4
%90 = add nsw i32 %89, 1
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [256 x i8], ptr %88, i64 0, i64 %91
%93 = load i8, ptr %92, align 1
%94 = call zeroext i8 @smoothing(i8 noundef zeroext %27, i8 noundef zeroext %35, i8 noundef zeroext %44, i8 noundef zeroext %52, i8 noundef zeroext %59, i8 noundef zeroext %67, i8 noundef zeroext %76, i8 noundef zeroext %84, i8 noundef zeroext %93)
%95 = load i32, ptr %5, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [256 x [256 x i8]], ptr %3, i64 0, i64 %96
%98 = load i32, ptr %6, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [256 x i8], ptr %97, i64 0, i64 %99
store i8 %94, ptr %100, align 1
br label %101
101: ; preds = %18
%102 = load i32, ptr %6, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %6, align 4
%104 = load i32, ptr %6, align 4
%105 = icmp slt i32 %104, 255
br i1 %105, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %101
br label %106
106: ; preds = %._crit_edge, %15
br label %107
107: ; preds = %106
%108 = load i32, ptr %5, align 4
%109 = add nsw i32 %108, 1
store i32 %109, ptr %5, align 4
%110 = load i32, ptr %5, align 4
%111 = icmp slt i32 %110, 255
br i1 %111, label %15, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %107
br label %112
112: ; preds = %._crit_edge3, %0
%113 = call ptr @fopen(ptr noundef @.str.2, ptr noundef @.str.3)
store ptr %113, ptr %4, align 8
%114 = getelementptr inbounds [256 x [256 x i8]], ptr %3, i64 0, i64 0
%115 = load ptr, ptr %4, align 8
%116 = call i32 @fwrite(ptr noundef %114, i32 noundef 1, i32 noundef 65536, ptr noundef %115)
%117 = load ptr, ptr %4, align 8
%118 = call i32 @fclose(ptr noundef %117)
%119 = call i32 @system(ptr noundef @.str.4)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2
declare i32 @fclose(ptr noundef) #2
declare zeroext i8 @smoothing(i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) #2
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2
declare i32 @system(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp0un4nits.c'
source_filename = "/tmp/tmp0un4nits.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"Number of seconds: %ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
store i32 0, ptr %1, align 4
%3 = call i32 @getSeconds(ptr noundef %2)
%4 = load i64, ptr %2, align 8
%5 = call i32 @printf(ptr noundef @.str, i64 noundef %4)
ret i32 0
}
declare i32 @getSeconds(ptr noundef) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0un4nits.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"Number of seconds: %ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
store i32 0, ptr %1, align 4
%3 = call i32 @getSeconds(ptr noundef %2)
%4 = load i64, ptr %2, align 8
%5 = call i32 @printf(ptr noundef @.str, i64 noundef %4)
ret i32 0
}
declare i32 @getSeconds(ptr noundef) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpr77g4uth.c'
source_filename = "/tmp/tmpr77g4uth.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %5, align 8
%7 = getelementptr inbounds ptr, ptr %6, i64 0
%8 = load ptr, ptr %7, align 8
%9 = call ptr @basename(ptr noundef %8)
%10 = call i32 @printf(ptr noundef @.str, ptr noundef %9)
%11 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %11
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @basename(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr77g4uth.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %5, align 8
%7 = getelementptr inbounds ptr, ptr %6, i64 0
%8 = load ptr, ptr %7, align 8
%9 = call ptr @basename(ptr noundef %8)
%10 = call i32 @printf(ptr noundef @.str, ptr noundef %9)
%11 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %11
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @basename(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7dtj91w9.c'
source_filename = "/tmp/tmp7dtj91w9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @canny_gaussian(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
store float %0, ptr %3, align 4
store float %1, ptr %4, align 4
%5 = load float, ptr %3, align 4
%6 = load float, ptr %3, align 4
%7 = fmul float %5, %6
%8 = fneg float %7
%9 = load float, ptr %4, align 4
%10 = fmul float 2.000000e+00, %9
%11 = load float, ptr %4, align 4
%12 = fmul float %10, %11
%13 = fdiv float %8, %12
%14 = call float @exp(float noundef %13)
ret float %14
}
declare float @exp(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/tmp7dtj91w9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @canny_gaussian(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
store float %0, ptr %3, align 4
store float %1, ptr %4, align 4
%5 = load float, ptr %3, align 4
%6 = load float, ptr %3, align 4
%7 = fmul float %5, %6
%8 = fneg float %7
%9 = load float, ptr %4, align 4
%10 = fmul float 2.000000e+00, %9
%11 = load float, ptr %4, align 4
%12 = fmul float %10, %11
%13 = fdiv float %8, %12
%14 = call float @exp(float noundef %13)
ret float %14
}
declare float @exp(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/tmpm9ax_2yi.c'
source_filename = "/tmp/tmpm9ax_2yi.c"
target datalayout = "e-m:e-p270: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/tmpm9ax_2yi.c"
target datalayout = "e-m:e-p270: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/tmpzdkmsuye.c'
source_filename = "/tmp/tmpzdkmsuye.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@getsockname = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @lbs_posix_socket_sockname(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = load i32, ptr @getsockname, align 4
%5 = call ptr @lbs_posix_socket_name(i32 noundef %3, i32 noundef %4)
ret ptr %5
}
declare ptr @lbs_posix_socket_name(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/tmpzdkmsuye.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@getsockname = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @lbs_posix_socket_sockname(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = load i32, ptr @getsockname, align 4
%5 = call ptr @lbs_posix_socket_name(i32 noundef %3, i32 noundef %4)
ret ptr %5
}
declare ptr @lbs_posix_socket_name(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/tmp1914xk_2.c'
source_filename = "/tmp/tmp1914xk_2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"hello world!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local 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/tmp1914xk_2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"hello world!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local 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/tmp3m1noeto.c'
source_filename = "/tmp/tmp3m1noeto.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"test\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"-a\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"foo\00", align 1
@__const.test_opt_w_separate_arg.argv = private unnamed_addr constant [3 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2], align 16
@.str.3 = private unnamed_addr constant [63 x i8] c"Testing with 1 opt that takes a separate arg, and 0 operands.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_opt_w_separate_arg(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca [3 x ptr], align 16
store ptr %0, ptr %2, align 8
store i32 3, ptr %3, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.test_opt_w_separate_arg.argv, i64 24, i1 false)
%5 = call i32 @printf(ptr noundef @.str.3)
%6 = load i32, ptr %3, align 4
%7 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 0
%8 = load ptr, ptr %2, align 8
%9 = call i32 @echo_test_setup(i32 noundef %6, ptr noundef %7, ptr noundef %8)
%10 = load i32, ptr %3, align 4
%11 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 0
%12 = load ptr, ptr %2, align 8
%13 = call i32 @test_validation(i32 noundef %10, ptr noundef %11, ptr noundef %12)
ret i32 %13
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef) #2
declare i32 @echo_test_setup(i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @test_validation(i32 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 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/tmp3m1noeto.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"test\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"-a\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"foo\00", align 1
@__const.test_opt_w_separate_arg.argv = private unnamed_addr constant [3 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2], align 16
@.str.3 = private unnamed_addr constant [63 x i8] c"Testing with 1 opt that takes a separate arg, and 0 operands.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_opt_w_separate_arg(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca [3 x ptr], align 16
store ptr %0, ptr %2, align 8
store i32 3, ptr %3, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.test_opt_w_separate_arg.argv, i64 24, i1 false)
%5 = call i32 @printf(ptr noundef @.str.3)
%6 = load i32, ptr %3, align 4
%7 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 0
%8 = load ptr, ptr %2, align 8
%9 = call i32 @echo_test_setup(i32 noundef %6, ptr noundef %7, ptr noundef %8)
%10 = load i32, ptr %3, align 4
%11 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 0
%12 = load ptr, ptr %2, align 8
%13 = call i32 @test_validation(i32 noundef %10, ptr noundef %11, ptr noundef %12)
ret i32 %13
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef) #2
declare i32 @echo_test_setup(i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @test_validation(i32 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 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/tmptwhonwb5.c'
source_filename = "/tmp/tmptwhonwb5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @chop(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %10, label %8
8: ; preds = %1
%9 = load ptr, ptr %3, align 8
store ptr %9, ptr %2, align 8
br label %55
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
store ptr %11, ptr %4, align 8
br label %12
12: ; preds = %29, %10
%13 = load ptr, ptr %4, align 8
%14 = load i8, ptr %13, align 1
%15 = icmp ne i8 %14, 0
br i1 %15, label %16, label %32
16: ; preds = %12
%17 = load ptr, ptr %4, align 8
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp sge i32 %19, 1
br i1 %20, label %21, label %28
21: ; preds = %16
%22 = load ptr, ptr %4, align 8
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp slt i32 %24, 32
br i1 %25, label %26, label %28
26: ; preds = %21
%27 = load ptr, ptr %4, align 8
store i8 32, ptr %27, align 1
br label %28
28: ; preds = %26, %21, %16
br label %29
29: ; preds = %28
%30 = load ptr, ptr %4, align 8
%31 = getelementptr inbounds i8, ptr %30, i32 1
store ptr %31, ptr %4, align 8
br label %12, !llvm.loop !6
32: ; preds = %12
%33 = load ptr, ptr %3, align 8
%34 = call i64 @strlen(ptr noundef %33)
store i64 %34, ptr %5, align 8
br label %35
35: ; preds = %48, %32
%36 = load i64, ptr %5, align 8
%37 = icmp ugt i64 %36, 0
br i1 %37, label %38, label %46
38: ; preds = %35
%39 = load ptr, ptr %3, align 8
%40 = load i64, ptr %5, align 8
%41 = sub i64 %40, 1
%42 = getelementptr inbounds i8, ptr %39, i64 %41
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %44, 32
br label %46
46: ; preds = %38, %35
%47 = phi i1 [ false, %35 ], [ %45, %38 ]
br i1 %47, label %48, label %53
48: ; preds = %46
%49 = load ptr, ptr %3, align 8
%50 = load i64, ptr %5, align 8
%51 = add i64 %50, -1
store i64 %51, ptr %5, align 8
%52 = getelementptr inbounds i8, ptr %49, i64 %51
store i8 0, ptr %52, align 1
br label %35, !llvm.loop !8
53: ; preds = %46
%54 = load ptr, ptr %3, align 8
store ptr %54, ptr %2, align 8
br label %55
55: ; preds = %53, %8
%56 = load ptr, ptr %2, align 8
ret ptr %56
}
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmptwhonwb5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @chop(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %10, label %8
8: ; preds = %1
%9 = load ptr, ptr %3, align 8
store ptr %9, ptr %2, align 8
br label %57
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
store ptr %11, ptr %4, align 8
%12 = load ptr, ptr %4, align 8
%13 = load i8, ptr %12, align 1
%14 = icmp ne i8 %13, 0
br i1 %14, label %.lr.ph, label %34
.lr.ph: ; preds = %10
br label %15
15: ; preds = %.lr.ph, %28
%16 = load ptr, ptr %4, align 8
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp sge i32 %18, 1
br i1 %19, label %20, label %27
20: ; preds = %15
%21 = load ptr, ptr %4, align 8
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp slt i32 %23, 32
br i1 %24, label %25, label %27
25: ; preds = %20
%26 = load ptr, ptr %4, align 8
store i8 32, ptr %26, align 1
br label %27
27: ; preds = %25, %20, %15
br label %28
28: ; preds = %27
%29 = load ptr, ptr %4, align 8
%30 = getelementptr inbounds i8, ptr %29, i32 1
store ptr %30, ptr %4, align 8
%31 = load ptr, ptr %4, align 8
%32 = load i8, ptr %31, align 1
%33 = icmp ne i8 %32, 0
br i1 %33, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %34
34: ; preds = %._crit_edge, %10
%35 = load ptr, ptr %3, align 8
%36 = call i64 @strlen(ptr noundef %35)
store i64 %36, ptr %5, align 8
br label %37
37: ; preds = %50, %34
%38 = load i64, ptr %5, align 8
%39 = icmp ugt i64 %38, 0
br i1 %39, label %40, label %48
40: ; preds = %37
%41 = load ptr, ptr %3, align 8
%42 = load i64, ptr %5, align 8
%43 = sub i64 %42, 1
%44 = getelementptr inbounds i8, ptr %41, i64 %43
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = icmp eq i32 %46, 32
br label %48
48: ; preds = %40, %37
%49 = phi i1 [ false, %37 ], [ %47, %40 ]
br i1 %49, label %50, label %55
50: ; preds = %48
%51 = load ptr, ptr %3, align 8
%52 = load i64, ptr %5, align 8
%53 = add i64 %52, -1
store i64 %53, ptr %5, align 8
%54 = getelementptr inbounds i8, ptr %51, i64 %53
store i8 0, ptr %54, align 1
br label %37, !llvm.loop !8
55: ; preds = %48
%56 = load ptr, ptr %3, align 8
store ptr %56, ptr %2, align 8
br label %57
57: ; preds = %55, %8
%58 = load ptr, ptr %2, align 8
ret ptr %58
}
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpif9xgw9s.c'
source_filename = "/tmp/tmpif9xgw9s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_RSA2048_qInv(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %6, align 8
%11 = getelementptr inbounds i32, ptr %10, i64 7
%12 = load i32, ptr %11, align 4
%13 = add nsw i32 %12, 5
%14 = load ptr, ptr %7, align 8
%15 = getelementptr inbounds i32, ptr %14, i64 8
%16 = load i32, ptr %15, align 4
%17 = load ptr, ptr %8, align 8
%18 = call i32 @get_key(ptr noundef %9, i32 noundef %13, i32 noundef %16, i32 noundef 128, ptr noundef %17)
ret i32 %18
}
declare i32 @get_key(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpif9xgw9s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_RSA2048_qInv(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %6, align 8
%11 = getelementptr inbounds i32, ptr %10, i64 7
%12 = load i32, ptr %11, align 4
%13 = add nsw i32 %12, 5
%14 = load ptr, ptr %7, align 8
%15 = getelementptr inbounds i32, ptr %14, i64 8
%16 = load i32, ptr %15, align 4
%17 = load ptr, ptr %8, align 8
%18 = call i32 @get_key(ptr noundef %9, i32 noundef %13, i32 noundef %16, i32 noundef 128, ptr noundef %17)
ret i32 %18
}
declare i32 @get_key(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpx0n0g2dd.c'
source_filename = "/tmp/tmpx0n0g2dd.c"
target datalayout = "e-m:e-p270: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/tmpx0n0g2dd.c"
target datalayout = "e-m:e-p270: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/tmpg0tgn7_j.c'
source_filename = "/tmp/tmpg0tgn7_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 [31 x i8] c"This is a dummy shared obect.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @func() #0 {
%1 = 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/tmpg0tgn7_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 [31 x i8] c"This is a dummy shared obect.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @func() #0 {
%1 = 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/tmpy9jeev2w.c'
source_filename = "/tmp/tmpy9jeev2w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cholesky_LL(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i8 noundef signext %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i8, align 1
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca i64, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i8 %4, ptr %10, align 1
%17 = load i32, ptr %9, align 4
%18 = load i32, ptr %9, align 4
%19 = call i64 @mat(i32 noundef %17, i32 noundef %18)
%20 = inttoptr i64 %19 to ptr
store ptr %20, ptr %11, align 8
store i32 0, ptr %14, align 4
br label %21
21: ; preds = %43, %5
%22 = load i32, ptr %14, align 4
%23 = load i32, ptr %9, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %46
25: ; preds = %21
%26 = load ptr, ptr %11, align 8
%27 = load i32, ptr %14, align 4
%28 = load i32, ptr %9, align 4
%29 = mul nsw i32 %27, %28
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds double, ptr %26, i64 %30
%32 = load ptr, ptr %6, align 8
%33 = load i32, ptr %8, align 4
%34 = load i32, ptr %14, align 4
%35 = mul nsw i32 %33, %34
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds double, ptr %32, i64 %36
%38 = load i32, ptr %9, align 4
%39 = sext i32 %38 to i64
%40 = mul i64 8, %39
%41 = trunc i64 %40 to i32
%42 = call i32 @memcpy(ptr noundef %31, ptr noundef %37, i32 noundef %41)
br label %43
43: ; preds = %25
%44 = load i32, ptr %14, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %14, align 4
br label %21, !llvm.loop !6
46: ; preds = %21
%47 = load i32, ptr %9, align 4
%48 = zext i32 %47 to i64
%49 = call ptr @llvm.stacksave()
store ptr %49, ptr %15, align 8
%50 = alloca i32, i64 %48, align 16
store i64 %48, ptr %16, align 8
store i32 0, ptr %14, align 4
br label %51
51: ; preds = %64, %46
%52 = load i32, ptr %14, align 4
%53 = load i32, ptr %9, align 4
%54 = icmp slt i32 %52, %53
br i1 %54, label %55, label %67
55: ; preds = %51
%56 = load i32, ptr %14, align 4
%57 = add nsw i32 %56, 1
%58 = load i32, ptr %14, align 4
%59 = mul nsw i32 %57, %58
%60 = sdiv i32 %59, 2
%61 = load i32, ptr %14, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i32, ptr %50, i64 %62
store i32 %60, ptr %63, align 4
br label %64
64: ; preds = %55
%65 = load i32, ptr %14, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %14, align 4
br label %51, !llvm.loop !8
67: ; preds = %51
store i32 0, ptr %12, align 4
br label %68
68: ; preds = %292, %67
%69 = load i32, ptr %12, align 4
%70 = load i32, ptr %9, align 4
%71 = icmp slt i32 %69, %70
br i1 %71, label %72, label %295
72: ; preds = %68
%73 = load i8, ptr %10, align 1
%74 = sext i8 %73 to i32
%75 = icmp eq i32 %74, 72
br i1 %75, label %76, label %96
76: ; preds = %72
%77 = load ptr, ptr %11, align 8
%78 = load i32, ptr %12, align 4
%79 = load i32, ptr %12, align 4
%80 = load i32, ptr %9, align 4
%81 = mul nsw i32 %79, %80
%82 = add nsw i32 %78, %81
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds double, ptr %77, i64 %83
%85 = load double, ptr %84, align 8
%86 = call double @sqrt(double noundef %85) #5
%87 = load ptr, ptr %7, align 8
%88 = load i32, ptr %12, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i32, ptr %50, i64 %89
%91 = load i32, ptr %90, align 4
%92 = load i32, ptr %12, align 4
%93 = add nsw i32 %91, %92
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds double, ptr %87, i64 %94
store double %86, ptr %95, align 8
br label %115
96: ; preds = %72
%97 = load ptr, ptr %11, align 8
%98 = load i32, ptr %12, align 4
%99 = load i32, ptr %12, align 4
%100 = load i32, ptr %9, align 4
%101 = mul nsw i32 %99, %100
%102 = add nsw i32 %98, %101
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds double, ptr %97, i64 %103
%105 = load double, ptr %104, align 8
%106 = call double @sqrt(double noundef %105) #5
%107 = load ptr, ptr %7, align 8
%108 = load i32, ptr %12, align 4
%109 = load i32, ptr %12, align 4
%110 = load i32, ptr %9, align 4
%111 = mul nsw i32 %109, %110
%112 = add nsw i32 %108, %111
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds double, ptr %107, i64 %113
store double %106, ptr %114, align 8
br label %115
115: ; preds = %96, %76
%116 = load i32, ptr %12, align 4
%117 = add nsw i32 %116, 1
store i32 %117, ptr %13, align 4
br label %118
118: ; preds = %185, %115
%119 = load i32, ptr %13, align 4
%120 = load i32, ptr %9, align 4
%121 = icmp slt i32 %119, %120
br i1 %121, label %122, label %188
122: ; preds = %118
%123 = load i8, ptr %10, align 1
%124 = sext i8 %123 to i32
%125 = icmp eq i32 %124, 72
br i1 %125, label %126, label %156
126: ; preds = %122
%127 = load ptr, ptr %11, align 8
%128 = load i32, ptr %13, align 4
%129 = load i32, ptr %12, align 4
%130 = load i32, ptr %9, align 4
%131 = mul nsw i32 %129, %130
%132 = add nsw i32 %128, %131
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds double, ptr %127, i64 %133
%135 = load double, ptr %134, align 8
%136 = load ptr, ptr %7, align 8
%137 = load i32, ptr %12, align 4
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds i32, ptr %50, i64 %138
%140 = load i32, ptr %139, align 4
%141 = load i32, ptr %12, align 4
%142 = add nsw i32 %140, %141
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds double, ptr %136, i64 %143
%145 = load double, ptr %144, align 8
%146 = fdiv double %135, %145
%147 = load ptr, ptr %7, align 8
%148 = load i32, ptr %13, align 4
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds i32, ptr %50, i64 %149
%151 = load i32, ptr %150, align 4
%152 = load i32, ptr %12, align 4
%153 = add nsw i32 %151, %152
%154 = sext i32 %153 to i64
%155 = getelementptr inbounds double, ptr %147, i64 %154
store double %146, ptr %155, align 8
br label %184
156: ; preds = %122
%157 = load ptr, ptr %11, align 8
%158 = load i32, ptr %13, align 4
%159 = load i32, ptr %12, align 4
%160 = load i32, ptr %9, align 4
%161 = mul nsw i32 %159, %160
%162 = add nsw i32 %158, %161
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds double, ptr %157, i64 %163
%165 = load double, ptr %164, align 8
%166 = load ptr, ptr %7, align 8
%167 = load i32, ptr %12, align 4
%168 = load i32, ptr %12, align 4
%169 = load i32, ptr %9, align 4
%170 = mul nsw i32 %168, %169
%171 = add nsw i32 %167, %170
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds double, ptr %166, i64 %172
%174 = load double, ptr %173, align 8
%175 = fdiv double %165, %174
%176 = load ptr, ptr %7, align 8
%177 = load i32, ptr %13, align 4
%178 = load i32, ptr %12, align 4
%179 = load i32, ptr %9, align 4
%180 = mul nsw i32 %178, %179
%181 = add nsw i32 %177, %180
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds double, ptr %176, i64 %182
store double %175, ptr %183, align 8
br label %184
184: ; preds = %156, %126
br label %185
185: ; preds = %184
%186 = load i32, ptr %13, align 4
%187 = add nsw i32 %186, 1
store i32 %187, ptr %13, align 4
br label %118, !llvm.loop !9
188: ; preds = %118
%189 = load i32, ptr %12, align 4
%190 = add nsw i32 %189, 1
store i32 %190, ptr %13, align 4
br label %191
191: ; preds = %288, %188
%192 = load i32, ptr %13, align 4
%193 = load i32, ptr %9, align 4
%194 = icmp slt i32 %192, %193
br i1 %194, label %195, label %291
195: ; preds = %191
%196 = load i32, ptr %13, align 4
store i32 %196, ptr %14, align 4
br label %197
197: ; preds = %284, %195
%198 = load i32, ptr %14, align 4
%199 = load i32, ptr %9, align 4
%200 = icmp slt i32 %198, %199
br i1 %200, label %201, label %287
201: ; preds = %197
%202 = load i8, ptr %10, align 1
%203 = sext i8 %202 to i32
%204 = icmp eq i32 %203, 72
br i1 %204, label %205, label %245
205: ; preds = %201
%206 = load ptr, ptr %11, align 8
%207 = load i32, ptr %14, align 4
%208 = load i32, ptr %13, align 4
%209 = load i32, ptr %9, align 4
%210 = mul nsw i32 %208, %209
%211 = add nsw i32 %207, %210
%212 = sext i32 %211 to i64
%213 = getelementptr inbounds double, ptr %206, i64 %212
%214 = load double, ptr %213, align 8
%215 = load ptr, ptr %7, align 8
%216 = load i32, ptr %14, align 4
%217 = sext i32 %216 to i64
%218 = getelementptr inbounds i32, ptr %50, i64 %217
%219 = load i32, ptr %218, align 4
%220 = load i32, ptr %12, align 4
%221 = add nsw i32 %219, %220
%222 = sext i32 %221 to i64
%223 = getelementptr inbounds double, ptr %215, i64 %222
%224 = load double, ptr %223, align 8
%225 = load ptr, ptr %7, align 8
%226 = load i32, ptr %13, align 4
%227 = sext i32 %226 to i64
%228 = getelementptr inbounds i32, ptr %50, i64 %227
%229 = load i32, ptr %228, align 4
%230 = load i32, ptr %12, align 4
%231 = add nsw i32 %229, %230
%232 = sext i32 %231 to i64
%233 = getelementptr inbounds double, ptr %225, i64 %232
%234 = load double, ptr %233, align 8
%235 = fneg double %224
%236 = call double @llvm.fmuladd.f64(double %235, double %234, double %214)
%237 = load ptr, ptr %11, align 8
%238 = load i32, ptr %14, align 4
%239 = load i32, ptr %13, align 4
%240 = load i32, ptr %9, align 4
%241 = mul nsw i32 %239, %240
%242 = add nsw i32 %238, %241
%243 = sext i32 %242 to i64
%244 = getelementptr inbounds double, ptr %237, i64 %243
store double %236, ptr %244, align 8
br label %283
245: ; preds = %201
%246 = load ptr, ptr %11, align 8
%247 = load i32, ptr %14, align 4
%248 = load i32, ptr %13, align 4
%249 = load i32, ptr %9, align 4
%250 = mul nsw i32 %248, %249
%251 = add nsw i32 %247, %250
%252 = sext i32 %251 to i64
%253 = getelementptr inbounds double, ptr %246, i64 %252
%254 = load double, ptr %253, align 8
%255 = load ptr, ptr %7, align 8
%256 = load i32, ptr %14, align 4
%257 = load i32, ptr %12, align 4
%258 = load i32, ptr %9, align 4
%259 = mul nsw i32 %257, %258
%260 = add nsw i32 %256, %259
%261 = sext i32 %260 to i64
%262 = getelementptr inbounds double, ptr %255, i64 %261
%263 = load double, ptr %262, align 8
%264 = load ptr, ptr %7, align 8
%265 = load i32, ptr %13, align 4
%266 = load i32, ptr %12, align 4
%267 = load i32, ptr %9, align 4
%268 = mul nsw i32 %266, %267
%269 = add nsw i32 %265, %268
%270 = sext i32 %269 to i64
%271 = getelementptr inbounds double, ptr %264, i64 %270
%272 = load double, ptr %271, align 8
%273 = fneg double %263
%274 = call double @llvm.fmuladd.f64(double %273, double %272, double %254)
%275 = load ptr, ptr %11, align 8
%276 = load i32, ptr %14, align 4
%277 = load i32, ptr %13, align 4
%278 = load i32, ptr %9, align 4
%279 = mul nsw i32 %277, %278
%280 = add nsw i32 %276, %279
%281 = sext i32 %280 to i64
%282 = getelementptr inbounds double, ptr %275, i64 %281
store double %274, ptr %282, align 8
br label %283
283: ; preds = %245, %205
br label %284
284: ; preds = %283
%285 = load i32, ptr %14, align 4
%286 = add nsw i32 %285, 1
store i32 %286, ptr %14, align 4
br label %197, !llvm.loop !10
287: ; preds = %197
br label %288
288: ; preds = %287
%289 = load i32, ptr %13, align 4
%290 = add nsw i32 %289, 1
store i32 %290, ptr %13, align 4
br label %191, !llvm.loop !11
291: ; preds = %191
br label %292
292: ; preds = %291
%293 = load i32, ptr %12, align 4
%294 = add nsw i32 %293, 1
store i32 %294, ptr %12, align 4
br label %68, !llvm.loop !12
295: ; preds = %68
%296 = load ptr, ptr %11, align 8
%297 = call i32 @free(ptr noundef %296)
%298 = load ptr, ptr %15, align 8
call void @llvm.stackrestore(ptr %298)
ret void
}
declare i64 @mat(i32 noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
; Function Attrs: nounwind
declare double @sqrt(double noundef) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4
declare i32 @free(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
attributes #3 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy9jeev2w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cholesky_LL(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i8 noundef signext %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i8, align 1
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca i64, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i8 %4, ptr %10, align 1
%17 = load i32, ptr %9, align 4
%18 = load i32, ptr %9, align 4
%19 = call i64 @mat(i32 noundef %17, i32 noundef %18)
%20 = inttoptr i64 %19 to ptr
store ptr %20, ptr %11, align 8
store i32 0, ptr %14, align 4
%21 = load i32, ptr %14, align 4
%22 = load i32, ptr %9, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %.lr.ph, label %48
.lr.ph: ; preds = %5
br label %24
24: ; preds = %.lr.ph, %42
%25 = load ptr, ptr %11, align 8
%26 = load i32, ptr %14, align 4
%27 = load i32, ptr %9, align 4
%28 = mul nsw i32 %26, %27
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds double, ptr %25, i64 %29
%31 = load ptr, ptr %6, align 8
%32 = load i32, ptr %8, align 4
%33 = load i32, ptr %14, align 4
%34 = mul nsw i32 %32, %33
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds double, ptr %31, i64 %35
%37 = load i32, ptr %9, align 4
%38 = sext i32 %37 to i64
%39 = mul i64 8, %38
%40 = trunc i64 %39 to i32
%41 = call i32 @memcpy(ptr noundef %30, ptr noundef %36, i32 noundef %40)
br label %42
42: ; preds = %24
%43 = load i32, ptr %14, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %14, align 4
%45 = load i32, ptr %14, align 4
%46 = load i32, ptr %9, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %42
br label %48
48: ; preds = %._crit_edge, %5
%49 = load i32, ptr %9, align 4
%50 = zext i32 %49 to i64
%51 = call ptr @llvm.stacksave()
store ptr %51, ptr %15, align 8
%52 = alloca i32, i64 %50, align 16
store i64 %50, ptr %16, align 8
store i32 0, ptr %14, align 4
%53 = load i32, ptr %14, align 4
%54 = load i32, ptr %9, align 4
%55 = icmp slt i32 %53, %54
br i1 %55, label %.lr.ph2, label %71
.lr.ph2: ; preds = %48
br label %56
56: ; preds = %.lr.ph2, %65
%57 = load i32, ptr %14, align 4
%58 = add nsw i32 %57, 1
%59 = load i32, ptr %14, align 4
%60 = mul nsw i32 %58, %59
%61 = sdiv i32 %60, 2
%62 = load i32, ptr %14, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i32, ptr %52, i64 %63
store i32 %61, ptr %64, align 4
br label %65
65: ; preds = %56
%66 = load i32, ptr %14, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %14, align 4
%68 = load i32, ptr %14, align 4
%69 = load i32, ptr %9, align 4
%70 = icmp slt i32 %68, %69
br i1 %70, label %56, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %65
br label %71
71: ; preds = %._crit_edge3, %48
store i32 0, ptr %12, align 4
%72 = load i32, ptr %12, align 4
%73 = load i32, ptr %9, align 4
%74 = icmp slt i32 %72, %73
br i1 %74, label %.lr.ph14, label %307
.lr.ph14: ; preds = %71
br label %75
75: ; preds = %.lr.ph14, %301
%76 = load i8, ptr %10, align 1
%77 = sext i8 %76 to i32
%78 = icmp eq i32 %77, 72
br i1 %78, label %79, label %99
79: ; preds = %75
%80 = load ptr, ptr %11, align 8
%81 = load i32, ptr %12, align 4
%82 = load i32, ptr %12, align 4
%83 = load i32, ptr %9, align 4
%84 = mul nsw i32 %82, %83
%85 = add nsw i32 %81, %84
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds double, ptr %80, i64 %86
%88 = load double, ptr %87, align 8
%89 = call double @sqrt(double noundef %88) #5
%90 = load ptr, ptr %7, align 8
%91 = load i32, ptr %12, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i32, ptr %52, i64 %92
%94 = load i32, ptr %93, align 4
%95 = load i32, ptr %12, align 4
%96 = add nsw i32 %94, %95
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds double, ptr %90, i64 %97
store double %89, ptr %98, align 8
br label %118
99: ; preds = %75
%100 = load ptr, ptr %11, align 8
%101 = load i32, ptr %12, align 4
%102 = load i32, ptr %12, align 4
%103 = load i32, ptr %9, align 4
%104 = mul nsw i32 %102, %103
%105 = add nsw i32 %101, %104
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds double, ptr %100, i64 %106
%108 = load double, ptr %107, align 8
%109 = call double @sqrt(double noundef %108) #5
%110 = load ptr, ptr %7, align 8
%111 = load i32, ptr %12, align 4
%112 = load i32, ptr %12, align 4
%113 = load i32, ptr %9, align 4
%114 = mul nsw i32 %112, %113
%115 = add nsw i32 %111, %114
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds double, ptr %110, i64 %116
store double %109, ptr %117, align 8
br label %118
118: ; preds = %99, %79
%119 = load i32, ptr %12, align 4
%120 = add nsw i32 %119, 1
store i32 %120, ptr %13, align 4
%121 = load i32, ptr %13, align 4
%122 = load i32, ptr %9, align 4
%123 = icmp slt i32 %121, %122
br i1 %123, label %.lr.ph5, label %193
.lr.ph5: ; preds = %118
br label %124
124: ; preds = %.lr.ph5, %187
%125 = load i8, ptr %10, align 1
%126 = sext i8 %125 to i32
%127 = icmp eq i32 %126, 72
br i1 %127, label %128, label %158
128: ; preds = %124
%129 = load ptr, ptr %11, align 8
%130 = load i32, ptr %13, align 4
%131 = load i32, ptr %12, align 4
%132 = load i32, ptr %9, align 4
%133 = mul nsw i32 %131, %132
%134 = add nsw i32 %130, %133
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds double, ptr %129, i64 %135
%137 = load double, ptr %136, align 8
%138 = load ptr, ptr %7, align 8
%139 = load i32, ptr %12, align 4
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds i32, ptr %52, i64 %140
%142 = load i32, ptr %141, align 4
%143 = load i32, ptr %12, align 4
%144 = add nsw i32 %142, %143
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds double, ptr %138, i64 %145
%147 = load double, ptr %146, align 8
%148 = fdiv double %137, %147
%149 = load ptr, ptr %7, align 8
%150 = load i32, ptr %13, align 4
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds i32, ptr %52, i64 %151
%153 = load i32, ptr %152, align 4
%154 = load i32, ptr %12, align 4
%155 = add nsw i32 %153, %154
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds double, ptr %149, i64 %156
store double %148, ptr %157, align 8
br label %186
158: ; preds = %124
%159 = load ptr, ptr %11, align 8
%160 = load i32, ptr %13, align 4
%161 = load i32, ptr %12, align 4
%162 = load i32, ptr %9, align 4
%163 = mul nsw i32 %161, %162
%164 = add nsw i32 %160, %163
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds double, ptr %159, i64 %165
%167 = load double, ptr %166, align 8
%168 = load ptr, ptr %7, align 8
%169 = load i32, ptr %12, align 4
%170 = load i32, ptr %12, align 4
%171 = load i32, ptr %9, align 4
%172 = mul nsw i32 %170, %171
%173 = add nsw i32 %169, %172
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds double, ptr %168, i64 %174
%176 = load double, ptr %175, align 8
%177 = fdiv double %167, %176
%178 = load ptr, ptr %7, align 8
%179 = load i32, ptr %13, align 4
%180 = load i32, ptr %12, align 4
%181 = load i32, ptr %9, align 4
%182 = mul nsw i32 %180, %181
%183 = add nsw i32 %179, %182
%184 = sext i32 %183 to i64
%185 = getelementptr inbounds double, ptr %178, i64 %184
store double %177, ptr %185, align 8
br label %186
186: ; preds = %158, %128
br label %187
187: ; preds = %186
%188 = load i32, ptr %13, align 4
%189 = add nsw i32 %188, 1
store i32 %189, ptr %13, align 4
%190 = load i32, ptr %13, align 4
%191 = load i32, ptr %9, align 4
%192 = icmp slt i32 %190, %191
br i1 %192, label %124, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %187
br label %193
193: ; preds = %._crit_edge6, %118
%194 = load i32, ptr %12, align 4
%195 = add nsw i32 %194, 1
store i32 %195, ptr %13, align 4
%196 = load i32, ptr %13, align 4
%197 = load i32, ptr %9, align 4
%198 = icmp slt i32 %196, %197
br i1 %198, label %.lr.ph11, label %300
.lr.ph11: ; preds = %193
br label %199
199: ; preds = %.lr.ph11, %294
%200 = load i32, ptr %13, align 4
store i32 %200, ptr %14, align 4
%201 = load i32, ptr %14, align 4
%202 = load i32, ptr %9, align 4
%203 = icmp slt i32 %201, %202
br i1 %203, label %.lr.ph8, label %293
.lr.ph8: ; preds = %199
br label %204
204: ; preds = %.lr.ph8, %287
%205 = load i8, ptr %10, align 1
%206 = sext i8 %205 to i32
%207 = icmp eq i32 %206, 72
br i1 %207, label %208, label %248
208: ; preds = %204
%209 = load ptr, ptr %11, align 8
%210 = load i32, ptr %14, align 4
%211 = load i32, ptr %13, align 4
%212 = load i32, ptr %9, align 4
%213 = mul nsw i32 %211, %212
%214 = add nsw i32 %210, %213
%215 = sext i32 %214 to i64
%216 = getelementptr inbounds double, ptr %209, i64 %215
%217 = load double, ptr %216, align 8
%218 = load ptr, ptr %7, align 8
%219 = load i32, ptr %14, align 4
%220 = sext i32 %219 to i64
%221 = getelementptr inbounds i32, ptr %52, i64 %220
%222 = load i32, ptr %221, align 4
%223 = load i32, ptr %12, align 4
%224 = add nsw i32 %222, %223
%225 = sext i32 %224 to i64
%226 = getelementptr inbounds double, ptr %218, i64 %225
%227 = load double, ptr %226, align 8
%228 = load ptr, ptr %7, align 8
%229 = load i32, ptr %13, align 4
%230 = sext i32 %229 to i64
%231 = getelementptr inbounds i32, ptr %52, i64 %230
%232 = load i32, ptr %231, align 4
%233 = load i32, ptr %12, align 4
%234 = add nsw i32 %232, %233
%235 = sext i32 %234 to i64
%236 = getelementptr inbounds double, ptr %228, i64 %235
%237 = load double, ptr %236, align 8
%238 = fneg double %227
%239 = call double @llvm.fmuladd.f64(double %238, double %237, double %217)
%240 = load ptr, ptr %11, align 8
%241 = load i32, ptr %14, align 4
%242 = load i32, ptr %13, align 4
%243 = load i32, ptr %9, align 4
%244 = mul nsw i32 %242, %243
%245 = add nsw i32 %241, %244
%246 = sext i32 %245 to i64
%247 = getelementptr inbounds double, ptr %240, i64 %246
store double %239, ptr %247, align 8
br label %286
248: ; preds = %204
%249 = load ptr, ptr %11, align 8
%250 = load i32, ptr %14, align 4
%251 = load i32, ptr %13, align 4
%252 = load i32, ptr %9, align 4
%253 = mul nsw i32 %251, %252
%254 = add nsw i32 %250, %253
%255 = sext i32 %254 to i64
%256 = getelementptr inbounds double, ptr %249, i64 %255
%257 = load double, ptr %256, align 8
%258 = load ptr, ptr %7, align 8
%259 = load i32, ptr %14, align 4
%260 = load i32, ptr %12, align 4
%261 = load i32, ptr %9, align 4
%262 = mul nsw i32 %260, %261
%263 = add nsw i32 %259, %262
%264 = sext i32 %263 to i64
%265 = getelementptr inbounds double, ptr %258, i64 %264
%266 = load double, ptr %265, align 8
%267 = load ptr, ptr %7, align 8
%268 = load i32, ptr %13, align 4
%269 = load i32, ptr %12, align 4
%270 = load i32, ptr %9, align 4
%271 = mul nsw i32 %269, %270
%272 = add nsw i32 %268, %271
%273 = sext i32 %272 to i64
%274 = getelementptr inbounds double, ptr %267, i64 %273
%275 = load double, ptr %274, align 8
%276 = fneg double %266
%277 = call double @llvm.fmuladd.f64(double %276, double %275, double %257)
%278 = load ptr, ptr %11, align 8
%279 = load i32, ptr %14, align 4
%280 = load i32, ptr %13, align 4
%281 = load i32, ptr %9, align 4
%282 = mul nsw i32 %280, %281
%283 = add nsw i32 %279, %282
%284 = sext i32 %283 to i64
%285 = getelementptr inbounds double, ptr %278, i64 %284
store double %277, ptr %285, align 8
br label %286
286: ; preds = %248, %208
br label %287
287: ; preds = %286
%288 = load i32, ptr %14, align 4
%289 = add nsw i32 %288, 1
store i32 %289, ptr %14, align 4
%290 = load i32, ptr %14, align 4
%291 = load i32, ptr %9, align 4
%292 = icmp slt i32 %290, %291
br i1 %292, label %204, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %287
br label %293
293: ; preds = %._crit_edge9, %199
br label %294
294: ; preds = %293
%295 = load i32, ptr %13, align 4
%296 = add nsw i32 %295, 1
store i32 %296, ptr %13, align 4
%297 = load i32, ptr %13, align 4
%298 = load i32, ptr %9, align 4
%299 = icmp slt i32 %297, %298
br i1 %299, label %199, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %294
br label %300
300: ; preds = %._crit_edge12, %193
br label %301
301: ; preds = %300
%302 = load i32, ptr %12, align 4
%303 = add nsw i32 %302, 1
store i32 %303, ptr %12, align 4
%304 = load i32, ptr %12, align 4
%305 = load i32, ptr %9, align 4
%306 = icmp slt i32 %304, %305
br i1 %306, label %75, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %301
br label %307
307: ; preds = %._crit_edge15, %71
%308 = load ptr, ptr %11, align 8
%309 = call i32 @free(ptr noundef %308)
%310 = load ptr, ptr %15, align 8
call void @llvm.stackrestore(ptr %310)
ret void
}
declare i64 @mat(i32 noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
; Function Attrs: nounwind
declare double @sqrt(double noundef) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4
declare i32 @free(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
attributes #3 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmp7qo_304p.c'
source_filename = "/tmp/tmp7qo_304p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"Enter two numbers:\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"\0AThe GCD of %d and %d is %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"\0AInvalid input!!!\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
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @checkIntInput(ptr noundef %2, ptr noundef %3)
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = call i32 @gcd_algorithm(i32 noundef %7, i32 noundef %8)
store i32 %9, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %17
12: ; preds = %0
%13 = load i32, ptr %2, align 4
%14 = load i32, ptr %3, align 4
%15 = load i32, ptr %4, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %13, i32 noundef %14, i32 noundef %15)
br label %19
17: ; preds = %0
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %19
19: ; preds = %17, %12
%20 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %20
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @checkIntInput(ptr noundef, ptr noundef) #1
declare i32 @gcd_algorithm(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/tmp7qo_304p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"Enter two numbers:\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"\0AThe GCD of %d and %d is %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"\0AInvalid input!!!\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
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @checkIntInput(ptr noundef %2, ptr noundef %3)
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = call i32 @gcd_algorithm(i32 noundef %7, i32 noundef %8)
store i32 %9, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %17
12: ; preds = %0
%13 = load i32, ptr %2, align 4
%14 = load i32, ptr %3, align 4
%15 = load i32, ptr %4, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %13, i32 noundef %14, i32 noundef %15)
br label %19
17: ; preds = %0
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %19
19: ; preds = %17, %12
%20 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %20
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @checkIntInput(ptr noundef, ptr noundef) #1
declare i32 @gcd_algorithm(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/tmpfqy21e9o.c'
source_filename = "/tmp/tmpfqy21e9o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"/test_sem\00", align 1
@SEM_FAILED = dso_local global ptr null, align 8
@.str.1 = private unnamed_addr constant [9 x i8] c"sem_open\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [28 x i8] c"%s %d: child going to post\0A\00", align 1
@.str.3 = private unnamed_addr constant [149 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/clpsz/linux-ipcs/refs/heads/master/POSIX_sem/process_sem.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @child() #0 {
%1 = alloca ptr, align 8
%2 = call ptr @sem_open(ptr noundef @.str, i32 noundef 0)
store ptr %2, ptr %1, align 8
%3 = load ptr, ptr %1, align 8
%4 = load ptr, ptr @SEM_FAILED, align 8
%5 = icmp eq ptr %3, %4
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @perror(ptr noundef @.str.1)
br label %8
8: ; preds = %6, %0
%9 = call i32 @sleep(i32 noundef 1)
br label %10
10: ; preds = %8
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 47)
br label %13
13: ; preds = %10
%14 = load ptr, ptr %1, align 8
%15 = call i32 @sem_post(ptr noundef %14)
ret void
}
declare ptr @sem_open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @sleep(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @sem_post(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfqy21e9o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"/test_sem\00", align 1
@SEM_FAILED = dso_local global ptr null, align 8
@.str.1 = private unnamed_addr constant [9 x i8] c"sem_open\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [28 x i8] c"%s %d: child going to post\0A\00", align 1
@.str.3 = private unnamed_addr constant [149 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/clpsz/linux-ipcs/refs/heads/master/POSIX_sem/process_sem.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @child() #0 {
%1 = alloca ptr, align 8
%2 = call ptr @sem_open(ptr noundef @.str, i32 noundef 0)
store ptr %2, ptr %1, align 8
%3 = load ptr, ptr %1, align 8
%4 = load ptr, ptr @SEM_FAILED, align 8
%5 = icmp eq ptr %3, %4
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @perror(ptr noundef @.str.1)
br label %8
8: ; preds = %6, %0
%9 = call i32 @sleep(i32 noundef 1)
br label %10
10: ; preds = %8
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 47)
br label %13
13: ; preds = %10
%14 = load ptr, ptr %1, align 8
%15 = call i32 @sem_post(ptr noundef %14)
ret void
}
declare ptr @sem_open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @sleep(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @sem_post(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0r6rsbbh.c'
source_filename = "/tmp/tmp0r6rsbbh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdscr = dso_local global i32 0, align 4
@TRUE = dso_local global i32 0, align 4
@FALSE = dso_local global i32 0, align 4
@ERR = dso_local global i32 0, align 4
@KEY_ENTER = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_key(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp sge i32 %6, 0
br i1 %7, label %8, label %15
8: ; preds = %2
%9 = load i32, ptr %4, align 4
%10 = icmp sge i32 %9, 0
br i1 %10, label %11, label %15
11: ; preds = %8
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %4, align 4
%14 = call i32 @move(i32 noundef %12, i32 noundef %13)
br label %15
15: ; preds = %11, %8, %2
%16 = call i32 (...) @getch()
store i32 %16, ptr %5, align 4
%17 = icmp eq i32 27, %16
br i1 %17, label %18, label %91
18: ; preds = %15
%19 = load i32, ptr @stdscr, align 4
%20 = load i32, ptr @TRUE, align 4
%21 = call i32 @nodelay(i32 noundef %19, i32 noundef %20)
%22 = call i32 (...) @getch()
store i32 %22, ptr %5, align 4
%23 = load i32, ptr @stdscr, align 4
%24 = load i32, ptr @FALSE, align 4
%25 = call i32 @nodelay(i32 noundef %23, i32 noundef %24)
%26 = load i32, ptr @ERR, align 4
%27 = load i32, ptr %5, align 4
%28 = icmp eq i32 %26, %27
br i1 %28, label %29, label %30
29: ; preds = %18
store i32 27, ptr %5, align 4
br label %90
30: ; preds = %18
%31 = load i32, ptr %5, align 4
%32 = icmp eq i32 49, %31
br i1 %32, label %33, label %35
33: ; preds = %30
%34 = call i32 @KEY_F(i32 noundef 1)
store i32 %34, ptr %5, align 4
br label %89
35: ; preds = %30
%36 = load i32, ptr %5, align 4
%37 = icmp eq i32 50, %36
br i1 %37, label %38, label %40
38: ; preds = %35
%39 = call i32 @KEY_F(i32 noundef 2)
store i32 %39, ptr %5, align 4
br label %88
40: ; preds = %35
%41 = load i32, ptr %5, align 4
%42 = icmp eq i32 51, %41
br i1 %42, label %43, label %45
43: ; preds = %40
%44 = call i32 @KEY_F(i32 noundef 3)
store i32 %44, ptr %5, align 4
br label %87
45: ; preds = %40
%46 = load i32, ptr %5, align 4
%47 = icmp eq i32 52, %46
br i1 %47, label %48, label %50
48: ; preds = %45
%49 = call i32 @KEY_F(i32 noundef 4)
store i32 %49, ptr %5, align 4
br label %86
50: ; preds = %45
%51 = load i32, ptr %5, align 4
%52 = icmp eq i32 53, %51
br i1 %52, label %53, label %55
53: ; preds = %50
%54 = call i32 @KEY_F(i32 noundef 5)
store i32 %54, ptr %5, align 4
br label %85
55: ; preds = %50
%56 = load i32, ptr %5, align 4
%57 = icmp eq i32 54, %56
br i1 %57, label %58, label %60
58: ; preds = %55
%59 = call i32 @KEY_F(i32 noundef 6)
store i32 %59, ptr %5, align 4
br label %84
60: ; preds = %55
%61 = load i32, ptr %5, align 4
%62 = icmp eq i32 55, %61
br i1 %62, label %63, label %65
63: ; preds = %60
%64 = call i32 @KEY_F(i32 noundef 7)
store i32 %64, ptr %5, align 4
br label %83
65: ; preds = %60
%66 = load i32, ptr %5, align 4
%67 = icmp eq i32 56, %66
br i1 %67, label %68, label %70
68: ; preds = %65
%69 = call i32 @KEY_F(i32 noundef 8)
store i32 %69, ptr %5, align 4
br label %82
70: ; preds = %65
%71 = load i32, ptr %5, align 4
%72 = icmp eq i32 57, %71
br i1 %72, label %73, label %75
73: ; preds = %70
%74 = call i32 @KEY_F(i32 noundef 9)
store i32 %74, ptr %5, align 4
br label %81
75: ; preds = %70
%76 = load i32, ptr %5, align 4
%77 = icmp eq i32 48, %76
br i1 %77, label %78, label %80
78: ; preds = %75
%79 = call i32 @KEY_F(i32 noundef 10)
store i32 %79, ptr %5, align 4
br label %80
80: ; preds = %78, %75
br label %81
81: ; preds = %80, %73
br label %82
82: ; preds = %81, %68
br label %83
83: ; preds = %82, %63
br label %84
84: ; preds = %83, %58
br label %85
85: ; preds = %84, %53
br label %86
86: ; preds = %85, %48
br label %87
87: ; preds = %86, %43
br label %88
88: ; preds = %87, %38
br label %89
89: ; preds = %88, %33
br label %90
90: ; preds = %89, %29
br label %100
91: ; preds = %15
%92 = load i32, ptr %5, align 4
%93 = icmp eq i32 10, %92
br i1 %93, label %97, label %94
94: ; preds = %91
%95 = load i32, ptr %5, align 4
%96 = icmp eq i32 13, %95
br i1 %96, label %97, label %99
97: ; preds = %94, %91
%98 = load i32, ptr @KEY_ENTER, align 4
store i32 %98, ptr %5, align 4
br label %99
99: ; preds = %97, %94
br label %100
100: ; preds = %99, %90
%101 = load i32, ptr %5, align 4
ret i32 %101
}
declare i32 @move(i32 noundef, i32 noundef) #1
declare i32 @getch(...) #1
declare i32 @nodelay(i32 noundef, i32 noundef) #1
declare i32 @KEY_F(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0r6rsbbh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdscr = dso_local global i32 0, align 4
@TRUE = dso_local global i32 0, align 4
@FALSE = dso_local global i32 0, align 4
@ERR = dso_local global i32 0, align 4
@KEY_ENTER = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_key(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp sge i32 %6, 0
br i1 %7, label %8, label %15
8: ; preds = %2
%9 = load i32, ptr %4, align 4
%10 = icmp sge i32 %9, 0
br i1 %10, label %11, label %15
11: ; preds = %8
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %4, align 4
%14 = call i32 @move(i32 noundef %12, i32 noundef %13)
br label %15
15: ; preds = %11, %8, %2
%16 = call i32 (...) @getch()
store i32 %16, ptr %5, align 4
%17 = icmp eq i32 27, %16
br i1 %17, label %18, label %91
18: ; preds = %15
%19 = load i32, ptr @stdscr, align 4
%20 = load i32, ptr @TRUE, align 4
%21 = call i32 @nodelay(i32 noundef %19, i32 noundef %20)
%22 = call i32 (...) @getch()
store i32 %22, ptr %5, align 4
%23 = load i32, ptr @stdscr, align 4
%24 = load i32, ptr @FALSE, align 4
%25 = call i32 @nodelay(i32 noundef %23, i32 noundef %24)
%26 = load i32, ptr @ERR, align 4
%27 = load i32, ptr %5, align 4
%28 = icmp eq i32 %26, %27
br i1 %28, label %29, label %30
29: ; preds = %18
store i32 27, ptr %5, align 4
br label %90
30: ; preds = %18
%31 = load i32, ptr %5, align 4
%32 = icmp eq i32 49, %31
br i1 %32, label %33, label %35
33: ; preds = %30
%34 = call i32 @KEY_F(i32 noundef 1)
store i32 %34, ptr %5, align 4
br label %89
35: ; preds = %30
%36 = load i32, ptr %5, align 4
%37 = icmp eq i32 50, %36
br i1 %37, label %38, label %40
38: ; preds = %35
%39 = call i32 @KEY_F(i32 noundef 2)
store i32 %39, ptr %5, align 4
br label %88
40: ; preds = %35
%41 = load i32, ptr %5, align 4
%42 = icmp eq i32 51, %41
br i1 %42, label %43, label %45
43: ; preds = %40
%44 = call i32 @KEY_F(i32 noundef 3)
store i32 %44, ptr %5, align 4
br label %87
45: ; preds = %40
%46 = load i32, ptr %5, align 4
%47 = icmp eq i32 52, %46
br i1 %47, label %48, label %50
48: ; preds = %45
%49 = call i32 @KEY_F(i32 noundef 4)
store i32 %49, ptr %5, align 4
br label %86
50: ; preds = %45
%51 = load i32, ptr %5, align 4
%52 = icmp eq i32 53, %51
br i1 %52, label %53, label %55
53: ; preds = %50
%54 = call i32 @KEY_F(i32 noundef 5)
store i32 %54, ptr %5, align 4
br label %85
55: ; preds = %50
%56 = load i32, ptr %5, align 4
%57 = icmp eq i32 54, %56
br i1 %57, label %58, label %60
58: ; preds = %55
%59 = call i32 @KEY_F(i32 noundef 6)
store i32 %59, ptr %5, align 4
br label %84
60: ; preds = %55
%61 = load i32, ptr %5, align 4
%62 = icmp eq i32 55, %61
br i1 %62, label %63, label %65
63: ; preds = %60
%64 = call i32 @KEY_F(i32 noundef 7)
store i32 %64, ptr %5, align 4
br label %83
65: ; preds = %60
%66 = load i32, ptr %5, align 4
%67 = icmp eq i32 56, %66
br i1 %67, label %68, label %70
68: ; preds = %65
%69 = call i32 @KEY_F(i32 noundef 8)
store i32 %69, ptr %5, align 4
br label %82
70: ; preds = %65
%71 = load i32, ptr %5, align 4
%72 = icmp eq i32 57, %71
br i1 %72, label %73, label %75
73: ; preds = %70
%74 = call i32 @KEY_F(i32 noundef 9)
store i32 %74, ptr %5, align 4
br label %81
75: ; preds = %70
%76 = load i32, ptr %5, align 4
%77 = icmp eq i32 48, %76
br i1 %77, label %78, label %80
78: ; preds = %75
%79 = call i32 @KEY_F(i32 noundef 10)
store i32 %79, ptr %5, align 4
br label %80
80: ; preds = %78, %75
br label %81
81: ; preds = %80, %73
br label %82
82: ; preds = %81, %68
br label %83
83: ; preds = %82, %63
br label %84
84: ; preds = %83, %58
br label %85
85: ; preds = %84, %53
br label %86
86: ; preds = %85, %48
br label %87
87: ; preds = %86, %43
br label %88
88: ; preds = %87, %38
br label %89
89: ; preds = %88, %33
br label %90
90: ; preds = %89, %29
br label %100
91: ; preds = %15
%92 = load i32, ptr %5, align 4
%93 = icmp eq i32 10, %92
br i1 %93, label %97, label %94
94: ; preds = %91
%95 = load i32, ptr %5, align 4
%96 = icmp eq i32 13, %95
br i1 %96, label %97, label %99
97: ; preds = %94, %91
%98 = load i32, ptr @KEY_ENTER, align 4
store i32 %98, ptr %5, align 4
br label %99
99: ; preds = %97, %94
br label %100
100: ; preds = %99, %90
%101 = load i32, ptr %5, align 4
ret i32 %101
}
declare i32 @move(i32 noundef, i32 noundef) #1
declare i32 @getch(...) #1
declare i32 @nodelay(i32 noundef, i32 noundef) #1
declare i32 @KEY_F(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_tpuawd6.c'
source_filename = "/tmp/tmp_tpuawd6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"\D0\9E\D1\82\D0\B2\D0\B5\D1\82\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca float, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = load float, ptr %4, align 4
%10 = call i32 @getid(float noundef %9)
%11 = load float, ptr %4, align 4
%12 = call i32 @printid(float noundef %11)
%13 = load float, ptr %6, align 4
%14 = call i32 @getid(float noundef %13)
%15 = load float, ptr %6, align 4
%16 = call i32 @printid(float noundef %15)
store float 0x3F1A36E2E0000000, ptr %2, align 4
store float 5.000000e-01, ptr %1, align 4
br label %17
17: ; preds = %58, %0
%18 = load float, ptr %4, align 4
store float %18, ptr %8, align 4
store float 0.000000e+00, ptr %5, align 4
br label %19
19: ; preds = %28, %17
%20 = load float, ptr %1, align 4
%21 = load float, ptr %8, align 4
%22 = fadd float %21, %20
store float %22, ptr %8, align 4
%23 = load float, ptr %8, align 4
%24 = call float @sin(float noundef %23)
%25 = load float, ptr %1, align 4
%26 = load float, ptr %5, align 4
%27 = call float @llvm.fmuladd.f32(float %24, float %25, float %26)
store float %27, ptr %5, align 4
br label %28
28: ; preds = %19
%29 = load float, ptr %8, align 4
%30 = load float, ptr %6, align 4
%31 = fcmp olt float %29, %30
br i1 %31, label %19, label %32, !llvm.loop !6
32: ; preds = %28
%33 = load float, ptr %5, align 4
%34 = call i32 @printid(float noundef %33)
%35 = load float, ptr %4, align 4
store float %35, ptr %8, align 4
%36 = load float, ptr %1, align 4
%37 = fdiv float %36, 5.000000e+00
store float %37, ptr %1, align 4
store float 0.000000e+00, ptr %7, align 4
br label %38
38: ; preds = %47, %32
%39 = load float, ptr %1, align 4
%40 = load float, ptr %8, align 4
%41 = fadd float %40, %39
store float %41, ptr %8, align 4
%42 = load float, ptr %8, align 4
%43 = call float @sin(float noundef %42)
%44 = load float, ptr %1, align 4
%45 = load float, ptr %7, align 4
%46 = call float @llvm.fmuladd.f32(float %43, float %44, float %45)
store float %46, ptr %7, align 4
br label %47
47: ; preds = %38
%48 = load float, ptr %8, align 4
%49 = load float, ptr %6, align 4
%50 = fcmp olt float %48, %49
br i1 %50, label %38, label %51, !llvm.loop !8
51: ; preds = %47
%52 = load float, ptr %1, align 4
%53 = fdiv float %52, 5.000000e+00
store float %53, ptr %1, align 4
%54 = load float, ptr %7, align 4
%55 = call i32 @printid(float noundef %54)
%56 = load float, ptr %1, align 4
%57 = call i32 @printid(float noundef %56)
br label %58
58: ; preds = %51
%59 = load float, ptr %7, align 4
%60 = load float, ptr %5, align 4
%61 = fsub float %59, %60
%62 = call float @abs(float noundef %61)
%63 = load float, ptr %2, align 4
%64 = fcmp ogt float %62, %63
br i1 %64, label %17, label %65, !llvm.loop !9
65: ; preds = %58
%66 = call i32 @print(ptr noundef @.str)
%67 = load float, ptr %7, align 4
%68 = call i32 @printid(float noundef %67)
ret void
}
declare i32 @getid(float noundef) #1
declare i32 @printid(float noundef) #1
declare float @sin(float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
declare float @abs(float noundef) #1
declare i32 @print(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_tpuawd6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"\D0\9E\D1\82\D0\B2\D0\B5\D1\82\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca float, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = load float, ptr %4, align 4
%10 = call i32 @getid(float noundef %9)
%11 = load float, ptr %4, align 4
%12 = call i32 @printid(float noundef %11)
%13 = load float, ptr %6, align 4
%14 = call i32 @getid(float noundef %13)
%15 = load float, ptr %6, align 4
%16 = call i32 @printid(float noundef %15)
store float 0x3F1A36E2E0000000, ptr %2, align 4
store float 5.000000e-01, ptr %1, align 4
br label %17
17: ; preds = %58, %0
%18 = load float, ptr %4, align 4
store float %18, ptr %8, align 4
store float 0.000000e+00, ptr %5, align 4
br label %19
19: ; preds = %28, %17
%20 = load float, ptr %1, align 4
%21 = load float, ptr %8, align 4
%22 = fadd float %21, %20
store float %22, ptr %8, align 4
%23 = load float, ptr %8, align 4
%24 = call float @sin(float noundef %23)
%25 = load float, ptr %1, align 4
%26 = load float, ptr %5, align 4
%27 = call float @llvm.fmuladd.f32(float %24, float %25, float %26)
store float %27, ptr %5, align 4
br label %28
28: ; preds = %19
%29 = load float, ptr %8, align 4
%30 = load float, ptr %6, align 4
%31 = fcmp olt float %29, %30
br i1 %31, label %19, label %32, !llvm.loop !6
32: ; preds = %28
%33 = load float, ptr %5, align 4
%34 = call i32 @printid(float noundef %33)
%35 = load float, ptr %4, align 4
store float %35, ptr %8, align 4
%36 = load float, ptr %1, align 4
%37 = fdiv float %36, 5.000000e+00
store float %37, ptr %1, align 4
store float 0.000000e+00, ptr %7, align 4
br label %38
38: ; preds = %47, %32
%39 = load float, ptr %1, align 4
%40 = load float, ptr %8, align 4
%41 = fadd float %40, %39
store float %41, ptr %8, align 4
%42 = load float, ptr %8, align 4
%43 = call float @sin(float noundef %42)
%44 = load float, ptr %1, align 4
%45 = load float, ptr %7, align 4
%46 = call float @llvm.fmuladd.f32(float %43, float %44, float %45)
store float %46, ptr %7, align 4
br label %47
47: ; preds = %38
%48 = load float, ptr %8, align 4
%49 = load float, ptr %6, align 4
%50 = fcmp olt float %48, %49
br i1 %50, label %38, label %51, !llvm.loop !8
51: ; preds = %47
%52 = load float, ptr %1, align 4
%53 = fdiv float %52, 5.000000e+00
store float %53, ptr %1, align 4
%54 = load float, ptr %7, align 4
%55 = call i32 @printid(float noundef %54)
%56 = load float, ptr %1, align 4
%57 = call i32 @printid(float noundef %56)
br label %58
58: ; preds = %51
%59 = load float, ptr %7, align 4
%60 = load float, ptr %5, align 4
%61 = fsub float %59, %60
%62 = call float @abs(float noundef %61)
%63 = load float, ptr %2, align 4
%64 = fcmp ogt float %62, %63
br i1 %64, label %17, label %65, !llvm.loop !9
65: ; preds = %58
%66 = call i32 @print(ptr noundef @.str)
%67 = load float, ptr %7, align 4
%68 = call i32 @printid(float noundef %67)
ret void
}
declare i32 @getid(float noundef) #1
declare i32 @printid(float noundef) #1
declare float @sin(float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
declare float @abs(float noundef) #1
declare i32 @print(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpvqtd71ts.c'
source_filename = "/tmp/tmpvqtd71ts.c"
target datalayout = "e-m:e-p270: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.ms_md2doy.days = private unnamed_addr constant [12 x i32] [i32 31, i32 28, i32 31, i32 30, i32 31, i32 30, i32 31, i32 31, i32 30, i32 31, i32 30, i32 31], align 16
@.str = private unnamed_addr constant [40 x i8] c"ms_md2doy(): year (%d) is out of range\0A\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"ms_md2doy(): month (%d) is out of range\0A\00", align 1
@.str.2 = private unnamed_addr constant [48 x i8] c"ms_md2doy(): day-of-month (%d) is out of range\0A\00", align 1
@.str.3 = private unnamed_addr constant [61 x i8] c"ms_md2doy(): day-of-month (%d) is out of range for month %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ms_md2doy(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr 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 ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca [12 x i32], align 16
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 @__const.ms_md2doy.days, i64 48, i1 false)
%13 = load i32, ptr %6, align 4
%14 = icmp slt i32 %13, 1800
br i1 %14, label %18, label %15
15: ; preds = %4
%16 = load i32, ptr %6, align 4
%17 = icmp sgt i32 %16, 5000
br i1 %17, label %18, label %21
18: ; preds = %15, %4
%19 = load i32, ptr %6, align 4
%20 = call i32 (i32, ptr, i32, ...) @ms_log(i32 noundef 2, ptr noundef @.str, i32 noundef %19)
store i32 -1, ptr %5, align 4
br label %101
21: ; preds = %15
%22 = load i32, ptr %7, align 4
%23 = icmp slt i32 %22, 1
br i1 %23, label %27, label %24
24: ; preds = %21
%25 = load i32, ptr %7, align 4
%26 = icmp sgt i32 %25, 12
br i1 %26, label %27, label %30
27: ; preds = %24, %21
%28 = load i32, ptr %7, align 4
%29 = call i32 (i32, ptr, i32, ...) @ms_log(i32 noundef 2, ptr noundef @.str.1, i32 noundef %28)
store i32 -1, ptr %5, align 4
br label %101
30: ; preds = %24
%31 = load i32, ptr %8, align 4
%32 = icmp slt i32 %31, 1
br i1 %32, label %36, label %33
33: ; preds = %30
%34 = load i32, ptr %8, align 4
%35 = icmp sgt i32 %34, 31
br i1 %35, label %36, label %39
36: ; preds = %33, %30
%37 = load i32, ptr %8, align 4
%38 = call i32 (i32, ptr, i32, ...) @ms_log(i32 noundef 2, ptr noundef @.str.2, i32 noundef %37)
store i32 -1, ptr %5, align 4
br label %101
39: ; preds = %33
%40 = load i32, ptr %6, align 4
%41 = srem i32 %40, 4
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %47
43: ; preds = %39
%44 = load i32, ptr %6, align 4
%45 = srem i32 %44, 100
%46 = icmp ne i32 %45, 0
br i1 %46, label %51, label %47
47: ; preds = %43, %39
%48 = load i32, ptr %6, align 4
%49 = srem i32 %48, 400
%50 = icmp eq i32 %49, 0
br label %51
51: ; preds = %47, %43
%52 = phi i1 [ true, %43 ], [ %50, %47 ]
%53 = zext i1 %52 to i64
%54 = select i1 %52, i32 1, i32 0
store i32 %54, ptr %11, align 4
%55 = load i32, ptr %11, align 4
%56 = icmp ne i32 %55, 0
br i1 %56, label %57, label %61
57: ; preds = %51
%58 = getelementptr inbounds [12 x i32], ptr %12, i64 0, i64 1
%59 = load i32, ptr %58, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %58, align 4
br label %61
61: ; preds = %57, %51
%62 = load i32, ptr %8, align 4
%63 = load i32, ptr %7, align 4
%64 = sub nsw i32 %63, 1
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [12 x i32], ptr %12, i64 0, i64 %65
%67 = load i32, ptr %66, align 4
%68 = icmp sgt i32 %62, %67
br i1 %68, label %69, label %73
69: ; preds = %61
%70 = load i32, ptr %8, align 4
%71 = load i32, ptr %7, align 4
%72 = call i32 (i32, ptr, i32, ...) @ms_log(i32 noundef 2, ptr noundef @.str.3, i32 noundef %70, i32 noundef %71)
store i32 -1, ptr %5, align 4
br label %101
73: ; preds = %61
%74 = load ptr, ptr %9, align 8
store i32 0, ptr %74, align 4
%75 = load i32, ptr %7, align 4
%76 = add nsw i32 %75, -1
store i32 %76, ptr %7, align 4
store i32 0, ptr %10, align 4
br label %77
77: ; preds = %97, %73
%78 = load i32, ptr %10, align 4
%79 = icmp slt i32 %78, 12
br i1 %79, label %80, label %100
80: ; preds = %77
%81 = load i32, ptr %10, align 4
%82 = load i32, ptr %7, align 4
%83 = icmp eq i32 %81, %82
br i1 %83, label %84, label %89
84: ; preds = %80
%85 = load i32, ptr %8, align 4
%86 = load ptr, ptr %9, align 8
%87 = load i32, ptr %86, align 4
%88 = add nsw i32 %87, %85
store i32 %88, ptr %86, align 4
br label %100
89: ; preds = %80
%90 = load i32, ptr %10, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [12 x i32], ptr %12, i64 0, i64 %91
%93 = load i32, ptr %92, align 4
%94 = load ptr, ptr %9, align 8
%95 = load i32, ptr %94, align 4
%96 = add nsw i32 %95, %93
store i32 %96, ptr %94, align 4
br label %97
97: ; preds = %89
%98 = load i32, ptr %10, align 4
%99 = add nsw i32 %98, 1
store i32 %99, ptr %10, align 4
br label %77, !llvm.loop !6
100: ; preds = %84, %77
store i32 0, ptr %5, align 4
br label %101
101: ; preds = %100, %69, %36, %27, %18
%102 = load i32, ptr %5, align 4
ret i32 %102
}
; 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 @ms_log(i32 noundef, ptr noundef, i32 noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvqtd71ts.c"
target datalayout = "e-m:e-p270: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.ms_md2doy.days = private unnamed_addr constant [12 x i32] [i32 31, i32 28, i32 31, i32 30, i32 31, i32 30, i32 31, i32 31, i32 30, i32 31, i32 30, i32 31], align 16
@.str = private unnamed_addr constant [40 x i8] c"ms_md2doy(): year (%d) is out of range\0A\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"ms_md2doy(): month (%d) is out of range\0A\00", align 1
@.str.2 = private unnamed_addr constant [48 x i8] c"ms_md2doy(): day-of-month (%d) is out of range\0A\00", align 1
@.str.3 = private unnamed_addr constant [61 x i8] c"ms_md2doy(): day-of-month (%d) is out of range for month %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ms_md2doy(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr 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 ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca [12 x i32], align 16
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 @__const.ms_md2doy.days, i64 48, i1 false)
%13 = load i32, ptr %6, align 4
%14 = icmp slt i32 %13, 1800
br i1 %14, label %18, label %15
15: ; preds = %4
%16 = load i32, ptr %6, align 4
%17 = icmp sgt i32 %16, 5000
br i1 %17, label %18, label %21
18: ; preds = %15, %4
%19 = load i32, ptr %6, align 4
%20 = call i32 (i32, ptr, i32, ...) @ms_log(i32 noundef 2, ptr noundef @.str, i32 noundef %19)
store i32 -1, ptr %5, align 4
br label %102
21: ; preds = %15
%22 = load i32, ptr %7, align 4
%23 = icmp slt i32 %22, 1
br i1 %23, label %27, label %24
24: ; preds = %21
%25 = load i32, ptr %7, align 4
%26 = icmp sgt i32 %25, 12
br i1 %26, label %27, label %30
27: ; preds = %24, %21
%28 = load i32, ptr %7, align 4
%29 = call i32 (i32, ptr, i32, ...) @ms_log(i32 noundef 2, ptr noundef @.str.1, i32 noundef %28)
store i32 -1, ptr %5, align 4
br label %102
30: ; preds = %24
%31 = load i32, ptr %8, align 4
%32 = icmp slt i32 %31, 1
br i1 %32, label %36, label %33
33: ; preds = %30
%34 = load i32, ptr %8, align 4
%35 = icmp sgt i32 %34, 31
br i1 %35, label %36, label %39
36: ; preds = %33, %30
%37 = load i32, ptr %8, align 4
%38 = call i32 (i32, ptr, i32, ...) @ms_log(i32 noundef 2, ptr noundef @.str.2, i32 noundef %37)
store i32 -1, ptr %5, align 4
br label %102
39: ; preds = %33
%40 = load i32, ptr %6, align 4
%41 = srem i32 %40, 4
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %47
43: ; preds = %39
%44 = load i32, ptr %6, align 4
%45 = srem i32 %44, 100
%46 = icmp ne i32 %45, 0
br i1 %46, label %51, label %47
47: ; preds = %43, %39
%48 = load i32, ptr %6, align 4
%49 = srem i32 %48, 400
%50 = icmp eq i32 %49, 0
br label %51
51: ; preds = %47, %43
%52 = phi i1 [ true, %43 ], [ %50, %47 ]
%53 = zext i1 %52 to i64
%54 = select i1 %52, i32 1, i32 0
store i32 %54, ptr %11, align 4
%55 = load i32, ptr %11, align 4
%56 = icmp ne i32 %55, 0
br i1 %56, label %57, label %61
57: ; preds = %51
%58 = getelementptr inbounds [12 x i32], ptr %12, i64 0, i64 1
%59 = load i32, ptr %58, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %58, align 4
br label %61
61: ; preds = %57, %51
%62 = load i32, ptr %8, align 4
%63 = load i32, ptr %7, align 4
%64 = sub nsw i32 %63, 1
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [12 x i32], ptr %12, i64 0, i64 %65
%67 = load i32, ptr %66, align 4
%68 = icmp sgt i32 %62, %67
br i1 %68, label %69, label %73
69: ; preds = %61
%70 = load i32, ptr %8, align 4
%71 = load i32, ptr %7, align 4
%72 = call i32 (i32, ptr, i32, ...) @ms_log(i32 noundef 2, ptr noundef @.str.3, i32 noundef %70, i32 noundef %71)
store i32 -1, ptr %5, align 4
br label %102
73: ; preds = %61
%74 = load ptr, ptr %9, align 8
store i32 0, ptr %74, align 4
%75 = load i32, ptr %7, align 4
%76 = add nsw i32 %75, -1
store i32 %76, ptr %7, align 4
store i32 0, ptr %10, align 4
%77 = load i32, ptr %10, align 4
%78 = icmp slt i32 %77, 12
br i1 %78, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %73
br label %79
79: ; preds = %.lr.ph, %96
%80 = load i32, ptr %10, align 4
%81 = load i32, ptr %7, align 4
%82 = icmp eq i32 %80, %81
br i1 %82, label %83, label %88
83: ; preds = %79
%84 = load i32, ptr %8, align 4
%85 = load ptr, ptr %9, align 8
%86 = load i32, ptr %85, align 4
%87 = add nsw i32 %86, %84
store i32 %87, ptr %85, align 4
br label %101
88: ; preds = %79
%89 = load i32, ptr %10, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [12 x i32], ptr %12, i64 0, i64 %90
%92 = load i32, ptr %91, align 4
%93 = load ptr, ptr %9, align 8
%94 = load i32, ptr %93, align 4
%95 = add nsw i32 %94, %92
store i32 %95, ptr %93, align 4
br label %96
96: ; preds = %88
%97 = load i32, ptr %10, align 4
%98 = add nsw i32 %97, 1
store i32 %98, ptr %10, align 4
%99 = load i32, ptr %10, align 4
%100 = icmp slt i32 %99, 12
br i1 %100, label %79, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %96
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %73
br label %101
101: ; preds = %.loopexit, %83
store i32 0, ptr %5, align 4
br label %102
102: ; preds = %101, %69, %36, %27, %18
%103 = load i32, ptr %5, align 4
ret i32 %103
}
; 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 @ms_log(i32 noundef, ptr noundef, i32 noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmptu_mn1ad.c'
source_filename = "/tmp/tmptu_mn1ad.c"
target datalayout = "e-m:e-p270: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/tmptu_mn1ad.c"
target datalayout = "e-m:e-p270: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/tmp866_eegn.c'
source_filename = "/tmp/tmp866_eegn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"no\0A\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"yes\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %21, %0
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %24
11: ; preds = %7
%12 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %4)
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp sgt i32 %13, %14
br i1 %15, label %16, label %18
16: ; preds = %11
%17 = call i32 @printf(ptr noundef @.str.2)
store i32 0, ptr %1, align 4
br label %26
18: ; preds = %11
%19 = load i32, ptr %4, align 4
store i32 %19, ptr %3, align 4
br label %20
20: ; preds = %18
br label %21
21: ; preds = %20
%22 = load i32, ptr %5, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %5, align 4
br label %7, !llvm.loop !6
24: ; preds = %7
%25 = call i32 @printf(ptr noundef @.str.3)
store i32 0, ptr %1, align 4
br label %26
26: ; preds = %24, %16
%27 = load i32, ptr %1, align 4
ret i32 %27
}
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp866_eegn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"no\0A\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"yes\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
store i32 0, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %.lr.ph, label %26
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %20
%11 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %4)
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %4, align 4
%14 = icmp sgt i32 %12, %13
br i1 %14, label %15, label %17
15: ; preds = %10
%16 = call i32 @printf(ptr noundef @.str.2)
store i32 0, ptr %1, align 4
br label %28
17: ; preds = %10
%18 = load i32, ptr %4, align 4
store i32 %18, ptr %3, align 4
br label %19
19: ; preds = %17
br label %20
20: ; preds = %19
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %5, align 4
%23 = load i32, ptr %5, align 4
%24 = load i32, ptr %2, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %26
26: ; preds = %._crit_edge, %0
%27 = call i32 @printf(ptr noundef @.str.3)
store i32 0, ptr %1, align 4
br label %28
28: ; preds = %26, %15
%29 = load i32, ptr %1, align 4
ret i32 %29
}
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpw0skmzfq.c'
source_filename = "/tmp/tmpw0skmzfq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Postcondition\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"foo\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"\\result == 100\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @__e_acsl_foo() #0 {
%1 = alloca i64, align 8
%2 = call i64 (...) @foo()
store i64 %2, ptr %1, align 8
%3 = load i64, ptr %1, align 8
%4 = icmp eq i64 %3, 100
%5 = zext i1 %4 to i32
%6 = call i32 @e_acsl_assert(i32 noundef %5, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 19)
%7 = load i64, ptr %1, align 8
ret i64 %7
}
declare i64 @foo(...) #1
declare i32 @e_acsl_assert(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw0skmzfq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Postcondition\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"foo\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"\\result == 100\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @__e_acsl_foo() #0 {
%1 = alloca i64, align 8
%2 = call i64 (...) @foo()
store i64 %2, ptr %1, align 8
%3 = load i64, ptr %1, align 8
%4 = icmp eq i64 %3, 100
%5 = zext i1 %4 to i32
%6 = call i32 @e_acsl_assert(i32 noundef %5, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 19)
%7 = load i64, ptr %1, align 8
ret i64 %7
}
declare i64 @foo(...) #1
declare i32 @e_acsl_assert(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjnz68ehc.c'
source_filename = "/tmp/tmpjnz68ehc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @socketClose(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 @closesocket(i32 noundef %3)
ret void
}
declare i32 @closesocket(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/tmpjnz68ehc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @socketClose(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 @closesocket(i32 noundef %3)
ret void
}
declare i32 @closesocket(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/tmpy3hhkmfx.c'
source_filename = "/tmp/tmpy3hhkmfx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memstr(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%10 = load ptr, ptr %6, align 8
%11 = call i64 @strlen(ptr noundef %10)
store i64 %11, ptr %8, align 8
br label %12
12: ; preds = %40, %3
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %6, align 8
%15 = load i8, ptr %14, align 1
%16 = load i64, ptr %7, align 8
%17 = call ptr @memchr(ptr noundef %13, i8 noundef signext %15, i64 noundef %16)
store ptr %17, ptr %9, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %43
19: ; preds = %12
%20 = load ptr, ptr %9, align 8
%21 = load ptr, ptr %5, align 8
%22 = ptrtoint ptr %20 to i64
%23 = ptrtoint ptr %21 to i64
%24 = sub i64 %22, %23
%25 = add nsw i64 %24, 1
%26 = load i64, ptr %7, align 8
%27 = sub i64 %26, %25
store i64 %27, ptr %7, align 8
%28 = load i64, ptr %7, align 8
%29 = load i64, ptr %8, align 8
%30 = icmp ule i64 %28, %29
br i1 %30, label %31, label %32
31: ; preds = %19
store ptr null, ptr %4, align 8
br label %45
32: ; preds = %19
%33 = load ptr, ptr %9, align 8
%34 = load ptr, ptr %6, align 8
%35 = load i64, ptr %8, align 8
%36 = call i64 @memcmp(ptr noundef %33, ptr noundef %34, i64 noundef %35)
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %40
38: ; preds = %32
%39 = load ptr, ptr %9, align 8
store ptr %39, ptr %4, align 8
br label %45
40: ; preds = %32
%41 = load ptr, ptr %9, align 8
%42 = getelementptr i8, ptr %41, i64 1
store ptr %42, ptr %5, align 8
br label %12, !llvm.loop !6
43: ; preds = %12
%44 = load ptr, ptr %9, align 8
store ptr %44, ptr %4, align 8
br label %45
45: ; preds = %43, %38, %31
%46 = load ptr, ptr %4, align 8
ret ptr %46
}
declare i64 @strlen(ptr noundef) #1
declare ptr @memchr(ptr noundef, i8 noundef signext, i64 noundef) #1
declare i64 @memcmp(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy3hhkmfx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memstr(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%10 = load ptr, ptr %6, align 8
%11 = call i64 @strlen(ptr noundef %10)
store i64 %11, ptr %8, align 8
%12 = load ptr, ptr %5, align 8
%13 = load ptr, ptr %6, align 8
%14 = load i8, ptr %13, align 1
%15 = load i64, ptr %7, align 8
%16 = call ptr @memchr(ptr noundef %12, i8 noundef signext %14, i64 noundef %15)
store ptr %16, ptr %9, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %.lr.ph, label %48
.lr.ph: ; preds = %3
br label %18
18: ; preds = %.lr.ph, %39
%19 = load ptr, ptr %9, align 8
%20 = load ptr, ptr %5, align 8
%21 = ptrtoint ptr %19 to i64
%22 = ptrtoint ptr %20 to i64
%23 = sub i64 %21, %22
%24 = add nsw i64 %23, 1
%25 = load i64, ptr %7, align 8
%26 = sub i64 %25, %24
store i64 %26, ptr %7, align 8
%27 = load i64, ptr %7, align 8
%28 = load i64, ptr %8, align 8
%29 = icmp ule i64 %27, %28
br i1 %29, label %30, label %31
30: ; preds = %18
store ptr null, ptr %4, align 8
br label %50
31: ; preds = %18
%32 = load ptr, ptr %9, align 8
%33 = load ptr, ptr %6, align 8
%34 = load i64, ptr %8, align 8
%35 = call i64 @memcmp(ptr noundef %32, ptr noundef %33, i64 noundef %34)
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %31
%38 = load ptr, ptr %9, align 8
store ptr %38, ptr %4, align 8
br label %50
39: ; preds = %31
%40 = load ptr, ptr %9, align 8
%41 = getelementptr i8, ptr %40, i64 1
store ptr %41, ptr %5, align 8
%42 = load ptr, ptr %5, align 8
%43 = load ptr, ptr %6, align 8
%44 = load i8, ptr %43, align 1
%45 = load i64, ptr %7, align 8
%46 = call ptr @memchr(ptr noundef %42, i8 noundef signext %44, i64 noundef %45)
store ptr %46, ptr %9, align 8
%47 = icmp ne ptr %46, null
br i1 %47, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %39
br label %48
48: ; preds = %._crit_edge, %3
%49 = load ptr, ptr %9, align 8
store ptr %49, ptr %4, align 8
br label %50
50: ; preds = %48, %37, %30
%51 = load ptr, ptr %4, align 8
ret ptr %51
}
declare i64 @strlen(ptr noundef) #1
declare ptr @memchr(ptr noundef, i8 noundef signext, i64 noundef) #1
declare i64 @memcmp(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpkwsxw_i8.c'
source_filename = "/tmp/tmpkwsxw_i8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SomeFuncA() #0 {
%1 = call i32 @set32(i32 noundef 226492812, i32 noundef 1024)
%2 = call i32 @set32(i32 noundef 226492812, i32 noundef 2048)
ret void
}
declare i32 @set32(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/tmpkwsxw_i8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SomeFuncA() #0 {
%1 = call i32 @set32(i32 noundef 226492812, i32 noundef 1024)
%2 = call i32 @set32(i32 noundef 226492812, i32 noundef 2048)
ret void
}
declare i32 @set32(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/tmpjnabqrta.c'
source_filename = "/tmp/tmpjnabqrta.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sasl_erasebuffer(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @memset(ptr noundef %5, i32 noundef 0, i32 noundef %6)
ret void
}
declare i32 @memset(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/tmpjnabqrta.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sasl_erasebuffer(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @memset(ptr noundef %5, i32 noundef 0, i32 noundef %6)
ret void
}
declare i32 @memset(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/tmpmhfmztla.c'
source_filename = "/tmp/tmpmhfmztla.c"
target datalayout = "e-m:e-p270: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/tmpmhfmztla.c"
target datalayout = "e-m:e-p270: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/tmpe2l_bpv0.c'
source_filename = "/tmp/tmpe2l_bpv0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"Enter three integers: \00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%d%d%d\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"Maximum 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 i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %4, align 4
%10 = call i32 @maximum(i32 noundef %7, i32 noundef %8, i32 noundef %9)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %10)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @maximum(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe2l_bpv0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"Enter three integers: \00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%d%d%d\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"Maximum 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 i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %4, align 4
%10 = call i32 @maximum(i32 noundef %7, i32 noundef %8, i32 noundef %9)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %10)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @maximum(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppbb11atd.c'
source_filename = "/tmp/tmppbb11atd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@http_request_line.buf = internal global [8192 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [18 x i8] c"http_request_line\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"Socket IO error\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"Cannot parse HTTP request (1)\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"Bad request path\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"Cannot parse HTTP request (2)\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"GET\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"POST\00", align 1
@.str.7 = private unnamed_addr constant [38 x i8] c"Unsupported request (not GET or POST)\00", align 1
@.str.8 = private unnamed_addr constant [18 x i8] c"REQUEST_METHOD=%s\00", align 1
@.str.9 = private unnamed_addr constant [19 x i8] c"SERVER_PROTOCOL=%s\00", align 1
@.str.10 = private unnamed_addr constant [16 x i8] c"QUERY_STRING=%s\00", align 1
@.str.11 = private unnamed_addr constant [15 x i8] c"REQUEST_URI=%s\00", align 1
@.str.12 = private unnamed_addr constant [23 x i8] c"SERVER_NAME=zoobar.org\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @http_request_line(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%14 = load ptr, ptr %8, align 8
store ptr %14, ptr %13, align 8
%15 = call i32 @touch(ptr noundef @.str)
%16 = load i32, ptr %6, align 4
%17 = call i64 @http_read_line(i32 noundef %16, ptr noundef @http_request_line.buf, i32 noundef 8192)
%18 = icmp slt i64 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %4
store ptr @.str.1, ptr %5, align 8
br label %97
20: ; preds = %4
%21 = call ptr @strchr(ptr noundef @http_request_line.buf, i8 noundef signext 32)
store ptr %21, ptr %10, align 8
%22 = load ptr, ptr %10, align 8
%23 = icmp ne ptr %22, null
br i1 %23, label %25, label %24
24: ; preds = %20
store ptr @.str.2, ptr %5, align 8
br label %97
25: ; preds = %20
%26 = load ptr, ptr %10, align 8
store i8 0, ptr %26, align 1
%27 = load ptr, ptr %10, align 8
%28 = getelementptr inbounds i8, ptr %27, i32 1
store ptr %28, ptr %10, align 8
%29 = load ptr, ptr %10, align 8
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp ne i32 %31, 47
br i1 %32, label %33, label %34
33: ; preds = %25
store ptr @.str.3, ptr %5, align 8
br label %97
34: ; preds = %25
%35 = load ptr, ptr %10, align 8
%36 = call ptr @strchr(ptr noundef %35, i8 noundef signext 32)
store ptr %36, ptr %11, align 8
%37 = load ptr, ptr %11, align 8
%38 = icmp ne ptr %37, null
br i1 %38, label %40, label %39
39: ; preds = %34
store ptr @.str.4, ptr %5, align 8
br label %97
40: ; preds = %34
%41 = load ptr, ptr %11, align 8
store i8 0, ptr %41, align 1
%42 = load ptr, ptr %11, align 8
%43 = getelementptr inbounds i8, ptr %42, i32 1
store ptr %43, ptr %11, align 8
%44 = call i64 @strcmp(ptr noundef @http_request_line.buf, ptr noundef @.str.5)
%45 = icmp ne i64 %44, 0
br i1 %45, label %46, label %50
46: ; preds = %40
%47 = call i64 @strcmp(ptr noundef @http_request_line.buf, ptr noundef @.str.6)
%48 = icmp ne i64 %47, 0
br i1 %48, label %49, label %50
49: ; preds = %46
store ptr @.str.7, ptr %5, align 8
br label %97
50: ; preds = %46, %40
%51 = load ptr, ptr %13, align 8
%52 = call i64 (ptr, ptr, ...) @sprintf(ptr noundef %51, ptr noundef @.str.8, ptr noundef @http_request_line.buf)
%53 = add nsw i64 %52, 1
%54 = load ptr, ptr %13, align 8
%55 = getelementptr inbounds i8, ptr %54, i64 %53
store ptr %55, ptr %13, align 8
%56 = load ptr, ptr %13, align 8
%57 = load ptr, ptr %11, align 8
%58 = call i64 (ptr, ptr, ...) @sprintf(ptr noundef %56, ptr noundef @.str.9, ptr noundef %57)
%59 = add nsw i64 %58, 1
%60 = load ptr, ptr %13, align 8
%61 = getelementptr inbounds i8, ptr %60, i64 %59
store ptr %61, ptr %13, align 8
%62 = load ptr, ptr %10, align 8
%63 = call ptr @strchr(ptr noundef %62, i8 noundef signext 63)
store ptr %63, ptr %12, align 8
%64 = icmp ne ptr %63, null
br i1 %64, label %65, label %74
65: ; preds = %50
%66 = load ptr, ptr %12, align 8
store i8 0, ptr %66, align 1
%67 = load ptr, ptr %13, align 8
%68 = load ptr, ptr %12, align 8
%69 = getelementptr inbounds i8, ptr %68, i64 1
%70 = call i64 (ptr, ptr, ...) @sprintf(ptr noundef %67, ptr noundef @.str.10, ptr noundef %69)
%71 = add nsw i64 %70, 1
%72 = load ptr, ptr %13, align 8
%73 = getelementptr inbounds i8, ptr %72, i64 %71
store ptr %73, ptr %13, align 8
br label %74
74: ; preds = %65, %50
%75 = load ptr, ptr %7, align 8
%76 = load ptr, ptr %10, align 8
%77 = call i32 @url_decode(ptr noundef %75, ptr noundef %76)
%78 = load ptr, ptr %13, align 8
%79 = load ptr, ptr %7, align 8
%80 = call i64 (ptr, ptr, ...) @sprintf(ptr noundef %78, ptr noundef @.str.11, ptr noundef %79)
%81 = add nsw i64 %80, 1
%82 = load ptr, ptr %13, align 8
%83 = getelementptr inbounds i8, ptr %82, i64 %81
store ptr %83, ptr %13, align 8
%84 = load ptr, ptr %13, align 8
%85 = call i64 (ptr, ptr, ...) @sprintf(ptr noundef %84, ptr noundef @.str.12)
%86 = add nsw i64 %85, 1
%87 = load ptr, ptr %13, align 8
%88 = getelementptr inbounds i8, ptr %87, i64 %86
store ptr %88, ptr %13, align 8
%89 = load ptr, ptr %13, align 8
store i8 0, ptr %89, align 1
%90 = load ptr, ptr %13, align 8
%91 = load ptr, ptr %8, align 8
%92 = ptrtoint ptr %90 to i64
%93 = ptrtoint ptr %91 to i64
%94 = sub i64 %92, %93
%95 = add nsw i64 %94, 1
%96 = load ptr, ptr %9, align 8
store i64 %95, ptr %96, align 8
store ptr null, ptr %5, align 8
br label %97
97: ; preds = %74, %49, %39, %33, %24, %19
%98 = load ptr, ptr %5, align 8
ret ptr %98
}
declare i32 @touch(ptr noundef) #1
declare i64 @http_read_line(i32 noundef, ptr noundef, i32 noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i64 @sprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @url_decode(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/tmppbb11atd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@http_request_line.buf = internal global [8192 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [18 x i8] c"http_request_line\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"Socket IO error\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"Cannot parse HTTP request (1)\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"Bad request path\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"Cannot parse HTTP request (2)\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"GET\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"POST\00", align 1
@.str.7 = private unnamed_addr constant [38 x i8] c"Unsupported request (not GET or POST)\00", align 1
@.str.8 = private unnamed_addr constant [18 x i8] c"REQUEST_METHOD=%s\00", align 1
@.str.9 = private unnamed_addr constant [19 x i8] c"SERVER_PROTOCOL=%s\00", align 1
@.str.10 = private unnamed_addr constant [16 x i8] c"QUERY_STRING=%s\00", align 1
@.str.11 = private unnamed_addr constant [15 x i8] c"REQUEST_URI=%s\00", align 1
@.str.12 = private unnamed_addr constant [23 x i8] c"SERVER_NAME=zoobar.org\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @http_request_line(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%14 = load ptr, ptr %8, align 8
store ptr %14, ptr %13, align 8
%15 = call i32 @touch(ptr noundef @.str)
%16 = load i32, ptr %6, align 4
%17 = call i64 @http_read_line(i32 noundef %16, ptr noundef @http_request_line.buf, i32 noundef 8192)
%18 = icmp slt i64 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %4
store ptr @.str.1, ptr %5, align 8
br label %97
20: ; preds = %4
%21 = call ptr @strchr(ptr noundef @http_request_line.buf, i8 noundef signext 32)
store ptr %21, ptr %10, align 8
%22 = load ptr, ptr %10, align 8
%23 = icmp ne ptr %22, null
br i1 %23, label %25, label %24
24: ; preds = %20
store ptr @.str.2, ptr %5, align 8
br label %97
25: ; preds = %20
%26 = load ptr, ptr %10, align 8
store i8 0, ptr %26, align 1
%27 = load ptr, ptr %10, align 8
%28 = getelementptr inbounds i8, ptr %27, i32 1
store ptr %28, ptr %10, align 8
%29 = load ptr, ptr %10, align 8
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp ne i32 %31, 47
br i1 %32, label %33, label %34
33: ; preds = %25
store ptr @.str.3, ptr %5, align 8
br label %97
34: ; preds = %25
%35 = load ptr, ptr %10, align 8
%36 = call ptr @strchr(ptr noundef %35, i8 noundef signext 32)
store ptr %36, ptr %11, align 8
%37 = load ptr, ptr %11, align 8
%38 = icmp ne ptr %37, null
br i1 %38, label %40, label %39
39: ; preds = %34
store ptr @.str.4, ptr %5, align 8
br label %97
40: ; preds = %34
%41 = load ptr, ptr %11, align 8
store i8 0, ptr %41, align 1
%42 = load ptr, ptr %11, align 8
%43 = getelementptr inbounds i8, ptr %42, i32 1
store ptr %43, ptr %11, align 8
%44 = call i64 @strcmp(ptr noundef @http_request_line.buf, ptr noundef @.str.5)
%45 = icmp ne i64 %44, 0
br i1 %45, label %46, label %50
46: ; preds = %40
%47 = call i64 @strcmp(ptr noundef @http_request_line.buf, ptr noundef @.str.6)
%48 = icmp ne i64 %47, 0
br i1 %48, label %49, label %50
49: ; preds = %46
store ptr @.str.7, ptr %5, align 8
br label %97
50: ; preds = %46, %40
%51 = load ptr, ptr %13, align 8
%52 = call i64 (ptr, ptr, ...) @sprintf(ptr noundef %51, ptr noundef @.str.8, ptr noundef @http_request_line.buf)
%53 = add nsw i64 %52, 1
%54 = load ptr, ptr %13, align 8
%55 = getelementptr inbounds i8, ptr %54, i64 %53
store ptr %55, ptr %13, align 8
%56 = load ptr, ptr %13, align 8
%57 = load ptr, ptr %11, align 8
%58 = call i64 (ptr, ptr, ...) @sprintf(ptr noundef %56, ptr noundef @.str.9, ptr noundef %57)
%59 = add nsw i64 %58, 1
%60 = load ptr, ptr %13, align 8
%61 = getelementptr inbounds i8, ptr %60, i64 %59
store ptr %61, ptr %13, align 8
%62 = load ptr, ptr %10, align 8
%63 = call ptr @strchr(ptr noundef %62, i8 noundef signext 63)
store ptr %63, ptr %12, align 8
%64 = icmp ne ptr %63, null
br i1 %64, label %65, label %74
65: ; preds = %50
%66 = load ptr, ptr %12, align 8
store i8 0, ptr %66, align 1
%67 = load ptr, ptr %13, align 8
%68 = load ptr, ptr %12, align 8
%69 = getelementptr inbounds i8, ptr %68, i64 1
%70 = call i64 (ptr, ptr, ...) @sprintf(ptr noundef %67, ptr noundef @.str.10, ptr noundef %69)
%71 = add nsw i64 %70, 1
%72 = load ptr, ptr %13, align 8
%73 = getelementptr inbounds i8, ptr %72, i64 %71
store ptr %73, ptr %13, align 8
br label %74
74: ; preds = %65, %50
%75 = load ptr, ptr %7, align 8
%76 = load ptr, ptr %10, align 8
%77 = call i32 @url_decode(ptr noundef %75, ptr noundef %76)
%78 = load ptr, ptr %13, align 8
%79 = load ptr, ptr %7, align 8
%80 = call i64 (ptr, ptr, ...) @sprintf(ptr noundef %78, ptr noundef @.str.11, ptr noundef %79)
%81 = add nsw i64 %80, 1
%82 = load ptr, ptr %13, align 8
%83 = getelementptr inbounds i8, ptr %82, i64 %81
store ptr %83, ptr %13, align 8
%84 = load ptr, ptr %13, align 8
%85 = call i64 (ptr, ptr, ...) @sprintf(ptr noundef %84, ptr noundef @.str.12)
%86 = add nsw i64 %85, 1
%87 = load ptr, ptr %13, align 8
%88 = getelementptr inbounds i8, ptr %87, i64 %86
store ptr %88, ptr %13, align 8
%89 = load ptr, ptr %13, align 8
store i8 0, ptr %89, align 1
%90 = load ptr, ptr %13, align 8
%91 = load ptr, ptr %8, align 8
%92 = ptrtoint ptr %90 to i64
%93 = ptrtoint ptr %91 to i64
%94 = sub i64 %92, %93
%95 = add nsw i64 %94, 1
%96 = load ptr, ptr %9, align 8
store i64 %95, ptr %96, align 8
store ptr null, ptr %5, align 8
br label %97
97: ; preds = %74, %49, %39, %33, %24, %19
%98 = load ptr, ptr %5, align 8
ret ptr %98
}
declare i32 @touch(ptr noundef) #1
declare i64 @http_read_line(i32 noundef, ptr noundef, i32 noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i64 @sprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @url_decode(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/tmpp2qulaq8.c'
source_filename = "/tmp/tmpp2qulaq8.c"
target datalayout = "e-m:e-p270: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/tmpp2qulaq8.c"
target datalayout = "e-m:e-p270: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/tmp5e0685i4.c'
source_filename = "/tmp/tmp5e0685i4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"An integer must be provided\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"`%s' is not an integer\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @arg_to_ll_bytes(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i64 @strtoll(ptr noundef %7, ptr noundef %5, i32 noundef 0)
store i64 %8, ptr %6, align 8
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %4, align 8
%11 = icmp eq ptr %9, %10
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = load ptr, ptr %3, align 8
%14 = call i32 (ptr, ptr, ...) @argp_error(ptr noundef %13, ptr noundef @.str)
br label %15
15: ; preds = %12, %2
%16 = load ptr, ptr %5, align 8
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
switch i32 %18, label %44 [
i32 115, label %19
i32 83, label %19
i32 107, label %24
i32 75, label %24
i32 109, label %29
i32 77, label %29
i32 103, label %34
i32 71, label %34
i32 116, label %39
i32 84, label %39
]
19: ; preds = %15, %15
%20 = load i64, ptr %6, align 8
%21 = shl i64 %20, 9
store i64 %21, ptr %6, align 8
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 1
store ptr %23, ptr %5, align 8
br label %44
24: ; preds = %15, %15
%25 = load i64, ptr %6, align 8
%26 = shl i64 %25, 10
store i64 %26, ptr %6, align 8
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds i8, ptr %27, i32 1
store ptr %28, ptr %5, align 8
br label %44
29: ; preds = %15, %15
%30 = load i64, ptr %6, align 8
%31 = shl i64 %30, 20
store i64 %31, ptr %6, align 8
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds i8, ptr %32, i32 1
store ptr %33, ptr %5, align 8
br label %44
34: ; preds = %15, %15
%35 = load i64, ptr %6, align 8
%36 = shl i64 %35, 30
store i64 %36, ptr %6, align 8
%37 = load ptr, ptr %5, align 8
%38 = getelementptr inbounds i8, ptr %37, i32 1
store ptr %38, ptr %5, align 8
br label %44
39: ; preds = %15, %15
%40 = load i64, ptr %6, align 8
%41 = shl i64 %40, 40
store i64 %41, ptr %6, align 8
%42 = load ptr, ptr %5, align 8
%43 = getelementptr inbounds i8, ptr %42, i32 1
store ptr %43, ptr %5, align 8
br label %44
44: ; preds = %15, %39, %34, %29, %24, %19
%45 = load ptr, ptr %5, align 8
%46 = load i8, ptr %45, align 1
%47 = icmp ne i8 %46, 0
br i1 %47, label %48, label %52
48: ; preds = %44
%49 = load ptr, ptr %3, align 8
%50 = load ptr, ptr %4, align 8
%51 = call i32 (ptr, ptr, ...) @argp_error(ptr noundef %49, ptr noundef @.str.1, ptr noundef %50)
br label %52
52: ; preds = %48, %44
%53 = load i64, ptr %6, align 8
ret i64 %53
}
declare i64 @strtoll(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @argp_error(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/tmp5e0685i4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"An integer must be provided\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"`%s' is not an integer\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @arg_to_ll_bytes(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i64 @strtoll(ptr noundef %7, ptr noundef %5, i32 noundef 0)
store i64 %8, ptr %6, align 8
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %4, align 8
%11 = icmp eq ptr %9, %10
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = load ptr, ptr %3, align 8
%14 = call i32 (ptr, ptr, ...) @argp_error(ptr noundef %13, ptr noundef @.str)
br label %15
15: ; preds = %12, %2
%16 = load ptr, ptr %5, align 8
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
switch i32 %18, label %44 [
i32 115, label %19
i32 83, label %19
i32 107, label %24
i32 75, label %24
i32 109, label %29
i32 77, label %29
i32 103, label %34
i32 71, label %34
i32 116, label %39
i32 84, label %39
]
19: ; preds = %15, %15
%20 = load i64, ptr %6, align 8
%21 = shl i64 %20, 9
store i64 %21, ptr %6, align 8
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 1
store ptr %23, ptr %5, align 8
br label %44
24: ; preds = %15, %15
%25 = load i64, ptr %6, align 8
%26 = shl i64 %25, 10
store i64 %26, ptr %6, align 8
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds i8, ptr %27, i32 1
store ptr %28, ptr %5, align 8
br label %44
29: ; preds = %15, %15
%30 = load i64, ptr %6, align 8
%31 = shl i64 %30, 20
store i64 %31, ptr %6, align 8
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds i8, ptr %32, i32 1
store ptr %33, ptr %5, align 8
br label %44
34: ; preds = %15, %15
%35 = load i64, ptr %6, align 8
%36 = shl i64 %35, 30
store i64 %36, ptr %6, align 8
%37 = load ptr, ptr %5, align 8
%38 = getelementptr inbounds i8, ptr %37, i32 1
store ptr %38, ptr %5, align 8
br label %44
39: ; preds = %15, %15
%40 = load i64, ptr %6, align 8
%41 = shl i64 %40, 40
store i64 %41, ptr %6, align 8
%42 = load ptr, ptr %5, align 8
%43 = getelementptr inbounds i8, ptr %42, i32 1
store ptr %43, ptr %5, align 8
br label %44
44: ; preds = %39, %34, %29, %24, %19, %15
%45 = load ptr, ptr %5, align 8
%46 = load i8, ptr %45, align 1
%47 = icmp ne i8 %46, 0
br i1 %47, label %48, label %52
48: ; preds = %44
%49 = load ptr, ptr %3, align 8
%50 = load ptr, ptr %4, align 8
%51 = call i32 (ptr, ptr, ...) @argp_error(ptr noundef %49, ptr noundef @.str.1, ptr noundef %50)
br label %52
52: ; preds = %48, %44
%53 = load i64, ptr %6, align 8
ret i64 %53
}
declare i64 @strtoll(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @argp_error(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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.