llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmpwk4vsyw3.c'
source_filename = "/tmp/tmpwk4vsyw3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @insertionSort(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 1, ptr %5, align 4
br label %7
7: ; preds = %45, %2
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %48
11: ; preds = %7
%12 = load i32, ptr %5, align 4
store i32 %12, ptr %6, align 4
br label %13
13: ; preds = %31, %11
%14 = load i32, ptr %6, align 4
%15 = icmp sgt i32 %14, 0
br i1 %15, label %16, label %29
16: ; preds = %13
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %6, align 4
%19 = sub nsw i32 %18, 1
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i32, ptr %17, i64 %20
%22 = load i32, ptr %21, align 4
%23 = load ptr, ptr %3, align 8
%24 = load i32, ptr %6, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %23, i64 %25
%27 = load i32, ptr %26, align 4
%28 = icmp sgt i32 %22, %27
br label %29
29: ; preds = %16, %13
%30 = phi i1 [ false, %13 ], [ %28, %16 ]
br i1 %30, label %31, label %44
31: ; preds = %29
%32 = load ptr, ptr %3, align 8
%33 = load i32, ptr %6, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i32, ptr %32, i64 %34
%36 = load ptr, ptr %3, align 8
%37 = load i32, ptr %6, align 4
%38 = sub nsw i32 %37, 1
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i32, ptr %36, i64 %39
%41 = call i32 @swap(ptr noundef %35, ptr noundef %40)
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, -1
store i32 %43, ptr %6, align 4
br label %13, !llvm.loop !6
44: ; preds = %29
br label %45
45: ; preds = %44
%46 = load i32, ptr %5, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %5, align 4
br label %7, !llvm.loop !8
48: ; preds = %7
ret void
}
declare i32 @swap(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwk4vsyw3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @insertionSort(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 1, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %.lr.ph, label %50
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %44
%11 = load i32, ptr %5, align 4
store i32 %11, ptr %6, align 4
br label %12
12: ; preds = %30, %10
%13 = load i32, ptr %6, align 4
%14 = icmp sgt i32 %13, 0
br i1 %14, label %15, label %28
15: ; preds = %12
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %6, align 4
%18 = sub nsw i32 %17, 1
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %16, i64 %19
%21 = load i32, ptr %20, align 4
%22 = load ptr, ptr %3, align 8
%23 = load i32, ptr %6, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i32, ptr %22, i64 %24
%26 = load i32, ptr %25, align 4
%27 = icmp sgt i32 %21, %26
br label %28
28: ; preds = %15, %12
%29 = phi i1 [ false, %12 ], [ %27, %15 ]
br i1 %29, label %30, label %43
30: ; preds = %28
%31 = load ptr, ptr %3, align 8
%32 = load i32, ptr %6, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i32, ptr %31, i64 %33
%35 = load ptr, ptr %3, align 8
%36 = load i32, ptr %6, align 4
%37 = sub nsw i32 %36, 1
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i32, ptr %35, i64 %38
%40 = call i32 @swap(ptr noundef %34, ptr noundef %39)
%41 = load i32, ptr %6, align 4
%42 = add nsw i32 %41, -1
store i32 %42, ptr %6, align 4
br label %12, !llvm.loop !6
43: ; preds = %28
br label %44
44: ; preds = %43
%45 = load i32, ptr %5, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %5, align 4
%47 = load i32, ptr %5, align 4
%48 = load i32, ptr %4, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %10, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %44
br label %50
50: ; preds = %._crit_edge, %2
ret void
}
declare i32 @swap(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpuiidmlx1.c'
source_filename = "/tmp/tmpuiidmlx1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca double, align 8
%2 = call double @exp(double noundef 0x3FF0CD2F5DBB9CFA) #3
store double %2, ptr %1, align 8
%3 = load double, ptr %1, align 8
%4 = call i32 @printf(ptr noundef @.str, double noundef %3)
ret i32 0
}
; Function Attrs: nounwind
declare double @exp(double noundef) #1
declare i32 @printf(ptr noundef, double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuiidmlx1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca double, align 8
%2 = call double @exp(double noundef 0x3FF0CD2F5DBB9CFA) #3
store double %2, ptr %1, align 8
%3 = load double, ptr %1, align 8
%4 = call i32 @printf(ptr noundef @.str, double noundef %3)
ret i32 0
}
; Function Attrs: nounwind
declare double @exp(double noundef) #1
declare i32 @printf(ptr noundef, double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp02ax414r.c'
source_filename = "/tmp/tmp02ax414r.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @min(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = load i32, ptr @INT_MAX, align 4
store i32 %7, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %8
8: ; preds = %27, %2
%9 = load i32, ptr %6, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %30
12: ; preds = %8
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %6, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i32, ptr %13, i64 %15
%17 = load i32, ptr %16, align 4
%18 = load i32, ptr %5, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %26
20: ; preds = %12
%21 = load ptr, ptr %3, align 8
%22 = load i32, ptr %6, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i32, ptr %21, i64 %23
%25 = load i32, ptr %24, align 4
store i32 %25, ptr %5, align 4
br label %26
26: ; preds = %20, %12
br label %27
27: ; preds = %26
%28 = load i32, ptr %6, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %6, align 4
br label %8, !llvm.loop !6
30: ; preds = %8
%31 = load i32, ptr %5, align 4
ret i32 %31
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp02ax414r.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @min(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = load i32, ptr @INT_MAX, align 4
store i32 %7, ptr %5, align 4
store i32 0, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %32
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %26
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %6, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i32, ptr %12, i64 %14
%16 = load i32, ptr %15, align 4
%17 = load i32, ptr %5, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %25
19: ; preds = %11
%20 = load ptr, ptr %3, align 8
%21 = load i32, ptr %6, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %20, i64 %22
%24 = load i32, ptr %23, align 4
store i32 %24, ptr %5, align 4
br label %25
25: ; preds = %19, %11
br label %26
26: ; preds = %25
%27 = load i32, ptr %6, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %6, align 4
%29 = load i32, ptr %6, align 4
%30 = load i32, ptr %4, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %32
32: ; preds = %._crit_edge, %2
%33 = load i32, ptr %5, align 4
ret i32 %33
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp5mjshkjp.c'
source_filename = "/tmp/tmp5mjshkjp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"the heap is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @f2(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 i32, ptr %3, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5mjshkjp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"the heap is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @f2(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 i32, ptr %3, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp18yal788.c'
source_filename = "/tmp/tmp18yal788.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @send_SCL_pulse() #0 {
%1 = call i32 (...) @set_SCL()
%2 = call i32 @_delay_us(i32 noundef 1)
%3 = call i32 (...) @clear_SCL()
%4 = call i32 @_delay_us(i32 noundef 1)
ret void
}
declare i32 @set_SCL(...) #1
declare i32 @_delay_us(i32 noundef) #1
declare i32 @clear_SCL(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp18yal788.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @send_SCL_pulse() #0 {
%1 = call i32 (...) @set_SCL()
%2 = call i32 @_delay_us(i32 noundef 1)
%3 = call i32 (...) @clear_SCL()
%4 = call i32 @_delay_us(i32 noundef 1)
ret void
}
declare i32 @set_SCL(...) #1
declare i32 @_delay_us(i32 noundef) #1
declare i32 @clear_SCL(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6adtm1l4.c'
source_filename = "/tmp/tmp6adtm1l4.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @merge(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca i64, align 8
%15 = alloca i64, align 8
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
%19 = load i32, ptr %8, align 4
%20 = load i32, ptr %7, align 4
%21 = sub nsw i32 %19, %20
%22 = add nsw i32 %21, 1
store i32 %22, ptr %11, align 4
%23 = load i32, ptr %9, align 4
%24 = load i32, ptr %8, align 4
%25 = sub nsw i32 %23, %24
store i32 %25, ptr %12, align 4
%26 = load i32, ptr %11, align 4
%27 = add nsw i32 %26, 1
%28 = zext i32 %27 to i64
%29 = call ptr @llvm.stacksave()
store ptr %29, ptr %13, align 8
%30 = alloca i32, i64 %28, align 16
store i64 %28, ptr %14, align 8
%31 = load i32, ptr %12, align 4
%32 = add nsw i32 %31, 1
%33 = zext i32 %32 to i64
%34 = alloca i32, i64 %33, align 16
store i64 %33, ptr %15, align 8
store i32 0, ptr %16, align 4
br label %35
35: ; preds = %50, %5
%36 = load i32, ptr %16, align 4
%37 = load i32, ptr %11, align 4
%38 = icmp slt i32 %36, %37
br i1 %38, label %39, label %53
39: ; preds = %35
%40 = load ptr, ptr %6, align 8
%41 = load i32, ptr %7, align 4
%42 = load i32, ptr %16, align 4
%43 = add nsw i32 %41, %42
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i32, ptr %40, i64 %44
%46 = load i32, ptr %45, align 4
%47 = load i32, ptr %16, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i32, ptr %30, i64 %48
store i32 %46, ptr %49, align 4
br label %50
50: ; preds = %39
%51 = load i32, ptr %16, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %16, align 4
br label %35, !llvm.loop !6
53: ; preds = %35
store i32 0, ptr %17, align 4
br label %54
54: ; preds = %70, %53
%55 = load i32, ptr %17, align 4
%56 = load i32, ptr %12, align 4
%57 = icmp slt i32 %55, %56
br i1 %57, label %58, label %73
58: ; preds = %54
%59 = load ptr, ptr %6, align 8
%60 = load i32, ptr %8, align 4
%61 = load i32, ptr %17, align 4
%62 = add nsw i32 %60, %61
%63 = add nsw i32 %62, 1
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i32, ptr %59, i64 %64
%66 = load i32, ptr %65, align 4
%67 = load i32, ptr %17, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i32, ptr %34, i64 %68
store i32 %66, ptr %69, align 4
br label %70
70: ; preds = %58
%71 = load i32, ptr %17, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %17, align 4
br label %54, !llvm.loop !8
73: ; preds = %54
%74 = load i32, ptr @INT_MAX, align 4
%75 = load i32, ptr %11, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i32, ptr %30, i64 %76
store i32 %74, ptr %77, align 4
%78 = load i32, ptr @INT_MAX, align 4
%79 = load i32, ptr %12, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i32, ptr %34, i64 %80
store i32 %78, ptr %81, align 4
store i32 0, ptr %16, align 4
store i32 0, ptr %17, align 4
%82 = load i32, ptr %7, align 4
store i32 %82, ptr %18, align 4
br label %83
83: ; preds = %120, %73
%84 = load i32, ptr %18, align 4
%85 = load i32, ptr %9, align 4
%86 = icmp sle i32 %84, %85
br i1 %86, label %87, label %123
87: ; preds = %83
%88 = load i32, ptr %16, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i32, ptr %30, i64 %89
%91 = load i32, ptr %90, align 4
%92 = load i32, ptr %17, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i32, ptr %34, i64 %93
%95 = load i32, ptr %94, align 4
%96 = icmp sle i32 %91, %95
br i1 %96, label %97, label %108
97: ; preds = %87
%98 = load i32, ptr %16, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds i32, ptr %30, i64 %99
%101 = load i32, ptr %100, align 4
%102 = load ptr, ptr %6, align 8
%103 = load i32, ptr %18, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds i32, ptr %102, i64 %104
store i32 %101, ptr %105, align 4
%106 = load i32, ptr %16, align 4
%107 = add nsw i32 %106, 1
store i32 %107, ptr %16, align 4
br label %119
108: ; preds = %87
%109 = load i32, ptr %17, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i32, ptr %34, i64 %110
%112 = load i32, ptr %111, align 4
%113 = load ptr, ptr %6, align 8
%114 = load i32, ptr %18, align 4
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds i32, ptr %113, i64 %115
store i32 %112, ptr %116, align 4
%117 = load i32, ptr %17, align 4
%118 = add nsw i32 %117, 1
store i32 %118, ptr %17, align 4
br label %119
119: ; preds = %108, %97
br label %120
120: ; preds = %119
%121 = load i32, ptr %18, align 4
%122 = add nsw i32 %121, 1
store i32 %122, ptr %18, align 4
br label %83, !llvm.loop !9
123: ; preds = %83
%124 = load ptr, ptr %6, align 8
%125 = load ptr, ptr %13, align 8
call void @llvm.stackrestore(ptr %125)
ret ptr %124
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp6adtm1l4.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @merge(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca i64, align 8
%15 = alloca i64, align 8
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
%19 = load i32, ptr %8, align 4
%20 = load i32, ptr %7, align 4
%21 = sub nsw i32 %19, %20
%22 = add nsw i32 %21, 1
store i32 %22, ptr %11, align 4
%23 = load i32, ptr %9, align 4
%24 = load i32, ptr %8, align 4
%25 = sub nsw i32 %23, %24
store i32 %25, ptr %12, align 4
%26 = load i32, ptr %11, align 4
%27 = add nsw i32 %26, 1
%28 = zext i32 %27 to i64
%29 = call ptr @llvm.stacksave()
store ptr %29, ptr %13, align 8
%30 = alloca i32, i64 %28, align 16
store i64 %28, ptr %14, align 8
%31 = load i32, ptr %12, align 4
%32 = add nsw i32 %31, 1
%33 = zext i32 %32 to i64
%34 = alloca i32, i64 %33, align 16
store i64 %33, ptr %15, align 8
store i32 0, ptr %16, align 4
%35 = load i32, ptr %16, align 4
%36 = load i32, ptr %11, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %.lr.ph, label %55
.lr.ph: ; preds = %5
br label %38
38: ; preds = %.lr.ph, %49
%39 = load ptr, ptr %6, align 8
%40 = load i32, ptr %7, align 4
%41 = load i32, ptr %16, align 4
%42 = add nsw i32 %40, %41
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %39, i64 %43
%45 = load i32, ptr %44, align 4
%46 = load i32, ptr %16, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i32, ptr %30, i64 %47
store i32 %45, ptr %48, align 4
br label %49
49: ; preds = %38
%50 = load i32, ptr %16, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %16, align 4
%52 = load i32, ptr %16, align 4
%53 = load i32, ptr %11, align 4
%54 = icmp slt i32 %52, %53
br i1 %54, label %38, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %49
br label %55
55: ; preds = %._crit_edge, %5
store i32 0, ptr %17, align 4
%56 = load i32, ptr %17, align 4
%57 = load i32, ptr %12, align 4
%58 = icmp slt i32 %56, %57
br i1 %58, label %.lr.ph2, label %77
.lr.ph2: ; preds = %55
br label %59
59: ; preds = %.lr.ph2, %71
%60 = load ptr, ptr %6, align 8
%61 = load i32, ptr %8, align 4
%62 = load i32, ptr %17, align 4
%63 = add nsw i32 %61, %62
%64 = add nsw i32 %63, 1
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i32, ptr %60, i64 %65
%67 = load i32, ptr %66, align 4
%68 = load i32, ptr %17, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i32, ptr %34, i64 %69
store i32 %67, ptr %70, align 4
br label %71
71: ; preds = %59
%72 = load i32, ptr %17, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %17, align 4
%74 = load i32, ptr %17, align 4
%75 = load i32, ptr %12, align 4
%76 = icmp slt i32 %74, %75
br i1 %76, label %59, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %71
br label %77
77: ; preds = %._crit_edge3, %55
%78 = load i32, ptr @INT_MAX, align 4
%79 = load i32, ptr %11, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i32, ptr %30, i64 %80
store i32 %78, ptr %81, align 4
%82 = load i32, ptr @INT_MAX, align 4
%83 = load i32, ptr %12, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i32, ptr %34, i64 %84
store i32 %82, ptr %85, align 4
store i32 0, ptr %16, align 4
store i32 0, ptr %17, align 4
%86 = load i32, ptr %7, align 4
store i32 %86, ptr %18, align 4
%87 = load i32, ptr %18, align 4
%88 = load i32, ptr %9, align 4
%89 = icmp sle i32 %87, %88
br i1 %89, label %.lr.ph5, label %129
.lr.ph5: ; preds = %77
br label %90
90: ; preds = %.lr.ph5, %123
%91 = load i32, ptr %16, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i32, ptr %30, i64 %92
%94 = load i32, ptr %93, align 4
%95 = load i32, ptr %17, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds i32, ptr %34, i64 %96
%98 = load i32, ptr %97, align 4
%99 = icmp sle i32 %94, %98
br i1 %99, label %100, label %111
100: ; preds = %90
%101 = load i32, ptr %16, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i32, ptr %30, i64 %102
%104 = load i32, ptr %103, align 4
%105 = load ptr, ptr %6, align 8
%106 = load i32, ptr %18, align 4
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds i32, ptr %105, i64 %107
store i32 %104, ptr %108, align 4
%109 = load i32, ptr %16, align 4
%110 = add nsw i32 %109, 1
store i32 %110, ptr %16, align 4
br label %122
111: ; preds = %90
%112 = load i32, ptr %17, align 4
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds i32, ptr %34, i64 %113
%115 = load i32, ptr %114, align 4
%116 = load ptr, ptr %6, align 8
%117 = load i32, ptr %18, align 4
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds i32, ptr %116, i64 %118
store i32 %115, ptr %119, align 4
%120 = load i32, ptr %17, align 4
%121 = add nsw i32 %120, 1
store i32 %121, ptr %17, align 4
br label %122
122: ; preds = %111, %100
br label %123
123: ; preds = %122
%124 = load i32, ptr %18, align 4
%125 = add nsw i32 %124, 1
store i32 %125, ptr %18, align 4
%126 = load i32, ptr %18, align 4
%127 = load i32, ptr %9, align 4
%128 = icmp sle i32 %126, %127
br i1 %128, label %90, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %123
br label %129
129: ; preds = %._crit_edge6, %77
%130 = load ptr, ptr %6, align 8
%131 = load ptr, ptr %13, align 8
call void @llvm.stackrestore(ptr %131)
ret ptr %130
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp1wd6w51b.c'
source_filename = "/tmp/tmp1wd6w51b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pthread_attr_setstacksize(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load i64, ptr %4, align 8
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1wd6w51b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pthread_attr_setstacksize(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load i64, ptr %4, align 8
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbm485cly.c'
source_filename = "/tmp/tmpbm485cly.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @myprint(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr @stderr, align 4
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call i32 @vfprintf(i32 noundef %7, ptr noundef %8, i32 noundef %9)
ret void
}
declare i32 @vfprintf(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbm485cly.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @myprint(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr @stderr, align 4
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call i32 @vfprintf(i32 noundef %7, ptr noundef %8, i32 noundef %9)
ret void
}
declare i32 @vfprintf(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwbu8rwdd.c'
source_filename = "/tmp/tmpwbu8rwdd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [21 x i8] c"ERROR: Pipe Failed!\0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"EROR: Dup Failed!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @errorHandler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, ptr @stderr, align 4
%7 = call i32 @fprintf(i32 noundef %6, ptr noundef @.str)
br label %8
8: ; preds = %5, %1
%9 = load i32, ptr %2, align 4
%10 = icmp eq i32 %9, 1
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = load i32, ptr @stderr, align 4
%13 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str.1)
br label %14
14: ; preds = %11, %8
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwbu8rwdd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [21 x i8] c"ERROR: Pipe Failed!\0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"EROR: Dup Failed!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @errorHandler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, ptr @stderr, align 4
%7 = call i32 @fprintf(i32 noundef %6, ptr noundef @.str)
br label %8
8: ; preds = %5, %1
%9 = load i32, ptr %2, align 4
%10 = icmp eq i32 %9, 1
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = load i32, ptr @stderr, align 4
%13 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str.1)
br label %14
14: ; preds = %11, %8
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpopvlwybq.c'
source_filename = "/tmp/tmpopvlwybq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"%d %d %d %d\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 ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i64 @malloc(i32 noundef 128)
%7 = inttoptr i64 %6 to ptr
store ptr %7, ptr %2, align 8
%8 = load ptr, ptr %2, align 8
%9 = load ptr, ptr %2, align 8
%10 = getelementptr inbounds i32, ptr %9, i64 1
%11 = load ptr, ptr %2, align 8
%12 = getelementptr inbounds i32, ptr %11, i64 2
%13 = load ptr, ptr %2, align 8
%14 = getelementptr inbounds i32, ptr %13, i64 3
%15 = call i32 @scanf(ptr noundef @.str, ptr noundef %8, ptr noundef %10, ptr noundef %12, ptr noundef %14)
store i32 0, ptr %3, align 4
br label %16
16: ; preds = %59, %0
%17 = load i32, ptr %3, align 4
%18 = icmp slt i32 %17, 3
br i1 %18, label %19, label %62
19: ; preds = %16
%20 = load i32, ptr %3, align 4
store i32 %20, ptr %5, align 4
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %4, align 4
br label %23
23: ; preds = %41, %19
%24 = load i32, ptr %4, align 4
%25 = icmp slt i32 %24, 4
br i1 %25, label %26, label %44
26: ; preds = %23
%27 = load ptr, ptr %2, align 8
%28 = load i32, ptr %5, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i32, ptr %27, i64 %29
%31 = load i32, ptr %30, align 4
%32 = load ptr, ptr %2, align 8
%33 = load i32, ptr %4, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i32, ptr %32, i64 %34
%36 = load i32, ptr %35, align 4
%37 = icmp sgt i32 %31, %36
br i1 %37, label %38, label %40
38: ; preds = %26
%39 = load i32, ptr %4, align 4
store i32 %39, ptr %5, align 4
br label %40
40: ; preds = %38, %26
br label %41
41: ; preds = %40
%42 = load i32, ptr %4, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %4, align 4
br label %23, !llvm.loop !6
44: ; preds = %23
%45 = load i32, ptr %3, align 4
%46 = load i32, ptr %5, align 4
%47 = icmp ne i32 %45, %46
br i1 %47, label %48, label %58
48: ; preds = %44
%49 = load ptr, ptr %2, align 8
%50 = load i32, ptr %3, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i32, ptr %49, i64 %51
%53 = load ptr, ptr %2, align 8
%54 = load i32, ptr %5, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i32, ptr %53, i64 %55
%57 = call i32 @swap(ptr noundef %52, ptr noundef %56)
br label %58
58: ; preds = %48, %44
br label %59
59: ; preds = %58
%60 = load i32, ptr %3, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %3, align 4
br label %16, !llvm.loop !8
62: ; preds = %16
%63 = load ptr, ptr %2, align 8
%64 = load i32, ptr %63, align 4
%65 = load ptr, ptr %2, align 8
%66 = getelementptr inbounds i32, ptr %65, i64 2
%67 = load i32, ptr %66, align 4
%68 = mul nsw i32 %64, %67
%69 = call i32 @printf(ptr noundef @.str.1, i32 noundef %68)
%70 = load ptr, ptr %2, align 8
%71 = call i32 @free(ptr noundef %70)
ret i32 0
}
declare i64 @malloc(i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @swap(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpopvlwybq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"%d %d %d %d\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 ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i64 @malloc(i32 noundef 128)
%7 = inttoptr i64 %6 to ptr
store ptr %7, ptr %2, align 8
%8 = load ptr, ptr %2, align 8
%9 = load ptr, ptr %2, align 8
%10 = getelementptr inbounds i32, ptr %9, i64 1
%11 = load ptr, ptr %2, align 8
%12 = getelementptr inbounds i32, ptr %11, i64 2
%13 = load ptr, ptr %2, align 8
%14 = getelementptr inbounds i32, ptr %13, i64 3
%15 = call i32 @scanf(ptr noundef @.str, ptr noundef %8, ptr noundef %10, ptr noundef %12, ptr noundef %14)
store i32 0, ptr %3, align 4
%16 = load i32, ptr %3, align 4
%17 = icmp slt i32 %16, 3
br i1 %17, label %.lr.ph2, label %64
.lr.ph2: ; preds = %0
br label %18
18: ; preds = %.lr.ph2, %59
%19 = load i32, ptr %3, align 4
store i32 %19, ptr %5, align 4
%20 = load i32, ptr %3, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %4, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp slt i32 %22, 4
br i1 %23, label %.lr.ph, label %44
.lr.ph: ; preds = %18
br label %24
24: ; preds = %.lr.ph, %39
%25 = load ptr, ptr %2, align 8
%26 = load i32, ptr %5, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, ptr %25, i64 %27
%29 = load i32, ptr %28, align 4
%30 = load ptr, ptr %2, align 8
%31 = load i32, ptr %4, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %30, i64 %32
%34 = load i32, ptr %33, align 4
%35 = icmp sgt i32 %29, %34
br i1 %35, label %36, label %38
36: ; preds = %24
%37 = load i32, ptr %4, align 4
store i32 %37, ptr %5, align 4
br label %38
38: ; preds = %36, %24
br label %39
39: ; preds = %38
%40 = load i32, ptr %4, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %4, align 4
%42 = load i32, ptr %4, align 4
%43 = icmp slt i32 %42, 4
br i1 %43, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %39
br label %44
44: ; preds = %._crit_edge, %18
%45 = load i32, ptr %3, align 4
%46 = load i32, ptr %5, align 4
%47 = icmp ne i32 %45, %46
br i1 %47, label %48, label %58
48: ; preds = %44
%49 = load ptr, ptr %2, align 8
%50 = load i32, ptr %3, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i32, ptr %49, i64 %51
%53 = load ptr, ptr %2, align 8
%54 = load i32, ptr %5, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i32, ptr %53, i64 %55
%57 = call i32 @swap(ptr noundef %52, ptr noundef %56)
br label %58
58: ; preds = %48, %44
br label %59
59: ; preds = %58
%60 = load i32, ptr %3, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %3, align 4
%62 = load i32, ptr %3, align 4
%63 = icmp slt i32 %62, 3
br i1 %63, label %18, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %59
br label %64
64: ; preds = %._crit_edge3, %0
%65 = load ptr, ptr %2, align 8
%66 = load i32, ptr %65, align 4
%67 = load ptr, ptr %2, align 8
%68 = getelementptr inbounds i32, ptr %67, i64 2
%69 = load i32, ptr %68, align 4
%70 = mul nsw i32 %66, %69
%71 = call i32 @printf(ptr noundef @.str.1, i32 noundef %70)
%72 = load ptr, ptr %2, align 8
%73 = call i32 @free(ptr noundef %72)
ret i32 0
}
declare i64 @malloc(i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @swap(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpmdkf0e90.c'
source_filename = "/tmp/tmpmdkf0e90.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @spofa(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca double, align 8
%8 = alloca [4 x double], align 16
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
br label %9
9: ; preds = %88, %1
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 4
br i1 %11, label %12, label %91
12: ; preds = %9
%13 = load i32, ptr %4, align 4
store i32 %13, ptr %5, align 4
br label %14
14: ; preds = %84, %12
%15 = load i32, ptr %5, align 4
%16 = icmp slt i32 %15, 4
br i1 %16, label %17, label %87
17: ; preds = %14
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %4, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [4 x double], ptr %18, i64 %20
%22 = load i32, ptr %5, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [4 x double], ptr %21, i64 0, i64 %23
%25 = load double, ptr %24, align 8
store double %25, ptr %7, align 8
%26 = load i32, ptr %4, align 4
%27 = sub nsw i32 %26, 1
store i32 %27, ptr %6, align 4
br label %28
28: ; preds = %51, %17
%29 = load i32, ptr %6, align 4
%30 = icmp sge i32 %29, 0
br i1 %30, label %31, label %54
31: ; preds = %28
%32 = load ptr, ptr %3, align 8
%33 = load i32, ptr %4, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [4 x double], ptr %32, i64 %34
%36 = load i32, ptr %6, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [4 x double], ptr %35, i64 0, i64 %37
%39 = load double, ptr %38, align 8
%40 = load ptr, ptr %3, align 8
%41 = load i32, ptr %5, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [4 x double], ptr %40, i64 %42
%44 = load i32, ptr %6, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [4 x double], ptr %43, i64 0, i64 %45
%47 = load double, ptr %46, align 8
%48 = load double, ptr %7, align 8
%49 = fneg double %39
%50 = call double @llvm.fmuladd.f64(double %49, double %47, double %48)
store double %50, ptr %7, align 8
br label %51
51: ; preds = %31
%52 = load i32, ptr %6, align 4
%53 = add nsw i32 %52, -1
store i32 %53, ptr %6, align 4
br label %28, !llvm.loop !6
54: ; preds = %28
%55 = load i32, ptr %4, align 4
%56 = load i32, ptr %5, align 4
%57 = icmp eq i32 %55, %56
br i1 %57, label %58, label %69
58: ; preds = %54
%59 = load double, ptr %7, align 8
%60 = fcmp ole double %59, 0.000000e+00
br i1 %60, label %61, label %62
61: ; preds = %58
store i32 0, ptr %2, align 4
br label %92
62: ; preds = %58
%63 = load double, ptr %7, align 8
%64 = call double @sqrt(double noundef %63) #3
%65 = load i32, ptr %4, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [4 x double], ptr %8, i64 0, i64 %66
store double %64, ptr %67, align 8
br label %68
68: ; preds = %62
br label %83
69: ; preds = %54
%70 = load double, ptr %7, align 8
%71 = load i32, ptr %4, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [4 x double], ptr %8, i64 0, i64 %72
%74 = load double, ptr %73, align 8
%75 = fdiv double %70, %74
%76 = load ptr, ptr %3, align 8
%77 = load i32, ptr %5, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [4 x double], ptr %76, i64 %78
%80 = load i32, ptr %4, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [4 x double], ptr %79, i64 0, i64 %81
store double %75, ptr %82, align 8
br label %83
83: ; preds = %69, %68
br label %84
84: ; preds = %83
%85 = load i32, ptr %5, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %5, align 4
br label %14, !llvm.loop !8
87: ; preds = %14
br label %88
88: ; preds = %87
%89 = load i32, ptr %4, align 4
%90 = add nsw i32 %89, 1
store i32 %90, ptr %4, align 4
br label %9, !llvm.loop !9
91: ; preds = %9
store i32 1, ptr %2, align 4
br label %92
92: ; preds = %91, %61
%93 = load i32, ptr %2, align 4
ret i32 %93
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
; Function Attrs: nounwind
declare double @sqrt(double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmdkf0e90.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @spofa(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca double, align 8
%8 = alloca [4 x double], align 16
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 4
br i1 %10, label %.lr.ph5, label %94
.lr.ph5: ; preds = %1
br label %11
11: ; preds = %.lr.ph5, %89
%12 = load i32, ptr %4, align 4
store i32 %12, ptr %5, align 4
%13 = load i32, ptr %5, align 4
%14 = icmp slt i32 %13, 4
br i1 %14, label %.lr.ph2, label %88
.lr.ph2: ; preds = %11
br label %15
15: ; preds = %.lr.ph2, %83
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %4, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [4 x double], ptr %16, i64 %18
%20 = load i32, ptr %5, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [4 x double], ptr %19, i64 0, i64 %21
%23 = load double, ptr %22, align 8
store double %23, ptr %7, align 8
%24 = load i32, ptr %4, align 4
%25 = sub nsw i32 %24, 1
store i32 %25, ptr %6, align 4
%26 = load i32, ptr %6, align 4
%27 = icmp sge i32 %26, 0
br i1 %27, label %.lr.ph, label %53
.lr.ph: ; preds = %15
br label %28
28: ; preds = %.lr.ph, %48
%29 = load ptr, ptr %3, align 8
%30 = load i32, ptr %4, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [4 x double], ptr %29, i64 %31
%33 = load i32, ptr %6, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [4 x double], ptr %32, i64 0, i64 %34
%36 = load double, ptr %35, align 8
%37 = load ptr, ptr %3, align 8
%38 = load i32, ptr %5, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [4 x double], ptr %37, i64 %39
%41 = load i32, ptr %6, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [4 x double], ptr %40, i64 0, i64 %42
%44 = load double, ptr %43, align 8
%45 = load double, ptr %7, align 8
%46 = fneg double %36
%47 = call double @llvm.fmuladd.f64(double %46, double %44, double %45)
store double %47, ptr %7, align 8
br label %48
48: ; preds = %28
%49 = load i32, ptr %6, align 4
%50 = add nsw i32 %49, -1
store i32 %50, ptr %6, align 4
%51 = load i32, ptr %6, align 4
%52 = icmp sge i32 %51, 0
br i1 %52, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %48
br label %53
53: ; preds = %._crit_edge, %15
%54 = load i32, ptr %4, align 4
%55 = load i32, ptr %5, align 4
%56 = icmp eq i32 %54, %55
br i1 %56, label %57, label %68
57: ; preds = %53
%58 = load double, ptr %7, align 8
%59 = fcmp ole double %58, 0.000000e+00
br i1 %59, label %60, label %61
60: ; preds = %57
store i32 0, ptr %2, align 4
br label %95
61: ; preds = %57
%62 = load double, ptr %7, align 8
%63 = call double @sqrt(double noundef %62) #3
%64 = load i32, ptr %4, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [4 x double], ptr %8, i64 0, i64 %65
store double %63, ptr %66, align 8
br label %67
67: ; preds = %61
br label %82
68: ; preds = %53
%69 = load double, ptr %7, align 8
%70 = load i32, ptr %4, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [4 x double], ptr %8, i64 0, i64 %71
%73 = load double, ptr %72, align 8
%74 = fdiv double %69, %73
%75 = load ptr, ptr %3, align 8
%76 = load i32, ptr %5, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [4 x double], ptr %75, i64 %77
%79 = load i32, ptr %4, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [4 x double], ptr %78, i64 0, i64 %80
store double %74, ptr %81, align 8
br label %82
82: ; preds = %68, %67
br label %83
83: ; preds = %82
%84 = load i32, ptr %5, align 4
%85 = add nsw i32 %84, 1
store i32 %85, ptr %5, align 4
%86 = load i32, ptr %5, align 4
%87 = icmp slt i32 %86, 4
br i1 %87, label %15, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %83
br label %88
88: ; preds = %._crit_edge3, %11
br label %89
89: ; preds = %88
%90 = load i32, ptr %4, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %4, align 4
%92 = load i32, ptr %4, align 4
%93 = icmp slt i32 %92, 4
br i1 %93, label %11, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %89
br label %94
94: ; preds = %._crit_edge6, %1
store i32 1, ptr %2, align 4
br label %95
95: ; preds = %94, %60
%96 = load i32, ptr %2, align 4
ret i32 %96
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
; Function Attrs: nounwind
declare double @sqrt(double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmprf4t0mil.c'
source_filename = "/tmp/tmprf4t0mil.c"
target datalayout = "e-m:e-p270: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/tmprf4t0mil.c"
target datalayout = "e-m:e-p270: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/tmpyd_8l7jl.c'
source_filename = "/tmp/tmpyd_8l7jl.c"
target datalayout = "e-m:e-p270: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/tmpyd_8l7jl.c"
target datalayout = "e-m:e-p270: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/tmpg1ht1y4z.c'
source_filename = "/tmp/tmpg1ht1y4z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @TimerEnable(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = and i32 %5, 257
%7 = sext i32 %6 to i64
%8 = load i32, ptr %3, align 4
%9 = add nsw i32 %8, 12
%10 = sext i32 %9 to i64
%11 = inttoptr i64 %10 to ptr
%12 = load volatile i64, ptr %11, align 8
%13 = or i64 %12, %7
store volatile i64 %13, ptr %11, align 8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg1ht1y4z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @TimerEnable(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = and i32 %5, 257
%7 = sext i32 %6 to i64
%8 = load i32, ptr %3, align 4
%9 = add nsw i32 %8, 12
%10 = sext i32 %9 to i64
%11 = inttoptr i64 %10 to ptr
%12 = load volatile i64, ptr %11, align 8
%13 = or i64 %12, %7
store volatile i64 %13, ptr %11, align 8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmph5cql87z.c'
source_filename = "/tmp/tmph5cql87z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f() #0 {
%1 = call i32 (...) @sqlite3_initialize()
ret i32 1
}
declare i32 @sqlite3_initialize(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmph5cql87z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f() #0 {
%1 = call i32 (...) @sqlite3_initialize()
ret i32 1
}
declare i32 @sqlite3_initialize(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpa_87ieht.c'
source_filename = "/tmp/tmpa_87ieht.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"First roll: %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You won!\0A\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"You lost!\0A\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"Point is: %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [12 x i8] c"Rolled: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @play_game() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = call i32 (...) @roll_dice()
store i32 %4, ptr %2, align 4
store i32 0, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %5)
%7 = load i32, ptr %2, align 4
%8 = icmp eq i32 %7, 7
br i1 %8, label %12, label %9
9: ; preds = %0
%10 = load i32, ptr %2, align 4
%11 = icmp eq i32 %10, 11
br i1 %11, label %12, label %14
12: ; preds = %9, %0
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 1, ptr %1, align 4
br label %44
14: ; preds = %9
%15 = load i32, ptr %2, align 4
%16 = icmp eq i32 %15, 2
br i1 %16, label %23, label %17
17: ; preds = %14
%18 = load i32, ptr %2, align 4
%19 = icmp eq i32 %18, 3
br i1 %19, label %23, label %20
20: ; preds = %17
%21 = load i32, ptr %2, align 4
%22 = icmp eq i32 %21, 12
br i1 %22, label %23, label %25
23: ; preds = %20, %17, %14
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %1, align 4
br label %44
25: ; preds = %20
%26 = load i32, ptr %2, align 4
store i32 %26, ptr %3, align 4
%27 = load i32, ptr %3, align 4
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %27)
br label %29
29: ; preds = %25, %43
%30 = call i32 (...) @roll_dice()
store i32 %30, ptr %2, align 4
%31 = load i32, ptr %2, align 4
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %31)
%33 = load i32, ptr %2, align 4
%34 = load i32, ptr %3, align 4
%35 = icmp eq i32 %33, %34
br i1 %35, label %36, label %38
36: ; preds = %29
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 1, ptr %1, align 4
br label %44
38: ; preds = %29
%39 = load i32, ptr %2, align 4
%40 = icmp eq i32 %39, 7
br i1 %40, label %41, label %43
41: ; preds = %38
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %1, align 4
br label %44
43: ; preds = %38
br label %29
44: ; preds = %41, %36, %23, %12
%45 = load i32, ptr %1, align 4
ret i32 %45
}
declare i32 @roll_dice(...) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa_87ieht.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"First roll: %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You won!\0A\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"You lost!\0A\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"Point is: %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [12 x i8] c"Rolled: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @play_game() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = call i32 (...) @roll_dice()
store i32 %4, ptr %2, align 4
store i32 0, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %5)
%7 = load i32, ptr %2, align 4
%8 = icmp eq i32 %7, 7
br i1 %8, label %12, label %9
9: ; preds = %0
%10 = load i32, ptr %2, align 4
%11 = icmp eq i32 %10, 11
br i1 %11, label %12, label %14
12: ; preds = %9, %0
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 1, ptr %1, align 4
br label %49
14: ; preds = %9
%15 = load i32, ptr %2, align 4
%16 = icmp eq i32 %15, 2
br i1 %16, label %23, label %17
17: ; preds = %14
%18 = load i32, ptr %2, align 4
%19 = icmp eq i32 %18, 3
br i1 %19, label %23, label %20
20: ; preds = %17
%21 = load i32, ptr %2, align 4
%22 = icmp eq i32 %21, 12
br i1 %22, label %23, label %25
23: ; preds = %20, %17, %14
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %1, align 4
br label %49
25: ; preds = %20
%26 = load i32, ptr %2, align 4
store i32 %26, ptr %3, align 4
%27 = load i32, ptr %3, align 4
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %27)
%29 = call i32 (...) @roll_dice()
store i32 %29, ptr %2, align 4
%30 = load i32, ptr %2, align 4
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %30)
%32 = load i32, ptr %2, align 4
%33 = load i32, ptr %3, align 4
%34 = icmp eq i32 %32, %33
br i1 %34, label %42, label %.lr.ph
.lr.ph: ; preds = %25
br label %44
35: ; preds = %44
%36 = call i32 (...) @roll_dice()
store i32 %36, ptr %2, align 4
%37 = load i32, ptr %2, align 4
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %37)
%39 = load i32, ptr %2, align 4
%40 = load i32, ptr %3, align 4
%41 = icmp eq i32 %39, %40
br i1 %41, label %._crit_edge, label %44
._crit_edge: ; preds = %35
br label %42
42: ; preds = %._crit_edge, %25
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 1, ptr %1, align 4
br label %49
44: ; preds = %.lr.ph, %35
%45 = load i32, ptr %2, align 4
%46 = icmp eq i32 %45, 7
br i1 %46, label %47, label %35
47: ; preds = %44
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %1, align 4
br label %49
49: ; preds = %47, %42, %23, %12
%50 = load i32, ptr %1, align 4
ret i32 %50
}
declare i32 @roll_dice(...) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgznakrdm.c'
source_filename = "/tmp/tmpgznakrdm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Unknown image type\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @list(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 = call i32 @getFileType(ptr noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
switch i32 %6, label %16 [
i32 3, label %7
i32 1, label %10
i32 2, label %13
]
7: ; preds = %1
%8 = load ptr, ptr %2, align 8
%9 = call i32 @tapList(ptr noundef %8)
br label %18
10: ; preds = %1
%11 = load ptr, ptr %2, align 8
%12 = call i32 @sclList(ptr noundef %11)
br label %18
13: ; preds = %1
%14 = load ptr, ptr %2, align 8
%15 = call i32 @trdList(ptr noundef %14)
br label %18
16: ; preds = %1
%17 = call i32 @printf(ptr noundef @.str)
br label %18
18: ; preds = %16, %13, %10, %7
ret void
}
declare i32 @getFileType(ptr noundef) #1
declare i32 @tapList(ptr noundef) #1
declare i32 @sclList(ptr noundef) #1
declare i32 @trdList(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgznakrdm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Unknown image type\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @list(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 = call i32 @getFileType(ptr noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
switch i32 %6, label %16 [
i32 3, label %7
i32 1, label %10
i32 2, label %13
]
7: ; preds = %1
%8 = load ptr, ptr %2, align 8
%9 = call i32 @tapList(ptr noundef %8)
br label %18
10: ; preds = %1
%11 = load ptr, ptr %2, align 8
%12 = call i32 @sclList(ptr noundef %11)
br label %18
13: ; preds = %1
%14 = load ptr, ptr %2, align 8
%15 = call i32 @trdList(ptr noundef %14)
br label %18
16: ; preds = %1
%17 = call i32 @printf(ptr noundef @.str)
br label %18
18: ; preds = %16, %13, %10, %7
ret void
}
declare i32 @getFileType(ptr noundef) #1
declare i32 @tapList(ptr noundef) #1
declare i32 @sclList(ptr noundef) #1
declare i32 @trdList(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpl_atb_l4.c'
source_filename = "/tmp/tmpl_atb_l4.c"
target datalayout = "e-m:e-p270: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/tmpl_atb_l4.c"
target datalayout = "e-m:e-p270: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/tmp0b5p_j_9.c'
source_filename = "/tmp/tmp0b5p_j_9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tcp_close(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 i32 %4
}
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/tmp0b5p_j_9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tcp_close(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 i32 %4
}
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/tmpslhcpllx.c'
source_filename = "/tmp/tmpslhcpllx.c"
target datalayout = "e-m:e-p270: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/tmpslhcpllx.c"
target datalayout = "e-m:e-p270: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/tmpmacc26rz.c'
source_filename = "/tmp/tmpmacc26rz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lld\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"Given number is automorphic.\0A\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"Given number is not automorphic.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i64 0, ptr %4, align 8
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%8 = load i64, ptr %2, align 8
store i64 %8, ptr %3, align 8
br label %9
9: ; preds = %12, %0
%10 = load i64, ptr %3, align 8
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %17
12: ; preds = %9
%13 = load i64, ptr %4, align 8
%14 = add nsw i64 %13, 1
store i64 %14, ptr %4, align 8
%15 = load i64, ptr %3, align 8
%16 = sdiv i64 %15, 10
store i64 %16, ptr %3, align 8
br label %9, !llvm.loop !6
17: ; preds = %9
%18 = load i64, ptr %4, align 8
%19 = call i64 @pow(i32 noundef 10, i64 noundef %18)
store i64 %19, ptr %5, align 8
%20 = load i64, ptr %2, align 8
%21 = load i64, ptr %2, align 8
%22 = mul nsw i64 %20, %21
store i64 %22, ptr %6, align 8
%23 = load i64, ptr %6, align 8
%24 = load i64, ptr %5, align 8
%25 = urem i64 %23, %24
store i64 %25, ptr %6, align 8
%26 = load i64, ptr %6, align 8
%27 = load i64, ptr %2, align 8
%28 = icmp eq i64 %26, %27
br i1 %28, label %29, label %31
29: ; preds = %17
%30 = call i32 @printf(ptr noundef @.str.1)
br label %33
31: ; preds = %17
%32 = call i32 @printf(ptr noundef @.str.2)
br label %33
33: ; preds = %31, %29
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @pow(i32 noundef, i64 noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmacc26rz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lld\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"Given number is automorphic.\0A\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"Given number is not automorphic.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i64 0, ptr %4, align 8
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%8 = load i64, ptr %2, align 8
store i64 %8, ptr %3, align 8
%9 = load i64, ptr %3, align 8
%10 = icmp ne i64 %9, 0
br i1 %10, label %.lr.ph, label %18
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %11
%12 = load i64, ptr %4, align 8
%13 = add nsw i64 %12, 1
store i64 %13, ptr %4, align 8
%14 = load i64, ptr %3, align 8
%15 = sdiv i64 %14, 10
store i64 %15, ptr %3, align 8
%16 = load i64, ptr %3, align 8
%17 = icmp ne i64 %16, 0
br i1 %17, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %18
18: ; preds = %._crit_edge, %0
%19 = load i64, ptr %4, align 8
%20 = call i64 @pow(i32 noundef 10, i64 noundef %19)
store i64 %20, ptr %5, align 8
%21 = load i64, ptr %2, align 8
%22 = load i64, ptr %2, align 8
%23 = mul nsw i64 %21, %22
store i64 %23, ptr %6, align 8
%24 = load i64, ptr %6, align 8
%25 = load i64, ptr %5, align 8
%26 = urem i64 %24, %25
store i64 %26, ptr %6, align 8
%27 = load i64, ptr %6, align 8
%28 = load i64, ptr %2, align 8
%29 = icmp eq i64 %27, %28
br i1 %29, label %30, label %32
30: ; preds = %18
%31 = call i32 @printf(ptr noundef @.str.1)
br label %34
32: ; preds = %18
%33 = call i32 @printf(ptr noundef @.str.2)
br label %34
34: ; preds = %32, %30
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @pow(i32 noundef, i64 noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmppp7505t6.c'
source_filename = "/tmp/tmppp7505t6.c"
target datalayout = "e-m:e-p270: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/tmppp7505t6.c"
target datalayout = "e-m:e-p270: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/tmpzidn2hvp.c'
source_filename = "/tmp/tmpzidn2hvp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"gnugol [options] keywords to search for\0A\00", align 1
@.str.2 = private unnamed_addr constant [920 x i8] c"-e --engine [bing|duck|dummy]\0A-o --output [html|json|org|mdwn|wiki|text|term|ssml|textile|raw]\0A-C --charset cs character set used locally\0A-n --nresults number of results to fetch\0A-p --position start of results to fetch\0A-s --snippets 0|1 disable/enable snippets\0A-t --titles 0|1 disable/enable titles\0A-u --urls 0|1 disable/enable urls\0A-H --header 0|1 disable/enable output header\0A-F --footer 0|1 disable/enable output footer\0A-i --indent X result indentation level\0A-S --safe 0|1|2 [off|moderate|active] result filtering\0A-D --debug X debug output level\0A-U --escaped input is already url escaped\0A-l --language-in [en|es|fr|nl or other 2 char locale]\0A-L --language-out [en|es|fr|nl or other 2 char locale]\0A-v --verbose provide more verbose insight\0A-h --help this message\0A-a --about [credits|copyright|license|source|config|manual|stats]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp ne ptr %3, null
br i1 %4, label %5, label %9
5: ; preds = %1
%6 = load i32, ptr @stderr, align 4
%7 = load ptr, ptr %2, align 8
%8 = call i32 @fprintf(i32 noundef %6, ptr noundef @.str, ptr noundef %7)
br label %9
9: ; preds = %5, %1
%10 = call i32 @printf(ptr noundef @.str.1)
%11 = call i32 @printf(ptr noundef @.str.2)
%12 = call i32 @exit(i32 noundef -1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzidn2hvp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"gnugol [options] keywords to search for\0A\00", align 1
@.str.2 = private unnamed_addr constant [920 x i8] c"-e --engine [bing|duck|dummy]\0A-o --output [html|json|org|mdwn|wiki|text|term|ssml|textile|raw]\0A-C --charset cs character set used locally\0A-n --nresults number of results to fetch\0A-p --position start of results to fetch\0A-s --snippets 0|1 disable/enable snippets\0A-t --titles 0|1 disable/enable titles\0A-u --urls 0|1 disable/enable urls\0A-H --header 0|1 disable/enable output header\0A-F --footer 0|1 disable/enable output footer\0A-i --indent X result indentation level\0A-S --safe 0|1|2 [off|moderate|active] result filtering\0A-D --debug X debug output level\0A-U --escaped input is already url escaped\0A-l --language-in [en|es|fr|nl or other 2 char locale]\0A-L --language-out [en|es|fr|nl or other 2 char locale]\0A-v --verbose provide more verbose insight\0A-h --help this message\0A-a --about [credits|copyright|license|source|config|manual|stats]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp ne ptr %3, null
br i1 %4, label %5, label %9
5: ; preds = %1
%6 = load i32, ptr @stderr, align 4
%7 = load ptr, ptr %2, align 8
%8 = call i32 @fprintf(i32 noundef %6, ptr noundef @.str, ptr noundef %7)
br label %9
9: ; preds = %5, %1
%10 = call i32 @printf(ptr noundef @.str.1)
%11 = call i32 @printf(ptr noundef @.str.2)
%12 = call i32 @exit(i32 noundef -1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpobiernob.c'
source_filename = "/tmp/tmpobiernob.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpobiernob.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyejrewm5.c'
source_filename = "/tmp/tmpyejrewm5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fread_double_values(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 %5, align 8
%9 = load i32, ptr %6, align 4
%10 = load ptr, ptr %4, align 8
%11 = call i64 @fread(ptr noundef %8, i32 noundef 8, i32 noundef %9, ptr noundef %10)
store i64 %11, ptr %7, align 8
%12 = load i64, ptr %7, align 8
%13 = trunc i64 %12 to i32
ret i32 %13
}
declare i64 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyejrewm5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fread_double_values(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 %5, align 8
%9 = load i32, ptr %6, align 4
%10 = load ptr, ptr %4, align 8
%11 = call i64 @fread(ptr noundef %8, i32 noundef 8, i32 noundef %9, ptr noundef %10)
store i64 %11, ptr %7, align 8
%12 = load i64, ptr %7, align 8
%13 = trunc i64 %12 to i32
ret i32 %13
}
declare i64 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpb3rrtccc.c'
source_filename = "/tmp/tmpb3rrtccc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [21 x i8], align 16
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
store i32 0, ptr %1, align 4
%6 = getelementptr inbounds [21 x i8], ptr %2, i64 0, i64 0
%7 = load i32, ptr @stdin, align 4
%8 = call i32 @fgets(ptr noundef %6, i32 noundef 20, i32 noundef %7)
%9 = getelementptr inbounds [21 x i8], ptr %2, i64 0, i64 0
%10 = call i64 @strlen(ptr noundef %9)
store i64 %10, ptr %3, align 8
%11 = load i64, ptr %3, align 8
%12 = sub i64 21, %11
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %4, align 8
%14 = alloca i8, i64 %12, align 16
store i64 %12, ptr %5, align 8
%15 = load i64, ptr %3, align 8
%16 = sub i64 %15, 1
%17 = getelementptr inbounds [21 x i8], ptr %2, i64 0, i64 %16
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 10
br i1 %20, label %21, label %25
21: ; preds = %0
%22 = load i64, ptr %3, align 8
%23 = sub i64 %22, 1
%24 = getelementptr inbounds [21 x i8], ptr %2, i64 0, i64 %23
store i8 0, ptr %24, align 1
br label %25
25: ; preds = %21, %0
%26 = load i64, ptr %3, align 8
%27 = icmp ult i64 %26, 21
br i1 %27, label %28, label %36
28: ; preds = %25
%29 = load i64, ptr %3, align 8
%30 = sub i64 20, %29
%31 = trunc i64 %30 to i32
%32 = call i32 @memset(ptr noundef %14, i8 noundef signext 42, i32 noundef %31)
%33 = getelementptr inbounds i8, ptr %14, i64 20
store i8 0, ptr %33, align 4
%34 = getelementptr inbounds [21 x i8], ptr %2, i64 0, i64 0
%35 = call i32 @strncat(ptr noundef %34, ptr noundef %14, i32 noundef 21)
br label %36
36: ; preds = %28, %25
%37 = getelementptr inbounds [21 x i8], ptr %2, i64 0, i64 0
%38 = call i32 @printf(ptr noundef @.str, ptr noundef %37)
store i32 0, ptr %1, align 4
%39 = load ptr, ptr %4, align 8
call void @llvm.stackrestore(ptr %39)
%40 = load i32, ptr %1, align 4
ret i32 %40
}
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @strlen(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @strncat(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb3rrtccc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [21 x i8], align 16
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
store i32 0, ptr %1, align 4
%6 = getelementptr inbounds [21 x i8], ptr %2, i64 0, i64 0
%7 = load i32, ptr @stdin, align 4
%8 = call i32 @fgets(ptr noundef %6, i32 noundef 20, i32 noundef %7)
%9 = getelementptr inbounds [21 x i8], ptr %2, i64 0, i64 0
%10 = call i64 @strlen(ptr noundef %9)
store i64 %10, ptr %3, align 8
%11 = load i64, ptr %3, align 8
%12 = sub i64 21, %11
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %4, align 8
%14 = alloca i8, i64 %12, align 16
store i64 %12, ptr %5, align 8
%15 = load i64, ptr %3, align 8
%16 = sub i64 %15, 1
%17 = getelementptr inbounds [21 x i8], ptr %2, i64 0, i64 %16
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 10
br i1 %20, label %21, label %25
21: ; preds = %0
%22 = load i64, ptr %3, align 8
%23 = sub i64 %22, 1
%24 = getelementptr inbounds [21 x i8], ptr %2, i64 0, i64 %23
store i8 0, ptr %24, align 1
br label %25
25: ; preds = %21, %0
%26 = load i64, ptr %3, align 8
%27 = icmp ult i64 %26, 21
br i1 %27, label %28, label %36
28: ; preds = %25
%29 = load i64, ptr %3, align 8
%30 = sub i64 20, %29
%31 = trunc i64 %30 to i32
%32 = call i32 @memset(ptr noundef %14, i8 noundef signext 42, i32 noundef %31)
%33 = getelementptr inbounds i8, ptr %14, i64 20
store i8 0, ptr %33, align 4
%34 = getelementptr inbounds [21 x i8], ptr %2, i64 0, i64 0
%35 = call i32 @strncat(ptr noundef %34, ptr noundef %14, i32 noundef 21)
br label %36
36: ; preds = %28, %25
%37 = getelementptr inbounds [21 x i8], ptr %2, i64 0, i64 0
%38 = call i32 @printf(ptr noundef @.str, ptr noundef %37)
store i32 0, ptr %1, align 4
%39 = load ptr, ptr %4, align 8
call void @llvm.stackrestore(ptr %39)
%40 = load i32, ptr %1, align 4
ret i32 %40
}
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @strlen(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @strncat(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(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"}
|
; ModuleID = '/tmp/tmpc7z50dg5.c'
source_filename = "/tmp/tmpc7z50dg5.c"
target datalayout = "e-m:e-p270: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.macan_aes_wrap.a = private unnamed_addr constant [8 x i32] [i32 166, i32 166, i32 166, i32 166, i32 166, i32 166, i32 166, i32 166], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @macan_aes_wrap(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca [8 x i32], align 16
%10 = alloca [16 x i32], align 16
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
%16 = 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 ptr %3, ptr %8, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 @__const.macan_aes_wrap.a, i64 32, i1 false)
store i64 16, ptr %11, align 8
%17 = load i64, ptr %6, align 8
%18 = urem i64 %17, 8
%19 = icmp eq i64 %18, 0
%20 = zext i1 %19 to i32
%21 = call i32 @assert(i32 noundef %20)
%22 = load ptr, ptr %7, align 8
%23 = getelementptr inbounds i32, ptr %22, i64 8
%24 = load ptr, ptr %8, align 8
%25 = load i64, ptr %6, align 8
%26 = trunc i64 %25 to i32
%27 = call i32 @memcpy(ptr noundef %23, ptr noundef %24, i32 noundef %26)
%28 = load i64, ptr %6, align 8
%29 = udiv i64 %28, 8
store i64 %29, ptr %13, align 8
store i32 0, ptr %16, align 4
br label %30
30: ; preds = %89, %4
%31 = load i32, ptr %16, align 4
%32 = icmp ult i32 %31, 6
br i1 %32, label %33, label %92
33: ; preds = %30
store i32 1, ptr %15, align 4
br label %34
34: ; preds = %85, %33
%35 = load i32, ptr %15, align 4
%36 = zext i32 %35 to i64
%37 = load i64, ptr %13, align 8
%38 = add i64 %37, 1
%39 = icmp ult i64 %36, %38
br i1 %39, label %40, label %88
40: ; preds = %34
%41 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 0
%42 = getelementptr inbounds [8 x i32], ptr %9, i64 0, i64 0
%43 = call i32 @memcpy(ptr noundef %41, ptr noundef %42, i32 noundef 8)
%44 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 0
%45 = getelementptr inbounds i32, ptr %44, i64 8
%46 = load ptr, ptr %7, align 8
%47 = load i32, ptr %15, align 4
%48 = mul i32 8, %47
%49 = zext i32 %48 to i64
%50 = getelementptr inbounds i32, ptr %46, i64 %49
%51 = call i32 @memcpy(ptr noundef %45, ptr noundef %50, i32 noundef 8)
%52 = load ptr, ptr %5, align 8
%53 = load i64, ptr %11, align 8
%54 = trunc i64 %53 to i32
%55 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 0
%56 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 0
%57 = call i32 @macan_aes_encrypt(ptr noundef %52, i32 noundef %54, ptr noundef %55, ptr noundef %56)
%58 = getelementptr inbounds [8 x i32], ptr %9, i64 0, i64 0
%59 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 0
%60 = call i32 @memcpy(ptr noundef %58, ptr noundef %59, i32 noundef 8)
%61 = load i64, ptr %13, align 8
%62 = load i32, ptr %16, align 4
%63 = zext i32 %62 to i64
%64 = mul i64 %61, %63
%65 = load i32, ptr %15, align 4
%66 = zext i32 %65 to i64
%67 = add i64 %64, %66
store i64 %67, ptr %12, align 8
%68 = getelementptr inbounds [8 x i32], ptr %9, i64 0, i64 0
%69 = getelementptr inbounds i32, ptr %68, i64 4
store ptr %69, ptr %14, align 8
%70 = load ptr, ptr %14, align 8
%71 = load i32, ptr %70, align 4
%72 = load i64, ptr %12, align 8
%73 = trunc i64 %72 to i32
%74 = call i32 @htobe32(i32 noundef %73)
%75 = xor i32 %71, %74
%76 = load ptr, ptr %14, align 8
store i32 %75, ptr %76, align 4
%77 = load ptr, ptr %7, align 8
%78 = load i32, ptr %15, align 4
%79 = mul i32 8, %78
%80 = zext i32 %79 to i64
%81 = getelementptr inbounds i32, ptr %77, i64 %80
%82 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 0
%83 = getelementptr inbounds i32, ptr %82, i64 8
%84 = call i32 @memcpy(ptr noundef %81, ptr noundef %83, i32 noundef 8)
br label %85
85: ; preds = %40
%86 = load i32, ptr %15, align 4
%87 = add i32 %86, 1
store i32 %87, ptr %15, align 4
br label %34, !llvm.loop !6
88: ; preds = %34
br label %89
89: ; preds = %88
%90 = load i32, ptr %16, align 4
%91 = add i32 %90, 1
store i32 %91, ptr %16, align 4
br label %30, !llvm.loop !8
92: ; preds = %30
%93 = load ptr, ptr %7, align 8
%94 = getelementptr inbounds [8 x i32], ptr %9, i64 0, i64 0
%95 = call i32 @memcpy(ptr noundef %93, ptr noundef %94, i32 noundef 8)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @assert(i32 noundef) #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @macan_aes_encrypt(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @htobe32(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/tmpc7z50dg5.c"
target datalayout = "e-m:e-p270: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.macan_aes_wrap.a = private unnamed_addr constant [8 x i32] [i32 166, i32 166, i32 166, i32 166, i32 166, i32 166, i32 166, i32 166], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @macan_aes_wrap(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca [8 x i32], align 16
%10 = alloca [16 x i32], align 16
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
%16 = 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 ptr %3, ptr %8, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 @__const.macan_aes_wrap.a, i64 32, i1 false)
store i64 16, ptr %11, align 8
%17 = load i64, ptr %6, align 8
%18 = urem i64 %17, 8
%19 = icmp eq i64 %18, 0
%20 = zext i1 %19 to i32
%21 = call i32 @assert(i32 noundef %20)
%22 = load ptr, ptr %7, align 8
%23 = getelementptr inbounds i32, ptr %22, i64 8
%24 = load ptr, ptr %8, align 8
%25 = load i64, ptr %6, align 8
%26 = trunc i64 %25 to i32
%27 = call i32 @memcpy(ptr noundef %23, ptr noundef %24, i32 noundef %26)
%28 = load i64, ptr %6, align 8
%29 = udiv i64 %28, 8
store i64 %29, ptr %13, align 8
store i32 0, ptr %16, align 4
%30 = load i32, ptr %16, align 4
%31 = icmp ult i32 %30, 6
br i1 %31, label %.lr.ph2, label %97
.lr.ph2: ; preds = %4
br label %32
32: ; preds = %.lr.ph2, %92
store i32 1, ptr %15, align 4
%33 = load i32, ptr %15, align 4
%34 = zext i32 %33 to i64
%35 = load i64, ptr %13, align 8
%36 = add i64 %35, 1
%37 = icmp ult i64 %34, %36
br i1 %37, label %.lr.ph, label %91
.lr.ph: ; preds = %32
br label %38
38: ; preds = %.lr.ph, %83
%39 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 0
%40 = getelementptr inbounds [8 x i32], ptr %9, i64 0, i64 0
%41 = call i32 @memcpy(ptr noundef %39, ptr noundef %40, i32 noundef 8)
%42 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 0
%43 = getelementptr inbounds i32, ptr %42, i64 8
%44 = load ptr, ptr %7, align 8
%45 = load i32, ptr %15, align 4
%46 = mul i32 8, %45
%47 = zext i32 %46 to i64
%48 = getelementptr inbounds i32, ptr %44, i64 %47
%49 = call i32 @memcpy(ptr noundef %43, ptr noundef %48, i32 noundef 8)
%50 = load ptr, ptr %5, align 8
%51 = load i64, ptr %11, align 8
%52 = trunc i64 %51 to i32
%53 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 0
%54 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 0
%55 = call i32 @macan_aes_encrypt(ptr noundef %50, i32 noundef %52, ptr noundef %53, ptr noundef %54)
%56 = getelementptr inbounds [8 x i32], ptr %9, i64 0, i64 0
%57 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 0
%58 = call i32 @memcpy(ptr noundef %56, ptr noundef %57, i32 noundef 8)
%59 = load i64, ptr %13, align 8
%60 = load i32, ptr %16, align 4
%61 = zext i32 %60 to i64
%62 = mul i64 %59, %61
%63 = load i32, ptr %15, align 4
%64 = zext i32 %63 to i64
%65 = add i64 %62, %64
store i64 %65, ptr %12, align 8
%66 = getelementptr inbounds [8 x i32], ptr %9, i64 0, i64 0
%67 = getelementptr inbounds i32, ptr %66, i64 4
store ptr %67, ptr %14, align 8
%68 = load ptr, ptr %14, align 8
%69 = load i32, ptr %68, align 4
%70 = load i64, ptr %12, align 8
%71 = trunc i64 %70 to i32
%72 = call i32 @htobe32(i32 noundef %71)
%73 = xor i32 %69, %72
%74 = load ptr, ptr %14, align 8
store i32 %73, ptr %74, align 4
%75 = load ptr, ptr %7, align 8
%76 = load i32, ptr %15, align 4
%77 = mul i32 8, %76
%78 = zext i32 %77 to i64
%79 = getelementptr inbounds i32, ptr %75, i64 %78
%80 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 0
%81 = getelementptr inbounds i32, ptr %80, i64 8
%82 = call i32 @memcpy(ptr noundef %79, ptr noundef %81, i32 noundef 8)
br label %83
83: ; preds = %38
%84 = load i32, ptr %15, align 4
%85 = add i32 %84, 1
store i32 %85, ptr %15, align 4
%86 = load i32, ptr %15, align 4
%87 = zext i32 %86 to i64
%88 = load i64, ptr %13, align 8
%89 = add i64 %88, 1
%90 = icmp ult i64 %87, %89
br i1 %90, label %38, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %83
br label %91
91: ; preds = %._crit_edge, %32
br label %92
92: ; preds = %91
%93 = load i32, ptr %16, align 4
%94 = add i32 %93, 1
store i32 %94, ptr %16, align 4
%95 = load i32, ptr %16, align 4
%96 = icmp ult i32 %95, 6
br i1 %96, label %32, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %92
br label %97
97: ; preds = %._crit_edge3, %4
%98 = load ptr, ptr %7, align 8
%99 = getelementptr inbounds [8 x i32], ptr %9, i64 0, i64 0
%100 = call i32 @memcpy(ptr noundef %98, ptr noundef %99, i32 noundef 8)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @assert(i32 noundef) #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @macan_aes_encrypt(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @htobe32(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/tmpuyz4twx5.c'
source_filename = "/tmp/tmpuyz4twx5.c"
target datalayout = "e-m:e-p270: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/tmpuyz4twx5.c"
target datalayout = "e-m:e-p270: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/tmp_4jie9vo.c'
source_filename = "/tmp/tmp_4jie9vo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@R_OK = dso_local global i32 0, align 4
@W_OK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_directory_readwritable(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 i32, ptr @R_OK, align 4
%5 = call i64 @access(ptr noundef %3, i32 noundef %4)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %12
7: ; preds = %1
%8 = load ptr, ptr %2, align 8
%9 = load i32, ptr @W_OK, align 4
%10 = call i64 @access(ptr noundef %8, i32 noundef %9)
%11 = icmp eq i64 %10, 0
br label %12
12: ; preds = %7, %1
%13 = phi i1 [ false, %1 ], [ %11, %7 ]
%14 = zext i1 %13 to i32
ret i32 %14
}
declare i64 @access(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_4jie9vo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@R_OK = dso_local global i32 0, align 4
@W_OK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_directory_readwritable(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 i32, ptr @R_OK, align 4
%5 = call i64 @access(ptr noundef %3, i32 noundef %4)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %12
7: ; preds = %1
%8 = load ptr, ptr %2, align 8
%9 = load i32, ptr @W_OK, align 4
%10 = call i64 @access(ptr noundef %8, i32 noundef %9)
%11 = icmp eq i64 %10, 0
br label %12
12: ; preds = %7, %1
%13 = phi i1 [ false, %1 ], [ %11, %7 ]
%14 = zext i1 %13 to i32
ret i32 %14
}
declare i64 @access(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/tmp8ba6rene.c'
source_filename = "/tmp/tmp8ba6rene.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @boundary_trans(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = icmp eq i32 %5, 1
br i1 %6, label %7, label %10
7: ; preds = %2
%8 = load ptr, ptr %3, align 8
%9 = call i32 @boundary_reflect_rout(ptr noundef %8)
br label %19
10: ; preds = %2
%11 = load i32, ptr %4, align 4
%12 = icmp eq i32 %11, 2
br i1 %12, label %13, label %18
13: ; preds = %10
%14 = load ptr, ptr %3, align 8
%15 = call i32 @boundary_zerograd_zbot(ptr noundef %14, i32 noundef 0)
%16 = load ptr, ptr %3, align 8
%17 = call i32 @boundary_zerograd_ztop(ptr noundef %16, i32 noundef 0)
br label %18
18: ; preds = %13, %10
br label %19
19: ; preds = %18, %7
ret void
}
declare i32 @boundary_reflect_rout(ptr noundef) #1
declare i32 @boundary_zerograd_zbot(ptr noundef, i32 noundef) #1
declare i32 @boundary_zerograd_ztop(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/tmp8ba6rene.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @boundary_trans(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = icmp eq i32 %5, 1
br i1 %6, label %7, label %10
7: ; preds = %2
%8 = load ptr, ptr %3, align 8
%9 = call i32 @boundary_reflect_rout(ptr noundef %8)
br label %19
10: ; preds = %2
%11 = load i32, ptr %4, align 4
%12 = icmp eq i32 %11, 2
br i1 %12, label %13, label %18
13: ; preds = %10
%14 = load ptr, ptr %3, align 8
%15 = call i32 @boundary_zerograd_zbot(ptr noundef %14, i32 noundef 0)
%16 = load ptr, ptr %3, align 8
%17 = call i32 @boundary_zerograd_ztop(ptr noundef %16, i32 noundef 0)
br label %18
18: ; preds = %13, %10
br label %19
19: ; preds = %18, %7
ret void
}
declare i32 @boundary_reflect_rout(ptr noundef) #1
declare i32 @boundary_zerograd_zbot(ptr noundef, i32 noundef) #1
declare i32 @boundary_zerograd_ztop(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/tmp7311891h.c'
source_filename = "/tmp/tmp7311891h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ParseHex(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %5
5: ; preds = %49, %42, %29, %17, %1
%6 = load ptr, ptr %2, align 8
%7 = getelementptr inbounds i8, ptr %6, i32 1
store ptr %7, ptr %2, align 8
%8 = load i8, ptr %6, align 1
%9 = sext i8 %8 to i32
store i32 %9, ptr %4, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %50
11: ; preds = %5
%12 = load i32, ptr %4, align 4
%13 = icmp sge i32 %12, 48
br i1 %13, label %14, label %23
14: ; preds = %11
%15 = load i32, ptr %4, align 4
%16 = icmp sle i32 %15, 57
br i1 %16, label %17, label %23
17: ; preds = %14
%18 = load i32, ptr %3, align 4
%19 = mul nsw i32 %18, 16
%20 = load i32, ptr %4, align 4
%21 = add nsw i32 %19, %20
%22 = sub nsw i32 %21, 48
store i32 %22, ptr %3, align 4
br label %5, !llvm.loop !6
23: ; preds = %14, %11
%24 = load i32, ptr %4, align 4
%25 = icmp sge i32 %24, 97
br i1 %25, label %26, label %36
26: ; preds = %23
%27 = load i32, ptr %4, align 4
%28 = icmp sle i32 %27, 102
br i1 %28, label %29, label %36
29: ; preds = %26
%30 = load i32, ptr %3, align 4
%31 = mul nsw i32 %30, 16
%32 = add nsw i32 %31, 10
%33 = load i32, ptr %4, align 4
%34 = add nsw i32 %32, %33
%35 = sub nsw i32 %34, 97
store i32 %35, ptr %3, align 4
br label %5, !llvm.loop !6
36: ; preds = %26, %23
%37 = load i32, ptr %4, align 4
%38 = icmp sge i32 %37, 65
br i1 %38, label %39, label %49
39: ; preds = %36
%40 = load i32, ptr %4, align 4
%41 = icmp sle i32 %40, 70
br i1 %41, label %42, label %49
42: ; preds = %39
%43 = load i32, ptr %3, align 4
%44 = mul nsw i32 %43, 16
%45 = add nsw i32 %44, 10
%46 = load i32, ptr %4, align 4
%47 = add nsw i32 %45, %46
%48 = sub nsw i32 %47, 65
store i32 %48, ptr %3, align 4
br label %5, !llvm.loop !6
49: ; preds = %39, %36
br label %5, !llvm.loop !6
50: ; preds = %5
%51 = load i32, ptr %3, align 4
ret i32 %51
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp7311891h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ParseHex(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%5 = load ptr, ptr %2, align 8
%6 = getelementptr inbounds i8, ptr %5, i32 1
store ptr %6, ptr %2, align 8
%7 = load i8, ptr %5, align 1
%8 = sext i8 %7 to i32
store i32 %8, ptr %4, align 4
%9 = icmp ne i32 %8, 0
br i1 %9, label %.lr.ph, label %54
.lr.ph: ; preds = %1
br label %10
10: ; preds = %.lr.ph, %.backedge
%11 = load i32, ptr %4, align 4
%12 = icmp sge i32 %11, 48
br i1 %12, label %13, label %27
13: ; preds = %10
%14 = load i32, ptr %4, align 4
%15 = icmp sle i32 %14, 57
br i1 %15, label %16, label %27
16: ; preds = %13
%17 = load i32, ptr %3, align 4
%18 = mul nsw i32 %17, 16
%19 = load i32, ptr %4, align 4
%20 = add nsw i32 %18, %19
%21 = sub nsw i32 %20, 48
store i32 %21, ptr %3, align 4
br label %.backedge
.backedge: ; preds = %16, %33, %46, %53
%22 = load ptr, ptr %2, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 1
store ptr %23, ptr %2, align 8
%24 = load i8, ptr %22, align 1
%25 = sext i8 %24 to i32
store i32 %25, ptr %4, align 4
%26 = icmp ne i32 %25, 0
br i1 %26, label %10, label %._crit_edge, !llvm.loop !6
27: ; preds = %13, %10
%28 = load i32, ptr %4, align 4
%29 = icmp sge i32 %28, 97
br i1 %29, label %30, label %40
30: ; preds = %27
%31 = load i32, ptr %4, align 4
%32 = icmp sle i32 %31, 102
br i1 %32, label %33, label %40
33: ; preds = %30
%34 = load i32, ptr %3, align 4
%35 = mul nsw i32 %34, 16
%36 = add nsw i32 %35, 10
%37 = load i32, ptr %4, align 4
%38 = add nsw i32 %36, %37
%39 = sub nsw i32 %38, 97
store i32 %39, ptr %3, align 4
br label %.backedge
40: ; preds = %30, %27
%41 = load i32, ptr %4, align 4
%42 = icmp sge i32 %41, 65
br i1 %42, label %43, label %53
43: ; preds = %40
%44 = load i32, ptr %4, align 4
%45 = icmp sle i32 %44, 70
br i1 %45, label %46, label %53
46: ; preds = %43
%47 = load i32, ptr %3, align 4
%48 = mul nsw i32 %47, 16
%49 = add nsw i32 %48, 10
%50 = load i32, ptr %4, align 4
%51 = add nsw i32 %49, %50
%52 = sub nsw i32 %51, 65
store i32 %52, ptr %3, align 4
br label %.backedge
53: ; preds = %43, %40
br label %.backedge
._crit_edge: ; preds = %.backedge
br label %54
54: ; preds = %._crit_edge, %1
%55 = load i32, ptr %3, 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"}
|
; ModuleID = '/tmp/tmprzw2f91x.c'
source_filename = "/tmp/tmprzw2f91x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @reduce1Darray(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%9 = load i32, ptr %5, align 4
%10 = call ptr @make1Darray(i32 noundef %9)
store ptr %10, ptr %7, align 8
store i32 0, ptr %8, align 4
br label %11
11: ; preds = %25, %3
%12 = load i32, ptr %8, align 4
%13 = load i32, ptr %5, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %28
15: ; preds = %11
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %8, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds double, ptr %16, i64 %18
%20 = load double, ptr %19, align 8
%21 = load ptr, ptr %7, align 8
%22 = load i32, ptr %8, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds double, ptr %21, i64 %23
store double %20, ptr %24, align 8
br label %25
25: ; preds = %15
%26 = load i32, ptr %8, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %8, align 4
br label %11, !llvm.loop !6
28: ; preds = %11
%29 = load ptr, ptr %4, align 8
%30 = call i32 @free(ptr noundef %29)
%31 = load ptr, ptr %7, align 8
ret ptr %31
}
declare ptr @make1Darray(i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprzw2f91x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @reduce1Darray(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%9 = load i32, ptr %5, align 4
%10 = call ptr @make1Darray(i32 noundef %9)
store ptr %10, ptr %7, align 8
store i32 0, ptr %8, align 4
%11 = load i32, ptr %8, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %.lr.ph, label %30
.lr.ph: ; preds = %3
br label %14
14: ; preds = %.lr.ph, %24
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %8, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds double, ptr %15, i64 %17
%19 = load double, ptr %18, align 8
%20 = load ptr, ptr %7, align 8
%21 = load i32, ptr %8, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds double, ptr %20, i64 %22
store double %19, ptr %23, align 8
br label %24
24: ; preds = %14
%25 = load i32, ptr %8, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %8, align 4
%27 = load i32, ptr %8, align 4
%28 = load i32, ptr %5, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %30
30: ; preds = %._crit_edge, %3
%31 = load ptr, ptr %4, align 8
%32 = call i32 @free(ptr noundef %31)
%33 = load ptr, ptr %7, align 8
ret ptr %33
}
declare ptr @make1Darray(i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpzhd3rqrp.c'
source_filename = "/tmp/tmpzhd3rqrp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"hello\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @exp05_fp() #0 {
%1 = call i32 @print(ptr noundef @.str)
ret void
}
declare i32 @print(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzhd3rqrp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"hello\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @exp05_fp() #0 {
%1 = call i32 @print(ptr noundef @.str)
ret void
}
declare i32 @print(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpme6zg0pa.c'
source_filename = "/tmp/tmpme6zg0pa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.termios = type { ptr, i32, i32 }
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [12 x i8] c"tcsetattr()\00", align 1
@ICANON = dso_local global i32 0, align 4
@ECHO = dso_local global i32 0, align 4
@VMIN = dso_local global i64 0, align 8
@VTIME = dso_local global i64 0, align 8
@TCSANOW = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [17 x i8] c"tcsetattr ICANON\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"read()\00", align 1
@TCSADRAIN = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [18 x i8] c"tcsetattr ~ICANON\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @getch() #0 {
%1 = alloca i8, align 1
%2 = alloca %struct.termios, align 8
store i8 0, ptr %1, align 1
call void @llvm.memset.p0.i64(ptr align 8 %2, i8 0, i64 16, i1 false)
%3 = load i32, ptr @stdout, align 4
%4 = call i32 @fflush(i32 noundef %3)
%5 = call i64 @tcgetattr(i32 noundef 0, ptr noundef %2)
%6 = icmp slt i64 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @perror(ptr noundef @.str)
br label %9
9: ; preds = %7, %0
%10 = load i32, ptr @ICANON, align 4
%11 = xor i32 %10, -1
%12 = getelementptr inbounds %struct.termios, ptr %2, i32 0, i32 1
%13 = load i32, ptr %12, align 8
%14 = and i32 %13, %11
store i32 %14, ptr %12, align 8
%15 = load i32, ptr @ECHO, align 4
%16 = xor i32 %15, -1
%17 = getelementptr inbounds %struct.termios, ptr %2, i32 0, i32 1
%18 = load i32, ptr %17, align 8
%19 = and i32 %18, %16
store i32 %19, ptr %17, align 8
%20 = getelementptr inbounds %struct.termios, ptr %2, i32 0, i32 0
%21 = load ptr, ptr %20, align 8
%22 = load i64, ptr @VMIN, align 8
%23 = getelementptr inbounds i32, ptr %21, i64 %22
store i32 1, ptr %23, align 4
%24 = getelementptr inbounds %struct.termios, ptr %2, i32 0, i32 0
%25 = load ptr, ptr %24, align 8
%26 = load i64, ptr @VTIME, align 8
%27 = getelementptr inbounds i32, ptr %25, i64 %26
store i32 0, ptr %27, align 4
%28 = load i32, ptr @TCSANOW, align 4
%29 = call i64 @tcsetattr(i32 noundef 0, i32 noundef %28, ptr noundef %2)
%30 = icmp slt i64 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %9
%32 = call i32 @perror(ptr noundef @.str.1)
br label %33
33: ; preds = %31, %9
%34 = call i64 @read(i32 noundef 0, ptr noundef %1, i32 noundef 1)
%35 = icmp slt i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = call i32 @perror(ptr noundef @.str.2)
br label %38
38: ; preds = %36, %33
%39 = load i32, ptr @ICANON, align 4
%40 = getelementptr inbounds %struct.termios, ptr %2, i32 0, i32 1
%41 = load i32, ptr %40, align 8
%42 = or i32 %41, %39
store i32 %42, ptr %40, align 8
%43 = load i32, ptr @ECHO, align 4
%44 = getelementptr inbounds %struct.termios, ptr %2, i32 0, i32 1
%45 = load i32, ptr %44, align 8
%46 = or i32 %45, %43
store i32 %46, ptr %44, align 8
%47 = load i32, ptr @TCSADRAIN, align 4
%48 = call i64 @tcsetattr(i32 noundef 0, i32 noundef %47, ptr noundef %2)
%49 = icmp slt i64 %48, 0
br i1 %49, label %50, label %52
50: ; preds = %38
%51 = call i32 @perror(ptr noundef @.str.3)
br label %52
52: ; preds = %50, %38
%53 = load i8, ptr %1, align 1
ret i8 %53
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @fflush(i32 noundef) #2
declare i64 @tcgetattr(i32 noundef, ptr noundef) #2
declare i32 @perror(ptr noundef) #2
declare i64 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) #2
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpme6zg0pa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.termios = type { ptr, i32, i32 }
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [12 x i8] c"tcsetattr()\00", align 1
@ICANON = dso_local global i32 0, align 4
@ECHO = dso_local global i32 0, align 4
@VMIN = dso_local global i64 0, align 8
@VTIME = dso_local global i64 0, align 8
@TCSANOW = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [17 x i8] c"tcsetattr ICANON\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"read()\00", align 1
@TCSADRAIN = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [18 x i8] c"tcsetattr ~ICANON\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @getch() #0 {
%1 = alloca i8, align 1
%2 = alloca %struct.termios, align 8
store i8 0, ptr %1, align 1
call void @llvm.memset.p0.i64(ptr align 8 %2, i8 0, i64 16, i1 false)
%3 = load i32, ptr @stdout, align 4
%4 = call i32 @fflush(i32 noundef %3)
%5 = call i64 @tcgetattr(i32 noundef 0, ptr noundef %2)
%6 = icmp slt i64 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @perror(ptr noundef @.str)
br label %9
9: ; preds = %7, %0
%10 = load i32, ptr @ICANON, align 4
%11 = xor i32 %10, -1
%12 = getelementptr inbounds %struct.termios, ptr %2, i32 0, i32 1
%13 = load i32, ptr %12, align 8
%14 = and i32 %13, %11
store i32 %14, ptr %12, align 8
%15 = load i32, ptr @ECHO, align 4
%16 = xor i32 %15, -1
%17 = getelementptr inbounds %struct.termios, ptr %2, i32 0, i32 1
%18 = load i32, ptr %17, align 8
%19 = and i32 %18, %16
store i32 %19, ptr %17, align 8
%20 = getelementptr inbounds %struct.termios, ptr %2, i32 0, i32 0
%21 = load ptr, ptr %20, align 8
%22 = load i64, ptr @VMIN, align 8
%23 = getelementptr inbounds i32, ptr %21, i64 %22
store i32 1, ptr %23, align 4
%24 = getelementptr inbounds %struct.termios, ptr %2, i32 0, i32 0
%25 = load ptr, ptr %24, align 8
%26 = load i64, ptr @VTIME, align 8
%27 = getelementptr inbounds i32, ptr %25, i64 %26
store i32 0, ptr %27, align 4
%28 = load i32, ptr @TCSANOW, align 4
%29 = call i64 @tcsetattr(i32 noundef 0, i32 noundef %28, ptr noundef %2)
%30 = icmp slt i64 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %9
%32 = call i32 @perror(ptr noundef @.str.1)
br label %33
33: ; preds = %31, %9
%34 = call i64 @read(i32 noundef 0, ptr noundef %1, i32 noundef 1)
%35 = icmp slt i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = call i32 @perror(ptr noundef @.str.2)
br label %38
38: ; preds = %36, %33
%39 = load i32, ptr @ICANON, align 4
%40 = getelementptr inbounds %struct.termios, ptr %2, i32 0, i32 1
%41 = load i32, ptr %40, align 8
%42 = or i32 %41, %39
store i32 %42, ptr %40, align 8
%43 = load i32, ptr @ECHO, align 4
%44 = getelementptr inbounds %struct.termios, ptr %2, i32 0, i32 1
%45 = load i32, ptr %44, align 8
%46 = or i32 %45, %43
store i32 %46, ptr %44, align 8
%47 = load i32, ptr @TCSADRAIN, align 4
%48 = call i64 @tcsetattr(i32 noundef 0, i32 noundef %47, ptr noundef %2)
%49 = icmp slt i64 %48, 0
br i1 %49, label %50, label %52
50: ; preds = %38
%51 = call i32 @perror(ptr noundef @.str.3)
br label %52
52: ; preds = %50, %38
%53 = load i8, ptr %1, align 1
ret i8 %53
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @fflush(i32 noundef) #2
declare i64 @tcgetattr(i32 noundef, ptr noundef) #2
declare i32 @perror(ptr noundef) #2
declare i64 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) #2
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkafrfpcg.c'
source_filename = "/tmp/tmpkafrfpcg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @prepend(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 @insert_at(i32 noundef 0, i32 noundef %3)
ret void
}
declare i32 @insert_at(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/tmpkafrfpcg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @prepend(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 @insert_at(i32 noundef 0, i32 noundef %3)
ret void
}
declare i32 @insert_at(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/tmpjj29kxo_.c'
source_filename = "/tmp/tmpjj29kxo_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @math_vector_distance(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca double, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %14
11: ; preds = %3
%12 = load ptr, ptr %5, align 8
%13 = icmp ne ptr %12, null
br label %14
14: ; preds = %11, %3
%15 = phi i1 [ false, %3 ], [ %13, %11 ]
%16 = zext i1 %15 to i32
%17 = call i32 @assert(i32 noundef %16)
store double 0.000000e+00, ptr %7, align 8
store i64 0, ptr %8, align 8
br label %18
18: ; preds = %43, %14
%19 = load i64, ptr %8, align 8
%20 = load i64, ptr %6, align 8
%21 = icmp ne i64 %19, %20
br i1 %21, label %22, label %46
22: ; preds = %18
%23 = load ptr, ptr %4, align 8
%24 = load i64, ptr %8, align 8
%25 = getelementptr inbounds double, ptr %23, i64 %24
%26 = load double, ptr %25, align 8
%27 = load ptr, ptr %5, align 8
%28 = load i64, ptr %8, align 8
%29 = getelementptr inbounds double, ptr %27, i64 %28
%30 = load double, ptr %29, align 8
%31 = fsub double %26, %30
%32 = load ptr, ptr %4, align 8
%33 = load i64, ptr %8, align 8
%34 = getelementptr inbounds double, ptr %32, i64 %33
%35 = load double, ptr %34, align 8
%36 = load ptr, ptr %5, align 8
%37 = load i64, ptr %8, align 8
%38 = getelementptr inbounds double, ptr %36, i64 %37
%39 = load double, ptr %38, align 8
%40 = fsub double %35, %39
%41 = load double, ptr %7, align 8
%42 = call double @llvm.fmuladd.f64(double %31, double %40, double %41)
store double %42, ptr %7, align 8
br label %43
43: ; preds = %22
%44 = load i64, ptr %8, align 8
%45 = add i64 %44, 1
store i64 %45, ptr %8, align 8
br label %18, !llvm.loop !6
46: ; preds = %18
%47 = load double, ptr %7, align 8
%48 = call double @sqrt(double noundef %47) #4
ret double %48
}
declare i32 @assert(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
; Function Attrs: nounwind
declare double @sqrt(double noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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) }
attributes #3 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjj29kxo_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @math_vector_distance(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca double, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %14
11: ; preds = %3
%12 = load ptr, ptr %5, align 8
%13 = icmp ne ptr %12, null
br label %14
14: ; preds = %11, %3
%15 = phi i1 [ false, %3 ], [ %13, %11 ]
%16 = zext i1 %15 to i32
%17 = call i32 @assert(i32 noundef %16)
store double 0.000000e+00, ptr %7, align 8
store i64 0, ptr %8, align 8
%18 = load i64, ptr %8, align 8
%19 = load i64, ptr %6, align 8
%20 = icmp ne i64 %18, %19
br i1 %20, label %.lr.ph, label %48
.lr.ph: ; preds = %14
br label %21
21: ; preds = %.lr.ph, %42
%22 = load ptr, ptr %4, align 8
%23 = load i64, ptr %8, align 8
%24 = getelementptr inbounds double, ptr %22, i64 %23
%25 = load double, ptr %24, align 8
%26 = load ptr, ptr %5, align 8
%27 = load i64, ptr %8, align 8
%28 = getelementptr inbounds double, ptr %26, i64 %27
%29 = load double, ptr %28, align 8
%30 = fsub double %25, %29
%31 = load ptr, ptr %4, align 8
%32 = load i64, ptr %8, align 8
%33 = getelementptr inbounds double, ptr %31, i64 %32
%34 = load double, ptr %33, align 8
%35 = load ptr, ptr %5, align 8
%36 = load i64, ptr %8, align 8
%37 = getelementptr inbounds double, ptr %35, i64 %36
%38 = load double, ptr %37, align 8
%39 = fsub double %34, %38
%40 = load double, ptr %7, align 8
%41 = call double @llvm.fmuladd.f64(double %30, double %39, double %40)
store double %41, ptr %7, align 8
br label %42
42: ; preds = %21
%43 = load i64, ptr %8, align 8
%44 = add i64 %43, 1
store i64 %44, ptr %8, align 8
%45 = load i64, ptr %8, align 8
%46 = load i64, ptr %6, align 8
%47 = icmp ne i64 %45, %46
br i1 %47, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %42
br label %48
48: ; preds = %._crit_edge, %14
%49 = load double, ptr %7, align 8
%50 = call double @sqrt(double noundef %49) #4
ret double %50
}
declare i32 @assert(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
; Function Attrs: nounwind
declare double @sqrt(double noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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) }
attributes #3 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpi0cn52wi.c'
source_filename = "/tmp/tmpi0cn52wi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @readw(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i8, align 1
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %11
11: ; preds = %102, %3
%12 = load i32, ptr %8, align 4
%13 = load i32, ptr %7, align 4
%14 = sub nsw i32 %13, 1
%15 = icmp slt i32 %12, %14
br i1 %15, label %16, label %105
16: ; preds = %11
%17 = load i32, ptr %5, align 4
%18 = call i32 @read(i32 noundef %17, ptr noundef %10, i32 noundef 1)
store i32 %18, ptr %9, align 4
%19 = load i32, ptr %9, align 4
%20 = icmp eq i32 %19, 0
br i1 %20, label %33, label %21
21: ; preds = %16
%22 = load i8, ptr %10, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 13
br i1 %24, label %33, label %25
25: ; preds = %21
%26 = load i8, ptr %10, align 1
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 10
br i1 %28, label %33, label %29
29: ; preds = %25
%30 = load i8, ptr %10, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 32
br i1 %32, label %33, label %36
33: ; preds = %29, %25, %21, %16
%34 = load ptr, ptr %6, align 8
store i8 0, ptr %34, align 1
%35 = load i32, ptr %9, align 4
store i32 %35, ptr %4, align 4
br label %107
36: ; preds = %29
%37 = load i8, ptr %10, align 1
%38 = sext i8 %37 to i32
%39 = icmp eq i32 %38, 35
br i1 %39, label %40, label %60
40: ; preds = %36
br label %41
41: ; preds = %40, %58
%42 = load i32, ptr %5, align 4
%43 = call i32 @read(i32 noundef %42, ptr noundef %10, i32 noundef 1)
store i32 %43, ptr %9, align 4
%44 = load i32, ptr %9, align 4
%45 = icmp eq i32 %44, 0
br i1 %45, label %46, label %49
46: ; preds = %41
%47 = load ptr, ptr %6, align 8
store i8 0, ptr %47, align 1
%48 = load i32, ptr %9, align 4
store i32 %48, ptr %4, align 4
br label %107
49: ; preds = %41
%50 = load i8, ptr %10, align 1
%51 = sext i8 %50 to i32
%52 = icmp eq i32 %51, 13
br i1 %52, label %57, label %53
53: ; preds = %49
%54 = load i8, ptr %10, align 1
%55 = sext i8 %54 to i32
%56 = icmp eq i32 %55, 10
br i1 %56, label %57, label %58
57: ; preds = %53, %49
br label %59
58: ; preds = %53
br label %41
59: ; preds = %57
br label %102
60: ; preds = %36
%61 = load i8, ptr %10, align 1
%62 = sext i8 %61 to i32
%63 = icmp eq i32 %62, 33
br i1 %63, label %64, label %98
64: ; preds = %60
%65 = load i8, ptr %10, align 1
%66 = load ptr, ptr %6, align 8
%67 = getelementptr inbounds i8, ptr %66, i32 1
store ptr %67, ptr %6, align 8
store i8 %65, ptr %66, align 1
store i32 1, ptr %8, align 4
br label %68
68: ; preds = %93, %64
%69 = load i32, ptr %8, align 4
%70 = load i32, ptr %7, align 4
%71 = sub nsw i32 %70, 1
%72 = icmp slt i32 %69, %71
br i1 %72, label %73, label %96
73: ; preds = %68
%74 = load i32, ptr %5, align 4
%75 = call i32 @read(i32 noundef %74, ptr noundef %10, i32 noundef 1)
store i32 %75, ptr %9, align 4
%76 = load i32, ptr %9, align 4
%77 = icmp eq i32 %76, 0
br i1 %77, label %86, label %78
78: ; preds = %73
%79 = load i8, ptr %10, align 1
%80 = sext i8 %79 to i32
%81 = icmp eq i32 %80, 13
br i1 %81, label %86, label %82
82: ; preds = %78
%83 = load i8, ptr %10, align 1
%84 = sext i8 %83 to i32
%85 = icmp eq i32 %84, 10
br i1 %85, label %86, label %89
86: ; preds = %82, %78, %73
%87 = load ptr, ptr %6, align 8
store i8 0, ptr %87, align 1
%88 = load i32, ptr %9, align 4
store i32 %88, ptr %4, align 4
br label %107
89: ; preds = %82
%90 = load i8, ptr %10, align 1
%91 = load ptr, ptr %6, align 8
%92 = getelementptr inbounds i8, ptr %91, i32 1
store ptr %92, ptr %6, align 8
store i8 %90, ptr %91, align 1
br label %93
93: ; preds = %89
%94 = load i32, ptr %8, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %8, align 4
br label %68, !llvm.loop !6
96: ; preds = %68
%97 = load ptr, ptr %6, align 8
store i8 0, ptr %97, align 1
store i32 1, ptr %4, align 4
br label %107
98: ; preds = %60
%99 = load i8, ptr %10, align 1
%100 = load ptr, ptr %6, align 8
%101 = getelementptr inbounds i8, ptr %100, i32 1
store ptr %101, ptr %6, align 8
store i8 %99, ptr %100, align 1
br label %102
102: ; preds = %98, %59
%103 = load i32, ptr %8, align 4
%104 = add nsw i32 %103, 1
store i32 %104, ptr %8, align 4
br label %11, !llvm.loop !8
105: ; preds = %11
%106 = load ptr, ptr %6, align 8
store i8 0, ptr %106, align 1
store i32 1, ptr %4, align 4
br label %107
107: ; preds = %105, %96, %86, %46, %33
%108 = load i32, ptr %4, align 4
ret i32 %108
}
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi0cn52wi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @readw(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i8, align 1
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
%11 = load i32, ptr %8, align 4
%12 = load i32, ptr %7, align 4
%13 = sub nsw i32 %12, 1
%14 = icmp slt i32 %11, %13
br i1 %14, label %.lr.ph3, label %114
.lr.ph3: ; preds = %3
br label %15
15: ; preds = %.lr.ph3, %107
%16 = load i32, ptr %5, align 4
%17 = call i32 @read(i32 noundef %16, ptr noundef %10, i32 noundef 1)
store i32 %17, ptr %9, align 4
%18 = load i32, ptr %9, align 4
%19 = icmp eq i32 %18, 0
br i1 %19, label %32, label %20
20: ; preds = %15
%21 = load i8, ptr %10, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 13
br i1 %23, label %32, label %24
24: ; preds = %20
%25 = load i8, ptr %10, align 1
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 10
br i1 %27, label %32, label %28
28: ; preds = %24
%29 = load i8, ptr %10, align 1
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 32
br i1 %31, label %32, label %35
32: ; preds = %28, %24, %20, %15
%33 = load ptr, ptr %6, align 8
store i8 0, ptr %33, align 1
%34 = load i32, ptr %9, align 4
store i32 %34, ptr %4, align 4
br label %116
35: ; preds = %28
%36 = load i8, ptr %10, align 1
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 35
br i1 %38, label %39, label %62
39: ; preds = %35
%40 = load i32, ptr %5, align 4
%41 = call i32 @read(i32 noundef %40, ptr noundef %10, i32 noundef 1)
store i32 %41, ptr %9, align 4
%42 = load i32, ptr %9, align 4
%43 = icmp eq i32 %42, 0
br i1 %43, label %._crit_edge, label %.lr.ph
.lr.ph: ; preds = %39
br label %52
44: ; preds = %56
%45 = load i32, ptr %5, align 4
%46 = call i32 @read(i32 noundef %45, ptr noundef %10, i32 noundef 1)
store i32 %46, ptr %9, align 4
%47 = load i32, ptr %9, align 4
%48 = icmp eq i32 %47, 0
br i1 %48, label %._crit_edge1, label %52
._crit_edge: ; preds = %39
br label %49
._crit_edge1: ; preds = %44
br label %49
49: ; preds = %._crit_edge1, %._crit_edge
%50 = load ptr, ptr %6, align 8
store i8 0, ptr %50, align 1
%51 = load i32, ptr %9, align 4
store i32 %51, ptr %4, align 4
br label %116
52: ; preds = %.lr.ph, %44
%53 = load i8, ptr %10, align 1
%54 = sext i8 %53 to i32
%55 = icmp eq i32 %54, 13
br i1 %55, label %60, label %56
56: ; preds = %52
%57 = load i8, ptr %10, align 1
%58 = sext i8 %57 to i32
%59 = icmp eq i32 %58, 10
br i1 %59, label %60, label %44
60: ; preds = %56, %52
br label %61
61: ; preds = %60
br label %107
62: ; preds = %35
%63 = load i8, ptr %10, align 1
%64 = sext i8 %63 to i32
%65 = icmp eq i32 %64, 33
br i1 %65, label %66, label %103
66: ; preds = %62
%67 = load i8, ptr %10, align 1
%68 = load ptr, ptr %6, align 8
%69 = getelementptr inbounds i8, ptr %68, i32 1
store ptr %69, ptr %6, align 8
store i8 %67, ptr %68, align 1
store i32 1, ptr %8, align 4
%70 = load i32, ptr %8, align 4
%71 = load i32, ptr %7, align 4
%72 = sub nsw i32 %71, 1
%73 = icmp slt i32 %70, %72
br i1 %73, label %.lr.ph6, label %101
.lr.ph6: ; preds = %66
br label %74
74: ; preds = %.lr.ph6, %94
%75 = load i32, ptr %5, align 4
%76 = call i32 @read(i32 noundef %75, ptr noundef %10, i32 noundef 1)
store i32 %76, ptr %9, align 4
%77 = load i32, ptr %9, align 4
%78 = icmp eq i32 %77, 0
br i1 %78, label %87, label %79
79: ; preds = %74
%80 = load i8, ptr %10, align 1
%81 = sext i8 %80 to i32
%82 = icmp eq i32 %81, 13
br i1 %82, label %87, label %83
83: ; preds = %79
%84 = load i8, ptr %10, align 1
%85 = sext i8 %84 to i32
%86 = icmp eq i32 %85, 10
br i1 %86, label %87, label %90
87: ; preds = %83, %79, %74
%88 = load ptr, ptr %6, align 8
store i8 0, ptr %88, align 1
%89 = load i32, ptr %9, align 4
store i32 %89, ptr %4, align 4
br label %116
90: ; preds = %83
%91 = load i8, ptr %10, align 1
%92 = load ptr, ptr %6, align 8
%93 = getelementptr inbounds i8, ptr %92, i32 1
store ptr %93, ptr %6, align 8
store i8 %91, ptr %92, align 1
br label %94
94: ; preds = %90
%95 = load i32, ptr %8, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %8, align 4
%97 = load i32, ptr %8, align 4
%98 = load i32, ptr %7, align 4
%99 = sub nsw i32 %98, 1
%100 = icmp slt i32 %97, %99
br i1 %100, label %74, label %._crit_edge7, !llvm.loop !6
._crit_edge7: ; preds = %94
br label %101
101: ; preds = %._crit_edge7, %66
%102 = load ptr, ptr %6, align 8
store i8 0, ptr %102, align 1
store i32 1, ptr %4, align 4
br label %116
103: ; preds = %62
%104 = load i8, ptr %10, align 1
%105 = load ptr, ptr %6, align 8
%106 = getelementptr inbounds i8, ptr %105, i32 1
store ptr %106, ptr %6, align 8
store i8 %104, ptr %105, align 1
br label %107
107: ; preds = %103, %61
%108 = load i32, ptr %8, align 4
%109 = add nsw i32 %108, 1
store i32 %109, ptr %8, align 4
%110 = load i32, ptr %8, align 4
%111 = load i32, ptr %7, align 4
%112 = sub nsw i32 %111, 1
%113 = icmp slt i32 %110, %112
br i1 %113, label %15, label %._crit_edge4, !llvm.loop !8
._crit_edge4: ; preds = %107
br label %114
114: ; preds = %._crit_edge4, %3
%115 = load ptr, ptr %6, align 8
store i8 0, ptr %115, align 1
store i32 1, ptr %4, align 4
br label %116
116: ; preds = %114, %101, %87, %49, %32
%117 = load i32, ptr %4, align 4
ret i32 %117
}
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpfkh9rkvx.c'
source_filename = "/tmp/tmpfkh9rkvx.c"
target datalayout = "e-m:e-p270: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/tmpfkh9rkvx.c"
target datalayout = "e-m:e-p270: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/tmpzx03om5l.c'
source_filename = "/tmp/tmpzx03om5l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cmd_config_set(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr null, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = load ptr, ptr %3, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %10, label %9
9: ; preds = %1
store i32 1, ptr %2, align 4
br label %63
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = call ptr @strdup(ptr noundef %11)
store ptr %12, ptr %5, align 8
%13 = load ptr, ptr %5, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %58
15: ; preds = %10
store i32 0, ptr %4, align 4
br label %16
16: ; preds = %39, %15
%17 = load ptr, ptr %5, align 8
%18 = load i32, ptr %4, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %42
24: ; preds = %16
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %4, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 61
br i1 %31, label %32, label %39
32: ; preds = %24
store i32 1, ptr %6, align 4
%33 = load ptr, ptr %5, align 8
%34 = load i32, ptr %4, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
store i8 0, ptr %36, align 1
%37 = load i32, ptr %4, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %4, align 4
br label %42
39: ; preds = %24
%40 = load i32, ptr %4, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %4, align 4
br label %16, !llvm.loop !6
42: ; preds = %32, %16
%43 = load i32, ptr %4, align 4
%44 = icmp sgt i32 %43, 0
br i1 %44, label %45, label %55
45: ; preds = %42
%46 = load i32, ptr %6, align 4
%47 = icmp ne i32 %46, 0
br i1 %47, label %48, label %55
48: ; preds = %45
%49 = load ptr, ptr %5, align 8
%50 = load ptr, ptr %5, align 8
%51 = load i32, ptr %4, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8, ptr %50, i64 %52
%54 = call i32 @defaults_update(ptr noundef %49, ptr noundef %53)
br label %55
55: ; preds = %48, %45, %42
%56 = load ptr, ptr %5, align 8
%57 = call i32 @free(ptr noundef %56)
br label %58
58: ; preds = %55, %10
%59 = load i32, ptr %6, align 4
%60 = icmp ne i32 %59, 0
%61 = xor i1 %60, true
%62 = zext i1 %61 to i32
store i32 %62, ptr %2, align 4
br label %63
63: ; preds = %58, %9
%64 = load i32, ptr %2, align 4
ret i32 %64
}
declare ptr @strdup(ptr noundef) #1
declare i32 @defaults_update(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzx03om5l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cmd_config_set(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr null, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = load ptr, ptr %3, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %10, label %9
9: ; preds = %1
store i32 1, ptr %2, align 4
br label %69
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = call ptr @strdup(ptr noundef %11)
store ptr %12, ptr %5, align 8
%13 = load ptr, ptr %5, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %64
15: ; preds = %10
store i32 0, ptr %4, align 4
%16 = load ptr, ptr %5, 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 ne i32 %21, 0
br i1 %22, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %15
br label %23
23: ; preds = %.lr.ph, %38
%24 = load ptr, ptr %5, 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 eq i32 %29, 61
br i1 %30, label %31, label %38
31: ; preds = %23
store i32 1, ptr %6, align 4
%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 0, 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 %48
38: ; preds = %23
%39 = load i32, ptr %4, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %4, align 4
%41 = load ptr, ptr %5, align 8
%42 = load i32, ptr %4, 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 %46, 0
br i1 %47, label %23, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %38
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %15
br label %48
48: ; preds = %.loopexit, %31
%49 = load i32, ptr %4, align 4
%50 = icmp sgt i32 %49, 0
br i1 %50, label %51, label %61
51: ; preds = %48
%52 = load i32, ptr %6, align 4
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %61
54: ; preds = %51
%55 = load ptr, ptr %5, align 8
%56 = load ptr, ptr %5, align 8
%57 = load i32, ptr %4, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i8, ptr %56, i64 %58
%60 = call i32 @defaults_update(ptr noundef %55, ptr noundef %59)
br label %61
61: ; preds = %54, %51, %48
%62 = load ptr, ptr %5, align 8
%63 = call i32 @free(ptr noundef %62)
br label %64
64: ; preds = %61, %10
%65 = load i32, ptr %6, align 4
%66 = icmp ne i32 %65, 0
%67 = xor i1 %66, true
%68 = zext i1 %67 to i32
store i32 %68, ptr %2, align 4
br label %69
69: ; preds = %64, %9
%70 = load i32, ptr %2, align 4
ret i32 %70
}
declare ptr @strdup(ptr noundef) #1
declare i32 @defaults_update(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp97i0b815.c'
source_filename = "/tmp/tmp97i0b815.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [172 x i8] c"POLARSSL_X509_CRT_WRITE_C and/or POLARSSL_X509_CRT_PARSE_C and/or POLARSSL_FS_IO and/or POLARSSL_ENTROPY_C and/or POLARSSL_CTR_DRBG_C and/or POLARSSL_ERROR_C not defined.\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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = load ptr, ptr %5, align 8
%8 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp97i0b815.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [172 x i8] c"POLARSSL_X509_CRT_WRITE_C and/or POLARSSL_X509_CRT_PARSE_C and/or POLARSSL_FS_IO and/or POLARSSL_ENTROPY_C and/or POLARSSL_CTR_DRBG_C and/or POLARSSL_ERROR_C not defined.\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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = load ptr, ptr %5, align 8
%8 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2cl_oehs.c'
source_filename = "/tmp/tmp2cl_oehs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"p = %d m = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 5, ptr %2, align 4
store i32 3, ptr %3, align 4
store i32 1, ptr %4, align 4
store i32 1, ptr %5, align 4
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %3, align 4
%8 = call i32 @wa_sa(i32 noundef %6, i32 noundef %7, ptr noundef %4, ptr noundef %5)
%9 = load i32, ptr %4, align 4
%10 = load i32, ptr %5, align 4
%11 = call i32 @printf(ptr noundef @.str, i32 noundef %9, i32 noundef %10)
ret i32 0
}
declare i32 @wa_sa(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2cl_oehs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"p = %d m = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 5, ptr %2, align 4
store i32 3, ptr %3, align 4
store i32 1, ptr %4, align 4
store i32 1, ptr %5, align 4
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %3, align 4
%8 = call i32 @wa_sa(i32 noundef %6, i32 noundef %7, ptr noundef %4, ptr noundef %5)
%9 = load i32, ptr %4, align 4
%10 = load i32, ptr %5, align 4
%11 = call i32 @printf(ptr noundef @.str, i32 noundef %9, i32 noundef %10)
ret i32 0
}
declare i32 @wa_sa(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprpn_0gak.c'
source_filename = "/tmp/tmprpn_0gak.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wmemcpy(ptr noalias noundef %0, ptr noalias noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
store i64 0, ptr %7, align 8
br label %8
8: ; preds = %20, %3
%9 = load i64, ptr %7, align 8
%10 = load i64, ptr %6, align 8
%11 = icmp ult i64 %9, %10
br i1 %11, label %12, label %23
12: ; preds = %8
%13 = load ptr, ptr %5, align 8
%14 = load i64, ptr %7, align 8
%15 = getelementptr inbounds i32, ptr %13, i64 %14
%16 = load i32, ptr %15, align 4
%17 = load ptr, ptr %4, align 8
%18 = load i64, ptr %7, align 8
%19 = getelementptr inbounds i32, ptr %17, i64 %18
store i32 %16, ptr %19, align 4
br label %20
20: ; preds = %12
%21 = load i64, ptr %7, align 8
%22 = add i64 %21, 1
store i64 %22, ptr %7, align 8
br label %8, !llvm.loop !6
23: ; preds = %8
%24 = load ptr, ptr %4, align 8
ret ptr %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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprpn_0gak.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wmemcpy(ptr noalias noundef %0, ptr noalias noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
store i64 0, ptr %7, align 8
%8 = load i64, ptr %7, align 8
%9 = load i64, ptr %6, align 8
%10 = icmp ult i64 %8, %9
br i1 %10, label %.lr.ph, label %25
.lr.ph: ; preds = %3
br label %11
11: ; preds = %.lr.ph, %19
%12 = load ptr, ptr %5, align 8
%13 = load i64, ptr %7, align 8
%14 = getelementptr inbounds i32, ptr %12, i64 %13
%15 = load i32, ptr %14, align 4
%16 = load ptr, ptr %4, align 8
%17 = load i64, ptr %7, align 8
%18 = getelementptr inbounds i32, ptr %16, i64 %17
store i32 %15, ptr %18, align 4
br label %19
19: ; preds = %11
%20 = load i64, ptr %7, align 8
%21 = add i64 %20, 1
store i64 %21, ptr %7, align 8
%22 = load i64, ptr %7, align 8
%23 = load i64, ptr %6, align 8
%24 = icmp ult i64 %22, %23
br i1 %24, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %25
25: ; preds = %._crit_edge, %3
%26 = load ptr, ptr %4, align 8
ret ptr %26
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmptha1amad.c'
source_filename = "/tmp/tmptha1amad.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @isFdExists(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca %struct.stat, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @fstat(i32 noundef %4, ptr noundef %3)
%6 = getelementptr inbounds %struct.stat, ptr %3, i32 0, i32 0
%7 = load i64, ptr %6, align 8
%8 = icmp sgt i64 %7, 0
%9 = zext i1 %8 to i32
ret i32 %9
}
declare i32 @fstat(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptha1amad.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @isFdExists(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca %struct.stat, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @fstat(i32 noundef %4, ptr noundef %3)
%6 = getelementptr inbounds %struct.stat, ptr %3, i32 0, i32 0
%7 = load i64, ptr %6, align 8
%8 = icmp sgt i64 %7, 0
%9 = zext i1 %8 to i32
ret i32 %9
}
declare i32 @fstat(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmog6fiw5.c'
source_filename = "/tmp/tmpmog6fiw5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i64 }
@.str = private unnamed_addr constant [9 x i8] c"select()\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"ERROR reading from socket\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"%d: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"Timeout\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @waitForMessage(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca %struct.timeval, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%12 = load i32, ptr %5, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %10, align 4
%14 = getelementptr inbounds %struct.timeval, ptr %11, i32 0, i32 0
store i32 10, ptr %14, align 8
%15 = getelementptr inbounds %struct.timeval, ptr %11, i32 0, i32 1
store i64 0, ptr %15, align 8
%16 = load ptr, ptr %6, align 8
%17 = call i32 @bzero(ptr noundef %16, i32 noundef 8)
%18 = load i32, ptr %10, align 4
%19 = load ptr, ptr %7, align 8
%20 = call i32 @select(i32 noundef %18, ptr noundef %19, ptr noundef null, ptr noundef null, ptr noundef %11)
store i32 %20, ptr %8, align 4
%21 = load i32, ptr %8, align 4
%22 = icmp eq i32 %21, -1
br i1 %22, label %23, label %25
23: ; preds = %3
%24 = call i32 @error(ptr noundef @.str)
br label %47
25: ; preds = %3
%26 = load i32, ptr %8, align 4
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %44
28: ; preds = %25
%29 = load i32, ptr %5, align 4
%30 = load ptr, ptr %6, align 8
%31 = call i32 @recv(i32 noundef %29, ptr noundef %30, i32 noundef 255, i32 noundef 0)
store i32 %31, ptr %9, align 4
%32 = load i32, ptr %9, align 4
%33 = icmp slt i32 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %28
%35 = call i32 @error(ptr noundef @.str.1)
br label %36
36: ; preds = %34, %28
%37 = load i32, ptr %9, align 4
%38 = icmp ne i32 %37, 0
br i1 %38, label %39, label %43
39: ; preds = %36
%40 = load i32, ptr %9, align 4
%41 = load ptr, ptr %6, align 8
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %40, ptr noundef %41)
store i32 0, ptr %4, align 4
br label %47
43: ; preds = %36
br label %46
44: ; preds = %25
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 -1, ptr %4, align 4
br label %47
46: ; preds = %43
br label %47
47: ; preds = %39, %44, %46, %23
%48 = load i32, ptr %4, align 4
ret i32 %48
}
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @error(ptr noundef) #1
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmog6fiw5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i64 }
@.str = private unnamed_addr constant [9 x i8] c"select()\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"ERROR reading from socket\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"%d: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"Timeout\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @waitForMessage(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca %struct.timeval, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%12 = load i32, ptr %5, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %10, align 4
%14 = getelementptr inbounds %struct.timeval, ptr %11, i32 0, i32 0
store i32 10, ptr %14, align 8
%15 = getelementptr inbounds %struct.timeval, ptr %11, i32 0, i32 1
store i64 0, ptr %15, align 8
%16 = load ptr, ptr %6, align 8
%17 = call i32 @bzero(ptr noundef %16, i32 noundef 8)
%18 = load i32, ptr %10, align 4
%19 = load ptr, ptr %7, align 8
%20 = call i32 @select(i32 noundef %18, ptr noundef %19, ptr noundef null, ptr noundef null, ptr noundef %11)
store i32 %20, ptr %8, align 4
%21 = load i32, ptr %8, align 4
%22 = icmp eq i32 %21, -1
br i1 %22, label %23, label %25
23: ; preds = %3
%24 = call i32 @error(ptr noundef @.str)
br label %47
25: ; preds = %3
%26 = load i32, ptr %8, align 4
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %44
28: ; preds = %25
%29 = load i32, ptr %5, align 4
%30 = load ptr, ptr %6, align 8
%31 = call i32 @recv(i32 noundef %29, ptr noundef %30, i32 noundef 255, i32 noundef 0)
store i32 %31, ptr %9, align 4
%32 = load i32, ptr %9, align 4
%33 = icmp slt i32 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %28
%35 = call i32 @error(ptr noundef @.str.1)
br label %36
36: ; preds = %34, %28
%37 = load i32, ptr %9, align 4
%38 = icmp ne i32 %37, 0
br i1 %38, label %39, label %43
39: ; preds = %36
%40 = load i32, ptr %9, align 4
%41 = load ptr, ptr %6, align 8
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %40, ptr noundef %41)
store i32 0, ptr %4, align 4
br label %47
43: ; preds = %36
br label %46
44: ; preds = %25
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 -1, ptr %4, align 4
br label %47
46: ; preds = %43
br label %47
47: ; preds = %46, %44, %39, %23
%48 = load i32, ptr %4, align 4
ret i32 %48
}
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @error(ptr noundef) #1
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpiytd0o19.c'
source_filename = "/tmp/tmpiytd0o19.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"rb\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"fopen error: cannot open file\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [40 x i8] c"fread error: cannot read file collectly\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @loadFile(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 0, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
%10 = call ptr @fopen(ptr noundef %9, ptr noundef @.str)
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %7, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %15, label %13
13: ; preds = %2
%14 = call i32 @nez_PrintErrorInfo(ptr noundef @.str.1)
store ptr null, ptr %3, align 8
br label %45
15: ; preds = %2
%16 = load ptr, ptr %7, align 8
%17 = load i32, ptr @SEEK_END, align 4
%18 = call i32 @fseek(ptr noundef %16, i32 noundef 0, i32 noundef %17)
%19 = load ptr, ptr %7, align 8
%20 = call i64 @ftell(ptr noundef %19)
store i64 %20, ptr %6, align 8
%21 = load ptr, ptr %7, align 8
%22 = load i32, ptr @SEEK_SET, align 4
%23 = call i32 @fseek(ptr noundef %21, i32 noundef 0, i32 noundef %22)
%24 = load i64, ptr %6, align 8
%25 = add i64 %24, 1
%26 = call i64 @malloc(i64 noundef %25)
%27 = inttoptr i64 %26 to ptr
store ptr %27, ptr %8, align 8
%28 = load i64, ptr %6, align 8
%29 = load ptr, ptr %8, align 8
%30 = load i64, ptr %6, align 8
%31 = load ptr, ptr %7, align 8
%32 = call i64 @fread(ptr noundef %29, i32 noundef 1, i64 noundef %30, ptr noundef %31)
%33 = icmp ne i64 %28, %32
br i1 %33, label %34, label %36
34: ; preds = %15
%35 = call i32 @nez_PrintErrorInfo(ptr noundef @.str.2)
br label %36
36: ; preds = %34, %15
%37 = load ptr, ptr %8, align 8
%38 = load i64, ptr %6, align 8
%39 = getelementptr inbounds i8, ptr %37, i64 %38
store i8 0, ptr %39, align 1
%40 = load ptr, ptr %7, align 8
%41 = call i32 @fclose(ptr noundef %40)
%42 = load i64, ptr %6, align 8
%43 = load ptr, ptr %5, align 8
store i64 %42, ptr %43, align 8
%44 = load ptr, ptr %8, align 8
store ptr %44, ptr %3, align 8
br label %45
45: ; preds = %36, %13
%46 = load ptr, ptr %3, align 8
ret ptr %46
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @nez_PrintErrorInfo(ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare i64 @malloc(i64 noundef) #1
declare i64 @fread(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpiytd0o19.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"rb\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"fopen error: cannot open file\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [40 x i8] c"fread error: cannot read file collectly\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @loadFile(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 0, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
%10 = call ptr @fopen(ptr noundef %9, ptr noundef @.str)
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %7, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %15, label %13
13: ; preds = %2
%14 = call i32 @nez_PrintErrorInfo(ptr noundef @.str.1)
store ptr null, ptr %3, align 8
br label %45
15: ; preds = %2
%16 = load ptr, ptr %7, align 8
%17 = load i32, ptr @SEEK_END, align 4
%18 = call i32 @fseek(ptr noundef %16, i32 noundef 0, i32 noundef %17)
%19 = load ptr, ptr %7, align 8
%20 = call i64 @ftell(ptr noundef %19)
store i64 %20, ptr %6, align 8
%21 = load ptr, ptr %7, align 8
%22 = load i32, ptr @SEEK_SET, align 4
%23 = call i32 @fseek(ptr noundef %21, i32 noundef 0, i32 noundef %22)
%24 = load i64, ptr %6, align 8
%25 = add i64 %24, 1
%26 = call i64 @malloc(i64 noundef %25)
%27 = inttoptr i64 %26 to ptr
store ptr %27, ptr %8, align 8
%28 = load i64, ptr %6, align 8
%29 = load ptr, ptr %8, align 8
%30 = load i64, ptr %6, align 8
%31 = load ptr, ptr %7, align 8
%32 = call i64 @fread(ptr noundef %29, i32 noundef 1, i64 noundef %30, ptr noundef %31)
%33 = icmp ne i64 %28, %32
br i1 %33, label %34, label %36
34: ; preds = %15
%35 = call i32 @nez_PrintErrorInfo(ptr noundef @.str.2)
br label %36
36: ; preds = %34, %15
%37 = load ptr, ptr %8, align 8
%38 = load i64, ptr %6, align 8
%39 = getelementptr inbounds i8, ptr %37, i64 %38
store i8 0, ptr %39, align 1
%40 = load ptr, ptr %7, align 8
%41 = call i32 @fclose(ptr noundef %40)
%42 = load i64, ptr %6, align 8
%43 = load ptr, ptr %5, align 8
store i64 %42, ptr %43, align 8
%44 = load ptr, ptr %8, align 8
store ptr %44, ptr %3, align 8
br label %45
45: ; preds = %36, %13
%46 = load ptr, ptr %3, align 8
ret ptr %46
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @nez_PrintErrorInfo(ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare i64 @malloc(i64 noundef) #1
declare i64 @fread(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzhp47pfq.c'
source_filename = "/tmp/tmpzhp47pfq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d,\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"\0A %d Primzahlen\00", align 1
@.str.3 = private unnamed_addr constant [34 x i8] c"\0AAngezeigt: %d von %d Primzahlen\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @prim(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%11 = load i32, ptr %3, align 4
%12 = zext i32 %11 to i64
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %5, align 8
%14 = alloca i32, i64 %12, align 16
store i64 %12, ptr %6, align 8
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %10, align 4
store i32 0, ptr %9, align 4
br label %15
15: ; preds = %38, %2
%16 = load i32, ptr %9, align 4
%17 = load i32, ptr %3, align 4
%18 = icmp ult i32 %16, %17
br i1 %18, label %19, label %41
19: ; preds = %15
%20 = load i32, ptr %9, align 4
%21 = urem i32 %20, 2
%22 = icmp ne i32 %21, 0
br i1 %22, label %26, label %23
23: ; preds = %19
%24 = load i32, ptr %9, align 4
%25 = icmp eq i32 %24, 2
br i1 %25, label %26, label %33
26: ; preds = %23, %19
%27 = load i32, ptr %9, align 4
%28 = icmp ne i32 %27, 1
br i1 %28, label %29, label %33
29: ; preds = %26
%30 = load i32, ptr %9, align 4
%31 = zext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %14, i64 %31
store i32 1, ptr %32, align 4
br label %37
33: ; preds = %26, %23
%34 = load i32, ptr %9, align 4
%35 = zext i32 %34 to i64
%36 = getelementptr inbounds i32, ptr %14, i64 %35
store i32 0, ptr %36, align 4
br label %37
37: ; preds = %33, %29
br label %38
38: ; preds = %37
%39 = load i32, ptr %9, align 4
%40 = add i32 %39, 1
store i32 %40, ptr %9, align 4
br label %15, !llvm.loop !6
41: ; preds = %15
store i32 2, ptr %9, align 4
br label %42
42: ; preds = %71, %41
%43 = load i32, ptr %9, align 4
%44 = load i32, ptr %9, align 4
%45 = mul i32 %43, %44
%46 = load i32, ptr %3, align 4
%47 = icmp ule i32 %45, %46
br i1 %47, label %48, label %74
48: ; preds = %42
%49 = load i32, ptr %9, align 4
%50 = zext i32 %49 to i64
%51 = getelementptr inbounds i32, ptr %14, i64 %50
%52 = load i32, ptr %51, align 4
%53 = icmp eq i32 %52, 1
br i1 %53, label %54, label %71
54: ; preds = %48
%55 = load i32, ptr %9, align 4
%56 = load i32, ptr %9, align 4
%57 = mul i32 %55, %56
store i32 %57, ptr %8, align 4
br label %58
58: ; preds = %66, %54
%59 = load i32, ptr %8, align 4
%60 = load i32, ptr %3, align 4
%61 = icmp ult i32 %59, %60
br i1 %61, label %62, label %70
62: ; preds = %58
%63 = load i32, ptr %8, align 4
%64 = zext i32 %63 to i64
%65 = getelementptr inbounds i32, ptr %14, i64 %64
store i32 0, ptr %65, align 4
br label %66
66: ; preds = %62
%67 = load i32, ptr %9, align 4
%68 = load i32, ptr %8, align 4
%69 = add i32 %68, %67
store i32 %69, ptr %8, align 4
br label %58, !llvm.loop !8
70: ; preds = %58
br label %71
71: ; preds = %70, %48
%72 = load i32, ptr %9, align 4
%73 = add i32 %72, 1
store i32 %73, ptr %9, align 4
br label %42, !llvm.loop !9
74: ; preds = %42
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
br label %75
75: ; preds = %115, %74
%76 = load i32, ptr %9, align 4
%77 = load i32, ptr %3, align 4
%78 = icmp ult i32 %76, %77
br i1 %78, label %79, label %118
79: ; preds = %75
%80 = load i32, ptr %9, align 4
%81 = zext i32 %80 to i64
%82 = getelementptr inbounds i32, ptr %14, i64 %81
%83 = load i32, ptr %82, align 4
%84 = icmp eq i32 %83, 1
br i1 %84, label %85, label %114
85: ; preds = %79
%86 = load i32, ptr %4, align 4
%87 = icmp eq i32 %86, -1
br i1 %87, label %92, label %88
88: ; preds = %85
%89 = load i32, ptr %7, align 4
%90 = load i32, ptr %4, align 4
%91 = icmp slt i32 %89, %90
br i1 %91, label %92, label %97
92: ; preds = %88, %85
%93 = load i32, ptr %9, align 4
%94 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %93)
%95 = load i32, ptr %10, align 4
%96 = add i32 %95, 1
store i32 %96, ptr %10, align 4
br label %97
97: ; preds = %92, %88
%98 = load i32, ptr %7, align 4
%99 = add nsw i32 %98, 1
store i32 %99, ptr %7, align 4
%100 = load i32, ptr %8, align 4
%101 = add i32 %100, 1
store i32 %101, ptr %8, align 4
%102 = urem i32 %100, 20
%103 = icmp eq i32 %102, 0
br i1 %103, label %104, label %113
104: ; preds = %97
%105 = load i32, ptr %4, align 4
%106 = icmp eq i32 %105, -1
br i1 %106, label %111, label %107
107: ; preds = %104
%108 = load i32, ptr %7, align 4
%109 = load i32, ptr %4, align 4
%110 = icmp slt i32 %108, %109
br i1 %110, label %111, label %113
111: ; preds = %107, %104
%112 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %113
113: ; preds = %111, %107, %97
br label %114
114: ; preds = %113, %79
br label %115
115: ; preds = %114
%116 = load i32, ptr %9, align 4
%117 = add i32 %116, 1
store i32 %117, ptr %9, align 4
br label %75, !llvm.loop !10
118: ; preds = %75
%119 = load i32, ptr %4, align 4
%120 = icmp eq i32 %119, -1
br i1 %120, label %121, label %124
121: ; preds = %118
%122 = load i32, ptr %7, align 4
%123 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %122)
br label %128
124: ; preds = %118
%125 = load i32, ptr %10, align 4
%126 = load i32, ptr %7, align 4
%127 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %125, i32 noundef %126)
br label %128
128: ; preds = %124, %121
%129 = load ptr, ptr %5, align 8
call void @llvm.stackrestore(ptr %129)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @printf(ptr noundef, ...) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzhp47pfq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d,\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"\0A %d Primzahlen\00", align 1
@.str.3 = private unnamed_addr constant [34 x i8] c"\0AAngezeigt: %d von %d Primzahlen\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @prim(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%11 = load i32, ptr %3, align 4
%12 = zext i32 %11 to i64
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %5, align 8
%14 = alloca i32, i64 %12, align 16
store i64 %12, ptr %6, align 8
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %10, align 4
store i32 0, ptr %9, align 4
%15 = load i32, ptr %9, align 4
%16 = load i32, ptr %3, align 4
%17 = icmp ult i32 %15, %16
br i1 %17, label %.lr.ph, label %43
.lr.ph: ; preds = %2
br label %18
18: ; preds = %.lr.ph, %37
%19 = load i32, ptr %9, align 4
%20 = urem i32 %19, 2
%21 = icmp ne i32 %20, 0
br i1 %21, label %25, label %22
22: ; preds = %18
%23 = load i32, ptr %9, align 4
%24 = icmp eq i32 %23, 2
br i1 %24, label %25, label %32
25: ; preds = %22, %18
%26 = load i32, ptr %9, align 4
%27 = icmp ne i32 %26, 1
br i1 %27, label %28, label %32
28: ; preds = %25
%29 = load i32, ptr %9, align 4
%30 = zext i32 %29 to i64
%31 = getelementptr inbounds i32, ptr %14, i64 %30
store i32 1, ptr %31, align 4
br label %36
32: ; preds = %25, %22
%33 = load i32, ptr %9, align 4
%34 = zext i32 %33 to i64
%35 = getelementptr inbounds i32, ptr %14, i64 %34
store i32 0, ptr %35, align 4
br label %36
36: ; preds = %32, %28
br label %37
37: ; preds = %36
%38 = load i32, ptr %9, align 4
%39 = add i32 %38, 1
store i32 %39, ptr %9, align 4
%40 = load i32, ptr %9, align 4
%41 = load i32, ptr %3, align 4
%42 = icmp ult i32 %40, %41
br i1 %42, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %37
br label %43
43: ; preds = %._crit_edge, %2
store i32 2, ptr %9, align 4
%44 = load i32, ptr %9, align 4
%45 = load i32, ptr %9, align 4
%46 = mul i32 %44, %45
%47 = load i32, ptr %3, align 4
%48 = icmp ule i32 %46, %47
br i1 %48, label %.lr.ph5, label %82
.lr.ph5: ; preds = %43
br label %49
49: ; preds = %.lr.ph5, %74
%50 = load i32, ptr %9, align 4
%51 = zext i32 %50 to i64
%52 = getelementptr inbounds i32, ptr %14, i64 %51
%53 = load i32, ptr %52, align 4
%54 = icmp eq i32 %53, 1
br i1 %54, label %55, label %74
55: ; preds = %49
%56 = load i32, ptr %9, align 4
%57 = load i32, ptr %9, align 4
%58 = mul i32 %56, %57
store i32 %58, ptr %8, align 4
%59 = load i32, ptr %8, align 4
%60 = load i32, ptr %3, align 4
%61 = icmp ult i32 %59, %60
br i1 %61, label %.lr.ph2, label %73
.lr.ph2: ; preds = %55
br label %62
62: ; preds = %.lr.ph2, %66
%63 = load i32, ptr %8, align 4
%64 = zext i32 %63 to i64
%65 = getelementptr inbounds i32, ptr %14, i64 %64
store i32 0, ptr %65, align 4
br label %66
66: ; preds = %62
%67 = load i32, ptr %9, align 4
%68 = load i32, ptr %8, align 4
%69 = add i32 %68, %67
store i32 %69, ptr %8, align 4
%70 = load i32, ptr %8, align 4
%71 = load i32, ptr %3, align 4
%72 = icmp ult i32 %70, %71
br i1 %72, label %62, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %66
br label %73
73: ; preds = %._crit_edge3, %55
br label %74
74: ; preds = %73, %49
%75 = load i32, ptr %9, align 4
%76 = add i32 %75, 1
store i32 %76, ptr %9, align 4
%77 = load i32, ptr %9, align 4
%78 = load i32, ptr %9, align 4
%79 = mul i32 %77, %78
%80 = load i32, ptr %3, align 4
%81 = icmp ule i32 %79, %80
br i1 %81, label %49, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %74
br label %82
82: ; preds = %._crit_edge6, %43
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
%83 = load i32, ptr %9, align 4
%84 = load i32, ptr %3, align 4
%85 = icmp ult i32 %83, %84
br i1 %85, label %.lr.ph8, label %128
.lr.ph8: ; preds = %82
br label %86
86: ; preds = %.lr.ph8, %122
%87 = load i32, ptr %9, align 4
%88 = zext i32 %87 to i64
%89 = getelementptr inbounds i32, ptr %14, i64 %88
%90 = load i32, ptr %89, align 4
%91 = icmp eq i32 %90, 1
br i1 %91, label %92, label %121
92: ; preds = %86
%93 = load i32, ptr %4, align 4
%94 = icmp eq i32 %93, -1
br i1 %94, label %99, label %95
95: ; preds = %92
%96 = load i32, ptr %7, align 4
%97 = load i32, ptr %4, align 4
%98 = icmp slt i32 %96, %97
br i1 %98, label %99, label %104
99: ; preds = %95, %92
%100 = load i32, ptr %9, align 4
%101 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %100)
%102 = load i32, ptr %10, align 4
%103 = add i32 %102, 1
store i32 %103, ptr %10, align 4
br label %104
104: ; preds = %99, %95
%105 = load i32, ptr %7, align 4
%106 = add nsw i32 %105, 1
store i32 %106, ptr %7, align 4
%107 = load i32, ptr %8, align 4
%108 = add i32 %107, 1
store i32 %108, ptr %8, align 4
%109 = urem i32 %107, 20
%110 = icmp eq i32 %109, 0
br i1 %110, label %111, label %120
111: ; preds = %104
%112 = load i32, ptr %4, align 4
%113 = icmp eq i32 %112, -1
br i1 %113, label %118, label %114
114: ; preds = %111
%115 = load i32, ptr %7, align 4
%116 = load i32, ptr %4, align 4
%117 = icmp slt i32 %115, %116
br i1 %117, label %118, label %120
118: ; preds = %114, %111
%119 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %120
120: ; preds = %118, %114, %104
br label %121
121: ; preds = %120, %86
br label %122
122: ; preds = %121
%123 = load i32, ptr %9, align 4
%124 = add i32 %123, 1
store i32 %124, ptr %9, align 4
%125 = load i32, ptr %9, align 4
%126 = load i32, ptr %3, align 4
%127 = icmp ult i32 %125, %126
br i1 %127, label %86, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %122
br label %128
128: ; preds = %._crit_edge9, %82
%129 = load i32, ptr %4, align 4
%130 = icmp eq i32 %129, -1
br i1 %130, label %131, label %134
131: ; preds = %128
%132 = load i32, ptr %7, align 4
%133 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %132)
br label %138
134: ; preds = %128
%135 = load i32, ptr %10, align 4
%136 = load i32, ptr %7, align 4
%137 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %135, i32 noundef %136)
br label %138
138: ; preds = %134, %131
%139 = load ptr, ptr %5, align 8
call void @llvm.stackrestore(ptr %139)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @printf(ptr noundef, ...) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmppg__kce4.c'
source_filename = "/tmp/tmppg__kce4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@STDIN_FILENO = dso_local global i32 0, align 4
@STDOUT_FILENO = dso_local global i32 0, align 4
@STDERR_FILENO = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [22 x i8] c"Fail: unable to fork\0A\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"OK: demon with pid %d is created\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call i32 (...) @fork()
store i32 %7, ptr %6, align 4
%8 = load i32, ptr %6, align 4
switch i32 %8, label %22 [
i32 0, label %9
i32 -1, label %20
]
9: ; preds = %2
%10 = call i32 (...) @setsid()
%11 = call i32 @chdir(ptr noundef @.str)
%12 = load i32, ptr @STDIN_FILENO, align 4
%13 = call i32 @close(i32 noundef %12)
%14 = load i32, ptr @STDOUT_FILENO, align 4
%15 = call i32 @close(i32 noundef %14)
%16 = load i32, ptr @STDERR_FILENO, align 4
%17 = call i32 @close(i32 noundef %16)
%18 = call i32 @sleep(i32 noundef 10)
%19 = call i32 @exit(i32 noundef 0) #3
unreachable
20: ; preds = %2
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %25
22: ; preds = %2
%23 = load i32, ptr %6, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %23)
br label %25
25: ; preds = %22, %20
ret i32 0
}
declare i32 @fork(...) #1
declare i32 @setsid(...) #1
declare i32 @chdir(ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @sleep(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
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" }
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/tmppg__kce4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@STDIN_FILENO = dso_local global i32 0, align 4
@STDOUT_FILENO = dso_local global i32 0, align 4
@STDERR_FILENO = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [22 x i8] c"Fail: unable to fork\0A\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"OK: demon with pid %d is created\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call i32 (...) @fork()
store i32 %7, ptr %6, align 4
%8 = load i32, ptr %6, align 4
switch i32 %8, label %22 [
i32 0, label %9
i32 -1, label %20
]
9: ; preds = %2
%10 = call i32 (...) @setsid()
%11 = call i32 @chdir(ptr noundef @.str)
%12 = load i32, ptr @STDIN_FILENO, align 4
%13 = call i32 @close(i32 noundef %12)
%14 = load i32, ptr @STDOUT_FILENO, align 4
%15 = call i32 @close(i32 noundef %14)
%16 = load i32, ptr @STDERR_FILENO, align 4
%17 = call i32 @close(i32 noundef %16)
%18 = call i32 @sleep(i32 noundef 10)
%19 = call i32 @exit(i32 noundef 0) #3
unreachable
20: ; preds = %2
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %25
22: ; preds = %2
%23 = load i32, ptr %6, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %23)
br label %25
25: ; preds = %22, %20
ret i32 0
}
declare i32 @fork(...) #1
declare i32 @setsid(...) #1
declare i32 @chdir(ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @sleep(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
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" }
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/tmp26kjr988.c'
source_filename = "/tmp/tmp26kjr988.c"
target datalayout = "e-m:e-p270: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/tmp26kjr988.c"
target datalayout = "e-m:e-p270: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/tmpaduvzlbd.c'
source_filename = "/tmp/tmpaduvzlbd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"TinySID v0.94 linux version\0A\00", align 1
@.str.1 = private unnamed_addr constant [51 x i8] c"(c)Copyright 1999-2006 T. Hinrichs and R. Sinsch.\0A\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"All rights reserved.\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"Usage: tinysid [sid-file]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @show_info(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @printf(ptr noundef @.str.1)
%5 = call i32 @printf(ptr noundef @.str.2)
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %6, 2
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = call i32 @printf(ptr noundef @.str.3)
%10 = call i32 @exit(i32 noundef 0) #3
unreachable
11: ; preds = %1
ret void
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaduvzlbd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"TinySID v0.94 linux version\0A\00", align 1
@.str.1 = private unnamed_addr constant [51 x i8] c"(c)Copyright 1999-2006 T. Hinrichs and R. Sinsch.\0A\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"All rights reserved.\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"Usage: tinysid [sid-file]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @show_info(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @printf(ptr noundef @.str.1)
%5 = call i32 @printf(ptr noundef @.str.2)
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %6, 2
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = call i32 @printf(ptr noundef @.str.3)
%10 = call i32 @exit(i32 noundef 0) #3
unreachable
11: ; preds = %1
ret void
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmhib1qzs.c'
source_filename = "/tmp/tmpmhib1qzs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gp_alloc(i64 noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
store i64 %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = load i64, ptr %3, align 8
%7 = call ptr @malloc(i64 noundef %6) #2
ret ptr %7
}
; Function Attrs: allocsize(0)
declare ptr @malloc(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 = { allocsize(0) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmhib1qzs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gp_alloc(i64 noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
store i64 %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = load i64, ptr %3, align 8
%7 = call ptr @malloc(i64 noundef %6) #2
ret ptr %7
}
; Function Attrs: allocsize(0)
declare ptr @malloc(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 = { allocsize(0) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxldjb1_m.c'
source_filename = "/tmp/tmpxldjb1_m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxldjb1_m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprk2ebnv6.c'
source_filename = "/tmp/tmprk2ebnv6.c"
target datalayout = "e-m:e-p270: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/tmprk2ebnv6.c"
target datalayout = "e-m:e-p270: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/tmp3uynkbr4.c'
source_filename = "/tmp/tmp3uynkbr4.c"
target datalayout = "e-m:e-p270: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/tmp3uynkbr4.c"
target datalayout = "e-m:e-p270: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/tmpjmmh2u0z.c'
source_filename = "/tmp/tmpjmmh2u0z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Fizz\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"Buzz\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fizzBuzz(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%6 = load i32, ptr %4, align 4
%7 = load i32, ptr %5, align 4
%8 = icmp sle i32 %6, %7
br i1 %8, label %9, label %38
9: ; preds = %2
%10 = load i32, ptr %4, align 4
%11 = srem i32 %10, 3
%12 = icmp ne i32 %11, 0
br i1 %12, label %15, label %13
13: ; preds = %9
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %15
15: ; preds = %13, %9
%16 = load i32, ptr %4, align 4
%17 = srem i32 %16, 5
%18 = icmp ne i32 %17, 0
br i1 %18, label %21, label %19
19: ; preds = %15
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %21
21: ; preds = %19, %15
%22 = load i32, ptr %4, align 4
%23 = srem i32 %22, 3
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %32
25: ; preds = %21
%26 = load i32, ptr %4, align 4
%27 = srem i32 %26, 5
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %25
%30 = load i32, ptr %4, align 4
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %30)
br label %32
32: ; preds = %29, %25, %21
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%34 = load i32, ptr %4, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %4, align 4
%36 = load i32, ptr %5, align 4
%37 = call i32 @fizzBuzz(i32 noundef %35, i32 noundef %36)
br label %38
38: ; preds = %32, %2
%39 = load i32, ptr %3, align 4
ret i32 %39
}
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/tmpjmmh2u0z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Fizz\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"Buzz\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fizzBuzz(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%6 = load i32, ptr %4, align 4
%7 = load i32, ptr %5, align 4
%8 = icmp sle i32 %6, %7
br i1 %8, label %9, label %38
9: ; preds = %2
%10 = load i32, ptr %4, align 4
%11 = srem i32 %10, 3
%12 = icmp ne i32 %11, 0
br i1 %12, label %15, label %13
13: ; preds = %9
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %15
15: ; preds = %13, %9
%16 = load i32, ptr %4, align 4
%17 = srem i32 %16, 5
%18 = icmp ne i32 %17, 0
br i1 %18, label %21, label %19
19: ; preds = %15
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %21
21: ; preds = %19, %15
%22 = load i32, ptr %4, align 4
%23 = srem i32 %22, 3
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %32
25: ; preds = %21
%26 = load i32, ptr %4, align 4
%27 = srem i32 %26, 5
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %25
%30 = load i32, ptr %4, align 4
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %30)
br label %32
32: ; preds = %29, %25, %21
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%34 = load i32, ptr %4, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %4, align 4
%36 = load i32, ptr %5, align 4
%37 = call i32 @fizzBuzz(i32 noundef %35, i32 noundef %36)
br label %38
38: ; preds = %32, %2
%39 = load i32, ptr %3, align 4
ret i32 %39
}
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/tmpzcyysl1u.c'
source_filename = "/tmp/tmpzcyysl1u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%d %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dump_qnn(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%12 = load i32, ptr %7, align 4
%13 = sext i32 %12 to i64
%14 = mul i64 %13, 4
%15 = trunc i64 %14 to i32
%16 = call ptr @malloc(i32 noundef %15)
store ptr %16, ptr %10, align 8
%17 = load i32, ptr %7, align 4
%18 = sext i32 %17 to i64
%19 = mul i64 %18, 4
%20 = trunc i64 %19 to i32
%21 = call ptr @malloc(i32 noundef %20)
store ptr %21, ptr %11, align 8
store i32 0, ptr %9, align 4
br label %22
22: ; preds = %35, %4
%23 = load i32, ptr %9, align 4
%24 = load i32, ptr %7, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %26, label %38
26: ; preds = %22
%27 = load ptr, ptr %10, align 8
%28 = load i32, ptr %9, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i32, ptr %27, i64 %29
store i32 0, ptr %30, align 4
%31 = load ptr, ptr %11, align 8
%32 = load i32, ptr %9, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i32, ptr %31, i64 %33
store i32 0, ptr %34, align 4
br label %35
35: ; preds = %26
%36 = load i32, ptr %9, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %9, align 4
br label %22, !llvm.loop !6
38: ; preds = %22
store i32 0, ptr %9, align 4
br label %39
39: ; preds = %77, %38
%40 = load i32, ptr %9, align 4
%41 = load i32, ptr %7, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %43, label %80
43: ; preds = %39
%44 = load ptr, ptr %6, align 8
%45 = load ptr, ptr %8, align 8
%46 = load i32, ptr %9, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i32, ptr %45, i64 %47
%49 = load i32, ptr %48, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds double, ptr %44, i64 %50
%52 = load double, ptr %51, align 8
%53 = load ptr, ptr %10, align 8
%54 = load ptr, ptr %5, align 8
%55 = load i32, ptr %9, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds double, ptr %54, i64 %56
%58 = load double, ptr %57, align 8
%59 = fptosi double %58 to i32
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i32, ptr %53, i64 %60
%62 = load i32, ptr %61, align 4
%63 = sitofp i32 %62 to double
%64 = fadd double %63, %52
%65 = fptosi double %64 to i32
store i32 %65, ptr %61, align 4
%66 = load ptr, ptr %11, align 8
%67 = load ptr, ptr %5, align 8
%68 = load i32, ptr %9, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds double, ptr %67, i64 %69
%71 = load double, ptr %70, align 8
%72 = fptosi double %71 to i32
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i32, ptr %66, i64 %73
%75 = load i32, ptr %74, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %74, align 4
br label %77
77: ; preds = %43
%78 = load i32, ptr %9, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %9, align 4
br label %39, !llvm.loop !8
80: ; preds = %39
store i32 0, ptr %9, align 4
br label %81
81: ; preds = %110, %80
%82 = load i32, ptr %9, align 4
%83 = load i32, ptr %7, align 4
%84 = icmp slt i32 %82, %83
br i1 %84, label %85, label %113
85: ; preds = %81
%86 = load ptr, ptr %11, align 8
%87 = load i32, ptr %9, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i32, ptr %86, i64 %88
%90 = load i32, ptr %89, align 4
%91 = icmp sgt i32 %90, 0
br i1 %91, label %92, label %109
92: ; preds = %85
%93 = load i32, ptr %9, align 4
%94 = load ptr, ptr %10, align 8
%95 = load i32, ptr %9, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds i32, ptr %94, i64 %96
%98 = load i32, ptr %97, align 4
%99 = sitofp i32 %98 to double
%100 = fmul double 1.000000e+00, %99
%101 = load ptr, ptr %11, align 8
%102 = load i32, ptr %9, align 4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i32, ptr %101, i64 %103
%105 = load i32, ptr %104, align 4
%106 = sitofp i32 %105 to double
%107 = fdiv double %100, %106
%108 = call i32 @printf(ptr noundef @.str, i32 noundef %93, double noundef %107)
br label %109
109: ; preds = %92, %85
br label %110
110: ; preds = %109
%111 = load i32, ptr %9, align 4
%112 = add nsw i32 %111, 1
store i32 %112, ptr %9, align 4
br label %81, !llvm.loop !9
113: ; preds = %81
%114 = load ptr, ptr %11, align 8
%115 = call i32 @free(ptr noundef %114)
%116 = load ptr, ptr %10, align 8
%117 = call i32 @free(ptr noundef %116)
ret void
}
declare ptr @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, double noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzcyysl1u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%d %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dump_qnn(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%12 = load i32, ptr %7, align 4
%13 = sext i32 %12 to i64
%14 = mul i64 %13, 4
%15 = trunc i64 %14 to i32
%16 = call ptr @malloc(i32 noundef %15)
store ptr %16, ptr %10, align 8
%17 = load i32, ptr %7, align 4
%18 = sext i32 %17 to i64
%19 = mul i64 %18, 4
%20 = trunc i64 %19 to i32
%21 = call ptr @malloc(i32 noundef %20)
store ptr %21, ptr %11, align 8
store i32 0, ptr %9, align 4
%22 = load i32, ptr %9, align 4
%23 = load i32, ptr %7, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %.lr.ph, label %40
.lr.ph: ; preds = %4
br label %25
25: ; preds = %.lr.ph, %34
%26 = load ptr, ptr %10, align 8
%27 = load i32, ptr %9, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i32, ptr %26, i64 %28
store i32 0, ptr %29, align 4
%30 = load ptr, ptr %11, align 8
%31 = load i32, ptr %9, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %30, i64 %32
store i32 0, ptr %33, align 4
br label %34
34: ; preds = %25
%35 = load i32, ptr %9, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %9, align 4
%37 = load i32, ptr %9, align 4
%38 = load i32, ptr %7, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %25, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %34
br label %40
40: ; preds = %._crit_edge, %4
store i32 0, ptr %9, align 4
%41 = load i32, ptr %9, align 4
%42 = load i32, ptr %7, align 4
%43 = icmp slt i32 %41, %42
br i1 %43, label %.lr.ph2, label %84
.lr.ph2: ; preds = %40
br label %44
44: ; preds = %.lr.ph2, %78
%45 = load ptr, ptr %6, align 8
%46 = load ptr, ptr %8, align 8
%47 = load i32, ptr %9, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i32, ptr %46, i64 %48
%50 = load i32, ptr %49, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds double, ptr %45, i64 %51
%53 = load double, ptr %52, align 8
%54 = load ptr, ptr %10, align 8
%55 = load ptr, ptr %5, align 8
%56 = load i32, ptr %9, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds double, ptr %55, i64 %57
%59 = load double, ptr %58, align 8
%60 = fptosi double %59 to i32
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i32, ptr %54, i64 %61
%63 = load i32, ptr %62, align 4
%64 = sitofp i32 %63 to double
%65 = fadd double %64, %53
%66 = fptosi double %65 to i32
store i32 %66, ptr %62, align 4
%67 = load ptr, ptr %11, align 8
%68 = load ptr, ptr %5, align 8
%69 = load i32, ptr %9, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds double, ptr %68, i64 %70
%72 = load double, ptr %71, align 8
%73 = fptosi double %72 to i32
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i32, ptr %67, i64 %74
%76 = load i32, ptr %75, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %75, align 4
br label %78
78: ; preds = %44
%79 = load i32, ptr %9, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %9, align 4
%81 = load i32, ptr %9, align 4
%82 = load i32, ptr %7, align 4
%83 = icmp slt i32 %81, %82
br i1 %83, label %44, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %78
br label %84
84: ; preds = %._crit_edge3, %40
store i32 0, ptr %9, align 4
%85 = load i32, ptr %9, align 4
%86 = load i32, ptr %7, align 4
%87 = icmp slt i32 %85, %86
br i1 %87, label %.lr.ph5, label %119
.lr.ph5: ; preds = %84
br label %88
88: ; preds = %.lr.ph5, %113
%89 = load ptr, ptr %11, align 8
%90 = load i32, ptr %9, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i32, ptr %89, i64 %91
%93 = load i32, ptr %92, align 4
%94 = icmp sgt i32 %93, 0
br i1 %94, label %95, label %112
95: ; preds = %88
%96 = load i32, ptr %9, align 4
%97 = load ptr, ptr %10, align 8
%98 = load i32, ptr %9, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds i32, ptr %97, i64 %99
%101 = load i32, ptr %100, align 4
%102 = sitofp i32 %101 to double
%103 = fmul double 1.000000e+00, %102
%104 = load ptr, ptr %11, align 8
%105 = load i32, ptr %9, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i32, ptr %104, i64 %106
%108 = load i32, ptr %107, align 4
%109 = sitofp i32 %108 to double
%110 = fdiv double %103, %109
%111 = call i32 @printf(ptr noundef @.str, i32 noundef %96, double noundef %110)
br label %112
112: ; preds = %95, %88
br label %113
113: ; preds = %112
%114 = load i32, ptr %9, align 4
%115 = add nsw i32 %114, 1
store i32 %115, ptr %9, align 4
%116 = load i32, ptr %9, align 4
%117 = load i32, ptr %7, align 4
%118 = icmp slt i32 %116, %117
br i1 %118, label %88, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %113
br label %119
119: ; preds = %._crit_edge6, %84
%120 = load ptr, ptr %11, align 8
%121 = call i32 @free(ptr noundef %120)
%122 = load ptr, ptr %10, align 8
%123 = call i32 @free(ptr noundef %122)
ret void
}
declare ptr @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, double noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpm1aq178b.c'
source_filename = "/tmp/tmpm1aq178b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @mr_tools_fsize(ptr noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
%4 = alloca %struct.stat, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i64 @stat(ptr noundef %5, ptr noundef %4)
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = getelementptr inbounds %struct.stat, ptr %4, i32 0, i32 0
%10 = load i64, ptr %9, align 8
store i64 %10, ptr %2, align 8
br label %12
11: ; preds = %1
store i64 -1, ptr %2, align 8
br label %12
12: ; preds = %11, %8
%13 = load i64, ptr %2, align 8
ret i64 %13
}
declare i64 @stat(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/tmpm1aq178b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @mr_tools_fsize(ptr noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
%4 = alloca %struct.stat, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i64 @stat(ptr noundef %5, ptr noundef %4)
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = getelementptr inbounds %struct.stat, ptr %4, i32 0, i32 0
%10 = load i64, ptr %9, align 8
store i64 %10, ptr %2, align 8
br label %12
11: ; preds = %1
store i64 -1, ptr %2, align 8
br label %12
12: ; preds = %11, %8
%13 = load i64, ptr %2, align 8
ret i64 %13
}
declare i64 @stat(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/tmp9lb7apvg.c'
source_filename = "/tmp/tmp9lb7apvg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"P1 OK\0A\00", align 1
@SIGTERM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [52 x i8] c"ERR: %s:%d: Unable to wait P2 %d (errno = %d (%s))\0A\00", align 1
@.str.2 = private unnamed_addr constant [150 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/LK4D4/criu/refs/heads/master/test/zdtm/live/static/xids00.c\00", align 1
@errno = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [51 x i8] c"ERR: %s:%d: P2 stat %d/%d/%d/%d (errno = %d (%s))\0A\00", align 1
@.str.4 = private unnamed_addr constant [49 x i8] c"ERR: %s:%d: Unable to wait %d (errno = %d (%s))\0A\00", align 1
@.str.5 = private unnamed_addr constant [52 x i8] c"ERR: %s:%d: P%d stat %d/%d/%d/%d (errno = %d (%s))\0A\00", align 1
@.str.6 = private unnamed_addr constant [49 x i8] c"FAIL: %s:%d: Something failed (errno = %d (%s))\0A\00", align 1
@.str.7 = private unnamed_addr constant [6 x i8] c"PASS\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 [2 x i32], align 4
%7 = alloca i32, align 4
%8 = alloca [2 x i32], align 4
%9 = alloca [2 x i32], align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca [2 x i32], align 4
%13 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %11, align 4
%14 = load i32, ptr %4, align 4
%15 = load ptr, ptr %5, align 8
%16 = call i32 @test_init(i32 noundef %14, ptr noundef %15)
%17 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%18 = call i32 @pipe(ptr noundef %17)
%19 = call i32 @test_fork_id(i32 noundef -1)
%20 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 0
store i32 %19, ptr %20, align 4
%21 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 0
%22 = load i32, ptr %21, align 4
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %47
24: ; preds = %2
%25 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%26 = load i32, ptr %25, align 4
%27 = call i32 @close(i32 noundef %26)
%28 = call i32 (...) @setsid()
%29 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
%30 = load i32, ptr %29, align 4
%31 = call i32 @close(i32 noundef %30)
%32 = call i32 (...) @test_waitsig()
%33 = call i64 (...) @getpid()
%34 = call i64 @getsid(i32 noundef 0)
%35 = icmp ne i64 %33, %34
br i1 %35, label %36, label %38
36: ; preds = %24
%37 = call i32 @exit(i32 noundef 1) #3
unreachable
38: ; preds = %24
%39 = call i64 (...) @getpid()
%40 = call i64 @getpgid(i32 noundef 0)
%41 = icmp ne i64 %39, %40
br i1 %41, label %42, label %44
42: ; preds = %38
%43 = call i32 @exit(i32 noundef 2) #3
unreachable
44: ; preds = %38
%45 = call i32 (ptr, ...) @test_msg(ptr noundef @.str)
%46 = call i32 @exit(i32 noundef 0) #3
unreachable
47: ; preds = %2
%48 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
%49 = load i32, ptr %48, align 4
%50 = call i32 @close(i32 noundef %49)
%51 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%52 = load i32, ptr %51, align 4
%53 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
store i32 %52, ptr %53, align 4
%54 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%55 = call i32 @pipe(ptr noundef %54)
%56 = call i32 @test_fork_id(i32 noundef -1)
%57 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 1
store i32 %56, ptr %57, align 4
%58 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 1
%59 = load i32, ptr %58, align 4
%60 = icmp eq i32 %59, 0
br i1 %60, label %61, label %160
61: ; preds = %47
%62 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%63 = load i32, ptr %62, align 4
%64 = call i32 @close(i32 noundef %63)
%65 = call i32 (...) @setsid()
%66 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
%67 = call i32 @pipe(ptr noundef %66)
%68 = call i32 @test_fork_id(i32 noundef -1)
store i32 %68, ptr %13, align 4
%69 = load i32, ptr %13, align 4
%70 = icmp eq i32 %69, 0
br i1 %70, label %71, label %96
71: ; preds = %61
%72 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
%73 = load i32, ptr %72, align 4
%74 = call i32 @close(i32 noundef %73)
%75 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
%76 = load i32, ptr %75, align 4
%77 = call i32 @close(i32 noundef %76)
%78 = call i32 @setpgid(i32 noundef 0, i32 noundef 0)
%79 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 1
%80 = load i32, ptr %79, align 4
%81 = call i32 @close(i32 noundef %80)
%82 = call i32 (...) @test_waitsig()
%83 = call i64 @getsid(i32 noundef 0)
%84 = call i64 (...) @getppid()
%85 = icmp ne i64 %83, %84
br i1 %85, label %86, label %88
86: ; preds = %71
%87 = call i32 @exit(i32 noundef 1) #3
unreachable
88: ; preds = %71
%89 = call i64 @getpgid(i32 noundef 0)
%90 = call i64 (...) @getpid()
%91 = icmp ne i64 %89, %90
br i1 %91, label %92, label %94
92: ; preds = %88
%93 = call i32 @exit(i32 noundef 1) #3
unreachable
94: ; preds = %88
%95 = call i32 @exit(i32 noundef 0) #3
unreachable
96: ; preds = %61
%97 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 1
%98 = load i32, ptr %97, align 4
%99 = call i32 @close(i32 noundef %98)
%100 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
%101 = load i32, ptr %100, align 4
%102 = call i32 @read(i32 noundef %101, ptr noundef %10, i32 noundef 1)
%103 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
%104 = load i32, ptr %103, align 4
%105 = call i32 @close(i32 noundef %104)
%106 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
%107 = load i32, ptr %106, align 4
%108 = call i32 @close(i32 noundef %107)
%109 = call i32 (...) @test_waitsig()
%110 = call i64 (...) @getpid()
%111 = call i64 @getsid(i32 noundef 0)
%112 = icmp ne i64 %110, %111
br i1 %112, label %113, label %115
113: ; preds = %96
%114 = call i32 @exit(i32 noundef 1) #3
unreachable
115: ; preds = %96
%116 = call i64 (...) @getpid()
%117 = call i64 @getpgid(i32 noundef 0)
%118 = icmp ne i64 %116, %117
br i1 %118, label %119, label %121
119: ; preds = %115
%120 = call i32 @exit(i32 noundef 2) #3
unreachable
121: ; preds = %115
%122 = load i32, ptr %13, align 4
%123 = load i32, ptr @SIGTERM, align 4
%124 = call i32 @kill(i32 noundef %122, i32 noundef %123)
%125 = load i32, ptr %13, align 4
%126 = call i64 @waitpid(i32 noundef %125, ptr noundef %10, i32 noundef 0)
%127 = icmp slt i64 %126, 0
br i1 %127, label %128, label %135
128: ; preds = %121
%129 = load i32, ptr %13, align 4
%130 = load i32, ptr @errno, align 4
%131 = load i32, ptr @errno, align 4
%132 = call i32 @strerror(i32 noundef %131)
%133 = call i32 (ptr, ...) @test_msg(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 87, i32 noundef %129, i32 noundef %130, i32 noundef %132)
%134 = call i32 @exit(i32 noundef 3) #3
unreachable
135: ; preds = %121
%136 = load i32, ptr %10, align 4
%137 = call i32 @WIFEXITED(i32 noundef %136)
%138 = icmp ne i32 %137, 0
br i1 %138, label %139, label %143
139: ; preds = %135
%140 = load i32, ptr %10, align 4
%141 = call i64 @WEXITSTATUS(i32 noundef %140)
%142 = icmp ne i64 %141, 0
br i1 %142, label %143, label %157
143: ; preds = %139, %135
%144 = load i32, ptr %10, align 4
%145 = call i32 @WIFEXITED(i32 noundef %144)
%146 = load i32, ptr %10, align 4
%147 = call i64 @WEXITSTATUS(i32 noundef %146)
%148 = load i32, ptr %10, align 4
%149 = call i32 @WIFSIGNALED(i32 noundef %148)
%150 = load i32, ptr %10, align 4
%151 = call i32 @WTERMSIG(i32 noundef %150)
%152 = load i32, ptr @errno, align 4
%153 = load i32, ptr @errno, align 4
%154 = call i32 @strerror(i32 noundef %153)
%155 = call i32 (ptr, ...) @test_msg(ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef 90, i32 noundef %145, i64 noundef %147, i32 noundef %149, i32 noundef %151, i32 noundef %152, i32 noundef %154)
%156 = call i32 @exit(i32 noundef 3) #3
unreachable
157: ; preds = %139
br label %158
158: ; preds = %157
%159 = call i32 @exit(i32 noundef 0) #3
unreachable
160: ; preds = %47
%161 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
%162 = load i32, ptr %161, align 4
%163 = call i32 @close(i32 noundef %162)
%164 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%165 = load i32, ptr %164, align 4
%166 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 1
store i32 %165, ptr %166, align 4
%167 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
%168 = load i32, ptr %167, align 4
%169 = call i32 @read(i32 noundef %168, ptr noundef %10, i32 noundef 1)
%170 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
%171 = load i32, ptr %170, align 4
%172 = call i32 @close(i32 noundef %171)
%173 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 1
%174 = load i32, ptr %173, align 4
%175 = call i32 @read(i32 noundef %174, ptr noundef %10, i32 noundef 1)
%176 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 1
%177 = load i32, ptr %176, align 4
%178 = call i32 @close(i32 noundef %177)
%179 = call i32 (...) @test_daemon()
%180 = call i32 (...) @test_waitsig()
store i32 0, ptr %7, align 4
br label %181
181: ; preds = %192, %160
%182 = load i32, ptr %7, align 4
%183 = sext i32 %182 to i64
%184 = icmp ult i64 %183, 2
br i1 %184, label %185, label %195
185: ; preds = %181
%186 = load i32, ptr %7, align 4
%187 = sext i32 %186 to i64
%188 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 %187
%189 = load i32, ptr %188, align 4
%190 = load i32, ptr @SIGTERM, align 4
%191 = call i32 @kill(i32 noundef %189, i32 noundef %190)
br label %192
192: ; preds = %185
%193 = load i32, ptr %7, align 4
%194 = add nsw i32 %193, 1
store i32 %194, ptr %7, align 4
br label %181, !llvm.loop !6
195: ; preds = %181
store i32 0, ptr %7, align 4
br label %196
196: ; preds = %240, %195
%197 = load i32, ptr %7, align 4
%198 = sext i32 %197 to i64
%199 = icmp ult i64 %198, 2
br i1 %199, label %200, label %243
200: ; preds = %196
%201 = load i32, ptr %7, align 4
%202 = sext i32 %201 to i64
%203 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 %202
%204 = load i32, ptr %203, align 4
%205 = call i64 @waitpid(i32 noundef %204, ptr noundef %10, i32 noundef 0)
%206 = icmp slt i64 %205, 0
br i1 %206, label %207, label %216
207: ; preds = %200
%208 = load i32, ptr %7, align 4
%209 = sext i32 %208 to i64
%210 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 %209
%211 = load i32, ptr %210, align 4
%212 = load i32, ptr @errno, align 4
%213 = load i32, ptr @errno, align 4
%214 = call i32 @strerror(i32 noundef %213)
%215 = call i32 (ptr, ...) @test_msg(ptr noundef @.str.4, ptr noundef @.str.2, i32 noundef 113, i32 noundef %211, i32 noundef %212, i32 noundef %214)
store i32 1, ptr %11, align 4
br label %239
216: ; preds = %200
%217 = load i32, ptr %10, align 4
%218 = call i32 @WIFEXITED(i32 noundef %217)
%219 = icmp ne i32 %218, 0
br i1 %219, label %220, label %224
220: ; preds = %216
%221 = load i32, ptr %10, align 4
%222 = call i64 @WEXITSTATUS(i32 noundef %221)
%223 = icmp ne i64 %222, 0
br i1 %223, label %224, label %238
224: ; preds = %220, %216
%225 = load i32, ptr %7, align 4
%226 = load i32, ptr %10, align 4
%227 = call i32 @WIFEXITED(i32 noundef %226)
%228 = load i32, ptr %10, align 4
%229 = call i64 @WEXITSTATUS(i32 noundef %228)
%230 = load i32, ptr %10, align 4
%231 = call i32 @WIFSIGNALED(i32 noundef %230)
%232 = load i32, ptr %10, align 4
%233 = call i32 @WTERMSIG(i32 noundef %232)
%234 = load i32, ptr @errno, align 4
%235 = load i32, ptr @errno, align 4
%236 = call i32 @strerror(i32 noundef %235)
%237 = call i32 (ptr, ...) @test_msg(ptr noundef @.str.5, ptr noundef @.str.2, i32 noundef 116, i32 noundef %225, i32 noundef %227, i64 noundef %229, i32 noundef %231, i32 noundef %233, i32 noundef %234, i32 noundef %236)
store i32 1, ptr %11, align 4
br label %238
238: ; preds = %224, %220
br label %239
239: ; preds = %238, %207
br label %240
240: ; preds = %239
%241 = load i32, ptr %7, align 4
%242 = add nsw i32 %241, 1
store i32 %242, ptr %7, align 4
br label %196, !llvm.loop !8
243: ; preds = %196
%244 = load i32, ptr %11, align 4
%245 = icmp ne i32 %244, 0
br i1 %245, label %246, label %251
246: ; preds = %243
%247 = load i32, ptr @errno, align 4
%248 = load i32, ptr @errno, align 4
%249 = call i32 @strerror(i32 noundef %248)
%250 = call i32 (ptr, ...) @test_msg(ptr noundef @.str.6, ptr noundef @.str.2, i32 noundef 123, i32 noundef %247, i32 noundef %249)
br label %253
251: ; preds = %243
%252 = call i32 (ptr, ...) @test_msg(ptr noundef @.str.7)
br label %253
253: ; preds = %251, %246
ret i32 0
}
declare i32 @test_init(i32 noundef, ptr noundef) #1
declare i32 @pipe(ptr noundef) #1
declare i32 @test_fork_id(i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @setsid(...) #1
declare i32 @test_waitsig(...) #1
declare i64 @getpid(...) #1
declare i64 @getsid(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @getpgid(i32 noundef) #1
declare i32 @test_msg(ptr noundef, ...) #1
declare i32 @setpgid(i32 noundef, i32 noundef) #1
declare i64 @getppid(...) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @kill(i32 noundef, i32 noundef) #1
declare i64 @waitpid(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strerror(i32 noundef) #1
declare i32 @WIFEXITED(i32 noundef) #1
declare i64 @WEXITSTATUS(i32 noundef) #1
declare i32 @WIFSIGNALED(i32 noundef) #1
declare i32 @WTERMSIG(i32 noundef) #1
declare i32 @test_daemon(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmp9lb7apvg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"P1 OK\0A\00", align 1
@SIGTERM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [52 x i8] c"ERR: %s:%d: Unable to wait P2 %d (errno = %d (%s))\0A\00", align 1
@.str.2 = private unnamed_addr constant [150 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/LK4D4/criu/refs/heads/master/test/zdtm/live/static/xids00.c\00", align 1
@errno = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [51 x i8] c"ERR: %s:%d: P2 stat %d/%d/%d/%d (errno = %d (%s))\0A\00", align 1
@.str.4 = private unnamed_addr constant [49 x i8] c"ERR: %s:%d: Unable to wait %d (errno = %d (%s))\0A\00", align 1
@.str.5 = private unnamed_addr constant [52 x i8] c"ERR: %s:%d: P%d stat %d/%d/%d/%d (errno = %d (%s))\0A\00", align 1
@.str.6 = private unnamed_addr constant [49 x i8] c"FAIL: %s:%d: Something failed (errno = %d (%s))\0A\00", align 1
@.str.7 = private unnamed_addr constant [6 x i8] c"PASS\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 [2 x i32], align 4
%7 = alloca i32, align 4
%8 = alloca [2 x i32], align 4
%9 = alloca [2 x i32], align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca [2 x i32], align 4
%13 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %11, align 4
%14 = load i32, ptr %4, align 4
%15 = load ptr, ptr %5, align 8
%16 = call i32 @test_init(i32 noundef %14, ptr noundef %15)
%17 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%18 = call i32 @pipe(ptr noundef %17)
%19 = call i32 @test_fork_id(i32 noundef -1)
%20 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 0
store i32 %19, ptr %20, align 4
%21 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 0
%22 = load i32, ptr %21, align 4
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %47
24: ; preds = %2
%25 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%26 = load i32, ptr %25, align 4
%27 = call i32 @close(i32 noundef %26)
%28 = call i32 (...) @setsid()
%29 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
%30 = load i32, ptr %29, align 4
%31 = call i32 @close(i32 noundef %30)
%32 = call i32 (...) @test_waitsig()
%33 = call i64 (...) @getpid()
%34 = call i64 @getsid(i32 noundef 0)
%35 = icmp ne i64 %33, %34
br i1 %35, label %36, label %38
36: ; preds = %24
%37 = call i32 @exit(i32 noundef 1) #3
unreachable
38: ; preds = %24
%39 = call i64 (...) @getpid()
%40 = call i64 @getpgid(i32 noundef 0)
%41 = icmp ne i64 %39, %40
br i1 %41, label %42, label %44
42: ; preds = %38
%43 = call i32 @exit(i32 noundef 2) #3
unreachable
44: ; preds = %38
%45 = call i32 (ptr, ...) @test_msg(ptr noundef @.str)
%46 = call i32 @exit(i32 noundef 0) #3
unreachable
47: ; preds = %2
%48 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
%49 = load i32, ptr %48, align 4
%50 = call i32 @close(i32 noundef %49)
%51 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%52 = load i32, ptr %51, align 4
%53 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
store i32 %52, ptr %53, align 4
%54 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%55 = call i32 @pipe(ptr noundef %54)
%56 = call i32 @test_fork_id(i32 noundef -1)
%57 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 1
store i32 %56, ptr %57, align 4
%58 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 1
%59 = load i32, ptr %58, align 4
%60 = icmp eq i32 %59, 0
br i1 %60, label %61, label %160
61: ; preds = %47
%62 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%63 = load i32, ptr %62, align 4
%64 = call i32 @close(i32 noundef %63)
%65 = call i32 (...) @setsid()
%66 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
%67 = call i32 @pipe(ptr noundef %66)
%68 = call i32 @test_fork_id(i32 noundef -1)
store i32 %68, ptr %13, align 4
%69 = load i32, ptr %13, align 4
%70 = icmp eq i32 %69, 0
br i1 %70, label %71, label %96
71: ; preds = %61
%72 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
%73 = load i32, ptr %72, align 4
%74 = call i32 @close(i32 noundef %73)
%75 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
%76 = load i32, ptr %75, align 4
%77 = call i32 @close(i32 noundef %76)
%78 = call i32 @setpgid(i32 noundef 0, i32 noundef 0)
%79 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 1
%80 = load i32, ptr %79, align 4
%81 = call i32 @close(i32 noundef %80)
%82 = call i32 (...) @test_waitsig()
%83 = call i64 @getsid(i32 noundef 0)
%84 = call i64 (...) @getppid()
%85 = icmp ne i64 %83, %84
br i1 %85, label %86, label %88
86: ; preds = %71
%87 = call i32 @exit(i32 noundef 1) #3
unreachable
88: ; preds = %71
%89 = call i64 @getpgid(i32 noundef 0)
%90 = call i64 (...) @getpid()
%91 = icmp ne i64 %89, %90
br i1 %91, label %92, label %94
92: ; preds = %88
%93 = call i32 @exit(i32 noundef 1) #3
unreachable
94: ; preds = %88
%95 = call i32 @exit(i32 noundef 0) #3
unreachable
96: ; preds = %61
%97 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 1
%98 = load i32, ptr %97, align 4
%99 = call i32 @close(i32 noundef %98)
%100 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
%101 = load i32, ptr %100, align 4
%102 = call i32 @read(i32 noundef %101, ptr noundef %10, i32 noundef 1)
%103 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 0
%104 = load i32, ptr %103, align 4
%105 = call i32 @close(i32 noundef %104)
%106 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
%107 = load i32, ptr %106, align 4
%108 = call i32 @close(i32 noundef %107)
%109 = call i32 (...) @test_waitsig()
%110 = call i64 (...) @getpid()
%111 = call i64 @getsid(i32 noundef 0)
%112 = icmp ne i64 %110, %111
br i1 %112, label %113, label %115
113: ; preds = %96
%114 = call i32 @exit(i32 noundef 1) #3
unreachable
115: ; preds = %96
%116 = call i64 (...) @getpid()
%117 = call i64 @getpgid(i32 noundef 0)
%118 = icmp ne i64 %116, %117
br i1 %118, label %119, label %121
119: ; preds = %115
%120 = call i32 @exit(i32 noundef 2) #3
unreachable
121: ; preds = %115
%122 = load i32, ptr %13, align 4
%123 = load i32, ptr @SIGTERM, align 4
%124 = call i32 @kill(i32 noundef %122, i32 noundef %123)
%125 = load i32, ptr %13, align 4
%126 = call i64 @waitpid(i32 noundef %125, ptr noundef %10, i32 noundef 0)
%127 = icmp slt i64 %126, 0
br i1 %127, label %128, label %135
128: ; preds = %121
%129 = load i32, ptr %13, align 4
%130 = load i32, ptr @errno, align 4
%131 = load i32, ptr @errno, align 4
%132 = call i32 @strerror(i32 noundef %131)
%133 = call i32 (ptr, ...) @test_msg(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 87, i32 noundef %129, i32 noundef %130, i32 noundef %132)
%134 = call i32 @exit(i32 noundef 3) #3
unreachable
135: ; preds = %121
%136 = load i32, ptr %10, align 4
%137 = call i32 @WIFEXITED(i32 noundef %136)
%138 = icmp ne i32 %137, 0
br i1 %138, label %139, label %143
139: ; preds = %135
%140 = load i32, ptr %10, align 4
%141 = call i64 @WEXITSTATUS(i32 noundef %140)
%142 = icmp ne i64 %141, 0
br i1 %142, label %143, label %157
143: ; preds = %139, %135
%144 = load i32, ptr %10, align 4
%145 = call i32 @WIFEXITED(i32 noundef %144)
%146 = load i32, ptr %10, align 4
%147 = call i64 @WEXITSTATUS(i32 noundef %146)
%148 = load i32, ptr %10, align 4
%149 = call i32 @WIFSIGNALED(i32 noundef %148)
%150 = load i32, ptr %10, align 4
%151 = call i32 @WTERMSIG(i32 noundef %150)
%152 = load i32, ptr @errno, align 4
%153 = load i32, ptr @errno, align 4
%154 = call i32 @strerror(i32 noundef %153)
%155 = call i32 (ptr, ...) @test_msg(ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef 90, i32 noundef %145, i64 noundef %147, i32 noundef %149, i32 noundef %151, i32 noundef %152, i32 noundef %154)
%156 = call i32 @exit(i32 noundef 3) #3
unreachable
157: ; preds = %139
br label %158
158: ; preds = %157
%159 = call i32 @exit(i32 noundef 0) #3
unreachable
160: ; preds = %47
%161 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
%162 = load i32, ptr %161, align 4
%163 = call i32 @close(i32 noundef %162)
%164 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%165 = load i32, ptr %164, align 4
%166 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 1
store i32 %165, ptr %166, align 4
%167 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
%168 = load i32, ptr %167, align 4
%169 = call i32 @read(i32 noundef %168, ptr noundef %10, i32 noundef 1)
%170 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 0
%171 = load i32, ptr %170, align 4
%172 = call i32 @close(i32 noundef %171)
%173 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 1
%174 = load i32, ptr %173, align 4
%175 = call i32 @read(i32 noundef %174, ptr noundef %10, i32 noundef 1)
%176 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 1
%177 = load i32, ptr %176, align 4
%178 = call i32 @close(i32 noundef %177)
%179 = call i32 (...) @test_daemon()
%180 = call i32 (...) @test_waitsig()
store i32 0, ptr %7, align 4
%181 = load i32, ptr %7, align 4
%182 = sext i32 %181 to i64
%183 = icmp ult i64 %182, 2
br i1 %183, label %.lr.ph, label %197
.lr.ph: ; preds = %160
br label %184
184: ; preds = %.lr.ph, %191
%185 = load i32, ptr %7, align 4
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 %186
%188 = load i32, ptr %187, align 4
%189 = load i32, ptr @SIGTERM, align 4
%190 = call i32 @kill(i32 noundef %188, i32 noundef %189)
br label %191
191: ; preds = %184
%192 = load i32, ptr %7, align 4
%193 = add nsw i32 %192, 1
store i32 %193, ptr %7, align 4
%194 = load i32, ptr %7, align 4
%195 = sext i32 %194 to i64
%196 = icmp ult i64 %195, 2
br i1 %196, label %184, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %191
br label %197
197: ; preds = %._crit_edge, %160
store i32 0, ptr %7, align 4
%198 = load i32, ptr %7, align 4
%199 = sext i32 %198 to i64
%200 = icmp ult i64 %199, 2
br i1 %200, label %.lr.ph2, label %247
.lr.ph2: ; preds = %197
br label %201
201: ; preds = %.lr.ph2, %241
%202 = load i32, ptr %7, align 4
%203 = sext i32 %202 to i64
%204 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 %203
%205 = load i32, ptr %204, align 4
%206 = call i64 @waitpid(i32 noundef %205, ptr noundef %10, i32 noundef 0)
%207 = icmp slt i64 %206, 0
br i1 %207, label %208, label %217
208: ; preds = %201
%209 = load i32, ptr %7, align 4
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 %210
%212 = load i32, ptr %211, align 4
%213 = load i32, ptr @errno, align 4
%214 = load i32, ptr @errno, align 4
%215 = call i32 @strerror(i32 noundef %214)
%216 = call i32 (ptr, ...) @test_msg(ptr noundef @.str.4, ptr noundef @.str.2, i32 noundef 113, i32 noundef %212, i32 noundef %213, i32 noundef %215)
store i32 1, ptr %11, align 4
br label %240
217: ; preds = %201
%218 = load i32, ptr %10, align 4
%219 = call i32 @WIFEXITED(i32 noundef %218)
%220 = icmp ne i32 %219, 0
br i1 %220, label %221, label %225
221: ; preds = %217
%222 = load i32, ptr %10, align 4
%223 = call i64 @WEXITSTATUS(i32 noundef %222)
%224 = icmp ne i64 %223, 0
br i1 %224, label %225, label %239
225: ; preds = %221, %217
%226 = load i32, ptr %7, align 4
%227 = load i32, ptr %10, align 4
%228 = call i32 @WIFEXITED(i32 noundef %227)
%229 = load i32, ptr %10, align 4
%230 = call i64 @WEXITSTATUS(i32 noundef %229)
%231 = load i32, ptr %10, align 4
%232 = call i32 @WIFSIGNALED(i32 noundef %231)
%233 = load i32, ptr %10, align 4
%234 = call i32 @WTERMSIG(i32 noundef %233)
%235 = load i32, ptr @errno, align 4
%236 = load i32, ptr @errno, align 4
%237 = call i32 @strerror(i32 noundef %236)
%238 = call i32 (ptr, ...) @test_msg(ptr noundef @.str.5, ptr noundef @.str.2, i32 noundef 116, i32 noundef %226, i32 noundef %228, i64 noundef %230, i32 noundef %232, i32 noundef %234, i32 noundef %235, i32 noundef %237)
store i32 1, ptr %11, align 4
br label %239
239: ; preds = %225, %221
br label %240
240: ; preds = %239, %208
br label %241
241: ; preds = %240
%242 = load i32, ptr %7, align 4
%243 = add nsw i32 %242, 1
store i32 %243, ptr %7, align 4
%244 = load i32, ptr %7, align 4
%245 = sext i32 %244 to i64
%246 = icmp ult i64 %245, 2
br i1 %246, label %201, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %241
br label %247
247: ; preds = %._crit_edge3, %197
%248 = load i32, ptr %11, align 4
%249 = icmp ne i32 %248, 0
br i1 %249, label %250, label %255
250: ; preds = %247
%251 = load i32, ptr @errno, align 4
%252 = load i32, ptr @errno, align 4
%253 = call i32 @strerror(i32 noundef %252)
%254 = call i32 (ptr, ...) @test_msg(ptr noundef @.str.6, ptr noundef @.str.2, i32 noundef 123, i32 noundef %251, i32 noundef %253)
br label %257
255: ; preds = %247
%256 = call i32 (ptr, ...) @test_msg(ptr noundef @.str.7)
br label %257
257: ; preds = %255, %250
ret i32 0
}
declare i32 @test_init(i32 noundef, ptr noundef) #1
declare i32 @pipe(ptr noundef) #1
declare i32 @test_fork_id(i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @setsid(...) #1
declare i32 @test_waitsig(...) #1
declare i64 @getpid(...) #1
declare i64 @getsid(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @getpgid(i32 noundef) #1
declare i32 @test_msg(ptr noundef, ...) #1
declare i32 @setpgid(i32 noundef, i32 noundef) #1
declare i64 @getppid(...) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @kill(i32 noundef, i32 noundef) #1
declare i64 @waitpid(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strerror(i32 noundef) #1
declare i32 @WIFEXITED(i32 noundef) #1
declare i64 @WEXITSTATUS(i32 noundef) #1
declare i32 @WIFSIGNALED(i32 noundef) #1
declare i32 @WTERMSIG(i32 noundef) #1
declare i32 @test_daemon(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpsct_vatw.c'
source_filename = "/tmp/tmpsct_vatw.c"
target datalayout = "e-m:e-p270: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/tmpsct_vatw.c"
target datalayout = "e-m:e-p270: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/tmplxbywta4.c'
source_filename = "/tmp/tmplxbywta4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"wallet\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"relaxed\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"server\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"developer\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @convertMode(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 = call i64 @strcasecmp(ptr noundef %4, ptr noundef @.str)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 1, ptr %2, align 4
br label %24
8: ; preds = %1
%9 = load ptr, ptr %3, align 8
%10 = call i64 @strcasecmp(ptr noundef %9, ptr noundef @.str.1)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %8
store i32 2, ptr %2, align 4
br label %24
13: ; preds = %8
%14 = load ptr, ptr %3, align 8
%15 = call i64 @strcasecmp(ptr noundef %14, ptr noundef @.str.2)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %13
store i32 4, ptr %2, align 4
br label %24
18: ; preds = %13
%19 = load ptr, ptr %3, align 8
%20 = call i64 @strcasecmp(ptr noundef %19, ptr noundef @.str.3)
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %18
store i32 8, ptr %2, align 4
br label %24
23: ; preds = %18
store i32 -1, ptr %2, align 4
br label %24
24: ; preds = %23, %22, %17, %12, %7
%25 = load i32, ptr %2, align 4
ret i32 %25
}
declare i64 @strcasecmp(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/tmplxbywta4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"wallet\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"relaxed\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"server\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"developer\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @convertMode(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 = call i64 @strcasecmp(ptr noundef %4, ptr noundef @.str)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 1, ptr %2, align 4
br label %24
8: ; preds = %1
%9 = load ptr, ptr %3, align 8
%10 = call i64 @strcasecmp(ptr noundef %9, ptr noundef @.str.1)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %8
store i32 2, ptr %2, align 4
br label %24
13: ; preds = %8
%14 = load ptr, ptr %3, align 8
%15 = call i64 @strcasecmp(ptr noundef %14, ptr noundef @.str.2)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %13
store i32 4, ptr %2, align 4
br label %24
18: ; preds = %13
%19 = load ptr, ptr %3, align 8
%20 = call i64 @strcasecmp(ptr noundef %19, ptr noundef @.str.3)
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %18
store i32 8, ptr %2, align 4
br label %24
23: ; preds = %18
store i32 -1, ptr %2, align 4
br label %24
24: ; preds = %23, %22, %17, %12, %7
%25 = load i32, ptr %2, align 4
ret i32 %25
}
declare i64 @strcasecmp(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/tmprpo595z8.c'
source_filename = "/tmp/tmprpo595z8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global ptr null, align 8
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [16 x i8] c"UTF-8//TRANSLIT\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"UTF-16LE\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"iconv_open\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"iconv\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca i64, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca i64, align 8
%17 = alloca ptr, align 8
%18 = alloca i64, align 8
%19 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%20 = load ptr, ptr @stdin, align 8
store ptr %20, ptr %6, align 8
store ptr null, ptr %7, align 8
store ptr null, ptr %8, align 8
store i64 0, ptr %9, align 8
%21 = load ptr, ptr %6, align 8
%22 = load i32, ptr @SEEK_END, align 4
%23 = call i32 @fseek(ptr noundef %21, i32 noundef 0, i32 noundef %22)
%24 = load ptr, ptr %6, align 8
%25 = call i64 @ftello(ptr noundef %24)
store i64 %25, ptr %9, align 8
%26 = load ptr, ptr %6, align 8
%27 = load i32, ptr @SEEK_SET, align 4
%28 = call i32 @fseek(ptr noundef %26, i32 noundef 0, i32 noundef %27)
%29 = load i64, ptr %9, align 8
%30 = trunc i64 %29 to i32
%31 = call i64 @malloc(i32 noundef %30)
%32 = inttoptr i64 %31 to ptr
store ptr %32, ptr %7, align 8
%33 = load ptr, ptr %7, align 8
store ptr %33, ptr %12, align 8
br label %34
34: ; preds = %40, %2
%35 = load ptr, ptr %12, align 8
%36 = load i64, ptr %9, align 8
%37 = load ptr, ptr %6, align 8
%38 = call i64 @fread(ptr noundef %35, i32 noundef 1, i64 noundef %36, ptr noundef %37)
store i64 %38, ptr %11, align 8
%39 = icmp ne i64 %38, 0
br i1 %39, label %40, label %44
40: ; preds = %34
%41 = load i64, ptr %11, align 8
%42 = load ptr, ptr %12, align 8
%43 = getelementptr inbounds i8, ptr %42, i64 %41
store ptr %43, ptr %12, align 8
br label %34, !llvm.loop !6
44: ; preds = %34
%45 = load ptr, ptr %12, align 8
%46 = load ptr, ptr %7, align 8
%47 = ptrtoint ptr %45 to i64
%48 = ptrtoint ptr %46 to i64
%49 = sub i64 %47, %48
%50 = load i64, ptr %9, align 8
%51 = icmp ne i64 %49, %50
br i1 %51, label %52, label %53
52: ; preds = %44
store i32 -1, ptr %3, align 4
br label %106
53: ; preds = %44
%54 = load ptr, ptr %7, align 8
%55 = load i32, ptr %54, align 4
%56 = call i32 @le32toh(i32 noundef %55)
store i32 %56, ptr %10, align 4
%57 = load i32, ptr %10, align 4
%58 = add nsw i32 %57, 2
%59 = call i64 @malloc(i32 noundef %58)
%60 = inttoptr i64 %59 to ptr
store ptr %60, ptr %8, align 8
%61 = load ptr, ptr %8, align 8
%62 = load i32, ptr %10, align 4
%63 = add nsw i32 %62, 2
%64 = call i32 @memset(ptr noundef %61, i32 noundef 0, i32 noundef %63)
%65 = load ptr, ptr %8, align 8
%66 = load ptr, ptr %7, align 8
%67 = load i64, ptr %9, align 8
%68 = call i32 @decompress_lz(ptr noundef %65, ptr noundef %66, i64 noundef %67)
store i32 %68, ptr %13, align 4
%69 = load i32, ptr %13, align 4
%70 = icmp ne i32 %69, 0
br i1 %70, label %71, label %73
71: ; preds = %53
%72 = load i32, ptr %13, align 4
store i32 %72, ptr %3, align 4
br label %106
73: ; preds = %53
%74 = load i32, ptr %10, align 4
%75 = mul nsw i32 %74, 2
%76 = add nsw i32 %75, 1
%77 = call i64 @malloc(i32 noundef %76)
%78 = inttoptr i64 %77 to ptr
store ptr %78, ptr %14, align 8
%79 = load ptr, ptr %8, align 8
store ptr %79, ptr %15, align 8
%80 = load i32, ptr %10, align 4
%81 = sext i32 %80 to i64
store i64 %81, ptr %16, align 8
%82 = load ptr, ptr %14, align 8
store ptr %82, ptr %17, align 8
%83 = load i32, ptr %10, align 4
%84 = mul nsw i32 %83, 2
%85 = add nsw i32 %84, 1
%86 = sext i32 %85 to i64
store i64 %86, ptr %18, align 8
%87 = call i64 @iconv_open(ptr noundef @.str, ptr noundef @.str.1)
store i64 %87, ptr %19, align 8
%88 = load i64, ptr %19, align 8
%89 = icmp eq i64 %88, -1
br i1 %89, label %90, label %92
90: ; preds = %73
%91 = call i32 @perror(ptr noundef @.str.2)
store i32 1, ptr %3, align 4
br label %106
92: ; preds = %73
%93 = load i64, ptr %19, align 8
%94 = call i64 @iconv(i64 noundef %93, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %18)
%95 = icmp eq i64 %94, -1
br i1 %95, label %96, label %98
96: ; preds = %92
%97 = call i32 @perror(ptr noundef @.str.3)
store i32 1, ptr %3, align 4
br label %106
98: ; preds = %92
%99 = load ptr, ptr %14, align 8
%100 = load ptr, ptr %14, align 8
%101 = call i64 @strlen(ptr noundef %100)
%102 = add nsw i64 %101, 1
%103 = call ptr @realloc(ptr noundef %99, i64 noundef %102)
store ptr %103, ptr %14, align 8
%104 = load ptr, ptr %14, align 8
%105 = call i32 @printf(ptr noundef @.str.4, ptr noundef %104)
store i32 0, ptr %3, align 4
br label %106
106: ; preds = %98, %96, %90, %71, %52
%107 = load i32, ptr %3, align 4
ret i32 %107
}
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftello(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i64 @fread(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
declare i32 @le32toh(i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @decompress_lz(ptr noundef, ptr noundef, i64 noundef) #1
declare i64 @iconv_open(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i64 @iconv(i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @realloc(ptr noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprpo595z8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global ptr null, align 8
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [16 x i8] c"UTF-8//TRANSLIT\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"UTF-16LE\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"iconv_open\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"iconv\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca i64, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca i64, align 8
%17 = alloca ptr, align 8
%18 = alloca i64, align 8
%19 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%20 = load ptr, ptr @stdin, align 8
store ptr %20, ptr %6, align 8
store ptr null, ptr %7, align 8
store ptr null, ptr %8, align 8
store i64 0, ptr %9, align 8
%21 = load ptr, ptr %6, align 8
%22 = load i32, ptr @SEEK_END, align 4
%23 = call i32 @fseek(ptr noundef %21, i32 noundef 0, i32 noundef %22)
%24 = load ptr, ptr %6, align 8
%25 = call i64 @ftello(ptr noundef %24)
store i64 %25, ptr %9, align 8
%26 = load ptr, ptr %6, align 8
%27 = load i32, ptr @SEEK_SET, align 4
%28 = call i32 @fseek(ptr noundef %26, i32 noundef 0, i32 noundef %27)
%29 = load i64, ptr %9, align 8
%30 = trunc i64 %29 to i32
%31 = call i64 @malloc(i32 noundef %30)
%32 = inttoptr i64 %31 to ptr
store ptr %32, ptr %7, align 8
%33 = load ptr, ptr %7, align 8
store ptr %33, ptr %12, align 8
%34 = load ptr, ptr %12, align 8
%35 = load i64, ptr %9, align 8
%36 = load ptr, ptr %6, align 8
%37 = call i64 @fread(ptr noundef %34, i32 noundef 1, i64 noundef %35, ptr noundef %36)
store i64 %37, ptr %11, align 8
%38 = icmp ne i64 %37, 0
br i1 %38, label %.lr.ph, label %48
.lr.ph: ; preds = %2
br label %39
39: ; preds = %.lr.ph, %39
%40 = load i64, ptr %11, align 8
%41 = load ptr, ptr %12, align 8
%42 = getelementptr inbounds i8, ptr %41, i64 %40
store ptr %42, ptr %12, align 8
%43 = load ptr, ptr %12, align 8
%44 = load i64, ptr %9, align 8
%45 = load ptr, ptr %6, align 8
%46 = call i64 @fread(ptr noundef %43, i32 noundef 1, i64 noundef %44, ptr noundef %45)
store i64 %46, ptr %11, align 8
%47 = icmp ne i64 %46, 0
br i1 %47, label %39, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %39
br label %48
48: ; preds = %._crit_edge, %2
%49 = load ptr, ptr %12, align 8
%50 = load ptr, ptr %7, align 8
%51 = ptrtoint ptr %49 to i64
%52 = ptrtoint ptr %50 to i64
%53 = sub i64 %51, %52
%54 = load i64, ptr %9, align 8
%55 = icmp ne i64 %53, %54
br i1 %55, label %56, label %57
56: ; preds = %48
store i32 -1, ptr %3, align 4
br label %110
57: ; preds = %48
%58 = load ptr, ptr %7, align 8
%59 = load i32, ptr %58, align 4
%60 = call i32 @le32toh(i32 noundef %59)
store i32 %60, ptr %10, align 4
%61 = load i32, ptr %10, align 4
%62 = add nsw i32 %61, 2
%63 = call i64 @malloc(i32 noundef %62)
%64 = inttoptr i64 %63 to ptr
store ptr %64, ptr %8, align 8
%65 = load ptr, ptr %8, align 8
%66 = load i32, ptr %10, align 4
%67 = add nsw i32 %66, 2
%68 = call i32 @memset(ptr noundef %65, i32 noundef 0, i32 noundef %67)
%69 = load ptr, ptr %8, align 8
%70 = load ptr, ptr %7, align 8
%71 = load i64, ptr %9, align 8
%72 = call i32 @decompress_lz(ptr noundef %69, ptr noundef %70, i64 noundef %71)
store i32 %72, ptr %13, align 4
%73 = load i32, ptr %13, align 4
%74 = icmp ne i32 %73, 0
br i1 %74, label %75, label %77
75: ; preds = %57
%76 = load i32, ptr %13, align 4
store i32 %76, ptr %3, align 4
br label %110
77: ; preds = %57
%78 = load i32, ptr %10, align 4
%79 = mul nsw i32 %78, 2
%80 = add nsw i32 %79, 1
%81 = call i64 @malloc(i32 noundef %80)
%82 = inttoptr i64 %81 to ptr
store ptr %82, ptr %14, align 8
%83 = load ptr, ptr %8, align 8
store ptr %83, ptr %15, align 8
%84 = load i32, ptr %10, align 4
%85 = sext i32 %84 to i64
store i64 %85, ptr %16, align 8
%86 = load ptr, ptr %14, align 8
store ptr %86, ptr %17, align 8
%87 = load i32, ptr %10, align 4
%88 = mul nsw i32 %87, 2
%89 = add nsw i32 %88, 1
%90 = sext i32 %89 to i64
store i64 %90, ptr %18, align 8
%91 = call i64 @iconv_open(ptr noundef @.str, ptr noundef @.str.1)
store i64 %91, ptr %19, align 8
%92 = load i64, ptr %19, align 8
%93 = icmp eq i64 %92, -1
br i1 %93, label %94, label %96
94: ; preds = %77
%95 = call i32 @perror(ptr noundef @.str.2)
store i32 1, ptr %3, align 4
br label %110
96: ; preds = %77
%97 = load i64, ptr %19, align 8
%98 = call i64 @iconv(i64 noundef %97, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %18)
%99 = icmp eq i64 %98, -1
br i1 %99, label %100, label %102
100: ; preds = %96
%101 = call i32 @perror(ptr noundef @.str.3)
store i32 1, ptr %3, align 4
br label %110
102: ; preds = %96
%103 = load ptr, ptr %14, align 8
%104 = load ptr, ptr %14, align 8
%105 = call i64 @strlen(ptr noundef %104)
%106 = add nsw i64 %105, 1
%107 = call ptr @realloc(ptr noundef %103, i64 noundef %106)
store ptr %107, ptr %14, align 8
%108 = load ptr, ptr %14, align 8
%109 = call i32 @printf(ptr noundef @.str.4, ptr noundef %108)
store i32 0, ptr %3, align 4
br label %110
110: ; preds = %102, %100, %94, %75, %56
%111 = load i32, ptr %3, align 4
ret i32 %111
}
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftello(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i64 @fread(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
declare i32 @le32toh(i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @decompress_lz(ptr noundef, ptr noundef, i64 noundef) #1
declare i64 @iconv_open(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i64 @iconv(i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @realloc(ptr noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp8s81b3_9.c'
source_filename = "/tmp/tmp8s81b3_9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Cyc_asm_comment(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 = call i32 @Cyc_asm_comment_rec(ptr noundef %4, i32 noundef 9)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
ret i32 %6
}
declare i32 @Cyc_asm_comment_rec(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/tmp8s81b3_9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Cyc_asm_comment(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 = call i32 @Cyc_asm_comment_rec(ptr noundef %4, i32 noundef 9)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
ret i32 %6
}
declare i32 @Cyc_asm_comment_rec(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/tmpzwxjc5zd.c'
source_filename = "/tmp/tmpzwxjc5zd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"hello\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @myFunc() #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/tmpzwxjc5zd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"hello\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @myFunc() #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/tmpxx88qc1w.c'
source_filename = "/tmp/tmpxx88qc1w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i64, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @timeval_sub(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca %struct.timeval, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %13, label %12
12: ; preds = %9, %2
store i32 -1, ptr %3, align 4
br label %49
13: ; preds = %9
%14 = load ptr, ptr %4, align 8
%15 = getelementptr inbounds %struct.timeval, ptr %14, i32 0, i32 1
%16 = load i64, ptr %15, align 8
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds %struct.timeval, ptr %17, i32 0, i32 1
%19 = load i64, ptr %18, align 8
%20 = sub nsw i64 %16, %19
%21 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 1
store i64 %20, ptr %21, align 8
%22 = load ptr, ptr %4, align 8
%23 = getelementptr inbounds %struct.timeval, ptr %22, i32 0, i32 0
%24 = load i64, ptr %23, align 8
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds %struct.timeval, ptr %25, i32 0, i32 0
%27 = load i64, ptr %26, align 8
%28 = sub nsw i64 %24, %27
%29 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 0
store i64 %28, ptr %29, align 8
%30 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 0
%31 = load i64, ptr %30, align 8
%32 = icmp slt i64 %31, 0
br i1 %32, label %33, label %40
33: ; preds = %13
%34 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 0
%35 = load i64, ptr %34, align 8
%36 = add nsw i64 %35, -1
store i64 %36, ptr %34, align 8
%37 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 0
%38 = load i64, ptr %37, align 8
%39 = add nsw i64 %38, 1000000
store i64 %39, ptr %37, align 8
br label %40
40: ; preds = %33, %13
%41 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 1
%42 = load i64, ptr %41, align 8
%43 = load ptr, ptr %4, align 8
%44 = getelementptr inbounds %struct.timeval, ptr %43, i32 0, i32 1
store i64 %42, ptr %44, align 8
%45 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 0
%46 = load i64, ptr %45, align 8
%47 = load ptr, ptr %4, align 8
%48 = getelementptr inbounds %struct.timeval, ptr %47, i32 0, i32 0
store i64 %46, ptr %48, align 8
store i32 0, ptr %3, align 4
br label %49
49: ; preds = %40, %12
%50 = load i32, ptr %3, align 4
ret i32 %50
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxx88qc1w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i64, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @timeval_sub(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca %struct.timeval, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %13, label %12
12: ; preds = %9, %2
store i32 -1, ptr %3, align 4
br label %49
13: ; preds = %9
%14 = load ptr, ptr %4, align 8
%15 = getelementptr inbounds %struct.timeval, ptr %14, i32 0, i32 1
%16 = load i64, ptr %15, align 8
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds %struct.timeval, ptr %17, i32 0, i32 1
%19 = load i64, ptr %18, align 8
%20 = sub nsw i64 %16, %19
%21 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 1
store i64 %20, ptr %21, align 8
%22 = load ptr, ptr %4, align 8
%23 = getelementptr inbounds %struct.timeval, ptr %22, i32 0, i32 0
%24 = load i64, ptr %23, align 8
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds %struct.timeval, ptr %25, i32 0, i32 0
%27 = load i64, ptr %26, align 8
%28 = sub nsw i64 %24, %27
%29 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 0
store i64 %28, ptr %29, align 8
%30 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 0
%31 = load i64, ptr %30, align 8
%32 = icmp slt i64 %31, 0
br i1 %32, label %33, label %40
33: ; preds = %13
%34 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 0
%35 = load i64, ptr %34, align 8
%36 = add nsw i64 %35, -1
store i64 %36, ptr %34, align 8
%37 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 0
%38 = load i64, ptr %37, align 8
%39 = add nsw i64 %38, 1000000
store i64 %39, ptr %37, align 8
br label %40
40: ; preds = %33, %13
%41 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 1
%42 = load i64, ptr %41, align 8
%43 = load ptr, ptr %4, align 8
%44 = getelementptr inbounds %struct.timeval, ptr %43, i32 0, i32 1
store i64 %42, ptr %44, align 8
%45 = getelementptr inbounds %struct.timeval, ptr %6, i32 0, i32 0
%46 = load i64, ptr %45, align 8
%47 = load ptr, ptr %4, align 8
%48 = getelementptr inbounds %struct.timeval, ptr %47, i32 0, i32 0
store i64 %46, ptr %48, align 8
store i32 0, ptr %3, align 4
br label %49
49: ; preds = %40, %12
%50 = load i32, ptr %3, align 4
ret i32 %50
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9b7qhmuj.c'
source_filename = "/tmp/tmp9b7qhmuj.c"
target datalayout = "e-m:e-p270: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/tmp9b7qhmuj.c"
target datalayout = "e-m:e-p270: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/tmpgs9s56c8.c'
source_filename = "/tmp/tmpgs9s56c8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nsl_geom_point_point_dist(double noundef %0, double noundef %1, double noundef %2, double noundef %3) #0 {
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
store double %0, ptr %5, align 8
store double %1, ptr %6, align 8
store double %2, ptr %7, align 8
store double %3, ptr %8, align 8
%9 = load double, ptr %7, align 8
%10 = load double, ptr %5, align 8
%11 = fsub double %9, %10
%12 = load double, ptr %7, align 8
%13 = load double, ptr %5, align 8
%14 = fsub double %12, %13
%15 = load double, ptr %8, align 8
%16 = load double, ptr %6, align 8
%17 = fsub double %15, %16
%18 = load double, ptr %8, align 8
%19 = load double, ptr %6, align 8
%20 = fsub double %18, %19
%21 = fmul double %17, %20
%22 = call double @llvm.fmuladd.f64(double %11, double %14, double %21)
%23 = call double @sqrt(double noundef %22) #3
ret double %23
}
; Function Attrs: nounwind
declare double @sqrt(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 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgs9s56c8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nsl_geom_point_point_dist(double noundef %0, double noundef %1, double noundef %2, double noundef %3) #0 {
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
store double %0, ptr %5, align 8
store double %1, ptr %6, align 8
store double %2, ptr %7, align 8
store double %3, ptr %8, align 8
%9 = load double, ptr %7, align 8
%10 = load double, ptr %5, align 8
%11 = fsub double %9, %10
%12 = load double, ptr %7, align 8
%13 = load double, ptr %5, align 8
%14 = fsub double %12, %13
%15 = load double, ptr %8, align 8
%16 = load double, ptr %6, align 8
%17 = fsub double %15, %16
%18 = load double, ptr %8, align 8
%19 = load double, ptr %6, align 8
%20 = fsub double %18, %19
%21 = fmul double %17, %20
%22 = call double @llvm.fmuladd.f64(double %11, double %14, double %21)
%23 = call double @sqrt(double noundef %22) #3
ret double %23
}
; Function Attrs: nounwind
declare double @sqrt(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 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_2xxnefx.c'
source_filename = "/tmp/tmp_2xxnefx.c"
target datalayout = "e-m:e-p270: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 { i32, i32, i32, i32, i32, ptr }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [32 x i8] c"usage: talker hostname message\0A\00", align 1
@AF_UNSPEC = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [5 x i8] c"4950\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"getaddrinfo: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"talker: socket\00", align 1
@.str.4 = private unnamed_addr constant [33 x i8] c"talker: failed to create socket\0A\00", align 1
@.str.5 = private unnamed_addr constant [15 x i8] c"talker: sendto\00", align 1
@.str.6 = private unnamed_addr constant [29 x i8] c"talker: sent %d bytes to %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca %struct.addrinfo, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 3
br i1 %13, label %14, label %18
14: ; preds = %2
%15 = load i32, ptr @stderr, align 4
%16 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %15, ptr noundef @.str)
%17 = call i32 @exit(i32 noundef 1) #3
unreachable
18: ; preds = %2
%19 = call i32 @memset(ptr noundef %7, i32 noundef 0, i32 noundef 32)
%20 = load i32, ptr @AF_UNSPEC, align 4
%21 = getelementptr inbounds %struct.addrinfo, ptr %7, i32 0, i32 4
store i32 %20, ptr %21, align 8
%22 = load i32, ptr @SOCK_DGRAM, align 4
%23 = getelementptr inbounds %struct.addrinfo, ptr %7, i32 0, i32 3
store i32 %22, ptr %23, align 4
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 1
%26 = load ptr, ptr %25, align 8
%27 = call i32 @getaddrinfo(ptr noundef %26, ptr noundef @.str.1, ptr noundef %7, ptr noundef %8)
store i32 %27, ptr %10, align 4
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %34
29: ; preds = %18
%30 = load i32, ptr @stderr, align 4
%31 = load i32, ptr %10, align 4
%32 = call ptr @gai_strerror(i32 noundef %31)
%33 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %30, ptr noundef @.str.2, ptr noundef %32)
store i32 1, ptr %3, align 4
br label %94
34: ; preds = %18
%35 = load ptr, ptr %8, align 8
store ptr %35, ptr %9, align 8
br label %36
36: ; preds = %54, %34
%37 = load ptr, ptr %9, align 8
%38 = icmp ne ptr %37, null
br i1 %38, label %39, label %58
39: ; preds = %36
%40 = load ptr, ptr %9, align 8
%41 = getelementptr inbounds %struct.addrinfo, ptr %40, i32 0, i32 4
%42 = load i32, ptr %41, align 8
%43 = load ptr, ptr %9, align 8
%44 = getelementptr inbounds %struct.addrinfo, ptr %43, i32 0, i32 3
%45 = load i32, ptr %44, align 4
%46 = load ptr, ptr %9, align 8
%47 = getelementptr inbounds %struct.addrinfo, ptr %46, i32 0, i32 2
%48 = load i32, ptr %47, align 8
%49 = call i32 @socket(i32 noundef %42, i32 noundef %45, i32 noundef %48)
store i32 %49, ptr %6, align 4
%50 = icmp eq i32 %49, -1
br i1 %50, label %51, label %53
51: ; preds = %39
%52 = call i32 @perror(ptr noundef @.str.3)
br label %54
53: ; preds = %39
br label %58
54: ; preds = %51
%55 = load ptr, ptr %9, align 8
%56 = getelementptr inbounds %struct.addrinfo, ptr %55, i32 0, i32 5
%57 = load ptr, ptr %56, align 8
store ptr %57, ptr %9, align 8
br label %36, !llvm.loop !6
58: ; preds = %53, %36
%59 = load ptr, ptr %9, align 8
%60 = icmp eq ptr %59, null
br i1 %60, label %61, label %64
61: ; preds = %58
%62 = load i32, ptr @stderr, align 4
%63 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %62, ptr noundef @.str.4)
store i32 2, ptr %3, align 4
br label %94
64: ; preds = %58
%65 = load i32, ptr %6, align 4
%66 = load ptr, ptr %5, align 8
%67 = getelementptr inbounds ptr, ptr %66, i64 2
%68 = load ptr, ptr %67, align 8
%69 = load ptr, ptr %5, align 8
%70 = getelementptr inbounds ptr, ptr %69, i64 2
%71 = load ptr, ptr %70, align 8
%72 = call i32 @strlen(ptr noundef %71)
%73 = load ptr, ptr %9, align 8
%74 = getelementptr inbounds %struct.addrinfo, ptr %73, i32 0, i32 1
%75 = load i32, ptr %74, align 4
%76 = load ptr, ptr %9, align 8
%77 = getelementptr inbounds %struct.addrinfo, ptr %76, i32 0, i32 0
%78 = load i32, ptr %77, align 8
%79 = call i32 @sendto(i32 noundef %65, ptr noundef %68, i32 noundef %72, i32 noundef 0, i32 noundef %75, i32 noundef %78)
store i32 %79, ptr %11, align 4
%80 = icmp eq i32 %79, -1
br i1 %80, label %81, label %84
81: ; preds = %64
%82 = call i32 @perror(ptr noundef @.str.5)
%83 = call i32 @exit(i32 noundef 1) #3
unreachable
84: ; preds = %64
%85 = load ptr, ptr %8, align 8
%86 = call i32 @freeaddrinfo(ptr noundef %85)
%87 = load i32, ptr %11, align 4
%88 = load ptr, ptr %5, align 8
%89 = getelementptr inbounds ptr, ptr %88, i64 1
%90 = load ptr, ptr %89, align 8
%91 = call i32 @printf(ptr noundef @.str.6, i32 noundef %87, ptr noundef %90)
%92 = load i32, ptr %6, align 4
%93 = call i32 @close(i32 noundef %92)
store i32 0, ptr %3, align 4
br label %94
94: ; preds = %84, %61, %29
%95 = load i32, ptr %3, align 4
ret i32 %95
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @gai_strerror(i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @sendto(i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @freeaddrinfo(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_2xxnefx.c"
target datalayout = "e-m:e-p270: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 { i32, i32, i32, i32, i32, ptr }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [32 x i8] c"usage: talker hostname message\0A\00", align 1
@AF_UNSPEC = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [5 x i8] c"4950\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"getaddrinfo: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"talker: socket\00", align 1
@.str.4 = private unnamed_addr constant [33 x i8] c"talker: failed to create socket\0A\00", align 1
@.str.5 = private unnamed_addr constant [15 x i8] c"talker: sendto\00", align 1
@.str.6 = private unnamed_addr constant [29 x i8] c"talker: sent %d bytes to %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca %struct.addrinfo, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 3
br i1 %13, label %14, label %18
14: ; preds = %2
%15 = load i32, ptr @stderr, align 4
%16 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %15, ptr noundef @.str)
%17 = call i32 @exit(i32 noundef 1) #3
unreachable
18: ; preds = %2
%19 = call i32 @memset(ptr noundef %7, i32 noundef 0, i32 noundef 32)
%20 = load i32, ptr @AF_UNSPEC, align 4
%21 = getelementptr inbounds %struct.addrinfo, ptr %7, i32 0, i32 4
store i32 %20, ptr %21, align 8
%22 = load i32, ptr @SOCK_DGRAM, align 4
%23 = getelementptr inbounds %struct.addrinfo, ptr %7, i32 0, i32 3
store i32 %22, ptr %23, align 4
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 1
%26 = load ptr, ptr %25, align 8
%27 = call i32 @getaddrinfo(ptr noundef %26, ptr noundef @.str.1, ptr noundef %7, ptr noundef %8)
store i32 %27, ptr %10, align 4
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %34
29: ; preds = %18
%30 = load i32, ptr @stderr, align 4
%31 = load i32, ptr %10, align 4
%32 = call ptr @gai_strerror(i32 noundef %31)
%33 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %30, ptr noundef @.str.2, ptr noundef %32)
store i32 1, ptr %3, align 4
br label %95
34: ; preds = %18
%35 = load ptr, ptr %8, align 8
store ptr %35, ptr %9, align 8
%36 = load ptr, ptr %9, align 8
%37 = icmp ne ptr %36, null
br i1 %37, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %34
br label %38
38: ; preds = %.lr.ph, %53
%39 = load ptr, ptr %9, align 8
%40 = getelementptr inbounds %struct.addrinfo, ptr %39, i32 0, i32 4
%41 = load i32, ptr %40, align 8
%42 = load ptr, ptr %9, align 8
%43 = getelementptr inbounds %struct.addrinfo, ptr %42, i32 0, i32 3
%44 = load i32, ptr %43, align 4
%45 = load ptr, ptr %9, align 8
%46 = getelementptr inbounds %struct.addrinfo, ptr %45, i32 0, i32 2
%47 = load i32, ptr %46, align 8
%48 = call i32 @socket(i32 noundef %41, i32 noundef %44, i32 noundef %47)
store i32 %48, ptr %6, align 4
%49 = icmp eq i32 %48, -1
br i1 %49, label %50, label %52
50: ; preds = %38
%51 = call i32 @perror(ptr noundef @.str.3)
br label %53
52: ; preds = %38
br label %59
53: ; preds = %50
%54 = load ptr, ptr %9, align 8
%55 = getelementptr inbounds %struct.addrinfo, ptr %54, i32 0, i32 5
%56 = load ptr, ptr %55, align 8
store ptr %56, ptr %9, align 8
%57 = load ptr, ptr %9, align 8
%58 = icmp ne ptr %57, null
br i1 %58, label %38, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %53
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %34
br label %59
59: ; preds = %.loopexit, %52
%60 = load ptr, ptr %9, align 8
%61 = icmp eq ptr %60, null
br i1 %61, label %62, label %65
62: ; preds = %59
%63 = load i32, ptr @stderr, align 4
%64 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %63, ptr noundef @.str.4)
store i32 2, ptr %3, align 4
br label %95
65: ; preds = %59
%66 = load i32, ptr %6, align 4
%67 = load ptr, ptr %5, align 8
%68 = getelementptr inbounds ptr, ptr %67, i64 2
%69 = load ptr, ptr %68, align 8
%70 = load ptr, ptr %5, align 8
%71 = getelementptr inbounds ptr, ptr %70, i64 2
%72 = load ptr, ptr %71, align 8
%73 = call i32 @strlen(ptr noundef %72)
%74 = load ptr, ptr %9, align 8
%75 = getelementptr inbounds %struct.addrinfo, ptr %74, i32 0, i32 1
%76 = load i32, ptr %75, align 4
%77 = load ptr, ptr %9, align 8
%78 = getelementptr inbounds %struct.addrinfo, ptr %77, i32 0, i32 0
%79 = load i32, ptr %78, align 8
%80 = call i32 @sendto(i32 noundef %66, ptr noundef %69, i32 noundef %73, i32 noundef 0, i32 noundef %76, i32 noundef %79)
store i32 %80, ptr %11, align 4
%81 = icmp eq i32 %80, -1
br i1 %81, label %82, label %85
82: ; preds = %65
%83 = call i32 @perror(ptr noundef @.str.5)
%84 = call i32 @exit(i32 noundef 1) #3
unreachable
85: ; preds = %65
%86 = load ptr, ptr %8, align 8
%87 = call i32 @freeaddrinfo(ptr noundef %86)
%88 = load i32, ptr %11, align 4
%89 = load ptr, ptr %5, align 8
%90 = getelementptr inbounds ptr, ptr %89, i64 1
%91 = load ptr, ptr %90, align 8
%92 = call i32 @printf(ptr noundef @.str.6, i32 noundef %88, ptr noundef %91)
%93 = load i32, ptr %6, align 4
%94 = call i32 @close(i32 noundef %93)
store i32 0, ptr %3, align 4
br label %95
95: ; preds = %85, %62, %29
%96 = load i32, ptr %3, align 4
ret i32 %96
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @gai_strerror(i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @sendto(i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @freeaddrinfo(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpdrc3vxeb.c'
source_filename = "/tmp/tmpdrc3vxeb.c"
target datalayout = "e-m:e-p270: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 = icmp sle i32 %11, %12
br i1 %13, label %14, label %28
14: ; preds = %2
%15 = load i32, ptr %4, align 4
%16 = sitofp i32 %15 to double
%17 = fmul double -1.500000e+00, %16
%18 = load i32, ptr %3, align 4
%19 = sitofp i32 %18 to double
%20 = fdiv double %17, %19
%21 = load i32, ptr %4, align 4
%22 = sitofp i32 %21 to double
%23 = fmul double 1.500000e+00, %22
%24 = load i32, ptr %3, align 4
%25 = sitofp i32 %24 to double
%26 = fdiv double %23, %25
%27 = call i32 @glOrtho(double noundef -1.500000e+00, double noundef 1.500000e+00, double noundef %20, double noundef %26, double noundef -1.000000e+01, double noundef 1.000000e+01)
br label %42
28: ; preds = %2
%29 = load i32, ptr %3, align 4
%30 = sitofp i32 %29 to double
%31 = fmul double -1.500000e+00, %30
%32 = load i32, ptr %4, align 4
%33 = sitofp i32 %32 to double
%34 = fdiv double %31, %33
%35 = load i32, ptr %3, align 4
%36 = sitofp i32 %35 to double
%37 = fmul double 1.500000e+00, %36
%38 = load i32, ptr %4, align 4
%39 = sitofp i32 %38 to double
%40 = fdiv double %37, %39
%41 = call i32 @glOrtho(double noundef %34, double noundef %40, double noundef -1.500000e+00, double noundef 1.500000e+00, double noundef -1.000000e+01, double noundef 1.000000e+01)
br label %42
42: ; preds = %28, %14
%43 = load i32, ptr @GL_MODELVIEW, align 4
%44 = call i32 @glMatrixMode(i32 noundef %43)
%45 = call i32 (...) @glLoadIdentity()
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 @glOrtho(double noundef, double noundef, double noundef, 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/tmpdrc3vxeb.c"
target datalayout = "e-m:e-p270: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 = icmp sle i32 %11, %12
br i1 %13, label %14, label %28
14: ; preds = %2
%15 = load i32, ptr %4, align 4
%16 = sitofp i32 %15 to double
%17 = fmul double -1.500000e+00, %16
%18 = load i32, ptr %3, align 4
%19 = sitofp i32 %18 to double
%20 = fdiv double %17, %19
%21 = load i32, ptr %4, align 4
%22 = sitofp i32 %21 to double
%23 = fmul double 1.500000e+00, %22
%24 = load i32, ptr %3, align 4
%25 = sitofp i32 %24 to double
%26 = fdiv double %23, %25
%27 = call i32 @glOrtho(double noundef -1.500000e+00, double noundef 1.500000e+00, double noundef %20, double noundef %26, double noundef -1.000000e+01, double noundef 1.000000e+01)
br label %42
28: ; preds = %2
%29 = load i32, ptr %3, align 4
%30 = sitofp i32 %29 to double
%31 = fmul double -1.500000e+00, %30
%32 = load i32, ptr %4, align 4
%33 = sitofp i32 %32 to double
%34 = fdiv double %31, %33
%35 = load i32, ptr %3, align 4
%36 = sitofp i32 %35 to double
%37 = fmul double 1.500000e+00, %36
%38 = load i32, ptr %4, align 4
%39 = sitofp i32 %38 to double
%40 = fdiv double %37, %39
%41 = call i32 @glOrtho(double noundef %34, double noundef %40, double noundef -1.500000e+00, double noundef 1.500000e+00, double noundef -1.000000e+01, double noundef 1.000000e+01)
br label %42
42: ; preds = %28, %14
%43 = load i32, ptr @GL_MODELVIEW, align 4
%44 = call i32 @glMatrixMode(i32 noundef %43)
%45 = call i32 (...) @glLoadIdentity()
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 @glOrtho(double noundef, double noundef, double noundef, 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/tmppzj_sbhg.c'
source_filename = "/tmp/tmppzj_sbhg.c"
target datalayout = "e-m:e-p270: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/tmppzj_sbhg.c"
target datalayout = "e-m:e-p270: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/tmpqdhzr92e.c'
source_filename = "/tmp/tmpqdhzr92e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @xstrlower(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call ptr @xstrdup(ptr noundef %4)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @strlower(ptr noundef %6)
%8 = load ptr, ptr %3, align 8
ret ptr %8
}
declare ptr @xstrdup(ptr noundef) #1
declare i32 @strlower(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqdhzr92e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @xstrlower(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call ptr @xstrdup(ptr noundef %4)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @strlower(ptr noundef %6)
%8 = load ptr, ptr %3, align 8
ret ptr %8
}
declare ptr @xstrdup(ptr noundef) #1
declare i32 @strlower(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3w7dkxpr.c'
source_filename = "/tmp/tmp3w7dkxpr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"vetor:\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %18, %2
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %21
11: ; preds = %7
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %5, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i32, ptr %12, i64 %14
%16 = load i32, ptr %15, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %16)
br label %18
18: ; preds = %11
%19 = load i32, ptr %5, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %5, align 4
br label %7, !llvm.loop !6
21: ; preds = %7
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
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/tmp3w7dkxpr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"vetor:\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %.lr.ph, label %23
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %17
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i32, ptr %11, i64 %13
%15 = load i32, ptr %14, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %15)
br label %17
17: ; preds = %10
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %5, align 4
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %23
23: ; preds = %._crit_edge, %2
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
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/tmpgel73fn_.c'
source_filename = "/tmp/tmpgel73fn_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_GETFL = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [33 x i8] c"fcntl(): can't read socket flags\00", align 1
@O_NONBLOCK = dso_local global i32 0, align 4
@F_SETFL = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [32 x i8] c"fcntl(): can't set socket flags\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ssh_net_set_sock_blocking(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr @F_GETFL, align 4
%9 = call i64 (i32, i32, ...) @fcntl(i32 noundef %7, i32 noundef %8)
%10 = trunc i64 %9 to i32
store i32 %10, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = call i32 @ssh_set_error(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %48
15: ; preds = %2
%16 = load i32, ptr %5, align 4
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %29
18: ; preds = %15
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr @O_NONBLOCK, align 4
%21 = and i32 %19, %20
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %18
store i32 0, ptr %3, align 4
br label %48
24: ; preds = %18
%25 = load i32, ptr @O_NONBLOCK, align 4
%26 = xor i32 %25, -1
%27 = load i32, ptr %6, align 4
%28 = and i32 %27, %26
store i32 %28, ptr %6, align 4
br label %39
29: ; preds = %15
%30 = load i32, ptr %6, align 4
%31 = load i32, ptr @O_NONBLOCK, align 4
%32 = and i32 %30, %31
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %35
34: ; preds = %29
store i32 0, ptr %3, align 4
br label %48
35: ; preds = %29
%36 = load i32, ptr @O_NONBLOCK, align 4
%37 = load i32, ptr %6, align 4
%38 = or i32 %37, %36
store i32 %38, ptr %6, align 4
br label %39
39: ; preds = %35, %24
%40 = load i32, ptr %4, align 4
%41 = load i32, ptr @F_SETFL, align 4
%42 = load i32, ptr %6, align 4
%43 = call i64 (i32, i32, ...) @fcntl(i32 noundef %40, i32 noundef %41, i32 noundef %42)
%44 = icmp slt i64 %43, 0
br i1 %44, label %45, label %47
45: ; preds = %39
%46 = call i32 @ssh_set_error(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %48
47: ; preds = %39
store i32 0, ptr %3, align 4
br label %48
48: ; preds = %47, %45, %34, %23, %13
%49 = load i32, ptr %3, align 4
ret i32 %49
}
declare i64 @fcntl(i32 noundef, i32 noundef, ...) #1
declare i32 @ssh_set_error(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgel73fn_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_GETFL = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [33 x i8] c"fcntl(): can't read socket flags\00", align 1
@O_NONBLOCK = dso_local global i32 0, align 4
@F_SETFL = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [32 x i8] c"fcntl(): can't set socket flags\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ssh_net_set_sock_blocking(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr @F_GETFL, align 4
%9 = call i64 (i32, i32, ...) @fcntl(i32 noundef %7, i32 noundef %8)
%10 = trunc i64 %9 to i32
store i32 %10, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = call i32 @ssh_set_error(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %48
15: ; preds = %2
%16 = load i32, ptr %5, align 4
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %29
18: ; preds = %15
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr @O_NONBLOCK, align 4
%21 = and i32 %19, %20
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %18
store i32 0, ptr %3, align 4
br label %48
24: ; preds = %18
%25 = load i32, ptr @O_NONBLOCK, align 4
%26 = xor i32 %25, -1
%27 = load i32, ptr %6, align 4
%28 = and i32 %27, %26
store i32 %28, ptr %6, align 4
br label %39
29: ; preds = %15
%30 = load i32, ptr %6, align 4
%31 = load i32, ptr @O_NONBLOCK, align 4
%32 = and i32 %30, %31
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %35
34: ; preds = %29
store i32 0, ptr %3, align 4
br label %48
35: ; preds = %29
%36 = load i32, ptr @O_NONBLOCK, align 4
%37 = load i32, ptr %6, align 4
%38 = or i32 %37, %36
store i32 %38, ptr %6, align 4
br label %39
39: ; preds = %35, %24
%40 = load i32, ptr %4, align 4
%41 = load i32, ptr @F_SETFL, align 4
%42 = load i32, ptr %6, align 4
%43 = call i64 (i32, i32, ...) @fcntl(i32 noundef %40, i32 noundef %41, i32 noundef %42)
%44 = icmp slt i64 %43, 0
br i1 %44, label %45, label %47
45: ; preds = %39
%46 = call i32 @ssh_set_error(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %48
47: ; preds = %39
store i32 0, ptr %3, align 4
br label %48
48: ; preds = %47, %45, %34, %23, %13
%49 = load i32, ptr %3, align 4
ret i32 %49
}
declare i64 @fcntl(i32 noundef, i32 noundef, ...) #1
declare i32 @ssh_set_error(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9ct8vtpq.c'
source_filename = "/tmp/tmp9ct8vtpq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bar() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @foo()
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @foo(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9ct8vtpq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bar() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @foo()
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @foo(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1y8o544e.c'
source_filename = "/tmp/tmp1y8o544e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c" %d\00", align 1
@.str.1 = private unnamed_addr constant [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
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
store i32 0, ptr %1, align 4
%11 = call i32 @scanf(ptr noundef @.str, ptr noundef %7)
%12 = load i32, ptr %7, align 4
%13 = zext i32 %12 to i64
%14 = call ptr @llvm.stacksave()
store ptr %14, ptr %8, align 8
%15 = alloca i32, i64 %13, align 16
store i64 %13, ptr %9, align 8
store i32 0, ptr %2, align 4
br label %16
16: ; preds = %25, %0
%17 = load i32, ptr %2, align 4
%18 = load i32, ptr %7, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %28
20: ; preds = %16
%21 = load i32, ptr %2, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %15, i64 %22
%24 = call i32 @scanf(ptr noundef @.str, ptr noundef %23)
br label %25
25: ; preds = %20
%26 = load i32, ptr %2, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %2, align 4
br label %16, !llvm.loop !6
28: ; preds = %16
store i32 0, ptr %2, align 4
br label %29
29: ; preds = %85, %28
%30 = load i32, ptr %2, align 4
%31 = load i32, ptr %7, align 4
%32 = sdiv i32 %31, 2
%33 = icmp sle i32 %30, %32
br i1 %33, label %34, label %88
34: ; preds = %29
%35 = load i32, ptr %2, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %15, i64 %36
%38 = load i32, ptr %37, align 4
store i32 %38, ptr %4, align 4
%39 = load i32, ptr %2, align 4
store i32 %39, ptr %3, align 4
br label %40
40: ; preds = %58, %34
%41 = load i32, ptr %3, align 4
%42 = load i32, ptr %7, align 4
%43 = icmp slt i32 %41, %42
br i1 %43, label %44, label %61
44: ; preds = %40
%45 = load i32, ptr %3, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i32, ptr %15, i64 %46
%48 = load i32, ptr %47, align 4
%49 = load i32, ptr %4, align 4
%50 = icmp slt i32 %48, %49
br i1 %50, label %51, label %57
51: ; preds = %44
%52 = load i32, ptr %3, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i32, ptr %15, i64 %53
%55 = load i32, ptr %54, align 4
store i32 %55, ptr %4, align 4
%56 = load i32, ptr %3, align 4
store i32 %56, ptr %6, align 4
br label %57
57: ; preds = %51, %44
br label %58
58: ; preds = %57
%59 = load i32, ptr %3, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %3, align 4
br label %40, !llvm.loop !8
61: ; preds = %40
%62 = load i32, ptr %4, align 4
%63 = load i32, ptr %2, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i32, ptr %15, i64 %64
%66 = load i32, ptr %65, align 4
%67 = icmp ne i32 %62, %66
br i1 %67, label %68, label %84
68: ; preds = %61
%69 = load i32, ptr %2, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i32, ptr %15, i64 %70
%72 = load i32, ptr %71, align 4
store i32 %72, ptr %10, align 4
%73 = load i32, ptr %6, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i32, ptr %15, i64 %74
%76 = load i32, ptr %75, align 4
%77 = load i32, ptr %2, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i32, ptr %15, i64 %78
store i32 %76, ptr %79, align 4
%80 = load i32, ptr %10, align 4
%81 = load i32, ptr %6, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i32, ptr %15, i64 %82
store i32 %80, ptr %83, align 4
br label %84
84: ; preds = %68, %61
br label %85
85: ; preds = %84
%86 = load i32, ptr %2, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %2, align 4
br label %29, !llvm.loop !9
88: ; preds = %29
%89 = load i32, ptr %7, align 4
%90 = sub nsw i32 %89, 1
%91 = sdiv i32 %90, 2
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i32, ptr %15, i64 %92
%94 = load i32, ptr %93, align 4
%95 = call i32 @printf(ptr noundef @.str.1, i32 noundef %94)
store i32 0, ptr %1, align 4
%96 = load ptr, ptr %8, align 8
call void @llvm.stackrestore(ptr %96)
%97 = load i32, ptr %1, align 4
ret i32 %97
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @printf(ptr noundef, i32 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/tmp1y8o544e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c" %d\00", align 1
@.str.1 = private unnamed_addr constant [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
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
store i32 0, ptr %1, align 4
%11 = call i32 @scanf(ptr noundef @.str, ptr noundef %7)
%12 = load i32, ptr %7, align 4
%13 = zext i32 %12 to i64
%14 = call ptr @llvm.stacksave()
store ptr %14, ptr %8, align 8
%15 = alloca i32, i64 %13, align 16
store i64 %13, ptr %9, align 8
store i32 0, ptr %2, align 4
%16 = load i32, ptr %2, align 4
%17 = load i32, ptr %7, 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 %2, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, ptr %15, i64 %21
%23 = call i32 @scanf(ptr noundef @.str, ptr noundef %22)
br label %24
24: ; preds = %19
%25 = load i32, ptr %2, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %2, align 4
%27 = load i32, ptr %2, align 4
%28 = load i32, ptr %7, 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 0, ptr %2, align 4
%31 = load i32, ptr %2, align 4
%32 = load i32, ptr %7, align 4
%33 = sdiv i32 %32, 2
%34 = icmp sle i32 %31, %33
br i1 %34, label %.lr.ph5, label %95
.lr.ph5: ; preds = %30
br label %35
35: ; preds = %.lr.ph5, %88
%36 = load i32, ptr %2, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %15, i64 %37
%39 = load i32, ptr %38, align 4
store i32 %39, ptr %4, align 4
%40 = load i32, ptr %2, align 4
store i32 %40, ptr %3, align 4
%41 = load i32, ptr %3, align 4
%42 = load i32, ptr %7, align 4
%43 = icmp slt i32 %41, %42
br i1 %43, label %.lr.ph2, label %64
.lr.ph2: ; preds = %35
br label %44
44: ; preds = %.lr.ph2, %58
%45 = load i32, ptr %3, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i32, ptr %15, i64 %46
%48 = load i32, ptr %47, align 4
%49 = load i32, ptr %4, align 4
%50 = icmp slt i32 %48, %49
br i1 %50, label %51, label %57
51: ; preds = %44
%52 = load i32, ptr %3, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i32, ptr %15, i64 %53
%55 = load i32, ptr %54, align 4
store i32 %55, ptr %4, align 4
%56 = load i32, ptr %3, align 4
store i32 %56, ptr %6, align 4
br label %57
57: ; preds = %51, %44
br label %58
58: ; preds = %57
%59 = load i32, ptr %3, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %3, align 4
%61 = load i32, ptr %3, align 4
%62 = load i32, ptr %7, align 4
%63 = icmp slt i32 %61, %62
br i1 %63, label %44, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %58
br label %64
64: ; preds = %._crit_edge3, %35
%65 = load i32, ptr %4, align 4
%66 = load i32, ptr %2, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i32, ptr %15, i64 %67
%69 = load i32, ptr %68, align 4
%70 = icmp ne i32 %65, %69
br i1 %70, label %71, label %87
71: ; preds = %64
%72 = load i32, ptr %2, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i32, ptr %15, i64 %73
%75 = load i32, ptr %74, align 4
store i32 %75, ptr %10, align 4
%76 = load i32, ptr %6, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i32, ptr %15, i64 %77
%79 = load i32, ptr %78, align 4
%80 = load i32, ptr %2, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds i32, ptr %15, i64 %81
store i32 %79, ptr %82, align 4
%83 = load i32, ptr %10, align 4
%84 = load i32, ptr %6, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i32, ptr %15, i64 %85
store i32 %83, ptr %86, align 4
br label %87
87: ; preds = %71, %64
br label %88
88: ; preds = %87
%89 = load i32, ptr %2, align 4
%90 = add nsw i32 %89, 1
store i32 %90, ptr %2, align 4
%91 = load i32, ptr %2, align 4
%92 = load i32, ptr %7, align 4
%93 = sdiv i32 %92, 2
%94 = icmp sle i32 %91, %93
br i1 %94, label %35, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %88
br label %95
95: ; preds = %._crit_edge6, %30
%96 = load i32, ptr %7, align 4
%97 = sub nsw i32 %96, 1
%98 = sdiv i32 %97, 2
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds i32, ptr %15, i64 %99
%101 = load i32, ptr %100, align 4
%102 = call i32 @printf(ptr noundef @.str.1, i32 noundef %101)
store i32 0, ptr %1, align 4
%103 = load ptr, ptr %8, align 8
call void @llvm.stackrestore(ptr %103)
%104 = load i32, ptr %1, align 4
ret i32 %104
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @printf(ptr noundef, i32 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/tmpm4_8lcxc.c'
source_filename = "/tmp/tmpm4_8lcxc.c"
target datalayout = "e-m:e-p270: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/tmpm4_8lcxc.c"
target datalayout = "e-m:e-p270: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/tmpm5n_cdsh.c'
source_filename = "/tmp/tmpm5n_cdsh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"libxcb.so.1\00", align 1
@RTLD_NOW = dso_local global i32 0, align 4
@RTLD_LOCAL = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [23 x i8] c"Could not find libxcb\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"xcb_discard_reply64\00", align 1
@.str.3 = private unnamed_addr constant [34 x i8] c"No xcb_discard_reply64 in libxcb\0A\00", align 1
@.str.4 = private unnamed_addr constant [40 x i8] c"libxcb is recent enough. We can use it\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%3 = load i32, ptr @RTLD_NOW, align 4
%4 = load i32, ptr @RTLD_LOCAL, align 4
%5 = or i32 %3, %4
%6 = call ptr @dlopen(ptr noundef @.str, i32 noundef %5)
store ptr %6, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 @printf(ptr noundef @.str.1)
store i32 -1, ptr %1, align 4
br label %21
11: ; preds = %0
%12 = load ptr, ptr %2, align 8
%13 = call ptr @dlsym(ptr noundef %12, ptr noundef @.str.2)
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %17
15: ; preds = %11
%16 = call i32 @printf(ptr noundef @.str.3)
store i32 -2, ptr %1, align 4
br label %21
17: ; preds = %11
%18 = call i32 @printf(ptr noundef @.str.4)
%19 = load ptr, ptr %2, align 8
%20 = call i32 @dlclose(ptr noundef %19)
store i32 0, ptr %1, align 4
br label %21
21: ; preds = %17, %15, %9
%22 = load i32, ptr %1, align 4
ret i32 %22
}
declare ptr @dlopen(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare ptr @dlsym(ptr noundef, ptr noundef) #1
declare i32 @dlclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm5n_cdsh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"libxcb.so.1\00", align 1
@RTLD_NOW = dso_local global i32 0, align 4
@RTLD_LOCAL = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [23 x i8] c"Could not find libxcb\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"xcb_discard_reply64\00", align 1
@.str.3 = private unnamed_addr constant [34 x i8] c"No xcb_discard_reply64 in libxcb\0A\00", align 1
@.str.4 = private unnamed_addr constant [40 x i8] c"libxcb is recent enough. We can use it\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%3 = load i32, ptr @RTLD_NOW, align 4
%4 = load i32, ptr @RTLD_LOCAL, align 4
%5 = or i32 %3, %4
%6 = call ptr @dlopen(ptr noundef @.str, i32 noundef %5)
store ptr %6, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 @printf(ptr noundef @.str.1)
store i32 -1, ptr %1, align 4
br label %21
11: ; preds = %0
%12 = load ptr, ptr %2, align 8
%13 = call ptr @dlsym(ptr noundef %12, ptr noundef @.str.2)
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %17
15: ; preds = %11
%16 = call i32 @printf(ptr noundef @.str.3)
store i32 -2, ptr %1, align 4
br label %21
17: ; preds = %11
%18 = call i32 @printf(ptr noundef @.str.4)
%19 = load ptr, ptr %2, align 8
%20 = call i32 @dlclose(ptr noundef %19)
store i32 0, ptr %1, align 4
br label %21
21: ; preds = %17, %15, %9
%22 = load i32, ptr %1, align 4
ret i32 %22
}
declare ptr @dlopen(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare ptr @dlsym(ptr noundef, ptr noundef) #1
declare i32 @dlclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjogc86a3.c'
source_filename = "/tmp/tmpjogc86a3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32, i32, i32, i32, i64, i64, i64, i64, i64, i64, i64 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [22 x i8] c"Usage: %s <pathname>\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [12 x i8] c"ret -1 stat\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"stat error\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"\0Aerrno:%d\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [14 x i8] c"ret :%d stat\0A\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"File type: \00", align 1
@S_IFMT = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [14 x i8] c"block device\0A\00", align 1
@.str.7 = private unnamed_addr constant [18 x i8] c"character device\0A\00", align 1
@.str.8 = private unnamed_addr constant [11 x i8] c"directory\0A\00", align 1
@.str.9 = private unnamed_addr constant [11 x i8] c"FIFO/pipe\0A\00", align 1
@.str.10 = private unnamed_addr constant [9 x i8] c"symlink\0A\00", align 1
@.str.11 = private unnamed_addr constant [14 x i8] c"regular file\0A\00", align 1
@.str.12 = private unnamed_addr constant [8 x i8] c"socket\0A\00", align 1
@.str.13 = private unnamed_addr constant [10 x i8] c"unknown?\0A\00", align 1
@.str.14 = private unnamed_addr constant [31 x i8] c"I-node number: %ld\0A\00", align 1
@.str.15 = private unnamed_addr constant [39 x i8] c"Mode: %lo (octal)\0A\00", align 1
@.str.16 = private unnamed_addr constant [31 x i8] c"Link count: %ld\0A\00", align 1
@.str.17 = private unnamed_addr constant [45 x i8] c"Ownership: UID=%ld GID=%ld\0A\00", align 1
@.str.18 = private unnamed_addr constant [37 x i8] c"Preferred I/O block size: %ld bytes\0A\00", align 1
@.str.19 = private unnamed_addr constant [38 x i8] c"File size: %lld bytes\0A\00", align 1
@.str.20 = private unnamed_addr constant [32 x i8] c"Blocks allocated: %lld\0A\00", align 1
@.str.21 = private unnamed_addr constant [29 x i8] c"Last status change: %s\00", align 1
@.str.22 = private unnamed_addr constant [29 x i8] c"Last file access: %s\00", align 1
@.str.23 = private unnamed_addr constant [29 x i8] c"Last file modification: %s\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca %struct.stat, align 8
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp ne i32 %8, 2
br i1 %9, label %10, label %18
10: ; preds = %2
%11 = load i32, ptr @stderr, align 4
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 0
%14 = load ptr, ptr %13, align 8
%15 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str, ptr noundef %14)
%16 = load i32, ptr @EXIT_FAILURE, align 4
%17 = call i32 @exit(i32 noundef %16) #3
unreachable
18: ; preds = %2
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 1
%21 = load ptr, ptr %20, align 8
%22 = call i32 @stat(ptr noundef %21, ptr noundef %6)
store i32 %22, ptr %7, align 4
%23 = load i32, ptr %7, align 4
%24 = icmp eq i32 %23, -1
br i1 %24, label %25, label %32
25: ; preds = %18
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%27 = call i32 @perror(ptr noundef @.str.2)
%28 = load i32, ptr @errno, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %28)
%30 = load i32, ptr @EXIT_FAILURE, align 4
%31 = call i32 @exit(i32 noundef %30) #3
unreachable
32: ; preds = %18
%33 = load i32, ptr %7, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %33)
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%36 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 0
%37 = load i32, ptr %36, align 8
%38 = load i32, ptr @S_IFMT, align 4
%39 = and i32 %37, %38
switch i32 %39, label %54 [
i32 134, label %40
i32 133, label %42
i32 132, label %44
i32 131, label %46
i32 130, label %48
i32 129, label %50
i32 128, label %52
]
40: ; preds = %32
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %56
42: ; preds = %32
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %56
44: ; preds = %32
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %56
46: ; preds = %32
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %56
48: ; preds = %32
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
br label %56
50: ; preds = %32
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
br label %56
52: ; preds = %32
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
br label %56
54: ; preds = %32
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
br label %56
56: ; preds = %54, %52, %50, %48, %46, %44, %42, %40
%57 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 10
%58 = load i64, ptr %57, align 8
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i64 noundef %58)
%60 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 0
%61 = load i32, ptr %60, align 8
%62 = sext i32 %61 to i64
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i64 noundef %62)
%64 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 9
%65 = load i64, ptr %64, align 8
%66 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i64 noundef %65)
%67 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 8
%68 = load i64, ptr %67, align 8
%69 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 7
%70 = load i64, ptr %69, align 8
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, i64 noundef %68, i64 noundef %70)
%72 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 6
%73 = load i64, ptr %72, align 8
%74 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, i64 noundef %73)
%75 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 5
%76 = load i64, ptr %75, align 8
%77 = call i32 (ptr, ...) @printf(ptr noundef @.str.19, i64 noundef %76)
%78 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 4
%79 = load i64, ptr %78, align 8
%80 = call i32 (ptr, ...) @printf(ptr noundef @.str.20, i64 noundef %79)
%81 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 3
%82 = call ptr @ctime(ptr noundef %81)
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, ptr noundef %82)
%84 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 2
%85 = call ptr @ctime(ptr noundef %84)
%86 = call i32 (ptr, ...) @printf(ptr noundef @.str.22, ptr noundef %85)
%87 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 1
%88 = call ptr @ctime(ptr noundef %87)
%89 = call i32 (ptr, ...) @printf(ptr noundef @.str.23, ptr noundef %88)
%90 = load i32, ptr @EXIT_SUCCESS, align 4
%91 = call i32 @exit(i32 noundef %90) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @stat(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @perror(ptr noundef) #1
declare ptr @ctime(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpjogc86a3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32, i32, i32, i32, i64, i64, i64, i64, i64, i64, i64 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [22 x i8] c"Usage: %s <pathname>\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [12 x i8] c"ret -1 stat\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"stat error\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"\0Aerrno:%d\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [14 x i8] c"ret :%d stat\0A\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"File type: \00", align 1
@S_IFMT = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [14 x i8] c"block device\0A\00", align 1
@.str.7 = private unnamed_addr constant [18 x i8] c"character device\0A\00", align 1
@.str.8 = private unnamed_addr constant [11 x i8] c"directory\0A\00", align 1
@.str.9 = private unnamed_addr constant [11 x i8] c"FIFO/pipe\0A\00", align 1
@.str.10 = private unnamed_addr constant [9 x i8] c"symlink\0A\00", align 1
@.str.11 = private unnamed_addr constant [14 x i8] c"regular file\0A\00", align 1
@.str.12 = private unnamed_addr constant [8 x i8] c"socket\0A\00", align 1
@.str.13 = private unnamed_addr constant [10 x i8] c"unknown?\0A\00", align 1
@.str.14 = private unnamed_addr constant [31 x i8] c"I-node number: %ld\0A\00", align 1
@.str.15 = private unnamed_addr constant [39 x i8] c"Mode: %lo (octal)\0A\00", align 1
@.str.16 = private unnamed_addr constant [31 x i8] c"Link count: %ld\0A\00", align 1
@.str.17 = private unnamed_addr constant [45 x i8] c"Ownership: UID=%ld GID=%ld\0A\00", align 1
@.str.18 = private unnamed_addr constant [37 x i8] c"Preferred I/O block size: %ld bytes\0A\00", align 1
@.str.19 = private unnamed_addr constant [38 x i8] c"File size: %lld bytes\0A\00", align 1
@.str.20 = private unnamed_addr constant [32 x i8] c"Blocks allocated: %lld\0A\00", align 1
@.str.21 = private unnamed_addr constant [29 x i8] c"Last status change: %s\00", align 1
@.str.22 = private unnamed_addr constant [29 x i8] c"Last file access: %s\00", align 1
@.str.23 = private unnamed_addr constant [29 x i8] c"Last file modification: %s\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca %struct.stat, align 8
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp ne i32 %8, 2
br i1 %9, label %10, label %18
10: ; preds = %2
%11 = load i32, ptr @stderr, align 4
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 0
%14 = load ptr, ptr %13, align 8
%15 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str, ptr noundef %14)
%16 = load i32, ptr @EXIT_FAILURE, align 4
%17 = call i32 @exit(i32 noundef %16) #3
unreachable
18: ; preds = %2
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 1
%21 = load ptr, ptr %20, align 8
%22 = call i32 @stat(ptr noundef %21, ptr noundef %6)
store i32 %22, ptr %7, align 4
%23 = load i32, ptr %7, align 4
%24 = icmp eq i32 %23, -1
br i1 %24, label %25, label %32
25: ; preds = %18
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%27 = call i32 @perror(ptr noundef @.str.2)
%28 = load i32, ptr @errno, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %28)
%30 = load i32, ptr @EXIT_FAILURE, align 4
%31 = call i32 @exit(i32 noundef %30) #3
unreachable
32: ; preds = %18
%33 = load i32, ptr %7, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %33)
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%36 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 0
%37 = load i32, ptr %36, align 8
%38 = load i32, ptr @S_IFMT, align 4
%39 = and i32 %37, %38
switch i32 %39, label %54 [
i32 134, label %40
i32 133, label %42
i32 132, label %44
i32 131, label %46
i32 130, label %48
i32 129, label %50
i32 128, label %52
]
40: ; preds = %32
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %56
42: ; preds = %32
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %56
44: ; preds = %32
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %56
46: ; preds = %32
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %56
48: ; preds = %32
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
br label %56
50: ; preds = %32
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
br label %56
52: ; preds = %32
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
br label %56
54: ; preds = %32
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
br label %56
56: ; preds = %54, %52, %50, %48, %46, %44, %42, %40
%57 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 10
%58 = load i64, ptr %57, align 8
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i64 noundef %58)
%60 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 0
%61 = load i32, ptr %60, align 8
%62 = sext i32 %61 to i64
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i64 noundef %62)
%64 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 9
%65 = load i64, ptr %64, align 8
%66 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i64 noundef %65)
%67 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 8
%68 = load i64, ptr %67, align 8
%69 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 7
%70 = load i64, ptr %69, align 8
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, i64 noundef %68, i64 noundef %70)
%72 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 6
%73 = load i64, ptr %72, align 8
%74 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, i64 noundef %73)
%75 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 5
%76 = load i64, ptr %75, align 8
%77 = call i32 (ptr, ...) @printf(ptr noundef @.str.19, i64 noundef %76)
%78 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 4
%79 = load i64, ptr %78, align 8
%80 = call i32 (ptr, ...) @printf(ptr noundef @.str.20, i64 noundef %79)
%81 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 3
%82 = call ptr @ctime(ptr noundef %81)
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, ptr noundef %82)
%84 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 2
%85 = call ptr @ctime(ptr noundef %84)
%86 = call i32 (ptr, ...) @printf(ptr noundef @.str.22, ptr noundef %85)
%87 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 1
%88 = call ptr @ctime(ptr noundef %87)
%89 = call i32 (ptr, ...) @printf(ptr noundef @.str.23, ptr noundef %88)
%90 = load i32, ptr @EXIT_SUCCESS, align 4
%91 = call i32 @exit(i32 noundef %90) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @stat(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @perror(ptr noundef) #1
declare ptr @ctime(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpybqs3wn_.c'
source_filename = "/tmp/tmpybqs3wn_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Please type name %i: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"The name at the line %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [5 x [20 x i8]], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
br label %5
5: ; preds = %17, %0
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 5
br i1 %7, label %8, label %20
8: ; preds = %5
%9 = load i32, ptr %3, align 4
%10 = add nsw i32 %9, 1
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %10)
%12 = load i32, ptr %3, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [5 x [20 x i8]], ptr %2, i64 0, i64 %13
%15 = getelementptr inbounds [20 x i8], ptr %14, i64 0, i64 0
%16 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %15)
br label %17
17: ; preds = %8
%18 = load i32, ptr %3, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %3, align 4
br label %5, !llvm.loop !6
20: ; preds = %5
store i32 0, ptr %4, align 4
br label %21
21: ; preds = %30, %20
%22 = load i32, ptr %4, align 4
%23 = icmp slt i32 %22, 5
br i1 %23, label %24, label %33
24: ; preds = %21
%25 = load i32, ptr %4, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [5 x [20 x i8]], ptr %2, i64 0, i64 %26
%28 = getelementptr inbounds [20 x i8], ptr %27, i64 0, i64 0
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %28)
br label %30
30: ; preds = %24
%31 = load i32, ptr %4, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %4, align 4
br label %21, !llvm.loop !8
33: ; preds = %21
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpybqs3wn_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Please type name %i: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"The name at the line %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [5 x [20 x i8]], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp slt i32 %5, 5
br i1 %6, label %.lr.ph, label %21
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %16
%8 = load i32, ptr %3, align 4
%9 = add nsw i32 %8, 1
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %9)
%11 = load i32, ptr %3, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [5 x [20 x i8]], ptr %2, i64 0, i64 %12
%14 = getelementptr inbounds [20 x i8], ptr %13, i64 0, i64 0
%15 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %14)
br label %16
16: ; preds = %7
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %3, align 4
%19 = load i32, ptr %3, align 4
%20 = icmp slt i32 %19, 5
br i1 %20, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %21
21: ; preds = %._crit_edge, %0
store i32 0, ptr %4, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp slt i32 %22, 5
br i1 %23, label %.lr.ph2, label %35
.lr.ph2: ; preds = %21
br label %24
24: ; preds = %.lr.ph2, %30
%25 = load i32, ptr %4, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [5 x [20 x i8]], ptr %2, i64 0, i64 %26
%28 = getelementptr inbounds [20 x i8], ptr %27, i64 0, i64 0
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %28)
br label %30
30: ; preds = %24
%31 = load i32, ptr %4, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %4, align 4
%33 = load i32, ptr %4, align 4
%34 = icmp slt i32 %33, 5
br i1 %34, label %24, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %30
br label %35
35: ; preds = %._crit_edge3, %21
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp2vfqnv5o.c'
source_filename = "/tmp/tmp2vfqnv5o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Enter three numbers like '#, #, #': \00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"%d,%d,%d\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"Sorted: %d,%d,%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %1, ptr noundef %2, ptr noundef %3)
%6 = call i32 @sort_three(ptr noundef %1, ptr noundef %2, ptr noundef %3)
%7 = load i32, ptr %1, align 4
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %7, i32 noundef %8, i32 noundef %9)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @sort_three(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/tmp2vfqnv5o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Enter three numbers like '#, #, #': \00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"%d,%d,%d\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"Sorted: %d,%d,%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %1, ptr noundef %2, ptr noundef %3)
%6 = call i32 @sort_three(ptr noundef %1, ptr noundef %2, ptr noundef %3)
%7 = load i32, ptr %1, align 4
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %7, i32 noundef %8, i32 noundef %9)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @sort_three(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/tmpkbn1o2wc.c'
source_filename = "/tmp/tmpkbn1o2wc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @startRawMode()
br label %3
3: ; preds = %0, %3
%4 = call i32 (...) @editorRefreshScreen()
%5 = call i32 (...) @editorProcessKeypress()
br label %3
}
declare i32 @startRawMode(...) #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/tmpkbn1o2wc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @startRawMode()
br label %3
3: ; preds = %3, %0
%4 = call i32 (...) @editorRefreshScreen()
%5 = call i32 (...) @editorProcessKeypress()
br label %3
}
declare i32 @startRawMode(...) #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/tmp03yy83ek.c'
source_filename = "/tmp/tmp03yy83ek.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%d, %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @foo(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
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr %7, align 4
%11 = load i32, ptr %4, align 4
%12 = add nsw i32 %11, 2
store i32 %12, ptr %8, align 4
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %8, align 4
%15 = add nsw i32 %13, %14
store i32 %15, ptr %6, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp sgt i32 %16, 2
br i1 %17, label %18, label %21
18: ; preds = %2
%19 = load i32, ptr %4, align 4
%20 = add nsw i32 %19, 3
store i32 %20, ptr %8, align 4
br label %21
21: ; preds = %18, %2
%22 = load i32, ptr %6, align 4
%23 = load i32, ptr %7, align 4
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %23, %24
%26 = call i32 @printf(ptr noundef @.str, i32 noundef %22, i32 noundef %25)
%27 = load i32, ptr %3, align 4
ret i32 %27
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp03yy83ek.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%d, %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @foo(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
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr %7, align 4
%11 = load i32, ptr %4, align 4
%12 = add nsw i32 %11, 2
store i32 %12, ptr %8, align 4
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %8, align 4
%15 = add nsw i32 %13, %14
store i32 %15, ptr %6, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp sgt i32 %16, 2
br i1 %17, label %18, label %21
18: ; preds = %2
%19 = load i32, ptr %4, align 4
%20 = add nsw i32 %19, 3
store i32 %20, ptr %8, align 4
br label %21
21: ; preds = %18, %2
%22 = load i32, ptr %6, align 4
%23 = load i32, ptr %7, align 4
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %23, %24
%26 = call i32 @printf(ptr noundef @.str, i32 noundef %22, i32 noundef %25)
%27 = load i32, ptr %3, align 4
ret i32 %27
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0qwf8rtm.c'
source_filename = "/tmp/tmp0qwf8rtm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [71 x i8] c"\09Failed Phase 1: Unknown fcntl command, returning failure with EINVAL\0A\00", align 1
@EINVAL = dso_local global i64 0, align 8
@errno = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fcntl_test(i32 noundef %0, i32 noundef %1, ...) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
store ptr null, ptr %9, align 8
%10 = load i32, ptr %4, align 4
switch i32 %10, label %11 [
]
11: ; preds = %2
%12 = call i32 @printf(ptr noundef @.str)
%13 = load i64, ptr @EINVAL, align 8
store i64 %13, ptr @errno, align 8
ret i32 -1
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0qwf8rtm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [71 x i8] c"\09Failed Phase 1: Unknown fcntl command, returning failure with EINVAL\0A\00", align 1
@EINVAL = dso_local global i64 0, align 8
@errno = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fcntl_test(i32 noundef %0, i32 noundef %1, ...) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
store ptr null, ptr %9, align 8
%10 = load i32, ptr %4, align 4
switch i32 %10, label %11 [
]
11: ; preds = %2
%12 = call i32 @printf(ptr noundef @.str)
%13 = load i64, ptr @EINVAL, align 8
store i64 %13, ptr @errno, align 8
ret i32 -1
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpam_x_18e.c'
source_filename = "/tmp/tmpam_x_18e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lcd_display_number_w_decimal(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [12 x i8], align 1
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %24, %2
%8 = load i32, ptr %3, align 4
%9 = srem i32 %8, 10
%10 = add nsw i32 48, %9
%11 = trunc i32 %10 to i8
%12 = load i32, ptr %6, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %6, align 4
%14 = sext i32 %12 to i64
%15 = getelementptr inbounds [12 x i8], ptr %5, i64 0, i64 %14
store i8 %11, ptr %15, align 1
br label %16
16: ; preds = %7
%17 = load i32, ptr %3, align 4
%18 = sdiv i32 %17, 10
store i32 %18, ptr %3, align 4
%19 = icmp sgt i32 %18, 0
br i1 %19, label %20, label %24
20: ; preds = %16
%21 = load i32, ptr %6, align 4
%22 = sext i32 %21 to i64
%23 = icmp ult i64 %22, 12
br label %24
24: ; preds = %20, %16
%25 = phi i1 [ false, %16 ], [ %23, %20 ]
br i1 %25, label %7, label %26, !llvm.loop !6
26: ; preds = %24
%27 = load i32, ptr %6, align 4
%28 = add nsw i32 %27, -1
store i32 %28, ptr %6, align 4
br label %29
29: ; preds = %46, %26
%30 = load i32, ptr %6, align 4
%31 = icmp sge i32 %30, 0
br i1 %31, label %32, label %49
32: ; preds = %29
%33 = load i32, ptr %6, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [12 x i8], ptr %5, i64 0, i64 %34
%36 = load i8, ptr %35, align 1
%37 = call i32 @lcd_display_char(i8 noundef signext %36)
%38 = load i32, ptr %4, align 4
%39 = icmp sgt i32 %38, 0
br i1 %39, label %40, label %46
40: ; preds = %32
%41 = load i32, ptr %6, align 4
%42 = load i32, ptr %4, align 4
%43 = icmp eq i32 %41, %42
br i1 %43, label %44, label %46
44: ; preds = %40
%45 = call i32 @lcd_display_char(i8 noundef signext 46)
br label %46
46: ; preds = %44, %40, %32
%47 = load i32, ptr %6, align 4
%48 = add nsw i32 %47, -1
store i32 %48, ptr %6, align 4
br label %29, !llvm.loop !8
49: ; preds = %29
ret void
}
declare i32 @lcd_display_char(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/tmpam_x_18e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lcd_display_number_w_decimal(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [12 x i8], align 1
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %24, %2
%8 = load i32, ptr %3, align 4
%9 = srem i32 %8, 10
%10 = add nsw i32 48, %9
%11 = trunc i32 %10 to i8
%12 = load i32, ptr %6, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %6, align 4
%14 = sext i32 %12 to i64
%15 = getelementptr inbounds [12 x i8], ptr %5, i64 0, i64 %14
store i8 %11, ptr %15, align 1
br label %16
16: ; preds = %7
%17 = load i32, ptr %3, align 4
%18 = sdiv i32 %17, 10
store i32 %18, ptr %3, align 4
%19 = icmp sgt i32 %18, 0
br i1 %19, label %20, label %24
20: ; preds = %16
%21 = load i32, ptr %6, align 4
%22 = sext i32 %21 to i64
%23 = icmp ult i64 %22, 12
br label %24
24: ; preds = %20, %16
%25 = phi i1 [ false, %16 ], [ %23, %20 ]
br i1 %25, label %7, label %26, !llvm.loop !6
26: ; preds = %24
%27 = load i32, ptr %6, align 4
%28 = add nsw i32 %27, -1
store i32 %28, ptr %6, align 4
%29 = load i32, ptr %6, align 4
%30 = icmp sge i32 %29, 0
br i1 %30, label %.lr.ph, label %50
.lr.ph: ; preds = %26
br label %31
31: ; preds = %.lr.ph, %45
%32 = load i32, ptr %6, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [12 x i8], ptr %5, i64 0, i64 %33
%35 = load i8, ptr %34, align 1
%36 = call i32 @lcd_display_char(i8 noundef signext %35)
%37 = load i32, ptr %4, align 4
%38 = icmp sgt i32 %37, 0
br i1 %38, label %39, label %45
39: ; preds = %31
%40 = load i32, ptr %6, align 4
%41 = load i32, ptr %4, align 4
%42 = icmp eq i32 %40, %41
br i1 %42, label %43, label %45
43: ; preds = %39
%44 = call i32 @lcd_display_char(i8 noundef signext 46)
br label %45
45: ; preds = %43, %39, %31
%46 = load i32, ptr %6, align 4
%47 = add nsw i32 %46, -1
store i32 %47, ptr %6, align 4
%48 = load i32, ptr %6, align 4
%49 = icmp sge i32 %48, 0
br i1 %49, label %31, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %45
br label %50
50: ; preds = %._crit_edge, %26
ret void
}
declare i32 @lcd_display_char(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/tmpc6twg83n.c'
source_filename = "/tmp/tmpc6twg83n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp sgt i32 %7, 1
br i1 %8, label %9, label %14
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 1
%12 = load ptr, ptr %11, align 8
%13 = call i32 @atoi(ptr noundef %12)
store i32 %13, ptr %6, align 4
br label %14
14: ; preds = %9, %2
%15 = load i32, ptr %6, align 4
%16 = call i32 @sleep(i32 noundef %15)
ret i32 0
}
declare i32 @atoi(ptr noundef) #1
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc6twg83n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp sgt i32 %7, 1
br i1 %8, label %9, label %14
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 1
%12 = load ptr, ptr %11, align 8
%13 = call i32 @atoi(ptr noundef %12)
store i32 %13, ptr %6, align 4
br label %14
14: ; preds = %9, %2
%15 = load i32, ptr %6, align 4
%16 = call i32 @sleep(i32 noundef %15)
ret i32 0
}
declare i32 @atoi(ptr noundef) #1
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpu3703w6w.c'
source_filename = "/tmp/tmpu3703w6w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @jpeg_quality_scaling(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp sle i32 %3, 0
br i1 %4, label %5, label %6
5: ; preds = %1
store i32 1, ptr %2, align 4
br label %6
6: ; preds = %5, %1
%7 = load i32, ptr %2, align 4
%8 = icmp sgt i32 %7, 100
br i1 %8, label %9, label %10
9: ; preds = %6
store i32 100, ptr %2, align 4
br label %10
10: ; preds = %9, %6
%11 = load i32, ptr %2, align 4
%12 = icmp slt i32 %11, 50
br i1 %12, label %13, label %16
13: ; preds = %10
%14 = load i32, ptr %2, align 4
%15 = sdiv i32 5000, %14
store i32 %15, ptr %2, align 4
br label %20
16: ; preds = %10
%17 = load i32, ptr %2, align 4
%18 = mul nsw i32 %17, 2
%19 = sub nsw i32 200, %18
store i32 %19, ptr %2, align 4
br label %20
20: ; preds = %16, %13
%21 = load i32, ptr %2, align 4
ret i32 %21
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu3703w6w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @jpeg_quality_scaling(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp sle i32 %3, 0
br i1 %4, label %5, label %6
5: ; preds = %1
store i32 1, ptr %2, align 4
br label %6
6: ; preds = %5, %1
%7 = load i32, ptr %2, align 4
%8 = icmp sgt i32 %7, 100
br i1 %8, label %9, label %10
9: ; preds = %6
store i32 100, ptr %2, align 4
br label %10
10: ; preds = %9, %6
%11 = load i32, ptr %2, align 4
%12 = icmp slt i32 %11, 50
br i1 %12, label %13, label %16
13: ; preds = %10
%14 = load i32, ptr %2, align 4
%15 = sdiv i32 5000, %14
store i32 %15, ptr %2, align 4
br label %20
16: ; preds = %10
%17 = load i32, ptr %2, align 4
%18 = mul nsw i32 %17, 2
%19 = sub nsw i32 200, %18
store i32 %19, ptr %2, align 4
br label %20
20: ; preds = %16, %13
%21 = load i32, ptr %2, align 4
ret i32 %21
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbmnzomnd.c'
source_filename = "/tmp/tmpbmnzomnd.c"
target datalayout = "e-m:e-p270: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/tmpbmnzomnd.c"
target datalayout = "e-m:e-p270: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/tmpb8zvnuag.c'
source_filename = "/tmp/tmpb8zvnuag.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@X509_EXTENSION_it = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @X509_EXTENSION_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 @ASN1_item_free(ptr noundef %3, ptr noundef @X509_EXTENSION_it)
ret void
}
declare i32 @ASN1_item_free(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/tmpb8zvnuag.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@X509_EXTENSION_it = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @X509_EXTENSION_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 @ASN1_item_free(ptr noundef %3, ptr noundef @X509_EXTENSION_it)
ret void
}
declare i32 @ASN1_item_free(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/tmpnam88zhj.c'
source_filename = "/tmp/tmpnam88zhj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @write8(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 @zwrite(i32 noundef %5, i32 noundef %6)
ret void
}
declare i32 @zwrite(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/tmpnam88zhj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @write8(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 @zwrite(i32 noundef %5, i32 noundef %6)
ret void
}
declare i32 @zwrite(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/tmpmb1y90ex.c'
source_filename = "/tmp/tmpmb1y90ex.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printtable(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %5
5: ; preds = %31, %1
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 8
br i1 %7, label %8, label %34
8: ; preds = %5
store i32 7, ptr %4, align 4
br label %9
9: ; preds = %26, %8
%10 = load i32, ptr %4, align 4
%11 = icmp sge i32 %10, 0
br i1 %11, label %12, label %29
12: ; preds = %9
%13 = load ptr, ptr %2, align 8
%14 = load i32, ptr %3, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i32, ptr %13, i64 %15
%17 = load i32, ptr %16, align 4
%18 = load i32, ptr %4, align 4
%19 = shl i32 1, %18
%20 = and i32 %17, %19
%21 = icmp ne i32 %20, 0
%22 = xor i1 %21, true
%23 = xor i1 %22, true
%24 = zext i1 %23 to i32
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %24)
br label %26
26: ; preds = %12
%27 = load i32, ptr %4, align 4
%28 = add nsw i32 %27, -1
store i32 %28, ptr %4, align 4
br label %9, !llvm.loop !6
29: ; preds = %9
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %31
31: ; preds = %29
%32 = load i32, ptr %3, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %3, align 4
br label %5, !llvm.loop !8
34: ; preds = %5
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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmb1y90ex.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printtable(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp slt i32 %5, 8
br i1 %6, label %.lr.ph2, label %36
.lr.ph2: ; preds = %1
br label %7
7: ; preds = %.lr.ph2, %31
store i32 7, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp sge i32 %8, 0
br i1 %9, label %.lr.ph, label %29
.lr.ph: ; preds = %7
br label %10
10: ; preds = %.lr.ph, %24
%11 = load ptr, ptr %2, align 8
%12 = load i32, ptr %3, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i32, ptr %11, i64 %13
%15 = load i32, ptr %14, align 4
%16 = load i32, ptr %4, align 4
%17 = shl i32 1, %16
%18 = and i32 %15, %17
%19 = icmp ne i32 %18, 0
%20 = xor i1 %19, true
%21 = xor i1 %20, true
%22 = zext i1 %21 to i32
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %22)
br label %24
24: ; preds = %10
%25 = load i32, ptr %4, align 4
%26 = add nsw i32 %25, -1
store i32 %26, ptr %4, align 4
%27 = load i32, ptr %4, align 4
%28 = icmp sge i32 %27, 0
br i1 %28, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %29
29: ; preds = %._crit_edge, %7
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %31
31: ; preds = %29
%32 = load i32, ptr %3, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %3, align 4
%34 = load i32, ptr %3, align 4
%35 = icmp slt i32 %34, 8
br i1 %35, label %7, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %31
br label %36
36: ; preds = %._crit_edge3, %1
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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpxxi_ahw5.c'
source_filename = "/tmp/tmpxxi_ahw5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"pthread cancel error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Pthread_cancel(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 i64 @pthread_cancel(i32 noundef %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %14
6: ; preds = %1
br label %7
7: ; preds = %12, %6
%8 = load i32, ptr @errno, align 4
%9 = call i32 @strerror(i32 noundef %8)
%10 = call i32 @puts(ptr noundef @.str)
%11 = call i32 @err_quit(ptr noundef @.str.1)
br label %12
12: ; preds = %7
br i1 true, label %7, label %13
13: ; preds = %12
br label %14
14: ; preds = %13, %1
ret void
}
declare i64 @pthread_cancel(i32 noundef) #1
declare i32 @strerror(i32 noundef) #1
declare i32 @puts(ptr noundef) #1
declare i32 @err_quit(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxxi_ahw5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"pthread cancel error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Pthread_cancel(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 i64 @pthread_cancel(i32 noundef %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %14
6: ; preds = %1
br label %7
7: ; preds = %12, %6
%8 = load i32, ptr @errno, align 4
%9 = call i32 @strerror(i32 noundef %8)
%10 = call i32 @puts(ptr noundef @.str)
%11 = call i32 @err_quit(ptr noundef @.str.1)
br label %12
12: ; preds = %7
br i1 true, label %7, label %13
13: ; preds = %12
br label %14
14: ; preds = %13, %1
ret void
}
declare i64 @pthread_cancel(i32 noundef) #1
declare i32 @strerror(i32 noundef) #1
declare i32 @puts(ptr noundef) #1
declare i32 @err_quit(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9rk7twd6.c'
source_filename = "/tmp/tmp9rk7twd6.c"
target datalayout = "e-m:e-p270: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/tmp9rk7twd6.c"
target datalayout = "e-m:e-p270: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/tmp7xoq21ef.c'
source_filename = "/tmp/tmp7xoq21ef.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%lf\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [7 x i8] c"%.8lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca double, align 8
%4 = alloca double, align 8
store i32 0, ptr %1, align 4
br label %5
5: ; preds = %31, %0
%6 = call i64 @scanf(ptr noundef @.str, ptr noundef %3)
%7 = load i64, ptr @EOF, align 8
%8 = icmp ne i64 %6, %7
br i1 %8, label %9, label %34
9: ; preds = %5
%10 = load double, ptr %3, align 8
store double %10, ptr %4, align 8
store i32 1, ptr %2, align 4
br label %11
11: ; preds = %28, %9
%12 = load i32, ptr %2, align 4
%13 = icmp slt i32 %12, 10
br i1 %13, label %14, label %31
14: ; preds = %11
%15 = load i32, ptr %2, align 4
%16 = srem i32 %15, 2
%17 = icmp eq i32 %16, 1
br i1 %17, label %18, label %21
18: ; preds = %14
%19 = load double, ptr %3, align 8
%20 = fmul double %19, 2.000000e+00
store double %20, ptr %3, align 8
br label %24
21: ; preds = %14
%22 = load double, ptr %3, align 8
%23 = fdiv double %22, 3.000000e+00
store double %23, ptr %3, align 8
br label %24
24: ; preds = %21, %18
%25 = load double, ptr %3, align 8
%26 = load double, ptr %4, align 8
%27 = fadd double %26, %25
store double %27, ptr %4, align 8
br label %28
28: ; preds = %24
%29 = load i32, ptr %2, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %2, align 4
br label %11, !llvm.loop !6
31: ; preds = %11
%32 = load double, ptr %4, align 8
%33 = call i32 @printf(ptr noundef @.str.1, double noundef %32)
br label %5, !llvm.loop !8
34: ; preds = %5
ret i32 0
}
declare i64 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7xoq21ef.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%lf\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [7 x i8] c"%.8lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca double, align 8
%4 = alloca double, align 8
store i32 0, ptr %1, align 4
%5 = call i64 @scanf(ptr noundef @.str, ptr noundef %3)
%6 = load i64, ptr @EOF, align 8
%7 = icmp ne i64 %5, %6
br i1 %7, label %.lr.ph2, label %37
.lr.ph2: ; preds = %0
br label %8
8: ; preds = %.lr.ph2, %31
%9 = load double, ptr %3, align 8
store double %9, ptr %4, align 8
store i32 1, ptr %2, align 4
%10 = load i32, ptr %2, align 4
%11 = icmp slt i32 %10, 10
br i1 %11, label %.lr.ph, label %31
.lr.ph: ; preds = %8
br label %12
12: ; preds = %.lr.ph, %26
%13 = load i32, ptr %2, align 4
%14 = srem i32 %13, 2
%15 = icmp eq i32 %14, 1
br i1 %15, label %16, label %19
16: ; preds = %12
%17 = load double, ptr %3, align 8
%18 = fmul double %17, 2.000000e+00
store double %18, ptr %3, align 8
br label %22
19: ; preds = %12
%20 = load double, ptr %3, align 8
%21 = fdiv double %20, 3.000000e+00
store double %21, ptr %3, align 8
br label %22
22: ; preds = %19, %16
%23 = load double, ptr %3, align 8
%24 = load double, ptr %4, align 8
%25 = fadd double %24, %23
store double %25, ptr %4, align 8
br label %26
26: ; preds = %22
%27 = load i32, ptr %2, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %2, align 4
%29 = load i32, ptr %2, align 4
%30 = icmp slt i32 %29, 10
br i1 %30, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %31
31: ; preds = %._crit_edge, %8
%32 = load double, ptr %4, align 8
%33 = call i32 @printf(ptr noundef @.str.1, double noundef %32)
%34 = call i64 @scanf(ptr noundef @.str, ptr noundef %3)
%35 = load i64, ptr @EOF, align 8
%36 = icmp ne i64 %34, %35
br i1 %36, label %8, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %31
br label %37
37: ; preds = %._crit_edge3, %0
ret i32 0
}
declare i64 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpjinyr0ii.c'
source_filename = "/tmp/tmpjinyr0ii.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%3 = call i64 @malloc(i32 noundef 40)
%4 = inttoptr i64 %3 to ptr
store ptr %4, ptr %2, align 8
%5 = call i32 (...) @pause()
%6 = load ptr, ptr %2, align 8
%7 = call i32 @free(ptr noundef %6)
store ptr null, ptr %2, align 8
%8 = load i32, ptr @EXIT_SUCCESS, align 4
%9 = call i32 @exit(i32 noundef %8) #3
unreachable
}
declare i64 @malloc(i32 noundef) #1
declare i32 @pause(...) #1
declare i32 @free(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjinyr0ii.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%3 = call i64 @malloc(i32 noundef 40)
%4 = inttoptr i64 %3 to ptr
store ptr %4, ptr %2, align 8
%5 = call i32 (...) @pause()
%6 = load ptr, ptr %2, align 8
%7 = call i32 @free(ptr noundef %6)
store ptr null, ptr %2, align 8
%8 = load i32, ptr @EXIT_SUCCESS, align 4
%9 = call i32 @exit(i32 noundef %8) #3
unreachable
}
declare i64 @malloc(i32 noundef) #1
declare i32 @pause(...) #1
declare i32 @free(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpj0j9t0qs.c'
source_filename = "/tmp/tmpj0j9t0qs.c"
target datalayout = "e-m:e-p270: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/tmpj0j9t0qs.c"
target datalayout = "e-m:e-p270: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/tmpntpqnkg0.c'
source_filename = "/tmp/tmpntpqnkg0.c"
target datalayout = "e-m:e-p270: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/tmpntpqnkg0.c"
target datalayout = "e-m:e-p270: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/tmpoqqerkzu.c'
source_filename = "/tmp/tmpoqqerkzu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_echo_parseString(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %9
9: ; preds = %61, %3
%10 = load i32, ptr %8, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %64
13: ; preds = %9
%14 = load i32, ptr %7, align 4
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %40
16: ; preds = %13
%17 = load ptr, ptr %4, align 8
%18 = load i32, ptr %8, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
switch i32 %22, label %31 [
i32 92, label %23
i32 110, label %25
i32 116, label %27
i32 118, label %29
]
23: ; preds = %16
%24 = call i32 @addch(i8 noundef signext 92)
br label %39
25: ; preds = %16
%26 = call i32 @addch(i8 noundef signext 10)
br label %39
27: ; preds = %16
%28 = call i32 @addch(i8 noundef signext 9)
br label %39
29: ; preds = %16
%30 = call i32 @addch(i8 noundef signext 11)
br label %39
31: ; preds = %16
%32 = call i32 @addch(i8 noundef signext 92)
%33 = load ptr, ptr %4, align 8
%34 = load i32, ptr %8, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
%37 = load i8, ptr %36, align 1
%38 = call i32 @addch(i8 noundef signext %37)
br label %39
39: ; preds = %31, %29, %27, %25, %23
store i32 0, ptr %7, align 4
br label %60
40: ; preds = %13
%41 = load ptr, ptr %4, align 8
%42 = load i32, ptr %8, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %41, i64 %43
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = icmp eq i32 %46, 92
br i1 %47, label %48, label %52
48: ; preds = %40
%49 = load i32, ptr %5, align 4
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %52
51: ; preds = %48
store i32 1, ptr %7, align 4
br label %59
52: ; preds = %48, %40
%53 = load ptr, ptr %4, align 8
%54 = load i32, ptr %8, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, ptr %53, i64 %55
%57 = load i8, ptr %56, align 1
%58 = call i32 @addch(i8 noundef signext %57)
br label %59
59: ; preds = %52, %51
br label %60
60: ; preds = %59, %39
br label %61
61: ; preds = %60
%62 = load i32, ptr %8, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %8, align 4
br label %9, !llvm.loop !6
64: ; preds = %9
ret void
}
declare i32 @addch(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/tmpoqqerkzu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_echo_parseString(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
%9 = load i32, ptr %8, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %66
.lr.ph: ; preds = %3
br label %12
12: ; preds = %.lr.ph, %60
%13 = load i32, ptr %7, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %39
15: ; preds = %12
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %8, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
switch i32 %21, label %30 [
i32 92, label %22
i32 110, label %24
i32 116, label %26
i32 118, label %28
]
22: ; preds = %15
%23 = call i32 @addch(i8 noundef signext 92)
br label %38
24: ; preds = %15
%25 = call i32 @addch(i8 noundef signext 10)
br label %38
26: ; preds = %15
%27 = call i32 @addch(i8 noundef signext 9)
br label %38
28: ; preds = %15
%29 = call i32 @addch(i8 noundef signext 11)
br label %38
30: ; preds = %15
%31 = call i32 @addch(i8 noundef signext 92)
%32 = load ptr, ptr %4, align 8
%33 = load i32, ptr %8, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
%36 = load i8, ptr %35, align 1
%37 = call i32 @addch(i8 noundef signext %36)
br label %38
38: ; preds = %30, %28, %26, %24, %22
store i32 0, ptr %7, align 4
br label %59
39: ; preds = %12
%40 = load ptr, ptr %4, align 8
%41 = load i32, ptr %8, 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 eq i32 %45, 92
br i1 %46, label %47, label %51
47: ; preds = %39
%48 = load i32, ptr %5, align 4
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %51
50: ; preds = %47
store i32 1, ptr %7, align 4
br label %58
51: ; preds = %47, %39
%52 = load ptr, ptr %4, align 8
%53 = load i32, ptr %8, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %52, i64 %54
%56 = load i8, ptr %55, align 1
%57 = call i32 @addch(i8 noundef signext %56)
br label %58
58: ; preds = %51, %50
br label %59
59: ; preds = %58, %38
br label %60
60: ; preds = %59
%61 = load i32, ptr %8, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %8, align 4
%63 = load i32, ptr %8, align 4
%64 = load i32, ptr %6, align 4
%65 = icmp slt i32 %63, %64
br i1 %65, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %60
br label %66
66: ; preds = %._crit_edge, %3
ret void
}
declare i32 @addch(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/tmptt0i9cde.c'
source_filename = "/tmp/tmptt0i9cde.c"
target datalayout = "e-m:e-p270: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/tmptt0i9cde.c"
target datalayout = "e-m:e-p270: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/tmp8ivcwgms.c'
source_filename = "/tmp/tmp8ivcwgms.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
@O_RDONLY = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_WRONLY = dso_local global i32 0, align 4
@BUFSIZ = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [8 x i8] c"copylas\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%14 = load i32, ptr %4, align 4
%15 = icmp slt i32 %14, 3
br i1 %15, label %16, label %20
16: ; preds = %2
%17 = call i32 (...) @usage()
%18 = load i32, ptr @EXIT_FAILURE, align 4
%19 = call i32 @exit(i32 noundef %18) #4
unreachable
20: ; preds = %2
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 2
%23 = load ptr, ptr %22, align 8
store ptr %23, ptr %6, align 8
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 1
%26 = load ptr, ptr %25, align 8
store ptr %26, ptr %7, align 8
%27 = load ptr, ptr %7, align 8
%28 = load i32, ptr @O_RDONLY, align 4
%29 = call i32 @open(ptr noundef %27, i32 noundef %28)
store i32 %29, ptr %8, align 4
%30 = load i32, ptr %8, align 4
%31 = icmp ne i32 %30, 0
br i1 %31, label %36, label %32
32: ; preds = %20
%33 = load ptr, ptr %7, align 8
%34 = call i32 @perror(ptr noundef %33)
%35 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %35, ptr %3, align 4
br label %92
36: ; preds = %20
%37 = load ptr, ptr %6, align 8
%38 = load i32, ptr @O_CREAT, align 4
%39 = load i32, ptr @O_WRONLY, align 4
%40 = or i32 %38, %39
%41 = call i32 @open(ptr noundef %37, i32 noundef %40)
store i32 %41, ptr %9, align 4
%42 = load i32, ptr %9, align 4
%43 = icmp ne i32 %42, 0
br i1 %43, label %48, label %44
44: ; preds = %36
%45 = load ptr, ptr %6, align 8
%46 = call i32 @perror(ptr noundef %45)
%47 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %47, ptr %3, align 4
br label %92
48: ; preds = %36
%49 = load i32, ptr @BUFSIZ, align 4
%50 = zext i32 %49 to i64
%51 = call ptr @llvm.stacksave()
store ptr %51, ptr %10, align 8
%52 = alloca i8, i64 %50, align 16
store i64 %50, ptr %11, align 8
br label %53
53: ; preds = %84, %63, %48
br label %54
54: ; preds = %53
store i32 0, ptr @errno, align 4
%55 = load i32, ptr %8, align 4
%56 = load i32, ptr @BUFSIZ, align 4
%57 = call i64 @read(i32 noundef %55, ptr noundef %52, i32 noundef %56)
store i64 %57, ptr %12, align 8
%58 = load i64, ptr %12, align 8
%59 = icmp slt i64 %58, 0
br i1 %59, label %60, label %68
60: ; preds = %54
%61 = load i32, ptr @errno, align 4
switch i32 %61, label %63 [
i32 134, label %62
i32 131, label %62
i32 133, label %64
i32 132, label %64
i32 130, label %64
i32 129, label %64
i32 128, label %64
]
62: ; preds = %60, %60
br label %63
63: ; preds = %60, %62
br label %53
64: ; preds = %60, %60, %60, %60, %60
%65 = call i32 @perror(ptr noundef @.str)
%66 = load i32, ptr @EXIT_FAILURE, align 4
%67 = call i32 @exit(i32 noundef %66) #4
unreachable
68: ; preds = %54
%69 = load i64, ptr %12, align 8
%70 = icmp eq i64 %69, 0
br i1 %70, label %71, label %72
71: ; preds = %68
br label %85
72: ; preds = %68
br label %73
73: ; preds = %72
store i32 0, ptr @errno, align 4
%74 = load i32, ptr %9, align 4
%75 = load i64, ptr %12, align 8
%76 = call i64 @write(i32 noundef %74, ptr noundef %52, i64 noundef %75)
store i64 %76, ptr %13, align 8
%77 = load i64, ptr %13, align 8
%78 = icmp sle i64 %77, 0
br i1 %78, label %79, label %84
79: ; preds = %73
%80 = load ptr, ptr %6, align 8
%81 = call i32 @perror(ptr noundef %80)
%82 = load i32, ptr @EXIT_FAILURE, align 4
%83 = call i32 @exit(i32 noundef %82) #4
unreachable
84: ; preds = %73
br label %53
85: ; preds = %71
store i32 0, ptr @errno, align 4
%86 = load i32, ptr %8, align 4
%87 = call i32 @close(i32 noundef %86)
%88 = load i32, ptr %9, align 4
%89 = call i32 @close(i32 noundef %88)
%90 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %90, ptr %3, align 4
%91 = load ptr, ptr %10, align 8
call void @llvm.stackrestore(ptr %91)
br label %92
92: ; preds = %85, %44, %32
%93 = load i32, ptr %3, align 4
ret i32 %93
}
declare i32 @usage(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #3
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @close(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8ivcwgms.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
@O_RDONLY = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_WRONLY = dso_local global i32 0, align 4
@BUFSIZ = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [8 x i8] c"copylas\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%14 = load i32, ptr %4, align 4
%15 = icmp slt i32 %14, 3
br i1 %15, label %16, label %20
16: ; preds = %2
%17 = call i32 (...) @usage()
%18 = load i32, ptr @EXIT_FAILURE, align 4
%19 = call i32 @exit(i32 noundef %18) #4
unreachable
20: ; preds = %2
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 2
%23 = load ptr, ptr %22, align 8
store ptr %23, ptr %6, align 8
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 1
%26 = load ptr, ptr %25, align 8
store ptr %26, ptr %7, align 8
%27 = load ptr, ptr %7, align 8
%28 = load i32, ptr @O_RDONLY, align 4
%29 = call i32 @open(ptr noundef %27, i32 noundef %28)
store i32 %29, ptr %8, align 4
%30 = load i32, ptr %8, align 4
%31 = icmp ne i32 %30, 0
br i1 %31, label %36, label %32
32: ; preds = %20
%33 = load ptr, ptr %7, align 8
%34 = call i32 @perror(ptr noundef %33)
%35 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %35, ptr %3, align 4
br label %92
36: ; preds = %20
%37 = load ptr, ptr %6, align 8
%38 = load i32, ptr @O_CREAT, align 4
%39 = load i32, ptr @O_WRONLY, align 4
%40 = or i32 %38, %39
%41 = call i32 @open(ptr noundef %37, i32 noundef %40)
store i32 %41, ptr %9, align 4
%42 = load i32, ptr %9, align 4
%43 = icmp ne i32 %42, 0
br i1 %43, label %48, label %44
44: ; preds = %36
%45 = load ptr, ptr %6, align 8
%46 = call i32 @perror(ptr noundef %45)
%47 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %47, ptr %3, align 4
br label %92
48: ; preds = %36
%49 = load i32, ptr @BUFSIZ, align 4
%50 = zext i32 %49 to i64
%51 = call ptr @llvm.stacksave()
store ptr %51, ptr %10, align 8
%52 = alloca i8, i64 %50, align 16
store i64 %50, ptr %11, align 8
br label %53
53: ; preds = %.backedge, %48
br label %54
54: ; preds = %53
store i32 0, ptr @errno, align 4
%55 = load i32, ptr %8, align 4
%56 = load i32, ptr @BUFSIZ, align 4
%57 = call i64 @read(i32 noundef %55, ptr noundef %52, i32 noundef %56)
store i64 %57, ptr %12, align 8
%58 = load i64, ptr %12, align 8
%59 = icmp slt i64 %58, 0
br i1 %59, label %60, label %68
60: ; preds = %54
%61 = load i32, ptr @errno, align 4
switch i32 %61, label %63 [
i32 134, label %62
i32 131, label %62
i32 133, label %64
i32 132, label %64
i32 130, label %64
i32 129, label %64
i32 128, label %64
]
62: ; preds = %60, %60
br label %63
63: ; preds = %62, %60
br label %.backedge
.backedge: ; preds = %63, %84
br label %53
64: ; preds = %60, %60, %60, %60, %60
%65 = call i32 @perror(ptr noundef @.str)
%66 = load i32, ptr @EXIT_FAILURE, align 4
%67 = call i32 @exit(i32 noundef %66) #4
unreachable
68: ; preds = %54
%69 = load i64, ptr %12, align 8
%70 = icmp eq i64 %69, 0
br i1 %70, label %71, label %72
71: ; preds = %68
br label %85
72: ; preds = %68
br label %73
73: ; preds = %72
store i32 0, ptr @errno, align 4
%74 = load i32, ptr %9, align 4
%75 = load i64, ptr %12, align 8
%76 = call i64 @write(i32 noundef %74, ptr noundef %52, i64 noundef %75)
store i64 %76, ptr %13, align 8
%77 = load i64, ptr %13, align 8
%78 = icmp sle i64 %77, 0
br i1 %78, label %79, label %84
79: ; preds = %73
%80 = load ptr, ptr %6, align 8
%81 = call i32 @perror(ptr noundef %80)
%82 = load i32, ptr @EXIT_FAILURE, align 4
%83 = call i32 @exit(i32 noundef %82) #4
unreachable
84: ; preds = %73
br label %.backedge
85: ; preds = %71
store i32 0, ptr @errno, align 4
%86 = load i32, ptr %8, align 4
%87 = call i32 @close(i32 noundef %86)
%88 = load i32, ptr %9, align 4
%89 = call i32 @close(i32 noundef %88)
%90 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %90, ptr %3, align 4
%91 = load ptr, ptr %10, align 8
call void @llvm.stackrestore(ptr %91)
br label %92
92: ; preds = %85, %44, %32
%93 = load i32, ptr %3, align 4
ret i32 %93
}
declare i32 @usage(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #3
declare i64 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @close(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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"}
|
; ModuleID = '/tmp/tmpppb9hiu8.c'
source_filename = "/tmp/tmpppb9hiu8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @deg2rad(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = load double, ptr @M_PI, align 8
%5 = fmul double %3, %4
%6 = fdiv double %5, 1.800000e+02
ret double %6
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpppb9hiu8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @deg2rad(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = load double, ptr @M_PI, align 8
%5 = fmul double %3, %4
%6 = fdiv double %5, 1.800000e+02
ret double %6
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpn9rq54l7.c'
source_filename = "/tmp/tmpn9rq54l7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@X_OK = 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/tmpn9rq54l7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@X_OK = 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/tmp4sql4dfg.c'
source_filename = "/tmp/tmp4sql4dfg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @foo(ptr noundef %2, ptr noundef %3)
%5 = icmp ne i32 %4, 1
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 (...) @abort() #3
unreachable
8: ; preds = %0
ret i32 0
}
declare i32 @foo(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4sql4dfg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @foo(ptr noundef %2, ptr noundef %3)
%5 = icmp ne i32 %4, 1
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 (...) @abort() #3
unreachable
8: ; preds = %0
ret i32 0
}
declare i32 @foo(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.