llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmpvp1ld0cf.c'
source_filename = "/tmp/tmpvp1ld0cf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @k3close(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 @restore_ai_status(i32 noundef %3)
%5 = load i32, ptr %2, align 4
%6 = call i32 @close(i32 noundef %5)
ret i32 %6
}
declare i32 @restore_ai_status(i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvp1ld0cf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @k3close(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 @restore_ai_status(i32 noundef %3)
%5 = load i32, ptr %2, align 4
%6 = call i32 @close(i32 noundef %5)
ret i32 %6
}
declare i32 @restore_ai_status(i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcislen_6.c'
source_filename = "/tmp/tmpcislen_6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"sqrt (50) = %f\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 double @sqrt_v(i32 noundef 50)
%3 = call i32 @printf(ptr noundef @.str, double noundef %2)
ret i32 0
}
declare i32 @printf(ptr noundef, double noundef) #1
declare double @sqrt_v(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/tmpcislen_6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"sqrt (50) = %f\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 double @sqrt_v(i32 noundef 50)
%3 = call i32 @printf(ptr noundef @.str, double noundef %2)
ret i32 0
}
declare i32 @printf(ptr noundef, double noundef) #1
declare double @sqrt_v(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/tmpddi02ewe.c'
source_filename = "/tmp/tmpddi02ewe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @FIL_ForceExtension(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i8, ptr %6, i64 %9
%11 = getelementptr inbounds i8, ptr %10, i64 -1
store ptr %11, ptr %5, align 8
br label %12
12: ; preds = %30, %2
%13 = load ptr, ptr %5, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 47
br i1 %16, label %17, label %21
17: ; preds = %12
%18 = load ptr, ptr %5, align 8
%19 = load ptr, ptr %3, align 8
%20 = icmp ne ptr %18, %19
br label %21
21: ; preds = %17, %12
%22 = phi i1 [ false, %12 ], [ %20, %17 ]
br i1 %22, label %23, label %33
23: ; preds = %21
%24 = load ptr, ptr %5, align 8
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 46
br i1 %27, label %28, label %30
28: ; preds = %23
%29 = load ptr, ptr %5, align 8
store i8 0, ptr %29, align 1
br label %33
30: ; preds = %23
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 -1
store ptr %32, ptr %5, align 8
br label %12, !llvm.loop !6
33: ; preds = %28, %21
%34 = load ptr, ptr %3, align 8
%35 = load ptr, ptr %4, align 8
%36 = call i32 @strcat(ptr noundef %34, ptr noundef %35)
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpddi02ewe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @FIL_ForceExtension(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i8, ptr %6, i64 %9
%11 = getelementptr inbounds i8, ptr %10, i64 -1
store ptr %11, ptr %5, align 8
br label %12
12: ; preds = %30, %2
%13 = load ptr, ptr %5, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 47
br i1 %16, label %17, label %21
17: ; preds = %12
%18 = load ptr, ptr %5, align 8
%19 = load ptr, ptr %3, align 8
%20 = icmp ne ptr %18, %19
br label %21
21: ; preds = %17, %12
%22 = phi i1 [ false, %12 ], [ %20, %17 ]
br i1 %22, label %23, label %.loopexit
23: ; preds = %21
%24 = load ptr, ptr %5, align 8
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 46
br i1 %27, label %28, label %30
28: ; preds = %23
%29 = load ptr, ptr %5, align 8
store i8 0, ptr %29, align 1
br label %33
30: ; preds = %23
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 -1
store ptr %32, ptr %5, align 8
br label %12, !llvm.loop !6
.loopexit: ; preds = %21
br label %33
33: ; preds = %.loopexit, %28
%34 = load ptr, ptr %3, align 8
%35 = load ptr, ptr %4, align 8
%36 = call i32 @strcat(ptr noundef %34, ptr noundef %35)
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpreioxhys.c'
source_filename = "/tmp/tmpreioxhys.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @CompareHillFormulasNoH(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca [4 x i8], align 1
%11 = alloca [4 x i8], align 1
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
br label %17
17: ; preds = %88, %4
%18 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 0
%19 = call i32 @GetElementAndCount(ptr noundef %6, ptr noundef %18, ptr noundef %12)
store i32 %19, ptr %14, align 4
%20 = load i32, ptr %14, align 4
%21 = icmp slt i32 0, %20
br i1 %21, label %22, label %38
22: ; preds = %17
%23 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 0
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 72
br i1 %26, label %27, label %38
27: ; preds = %22
%28 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 1
%29 = load i8, ptr %28, align 1
%30 = icmp ne i8 %29, 0
br i1 %30, label %38, label %31
31: ; preds = %27
%32 = load i32, ptr %12, align 4
%33 = load ptr, ptr %8, align 8
%34 = load i32, ptr %33, align 4
%35 = add nsw i32 %34, %32
store i32 %35, ptr %33, align 4
%36 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 0
%37 = call i32 @GetElementAndCount(ptr noundef %6, ptr noundef %36, ptr noundef %12)
store i32 %37, ptr %14, align 4
br label %38
38: ; preds = %31, %27, %22, %17
%39 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 0
%40 = call i32 @GetElementAndCount(ptr noundef %7, ptr noundef %39, ptr noundef %13)
store i32 %40, ptr %15, align 4
%41 = load i32, ptr %15, align 4
%42 = icmp slt i32 0, %41
br i1 %42, label %43, label %59
43: ; preds = %38
%44 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 0
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = icmp eq i32 %46, 72
br i1 %47, label %48, label %59
48: ; preds = %43
%49 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 1
%50 = load i8, ptr %49, align 1
%51 = icmp ne i8 %50, 0
br i1 %51, label %59, label %52
52: ; preds = %48
%53 = load i32, ptr %13, align 4
%54 = load ptr, ptr %9, align 8
%55 = load i32, ptr %54, align 4
%56 = add nsw i32 %55, %53
store i32 %56, ptr %54, align 4
%57 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 0
%58 = call i32 @GetElementAndCount(ptr noundef %7, ptr noundef %57, ptr noundef %13)
store i32 %58, ptr %15, align 4
br label %59
59: ; preds = %52, %48, %43, %38
%60 = load i32, ptr %14, align 4
%61 = icmp sle i32 0, %60
br i1 %61, label %62, label %80
62: ; preds = %59
%63 = load i32, ptr %15, align 4
%64 = icmp sle i32 0, %63
br i1 %64, label %65, label %80
65: ; preds = %62
%66 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 0
%67 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 0
%68 = call i32 @strcmp(ptr noundef %66, ptr noundef %67)
store i32 %68, ptr %16, align 4
%69 = icmp ne i32 %68, 0
br i1 %69, label %70, label %72
70: ; preds = %65
%71 = load i32, ptr %16, align 4
store i32 %71, ptr %5, align 4
br label %91
72: ; preds = %65
%73 = load i32, ptr %13, align 4
%74 = load i32, ptr %12, align 4
%75 = sub nsw i32 %73, %74
store i32 %75, ptr %16, align 4
%76 = icmp ne i32 %75, 0
br i1 %76, label %77, label %79
77: ; preds = %72
%78 = load i32, ptr %16, align 4
store i32 %78, ptr %5, align 4
br label %91
79: ; preds = %72
br label %81
80: ; preds = %62, %59
store i32 0, ptr %5, align 4
br label %91
81: ; preds = %79
br label %82
82: ; preds = %81
%83 = load i32, ptr %14, align 4
%84 = icmp slt i32 0, %83
br i1 %84, label %85, label %88
85: ; preds = %82
%86 = load i32, ptr %15, align 4
%87 = icmp slt i32 0, %86
br label %88
88: ; preds = %85, %82
%89 = phi i1 [ false, %82 ], [ %87, %85 ]
br i1 %89, label %17, label %90, !llvm.loop !6
90: ; preds = %88
store i32 0, ptr %5, align 4
br label %91
91: ; preds = %90, %80, %77, %70
%92 = load i32, ptr %5, align 4
ret i32 %92
}
declare i32 @GetElementAndCount(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpreioxhys.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @CompareHillFormulasNoH(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca [4 x i8], align 1
%11 = alloca [4 x i8], align 1
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
br label %17
17: ; preds = %88, %4
%18 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 0
%19 = call i32 @GetElementAndCount(ptr noundef %6, ptr noundef %18, ptr noundef %12)
store i32 %19, ptr %14, align 4
%20 = load i32, ptr %14, align 4
%21 = icmp slt i32 0, %20
br i1 %21, label %22, label %38
22: ; preds = %17
%23 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 0
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 72
br i1 %26, label %27, label %38
27: ; preds = %22
%28 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 1
%29 = load i8, ptr %28, align 1
%30 = icmp ne i8 %29, 0
br i1 %30, label %38, label %31
31: ; preds = %27
%32 = load i32, ptr %12, align 4
%33 = load ptr, ptr %8, align 8
%34 = load i32, ptr %33, align 4
%35 = add nsw i32 %34, %32
store i32 %35, ptr %33, align 4
%36 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 0
%37 = call i32 @GetElementAndCount(ptr noundef %6, ptr noundef %36, ptr noundef %12)
store i32 %37, ptr %14, align 4
br label %38
38: ; preds = %31, %27, %22, %17
%39 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 0
%40 = call i32 @GetElementAndCount(ptr noundef %7, ptr noundef %39, ptr noundef %13)
store i32 %40, ptr %15, align 4
%41 = load i32, ptr %15, align 4
%42 = icmp slt i32 0, %41
br i1 %42, label %43, label %59
43: ; preds = %38
%44 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 0
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = icmp eq i32 %46, 72
br i1 %47, label %48, label %59
48: ; preds = %43
%49 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 1
%50 = load i8, ptr %49, align 1
%51 = icmp ne i8 %50, 0
br i1 %51, label %59, label %52
52: ; preds = %48
%53 = load i32, ptr %13, align 4
%54 = load ptr, ptr %9, align 8
%55 = load i32, ptr %54, align 4
%56 = add nsw i32 %55, %53
store i32 %56, ptr %54, align 4
%57 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 0
%58 = call i32 @GetElementAndCount(ptr noundef %7, ptr noundef %57, ptr noundef %13)
store i32 %58, ptr %15, align 4
br label %59
59: ; preds = %52, %48, %43, %38
%60 = load i32, ptr %14, align 4
%61 = icmp sle i32 0, %60
br i1 %61, label %62, label %80
62: ; preds = %59
%63 = load i32, ptr %15, align 4
%64 = icmp sle i32 0, %63
br i1 %64, label %65, label %80
65: ; preds = %62
%66 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 0
%67 = getelementptr inbounds [4 x i8], ptr %11, i64 0, i64 0
%68 = call i32 @strcmp(ptr noundef %66, ptr noundef %67)
store i32 %68, ptr %16, align 4
%69 = icmp ne i32 %68, 0
br i1 %69, label %70, label %72
70: ; preds = %65
%71 = load i32, ptr %16, align 4
store i32 %71, ptr %5, align 4
br label %91
72: ; preds = %65
%73 = load i32, ptr %13, align 4
%74 = load i32, ptr %12, align 4
%75 = sub nsw i32 %73, %74
store i32 %75, ptr %16, align 4
%76 = icmp ne i32 %75, 0
br i1 %76, label %77, label %79
77: ; preds = %72
%78 = load i32, ptr %16, align 4
store i32 %78, ptr %5, align 4
br label %91
79: ; preds = %72
br label %81
80: ; preds = %62, %59
store i32 0, ptr %5, align 4
br label %91
81: ; preds = %79
br label %82
82: ; preds = %81
%83 = load i32, ptr %14, align 4
%84 = icmp slt i32 0, %83
br i1 %84, label %85, label %88
85: ; preds = %82
%86 = load i32, ptr %15, align 4
%87 = icmp slt i32 0, %86
br label %88
88: ; preds = %85, %82
%89 = phi i1 [ false, %82 ], [ %87, %85 ]
br i1 %89, label %17, label %90, !llvm.loop !6
90: ; preds = %88
store i32 0, ptr %5, align 4
br label %91
91: ; preds = %90, %80, %77, %70
%92 = load i32, ptr %5, align 4
ret i32 %92
}
declare i32 @GetElementAndCount(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp7nbtal2l.c'
source_filename = "/tmp/tmp7nbtal2l.c"
target datalayout = "e-m:e-p270: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/tmp7nbtal2l.c"
target datalayout = "e-m:e-p270: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/tmpgg50koz5.c'
source_filename = "/tmp/tmpgg50koz5.c"
target datalayout = "e-m:e-p270: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/tmpgg50koz5.c"
target datalayout = "e-m:e-p270: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/tmpr5kpqhiy.c'
source_filename = "/tmp/tmpr5kpqhiy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @suppr_spaces(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%6 = load ptr, ptr %2, align 8
%7 = call i64 @my_strlen(ptr noundef %6)
%8 = add nsw i64 %7, 1
%9 = call ptr @malloc(i64 noundef %8)
store ptr %9, ptr %5, align 8
br label %10
10: ; preds = %38, %1
%11 = load ptr, ptr %2, align 8
%12 = load i32, ptr %3, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %11, i64 %13
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %41
18: ; preds = %10
%19 = load ptr, ptr %2, align 8
%20 = load i32, ptr %3, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp ne i32 %24, 32
br i1 %25, label %26, label %38
26: ; preds = %18
%27 = load ptr, ptr %2, align 8
%28 = load i32, ptr %3, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
%31 = load i8, ptr %30, align 1
%32 = load ptr, ptr %5, align 8
%33 = load i32, ptr %4, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
store i8 %31, ptr %35, align 1
%36 = load i32, ptr %4, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %4, align 4
br label %38
38: ; preds = %26, %18
%39 = load i32, ptr %3, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %3, align 4
br label %10, !llvm.loop !6
41: ; preds = %10
%42 = load ptr, ptr %5, align 8
%43 = load i32, ptr %4, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, ptr %42, i64 %44
store i8 0, ptr %45, align 1
%46 = load ptr, ptr %5, align 8
ret ptr %46
}
declare ptr @malloc(i64 noundef) #1
declare i64 @my_strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr5kpqhiy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @suppr_spaces(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%6 = load ptr, ptr %2, align 8
%7 = call i64 @my_strlen(ptr noundef %6)
%8 = add nsw i64 %7, 1
%9 = call ptr @malloc(i64 noundef %8)
store ptr %9, ptr %5, align 8
%10 = load ptr, ptr %2, align 8
%11 = load i32, ptr %3, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, ptr %10, i64 %12
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 0
br i1 %16, label %.lr.ph, label %47
.lr.ph: ; preds = %1
br label %17
17: ; preds = %.lr.ph, %37
%18 = load ptr, ptr %2, align 8
%19 = load i32, ptr %3, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp ne i32 %23, 32
br i1 %24, label %25, label %37
25: ; preds = %17
%26 = load ptr, ptr %2, align 8
%27 = load i32, ptr %3, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
%30 = load i8, ptr %29, align 1
%31 = load ptr, ptr %5, align 8
%32 = load i32, ptr %4, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %31, i64 %33
store i8 %30, ptr %34, align 1
%35 = load i32, ptr %4, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %4, align 4
br label %37
37: ; preds = %25, %17
%38 = load i32, ptr %3, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %3, align 4
%40 = load ptr, ptr %2, align 8
%41 = load i32, ptr %3, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %40, i64 %42
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = icmp ne i32 %45, 0
br i1 %46, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %37
br label %47
47: ; preds = %._crit_edge, %1
%48 = load ptr, ptr %5, align 8
%49 = load i32, ptr %4, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i8, ptr %48, i64 %50
store i8 0, ptr %51, align 1
%52 = load ptr, ptr %5, align 8
ret ptr %52
}
declare ptr @malloc(i64 noundef) #1
declare i64 @my_strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpg08uf5ve.c'
source_filename = "/tmp/tmpg08uf5ve.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.filename = private unnamed_addr constant [8 x i8] c"ipc.txt\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@S_IRWXU = dso_local global i32 0, align 4
@S_IRWXG = dso_local global i32 0, align 4
@S_IRWXO = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [24 x i8] c"open %s failed[%d][%s]\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [21 x i8] c"write error[%d][%s]\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"fork error[%d][%s]\0A\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [27 x i8] c"child: read error[%d][%s]\0A\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"child:write error[%d][%s]\0A\00", align 1
@.str.5 = private unnamed_addr constant [33 x i8] c"child:write num = %08d success.\0A\00", align 1
@.str.6 = private unnamed_addr constant [27 x i8] c"parent:read error[%d][%s]\0A\00", align 1
@.str.7 = private unnamed_addr constant [28 x i8] c"parent:write error[%d][%s]\0A\00", align 1
@.str.8 = private unnamed_addr constant [34 x i8] c"parent:write num = %08d success.\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 [8 x i8], align 1
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %6, ptr align 1 @__const.main.filename, i64 8, i1 false)
store i32 0, ptr %7, align 4
store i32 -1, ptr %8, align 4
%13 = getelementptr inbounds [8 x i8], ptr %6, i64 0, i64 0
%14 = load i32, ptr @O_RDWR, align 4
%15 = load i32, ptr @O_CREAT, align 4
%16 = or i32 %14, %15
%17 = load i32, ptr @S_IRWXU, align 4
%18 = load i32, ptr @S_IRWXG, align 4
%19 = or i32 %17, %18
%20 = load i32, ptr @S_IRWXO, align 4
%21 = or i32 %19, %20
%22 = call i32 @open(ptr noundef %13, i32 noundef %16, i32 noundef %21)
store i32 %22, ptr %8, align 4
%23 = load i32, ptr %8, align 4
%24 = icmp eq i32 %23, -1
br i1 %24, label %25, label %31
25: ; preds = %2
%26 = getelementptr inbounds [8 x i8], ptr %6, i64 0, i64 0
%27 = load i32, ptr @errno, align 4
%28 = load i32, ptr @errno, align 4
%29 = call ptr @strerror(i32 noundef %28)
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %26, i32 noundef %27, ptr noundef %29)
store i32 -1, ptr %3, align 4
br label %140
31: ; preds = %2
%32 = load i32, ptr %8, align 4
%33 = call i32 @write(i32 noundef %32, ptr noundef %7, i32 noundef 4)
%34 = sext i32 %33 to i64
%35 = icmp ne i64 4, %34
br i1 %35, label %36, label %41
36: ; preds = %31
%37 = load i32, ptr @errno, align 4
%38 = load i32, ptr @errno, align 4
%39 = call ptr @strerror(i32 noundef %38)
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %37, ptr noundef %39)
store i32 -1, ptr %3, align 4
br label %140
41: ; preds = %31
%42 = call i32 (...) @TELL_WAIT()
%43 = call i64 (...) @fork()
store i64 %43, ptr %9, align 8
%44 = load i64, ptr %9, align 8
%45 = icmp slt i64 %44, 0
br i1 %45, label %46, label %51
46: ; preds = %41
%47 = load i32, ptr @errno, align 4
%48 = load i32, ptr @errno, align 4
%49 = call ptr @strerror(i32 noundef %48)
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %47, ptr noundef %49)
store i32 -1, ptr %3, align 4
br label %140
51: ; preds = %41
%52 = load i64, ptr %9, align 8
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %92
54: ; preds = %51
store i32 0, ptr %10, align 4
br label %55
55: ; preds = %86, %54
%56 = load i32, ptr %10, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %10, align 4
%58 = icmp slt i32 %56, 10
br i1 %58, label %59, label %91
59: ; preds = %55
%60 = call i32 (...) @WAIT_PARENT()
%61 = load i32, ptr %8, align 4
%62 = load i32, ptr @SEEK_SET, align 4
%63 = call i32 @lseek(i32 noundef %61, i32 noundef 0, i32 noundef %62)
%64 = load i32, ptr %8, align 4
%65 = call i64 @read(i32 noundef %64, ptr noundef %7, i32 noundef 4)
%66 = icmp sle i64 %65, 0
br i1 %66, label %67, label %72
67: ; preds = %59
%68 = load i32, ptr @errno, align 4
%69 = load i32, ptr @errno, align 4
%70 = call ptr @strerror(i32 noundef %69)
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %68, ptr noundef %70)
store i32 -1, ptr %3, align 4
br label %140
72: ; preds = %59
%73 = load i32, ptr %7, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %7, align 4
%75 = load i32, ptr %8, align 4
%76 = load i32, ptr @SEEK_SET, align 4
%77 = call i32 @lseek(i32 noundef %75, i32 noundef 0, i32 noundef %76)
%78 = load i32, ptr %8, align 4
%79 = call i32 @write(i32 noundef %78, ptr noundef %7, i32 noundef 4)
%80 = icmp sle i32 %79, 0
br i1 %80, label %81, label %86
81: ; preds = %72
%82 = load i32, ptr @errno, align 4
%83 = load i32, ptr @errno, align 4
%84 = call ptr @strerror(i32 noundef %83)
%85 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %82, ptr noundef %84)
store i32 -1, ptr %3, align 4
br label %140
86: ; preds = %72
%87 = load i32, ptr %7, align 4
%88 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %87)
%89 = call i32 (...) @getppid()
%90 = call i32 @TELL_PARENT(i32 noundef %89)
br label %55, !llvm.loop !6
91: ; preds = %55
br label %132
92: ; preds = %51
store i32 0, ptr %11, align 4
br label %93
93: ; preds = %123, %92
%94 = load i32, ptr %11, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %11, align 4
%96 = icmp slt i32 %94, 10
br i1 %96, label %97, label %129
97: ; preds = %93
%98 = load i32, ptr %8, align 4
%99 = load i32, ptr @SEEK_SET, align 4
%100 = call i32 @lseek(i32 noundef %98, i32 noundef 0, i32 noundef %99)
%101 = load i32, ptr %8, align 4
%102 = call i64 @read(i32 noundef %101, ptr noundef %7, i32 noundef 4)
%103 = icmp sle i64 %102, 0
br i1 %103, label %104, label %109
104: ; preds = %97
%105 = load i32, ptr @errno, align 4
%106 = load i32, ptr @errno, align 4
%107 = call ptr @strerror(i32 noundef %106)
%108 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %105, ptr noundef %107)
store i32 -1, ptr %3, align 4
br label %140
109: ; preds = %97
%110 = load i32, ptr %7, align 4
%111 = add nsw i32 %110, 1
store i32 %111, ptr %7, align 4
%112 = load i32, ptr %8, align 4
%113 = load i32, ptr @SEEK_SET, align 4
%114 = call i32 @lseek(i32 noundef %112, i32 noundef 0, i32 noundef %113)
%115 = load i32, ptr %8, align 4
%116 = call i32 @write(i32 noundef %115, ptr noundef %7, i32 noundef 4)
%117 = icmp sle i32 %116, 0
br i1 %117, label %118, label %123
118: ; preds = %109
%119 = load i32, ptr @errno, align 4
%120 = load i32, ptr @errno, align 4
%121 = call ptr @strerror(i32 noundef %120)
%122 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %119, ptr noundef %121)
store i32 -1, ptr %3, align 4
br label %140
123: ; preds = %109
%124 = load i32, ptr %7, align 4
%125 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %124)
%126 = load i64, ptr %9, align 8
%127 = call i32 @TELL_CHILD(i64 noundef %126)
%128 = call i32 (...) @WAIT_CHILD()
br label %93, !llvm.loop !8
129: ; preds = %93
%130 = load i64, ptr %9, align 8
%131 = call i32 @waitpid(i64 noundef %130, ptr noundef %12, i32 noundef 0)
br label %132
132: ; preds = %129, %91
br label %133
133: ; preds = %132
%134 = load i32, ptr %8, align 4
%135 = icmp ne i32 %134, -1
br i1 %135, label %136, label %139
136: ; preds = %133
%137 = load i32, ptr %8, align 4
%138 = call i32 @close(i32 noundef %137)
br label %139
139: ; preds = %136, %133
store i32 0, ptr %3, align 4
br label %140
140: ; preds = %139, %118, %104, %81, %67, %46, %36, %25
%141 = load i32, ptr %3, align 4
ret i32 %141
}
; 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 @open(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #2
declare ptr @strerror(i32 noundef) #2
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @TELL_WAIT(...) #2
declare i64 @fork(...) #2
declare i32 @WAIT_PARENT(...) #2
declare i32 @lseek(i32 noundef, i32 noundef, i32 noundef) #2
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @TELL_PARENT(i32 noundef) #2
declare i32 @getppid(...) #2
declare i32 @TELL_CHILD(i64 noundef) #2
declare i32 @WAIT_CHILD(...) #2
declare i32 @waitpid(i64 noundef, ptr noundef, i32 noundef) #2
declare i32 @close(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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg08uf5ve.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.filename = private unnamed_addr constant [8 x i8] c"ipc.txt\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@S_IRWXU = dso_local global i32 0, align 4
@S_IRWXG = dso_local global i32 0, align 4
@S_IRWXO = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [24 x i8] c"open %s failed[%d][%s]\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [21 x i8] c"write error[%d][%s]\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"fork error[%d][%s]\0A\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [27 x i8] c"child: read error[%d][%s]\0A\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"child:write error[%d][%s]\0A\00", align 1
@.str.5 = private unnamed_addr constant [33 x i8] c"child:write num = %08d success.\0A\00", align 1
@.str.6 = private unnamed_addr constant [27 x i8] c"parent:read error[%d][%s]\0A\00", align 1
@.str.7 = private unnamed_addr constant [28 x i8] c"parent:write error[%d][%s]\0A\00", align 1
@.str.8 = private unnamed_addr constant [34 x i8] c"parent:write num = %08d success.\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 [8 x i8], align 1
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %6, ptr align 1 @__const.main.filename, i64 8, i1 false)
store i32 0, ptr %7, align 4
store i32 -1, ptr %8, align 4
%13 = getelementptr inbounds [8 x i8], ptr %6, i64 0, i64 0
%14 = load i32, ptr @O_RDWR, align 4
%15 = load i32, ptr @O_CREAT, align 4
%16 = or i32 %14, %15
%17 = load i32, ptr @S_IRWXU, align 4
%18 = load i32, ptr @S_IRWXG, align 4
%19 = or i32 %17, %18
%20 = load i32, ptr @S_IRWXO, align 4
%21 = or i32 %19, %20
%22 = call i32 @open(ptr noundef %13, i32 noundef %16, i32 noundef %21)
store i32 %22, ptr %8, align 4
%23 = load i32, ptr %8, align 4
%24 = icmp eq i32 %23, -1
br i1 %24, label %25, label %31
25: ; preds = %2
%26 = getelementptr inbounds [8 x i8], ptr %6, i64 0, i64 0
%27 = load i32, ptr @errno, align 4
%28 = load i32, ptr @errno, align 4
%29 = call ptr @strerror(i32 noundef %28)
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %26, i32 noundef %27, ptr noundef %29)
store i32 -1, ptr %3, align 4
br label %144
31: ; preds = %2
%32 = load i32, ptr %8, align 4
%33 = call i32 @write(i32 noundef %32, ptr noundef %7, i32 noundef 4)
%34 = sext i32 %33 to i64
%35 = icmp ne i64 4, %34
br i1 %35, label %36, label %41
36: ; preds = %31
%37 = load i32, ptr @errno, align 4
%38 = load i32, ptr @errno, align 4
%39 = call ptr @strerror(i32 noundef %38)
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %37, ptr noundef %39)
store i32 -1, ptr %3, align 4
br label %144
41: ; preds = %31
%42 = call i32 (...) @TELL_WAIT()
%43 = call i64 (...) @fork()
store i64 %43, ptr %9, align 8
%44 = load i64, ptr %9, align 8
%45 = icmp slt i64 %44, 0
br i1 %45, label %46, label %51
46: ; preds = %41
%47 = load i32, ptr @errno, align 4
%48 = load i32, ptr @errno, align 4
%49 = call ptr @strerror(i32 noundef %48)
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %47, ptr noundef %49)
store i32 -1, ptr %3, align 4
br label %144
51: ; preds = %41
%52 = load i64, ptr %9, align 8
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %94
54: ; preds = %51
store i32 0, ptr %10, align 4
%55 = load i32, ptr %10, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %10, align 4
%57 = icmp slt i32 %55, 10
br i1 %57, label %.lr.ph2, label %93
.lr.ph2: ; preds = %54
br label %58
58: ; preds = %.lr.ph2, %85
%59 = call i32 (...) @WAIT_PARENT()
%60 = load i32, ptr %8, align 4
%61 = load i32, ptr @SEEK_SET, align 4
%62 = call i32 @lseek(i32 noundef %60, i32 noundef 0, i32 noundef %61)
%63 = load i32, ptr %8, align 4
%64 = call i64 @read(i32 noundef %63, ptr noundef %7, i32 noundef 4)
%65 = icmp sle i64 %64, 0
br i1 %65, label %66, label %71
66: ; preds = %58
%67 = load i32, ptr @errno, align 4
%68 = load i32, ptr @errno, align 4
%69 = call ptr @strerror(i32 noundef %68)
%70 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %67, ptr noundef %69)
store i32 -1, ptr %3, align 4
br label %144
71: ; preds = %58
%72 = load i32, ptr %7, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %7, align 4
%74 = load i32, ptr %8, align 4
%75 = load i32, ptr @SEEK_SET, align 4
%76 = call i32 @lseek(i32 noundef %74, i32 noundef 0, i32 noundef %75)
%77 = load i32, ptr %8, align 4
%78 = call i32 @write(i32 noundef %77, ptr noundef %7, i32 noundef 4)
%79 = icmp sle i32 %78, 0
br i1 %79, label %80, label %85
80: ; preds = %71
%81 = load i32, ptr @errno, align 4
%82 = load i32, ptr @errno, align 4
%83 = call ptr @strerror(i32 noundef %82)
%84 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %81, ptr noundef %83)
store i32 -1, ptr %3, align 4
br label %144
85: ; preds = %71
%86 = load i32, ptr %7, align 4
%87 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %86)
%88 = call i32 (...) @getppid()
%89 = call i32 @TELL_PARENT(i32 noundef %88)
%90 = load i32, ptr %10, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %10, align 4
%92 = icmp slt i32 %90, 10
br i1 %92, label %58, label %._crit_edge3, !llvm.loop !6
._crit_edge3: ; preds = %85
br label %93
93: ; preds = %._crit_edge3, %54
br label %136
94: ; preds = %51
store i32 0, ptr %11, align 4
%95 = load i32, ptr %11, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %11, align 4
%97 = icmp slt i32 %95, 10
br i1 %97, label %.lr.ph, label %133
.lr.ph: ; preds = %94
br label %98
98: ; preds = %.lr.ph, %124
%99 = load i32, ptr %8, align 4
%100 = load i32, ptr @SEEK_SET, align 4
%101 = call i32 @lseek(i32 noundef %99, i32 noundef 0, i32 noundef %100)
%102 = load i32, ptr %8, align 4
%103 = call i64 @read(i32 noundef %102, ptr noundef %7, i32 noundef 4)
%104 = icmp sle i64 %103, 0
br i1 %104, label %105, label %110
105: ; preds = %98
%106 = load i32, ptr @errno, align 4
%107 = load i32, ptr @errno, align 4
%108 = call ptr @strerror(i32 noundef %107)
%109 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %106, ptr noundef %108)
store i32 -1, ptr %3, align 4
br label %144
110: ; preds = %98
%111 = load i32, ptr %7, align 4
%112 = add nsw i32 %111, 1
store i32 %112, ptr %7, align 4
%113 = load i32, ptr %8, align 4
%114 = load i32, ptr @SEEK_SET, align 4
%115 = call i32 @lseek(i32 noundef %113, i32 noundef 0, i32 noundef %114)
%116 = load i32, ptr %8, align 4
%117 = call i32 @write(i32 noundef %116, ptr noundef %7, i32 noundef 4)
%118 = icmp sle i32 %117, 0
br i1 %118, label %119, label %124
119: ; preds = %110
%120 = load i32, ptr @errno, align 4
%121 = load i32, ptr @errno, align 4
%122 = call ptr @strerror(i32 noundef %121)
%123 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %120, ptr noundef %122)
store i32 -1, ptr %3, align 4
br label %144
124: ; preds = %110
%125 = load i32, ptr %7, align 4
%126 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %125)
%127 = load i64, ptr %9, align 8
%128 = call i32 @TELL_CHILD(i64 noundef %127)
%129 = call i32 (...) @WAIT_CHILD()
%130 = load i32, ptr %11, align 4
%131 = add nsw i32 %130, 1
store i32 %131, ptr %11, align 4
%132 = icmp slt i32 %130, 10
br i1 %132, label %98, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %124
br label %133
133: ; preds = %._crit_edge, %94
%134 = load i64, ptr %9, align 8
%135 = call i32 @waitpid(i64 noundef %134, ptr noundef %12, i32 noundef 0)
br label %136
136: ; preds = %133, %93
br label %137
137: ; preds = %136
%138 = load i32, ptr %8, align 4
%139 = icmp ne i32 %138, -1
br i1 %139, label %140, label %143
140: ; preds = %137
%141 = load i32, ptr %8, align 4
%142 = call i32 @close(i32 noundef %141)
br label %143
143: ; preds = %140, %137
store i32 0, ptr %3, align 4
br label %144
144: ; preds = %143, %119, %105, %80, %66, %46, %36, %25
%145 = load i32, ptr %3, align 4
ret i32 %145
}
; 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 @open(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #2
declare ptr @strerror(i32 noundef) #2
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @TELL_WAIT(...) #2
declare i64 @fork(...) #2
declare i32 @WAIT_PARENT(...) #2
declare i32 @lseek(i32 noundef, i32 noundef, i32 noundef) #2
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @TELL_PARENT(i32 noundef) #2
declare i32 @getppid(...) #2
declare i32 @TELL_CHILD(i64 noundef) #2
declare i32 @WAIT_CHILD(...) #2
declare i32 @waitpid(i64 noundef, ptr noundef, i32 noundef) #2
declare i32 @close(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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp3q534vbe.c'
source_filename = "/tmp/tmp3q534vbe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isUgly(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 0, ptr %2, align 4
br label %48
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %11
10: ; preds = %7
store i32 1, ptr %2, align 4
br label %48
11: ; preds = %7
br label %12
12: ; preds = %22, %11
%13 = load i32, ptr %3, align 4
%14 = srem i32 %13, 2
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %23
16: ; preds = %12
%17 = load i32, ptr %3, align 4
%18 = sdiv i32 %17, 2
store i32 %18, ptr %3, align 4
%19 = load i32, ptr %3, align 4
%20 = icmp eq i32 %19, 1
br i1 %20, label %21, label %22
21: ; preds = %16
store i32 1, ptr %2, align 4
br label %48
22: ; preds = %16
br label %12, !llvm.loop !6
23: ; preds = %12
br label %24
24: ; preds = %34, %23
%25 = load i32, ptr %3, align 4
%26 = srem i32 %25, 3
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %35
28: ; preds = %24
%29 = load i32, ptr %3, align 4
%30 = sdiv i32 %29, 3
store i32 %30, ptr %3, align 4
%31 = load i32, ptr %3, align 4
%32 = icmp eq i32 %31, 1
br i1 %32, label %33, label %34
33: ; preds = %28
store i32 1, ptr %2, align 4
br label %48
34: ; preds = %28
br label %24, !llvm.loop !8
35: ; preds = %24
br label %36
36: ; preds = %46, %35
%37 = load i32, ptr %3, align 4
%38 = srem i32 %37, 5
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %47
40: ; preds = %36
%41 = load i32, ptr %3, align 4
%42 = sdiv i32 %41, 5
store i32 %42, ptr %3, align 4
%43 = load i32, ptr %3, align 4
%44 = icmp eq i32 %43, 1
br i1 %44, label %45, label %46
45: ; preds = %40
store i32 1, ptr %2, align 4
br label %48
46: ; preds = %40
br label %36, !llvm.loop !9
47: ; preds = %36
store i32 0, ptr %2, align 4
br label %48
48: ; preds = %47, %45, %33, %21, %10, %6
%49 = load i32, ptr %2, align 4
ret i32 %49
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3q534vbe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isUgly(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 0, ptr %2, align 4
br label %54
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %11
10: ; preds = %7
store i32 1, ptr %2, align 4
br label %54
11: ; preds = %7
%12 = load i32, ptr %3, align 4
%13 = srem i32 %12, 2
%14 = icmp eq i32 %13, 0
br i1 %14, label %.lr.ph, label %25
.lr.ph: ; preds = %11
br label %19
15: ; preds = %19
%16 = load i32, ptr %3, align 4
%17 = srem i32 %16, 2
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %._crit_edge, !llvm.loop !6
19: ; preds = %.lr.ph, %15
%20 = load i32, ptr %3, align 4
%21 = sdiv i32 %20, 2
store i32 %21, ptr %3, align 4
%22 = load i32, ptr %3, align 4
%23 = icmp eq i32 %22, 1
br i1 %23, label %24, label %15
24: ; preds = %19
store i32 1, ptr %2, align 4
br label %54
._crit_edge: ; preds = %15
br label %25
25: ; preds = %._crit_edge, %11
%26 = load i32, ptr %3, align 4
%27 = srem i32 %26, 3
%28 = icmp eq i32 %27, 0
br i1 %28, label %.lr.ph2, label %39
.lr.ph2: ; preds = %25
br label %33
29: ; preds = %33
%30 = load i32, ptr %3, align 4
%31 = srem i32 %30, 3
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %._crit_edge3, !llvm.loop !8
33: ; preds = %.lr.ph2, %29
%34 = load i32, ptr %3, align 4
%35 = sdiv i32 %34, 3
store i32 %35, ptr %3, align 4
%36 = load i32, ptr %3, align 4
%37 = icmp eq i32 %36, 1
br i1 %37, label %38, label %29
38: ; preds = %33
store i32 1, ptr %2, align 4
br label %54
._crit_edge3: ; preds = %29
br label %39
39: ; preds = %._crit_edge3, %25
%40 = load i32, ptr %3, align 4
%41 = srem i32 %40, 5
%42 = icmp eq i32 %41, 0
br i1 %42, label %.lr.ph5, label %53
.lr.ph5: ; preds = %39
br label %47
43: ; preds = %47
%44 = load i32, ptr %3, align 4
%45 = srem i32 %44, 5
%46 = icmp eq i32 %45, 0
br i1 %46, label %47, label %._crit_edge6, !llvm.loop !9
47: ; preds = %.lr.ph5, %43
%48 = load i32, ptr %3, align 4
%49 = sdiv i32 %48, 5
store i32 %49, ptr %3, align 4
%50 = load i32, ptr %3, align 4
%51 = icmp eq i32 %50, 1
br i1 %51, label %52, label %43
52: ; preds = %47
store i32 1, ptr %2, align 4
br label %54
._crit_edge6: ; preds = %43
br label %53
53: ; preds = %._crit_edge6, %39
store i32 0, ptr %2, align 4
br label %54
54: ; preds = %53, %52, %38, %24, %10, %6
%55 = load i32, ptr %2, align 4
ret i32 %55
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpytorl36x.c'
source_filename = "/tmp/tmpytorl36x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%d%d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%5 = load i32, ptr %2, align 4
%6 = load i32, ptr %3, align 4
%7 = call i32 @F(i32 noundef %5, i32 noundef %6)
%8 = call i32 @printf(ptr noundef @.str.1, i32 noundef %7)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @F(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/tmpytorl36x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%d%d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%5 = load i32, ptr %2, align 4
%6 = load i32, ptr %3, align 4
%7 = call i32 @F(i32 noundef %5, i32 noundef %6)
%8 = call i32 @printf(ptr noundef @.str.1, i32 noundef %7)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @F(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/tmpcioe43fx.c'
source_filename = "/tmp/tmpcioe43fx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_0x5d() #0 {
%1 = call i32 @isgraph(i32 noundef 93) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 470, 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/tmpcioe43fx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_0x5d() #0 {
%1 = call i32 @isgraph(i32 noundef 93) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 470, 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/tmpnvc2fhz0.c'
source_filename = "/tmp/tmpnvc2fhz0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @date_time_parse(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 [3 x i8], align 1
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
store i32 0, ptr %9, align 4
%10 = load ptr, ptr %5, align 8
store i32 0, ptr %10, align 4
%11 = load ptr, ptr %6, align 8
%12 = call i32 @timlib_strlen(ptr noundef %11)
%13 = icmp ne i32 %12, 4
br i1 %13, label %14, label %15
14: ; preds = %3
br label %46
15: ; preds = %3
%16 = getelementptr inbounds [3 x i8], ptr %7, i64 0, i64 0
store ptr %16, ptr %8, align 8
%17 = load ptr, ptr %6, align 8
%18 = getelementptr inbounds i8, ptr %17, i32 1
store ptr %18, ptr %6, align 8
%19 = load i8, ptr %17, align 1
%20 = load ptr, ptr %8, align 8
%21 = getelementptr inbounds i8, ptr %20, i32 1
store ptr %21, ptr %8, align 8
store i8 %19, ptr %20, align 1
%22 = load ptr, ptr %6, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 1
store ptr %23, ptr %6, align 8
%24 = load i8, ptr %22, align 1
%25 = load ptr, ptr %8, align 8
%26 = getelementptr inbounds i8, ptr %25, i32 1
store ptr %26, ptr %8, align 8
store i8 %24, ptr %25, align 1
%27 = load ptr, ptr %8, align 8
store i8 0, ptr %27, align 1
%28 = getelementptr inbounds [3 x i8], ptr %7, i64 0, i64 0
%29 = call i32 @atoi(ptr noundef %28)
%30 = load ptr, ptr %4, align 8
store i32 %29, ptr %30, align 4
%31 = getelementptr inbounds [3 x i8], ptr %7, i64 0, i64 0
store ptr %31, ptr %8, align 8
%32 = load ptr, ptr %6, align 8
%33 = getelementptr inbounds i8, ptr %32, i32 1
store ptr %33, ptr %6, align 8
%34 = load i8, ptr %32, align 1
%35 = load ptr, ptr %8, align 8
%36 = getelementptr inbounds i8, ptr %35, i32 1
store ptr %36, ptr %8, align 8
store i8 %34, ptr %35, align 1
%37 = load ptr, ptr %6, align 8
%38 = getelementptr inbounds i8, ptr %37, i32 1
store ptr %38, ptr %6, align 8
%39 = load i8, ptr %37, align 1
%40 = load ptr, ptr %8, align 8
%41 = getelementptr inbounds i8, ptr %40, i32 1
store ptr %41, ptr %8, align 8
store i8 %39, ptr %40, align 1
%42 = load ptr, ptr %8, align 8
store i8 0, ptr %42, align 1
%43 = getelementptr inbounds [3 x i8], ptr %7, i64 0, i64 0
%44 = call i32 @atoi(ptr noundef %43)
%45 = load ptr, ptr %5, align 8
store i32 %44, ptr %45, align 4
br label %46
46: ; preds = %15, %14
ret void
}
declare i32 @timlib_strlen(ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnvc2fhz0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @date_time_parse(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 [3 x i8], align 1
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
store i32 0, ptr %9, align 4
%10 = load ptr, ptr %5, align 8
store i32 0, ptr %10, align 4
%11 = load ptr, ptr %6, align 8
%12 = call i32 @timlib_strlen(ptr noundef %11)
%13 = icmp ne i32 %12, 4
br i1 %13, label %14, label %15
14: ; preds = %3
br label %46
15: ; preds = %3
%16 = getelementptr inbounds [3 x i8], ptr %7, i64 0, i64 0
store ptr %16, ptr %8, align 8
%17 = load ptr, ptr %6, align 8
%18 = getelementptr inbounds i8, ptr %17, i32 1
store ptr %18, ptr %6, align 8
%19 = load i8, ptr %17, align 1
%20 = load ptr, ptr %8, align 8
%21 = getelementptr inbounds i8, ptr %20, i32 1
store ptr %21, ptr %8, align 8
store i8 %19, ptr %20, align 1
%22 = load ptr, ptr %6, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 1
store ptr %23, ptr %6, align 8
%24 = load i8, ptr %22, align 1
%25 = load ptr, ptr %8, align 8
%26 = getelementptr inbounds i8, ptr %25, i32 1
store ptr %26, ptr %8, align 8
store i8 %24, ptr %25, align 1
%27 = load ptr, ptr %8, align 8
store i8 0, ptr %27, align 1
%28 = getelementptr inbounds [3 x i8], ptr %7, i64 0, i64 0
%29 = call i32 @atoi(ptr noundef %28)
%30 = load ptr, ptr %4, align 8
store i32 %29, ptr %30, align 4
%31 = getelementptr inbounds [3 x i8], ptr %7, i64 0, i64 0
store ptr %31, ptr %8, align 8
%32 = load ptr, ptr %6, align 8
%33 = getelementptr inbounds i8, ptr %32, i32 1
store ptr %33, ptr %6, align 8
%34 = load i8, ptr %32, align 1
%35 = load ptr, ptr %8, align 8
%36 = getelementptr inbounds i8, ptr %35, i32 1
store ptr %36, ptr %8, align 8
store i8 %34, ptr %35, align 1
%37 = load ptr, ptr %6, align 8
%38 = getelementptr inbounds i8, ptr %37, i32 1
store ptr %38, ptr %6, align 8
%39 = load i8, ptr %37, align 1
%40 = load ptr, ptr %8, align 8
%41 = getelementptr inbounds i8, ptr %40, i32 1
store ptr %41, ptr %8, align 8
store i8 %39, ptr %40, align 1
%42 = load ptr, ptr %8, align 8
store i8 0, ptr %42, align 1
%43 = getelementptr inbounds [3 x i8], ptr %7, i64 0, i64 0
%44 = call i32 @atoi(ptr noundef %43)
%45 = load ptr, ptr %5, align 8
store i32 %44, ptr %45, align 4
br label %46
46: ; preds = %15, %14
ret void
}
declare i32 @timlib_strlen(ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpy0zo23fg.c'
source_filename = "/tmp/tmpy0zo23fg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ResetISR() #0 {
%1 = load volatile i32, ptr inttoptr (i64 3758157192 to ptr), align 4
%2 = and i32 %1, -15728641
%3 = or i32 %2, 3145728
%4 = or i32 %3, 12582912
store volatile i32 %4, ptr inttoptr (i64 3758157192 to ptr), align 4
%5 = call i32 (...) @__iar_program_start()
ret void
}
declare i32 @__iar_program_start(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy0zo23fg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ResetISR() #0 {
%1 = load volatile i32, ptr inttoptr (i64 3758157192 to ptr), align 4
%2 = and i32 %1, -15728641
%3 = or i32 %2, 3145728
%4 = or i32 %3, 12582912
store volatile i32 %4, ptr inttoptr (i64 3758157192 to ptr), align 4
%5 = call i32 (...) @__iar_program_start()
ret void
}
declare i32 @__iar_program_start(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprdrwu4ad.c'
source_filename = "/tmp/tmprdrwu4ad.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@MAP_ANONYMOUS = dso_local global i32 0, align 4
@MAP_FAILED = dso_local global ptr null, align 8
@MAP_NORESERVE = dso_local global i32 0, align 4
@MAP_PRIVATE = dso_local global i32 0, align 4
@PROT_READ = dso_local global i32 0, align 4
@PROT_WRITE = 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/tmprdrwu4ad.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@MAP_ANONYMOUS = dso_local global i32 0, align 4
@MAP_FAILED = dso_local global ptr null, align 8
@MAP_NORESERVE = dso_local global i32 0, align 4
@MAP_PRIVATE = dso_local global i32 0, align 4
@PROT_READ = dso_local global i32 0, align 4
@PROT_WRITE = 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/tmpv_gozjb5.c'
source_filename = "/tmp/tmpv_gozjb5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rohair(double noundef %0, double noundef %1, double noundef %2) #0 {
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
store double %2, ptr %6, align 8
%8 = load double, ptr %4, align 8
%9 = call double @llvm.fmuladd.f64(double 0xBF7A9FBE76C8B439, double %8, double 2.930000e+02)
%10 = fdiv double %9, 2.930000e+02
%11 = fptosi double %10 to i32
%12 = call double @pow(i32 noundef %11, double noundef 5.260000e+00)
%13 = fmul double 1.013000e+02, %12
store double %13, ptr %7, align 8
%14 = load double, ptr %7, align 8
%15 = fmul double %14, 1.000000e+03
%16 = load double, ptr %5, align 8
%17 = load double, ptr %6, align 8
%18 = fsub double %16, %17
%19 = fmul double 1.010000e+00, %18
%20 = fmul double %19, 2.870000e+02
%21 = fdiv double %15, %20
ret double %21
}
declare double @pow(i32 noundef, double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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 speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv_gozjb5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rohair(double noundef %0, double noundef %1, double noundef %2) #0 {
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
store double %2, ptr %6, align 8
%8 = load double, ptr %4, align 8
%9 = call double @llvm.fmuladd.f64(double 0xBF7A9FBE76C8B439, double %8, double 2.930000e+02)
%10 = fdiv double %9, 2.930000e+02
%11 = fptosi double %10 to i32
%12 = call double @pow(i32 noundef %11, double noundef 5.260000e+00)
%13 = fmul double 1.013000e+02, %12
store double %13, ptr %7, align 8
%14 = load double, ptr %7, align 8
%15 = fmul double %14, 1.000000e+03
%16 = load double, ptr %5, align 8
%17 = load double, ptr %6, align 8
%18 = fsub double %16, %17
%19 = fmul double 1.010000e+00, %18
%20 = fmul double %19, 2.870000e+02
%21 = fdiv double %15, %20
ret double %21
}
declare double @pow(i32 noundef, double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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 speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxy3i_qoe.c'
source_filename = "/tmp/tmpxy3i_qoe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = call i32 @scanf(ptr noundef @.str, ptr noundef %1)
%3 = load i32, ptr %1, align 4
%4 = call i32 @a(i32 noundef %3)
ret void
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @a(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/tmpxy3i_qoe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = call i32 @scanf(ptr noundef @.str, ptr noundef %1)
%3 = load i32, ptr %1, align 4
%4 = call i32 @a(i32 noundef %3)
ret void
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @a(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/tmppfr2pavx.c'
source_filename = "/tmp/tmppfr2pavx.c"
target datalayout = "e-m:e-p270: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.intPtrs = type { ptr, ptr }
@.str = private unnamed_addr constant [32 x i8] c"\0Apointersinstructures started\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"i1 = %i, *pointers.p1 = %i\0A\00", align 1
@.str.2 = private unnamed_addr constant [28 x i8] c"i2 = %i, *pointers.p2 = %i\0A\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"\0Apointersinstructures ended\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.intPtrs, align 8
%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)
store i32 100, ptr %3, align 4
%6 = getelementptr inbounds %struct.intPtrs, ptr %2, i32 0, i32 0
store ptr %3, ptr %6, align 8
%7 = getelementptr inbounds %struct.intPtrs, ptr %2, i32 0, i32 1
store ptr %4, ptr %7, align 8
%8 = getelementptr inbounds %struct.intPtrs, ptr %2, i32 0, i32 1
%9 = load ptr, ptr %8, align 8
store i32 -97, ptr %9, align 4
%10 = load i32, ptr %3, align 4
%11 = getelementptr inbounds %struct.intPtrs, ptr %2, i32 0, i32 0
%12 = load ptr, ptr %11, align 8
%13 = load i32, ptr %12, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %10, i32 noundef %13)
%15 = load i32, ptr %4, align 4
%16 = getelementptr inbounds %struct.intPtrs, ptr %2, i32 0, i32 1
%17 = load ptr, ptr %16, align 8
%18 = load i32, ptr %17, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %15, i32 noundef %18)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
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/tmppfr2pavx.c"
target datalayout = "e-m:e-p270: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.intPtrs = type { ptr, ptr }
@.str = private unnamed_addr constant [32 x i8] c"\0Apointersinstructures started\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"i1 = %i, *pointers.p1 = %i\0A\00", align 1
@.str.2 = private unnamed_addr constant [28 x i8] c"i2 = %i, *pointers.p2 = %i\0A\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"\0Apointersinstructures ended\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.intPtrs, align 8
%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)
store i32 100, ptr %3, align 4
%6 = getelementptr inbounds %struct.intPtrs, ptr %2, i32 0, i32 0
store ptr %3, ptr %6, align 8
%7 = getelementptr inbounds %struct.intPtrs, ptr %2, i32 0, i32 1
store ptr %4, ptr %7, align 8
%8 = getelementptr inbounds %struct.intPtrs, ptr %2, i32 0, i32 1
%9 = load ptr, ptr %8, align 8
store i32 -97, ptr %9, align 4
%10 = load i32, ptr %3, align 4
%11 = getelementptr inbounds %struct.intPtrs, ptr %2, i32 0, i32 0
%12 = load ptr, ptr %11, align 8
%13 = load i32, ptr %12, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %10, i32 noundef %13)
%15 = load i32, ptr %4, align 4
%16 = getelementptr inbounds %struct.intPtrs, ptr %2, i32 0, i32 1
%17 = load ptr, ptr %16, align 8
%18 = load i32, ptr %17, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %15, i32 noundef %18)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
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/tmp2yg5riyz.c'
source_filename = "/tmp/tmp2yg5riyz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = call i32 @rec1(i32 noundef %3)
ret i32 0
}
declare i32 @__VERIFIER_nondet_int(...) #1
declare i32 @rec1(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/tmp2yg5riyz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = call i32 @rec1(i32 noundef %3)
ret i32 0
}
declare i32 @__VERIFIER_nondet_int(...) #1
declare i32 @rec1(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/tmpjyum_x9v.c'
source_filename = "/tmp/tmpjyum_x9v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"true\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"false\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"1\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"0\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"yes\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"no\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"left\00", align 1
@.str.8 = private unnamed_addr constant [6 x i8] c"links\00", align 1
@.str.9 = private unnamed_addr constant [3 x i8] c"ja\00", align 1
@.str.10 = private unnamed_addr constant [5 x i8] c"nein\00", align 1
@.str.11 = private unnamed_addr constant [6 x i8] c"right\00", align 1
@.str.12 = private unnamed_addr constant [7 x i8] c"rechts\00", align 1
@.str.13 = private unnamed_addr constant [5 x i8] c"gaus\00", align 1
@.str.14 = private unnamed_addr constant [4 x i8] c"exp\00", align 1
@.str.15 = private unnamed_addr constant [12 x i8] c"exponential\00", align 1
@.str.16 = private unnamed_addr constant [8 x i8] c"complex\00", align 1
@.str.17 = private unnamed_addr constant [13 x i8] c"open_circuit\00", align 1
@.str.18 = private unnamed_addr constant [5 x i8] c"load\00", align 1
@.str.19 = private unnamed_addr constant [5 x i8] c"none\00", align 1
@.str.20 = private unnamed_addr constant [7 x i8] c"screen\00", align 1
@.str.21 = private unnamed_addr constant [5 x i8] c"disk\00", align 1
@.str.22 = private unnamed_addr constant [16 x i8] c"screen_and_disk\00", align 1
@.str.23 = private unnamed_addr constant [35 x i8] c"I don't understand the command %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @english_to_bin(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = call i32 @check_int(ptr noundef %5)
%7 = icmp eq i32 %6, 1
br i1 %7, label %8, label %12
8: ; preds = %1
%9 = load ptr, ptr %3, align 8
%10 = call i32 @sscanf(ptr noundef %9, ptr noundef @.str, ptr noundef %4)
%11 = load i32, ptr %4, align 4
store i32 %11, ptr %2, align 4
br label %146
12: ; preds = %1
%13 = load ptr, ptr %3, align 8
%14 = call i64 @strcmp(ptr noundef %13, ptr noundef @.str.1)
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %12
store i32 1, ptr %2, align 4
br label %146
17: ; preds = %12
%18 = load ptr, ptr %3, align 8
%19 = call i64 @strcmp(ptr noundef %18, ptr noundef @.str.2)
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %17
store i32 0, ptr %2, align 4
br label %146
22: ; preds = %17
%23 = load ptr, ptr %3, align 8
%24 = call i64 @strcmp(ptr noundef %23, ptr noundef @.str.3)
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %22
store i32 1, ptr %2, align 4
br label %146
27: ; preds = %22
%28 = load ptr, ptr %3, align 8
%29 = call i64 @strcmp(ptr noundef %28, ptr noundef @.str.4)
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %32
31: ; preds = %27
store i32 0, ptr %2, align 4
br label %146
32: ; preds = %27
%33 = load ptr, ptr %3, align 8
%34 = call i64 @strcmp(ptr noundef %33, ptr noundef @.str.5)
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %32
store i32 1, ptr %2, align 4
br label %146
37: ; preds = %32
%38 = load ptr, ptr %3, align 8
%39 = call i64 @strcmp(ptr noundef %38, ptr noundef @.str.6)
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %42
41: ; preds = %37
store i32 0, ptr %2, align 4
br label %146
42: ; preds = %37
%43 = load ptr, ptr %3, align 8
%44 = call i64 @strcmp(ptr noundef %43, ptr noundef @.str.7)
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %47
46: ; preds = %42
store i32 0, ptr %2, align 4
br label %146
47: ; preds = %42
%48 = load ptr, ptr %3, align 8
%49 = call i64 @strcmp(ptr noundef %48, ptr noundef @.str.8)
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %52
51: ; preds = %47
store i32 0, ptr %2, align 4
br label %146
52: ; preds = %47
%53 = load ptr, ptr %3, align 8
%54 = call i64 @strcmp(ptr noundef %53, ptr noundef @.str.9)
%55 = icmp eq i64 %54, 0
br i1 %55, label %56, label %57
56: ; preds = %52
store i32 1, ptr %2, align 4
br label %146
57: ; preds = %52
%58 = load ptr, ptr %3, align 8
%59 = call i64 @strcmp(ptr noundef %58, ptr noundef @.str.10)
%60 = icmp eq i64 %59, 0
br i1 %60, label %61, label %62
61: ; preds = %57
store i32 0, ptr %2, align 4
br label %146
62: ; preds = %57
%63 = load ptr, ptr %3, align 8
%64 = call i64 @strcmp(ptr noundef %63, ptr noundef @.str.11)
%65 = icmp eq i64 %64, 0
br i1 %65, label %66, label %67
66: ; preds = %62
store i32 1, ptr %2, align 4
br label %146
67: ; preds = %62
%68 = load ptr, ptr %3, align 8
%69 = call i64 @strcmp(ptr noundef %68, ptr noundef @.str.12)
%70 = icmp eq i64 %69, 0
br i1 %70, label %71, label %72
71: ; preds = %67
store i32 1, ptr %2, align 4
br label %146
72: ; preds = %67
%73 = load ptr, ptr %3, align 8
%74 = call i64 @strcmp(ptr noundef %73, ptr noundef @.str.13)
%75 = icmp eq i64 %74, 0
br i1 %75, label %76, label %77
76: ; preds = %72
store i32 0, ptr %2, align 4
br label %146
77: ; preds = %72
%78 = load ptr, ptr %3, align 8
%79 = call i64 @strcmp(ptr noundef %78, ptr noundef @.str.14)
%80 = icmp eq i64 %79, 0
br i1 %80, label %81, label %82
81: ; preds = %77
store i32 1, ptr %2, align 4
br label %146
82: ; preds = %77
%83 = load ptr, ptr %3, align 8
%84 = call i64 @strcmp(ptr noundef %83, ptr noundef @.str.15)
%85 = icmp eq i64 %84, 0
br i1 %85, label %86, label %87
86: ; preds = %82
store i32 0, ptr %2, align 4
br label %146
87: ; preds = %82
%88 = load ptr, ptr %3, align 8
%89 = call i64 @strcmp(ptr noundef %88, ptr noundef @.str.16)
%90 = icmp eq i64 %89, 0
br i1 %90, label %91, label %92
91: ; preds = %87
store i32 1, ptr %2, align 4
br label %146
92: ; preds = %87
%93 = load ptr, ptr %3, align 8
%94 = call i64 @strcmp(ptr noundef %93, ptr noundef @.str.17)
%95 = icmp eq i64 %94, 0
br i1 %95, label %96, label %97
96: ; preds = %92
store i32 0, ptr %2, align 4
br label %146
97: ; preds = %92
%98 = load ptr, ptr %3, align 8
%99 = call i64 @strcmp(ptr noundef %98, ptr noundef @.str.18)
%100 = icmp eq i64 %99, 0
br i1 %100, label %101, label %102
101: ; preds = %97
store i32 1, ptr %2, align 4
br label %146
102: ; preds = %97
%103 = load ptr, ptr %3, align 8
%104 = call i64 @strcmp(ptr noundef %103, ptr noundef @.str.19)
%105 = icmp eq i64 %104, 0
br i1 %105, label %106, label %107
106: ; preds = %102
store i32 0, ptr %2, align 4
br label %146
107: ; preds = %102
%108 = load ptr, ptr %3, align 8
%109 = call i64 @strcmp(ptr noundef %108, ptr noundef @.str.20)
%110 = icmp eq i64 %109, 0
br i1 %110, label %111, label %112
111: ; preds = %107
store i32 1, ptr %2, align 4
br label %146
112: ; preds = %107
%113 = load ptr, ptr %3, align 8
%114 = call i64 @strcmp(ptr noundef %113, ptr noundef @.str.21)
%115 = icmp eq i64 %114, 0
br i1 %115, label %116, label %117
116: ; preds = %112
store i32 2, ptr %2, align 4
br label %146
117: ; preds = %112
%118 = load ptr, ptr %3, align 8
%119 = call i64 @strcmp(ptr noundef %118, ptr noundef @.str.22)
%120 = icmp eq i64 %119, 0
br i1 %120, label %121, label %122
121: ; preds = %117
store i32 3, ptr %2, align 4
br label %146
122: ; preds = %117
br label %123
123: ; preds = %122
br label %124
124: ; preds = %123
br label %125
125: ; preds = %124
br label %126
126: ; preds = %125
br label %127
127: ; preds = %126
br label %128
128: ; preds = %127
br label %129
129: ; preds = %128
br label %130
130: ; preds = %129
br label %131
131: ; preds = %130
br label %132
132: ; preds = %131
br label %133
133: ; preds = %132
br label %134
134: ; preds = %133
br label %135
135: ; preds = %134
br label %136
136: ; preds = %135
br label %137
137: ; preds = %136
br label %138
138: ; preds = %137
br label %139
139: ; preds = %138
br label %140
140: ; preds = %139
br label %141
141: ; preds = %140
br label %142
142: ; preds = %141
br label %143
143: ; preds = %142
%144 = load ptr, ptr %3, align 8
%145 = call i32 @ewe(ptr noundef @.str.23, ptr noundef %144)
store i32 0, ptr %2, align 4
br label %146
146: ; preds = %143, %121, %116, %111, %106, %101, %96, %91, %86, %81, %76, %71, %66, %61, %56, %51, %46, %41, %36, %31, %26, %21, %16, %8
%147 = load i32, ptr %2, align 4
ret i32 %147
}
declare i32 @check_int(ptr noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @ewe(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/tmpjyum_x9v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"true\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"false\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"1\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"0\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"yes\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"no\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"left\00", align 1
@.str.8 = private unnamed_addr constant [6 x i8] c"links\00", align 1
@.str.9 = private unnamed_addr constant [3 x i8] c"ja\00", align 1
@.str.10 = private unnamed_addr constant [5 x i8] c"nein\00", align 1
@.str.11 = private unnamed_addr constant [6 x i8] c"right\00", align 1
@.str.12 = private unnamed_addr constant [7 x i8] c"rechts\00", align 1
@.str.13 = private unnamed_addr constant [5 x i8] c"gaus\00", align 1
@.str.14 = private unnamed_addr constant [4 x i8] c"exp\00", align 1
@.str.15 = private unnamed_addr constant [12 x i8] c"exponential\00", align 1
@.str.16 = private unnamed_addr constant [8 x i8] c"complex\00", align 1
@.str.17 = private unnamed_addr constant [13 x i8] c"open_circuit\00", align 1
@.str.18 = private unnamed_addr constant [5 x i8] c"load\00", align 1
@.str.19 = private unnamed_addr constant [5 x i8] c"none\00", align 1
@.str.20 = private unnamed_addr constant [7 x i8] c"screen\00", align 1
@.str.21 = private unnamed_addr constant [5 x i8] c"disk\00", align 1
@.str.22 = private unnamed_addr constant [16 x i8] c"screen_and_disk\00", align 1
@.str.23 = private unnamed_addr constant [35 x i8] c"I don't understand the command %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @english_to_bin(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = call i32 @check_int(ptr noundef %5)
%7 = icmp eq i32 %6, 1
br i1 %7, label %8, label %12
8: ; preds = %1
%9 = load ptr, ptr %3, align 8
%10 = call i32 @sscanf(ptr noundef %9, ptr noundef @.str, ptr noundef %4)
%11 = load i32, ptr %4, align 4
store i32 %11, ptr %2, align 4
br label %146
12: ; preds = %1
%13 = load ptr, ptr %3, align 8
%14 = call i64 @strcmp(ptr noundef %13, ptr noundef @.str.1)
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %12
store i32 1, ptr %2, align 4
br label %146
17: ; preds = %12
%18 = load ptr, ptr %3, align 8
%19 = call i64 @strcmp(ptr noundef %18, ptr noundef @.str.2)
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %17
store i32 0, ptr %2, align 4
br label %146
22: ; preds = %17
%23 = load ptr, ptr %3, align 8
%24 = call i64 @strcmp(ptr noundef %23, ptr noundef @.str.3)
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %22
store i32 1, ptr %2, align 4
br label %146
27: ; preds = %22
%28 = load ptr, ptr %3, align 8
%29 = call i64 @strcmp(ptr noundef %28, ptr noundef @.str.4)
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %32
31: ; preds = %27
store i32 0, ptr %2, align 4
br label %146
32: ; preds = %27
%33 = load ptr, ptr %3, align 8
%34 = call i64 @strcmp(ptr noundef %33, ptr noundef @.str.5)
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %32
store i32 1, ptr %2, align 4
br label %146
37: ; preds = %32
%38 = load ptr, ptr %3, align 8
%39 = call i64 @strcmp(ptr noundef %38, ptr noundef @.str.6)
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %42
41: ; preds = %37
store i32 0, ptr %2, align 4
br label %146
42: ; preds = %37
%43 = load ptr, ptr %3, align 8
%44 = call i64 @strcmp(ptr noundef %43, ptr noundef @.str.7)
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %47
46: ; preds = %42
store i32 0, ptr %2, align 4
br label %146
47: ; preds = %42
%48 = load ptr, ptr %3, align 8
%49 = call i64 @strcmp(ptr noundef %48, ptr noundef @.str.8)
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %52
51: ; preds = %47
store i32 0, ptr %2, align 4
br label %146
52: ; preds = %47
%53 = load ptr, ptr %3, align 8
%54 = call i64 @strcmp(ptr noundef %53, ptr noundef @.str.9)
%55 = icmp eq i64 %54, 0
br i1 %55, label %56, label %57
56: ; preds = %52
store i32 1, ptr %2, align 4
br label %146
57: ; preds = %52
%58 = load ptr, ptr %3, align 8
%59 = call i64 @strcmp(ptr noundef %58, ptr noundef @.str.10)
%60 = icmp eq i64 %59, 0
br i1 %60, label %61, label %62
61: ; preds = %57
store i32 0, ptr %2, align 4
br label %146
62: ; preds = %57
%63 = load ptr, ptr %3, align 8
%64 = call i64 @strcmp(ptr noundef %63, ptr noundef @.str.11)
%65 = icmp eq i64 %64, 0
br i1 %65, label %66, label %67
66: ; preds = %62
store i32 1, ptr %2, align 4
br label %146
67: ; preds = %62
%68 = load ptr, ptr %3, align 8
%69 = call i64 @strcmp(ptr noundef %68, ptr noundef @.str.12)
%70 = icmp eq i64 %69, 0
br i1 %70, label %71, label %72
71: ; preds = %67
store i32 1, ptr %2, align 4
br label %146
72: ; preds = %67
%73 = load ptr, ptr %3, align 8
%74 = call i64 @strcmp(ptr noundef %73, ptr noundef @.str.13)
%75 = icmp eq i64 %74, 0
br i1 %75, label %76, label %77
76: ; preds = %72
store i32 0, ptr %2, align 4
br label %146
77: ; preds = %72
%78 = load ptr, ptr %3, align 8
%79 = call i64 @strcmp(ptr noundef %78, ptr noundef @.str.14)
%80 = icmp eq i64 %79, 0
br i1 %80, label %81, label %82
81: ; preds = %77
store i32 1, ptr %2, align 4
br label %146
82: ; preds = %77
%83 = load ptr, ptr %3, align 8
%84 = call i64 @strcmp(ptr noundef %83, ptr noundef @.str.15)
%85 = icmp eq i64 %84, 0
br i1 %85, label %86, label %87
86: ; preds = %82
store i32 0, ptr %2, align 4
br label %146
87: ; preds = %82
%88 = load ptr, ptr %3, align 8
%89 = call i64 @strcmp(ptr noundef %88, ptr noundef @.str.16)
%90 = icmp eq i64 %89, 0
br i1 %90, label %91, label %92
91: ; preds = %87
store i32 1, ptr %2, align 4
br label %146
92: ; preds = %87
%93 = load ptr, ptr %3, align 8
%94 = call i64 @strcmp(ptr noundef %93, ptr noundef @.str.17)
%95 = icmp eq i64 %94, 0
br i1 %95, label %96, label %97
96: ; preds = %92
store i32 0, ptr %2, align 4
br label %146
97: ; preds = %92
%98 = load ptr, ptr %3, align 8
%99 = call i64 @strcmp(ptr noundef %98, ptr noundef @.str.18)
%100 = icmp eq i64 %99, 0
br i1 %100, label %101, label %102
101: ; preds = %97
store i32 1, ptr %2, align 4
br label %146
102: ; preds = %97
%103 = load ptr, ptr %3, align 8
%104 = call i64 @strcmp(ptr noundef %103, ptr noundef @.str.19)
%105 = icmp eq i64 %104, 0
br i1 %105, label %106, label %107
106: ; preds = %102
store i32 0, ptr %2, align 4
br label %146
107: ; preds = %102
%108 = load ptr, ptr %3, align 8
%109 = call i64 @strcmp(ptr noundef %108, ptr noundef @.str.20)
%110 = icmp eq i64 %109, 0
br i1 %110, label %111, label %112
111: ; preds = %107
store i32 1, ptr %2, align 4
br label %146
112: ; preds = %107
%113 = load ptr, ptr %3, align 8
%114 = call i64 @strcmp(ptr noundef %113, ptr noundef @.str.21)
%115 = icmp eq i64 %114, 0
br i1 %115, label %116, label %117
116: ; preds = %112
store i32 2, ptr %2, align 4
br label %146
117: ; preds = %112
%118 = load ptr, ptr %3, align 8
%119 = call i64 @strcmp(ptr noundef %118, ptr noundef @.str.22)
%120 = icmp eq i64 %119, 0
br i1 %120, label %121, label %122
121: ; preds = %117
store i32 3, ptr %2, align 4
br label %146
122: ; preds = %117
br label %123
123: ; preds = %122
br label %124
124: ; preds = %123
br label %125
125: ; preds = %124
br label %126
126: ; preds = %125
br label %127
127: ; preds = %126
br label %128
128: ; preds = %127
br label %129
129: ; preds = %128
br label %130
130: ; preds = %129
br label %131
131: ; preds = %130
br label %132
132: ; preds = %131
br label %133
133: ; preds = %132
br label %134
134: ; preds = %133
br label %135
135: ; preds = %134
br label %136
136: ; preds = %135
br label %137
137: ; preds = %136
br label %138
138: ; preds = %137
br label %139
139: ; preds = %138
br label %140
140: ; preds = %139
br label %141
141: ; preds = %140
br label %142
142: ; preds = %141
br label %143
143: ; preds = %142
%144 = load ptr, ptr %3, align 8
%145 = call i32 @ewe(ptr noundef @.str.23, ptr noundef %144)
store i32 0, ptr %2, align 4
br label %146
146: ; preds = %143, %121, %116, %111, %106, %101, %96, %91, %86, %81, %76, %71, %66, %61, %56, %51, %46, %41, %36, %31, %26, %21, %16, %8
%147 = load i32, ptr %2, align 4
ret i32 %147
}
declare i32 @check_int(ptr noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @ewe(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/tmp8x0xtjgs.c'
source_filename = "/tmp/tmp8x0xtjgs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @interpBC2_b(ptr noundef %0, i32 noundef %1, i32 noundef %2, float noundef %3, float noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca float, align 4
%19 = alloca [4 x float], align 16
%20 = alloca [4 x float], align 16
%21 = alloca [4 x float], align 16
%22 = alloca float, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store float %3, ptr %10, align 4
store float %4, ptr %11, align 4
store ptr %5, ptr %12, align 8
%23 = load float, ptr %10, align 4
%24 = call i64 @ceilf(float noundef %23)
%25 = trunc i64 %24 to i32
%26 = sub nsw i32 %25, 2
store i32 %26, ptr %16, align 4
%27 = load i32, ptr %16, align 4
%28 = icmp slt i32 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %6
store i32 0, ptr %16, align 4
br label %30
30: ; preds = %29, %6
%31 = load i32, ptr %16, align 4
%32 = add nsw i32 %31, 5
%33 = load i32, ptr %8, align 4
%34 = icmp sgt i32 %32, %33
br i1 %34, label %35, label %38
35: ; preds = %30
%36 = load i32, ptr %8, align 4
%37 = sub nsw i32 %36, 4
store i32 %37, ptr %16, align 4
br label %38
38: ; preds = %35, %30
%39 = load float, ptr %11, align 4
%40 = call i64 @ceilf(float noundef %39)
%41 = trunc i64 %40 to i32
%42 = sub nsw i32 %41, 2
store i32 %42, ptr %17, align 4
%43 = load i32, ptr %17, align 4
%44 = icmp slt i32 %43, 0
br i1 %44, label %45, label %46
45: ; preds = %38
store i32 0, ptr %17, align 4
br label %46
46: ; preds = %45, %38
%47 = load i32, ptr %17, align 4
%48 = add nsw i32 %47, 5
%49 = load i32, ptr %9, align 4
%50 = icmp sgt i32 %48, %49
br i1 %50, label %51, label %54
51: ; preds = %46
%52 = load i32, ptr %9, align 4
%53 = sub nsw i32 %52, 4
store i32 %53, ptr %17, align 4
br label %54
54: ; preds = %51, %46
%55 = load float, ptr %11, align 4
%56 = load i32, ptr %17, align 4
%57 = sitofp i32 %56 to float
%58 = fsub float %55, %57
store float %58, ptr %22, align 4
%59 = load float, ptr %22, align 4
%60 = fpext float %59 to double
%61 = fsub double %60, 5.000000e+00
%62 = fmul double -7.500000e-01, %61
%63 = load float, ptr %22, align 4
%64 = fpext float %63 to double
%65 = call double @llvm.fmuladd.f64(double %62, double %64, double -6.000000e+00)
%66 = load float, ptr %22, align 4
%67 = fpext float %66 to double
%68 = call double @llvm.fmuladd.f64(double %65, double %67, double 3.000000e+00)
%69 = fptrunc double %68 to float
%70 = getelementptr inbounds [4 x float], ptr %21, i64 0, i64 0
store float %69, ptr %70, align 16
%71 = load float, ptr %22, align 4
%72 = fpext float %71 to double
%73 = fsub double %72, 1.000000e+00
%74 = fptrunc double %73 to float
store float %74, ptr %22, align 4
%75 = load float, ptr %22, align 4
%76 = fpext float %75 to double
%77 = call double @llvm.fmuladd.f64(double 1.250000e+00, double %76, double -2.250000e+00)
%78 = load float, ptr %22, align 4
%79 = fpext float %78 to double
%80 = fmul double %77, %79
%81 = load float, ptr %22, align 4
%82 = fpext float %81 to double
%83 = call double @llvm.fmuladd.f64(double %80, double %82, double 1.000000e+00)
%84 = fptrunc double %83 to float
%85 = getelementptr inbounds [4 x float], ptr %21, i64 0, i64 1
store float %84, ptr %85, align 4
%86 = load float, ptr %22, align 4
%87 = fpext float %86 to double
%88 = fsub double 1.000000e+00, %87
%89 = fptrunc double %88 to float
store float %89, ptr %22, align 4
%90 = load float, ptr %22, align 4
%91 = fpext float %90 to double
%92 = call double @llvm.fmuladd.f64(double 1.250000e+00, double %91, double -2.250000e+00)
%93 = load float, ptr %22, align 4
%94 = fpext float %93 to double
%95 = fmul double %92, %94
%96 = load float, ptr %22, align 4
%97 = fpext float %96 to double
%98 = call double @llvm.fmuladd.f64(double %95, double %97, double 1.000000e+00)
%99 = fptrunc double %98 to float
%100 = getelementptr inbounds [4 x float], ptr %21, i64 0, i64 2
store float %99, ptr %100, align 8
%101 = load float, ptr %22, align 4
%102 = fpext float %101 to double
%103 = fadd double %102, 1.000000e+00
%104 = fptrunc double %103 to float
store float %104, ptr %22, align 4
%105 = load float, ptr %22, align 4
%106 = fpext float %105 to double
%107 = fsub double %106, 5.000000e+00
%108 = fmul double -7.500000e-01, %107
%109 = load float, ptr %22, align 4
%110 = fpext float %109 to double
%111 = call double @llvm.fmuladd.f64(double %108, double %110, double -6.000000e+00)
%112 = load float, ptr %22, align 4
%113 = fpext float %112 to double
%114 = call double @llvm.fmuladd.f64(double %111, double %113, double 3.000000e+00)
%115 = fptrunc double %114 to float
%116 = getelementptr inbounds [4 x float], ptr %21, i64 0, i64 3
store float %115, ptr %116, align 4
%117 = load float, ptr %10, align 4
%118 = load i32, ptr %16, align 4
%119 = sitofp i32 %118 to float
%120 = fsub float %117, %119
store float %120, ptr %22, align 4
%121 = load float, ptr %22, align 4
%122 = fpext float %121 to double
%123 = fsub double %122, 5.000000e+00
%124 = fmul double -7.500000e-01, %123
%125 = load float, ptr %22, align 4
%126 = fpext float %125 to double
%127 = call double @llvm.fmuladd.f64(double %124, double %126, double -6.000000e+00)
%128 = load float, ptr %22, align 4
%129 = fpext float %128 to double
%130 = call double @llvm.fmuladd.f64(double %127, double %129, double 3.000000e+00)
%131 = fptrunc double %130 to float
%132 = getelementptr inbounds [4 x float], ptr %20, i64 0, i64 0
store float %131, ptr %132, align 16
%133 = load float, ptr %22, align 4
%134 = fpext float %133 to double
%135 = fsub double %134, 1.000000e+00
%136 = fptrunc double %135 to float
store float %136, ptr %22, align 4
%137 = load float, ptr %22, align 4
%138 = fpext float %137 to double
%139 = call double @llvm.fmuladd.f64(double 1.250000e+00, double %138, double -2.250000e+00)
%140 = load float, ptr %22, align 4
%141 = fpext float %140 to double
%142 = fmul double %139, %141
%143 = load float, ptr %22, align 4
%144 = fpext float %143 to double
%145 = call double @llvm.fmuladd.f64(double %142, double %144, double 1.000000e+00)
%146 = fptrunc double %145 to float
%147 = getelementptr inbounds [4 x float], ptr %20, i64 0, i64 1
store float %146, ptr %147, align 4
%148 = load float, ptr %22, align 4
%149 = fpext float %148 to double
%150 = fsub double 1.000000e+00, %149
%151 = fptrunc double %150 to float
store float %151, ptr %22, align 4
%152 = load float, ptr %22, align 4
%153 = fpext float %152 to double
%154 = call double @llvm.fmuladd.f64(double 1.250000e+00, double %153, double -2.250000e+00)
%155 = load float, ptr %22, align 4
%156 = fpext float %155 to double
%157 = fmul double %154, %156
%158 = load float, ptr %22, align 4
%159 = fpext float %158 to double
%160 = call double @llvm.fmuladd.f64(double %157, double %159, double 1.000000e+00)
%161 = fptrunc double %160 to float
%162 = getelementptr inbounds [4 x float], ptr %20, i64 0, i64 2
store float %161, ptr %162, align 8
%163 = load float, ptr %22, align 4
%164 = fpext float %163 to double
%165 = fadd double %164, 1.000000e+00
%166 = fptrunc double %165 to float
store float %166, ptr %22, align 4
%167 = load float, ptr %22, align 4
%168 = fpext float %167 to double
%169 = fsub double %168, 5.000000e+00
%170 = fmul double -7.500000e-01, %169
%171 = load float, ptr %22, align 4
%172 = fpext float %171 to double
%173 = call double @llvm.fmuladd.f64(double %170, double %172, double -6.000000e+00)
%174 = load float, ptr %22, align 4
%175 = fpext float %174 to double
%176 = call double @llvm.fmuladd.f64(double %173, double %175, double 3.000000e+00)
%177 = fptrunc double %176 to float
%178 = getelementptr inbounds [4 x float], ptr %20, i64 0, i64 3
store float %177, ptr %178, align 4
%179 = load i32, ptr %17, align 4
%180 = load i32, ptr %8, align 4
%181 = mul nsw i32 %179, %180
%182 = load i32, ptr %16, align 4
%183 = add nsw i32 %181, %182
store i32 %183, ptr %14, align 4
store i32 0, ptr %13, align 4
br label %184
184: ; preds = %258, %54
%185 = load i32, ptr %13, align 4
%186 = icmp slt i32 %185, 4
br i1 %186, label %187, label %261
187: ; preds = %184
%188 = load i32, ptr %13, align 4
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds [4 x float], ptr %19, i64 0, i64 %189
store float 0.000000e+00, ptr %190, align 4
%191 = load i32, ptr %14, align 4
%192 = load i32, ptr %13, align 4
%193 = add nsw i32 %191, %192
store i32 %193, ptr %15, align 4
%194 = getelementptr inbounds [4 x float], ptr %21, i64 0, i64 0
%195 = load float, ptr %194, align 16
%196 = load ptr, ptr %7, align 8
%197 = load i32, ptr %15, align 4
%198 = sext i32 %197 to i64
%199 = getelementptr inbounds i8, ptr %196, i64 %198
%200 = load i8, ptr %199, align 1
%201 = zext i8 %200 to i32
%202 = sitofp i32 %201 to float
%203 = fmul float %195, %202
%204 = load i32, ptr %13, align 4
%205 = sext i32 %204 to i64
%206 = getelementptr inbounds [4 x float], ptr %19, i64 0, i64 %205
store float %203, ptr %206, align 4
%207 = load i32, ptr %8, align 4
%208 = load i32, ptr %15, align 4
%209 = add nsw i32 %208, %207
store i32 %209, ptr %15, align 4
%210 = getelementptr inbounds [4 x float], ptr %21, i64 0, i64 1
%211 = load float, ptr %210, align 4
%212 = load ptr, ptr %7, align 8
%213 = load i32, ptr %15, align 4
%214 = sext i32 %213 to i64
%215 = getelementptr inbounds i8, ptr %212, i64 %214
%216 = load i8, ptr %215, align 1
%217 = zext i8 %216 to i32
%218 = sitofp i32 %217 to float
%219 = load i32, ptr %13, align 4
%220 = sext i32 %219 to i64
%221 = getelementptr inbounds [4 x float], ptr %19, i64 0, i64 %220
%222 = load float, ptr %221, align 4
%223 = call float @llvm.fmuladd.f32(float %211, float %218, float %222)
store float %223, ptr %221, align 4
%224 = load i32, ptr %8, align 4
%225 = load i32, ptr %15, align 4
%226 = add nsw i32 %225, %224
store i32 %226, ptr %15, align 4
%227 = getelementptr inbounds [4 x float], ptr %21, i64 0, i64 2
%228 = load float, ptr %227, align 8
%229 = load ptr, ptr %7, align 8
%230 = load i32, ptr %15, align 4
%231 = sext i32 %230 to i64
%232 = getelementptr inbounds i8, ptr %229, i64 %231
%233 = load i8, ptr %232, align 1
%234 = zext i8 %233 to i32
%235 = sitofp i32 %234 to float
%236 = load i32, ptr %13, align 4
%237 = sext i32 %236 to i64
%238 = getelementptr inbounds [4 x float], ptr %19, i64 0, i64 %237
%239 = load float, ptr %238, align 4
%240 = call float @llvm.fmuladd.f32(float %228, float %235, float %239)
store float %240, ptr %238, align 4
%241 = load i32, ptr %8, align 4
%242 = load i32, ptr %15, align 4
%243 = add nsw i32 %242, %241
store i32 %243, ptr %15, align 4
%244 = getelementptr inbounds [4 x float], ptr %21, i64 0, i64 3
%245 = load float, ptr %244, align 4
%246 = load ptr, ptr %7, align 8
%247 = load i32, ptr %15, align 4
%248 = sext i32 %247 to i64
%249 = getelementptr inbounds i8, ptr %246, i64 %248
%250 = load i8, ptr %249, align 1
%251 = zext i8 %250 to i32
%252 = sitofp i32 %251 to float
%253 = load i32, ptr %13, align 4
%254 = sext i32 %253 to i64
%255 = getelementptr inbounds [4 x float], ptr %19, i64 0, i64 %254
%256 = load float, ptr %255, align 4
%257 = call float @llvm.fmuladd.f32(float %245, float %252, float %256)
store float %257, ptr %255, align 4
br label %258
258: ; preds = %187
%259 = load i32, ptr %13, align 4
%260 = add nsw i32 %259, 1
store i32 %260, ptr %13, align 4
br label %184, !llvm.loop !6
261: ; preds = %184
%262 = getelementptr inbounds [4 x float], ptr %20, i64 0, i64 0
%263 = load float, ptr %262, align 16
%264 = getelementptr inbounds [4 x float], ptr %19, i64 0, i64 0
%265 = load float, ptr %264, align 16
%266 = fmul float %263, %265
store float %266, ptr %18, align 4
%267 = getelementptr inbounds [4 x float], ptr %20, i64 0, i64 1
%268 = load float, ptr %267, align 4
%269 = getelementptr inbounds [4 x float], ptr %19, i64 0, i64 1
%270 = load float, ptr %269, align 4
%271 = load float, ptr %18, align 4
%272 = call float @llvm.fmuladd.f32(float %268, float %270, float %271)
store float %272, ptr %18, align 4
%273 = getelementptr inbounds [4 x float], ptr %20, i64 0, i64 2
%274 = load float, ptr %273, align 8
%275 = getelementptr inbounds [4 x float], ptr %19, i64 0, i64 2
%276 = load float, ptr %275, align 8
%277 = load float, ptr %18, align 4
%278 = call float @llvm.fmuladd.f32(float %274, float %276, float %277)
store float %278, ptr %18, align 4
%279 = getelementptr inbounds [4 x float], ptr %20, i64 0, i64 3
%280 = load float, ptr %279, align 4
%281 = getelementptr inbounds [4 x float], ptr %19, i64 0, i64 3
%282 = load float, ptr %281, align 4
%283 = load float, ptr %18, align 4
%284 = call float @llvm.fmuladd.f32(float %280, float %282, float %283)
store float %284, ptr %18, align 4
%285 = load float, ptr %18, align 4
%286 = fpext float %285 to double
%287 = fcmp olt double %286, 0.000000e+00
br i1 %287, label %288, label %289
288: ; preds = %261
store float 0.000000e+00, ptr %18, align 4
br label %289
289: ; preds = %288, %261
%290 = load float, ptr %18, align 4
%291 = fpext float %290 to double
%292 = fcmp ogt double %291, 2.560000e+02
br i1 %292, label %293, label %294
293: ; preds = %289
store float 2.550000e+02, ptr %18, align 4
br label %294
294: ; preds = %293, %289
%295 = load float, ptr %18, align 4
%296 = fptoui float %295 to i8
%297 = load ptr, ptr %12, align 8
store i8 %296, ptr %297, align 1
ret i32 0
}
declare i64 @ceilf(float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #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 speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8x0xtjgs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @interpBC2_b(ptr noundef %0, i32 noundef %1, i32 noundef %2, float noundef %3, float noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca float, align 4
%19 = alloca [4 x float], align 16
%20 = alloca [4 x float], align 16
%21 = alloca [4 x float], align 16
%22 = alloca float, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store float %3, ptr %10, align 4
store float %4, ptr %11, align 4
store ptr %5, ptr %12, align 8
%23 = load float, ptr %10, align 4
%24 = call i64 @ceilf(float noundef %23)
%25 = trunc i64 %24 to i32
%26 = sub nsw i32 %25, 2
store i32 %26, ptr %16, align 4
%27 = load i32, ptr %16, align 4
%28 = icmp slt i32 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %6
store i32 0, ptr %16, align 4
br label %30
30: ; preds = %29, %6
%31 = load i32, ptr %16, align 4
%32 = add nsw i32 %31, 5
%33 = load i32, ptr %8, align 4
%34 = icmp sgt i32 %32, %33
br i1 %34, label %35, label %38
35: ; preds = %30
%36 = load i32, ptr %8, align 4
%37 = sub nsw i32 %36, 4
store i32 %37, ptr %16, align 4
br label %38
38: ; preds = %35, %30
%39 = load float, ptr %11, align 4
%40 = call i64 @ceilf(float noundef %39)
%41 = trunc i64 %40 to i32
%42 = sub nsw i32 %41, 2
store i32 %42, ptr %17, align 4
%43 = load i32, ptr %17, align 4
%44 = icmp slt i32 %43, 0
br i1 %44, label %45, label %46
45: ; preds = %38
store i32 0, ptr %17, align 4
br label %46
46: ; preds = %45, %38
%47 = load i32, ptr %17, align 4
%48 = add nsw i32 %47, 5
%49 = load i32, ptr %9, align 4
%50 = icmp sgt i32 %48, %49
br i1 %50, label %51, label %54
51: ; preds = %46
%52 = load i32, ptr %9, align 4
%53 = sub nsw i32 %52, 4
store i32 %53, ptr %17, align 4
br label %54
54: ; preds = %51, %46
%55 = load float, ptr %11, align 4
%56 = load i32, ptr %17, align 4
%57 = sitofp i32 %56 to float
%58 = fsub float %55, %57
store float %58, ptr %22, align 4
%59 = load float, ptr %22, align 4
%60 = fpext float %59 to double
%61 = fsub double %60, 5.000000e+00
%62 = fmul double -7.500000e-01, %61
%63 = load float, ptr %22, align 4
%64 = fpext float %63 to double
%65 = call double @llvm.fmuladd.f64(double %62, double %64, double -6.000000e+00)
%66 = load float, ptr %22, align 4
%67 = fpext float %66 to double
%68 = call double @llvm.fmuladd.f64(double %65, double %67, double 3.000000e+00)
%69 = fptrunc double %68 to float
%70 = getelementptr inbounds [4 x float], ptr %21, i64 0, i64 0
store float %69, ptr %70, align 16
%71 = load float, ptr %22, align 4
%72 = fpext float %71 to double
%73 = fsub double %72, 1.000000e+00
%74 = fptrunc double %73 to float
store float %74, ptr %22, align 4
%75 = load float, ptr %22, align 4
%76 = fpext float %75 to double
%77 = call double @llvm.fmuladd.f64(double 1.250000e+00, double %76, double -2.250000e+00)
%78 = load float, ptr %22, align 4
%79 = fpext float %78 to double
%80 = fmul double %77, %79
%81 = load float, ptr %22, align 4
%82 = fpext float %81 to double
%83 = call double @llvm.fmuladd.f64(double %80, double %82, double 1.000000e+00)
%84 = fptrunc double %83 to float
%85 = getelementptr inbounds [4 x float], ptr %21, i64 0, i64 1
store float %84, ptr %85, align 4
%86 = load float, ptr %22, align 4
%87 = fpext float %86 to double
%88 = fsub double 1.000000e+00, %87
%89 = fptrunc double %88 to float
store float %89, ptr %22, align 4
%90 = load float, ptr %22, align 4
%91 = fpext float %90 to double
%92 = call double @llvm.fmuladd.f64(double 1.250000e+00, double %91, double -2.250000e+00)
%93 = load float, ptr %22, align 4
%94 = fpext float %93 to double
%95 = fmul double %92, %94
%96 = load float, ptr %22, align 4
%97 = fpext float %96 to double
%98 = call double @llvm.fmuladd.f64(double %95, double %97, double 1.000000e+00)
%99 = fptrunc double %98 to float
%100 = getelementptr inbounds [4 x float], ptr %21, i64 0, i64 2
store float %99, ptr %100, align 8
%101 = load float, ptr %22, align 4
%102 = fpext float %101 to double
%103 = fadd double %102, 1.000000e+00
%104 = fptrunc double %103 to float
store float %104, ptr %22, align 4
%105 = load float, ptr %22, align 4
%106 = fpext float %105 to double
%107 = fsub double %106, 5.000000e+00
%108 = fmul double -7.500000e-01, %107
%109 = load float, ptr %22, align 4
%110 = fpext float %109 to double
%111 = call double @llvm.fmuladd.f64(double %108, double %110, double -6.000000e+00)
%112 = load float, ptr %22, align 4
%113 = fpext float %112 to double
%114 = call double @llvm.fmuladd.f64(double %111, double %113, double 3.000000e+00)
%115 = fptrunc double %114 to float
%116 = getelementptr inbounds [4 x float], ptr %21, i64 0, i64 3
store float %115, ptr %116, align 4
%117 = load float, ptr %10, align 4
%118 = load i32, ptr %16, align 4
%119 = sitofp i32 %118 to float
%120 = fsub float %117, %119
store float %120, ptr %22, align 4
%121 = load float, ptr %22, align 4
%122 = fpext float %121 to double
%123 = fsub double %122, 5.000000e+00
%124 = fmul double -7.500000e-01, %123
%125 = load float, ptr %22, align 4
%126 = fpext float %125 to double
%127 = call double @llvm.fmuladd.f64(double %124, double %126, double -6.000000e+00)
%128 = load float, ptr %22, align 4
%129 = fpext float %128 to double
%130 = call double @llvm.fmuladd.f64(double %127, double %129, double 3.000000e+00)
%131 = fptrunc double %130 to float
%132 = getelementptr inbounds [4 x float], ptr %20, i64 0, i64 0
store float %131, ptr %132, align 16
%133 = load float, ptr %22, align 4
%134 = fpext float %133 to double
%135 = fsub double %134, 1.000000e+00
%136 = fptrunc double %135 to float
store float %136, ptr %22, align 4
%137 = load float, ptr %22, align 4
%138 = fpext float %137 to double
%139 = call double @llvm.fmuladd.f64(double 1.250000e+00, double %138, double -2.250000e+00)
%140 = load float, ptr %22, align 4
%141 = fpext float %140 to double
%142 = fmul double %139, %141
%143 = load float, ptr %22, align 4
%144 = fpext float %143 to double
%145 = call double @llvm.fmuladd.f64(double %142, double %144, double 1.000000e+00)
%146 = fptrunc double %145 to float
%147 = getelementptr inbounds [4 x float], ptr %20, i64 0, i64 1
store float %146, ptr %147, align 4
%148 = load float, ptr %22, align 4
%149 = fpext float %148 to double
%150 = fsub double 1.000000e+00, %149
%151 = fptrunc double %150 to float
store float %151, ptr %22, align 4
%152 = load float, ptr %22, align 4
%153 = fpext float %152 to double
%154 = call double @llvm.fmuladd.f64(double 1.250000e+00, double %153, double -2.250000e+00)
%155 = load float, ptr %22, align 4
%156 = fpext float %155 to double
%157 = fmul double %154, %156
%158 = load float, ptr %22, align 4
%159 = fpext float %158 to double
%160 = call double @llvm.fmuladd.f64(double %157, double %159, double 1.000000e+00)
%161 = fptrunc double %160 to float
%162 = getelementptr inbounds [4 x float], ptr %20, i64 0, i64 2
store float %161, ptr %162, align 8
%163 = load float, ptr %22, align 4
%164 = fpext float %163 to double
%165 = fadd double %164, 1.000000e+00
%166 = fptrunc double %165 to float
store float %166, ptr %22, align 4
%167 = load float, ptr %22, align 4
%168 = fpext float %167 to double
%169 = fsub double %168, 5.000000e+00
%170 = fmul double -7.500000e-01, %169
%171 = load float, ptr %22, align 4
%172 = fpext float %171 to double
%173 = call double @llvm.fmuladd.f64(double %170, double %172, double -6.000000e+00)
%174 = load float, ptr %22, align 4
%175 = fpext float %174 to double
%176 = call double @llvm.fmuladd.f64(double %173, double %175, double 3.000000e+00)
%177 = fptrunc double %176 to float
%178 = getelementptr inbounds [4 x float], ptr %20, i64 0, i64 3
store float %177, ptr %178, align 4
%179 = load i32, ptr %17, align 4
%180 = load i32, ptr %8, align 4
%181 = mul nsw i32 %179, %180
%182 = load i32, ptr %16, align 4
%183 = add nsw i32 %181, %182
store i32 %183, ptr %14, align 4
store i32 0, ptr %13, align 4
%184 = load i32, ptr %13, align 4
%185 = icmp slt i32 %184, 4
br i1 %185, label %.lr.ph, label %262
.lr.ph: ; preds = %54
br label %186
186: ; preds = %.lr.ph, %257
%187 = load i32, ptr %13, align 4
%188 = sext i32 %187 to i64
%189 = getelementptr inbounds [4 x float], ptr %19, i64 0, i64 %188
store float 0.000000e+00, ptr %189, align 4
%190 = load i32, ptr %14, align 4
%191 = load i32, ptr %13, align 4
%192 = add nsw i32 %190, %191
store i32 %192, ptr %15, align 4
%193 = getelementptr inbounds [4 x float], ptr %21, i64 0, i64 0
%194 = load float, ptr %193, align 16
%195 = load ptr, ptr %7, align 8
%196 = load i32, ptr %15, align 4
%197 = sext i32 %196 to i64
%198 = getelementptr inbounds i8, ptr %195, i64 %197
%199 = load i8, ptr %198, align 1
%200 = zext i8 %199 to i32
%201 = sitofp i32 %200 to float
%202 = fmul float %194, %201
%203 = load i32, ptr %13, align 4
%204 = sext i32 %203 to i64
%205 = getelementptr inbounds [4 x float], ptr %19, i64 0, i64 %204
store float %202, ptr %205, align 4
%206 = load i32, ptr %8, align 4
%207 = load i32, ptr %15, align 4
%208 = add nsw i32 %207, %206
store i32 %208, ptr %15, align 4
%209 = getelementptr inbounds [4 x float], ptr %21, i64 0, i64 1
%210 = load float, ptr %209, align 4
%211 = load ptr, ptr %7, align 8
%212 = load i32, ptr %15, align 4
%213 = sext i32 %212 to i64
%214 = getelementptr inbounds i8, ptr %211, i64 %213
%215 = load i8, ptr %214, align 1
%216 = zext i8 %215 to i32
%217 = sitofp i32 %216 to float
%218 = load i32, ptr %13, align 4
%219 = sext i32 %218 to i64
%220 = getelementptr inbounds [4 x float], ptr %19, i64 0, i64 %219
%221 = load float, ptr %220, align 4
%222 = call float @llvm.fmuladd.f32(float %210, float %217, float %221)
store float %222, ptr %220, align 4
%223 = load i32, ptr %8, align 4
%224 = load i32, ptr %15, align 4
%225 = add nsw i32 %224, %223
store i32 %225, ptr %15, align 4
%226 = getelementptr inbounds [4 x float], ptr %21, i64 0, i64 2
%227 = load float, ptr %226, align 8
%228 = load ptr, ptr %7, align 8
%229 = load i32, ptr %15, align 4
%230 = sext i32 %229 to i64
%231 = getelementptr inbounds i8, ptr %228, i64 %230
%232 = load i8, ptr %231, align 1
%233 = zext i8 %232 to i32
%234 = sitofp i32 %233 to float
%235 = load i32, ptr %13, align 4
%236 = sext i32 %235 to i64
%237 = getelementptr inbounds [4 x float], ptr %19, i64 0, i64 %236
%238 = load float, ptr %237, align 4
%239 = call float @llvm.fmuladd.f32(float %227, float %234, float %238)
store float %239, ptr %237, align 4
%240 = load i32, ptr %8, align 4
%241 = load i32, ptr %15, align 4
%242 = add nsw i32 %241, %240
store i32 %242, ptr %15, align 4
%243 = getelementptr inbounds [4 x float], ptr %21, i64 0, i64 3
%244 = load float, ptr %243, align 4
%245 = load ptr, ptr %7, align 8
%246 = load i32, ptr %15, align 4
%247 = sext i32 %246 to i64
%248 = getelementptr inbounds i8, ptr %245, i64 %247
%249 = load i8, ptr %248, align 1
%250 = zext i8 %249 to i32
%251 = sitofp i32 %250 to float
%252 = load i32, ptr %13, align 4
%253 = sext i32 %252 to i64
%254 = getelementptr inbounds [4 x float], ptr %19, i64 0, i64 %253
%255 = load float, ptr %254, align 4
%256 = call float @llvm.fmuladd.f32(float %244, float %251, float %255)
store float %256, ptr %254, align 4
br label %257
257: ; preds = %186
%258 = load i32, ptr %13, align 4
%259 = add nsw i32 %258, 1
store i32 %259, ptr %13, align 4
%260 = load i32, ptr %13, align 4
%261 = icmp slt i32 %260, 4
br i1 %261, label %186, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %257
br label %262
262: ; preds = %._crit_edge, %54
%263 = getelementptr inbounds [4 x float], ptr %20, i64 0, i64 0
%264 = load float, ptr %263, align 16
%265 = getelementptr inbounds [4 x float], ptr %19, i64 0, i64 0
%266 = load float, ptr %265, align 16
%267 = fmul float %264, %266
store float %267, ptr %18, align 4
%268 = getelementptr inbounds [4 x float], ptr %20, i64 0, i64 1
%269 = load float, ptr %268, align 4
%270 = getelementptr inbounds [4 x float], ptr %19, i64 0, i64 1
%271 = load float, ptr %270, align 4
%272 = load float, ptr %18, align 4
%273 = call float @llvm.fmuladd.f32(float %269, float %271, float %272)
store float %273, ptr %18, align 4
%274 = getelementptr inbounds [4 x float], ptr %20, i64 0, i64 2
%275 = load float, ptr %274, align 8
%276 = getelementptr inbounds [4 x float], ptr %19, i64 0, i64 2
%277 = load float, ptr %276, align 8
%278 = load float, ptr %18, align 4
%279 = call float @llvm.fmuladd.f32(float %275, float %277, float %278)
store float %279, ptr %18, align 4
%280 = getelementptr inbounds [4 x float], ptr %20, i64 0, i64 3
%281 = load float, ptr %280, align 4
%282 = getelementptr inbounds [4 x float], ptr %19, i64 0, i64 3
%283 = load float, ptr %282, align 4
%284 = load float, ptr %18, align 4
%285 = call float @llvm.fmuladd.f32(float %281, float %283, float %284)
store float %285, ptr %18, align 4
%286 = load float, ptr %18, align 4
%287 = fpext float %286 to double
%288 = fcmp olt double %287, 0.000000e+00
br i1 %288, label %289, label %290
289: ; preds = %262
store float 0.000000e+00, ptr %18, align 4
br label %290
290: ; preds = %289, %262
%291 = load float, ptr %18, align 4
%292 = fpext float %291 to double
%293 = fcmp ogt double %292, 2.560000e+02
br i1 %293, label %294, label %295
294: ; preds = %290
store float 2.550000e+02, ptr %18, align 4
br label %295
295: ; preds = %294, %290
%296 = load float, ptr %18, align 4
%297 = fptoui float %296 to i8
%298 = load ptr, ptr %12, align 8
store i8 %297, ptr %298, align 1
ret i32 0
}
declare i64 @ceilf(float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #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 speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp1ee6mrfw.c'
source_filename = "/tmp/tmp1ee6mrfw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"Celsius\09Fahrenheit\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"%6.2f\09%6.2f\0A\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
store float 0.000000e+00, ptr %1, align 4
store float 3.000000e+02, ptr %2, align 4
store float 2.000000e+01, ptr %3, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = load float, ptr %1, align 4
store float %7, ptr %4, align 4
br label %8
8: ; preds = %22, %0
%9 = load float, ptr %4, align 4
%10 = load float, ptr %2, align 4
%11 = fcmp ole float %9, %10
br i1 %11, label %12, label %26
12: ; preds = %8
%13 = load float, ptr %4, align 4
%14 = fmul float 9.000000e+00, %13
%15 = fdiv float %14, 5.000000e+00
%16 = fadd float %15, 3.200000e+01
store float %16, ptr %5, align 4
%17 = load float, ptr %4, align 4
%18 = fpext float %17 to double
%19 = load float, ptr %5, align 4
%20 = fpext float %19 to double
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %18, double noundef %20)
br label %22
22: ; preds = %12
%23 = load float, ptr %3, align 4
%24 = load float, ptr %4, align 4
%25 = fadd float %24, %23
store float %25, ptr %4, align 4
br label %8, !llvm.loop !6
26: ; preds = %8
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1ee6mrfw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"Celsius\09Fahrenheit\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"%6.2f\09%6.2f\0A\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
store float 0.000000e+00, ptr %1, align 4
store float 3.000000e+02, ptr %2, align 4
store float 2.000000e+01, ptr %3, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = load float, ptr %1, align 4
store float %7, ptr %4, align 4
%8 = load float, ptr %4, align 4
%9 = load float, ptr %2, align 4
%10 = fcmp ole float %8, %9
br i1 %10, label %.lr.ph, label %28
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %21
%12 = load float, ptr %4, align 4
%13 = fmul float 9.000000e+00, %12
%14 = fdiv float %13, 5.000000e+00
%15 = fadd float %14, 3.200000e+01
store float %15, ptr %5, align 4
%16 = load float, ptr %4, align 4
%17 = fpext float %16 to double
%18 = load float, ptr %5, align 4
%19 = fpext float %18 to double
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %17, double noundef %19)
br label %21
21: ; preds = %11
%22 = load float, ptr %3, align 4
%23 = load float, ptr %4, align 4
%24 = fadd float %23, %22
store float %24, ptr %4, align 4
%25 = load float, ptr %4, align 4
%26 = load float, ptr %2, align 4
%27 = fcmp ole float %25, %26
br i1 %27, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %28
28: ; preds = %._crit_edge, %0
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpk551u20w.c'
source_filename = "/tmp/tmpk551u20w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fk425(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store double 0.000000e+00, ptr %5, align 8
store double 0.000000e+00, ptr %6, align 8
%7 = load ptr, ptr %3, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 @fk425m(ptr noundef %7, ptr noundef %8, ptr noundef %5, ptr noundef %6)
ret void
}
declare i32 @fk425m(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk551u20w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fk425(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store double 0.000000e+00, ptr %5, align 8
store double 0.000000e+00, ptr %6, align 8
%7 = load ptr, ptr %3, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 @fk425m(ptr noundef %7, ptr noundef %8, ptr noundef %5, ptr noundef %6)
ret void
}
declare i32 @fk425m(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphocfxl8b.c'
source_filename = "/tmp/tmphocfxl8b.c"
target datalayout = "e-m:e-p270: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 }
@.str = private unnamed_addr constant [30 x i8] c"%02d/%02d/%02d %02d:%02d:%02d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @format_time(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 = call i32 @time(ptr noundef %3)
%6 = call ptr @localtime(ptr noundef %3)
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %2, align 8
%8 = load ptr, ptr %4, align 8
%9 = getelementptr inbounds %struct.tm, ptr %8, i32 0, i32 0
%10 = load i32, ptr %9, align 4
%11 = load ptr, ptr %4, align 8
%12 = getelementptr inbounds %struct.tm, ptr %11, i32 0, i32 1
%13 = load i32, ptr %12, align 4
%14 = add nsw i32 %13, 1
%15 = load ptr, ptr %4, align 8
%16 = getelementptr inbounds %struct.tm, ptr %15, i32 0, i32 2
%17 = load i32, ptr %16, align 4
%18 = add nsw i32 %17, 1900
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds %struct.tm, ptr %19, i32 0, i32 3
%21 = load i32, ptr %20, align 4
%22 = load ptr, ptr %4, align 8
%23 = getelementptr inbounds %struct.tm, ptr %22, i32 0, i32 4
%24 = load i32, ptr %23, align 4
%25 = load ptr, ptr %4, align 8
%26 = getelementptr inbounds %struct.tm, ptr %25, i32 0, i32 5
%27 = load i32, ptr %26, align 4
%28 = call i32 @sprintf(ptr noundef %7, ptr noundef @.str, i32 noundef %10, i32 noundef %14, i32 noundef %18, i32 noundef %21, i32 noundef %24, i32 noundef %27)
ret void
}
declare i32 @time(ptr noundef) #1
declare ptr @localtime(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphocfxl8b.c"
target datalayout = "e-m:e-p270: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 }
@.str = private unnamed_addr constant [30 x i8] c"%02d/%02d/%02d %02d:%02d:%02d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @format_time(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 = call i32 @time(ptr noundef %3)
%6 = call ptr @localtime(ptr noundef %3)
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %2, align 8
%8 = load ptr, ptr %4, align 8
%9 = getelementptr inbounds %struct.tm, ptr %8, i32 0, i32 0
%10 = load i32, ptr %9, align 4
%11 = load ptr, ptr %4, align 8
%12 = getelementptr inbounds %struct.tm, ptr %11, i32 0, i32 1
%13 = load i32, ptr %12, align 4
%14 = add nsw i32 %13, 1
%15 = load ptr, ptr %4, align 8
%16 = getelementptr inbounds %struct.tm, ptr %15, i32 0, i32 2
%17 = load i32, ptr %16, align 4
%18 = add nsw i32 %17, 1900
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds %struct.tm, ptr %19, i32 0, i32 3
%21 = load i32, ptr %20, align 4
%22 = load ptr, ptr %4, align 8
%23 = getelementptr inbounds %struct.tm, ptr %22, i32 0, i32 4
%24 = load i32, ptr %23, align 4
%25 = load ptr, ptr %4, align 8
%26 = getelementptr inbounds %struct.tm, ptr %25, i32 0, i32 5
%27 = load i32, ptr %26, align 4
%28 = call i32 @sprintf(ptr noundef %7, ptr noundef @.str, i32 noundef %10, i32 noundef %14, i32 noundef %18, i32 noundef %21, i32 noundef %24, i32 noundef %27)
ret void
}
declare i32 @time(ptr noundef) #1
declare ptr @localtime(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnkfidrr6.c'
source_filename = "/tmp/tmpnkfidrr6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @find_string(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%8 = load ptr, ptr %5, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %13, label %10
10: ; preds = %2
%11 = load ptr, ptr %4, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %14
13: ; preds = %10, %2
store ptr null, ptr %3, align 8
br label %71
14: ; preds = %10
store i32 0, ptr %6, align 4
br label %15
15: ; preds = %67, %14
%16 = load ptr, ptr %5, align 8
%17 = load i32, ptr %6, 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 ne i32 %21, 0
br i1 %22, label %23, label %70
23: ; preds = %15
store i32 0, ptr %7, align 4
br label %24
24: ; preds = %50, %23
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr %7, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %53
32: ; preds = %24
%33 = load ptr, ptr %5, align 8
%34 = load i32, ptr %6, align 4
%35 = load i32, ptr %7, align 4
%36 = add nsw i32 %34, %35
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %33, i64 %37
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = load ptr, ptr %4, align 8
%42 = load i32, ptr %7, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %41, i64 %43
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = icmp ne i32 %40, %46
br i1 %47, label %48, label %49
48: ; preds = %32
br label %53
49: ; preds = %32
br label %50
50: ; preds = %49
%51 = load i32, ptr %7, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %7, align 4
br label %24, !llvm.loop !6
53: ; preds = %48, %24
%54 = load ptr, ptr %4, align 8
%55 = load i32, ptr %7, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i8, ptr %54, i64 %56
%58 = load i8, ptr %57, align 1
%59 = sext i8 %58 to i32
%60 = icmp eq i32 %59, 0
br i1 %60, label %61, label %66
61: ; preds = %53
%62 = load ptr, ptr %5, align 8
%63 = load i32, ptr %6, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i8, ptr %62, i64 %64
store ptr %65, ptr %3, align 8
br label %71
66: ; preds = %53
br label %67
67: ; preds = %66
%68 = load i32, ptr %6, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %6, align 4
br label %15, !llvm.loop !8
70: ; preds = %15
store ptr null, ptr %3, align 8
br label %71
71: ; preds = %70, %61, %13
%72 = load ptr, ptr %3, align 8
ret ptr %72
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpnkfidrr6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @find_string(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%8 = load ptr, ptr %5, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %13, label %10
10: ; preds = %2
%11 = load ptr, ptr %4, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %14
13: ; preds = %10, %2
store ptr null, ptr %3, align 8
br label %83
14: ; preds = %10
store i32 0, ptr %6, align 4
%15 = load ptr, ptr %5, align 8
%16 = load i32, ptr %6, 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 ne i32 %20, 0
br i1 %21, label %.lr.ph1, label %82
.lr.ph1: ; preds = %14
br label %22
22: ; preds = %.lr.ph1, %72
store i32 0, ptr %7, align 4
%23 = load ptr, ptr %4, align 8
%24 = load i32, ptr %7, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %23, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp ne i32 %28, 0
br i1 %29, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %22
br label %30
30: ; preds = %.lr.ph, %48
%31 = load ptr, ptr %5, align 8
%32 = load i32, ptr %6, align 4
%33 = load i32, ptr %7, align 4
%34 = add nsw i32 %32, %33
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %31, i64 %35
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = load ptr, ptr %4, align 8
%40 = load i32, ptr %7, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8, ptr %39, i64 %41
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = icmp ne i32 %38, %44
br i1 %45, label %46, label %47
46: ; preds = %30
br label %58
47: ; preds = %30
br label %48
48: ; preds = %47
%49 = load i32, ptr %7, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %7, align 4
%51 = load ptr, ptr %4, align 8
%52 = load i32, ptr %7, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, ptr %51, i64 %53
%55 = load i8, ptr %54, align 1
%56 = sext i8 %55 to i32
%57 = icmp ne i32 %56, 0
br i1 %57, label %30, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %48
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %22
br label %58
58: ; preds = %.loopexit, %46
%59 = load ptr, ptr %4, align 8
%60 = load i32, ptr %7, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i8, ptr %59, i64 %61
%63 = load i8, ptr %62, align 1
%64 = sext i8 %63 to i32
%65 = icmp eq i32 %64, 0
br i1 %65, label %66, label %71
66: ; preds = %58
%67 = load ptr, ptr %5, align 8
%68 = load i32, ptr %6, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i8, ptr %67, i64 %69
store ptr %70, ptr %3, align 8
br label %83
71: ; preds = %58
br label %72
72: ; preds = %71
%73 = load i32, ptr %6, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %6, align 4
%75 = load ptr, ptr %5, align 8
%76 = load i32, ptr %6, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i8, ptr %75, i64 %77
%79 = load i8, ptr %78, align 1
%80 = sext i8 %79 to i32
%81 = icmp ne i32 %80, 0
br i1 %81, label %22, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %72
br label %82
82: ; preds = %._crit_edge, %14
store ptr null, ptr %3, align 8
br label %83
83: ; preds = %82, %66, %13
%84 = load ptr, ptr %3, align 8
ret ptr %84
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpwrc9yov3.c'
source_filename = "/tmp/tmpwrc9yov3.c"
target datalayout = "e-m:e-p270: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/tmpwrc9yov3.c"
target datalayout = "e-m:e-p270: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/tmpnnywex3l.c'
source_filename = "/tmp/tmpnnywex3l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = call i32 (...) @shoot()
ret i32 0
}
declare i32 @shoot(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnnywex3l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = call i32 (...) @shoot()
ret i32 0
}
declare i32 @shoot(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1s23nboo.c'
source_filename = "/tmp/tmp1s23nboo.c"
target datalayout = "e-m:e-p270: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 { i64 }
@AF_INET = dso_local global i64 0, align 8
@AF_INET6 = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sockaddr_addr_size(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 0, ptr %2, align 4
br label %23
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = getelementptr inbounds %struct.sockaddr, ptr %8, i32 0, i32 0
%10 = load i64, ptr %9, align 8
%11 = load i64, ptr @AF_INET, align 8
%12 = icmp eq i64 %10, %11
br i1 %12, label %13, label %14
13: ; preds = %7
store i32 4, ptr %2, align 4
br label %23
14: ; preds = %7
%15 = load ptr, ptr %3, align 8
%16 = getelementptr inbounds %struct.sockaddr, ptr %15, i32 0, i32 0
%17 = load i64, ptr %16, align 8
%18 = load i64, ptr @AF_INET6, align 8
%19 = icmp eq i64 %17, %18
br i1 %19, label %20, label %21
20: ; preds = %14
store i32 4, ptr %2, align 4
br label %23
21: ; preds = %14
br label %22
22: ; preds = %21
store i32 0, ptr %2, align 4
br label %23
23: ; preds = %22, %20, %13, %6
%24 = load i32, ptr %2, align 4
ret i32 %24
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1s23nboo.c"
target datalayout = "e-m:e-p270: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 { i64 }
@AF_INET = dso_local global i64 0, align 8
@AF_INET6 = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sockaddr_addr_size(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 0, ptr %2, align 4
br label %23
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = getelementptr inbounds %struct.sockaddr, ptr %8, i32 0, i32 0
%10 = load i64, ptr %9, align 8
%11 = load i64, ptr @AF_INET, align 8
%12 = icmp eq i64 %10, %11
br i1 %12, label %13, label %14
13: ; preds = %7
store i32 4, ptr %2, align 4
br label %23
14: ; preds = %7
%15 = load ptr, ptr %3, align 8
%16 = getelementptr inbounds %struct.sockaddr, ptr %15, i32 0, i32 0
%17 = load i64, ptr %16, align 8
%18 = load i64, ptr @AF_INET6, align 8
%19 = icmp eq i64 %17, %18
br i1 %19, label %20, label %21
20: ; preds = %14
store i32 4, ptr %2, align 4
br label %23
21: ; preds = %14
br label %22
22: ; preds = %21
store i32 0, ptr %2, align 4
br label %23
23: ; preds = %22, %20, %13, %6
%24 = load i32, ptr %2, align 4
ret i32 %24
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp90p4ny__.c'
source_filename = "/tmp/tmp90p4ny__.c"
target datalayout = "e-m:e-p270: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/tmp90p4ny__.c"
target datalayout = "e-m:e-p270: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/tmpfr42pm9r.c'
source_filename = "/tmp/tmpfr42pm9r.c"
target datalayout = "e-m:e-p270: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/tmpfr42pm9r.c"
target datalayout = "e-m:e-p270: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/tmps1kzcvb1.c'
source_filename = "/tmp/tmps1kzcvb1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_long_le(ptr noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
store ptr %6, ptr %5, align 8
%7 = load ptr, ptr %3, align 8
%8 = icmp eq ptr null, %7
br i1 %8, label %9, label %10
9: ; preds = %1
store i64 0, ptr %2, align 8
br label %38
10: ; preds = %1
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds i8, ptr %11, i32 1
store ptr %12, ptr %5, align 8
%13 = load i8, ptr %11, align 1
%14 = zext i8 %13 to i32
store i32 %14, ptr %4, align 4
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds i8, ptr %15, i32 1
store ptr %16, ptr %5, align 8
%17 = load i8, ptr %15, align 1
%18 = zext i8 %17 to i32
%19 = shl i32 %18, 8
%20 = load i32, ptr %4, align 4
%21 = add nsw i32 %20, %19
store i32 %21, ptr %4, align 4
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 1
store ptr %23, ptr %5, align 8
%24 = load i8, ptr %22, align 1
%25 = zext i8 %24 to i32
%26 = shl i32 %25, 16
%27 = load i32, ptr %4, align 4
%28 = add nsw i32 %27, %26
store i32 %28, ptr %4, align 4
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds i8, ptr %29, i32 1
store ptr %30, ptr %5, align 8
%31 = load i8, ptr %29, align 1
%32 = zext i8 %31 to i32
%33 = shl i32 %32, 24
%34 = load i32, ptr %4, align 4
%35 = add nsw i32 %34, %33
store i32 %35, ptr %4, align 4
%36 = load i32, ptr %4, align 4
%37 = sext i32 %36 to i64
store i64 %37, ptr %2, align 8
br label %38
38: ; preds = %10, %9
%39 = load i64, ptr %2, align 8
ret i64 %39
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps1kzcvb1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_long_le(ptr noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
store ptr %6, ptr %5, align 8
%7 = load ptr, ptr %3, align 8
%8 = icmp eq ptr null, %7
br i1 %8, label %9, label %10
9: ; preds = %1
store i64 0, ptr %2, align 8
br label %38
10: ; preds = %1
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds i8, ptr %11, i32 1
store ptr %12, ptr %5, align 8
%13 = load i8, ptr %11, align 1
%14 = zext i8 %13 to i32
store i32 %14, ptr %4, align 4
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds i8, ptr %15, i32 1
store ptr %16, ptr %5, align 8
%17 = load i8, ptr %15, align 1
%18 = zext i8 %17 to i32
%19 = shl i32 %18, 8
%20 = load i32, ptr %4, align 4
%21 = add nsw i32 %20, %19
store i32 %21, ptr %4, align 4
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 1
store ptr %23, ptr %5, align 8
%24 = load i8, ptr %22, align 1
%25 = zext i8 %24 to i32
%26 = shl i32 %25, 16
%27 = load i32, ptr %4, align 4
%28 = add nsw i32 %27, %26
store i32 %28, ptr %4, align 4
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds i8, ptr %29, i32 1
store ptr %30, ptr %5, align 8
%31 = load i8, ptr %29, align 1
%32 = zext i8 %31 to i32
%33 = shl i32 %32, 24
%34 = load i32, ptr %4, align 4
%35 = add nsw i32 %34, %33
store i32 %35, ptr %4, align 4
%36 = load i32, ptr %4, align 4
%37 = sext i32 %36 to i64
store i64 %37, ptr %2, align 8
br label %38
38: ; preds = %10, %9
%39 = load i64, ptr %2, align 8
ret i64 %39
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpr1ijn2q6.c'
source_filename = "/tmp/tmpr1ijn2q6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wl_dlfdel(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 @dldelete(ptr noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @wl_dldraw(ptr noundef %5)
ret void
}
declare i32 @dldelete(ptr noundef) #1
declare i32 @wl_dldraw(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr1ijn2q6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wl_dlfdel(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 @dldelete(ptr noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @wl_dldraw(ptr noundef %5)
ret void
}
declare i32 @dldelete(ptr noundef) #1
declare i32 @wl_dldraw(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpc7zswonr.c'
source_filename = "/tmp/tmpc7zswonr.c"
target datalayout = "e-m:e-p270: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/tmpc7zswonr.c"
target datalayout = "e-m:e-p270: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/tmp2a8mf252.c'
source_filename = "/tmp/tmp2a8mf252.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rgd_get_double_grid_address(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, 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
store i64 0, ptr %9, align 8
br label %10
10: ; preds = %30, %4
%11 = load i64, ptr %9, align 8
%12 = icmp slt i64 %11, 3
br i1 %12, label %13, label %33
13: ; preds = %10
%14 = load ptr, ptr %6, align 8
%15 = load i64, ptr %9, align 8
%16 = getelementptr inbounds i64, ptr %14, i64 %15
%17 = load i64, ptr %16, align 8
%18 = mul nsw i64 %17, 2
%19 = load ptr, ptr %8, align 8
%20 = load i64, ptr %9, align 8
%21 = getelementptr inbounds i64, ptr %19, i64 %20
%22 = load i64, ptr %21, align 8
%23 = icmp ne i64 %22, 0
%24 = zext i1 %23 to i32
%25 = sext i32 %24 to i64
%26 = add nsw i64 %18, %25
%27 = load ptr, ptr %5, align 8
%28 = load i64, ptr %9, align 8
%29 = getelementptr inbounds i64, ptr %27, i64 %28
store i64 %26, ptr %29, align 8
br label %30
30: ; preds = %13
%31 = load i64, ptr %9, align 8
%32 = add nsw i64 %31, 1
store i64 %32, ptr %9, align 8
br label %10, !llvm.loop !6
33: ; preds = %10
%34 = load ptr, ptr %5, align 8
%35 = load ptr, ptr %7, align 8
%36 = call i32 @reduce_double_grid_address(ptr noundef %34, ptr noundef %35)
ret void
}
declare i32 @reduce_double_grid_address(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/tmp2a8mf252.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rgd_get_double_grid_address(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, 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
store i64 0, ptr %9, align 8
%10 = load i64, ptr %9, align 8
%11 = icmp slt i64 %10, 3
br i1 %11, label %.lr.ph, label %34
.lr.ph: ; preds = %4
br label %12
12: ; preds = %.lr.ph, %29
%13 = load ptr, ptr %6, align 8
%14 = load i64, ptr %9, align 8
%15 = getelementptr inbounds i64, ptr %13, i64 %14
%16 = load i64, ptr %15, align 8
%17 = mul nsw i64 %16, 2
%18 = load ptr, ptr %8, align 8
%19 = load i64, ptr %9, align 8
%20 = getelementptr inbounds i64, ptr %18, i64 %19
%21 = load i64, ptr %20, align 8
%22 = icmp ne i64 %21, 0
%23 = zext i1 %22 to i32
%24 = sext i32 %23 to i64
%25 = add nsw i64 %17, %24
%26 = load ptr, ptr %5, align 8
%27 = load i64, ptr %9, align 8
%28 = getelementptr inbounds i64, ptr %26, i64 %27
store i64 %25, ptr %28, align 8
br label %29
29: ; preds = %12
%30 = load i64, ptr %9, align 8
%31 = add nsw i64 %30, 1
store i64 %31, ptr %9, align 8
%32 = load i64, ptr %9, align 8
%33 = icmp slt i64 %32, 3
br i1 %33, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %34
34: ; preds = %._crit_edge, %4
%35 = load ptr, ptr %5, align 8
%36 = load ptr, ptr %7, align 8
%37 = call i32 @reduce_double_grid_address(ptr noundef %35, ptr noundef %36)
ret void
}
declare i32 @reduce_double_grid_address(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/tmpoy3vkbqj.c'
source_filename = "/tmp/tmpoy3vkbqj.c"
target datalayout = "e-m:e-p270: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/tmpoy3vkbqj.c"
target datalayout = "e-m:e-p270: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/tmppwvvlfm7.c'
source_filename = "/tmp/tmppwvvlfm7.c"
target datalayout = "e-m:e-p270: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/tmppwvvlfm7.c"
target datalayout = "e-m:e-p270: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/tmpxfcw_il7.c'
source_filename = "/tmp/tmpxfcw_il7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [11 x i8] c"free_float\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @free_float(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1)
%4 = load ptr, ptr %2, align 8
%5 = call i32 @free(ptr noundef %4)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxfcw_il7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [11 x i8] c"free_float\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @free_float(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1)
%4 = load ptr, ptr %2, align 8
%5 = call i32 @free(ptr noundef %4)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqmogp3i3.c'
source_filename = "/tmp/tmpqmogp3i3.c"
target datalayout = "e-m:e-p270: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/tmpqmogp3i3.c"
target datalayout = "e-m:e-p270: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/tmpra0imc5l.c'
source_filename = "/tmp/tmpra0imc5l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c"Relative humidity is outside range [0,1]\00", align 1
@.str.1 = private unnamed_addr constant [153 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/psychrometrics/psychrolib/refs/heads/master/src/c/psychrolib.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @GetHumRatioFromRelHum(double noundef %0, double noundef %1, double noundef %2) #0 {
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
store double %2, ptr %6, align 8
%8 = load double, ptr %5, align 8
%9 = fcmp oge double %8, 0.000000e+00
br i1 %9, label %10, label %13
10: ; preds = %3
%11 = load double, ptr %5, align 8
%12 = fcmp ole double %11, 1.000000e+00
br i1 %12, label %15, label %13
13: ; preds = %10, %3
%14 = call i32 @Assert(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 524)
br label %15
15: ; preds = %13, %10
%16 = load double, ptr %4, align 8
%17 = load double, ptr %5, align 8
%18 = call double @GetVapPresFromRelHum(double noundef %16, double noundef %17)
store double %18, ptr %7, align 8
%19 = load double, ptr %7, align 8
%20 = load double, ptr %6, align 8
%21 = call double @GetHumRatioFromVapPres(double noundef %19, double noundef %20)
ret double %21
}
declare i32 @Assert(ptr noundef, ptr noundef, i32 noundef) #1
declare double @GetVapPresFromRelHum(double noundef, double noundef) #1
declare double @GetHumRatioFromVapPres(double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpra0imc5l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c"Relative humidity is outside range [0,1]\00", align 1
@.str.1 = private unnamed_addr constant [153 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/psychrometrics/psychrolib/refs/heads/master/src/c/psychrolib.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @GetHumRatioFromRelHum(double noundef %0, double noundef %1, double noundef %2) #0 {
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
store double %2, ptr %6, align 8
%8 = load double, ptr %5, align 8
%9 = fcmp oge double %8, 0.000000e+00
br i1 %9, label %10, label %13
10: ; preds = %3
%11 = load double, ptr %5, align 8
%12 = fcmp ole double %11, 1.000000e+00
br i1 %12, label %15, label %13
13: ; preds = %10, %3
%14 = call i32 @Assert(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 524)
br label %15
15: ; preds = %13, %10
%16 = load double, ptr %4, align 8
%17 = load double, ptr %5, align 8
%18 = call double @GetVapPresFromRelHum(double noundef %16, double noundef %17)
store double %18, ptr %7, align 8
%19 = load double, ptr %7, align 8
%20 = load double, ptr %6, align 8
%21 = call double @GetHumRatioFromVapPres(double noundef %19, double noundef %20)
ret double %21
}
declare i32 @Assert(ptr noundef, ptr noundef, i32 noundef) #1
declare double @GetVapPresFromRelHum(double noundef, double noundef) #1
declare double @GetHumRatioFromVapPres(double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_3tj_2af.c'
source_filename = "/tmp/tmp_3tj_2af.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0ALine: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ask() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %1)
%4 = load i32, ptr %1, align 4
ret i32 %4
}
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_3tj_2af.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0ALine: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ask() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %1)
%4 = load i32, ptr %1, align 4
ret i32 %4
}
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/tmpq_6783tk.c'
source_filename = "/tmp/tmpq_6783tk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hashtable_value_free(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 @hashtable_err_value_free(ptr noundef %3)
ret void
}
declare i32 @hashtable_err_value_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/tmpq_6783tk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hashtable_value_free(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 @hashtable_err_value_free(ptr noundef %3)
ret void
}
declare i32 @hashtable_err_value_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/tmpx0_wu039.c'
source_filename = "/tmp/tmpx0_wu039.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dobldobl_diagonal_cascade_solutions(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
%7 = load ptr, ptr %6, align 8
%8 = call i32 @_ada_use_c2phc4c(i32 noundef 297, ptr noundef %3, ptr noundef %4, ptr noundef %7, i32 noundef 0)
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %5, align 4
ret i32 %9
}
declare i32 @_ada_use_c2phc4c(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/tmpx0_wu039.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dobldobl_diagonal_cascade_solutions(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
%7 = load ptr, ptr %6, align 8
%8 = call i32 @_ada_use_c2phc4c(i32 noundef 297, ptr noundef %3, ptr noundef %4, ptr noundef %7, i32 noundef 0)
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %5, align 4
ret i32 %9
}
declare i32 @_ada_use_c2phc4c(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/tmpmw_pihmd.c'
source_filename = "/tmp/tmpmw_pihmd.c"
target datalayout = "e-m:e-p270: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/tmpmw_pihmd.c"
target datalayout = "e-m:e-p270: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/tmpaxplcw0o.c'
source_filename = "/tmp/tmpaxplcw0o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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\0A%s\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @makePalindrome(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr %7, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, ptr %9, i64 %11
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %7, align 4
%15 = sub nsw i32 %13, %14
%16 = call i32 @isPalindrome(ptr noundef %12, i32 noundef %15)
%17 = icmp ne i32 %16, 0
br i1 %17, label %19, label %18
18: ; preds = %3
store i32 0, ptr %4, align 4
br label %40
19: ; preds = %3
%20 = load i32, ptr %7, align 4
%21 = trunc i32 %20 to i8
%22 = load ptr, ptr %5, align 8
%23 = call i32 (ptr, i8, ...) @printf(ptr noundef @.str, i8 noundef signext %21, ptr noundef %22)
%24 = load i32, ptr %7, align 4
%25 = sub nsw i32 %24, 1
store i32 %25, ptr %8, align 4
br label %26
26: ; preds = %36, %19
%27 = load i32, ptr %8, align 4
%28 = icmp sge i32 %27, 0
br i1 %28, label %29, label %39
29: ; preds = %26
%30 = load ptr, ptr %5, align 8
%31 = load i32, ptr %8, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %30, i64 %32
%34 = load i8, ptr %33, align 1
%35 = call i32 (ptr, i8, ...) @printf(ptr noundef @.str.1, i8 noundef signext %34)
br label %36
36: ; preds = %29
%37 = load i32, ptr %8, align 4
%38 = add nsw i32 %37, -1
store i32 %38, ptr %8, align 4
br label %26, !llvm.loop !6
39: ; preds = %26
store i32 1, ptr %4, align 4
br label %40
40: ; preds = %39, %18
%41 = load i32, ptr %4, align 4
ret i32 %41
}
declare i32 @isPalindrome(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i8 noundef signext, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaxplcw0o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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\0A%s\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @makePalindrome(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr %7, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, ptr %9, i64 %11
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %7, align 4
%15 = sub nsw i32 %13, %14
%16 = call i32 @isPalindrome(ptr noundef %12, i32 noundef %15)
%17 = icmp ne i32 %16, 0
br i1 %17, label %19, label %18
18: ; preds = %3
store i32 0, ptr %4, align 4
br label %41
19: ; preds = %3
%20 = load i32, ptr %7, align 4
%21 = trunc i32 %20 to i8
%22 = load ptr, ptr %5, align 8
%23 = call i32 (ptr, i8, ...) @printf(ptr noundef @.str, i8 noundef signext %21, ptr noundef %22)
%24 = load i32, ptr %7, align 4
%25 = sub nsw i32 %24, 1
store i32 %25, ptr %8, align 4
%26 = load i32, ptr %8, align 4
%27 = icmp sge i32 %26, 0
br i1 %27, label %.lr.ph, label %40
.lr.ph: ; preds = %19
br label %28
28: ; preds = %.lr.ph, %35
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %8, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = load i8, ptr %32, align 1
%34 = call i32 (ptr, i8, ...) @printf(ptr noundef @.str.1, i8 noundef signext %33)
br label %35
35: ; preds = %28
%36 = load i32, ptr %8, align 4
%37 = add nsw i32 %36, -1
store i32 %37, ptr %8, align 4
%38 = load i32, ptr %8, align 4
%39 = icmp sge i32 %38, 0
br i1 %39, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %35
br label %40
40: ; preds = %._crit_edge, %19
store i32 1, ptr %4, align 4
br label %41
41: ; preds = %40, %18
%42 = load i32, ptr %4, align 4
ret i32 %42
}
declare i32 @isPalindrome(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i8 noundef signext, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp9syb5j_h.c'
source_filename = "/tmp/tmp9syb5j_h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"reallocarray failed ptr %p nmemb %zu size %zu\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @checkedReallocarray(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = load i64, ptr %5, align 8
%10 = load i64, ptr %6, align 8
%11 = call ptr @reallocarray(ptr noundef %8, i64 noundef %9, i64 noundef %10)
store ptr %11, ptr %7, align 8
%12 = load ptr, ptr %7, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %20
14: ; preds = %3
%15 = load ptr, ptr %4, align 8
%16 = load i64, ptr %5, align 8
%17 = load i64, ptr %6, align 8
%18 = call i32 @printf(ptr noundef @.str, ptr noundef %15, i64 noundef %16, i64 noundef %17)
%19 = call i32 (...) @abort() #3
unreachable
20: ; preds = %3
%21 = load ptr, ptr %7, align 8
ret ptr %21
}
declare ptr @reallocarray(ptr noundef, i64 noundef, i64 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, i64 noundef, i64 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9syb5j_h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"reallocarray failed ptr %p nmemb %zu size %zu\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @checkedReallocarray(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = load i64, ptr %5, align 8
%10 = load i64, ptr %6, align 8
%11 = call ptr @reallocarray(ptr noundef %8, i64 noundef %9, i64 noundef %10)
store ptr %11, ptr %7, align 8
%12 = load ptr, ptr %7, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %20
14: ; preds = %3
%15 = load ptr, ptr %4, align 8
%16 = load i64, ptr %5, align 8
%17 = load i64, ptr %6, align 8
%18 = call i32 @printf(ptr noundef @.str, ptr noundef %15, i64 noundef %16, i64 noundef %17)
%19 = call i32 (...) @abort() #3
unreachable
20: ; preds = %3
%21 = load ptr, ptr %7, align 8
ret ptr %21
}
declare ptr @reallocarray(ptr noundef, i64 noundef, i64 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, i64 noundef, i64 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgndh6v0v.c'
source_filename = "/tmp/tmpgndh6v0v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @trie_search(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i16, align 2
%6 = alloca i16, align 2
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i16 0, ptr %5, align 2
%9 = load ptr, ptr %4, align 8
%10 = call zeroext i16 @strlen(ptr noundef %9)
store i16 %10, ptr %6, align 2
%11 = load ptr, ptr %3, align 8
%12 = call ptr @trie_root(ptr noundef %11)
store ptr %12, ptr %7, align 8
%13 = call ptr @list_alloc(ptr noundef null)
store ptr %13, ptr %8, align 8
%14 = load ptr, ptr %7, align 8
%15 = load ptr, ptr %4, align 8
%16 = load i16, ptr %5, align 2
%17 = load i16, ptr %6, align 2
%18 = load ptr, ptr %8, align 8
%19 = call i32 @trie_search1(ptr noundef %14, ptr noundef %15, i16 noundef zeroext %16, i16 noundef zeroext %17, ptr noundef %18)
%20 = load ptr, ptr %8, align 8
ret ptr %20
}
declare zeroext i16 @strlen(ptr noundef) #1
declare ptr @trie_root(ptr noundef) #1
declare ptr @list_alloc(ptr noundef) #1
declare i32 @trie_search1(ptr noundef, ptr noundef, i16 noundef zeroext, i16 noundef zeroext, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgndh6v0v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @trie_search(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i16, align 2
%6 = alloca i16, align 2
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i16 0, ptr %5, align 2
%9 = load ptr, ptr %4, align 8
%10 = call zeroext i16 @strlen(ptr noundef %9)
store i16 %10, ptr %6, align 2
%11 = load ptr, ptr %3, align 8
%12 = call ptr @trie_root(ptr noundef %11)
store ptr %12, ptr %7, align 8
%13 = call ptr @list_alloc(ptr noundef null)
store ptr %13, ptr %8, align 8
%14 = load ptr, ptr %7, align 8
%15 = load ptr, ptr %4, align 8
%16 = load i16, ptr %5, align 2
%17 = load i16, ptr %6, align 2
%18 = load ptr, ptr %8, align 8
%19 = call i32 @trie_search1(ptr noundef %14, ptr noundef %15, i16 noundef zeroext %16, i16 noundef zeroext %17, ptr noundef %18)
%20 = load ptr, ptr %8, align 8
ret ptr %20
}
declare zeroext i16 @strlen(ptr noundef) #1
declare ptr @trie_root(ptr noundef) #1
declare ptr @list_alloc(ptr noundef) #1
declare i32 @trie_search1(ptr noundef, ptr noundef, i16 noundef zeroext, i16 noundef zeroext, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxj_r1ern.c'
source_filename = "/tmp/tmpxj_r1ern.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pjwCharHash(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%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 %3, align 4
%7 = load ptr, ptr %2, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = sext i32 %8 to i64
%10 = udiv i64 %9, 1
%11 = trunc i64 %10 to i32
store i32 %11, ptr %6, align 4
store i32 0, ptr %5, align 4
br label %12
12: ; preds = %39, %1
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %6, align 4
%15 = icmp ult i32 %13, %14
br i1 %15, label %16, label %42
16: ; preds = %12
%17 = load i32, ptr %3, align 4
%18 = shl i32 %17, 4
%19 = load ptr, ptr %2, align 8
%20 = load i32, ptr %5, align 4
%21 = zext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = add i32 %18, %24
store i32 %25, ptr %3, align 4
%26 = load i32, ptr %3, align 4
%27 = and i32 %26, -268435456
store i32 %27, ptr %4, align 4
%28 = load i32, ptr %4, align 4
%29 = icmp ne i32 %28, 0
br i1 %29, label %30, label %38
30: ; preds = %16
%31 = load i32, ptr %4, align 4
%32 = lshr i32 %31, 24
%33 = load i32, ptr %3, align 4
%34 = xor i32 %33, %32
store i32 %34, ptr %3, align 4
%35 = load i32, ptr %4, align 4
%36 = load i32, ptr %3, align 4
%37 = xor i32 %36, %35
store i32 %37, ptr %3, align 4
br label %38
38: ; preds = %30, %16
br label %39
39: ; preds = %38
%40 = load i32, ptr %5, align 4
%41 = add i32 %40, 1
store i32 %41, ptr %5, align 4
br label %12, !llvm.loop !6
42: ; preds = %12
%43 = load i32, ptr %3, align 4
ret i32 %43
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxj_r1ern.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pjwCharHash(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%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 %3, align 4
%7 = load ptr, ptr %2, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = sext i32 %8 to i64
%10 = udiv i64 %9, 1
%11 = trunc i64 %10 to i32
store i32 %11, ptr %6, align 4
store i32 0, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %6, align 4
%14 = icmp ult i32 %12, %13
br i1 %14, label %.lr.ph, label %44
.lr.ph: ; preds = %1
br label %15
15: ; preds = %.lr.ph, %38
%16 = load i32, ptr %3, align 4
%17 = shl i32 %16, 4
%18 = load ptr, ptr %2, align 8
%19 = load i32, ptr %5, align 4
%20 = zext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = add i32 %17, %23
store i32 %24, ptr %3, align 4
%25 = load i32, ptr %3, align 4
%26 = and i32 %25, -268435456
store i32 %26, ptr %4, align 4
%27 = load i32, ptr %4, align 4
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %37
29: ; preds = %15
%30 = load i32, ptr %4, align 4
%31 = lshr i32 %30, 24
%32 = load i32, ptr %3, align 4
%33 = xor i32 %32, %31
store i32 %33, ptr %3, align 4
%34 = load i32, ptr %4, align 4
%35 = load i32, ptr %3, align 4
%36 = xor i32 %35, %34
store i32 %36, ptr %3, align 4
br label %37
37: ; preds = %29, %15
br label %38
38: ; preds = %37
%39 = load i32, ptr %5, align 4
%40 = add i32 %39, 1
store i32 %40, ptr %5, align 4
%41 = load i32, ptr %5, align 4
%42 = load i32, ptr %6, align 4
%43 = icmp ult i32 %41, %42
br i1 %43, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %38
br label %44
44: ; preds = %._crit_edge, %1
%45 = load i32, ptr %3, align 4
ret i32 %45
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp1rywaias.c'
source_filename = "/tmp/tmp1rywaias.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GL_PROJECTION = dso_local global i32 0, align 4
@GL_MODELVIEW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @reshape(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @glViewport(i32 noundef 0, i32 noundef 0, i32 noundef %5, i32 noundef %6)
%8 = load i32, ptr @GL_PROJECTION, align 4
%9 = call i32 @glMatrixMode(i32 noundef %8)
%10 = call i32 (...) @glLoadIdentity()
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %4, align 4
%13 = sdiv i32 %11, %12
%14 = call i32 @gluPerspective(double noundef 6.500000e+01, i32 noundef %13, double noundef 1.000000e+00, double noundef 2.000000e+01)
%15 = load i32, ptr @GL_MODELVIEW, align 4
%16 = call i32 @glMatrixMode(i32 noundef %15)
%17 = call i32 (...) @glLoadIdentity()
%18 = call i32 @glTranslatef(double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef -5.000000e+00)
ret void
}
declare i32 @glViewport(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @glMatrixMode(i32 noundef) #1
declare i32 @glLoadIdentity(...) #1
declare i32 @gluPerspective(double noundef, i32 noundef, double noundef, double noundef) #1
declare i32 @glTranslatef(double noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1rywaias.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GL_PROJECTION = dso_local global i32 0, align 4
@GL_MODELVIEW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @reshape(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @glViewport(i32 noundef 0, i32 noundef 0, i32 noundef %5, i32 noundef %6)
%8 = load i32, ptr @GL_PROJECTION, align 4
%9 = call i32 @glMatrixMode(i32 noundef %8)
%10 = call i32 (...) @glLoadIdentity()
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %4, align 4
%13 = sdiv i32 %11, %12
%14 = call i32 @gluPerspective(double noundef 6.500000e+01, i32 noundef %13, double noundef 1.000000e+00, double noundef 2.000000e+01)
%15 = load i32, ptr @GL_MODELVIEW, align 4
%16 = call i32 @glMatrixMode(i32 noundef %15)
%17 = call i32 (...) @glLoadIdentity()
%18 = call i32 @glTranslatef(double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef -5.000000e+00)
ret void
}
declare i32 @glViewport(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @glMatrixMode(i32 noundef) #1
declare i32 @glLoadIdentity(...) #1
declare i32 @gluPerspective(double noundef, i32 noundef, double noundef, double noundef) #1
declare i32 @glTranslatef(double noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9qxfygt8.c'
source_filename = "/tmp/tmp9qxfygt8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ENCInit(i8 noundef zeroext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = call i32 @eqep_init(i8 noundef zeroext %3)
ret void
}
declare i32 @eqep_init(i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9qxfygt8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ENCInit(i8 noundef zeroext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = call i32 @eqep_init(i8 noundef zeroext %3)
ret void
}
declare i32 @eqep_init(i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxt5c_53h.c'
source_filename = "/tmp/tmpxt5c_53h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bson_find_field_as_string(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %6, align 8
%11 = call ptr @bson_find_field(ptr noundef %9, ptr noundef %10, i32 noundef 2)
store ptr %11, ptr %8, align 8
%12 = load ptr, ptr %8, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %18
14: ; preds = %3
%15 = load ptr, ptr %8, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 4
%17 = load ptr, ptr %7, align 8
store ptr %16, ptr %17, align 8
store i32 1, ptr %4, align 4
br label %19
18: ; preds = %3
store i32 0, ptr %4, align 4
br label %19
19: ; preds = %18, %14
%20 = load i32, ptr %4, align 4
ret i32 %20
}
declare ptr @bson_find_field(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/tmpxt5c_53h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bson_find_field_as_string(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %6, align 8
%11 = call ptr @bson_find_field(ptr noundef %9, ptr noundef %10, i32 noundef 2)
store ptr %11, ptr %8, align 8
%12 = load ptr, ptr %8, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %18
14: ; preds = %3
%15 = load ptr, ptr %8, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 4
%17 = load ptr, ptr %7, align 8
store ptr %16, ptr %17, align 8
store i32 1, ptr %4, align 4
br label %19
18: ; preds = %3
store i32 0, ptr %4, align 4
br label %19
19: ; preds = %18, %14
%20 = load i32, ptr %4, align 4
ret i32 %20
}
declare ptr @bson_find_field(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/tmp3wns_zco.c'
source_filename = "/tmp/tmp3wns_zco.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_apparent_sidereal_time(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%8 = load double, ptr %3, align 8
%9 = load double, ptr %4, align 8
%10 = call double @get_mean_sidereal_time(double noundef %8, double noundef %9)
store double %10, ptr %5, align 8
%11 = load double, ptr %4, align 8
%12 = call i32 @getNutationAngles(double noundef %11, ptr noundef %6, ptr noundef %7)
%13 = load double, ptr %5, align 8
%14 = load double, ptr %6, align 8
%15 = load double, ptr %4, align 8
%16 = call i64 @getPrecessionAngleVondrakEpsilon(double noundef %15)
%17 = sitofp i64 %16 to double
%18 = load double, ptr %7, align 8
%19 = fadd double %17, %18
%20 = fptosi double %19 to i64
%21 = call double @cos(i64 noundef %20)
%22 = fmul double %14, %21
%23 = fmul double %22, 1.800000e+02
%24 = fdiv double %23, 0x400921FB54442D18
%25 = fadd double %13, %24
ret double %25
}
declare double @get_mean_sidereal_time(double noundef, double noundef) #1
declare i32 @getNutationAngles(double noundef, ptr noundef, ptr noundef) #1
declare double @cos(i64 noundef) #1
declare i64 @getPrecessionAngleVondrakEpsilon(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3wns_zco.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_apparent_sidereal_time(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%8 = load double, ptr %3, align 8
%9 = load double, ptr %4, align 8
%10 = call double @get_mean_sidereal_time(double noundef %8, double noundef %9)
store double %10, ptr %5, align 8
%11 = load double, ptr %4, align 8
%12 = call i32 @getNutationAngles(double noundef %11, ptr noundef %6, ptr noundef %7)
%13 = load double, ptr %5, align 8
%14 = load double, ptr %6, align 8
%15 = load double, ptr %4, align 8
%16 = call i64 @getPrecessionAngleVondrakEpsilon(double noundef %15)
%17 = sitofp i64 %16 to double
%18 = load double, ptr %7, align 8
%19 = fadd double %17, %18
%20 = fptosi double %19 to i64
%21 = call double @cos(i64 noundef %20)
%22 = fmul double %14, %21
%23 = fmul double %22, 1.800000e+02
%24 = fdiv double %23, 0x400921FB54442D18
%25 = fadd double %13, %24
ret double %25
}
declare double @get_mean_sidereal_time(double noundef, double noundef) #1
declare i32 @getNutationAngles(double noundef, ptr noundef, ptr noundef) #1
declare double @cos(i64 noundef) #1
declare i64 @getPrecessionAngleVondrakEpsilon(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp16rxv8j6.c'
source_filename = "/tmp/tmp16rxv8j6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @str_tolowercase(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = icmp ne ptr %5, null
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 noundef %7)
%9 = load ptr, ptr %2, align 8
%10 = call i32 @strlen(ptr noundef %9)
store i32 %10, ptr %3, align 4
store i32 0, ptr %4, align 4
br label %11
11: ; preds = %46, %1
%12 = load i32, ptr %4, align 4
%13 = load i32, ptr %3, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %49
15: ; preds = %11
%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 sge i32 %21, 65
br i1 %22, label %23, label %45
23: ; preds = %15
%24 = load ptr, ptr %2, align 8
%25 = load i32, ptr %4, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %24, i64 %26
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp sle i32 %29, 90
br i1 %30, label %31, label %45
31: ; preds = %23
%32 = load ptr, ptr %2, align 8
%33 = load i32, ptr %4, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = add nsw i32 %37, 97
%39 = sub nsw i32 %38, 65
%40 = trunc i32 %39 to i8
%41 = load ptr, ptr %2, align 8
%42 = load i32, ptr %4, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %41, i64 %43
store i8 %40, ptr %44, align 1
br label %45
45: ; preds = %31, %23, %15
br label %46
46: ; preds = %45
%47 = load i32, ptr %4, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %4, align 4
br label %11, !llvm.loop !6
49: ; preds = %11
%50 = load ptr, ptr %2, align 8
ret ptr %50
}
declare i32 @assert(i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp16rxv8j6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @str_tolowercase(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = icmp ne ptr %5, null
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 noundef %7)
%9 = load ptr, ptr %2, align 8
%10 = call i32 @strlen(ptr noundef %9)
store i32 %10, ptr %3, align 4
store i32 0, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = load i32, ptr %3, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %.lr.ph, label %51
.lr.ph: ; preds = %1
br label %14
14: ; preds = %.lr.ph, %45
%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 sge i32 %20, 65
br i1 %21, label %22, label %44
22: ; preds = %14
%23 = load ptr, ptr %2, align 8
%24 = load i32, ptr %4, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %23, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp sle i32 %28, 90
br i1 %29, label %30, label %44
30: ; preds = %22
%31 = load ptr, ptr %2, align 8
%32 = load i32, ptr %4, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %31, i64 %33
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = add nsw i32 %36, 97
%38 = sub nsw i32 %37, 65
%39 = trunc i32 %38 to i8
%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
store i8 %39, ptr %43, align 1
br label %44
44: ; preds = %30, %22, %14
br label %45
45: ; preds = %44
%46 = load i32, ptr %4, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %4, align 4
%48 = load i32, ptr %4, align 4
%49 = load i32, ptr %3, align 4
%50 = icmp slt i32 %48, %49
br i1 %50, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %45
br label %51
51: ; preds = %._crit_edge, %1
%52 = load ptr, ptr %2, align 8
ret ptr %52
}
declare i32 @assert(i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp9dz3wyuz.c'
source_filename = "/tmp/tmp9dz3wyuz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"thumb\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"shoe\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"knee\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"door\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"hive\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"sticks\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c"heaven\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"pate\00", align 1
@.str.8 = private unnamed_addr constant [6 x i8] c"spine\00", align 1
@.str.9 = private unnamed_addr constant [5 x i8] c"skin\00", align 1
@.str.10 = private unnamed_addr constant [29 x i8] c"This old man, he played %d.\0A\00", align 1
@.str.11 = private unnamed_addr constant [32 x i8] c"He played knick-knack on my %s\0A\00", align 1
@.str.12 = private unnamed_addr constant [33 x i8] c"With a Knick-Knac, paddy-whack,\0A\00", align 1
@.str.13 = private unnamed_addr constant [23 x i8] c"Give your dog a hone.\0A\00", align 1
@.str.14 = private unnamed_addr constant [33 x i8] c"This old man came rolling home.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %6, align 4
br label %8
8: ; preds = %31, %2
%9 = load i32, ptr %6, align 4
%10 = icmp sle i32 %9, 10
br i1 %10, label %11, label %34
11: ; preds = %8
%12 = load i32, ptr %6, align 4
switch i32 %12, label %23 [
i32 1, label %13
i32 2, label %14
i32 3, label %15
i32 4, label %16
i32 5, label %17
i32 6, label %18
i32 7, label %19
i32 8, label %20
i32 9, label %21
i32 10, label %22
]
13: ; preds = %11
store ptr @.str, ptr %7, align 8
br label %23
14: ; preds = %11
store ptr @.str.1, ptr %7, align 8
br label %23
15: ; preds = %11
store ptr @.str.2, ptr %7, align 8
br label %23
16: ; preds = %11
store ptr @.str.3, ptr %7, align 8
br label %23
17: ; preds = %11
store ptr @.str.4, ptr %7, align 8
br label %23
18: ; preds = %11
store ptr @.str.5, ptr %7, align 8
br label %23
19: ; preds = %11
store ptr @.str.6, ptr %7, align 8
br label %23
20: ; preds = %11
store ptr @.str.7, ptr %7, align 8
br label %23
21: ; preds = %11
store ptr @.str.8, ptr %7, align 8
br label %23
22: ; preds = %11
store ptr @.str.9, ptr %7, align 8
br label %23
23: ; preds = %11, %22, %21, %20, %19, %18, %17, %16, %15, %14, %13
%24 = load i32, ptr %6, align 4
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %24)
%26 = load ptr, ptr %7, align 8
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, ptr noundef %26)
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
br label %31
31: ; preds = %23
%32 = load i32, ptr %6, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %6, align 4
br label %8, !llvm.loop !6
34: ; preds = %8
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9dz3wyuz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"thumb\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"shoe\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"knee\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"door\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"hive\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"sticks\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c"heaven\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"pate\00", align 1
@.str.8 = private unnamed_addr constant [6 x i8] c"spine\00", align 1
@.str.9 = private unnamed_addr constant [5 x i8] c"skin\00", align 1
@.str.10 = private unnamed_addr constant [29 x i8] c"This old man, he played %d.\0A\00", align 1
@.str.11 = private unnamed_addr constant [32 x i8] c"He played knick-knack on my %s\0A\00", align 1
@.str.12 = private unnamed_addr constant [33 x i8] c"With a Knick-Knac, paddy-whack,\0A\00", align 1
@.str.13 = private unnamed_addr constant [23 x i8] c"Give your dog a hone.\0A\00", align 1
@.str.14 = private unnamed_addr constant [33 x i8] c"This old man came rolling home.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = icmp sle i32 %8, 10
br i1 %9, label %.lr.ph, label %35
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %30
%11 = load i32, ptr %6, align 4
switch i32 %11, label %22 [
i32 1, label %12
i32 2, label %13
i32 3, label %14
i32 4, label %15
i32 5, label %16
i32 6, label %17
i32 7, label %18
i32 8, label %19
i32 9, label %20
i32 10, label %21
]
12: ; preds = %10
store ptr @.str, ptr %7, align 8
br label %22
13: ; preds = %10
store ptr @.str.1, ptr %7, align 8
br label %22
14: ; preds = %10
store ptr @.str.2, ptr %7, align 8
br label %22
15: ; preds = %10
store ptr @.str.3, ptr %7, align 8
br label %22
16: ; preds = %10
store ptr @.str.4, ptr %7, align 8
br label %22
17: ; preds = %10
store ptr @.str.5, ptr %7, align 8
br label %22
18: ; preds = %10
store ptr @.str.6, ptr %7, align 8
br label %22
19: ; preds = %10
store ptr @.str.7, ptr %7, align 8
br label %22
20: ; preds = %10
store ptr @.str.8, ptr %7, align 8
br label %22
21: ; preds = %10
store ptr @.str.9, ptr %7, align 8
br label %22
22: ; preds = %21, %20, %19, %18, %17, %16, %15, %14, %13, %12, %10
%23 = load i32, ptr %6, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %23)
%25 = load ptr, ptr %7, align 8
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, ptr noundef %25)
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
br label %30
30: ; preds = %22
%31 = load i32, ptr %6, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %6, align 4
%33 = load i32, ptr %6, align 4
%34 = icmp sle i32 %33, 10
br i1 %34, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %35
35: ; preds = %._crit_edge, %2
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpbceg_daf.c'
source_filename = "/tmp/tmpbceg_daf.c"
target datalayout = "e-m:e-p270: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_storage = type { i64 }
%struct.sockaddr_in = type { i32, i32, i32 }
%struct.sockaddr_in6 = type { i32, i32, i32 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [41 x i8] c"usage: %s <hostname/IP> <service/port#>\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [20 x i8] c"tcp_connect() error\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"getpeername() error\00", align 1
@AF_INET = dso_local global i64 0, align 8
@INET_ADDRSTRLEN = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [34 x i8] c"tcp_connect() connected to %s:%d\0A\00", align 1
@AF_INET6 = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [20 x i8] c"connected to %s:%d\0A\00", align 1
@.str.5 = private unnamed_addr constant [68 x i8] c"getpeername() error, AF_INET:%d, AF_INET6:%d, sockp->sin_family:%d\0A\00", align 1
@stdout = dso_local global i32 0, align 4
@EOF = dso_local global i64 0, align 8
@.str.6 = private unnamed_addr constant [14 x i8] c"fputs() error\00", align 1
@.str.7 = private unnamed_addr constant [13 x i8] c"read() error\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 [4097 x i8], align 16
%9 = alloca %struct.sockaddr_storage, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i64, align 8
%14 = alloca ptr, align 8
%15 = alloca [46 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%16 = load i32, ptr %4, align 4
%17 = icmp ne i32 %16, 3
br i1 %17, label %18, label %26
18: ; preds = %2
%19 = load i32, ptr @stderr, align 4
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 0
%22 = load ptr, ptr %21, align 8
%23 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %19, ptr noundef @.str, ptr noundef %22)
%24 = load i32, ptr @EXIT_FAILURE, align 4
%25 = call i32 @exit(i32 noundef %24) #4
unreachable
26: ; preds = %2
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds ptr, ptr %27, i64 1
%29 = load ptr, ptr %28, align 8
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds ptr, ptr %30, i64 2
%32 = load ptr, ptr %31, align 8
%33 = call i32 @tcp_connect(ptr noundef %29, ptr noundef %32)
store i32 %33, ptr %6, align 4
%34 = icmp eq i32 %33, -1
br i1 %34, label %35, label %40
35: ; preds = %26
%36 = load i32, ptr @stderr, align 4
%37 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %36, ptr noundef @.str.1)
%38 = load i32, ptr @EXIT_FAILURE, align 4
%39 = call i32 @exit(i32 noundef %38) #4
unreachable
40: ; preds = %26
store i32 8, ptr %10, align 4
%41 = load i32, ptr %6, align 4
%42 = call i64 @getpeername(i32 noundef %41, ptr noundef %9, ptr noundef %10)
%43 = icmp slt i64 %42, 0
br i1 %43, label %44, label %48
44: ; preds = %40
%45 = call i32 @perror(ptr noundef @.str.2)
%46 = load i32, ptr @EXIT_FAILURE, align 4
%47 = call i32 @exit(i32 noundef %46) #4
unreachable
48: ; preds = %40
%49 = getelementptr inbounds %struct.sockaddr_storage, ptr %9, i32 0, i32 0
%50 = load i64, ptr %49, align 8
%51 = load i64, ptr @AF_INET, align 8
%52 = icmp eq i64 %50, %51
br i1 %52, label %53, label %71
53: ; preds = %48
store ptr %9, ptr %11, align 8
%54 = load i32, ptr @INET_ADDRSTRLEN, align 4
%55 = zext i32 %54 to i64
%56 = call ptr @llvm.stacksave()
store ptr %56, ptr %12, align 8
%57 = alloca i8, i64 %55, align 16
store i64 %55, ptr %13, align 8
%58 = load ptr, ptr %11, align 8
%59 = getelementptr inbounds %struct.sockaddr_in, ptr %58, i32 0, i32 2
%60 = load i32, ptr %59, align 4
%61 = load ptr, ptr %11, align 8
%62 = getelementptr inbounds %struct.sockaddr_in, ptr %61, i32 0, i32 1
%63 = load i32, ptr @INET_ADDRSTRLEN, align 4
%64 = call ptr @inet_ntop(i32 noundef %60, ptr noundef %62, ptr noundef %57, i32 noundef %63)
%65 = load ptr, ptr %11, align 8
%66 = getelementptr inbounds %struct.sockaddr_in, ptr %65, i32 0, i32 0
%67 = load i32, ptr %66, align 4
%68 = call i32 @ntohs(i32 noundef %67)
%69 = call i32 @printf(ptr noundef @.str.3, ptr noundef %64, i32 noundef %68)
%70 = load ptr, ptr %12, align 8
call void @llvm.stackrestore(ptr %70)
br label %98
71: ; preds = %48
%72 = getelementptr inbounds %struct.sockaddr_storage, ptr %9, i32 0, i32 0
%73 = load i64, ptr %72, align 8
%74 = load i32, ptr @AF_INET6, align 4
%75 = sext i32 %74 to i64
%76 = icmp eq i64 %73, %75
br i1 %76, label %77, label %90
77: ; preds = %71
store ptr %9, ptr %14, align 8
%78 = load ptr, ptr %14, align 8
%79 = getelementptr inbounds %struct.sockaddr_in6, ptr %78, i32 0, i32 2
%80 = load i32, ptr %79, align 4
%81 = load ptr, ptr %14, align 8
%82 = getelementptr inbounds %struct.sockaddr_in6, ptr %81, i32 0, i32 1
%83 = getelementptr inbounds [46 x i8], ptr %15, i64 0, i64 0
%84 = call ptr @inet_ntop(i32 noundef %80, ptr noundef %82, ptr noundef %83, i32 noundef 46)
%85 = load ptr, ptr %14, align 8
%86 = getelementptr inbounds %struct.sockaddr_in6, ptr %85, i32 0, i32 0
%87 = load i32, ptr %86, align 4
%88 = call i32 @ntohs(i32 noundef %87)
%89 = call i32 @printf(ptr noundef @.str.4, ptr noundef %84, i32 noundef %88)
br label %97
90: ; preds = %71
%91 = load i32, ptr @stderr, align 4
%92 = load i32, ptr @AF_INET6, align 4
%93 = load i32, ptr @AF_INET6, align 4
%94 = getelementptr inbounds %struct.sockaddr_storage, ptr %9, i32 0, i32 0
%95 = load i64, ptr %94, align 8
%96 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %91, ptr noundef @.str.5, i32 noundef %92, i32 noundef %93, i64 noundef %95)
br label %97
97: ; preds = %90, %77
br label %98
98: ; preds = %97, %53
br label %99
99: ; preds = %118, %98
%100 = load i32, ptr %6, align 4
%101 = getelementptr inbounds [4097 x i8], ptr %8, i64 0, i64 0
%102 = call i32 @read(i32 noundef %100, ptr noundef %101, i32 noundef 4096)
store i32 %102, ptr %7, align 4
%103 = icmp sgt i32 %102, 0
br i1 %103, label %104, label %119
104: ; preds = %99
%105 = load i32, ptr %7, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [4097 x i8], ptr %8, i64 0, i64 %106
store i8 0, ptr %107, align 1
%108 = getelementptr inbounds [4097 x i8], ptr %8, i64 0, i64 0
%109 = load i32, ptr @stdout, align 4
%110 = call i64 @fputs(ptr noundef %108, i32 noundef %109)
%111 = load i64, ptr @EOF, align 8
%112 = icmp eq i64 %110, %111
br i1 %112, label %113, label %118
113: ; preds = %104
%114 = load i32, ptr @stderr, align 4
%115 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %114, ptr noundef @.str.6)
%116 = load i32, ptr @EXIT_FAILURE, align 4
%117 = call i32 @exit(i32 noundef %116) #4
unreachable
118: ; preds = %104
br label %99, !llvm.loop !6
119: ; preds = %99
%120 = load i32, ptr %7, align 4
%121 = icmp slt i32 %120, 0
br i1 %121, label %122, label %127
122: ; preds = %119
%123 = load i32, ptr @stderr, align 4
%124 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %123, ptr noundef @.str.7)
%125 = load i32, ptr @EXIT_FAILURE, align 4
%126 = call i32 @exit(i32 noundef %125) #4
unreachable
127: ; preds = %119
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @tcp_connect(ptr noundef, ptr noundef) #1
declare i64 @getpeername(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #3
declare i32 @printf(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @inet_ntop(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @ntohs(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #3
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @fputs(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { nocallback nofree nosync nounwind willreturn }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbceg_daf.c"
target datalayout = "e-m:e-p270: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_storage = type { i64 }
%struct.sockaddr_in = type { i32, i32, i32 }
%struct.sockaddr_in6 = type { i32, i32, i32 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [41 x i8] c"usage: %s <hostname/IP> <service/port#>\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [20 x i8] c"tcp_connect() error\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"getpeername() error\00", align 1
@AF_INET = dso_local global i64 0, align 8
@INET_ADDRSTRLEN = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [34 x i8] c"tcp_connect() connected to %s:%d\0A\00", align 1
@AF_INET6 = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [20 x i8] c"connected to %s:%d\0A\00", align 1
@.str.5 = private unnamed_addr constant [68 x i8] c"getpeername() error, AF_INET:%d, AF_INET6:%d, sockp->sin_family:%d\0A\00", align 1
@stdout = dso_local global i32 0, align 4
@EOF = dso_local global i64 0, align 8
@.str.6 = private unnamed_addr constant [14 x i8] c"fputs() error\00", align 1
@.str.7 = private unnamed_addr constant [13 x i8] c"read() error\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 [4097 x i8], align 16
%9 = alloca %struct.sockaddr_storage, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i64, align 8
%14 = alloca ptr, align 8
%15 = alloca [46 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%16 = load i32, ptr %4, align 4
%17 = icmp ne i32 %16, 3
br i1 %17, label %18, label %26
18: ; preds = %2
%19 = load i32, ptr @stderr, align 4
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 0
%22 = load ptr, ptr %21, align 8
%23 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %19, ptr noundef @.str, ptr noundef %22)
%24 = load i32, ptr @EXIT_FAILURE, align 4
%25 = call i32 @exit(i32 noundef %24) #4
unreachable
26: ; preds = %2
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds ptr, ptr %27, i64 1
%29 = load ptr, ptr %28, align 8
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds ptr, ptr %30, i64 2
%32 = load ptr, ptr %31, align 8
%33 = call i32 @tcp_connect(ptr noundef %29, ptr noundef %32)
store i32 %33, ptr %6, align 4
%34 = icmp eq i32 %33, -1
br i1 %34, label %35, label %40
35: ; preds = %26
%36 = load i32, ptr @stderr, align 4
%37 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %36, ptr noundef @.str.1)
%38 = load i32, ptr @EXIT_FAILURE, align 4
%39 = call i32 @exit(i32 noundef %38) #4
unreachable
40: ; preds = %26
store i32 8, ptr %10, align 4
%41 = load i32, ptr %6, align 4
%42 = call i64 @getpeername(i32 noundef %41, ptr noundef %9, ptr noundef %10)
%43 = icmp slt i64 %42, 0
br i1 %43, label %44, label %48
44: ; preds = %40
%45 = call i32 @perror(ptr noundef @.str.2)
%46 = load i32, ptr @EXIT_FAILURE, align 4
%47 = call i32 @exit(i32 noundef %46) #4
unreachable
48: ; preds = %40
%49 = getelementptr inbounds %struct.sockaddr_storage, ptr %9, i32 0, i32 0
%50 = load i64, ptr %49, align 8
%51 = load i64, ptr @AF_INET, align 8
%52 = icmp eq i64 %50, %51
br i1 %52, label %53, label %71
53: ; preds = %48
store ptr %9, ptr %11, align 8
%54 = load i32, ptr @INET_ADDRSTRLEN, align 4
%55 = zext i32 %54 to i64
%56 = call ptr @llvm.stacksave()
store ptr %56, ptr %12, align 8
%57 = alloca i8, i64 %55, align 16
store i64 %55, ptr %13, align 8
%58 = load ptr, ptr %11, align 8
%59 = getelementptr inbounds %struct.sockaddr_in, ptr %58, i32 0, i32 2
%60 = load i32, ptr %59, align 4
%61 = load ptr, ptr %11, align 8
%62 = getelementptr inbounds %struct.sockaddr_in, ptr %61, i32 0, i32 1
%63 = load i32, ptr @INET_ADDRSTRLEN, align 4
%64 = call ptr @inet_ntop(i32 noundef %60, ptr noundef %62, ptr noundef %57, i32 noundef %63)
%65 = load ptr, ptr %11, align 8
%66 = getelementptr inbounds %struct.sockaddr_in, ptr %65, i32 0, i32 0
%67 = load i32, ptr %66, align 4
%68 = call i32 @ntohs(i32 noundef %67)
%69 = call i32 @printf(ptr noundef @.str.3, ptr noundef %64, i32 noundef %68)
%70 = load ptr, ptr %12, align 8
call void @llvm.stackrestore(ptr %70)
br label %98
71: ; preds = %48
%72 = getelementptr inbounds %struct.sockaddr_storage, ptr %9, i32 0, i32 0
%73 = load i64, ptr %72, align 8
%74 = load i32, ptr @AF_INET6, align 4
%75 = sext i32 %74 to i64
%76 = icmp eq i64 %73, %75
br i1 %76, label %77, label %90
77: ; preds = %71
store ptr %9, ptr %14, align 8
%78 = load ptr, ptr %14, align 8
%79 = getelementptr inbounds %struct.sockaddr_in6, ptr %78, i32 0, i32 2
%80 = load i32, ptr %79, align 4
%81 = load ptr, ptr %14, align 8
%82 = getelementptr inbounds %struct.sockaddr_in6, ptr %81, i32 0, i32 1
%83 = getelementptr inbounds [46 x i8], ptr %15, i64 0, i64 0
%84 = call ptr @inet_ntop(i32 noundef %80, ptr noundef %82, ptr noundef %83, i32 noundef 46)
%85 = load ptr, ptr %14, align 8
%86 = getelementptr inbounds %struct.sockaddr_in6, ptr %85, i32 0, i32 0
%87 = load i32, ptr %86, align 4
%88 = call i32 @ntohs(i32 noundef %87)
%89 = call i32 @printf(ptr noundef @.str.4, ptr noundef %84, i32 noundef %88)
br label %97
90: ; preds = %71
%91 = load i32, ptr @stderr, align 4
%92 = load i32, ptr @AF_INET6, align 4
%93 = load i32, ptr @AF_INET6, align 4
%94 = getelementptr inbounds %struct.sockaddr_storage, ptr %9, i32 0, i32 0
%95 = load i64, ptr %94, align 8
%96 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %91, ptr noundef @.str.5, i32 noundef %92, i32 noundef %93, i64 noundef %95)
br label %97
97: ; preds = %90, %77
br label %98
98: ; preds = %97, %53
%99 = load i32, ptr %6, align 4
%100 = getelementptr inbounds [4097 x i8], ptr %8, i64 0, i64 0
%101 = call i32 @read(i32 noundef %99, ptr noundef %100, i32 noundef 4096)
store i32 %101, ptr %7, align 4
%102 = icmp sgt i32 %101, 0
br i1 %102, label %.lr.ph, label %121
.lr.ph: ; preds = %98
br label %107
103: ; preds = %107
%104 = load i32, ptr %6, align 4
%105 = call i32 @read(i32 noundef %104, ptr noundef %100, i32 noundef 4096)
store i32 %105, ptr %7, align 4
%106 = icmp sgt i32 %105, 0
br i1 %106, label %107, label %._crit_edge, !llvm.loop !6
107: ; preds = %.lr.ph, %103
%108 = load i32, ptr %7, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds [4097 x i8], ptr %8, i64 0, i64 %109
store i8 0, ptr %110, align 1
%111 = getelementptr inbounds [4097 x i8], ptr %8, i64 0, i64 0
%112 = load i32, ptr @stdout, align 4
%113 = call i64 @fputs(ptr noundef %111, i32 noundef %112)
%114 = load i64, ptr @EOF, align 8
%115 = icmp eq i64 %113, %114
br i1 %115, label %116, label %103
116: ; preds = %107
%117 = load i32, ptr @stderr, align 4
%118 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %117, ptr noundef @.str.6)
%119 = load i32, ptr @EXIT_FAILURE, align 4
%120 = call i32 @exit(i32 noundef %119) #4
unreachable
._crit_edge: ; preds = %103
br label %121
121: ; preds = %._crit_edge, %98
%122 = load i32, ptr %7, align 4
%123 = icmp slt i32 %122, 0
br i1 %123, label %124, label %129
124: ; preds = %121
%125 = load i32, ptr @stderr, align 4
%126 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %125, ptr noundef @.str.7)
%127 = load i32, ptr @EXIT_FAILURE, align 4
%128 = call i32 @exit(i32 noundef %127) #4
unreachable
129: ; preds = %121
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @tcp_connect(ptr noundef, ptr noundef) #1
declare i64 @getpeername(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #3
declare i32 @printf(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @inet_ntop(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @ntohs(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #3
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @fputs(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { nocallback nofree nosync nounwind willreturn }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp36hdk8dr.c'
source_filename = "/tmp/tmp36hdk8dr.c"
target datalayout = "e-m:e-p270: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.addrinfo = type { i64, i32, i32, i32, i32 }
@INET6_ADDRSTRLEN = dso_local global i32 0, align 4
@AF_UNSPEC = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"3491\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"client: connecting to %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"client: received '%s'\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"\0A> \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [14 x i8] c"error in send\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [100000 x i8], align 16
%9 = alloca %struct.addrinfo, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca i64, align 8
%15 = 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
%16 = load i32, ptr @INET6_ADDRSTRLEN, align 4
%17 = zext i32 %16 to i64
%18 = call ptr @llvm.stacksave()
store ptr %18, ptr %13, align 8
%19 = alloca i8, i64 %17, align 16
store i64 %17, ptr %14, align 8
%20 = call i32 @memset(ptr noundef %9, i32 noundef 0, i32 noundef 24)
%21 = load i32, ptr @AF_UNSPEC, align 4
%22 = getelementptr inbounds %struct.addrinfo, ptr %9, i32 0, i32 1
store i32 %21, ptr %22, align 8
%23 = load i32, ptr @SOCK_STREAM, align 4
%24 = getelementptr inbounds %struct.addrinfo, ptr %9, i32 0, i32 4
store i32 %23, ptr %24, align 4
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 1
%27 = load ptr, ptr %26, align 8
%28 = call i32 @getaddrinfo(ptr noundef %27, ptr noundef @.str, ptr noundef %9, ptr noundef %10)
%29 = load ptr, ptr %10, align 8
%30 = getelementptr inbounds %struct.addrinfo, ptr %29, i32 0, i32 1
%31 = load i32, ptr %30, align 8
%32 = load ptr, ptr %10, align 8
%33 = getelementptr inbounds %struct.addrinfo, ptr %32, i32 0, i32 4
%34 = load i32, ptr %33, align 4
%35 = load ptr, ptr %10, align 8
%36 = getelementptr inbounds %struct.addrinfo, ptr %35, i32 0, i32 3
%37 = load i32, ptr %36, align 8
%38 = call i32 @socket(i32 noundef %31, i32 noundef %34, i32 noundef %37)
store i32 %38, ptr %6, align 4
%39 = load i32, ptr %6, align 4
%40 = load ptr, ptr %10, align 8
%41 = getelementptr inbounds %struct.addrinfo, ptr %40, i32 0, i32 0
%42 = load i64, ptr %41, align 8
%43 = load ptr, ptr %10, align 8
%44 = getelementptr inbounds %struct.addrinfo, ptr %43, i32 0, i32 2
%45 = load i32, ptr %44, align 4
%46 = call i32 @connect(i32 noundef %39, i64 noundef %42, i32 noundef %45)
%47 = load ptr, ptr %10, align 8
%48 = getelementptr inbounds %struct.addrinfo, ptr %47, i32 0, i32 1
%49 = load i32, ptr %48, align 8
%50 = load ptr, ptr %10, align 8
%51 = getelementptr inbounds %struct.addrinfo, ptr %50, i32 0, i32 0
%52 = load i64, ptr %51, align 8
%53 = inttoptr i64 %52 to ptr
%54 = call i32 @get_in_addr(ptr noundef %53)
%55 = trunc i64 %17 to i32
%56 = call i32 @inet_ntop(i32 noundef %49, i32 noundef %54, ptr noundef %19, i32 noundef %55)
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %19)
%58 = load ptr, ptr %10, align 8
%59 = call i32 @freeaddrinfo(ptr noundef %58)
%60 = load i32, ptr %6, align 4
%61 = getelementptr inbounds [100000 x i8], ptr %8, i64 0, i64 0
%62 = call i32 @recv(i32 noundef %60, ptr noundef %61, i32 noundef 99999, i32 noundef 0)
store i32 %62, ptr %7, align 4
%63 = load i32, ptr %7, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [100000 x i8], ptr %8, i64 0, i64 %64
store i8 0, ptr %65, align 1
%66 = getelementptr inbounds [100000 x i8], ptr %8, i64 0, i64 0
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %66)
%68 = load i32, ptr %6, align 4
%69 = load ptr, ptr %5, align 8
%70 = getelementptr inbounds ptr, ptr %69, i64 2
%71 = load ptr, ptr %70, align 8
%72 = load ptr, ptr %5, align 8
%73 = getelementptr inbounds ptr, ptr %72, i64 2
%74 = load ptr, ptr %73, align 8
%75 = call i32 @strlen(ptr noundef %74)
%76 = call i32 @send(i32 noundef %68, ptr noundef %71, i32 noundef %75, i32 noundef 0)
%77 = call i64 @malloc(i32 noundef 1001)
%78 = inttoptr i64 %77 to ptr
store ptr %78, ptr %15, align 8
br label %79
79: ; preds = %114, %2
br label %80
80: ; preds = %112, %79
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%82 = load ptr, ptr %15, align 8
%83 = load i32, ptr @stdin, align 4
%84 = call i32 @fgets(ptr noundef %82, i32 noundef 1001, i32 noundef %83)
%85 = load ptr, ptr %15, align 8
%86 = call i32 @strlen(ptr noundef %85)
%87 = icmp sgt i32 %86, 0
br i1 %87, label %88, label %105
88: ; preds = %80
%89 = load ptr, ptr %15, align 8
%90 = load ptr, ptr %15, align 8
%91 = call i32 @strlen(ptr noundef %90)
%92 = sub nsw i32 %91, 1
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i8, ptr %89, i64 %93
%95 = load i8, ptr %94, align 1
%96 = sext i8 %95 to i32
%97 = icmp eq i32 %96, 10
br i1 %97, label %98, label %105
98: ; preds = %88
%99 = load ptr, ptr %15, align 8
%100 = load ptr, ptr %15, align 8
%101 = call i32 @strlen(ptr noundef %100)
%102 = sub nsw i32 %101, 1
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i8, ptr %99, i64 %103
store i8 0, ptr %104, align 1
br label %105
105: ; preds = %98, %88, %80
%106 = load i32, ptr %6, align 4
%107 = load ptr, ptr %15, align 8
%108 = load ptr, ptr %15, align 8
%109 = call i32 @strlen(ptr noundef %108)
%110 = call i32 @send(i32 noundef %106, ptr noundef %107, i32 noundef %109, i32 noundef 0)
%111 = icmp eq i32 %110, -1
br i1 %111, label %112, label %114
112: ; preds = %105
%113 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %80
114: ; preds = %105
%115 = load i32, ptr %6, align 4
%116 = getelementptr inbounds [100000 x i8], ptr %8, i64 0, i64 0
%117 = call i32 @recv(i32 noundef %115, ptr noundef %116, i32 noundef 99999, i32 noundef 0)
store i32 %117, ptr %7, align 4
%118 = load i32, ptr %7, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds [100000 x i8], ptr %8, i64 0, i64 %119
store i8 0, ptr %120, align 1
%121 = getelementptr inbounds [100000 x i8], ptr %8, i64 0, i64 0
%122 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %121)
br label %79
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @connect(i32 noundef, i64 noundef, i32 noundef) #2
declare i32 @inet_ntop(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @get_in_addr(ptr noundef) #2
declare i32 @printf(ptr noundef, ...) #2
declare i32 @freeaddrinfo(ptr noundef) #2
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i64 @malloc(i32 noundef) #2
declare i32 @fgets(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 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/tmp36hdk8dr.c"
target datalayout = "e-m:e-p270: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.addrinfo = type { i64, i32, i32, i32, i32 }
@INET6_ADDRSTRLEN = dso_local global i32 0, align 4
@AF_UNSPEC = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"3491\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"client: connecting to %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"client: received '%s'\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"\0A> \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [14 x i8] c"error in send\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [100000 x i8], align 16
%9 = alloca %struct.addrinfo, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca i64, align 8
%15 = 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
%16 = load i32, ptr @INET6_ADDRSTRLEN, align 4
%17 = zext i32 %16 to i64
%18 = call ptr @llvm.stacksave()
store ptr %18, ptr %13, align 8
%19 = alloca i8, i64 %17, align 16
store i64 %17, ptr %14, align 8
%20 = call i32 @memset(ptr noundef %9, i32 noundef 0, i32 noundef 24)
%21 = load i32, ptr @AF_UNSPEC, align 4
%22 = getelementptr inbounds %struct.addrinfo, ptr %9, i32 0, i32 1
store i32 %21, ptr %22, align 8
%23 = load i32, ptr @SOCK_STREAM, align 4
%24 = getelementptr inbounds %struct.addrinfo, ptr %9, i32 0, i32 4
store i32 %23, ptr %24, align 4
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 1
%27 = load ptr, ptr %26, align 8
%28 = call i32 @getaddrinfo(ptr noundef %27, ptr noundef @.str, ptr noundef %9, ptr noundef %10)
%29 = load ptr, ptr %10, align 8
%30 = getelementptr inbounds %struct.addrinfo, ptr %29, i32 0, i32 1
%31 = load i32, ptr %30, align 8
%32 = load ptr, ptr %10, align 8
%33 = getelementptr inbounds %struct.addrinfo, ptr %32, i32 0, i32 4
%34 = load i32, ptr %33, align 4
%35 = load ptr, ptr %10, align 8
%36 = getelementptr inbounds %struct.addrinfo, ptr %35, i32 0, i32 3
%37 = load i32, ptr %36, align 8
%38 = call i32 @socket(i32 noundef %31, i32 noundef %34, i32 noundef %37)
store i32 %38, ptr %6, align 4
%39 = load i32, ptr %6, align 4
%40 = load ptr, ptr %10, align 8
%41 = getelementptr inbounds %struct.addrinfo, ptr %40, i32 0, i32 0
%42 = load i64, ptr %41, align 8
%43 = load ptr, ptr %10, align 8
%44 = getelementptr inbounds %struct.addrinfo, ptr %43, i32 0, i32 2
%45 = load i32, ptr %44, align 4
%46 = call i32 @connect(i32 noundef %39, i64 noundef %42, i32 noundef %45)
%47 = load ptr, ptr %10, align 8
%48 = getelementptr inbounds %struct.addrinfo, ptr %47, i32 0, i32 1
%49 = load i32, ptr %48, align 8
%50 = load ptr, ptr %10, align 8
%51 = getelementptr inbounds %struct.addrinfo, ptr %50, i32 0, i32 0
%52 = load i64, ptr %51, align 8
%53 = inttoptr i64 %52 to ptr
%54 = call i32 @get_in_addr(ptr noundef %53)
%55 = trunc i64 %17 to i32
%56 = call i32 @inet_ntop(i32 noundef %49, i32 noundef %54, ptr noundef %19, i32 noundef %55)
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %19)
%58 = load ptr, ptr %10, align 8
%59 = call i32 @freeaddrinfo(ptr noundef %58)
%60 = load i32, ptr %6, align 4
%61 = getelementptr inbounds [100000 x i8], ptr %8, i64 0, i64 0
%62 = call i32 @recv(i32 noundef %60, ptr noundef %61, i32 noundef 99999, i32 noundef 0)
store i32 %62, ptr %7, align 4
%63 = load i32, ptr %7, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [100000 x i8], ptr %8, i64 0, i64 %64
store i8 0, ptr %65, align 1
%66 = getelementptr inbounds [100000 x i8], ptr %8, i64 0, i64 0
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %66)
%68 = load i32, ptr %6, align 4
%69 = load ptr, ptr %5, align 8
%70 = getelementptr inbounds ptr, ptr %69, i64 2
%71 = load ptr, ptr %70, align 8
%72 = load ptr, ptr %5, align 8
%73 = getelementptr inbounds ptr, ptr %72, i64 2
%74 = load ptr, ptr %73, align 8
%75 = call i32 @strlen(ptr noundef %74)
%76 = call i32 @send(i32 noundef %68, ptr noundef %71, i32 noundef %75, i32 noundef 0)
%77 = call i64 @malloc(i32 noundef 1001)
%78 = inttoptr i64 %77 to ptr
store ptr %78, ptr %15, align 8
br label %79
79: ; preds = %114, %2
br label %80
80: ; preds = %112, %79
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%82 = load ptr, ptr %15, align 8
%83 = load i32, ptr @stdin, align 4
%84 = call i32 @fgets(ptr noundef %82, i32 noundef 1001, i32 noundef %83)
%85 = load ptr, ptr %15, align 8
%86 = call i32 @strlen(ptr noundef %85)
%87 = icmp sgt i32 %86, 0
br i1 %87, label %88, label %105
88: ; preds = %80
%89 = load ptr, ptr %15, align 8
%90 = load ptr, ptr %15, align 8
%91 = call i32 @strlen(ptr noundef %90)
%92 = sub nsw i32 %91, 1
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i8, ptr %89, i64 %93
%95 = load i8, ptr %94, align 1
%96 = sext i8 %95 to i32
%97 = icmp eq i32 %96, 10
br i1 %97, label %98, label %105
98: ; preds = %88
%99 = load ptr, ptr %15, align 8
%100 = load ptr, ptr %15, align 8
%101 = call i32 @strlen(ptr noundef %100)
%102 = sub nsw i32 %101, 1
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i8, ptr %99, i64 %103
store i8 0, ptr %104, align 1
br label %105
105: ; preds = %98, %88, %80
%106 = load i32, ptr %6, align 4
%107 = load ptr, ptr %15, align 8
%108 = load ptr, ptr %15, align 8
%109 = call i32 @strlen(ptr noundef %108)
%110 = call i32 @send(i32 noundef %106, ptr noundef %107, i32 noundef %109, i32 noundef 0)
%111 = icmp eq i32 %110, -1
br i1 %111, label %112, label %114
112: ; preds = %105
%113 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %80
114: ; preds = %105
%115 = load i32, ptr %6, align 4
%116 = getelementptr inbounds [100000 x i8], ptr %8, i64 0, i64 0
%117 = call i32 @recv(i32 noundef %115, ptr noundef %116, i32 noundef 99999, i32 noundef 0)
store i32 %117, ptr %7, align 4
%118 = load i32, ptr %7, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds [100000 x i8], ptr %8, i64 0, i64 %119
store i8 0, ptr %120, align 1
%121 = getelementptr inbounds [100000 x i8], ptr %8, i64 0, i64 0
%122 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %121)
br label %79
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @connect(i32 noundef, i64 noundef, i32 noundef) #2
declare i32 @inet_ntop(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @get_in_addr(ptr noundef) #2
declare i32 @printf(ptr noundef, ...) #2
declare i32 @freeaddrinfo(ptr noundef) #2
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i64 @malloc(i32 noundef) #2
declare i32 @fgets(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 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/tmpddiaend6.c'
source_filename = "/tmp/tmpddiaend6.c"
target datalayout = "e-m:e-p270: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/tmpddiaend6.c"
target datalayout = "e-m:e-p270: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/tmpn361uxuq.c'
source_filename = "/tmp/tmpn361uxuq.c"
target datalayout = "e-m:e-p270: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/tmpn361uxuq.c"
target datalayout = "e-m:e-p270: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/tmprk9k_3vu.c'
source_filename = "/tmp/tmprk9k_3vu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [31 x i8] c"could not bind to udp port %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"bind\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @setup_receive(i32 noundef %0, i32 noundef %1, i16 noundef signext %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i16, align 2
%7 = alloca %struct.sockaddr_in, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i16 %2, ptr %6, align 2
%8 = call i32 @memset(ptr noundef %7, i32 noundef 0, i32 noundef 12)
%9 = load i32, ptr @AF_INET, align 4
%10 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 2
store i32 %9, ptr %10, align 4
%11 = load i32, ptr %5, align 4
%12 = call i32 @htonl(i32 noundef %11)
%13 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 1
%14 = getelementptr inbounds %struct.TYPE_2__, ptr %13, i32 0, i32 0
store i32 %12, ptr %14, align 4
%15 = load i16, ptr %6, align 2
%16 = call i32 @htons(i16 noundef signext %15)
%17 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 0
store i32 %16, ptr %17, align 4
%18 = load i32, ptr %4, align 4
%19 = call i32 @bind(i32 noundef %18, ptr noundef %7, i32 noundef 12)
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %27
21: ; preds = %3
%22 = load i32, ptr @stderr, align 4
%23 = load i16, ptr %6, align 2
%24 = call i32 @fprintf(i32 noundef %22, ptr noundef @.str, i16 noundef signext %23)
%25 = call i32 @perror(ptr noundef @.str.1)
%26 = call i32 @exit(i32 noundef 1) #3
unreachable
27: ; preds = %3
%28 = load i32, ptr %4, align 4
%29 = call i32 @listen(i32 noundef %28, i32 noundef 3)
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @htonl(i32 noundef) #1
declare i32 @htons(i16 noundef signext) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i16 noundef signext) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @listen(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/tmprk9k_3vu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [31 x i8] c"could not bind to udp port %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"bind\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @setup_receive(i32 noundef %0, i32 noundef %1, i16 noundef signext %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i16, align 2
%7 = alloca %struct.sockaddr_in, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i16 %2, ptr %6, align 2
%8 = call i32 @memset(ptr noundef %7, i32 noundef 0, i32 noundef 12)
%9 = load i32, ptr @AF_INET, align 4
%10 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 2
store i32 %9, ptr %10, align 4
%11 = load i32, ptr %5, align 4
%12 = call i32 @htonl(i32 noundef %11)
%13 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 1
%14 = getelementptr inbounds %struct.TYPE_2__, ptr %13, i32 0, i32 0
store i32 %12, ptr %14, align 4
%15 = load i16, ptr %6, align 2
%16 = call i32 @htons(i16 noundef signext %15)
%17 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 0
store i32 %16, ptr %17, align 4
%18 = load i32, ptr %4, align 4
%19 = call i32 @bind(i32 noundef %18, ptr noundef %7, i32 noundef 12)
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %27
21: ; preds = %3
%22 = load i32, ptr @stderr, align 4
%23 = load i16, ptr %6, align 2
%24 = call i32 @fprintf(i32 noundef %22, ptr noundef @.str, i16 noundef signext %23)
%25 = call i32 @perror(ptr noundef @.str.1)
%26 = call i32 @exit(i32 noundef 1) #3
unreachable
27: ; preds = %3
%28 = load i32, ptr %4, align 4
%29 = call i32 @listen(i32 noundef %28, i32 noundef 3)
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @htonl(i32 noundef) #1
declare i32 @htons(i16 noundef signext) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i16 noundef signext) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @listen(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/tmp8ix55aj8.c'
source_filename = "/tmp/tmp8ix55aj8.c"
target datalayout = "e-m:e-p270: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/tmp8ix55aj8.c"
target datalayout = "e-m:e-p270: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/tmprhigg4fc.c'
source_filename = "/tmp/tmprhigg4fc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @spi_block_erase_db(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = call i32 @spi_write_cmd(ptr noundef %7, i32 noundef 219, i32 noundef 0, i32 noundef %8, ptr noundef null, i32 noundef 0, i32 noundef 1000)
ret i32 %9
}
declare i32 @spi_write_cmd(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprhigg4fc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @spi_block_erase_db(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = call i32 @spi_write_cmd(ptr noundef %7, i32 noundef 219, i32 noundef 0, i32 noundef %8, ptr noundef null, i32 noundef 0, i32 noundef 1000)
ret i32 %9
}
declare i32 @spi_write_cmd(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxi_uylio.c'
source_filename = "/tmp/tmpxi_uylio.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @find_minimum(ptr noundef %0, double noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca double, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca double, align 8
store ptr %0, ptr %4, align 8
store double %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%10 = load ptr, ptr %4, align 8
%11 = getelementptr inbounds double, ptr %10, i64 0
%12 = load double, ptr %11, align 8
%13 = load double, ptr %5, align 8
%14 = fsub double %12, %13
%15 = call double @pow(double noundef %14, i32 noundef 2)
store double %15, ptr %9, align 8
store i32 0, ptr %8, align 4
store i32 1, ptr %7, align 4
br label %16
16: ; preds = %42, %3
%17 = load i32, ptr %7, align 4
%18 = load i32, ptr %6, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %45
20: ; preds = %16
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %7, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds double, ptr %21, i64 %23
%25 = load double, ptr %24, align 8
%26 = load double, ptr %5, align 8
%27 = fsub double %25, %26
%28 = call double @pow(double noundef %27, i32 noundef 2)
%29 = load double, ptr %9, align 8
%30 = fcmp olt double %28, %29
br i1 %30, label %31, label %41
31: ; preds = %20
%32 = load i32, ptr %7, align 4
store i32 %32, ptr %8, align 4
%33 = load ptr, ptr %4, align 8
%34 = load i32, ptr %7, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds double, ptr %33, i64 %35
%37 = load double, ptr %36, align 8
%38 = load double, ptr %5, align 8
%39 = fsub double %37, %38
%40 = call double @pow(double noundef %39, i32 noundef 2)
store double %40, ptr %9, align 8
br label %41
41: ; preds = %31, %20
br label %42
42: ; preds = %41
%43 = load i32, ptr %7, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %7, align 4
br label %16, !llvm.loop !6
45: ; preds = %16
%46 = load i32, ptr %8, align 4
ret i32 %46
}
declare double @pow(double 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/tmpxi_uylio.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @find_minimum(ptr noundef %0, double noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca double, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca double, align 8
store ptr %0, ptr %4, align 8
store double %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%10 = load ptr, ptr %4, align 8
%11 = getelementptr inbounds double, ptr %10, i64 0
%12 = load double, ptr %11, align 8
%13 = load double, ptr %5, align 8
%14 = fsub double %12, %13
%15 = call double @pow(double noundef %14, i32 noundef 2)
store double %15, ptr %9, align 8
store i32 0, ptr %8, align 4
store i32 1, ptr %7, align 4
%16 = load i32, ptr %7, align 4
%17 = load i32, ptr %6, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %.lr.ph, label %47
.lr.ph: ; preds = %3
br label %19
19: ; preds = %.lr.ph, %41
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr %7, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds double, ptr %20, i64 %22
%24 = load double, ptr %23, align 8
%25 = load double, ptr %5, align 8
%26 = fsub double %24, %25
%27 = call double @pow(double noundef %26, i32 noundef 2)
%28 = load double, ptr %9, align 8
%29 = fcmp olt double %27, %28
br i1 %29, label %30, label %40
30: ; preds = %19
%31 = load i32, ptr %7, align 4
store i32 %31, ptr %8, align 4
%32 = load ptr, ptr %4, align 8
%33 = load i32, ptr %7, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds double, ptr %32, i64 %34
%36 = load double, ptr %35, align 8
%37 = load double, ptr %5, align 8
%38 = fsub double %36, %37
%39 = call double @pow(double noundef %38, i32 noundef 2)
store double %39, ptr %9, align 8
br label %40
40: ; preds = %30, %19
br label %41
41: ; preds = %40
%42 = load i32, ptr %7, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %7, align 4
%44 = load i32, ptr %7, align 4
%45 = load i32, ptr %6, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %41
br label %47
47: ; preds = %._crit_edge, %3
%48 = load i32, ptr %8, align 4
ret i32 %48
}
declare double @pow(double 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/tmpjqms4mm8.c'
source_filename = "/tmp/tmpjqms4mm8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [38 x i8] c"il = %i, i2 = %i, *p1 = %i, *p2 = %i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store i32 5, ptr %2, align 4
store ptr %2, ptr %4, align 8
%6 = load ptr, ptr %4, align 8
%7 = load i32, ptr %6, align 4
%8 = sdiv i32 %7, 2
%9 = add nsw i32 %8, 10
store i32 %9, ptr %3, align 4
%10 = load ptr, ptr %4, align 8
store ptr %10, ptr %5, align 8
%11 = load i32, ptr %2, align 4
%12 = load i32, ptr %3, align 4
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %13, align 4
%15 = load ptr, ptr %5, align 8
%16 = load i32, ptr %15, align 4
%17 = call i32 @printf(ptr noundef @.str, i32 noundef %11, i32 noundef %12, i32 noundef %14, i32 noundef %16)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjqms4mm8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [38 x i8] c"il = %i, i2 = %i, *p1 = %i, *p2 = %i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store i32 5, ptr %2, align 4
store ptr %2, ptr %4, align 8
%6 = load ptr, ptr %4, align 8
%7 = load i32, ptr %6, align 4
%8 = sdiv i32 %7, 2
%9 = add nsw i32 %8, 10
store i32 %9, ptr %3, align 4
%10 = load ptr, ptr %4, align 8
store ptr %10, ptr %5, align 8
%11 = load i32, ptr %2, align 4
%12 = load i32, ptr %3, align 4
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %13, align 4
%15 = load ptr, ptr %5, align 8
%16 = load i32, ptr %15, align 4
%17 = call i32 @printf(ptr noundef @.str, i32 noundef %11, i32 noundef %12, i32 noundef %14, i32 noundef %16)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0xa266u_.c'
source_filename = "/tmp/tmp0xa266u_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"Factory status: ACCEPTING\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @entry_to() #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/tmp0xa266u_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"Factory status: ACCEPTING\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @entry_to() #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/tmp2z_l5a2e.c'
source_filename = "/tmp/tmp2z_l5a2e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @enableRawMode()
br label %3
3: ; preds = %0, %3
%4 = call i32 (...) @editorRefreshScreen()
%5 = call i32 (...) @editorProcessKeypress()
br label %3
}
declare i32 @enableRawMode(...) #1
declare i32 @editorRefreshScreen(...) #1
declare i32 @editorProcessKeypress(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2z_l5a2e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @enableRawMode()
br label %3
3: ; preds = %3, %0
%4 = call i32 (...) @editorRefreshScreen()
%5 = call i32 (...) @editorProcessKeypress()
br label %3
}
declare i32 @enableRawMode(...) #1
declare i32 @editorRefreshScreen(...) #1
declare i32 @editorProcessKeypress(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwhlfpzos.c'
source_filename = "/tmp/tmpwhlfpzos.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"execute: fork failed\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @execute(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = call i32 (...) @fork()
switch i32 %4, label %12 [
i32 -1, label %5
i32 0, label %7
]
5: ; preds = %1
%6 = call i32 @die(ptr noundef @.str)
br label %7
7: ; preds = %1, %5
%8 = load ptr, ptr %2, align 8
%9 = call ptr @parse(ptr noundef %8)
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
%11 = call i32 @walk_tree(ptr noundef %10)
br label %14
12: ; preds = %1
%13 = call i32 @wait(ptr noundef null)
br label %14
14: ; preds = %12, %7
ret void
}
declare i32 @fork(...) #1
declare i32 @die(ptr noundef) #1
declare ptr @parse(ptr noundef) #1
declare i32 @walk_tree(ptr noundef) #1
declare i32 @wait(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwhlfpzos.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"execute: fork failed\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @execute(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = call i32 (...) @fork()
switch i32 %4, label %12 [
i32 -1, label %5
i32 0, label %7
]
5: ; preds = %1
%6 = call i32 @die(ptr noundef @.str)
br label %7
7: ; preds = %5, %1
%8 = load ptr, ptr %2, align 8
%9 = call ptr @parse(ptr noundef %8)
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
%11 = call i32 @walk_tree(ptr noundef %10)
br label %14
12: ; preds = %1
%13 = call i32 @wait(ptr noundef null)
br label %14
14: ; preds = %12, %7
ret void
}
declare i32 @fork(...) #1
declare i32 @die(ptr noundef) #1
declare ptr @parse(ptr noundef) #1
declare i32 @walk_tree(ptr noundef) #1
declare i32 @wait(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnx6ur7e6.c'
source_filename = "/tmp/tmpnx6ur7e6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @romanToInt(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i8, align 1
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i8, align 1
%9 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%10 = load ptr, ptr %2, align 8
%11 = call i32 @strlen(ptr noundef %10)
store i32 %11, ptr %3, align 4
store i32 0, ptr %4, align 4
br label %12
12: ; preds = %114, %1
%13 = load i32, ptr %3, align 4
%14 = icmp sgt i32 %13, 0
br i1 %14, label %15, label %115
15: ; preds = %12
%16 = load ptr, ptr %2, align 8
%17 = load i32, ptr %3, align 4
%18 = sub nsw i32 %17, 1
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %16, i64 %19
%21 = load i8, ptr %20, align 1
store i8 %21, ptr %5, align 1
%22 = load i32, ptr %3, align 4
%23 = add nsw i32 %22, -1
store i32 %23, ptr %3, align 4
%24 = load i8, ptr %5, align 1
%25 = call i32 @getRep(i8 noundef signext %24)
store i32 %25, ptr %6, align 4
store i32 1, ptr %7, align 4
store i8 78, ptr %8, align 1
br label %26
26: ; preds = %44, %15
%27 = load i32, ptr %3, align 4
%28 = icmp sgt i32 %27, 0
br i1 %28, label %29, label %47
29: ; preds = %26
%30 = load ptr, ptr %2, align 8
%31 = load i32, ptr %3, align 4
%32 = sub nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %30, i64 %33
%35 = load i8, ptr %34, align 1
store i8 %35, ptr %8, align 1
%36 = load i32, ptr %3, align 4
%37 = add nsw i32 %36, -1
store i32 %37, ptr %3, align 4
%38 = load i8, ptr %8, align 1
%39 = sext i8 %38 to i32
%40 = load i8, ptr %5, align 1
%41 = sext i8 %40 to i32
%42 = icmp ne i32 %39, %41
br i1 %42, label %43, label %44
43: ; preds = %29
br label %47
44: ; preds = %29
%45 = load i32, ptr %7, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %7, align 4
br label %26, !llvm.loop !6
47: ; preds = %43, %26
%48 = load i8, ptr %8, align 1
%49 = sext i8 %48 to i32
%50 = icmp ne i32 %49, 78
br i1 %50, label %51, label %110
51: ; preds = %47
%52 = load i8, ptr %8, align 1
%53 = sext i8 %52 to i32
%54 = load i8, ptr %5, align 1
%55 = sext i8 %54 to i32
%56 = icmp eq i32 %53, %55
br i1 %56, label %57, label %63
57: ; preds = %51
%58 = load i32, ptr %6, align 4
%59 = load i32, ptr %7, align 4
%60 = mul nsw i32 %58, %59
%61 = load i32, ptr %4, align 4
%62 = add nsw i32 %61, %60
store i32 %62, ptr %4, align 4
br label %109
63: ; preds = %51
%64 = load i8, ptr %8, align 1
%65 = call i32 @getRep(i8 noundef signext %64)
store i32 %65, ptr %9, align 4
%66 = load i8, ptr %5, align 1
%67 = load i8, ptr %8, align 1
%68 = call i64 @validPrefix(i8 noundef signext %66, i8 noundef signext %67)
%69 = icmp ne i64 %68, 0
br i1 %69, label %70, label %82
70: ; preds = %63
%71 = load i32, ptr %9, align 4
%72 = load i32, ptr %6, align 4
%73 = icmp sgt i32 %71, %72
br i1 %73, label %74, label %82
74: ; preds = %70
%75 = load i32, ptr %9, align 4
%76 = load i32, ptr %6, align 4
%77 = load i32, ptr %7, align 4
%78 = mul nsw i32 %76, %77
%79 = add nsw i32 %75, %78
%80 = load i32, ptr %4, align 4
%81 = add nsw i32 %80, %79
store i32 %81, ptr %4, align 4
br label %108
82: ; preds = %70, %63
%83 = load i8, ptr %5, align 1
%84 = load i8, ptr %8, align 1
%85 = call i64 @validPrefix(i8 noundef signext %83, i8 noundef signext %84)
%86 = icmp ne i64 %85, 0
br i1 %86, label %87, label %99
87: ; preds = %82
%88 = load i32, ptr %9, align 4
%89 = load i32, ptr %6, align 4
%90 = icmp sle i32 %88, %89
br i1 %90, label %91, label %99
91: ; preds = %87
%92 = load i32, ptr %6, align 4
%93 = load i32, ptr %7, align 4
%94 = mul nsw i32 %92, %93
%95 = load i32, ptr %9, align 4
%96 = sub nsw i32 %94, %95
%97 = load i32, ptr %4, align 4
%98 = add nsw i32 %97, %96
store i32 %98, ptr %4, align 4
br label %107
99: ; preds = %87, %82
%100 = load i32, ptr %6, align 4
%101 = load i32, ptr %7, align 4
%102 = mul nsw i32 %100, %101
%103 = load i32, ptr %4, align 4
%104 = add nsw i32 %103, %102
store i32 %104, ptr %4, align 4
%105 = load i32, ptr %3, align 4
%106 = add nsw i32 %105, 1
store i32 %106, ptr %3, align 4
br label %107
107: ; preds = %99, %91
br label %108
108: ; preds = %107, %74
br label %109
109: ; preds = %108, %57
br label %114
110: ; preds = %47
%111 = load i32, ptr %6, align 4
%112 = load i32, ptr %4, align 4
%113 = add nsw i32 %112, %111
store i32 %113, ptr %4, align 4
br label %114
114: ; preds = %110, %109
br label %12, !llvm.loop !8
115: ; preds = %12
%116 = load i32, ptr %4, align 4
ret i32 %116
}
declare i32 @strlen(ptr noundef) #1
declare i32 @getRep(i8 noundef signext) #1
declare i64 @validPrefix(i8 noundef signext, 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}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnx6ur7e6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @romanToInt(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i8, align 1
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i8, align 1
%9 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%10 = load ptr, ptr %2, align 8
%11 = call i32 @strlen(ptr noundef %10)
store i32 %11, ptr %3, align 4
store i32 0, ptr %4, align 4
%12 = load i32, ptr %3, align 4
%13 = icmp sgt i32 %12, 0
br i1 %13, label %.lr.ph1, label %117
.lr.ph1: ; preds = %1
br label %14
14: ; preds = %.lr.ph1, %114
%15 = load ptr, ptr %2, align 8
%16 = load i32, ptr %3, align 4
%17 = sub nsw i32 %16, 1
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %15, i64 %18
%20 = load i8, ptr %19, align 1
store i8 %20, ptr %5, align 1
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %21, -1
store i32 %22, ptr %3, align 4
%23 = load i8, ptr %5, align 1
%24 = call i32 @getRep(i8 noundef signext %23)
store i32 %24, ptr %6, align 4
store i32 1, ptr %7, align 4
store i8 78, ptr %8, align 1
%25 = load i32, ptr %3, align 4
%26 = icmp sgt i32 %25, 0
br i1 %26, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %14
br label %27
27: ; preds = %.lr.ph, %42
%28 = load ptr, ptr %2, align 8
%29 = load i32, ptr %3, align 4
%30 = sub nsw i32 %29, 1
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %28, i64 %31
%33 = load i8, ptr %32, align 1
store i8 %33, ptr %8, align 1
%34 = load i32, ptr %3, align 4
%35 = add nsw i32 %34, -1
store i32 %35, ptr %3, align 4
%36 = load i8, ptr %8, align 1
%37 = sext i8 %36 to i32
%38 = load i8, ptr %5, align 1
%39 = sext i8 %38 to i32
%40 = icmp ne i32 %37, %39
br i1 %40, label %41, label %42
41: ; preds = %27
br label %47
42: ; preds = %27
%43 = load i32, ptr %7, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %7, align 4
%45 = load i32, ptr %3, align 4
%46 = icmp sgt i32 %45, 0
br i1 %46, label %27, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %42
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %14
br label %47
47: ; preds = %.loopexit, %41
%48 = load i8, ptr %8, align 1
%49 = sext i8 %48 to i32
%50 = icmp ne i32 %49, 78
br i1 %50, label %51, label %110
51: ; preds = %47
%52 = load i8, ptr %8, align 1
%53 = sext i8 %52 to i32
%54 = load i8, ptr %5, align 1
%55 = sext i8 %54 to i32
%56 = icmp eq i32 %53, %55
br i1 %56, label %57, label %63
57: ; preds = %51
%58 = load i32, ptr %6, align 4
%59 = load i32, ptr %7, align 4
%60 = mul nsw i32 %58, %59
%61 = load i32, ptr %4, align 4
%62 = add nsw i32 %61, %60
store i32 %62, ptr %4, align 4
br label %109
63: ; preds = %51
%64 = load i8, ptr %8, align 1
%65 = call i32 @getRep(i8 noundef signext %64)
store i32 %65, ptr %9, align 4
%66 = load i8, ptr %5, align 1
%67 = load i8, ptr %8, align 1
%68 = call i64 @validPrefix(i8 noundef signext %66, i8 noundef signext %67)
%69 = icmp ne i64 %68, 0
br i1 %69, label %70, label %82
70: ; preds = %63
%71 = load i32, ptr %9, align 4
%72 = load i32, ptr %6, align 4
%73 = icmp sgt i32 %71, %72
br i1 %73, label %74, label %82
74: ; preds = %70
%75 = load i32, ptr %9, align 4
%76 = load i32, ptr %6, align 4
%77 = load i32, ptr %7, align 4
%78 = mul nsw i32 %76, %77
%79 = add nsw i32 %75, %78
%80 = load i32, ptr %4, align 4
%81 = add nsw i32 %80, %79
store i32 %81, ptr %4, align 4
br label %108
82: ; preds = %70, %63
%83 = load i8, ptr %5, align 1
%84 = load i8, ptr %8, align 1
%85 = call i64 @validPrefix(i8 noundef signext %83, i8 noundef signext %84)
%86 = icmp ne i64 %85, 0
br i1 %86, label %87, label %99
87: ; preds = %82
%88 = load i32, ptr %9, align 4
%89 = load i32, ptr %6, align 4
%90 = icmp sle i32 %88, %89
br i1 %90, label %91, label %99
91: ; preds = %87
%92 = load i32, ptr %6, align 4
%93 = load i32, ptr %7, align 4
%94 = mul nsw i32 %92, %93
%95 = load i32, ptr %9, align 4
%96 = sub nsw i32 %94, %95
%97 = load i32, ptr %4, align 4
%98 = add nsw i32 %97, %96
store i32 %98, ptr %4, align 4
br label %107
99: ; preds = %87, %82
%100 = load i32, ptr %6, align 4
%101 = load i32, ptr %7, align 4
%102 = mul nsw i32 %100, %101
%103 = load i32, ptr %4, align 4
%104 = add nsw i32 %103, %102
store i32 %104, ptr %4, align 4
%105 = load i32, ptr %3, align 4
%106 = add nsw i32 %105, 1
store i32 %106, ptr %3, align 4
br label %107
107: ; preds = %99, %91
br label %108
108: ; preds = %107, %74
br label %109
109: ; preds = %108, %57
br label %114
110: ; preds = %47
%111 = load i32, ptr %6, align 4
%112 = load i32, ptr %4, align 4
%113 = add nsw i32 %112, %111
store i32 %113, ptr %4, align 4
br label %114
114: ; preds = %110, %109
%115 = load i32, ptr %3, align 4
%116 = icmp sgt i32 %115, 0
br i1 %116, label %14, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %114
br label %117
117: ; preds = %._crit_edge, %1
%118 = load i32, ptr %4, align 4
ret i32 %118
}
declare i32 @strlen(ptr noundef) #1
declare i32 @getRep(i8 noundef signext) #1
declare i64 @validPrefix(i8 noundef signext, 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}
|
; ModuleID = '/tmp/tmpi5xapoyw.c'
source_filename = "/tmp/tmpi5xapoyw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @random_matrix(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%9 = call i32 @srand(i32 noundef 7)
store i64 0, ptr %7, align 8
br label %10
10: ; preds = %34, %3
%11 = load i64, ptr %7, align 8
%12 = load i64, ptr %5, align 8
%13 = icmp slt i64 %11, %12
br i1 %13, label %14, label %37
14: ; preds = %10
store i64 0, ptr %8, align 8
br label %15
15: ; preds = %30, %14
%16 = load i64, ptr %8, align 8
%17 = load i64, ptr %6, align 8
%18 = icmp slt i64 %16, %17
br i1 %18, label %19, label %33
19: ; preds = %15
%20 = call i64 (...) @rand()
%21 = sitofp i64 %20 to double
%22 = fdiv double %21, 0x43F0000000000000
%23 = load ptr, ptr %4, align 8
%24 = load i64, ptr %7, align 8
%25 = load i64, ptr %6, align 8
%26 = mul nsw i64 %24, %25
%27 = load i64, ptr %8, align 8
%28 = add nsw i64 %26, %27
%29 = getelementptr inbounds double, ptr %23, i64 %28
store double %22, ptr %29, align 8
br label %30
30: ; preds = %19
%31 = load i64, ptr %8, align 8
%32 = add nsw i64 %31, 1
store i64 %32, ptr %8, align 8
br label %15, !llvm.loop !6
33: ; preds = %15
br label %34
34: ; preds = %33
%35 = load i64, ptr %7, align 8
%36 = add nsw i64 %35, 1
store i64 %36, ptr %7, align 8
br label %10, !llvm.loop !8
37: ; preds = %10
ret void
}
declare i32 @srand(i32 noundef) #1
declare i64 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpi5xapoyw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @random_matrix(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%9 = call i32 @srand(i32 noundef 7)
store i64 0, ptr %7, align 8
%10 = load i64, ptr %7, align 8
%11 = load i64, ptr %5, align 8
%12 = icmp slt i64 %10, %11
br i1 %12, label %.lr.ph2, label %41
.lr.ph2: ; preds = %3
br label %13
13: ; preds = %.lr.ph2, %35
store i64 0, ptr %8, align 8
%14 = load i64, ptr %8, align 8
%15 = load i64, ptr %6, align 8
%16 = icmp slt i64 %14, %15
br i1 %16, label %.lr.ph, label %34
.lr.ph: ; preds = %13
br label %17
17: ; preds = %.lr.ph, %28
%18 = call i64 (...) @rand()
%19 = sitofp i64 %18 to double
%20 = fdiv double %19, 0x43F0000000000000
%21 = load ptr, ptr %4, align 8
%22 = load i64, ptr %7, align 8
%23 = load i64, ptr %6, align 8
%24 = mul nsw i64 %22, %23
%25 = load i64, ptr %8, align 8
%26 = add nsw i64 %24, %25
%27 = getelementptr inbounds double, ptr %21, i64 %26
store double %20, ptr %27, align 8
br label %28
28: ; preds = %17
%29 = load i64, ptr %8, align 8
%30 = add nsw i64 %29, 1
store i64 %30, ptr %8, align 8
%31 = load i64, ptr %8, align 8
%32 = load i64, ptr %6, align 8
%33 = icmp slt i64 %31, %32
br i1 %33, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %34
34: ; preds = %._crit_edge, %13
br label %35
35: ; preds = %34
%36 = load i64, ptr %7, align 8
%37 = add nsw i64 %36, 1
store i64 %37, ptr %7, align 8
%38 = load i64, ptr %7, align 8
%39 = load i64, ptr %5, align 8
%40 = icmp slt i64 %38, %39
br i1 %40, label %13, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %35
br label %41
41: ; preds = %._crit_edge3, %3
ret void
}
declare i32 @srand(i32 noundef) #1
declare i64 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpewt5x1l8.c'
source_filename = "/tmp/tmpewt5x1l8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ETH_ALEN = 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/tmpewt5x1l8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ETH_ALEN = 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/tmpyzhppyk6.c'
source_filename = "/tmp/tmpyzhppyk6.c"
target datalayout = "e-m:e-p270: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 [38 x i8] c"ERROR: Cannot determine display name\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"Display name: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @show_display_name() #0 {
%1 = alloca i32, align 4
%2 = alloca [32 x i8], align 16
%3 = alloca i32, align 4
%4 = getelementptr inbounds [32 x i8], ptr %2, i64 0, i64 0
%5 = call i32 @get_display_name(ptr noundef %4, i32 noundef 32)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %0
%9 = load i32, ptr @stderr, align 4
%10 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str)
store i32 0, ptr %1, align 4
br label %14
11: ; preds = %0
%12 = getelementptr inbounds [32 x i8], ptr %2, i64 0, i64 0
%13 = call i32 @printf(ptr noundef @.str.1, ptr noundef %12)
store i32 1, ptr %1, align 4
br label %14
14: ; preds = %11, %8
%15 = load i32, ptr %1, align 4
ret i32 %15
}
declare i32 @get_display_name(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyzhppyk6.c"
target datalayout = "e-m:e-p270: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 [38 x i8] c"ERROR: Cannot determine display name\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"Display name: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @show_display_name() #0 {
%1 = alloca i32, align 4
%2 = alloca [32 x i8], align 16
%3 = alloca i32, align 4
%4 = getelementptr inbounds [32 x i8], ptr %2, i64 0, i64 0
%5 = call i32 @get_display_name(ptr noundef %4, i32 noundef 32)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %0
%9 = load i32, ptr @stderr, align 4
%10 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str)
store i32 0, ptr %1, align 4
br label %14
11: ; preds = %0
%12 = getelementptr inbounds [32 x i8], ptr %2, i64 0, i64 0
%13 = call i32 @printf(ptr noundef @.str.1, ptr noundef %12)
store i32 1, ptr %1, align 4
br label %14
14: ; preds = %11, %8
%15 = load i32, ptr %1, align 4
ret i32 %15
}
declare i32 @get_display_name(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 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"}
|
; ModuleID = '/tmp/tmpw8e0v6s7.c'
source_filename = "/tmp/tmpw8e0v6s7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @close_port(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 @close(i32 noundef %3)
ret void
}
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw8e0v6s7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @close_port(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 @close(i32 noundef %3)
ret void
}
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptpgltn2_.c'
source_filename = "/tmp/tmptpgltn2_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__glob_sort(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %7, align 8
%9 = call i32 @strcmp(ptr noundef %6, ptr noundef %8)
ret i32 %9
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptpgltn2_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__glob_sort(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %7, align 8
%9 = call i32 @strcmp(ptr noundef %6, ptr noundef %8)
ret i32 %9
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpylkj8vtg.c'
source_filename = "/tmp/tmpylkj8vtg.c"
target datalayout = "e-m:e-p270: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.pollfd = type { i32, i32, i32 }
@POLLIN = dso_local global i32 0, align 4
@ETIMEDOUT = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @qio_wait_readable(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [1 x %struct.pollfd], align 4
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = getelementptr inbounds [1 x %struct.pollfd], ptr %6, i64 0, i64 0
%10 = getelementptr inbounds %struct.pollfd, ptr %9, i32 0, i32 0
store i32 %8, ptr %10, align 4
%11 = load i32, ptr @POLLIN, align 4
%12 = getelementptr inbounds [1 x %struct.pollfd], ptr %6, i64 0, i64 0
%13 = getelementptr inbounds %struct.pollfd, ptr %12, i32 0, i32 1
store i32 %11, ptr %13, align 4
%14 = getelementptr inbounds [1 x %struct.pollfd], ptr %6, i64 0, i64 0
%15 = load i32, ptr %5, align 4
%16 = call i32 @poll(ptr noundef %14, i32 noundef 1, i32 noundef %15)
store i32 %16, ptr %7, align 4
%17 = load i32, ptr %7, align 4
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %2
%20 = load i32, ptr @ETIMEDOUT, align 4
store i32 %20, ptr @errno, align 4
store i32 0, ptr %3, align 4
br label %35
21: ; preds = %2
%22 = load i32, ptr %7, align 4
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %21
store i32 -1, ptr %3, align 4
br label %35
25: ; preds = %21
br label %26
26: ; preds = %25
%27 = getelementptr inbounds [1 x %struct.pollfd], ptr %6, i64 0, i64 0
%28 = getelementptr inbounds %struct.pollfd, ptr %27, i32 0, i32 2
%29 = load i32, ptr %28, align 4
%30 = load i32, ptr @POLLIN, align 4
%31 = and i32 %29, %30
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %26
store i32 1, ptr %3, align 4
br label %35
34: ; preds = %26
store i32 -1, ptr %3, align 4
br label %35
35: ; preds = %34, %33, %24, %19
%36 = load i32, ptr %3, align 4
ret i32 %36
}
declare i32 @poll(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/tmpylkj8vtg.c"
target datalayout = "e-m:e-p270: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.pollfd = type { i32, i32, i32 }
@POLLIN = dso_local global i32 0, align 4
@ETIMEDOUT = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @qio_wait_readable(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [1 x %struct.pollfd], align 4
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = getelementptr inbounds [1 x %struct.pollfd], ptr %6, i64 0, i64 0
%10 = getelementptr inbounds %struct.pollfd, ptr %9, i32 0, i32 0
store i32 %8, ptr %10, align 4
%11 = load i32, ptr @POLLIN, align 4
%12 = getelementptr inbounds [1 x %struct.pollfd], ptr %6, i64 0, i64 0
%13 = getelementptr inbounds %struct.pollfd, ptr %12, i32 0, i32 1
store i32 %11, ptr %13, align 4
%14 = getelementptr inbounds [1 x %struct.pollfd], ptr %6, i64 0, i64 0
%15 = load i32, ptr %5, align 4
%16 = call i32 @poll(ptr noundef %14, i32 noundef 1, i32 noundef %15)
store i32 %16, ptr %7, align 4
%17 = load i32, ptr %7, align 4
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %2
%20 = load i32, ptr @ETIMEDOUT, align 4
store i32 %20, ptr @errno, align 4
store i32 0, ptr %3, align 4
br label %35
21: ; preds = %2
%22 = load i32, ptr %7, align 4
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %21
store i32 -1, ptr %3, align 4
br label %35
25: ; preds = %21
br label %26
26: ; preds = %25
%27 = getelementptr inbounds [1 x %struct.pollfd], ptr %6, i64 0, i64 0
%28 = getelementptr inbounds %struct.pollfd, ptr %27, i32 0, i32 2
%29 = load i32, ptr %28, align 4
%30 = load i32, ptr @POLLIN, align 4
%31 = and i32 %29, %30
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %26
store i32 1, ptr %3, align 4
br label %35
34: ; preds = %26
store i32 -1, ptr %3, align 4
br label %35
35: ; preds = %34, %33, %24, %19
%36 = load i32, ptr %3, align 4
ret i32 %36
}
declare i32 @poll(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/tmpvjfr6gaj.c'
source_filename = "/tmp/tmpvjfr6gaj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"*Could set slave address to %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @getRH(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca [3 x i32], align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = call i64 @I2C_setSlaveAddress(i32 noundef %5, i32 noundef 64)
%7 = icmp slt i64 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = call i32 @printf(ptr noundef @.str, i32 noundef 64)
%10 = call i32 @exit(i32 noundef 0) #4
unreachable
11: ; preds = %1
%12 = load i32, ptr %2, align 4
%13 = getelementptr inbounds [3 x i32], ptr %3, i64 0, i64 0
%14 = call i32 @I2C_readTransaction(i32 noundef %12, i32 noundef 229, ptr noundef %13, i32 noundef 3)
%15 = getelementptr inbounds [3 x i32], ptr %3, i64 0, i64 0
%16 = load i32, ptr %15, align 4
%17 = shl i32 %16, 8
%18 = getelementptr inbounds [3 x i32], ptr %3, i64 0, i64 1
%19 = load i32, ptr %18, align 4
%20 = or i32 %17, %19
store i32 %20, ptr %4, align 4
%21 = load i32, ptr %4, align 4
%22 = and i32 %21, -4
store i32 %22, ptr %4, align 4
%23 = load i32, ptr %4, align 4
%24 = sitofp i32 %23 to double
%25 = fdiv double %24, 6.553600e+04
%26 = call double @llvm.fmuladd.f64(double 1.250000e+02, double %25, double -6.000000e+00)
%27 = fptrunc double %26 to float
ret float %27
}
declare i64 @I2C_setSlaveAddress(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @I2C_readTransaction(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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/tmpvjfr6gaj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"*Could set slave address to %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @getRH(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca [3 x i32], align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = call i64 @I2C_setSlaveAddress(i32 noundef %5, i32 noundef 64)
%7 = icmp slt i64 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = call i32 @printf(ptr noundef @.str, i32 noundef 64)
%10 = call i32 @exit(i32 noundef 0) #4
unreachable
11: ; preds = %1
%12 = load i32, ptr %2, align 4
%13 = getelementptr inbounds [3 x i32], ptr %3, i64 0, i64 0
%14 = call i32 @I2C_readTransaction(i32 noundef %12, i32 noundef 229, ptr noundef %13, i32 noundef 3)
%15 = getelementptr inbounds [3 x i32], ptr %3, i64 0, i64 0
%16 = load i32, ptr %15, align 4
%17 = shl i32 %16, 8
%18 = getelementptr inbounds [3 x i32], ptr %3, i64 0, i64 1
%19 = load i32, ptr %18, align 4
%20 = or i32 %17, %19
store i32 %20, ptr %4, align 4
%21 = load i32, ptr %4, align 4
%22 = and i32 %21, -4
store i32 %22, ptr %4, align 4
%23 = load i32, ptr %4, align 4
%24 = sitofp i32 %23 to double
%25 = fdiv double %24, 6.553600e+04
%26 = call double @llvm.fmuladd.f64(double 1.250000e+02, double %25, double -6.000000e+00)
%27 = fptrunc double %26 to float
ret float %27
}
declare i64 @I2C_setSlaveAddress(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @I2C_readTransaction(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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/tmpdput9ptn.c'
source_filename = "/tmp/tmpdput9ptn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"UPLOAD_FILENAME\00", align 1
@.str.1 = private unnamed_addr constant [53 x i8] c"Server: %s\0APragma: no-cache\0AContent-type: text/html\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"SERVER_SOFTWARE\00", align 1
@.str.3 = private unnamed_addr constant [197 x i8] c"\0A<html>\0A<head>\0A<TITLE>Import Settings</TITLE>\0A<link rel=stylesheet href=/style/normal_ws.css type=text/css>\0A<meta http-equiv=\22content-type\22 content=\22text/html; charset=iso-8859-1\22>\0A</head>\0A<body> \00", align 1
@.str.4 = private unnamed_addr constant [28 x i8] c"failed, can't get env var.\0A\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"\0D\0A\00", align 1
@.str.6 = private unnamed_addr constant [69 x i8] c"<script>parent.upload_message='Not a valid configuration.';</script>\00", align 1
@.str.7 = private unnamed_addr constant [29 x i8] c"echo 1 > /tmp/uploadConfigOK\00", align 1
@.str.8 = private unnamed_addr constant [32 x i8] c"content-disposition: form-data;\00", align 1
@.str.9 = private unnamed_addr constant [34 x i8] c"dont support multi-field upload.\0A\00", align 1
@.str.10 = private unnamed_addr constant [10 x i8] c"filename=\00", align 1
@.str.11 = private unnamed_addr constant [20 x i8] c"sleep 3 && reboot &\00", align 1
@.str.12 = private unnamed_addr constant [124 x i8] c"</body> <script>function waitingpage(){top.location.href = '/local/advance/proceeding2.asp';}waitingpage();</script></html>\00", align 1
@.str.13 = private unnamed_addr constant [60 x i8] c"<script>parent.reload_configuration_backup_page();</script>\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 ptr, align 8
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = 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
%18 = call ptr @getenv(ptr noundef @.str)
store ptr %18, ptr %12, align 8
%19 = call ptr @getenv(ptr noundef @.str.2)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %19)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%22 = load ptr, ptr %12, align 8
%23 = icmp ne ptr %22, null
br i1 %23, label %26, label %24
24: ; preds = %2
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
ret i32 -1
26: ; preds = %2
store i32 0, ptr %8, align 4
%27 = load ptr, ptr %12, align 8
%28 = load i32, ptr %8, align 4
%29 = call i32 @findStrInFile(ptr noundef %27, i32 noundef %28, ptr noundef @.str.5, i32 noundef 2)
store i32 %29, ptr %9, align 4
%30 = icmp eq i32 %29, -1
br i1 %30, label %31, label %33
31: ; preds = %26
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %143
33: ; preds = %26
%34 = call i32 @system(ptr noundef @.str.7)
%35 = load i32, ptr %9, align 4
%36 = load i32, ptr %8, align 4
%37 = sub nsw i32 %35, %36
store i32 %37, ptr %11, align 4
%38 = load ptr, ptr %12, align 8
%39 = load i32, ptr %8, align 4
%40 = load i32, ptr %11, align 4
%41 = call ptr @getMemInFile(ptr noundef %38, i32 noundef %39, i32 noundef %40)
store ptr %41, ptr %10, align 8
%42 = load i32, ptr %9, align 4
%43 = add nsw i32 %42, 2
store i32 %43, ptr %8, align 4
%44 = load ptr, ptr %12, align 8
%45 = load i32, ptr %8, align 4
%46 = call i32 @findStrInFile(ptr noundef %44, i32 noundef %45, ptr noundef @.str.5, i32 noundef 2)
store i32 %46, ptr %9, align 4
%47 = icmp eq i32 %46, -1
br i1 %47, label %48, label %50
48: ; preds = %33
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %143
50: ; preds = %33
%51 = load ptr, ptr %12, align 8
%52 = load i32, ptr %8, align 4
%53 = load i32, ptr %9, align 4
%54 = load i32, ptr %8, align 4
%55 = sub nsw i32 %53, %54
%56 = call ptr @getMemInFile(ptr noundef %51, i32 noundef %52, i32 noundef %55)
store ptr %56, ptr %15, align 8
%57 = load ptr, ptr %15, align 8
%58 = call i32 @strlen(ptr noundef @.str.8)
%59 = call i64 @strncasecmp(ptr noundef %57, ptr noundef @.str.8, i32 noundef %58)
%60 = icmp ne i64 %59, 0
br i1 %60, label %61, label %63
61: ; preds = %50
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %143
63: ; preds = %50
%64 = load ptr, ptr %15, align 8
%65 = call i32 @strlen(ptr noundef @.str.8)
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i8, ptr %64, i64 %66
%68 = getelementptr inbounds i8, ptr %67, i64 1
store ptr %68, ptr %16, align 8
%69 = load ptr, ptr %16, align 8
%70 = call ptr @strchr(ptr noundef %69, i8 noundef signext 59)
store ptr %70, ptr %16, align 8
%71 = icmp ne ptr %70, null
br i1 %71, label %74, label %72
72: ; preds = %63
%73 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %143
74: ; preds = %63
%75 = load ptr, ptr %16, align 8
%76 = getelementptr inbounds i8, ptr %75, i64 2
store ptr %76, ptr %17, align 8
%77 = load ptr, ptr %17, align 8
%78 = call i32 @strlen(ptr noundef @.str.10)
%79 = call i64 @strncasecmp(ptr noundef %77, ptr noundef @.str.10, i32 noundef %78)
%80 = icmp ne i64 %79, 0
br i1 %80, label %81, label %83
81: ; preds = %74
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %143
83: ; preds = %74
%84 = call i32 @strlen(ptr noundef @.str.10)
%85 = load ptr, ptr %17, align 8
%86 = sext i32 %84 to i64
%87 = getelementptr inbounds i8, ptr %85, i64 %86
store ptr %87, ptr %17, align 8
%88 = load ptr, ptr %15, align 8
%89 = call i32 @free(ptr noundef %88)
%90 = load i32, ptr %9, align 4
%91 = add nsw i32 %90, 2
store i32 %91, ptr %8, align 4
%92 = load ptr, ptr %12, align 8
%93 = load i32, ptr %8, align 4
%94 = call i32 @findStrInFile(ptr noundef %92, i32 noundef %93, ptr noundef @.str.5, i32 noundef 2)
store i32 %94, ptr %9, align 4
%95 = icmp eq i32 %94, -1
br i1 %95, label %96, label %98
96: ; preds = %83
%97 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %143
98: ; preds = %83
%99 = load i32, ptr %9, align 4
%100 = add nsw i32 %99, 2
store i32 %100, ptr %8, align 4
%101 = load ptr, ptr %12, align 8
%102 = load i32, ptr %8, align 4
%103 = call i32 @findStrInFile(ptr noundef %101, i32 noundef %102, ptr noundef @.str.5, i32 noundef 2)
store i32 %103, ptr %9, align 4
%104 = icmp eq i32 %103, -1
br i1 %104, label %105, label %107
105: ; preds = %98
%106 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %143
107: ; preds = %98
%108 = load i32, ptr %9, align 4
%109 = add nsw i32 %108, 2
store i32 %109, ptr %6, align 4
%110 = load ptr, ptr %12, align 8
%111 = load i32, ptr %6, align 4
%112 = load ptr, ptr %10, align 8
%113 = load i32, ptr %11, align 4
%114 = call i32 @findStrInFile(ptr noundef %110, i32 noundef %111, ptr noundef %112, i32 noundef %113)
store i32 %114, ptr %7, align 4
%115 = icmp eq i32 %114, -1
br i1 %115, label %116, label %118
116: ; preds = %107
%117 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %143
118: ; preds = %107
%119 = load i32, ptr %7, align 4
%120 = sub nsw i32 %119, 2
store i32 %120, ptr %7, align 4
%121 = load i32, ptr %7, align 4
%122 = load i32, ptr %6, align 4
%123 = sub nsw i32 %121, %122
store i32 %123, ptr %13, align 4
%124 = load i32, ptr %13, align 4
%125 = icmp sgt i32 %124, 1000000
br i1 %125, label %126, label %128
126: ; preds = %118
%127 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %143
128: ; preds = %118
%129 = load ptr, ptr %12, align 8
%130 = load i32, ptr %6, align 4
%131 = load i32, ptr %7, align 4
%132 = load i32, ptr %6, align 4
%133 = sub nsw i32 %131, %132
%134 = call i32 @import(ptr noundef %129, i32 noundef %130, i32 noundef %133)
store i32 %134, ptr %14, align 4
%135 = load i32, ptr %14, align 4
%136 = icmp ne i32 %135, 0
br i1 %136, label %137, label %139
137: ; preds = %128
%138 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %143
139: ; preds = %128
%140 = call i32 @system(ptr noundef @.str.11)
%141 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
br label %142
142: ; preds = %139
br label %143
143: ; preds = %142, %137, %126, %116, %105, %96, %81, %72, %61, %48, %31
%144 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%145 = load ptr, ptr %10, align 8
%146 = call i32 @free(ptr noundef %145)
%147 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare ptr @getenv(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @findStrInFile(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @system(ptr noundef) #1
declare ptr @getMemInFile(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @strncasecmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @free(ptr noundef) #1
declare i32 @import(ptr noundef, i32 noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdput9ptn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"UPLOAD_FILENAME\00", align 1
@.str.1 = private unnamed_addr constant [53 x i8] c"Server: %s\0APragma: no-cache\0AContent-type: text/html\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"SERVER_SOFTWARE\00", align 1
@.str.3 = private unnamed_addr constant [197 x i8] c"\0A<html>\0A<head>\0A<TITLE>Import Settings</TITLE>\0A<link rel=stylesheet href=/style/normal_ws.css type=text/css>\0A<meta http-equiv=\22content-type\22 content=\22text/html; charset=iso-8859-1\22>\0A</head>\0A<body> \00", align 1
@.str.4 = private unnamed_addr constant [28 x i8] c"failed, can't get env var.\0A\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"\0D\0A\00", align 1
@.str.6 = private unnamed_addr constant [69 x i8] c"<script>parent.upload_message='Not a valid configuration.';</script>\00", align 1
@.str.7 = private unnamed_addr constant [29 x i8] c"echo 1 > /tmp/uploadConfigOK\00", align 1
@.str.8 = private unnamed_addr constant [32 x i8] c"content-disposition: form-data;\00", align 1
@.str.9 = private unnamed_addr constant [34 x i8] c"dont support multi-field upload.\0A\00", align 1
@.str.10 = private unnamed_addr constant [10 x i8] c"filename=\00", align 1
@.str.11 = private unnamed_addr constant [20 x i8] c"sleep 3 && reboot &\00", align 1
@.str.12 = private unnamed_addr constant [124 x i8] c"</body> <script>function waitingpage(){top.location.href = '/local/advance/proceeding2.asp';}waitingpage();</script></html>\00", align 1
@.str.13 = private unnamed_addr constant [60 x i8] c"<script>parent.reload_configuration_backup_page();</script>\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 ptr, align 8
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = 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
%18 = call ptr @getenv(ptr noundef @.str)
store ptr %18, ptr %12, align 8
%19 = call ptr @getenv(ptr noundef @.str.2)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %19)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%22 = load ptr, ptr %12, align 8
%23 = icmp ne ptr %22, null
br i1 %23, label %26, label %24
24: ; preds = %2
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
ret i32 -1
26: ; preds = %2
store i32 0, ptr %8, align 4
%27 = load ptr, ptr %12, align 8
%28 = load i32, ptr %8, align 4
%29 = call i32 @findStrInFile(ptr noundef %27, i32 noundef %28, ptr noundef @.str.5, i32 noundef 2)
store i32 %29, ptr %9, align 4
%30 = icmp eq i32 %29, -1
br i1 %30, label %31, label %33
31: ; preds = %26
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %143
33: ; preds = %26
%34 = call i32 @system(ptr noundef @.str.7)
%35 = load i32, ptr %9, align 4
%36 = load i32, ptr %8, align 4
%37 = sub nsw i32 %35, %36
store i32 %37, ptr %11, align 4
%38 = load ptr, ptr %12, align 8
%39 = load i32, ptr %8, align 4
%40 = load i32, ptr %11, align 4
%41 = call ptr @getMemInFile(ptr noundef %38, i32 noundef %39, i32 noundef %40)
store ptr %41, ptr %10, align 8
%42 = load i32, ptr %9, align 4
%43 = add nsw i32 %42, 2
store i32 %43, ptr %8, align 4
%44 = load ptr, ptr %12, align 8
%45 = load i32, ptr %8, align 4
%46 = call i32 @findStrInFile(ptr noundef %44, i32 noundef %45, ptr noundef @.str.5, i32 noundef 2)
store i32 %46, ptr %9, align 4
%47 = icmp eq i32 %46, -1
br i1 %47, label %48, label %50
48: ; preds = %33
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %143
50: ; preds = %33
%51 = load ptr, ptr %12, align 8
%52 = load i32, ptr %8, align 4
%53 = load i32, ptr %9, align 4
%54 = load i32, ptr %8, align 4
%55 = sub nsw i32 %53, %54
%56 = call ptr @getMemInFile(ptr noundef %51, i32 noundef %52, i32 noundef %55)
store ptr %56, ptr %15, align 8
%57 = load ptr, ptr %15, align 8
%58 = call i32 @strlen(ptr noundef @.str.8)
%59 = call i64 @strncasecmp(ptr noundef %57, ptr noundef @.str.8, i32 noundef %58)
%60 = icmp ne i64 %59, 0
br i1 %60, label %61, label %63
61: ; preds = %50
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %143
63: ; preds = %50
%64 = load ptr, ptr %15, align 8
%65 = call i32 @strlen(ptr noundef @.str.8)
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i8, ptr %64, i64 %66
%68 = getelementptr inbounds i8, ptr %67, i64 1
store ptr %68, ptr %16, align 8
%69 = load ptr, ptr %16, align 8
%70 = call ptr @strchr(ptr noundef %69, i8 noundef signext 59)
store ptr %70, ptr %16, align 8
%71 = icmp ne ptr %70, null
br i1 %71, label %74, label %72
72: ; preds = %63
%73 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %143
74: ; preds = %63
%75 = load ptr, ptr %16, align 8
%76 = getelementptr inbounds i8, ptr %75, i64 2
store ptr %76, ptr %17, align 8
%77 = load ptr, ptr %17, align 8
%78 = call i32 @strlen(ptr noundef @.str.10)
%79 = call i64 @strncasecmp(ptr noundef %77, ptr noundef @.str.10, i32 noundef %78)
%80 = icmp ne i64 %79, 0
br i1 %80, label %81, label %83
81: ; preds = %74
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %143
83: ; preds = %74
%84 = call i32 @strlen(ptr noundef @.str.10)
%85 = load ptr, ptr %17, align 8
%86 = sext i32 %84 to i64
%87 = getelementptr inbounds i8, ptr %85, i64 %86
store ptr %87, ptr %17, align 8
%88 = load ptr, ptr %15, align 8
%89 = call i32 @free(ptr noundef %88)
%90 = load i32, ptr %9, align 4
%91 = add nsw i32 %90, 2
store i32 %91, ptr %8, align 4
%92 = load ptr, ptr %12, align 8
%93 = load i32, ptr %8, align 4
%94 = call i32 @findStrInFile(ptr noundef %92, i32 noundef %93, ptr noundef @.str.5, i32 noundef 2)
store i32 %94, ptr %9, align 4
%95 = icmp eq i32 %94, -1
br i1 %95, label %96, label %98
96: ; preds = %83
%97 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %143
98: ; preds = %83
%99 = load i32, ptr %9, align 4
%100 = add nsw i32 %99, 2
store i32 %100, ptr %8, align 4
%101 = load ptr, ptr %12, align 8
%102 = load i32, ptr %8, align 4
%103 = call i32 @findStrInFile(ptr noundef %101, i32 noundef %102, ptr noundef @.str.5, i32 noundef 2)
store i32 %103, ptr %9, align 4
%104 = icmp eq i32 %103, -1
br i1 %104, label %105, label %107
105: ; preds = %98
%106 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %143
107: ; preds = %98
%108 = load i32, ptr %9, align 4
%109 = add nsw i32 %108, 2
store i32 %109, ptr %6, align 4
%110 = load ptr, ptr %12, align 8
%111 = load i32, ptr %6, align 4
%112 = load ptr, ptr %10, align 8
%113 = load i32, ptr %11, align 4
%114 = call i32 @findStrInFile(ptr noundef %110, i32 noundef %111, ptr noundef %112, i32 noundef %113)
store i32 %114, ptr %7, align 4
%115 = icmp eq i32 %114, -1
br i1 %115, label %116, label %118
116: ; preds = %107
%117 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %143
118: ; preds = %107
%119 = load i32, ptr %7, align 4
%120 = sub nsw i32 %119, 2
store i32 %120, ptr %7, align 4
%121 = load i32, ptr %7, align 4
%122 = load i32, ptr %6, align 4
%123 = sub nsw i32 %121, %122
store i32 %123, ptr %13, align 4
%124 = load i32, ptr %13, align 4
%125 = icmp sgt i32 %124, 1000000
br i1 %125, label %126, label %128
126: ; preds = %118
%127 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %143
128: ; preds = %118
%129 = load ptr, ptr %12, align 8
%130 = load i32, ptr %6, align 4
%131 = load i32, ptr %7, align 4
%132 = load i32, ptr %6, align 4
%133 = sub nsw i32 %131, %132
%134 = call i32 @import(ptr noundef %129, i32 noundef %130, i32 noundef %133)
store i32 %134, ptr %14, align 4
%135 = load i32, ptr %14, align 4
%136 = icmp ne i32 %135, 0
br i1 %136, label %137, label %139
137: ; preds = %128
%138 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %143
139: ; preds = %128
%140 = call i32 @system(ptr noundef @.str.11)
%141 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
br label %142
142: ; preds = %139
br label %143
143: ; preds = %142, %137, %126, %116, %105, %96, %81, %72, %61, %48, %31
%144 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%145 = load ptr, ptr %10, align 8
%146 = call i32 @free(ptr noundef %145)
%147 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare ptr @getenv(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @findStrInFile(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @system(ptr noundef) #1
declare ptr @getMemInFile(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @strncasecmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @free(ptr noundef) #1
declare i32 @import(ptr noundef, i32 noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzrcuoyjy.c'
source_filename = "/tmp/tmpzrcuoyjy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @blinkS() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %2
2: ; preds = %5, %0
%3 = load i32, ptr %1, align 4
%4 = icmp ne i32 %3, 3
br i1 %4, label %5, label %9
5: ; preds = %2
%6 = call i32 (...) @blinkdot()
%7 = load i32, ptr %1, align 4
%8 = add nsw i32 %7, 1
store i32 %8, ptr %1, align 4
br label %2, !llvm.loop !6
9: ; preds = %2
%10 = call i32 @sleep(double noundef 1.500000e+00)
ret i32 0
}
declare i32 @blinkdot(...) #1
declare i32 @sleep(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzrcuoyjy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @blinkS() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = load i32, ptr %1, align 4
%3 = icmp ne i32 %2, 3
br i1 %3, label %.lr.ph, label %10
.lr.ph: ; preds = %0
br label %4
4: ; preds = %.lr.ph, %4
%5 = call i32 (...) @blinkdot()
%6 = load i32, ptr %1, align 4
%7 = add nsw i32 %6, 1
store i32 %7, ptr %1, align 4
%8 = load i32, ptr %1, align 4
%9 = icmp ne i32 %8, 3
br i1 %9, label %4, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %4
br label %10
10: ; preds = %._crit_edge, %0
%11 = call i32 @sleep(double noundef 1.500000e+00)
ret i32 0
}
declare i32 @blinkdot(...) #1
declare i32 @sleep(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp89p7_5py.c'
source_filename = "/tmp/tmp89p7_5py.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @string_vprintf(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%8 = load ptr, ptr %4, align 8
%9 = call i32 @string_destroy(ptr noundef %8)
%10 = load ptr, ptr %4, align 8
%11 = load ptr, ptr %5, align 8
%12 = load i32, ptr %6, align 4
%13 = call i64 @vasprintf(ptr noundef %10, ptr noundef %11, i32 noundef %12)
store i64 %13, ptr %7, align 8
%14 = icmp ult i64 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %3
%16 = load ptr, ptr %4, align 8
%17 = call i32 @string_destroy(ptr noundef %16)
store i64 0, ptr %7, align 8
br label %18
18: ; preds = %15, %3
%19 = load i64, ptr %7, align 8
ret i64 %19
}
declare i32 @string_destroy(ptr noundef) #1
declare i64 @vasprintf(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/tmp89p7_5py.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @string_vprintf(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%8 = load ptr, ptr %4, align 8
%9 = call i32 @string_destroy(ptr noundef %8)
%10 = load ptr, ptr %4, align 8
%11 = load ptr, ptr %5, align 8
%12 = load i32, ptr %6, align 4
%13 = call i64 @vasprintf(ptr noundef %10, ptr noundef %11, i32 noundef %12)
store i64 %13, ptr %7, align 8
%14 = icmp ult i64 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %3
%16 = load ptr, ptr %4, align 8
%17 = call i32 @string_destroy(ptr noundef %16)
store i64 0, ptr %7, align 8
br label %18
18: ; preds = %15, %3
%19 = load i64, ptr %7, align 8
ret i64 %19
}
declare i32 @string_destroy(ptr noundef) #1
declare i64 @vasprintf(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/tmpv1fmad5i.c'
source_filename = "/tmp/tmpv1fmad5i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @intersect_tri_with_line(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%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 [9 x double], align 16
%13 = alloca [9 x double], align 16
%14 = alloca [3 x double], align 16
%15 = alloca [3 x double], align 16
%16 = alloca i32, align 4
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store i32 0, ptr %16, align 4
%20 = load ptr, ptr %7, align 8
store ptr %20, ptr %17, align 8
%21 = load ptr, ptr %7, align 8
%22 = getelementptr inbounds double, ptr %21, i64 3
store ptr %22, ptr %18, align 8
%23 = load ptr, ptr %7, align 8
%24 = getelementptr inbounds double, ptr %23, i64 6
store ptr %24, ptr %19, align 8
%25 = load ptr, ptr %8, align 8
%26 = getelementptr inbounds double, ptr %25, i64 0
%27 = load double, ptr %26, align 8
%28 = load ptr, ptr %9, align 8
%29 = getelementptr inbounds double, ptr %28, i64 0
%30 = load double, ptr %29, align 8
%31 = fsub double %27, %30
%32 = getelementptr inbounds [9 x double], ptr %12, i64 0, i64 0
store double %31, ptr %32, align 16
%33 = load ptr, ptr %18, align 8
%34 = getelementptr inbounds double, ptr %33, i64 0
%35 = load double, ptr %34, align 8
%36 = load ptr, ptr %17, align 8
%37 = getelementptr inbounds double, ptr %36, i64 0
%38 = load double, ptr %37, align 8
%39 = fsub double %35, %38
%40 = getelementptr inbounds [9 x double], ptr %12, i64 0, i64 1
store double %39, ptr %40, align 8
%41 = load ptr, ptr %19, align 8
%42 = getelementptr inbounds double, ptr %41, i64 0
%43 = load double, ptr %42, align 8
%44 = load ptr, ptr %17, align 8
%45 = getelementptr inbounds double, ptr %44, i64 0
%46 = load double, ptr %45, align 8
%47 = fsub double %43, %46
%48 = getelementptr inbounds [9 x double], ptr %12, i64 0, i64 2
store double %47, ptr %48, align 16
%49 = load ptr, ptr %8, align 8
%50 = getelementptr inbounds double, ptr %49, i64 1
%51 = load double, ptr %50, align 8
%52 = load ptr, ptr %9, align 8
%53 = getelementptr inbounds double, ptr %52, i64 1
%54 = load double, ptr %53, align 8
%55 = fsub double %51, %54
%56 = getelementptr inbounds [9 x double], ptr %12, i64 0, i64 3
store double %55, ptr %56, align 8
%57 = load ptr, ptr %18, align 8
%58 = getelementptr inbounds double, ptr %57, i64 1
%59 = load double, ptr %58, align 8
%60 = load ptr, ptr %17, align 8
%61 = getelementptr inbounds double, ptr %60, i64 1
%62 = load double, ptr %61, align 8
%63 = fsub double %59, %62
%64 = getelementptr inbounds [9 x double], ptr %12, i64 0, i64 4
store double %63, ptr %64, align 16
%65 = load ptr, ptr %19, align 8
%66 = getelementptr inbounds double, ptr %65, i64 1
%67 = load double, ptr %66, align 8
%68 = load ptr, ptr %17, align 8
%69 = getelementptr inbounds double, ptr %68, i64 1
%70 = load double, ptr %69, align 8
%71 = fsub double %67, %70
%72 = getelementptr inbounds [9 x double], ptr %12, i64 0, i64 5
store double %71, ptr %72, align 8
%73 = load ptr, ptr %8, align 8
%74 = getelementptr inbounds double, ptr %73, i64 2
%75 = load double, ptr %74, align 8
%76 = load ptr, ptr %9, align 8
%77 = getelementptr inbounds double, ptr %76, i64 2
%78 = load double, ptr %77, align 8
%79 = fsub double %75, %78
%80 = getelementptr inbounds [9 x double], ptr %12, i64 0, i64 6
store double %79, ptr %80, align 16
%81 = load ptr, ptr %18, align 8
%82 = getelementptr inbounds double, ptr %81, i64 2
%83 = load double, ptr %82, align 8
%84 = load ptr, ptr %17, align 8
%85 = getelementptr inbounds double, ptr %84, i64 2
%86 = load double, ptr %85, align 8
%87 = fsub double %83, %86
%88 = getelementptr inbounds [9 x double], ptr %12, i64 0, i64 7
store double %87, ptr %88, align 8
%89 = load ptr, ptr %19, align 8
%90 = getelementptr inbounds double, ptr %89, i64 2
%91 = load double, ptr %90, align 8
%92 = load ptr, ptr %17, align 8
%93 = getelementptr inbounds double, ptr %92, i64 2
%94 = load double, ptr %93, align 8
%95 = fsub double %91, %94
%96 = getelementptr inbounds [9 x double], ptr %12, i64 0, i64 8
store double %95, ptr %96, align 16
%97 = getelementptr inbounds [9 x double], ptr %12, i64 0, i64 0
%98 = getelementptr inbounds [9 x double], ptr %13, i64 0, i64 0
%99 = call i32 @invert_matrix_3x3(ptr noundef %97, ptr noundef %98)
store i32 %99, ptr %16, align 4
%100 = load i32, ptr %16, align 4
%101 = icmp ne i32 %100, 0
br i1 %101, label %103, label %102
102: ; preds = %5
store i32 0, ptr %6, align 4
br label %143
103: ; preds = %5
%104 = load ptr, ptr %8, align 8
%105 = getelementptr inbounds double, ptr %104, i64 0
%106 = load double, ptr %105, align 8
%107 = load ptr, ptr %17, align 8
%108 = getelementptr inbounds double, ptr %107, i64 0
%109 = load double, ptr %108, align 8
%110 = fsub double %106, %109
%111 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 0
store double %110, ptr %111, align 16
%112 = load ptr, ptr %8, align 8
%113 = getelementptr inbounds double, ptr %112, i64 1
%114 = load double, ptr %113, align 8
%115 = load ptr, ptr %17, align 8
%116 = getelementptr inbounds double, ptr %115, i64 1
%117 = load double, ptr %116, align 8
%118 = fsub double %114, %117
%119 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 1
store double %118, ptr %119, align 8
%120 = load ptr, ptr %8, align 8
%121 = getelementptr inbounds double, ptr %120, i64 2
%122 = load double, ptr %121, align 8
%123 = load ptr, ptr %17, align 8
%124 = getelementptr inbounds double, ptr %123, i64 2
%125 = load double, ptr %124, align 8
%126 = fsub double %122, %125
%127 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 2
store double %126, ptr %127, align 16
%128 = getelementptr inbounds [9 x double], ptr %13, i64 0, i64 0
%129 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 0
%130 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 0
%131 = call i32 @mult(ptr noundef %128, ptr noundef %129, ptr noundef %130)
%132 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 0
%133 = load double, ptr %132, align 16
%134 = load ptr, ptr %11, align 8
store double %133, ptr %134, align 8
%135 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 1
%136 = load double, ptr %135, align 8
%137 = load ptr, ptr %10, align 8
%138 = getelementptr inbounds double, ptr %137, i64 0
store double %136, ptr %138, align 8
%139 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 2
%140 = load double, ptr %139, align 16
%141 = load ptr, ptr %10, align 8
%142 = getelementptr inbounds double, ptr %141, i64 1
store double %140, ptr %142, align 8
store i32 1, ptr %6, align 4
br label %143
143: ; preds = %103, %102
%144 = load i32, ptr %6, align 4
ret i32 %144
}
declare i32 @invert_matrix_3x3(ptr noundef, ptr noundef) #1
declare i32 @mult(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/tmpv1fmad5i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @intersect_tri_with_line(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%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 [9 x double], align 16
%13 = alloca [9 x double], align 16
%14 = alloca [3 x double], align 16
%15 = alloca [3 x double], align 16
%16 = alloca i32, align 4
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store i32 0, ptr %16, align 4
%20 = load ptr, ptr %7, align 8
store ptr %20, ptr %17, align 8
%21 = load ptr, ptr %7, align 8
%22 = getelementptr inbounds double, ptr %21, i64 3
store ptr %22, ptr %18, align 8
%23 = load ptr, ptr %7, align 8
%24 = getelementptr inbounds double, ptr %23, i64 6
store ptr %24, ptr %19, align 8
%25 = load ptr, ptr %8, align 8
%26 = getelementptr inbounds double, ptr %25, i64 0
%27 = load double, ptr %26, align 8
%28 = load ptr, ptr %9, align 8
%29 = getelementptr inbounds double, ptr %28, i64 0
%30 = load double, ptr %29, align 8
%31 = fsub double %27, %30
%32 = getelementptr inbounds [9 x double], ptr %12, i64 0, i64 0
store double %31, ptr %32, align 16
%33 = load ptr, ptr %18, align 8
%34 = getelementptr inbounds double, ptr %33, i64 0
%35 = load double, ptr %34, align 8
%36 = load ptr, ptr %17, align 8
%37 = getelementptr inbounds double, ptr %36, i64 0
%38 = load double, ptr %37, align 8
%39 = fsub double %35, %38
%40 = getelementptr inbounds [9 x double], ptr %12, i64 0, i64 1
store double %39, ptr %40, align 8
%41 = load ptr, ptr %19, align 8
%42 = getelementptr inbounds double, ptr %41, i64 0
%43 = load double, ptr %42, align 8
%44 = load ptr, ptr %17, align 8
%45 = getelementptr inbounds double, ptr %44, i64 0
%46 = load double, ptr %45, align 8
%47 = fsub double %43, %46
%48 = getelementptr inbounds [9 x double], ptr %12, i64 0, i64 2
store double %47, ptr %48, align 16
%49 = load ptr, ptr %8, align 8
%50 = getelementptr inbounds double, ptr %49, i64 1
%51 = load double, ptr %50, align 8
%52 = load ptr, ptr %9, align 8
%53 = getelementptr inbounds double, ptr %52, i64 1
%54 = load double, ptr %53, align 8
%55 = fsub double %51, %54
%56 = getelementptr inbounds [9 x double], ptr %12, i64 0, i64 3
store double %55, ptr %56, align 8
%57 = load ptr, ptr %18, align 8
%58 = getelementptr inbounds double, ptr %57, i64 1
%59 = load double, ptr %58, align 8
%60 = load ptr, ptr %17, align 8
%61 = getelementptr inbounds double, ptr %60, i64 1
%62 = load double, ptr %61, align 8
%63 = fsub double %59, %62
%64 = getelementptr inbounds [9 x double], ptr %12, i64 0, i64 4
store double %63, ptr %64, align 16
%65 = load ptr, ptr %19, align 8
%66 = getelementptr inbounds double, ptr %65, i64 1
%67 = load double, ptr %66, align 8
%68 = load ptr, ptr %17, align 8
%69 = getelementptr inbounds double, ptr %68, i64 1
%70 = load double, ptr %69, align 8
%71 = fsub double %67, %70
%72 = getelementptr inbounds [9 x double], ptr %12, i64 0, i64 5
store double %71, ptr %72, align 8
%73 = load ptr, ptr %8, align 8
%74 = getelementptr inbounds double, ptr %73, i64 2
%75 = load double, ptr %74, align 8
%76 = load ptr, ptr %9, align 8
%77 = getelementptr inbounds double, ptr %76, i64 2
%78 = load double, ptr %77, align 8
%79 = fsub double %75, %78
%80 = getelementptr inbounds [9 x double], ptr %12, i64 0, i64 6
store double %79, ptr %80, align 16
%81 = load ptr, ptr %18, align 8
%82 = getelementptr inbounds double, ptr %81, i64 2
%83 = load double, ptr %82, align 8
%84 = load ptr, ptr %17, align 8
%85 = getelementptr inbounds double, ptr %84, i64 2
%86 = load double, ptr %85, align 8
%87 = fsub double %83, %86
%88 = getelementptr inbounds [9 x double], ptr %12, i64 0, i64 7
store double %87, ptr %88, align 8
%89 = load ptr, ptr %19, align 8
%90 = getelementptr inbounds double, ptr %89, i64 2
%91 = load double, ptr %90, align 8
%92 = load ptr, ptr %17, align 8
%93 = getelementptr inbounds double, ptr %92, i64 2
%94 = load double, ptr %93, align 8
%95 = fsub double %91, %94
%96 = getelementptr inbounds [9 x double], ptr %12, i64 0, i64 8
store double %95, ptr %96, align 16
%97 = getelementptr inbounds [9 x double], ptr %12, i64 0, i64 0
%98 = getelementptr inbounds [9 x double], ptr %13, i64 0, i64 0
%99 = call i32 @invert_matrix_3x3(ptr noundef %97, ptr noundef %98)
store i32 %99, ptr %16, align 4
%100 = load i32, ptr %16, align 4
%101 = icmp ne i32 %100, 0
br i1 %101, label %103, label %102
102: ; preds = %5
store i32 0, ptr %6, align 4
br label %143
103: ; preds = %5
%104 = load ptr, ptr %8, align 8
%105 = getelementptr inbounds double, ptr %104, i64 0
%106 = load double, ptr %105, align 8
%107 = load ptr, ptr %17, align 8
%108 = getelementptr inbounds double, ptr %107, i64 0
%109 = load double, ptr %108, align 8
%110 = fsub double %106, %109
%111 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 0
store double %110, ptr %111, align 16
%112 = load ptr, ptr %8, align 8
%113 = getelementptr inbounds double, ptr %112, i64 1
%114 = load double, ptr %113, align 8
%115 = load ptr, ptr %17, align 8
%116 = getelementptr inbounds double, ptr %115, i64 1
%117 = load double, ptr %116, align 8
%118 = fsub double %114, %117
%119 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 1
store double %118, ptr %119, align 8
%120 = load ptr, ptr %8, align 8
%121 = getelementptr inbounds double, ptr %120, i64 2
%122 = load double, ptr %121, align 8
%123 = load ptr, ptr %17, align 8
%124 = getelementptr inbounds double, ptr %123, i64 2
%125 = load double, ptr %124, align 8
%126 = fsub double %122, %125
%127 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 2
store double %126, ptr %127, align 16
%128 = getelementptr inbounds [9 x double], ptr %13, i64 0, i64 0
%129 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 0
%130 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 0
%131 = call i32 @mult(ptr noundef %128, ptr noundef %129, ptr noundef %130)
%132 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 0
%133 = load double, ptr %132, align 16
%134 = load ptr, ptr %11, align 8
store double %133, ptr %134, align 8
%135 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 1
%136 = load double, ptr %135, align 8
%137 = load ptr, ptr %10, align 8
%138 = getelementptr inbounds double, ptr %137, i64 0
store double %136, ptr %138, align 8
%139 = getelementptr inbounds [3 x double], ptr %15, i64 0, i64 2
%140 = load double, ptr %139, align 16
%141 = load ptr, ptr %10, align 8
%142 = getelementptr inbounds double, ptr %141, i64 1
store double %140, ptr %142, align 8
store i32 1, ptr %6, align 4
br label %143
143: ; preds = %103, %102
%144 = load i32, ptr %6, align 4
ret i32 %144
}
declare i32 @invert_matrix_3x3(ptr noundef, ptr noundef) #1
declare i32 @mult(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/tmpiu_mvlye.c'
source_filename = "/tmp/tmpiu_mvlye.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rotate_right(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
%9 = icmp ne ptr %8, null
%10 = zext i1 %9 to i32
%11 = call i32 @assert(i32 noundef %10)
store i32 32, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = zext i32 %12 to i64
%14 = load i64, ptr %4, align 8
%15 = urem i64 %14, %13
store i64 %15, ptr %4, align 8
%16 = load i64, ptr %4, align 8
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %2
br label %46
19: ; preds = %2
%20 = load i32, ptr %5, align 4
%21 = zext i32 %20 to i64
%22 = load i64, ptr %4, align 8
%23 = sub i64 %21, %22
%24 = trunc i64 %23 to i32
%25 = ashr i32 -1, %24
store i32 %25, ptr %6, align 4
%26 = load ptr, ptr %3, align 8
%27 = load i32, ptr %26, align 4
%28 = load i32, ptr %6, align 4
%29 = and i32 %27, %28
store i32 %29, ptr %7, align 4
%30 = load i32, ptr %5, align 4
%31 = zext i32 %30 to i64
%32 = load i64, ptr %4, align 8
%33 = sub i64 %31, %32
%34 = load i32, ptr %7, align 4
%35 = trunc i64 %33 to i32
%36 = shl i32 %34, %35
store i32 %36, ptr %7, align 4
%37 = load i64, ptr %4, align 8
%38 = load ptr, ptr %3, align 8
%39 = load i32, ptr %38, align 4
%40 = trunc i64 %37 to i32
%41 = lshr i32 %39, %40
store i32 %41, ptr %38, align 4
%42 = load i32, ptr %7, align 4
%43 = load ptr, ptr %3, align 8
%44 = load i32, ptr %43, align 4
%45 = or i32 %44, %42
store i32 %45, ptr %43, align 4
br label %46
46: ; preds = %19, %18
ret void
}
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/tmpiu_mvlye.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rotate_right(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
%9 = icmp ne ptr %8, null
%10 = zext i1 %9 to i32
%11 = call i32 @assert(i32 noundef %10)
store i32 32, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = zext i32 %12 to i64
%14 = load i64, ptr %4, align 8
%15 = urem i64 %14, %13
store i64 %15, ptr %4, align 8
%16 = load i64, ptr %4, align 8
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %2
br label %46
19: ; preds = %2
%20 = load i32, ptr %5, align 4
%21 = zext i32 %20 to i64
%22 = load i64, ptr %4, align 8
%23 = sub i64 %21, %22
%24 = trunc i64 %23 to i32
%25 = ashr i32 -1, %24
store i32 %25, ptr %6, align 4
%26 = load ptr, ptr %3, align 8
%27 = load i32, ptr %26, align 4
%28 = load i32, ptr %6, align 4
%29 = and i32 %27, %28
store i32 %29, ptr %7, align 4
%30 = load i32, ptr %5, align 4
%31 = zext i32 %30 to i64
%32 = load i64, ptr %4, align 8
%33 = sub i64 %31, %32
%34 = load i32, ptr %7, align 4
%35 = trunc i64 %33 to i32
%36 = shl i32 %34, %35
store i32 %36, ptr %7, align 4
%37 = load i64, ptr %4, align 8
%38 = load ptr, ptr %3, align 8
%39 = load i32, ptr %38, align 4
%40 = trunc i64 %37 to i32
%41 = lshr i32 %39, %40
store i32 %41, ptr %38, align 4
%42 = load i32, ptr %7, align 4
%43 = load ptr, ptr %3, align 8
%44 = load i32, ptr %43, align 4
%45 = or i32 %44, %42
store i32 %45, ptr %43, align 4
br label %46
46: ; preds = %19, %18
ret void
}
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/tmpkrokmdgr.c'
source_filename = "/tmp/tmpkrokmdgr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pthread_create(ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null)
ret i32 0
}
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkrokmdgr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pthread_create(ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null)
ret i32 0
}
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjjvd5rbs.c'
source_filename = "/tmp/tmpjjvd5rbs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"AMF\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @amf_application_init() #0 {
%1 = call i32 @log_init(ptr noundef @.str)
ret void
}
declare i32 @log_init(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjjvd5rbs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"AMF\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @amf_application_init() #0 {
%1 = call i32 @log_init(ptr noundef @.str)
ret void
}
declare i32 @log_init(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpa891c7wi.c'
source_filename = "/tmp/tmpa891c7wi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"You will only have one argument.\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"Here is your arguments:\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"You have too many arguments.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %38
11: ; preds = %2
%12 = load i32, ptr %4, align 4
%13 = icmp sgt i32 %12, 1
br i1 %13, label %14, label %35
14: ; preds = %11
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %15, 4
br i1 %16, label %17, label %35
17: ; preds = %14
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 1, ptr %6, align 4
br label %19
19: ; preds = %31, %17
%20 = load i32, ptr %6, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %34
23: ; preds = %19
%24 = load ptr, ptr %5, align 8
%25 = load i32, ptr %6, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %24, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %28)
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %31
31: ; preds = %23
%32 = load i32, ptr %6, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %6, align 4
br label %19, !llvm.loop !6
34: ; preds = %19
br label %37
35: ; preds = %14, %11
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %37
37: ; preds = %35, %34
br label %38
38: ; preds = %37, %9
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa891c7wi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"You will only have one argument.\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"Here is your arguments:\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"You have too many arguments.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %40
11: ; preds = %2
%12 = load i32, ptr %4, align 4
%13 = icmp sgt i32 %12, 1
br i1 %13, label %14, label %37
14: ; preds = %11
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %15, 4
br i1 %16, label %17, label %37
17: ; preds = %14
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 1, ptr %6, align 4
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %.lr.ph, label %36
.lr.ph: ; preds = %17
br label %22
22: ; preds = %.lr.ph, %30
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %6, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %23, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %27)
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %30
30: ; preds = %22
%31 = load i32, ptr %6, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %6, align 4
%33 = load i32, ptr %6, align 4
%34 = load i32, ptr %4, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %36
36: ; preds = %._crit_edge, %17
br label %39
37: ; preds = %14, %11
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %39
39: ; preds = %37, %36
br label %40
40: ; preds = %39, %9
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpz7iragiz.c'
source_filename = "/tmp/tmpz7iragiz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @b4_BE_to_uint32(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = getelementptr inbounds i32, ptr %4, i64 0
%6 = load i32, ptr %5, align 4
%7 = shl i32 %6, 24
%8 = load ptr, ptr %2, align 8
%9 = getelementptr inbounds i32, ptr %8, i64 1
%10 = load i32, ptr %9, align 4
%11 = shl i32 %10, 16
%12 = or i32 %7, %11
%13 = load ptr, ptr %2, align 8
%14 = getelementptr inbounds i32, ptr %13, i64 2
%15 = load i32, ptr %14, align 4
%16 = shl i32 %15, 8
%17 = or i32 %12, %16
%18 = load ptr, ptr %2, align 8
%19 = getelementptr inbounds i32, ptr %18, i64 3
%20 = load i32, ptr %19, align 4
%21 = or i32 %17, %20
store i32 %21, ptr %3, align 4
%22 = load i32, ptr %3, align 4
ret i32 %22
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz7iragiz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @b4_BE_to_uint32(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = getelementptr inbounds i32, ptr %4, i64 0
%6 = load i32, ptr %5, align 4
%7 = shl i32 %6, 24
%8 = load ptr, ptr %2, align 8
%9 = getelementptr inbounds i32, ptr %8, i64 1
%10 = load i32, ptr %9, align 4
%11 = shl i32 %10, 16
%12 = or i32 %7, %11
%13 = load ptr, ptr %2, align 8
%14 = getelementptr inbounds i32, ptr %13, i64 2
%15 = load i32, ptr %14, align 4
%16 = shl i32 %15, 8
%17 = or i32 %12, %16
%18 = load ptr, ptr %2, align 8
%19 = getelementptr inbounds i32, ptr %18, i64 3
%20 = load i32, ptr %19, align 4
%21 = or i32 %17, %20
store i32 %21, ptr %3, align 4
%22 = load i32, ptr %3, align 4
ret i32 %22
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptp_rlasl.c'
source_filename = "/tmp/tmptp_rlasl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%[^\0A]s\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%d \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [160 x i8], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
%5 = getelementptr inbounds [160 x i8], ptr %4, i64 0, i64 0
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %5)
store i32 0, ptr %2, align 4
br label %7
7: ; preds = %20, %0
%8 = load i32, ptr %2, align 4
%9 = getelementptr inbounds [160 x i8], ptr %4, i64 0, i64 0
%10 = call i32 @strlen(ptr noundef %9)
%11 = icmp slt i32 %8, %10
br i1 %11, label %12, label %23
12: ; preds = %7
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %2, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [160 x i8], ptr %4, i64 0, i64 %15
%17 = load i8, ptr %16, align 1
%18 = call i32 @key_sum(i8 noundef signext %17)
%19 = add nsw i32 %13, %18
store i32 %19, ptr %3, align 4
br label %20
20: ; preds = %12
%21 = load i32, ptr %2, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %2, align 4
br label %7, !llvm.loop !6
23: ; preds = %7
%24 = load i32, ptr %3, align 4
%25 = call i32 @printf(ptr noundef @.str.1, i32 noundef %24)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @key_sum(i8 noundef signext) #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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptp_rlasl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%[^\0A]s\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%d \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [160 x i8], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
%5 = getelementptr inbounds [160 x i8], ptr %4, i64 0, i64 0
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %5)
store i32 0, ptr %2, align 4
%7 = load i32, ptr %2, align 4
%8 = getelementptr inbounds [160 x i8], ptr %4, i64 0, i64 0
%9 = call i32 @strlen(ptr noundef %8)
%10 = icmp slt i32 %7, %9
br i1 %10, label %.lr.ph, label %25
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %19
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %2, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [160 x i8], ptr %4, i64 0, i64 %14
%16 = load i8, ptr %15, align 1
%17 = call i32 @key_sum(i8 noundef signext %16)
%18 = add nsw i32 %12, %17
store i32 %18, ptr %3, align 4
br label %19
19: ; preds = %11
%20 = load i32, ptr %2, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %2, align 4
%22 = load i32, ptr %2, align 4
%23 = call i32 @strlen(ptr noundef %8)
%24 = icmp slt i32 %22, %23
br i1 %24, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %25
25: ; preds = %._crit_edge, %0
%26 = load i32, ptr %3, align 4
%27 = call i32 @printf(ptr noundef @.str.1, i32 noundef %26)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @key_sum(i8 noundef signext) #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"}
|
; ModuleID = '/tmp/tmpb1pfunhz.c'
source_filename = "/tmp/tmpb1pfunhz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Not enough memory.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @realloc_or_die(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load i64, ptr %4, align 8
%8 = call ptr @realloc(ptr noundef %6, i64 noundef %7) #3
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %15
11: ; preds = %2
%12 = load ptr, ptr %3, align 8
%13 = call i32 @free(ptr noundef %12)
%14 = call i32 @die(ptr noundef @.str)
br label %15
15: ; preds = %11, %2
%16 = load ptr, ptr %5, align 8
ret ptr %16
}
; Function Attrs: allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #1
declare i32 @free(ptr noundef) #2
declare i32 @die(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { allocsize(1) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { allocsize(1) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb1pfunhz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Not enough memory.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @realloc_or_die(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load i64, ptr %4, align 8
%8 = call ptr @realloc(ptr noundef %6, i64 noundef %7) #3
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %15
11: ; preds = %2
%12 = load ptr, ptr %3, align 8
%13 = call i32 @free(ptr noundef %12)
%14 = call i32 @die(ptr noundef @.str)
br label %15
15: ; preds = %11, %2
%16 = load ptr, ptr %5, align 8
ret ptr %16
}
; Function Attrs: allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #1
declare i32 @free(ptr noundef) #2
declare i32 @die(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { allocsize(1) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { allocsize(1) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppg288yi4.c'
source_filename = "/tmp/tmppg288yi4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INT_MAX = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [2 x i8] c",\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"-\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [18 x i8] c"Invalid value %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"Value %s larger than max %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [21 x i8] c"Invalid range %s-%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @parse_list(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca i64, align 8
%21 = alloca i64, align 8
%22 = alloca i32, align 4
%23 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%24 = load ptr, ptr %6, align 8
%25 = call i32 @strlen(ptr noundef %24)
%26 = add nsw i32 %25, 1
%27 = zext i32 %26 to i64
%28 = call ptr @llvm.stacksave()
store ptr %28, ptr %10, align 8
%29 = alloca i8, i64 %27, align 16
store i64 %27, ptr %11, align 8
store ptr null, ptr %14, align 8
%30 = load i32, ptr %7, align 4
%31 = load i32, ptr @INT_MAX, align 4
%32 = icmp slt i32 %30, %31
%33 = zext i1 %32 to i32
%34 = call i32 @assert(i32 noundef %33)
%35 = load ptr, ptr %6, align 8
%36 = call i32 @strcpy(ptr noundef %29, ptr noundef %35)
store ptr %29, ptr %13, align 8
br label %37
37: ; preds = %124, %4
%38 = load ptr, ptr %13, align 8
%39 = call ptr @strtok_r(ptr noundef %38, ptr noundef @.str, ptr noundef %14)
store ptr %39, ptr %12, align 8
%40 = icmp ne ptr %39, null
br i1 %40, label %41, label %125
41: ; preds = %37
store ptr null, ptr %19, align 8
%42 = load ptr, ptr %12, align 8
%43 = call ptr @strtok_r(ptr noundef %42, ptr noundef @.str.1, ptr noundef %19)
store ptr %43, ptr %16, align 8
%44 = load ptr, ptr %16, align 8
%45 = icmp eq ptr %44, null
br i1 %45, label %46, label %47
46: ; preds = %41
store i32 0, ptr %5, align 4
store i32 1, ptr %22, align 4
br label %151
47: ; preds = %41
store ptr null, ptr %18, align 8
%48 = load ptr, ptr %16, align 8
%49 = call i64 @strtoul(ptr noundef %48, ptr noundef %18, i32 noundef 0)
store i64 %49, ptr %20, align 8
%50 = load ptr, ptr %18, align 8
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %58
54: ; preds = %47
%55 = load i32, ptr @stderr, align 4
%56 = load ptr, ptr %16, align 8
%57 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %55, ptr noundef @.str.2, ptr noundef %56)
store i32 0, ptr %5, align 4
store i32 1, ptr %22, align 4
br label %151
58: ; preds = %47
%59 = load i64, ptr %20, align 8
%60 = load i32, ptr %7, align 4
%61 = sext i32 %60 to i64
%62 = icmp uge i64 %59, %61
br i1 %62, label %63, label %69
63: ; preds = %58
%64 = load i32, ptr @stderr, align 4
%65 = load ptr, ptr %16, align 8
%66 = load i32, ptr %7, align 4
%67 = sub nsw i32 %66, 1
%68 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %64, ptr noundef @.str.3, ptr noundef %65, i32 noundef %67)
store i32 0, ptr %5, align 4
store i32 1, ptr %22, align 4
br label %151
69: ; preds = %58
br label %70
70: ; preds = %69
%71 = call ptr @strtok_r(ptr noundef null, ptr noundef @.str.1, ptr noundef %19)
store ptr %71, ptr %17, align 8
%72 = load ptr, ptr %17, align 8
%73 = icmp eq ptr %72, null
br i1 %73, label %74, label %76
74: ; preds = %70
%75 = load i64, ptr %20, align 8
store i64 %75, ptr %21, align 8
br label %99
76: ; preds = %70
store ptr null, ptr %18, align 8
%77 = load ptr, ptr %17, align 8
%78 = call i64 @strtoul(ptr noundef %77, ptr noundef %18, i32 noundef 0)
store i64 %78, ptr %21, align 8
%79 = load ptr, ptr %18, align 8
%80 = load i8, ptr %79, align 1
%81 = sext i8 %80 to i32
%82 = icmp ne i32 %81, 0
br i1 %82, label %83, label %87
83: ; preds = %76
%84 = load i32, ptr @stderr, align 4
%85 = load ptr, ptr %17, align 8
%86 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %84, ptr noundef @.str.2, ptr noundef %85)
store i32 0, ptr %5, align 4
store i32 1, ptr %22, align 4
br label %151
87: ; preds = %76
%88 = load i64, ptr %21, align 8
%89 = load i32, ptr %7, align 4
%90 = sext i32 %89 to i64
%91 = icmp uge i64 %88, %90
br i1 %91, label %92, label %98
92: ; preds = %87
%93 = load i32, ptr @stderr, align 4
%94 = load ptr, ptr %17, align 8
%95 = load i32, ptr %7, align 4
%96 = sub nsw i32 %95, 1
%97 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %93, ptr noundef @.str.3, ptr noundef %94, i32 noundef %96)
store i32 0, ptr %5, align 4
store i32 1, ptr %22, align 4
br label %151
98: ; preds = %87
br label %99
99: ; preds = %98, %74
%100 = load i64, ptr %20, align 8
%101 = load i64, ptr %21, align 8
%102 = icmp ugt i64 %100, %101
br i1 %102, label %103, label %108
103: ; preds = %99
%104 = load i32, ptr @stderr, align 4
%105 = load ptr, ptr %16, align 8
%106 = load ptr, ptr %17, align 8
%107 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %104, ptr noundef @.str.4, ptr noundef %105, ptr noundef %106)
store i32 0, ptr %5, align 4
store i32 1, ptr %22, align 4
br label %151
108: ; preds = %99
%109 = load i64, ptr %20, align 8
%110 = trunc i64 %109 to i32
store i32 %110, ptr %15, align 4
br label %111
111: ; preds = %121, %108
%112 = load i32, ptr %15, align 4
%113 = sext i32 %112 to i64
%114 = load i64, ptr %21, align 8
%115 = icmp ule i64 %113, %114
br i1 %115, label %116, label %124
116: ; preds = %111
%117 = load ptr, ptr %8, align 8
%118 = load i32, ptr %15, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds i32, ptr %117, i64 %119
store i32 1, ptr %120, align 4
br label %121
121: ; preds = %116
%122 = load i32, ptr %15, align 4
%123 = add nsw i32 %122, 1
store i32 %123, ptr %15, align 4
br label %111, !llvm.loop !6
124: ; preds = %111
store ptr null, ptr %13, align 8
br label %37, !llvm.loop !8
125: ; preds = %37
%126 = load ptr, ptr %9, align 8
%127 = icmp ne ptr %126, null
br i1 %127, label %128, label %150
128: ; preds = %125
store i32 0, ptr %23, align 4
store i32 0, ptr %15, align 4
br label %129
129: ; preds = %144, %128
%130 = load i32, ptr %15, align 4
%131 = load i32, ptr %7, align 4
%132 = icmp slt i32 %130, %131
br i1 %132, label %133, label %147
133: ; preds = %129
%134 = load ptr, ptr %8, align 8
%135 = load i32, ptr %15, align 4
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds i32, ptr %134, i64 %136
%138 = load i32, ptr %137, align 4
%139 = icmp eq i32 %138, 1
br i1 %139, label %140, label %143
140: ; preds = %133
%141 = load i32, ptr %23, align 4
%142 = add nsw i32 %141, 1
store i32 %142, ptr %23, align 4
br label %143
143: ; preds = %140, %133
br label %144
144: ; preds = %143
%145 = load i32, ptr %15, align 4
%146 = add nsw i32 %145, 1
store i32 %146, ptr %15, align 4
br label %129, !llvm.loop !9
147: ; preds = %129
%148 = load i32, ptr %23, align 4
%149 = load ptr, ptr %9, align 8
store i32 %148, ptr %149, align 4
br label %150
150: ; preds = %147, %125
store i32 1, ptr %5, align 4
store i32 1, ptr %22, align 4
br label %151
151: ; preds = %150, %103, %92, %83, %63, %54, %46
%152 = load ptr, ptr %10, align 8
call void @llvm.stackrestore(ptr %152)
%153 = load i32, ptr %5, align 4
ret i32 %153
}
declare i32 @strlen(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @assert(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare ptr @strtok_r(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @strtoul(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, 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 }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmppg288yi4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INT_MAX = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [2 x i8] c",\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"-\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [18 x i8] c"Invalid value %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"Value %s larger than max %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [21 x i8] c"Invalid range %s-%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @parse_list(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca i64, align 8
%21 = alloca i64, align 8
%22 = alloca i32, align 4
%23 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%24 = load ptr, ptr %6, align 8
%25 = call i32 @strlen(ptr noundef %24)
%26 = add nsw i32 %25, 1
%27 = zext i32 %26 to i64
%28 = call ptr @llvm.stacksave()
store ptr %28, ptr %10, align 8
%29 = alloca i8, i64 %27, align 16
store i64 %27, ptr %11, align 8
store ptr null, ptr %14, align 8
%30 = load i32, ptr %7, align 4
%31 = load i32, ptr @INT_MAX, align 4
%32 = icmp slt i32 %30, %31
%33 = zext i1 %32 to i32
%34 = call i32 @assert(i32 noundef %33)
%35 = load ptr, ptr %6, align 8
%36 = call i32 @strcpy(ptr noundef %29, ptr noundef %35)
store ptr %29, ptr %13, align 8
%37 = load ptr, ptr %13, align 8
%38 = call ptr @strtok_r(ptr noundef %37, ptr noundef @.str, ptr noundef %14)
store ptr %38, ptr %12, align 8
%39 = icmp ne ptr %38, null
br i1 %39, label %.lr.ph2, label %130
.lr.ph2: ; preds = %4
br label %40
40: ; preds = %.lr.ph2, %126
store ptr null, ptr %19, align 8
%41 = load ptr, ptr %12, align 8
%42 = call ptr @strtok_r(ptr noundef %41, ptr noundef @.str.1, ptr noundef %19)
store ptr %42, ptr %16, align 8
%43 = load ptr, ptr %16, align 8
%44 = icmp eq ptr %43, null
br i1 %44, label %45, label %46
45: ; preds = %40
store i32 0, ptr %5, align 4
store i32 1, ptr %22, align 4
br label %158
46: ; preds = %40
store ptr null, ptr %18, align 8
%47 = load ptr, ptr %16, align 8
%48 = call i64 @strtoul(ptr noundef %47, ptr noundef %18, i32 noundef 0)
store i64 %48, ptr %20, align 8
%49 = load ptr, ptr %18, align 8
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = icmp ne i32 %51, 0
br i1 %52, label %53, label %57
53: ; preds = %46
%54 = load i32, ptr @stderr, align 4
%55 = load ptr, ptr %16, align 8
%56 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %54, ptr noundef @.str.2, ptr noundef %55)
store i32 0, ptr %5, align 4
store i32 1, ptr %22, align 4
br label %158
57: ; preds = %46
%58 = load i64, ptr %20, align 8
%59 = load i32, ptr %7, align 4
%60 = sext i32 %59 to i64
%61 = icmp uge i64 %58, %60
br i1 %61, label %62, label %68
62: ; preds = %57
%63 = load i32, ptr @stderr, align 4
%64 = load ptr, ptr %16, align 8
%65 = load i32, ptr %7, align 4
%66 = sub nsw i32 %65, 1
%67 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %63, ptr noundef @.str.3, ptr noundef %64, i32 noundef %66)
store i32 0, ptr %5, align 4
store i32 1, ptr %22, align 4
br label %158
68: ; preds = %57
br label %69
69: ; preds = %68
%70 = call ptr @strtok_r(ptr noundef null, ptr noundef @.str.1, ptr noundef %19)
store ptr %70, ptr %17, align 8
%71 = load ptr, ptr %17, align 8
%72 = icmp eq ptr %71, null
br i1 %72, label %73, label %75
73: ; preds = %69
%74 = load i64, ptr %20, align 8
store i64 %74, ptr %21, align 8
br label %98
75: ; preds = %69
store ptr null, ptr %18, align 8
%76 = load ptr, ptr %17, align 8
%77 = call i64 @strtoul(ptr noundef %76, ptr noundef %18, i32 noundef 0)
store i64 %77, ptr %21, align 8
%78 = load ptr, ptr %18, align 8
%79 = load i8, ptr %78, align 1
%80 = sext i8 %79 to i32
%81 = icmp ne i32 %80, 0
br i1 %81, label %82, label %86
82: ; preds = %75
%83 = load i32, ptr @stderr, align 4
%84 = load ptr, ptr %17, align 8
%85 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %83, ptr noundef @.str.2, ptr noundef %84)
store i32 0, ptr %5, align 4
store i32 1, ptr %22, align 4
br label %158
86: ; preds = %75
%87 = load i64, ptr %21, align 8
%88 = load i32, ptr %7, align 4
%89 = sext i32 %88 to i64
%90 = icmp uge i64 %87, %89
br i1 %90, label %91, label %97
91: ; preds = %86
%92 = load i32, ptr @stderr, align 4
%93 = load ptr, ptr %17, align 8
%94 = load i32, ptr %7, align 4
%95 = sub nsw i32 %94, 1
%96 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %92, ptr noundef @.str.3, ptr noundef %93, i32 noundef %95)
store i32 0, ptr %5, align 4
store i32 1, ptr %22, align 4
br label %158
97: ; preds = %86
br label %98
98: ; preds = %97, %73
%99 = load i64, ptr %20, align 8
%100 = load i64, ptr %21, align 8
%101 = icmp ugt i64 %99, %100
br i1 %101, label %102, label %107
102: ; preds = %98
%103 = load i32, ptr @stderr, align 4
%104 = load ptr, ptr %16, align 8
%105 = load ptr, ptr %17, align 8
%106 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %103, ptr noundef @.str.4, ptr noundef %104, ptr noundef %105)
store i32 0, ptr %5, align 4
store i32 1, ptr %22, align 4
br label %158
107: ; preds = %98
%108 = load i64, ptr %20, align 8
%109 = trunc i64 %108 to i32
store i32 %109, ptr %15, align 4
%110 = load i32, ptr %15, align 4
%111 = sext i32 %110 to i64
%112 = load i64, ptr %21, align 8
%113 = icmp ule i64 %111, %112
br i1 %113, label %.lr.ph, label %126
.lr.ph: ; preds = %107
br label %114
114: ; preds = %.lr.ph, %119
%115 = load ptr, ptr %8, align 8
%116 = load i32, ptr %15, align 4
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds i32, ptr %115, i64 %117
store i32 1, ptr %118, align 4
br label %119
119: ; preds = %114
%120 = load i32, ptr %15, align 4
%121 = add nsw i32 %120, 1
store i32 %121, ptr %15, align 4
%122 = load i32, ptr %15, align 4
%123 = sext i32 %122 to i64
%124 = load i64, ptr %21, align 8
%125 = icmp ule i64 %123, %124
br i1 %125, label %114, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %119
br label %126
126: ; preds = %._crit_edge, %107
store ptr null, ptr %13, align 8
%127 = load ptr, ptr %13, align 8
%128 = call ptr @strtok_r(ptr noundef %127, ptr noundef @.str, ptr noundef %14)
store ptr %128, ptr %12, align 8
%129 = icmp ne ptr %128, null
br i1 %129, label %40, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %126
br label %130
130: ; preds = %._crit_edge3, %4
%131 = load ptr, ptr %9, align 8
%132 = icmp ne ptr %131, null
br i1 %132, label %133, label %157
133: ; preds = %130
store i32 0, ptr %23, align 4
store i32 0, ptr %15, align 4
%134 = load i32, ptr %15, align 4
%135 = load i32, ptr %7, align 4
%136 = icmp slt i32 %134, %135
br i1 %136, label %.lr.ph5, label %154
.lr.ph5: ; preds = %133
br label %137
137: ; preds = %.lr.ph5, %148
%138 = load ptr, ptr %8, align 8
%139 = load i32, ptr %15, align 4
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds i32, ptr %138, i64 %140
%142 = load i32, ptr %141, align 4
%143 = icmp eq i32 %142, 1
br i1 %143, label %144, label %147
144: ; preds = %137
%145 = load i32, ptr %23, align 4
%146 = add nsw i32 %145, 1
store i32 %146, ptr %23, align 4
br label %147
147: ; preds = %144, %137
br label %148
148: ; preds = %147
%149 = load i32, ptr %15, align 4
%150 = add nsw i32 %149, 1
store i32 %150, ptr %15, align 4
%151 = load i32, ptr %15, align 4
%152 = load i32, ptr %7, align 4
%153 = icmp slt i32 %151, %152
br i1 %153, label %137, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %148
br label %154
154: ; preds = %._crit_edge6, %133
%155 = load i32, ptr %23, align 4
%156 = load ptr, ptr %9, align 8
store i32 %155, ptr %156, align 4
br label %157
157: ; preds = %154, %130
store i32 1, ptr %5, align 4
store i32 1, ptr %22, align 4
br label %158
158: ; preds = %157, %102, %91, %82, %62, %53, %45
%159 = load ptr, ptr %10, align 8
call void @llvm.stackrestore(ptr %159)
%160 = load i32, ptr %5, align 4
ret i32 %160
}
declare i32 @strlen(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @assert(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare ptr @strtok_r(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @strtoul(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, 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 }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpwupwecjp.c'
source_filename = "/tmp/tmpwupwecjp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@optarg = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getOpt(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = getelementptr inbounds i8, ptr %5, i64 0
%7 = load i8, ptr %6, align 1
%8 = sext i8 %7 to i32
%9 = icmp eq i32 %8, 48
br i1 %9, label %10, label %20
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 1
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 120
br i1 %15, label %16, label %20
16: ; preds = %10
%17 = load ptr, ptr %3, align 8
%18 = getelementptr inbounds i8, ptr %17, i64 2
%19 = call i32 @strtoul(ptr noundef %18, ptr noundef %4, i32 noundef 16)
store i32 %19, ptr %2, align 4
br label %39
20: ; preds = %10, %1
%21 = load ptr, ptr %3, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 0
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 48
br i1 %25, label %26, label %36
26: ; preds = %20
%27 = load ptr, ptr %3, align 8
%28 = getelementptr inbounds i8, ptr %27, i64 1
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 98
br i1 %31, label %32, label %36
32: ; preds = %26
%33 = load ptr, ptr %3, align 8
%34 = getelementptr inbounds i8, ptr %33, i64 2
%35 = call i32 @strtoul(ptr noundef %34, ptr noundef %4, i32 noundef 2)
store i32 %35, ptr %2, align 4
br label %39
36: ; preds = %26, %20
%37 = load i32, ptr @optarg, align 4
%38 = call i32 @atof(i32 noundef %37)
store i32 %38, ptr %2, align 4
br label %39
39: ; preds = %36, %32, %16
%40 = load i32, ptr %2, align 4
ret i32 %40
}
declare i32 @strtoul(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @atof(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/tmpwupwecjp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@optarg = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getOpt(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = getelementptr inbounds i8, ptr %5, i64 0
%7 = load i8, ptr %6, align 1
%8 = sext i8 %7 to i32
%9 = icmp eq i32 %8, 48
br i1 %9, label %10, label %20
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 1
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 120
br i1 %15, label %16, label %20
16: ; preds = %10
%17 = load ptr, ptr %3, align 8
%18 = getelementptr inbounds i8, ptr %17, i64 2
%19 = call i32 @strtoul(ptr noundef %18, ptr noundef %4, i32 noundef 16)
store i32 %19, ptr %2, align 4
br label %39
20: ; preds = %10, %1
%21 = load ptr, ptr %3, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 0
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 48
br i1 %25, label %26, label %36
26: ; preds = %20
%27 = load ptr, ptr %3, align 8
%28 = getelementptr inbounds i8, ptr %27, i64 1
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 98
br i1 %31, label %32, label %36
32: ; preds = %26
%33 = load ptr, ptr %3, align 8
%34 = getelementptr inbounds i8, ptr %33, i64 2
%35 = call i32 @strtoul(ptr noundef %34, ptr noundef %4, i32 noundef 2)
store i32 %35, ptr %2, align 4
br label %39
36: ; preds = %26, %20
%37 = load i32, ptr @optarg, align 4
%38 = call i32 @atof(i32 noundef %37)
store i32 %38, ptr %2, align 4
br label %39
39: ; preds = %36, %32, %16
%40 = load i32, ptr %2, align 4
ret i32 %40
}
declare i32 @strtoul(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @atof(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/tmpsi00ebvd.c'
source_filename = "/tmp/tmpsi00ebvd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @xvsnprintf(ptr noalias noundef %0, i64 noundef %1, ptr noalias noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%10 = load ptr, ptr %5, align 8
%11 = load i64, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = load i32, ptr %8, align 4
%14 = call i32 @vsnprintf(ptr noundef %10, i64 noundef %11, ptr noundef %12, i32 noundef %13)
store i32 %14, ptr %9, align 4
%15 = load i32, ptr %9, align 4
%16 = icmp slt i32 %15, 0
br i1 %16, label %22, label %17
17: ; preds = %4
%18 = load i32, ptr %9, align 4
%19 = sext i32 %18 to i64
%20 = load i64, ptr %6, align 8
%21 = icmp uge i64 %19, %20
br i1 %21, label %22, label %24
22: ; preds = %17, %4
%23 = call i32 (...) @abort() #3
unreachable
24: ; preds = %17
%25 = load i32, ptr %9, align 4
ret i32 %25
}
declare i32 @vsnprintf(ptr noundef, i64 noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsi00ebvd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @xvsnprintf(ptr noalias noundef %0, i64 noundef %1, ptr noalias noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%10 = load ptr, ptr %5, align 8
%11 = load i64, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = load i32, ptr %8, align 4
%14 = call i32 @vsnprintf(ptr noundef %10, i64 noundef %11, ptr noundef %12, i32 noundef %13)
store i32 %14, ptr %9, align 4
%15 = load i32, ptr %9, align 4
%16 = icmp slt i32 %15, 0
br i1 %16, label %22, label %17
17: ; preds = %4
%18 = load i32, ptr %9, align 4
%19 = sext i32 %18 to i64
%20 = load i64, ptr %6, align 8
%21 = icmp uge i64 %19, %20
br i1 %21, label %22, label %24
22: ; preds = %17, %4
%23 = call i32 (...) @abort() #3
unreachable
24: ; preds = %17
%25 = load i32, ptr %9, align 4
ret i32 %25
}
declare i32 @vsnprintf(ptr noundef, i64 noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpifujnmlh.c'
source_filename = "/tmp/tmpifujnmlh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_in_array(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %25, %2
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds ptr, ptr %8, i64 %10
%12 = load ptr, ptr %11, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %28
14: ; preds = %7
%15 = load ptr, ptr %4, align 8
%16 = load ptr, ptr %5, align 8
%17 = load i32, ptr %6, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds ptr, ptr %16, i64 %18
%20 = load ptr, ptr %19, align 8
%21 = call i64 @strcmp(ptr noundef %15, ptr noundef %20)
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %14
store i32 1, ptr %3, align 4
br label %29
24: ; preds = %14
br label %25
25: ; preds = %24
%26 = load i32, ptr %6, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %6, align 4
br label %7, !llvm.loop !6
28: ; preds = %7
store i32 0, ptr %3, align 4
br label %29
29: ; preds = %28, %23
%30 = load i32, ptr %3, align 4
ret i32 %30
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpifujnmlh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_in_array(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = load ptr, ptr %5, align 8
%8 = load i32, ptr %6, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds ptr, ptr %7, i64 %9
%11 = load ptr, ptr %10, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %.lr.ph, label %33
.lr.ph: ; preds = %2
br label %13
13: ; preds = %.lr.ph, %24
%14 = load ptr, ptr %4, align 8
%15 = load ptr, ptr %5, align 8
%16 = load i32, ptr %6, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds ptr, ptr %15, i64 %17
%19 = load ptr, ptr %18, align 8
%20 = call i64 @strcmp(ptr noundef %14, ptr noundef %19)
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %13
store i32 1, ptr %3, align 4
br label %34
23: ; preds = %13
br label %24
24: ; preds = %23
%25 = load i32, ptr %6, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %6, align 4
%27 = load ptr, ptr %5, align 8
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds ptr, ptr %27, i64 %29
%31 = load ptr, ptr %30, align 8
%32 = icmp ne ptr %31, null
br i1 %32, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %33
33: ; preds = %._crit_edge, %2
store i32 0, ptr %3, align 4
br label %34
34: ; preds = %33, %22
%35 = load i32, ptr %3, align 4
ret i32 %35
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpz2pz040z.c'
source_filename = "/tmp/tmpz2pz040z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@EBADF = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [22 x i8] c"Got EBADF when fd=-1\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"Test PASSED\0A\00", align 1
@.str.2 = private unnamed_addr constant [36 x i8] c"Test FAILED: Expect EBADF, get: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 -1, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @fsync(i32 noundef %3)
%5 = icmp eq i32 %4, -1
br i1 %5, label %6, label %14
6: ; preds = %0
%7 = load i64, ptr @errno, align 8
%8 = load i64, ptr @EBADF, align 8
%9 = icmp eq i64 %7, %8
br i1 %9, label %10, label %14
10: ; preds = %6
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%13 = call i32 @exit(i32 noundef 0) #3
unreachable
14: ; preds = %6, %0
%15 = load i64, ptr @errno, align 8
%16 = call ptr @strerror(i64 noundef %15)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %16)
%18 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fsync(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @strerror(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" }
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/tmpz2pz040z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@EBADF = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [22 x i8] c"Got EBADF when fd=-1\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"Test PASSED\0A\00", align 1
@.str.2 = private unnamed_addr constant [36 x i8] c"Test FAILED: Expect EBADF, get: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 -1, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @fsync(i32 noundef %3)
%5 = icmp eq i32 %4, -1
br i1 %5, label %6, label %14
6: ; preds = %0
%7 = load i64, ptr @errno, align 8
%8 = load i64, ptr @EBADF, align 8
%9 = icmp eq i64 %7, %8
br i1 %9, label %10, label %14
10: ; preds = %6
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%13 = call i32 @exit(i32 noundef 0) #3
unreachable
14: ; preds = %6, %0
%15 = load i64, ptr @errno, align 8
%16 = call ptr @strerror(i64 noundef %15)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %16)
%18 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fsync(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @strerror(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" }
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/tmpheosq0ip.c'
source_filename = "/tmp/tmpheosq0ip.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Suma: %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
store i32 0, ptr %3, align 4
%5 = call i32 @wczytaj_liczbe_calkowita(ptr noundef %2)
store i32 1, ptr %4, align 4
br label %6
6: ; preds = %10, %0
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp sle i32 %7, %8
br i1 %9, label %10, label %16
10: ; preds = %6
%11 = load i32, ptr %4, align 4
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %12, %11
store i32 %13, ptr %3, align 4
%14 = load i32, ptr %4, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %4, align 4
br label %6, !llvm.loop !6
16: ; preds = %6
%17 = load i32, ptr %3, align 4
%18 = call i32 @printf(ptr noundef @.str, i32 noundef %17)
%19 = load i32, ptr %1, align 4
ret i32 %19
}
declare i32 @wczytaj_liczbe_calkowita(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpheosq0ip.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Suma: %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
store i32 0, ptr %3, align 4
%5 = call i32 @wczytaj_liczbe_calkowita(ptr noundef %2)
store i32 1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = load i32, ptr %2, align 4
%8 = icmp sle i32 %6, %7
br i1 %8, label %.lr.ph, label %18
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %9
%10 = load i32, ptr %4, align 4
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %11, %10
store i32 %12, ptr %3, align 4
%13 = load i32, ptr %4, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %4, align 4
%15 = load i32, ptr %4, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp sle i32 %15, %16
br i1 %17, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %18
18: ; preds = %._crit_edge, %0
%19 = load i32, ptr %3, align 4
%20 = call i32 @printf(ptr noundef @.str, i32 noundef %19)
%21 = load i32, ptr %1, align 4
ret i32 %21
}
declare i32 @wczytaj_liczbe_calkowita(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp2iqmd3k_.c'
source_filename = "/tmp/tmp2iqmd3k_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rtrim_chars(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call ptr @_trim(ptr noundef %5, ptr noundef %6, i32 noundef 2)
ret ptr %7
}
declare ptr @_trim(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/tmp2iqmd3k_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rtrim_chars(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call ptr @_trim(ptr noundef %5, ptr noundef %6, i32 noundef 2)
ret ptr %7
}
declare ptr @_trim(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/tmpe56rpffk.c'
source_filename = "/tmp/tmpe56rpffk.c"
target datalayout = "e-m:e-p270: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 [42 x i8] c"[No further output means we're allright]\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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 100, ptr %6, align 4
%8 = load i32, ptr @stderr, align 4
%9 = call i32 @fprintf(i32 noundef %8, ptr noundef @.str)
store i32 0, ptr %7, align 4
br label %10
10: ; preds = %20, %2
%11 = load i32, ptr %7, align 4
%12 = load i32, ptr %6, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %23
14: ; preds = %10
%15 = call i64 (...) @fork()
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %14
%18 = call i32 (...) @task()
br label %19
19: ; preds = %17, %14
br label %20
20: ; preds = %19
%21 = load i32, ptr %7, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %7, align 4
br label %10, !llvm.loop !6
23: ; preds = %10
store i32 0, ptr %7, align 4
br label %24
24: ; preds = %30, %23
%25 = load i32, ptr %7, align 4
%26 = load i32, ptr %6, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %33
28: ; preds = %24
%29 = call i32 @wait(ptr noundef null)
br label %30
30: ; preds = %28
%31 = load i32, ptr %7, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %7, align 4
br label %24, !llvm.loop !8
33: ; preds = %24
%34 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i64 @fork(...) #1
declare i32 @task(...) #1
declare i32 @wait(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe56rpffk.c"
target datalayout = "e-m:e-p270: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 [42 x i8] c"[No further output means we're allright]\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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 100, ptr %6, align 4
%8 = load i32, ptr @stderr, align 4
%9 = call i32 @fprintf(i32 noundef %8, ptr noundef @.str)
store i32 0, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph, label %25
.lr.ph: ; preds = %2
br label %13
13: ; preds = %.lr.ph, %19
%14 = call i64 (...) @fork()
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 (...) @task()
br label %18
18: ; preds = %16, %13
br label %19
19: ; preds = %18
%20 = load i32, ptr %7, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %7, align 4
%22 = load i32, ptr %7, align 4
%23 = load i32, ptr %6, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %25
25: ; preds = %._crit_edge, %2
store i32 0, ptr %7, align 4
%26 = load i32, ptr %7, align 4
%27 = load i32, ptr %6, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %.lr.ph2, label %37
.lr.ph2: ; preds = %25
br label %29
29: ; preds = %.lr.ph2, %31
%30 = call i32 @wait(ptr noundef null)
br label %31
31: ; preds = %29
%32 = load i32, ptr %7, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %7, align 4
%34 = load i32, ptr %7, align 4
%35 = load i32, ptr %6, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %29, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %31
br label %37
37: ; preds = %._crit_edge3, %25
%38 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i64 @fork(...) #1
declare i32 @task(...) #1
declare i32 @wait(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpctws1yyv.c'
source_filename = "/tmp/tmpctws1yyv.c"
target datalayout = "e-m:e-p270: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/tmpctws1yyv.c"
target datalayout = "e-m:e-p270: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/tmp46ur0y13.c'
source_filename = "/tmp/tmp46ur0y13.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter the number of elements \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Enter the elements \00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"Sorted array :\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%10 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%11 = load i32, ptr %2, align 4
%12 = zext i32 %11 to i64
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %3, align 8
%14 = alloca i32, i64 %12, align 16
store i64 %12, ptr %4, align 8
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %5, align 4
br label %16
16: ; preds = %25, %0
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %2, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %28
20: ; preds = %16
%21 = load i32, ptr %5, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %14, i64 %22
%24 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %23)
br label %25
25: ; preds = %20
%26 = load i32, ptr %5, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %5, align 4
br label %16, !llvm.loop !6
28: ; preds = %16
store i32 1, ptr %6, align 4
store i32 0, ptr %7, align 4
%29 = load i32, ptr %2, align 4
%30 = sub nsw i32 %29, 1
store i32 %30, ptr %8, align 4
br label %31
31: ; preds = %99, %28
%32 = load i32, ptr %6, align 4
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %102
34: ; preds = %31
store i32 0, ptr %6, align 4
%35 = load i32, ptr %7, align 4
store i32 %35, ptr %5, align 4
br label %36
36: ; preds = %61, %34
%37 = load i32, ptr %5, align 4
%38 = load i32, ptr %8, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %40, label %64
40: ; preds = %36
%41 = load i32, ptr %5, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %14, i64 %42
%44 = load i32, ptr %43, align 4
%45 = load i32, ptr %5, align 4
%46 = add nsw i32 %45, 1
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i32, ptr %14, i64 %47
%49 = load i32, ptr %48, align 4
%50 = icmp sgt i32 %44, %49
br i1 %50, label %51, label %60
51: ; preds = %40
%52 = load i32, ptr %5, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i32, ptr %14, i64 %53
%55 = load i32, ptr %5, align 4
%56 = add nsw i32 %55, 1
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i32, ptr %14, i64 %57
%59 = call i32 @swap(ptr noundef %54, ptr noundef %58)
store i32 1, ptr %6, align 4
br label %60
60: ; preds = %51, %40
br label %61
61: ; preds = %60
%62 = load i32, ptr %5, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %5, align 4
br label %36, !llvm.loop !8
64: ; preds = %36
%65 = load i32, ptr %6, align 4
%66 = icmp ne i32 %65, 0
br i1 %66, label %68, label %67
67: ; preds = %64
br label %102
68: ; preds = %64
store i32 0, ptr %6, align 4
%69 = load i32, ptr %8, align 4
%70 = sub nsw i32 %69, 1
store i32 %70, ptr %5, align 4
br label %71
71: ; preds = %96, %68
%72 = load i32, ptr %5, align 4
%73 = load i32, ptr %7, align 4
%74 = icmp sge i32 %72, %73
br i1 %74, label %75, label %99
75: ; preds = %71
%76 = load i32, ptr %5, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i32, ptr %14, i64 %77
%79 = load i32, ptr %78, align 4
%80 = load i32, ptr %5, align 4
%81 = add nsw i32 %80, 1
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i32, ptr %14, i64 %82
%84 = load i32, ptr %83, align 4
%85 = icmp sgt i32 %79, %84
br i1 %85, label %86, label %95
86: ; preds = %75
%87 = load i32, ptr %5, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i32, ptr %14, i64 %88
%90 = load i32, ptr %5, align 4
%91 = add nsw i32 %90, 1
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i32, ptr %14, i64 %92
%94 = call i32 @swap(ptr noundef %89, ptr noundef %93)
store i32 1, ptr %6, align 4
br label %95
95: ; preds = %86, %75
br label %96
96: ; preds = %95
%97 = load i32, ptr %5, align 4
%98 = add nsw i32 %97, -1
store i32 %98, ptr %5, align 4
br label %71, !llvm.loop !9
99: ; preds = %71
%100 = load i32, ptr %7, align 4
%101 = add nsw i32 %100, 1
store i32 %101, ptr %7, align 4
br label %31, !llvm.loop !10
102: ; preds = %67, %31
%103 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %5, align 4
br label %104
104: ; preds = %114, %102
%105 = load i32, ptr %5, align 4
%106 = load i32, ptr %2, align 4
%107 = icmp slt i32 %105, %106
br i1 %107, label %108, label %117
108: ; preds = %104
%109 = load i32, ptr %5, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i32, ptr %14, i64 %110
%112 = load i32, ptr %111, align 4
%113 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %112)
br label %114
114: ; preds = %108
%115 = load i32, ptr %5, align 4
%116 = add nsw i32 %115, 1
store i32 %116, ptr %5, align 4
br label %104, !llvm.loop !11
117: ; preds = %104
%118 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 0, ptr %1, align 4
%119 = load ptr, ptr %3, align 8
call void @llvm.stackrestore(ptr %119)
%120 = load i32, ptr %1, align 4
ret i32 %120
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @swap(ptr noundef, 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 }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp46ur0y13.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter the number of elements \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Enter the elements \00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"Sorted array :\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%10 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%11 = load i32, ptr %2, align 4
%12 = zext i32 %11 to i64
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %3, align 8
%14 = alloca i32, i64 %12, align 16
store i64 %12, ptr %4, align 8
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %5, align 4
%16 = load i32, ptr %5, align 4
%17 = load i32, ptr %2, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %.lr.ph, label %30
.lr.ph: ; preds = %0
br label %19
19: ; preds = %.lr.ph, %24
%20 = load i32, ptr %5, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, ptr %14, i64 %21
%23 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %22)
br label %24
24: ; preds = %19
%25 = load i32, ptr %5, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %5, align 4
%27 = load i32, ptr %5, align 4
%28 = load i32, ptr %2, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %30
30: ; preds = %._crit_edge, %0
store i32 1, ptr %6, align 4
store i32 0, ptr %7, align 4
%31 = load i32, ptr %2, align 4
%32 = sub nsw i32 %31, 1
store i32 %32, ptr %8, align 4
%33 = load i32, ptr %6, align 4
%34 = icmp ne i32 %33, 0
br i1 %34, label %.lr.ph8, label %.loopexit
.lr.ph8: ; preds = %30
br label %35
35: ; preds = %.lr.ph8, %104
store i32 0, ptr %6, align 4
%36 = load i32, ptr %7, align 4
store i32 %36, ptr %5, align 4
%37 = load i32, ptr %5, align 4
%38 = load i32, ptr %8, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %.lr.ph2, label %67
.lr.ph2: ; preds = %35
br label %40
40: ; preds = %.lr.ph2, %61
%41 = load i32, ptr %5, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %14, i64 %42
%44 = load i32, ptr %43, align 4
%45 = load i32, ptr %5, align 4
%46 = add nsw i32 %45, 1
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i32, ptr %14, i64 %47
%49 = load i32, ptr %48, align 4
%50 = icmp sgt i32 %44, %49
br i1 %50, label %51, label %60
51: ; preds = %40
%52 = load i32, ptr %5, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i32, ptr %14, i64 %53
%55 = load i32, ptr %5, align 4
%56 = add nsw i32 %55, 1
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i32, ptr %14, i64 %57
%59 = call i32 @swap(ptr noundef %54, ptr noundef %58)
store i32 1, ptr %6, align 4
br label %60
60: ; preds = %51, %40
br label %61
61: ; preds = %60
%62 = load i32, ptr %5, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %5, align 4
%64 = load i32, ptr %5, align 4
%65 = load i32, ptr %8, align 4
%66 = icmp slt i32 %64, %65
br i1 %66, label %40, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %61
br label %67
67: ; preds = %._crit_edge3, %35
%68 = load i32, ptr %6, align 4
%69 = icmp ne i32 %68, 0
br i1 %69, label %71, label %70
70: ; preds = %67
br label %109
71: ; preds = %67
store i32 0, ptr %6, align 4
%72 = load i32, ptr %8, align 4
%73 = sub nsw i32 %72, 1
store i32 %73, ptr %5, align 4
%74 = load i32, ptr %5, align 4
%75 = load i32, ptr %7, align 4
%76 = icmp sge i32 %74, %75
br i1 %76, label %.lr.ph5, label %104
.lr.ph5: ; preds = %71
br label %77
77: ; preds = %.lr.ph5, %98
%78 = load i32, ptr %5, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i32, ptr %14, i64 %79
%81 = load i32, ptr %80, align 4
%82 = load i32, ptr %5, align 4
%83 = add nsw i32 %82, 1
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i32, ptr %14, i64 %84
%86 = load i32, ptr %85, align 4
%87 = icmp sgt i32 %81, %86
br i1 %87, label %88, label %97
88: ; preds = %77
%89 = load i32, ptr %5, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i32, ptr %14, i64 %90
%92 = load i32, ptr %5, align 4
%93 = add nsw i32 %92, 1
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds i32, ptr %14, i64 %94
%96 = call i32 @swap(ptr noundef %91, ptr noundef %95)
store i32 1, ptr %6, align 4
br label %97
97: ; preds = %88, %77
br label %98
98: ; preds = %97
%99 = load i32, ptr %5, align 4
%100 = add nsw i32 %99, -1
store i32 %100, ptr %5, align 4
%101 = load i32, ptr %5, align 4
%102 = load i32, ptr %7, align 4
%103 = icmp sge i32 %101, %102
br i1 %103, label %77, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %98
br label %104
104: ; preds = %._crit_edge6, %71
%105 = load i32, ptr %7, align 4
%106 = add nsw i32 %105, 1
store i32 %106, ptr %7, align 4
%107 = load i32, ptr %6, align 4
%108 = icmp ne i32 %107, 0
br i1 %108, label %35, label %..loopexit_crit_edge, !llvm.loop !10
..loopexit_crit_edge: ; preds = %104
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %30
br label %109
109: ; preds = %.loopexit, %70
%110 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %5, align 4
%111 = load i32, ptr %5, align 4
%112 = load i32, ptr %2, align 4
%113 = icmp slt i32 %111, %112
br i1 %113, label %.lr.ph10, label %126
.lr.ph10: ; preds = %109
br label %114
114: ; preds = %.lr.ph10, %120
%115 = load i32, ptr %5, align 4
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds i32, ptr %14, i64 %116
%118 = load i32, ptr %117, align 4
%119 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %118)
br label %120
120: ; preds = %114
%121 = load i32, ptr %5, align 4
%122 = add nsw i32 %121, 1
store i32 %122, ptr %5, align 4
%123 = load i32, ptr %5, align 4
%124 = load i32, ptr %2, align 4
%125 = icmp slt i32 %123, %124
br i1 %125, label %114, label %._crit_edge11, !llvm.loop !11
._crit_edge11: ; preds = %120
br label %126
126: ; preds = %._crit_edge11, %109
%127 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 0, ptr %1, align 4
%128 = load ptr, ptr %3, align 8
call void @llvm.stackrestore(ptr %128)
%129 = load i32, ptr %1, align 4
ret i32 %129
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @swap(ptr noundef, 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 }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmpa3kw3nyu.c'
source_filename = "/tmp/tmpa3kw3nyu.c"
target datalayout = "e-m:e-p270: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.link_map = type { ptr, ptr, i64 }
@RTLD_LAZY = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [7 x i8] c"%p %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dlinfo_check() #0 {
%1 = alloca ptr, align 8
%2 = load i32, ptr @RTLD_LAZY, align 4
%3 = call i32 @dlopen(ptr noundef null, i32 noundef %2)
%4 = call i32 @dlinfo(i32 noundef %3, i32 noundef 2, ptr noundef %1)
br label %5
5: ; preds = %23, %0
%6 = load ptr, ptr %1, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %8, label %27
8: ; preds = %5
%9 = load ptr, ptr %1, align 8
%10 = getelementptr inbounds %struct.link_map, ptr %9, i32 0, i32 0
%11 = load ptr, ptr %10, align 8
%12 = call i64 @strlen(ptr noundef %11)
%13 = icmp sgt i64 %12, 0
br i1 %13, label %14, label %23
14: ; preds = %8
%15 = load ptr, ptr %1, align 8
%16 = getelementptr inbounds %struct.link_map, ptr %15, i32 0, i32 2
%17 = load i64, ptr %16, align 8
%18 = inttoptr i64 %17 to ptr
%19 = load ptr, ptr %1, align 8
%20 = getelementptr inbounds %struct.link_map, ptr %19, i32 0, i32 0
%21 = load ptr, ptr %20, align 8
%22 = call i32 @printf(ptr noundef @.str, ptr noundef %18, ptr noundef %21)
br label %23
23: ; preds = %14, %8
%24 = load ptr, ptr %1, align 8
%25 = getelementptr inbounds %struct.link_map, ptr %24, i32 0, i32 1
%26 = load ptr, ptr %25, align 8
store ptr %26, ptr %1, align 8
br label %5, !llvm.loop !6
27: ; preds = %5
ret void
}
declare i32 @dlinfo(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @dlopen(ptr noundef, i32 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa3kw3nyu.c"
target datalayout = "e-m:e-p270: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.link_map = type { ptr, ptr, i64 }
@RTLD_LAZY = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [7 x i8] c"%p %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dlinfo_check() #0 {
%1 = alloca ptr, align 8
%2 = load i32, ptr @RTLD_LAZY, align 4
%3 = call i32 @dlopen(ptr noundef null, i32 noundef %2)
%4 = call i32 @dlinfo(i32 noundef %3, i32 noundef 2, ptr noundef %1)
%5 = load ptr, ptr %1, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %.lr.ph, label %28
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %22
%8 = load ptr, ptr %1, align 8
%9 = getelementptr inbounds %struct.link_map, ptr %8, i32 0, i32 0
%10 = load ptr, ptr %9, align 8
%11 = call i64 @strlen(ptr noundef %10)
%12 = icmp sgt i64 %11, 0
br i1 %12, label %13, label %22
13: ; preds = %7
%14 = load ptr, ptr %1, align 8
%15 = getelementptr inbounds %struct.link_map, ptr %14, i32 0, i32 2
%16 = load i64, ptr %15, align 8
%17 = inttoptr i64 %16 to ptr
%18 = load ptr, ptr %1, align 8
%19 = getelementptr inbounds %struct.link_map, ptr %18, i32 0, i32 0
%20 = load ptr, ptr %19, align 8
%21 = call i32 @printf(ptr noundef @.str, ptr noundef %17, ptr noundef %20)
br label %22
22: ; preds = %13, %7
%23 = load ptr, ptr %1, align 8
%24 = getelementptr inbounds %struct.link_map, ptr %23, i32 0, i32 1
%25 = load ptr, ptr %24, align 8
store ptr %25, ptr %1, align 8
%26 = load ptr, ptr %1, align 8
%27 = icmp ne ptr %26, null
br i1 %27, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %28
28: ; preds = %._crit_edge, %0
ret void
}
declare i32 @dlinfo(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @dlopen(ptr noundef, i32 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp49y4yqre.c'
source_filename = "/tmp/tmp49y4yqre.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @trace_strndup(ptr noundef %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = load i64, ptr %5, align 8
%9 = add i64 %8, 1
%10 = load ptr, ptr %6, align 8
%11 = call ptr @trace_malloc(i64 noundef %9, ptr noundef %10)
store ptr %11, ptr %7, align 8
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %4, align 8
%14 = load i64, ptr %5, align 8
%15 = add i64 %14, 1
%16 = call i32 @memcpy(ptr noundef %12, ptr noundef %13, i64 noundef %15)
%17 = load ptr, ptr %7, align 8
ret ptr %17
}
declare ptr @trace_malloc(i64 noundef, ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp49y4yqre.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @trace_strndup(ptr noundef %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = load i64, ptr %5, align 8
%9 = add i64 %8, 1
%10 = load ptr, ptr %6, align 8
%11 = call ptr @trace_malloc(i64 noundef %9, ptr noundef %10)
store ptr %11, ptr %7, align 8
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %4, align 8
%14 = load i64, ptr %5, align 8
%15 = add i64 %14, 1
%16 = call i32 @memcpy(ptr noundef %12, ptr noundef %13, i64 noundef %15)
%17 = load ptr, ptr %7, align 8
ret ptr %17
}
declare ptr @trace_malloc(i64 noundef, ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpopqkr4q9.c'
source_filename = "/tmp/tmpopqkr4q9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"$\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"${\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"}\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @substitute(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 i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = 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
%19 = load ptr, ptr %4, align 8
%20 = call i32 @strlen(ptr noundef %19)
store i32 %20, ptr %7, align 4
%21 = load i32, ptr %7, align 4
%22 = mul nsw i32 %21, 2
store i32 %22, ptr %8, align 4
%23 = load ptr, ptr %5, align 8
%24 = call i32 @strlen(ptr noundef %23)
store i32 %24, ptr %9, align 4
%25 = load ptr, ptr %6, align 8
%26 = call i32 @strlen(ptr noundef %25)
store i32 %26, ptr %10, align 4
store i32 0, ptr %11, align 4
%27 = load i32, ptr %8, align 4
%28 = call ptr @calloc(i32 noundef 1, i32 noundef %27)
store ptr %28, ptr %12, align 8
%29 = load i32, ptr %9, align 4
%30 = add nsw i32 %29, 2
%31 = call ptr @calloc(i32 noundef 1, i32 noundef %30)
store ptr %31, ptr %13, align 8
%32 = load i32, ptr %9, align 4
%33 = add nsw i32 %32, 4
%34 = call ptr @calloc(i32 noundef 1, i32 noundef %33)
store ptr %34, ptr %14, align 8
store ptr null, ptr %15, align 8
store ptr null, ptr %16, align 8
%35 = load ptr, ptr %13, align 8
%36 = call i32 @strcpy(ptr noundef %35, ptr noundef @.str)
%37 = load ptr, ptr %13, align 8
%38 = load ptr, ptr %5, align 8
%39 = call i32 @strcat(ptr noundef %37, ptr noundef %38)
%40 = load ptr, ptr %14, align 8
%41 = call i32 @strcpy(ptr noundef %40, ptr noundef @.str.1)
%42 = load ptr, ptr %14, align 8
%43 = load ptr, ptr %5, align 8
%44 = call i32 @strcat(ptr noundef %42, ptr noundef %43)
%45 = load ptr, ptr %14, align 8
%46 = call i32 @strcat(ptr noundef %45, ptr noundef @.str.2)
br label %47
47: ; preds = %95, %3
%48 = load ptr, ptr %4, align 8
%49 = load ptr, ptr %13, align 8
%50 = call ptr @strstr(ptr noundef %48, ptr noundef %49)
store ptr %50, ptr %15, align 8
%51 = icmp ne ptr %50, null
br i1 %51, label %57, label %52
52: ; preds = %47
%53 = load ptr, ptr %4, align 8
%54 = load ptr, ptr %14, align 8
%55 = call ptr @strstr(ptr noundef %53, ptr noundef %54)
store ptr %55, ptr %16, align 8
%56 = icmp ne ptr %55, null
br label %57
57: ; preds = %52, %47
%58 = phi i1 [ true, %47 ], [ %56, %52 ]
br i1 %58, label %59, label %133
59: ; preds = %57
%60 = load ptr, ptr %15, align 8
store ptr %60, ptr %17, align 8
%61 = load i32, ptr %9, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %18, align 4
%63 = load ptr, ptr %17, align 8
%64 = icmp ne ptr %63, null
br i1 %64, label %65, label %72
65: ; preds = %59
%66 = load ptr, ptr %16, align 8
%67 = icmp ne ptr %66, null
br i1 %67, label %68, label %74
68: ; preds = %65
%69 = load ptr, ptr %16, align 8
%70 = load ptr, ptr %15, align 8
%71 = icmp ult ptr %69, %70
br i1 %71, label %72, label %74
72: ; preds = %68, %59
%73 = load ptr, ptr %16, align 8
store ptr %73, ptr %17, align 8
br label %74
74: ; preds = %72, %68, %65
%75 = load ptr, ptr %17, align 8
%76 = getelementptr inbounds i8, ptr %75, i64 1
%77 = load i8, ptr %76, align 1
%78 = sext i8 %77 to i32
%79 = icmp eq i32 %78, 123
br i1 %79, label %80, label %83
80: ; preds = %74
%81 = load i32, ptr %18, align 4
%82 = add nsw i32 %81, 2
store i32 %82, ptr %18, align 4
br label %83
83: ; preds = %80, %74
%84 = load i32, ptr %11, align 4
%85 = load i32, ptr %18, align 4
%86 = add nsw i32 %84, %85
%87 = load i32, ptr %8, align 4
%88 = icmp sgt i32 %86, %87
br i1 %88, label %89, label %95
89: ; preds = %83
%90 = load i32, ptr %8, align 4
%91 = mul nsw i32 %90, 2
store i32 %91, ptr %8, align 4
%92 = load ptr, ptr %12, align 8
%93 = load i32, ptr %8, align 4
%94 = call ptr @realloc(ptr noundef %92, i32 noundef %93)
store ptr %94, ptr %12, align 8
br label %95
95: ; preds = %89, %83
%96 = load ptr, ptr %12, align 8
%97 = load i32, ptr %11, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds i8, ptr %96, i64 %98
store i8 0, ptr %99, align 1
%100 = load ptr, ptr %12, align 8
%101 = load ptr, ptr %4, align 8
%102 = load ptr, ptr %17, align 8
%103 = load ptr, ptr %4, align 8
%104 = ptrtoint ptr %102 to i64
%105 = ptrtoint ptr %103 to i64
%106 = sub i64 %104, %105
%107 = trunc i64 %106 to i32
%108 = call i32 @strncat(ptr noundef %100, ptr noundef %101, i32 noundef %107)
%109 = load ptr, ptr %17, align 8
%110 = load ptr, ptr %4, align 8
%111 = ptrtoint ptr %109 to i64
%112 = ptrtoint ptr %110 to i64
%113 = sub i64 %111, %112
%114 = load i32, ptr %11, align 4
%115 = sext i32 %114 to i64
%116 = add nsw i64 %115, %113
%117 = trunc i64 %116 to i32
store i32 %117, ptr %11, align 4
%118 = load ptr, ptr %17, align 8
store ptr %118, ptr %4, align 8
%119 = load ptr, ptr %12, align 8
%120 = load i32, ptr %11, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds i8, ptr %119, i64 %121
store i8 0, ptr %122, align 1
%123 = load ptr, ptr %12, align 8
%124 = load ptr, ptr %6, align 8
%125 = call i32 @strcat(ptr noundef %123, ptr noundef %124)
%126 = load i32, ptr %10, align 4
%127 = load i32, ptr %11, align 4
%128 = add nsw i32 %127, %126
store i32 %128, ptr %11, align 4
%129 = load i32, ptr %18, align 4
%130 = load ptr, ptr %4, align 8
%131 = sext i32 %129 to i64
%132 = getelementptr inbounds i8, ptr %130, i64 %131
store ptr %132, ptr %4, align 8
store ptr null, ptr %16, align 8
store ptr null, ptr %15, align 8
br label %47, !llvm.loop !6
133: ; preds = %57
%134 = load ptr, ptr %12, align 8
%135 = load ptr, ptr %4, align 8
%136 = call i32 @strcat(ptr noundef %134, ptr noundef %135)
%137 = load ptr, ptr %12, align 8
ret ptr %137
}
declare i32 @strlen(ptr noundef) #1
declare ptr @calloc(i32 noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i32 @strncat(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpopqkr4q9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"$\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"${\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"}\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @substitute(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 i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = 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
%19 = load ptr, ptr %4, align 8
%20 = call i32 @strlen(ptr noundef %19)
store i32 %20, ptr %7, align 4
%21 = load i32, ptr %7, align 4
%22 = mul nsw i32 %21, 2
store i32 %22, ptr %8, align 4
%23 = load ptr, ptr %5, align 8
%24 = call i32 @strlen(ptr noundef %23)
store i32 %24, ptr %9, align 4
%25 = load ptr, ptr %6, align 8
%26 = call i32 @strlen(ptr noundef %25)
store i32 %26, ptr %10, align 4
store i32 0, ptr %11, align 4
%27 = load i32, ptr %8, align 4
%28 = call ptr @calloc(i32 noundef 1, i32 noundef %27)
store ptr %28, ptr %12, align 8
%29 = load i32, ptr %9, align 4
%30 = add nsw i32 %29, 2
%31 = call ptr @calloc(i32 noundef 1, i32 noundef %30)
store ptr %31, ptr %13, align 8
%32 = load i32, ptr %9, align 4
%33 = add nsw i32 %32, 4
%34 = call ptr @calloc(i32 noundef 1, i32 noundef %33)
store ptr %34, ptr %14, align 8
store ptr null, ptr %15, align 8
store ptr null, ptr %16, align 8
%35 = load ptr, ptr %13, align 8
%36 = call i32 @strcpy(ptr noundef %35, ptr noundef @.str)
%37 = load ptr, ptr %13, align 8
%38 = load ptr, ptr %5, align 8
%39 = call i32 @strcat(ptr noundef %37, ptr noundef %38)
%40 = load ptr, ptr %14, align 8
%41 = call i32 @strcpy(ptr noundef %40, ptr noundef @.str.1)
%42 = load ptr, ptr %14, align 8
%43 = load ptr, ptr %5, align 8
%44 = call i32 @strcat(ptr noundef %42, ptr noundef %43)
%45 = load ptr, ptr %14, align 8
%46 = call i32 @strcat(ptr noundef %45, ptr noundef @.str.2)
br label %47
47: ; preds = %95, %3
%48 = load ptr, ptr %4, align 8
%49 = load ptr, ptr %13, align 8
%50 = call ptr @strstr(ptr noundef %48, ptr noundef %49)
store ptr %50, ptr %15, align 8
%51 = icmp ne ptr %50, null
br i1 %51, label %57, label %52
52: ; preds = %47
%53 = load ptr, ptr %4, align 8
%54 = load ptr, ptr %14, align 8
%55 = call ptr @strstr(ptr noundef %53, ptr noundef %54)
store ptr %55, ptr %16, align 8
%56 = icmp ne ptr %55, null
br label %57
57: ; preds = %52, %47
%58 = phi i1 [ true, %47 ], [ %56, %52 ]
br i1 %58, label %59, label %133
59: ; preds = %57
%60 = load ptr, ptr %15, align 8
store ptr %60, ptr %17, align 8
%61 = load i32, ptr %9, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %18, align 4
%63 = load ptr, ptr %17, align 8
%64 = icmp ne ptr %63, null
br i1 %64, label %65, label %72
65: ; preds = %59
%66 = load ptr, ptr %16, align 8
%67 = icmp ne ptr %66, null
br i1 %67, label %68, label %74
68: ; preds = %65
%69 = load ptr, ptr %16, align 8
%70 = load ptr, ptr %15, align 8
%71 = icmp ult ptr %69, %70
br i1 %71, label %72, label %74
72: ; preds = %68, %59
%73 = load ptr, ptr %16, align 8
store ptr %73, ptr %17, align 8
br label %74
74: ; preds = %72, %68, %65
%75 = load ptr, ptr %17, align 8
%76 = getelementptr inbounds i8, ptr %75, i64 1
%77 = load i8, ptr %76, align 1
%78 = sext i8 %77 to i32
%79 = icmp eq i32 %78, 123
br i1 %79, label %80, label %83
80: ; preds = %74
%81 = load i32, ptr %18, align 4
%82 = add nsw i32 %81, 2
store i32 %82, ptr %18, align 4
br label %83
83: ; preds = %80, %74
%84 = load i32, ptr %11, align 4
%85 = load i32, ptr %18, align 4
%86 = add nsw i32 %84, %85
%87 = load i32, ptr %8, align 4
%88 = icmp sgt i32 %86, %87
br i1 %88, label %89, label %95
89: ; preds = %83
%90 = load i32, ptr %8, align 4
%91 = mul nsw i32 %90, 2
store i32 %91, ptr %8, align 4
%92 = load ptr, ptr %12, align 8
%93 = load i32, ptr %8, align 4
%94 = call ptr @realloc(ptr noundef %92, i32 noundef %93)
store ptr %94, ptr %12, align 8
br label %95
95: ; preds = %89, %83
%96 = load ptr, ptr %12, align 8
%97 = load i32, ptr %11, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds i8, ptr %96, i64 %98
store i8 0, ptr %99, align 1
%100 = load ptr, ptr %12, align 8
%101 = load ptr, ptr %4, align 8
%102 = load ptr, ptr %17, align 8
%103 = load ptr, ptr %4, align 8
%104 = ptrtoint ptr %102 to i64
%105 = ptrtoint ptr %103 to i64
%106 = sub i64 %104, %105
%107 = trunc i64 %106 to i32
%108 = call i32 @strncat(ptr noundef %100, ptr noundef %101, i32 noundef %107)
%109 = load ptr, ptr %17, align 8
%110 = load ptr, ptr %4, align 8
%111 = ptrtoint ptr %109 to i64
%112 = ptrtoint ptr %110 to i64
%113 = sub i64 %111, %112
%114 = load i32, ptr %11, align 4
%115 = sext i32 %114 to i64
%116 = add nsw i64 %115, %113
%117 = trunc i64 %116 to i32
store i32 %117, ptr %11, align 4
%118 = load ptr, ptr %17, align 8
store ptr %118, ptr %4, align 8
%119 = load ptr, ptr %12, align 8
%120 = load i32, ptr %11, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds i8, ptr %119, i64 %121
store i8 0, ptr %122, align 1
%123 = load ptr, ptr %12, align 8
%124 = load ptr, ptr %6, align 8
%125 = call i32 @strcat(ptr noundef %123, ptr noundef %124)
%126 = load i32, ptr %10, align 4
%127 = load i32, ptr %11, align 4
%128 = add nsw i32 %127, %126
store i32 %128, ptr %11, align 4
%129 = load i32, ptr %18, align 4
%130 = load ptr, ptr %4, align 8
%131 = sext i32 %129 to i64
%132 = getelementptr inbounds i8, ptr %130, i64 %131
store ptr %132, ptr %4, align 8
store ptr null, ptr %16, align 8
store ptr null, ptr %15, align 8
br label %47, !llvm.loop !6
133: ; preds = %57
%134 = load ptr, ptr %12, align 8
%135 = load ptr, ptr %4, align 8
%136 = call i32 @strcat(ptr noundef %134, ptr noundef %135)
%137 = load ptr, ptr %12, align 8
ret ptr %137
}
declare i32 @strlen(ptr noundef) #1
declare ptr @calloc(i32 noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i32 @strncat(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpyz6srove.c'
source_filename = "/tmp/tmpyz6srove.c"
target datalayout = "e-m:e-p270: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/tmpyz6srove.c"
target datalayout = "e-m:e-p270: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/tmpvyni7n8h.c'
source_filename = "/tmp/tmpvyni7n8h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"- %s %ld.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @print_checks(ptr noundef %0, i64 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
store ptr %0, ptr %6, align 8
store i64 %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
store i64 0, ptr %11, align 8
store i64 0, ptr %12, align 8
br label %13
13: ; preds = %33, %5
%14 = load i64, ptr %11, align 8
%15 = load i64, ptr %7, align 8
%16 = icmp slt i64 %14, %15
br i1 %16, label %17, label %36
17: ; preds = %13
%18 = load ptr, ptr %10, align 8
%19 = load ptr, ptr %6, align 8
%20 = load i64, ptr %7, align 8
%21 = load i64, ptr %12, align 8
%22 = call i64 %18(ptr noundef %19, i64 noundef %20, i64 noundef %21)
store i64 %22, ptr %11, align 8
%23 = load i64, ptr %11, align 8
%24 = icmp slt i64 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %17
br label %37
26: ; preds = %17
%27 = load i32, ptr %9, align 4
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %33
29: ; preds = %26
%30 = load ptr, ptr %8, align 8
%31 = load i64, ptr %11, align 8
%32 = call i32 @printf(ptr noundef @.str, ptr noundef %30, i64 noundef %31)
br label %33
33: ; preds = %29, %26
%34 = load i64, ptr %11, align 8
%35 = add nsw i64 %34, 1
store i64 %35, ptr %12, align 8
br label %13, !llvm.loop !6
36: ; preds = %13
br label %37
37: ; preds = %36, %25
ret i32 0
}
declare i32 @printf(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/tmpvyni7n8h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"- %s %ld.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @print_checks(ptr noundef %0, i64 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
store ptr %0, ptr %6, align 8
store i64 %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
store i64 0, ptr %11, align 8
store i64 0, ptr %12, align 8
%13 = load i64, ptr %11, align 8
%14 = load i64, ptr %7, align 8
%15 = icmp slt i64 %13, %14
br i1 %15, label %.lr.ph, label %38
.lr.ph: ; preds = %5
br label %16
16: ; preds = %.lr.ph, %32
%17 = load ptr, ptr %10, align 8
%18 = load ptr, ptr %6, align 8
%19 = load i64, ptr %7, align 8
%20 = load i64, ptr %12, align 8
%21 = call i64 %17(ptr noundef %18, i64 noundef %19, i64 noundef %20)
store i64 %21, ptr %11, align 8
%22 = load i64, ptr %11, align 8
%23 = icmp slt i64 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %16
br label %39
25: ; preds = %16
%26 = load i32, ptr %9, align 4
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %32
28: ; preds = %25
%29 = load ptr, ptr %8, align 8
%30 = load i64, ptr %11, align 8
%31 = call i32 @printf(ptr noundef @.str, ptr noundef %29, i64 noundef %30)
br label %32
32: ; preds = %28, %25
%33 = load i64, ptr %11, align 8
%34 = add nsw i64 %33, 1
store i64 %34, ptr %12, align 8
%35 = load i64, ptr %11, align 8
%36 = load i64, ptr %7, align 8
%37 = icmp slt i64 %35, %36
br i1 %37, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %38
38: ; preds = %._crit_edge, %5
br label %39
39: ; preds = %38, %24
ret i32 0
}
declare i32 @printf(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/tmpj8y6odoo.c'
source_filename = "/tmp/tmpj8y6odoo.c"
target datalayout = "e-m:e-p270: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/tmpj8y6odoo.c"
target datalayout = "e-m:e-p270: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/tmplce4jo68.c'
source_filename = "/tmp/tmplce4jo68.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vnormal(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call double @vlength(ptr noundef %4)
%6 = fdiv double 1.000000e+00, %5
%7 = call i32 @vscale(ptr noundef %3, double noundef %6)
ret void
}
declare i32 @vscale(ptr noundef, double noundef) #1
declare double @vlength(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplce4jo68.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vnormal(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call double @vlength(ptr noundef %4)
%6 = fdiv double 1.000000e+00, %5
%7 = call i32 @vscale(ptr noundef %3, double noundef %6)
ret void
}
declare i32 @vscale(ptr noundef, double noundef) #1
declare double @vlength(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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.