llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmplwwseehn.c'
source_filename = "/tmp/tmplwwseehn.c"
target datalayout = "e-m:e-p270: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/tmplwwseehn.c"
target datalayout = "e-m:e-p270: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/tmpcth51j9r.c'
source_filename = "/tmp/tmpcth51j9r.c"
target datalayout = "e-m:e-p270: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/tmpcth51j9r.c"
target datalayout = "e-m:e-p270: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/tmp14rhya90.c'
source_filename = "/tmp/tmp14rhya90.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_assert_int_equal(i32 noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %6, align 4
%11 = call i32 @values_equal_display_error(i32 noundef %9, i32 noundef %10)
%12 = icmp ne i32 %11, 0
br i1 %12, label %17, label %13
13: ; preds = %4
%14 = load ptr, ptr %7, align 8
%15 = load i32, ptr %8, align 4
%16 = call i32 @_fail(ptr noundef %14, i32 noundef %15)
br label %17
17: ; preds = %13, %4
ret void
}
declare i32 @values_equal_display_error(i32 noundef, i32 noundef) #1
declare i32 @_fail(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/tmp14rhya90.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_assert_int_equal(i32 noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %6, align 4
%11 = call i32 @values_equal_display_error(i32 noundef %9, i32 noundef %10)
%12 = icmp ne i32 %11, 0
br i1 %12, label %17, label %13
13: ; preds = %4
%14 = load ptr, ptr %7, align 8
%15 = load i32, ptr %8, align 4
%16 = call i32 @_fail(ptr noundef %14, i32 noundef %15)
br label %17
17: ; preds = %13, %4
ret void
}
declare i32 @values_equal_display_error(i32 noundef, i32 noundef) #1
declare i32 @_fail(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/tmp3fogrfm6.c'
source_filename = "/tmp/tmp3fogrfm6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [43 x i8] c"faltan argumenos. Deden ser por lo menos 4\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"division entre cero invalida\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"operador no reconocido\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [8 x i32], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
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 slt i32 %12, 4
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = call i32 @puts(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %105
16: ; preds = %2
%17 = load i32, ptr %4, align 4
%18 = icmp slt i32 %17, 10
br i1 %18, label %19, label %22
19: ; preds = %16
%20 = load i32, ptr %4, align 4
%21 = sub nsw i32 %20, 2
br label %23
22: ; preds = %16
br label %23
23: ; preds = %22, %19
%24 = phi i32 [ %21, %19 ], [ 8, %22 ]
store i32 %24, ptr %8, align 4
store i32 0, ptr %9, align 4
br label %25
25: ; preds = %40, %23
%26 = load i32, ptr %9, align 4
%27 = load i32, ptr %8, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %43
29: ; preds = %25
%30 = load ptr, ptr %5, align 8
%31 = load i32, ptr %9, align 4
%32 = add nsw i32 %31, 2
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds ptr, ptr %30, i64 %33
%35 = load ptr, ptr %34, align 8
%36 = call i32 @atoi(ptr noundef %35)
%37 = load i32, ptr %9, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [8 x i32], ptr %6, i64 0, i64 %38
store i32 %36, ptr %39, align 4
br label %40
40: ; preds = %29
%41 = load i32, ptr %9, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %9, align 4
br label %25, !llvm.loop !6
43: ; preds = %25
%44 = load ptr, ptr %5, align 8
%45 = getelementptr inbounds ptr, ptr %44, i64 1
%46 = load ptr, ptr %45, align 8
%47 = getelementptr inbounds i8, ptr %46, i64 0
%48 = load i8, ptr %47, align 1
%49 = sext i8 %48 to i32
switch i32 %49, label %100 [
i32 115, label %50
i32 114, label %66
i32 109, label %72
i32 100, label %88
]
50: ; preds = %43
store i32 0, ptr %7, align 4
store i32 0, ptr %10, align 4
br label %51
51: ; preds = %62, %50
%52 = load i32, ptr %10, align 4
%53 = load i32, ptr %8, align 4
%54 = icmp slt i32 %52, %53
br i1 %54, label %55, label %65
55: ; preds = %51
%56 = load i32, ptr %10, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [8 x i32], ptr %6, i64 0, i64 %57
%59 = load i32, ptr %58, align 4
%60 = load i32, ptr %7, align 4
%61 = add nsw i32 %60, %59
store i32 %61, ptr %7, align 4
br label %62
62: ; preds = %55
%63 = load i32, ptr %10, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %10, align 4
br label %51, !llvm.loop !8
65: ; preds = %51
br label %102
66: ; preds = %43
%67 = getelementptr inbounds [8 x i32], ptr %6, i64 0, i64 0
%68 = load i32, ptr %67, align 16
%69 = getelementptr inbounds [8 x i32], ptr %6, i64 0, i64 1
%70 = load i32, ptr %69, align 4
%71 = sub nsw i32 %68, %70
store i32 %71, ptr %7, align 4
br label %102
72: ; preds = %43
store i32 1, ptr %7, align 4
store i32 0, ptr %11, align 4
br label %73
73: ; preds = %84, %72
%74 = load i32, ptr %11, align 4
%75 = load i32, ptr %8, align 4
%76 = icmp slt i32 %74, %75
br i1 %76, label %77, label %87
77: ; preds = %73
%78 = load i32, ptr %11, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [8 x i32], ptr %6, i64 0, i64 %79
%81 = load i32, ptr %80, align 4
%82 = load i32, ptr %7, align 4
%83 = mul nsw i32 %82, %81
store i32 %83, ptr %7, align 4
br label %84
84: ; preds = %77
%85 = load i32, ptr %11, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %11, align 4
br label %73, !llvm.loop !9
87: ; preds = %73
br label %102
88: ; preds = %43
%89 = getelementptr inbounds [8 x i32], ptr %6, i64 0, i64 1
%90 = load i32, ptr %89, align 4
%91 = icmp eq i32 %90, 0
br i1 %91, label %92, label %94
92: ; preds = %88
%93 = call i32 @puts(ptr noundef @.str.1)
store i32 3, ptr %3, align 4
br label %105
94: ; preds = %88
%95 = getelementptr inbounds [8 x i32], ptr %6, i64 0, i64 0
%96 = load i32, ptr %95, align 16
%97 = getelementptr inbounds [8 x i32], ptr %6, i64 0, i64 1
%98 = load i32, ptr %97, align 4
%99 = sdiv i32 %96, %98
store i32 %99, ptr %7, align 4
br label %102
100: ; preds = %43
%101 = call i32 @puts(ptr noundef @.str.2)
store i32 2, ptr %3, align 4
br label %105
102: ; preds = %94, %87, %66, %65
%103 = load i32, ptr %7, align 4
%104 = call i32 @printf(ptr noundef @.str.3, i32 noundef %103)
store i32 0, ptr %3, align 4
br label %105
105: ; preds = %102, %100, %92, %14
%106 = load i32, ptr %3, align 4
ret i32 %106
}
declare i32 @puts(ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3fogrfm6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [43 x i8] c"faltan argumenos. Deden ser por lo menos 4\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"division entre cero invalida\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"operador no reconocido\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [8 x i32], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
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 slt i32 %12, 4
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = call i32 @puts(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %111
16: ; preds = %2
%17 = load i32, ptr %4, align 4
%18 = icmp slt i32 %17, 10
br i1 %18, label %19, label %22
19: ; preds = %16
%20 = load i32, ptr %4, align 4
%21 = sub nsw i32 %20, 2
br label %23
22: ; preds = %16
br label %23
23: ; preds = %22, %19
%24 = phi i32 [ %21, %19 ], [ 8, %22 ]
store i32 %24, ptr %8, align 4
store i32 0, ptr %9, align 4
%25 = load i32, ptr %9, align 4
%26 = load i32, ptr %8, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %.lr.ph, label %45
.lr.ph: ; preds = %23
br label %28
28: ; preds = %.lr.ph, %39
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %9, align 4
%31 = add nsw i32 %30, 2
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds ptr, ptr %29, i64 %32
%34 = load ptr, ptr %33, align 8
%35 = call i32 @atoi(ptr noundef %34)
%36 = load i32, ptr %9, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [8 x i32], ptr %6, i64 0, i64 %37
store i32 %35, ptr %38, align 4
br label %39
39: ; preds = %28
%40 = load i32, ptr %9, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %9, align 4
%42 = load i32, ptr %9, align 4
%43 = load i32, ptr %8, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %39
br label %45
45: ; preds = %._crit_edge, %23
%46 = load ptr, ptr %5, align 8
%47 = getelementptr inbounds ptr, ptr %46, i64 1
%48 = load ptr, ptr %47, align 8
%49 = getelementptr inbounds i8, ptr %48, i64 0
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
switch i32 %51, label %106 [
i32 115, label %52
i32 114, label %70
i32 109, label %76
i32 100, label %94
]
52: ; preds = %45
store i32 0, ptr %7, align 4
store i32 0, ptr %10, align 4
%53 = load i32, ptr %10, align 4
%54 = load i32, ptr %8, align 4
%55 = icmp slt i32 %53, %54
br i1 %55, label %.lr.ph5, label %69
.lr.ph5: ; preds = %52
br label %56
56: ; preds = %.lr.ph5, %63
%57 = load i32, ptr %10, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [8 x i32], ptr %6, i64 0, i64 %58
%60 = load i32, ptr %59, align 4
%61 = load i32, ptr %7, align 4
%62 = add nsw i32 %61, %60
store i32 %62, ptr %7, align 4
br label %63
63: ; preds = %56
%64 = load i32, ptr %10, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %10, align 4
%66 = load i32, ptr %10, align 4
%67 = load i32, ptr %8, align 4
%68 = icmp slt i32 %66, %67
br i1 %68, label %56, label %._crit_edge6, !llvm.loop !8
._crit_edge6: ; preds = %63
br label %69
69: ; preds = %._crit_edge6, %52
br label %108
70: ; preds = %45
%71 = getelementptr inbounds [8 x i32], ptr %6, i64 0, i64 0
%72 = load i32, ptr %71, align 16
%73 = getelementptr inbounds [8 x i32], ptr %6, i64 0, i64 1
%74 = load i32, ptr %73, align 4
%75 = sub nsw i32 %72, %74
store i32 %75, ptr %7, align 4
br label %108
76: ; preds = %45
store i32 1, ptr %7, align 4
store i32 0, ptr %11, align 4
%77 = load i32, ptr %11, align 4
%78 = load i32, ptr %8, align 4
%79 = icmp slt i32 %77, %78
br i1 %79, label %.lr.ph2, label %93
.lr.ph2: ; preds = %76
br label %80
80: ; preds = %.lr.ph2, %87
%81 = load i32, ptr %11, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [8 x i32], ptr %6, i64 0, i64 %82
%84 = load i32, ptr %83, align 4
%85 = load i32, ptr %7, align 4
%86 = mul nsw i32 %85, %84
store i32 %86, ptr %7, align 4
br label %87
87: ; preds = %80
%88 = load i32, ptr %11, align 4
%89 = add nsw i32 %88, 1
store i32 %89, ptr %11, align 4
%90 = load i32, ptr %11, align 4
%91 = load i32, ptr %8, align 4
%92 = icmp slt i32 %90, %91
br i1 %92, label %80, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %87
br label %93
93: ; preds = %._crit_edge3, %76
br label %108
94: ; preds = %45
%95 = getelementptr inbounds [8 x i32], ptr %6, i64 0, i64 1
%96 = load i32, ptr %95, align 4
%97 = icmp eq i32 %96, 0
br i1 %97, label %98, label %100
98: ; preds = %94
%99 = call i32 @puts(ptr noundef @.str.1)
store i32 3, ptr %3, align 4
br label %111
100: ; preds = %94
%101 = getelementptr inbounds [8 x i32], ptr %6, i64 0, i64 0
%102 = load i32, ptr %101, align 16
%103 = getelementptr inbounds [8 x i32], ptr %6, i64 0, i64 1
%104 = load i32, ptr %103, align 4
%105 = sdiv i32 %102, %104
store i32 %105, ptr %7, align 4
br label %108
106: ; preds = %45
%107 = call i32 @puts(ptr noundef @.str.2)
store i32 2, ptr %3, align 4
br label %111
108: ; preds = %100, %93, %70, %69
%109 = load i32, ptr %7, align 4
%110 = call i32 @printf(ptr noundef @.str.3, i32 noundef %109)
store i32 0, ptr %3, align 4
br label %111
111: ; preds = %108, %106, %98, %14
%112 = load i32, ptr %3, align 4
ret i32 %112
}
declare i32 @puts(ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpxswhk3s6.c'
source_filename = "/tmp/tmpxswhk3s6.c"
target datalayout = "e-m:e-p270: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
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxswhk3s6.c"
target datalayout = "e-m:e-p270: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
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmneeu5yz.c'
source_filename = "/tmp/tmpmneeu5yz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @buffer_load(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr null, ptr %4, align 8
store i32 -1, ptr %6, align 4
store i32 -1, ptr %7, align 4
%9 = load ptr, ptr %3, align 8
%10 = call i32 @buffer_open_input(ptr noundef %9)
store i32 %10, ptr %7, align 4
%11 = load i32, ptr %7, align 4
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %1
br label %35
14: ; preds = %1
%15 = load i32, ptr %7, align 4
%16 = call i32 @dup(i32 noundef %15)
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %6, align 4
%18 = icmp slt i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %14
br label %35
20: ; preds = %14
%21 = load i32, ptr %6, align 4
%22 = call ptr @fdopen(i32 noundef %21, ptr noundef @.str)
store ptr %22, ptr %4, align 8
%23 = load ptr, ptr %4, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %26, label %25
25: ; preds = %20
br label %35
26: ; preds = %20
%27 = load ptr, ptr %4, align 8
%28 = call i32 @copy_stream_to_buffer(ptr noundef %27, ptr noundef %5, ptr noundef null)
%29 = icmp ne i32 %28, 0
br i1 %29, label %31, label %30
30: ; preds = %26
br label %35
31: ; preds = %26
%32 = load ptr, ptr %4, align 8
%33 = call i32 @fclose(ptr noundef %32)
%34 = load ptr, ptr %5, align 8
store ptr %34, ptr %2, align 8
br label %51
35: ; preds = %30, %25, %19, %13
%36 = load i32, ptr @errno, align 4
store i32 %36, ptr %8, align 4
%37 = load ptr, ptr %4, align 8
%38 = icmp ne ptr %37, null
br i1 %38, label %39, label %42
39: ; preds = %35
%40 = load ptr, ptr %4, align 8
%41 = call i32 @fclose(ptr noundef %40)
br label %49
42: ; preds = %35
%43 = load i32, ptr %6, align 4
%44 = icmp sge i32 %43, 0
br i1 %44, label %45, label %48
45: ; preds = %42
%46 = load i32, ptr %6, align 4
%47 = call i32 @close(i32 noundef %46)
br label %48
48: ; preds = %45, %42
br label %49
49: ; preds = %48, %39
%50 = load i32, ptr %8, align 4
store i32 %50, ptr @errno, align 4
store ptr null, ptr %2, align 8
br label %51
51: ; preds = %49, %31
%52 = load ptr, ptr %2, align 8
ret ptr %52
}
declare i32 @buffer_open_input(ptr noundef) #1
declare i32 @dup(i32 noundef) #1
declare ptr @fdopen(i32 noundef, ptr noundef) #1
declare i32 @copy_stream_to_buffer(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmneeu5yz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @buffer_load(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr null, ptr %4, align 8
store i32 -1, ptr %6, align 4
store i32 -1, ptr %7, align 4
%9 = load ptr, ptr %3, align 8
%10 = call i32 @buffer_open_input(ptr noundef %9)
store i32 %10, ptr %7, align 4
%11 = load i32, ptr %7, align 4
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %1
br label %35
14: ; preds = %1
%15 = load i32, ptr %7, align 4
%16 = call i32 @dup(i32 noundef %15)
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %6, align 4
%18 = icmp slt i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %14
br label %35
20: ; preds = %14
%21 = load i32, ptr %6, align 4
%22 = call ptr @fdopen(i32 noundef %21, ptr noundef @.str)
store ptr %22, ptr %4, align 8
%23 = load ptr, ptr %4, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %26, label %25
25: ; preds = %20
br label %35
26: ; preds = %20
%27 = load ptr, ptr %4, align 8
%28 = call i32 @copy_stream_to_buffer(ptr noundef %27, ptr noundef %5, ptr noundef null)
%29 = icmp ne i32 %28, 0
br i1 %29, label %31, label %30
30: ; preds = %26
br label %35
31: ; preds = %26
%32 = load ptr, ptr %4, align 8
%33 = call i32 @fclose(ptr noundef %32)
%34 = load ptr, ptr %5, align 8
store ptr %34, ptr %2, align 8
br label %51
35: ; preds = %30, %25, %19, %13
%36 = load i32, ptr @errno, align 4
store i32 %36, ptr %8, align 4
%37 = load ptr, ptr %4, align 8
%38 = icmp ne ptr %37, null
br i1 %38, label %39, label %42
39: ; preds = %35
%40 = load ptr, ptr %4, align 8
%41 = call i32 @fclose(ptr noundef %40)
br label %49
42: ; preds = %35
%43 = load i32, ptr %6, align 4
%44 = icmp sge i32 %43, 0
br i1 %44, label %45, label %48
45: ; preds = %42
%46 = load i32, ptr %6, align 4
%47 = call i32 @close(i32 noundef %46)
br label %48
48: ; preds = %45, %42
br label %49
49: ; preds = %48, %39
%50 = load i32, ptr %8, align 4
store i32 %50, ptr @errno, align 4
store ptr null, ptr %2, align 8
br label %51
51: ; preds = %49, %31
%52 = load ptr, ptr %2, align 8
ret ptr %52
}
declare i32 @buffer_open_input(ptr noundef) #1
declare i32 @dup(i32 noundef) #1
declare ptr @fdopen(i32 noundef, ptr noundef) #1
declare i32 @copy_stream_to_buffer(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2atq8egj.c'
source_filename = "/tmp/tmp2atq8egj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [43 x i8] c"Usage: bootwrite.exe floppyimage bootsect\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"'%s' ReadError!\0A\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"r+b+\00", align 1
@.str.4 = private unnamed_addr constant [18 x i8] c"'%s' WriteError!\0A\00", align 1
@.str.5 = private unnamed_addr constant [38 x i8] c"Boot sector is successfully written!\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 [512 x ptr], align 16
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 3
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 3, ptr %3, align 4
br label %63
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 2
%16 = load ptr, ptr %15, align 8
%17 = call ptr @fopen(ptr noundef %16, ptr noundef @.str.1)
store ptr %17, ptr %8, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %56
19: ; preds = %13
%20 = getelementptr inbounds [512 x ptr], ptr %6, i64 0, i64 0
%21 = load ptr, ptr %8, align 8
%22 = call i32 @fread(ptr noundef %20, i32 noundef 512, i32 noundef 1, ptr noundef %21)
%23 = icmp ne i32 %22, 0
br i1 %23, label %29, label %24
24: ; preds = %19
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 1
%27 = load ptr, ptr %26, align 8
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %27)
store i32 2, ptr %3, align 4
br label %63
29: ; preds = %19
%30 = load ptr, ptr %8, align 8
%31 = call i32 @fclose(ptr noundef %30)
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 1
%34 = load ptr, ptr %33, align 8
%35 = call ptr @fopen(ptr noundef %34, ptr noundef @.str.3)
store ptr %35, ptr %7, align 8
%36 = icmp ne ptr %35, null
br i1 %36, label %37, label %50
37: ; preds = %29
%38 = getelementptr inbounds [512 x ptr], ptr %6, i64 0, i64 0
%39 = load ptr, ptr %7, align 8
%40 = call i32 @fwrite(ptr noundef %38, i32 noundef 512, i32 noundef 1, ptr noundef %39)
%41 = icmp ne i32 %40, 0
br i1 %41, label %47, label %42
42: ; preds = %37
%43 = load ptr, ptr %5, align 8
%44 = getelementptr inbounds ptr, ptr %43, i64 2
%45 = load ptr, ptr %44, align 8
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %45)
store i32 2, ptr %3, align 4
br label %63
47: ; preds = %37
%48 = load ptr, ptr %7, align 8
%49 = call i32 @fclose(ptr noundef %48)
br label %55
50: ; preds = %29
%51 = load ptr, ptr %5, align 8
%52 = getelementptr inbounds ptr, ptr %51, i64 2
%53 = load ptr, ptr %52, align 8
%54 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %53)
store i32 1, ptr %3, align 4
br label %63
55: ; preds = %47
br label %61
56: ; preds = %13
%57 = load ptr, ptr %5, align 8
%58 = getelementptr inbounds ptr, ptr %57, i64 1
%59 = load ptr, ptr %58, align 8
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %59)
store i32 1, ptr %3, align 4
br label %63
61: ; preds = %55
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 0, ptr %3, align 4
br label %63
63: ; preds = %61, %56, %50, %42, %24, %11
%64 = load i32, ptr %3, align 4
ret i32 %64
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @fwrite(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/tmp2atq8egj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [43 x i8] c"Usage: bootwrite.exe floppyimage bootsect\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"'%s' ReadError!\0A\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"r+b+\00", align 1
@.str.4 = private unnamed_addr constant [18 x i8] c"'%s' WriteError!\0A\00", align 1
@.str.5 = private unnamed_addr constant [38 x i8] c"Boot sector is successfully written!\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 [512 x ptr], align 16
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 3
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 3, ptr %3, align 4
br label %63
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 2
%16 = load ptr, ptr %15, align 8
%17 = call ptr @fopen(ptr noundef %16, ptr noundef @.str.1)
store ptr %17, ptr %8, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %56
19: ; preds = %13
%20 = getelementptr inbounds [512 x ptr], ptr %6, i64 0, i64 0
%21 = load ptr, ptr %8, align 8
%22 = call i32 @fread(ptr noundef %20, i32 noundef 512, i32 noundef 1, ptr noundef %21)
%23 = icmp ne i32 %22, 0
br i1 %23, label %29, label %24
24: ; preds = %19
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 1
%27 = load ptr, ptr %26, align 8
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %27)
store i32 2, ptr %3, align 4
br label %63
29: ; preds = %19
%30 = load ptr, ptr %8, align 8
%31 = call i32 @fclose(ptr noundef %30)
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 1
%34 = load ptr, ptr %33, align 8
%35 = call ptr @fopen(ptr noundef %34, ptr noundef @.str.3)
store ptr %35, ptr %7, align 8
%36 = icmp ne ptr %35, null
br i1 %36, label %37, label %50
37: ; preds = %29
%38 = getelementptr inbounds [512 x ptr], ptr %6, i64 0, i64 0
%39 = load ptr, ptr %7, align 8
%40 = call i32 @fwrite(ptr noundef %38, i32 noundef 512, i32 noundef 1, ptr noundef %39)
%41 = icmp ne i32 %40, 0
br i1 %41, label %47, label %42
42: ; preds = %37
%43 = load ptr, ptr %5, align 8
%44 = getelementptr inbounds ptr, ptr %43, i64 2
%45 = load ptr, ptr %44, align 8
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %45)
store i32 2, ptr %3, align 4
br label %63
47: ; preds = %37
%48 = load ptr, ptr %7, align 8
%49 = call i32 @fclose(ptr noundef %48)
br label %55
50: ; preds = %29
%51 = load ptr, ptr %5, align 8
%52 = getelementptr inbounds ptr, ptr %51, i64 2
%53 = load ptr, ptr %52, align 8
%54 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %53)
store i32 1, ptr %3, align 4
br label %63
55: ; preds = %47
br label %61
56: ; preds = %13
%57 = load ptr, ptr %5, align 8
%58 = getelementptr inbounds ptr, ptr %57, i64 1
%59 = load ptr, ptr %58, align 8
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %59)
store i32 1, ptr %3, align 4
br label %63
61: ; preds = %55
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 0, ptr %3, align 4
br label %63
63: ; preds = %61, %56, %50, %42, %24, %11
%64 = load i32, ptr %3, align 4
ret i32 %64
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @fwrite(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/tmph8h9aiuw.c'
source_filename = "/tmp/tmph8h9aiuw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [9 x i8] c"%d %d %d\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"%s\0A%s\0A%s\0A\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"none\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"one\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"both\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 i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
store i32 0, ptr %1, align 4
%18 = call i32 (ptr, ptr, ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%19 = call i32 (ptr, ptr, ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %6, ptr noundef %7, ptr noundef %8)
%20 = load i32, ptr %2, align 4
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %21, %20
store i32 %22, ptr %3, align 4
%23 = load i32, ptr %4, align 4
%24 = load i32, ptr %5, align 4
%25 = add nsw i32 %24, %23
store i32 %25, ptr %5, align 4
%26 = load i32, ptr %6, align 4
%27 = load i32, ptr %3, align 4
%28 = srem i32 %26, %27
store i32 %28, ptr %9, align 4
%29 = load i32, ptr %6, align 4
%30 = load i32, ptr %5, align 4
%31 = srem i32 %29, %30
store i32 %31, ptr %10, align 4
%32 = load i32, ptr %7, align 4
%33 = load i32, ptr %3, align 4
%34 = srem i32 %32, %33
store i32 %34, ptr %11, align 4
%35 = load i32, ptr %7, align 4
%36 = load i32, ptr %5, align 4
%37 = srem i32 %35, %36
store i32 %37, ptr %12, align 4
%38 = load i32, ptr %8, align 4
%39 = load i32, ptr %3, align 4
%40 = srem i32 %38, %39
store i32 %40, ptr %13, align 4
%41 = load i32, ptr %8, align 4
%42 = load i32, ptr %5, align 4
%43 = srem i32 %41, %42
store i32 %43, ptr %14, align 4
%44 = load i32, ptr %9, align 4
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %50
46: ; preds = %0
%47 = load i32, ptr %9, align 4
%48 = load i32, ptr %2, align 4
%49 = icmp sle i32 %47, %48
br label %50
50: ; preds = %46, %0
%51 = phi i1 [ false, %0 ], [ %49, %46 ]
%52 = zext i1 %51 to i32
%53 = load i32, ptr %10, align 4
%54 = icmp ne i32 %53, 0
br i1 %54, label %55, label %59
55: ; preds = %50
%56 = load i32, ptr %10, align 4
%57 = load i32, ptr %4, align 4
%58 = icmp sle i32 %56, %57
br label %59
59: ; preds = %55, %50
%60 = phi i1 [ false, %50 ], [ %58, %55 ]
%61 = zext i1 %60 to i32
%62 = add nsw i32 %52, %61
store i32 %62, ptr %15, align 4
%63 = load i32, ptr %11, align 4
%64 = icmp ne i32 %63, 0
br i1 %64, label %65, label %69
65: ; preds = %59
%66 = load i32, ptr %11, align 4
%67 = load i32, ptr %2, align 4
%68 = icmp sle i32 %66, %67
br label %69
69: ; preds = %65, %59
%70 = phi i1 [ false, %59 ], [ %68, %65 ]
%71 = zext i1 %70 to i32
%72 = load i32, ptr %12, align 4
%73 = icmp ne i32 %72, 0
br i1 %73, label %74, label %78
74: ; preds = %69
%75 = load i32, ptr %12, align 4
%76 = load i32, ptr %4, align 4
%77 = icmp sle i32 %75, %76
br label %78
78: ; preds = %74, %69
%79 = phi i1 [ false, %69 ], [ %77, %74 ]
%80 = zext i1 %79 to i32
%81 = add nsw i32 %71, %80
store i32 %81, ptr %16, align 4
%82 = load i32, ptr %13, align 4
%83 = icmp ne i32 %82, 0
br i1 %83, label %84, label %88
84: ; preds = %78
%85 = load i32, ptr %13, align 4
%86 = load i32, ptr %2, align 4
%87 = icmp sle i32 %85, %86
br label %88
88: ; preds = %84, %78
%89 = phi i1 [ false, %78 ], [ %87, %84 ]
%90 = zext i1 %89 to i32
%91 = load i32, ptr %14, align 4
%92 = icmp ne i32 %91, 0
br i1 %92, label %93, label %97
93: ; preds = %88
%94 = load i32, ptr %14, align 4
%95 = load i32, ptr %4, align 4
%96 = icmp sle i32 %94, %95
br label %97
97: ; preds = %93, %88
%98 = phi i1 [ false, %88 ], [ %96, %93 ]
%99 = zext i1 %98 to i32
%100 = add nsw i32 %90, %99
store i32 %100, ptr %17, align 4
%101 = load i32, ptr %15, align 4
%102 = icmp eq i32 %101, 0
br i1 %102, label %103, label %104
103: ; preds = %97
br label %109
104: ; preds = %97
%105 = load i32, ptr %15, align 4
%106 = icmp eq i32 %105, 1
%107 = zext i1 %106 to i64
%108 = select i1 %106, ptr @.str.4, ptr @.str.5
br label %109
109: ; preds = %104, %103
%110 = phi ptr [ @.str.3, %103 ], [ %108, %104 ]
%111 = load i32, ptr %16, align 4
%112 = icmp eq i32 %111, 0
br i1 %112, label %113, label %114
113: ; preds = %109
br label %119
114: ; preds = %109
%115 = load i32, ptr %16, align 4
%116 = icmp eq i32 %115, 1
%117 = zext i1 %116 to i64
%118 = select i1 %116, ptr @.str.4, ptr @.str.5
br label %119
119: ; preds = %114, %113
%120 = phi ptr [ @.str.3, %113 ], [ %118, %114 ]
%121 = load i32, ptr %17, align 4
%122 = icmp eq i32 %121, 0
br i1 %122, label %123, label %124
123: ; preds = %119
br label %129
124: ; preds = %119
%125 = load i32, ptr %17, align 4
%126 = icmp eq i32 %125, 1
%127 = zext i1 %126 to i64
%128 = select i1 %126, ptr @.str.4, ptr @.str.5
br label %129
129: ; preds = %124, %123
%130 = phi ptr [ @.str.3, %123 ], [ %128, %124 ]
%131 = call i32 @printf(ptr noundef @.str.2, ptr noundef %110, ptr noundef %120, ptr noundef %130)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmph8h9aiuw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [9 x i8] c"%d %d %d\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"%s\0A%s\0A%s\0A\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"none\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"one\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"both\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 i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
store i32 0, ptr %1, align 4
%18 = call i32 (ptr, ptr, ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%19 = call i32 (ptr, ptr, ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %6, ptr noundef %7, ptr noundef %8)
%20 = load i32, ptr %2, align 4
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %21, %20
store i32 %22, ptr %3, align 4
%23 = load i32, ptr %4, align 4
%24 = load i32, ptr %5, align 4
%25 = add nsw i32 %24, %23
store i32 %25, ptr %5, align 4
%26 = load i32, ptr %6, align 4
%27 = load i32, ptr %3, align 4
%28 = srem i32 %26, %27
store i32 %28, ptr %9, align 4
%29 = load i32, ptr %6, align 4
%30 = load i32, ptr %5, align 4
%31 = srem i32 %29, %30
store i32 %31, ptr %10, align 4
%32 = load i32, ptr %7, align 4
%33 = load i32, ptr %3, align 4
%34 = srem i32 %32, %33
store i32 %34, ptr %11, align 4
%35 = load i32, ptr %7, align 4
%36 = load i32, ptr %5, align 4
%37 = srem i32 %35, %36
store i32 %37, ptr %12, align 4
%38 = load i32, ptr %8, align 4
%39 = load i32, ptr %3, align 4
%40 = srem i32 %38, %39
store i32 %40, ptr %13, align 4
%41 = load i32, ptr %8, align 4
%42 = load i32, ptr %5, align 4
%43 = srem i32 %41, %42
store i32 %43, ptr %14, align 4
%44 = load i32, ptr %9, align 4
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %50
46: ; preds = %0
%47 = load i32, ptr %9, align 4
%48 = load i32, ptr %2, align 4
%49 = icmp sle i32 %47, %48
br label %50
50: ; preds = %46, %0
%51 = phi i1 [ false, %0 ], [ %49, %46 ]
%52 = zext i1 %51 to i32
%53 = load i32, ptr %10, align 4
%54 = icmp ne i32 %53, 0
br i1 %54, label %55, label %59
55: ; preds = %50
%56 = load i32, ptr %10, align 4
%57 = load i32, ptr %4, align 4
%58 = icmp sle i32 %56, %57
br label %59
59: ; preds = %55, %50
%60 = phi i1 [ false, %50 ], [ %58, %55 ]
%61 = zext i1 %60 to i32
%62 = add nsw i32 %52, %61
store i32 %62, ptr %15, align 4
%63 = load i32, ptr %11, align 4
%64 = icmp ne i32 %63, 0
br i1 %64, label %65, label %69
65: ; preds = %59
%66 = load i32, ptr %11, align 4
%67 = load i32, ptr %2, align 4
%68 = icmp sle i32 %66, %67
br label %69
69: ; preds = %65, %59
%70 = phi i1 [ false, %59 ], [ %68, %65 ]
%71 = zext i1 %70 to i32
%72 = load i32, ptr %12, align 4
%73 = icmp ne i32 %72, 0
br i1 %73, label %74, label %78
74: ; preds = %69
%75 = load i32, ptr %12, align 4
%76 = load i32, ptr %4, align 4
%77 = icmp sle i32 %75, %76
br label %78
78: ; preds = %74, %69
%79 = phi i1 [ false, %69 ], [ %77, %74 ]
%80 = zext i1 %79 to i32
%81 = add nsw i32 %71, %80
store i32 %81, ptr %16, align 4
%82 = load i32, ptr %13, align 4
%83 = icmp ne i32 %82, 0
br i1 %83, label %84, label %88
84: ; preds = %78
%85 = load i32, ptr %13, align 4
%86 = load i32, ptr %2, align 4
%87 = icmp sle i32 %85, %86
br label %88
88: ; preds = %84, %78
%89 = phi i1 [ false, %78 ], [ %87, %84 ]
%90 = zext i1 %89 to i32
%91 = load i32, ptr %14, align 4
%92 = icmp ne i32 %91, 0
br i1 %92, label %93, label %97
93: ; preds = %88
%94 = load i32, ptr %14, align 4
%95 = load i32, ptr %4, align 4
%96 = icmp sle i32 %94, %95
br label %97
97: ; preds = %93, %88
%98 = phi i1 [ false, %88 ], [ %96, %93 ]
%99 = zext i1 %98 to i32
%100 = add nsw i32 %90, %99
store i32 %100, ptr %17, align 4
%101 = load i32, ptr %15, align 4
%102 = icmp eq i32 %101, 0
br i1 %102, label %103, label %104
103: ; preds = %97
br label %109
104: ; preds = %97
%105 = load i32, ptr %15, align 4
%106 = icmp eq i32 %105, 1
%107 = zext i1 %106 to i64
%108 = select i1 %106, ptr @.str.4, ptr @.str.5
br label %109
109: ; preds = %104, %103
%110 = phi ptr [ @.str.3, %103 ], [ %108, %104 ]
%111 = load i32, ptr %16, align 4
%112 = icmp eq i32 %111, 0
br i1 %112, label %113, label %114
113: ; preds = %109
br label %119
114: ; preds = %109
%115 = load i32, ptr %16, align 4
%116 = icmp eq i32 %115, 1
%117 = zext i1 %116 to i64
%118 = select i1 %116, ptr @.str.4, ptr @.str.5
br label %119
119: ; preds = %114, %113
%120 = phi ptr [ @.str.3, %113 ], [ %118, %114 ]
%121 = load i32, ptr %17, align 4
%122 = icmp eq i32 %121, 0
br i1 %122, label %123, label %124
123: ; preds = %119
br label %129
124: ; preds = %119
%125 = load i32, ptr %17, align 4
%126 = icmp eq i32 %125, 1
%127 = zext i1 %126 to i64
%128 = select i1 %126, ptr @.str.4, ptr @.str.5
br label %129
129: ; preds = %124, %123
%130 = phi ptr [ @.str.3, %123 ], [ %128, %124 ]
%131 = call i32 @printf(ptr noundef @.str.2, ptr noundef %110, ptr noundef %120, ptr noundef %130)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphgzxvyi_.c'
source_filename = "/tmp/tmphgzxvyi_.c"
target datalayout = "e-m:e-p270: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/tmphgzxvyi_.c"
target datalayout = "e-m:e-p270: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/tmpwitdim96.c'
source_filename = "/tmp/tmpwitdim96.c"
target datalayout = "e-m:e-p270: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/tmpwitdim96.c"
target datalayout = "e-m:e-p270: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/tmpb50z67l4.c'
source_filename = "/tmp/tmpb50z67l4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.sampleMatrix = private unnamed_addr constant [3 x [5 x i32]] [[5 x i32] [i32 7, i32 16, i32 55, i32 13, i32 12], [5 x i32] [i32 12, i32 10, i32 52, i32 0, i32 7], [5 x i32] [i32 -2, i32 1, i32 2, i32 4, i32 9]], align 16
@.str = private unnamed_addr constant [18 x i8] c"Original matrix:\0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"\0AMultiplied by 2:\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"\0AThen multiplied by -1:\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [3 x [5 x i32]], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.sampleMatrix, i64 60, i1 false)
%3 = call i32 @printf(ptr noundef @.str)
%4 = getelementptr inbounds [3 x [5 x i32]], ptr %2, i64 0, i64 0
call void @displayMatrix(ptr noundef %4)
%5 = getelementptr inbounds [3 x [5 x i32]], ptr %2, i64 0, i64 0
call void @scalarMultiply(ptr noundef %5, i32 noundef 2)
%6 = call i32 @printf(ptr noundef @.str.1)
%7 = getelementptr inbounds [3 x [5 x i32]], ptr %2, i64 0, i64 0
call void @displayMatrix(ptr noundef %7)
%8 = getelementptr inbounds [3 x [5 x i32]], ptr %2, i64 0, i64 0
call void @scalarMultiply(ptr noundef %8, i32 noundef -1)
%9 = call i32 @printf(ptr noundef @.str.2)
%10 = getelementptr inbounds [3 x [5 x i32]], ptr %2, i64 0, i64 0
call void @displayMatrix(ptr noundef %10)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef) #2
declare void @displayMatrix(ptr noundef) #2
declare void @scalarMultiply(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb50z67l4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.sampleMatrix = private unnamed_addr constant [3 x [5 x i32]] [[5 x i32] [i32 7, i32 16, i32 55, i32 13, i32 12], [5 x i32] [i32 12, i32 10, i32 52, i32 0, i32 7], [5 x i32] [i32 -2, i32 1, i32 2, i32 4, i32 9]], align 16
@.str = private unnamed_addr constant [18 x i8] c"Original matrix:\0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"\0AMultiplied by 2:\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"\0AThen multiplied by -1:\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [3 x [5 x i32]], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.sampleMatrix, i64 60, i1 false)
%3 = call i32 @printf(ptr noundef @.str)
%4 = getelementptr inbounds [3 x [5 x i32]], ptr %2, i64 0, i64 0
call void @displayMatrix(ptr noundef %4)
%5 = getelementptr inbounds [3 x [5 x i32]], ptr %2, i64 0, i64 0
call void @scalarMultiply(ptr noundef %5, i32 noundef 2)
%6 = call i32 @printf(ptr noundef @.str.1)
%7 = getelementptr inbounds [3 x [5 x i32]], ptr %2, i64 0, i64 0
call void @displayMatrix(ptr noundef %7)
%8 = getelementptr inbounds [3 x [5 x i32]], ptr %2, i64 0, i64 0
call void @scalarMultiply(ptr noundef %8, i32 noundef -1)
%9 = call i32 @printf(ptr noundef @.str.2)
%10 = getelementptr inbounds [3 x [5 x i32]], ptr %2, i64 0, i64 0
call void @displayMatrix(ptr noundef %10)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef) #2
declare void @displayMatrix(ptr noundef) #2
declare void @scalarMultiply(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8z3ljabq.c'
source_filename = "/tmp/tmp8z3ljabq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @MatrixMultiply(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca float, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store float 0.000000e+00, ptr %10, align 4
store i32 0, ptr %7, align 4
br label %11
11: ; preds = %58, %3
%12 = load i32, ptr %7, align 4
%13 = icmp slt i32 %12, 3
br i1 %13, label %14, label %61
14: ; preds = %11
store i32 0, ptr %8, align 4
br label %15
15: ; preds = %54, %14
%16 = load i32, ptr %8, align 4
%17 = icmp slt i32 %16, 3
br i1 %17, label %18, label %57
18: ; preds = %15
store float 0.000000e+00, ptr %10, align 4
store i32 0, ptr %9, align 4
br label %19
19: ; preds = %42, %18
%20 = load i32, ptr %9, align 4
%21 = icmp slt i32 %20, 3
br i1 %21, label %22, label %45
22: ; preds = %19
%23 = load float, ptr %10, align 4
%24 = load ptr, ptr %4, align 8
%25 = load i32, ptr %7, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [3 x float], ptr %24, i64 %26
%28 = load i32, ptr %9, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [3 x float], ptr %27, i64 0, i64 %29
%31 = load float, ptr %30, align 4
%32 = load ptr, ptr %5, align 8
%33 = load i32, ptr %9, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [3 x float], ptr %32, i64 %34
%36 = load i32, ptr %8, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [3 x float], ptr %35, i64 0, i64 %37
%39 = load float, ptr %38, align 4
%40 = call float @llvm.fmuladd.f32(float %31, float %39, float %23)
%41 = call float @Round(float noundef %40)
store float %41, ptr %10, align 4
br label %42
42: ; preds = %22
%43 = load i32, ptr %9, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %9, align 4
br label %19, !llvm.loop !6
45: ; preds = %19
%46 = load float, ptr %10, align 4
%47 = load ptr, ptr %6, align 8
%48 = load i32, ptr %7, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [3 x float], ptr %47, i64 %49
%51 = load i32, ptr %8, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [3 x float], ptr %50, i64 0, i64 %52
store float %46, ptr %53, align 4
br label %54
54: ; preds = %45
%55 = load i32, ptr %8, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %8, align 4
br label %15, !llvm.loop !8
57: ; preds = %15
br label %58
58: ; preds = %57
%59 = load i32, ptr %7, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %7, align 4
br label %11, !llvm.loop !9
61: ; preds = %11
ret void
}
declare float @Round(float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8z3ljabq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @MatrixMultiply(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca float, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store float 0.000000e+00, ptr %10, align 4
store i32 0, ptr %7, align 4
%11 = load i32, ptr %7, align 4
%12 = icmp slt i32 %11, 3
br i1 %12, label %.lr.ph5, label %64
.lr.ph5: ; preds = %3
br label %13
13: ; preds = %.lr.ph5, %59
store i32 0, ptr %8, align 4
%14 = load i32, ptr %8, align 4
%15 = icmp slt i32 %14, 3
br i1 %15, label %.lr.ph2, label %58
.lr.ph2: ; preds = %13
br label %16
16: ; preds = %.lr.ph2, %53
store float 0.000000e+00, ptr %10, align 4
store i32 0, ptr %9, align 4
%17 = load i32, ptr %9, align 4
%18 = icmp slt i32 %17, 3
br i1 %18, label %.lr.ph, label %44
.lr.ph: ; preds = %16
br label %19
19: ; preds = %.lr.ph, %39
%20 = load float, ptr %10, align 4
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %7, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [3 x float], ptr %21, i64 %23
%25 = load i32, ptr %9, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [3 x float], ptr %24, i64 0, i64 %26
%28 = load float, ptr %27, align 4
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %9, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [3 x float], ptr %29, i64 %31
%33 = load i32, ptr %8, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [3 x float], ptr %32, i64 0, i64 %34
%36 = load float, ptr %35, align 4
%37 = call float @llvm.fmuladd.f32(float %28, float %36, float %20)
%38 = call float @Round(float noundef %37)
store float %38, ptr %10, align 4
br label %39
39: ; preds = %19
%40 = load i32, ptr %9, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %9, align 4
%42 = load i32, ptr %9, align 4
%43 = icmp slt i32 %42, 3
br i1 %43, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %39
br label %44
44: ; preds = %._crit_edge, %16
%45 = load float, ptr %10, align 4
%46 = load ptr, ptr %6, align 8
%47 = load i32, ptr %7, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [3 x float], ptr %46, i64 %48
%50 = load i32, ptr %8, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [3 x float], ptr %49, i64 0, i64 %51
store float %45, ptr %52, align 4
br label %53
53: ; preds = %44
%54 = load i32, ptr %8, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %8, align 4
%56 = load i32, ptr %8, align 4
%57 = icmp slt i32 %56, 3
br i1 %57, label %16, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %53
br label %58
58: ; preds = %._crit_edge3, %13
br label %59
59: ; preds = %58
%60 = load i32, ptr %7, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %7, align 4
%62 = load i32, ptr %7, align 4
%63 = icmp slt i32 %62, 3
br i1 %63, label %13, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %59
br label %64
64: ; preds = %._crit_edge6, %3
ret void
}
declare float @Round(float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpuqga75uf.c'
source_filename = "/tmp/tmpuqga75uf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @eval_mod(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%5 = load double, ptr %3, align 8
%6 = load double, ptr %4, align 8
%7 = call i64 @fmod(double noundef %5, double noundef %6)
%8 = sitofp i64 %7 to double
ret double %8
}
declare i64 @fmod(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/tmpuqga75uf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @eval_mod(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%5 = load double, ptr %3, align 8
%6 = load double, ptr %4, align 8
%7 = call i64 @fmod(double noundef %5, double noundef %6)
%8 = sitofp i64 %7 to double
ret double %8
}
declare i64 @fmod(double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp__mz2zw0.c'
source_filename = "/tmp/tmp__mz2zw0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s/%s\00", align 1
@.str.1 = private unnamed_addr constant [48 x i8] c"/data/data/klb.android.lovelive_en/shared_prefs\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @llsif_xml_exists(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [2048 x i8], align 16
store ptr %0, ptr %2, align 8
call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 2048, i1 false)
%4 = getelementptr inbounds [2048 x i8], ptr %3, i64 0, i64 0
%5 = load ptr, ptr %2, align 8
%6 = call i32 @sprintf(ptr noundef %4, ptr noundef @.str, ptr noundef @.str.1, ptr noundef %5)
%7 = getelementptr inbounds [2048 x i8], ptr %3, i64 0, i64 0
%8 = call i32 @adb_exists(ptr noundef %7)
ret i32 %8
}
; 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 @sprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @adb_exists(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp__mz2zw0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s/%s\00", align 1
@.str.1 = private unnamed_addr constant [48 x i8] c"/data/data/klb.android.lovelive_en/shared_prefs\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @llsif_xml_exists(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [2048 x i8], align 16
store ptr %0, ptr %2, align 8
call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 2048, i1 false)
%4 = getelementptr inbounds [2048 x i8], ptr %3, i64 0, i64 0
%5 = load ptr, ptr %2, align 8
%6 = call i32 @sprintf(ptr noundef %4, ptr noundef @.str, ptr noundef @.str.1, ptr noundef %5)
%7 = getelementptr inbounds [2048 x i8], ptr %3, i64 0, i64 0
%8 = call i32 @adb_exists(ptr noundef %7)
ret i32 %8
}
; 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 @sprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @adb_exists(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv155bnbb.c'
source_filename = "/tmp/tmpv155bnbb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CODESET = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [11 x i8] c"//TRANSLIT\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"ISO8859-1\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 [7 x i8] c"malloc\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @make_unix_pathname(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [256 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [256 x i8], align 16
%7 = alloca [64 x i8], align 16
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%14 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 0
%15 = load ptr, ptr %2, align 8
%16 = call i32 @strcpy(ptr noundef %14, ptr noundef %15)
store i32 0, ptr %4, align 4
br label %17
17: ; preds = %35, %1
%18 = load i32, ptr %4, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 %19
%21 = load i8, ptr %20, align 1
%22 = icmp ne i8 %21, 0
br i1 %22, label %23, label %38
23: ; preds = %17
%24 = load i32, ptr %4, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %28, 47
br i1 %29, label %30, label %34
30: ; preds = %23
%31 = load i32, ptr %4, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 %32
store i8 95, ptr %33, align 1
br label %34
34: ; preds = %30, %23
br label %35
35: ; preds = %34
%36 = load i32, ptr %4, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %4, align 4
br label %17, !llvm.loop !6
38: ; preds = %17
store i32 0, ptr %5, align 4
br label %39
39: ; preds = %57, %38
%40 = load i32, ptr %5, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 %41
%43 = load i8, ptr %42, align 1
%44 = icmp ne i8 %43, 0
br i1 %44, label %45, label %60
45: ; preds = %39
%46 = load i32, ptr %5, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 %47
%49 = load i8, ptr %48, align 1
%50 = sext i8 %49 to i32
%51 = icmp eq i32 %50, 92
br i1 %51, label %52, label %56
52: ; preds = %45
%53 = load i32, ptr %5, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 %54
store i8 47, ptr %55, align 1
br label %56
56: ; preds = %52, %45
br label %57
57: ; preds = %56
%58 = load i32, ptr %5, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %5, align 4
br label %39, !llvm.loop !8
60: ; preds = %39
%61 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
%62 = load i32, ptr @CODESET, align 4
%63 = call ptr @nl_langinfo(i32 noundef %62)
%64 = call i32 @strcpy(ptr noundef %61, ptr noundef %63)
%65 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
%66 = call i32 @strcat(ptr noundef %65, ptr noundef @.str)
%67 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
%68 = call i32 @iconv_open(ptr noundef %67, ptr noundef @.str.1)
store i32 %68, ptr %8, align 4
%69 = load i32, ptr %8, align 4
%70 = icmp ne i32 %69, 0
br i1 %70, label %73, label %71
71: ; preds = %60
%72 = call i32 @die(ptr noundef @.str.2)
br label %73
73: ; preds = %71, %60
%74 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 0
%75 = call i32 @strlen(ptr noundef %74)
%76 = sext i32 %75 to i64
store i64 %76, ptr %9, align 8
store i64 255, ptr %10, align 8
%77 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 0
store ptr %77, ptr %11, align 8
%78 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
store ptr %78, ptr %12, align 8
%79 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%80 = call i32 @memset(ptr noundef %79, i32 noundef 0, i32 noundef 256)
%81 = load i32, ptr %8, align 4
%82 = call i64 @iconv(i32 noundef %81, ptr noundef %11, ptr noundef %9, ptr noundef %12, ptr noundef %10)
%83 = icmp eq i64 %82, -1
br i1 %83, label %84, label %86
84: ; preds = %73
%85 = call i32 @die(ptr noundef @.str.3)
br label %86
86: ; preds = %84, %73
%87 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%88 = call i32 @strlen(ptr noundef %87)
%89 = add nsw i32 %88, 1
%90 = call ptr @malloc(i32 noundef %89)
store ptr %90, ptr %13, align 8
%91 = load ptr, ptr %13, align 8
%92 = icmp ne ptr %91, null
br i1 %92, label %95, label %93
93: ; preds = %86
%94 = call i32 @die(ptr noundef @.str.4)
br label %95
95: ; preds = %93, %86
%96 = load ptr, ptr %13, align 8
%97 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%98 = call i32 @strcpy(ptr noundef %96, ptr noundef %97)
%99 = load i32, ptr %8, align 4
%100 = call i32 @iconv_close(i32 noundef %99)
%101 = load ptr, ptr %13, align 8
ret ptr %101
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare ptr @nl_langinfo(i32 noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @iconv_open(ptr noundef, ptr noundef) #1
declare i32 @die(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @iconv(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @iconv_close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv155bnbb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CODESET = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [11 x i8] c"//TRANSLIT\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"ISO8859-1\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 [7 x i8] c"malloc\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @make_unix_pathname(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [256 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [256 x i8], align 16
%7 = alloca [64 x i8], align 16
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%14 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 0
%15 = load ptr, ptr %2, align 8
%16 = call i32 @strcpy(ptr noundef %14, ptr noundef %15)
store i32 0, ptr %4, align 4
%17 = load i32, ptr %4, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 %18
%20 = load i8, ptr %19, align 1
%21 = icmp ne i8 %20, 0
br i1 %21, label %.lr.ph, label %42
.lr.ph: ; preds = %1
br label %22
22: ; preds = %.lr.ph, %34
%23 = load i32, ptr %4, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 %24
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 47
br i1 %28, label %29, label %33
29: ; preds = %22
%30 = load i32, ptr %4, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 %31
store i8 95, ptr %32, align 1
br label %33
33: ; preds = %29, %22
br label %34
34: ; preds = %33
%35 = load i32, ptr %4, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %4, align 4
%37 = load i32, ptr %4, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 %38
%40 = load i8, ptr %39, align 1
%41 = icmp ne i8 %40, 0
br i1 %41, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %34
br label %42
42: ; preds = %._crit_edge, %1
store i32 0, ptr %5, align 4
%43 = load i32, ptr %5, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 %44
%46 = load i8, ptr %45, align 1
%47 = icmp ne i8 %46, 0
br i1 %47, label %.lr.ph2, label %68
.lr.ph2: ; preds = %42
br label %48
48: ; preds = %.lr.ph2, %60
%49 = load i32, ptr %5, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 %50
%52 = load i8, ptr %51, align 1
%53 = sext i8 %52 to i32
%54 = icmp eq i32 %53, 92
br i1 %54, label %55, label %59
55: ; preds = %48
%56 = load i32, ptr %5, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 %57
store i8 47, ptr %58, align 1
br label %59
59: ; preds = %55, %48
br label %60
60: ; preds = %59
%61 = load i32, ptr %5, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %5, align 4
%63 = load i32, ptr %5, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 %64
%66 = load i8, ptr %65, align 1
%67 = icmp ne i8 %66, 0
br i1 %67, label %48, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %60
br label %68
68: ; preds = %._crit_edge3, %42
%69 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
%70 = load i32, ptr @CODESET, align 4
%71 = call ptr @nl_langinfo(i32 noundef %70)
%72 = call i32 @strcpy(ptr noundef %69, ptr noundef %71)
%73 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
%74 = call i32 @strcat(ptr noundef %73, ptr noundef @.str)
%75 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 0
%76 = call i32 @iconv_open(ptr noundef %75, ptr noundef @.str.1)
store i32 %76, ptr %8, align 4
%77 = load i32, ptr %8, align 4
%78 = icmp ne i32 %77, 0
br i1 %78, label %81, label %79
79: ; preds = %68
%80 = call i32 @die(ptr noundef @.str.2)
br label %81
81: ; preds = %79, %68
%82 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 0
%83 = call i32 @strlen(ptr noundef %82)
%84 = sext i32 %83 to i64
store i64 %84, ptr %9, align 8
store i64 255, ptr %10, align 8
%85 = getelementptr inbounds [256 x i8], ptr %3, i64 0, i64 0
store ptr %85, ptr %11, align 8
%86 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
store ptr %86, ptr %12, align 8
%87 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%88 = call i32 @memset(ptr noundef %87, i32 noundef 0, i32 noundef 256)
%89 = load i32, ptr %8, align 4
%90 = call i64 @iconv(i32 noundef %89, ptr noundef %11, ptr noundef %9, ptr noundef %12, ptr noundef %10)
%91 = icmp eq i64 %90, -1
br i1 %91, label %92, label %94
92: ; preds = %81
%93 = call i32 @die(ptr noundef @.str.3)
br label %94
94: ; preds = %92, %81
%95 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%96 = call i32 @strlen(ptr noundef %95)
%97 = add nsw i32 %96, 1
%98 = call ptr @malloc(i32 noundef %97)
store ptr %98, ptr %13, align 8
%99 = load ptr, ptr %13, align 8
%100 = icmp ne ptr %99, null
br i1 %100, label %103, label %101
101: ; preds = %94
%102 = call i32 @die(ptr noundef @.str.4)
br label %103
103: ; preds = %101, %94
%104 = load ptr, ptr %13, align 8
%105 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%106 = call i32 @strcpy(ptr noundef %104, ptr noundef %105)
%107 = load i32, ptr %8, align 4
%108 = call i32 @iconv_close(i32 noundef %107)
%109 = load ptr, ptr %13, align 8
ret ptr %109
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare ptr @nl_langinfo(i32 noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @iconv_open(ptr noundef, ptr noundef) #1
declare i32 @die(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @iconv(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @iconv_close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp6bynhnes.c'
source_filename = "/tmp/tmp6bynhnes.c"
target datalayout = "e-m:e-p270: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 }
@.str = private unnamed_addr constant [16 x i8] c"one arg needed\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"start gettime error\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"end gettime error\0A\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"%lu\09%lf elapsed\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 i64, align 8
%8 = alloca i64, align 8
%9 = alloca %struct.timeval, align 8
%10 = alloca %struct.timeval, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca i64, align 8
%14 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 0, ptr %8, align 8
store ptr null, ptr %14, align 8
%15 = load i32, ptr %4, align 4
%16 = icmp ne i32 %15, 2
br i1 %16, label %17, label %19
17: ; preds = %2
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %78
19: ; preds = %2
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = call i64 @strtoul(ptr noundef %22, ptr noundef null, i32 noundef 0)
store i64 %23, ptr %13, align 8
br label %24
24: ; preds = %19
br label %25
25: ; preds = %28, %24
%26 = load ptr, ptr %14, align 8
%27 = icmp eq ptr %26, null
br i1 %27, label %28, label %31
28: ; preds = %25
%29 = call i64 @malloc(i32 noundef 268435456)
%30 = inttoptr i64 %29 to ptr
store ptr %30, ptr %14, align 8
br label %25, !llvm.loop !6
31: ; preds = %25
%32 = call i64 @gettimeofday(ptr noundef %9, ptr noundef null)
store i64 %32, ptr %8, align 8
%33 = load i64, ptr %8, align 8
%34 = icmp ne i64 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %31
%36 = call i32 @perror(ptr noundef @.str.1)
store i32 1, ptr %3, align 4
br label %78
37: ; preds = %31
store i64 0, ptr %7, align 8
br label %38
38: ; preds = %46, %37
%39 = load i64, ptr %7, align 8
%40 = icmp ult i64 %39, 67108864
br i1 %40, label %41, label %50
41: ; preds = %38
%42 = load ptr, ptr %14, align 8
%43 = load i64, ptr %7, align 8
%44 = getelementptr inbounds i32, ptr %42, i64 %43
%45 = load i32, ptr %44, align 4
store i32 %45, ptr %6, align 4
br label %46
46: ; preds = %41
%47 = load i64, ptr %13, align 8
%48 = load i64, ptr %7, align 8
%49 = add i64 %48, %47
store i64 %49, ptr %7, align 8
br label %38, !llvm.loop !8
50: ; preds = %38
%51 = call i64 @gettimeofday(ptr noundef %10, ptr noundef null)
store i64 %51, ptr %8, align 8
%52 = load i64, ptr %8, align 8
%53 = icmp ne i64 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %50
%55 = call i32 @perror(ptr noundef @.str.2)
store i32 1, ptr %3, align 4
br label %78
56: ; preds = %50
%57 = getelementptr inbounds %struct.timeval, ptr %9, i32 0, i32 1
%58 = load i64, ptr %57, align 8
%59 = sitofp i64 %58 to double
%60 = getelementptr inbounds %struct.timeval, ptr %9, i32 0, i32 0
%61 = load i64, ptr %60, align 8
%62 = sitofp i64 %61 to double
%63 = fdiv double %62, 1.000000e+06
%64 = fadd double %59, %63
store double %64, ptr %11, align 8
%65 = getelementptr inbounds %struct.timeval, ptr %10, i32 0, i32 1
%66 = load i64, ptr %65, align 8
%67 = sitofp i64 %66 to double
%68 = getelementptr inbounds %struct.timeval, ptr %10, i32 0, i32 0
%69 = load i64, ptr %68, align 8
%70 = sitofp i64 %69 to double
%71 = fdiv double %70, 1.000000e+06
%72 = fadd double %67, %71
store double %72, ptr %12, align 8
%73 = load i64, ptr %13, align 8
%74 = load double, ptr %12, align 8
%75 = load double, ptr %11, align 8
%76 = fsub double %74, %75
%77 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef %73, double noundef %76)
store i32 0, ptr %3, align 4
br label %78
78: ; preds = %56, %54, %35, %17
%79 = load i32, ptr %3, align 4
ret i32 %79
}
declare i32 @printf(ptr noundef, ...) #1
declare i64 @strtoul(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i64 @gettimeofday(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6bynhnes.c"
target datalayout = "e-m:e-p270: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 }
@.str = private unnamed_addr constant [16 x i8] c"one arg needed\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"start gettime error\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"end gettime error\0A\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"%lu\09%lf elapsed\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 i64, align 8
%8 = alloca i64, align 8
%9 = alloca %struct.timeval, align 8
%10 = alloca %struct.timeval, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca i64, align 8
%14 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 0, ptr %8, align 8
store ptr null, ptr %14, align 8
%15 = load i32, ptr %4, align 4
%16 = icmp ne i32 %15, 2
br i1 %16, label %17, label %19
17: ; preds = %2
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %80
19: ; preds = %2
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = call i64 @strtoul(ptr noundef %22, ptr noundef null, i32 noundef 0)
store i64 %23, ptr %13, align 8
br label %24
24: ; preds = %19
%25 = load ptr, ptr %14, align 8
%26 = icmp eq ptr %25, null
br i1 %26, label %.lr.ph, label %32
.lr.ph: ; preds = %24
br label %27
27: ; preds = %.lr.ph, %27
%28 = call i64 @malloc(i32 noundef 268435456)
%29 = inttoptr i64 %28 to ptr
store ptr %29, ptr %14, align 8
%30 = load ptr, ptr %14, align 8
%31 = icmp eq ptr %30, null
br i1 %31, label %27, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %32
32: ; preds = %._crit_edge, %24
%33 = call i64 @gettimeofday(ptr noundef %9, ptr noundef null)
store i64 %33, ptr %8, align 8
%34 = load i64, ptr %8, align 8
%35 = icmp ne i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %32
%37 = call i32 @perror(ptr noundef @.str.1)
store i32 1, ptr %3, align 4
br label %80
38: ; preds = %32
store i64 0, ptr %7, align 8
%39 = load i64, ptr %7, align 8
%40 = icmp ult i64 %39, 67108864
br i1 %40, label %.lr.ph2, label %52
.lr.ph2: ; preds = %38
br label %41
41: ; preds = %.lr.ph2, %46
%42 = load ptr, ptr %14, align 8
%43 = load i64, ptr %7, align 8
%44 = getelementptr inbounds i32, ptr %42, i64 %43
%45 = load i32, ptr %44, align 4
store i32 %45, ptr %6, align 4
br label %46
46: ; preds = %41
%47 = load i64, ptr %13, align 8
%48 = load i64, ptr %7, align 8
%49 = add i64 %48, %47
store i64 %49, ptr %7, align 8
%50 = load i64, ptr %7, align 8
%51 = icmp ult i64 %50, 67108864
br i1 %51, label %41, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %46
br label %52
52: ; preds = %._crit_edge3, %38
%53 = call i64 @gettimeofday(ptr noundef %10, ptr noundef null)
store i64 %53, ptr %8, align 8
%54 = load i64, ptr %8, align 8
%55 = icmp ne i64 %54, 0
br i1 %55, label %56, label %58
56: ; preds = %52
%57 = call i32 @perror(ptr noundef @.str.2)
store i32 1, ptr %3, align 4
br label %80
58: ; preds = %52
%59 = getelementptr inbounds %struct.timeval, ptr %9, i32 0, i32 1
%60 = load i64, ptr %59, align 8
%61 = sitofp i64 %60 to double
%62 = getelementptr inbounds %struct.timeval, ptr %9, i32 0, i32 0
%63 = load i64, ptr %62, align 8
%64 = sitofp i64 %63 to double
%65 = fdiv double %64, 1.000000e+06
%66 = fadd double %61, %65
store double %66, ptr %11, align 8
%67 = getelementptr inbounds %struct.timeval, ptr %10, i32 0, i32 1
%68 = load i64, ptr %67, align 8
%69 = sitofp i64 %68 to double
%70 = getelementptr inbounds %struct.timeval, ptr %10, i32 0, i32 0
%71 = load i64, ptr %70, align 8
%72 = sitofp i64 %71 to double
%73 = fdiv double %72, 1.000000e+06
%74 = fadd double %69, %73
store double %74, ptr %12, align 8
%75 = load i64, ptr %13, align 8
%76 = load double, ptr %12, align 8
%77 = load double, ptr %11, align 8
%78 = fsub double %76, %77
%79 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef %75, double noundef %78)
store i32 0, ptr %3, align 4
br label %80
80: ; preds = %58, %56, %36, %17
%81 = load i32, ptr %3, align 4
ret i32 %81
}
declare i32 @printf(ptr noundef, ...) #1
declare i64 @strtoul(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i64 @gettimeofday(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp16hhthcs.c'
source_filename = "/tmp/tmp16hhthcs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"a\00", align 1
@.str.2 = private unnamed_addr constant [39 x i8] c"error in writing %s : cannot open file\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @write_string(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @printf(ptr noundef @.str, ptr noundef %6)
%8 = load ptr, ptr %3, align 8
%9 = call ptr @fopen(ptr noundef %8, ptr noundef @.str.1)
store ptr %9, ptr %5, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %17
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = load ptr, ptr %4, align 8
%14 = call i32 @fprintf(ptr noundef %12, ptr noundef @.str, ptr noundef %13)
%15 = load ptr, ptr %5, align 8
%16 = call i32 @fclose(ptr noundef %15)
br label %22
17: ; preds = %2
%18 = load ptr, ptr %4, align 8
%19 = call i32 @printf(ptr noundef @.str.2, ptr noundef %18)
%20 = call i32 (...) @wait_a_char()
%21 = call i32 @exit(i32 noundef 3) #3
unreachable
22: ; preds = %11
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @wait_a_char(...) #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/tmp16hhthcs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"a\00", align 1
@.str.2 = private unnamed_addr constant [39 x i8] c"error in writing %s : cannot open file\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @write_string(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @printf(ptr noundef @.str, ptr noundef %6)
%8 = load ptr, ptr %3, align 8
%9 = call ptr @fopen(ptr noundef %8, ptr noundef @.str.1)
store ptr %9, ptr %5, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %17
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = load ptr, ptr %4, align 8
%14 = call i32 @fprintf(ptr noundef %12, ptr noundef @.str, ptr noundef %13)
%15 = load ptr, ptr %5, align 8
%16 = call i32 @fclose(ptr noundef %15)
br label %22
17: ; preds = %2
%18 = load ptr, ptr %4, align 8
%19 = call i32 @printf(ptr noundef @.str.2, ptr noundef %18)
%20 = call i32 (...) @wait_a_char()
%21 = call i32 @exit(i32 noundef 3) #3
unreachable
22: ; preds = %11
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @wait_a_char(...) #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/tmp5stnn5tr.c'
source_filename = "/tmp/tmp5stnn5tr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINTR = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [18 x i8] c"buf:%s ret_ptr:%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 [256 x i8], align 16
%7 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 256, i1 false)
%8 = load i32, ptr @EINTR, align 4
%9 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%10 = call ptr @strerror_r(i32 noundef %8, ptr noundef %9, i32 noundef 256)
store ptr %10, ptr %7, align 8
%11 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%12 = load ptr, ptr %7, align 8
%13 = call i32 @printf(ptr noundef @.str, ptr noundef %11, ptr noundef %12)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare ptr @strerror_r(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree 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/tmp5stnn5tr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINTR = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [18 x i8] c"buf:%s ret_ptr:%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 [256 x i8], align 16
%7 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 256, i1 false)
%8 = load i32, ptr @EINTR, align 4
%9 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%10 = call ptr @strerror_r(i32 noundef %8, ptr noundef %9, i32 noundef 256)
store ptr %10, ptr %7, align 8
%11 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%12 = load ptr, ptr %7, align 8
%13 = call i32 @printf(ptr noundef @.str, ptr noundef %11, ptr noundef %12)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare ptr @strerror_r(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree 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/tmpgpq54utc.c'
source_filename = "/tmp/tmpgpq54utc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@RAND_MAX = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @reb_random_normal(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store double %0, ptr %2, align 8
store double 1.000000e+00, ptr %5, align 8
br label %6
6: ; preds = %14, %1
%7 = load double, ptr %5, align 8
%8 = fcmp oge double %7, 1.000000e+00
br i1 %8, label %12, label %9
9: ; preds = %6
%10 = load double, ptr %5, align 8
%11 = fcmp olt double %10, 0x3D719799812DEA11
br label %12
12: ; preds = %9, %6
%13 = phi i1 [ true, %6 ], [ %11, %9 ]
br i1 %13, label %14, label %35
14: ; preds = %12
%15 = call i64 (...) @rand()
%16 = sitofp i64 %15 to double
%17 = fmul double 2.000000e+00, %16
%18 = load i64, ptr @RAND_MAX, align 8
%19 = sitofp i64 %18 to double
%20 = fdiv double %17, %19
%21 = fsub double %20, 1.000000e+00
store double %21, ptr %3, align 8
%22 = call i64 (...) @rand()
%23 = sitofp i64 %22 to double
%24 = fmul double 2.000000e+00, %23
%25 = load i64, ptr @RAND_MAX, align 8
%26 = sitofp i64 %25 to double
%27 = fdiv double %24, %26
%28 = fsub double %27, 1.000000e+00
store double %28, ptr %4, align 8
%29 = load double, ptr %3, align 8
%30 = load double, ptr %3, align 8
%31 = load double, ptr %4, align 8
%32 = load double, ptr %4, align 8
%33 = fmul double %31, %32
%34 = call double @llvm.fmuladd.f64(double %29, double %30, double %33)
store double %34, ptr %5, align 8
br label %6, !llvm.loop !6
35: ; preds = %12
%36 = load double, ptr %3, align 8
%37 = load double, ptr %5, align 8
%38 = call i32 @log(double noundef %37)
%39 = sitofp i32 %38 to double
%40 = fmul double -2.000000e+00, %39
%41 = load double, ptr %5, align 8
%42 = fdiv double %40, %41
%43 = load double, ptr %2, align 8
%44 = fmul double %42, %43
%45 = fptosi double %44 to i32
%46 = call double @sqrt(i32 noundef %45)
%47 = fmul double %36, %46
ret double %47
}
declare i64 @rand(...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare double @sqrt(i32 noundef) #1
declare i32 @log(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" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgpq54utc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@RAND_MAX = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @reb_random_normal(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store double %0, ptr %2, align 8
store double 1.000000e+00, ptr %5, align 8
br label %6
6: ; preds = %14, %1
%7 = load double, ptr %5, align 8
%8 = fcmp oge double %7, 1.000000e+00
br i1 %8, label %12, label %9
9: ; preds = %6
%10 = load double, ptr %5, align 8
%11 = fcmp olt double %10, 0x3D719799812DEA11
br label %12
12: ; preds = %9, %6
%13 = phi i1 [ true, %6 ], [ %11, %9 ]
br i1 %13, label %14, label %35
14: ; preds = %12
%15 = call i64 (...) @rand()
%16 = sitofp i64 %15 to double
%17 = fmul double 2.000000e+00, %16
%18 = load i64, ptr @RAND_MAX, align 8
%19 = sitofp i64 %18 to double
%20 = fdiv double %17, %19
%21 = fsub double %20, 1.000000e+00
store double %21, ptr %3, align 8
%22 = call i64 (...) @rand()
%23 = sitofp i64 %22 to double
%24 = fmul double 2.000000e+00, %23
%25 = load i64, ptr @RAND_MAX, align 8
%26 = sitofp i64 %25 to double
%27 = fdiv double %24, %26
%28 = fsub double %27, 1.000000e+00
store double %28, ptr %4, align 8
%29 = load double, ptr %3, align 8
%30 = load double, ptr %3, align 8
%31 = load double, ptr %4, align 8
%32 = load double, ptr %4, align 8
%33 = fmul double %31, %32
%34 = call double @llvm.fmuladd.f64(double %29, double %30, double %33)
store double %34, ptr %5, align 8
br label %6, !llvm.loop !6
35: ; preds = %12
%36 = load double, ptr %3, align 8
%37 = load double, ptr %5, align 8
%38 = call i32 @log(double noundef %37)
%39 = sitofp i32 %38 to double
%40 = fmul double -2.000000e+00, %39
%41 = load double, ptr %5, align 8
%42 = fdiv double %40, %41
%43 = load double, ptr %2, align 8
%44 = fmul double %42, %43
%45 = fptosi double %44 to i32
%46 = call double @sqrt(i32 noundef %45)
%47 = fmul double %36, %46
ret double %47
}
declare i64 @rand(...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare double @sqrt(i32 noundef) #1
declare i32 @log(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" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpo7_0ji7c.c'
source_filename = "/tmp/tmpo7_0ji7c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ft_print_numbers() #0 {
%1 = alloca i8, align 1
store i8 48, ptr %1, align 1
br label %2
2: ; preds = %6, %0
%3 = load i8, ptr %1, align 1
%4 = sext i8 %3 to i32
%5 = icmp sle i32 %4, 57
br i1 %5, label %6, label %11
6: ; preds = %2
%7 = load i8, ptr %1, align 1
%8 = call i32 @ft_putchar(i8 noundef signext %7)
%9 = load i8, ptr %1, align 1
%10 = add i8 %9, 1
store i8 %10, ptr %1, align 1
br label %2, !llvm.loop !6
11: ; preds = %2
ret i32 0
}
declare i32 @ft_putchar(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/tmpo7_0ji7c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ft_print_numbers() #0 {
%1 = alloca i8, align 1
store i8 48, ptr %1, align 1
%2 = load i8, ptr %1, align 1
%3 = sext i8 %2 to i32
%4 = icmp sle i32 %3, 57
br i1 %4, label %.lr.ph, label %13
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %5
%6 = load i8, ptr %1, align 1
%7 = call i32 @ft_putchar(i8 noundef signext %6)
%8 = load i8, ptr %1, align 1
%9 = add i8 %8, 1
store i8 %9, ptr %1, align 1
%10 = load i8, ptr %1, align 1
%11 = sext i8 %10 to i32
%12 = icmp sle i32 %11, 57
br i1 %12, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %5
br label %13
13: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @ft_putchar(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/tmpmm7zxid_.c'
source_filename = "/tmp/tmpmm7zxid_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @display_hide() #0 {
%1 = call i32 (...) @clear()
%2 = call i32 (...) @refresh()
%3 = call i32 (...) @getch()
ret void
}
declare i32 @clear(...) #1
declare i32 @refresh(...) #1
declare i32 @getch(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmm7zxid_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @display_hide() #0 {
%1 = call i32 (...) @clear()
%2 = call i32 (...) @refresh()
%3 = call i32 (...) @getch()
ret void
}
declare i32 @clear(...) #1
declare i32 @refresh(...) #1
declare i32 @getch(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppfwzxd07.c'
source_filename = "/tmp/tmppfwzxd07.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @revcomp_rna(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 @complement_rna(ptr noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @reverse(ptr noundef %5)
ret void
}
declare i32 @complement_rna(ptr noundef) #1
declare i32 @reverse(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppfwzxd07.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @revcomp_rna(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 @complement_rna(ptr noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @reverse(ptr noundef %5)
ret void
}
declare i32 @complement_rna(ptr noundef) #1
declare i32 @reverse(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgeh4zr8i.c'
source_filename = "/tmp/tmpgeh4zr8i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @snoopy_genericregistry_getName(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%6 = load ptr, ptr %4, align 8
%7 = load i32, ptr %5, align 4
%8 = call i64 @snoopy_genericregistry_doesIdExist(ptr noundef %6, i32 noundef %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %16
10: ; preds = %2
%11 = load ptr, ptr %4, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds ptr, ptr %11, i64 %13
%15 = load ptr, ptr %14, align 8
store ptr %15, ptr %3, align 8
br label %17
16: ; preds = %2
store ptr null, ptr %3, align 8
br label %17
17: ; preds = %16, %10
%18 = load ptr, ptr %3, align 8
ret ptr %18
}
declare i64 @snoopy_genericregistry_doesIdExist(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/tmpgeh4zr8i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @snoopy_genericregistry_getName(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%6 = load ptr, ptr %4, align 8
%7 = load i32, ptr %5, align 4
%8 = call i64 @snoopy_genericregistry_doesIdExist(ptr noundef %6, i32 noundef %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %16
10: ; preds = %2
%11 = load ptr, ptr %4, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds ptr, ptr %11, i64 %13
%15 = load ptr, ptr %14, align 8
store ptr %15, ptr %3, align 8
br label %17
16: ; preds = %2
store ptr null, ptr %3, align 8
br label %17
17: ; preds = %16, %10
%18 = load ptr, ptr %3, align 8
ret ptr %18
}
declare i64 @snoopy_genericregistry_doesIdExist(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/tmpd99bt5wx.c'
source_filename = "/tmp/tmpd99bt5wx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"hello\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"hello how are you\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"hi\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @strcomp(ptr noundef @.str.1, ptr noundef @.str.2)
%3 = trunc i32 %2 to i8
%4 = call i32 @printf(ptr noundef @.str, i8 noundef signext %3)
%5 = call i32 @strcomp(ptr noundef @.str.1, ptr noundef @.str.1)
%6 = trunc i32 %5 to i8
%7 = call i32 @printf(ptr noundef @.str, i8 noundef signext %6)
%8 = call i32 @strcomp(ptr noundef @.str.3, ptr noundef @.str.1)
%9 = trunc i32 %8 to i8
%10 = call i32 @printf(ptr noundef @.str, i8 noundef signext %9)
%11 = call i32 @printf(ptr noundef @.str, i8 noundef signext 4)
%12 = load i8, ptr getelementptr inbounds ([3 x i8], ptr @.str.3, i64 0, i64 1), align 1
%13 = sext i8 %12 to i32
%14 = load i8, ptr getelementptr inbounds ([6 x i8], ptr @.str.1, i64 0, i64 1), align 1
%15 = sext i8 %14 to i32
%16 = sub nsw i32 %13, %15
%17 = trunc i32 %16 to i8
%18 = call i32 @printf(ptr noundef @.str, i8 noundef signext %17)
ret i32 0
}
declare i32 @printf(ptr noundef, i8 noundef signext) #1
declare i32 @strcomp(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/tmpd99bt5wx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"hello\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"hello how are you\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"hi\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @strcomp(ptr noundef @.str.1, ptr noundef @.str.2)
%3 = trunc i32 %2 to i8
%4 = call i32 @printf(ptr noundef @.str, i8 noundef signext %3)
%5 = call i32 @strcomp(ptr noundef @.str.1, ptr noundef @.str.1)
%6 = trunc i32 %5 to i8
%7 = call i32 @printf(ptr noundef @.str, i8 noundef signext %6)
%8 = call i32 @strcomp(ptr noundef @.str.3, ptr noundef @.str.1)
%9 = trunc i32 %8 to i8
%10 = call i32 @printf(ptr noundef @.str, i8 noundef signext %9)
%11 = call i32 @printf(ptr noundef @.str, i8 noundef signext 4)
%12 = load i8, ptr getelementptr inbounds ([3 x i8], ptr @.str.3, i64 0, i64 1), align 1
%13 = sext i8 %12 to i32
%14 = load i8, ptr getelementptr inbounds ([6 x i8], ptr @.str.1, i64 0, i64 1), align 1
%15 = sext i8 %14 to i32
%16 = sub nsw i32 %13, %15
%17 = trunc i32 %16 to i8
%18 = call i32 @printf(ptr noundef @.str, i8 noundef signext %17)
ret i32 0
}
declare i32 @printf(ptr noundef, i8 noundef signext) #1
declare i32 @strcomp(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/tmp8thk30oc.c'
source_filename = "/tmp/tmp8thk30oc.c"
target datalayout = "e-m:e-p270: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/tmp8thk30oc.c"
target datalayout = "e-m:e-p270: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/tmp49n8duao.c'
source_filename = "/tmp/tmp49n8duao.c"
target datalayout = "e-m:e-p270: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 [12 x i8] c"Step Zone \0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"%4d %4hd \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i16 @breathFirstSearch(ptr noundef %0, i32 noundef %1, i16 noundef signext %2, i16 noundef signext %3, ptr noundef %4, ptr noundef %5, i8 noundef signext %6) #0 {
%8 = alloca i16, align 2
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i16, align 2
%12 = alloca i16, align 2
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca i8, align 1
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i16, align 2
%19 = alloca i16, align 2
%20 = alloca i32, align 4
%21 = alloca i32, align 4
store ptr %0, ptr %9, align 8
store i32 %1, ptr %10, align 4
store i16 %2, ptr %11, align 2
store i16 %3, ptr %12, align 2
store ptr %4, ptr %13, align 8
store ptr %5, ptr %14, align 8
store i8 %6, ptr %15, align 1
store i32 0, ptr %17, align 4
%22 = load i16, ptr %11, align 2
%23 = load ptr, ptr %13, align 8
%24 = load i32, ptr %17, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %17, align 4
%26 = sext i32 %24 to i64
%27 = getelementptr inbounds i16, ptr %23, i64 %26
store i16 %22, ptr %27, align 2
store i32 0, ptr %16, align 4
br label %28
28: ; preds = %37, %7
%29 = load i32, ptr %16, align 4
%30 = load i32, ptr %10, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %32, label %40
32: ; preds = %28
%33 = load ptr, ptr %14, align 8
%34 = load i32, ptr %16, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i16, ptr %33, i64 %35
store i16 -1, ptr %36, align 2
br label %37
37: ; preds = %32
%38 = load i32, ptr %16, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %16, align 4
br label %28, !llvm.loop !6
40: ; preds = %28
br label %41
41: ; preds = %102, %40
%42 = load i32, ptr %17, align 4
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %103
44: ; preds = %41
%45 = load ptr, ptr %13, align 8
%46 = load i32, ptr %17, align 4
%47 = add nsw i32 %46, -1
store i32 %47, ptr %17, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i16, ptr %45, i64 %48
%50 = load i16, ptr %49, align 2
store i16 %50, ptr %18, align 2
%51 = load i8, ptr %15, align 1
%52 = icmp ne i8 %51, 0
br i1 %52, label %60, label %53
53: ; preds = %44
%54 = load i16, ptr %18, align 2
%55 = sext i16 %54 to i32
%56 = load i16, ptr %12, align 2
%57 = sext i16 %56 to i32
%58 = icmp eq i32 %55, %57
br i1 %58, label %59, label %60
59: ; preds = %53
br label %103
60: ; preds = %53, %44
store i32 0, ptr %16, align 4
br label %61
61: ; preds = %99, %60
%62 = load i32, ptr %16, align 4
%63 = icmp slt i32 %62, 3
br i1 %63, label %64, label %76
64: ; preds = %61
%65 = load ptr, ptr %9, align 8
%66 = load i16, ptr %18, align 2
%67 = sext i16 %66 to i32
%68 = mul nsw i32 %67, 3
%69 = load i32, ptr %16, align 4
%70 = add nsw i32 %68, %69
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i16, ptr %65, i64 %71
%73 = load i16, ptr %72, align 2
store i16 %73, ptr %19, align 2
%74 = sext i16 %73 to i32
%75 = icmp ne i32 %74, -1
br label %76
76: ; preds = %64, %61
%77 = phi i1 [ false, %61 ], [ %75, %64 ]
br i1 %77, label %78, label %102
78: ; preds = %76
%79 = load ptr, ptr %14, align 8
%80 = load i16, ptr %19, align 2
%81 = sext i16 %80 to i64
%82 = getelementptr inbounds i16, ptr %79, i64 %81
%83 = load i16, ptr %82, align 2
%84 = sext i16 %83 to i32
%85 = icmp eq i32 %84, -1
br i1 %85, label %86, label %98
86: ; preds = %78
%87 = load i16, ptr %19, align 2
%88 = load ptr, ptr %13, align 8
%89 = load i32, ptr %17, align 4
%90 = add nsw i32 %89, 1
store i32 %90, ptr %17, align 4
%91 = sext i32 %89 to i64
%92 = getelementptr inbounds i16, ptr %88, i64 %91
store i16 %87, ptr %92, align 2
%93 = load i16, ptr %18, align 2
%94 = load ptr, ptr %14, align 8
%95 = load i16, ptr %19, align 2
%96 = sext i16 %95 to i64
%97 = getelementptr inbounds i16, ptr %94, i64 %96
store i16 %93, ptr %97, align 2
br label %98
98: ; preds = %86, %78
br label %99
99: ; preds = %98
%100 = load i32, ptr %16, align 4
%101 = add nsw i32 %100, 1
store i32 %101, ptr %16, align 4
br label %61, !llvm.loop !8
102: ; preds = %76
br label %41, !llvm.loop !9
103: ; preds = %59, %41
%104 = load i16, ptr %12, align 2
store i16 %104, ptr %18, align 2
%105 = load i16, ptr %18, align 2
%106 = load ptr, ptr %13, align 8
%107 = getelementptr inbounds i16, ptr %106, i64 0
store i16 %105, ptr %107, align 2
store i32 1, ptr %16, align 4
br label %108
108: ; preds = %130, %103
%109 = load i16, ptr %18, align 2
%110 = sext i16 %109 to i32
%111 = load i16, ptr %11, align 2
%112 = sext i16 %111 to i32
%113 = icmp ne i32 %110, %112
br i1 %113, label %114, label %133
114: ; preds = %108
%115 = load ptr, ptr %14, align 8
%116 = load i16, ptr %18, align 2
%117 = sext i16 %116 to i64
%118 = getelementptr inbounds i16, ptr %115, i64 %117
%119 = load i16, ptr %118, align 2
store i16 %119, ptr %18, align 2
%120 = load i16, ptr %18, align 2
%121 = load ptr, ptr %13, align 8
%122 = load i32, ptr %16, align 4
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds i16, ptr %121, i64 %123
store i16 %120, ptr %124, align 2
%125 = load i16, ptr %18, align 2
%126 = sext i16 %125 to i32
%127 = icmp eq i32 %126, -1
br i1 %127, label %128, label %129
128: ; preds = %114
store i16 -1, ptr %8, align 2
br label %163
129: ; preds = %114
br label %130
130: ; preds = %129
%131 = load i32, ptr %16, align 4
%132 = add nsw i32 %131, 1
store i32 %132, ptr %16, align 4
br label %108, !llvm.loop !10
133: ; preds = %108
%134 = load i32, ptr @stderr, align 4
%135 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %134, ptr noundef @.str)
%136 = load i32, ptr %16, align 4
%137 = sub nsw i32 %136, 2
store i32 %137, ptr %20, align 4
store i32 1, ptr %21, align 4
br label %138
138: ; preds = %151, %133
%139 = load i32, ptr %20, align 4
%140 = icmp sge i32 %139, 0
br i1 %140, label %141, label %156
141: ; preds = %138
%142 = load i32, ptr @stderr, align 4
%143 = load i32, ptr %21, align 4
%144 = load ptr, ptr %13, align 8
%145 = load i32, ptr %20, align 4
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds i16, ptr %144, i64 %146
%148 = load i16, ptr %147, align 2
%149 = sext i16 %148 to i32
%150 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %142, ptr noundef @.str.1, i32 noundef %143, i32 noundef %149)
br label %151
151: ; preds = %141
%152 = load i32, ptr %20, align 4
%153 = add nsw i32 %152, -1
store i32 %153, ptr %20, align 4
%154 = load i32, ptr %21, align 4
%155 = add nsw i32 %154, 1
store i32 %155, ptr %21, align 4
br label %138, !llvm.loop !11
156: ; preds = %138
%157 = load ptr, ptr %13, align 8
%158 = load i32, ptr %16, align 4
%159 = sub nsw i32 %158, 2
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds i16, ptr %157, i64 %160
%162 = load i16, ptr %161, align 2
store i16 %162, ptr %8, align 2
br label %163
163: ; preds = %156, %128
%164 = load i16, ptr %8, align 2
ret i16 %164
}
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp49n8duao.c"
target datalayout = "e-m:e-p270: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 [12 x i8] c"Step Zone \0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"%4d %4hd \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i16 @breathFirstSearch(ptr noundef %0, i32 noundef %1, i16 noundef signext %2, i16 noundef signext %3, ptr noundef %4, ptr noundef %5, i8 noundef signext %6) #0 {
%8 = alloca i16, align 2
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i16, align 2
%12 = alloca i16, align 2
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca i8, align 1
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i16, align 2
%19 = alloca i16, align 2
%20 = alloca i32, align 4
%21 = alloca i32, align 4
store ptr %0, ptr %9, align 8
store i32 %1, ptr %10, align 4
store i16 %2, ptr %11, align 2
store i16 %3, ptr %12, align 2
store ptr %4, ptr %13, align 8
store ptr %5, ptr %14, align 8
store i8 %6, ptr %15, align 1
store i32 0, ptr %17, align 4
%22 = load i16, ptr %11, align 2
%23 = load ptr, ptr %13, align 8
%24 = load i32, ptr %17, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %17, align 4
%26 = sext i32 %24 to i64
%27 = getelementptr inbounds i16, ptr %23, i64 %26
store i16 %22, ptr %27, align 2
store i32 0, ptr %16, align 4
%28 = load i32, ptr %16, align 4
%29 = load i32, ptr %10, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %.lr.ph, label %42
.lr.ph: ; preds = %7
br label %31
31: ; preds = %.lr.ph, %36
%32 = load ptr, ptr %14, align 8
%33 = load i32, ptr %16, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i16, ptr %32, i64 %34
store i16 -1, ptr %35, align 2
br label %36
36: ; preds = %31
%37 = load i32, ptr %16, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %16, align 4
%39 = load i32, ptr %16, align 4
%40 = load i32, ptr %10, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %31, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %36
br label %42
42: ; preds = %._crit_edge, %7
%43 = load i32, ptr %17, align 4
%44 = icmp ne i32 %43, 0
br i1 %44, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %42
br label %45
45: ; preds = %.lr.ph2, %103
%46 = load ptr, ptr %13, align 8
%47 = load i32, ptr %17, align 4
%48 = add nsw i32 %47, -1
store i32 %48, ptr %17, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i16, ptr %46, i64 %49
%51 = load i16, ptr %50, align 2
store i16 %51, ptr %18, align 2
%52 = load i8, ptr %15, align 1
%53 = icmp ne i8 %52, 0
br i1 %53, label %61, label %54
54: ; preds = %45
%55 = load i16, ptr %18, align 2
%56 = sext i16 %55 to i32
%57 = load i16, ptr %12, align 2
%58 = sext i16 %57 to i32
%59 = icmp eq i32 %56, %58
br i1 %59, label %60, label %61
60: ; preds = %54
br label %106
61: ; preds = %54, %45
store i32 0, ptr %16, align 4
br label %62
62: ; preds = %100, %61
%63 = load i32, ptr %16, align 4
%64 = icmp slt i32 %63, 3
br i1 %64, label %65, label %77
65: ; preds = %62
%66 = load ptr, ptr %9, align 8
%67 = load i16, ptr %18, align 2
%68 = sext i16 %67 to i32
%69 = mul nsw i32 %68, 3
%70 = load i32, ptr %16, align 4
%71 = add nsw i32 %69, %70
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i16, ptr %66, i64 %72
%74 = load i16, ptr %73, align 2
store i16 %74, ptr %19, align 2
%75 = sext i16 %74 to i32
%76 = icmp ne i32 %75, -1
br label %77
77: ; preds = %65, %62
%78 = phi i1 [ false, %62 ], [ %76, %65 ]
br i1 %78, label %79, label %103
79: ; preds = %77
%80 = load ptr, ptr %14, align 8
%81 = load i16, ptr %19, align 2
%82 = sext i16 %81 to i64
%83 = getelementptr inbounds i16, ptr %80, i64 %82
%84 = load i16, ptr %83, align 2
%85 = sext i16 %84 to i32
%86 = icmp eq i32 %85, -1
br i1 %86, label %87, label %99
87: ; preds = %79
%88 = load i16, ptr %19, align 2
%89 = load ptr, ptr %13, align 8
%90 = load i32, ptr %17, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %17, align 4
%92 = sext i32 %90 to i64
%93 = getelementptr inbounds i16, ptr %89, i64 %92
store i16 %88, ptr %93, align 2
%94 = load i16, ptr %18, align 2
%95 = load ptr, ptr %14, align 8
%96 = load i16, ptr %19, align 2
%97 = sext i16 %96 to i64
%98 = getelementptr inbounds i16, ptr %95, i64 %97
store i16 %94, ptr %98, align 2
br label %99
99: ; preds = %87, %79
br label %100
100: ; preds = %99
%101 = load i32, ptr %16, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %16, align 4
br label %62, !llvm.loop !8
103: ; preds = %77
%104 = load i32, ptr %17, align 4
%105 = icmp ne i32 %104, 0
br i1 %105, label %45, label %..loopexit_crit_edge, !llvm.loop !9
..loopexit_crit_edge: ; preds = %103
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %42
br label %106
106: ; preds = %.loopexit, %60
%107 = load i16, ptr %12, align 2
store i16 %107, ptr %18, align 2
%108 = load i16, ptr %18, align 2
%109 = load ptr, ptr %13, align 8
%110 = getelementptr inbounds i16, ptr %109, i64 0
store i16 %108, ptr %110, align 2
store i32 1, ptr %16, align 4
%111 = load i16, ptr %18, align 2
%112 = sext i16 %111 to i32
%113 = load i16, ptr %11, align 2
%114 = sext i16 %113 to i32
%115 = icmp ne i32 %112, %114
br i1 %115, label %.lr.ph4, label %140
.lr.ph4: ; preds = %106
br label %116
116: ; preds = %.lr.ph4, %132
%117 = load ptr, ptr %14, align 8
%118 = load i16, ptr %18, align 2
%119 = sext i16 %118 to i64
%120 = getelementptr inbounds i16, ptr %117, i64 %119
%121 = load i16, ptr %120, align 2
store i16 %121, ptr %18, align 2
%122 = load i16, ptr %18, align 2
%123 = load ptr, ptr %13, align 8
%124 = load i32, ptr %16, align 4
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds i16, ptr %123, i64 %125
store i16 %122, ptr %126, align 2
%127 = load i16, ptr %18, align 2
%128 = sext i16 %127 to i32
%129 = icmp eq i32 %128, -1
br i1 %129, label %130, label %131
130: ; preds = %116
store i16 -1, ptr %8, align 2
br label %171
131: ; preds = %116
br label %132
132: ; preds = %131
%133 = load i32, ptr %16, align 4
%134 = add nsw i32 %133, 1
store i32 %134, ptr %16, align 4
%135 = load i16, ptr %18, align 2
%136 = sext i16 %135 to i32
%137 = load i16, ptr %11, align 2
%138 = sext i16 %137 to i32
%139 = icmp ne i32 %136, %138
br i1 %139, label %116, label %._crit_edge5, !llvm.loop !10
._crit_edge5: ; preds = %132
br label %140
140: ; preds = %._crit_edge5, %106
%141 = load i32, ptr @stderr, align 4
%142 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %141, ptr noundef @.str)
%143 = load i32, ptr %16, align 4
%144 = sub nsw i32 %143, 2
store i32 %144, ptr %20, align 4
store i32 1, ptr %21, align 4
%145 = load i32, ptr %20, align 4
%146 = icmp sge i32 %145, 0
br i1 %146, label %.lr.ph7, label %164
.lr.ph7: ; preds = %140
br label %147
147: ; preds = %.lr.ph7, %157
%148 = load i32, ptr @stderr, align 4
%149 = load i32, ptr %21, align 4
%150 = load ptr, ptr %13, align 8
%151 = load i32, ptr %20, align 4
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds i16, ptr %150, i64 %152
%154 = load i16, ptr %153, align 2
%155 = sext i16 %154 to i32
%156 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %148, ptr noundef @.str.1, i32 noundef %149, i32 noundef %155)
br label %157
157: ; preds = %147
%158 = load i32, ptr %20, align 4
%159 = add nsw i32 %158, -1
store i32 %159, ptr %20, align 4
%160 = load i32, ptr %21, align 4
%161 = add nsw i32 %160, 1
store i32 %161, ptr %21, align 4
%162 = load i32, ptr %20, align 4
%163 = icmp sge i32 %162, 0
br i1 %163, label %147, label %._crit_edge8, !llvm.loop !11
._crit_edge8: ; preds = %157
br label %164
164: ; preds = %._crit_edge8, %140
%165 = load ptr, ptr %13, align 8
%166 = load i32, ptr %16, align 4
%167 = sub nsw i32 %166, 2
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds i16, ptr %165, i64 %168
%170 = load i16, ptr %169, align 2
store i16 %170, ptr %8, align 2
br label %171
171: ; preds = %164, %130
%172 = load i16, ptr %8, align 2
ret i16 %172
}
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmpjx4suwg7.c'
source_filename = "/tmp/tmpjx4suwg7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @c3(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = fadd double 3.140000e+00, %3
%5 = call double @sin(double noundef %4) #2
ret double %5
}
; Function Attrs: nounwind
declare double @sin(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjx4suwg7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @c3(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = fadd double 3.140000e+00, %3
%5 = call double @sin(double noundef %4) #2
ret double %5
}
; Function Attrs: nounwind
declare double @sin(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5slyj0do.c'
source_filename = "/tmp/tmp5slyj0do.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_getopt_long_only_r(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
store i32 %0, ptr %7, align 4
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%13 = load i32, ptr %7, align 4
%14 = load ptr, ptr %8, align 8
%15 = load ptr, ptr %9, align 8
%16 = load ptr, ptr %10, align 8
%17 = load ptr, ptr %11, align 8
%18 = load ptr, ptr %12, align 8
%19 = call i32 @_getopt_internal_r(i32 noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, i32 noundef 1, ptr noundef %18)
ret i32 %19
}
declare i32 @_getopt_internal_r(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr 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/tmp5slyj0do.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_getopt_long_only_r(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
store i32 %0, ptr %7, align 4
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%13 = load i32, ptr %7, align 4
%14 = load ptr, ptr %8, align 8
%15 = load ptr, ptr %9, align 8
%16 = load ptr, ptr %10, align 8
%17 = load ptr, ptr %11, align 8
%18 = load ptr, ptr %12, align 8
%19 = call i32 @_getopt_internal_r(i32 noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, i32 noundef 1, ptr noundef %18)
ret i32 %19
}
declare i32 @_getopt_internal_r(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr 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/tmp_je5rjbt.c'
source_filename = "/tmp/tmp_je5rjbt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mc_int32_value(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 null, %3
br i1 %4, label %5, label %9
5: ; preds = %1
%6 = load ptr, ptr %2, align 8
%7 = call i64 @strtol(ptr noundef %6, i32 noundef 0, i32 noundef 10)
%8 = trunc i64 %7 to i32
br label %10
9: ; preds = %1
br label %10
10: ; preds = %9, %5
%11 = phi i32 [ %8, %5 ], [ 0, %9 ]
ret i32 %11
}
declare i64 @strtol(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/tmp_je5rjbt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mc_int32_value(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 null, %3
br i1 %4, label %5, label %9
5: ; preds = %1
%6 = load ptr, ptr %2, align 8
%7 = call i64 @strtol(ptr noundef %6, i32 noundef 0, i32 noundef 10)
%8 = trunc i64 %7 to i32
br label %10
9: ; preds = %1
br label %10
10: ; preds = %9, %5
%11 = phi i32 [ %8, %5 ], [ 0, %9 ]
ret i32 %11
}
declare i64 @strtol(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/tmpvptaymvn.c'
source_filename = "/tmp/tmpvptaymvn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @writeblock(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %5, align 4
%9 = load ptr, ptr %6, align 8
%10 = call i32 @buffer_write(i32 noundef %7, i32 noundef %8, ptr noundef %9, i32 noundef 1)
ret void
}
declare i32 @buffer_write(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvptaymvn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @writeblock(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %5, align 4
%9 = load ptr, ptr %6, align 8
%10 = call i32 @buffer_write(i32 noundef %7, i32 noundef %8, ptr noundef %9, i32 noundef 1)
ret void
}
declare i32 @buffer_write(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp388mm5zu.c'
source_filename = "/tmp/tmp388mm5zu.c"
target datalayout = "e-m:e-p270: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 on ioctl call\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ivshmem_recv(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
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 0, ptr %7, align 4
%8 = load i32, ptr %4, align 4
%9 = load i32, ptr %5, align 4
%10 = call i32 @ioctl(i32 noundef %8, i32 noundef %9, ptr noundef %7)
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 %17
13: ; preds = %2
%14 = load i32, ptr @stderr, align 4
%15 = call i32 @fprintf(i32 noundef %14, ptr noundef @.str)
%16 = load i32, ptr %6, align 4
store i32 %16, ptr %3, align 4
br label %19
17: ; preds = %2
%18 = load i32, ptr %7, align 4
store i32 %18, ptr %3, align 4
br label %19
19: ; preds = %17, %13
%20 = load i32, ptr %3, align 4
ret i32 %20
}
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp388mm5zu.c"
target datalayout = "e-m:e-p270: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 on ioctl call\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ivshmem_recv(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
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 0, ptr %7, align 4
%8 = load i32, ptr %4, align 4
%9 = load i32, ptr %5, align 4
%10 = call i32 @ioctl(i32 noundef %8, i32 noundef %9, ptr noundef %7)
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 %17
13: ; preds = %2
%14 = load i32, ptr @stderr, align 4
%15 = call i32 @fprintf(i32 noundef %14, ptr noundef @.str)
%16 = load i32, ptr %6, align 4
store i32 %16, ptr %3, align 4
br label %19
17: ; preds = %2
%18 = load i32, ptr %7, align 4
store i32 %18, ptr %3, align 4
br label %19
19: ; preds = %17, %13
%20 = load i32, ptr %3, align 4
ret i32 %20
}
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp13pvfbf3.c'
source_filename = "/tmp/tmp13pvfbf3.c"
target datalayout = "e-m:e-p270: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/tmp13pvfbf3.c"
target datalayout = "e-m:e-p270: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/tmpq2awcga4.c'
source_filename = "/tmp/tmpq2awcga4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"< Enter >\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @displayEnterString(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 @clearLCDLine(i32 noundef %3)
%5 = load i32, ptr %2, align 4
%6 = call i32 @displayLCDString(i32 noundef %5, i32 noundef 0, ptr noundef @.str)
ret void
}
declare i32 @clearLCDLine(i32 noundef) #1
declare i32 @displayLCDString(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/tmpq2awcga4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"< Enter >\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @displayEnterString(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 @clearLCDLine(i32 noundef %3)
%5 = load i32, ptr %2, align 4
%6 = call i32 @displayLCDString(i32 noundef %5, i32 noundef 0, ptr noundef @.str)
ret void
}
declare i32 @clearLCDLine(i32 noundef) #1
declare i32 @displayLCDString(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/tmpi7qrukpq.c'
source_filename = "/tmp/tmpi7qrukpq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @set_signals()
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = call i32 @getargs(i32 noundef %7, ptr noundef %8)
%10 = call i32 (...) @open_files()
%11 = call i32 (...) @reader()
%12 = call i32 (...) @write_temporary_output()
%13 = call i32 (...) @lr0()
%14 = call i32 (...) @lalr()
%15 = call i32 (...) @make_parser()
%16 = call i32 (...) @verbose()
%17 = call i32 (...) @output()
%18 = call i32 @done(i32 noundef 0)
ret i32 1
}
declare i32 @set_signals(...) #1
declare i32 @getargs(i32 noundef, ptr noundef) #1
declare i32 @open_files(...) #1
declare i32 @reader(...) #1
declare i32 @write_temporary_output(...) #1
declare i32 @lr0(...) #1
declare i32 @lalr(...) #1
declare i32 @make_parser(...) #1
declare i32 @verbose(...) #1
declare i32 @output(...) #1
declare i32 @done(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/tmpi7qrukpq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @set_signals()
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = call i32 @getargs(i32 noundef %7, ptr noundef %8)
%10 = call i32 (...) @open_files()
%11 = call i32 (...) @reader()
%12 = call i32 (...) @write_temporary_output()
%13 = call i32 (...) @lr0()
%14 = call i32 (...) @lalr()
%15 = call i32 (...) @make_parser()
%16 = call i32 (...) @verbose()
%17 = call i32 (...) @output()
%18 = call i32 @done(i32 noundef 0)
ret i32 1
}
declare i32 @set_signals(...) #1
declare i32 @getargs(i32 noundef, ptr noundef) #1
declare i32 @open_files(...) #1
declare i32 @reader(...) #1
declare i32 @write_temporary_output(...) #1
declare i32 @lr0(...) #1
declare i32 @lalr(...) #1
declare i32 @make_parser(...) #1
declare i32 @verbose(...) #1
declare i32 @output(...) #1
declare i32 @done(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/tmp4fvvfybq.c'
source_filename = "/tmp/tmp4fvvfybq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_3__ = type { i64, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local { i64, i64 } @ldiv(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca %struct.TYPE_3__, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store i64 %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%6 = load i64, ptr %4, align 8
%7 = load i64, ptr %5, align 8
%8 = sdiv i64 %6, %7
%9 = getelementptr inbounds %struct.TYPE_3__, ptr %3, i32 0, i32 0
store i64 %8, ptr %9, align 8
%10 = load i64, ptr %4, align 8
%11 = load i64, ptr %5, align 8
%12 = srem i64 %10, %11
%13 = getelementptr inbounds %struct.TYPE_3__, ptr %3, i32 0, i32 1
store i64 %12, ptr %13, align 8
%14 = load { i64, i64 }, ptr %3, align 8
ret { i64, i64 } %14
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4fvvfybq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_3__ = type { i64, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local { i64, i64 } @ldiv(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca %struct.TYPE_3__, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store i64 %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%6 = load i64, ptr %4, align 8
%7 = load i64, ptr %5, align 8
%8 = sdiv i64 %6, %7
%9 = getelementptr inbounds %struct.TYPE_3__, ptr %3, i32 0, i32 0
store i64 %8, ptr %9, align 8
%10 = load i64, ptr %4, align 8
%11 = load i64, ptr %5, align 8
%12 = srem i64 %10, %11
%13 = getelementptr inbounds %struct.TYPE_3__, ptr %3, i32 0, i32 1
store i64 %12, ptr %13, align 8
%14 = load { i64, i64 }, ptr %3, align 8
ret { i64, i64 } %14
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpayaqlqti.c'
source_filename = "/tmp/tmpayaqlqti.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.array = private unnamed_addr constant [9 x i32] [i32 7, i32 42, i32 0, i32 27, i32 16, i32 8, i32 4, i32 15, i32 -15], align 16
@.str = private unnamed_addr constant [23 x i8] c"\0A\0AUnsorted array is: \00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c" %d \00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"\0A\0ASorted array is: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [9 x i32], align 16
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.array, i64 36, i1 false)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %7, align 4
br label %9
9: ; preds = %18, %2
%10 = load i32, ptr %7, align 4
%11 = icmp slt i32 %10, 9
br i1 %11, label %12, label %21
12: ; preds = %9
%13 = load i32, ptr %7, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [9 x i32], ptr %6, i64 0, 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 = %12
%19 = load i32, ptr %7, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %7, align 4
br label %9, !llvm.loop !6
21: ; preds = %9
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%23 = getelementptr inbounds [9 x i32], ptr %6, i64 0, i64 0
%24 = call i32 @insertionSort(ptr noundef %23, i32 noundef 9)
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %7, align 4
br label %26
26: ; preds = %35, %21
%27 = load i32, ptr %7, align 4
%28 = icmp slt i32 %27, 9
br i1 %28, label %29, label %38
29: ; preds = %26
%30 = load i32, ptr %7, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [9 x i32], ptr %6, i64 0, i64 %31
%33 = load i32, ptr %32, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %33)
br label %35
35: ; preds = %29
%36 = load i32, ptr %7, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %7, align 4
br label %26, !llvm.loop !8
38: ; preds = %26
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
declare i32 @insertionSort(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpayaqlqti.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.array = private unnamed_addr constant [9 x i32] [i32 7, i32 42, i32 0, i32 27, i32 16, i32 8, i32 4, i32 15, i32 -15], align 16
@.str = private unnamed_addr constant [23 x i8] c"\0A\0AUnsorted array is: \00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c" %d \00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"\0A\0ASorted array is: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [9 x i32], align 16
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.array, i64 36, i1 false)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %7, align 4
%9 = load i32, ptr %7, align 4
%10 = icmp slt i32 %9, 9
br i1 %10, label %.lr.ph, label %22
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %17
%12 = load i32, ptr %7, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [9 x i32], ptr %6, i64 0, 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 = %11
%18 = load i32, ptr %7, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %7, align 4
%20 = load i32, ptr %7, align 4
%21 = icmp slt i32 %20, 9
br i1 %21, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %22
22: ; preds = %._crit_edge, %2
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%24 = getelementptr inbounds [9 x i32], ptr %6, i64 0, i64 0
%25 = call i32 @insertionSort(ptr noundef %24, i32 noundef 9)
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %7, align 4
%27 = load i32, ptr %7, align 4
%28 = icmp slt i32 %27, 9
br i1 %28, label %.lr.ph2, label %40
.lr.ph2: ; preds = %22
br label %29
29: ; preds = %.lr.ph2, %35
%30 = load i32, ptr %7, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [9 x i32], ptr %6, i64 0, i64 %31
%33 = load i32, ptr %32, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %33)
br label %35
35: ; preds = %29
%36 = load i32, ptr %7, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %7, align 4
%38 = load i32, ptr %7, align 4
%39 = icmp slt i32 %38, 9
br i1 %39, label %29, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %35
br label %40
40: ; preds = %._crit_edge3, %22
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
declare i32 @insertionSort(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpr01s4ga1.c'
source_filename = "/tmp/tmpr01s4ga1.c"
target datalayout = "e-m:e-p270: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/tmpr01s4ga1.c"
target datalayout = "e-m:e-p270: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/tmpeqk4u273.c'
source_filename = "/tmp/tmpeqk4u273.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIG_BLOCK = dso_local global i32 0, align 4
@NSIG = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sigblock(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%7 = call i64 @__sigemptyset(ptr noundef %5)
%8 = icmp slt i64 %7, 0
br i1 %8, label %9, label %10
9: ; preds = %1
store i32 -1, ptr %2, align 4
br label %19
10: ; preds = %1
%11 = load i32, ptr %3, align 4
store i32 %11, ptr %5, align 4
%12 = load i32, ptr @SIG_BLOCK, align 4
%13 = call i64 @sigprocmask(i32 noundef %12, ptr noundef %5, ptr noundef %6)
%14 = icmp slt i64 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %10
store i32 -1, ptr %2, align 4
br label %19
16: ; preds = %10
%17 = load i32, ptr %6, align 4
store i32 %17, ptr %3, align 4
%18 = load i32, ptr %3, align 4
store i32 %18, ptr %2, align 4
br label %19
19: ; preds = %16, %15, %9
%20 = load i32, ptr %2, align 4
ret i32 %20
}
declare i64 @__sigemptyset(ptr noundef) #1
declare i64 @sigprocmask(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeqk4u273.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIG_BLOCK = dso_local global i32 0, align 4
@NSIG = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sigblock(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%7 = call i64 @__sigemptyset(ptr noundef %5)
%8 = icmp slt i64 %7, 0
br i1 %8, label %9, label %10
9: ; preds = %1
store i32 -1, ptr %2, align 4
br label %19
10: ; preds = %1
%11 = load i32, ptr %3, align 4
store i32 %11, ptr %5, align 4
%12 = load i32, ptr @SIG_BLOCK, align 4
%13 = call i64 @sigprocmask(i32 noundef %12, ptr noundef %5, ptr noundef %6)
%14 = icmp slt i64 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %10
store i32 -1, ptr %2, align 4
br label %19
16: ; preds = %10
%17 = load i32, ptr %6, align 4
store i32 %17, ptr %3, align 4
%18 = load i32, ptr %3, align 4
store i32 %18, ptr %2, align 4
br label %19
19: ; preds = %16, %15, %9
%20 = load i32, ptr %2, align 4
ret i32 %20
}
declare i64 @__sigemptyset(ptr noundef) #1
declare i64 @sigprocmask(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfisjksef.c'
source_filename = "/tmp/tmpfisjksef.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
store i32 1, ptr %6, align 4
br label %7
7: ; preds = %18, %2
%8 = load i32, ptr %6, 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 %5, align 8
%13 = load i32, ptr %6, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds ptr, ptr %12, i64 %14
%16 = load ptr, ptr %15, align 8
%17 = call i32 @dump_file(ptr noundef %16)
br label %18
18: ; preds = %11
%19 = load i32, ptr %6, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %6, align 4
br label %7, !llvm.loop !6
21: ; preds = %7
ret i32 0
}
declare i32 @dump_file(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpfisjksef.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
store i32 1, ptr %6, align 4
%7 = load i32, ptr %6, 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 %5, align 8
%12 = load i32, ptr %6, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds ptr, ptr %11, i64 %13
%15 = load ptr, ptr %14, align 8
%16 = call i32 @dump_file(ptr noundef %15)
br label %17
17: ; preds = %10
%18 = load i32, ptr %6, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %6, align 4
%20 = load i32, ptr %6, 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
ret i32 0
}
declare i32 @dump_file(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmphjq2mti3.c'
source_filename = "/tmp/tmphjq2mti3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 i32, align 4
%2 = alloca [10 x double], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 @time(ptr noundef null)
%6 = call i32 @srand(i32 noundef %5)
store i32 0, ptr %3, align 4
br label %7
7: ; preds = %15, %0
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 10
br i1 %9, label %10, label %18
10: ; preds = %7
%11 = call double @randomDouble(i32 noundef 1000000, i32 noundef 100)
%12 = load i32, ptr %3, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [10 x double], ptr %2, i64 0, i64 %13
store double %11, ptr %14, align 8
br label %15
15: ; preds = %10
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %3, align 4
br label %7, !llvm.loop !6
18: ; preds = %7
store i32 0, ptr %4, align 4
br label %19
19: ; preds = %28, %18
%20 = load i32, ptr %4, align 4
%21 = icmp slt i32 %20, 10
br i1 %21, label %22, label %31
22: ; preds = %19
%23 = load i32, ptr %4, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [10 x double], ptr %2, i64 0, i64 %24
%26 = load double, ptr %25, align 8
%27 = call i32 @printf(ptr noundef @.str, double noundef %26)
br label %28
28: ; preds = %22
%29 = load i32, ptr %4, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %4, align 4
br label %19, !llvm.loop !8
31: ; preds = %19
%32 = load i32, ptr %1, align 4
ret i32 %32
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare double @randomDouble(i32 noundef, i32 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/tmphjq2mti3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 i32, align 4
%2 = alloca [10 x double], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 @time(ptr noundef null)
%6 = call i32 @srand(i32 noundef %5)
store i32 0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 10
br i1 %8, label %.lr.ph, label %19
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %14
%10 = call double @randomDouble(i32 noundef 1000000, i32 noundef 100)
%11 = load i32, ptr %3, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [10 x double], ptr %2, i64 0, i64 %12
store double %10, ptr %13, align 8
br label %14
14: ; preds = %9
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %3, align 4
%17 = load i32, ptr %3, align 4
%18 = icmp slt i32 %17, 10
br i1 %18, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %19
19: ; preds = %._crit_edge, %0
store i32 0, ptr %4, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp slt i32 %20, 10
br i1 %21, label %.lr.ph2, label %33
.lr.ph2: ; preds = %19
br label %22
22: ; preds = %.lr.ph2, %28
%23 = load i32, ptr %4, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [10 x double], ptr %2, i64 0, i64 %24
%26 = load double, ptr %25, align 8
%27 = call i32 @printf(ptr noundef @.str, double noundef %26)
br label %28
28: ; preds = %22
%29 = load i32, ptr %4, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %4, align 4
%31 = load i32, ptr %4, align 4
%32 = icmp slt i32 %31, 10
br i1 %32, label %22, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %28
br label %33
33: ; preds = %._crit_edge3, %19
%34 = load i32, ptr %1, align 4
ret i32 %34
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare double @randomDouble(i32 noundef, i32 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/tmp84c0vsjs.c'
source_filename = "/tmp/tmp84c0vsjs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"Enter a positive integer: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%i\00", align 1
@.str.2 = private unnamed_addr constant [28 x i8] c"Your number was not prime.\0A\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"Your number was prime.\0A\00", align 1
@.str.4 = private unnamed_addr constant [38 x i8] c"Error: Something unexpected happened\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%6 = load i32, ptr %2, align 4
%7 = call i32 @sieve_of_eratosthenes(i32 noundef %6)
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %12
10: ; preds = %0
%11 = call i32 @printf(ptr noundef @.str.2)
br label %20
12: ; preds = %0
%13 = load i32, ptr %3, align 4
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call i32 @printf(ptr noundef @.str.3)
br label %19
17: ; preds = %12
%18 = call i32 @printf(ptr noundef @.str.4)
br label %19
19: ; preds = %17, %15
br label %20
20: ; preds = %19, %10
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @sieve_of_eratosthenes(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/tmp84c0vsjs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"Enter a positive integer: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%i\00", align 1
@.str.2 = private unnamed_addr constant [28 x i8] c"Your number was not prime.\0A\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"Your number was prime.\0A\00", align 1
@.str.4 = private unnamed_addr constant [38 x i8] c"Error: Something unexpected happened\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%6 = load i32, ptr %2, align 4
%7 = call i32 @sieve_of_eratosthenes(i32 noundef %6)
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %12
10: ; preds = %0
%11 = call i32 @printf(ptr noundef @.str.2)
br label %20
12: ; preds = %0
%13 = load i32, ptr %3, align 4
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call i32 @printf(ptr noundef @.str.3)
br label %19
17: ; preds = %12
%18 = call i32 @printf(ptr noundef @.str.4)
br label %19
19: ; preds = %17, %15
br label %20
20: ; preds = %19, %10
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @sieve_of_eratosthenes(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/tmpqyplga35.c'
source_filename = "/tmp/tmpqyplga35.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"2101\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @eof_ui_deregister(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = call i32 @write_all(i32 noundef %4, ptr noundef @.str, i32 noundef 4)
%6 = icmp ne i32 %5, 4
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 0, ptr %2, align 4
br label %9
8: ; preds = %1
store i32 1, ptr %2, align 4
br label %9
9: ; preds = %8, %7
%10 = load i32, ptr %2, align 4
ret i32 %10
}
declare i32 @write_all(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/tmpqyplga35.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"2101\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @eof_ui_deregister(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = call i32 @write_all(i32 noundef %4, ptr noundef @.str, i32 noundef 4)
%6 = icmp ne i32 %5, 4
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 0, ptr %2, align 4
br label %9
8: ; preds = %1
store i32 1, ptr %2, align 4
br label %9
9: ; preds = %8, %7
%10 = load i32, ptr %2, align 4
ret i32 %10
}
declare i32 @write_all(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/tmp5d8xpz4s.c'
source_filename = "/tmp/tmp5d8xpz4s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"cls\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cleanScreen() #0 {
%1 = call i32 @system(ptr noundef @.str)
ret void
}
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5d8xpz4s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"cls\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cleanScreen() #0 {
%1 = call i32 @system(ptr noundef @.str)
ret void
}
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpuyqnobe_.c'
source_filename = "/tmp/tmpuyqnobe_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @add_option_clientid(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i64, ptr %6, align 8
%10 = call i32 @add_option_string(ptr noundef %7, i32 noundef 61, ptr noundef %8, i64 noundef %9)
ret void
}
declare i32 @add_option_string(ptr noundef, i32 noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuyqnobe_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @add_option_clientid(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i64, ptr %6, align 8
%10 = call i32 @add_option_string(ptr noundef %7, i32 noundef 61, ptr noundef %8, i64 noundef %9)
ret void
}
declare i32 @add_option_string(ptr noundef, i32 noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpo8ocac0k.c'
source_filename = "/tmp/tmpo8ocac0k.c"
target datalayout = "e-m:e-p270: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/tmpo8ocac0k.c"
target datalayout = "e-m:e-p270: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/tmp4ehmk1k4.c'
source_filename = "/tmp/tmp4ehmk1k4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @testrados()
ret i32 %6
}
declare i32 @testrados(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4ehmk1k4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @testrados()
ret i32 %6
}
declare i32 @testrados(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgmoufs4n.c'
source_filename = "/tmp/tmpgmoufs4n.c"
target datalayout = "e-m:e-p270: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/tmpgmoufs4n.c"
target datalayout = "e-m:e-p270: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/tmpbo3bfyc3.c'
source_filename = "/tmp/tmpbo3bfyc3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbo3bfyc3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpl6ak4xr1.c'
source_filename = "/tmp/tmpl6ak4xr1.c"
target datalayout = "e-m:e-p270: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/tmpl6ak4xr1.c"
target datalayout = "e-m:e-p270: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/tmpgu1cyv4a.c'
source_filename = "/tmp/tmpgu1cyv4a.c"
target datalayout = "e-m:e-p270: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/tmpgu1cyv4a.c"
target datalayout = "e-m:e-p270: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/tmp7367qq7y.c'
source_filename = "/tmp/tmp7367qq7y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @addr_split_sourcegroup(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = load ptr, ptr %6, align 8
%10 = call i32 @nepim_str_split_plus(ptr noundef %7, i32 noundef %8, ptr noundef %9)
ret i32 %10
}
declare i32 @nepim_str_split_plus(ptr 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/tmp7367qq7y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @addr_split_sourcegroup(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = load ptr, ptr %6, align 8
%10 = call i32 @nepim_str_split_plus(ptr noundef %7, i32 noundef %8, ptr noundef %9)
ret i32 %10
}
declare i32 @nepim_str_split_plus(ptr 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/tmpr623xlvp.c'
source_filename = "/tmp/tmpr623xlvp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FBIOPUTCMAP = 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/tmpr623xlvp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FBIOPUTCMAP = 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/tmp3bvncpvy.c'
source_filename = "/tmp/tmp3bvncpvy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c" PROGRAM:%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @CCP4_fatal(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 @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef, 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/tmp3bvncpvy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c" PROGRAM:%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @CCP4_fatal(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 @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef, 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/tmpuu1mc9rh.c'
source_filename = "/tmp/tmpuu1mc9rh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [149 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/itahsieh/sparx-alpha/refs/heads/alpha3.stable/src/memory.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @MemStr_Split(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store ptr null, ptr %7, align 8
store ptr null, ptr %8, align 8
store ptr null, ptr %9, align 8
%10 = load ptr, ptr %4, align 8
%11 = call ptr @Mem_Strdup(ptr noundef %10, ptr noundef @.str, i32 noundef 117)
store ptr %11, ptr %7, align 8
%12 = load ptr, ptr %6, align 8
store i64 0, ptr %12, align 8
%13 = load ptr, ptr %7, align 8
%14 = load ptr, ptr %5, align 8
%15 = call ptr @strtok(ptr noundef %13, ptr noundef %14)
store ptr %15, ptr %8, align 8
br label %16
16: ; preds = %19, %3
%17 = load ptr, ptr %8, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %38
19: ; preds = %16
%20 = load ptr, ptr %6, align 8
%21 = load i64, ptr %20, align 8
%22 = add i64 %21, 1
store i64 %22, ptr %20, align 8
%23 = load ptr, ptr %9, align 8
%24 = load ptr, ptr %6, align 8
%25 = load i64, ptr %24, align 8
%26 = mul i64 %25, 8
%27 = call ptr @Mem_Realloc(ptr noundef %23, i64 noundef %26, ptr noundef @.str, i32 noundef 123)
store ptr %27, ptr %9, align 8
%28 = load ptr, ptr %8, align 8
%29 = call ptr @MemStr_Stripwhite(ptr noundef %28)
%30 = call ptr @Mem_Strdup(ptr noundef %29, ptr noundef @.str, i32 noundef 124)
%31 = load ptr, ptr %9, align 8
%32 = load ptr, ptr %6, align 8
%33 = load i64, ptr %32, align 8
%34 = sub i64 %33, 1
%35 = getelementptr inbounds ptr, ptr %31, i64 %34
store ptr %30, ptr %35, align 8
%36 = load ptr, ptr %5, align 8
%37 = call ptr @strtok(ptr noundef null, ptr noundef %36)
store ptr %37, ptr %8, align 8
br label %16, !llvm.loop !6
38: ; preds = %16
%39 = load ptr, ptr %7, align 8
%40 = call i32 @free(ptr noundef %39)
%41 = load ptr, ptr %9, align 8
ret ptr %41
}
declare ptr @Mem_Strdup(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @strtok(ptr noundef, ptr noundef) #1
declare ptr @Mem_Realloc(ptr noundef, i64 noundef, ptr noundef, i32 noundef) #1
declare ptr @MemStr_Stripwhite(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/tmpuu1mc9rh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [149 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/itahsieh/sparx-alpha/refs/heads/alpha3.stable/src/memory.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @MemStr_Split(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store ptr null, ptr %7, align 8
store ptr null, ptr %8, align 8
store ptr null, ptr %9, align 8
%10 = load ptr, ptr %4, align 8
%11 = call ptr @Mem_Strdup(ptr noundef %10, ptr noundef @.str, i32 noundef 117)
store ptr %11, ptr %7, align 8
%12 = load ptr, ptr %6, align 8
store i64 0, ptr %12, align 8
%13 = load ptr, ptr %7, align 8
%14 = load ptr, ptr %5, align 8
%15 = call ptr @strtok(ptr noundef %13, ptr noundef %14)
store ptr %15, ptr %8, align 8
%16 = load ptr, ptr %8, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %.lr.ph, label %39
.lr.ph: ; preds = %3
br label %18
18: ; preds = %.lr.ph, %18
%19 = load ptr, ptr %6, align 8
%20 = load i64, ptr %19, align 8
%21 = add i64 %20, 1
store i64 %21, ptr %19, align 8
%22 = load ptr, ptr %9, align 8
%23 = load ptr, ptr %6, align 8
%24 = load i64, ptr %23, align 8
%25 = mul i64 %24, 8
%26 = call ptr @Mem_Realloc(ptr noundef %22, i64 noundef %25, ptr noundef @.str, i32 noundef 123)
store ptr %26, ptr %9, align 8
%27 = load ptr, ptr %8, align 8
%28 = call ptr @MemStr_Stripwhite(ptr noundef %27)
%29 = call ptr @Mem_Strdup(ptr noundef %28, ptr noundef @.str, i32 noundef 124)
%30 = load ptr, ptr %9, align 8
%31 = load ptr, ptr %6, align 8
%32 = load i64, ptr %31, align 8
%33 = sub i64 %32, 1
%34 = getelementptr inbounds ptr, ptr %30, i64 %33
store ptr %29, ptr %34, align 8
%35 = load ptr, ptr %5, align 8
%36 = call ptr @strtok(ptr noundef null, ptr noundef %35)
store ptr %36, ptr %8, align 8
%37 = load ptr, ptr %8, align 8
%38 = icmp ne ptr %37, null
br i1 %38, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %39
39: ; preds = %._crit_edge, %3
%40 = load ptr, ptr %7, align 8
%41 = call i32 @free(ptr noundef %40)
%42 = load ptr, ptr %9, align 8
ret ptr %42
}
declare ptr @Mem_Strdup(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @strtok(ptr noundef, ptr noundef) #1
declare ptr @Mem_Realloc(ptr noundef, i64 noundef, ptr noundef, i32 noundef) #1
declare ptr @MemStr_Stripwhite(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/tmpgqgyrkfi.c'
source_filename = "/tmp/tmpgqgyrkfi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgqgyrkfi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpx2jwuien.c'
source_filename = "/tmp/tmpx2jwuien.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"It is now %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @time_2() #0 {
%1 = alloca i32, align 4
%2 = call i32 @time(ptr noundef %1)
%3 = call ptr @ctime(ptr noundef %1)
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
ret void
}
declare i32 @time(ptr noundef) #1
declare i32 @printf(ptr noundef, 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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx2jwuien.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"It is now %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @time_2() #0 {
%1 = alloca i32, align 4
%2 = call i32 @time(ptr noundef %1)
%3 = call ptr @ctime(ptr noundef %1)
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
ret void
}
declare i32 @time(ptr noundef) #1
declare i32 @printf(ptr noundef, 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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplei8v_0v.c'
source_filename = "/tmp/tmplei8v_0v.c"
target datalayout = "e-m:e-p270: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
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c": \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ft_putnbr2labelled_fd(ptr noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
store i64 0, ptr %9, align 8
%11 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %11, ptr %10, align 4
br label %12
12: ; preds = %54, %4
%13 = load i64, ptr %9, align 8
%14 = load i64, ptr %7, align 8
%15 = icmp ult i64 %13, %14
br i1 %15, label %16, label %56
16: ; preds = %12
%17 = load ptr, ptr %6, align 8
%18 = load i64, ptr %9, align 8
%19 = getelementptr inbounds ptr, ptr %17, i64 %18
%20 = load ptr, ptr %19, align 8
%21 = load i32, ptr %8, align 4
%22 = call i32 @ft_putstr_fd(ptr noundef %20, i32 noundef %21)
%23 = load i32, ptr @EXIT_SUCCESS, align 4
%24 = icmp eq i32 %22, %23
br i1 %24, label %25, label %27
25: ; preds = %16
%26 = load i32, ptr %10, align 4
br label %29
27: ; preds = %16
%28 = load i32, ptr @EXIT_FAILURE, align 4
br label %29
29: ; preds = %27, %25
%30 = phi i32 [ %26, %25 ], [ %28, %27 ]
store i32 %30, ptr %10, align 4
%31 = load i32, ptr %8, align 4
%32 = call i32 @ft_putstr_fd(ptr noundef @.str, i32 noundef %31)
%33 = load i32, ptr @EXIT_SUCCESS, align 4
%34 = icmp eq i32 %32, %33
br i1 %34, label %35, label %37
35: ; preds = %29
%36 = load i32, ptr %10, align 4
br label %39
37: ; preds = %29
%38 = load i32, ptr @EXIT_FAILURE, align 4
br label %39
39: ; preds = %37, %35
%40 = phi i32 [ %36, %35 ], [ %38, %37 ]
store i32 %40, ptr %10, align 4
%41 = load ptr, ptr %5, align 8
%42 = load i64, ptr %9, align 8
%43 = add i64 %42, 1
store i64 %43, ptr %9, align 8
%44 = getelementptr inbounds i32, ptr %41, i64 %42
%45 = load i32, ptr %44, align 4
%46 = load i32, ptr %8, align 4
%47 = call i32 @ft_putnbrl_fd(i32 noundef %45, i32 noundef %46)
%48 = load i32, ptr @EXIT_SUCCESS, align 4
%49 = icmp eq i32 %47, %48
br i1 %49, label %50, label %52
50: ; preds = %39
%51 = load i32, ptr %10, align 4
br label %54
52: ; preds = %39
%53 = load i32, ptr @EXIT_FAILURE, align 4
br label %54
54: ; preds = %52, %50
%55 = phi i32 [ %51, %50 ], [ %53, %52 ]
store i32 %55, ptr %10, align 4
br label %12, !llvm.loop !6
56: ; preds = %12
%57 = load i32, ptr %10, align 4
ret i32 %57
}
declare i32 @ft_putstr_fd(ptr noundef, i32 noundef) #1
declare i32 @ft_putnbrl_fd(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplei8v_0v.c"
target datalayout = "e-m:e-p270: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
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c": \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ft_putnbr2labelled_fd(ptr noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
store i64 0, ptr %9, align 8
%11 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %11, ptr %10, align 4
%12 = load i64, ptr %9, align 8
%13 = load i64, ptr %7, align 8
%14 = icmp ult i64 %12, %13
br i1 %14, label %.lr.ph, label %58
.lr.ph: ; preds = %4
br label %15
15: ; preds = %.lr.ph, %53
%16 = load ptr, ptr %6, align 8
%17 = load i64, ptr %9, align 8
%18 = getelementptr inbounds ptr, ptr %16, i64 %17
%19 = load ptr, ptr %18, align 8
%20 = load i32, ptr %8, align 4
%21 = call i32 @ft_putstr_fd(ptr noundef %19, i32 noundef %20)
%22 = load i32, ptr @EXIT_SUCCESS, align 4
%23 = icmp eq i32 %21, %22
br i1 %23, label %24, label %26
24: ; preds = %15
%25 = load i32, ptr %10, align 4
br label %28
26: ; preds = %15
%27 = load i32, ptr @EXIT_FAILURE, align 4
br label %28
28: ; preds = %26, %24
%29 = phi i32 [ %25, %24 ], [ %27, %26 ]
store i32 %29, ptr %10, align 4
%30 = load i32, ptr %8, align 4
%31 = call i32 @ft_putstr_fd(ptr noundef @.str, i32 noundef %30)
%32 = load i32, ptr @EXIT_SUCCESS, align 4
%33 = icmp eq i32 %31, %32
br i1 %33, label %34, label %36
34: ; preds = %28
%35 = load i32, ptr %10, align 4
br label %38
36: ; preds = %28
%37 = load i32, ptr @EXIT_FAILURE, align 4
br label %38
38: ; preds = %36, %34
%39 = phi i32 [ %35, %34 ], [ %37, %36 ]
store i32 %39, ptr %10, align 4
%40 = load ptr, ptr %5, align 8
%41 = load i64, ptr %9, align 8
%42 = add i64 %41, 1
store i64 %42, ptr %9, align 8
%43 = getelementptr inbounds i32, ptr %40, i64 %41
%44 = load i32, ptr %43, align 4
%45 = load i32, ptr %8, align 4
%46 = call i32 @ft_putnbrl_fd(i32 noundef %44, i32 noundef %45)
%47 = load i32, ptr @EXIT_SUCCESS, align 4
%48 = icmp eq i32 %46, %47
br i1 %48, label %49, label %51
49: ; preds = %38
%50 = load i32, ptr %10, align 4
br label %53
51: ; preds = %38
%52 = load i32, ptr @EXIT_FAILURE, align 4
br label %53
53: ; preds = %51, %49
%54 = phi i32 [ %50, %49 ], [ %52, %51 ]
store i32 %54, ptr %10, align 4
%55 = load i64, ptr %9, align 8
%56 = load i64, ptr %7, align 8
%57 = icmp ult i64 %55, %56
br i1 %57, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %53
br label %58
58: ; preds = %._crit_edge, %4
%59 = load i32, ptr %10, align 4
ret i32 %59
}
declare i32 @ft_putstr_fd(ptr noundef, i32 noundef) #1
declare i32 @ft_putnbrl_fd(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpanpydneo.c'
source_filename = "/tmp/tmpanpydneo.c"
target datalayout = "e-m:e-p270: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/tmpanpydneo.c"
target datalayout = "e-m:e-p270: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_1u_kjb_.c'
source_filename = "/tmp/tmp_1u_kjb_.c"
target datalayout = "e-m:e-p270: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 @backEaseInOutd(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store double %0, ptr %3, align 8
%6 = load double, ptr %3, align 8
%7 = fcmp olt double %6, 5.000000e-01
br i1 %7, label %8, label %24
8: ; preds = %1
%9 = load double, ptr %3, align 8
%10 = fmul double 2.000000e+00, %9
store double %10, ptr %4, align 8
%11 = load double, ptr %4, align 8
%12 = load double, ptr %4, align 8
%13 = fmul double %11, %12
%14 = load double, ptr %4, align 8
%15 = load double, ptr %4, align 8
%16 = load double, ptr %4, align 8
%17 = load double, ptr @M_PI, align 8
%18 = fmul double %16, %17
%19 = call double @sin(double noundef %18) #3
%20 = fmul double %15, %19
%21 = fneg double %20
%22 = call double @llvm.fmuladd.f64(double %13, double %14, double %21)
%23 = fmul double 5.000000e-01, %22
store double %23, ptr %2, align 8
br label %42
24: ; preds = %1
%25 = load double, ptr %3, align 8
%26 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %25, double -1.000000e+00)
%27 = fsub double 1.000000e+00, %26
store double %27, ptr %5, align 8
%28 = load double, ptr %5, align 8
%29 = load double, ptr %5, align 8
%30 = fmul double %28, %29
%31 = load double, ptr %5, align 8
%32 = load double, ptr %5, align 8
%33 = load double, ptr %5, align 8
%34 = load double, ptr @M_PI, align 8
%35 = fmul double %33, %34
%36 = call double @sin(double noundef %35) #3
%37 = fmul double %32, %36
%38 = fneg double %37
%39 = call double @llvm.fmuladd.f64(double %30, double %31, double %38)
%40 = fsub double 1.000000e+00, %39
%41 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %40, double 5.000000e-01)
store double %41, ptr %2, align 8
br label %42
42: ; preds = %24, %8
%43 = load double, ptr %2, align 8
ret double %43
}
; Function Attrs: nounwind
declare double @sin(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/tmp_1u_kjb_.c"
target datalayout = "e-m:e-p270: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 @backEaseInOutd(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store double %0, ptr %3, align 8
%6 = load double, ptr %3, align 8
%7 = fcmp olt double %6, 5.000000e-01
br i1 %7, label %8, label %24
8: ; preds = %1
%9 = load double, ptr %3, align 8
%10 = fmul double 2.000000e+00, %9
store double %10, ptr %4, align 8
%11 = load double, ptr %4, align 8
%12 = load double, ptr %4, align 8
%13 = fmul double %11, %12
%14 = load double, ptr %4, align 8
%15 = load double, ptr %4, align 8
%16 = load double, ptr %4, align 8
%17 = load double, ptr @M_PI, align 8
%18 = fmul double %16, %17
%19 = call double @sin(double noundef %18) #3
%20 = fmul double %15, %19
%21 = fneg double %20
%22 = call double @llvm.fmuladd.f64(double %13, double %14, double %21)
%23 = fmul double 5.000000e-01, %22
store double %23, ptr %2, align 8
br label %42
24: ; preds = %1
%25 = load double, ptr %3, align 8
%26 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %25, double -1.000000e+00)
%27 = fsub double 1.000000e+00, %26
store double %27, ptr %5, align 8
%28 = load double, ptr %5, align 8
%29 = load double, ptr %5, align 8
%30 = fmul double %28, %29
%31 = load double, ptr %5, align 8
%32 = load double, ptr %5, align 8
%33 = load double, ptr %5, align 8
%34 = load double, ptr @M_PI, align 8
%35 = fmul double %33, %34
%36 = call double @sin(double noundef %35) #3
%37 = fmul double %32, %36
%38 = fneg double %37
%39 = call double @llvm.fmuladd.f64(double %30, double %31, double %38)
%40 = fsub double 1.000000e+00, %39
%41 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %40, double 5.000000e-01)
store double %41, ptr %2, align 8
br label %42
42: ; preds = %24, %8
%43 = load double, ptr %2, align 8
ret double %43
}
; Function Attrs: nounwind
declare double @sin(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/tmp800_aoj3.c'
source_filename = "/tmp/tmp800_aoj3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AF_INET = dso_local global i32 0, align 4
@SIOCGIFADDR = dso_local global i32 0, align 4
@SOCK_STREAM = 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/tmp800_aoj3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AF_INET = dso_local global i32 0, align 4
@SIOCGIFADDR = dso_local global i32 0, align 4
@SOCK_STREAM = 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/tmp3wei5mac.c'
source_filename = "/tmp/tmp3wei5mac.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"/dev/mysql_seq_dev\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"Can't open device file: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 @open(ptr noundef @.str, i32 noundef 0)
store i32 %3, ptr %1, align 4
%4 = load i32, ptr %1, align 4
%5 = icmp slt i32 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %0
%7 = call i32 @printf(ptr noundef @.str.1, ptr noundef @.str)
%8 = call i32 @exit(i32 noundef -1) #3
unreachable
9: ; preds = %0
%10 = load i32, ptr %1, align 4
%11 = call i32 @ioctl_get_msg(i32 noundef %10)
%12 = load i32, ptr %1, align 4
%13 = call i32 @close(i32 noundef %12)
ret i32 0
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @ioctl_get_msg(i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmp3wei5mac.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"/dev/mysql_seq_dev\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"Can't open device file: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 @open(ptr noundef @.str, i32 noundef 0)
store i32 %3, ptr %1, align 4
%4 = load i32, ptr %1, align 4
%5 = icmp slt i32 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %0
%7 = call i32 @printf(ptr noundef @.str.1, ptr noundef @.str)
%8 = call i32 @exit(i32 noundef -1) #3
unreachable
9: ; preds = %0
%10 = load i32, ptr %1, align 4
%11 = call i32 @ioctl_get_msg(i32 noundef %10)
%12 = load i32, ptr %1, align 4
%13 = call i32 @close(i32 noundef %12)
ret i32 0
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @ioctl_get_msg(i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmprmhrzdyr.c'
source_filename = "/tmp/tmprmhrzdyr.c"
target datalayout = "e-m:e-p270: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/tmprmhrzdyr.c"
target datalayout = "e-m:e-p270: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/tmp0y1jqump.c'
source_filename = "/tmp/tmp0y1jqump.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" %20s\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"rank \00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"thrd \00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"rank thrd \00", align 1
@.str.5 = private unnamed_addr constant [12 x i8] c"| |\00", align 1
@.str.6 = private unnamed_addr constant [12 x i8] c" %2d |\00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.8 = private unnamed_addr constant [11 x i8] c" %20.20s \00", align 1
@.str.9 = private unnamed_addr constant [7 x i8] c"%4.4d \00", align 1
@.str.10 = private unnamed_addr constant [13 x i8] c"%4.4d %4.4d \00", align 1
@.str.11 = private unnamed_addr constant [6 x i8] c"%1.1d\00", align 1
@.str.12 = private unnamed_addr constant [2 x i8] c"-\00", align 1
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_mask(i32 noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, ptr noundef %8) #0 {
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca ptr, align 8
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca [4096 x i8], align 16
store i32 %0, ptr %10, align 4
store ptr %1, ptr %11, align 8
store i32 %2, ptr %12, align 4
store i32 %3, ptr %13, align 4
store i32 %4, ptr %14, align 4
store i32 %5, ptr %15, align 4
store i32 %6, ptr %16, align 4
store i32 %7, ptr %17, align 4
store ptr %8, ptr %18, align 8
%23 = load i32, ptr %12, align 4
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %46
25: ; preds = %9
%26 = load i32, ptr %10, align 4
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %46
28: ; preds = %25
store i32 0, ptr %19, align 4
br label %29
29: ; preds = %36, %28
%30 = load i32, ptr %19, align 4
%31 = icmp sle i32 %30, 20
br i1 %31, label %32, label %39
32: ; preds = %29
%33 = load i32, ptr %19, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [4096 x i8], ptr %22, i64 0, i64 %34
store i8 32, ptr %35, align 1
br label %36
36: ; preds = %32
%37 = load i32, ptr %19, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %19, align 4
br label %29, !llvm.loop !6
39: ; preds = %29
%40 = getelementptr inbounds [4096 x i8], ptr %22, i64 0, i64 16
store i8 110, ptr %40, align 16
%41 = getelementptr inbounds [4096 x i8], ptr %22, i64 0, i64 17
store i8 111, ptr %41, align 1
%42 = getelementptr inbounds [4096 x i8], ptr %22, i64 0, i64 18
store i8 100, ptr %42, align 2
%43 = getelementptr inbounds [4096 x i8], ptr %22, i64 0, i64 19
store i8 101, ptr %43, align 1
%44 = getelementptr inbounds [4096 x i8], ptr %22, i64 0, i64 21
store i8 32, ptr %44, align 1
%45 = getelementptr inbounds [4096 x i8], ptr %22, i64 0, i64 22
store i8 0, ptr %45, align 2
br label %46
46: ; preds = %39, %25, %9
%47 = load i32, ptr %10, align 4
%48 = icmp ne i32 %47, 0
br i1 %48, label %49, label %107
49: ; preds = %46
%50 = load i32, ptr %12, align 4
%51 = icmp ne i32 %50, 0
br i1 %51, label %52, label %55
52: ; preds = %49
%53 = getelementptr inbounds [4096 x i8], ptr %22, i64 0, i64 0
%54 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %53)
br label %55
55: ; preds = %52, %49
%56 = load i32, ptr %16, align 4
%57 = icmp eq i32 %56, 1
br i1 %57, label %58, label %63
58: ; preds = %55
%59 = load i32, ptr %17, align 4
%60 = icmp eq i32 %59, 1
br i1 %60, label %61, label %63
61: ; preds = %58
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %63
63: ; preds = %61, %58, %55
%64 = load i32, ptr %16, align 4
%65 = icmp ne i32 %64, 1
br i1 %65, label %66, label %71
66: ; preds = %63
%67 = load i32, ptr %17, align 4
%68 = icmp eq i32 %67, 1
br i1 %68, label %69, label %71
69: ; preds = %66
%70 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %71
71: ; preds = %69, %66, %63
%72 = load i32, ptr %16, align 4
%73 = icmp eq i32 %72, 1
br i1 %73, label %74, label %79
74: ; preds = %71
%75 = load i32, ptr %17, align 4
%76 = icmp ne i32 %75, 1
br i1 %76, label %77, label %79
77: ; preds = %74
%78 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %79
79: ; preds = %77, %74, %71
%80 = load i32, ptr %16, align 4
%81 = icmp ne i32 %80, 1
br i1 %81, label %82, label %87
82: ; preds = %79
%83 = load i32, ptr %17, align 4
%84 = icmp ne i32 %83, 1
br i1 %84, label %85, label %87
85: ; preds = %82
%86 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %87
87: ; preds = %85, %82, %79
%88 = load i32, ptr %15, align 4
%89 = sitofp i32 %88 to float
%90 = fdiv float %89, 1.000000e+01
%91 = call i64 @ceilf(float noundef %90)
%92 = trunc i64 %91 to i32
store i32 %92, ptr %21, align 4
%93 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 1, ptr %19, align 4
br label %94
94: ; preds = %102, %87
%95 = load i32, ptr %19, align 4
%96 = load i32, ptr %21, align 4
%97 = icmp slt i32 %95, %96
br i1 %97, label %98, label %105
98: ; preds = %94
%99 = load i32, ptr %19, align 4
%100 = mul nsw i32 %99, 10
%101 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %100)
br label %102
102: ; preds = %98
%103 = load i32, ptr %19, align 4
%104 = add nsw i32 %103, 1
store i32 %104, ptr %19, align 4
br label %94, !llvm.loop !8
105: ; preds = %94
%106 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %188
107: ; preds = %46
%108 = load i32, ptr %12, align 4
%109 = icmp ne i32 %108, 0
br i1 %109, label %110, label %113
110: ; preds = %107
%111 = load ptr, ptr %11, align 8
%112 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %111)
br label %113
113: ; preds = %110, %107
%114 = load i32, ptr %16, align 4
%115 = icmp eq i32 %114, 1
br i1 %115, label %116, label %121
116: ; preds = %113
%117 = load i32, ptr %17, align 4
%118 = icmp eq i32 %117, 1
br i1 %118, label %119, label %121
119: ; preds = %116
%120 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %121
121: ; preds = %119, %116, %113
%122 = load i32, ptr %16, align 4
%123 = icmp ne i32 %122, 1
br i1 %123, label %124, label %130
124: ; preds = %121
%125 = load i32, ptr %17, align 4
%126 = icmp eq i32 %125, 1
br i1 %126, label %127, label %130
127: ; preds = %124
%128 = load i32, ptr %13, align 4
%129 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %128)
br label %130
130: ; preds = %127, %124, %121
%131 = load i32, ptr %16, align 4
%132 = icmp eq i32 %131, 1
br i1 %132, label %133, label %139
133: ; preds = %130
%134 = load i32, ptr %17, align 4
%135 = icmp ne i32 %134, 1
br i1 %135, label %136, label %139
136: ; preds = %133
%137 = load i32, ptr %14, align 4
%138 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %137)
br label %139
139: ; preds = %136, %133, %130
%140 = load i32, ptr %16, align 4
%141 = icmp ne i32 %140, 1
br i1 %141, label %142, label %149
142: ; preds = %139
%143 = load i32, ptr %17, align 4
%144 = icmp ne i32 %143, 1
br i1 %144, label %145, label %149
145: ; preds = %142
%146 = load i32, ptr %13, align 4
%147 = load i32, ptr %14, align 4
%148 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %146, i32 noundef %147)
br label %149
149: ; preds = %145, %142, %139
store i32 0, ptr %19, align 4
br label %150
150: ; preds = %184, %149
%151 = load i32, ptr %19, align 4
%152 = load i32, ptr %15, align 4
%153 = icmp slt i32 %151, %152
br i1 %153, label %154, label %187
154: ; preds = %150
%155 = load i32, ptr %19, align 4
store i32 %155, ptr %20, align 4
%156 = load i32, ptr %19, align 4
%157 = icmp sgt i32 %156, 9
br i1 %157, label %158, label %164
158: ; preds = %154
%159 = load i32, ptr %19, align 4
%160 = load i32, ptr %19, align 4
%161 = sdiv i32 %160, 10
%162 = mul nsw i32 %161, 10
%163 = sub nsw i32 %159, %162
store i32 %163, ptr %20, align 4
br label %164
164: ; preds = %158, %154
%165 = load ptr, ptr %18, align 8
%166 = load i32, ptr %19, align 4
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds i32, ptr %165, i64 %167
%169 = load i32, ptr %168, align 4
%170 = icmp eq i32 %169, 1
br i1 %170, label %171, label %174
171: ; preds = %164
%172 = load i32, ptr %20, align 4
%173 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %172)
br label %176
174: ; preds = %164
%175 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
br label %176
176: ; preds = %174, %171
%177 = load i32, ptr %19, align 4
%178 = load i32, ptr %15, align 4
%179 = sub nsw i32 %178, 1
%180 = icmp eq i32 %177, %179
br i1 %180, label %181, label %183
181: ; preds = %176
%182 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %183
183: ; preds = %181, %176
br label %184
184: ; preds = %183
%185 = load i32, ptr %19, align 4
%186 = add nsw i32 %185, 1
store i32 %186, ptr %19, align 4
br label %150, !llvm.loop !9
187: ; preds = %150
br label %188
188: ; preds = %187, %105
%189 = load i32, ptr @stdout, align 4
%190 = call i32 @fflush(i32 noundef %189)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i64 @ceilf(float noundef) #1
declare i32 @fflush(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}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0y1jqump.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" %20s\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"rank \00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"thrd \00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"rank thrd \00", align 1
@.str.5 = private unnamed_addr constant [12 x i8] c"| |\00", align 1
@.str.6 = private unnamed_addr constant [12 x i8] c" %2d |\00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.8 = private unnamed_addr constant [11 x i8] c" %20.20s \00", align 1
@.str.9 = private unnamed_addr constant [7 x i8] c"%4.4d \00", align 1
@.str.10 = private unnamed_addr constant [13 x i8] c"%4.4d %4.4d \00", align 1
@.str.11 = private unnamed_addr constant [6 x i8] c"%1.1d\00", align 1
@.str.12 = private unnamed_addr constant [2 x i8] c"-\00", align 1
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_mask(i32 noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, ptr noundef %8) #0 {
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca ptr, align 8
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca [4096 x i8], align 16
store i32 %0, ptr %10, align 4
store ptr %1, ptr %11, align 8
store i32 %2, ptr %12, align 4
store i32 %3, ptr %13, align 4
store i32 %4, ptr %14, align 4
store i32 %5, ptr %15, align 4
store i32 %6, ptr %16, align 4
store i32 %7, ptr %17, align 4
store ptr %8, ptr %18, align 8
%23 = load i32, ptr %12, align 4
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %47
25: ; preds = %9
%26 = load i32, ptr %10, align 4
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %47
28: ; preds = %25
store i32 0, ptr %19, align 4
%29 = load i32, ptr %19, align 4
%30 = icmp sle i32 %29, 20
br i1 %30, label %.lr.ph, label %40
.lr.ph: ; preds = %28
br label %31
31: ; preds = %.lr.ph, %35
%32 = load i32, ptr %19, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [4096 x i8], ptr %22, i64 0, i64 %33
store i8 32, ptr %34, align 1
br label %35
35: ; preds = %31
%36 = load i32, ptr %19, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %19, align 4
%38 = load i32, ptr %19, align 4
%39 = icmp sle i32 %38, 20
br i1 %39, label %31, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %35
br label %40
40: ; preds = %._crit_edge, %28
%41 = getelementptr inbounds [4096 x i8], ptr %22, i64 0, i64 16
store i8 110, ptr %41, align 16
%42 = getelementptr inbounds [4096 x i8], ptr %22, i64 0, i64 17
store i8 111, ptr %42, align 1
%43 = getelementptr inbounds [4096 x i8], ptr %22, i64 0, i64 18
store i8 100, ptr %43, align 2
%44 = getelementptr inbounds [4096 x i8], ptr %22, i64 0, i64 19
store i8 101, ptr %44, align 1
%45 = getelementptr inbounds [4096 x i8], ptr %22, i64 0, i64 21
store i8 32, ptr %45, align 1
%46 = getelementptr inbounds [4096 x i8], ptr %22, i64 0, i64 22
store i8 0, ptr %46, align 2
br label %47
47: ; preds = %40, %25, %9
%48 = load i32, ptr %10, align 4
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %110
50: ; preds = %47
%51 = load i32, ptr %12, align 4
%52 = icmp ne i32 %51, 0
br i1 %52, label %53, label %56
53: ; preds = %50
%54 = getelementptr inbounds [4096 x i8], ptr %22, i64 0, i64 0
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %54)
br label %56
56: ; preds = %53, %50
%57 = load i32, ptr %16, align 4
%58 = icmp eq i32 %57, 1
br i1 %58, label %59, label %64
59: ; preds = %56
%60 = load i32, ptr %17, align 4
%61 = icmp eq i32 %60, 1
br i1 %61, label %62, label %64
62: ; preds = %59
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %64
64: ; preds = %62, %59, %56
%65 = load i32, ptr %16, align 4
%66 = icmp ne i32 %65, 1
br i1 %66, label %67, label %72
67: ; preds = %64
%68 = load i32, ptr %17, align 4
%69 = icmp eq i32 %68, 1
br i1 %69, label %70, label %72
70: ; preds = %67
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %72
72: ; preds = %70, %67, %64
%73 = load i32, ptr %16, align 4
%74 = icmp eq i32 %73, 1
br i1 %74, label %75, label %80
75: ; preds = %72
%76 = load i32, ptr %17, align 4
%77 = icmp ne i32 %76, 1
br i1 %77, label %78, label %80
78: ; preds = %75
%79 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %80
80: ; preds = %78, %75, %72
%81 = load i32, ptr %16, align 4
%82 = icmp ne i32 %81, 1
br i1 %82, label %83, label %88
83: ; preds = %80
%84 = load i32, ptr %17, align 4
%85 = icmp ne i32 %84, 1
br i1 %85, label %86, label %88
86: ; preds = %83
%87 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %88
88: ; preds = %86, %83, %80
%89 = load i32, ptr %15, align 4
%90 = sitofp i32 %89 to float
%91 = fdiv float %90, 1.000000e+01
%92 = call i64 @ceilf(float noundef %91)
%93 = trunc i64 %92 to i32
store i32 %93, ptr %21, align 4
%94 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 1, ptr %19, align 4
%95 = load i32, ptr %19, align 4
%96 = load i32, ptr %21, align 4
%97 = icmp slt i32 %95, %96
br i1 %97, label %.lr.ph5, label %108
.lr.ph5: ; preds = %88
br label %98
98: ; preds = %.lr.ph5, %102
%99 = load i32, ptr %19, align 4
%100 = mul nsw i32 %99, 10
%101 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %100)
br label %102
102: ; preds = %98
%103 = load i32, ptr %19, align 4
%104 = add nsw i32 %103, 1
store i32 %104, ptr %19, align 4
%105 = load i32, ptr %19, align 4
%106 = load i32, ptr %21, align 4
%107 = icmp slt i32 %105, %106
br i1 %107, label %98, label %._crit_edge6, !llvm.loop !8
._crit_edge6: ; preds = %102
br label %108
108: ; preds = %._crit_edge6, %88
%109 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %193
110: ; preds = %47
%111 = load i32, ptr %12, align 4
%112 = icmp ne i32 %111, 0
br i1 %112, label %113, label %116
113: ; preds = %110
%114 = load ptr, ptr %11, align 8
%115 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %114)
br label %116
116: ; preds = %113, %110
%117 = load i32, ptr %16, align 4
%118 = icmp eq i32 %117, 1
br i1 %118, label %119, label %124
119: ; preds = %116
%120 = load i32, ptr %17, align 4
%121 = icmp eq i32 %120, 1
br i1 %121, label %122, label %124
122: ; preds = %119
%123 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %124
124: ; preds = %122, %119, %116
%125 = load i32, ptr %16, align 4
%126 = icmp ne i32 %125, 1
br i1 %126, label %127, label %133
127: ; preds = %124
%128 = load i32, ptr %17, align 4
%129 = icmp eq i32 %128, 1
br i1 %129, label %130, label %133
130: ; preds = %127
%131 = load i32, ptr %13, align 4
%132 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %131)
br label %133
133: ; preds = %130, %127, %124
%134 = load i32, ptr %16, align 4
%135 = icmp eq i32 %134, 1
br i1 %135, label %136, label %142
136: ; preds = %133
%137 = load i32, ptr %17, align 4
%138 = icmp ne i32 %137, 1
br i1 %138, label %139, label %142
139: ; preds = %136
%140 = load i32, ptr %14, align 4
%141 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %140)
br label %142
142: ; preds = %139, %136, %133
%143 = load i32, ptr %16, align 4
%144 = icmp ne i32 %143, 1
br i1 %144, label %145, label %152
145: ; preds = %142
%146 = load i32, ptr %17, align 4
%147 = icmp ne i32 %146, 1
br i1 %147, label %148, label %152
148: ; preds = %145
%149 = load i32, ptr %13, align 4
%150 = load i32, ptr %14, align 4
%151 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %149, i32 noundef %150)
br label %152
152: ; preds = %148, %145, %142
store i32 0, ptr %19, align 4
%153 = load i32, ptr %19, align 4
%154 = load i32, ptr %15, align 4
%155 = icmp slt i32 %153, %154
br i1 %155, label %.lr.ph2, label %192
.lr.ph2: ; preds = %152
br label %156
156: ; preds = %.lr.ph2, %186
%157 = load i32, ptr %19, align 4
store i32 %157, ptr %20, align 4
%158 = load i32, ptr %19, align 4
%159 = icmp sgt i32 %158, 9
br i1 %159, label %160, label %166
160: ; preds = %156
%161 = load i32, ptr %19, align 4
%162 = load i32, ptr %19, align 4
%163 = sdiv i32 %162, 10
%164 = mul nsw i32 %163, 10
%165 = sub nsw i32 %161, %164
store i32 %165, ptr %20, align 4
br label %166
166: ; preds = %160, %156
%167 = load ptr, ptr %18, align 8
%168 = load i32, ptr %19, align 4
%169 = sext i32 %168 to i64
%170 = getelementptr inbounds i32, ptr %167, i64 %169
%171 = load i32, ptr %170, align 4
%172 = icmp eq i32 %171, 1
br i1 %172, label %173, label %176
173: ; preds = %166
%174 = load i32, ptr %20, align 4
%175 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %174)
br label %178
176: ; preds = %166
%177 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
br label %178
178: ; preds = %176, %173
%179 = load i32, ptr %19, align 4
%180 = load i32, ptr %15, align 4
%181 = sub nsw i32 %180, 1
%182 = icmp eq i32 %179, %181
br i1 %182, label %183, label %185
183: ; preds = %178
%184 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %185
185: ; preds = %183, %178
br label %186
186: ; preds = %185
%187 = load i32, ptr %19, align 4
%188 = add nsw i32 %187, 1
store i32 %188, ptr %19, align 4
%189 = load i32, ptr %19, align 4
%190 = load i32, ptr %15, align 4
%191 = icmp slt i32 %189, %190
br i1 %191, label %156, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %186
br label %192
192: ; preds = %._crit_edge3, %152
br label %193
193: ; preds = %192, %108
%194 = load i32, ptr @stdout, align 4
%195 = call i32 @fflush(i32 noundef %194)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i64 @ceilf(float noundef) #1
declare i32 @fflush(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}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpo2gb2bq6.c'
source_filename = "/tmp/tmpo2gb2bq6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @qu2hoLoop(ptr noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
store i64 4, ptr %13, align 8
store i64 3, ptr %14, align 8
store i64 0, ptr %10, align 8
br label %15
15: ; preds = %34, %4
%16 = load i64, ptr %10, align 8
%17 = load i64, ptr %7, align 8
%18 = icmp ult i64 %16, %17
br i1 %18, label %19, label %37
19: ; preds = %15
%20 = load i64, ptr %10, align 8
%21 = load i64, ptr %13, align 8
%22 = mul i64 %20, %21
store i64 %22, ptr %11, align 8
%23 = load i64, ptr %10, align 8
%24 = load i64, ptr %14, align 8
%25 = mul i64 %23, %24
store i64 %25, ptr %12, align 8
%26 = load ptr, ptr %5, align 8
%27 = load i64, ptr %11, align 8
%28 = getelementptr inbounds double, ptr %26, i64 %27
%29 = load ptr, ptr %6, align 8
%30 = load i64, ptr %12, align 8
%31 = getelementptr inbounds double, ptr %29, i64 %30
%32 = load i32, ptr %8, align 4
%33 = call i32 @qu2ho(ptr noundef %28, ptr noundef %31, i32 noundef %32)
store i32 %33, ptr %9, align 4
br label %34
34: ; preds = %19
%35 = load i64, ptr %10, align 8
%36 = add i64 %35, 1
store i64 %36, ptr %10, align 8
br label %15, !llvm.loop !6
37: ; preds = %15
ret i32 1
}
declare i32 @qu2ho(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo2gb2bq6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @qu2hoLoop(ptr noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
store i64 4, ptr %13, align 8
store i64 3, ptr %14, align 8
store i64 0, ptr %10, align 8
%15 = load i64, ptr %10, align 8
%16 = load i64, ptr %7, align 8
%17 = icmp ult i64 %15, %16
br i1 %17, label %.lr.ph, label %39
.lr.ph: ; preds = %4
br label %18
18: ; preds = %.lr.ph, %33
%19 = load i64, ptr %10, align 8
%20 = load i64, ptr %13, align 8
%21 = mul i64 %19, %20
store i64 %21, ptr %11, align 8
%22 = load i64, ptr %10, align 8
%23 = load i64, ptr %14, align 8
%24 = mul i64 %22, %23
store i64 %24, ptr %12, align 8
%25 = load ptr, ptr %5, align 8
%26 = load i64, ptr %11, align 8
%27 = getelementptr inbounds double, ptr %25, i64 %26
%28 = load ptr, ptr %6, align 8
%29 = load i64, ptr %12, align 8
%30 = getelementptr inbounds double, ptr %28, i64 %29
%31 = load i32, ptr %8, align 4
%32 = call i32 @qu2ho(ptr noundef %27, ptr noundef %30, i32 noundef %31)
store i32 %32, ptr %9, align 4
br label %33
33: ; preds = %18
%34 = load i64, ptr %10, align 8
%35 = add i64 %34, 1
store i64 %35, ptr %10, align 8
%36 = load i64, ptr %10, align 8
%37 = load i64, ptr %7, align 8
%38 = icmp ult i64 %36, %37
br i1 %38, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %33
br label %39
39: ; preds = %._crit_edge, %4
ret i32 1
}
declare i32 @qu2ho(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpqzmkcuox.c'
source_filename = "/tmp/tmpqzmkcuox.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @NvmInit() #0 {
%1 = call i32 (...) @FlashInit()
ret void
}
declare i32 @FlashInit(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqzmkcuox.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @NvmInit() #0 {
%1 = call i32 (...) @FlashInit()
ret void
}
declare i32 @FlashInit(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpshsukw_f.c'
source_filename = "/tmp/tmpshsukw_f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @extension(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @initialize_string(ptr noundef %6)
%8 = load ptr, ptr %4, align 8
%9 = call ptr @strrchr(ptr noundef %8, i8 noundef signext 46)
store ptr %9, ptr %5, align 8
%10 = load ptr, ptr %5, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %12, label %16
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %4, align 8
%15 = icmp eq ptr %13, %14
br i1 %15, label %16, label %19
16: ; preds = %12, %2
%17 = load ptr, ptr %3, align 8
%18 = call i32 @add_to_string(ptr noundef %17, ptr noundef @.str)
br label %24
19: ; preds = %12
%20 = load ptr, ptr %3, align 8
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 1
%23 = call i32 @add_to_string(ptr noundef %20, ptr noundef %22)
br label %24
24: ; preds = %19, %16
ret void
}
declare i32 @initialize_string(ptr noundef) #1
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare i32 @add_to_string(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/tmpshsukw_f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @extension(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @initialize_string(ptr noundef %6)
%8 = load ptr, ptr %4, align 8
%9 = call ptr @strrchr(ptr noundef %8, i8 noundef signext 46)
store ptr %9, ptr %5, align 8
%10 = load ptr, ptr %5, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %12, label %16
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %4, align 8
%15 = icmp eq ptr %13, %14
br i1 %15, label %16, label %19
16: ; preds = %12, %2
%17 = load ptr, ptr %3, align 8
%18 = call i32 @add_to_string(ptr noundef %17, ptr noundef @.str)
br label %24
19: ; preds = %12
%20 = load ptr, ptr %3, align 8
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 1
%23 = call i32 @add_to_string(ptr noundef %20, ptr noundef %22)
br label %24
24: ; preds = %19, %16
ret void
}
declare i32 @initialize_string(ptr noundef) #1
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare i32 @add_to_string(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/tmp5z281ebo.c'
source_filename = "/tmp/tmp5z281ebo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%f %f %f %f\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"INF\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"(%.3f,%.3f)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
store i32 0, ptr %1, align 4
%8 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%9 = load float, ptr %2, align 4
%10 = load float, ptr %5, align 4
%11 = load float, ptr %4, align 4
%12 = load float, ptr %3, align 4
%13 = fmul float %11, %12
%14 = fneg float %13
%15 = call float @llvm.fmuladd.f32(float %9, float %10, float %14)
%16 = fcmp oeq float %15, 0.000000e+00
br i1 %16, label %17, label %19
17: ; preds = %0
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %47
19: ; preds = %0
%20 = load float, ptr %2, align 4
%21 = load float, ptr %4, align 4
%22 = fsub float %20, %21
%23 = load float, ptr %2, align 4
%24 = load float, ptr %5, align 4
%25 = load float, ptr %4, align 4
%26 = load float, ptr %3, align 4
%27 = fmul float %25, %26
%28 = fneg float %27
%29 = call float @llvm.fmuladd.f32(float %23, float %24, float %28)
%30 = fdiv float %22, %29
store float %30, ptr %6, align 4
%31 = load float, ptr %5, align 4
%32 = load float, ptr %3, align 4
%33 = fsub float %31, %32
%34 = load float, ptr %2, align 4
%35 = load float, ptr %5, align 4
%36 = load float, ptr %4, align 4
%37 = load float, ptr %3, align 4
%38 = fmul float %36, %37
%39 = fneg float %38
%40 = call float @llvm.fmuladd.f32(float %34, float %35, float %39)
%41 = fdiv float %33, %40
store float %41, ptr %7, align 4
%42 = load float, ptr %6, align 4
%43 = fpext float %42 to double
%44 = load float, ptr %7, align 4
%45 = fpext float %44 to double
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %43, double noundef %45)
br label %47
47: ; preds = %19, %17
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5z281ebo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%f %f %f %f\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"INF\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"(%.3f,%.3f)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
store i32 0, ptr %1, align 4
%8 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%9 = load float, ptr %2, align 4
%10 = load float, ptr %5, align 4
%11 = load float, ptr %4, align 4
%12 = load float, ptr %3, align 4
%13 = fmul float %11, %12
%14 = fneg float %13
%15 = call float @llvm.fmuladd.f32(float %9, float %10, float %14)
%16 = fcmp oeq float %15, 0.000000e+00
br i1 %16, label %17, label %19
17: ; preds = %0
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %47
19: ; preds = %0
%20 = load float, ptr %2, align 4
%21 = load float, ptr %4, align 4
%22 = fsub float %20, %21
%23 = load float, ptr %2, align 4
%24 = load float, ptr %5, align 4
%25 = load float, ptr %4, align 4
%26 = load float, ptr %3, align 4
%27 = fmul float %25, %26
%28 = fneg float %27
%29 = call float @llvm.fmuladd.f32(float %23, float %24, float %28)
%30 = fdiv float %22, %29
store float %30, ptr %6, align 4
%31 = load float, ptr %5, align 4
%32 = load float, ptr %3, align 4
%33 = fsub float %31, %32
%34 = load float, ptr %2, align 4
%35 = load float, ptr %5, align 4
%36 = load float, ptr %4, align 4
%37 = load float, ptr %3, align 4
%38 = fmul float %36, %37
%39 = fneg float %38
%40 = call float @llvm.fmuladd.f32(float %34, float %35, float %39)
%41 = fdiv float %33, %40
store float %41, ptr %7, align 4
%42 = load float, ptr %6, align 4
%43 = fpext float %42 to double
%44 = load float, ptr %7, align 4
%45 = fpext float %44 to double
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %43, double noundef %45)
br label %47
47: ; preds = %19, %17
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpaadwo4ic.c'
source_filename = "/tmp/tmpaadwo4ic.c"
target datalayout = "e-m:e-p270: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 }
@EINTR = dso_local global i64 0, align 8
@errno = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [15 x i8] c"Fail to select\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [16 x i8] c"select Timeout\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mainloop(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %struct.timeval, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
br label %6
6: ; preds = %1, %41
br label %7
7: ; preds = %40, %22, %6
%8 = call i32 @FD_ZERO(ptr noundef %3)
%9 = load i32, ptr %2, align 4
%10 = call i32 @FD_SET(i32 noundef %9, ptr noundef %3)
%11 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 0
store i32 2, ptr %11, align 8
%12 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 1
store i64 0, ptr %12, align 8
%13 = load i32, ptr %2, align 4
%14 = add nsw i32 %13, 1
%15 = call i32 @select(i32 noundef %14, ptr noundef %3, ptr noundef null, ptr noundef null, ptr noundef %4)
store i32 %15, ptr %5, align 4
%16 = load i32, ptr %5, align 4
%17 = icmp eq i32 -1, %16
br i1 %17, label %18, label %27
18: ; preds = %7
%19 = load i64, ptr @EINTR, align 8
%20 = load i64, ptr @errno, align 8
%21 = icmp eq i64 %19, %20
br i1 %21, label %22, label %23
22: ; preds = %18
br label %7
23: ; preds = %18
%24 = call i32 @perror(ptr noundef @.str)
%25 = load i32, ptr @EXIT_FAILURE, align 4
%26 = call i32 @exit(i32 noundef %25) #3
unreachable
27: ; preds = %7
%28 = load i32, ptr %5, align 4
%29 = icmp eq i32 0, %28
br i1 %29, label %30, label %35
30: ; preds = %27
%31 = load i32, ptr @stderr, align 4
%32 = call i32 @fprintf(i32 noundef %31, ptr noundef @.str.1)
%33 = load i32, ptr @EXIT_FAILURE, align 4
%34 = call i32 @exit(i32 noundef %33) #3
unreachable
35: ; preds = %27
%36 = load i32, ptr %2, align 4
%37 = call i64 @read_frame(i32 noundef %36)
%38 = icmp ne i64 %37, 0
br i1 %38, label %39, label %40
39: ; preds = %35
br label %41
40: ; preds = %35
br label %7
41: ; preds = %39
%42 = call i32 @sleep(i32 noundef 5)
br label %6
}
declare i32 @FD_ZERO(ptr noundef) #1
declare i32 @FD_SET(i32 noundef, ptr noundef) #1
declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i64 @read_frame(i32 noundef) #1
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpaadwo4ic.c"
target datalayout = "e-m:e-p270: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 }
@EINTR = dso_local global i64 0, align 8
@errno = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [15 x i8] c"Fail to select\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [16 x i8] c"select Timeout\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mainloop(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %struct.timeval, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
br label %6
6: ; preds = %41, %1
br label %7
7: ; preds = %.backedge, %6
%8 = call i32 @FD_ZERO(ptr noundef %3)
%9 = load i32, ptr %2, align 4
%10 = call i32 @FD_SET(i32 noundef %9, ptr noundef %3)
%11 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 0
store i32 2, ptr %11, align 8
%12 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 1
store i64 0, ptr %12, align 8
%13 = load i32, ptr %2, align 4
%14 = add nsw i32 %13, 1
%15 = call i32 @select(i32 noundef %14, ptr noundef %3, ptr noundef null, ptr noundef null, ptr noundef %4)
store i32 %15, ptr %5, align 4
%16 = load i32, ptr %5, align 4
%17 = icmp eq i32 -1, %16
br i1 %17, label %18, label %27
18: ; preds = %7
%19 = load i64, ptr @EINTR, align 8
%20 = load i64, ptr @errno, align 8
%21 = icmp eq i64 %19, %20
br i1 %21, label %22, label %23
22: ; preds = %18
br label %.backedge
.backedge: ; preds = %22, %40
br label %7
23: ; preds = %18
%24 = call i32 @perror(ptr noundef @.str)
%25 = load i32, ptr @EXIT_FAILURE, align 4
%26 = call i32 @exit(i32 noundef %25) #3
unreachable
27: ; preds = %7
%28 = load i32, ptr %5, align 4
%29 = icmp eq i32 0, %28
br i1 %29, label %30, label %35
30: ; preds = %27
%31 = load i32, ptr @stderr, align 4
%32 = call i32 @fprintf(i32 noundef %31, ptr noundef @.str.1)
%33 = load i32, ptr @EXIT_FAILURE, align 4
%34 = call i32 @exit(i32 noundef %33) #3
unreachable
35: ; preds = %27
%36 = load i32, ptr %2, align 4
%37 = call i64 @read_frame(i32 noundef %36)
%38 = icmp ne i64 %37, 0
br i1 %38, label %39, label %40
39: ; preds = %35
br label %41
40: ; preds = %35
br label %.backedge
41: ; preds = %39
%42 = call i32 @sleep(i32 noundef 5)
br label %6
}
declare i32 @FD_ZERO(ptr noundef) #1
declare i32 @FD_SET(i32 noundef, ptr noundef) #1
declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i64 @read_frame(i32 noundef) #1
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmplwgm_fn5.c'
source_filename = "/tmp/tmplwgm_fn5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @octalToDecimal(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i64 @isOctal(ptr noundef %5)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %13
8: ; preds = %1
%9 = load ptr, ptr %3, align 8
%10 = call i64 @strtol(ptr noundef %9, ptr noundef null, i32 noundef 8)
%11 = trunc i64 %10 to i32
store i32 %11, ptr %4, align 4
%12 = load i32, ptr %4, align 4
store i32 %12, ptr %2, align 4
br label %13
13: ; preds = %8, %1
%14 = load i32, ptr %2, align 4
ret i32 %14
}
declare i64 @isOctal(ptr noundef) #1
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplwgm_fn5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @octalToDecimal(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i64 @isOctal(ptr noundef %5)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %13
8: ; preds = %1
%9 = load ptr, ptr %3, align 8
%10 = call i64 @strtol(ptr noundef %9, ptr noundef null, i32 noundef 8)
%11 = trunc i64 %10 to i32
store i32 %11, ptr %4, align 4
%12 = load i32, ptr %4, align 4
store i32 %12, ptr %2, align 4
br label %13
13: ; preds = %8, %1
%14 = load i32, ptr %2, align 4
ret i32 %14
}
declare i64 @isOctal(ptr noundef) #1
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6u_kgadh.c'
source_filename = "/tmp/tmp6u_kgadh.c"
target datalayout = "e-m:e-p270: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/tmp6u_kgadh.c"
target datalayout = "e-m:e-p270: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/tmpego4z8rb.c'
source_filename = "/tmp/tmpego4z8rb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_SUCCESS = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpego4z8rb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_SUCCESS = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpauue54gk.c'
source_filename = "/tmp/tmpauue54gk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.wrapped = private unnamed_addr constant [8 x i8] c"WRAPPED\00", align 1
@.str = private unnamed_addr constant [12 x i8] c"setresgid()\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"setresuid()\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"getresuid()\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"execve()\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(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 [8 x i8], align 1
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store i32 0, ptr %4, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 @__const.main.wrapped, i64 8, i1 false)
%14 = call i32 (...) @getegid()
store i32 %14, ptr %9, align 4
%15 = call i32 (...) @geteuid()
store i32 %15, ptr %10, align 4
%16 = load i32, ptr %9, align 4
%17 = load i32, ptr %9, align 4
%18 = load i32, ptr %9, align 4
%19 = call i64 @setresgid(i32 noundef %16, i32 noundef %17, i32 noundef %18)
%20 = icmp slt i64 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %3
%22 = call i32 @perror(ptr noundef @.str)
store i32 1, ptr %4, align 4
br label %42
23: ; preds = %3
%24 = load i32, ptr %10, align 4
%25 = load i32, ptr %10, align 4
%26 = load i32, ptr %10, align 4
%27 = call i64 @setresuid(i32 noundef %24, i32 noundef %25, i32 noundef %26)
%28 = icmp slt i64 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %23
%30 = call i32 @perror(ptr noundef @.str.1)
store i32 1, ptr %4, align 4
br label %42
31: ; preds = %23
%32 = call i64 @getresuid(ptr noundef %11, ptr noundef %12, ptr noundef %13)
%33 = icmp slt i64 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %31
%35 = call i32 @perror(ptr noundef @.str.2)
store i32 1, ptr %4, align 4
br label %42
36: ; preds = %31
%37 = getelementptr inbounds [8 x i8], ptr %8, i64 0, i64 0
%38 = load ptr, ptr %6, align 8
%39 = load ptr, ptr %7, align 8
%40 = call i32 @execve(ptr noundef %37, ptr noundef %38, ptr noundef %39)
%41 = call i32 @perror(ptr noundef @.str.3)
store i32 1, ptr %4, align 4
br label %42
42: ; preds = %36, %34, %29, %21
%43 = load i32, ptr %4, align 4
ret i32 %43
}
; 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 @getegid(...) #2
declare i32 @geteuid(...) #2
declare i64 @setresgid(i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @perror(ptr noundef) #2
declare i64 @setresuid(i32 noundef, i32 noundef, i32 noundef) #2
declare i64 @getresuid(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @execve(ptr noundef, ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpauue54gk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.wrapped = private unnamed_addr constant [8 x i8] c"WRAPPED\00", align 1
@.str = private unnamed_addr constant [12 x i8] c"setresgid()\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"setresuid()\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"getresuid()\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"execve()\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(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 [8 x i8], align 1
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store i32 0, ptr %4, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 @__const.main.wrapped, i64 8, i1 false)
%14 = call i32 (...) @getegid()
store i32 %14, ptr %9, align 4
%15 = call i32 (...) @geteuid()
store i32 %15, ptr %10, align 4
%16 = load i32, ptr %9, align 4
%17 = load i32, ptr %9, align 4
%18 = load i32, ptr %9, align 4
%19 = call i64 @setresgid(i32 noundef %16, i32 noundef %17, i32 noundef %18)
%20 = icmp slt i64 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %3
%22 = call i32 @perror(ptr noundef @.str)
store i32 1, ptr %4, align 4
br label %42
23: ; preds = %3
%24 = load i32, ptr %10, align 4
%25 = load i32, ptr %10, align 4
%26 = load i32, ptr %10, align 4
%27 = call i64 @setresuid(i32 noundef %24, i32 noundef %25, i32 noundef %26)
%28 = icmp slt i64 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %23
%30 = call i32 @perror(ptr noundef @.str.1)
store i32 1, ptr %4, align 4
br label %42
31: ; preds = %23
%32 = call i64 @getresuid(ptr noundef %11, ptr noundef %12, ptr noundef %13)
%33 = icmp slt i64 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %31
%35 = call i32 @perror(ptr noundef @.str.2)
store i32 1, ptr %4, align 4
br label %42
36: ; preds = %31
%37 = getelementptr inbounds [8 x i8], ptr %8, i64 0, i64 0
%38 = load ptr, ptr %6, align 8
%39 = load ptr, ptr %7, align 8
%40 = call i32 @execve(ptr noundef %37, ptr noundef %38, ptr noundef %39)
%41 = call i32 @perror(ptr noundef @.str.3)
store i32 1, ptr %4, align 4
br label %42
42: ; preds = %36, %34, %29, %21
%43 = load i32, ptr %4, align 4
ret i32 %43
}
; 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 @getegid(...) #2
declare i32 @geteuid(...) #2
declare i64 @setresgid(i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @perror(ptr noundef) #2
declare i64 @setresuid(i32 noundef, i32 noundef, i32 noundef) #2
declare i64 @getresuid(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @execve(ptr noundef, ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppa0lly6g.c'
source_filename = "/tmp/tmppa0lly6g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @json_validate(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
store ptr %5, ptr %4, align 8
%6 = call i32 @skip_space(ptr noundef %4)
%7 = call i32 @parse_value(ptr noundef %4, ptr noundef null)
%8 = icmp ne i32 %7, 0
br i1 %8, label %10, label %9
9: ; preds = %1
store i32 0, ptr %2, align 4
br label %18
10: ; preds = %1
%11 = call i32 @skip_space(ptr noundef %4)
%12 = load ptr, ptr %4, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %10
store i32 0, ptr %2, align 4
br label %18
17: ; preds = %10
store i32 1, ptr %2, align 4
br label %18
18: ; preds = %17, %16, %9
%19 = load i32, ptr %2, align 4
ret i32 %19
}
declare i32 @skip_space(ptr noundef) #1
declare i32 @parse_value(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/tmppa0lly6g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @json_validate(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
store ptr %5, ptr %4, align 8
%6 = call i32 @skip_space(ptr noundef %4)
%7 = call i32 @parse_value(ptr noundef %4, ptr noundef null)
%8 = icmp ne i32 %7, 0
br i1 %8, label %10, label %9
9: ; preds = %1
store i32 0, ptr %2, align 4
br label %18
10: ; preds = %1
%11 = call i32 @skip_space(ptr noundef %4)
%12 = load ptr, ptr %4, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %10
store i32 0, ptr %2, align 4
br label %18
17: ; preds = %10
store i32 1, ptr %2, align 4
br label %18
18: ; preds = %17, %16, %9
%19 = load i32, ptr %2, align 4
ret i32 %19
}
declare i32 @skip_space(ptr noundef) #1
declare i32 @parse_value(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/tmpx0evvu6a.c'
source_filename = "/tmp/tmpx0evvu6a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENODEV = 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/tmpx0evvu6a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENODEV = 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/tmpdaiji4fz.c'
source_filename = "/tmp/tmpdaiji4fz.c"
target datalayout = "e-m:e-p270: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
@stdout = 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
%3 = alloca i64, align 8
store i32 0, ptr %1, align 4
store ptr null, ptr %2, align 8
store i64 0, ptr %3, align 8
br label %4
4: ; preds = %8, %0
%5 = load i32, ptr @stdin, align 4
%6 = call i64 @getline(ptr noundef %2, ptr noundef %3, i32 noundef %5)
%7 = icmp sge i64 %6, 0
br i1 %7, label %8, label %13
8: ; preds = %4
%9 = load ptr, ptr %2, align 8
%10 = load i64, ptr %3, align 8
%11 = load i32, ptr @stdout, align 4
%12 = call i32 @fwrite(ptr noundef %9, i64 noundef %10, i32 noundef 1, i32 noundef %11)
br label %4, !llvm.loop !6
13: ; preds = %4
ret i32 0
}
declare i64 @getline(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fwrite(ptr noundef, i64 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdaiji4fz.c"
target datalayout = "e-m:e-p270: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
@stdout = 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
%3 = alloca i64, align 8
store i32 0, ptr %1, align 4
store ptr null, ptr %2, align 8
store i64 0, ptr %3, align 8
%4 = load i32, ptr @stdin, align 4
%5 = call i64 @getline(ptr noundef %2, ptr noundef %3, i32 noundef %4)
%6 = icmp sge i64 %5, 0
br i1 %6, label %.lr.ph, label %15
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %7
%8 = load ptr, ptr %2, align 8
%9 = load i64, ptr %3, align 8
%10 = load i32, ptr @stdout, align 4
%11 = call i32 @fwrite(ptr noundef %8, i64 noundef %9, i32 noundef 1, i32 noundef %10)
%12 = load i32, ptr @stdin, align 4
%13 = call i64 @getline(ptr noundef %2, ptr noundef %3, i32 noundef %12)
%14 = icmp sge i64 %13, 0
br i1 %14, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %7
br label %15
15: ; preds = %._crit_edge, %0
ret i32 0
}
declare i64 @getline(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fwrite(ptr noundef, i64 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpul5bgpx0.c'
source_filename = "/tmp/tmpul5bgpx0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@halfp2doubles.next = internal global i32 0, align 4
@halfp2doubles.checkieee = internal global i32 1, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @halfp2doubles(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i16, align 2
%11 = alloca i16, align 2
%12 = alloca i16, align 2
%13 = alloca i16, align 2
%14 = alloca i64, align 8
%15 = alloca i64, align 8
%16 = alloca i64, align 8
%17 = alloca i64, align 8
%18 = alloca i32, align 4
%19 = alloca double, align 8
%20 = 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
%21 = load ptr, ptr %6, align 8
store ptr %21, ptr %8, align 8
%22 = load ptr, ptr %5, align 8
store ptr %22, ptr %9, align 8
store double 1.000000e+00, ptr %19, align 8
%23 = load i32, ptr @halfp2doubles.checkieee, align 4
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %39
25: ; preds = %3
store ptr %19, ptr %20, align 8
%26 = load ptr, ptr %20, align 8
%27 = load i64, ptr %26, align 8
%28 = icmp ne i64 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %25
store i32 0, ptr @halfp2doubles.next, align 4
br label %33
30: ; preds = %25
store i32 1, ptr @halfp2doubles.next, align 4
%31 = load ptr, ptr %20, align 8
%32 = getelementptr inbounds i64, ptr %31, i32 1
store ptr %32, ptr %20, align 8
br label %33
33: ; preds = %30, %29
%34 = load ptr, ptr %20, align 8
%35 = load i64, ptr %34, align 8
%36 = icmp ne i64 %35, 1072693248
br i1 %36, label %37, label %38
37: ; preds = %33
store i32 1, ptr %4, align 4
br label %172
38: ; preds = %33
store i32 1, ptr %4, align 4
br label %172
39: ; preds = %3
%40 = load i32, ptr @halfp2doubles.next, align 4
%41 = load ptr, ptr %9, align 8
%42 = sext i32 %40 to i64
%43 = getelementptr inbounds i64, ptr %41, i64 %42
store ptr %43, ptr %9, align 8
%44 = load ptr, ptr %6, align 8
%45 = icmp eq ptr %44, null
br i1 %45, label %49, label %46
46: ; preds = %39
%47 = load ptr, ptr %5, align 8
%48 = icmp eq ptr %47, null
br i1 %48, label %49, label %50
49: ; preds = %46, %39
store i32 0, ptr %4, align 4
br label %172
50: ; preds = %46
br label %51
51: ; preds = %168, %50
%52 = load i32, ptr %7, align 4
%53 = add nsw i32 %52, -1
store i32 %53, ptr %7, align 4
%54 = icmp ne i32 %52, 0
br i1 %54, label %55, label %171
55: ; preds = %51
%56 = load ptr, ptr %8, align 8
%57 = getelementptr inbounds i16, ptr %56, i32 1
store ptr %57, ptr %8, align 8
%58 = load i16, ptr %56, align 2
store i16 %58, ptr %10, align 2
%59 = load i16, ptr %10, align 2
%60 = zext i16 %59 to i32
%61 = and i32 %60, 32767
%62 = icmp eq i32 %61, 0
br i1 %62, label %63, label %69
63: ; preds = %55
%64 = load i16, ptr %10, align 2
%65 = zext i16 %64 to i64
%66 = shl i64 %65, 16
%67 = load ptr, ptr %9, align 8
%68 = getelementptr inbounds i64, ptr %67, i32 1
store ptr %68, ptr %9, align 8
store i64 %66, ptr %67, align 8
br label %168
69: ; preds = %55
%70 = load i16, ptr %10, align 2
%71 = zext i16 %70 to i32
%72 = and i32 %71, 32768
%73 = trunc i32 %72 to i16
store i16 %73, ptr %11, align 2
%74 = load i16, ptr %10, align 2
%75 = zext i16 %74 to i32
%76 = and i32 %75, 31744
%77 = trunc i32 %76 to i16
store i16 %77, ptr %12, align 2
%78 = load i16, ptr %10, align 2
%79 = zext i16 %78 to i32
%80 = and i32 %79, 1023
%81 = trunc i32 %80 to i16
store i16 %81, ptr %13, align 2
%82 = load i16, ptr %12, align 2
%83 = zext i16 %82 to i32
%84 = icmp eq i32 %83, 0
br i1 %84, label %85, label %125
85: ; preds = %69
store i32 -1, ptr %18, align 4
br label %86
86: ; preds = %93, %85
%87 = load i32, ptr %18, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %18, align 4
%89 = load i16, ptr %13, align 2
%90 = zext i16 %89 to i32
%91 = shl i32 %90, 1
%92 = trunc i32 %91 to i16
store i16 %92, ptr %13, align 2
br label %93
93: ; preds = %86
%94 = load i16, ptr %13, align 2
%95 = zext i16 %94 to i32
%96 = and i32 %95, 1024
%97 = icmp eq i32 %96, 0
br i1 %97, label %86, label %98, !llvm.loop !6
98: ; preds = %93
%99 = load i16, ptr %11, align 2
%100 = zext i16 %99 to i64
%101 = shl i64 %100, 16
store i64 %101, ptr %14, align 8
%102 = load i16, ptr %12, align 2
%103 = zext i16 %102 to i32
%104 = ashr i32 %103, 10
%105 = sext i32 %104 to i64
%106 = sub nsw i64 %105, 15
%107 = add nsw i64 %106, 1023
%108 = load i32, ptr %18, align 4
%109 = sext i32 %108 to i64
%110 = sub nsw i64 %107, %109
store i64 %110, ptr %17, align 8
%111 = load i64, ptr %17, align 8
%112 = shl i64 %111, 20
store i64 %112, ptr %15, align 8
%113 = load i16, ptr %13, align 2
%114 = zext i16 %113 to i32
%115 = and i32 %114, 1023
%116 = zext i32 %115 to i64
%117 = shl i64 %116, 10
store i64 %117, ptr %16, align 8
%118 = load i64, ptr %14, align 8
%119 = load i64, ptr %15, align 8
%120 = or i64 %118, %119
%121 = load i64, ptr %16, align 8
%122 = or i64 %120, %121
%123 = load ptr, ptr %9, align 8
%124 = getelementptr inbounds i64, ptr %123, i32 1
store ptr %124, ptr %9, align 8
store i64 %122, ptr %123, align 8
br label %167
125: ; preds = %69
%126 = load i16, ptr %12, align 2
%127 = zext i16 %126 to i32
%128 = icmp eq i32 %127, 31744
br i1 %128, label %129, label %144
129: ; preds = %125
%130 = load i16, ptr %13, align 2
%131 = zext i16 %130 to i32
%132 = icmp eq i32 %131, 0
br i1 %132, label %133, label %140
133: ; preds = %129
%134 = load i16, ptr %11, align 2
%135 = zext i16 %134 to i64
%136 = shl i64 %135, 16
%137 = or i64 %136, 2146435072
%138 = load ptr, ptr %9, align 8
%139 = getelementptr inbounds i64, ptr %138, i32 1
store ptr %139, ptr %9, align 8
store i64 %137, ptr %138, align 8
br label %143
140: ; preds = %129
%141 = load ptr, ptr %9, align 8
%142 = getelementptr inbounds i64, ptr %141, i32 1
store ptr %142, ptr %9, align 8
store i64 4294443008, ptr %141, align 8
br label %143
143: ; preds = %140, %133
br label %166
144: ; preds = %125
%145 = load i16, ptr %11, align 2
%146 = zext i16 %145 to i64
%147 = shl i64 %146, 16
store i64 %147, ptr %14, align 8
%148 = load i16, ptr %12, align 2
%149 = zext i16 %148 to i32
%150 = ashr i32 %149, 10
%151 = sext i32 %150 to i64
%152 = sub nsw i64 %151, 15
%153 = add nsw i64 %152, 1023
store i64 %153, ptr %17, align 8
%154 = load i64, ptr %17, align 8
%155 = shl i64 %154, 20
store i64 %155, ptr %15, align 8
%156 = load i16, ptr %13, align 2
%157 = zext i16 %156 to i64
%158 = shl i64 %157, 10
store i64 %158, ptr %16, align 8
%159 = load i64, ptr %14, align 8
%160 = load i64, ptr %15, align 8
%161 = or i64 %159, %160
%162 = load i64, ptr %16, align 8
%163 = or i64 %161, %162
%164 = load ptr, ptr %9, align 8
%165 = getelementptr inbounds i64, ptr %164, i32 1
store ptr %165, ptr %9, align 8
store i64 %163, ptr %164, align 8
br label %166
166: ; preds = %144, %143
br label %167
167: ; preds = %166, %98
br label %168
168: ; preds = %167, %63
%169 = load ptr, ptr %9, align 8
%170 = getelementptr inbounds i64, ptr %169, i32 1
store ptr %170, ptr %9, align 8
br label %51, !llvm.loop !8
171: ; preds = %51
store i32 0, ptr %4, align 4
br label %172
172: ; preds = %171, %49, %38, %37
%173 = load i32, ptr %4, align 4
ret i32 %173
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpul5bgpx0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@halfp2doubles.next = internal global i32 0, align 4
@halfp2doubles.checkieee = internal global i32 1, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @halfp2doubles(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i16, align 2
%11 = alloca i16, align 2
%12 = alloca i16, align 2
%13 = alloca i16, align 2
%14 = alloca i64, align 8
%15 = alloca i64, align 8
%16 = alloca i64, align 8
%17 = alloca i64, align 8
%18 = alloca i32, align 4
%19 = alloca double, align 8
%20 = 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
%21 = load ptr, ptr %6, align 8
store ptr %21, ptr %8, align 8
%22 = load ptr, ptr %5, align 8
store ptr %22, ptr %9, align 8
store double 1.000000e+00, ptr %19, align 8
%23 = load i32, ptr @halfp2doubles.checkieee, align 4
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %39
25: ; preds = %3
store ptr %19, ptr %20, align 8
%26 = load ptr, ptr %20, align 8
%27 = load i64, ptr %26, align 8
%28 = icmp ne i64 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %25
store i32 0, ptr @halfp2doubles.next, align 4
br label %33
30: ; preds = %25
store i32 1, ptr @halfp2doubles.next, align 4
%31 = load ptr, ptr %20, align 8
%32 = getelementptr inbounds i64, ptr %31, i32 1
store ptr %32, ptr %20, align 8
br label %33
33: ; preds = %30, %29
%34 = load ptr, ptr %20, align 8
%35 = load i64, ptr %34, align 8
%36 = icmp ne i64 %35, 1072693248
br i1 %36, label %37, label %38
37: ; preds = %33
store i32 1, ptr %4, align 4
br label %174
38: ; preds = %33
store i32 1, ptr %4, align 4
br label %174
39: ; preds = %3
%40 = load i32, ptr @halfp2doubles.next, align 4
%41 = load ptr, ptr %9, align 8
%42 = sext i32 %40 to i64
%43 = getelementptr inbounds i64, ptr %41, i64 %42
store ptr %43, ptr %9, align 8
%44 = load ptr, ptr %6, align 8
%45 = icmp eq ptr %44, null
br i1 %45, label %49, label %46
46: ; preds = %39
%47 = load ptr, ptr %5, align 8
%48 = icmp eq ptr %47, null
br i1 %48, label %49, label %50
49: ; preds = %46, %39
store i32 0, ptr %4, align 4
br label %174
50: ; preds = %46
%51 = load i32, ptr %7, align 4
%52 = add nsw i32 %51, -1
store i32 %52, ptr %7, align 4
%53 = icmp ne i32 %51, 0
br i1 %53, label %.lr.ph, label %173
.lr.ph: ; preds = %50
br label %54
54: ; preds = %.lr.ph, %167
%55 = load ptr, ptr %8, align 8
%56 = getelementptr inbounds i16, ptr %55, i32 1
store ptr %56, ptr %8, align 8
%57 = load i16, ptr %55, align 2
store i16 %57, ptr %10, align 2
%58 = load i16, ptr %10, align 2
%59 = zext i16 %58 to i32
%60 = and i32 %59, 32767
%61 = icmp eq i32 %60, 0
br i1 %61, label %62, label %68
62: ; preds = %54
%63 = load i16, ptr %10, align 2
%64 = zext i16 %63 to i64
%65 = shl i64 %64, 16
%66 = load ptr, ptr %9, align 8
%67 = getelementptr inbounds i64, ptr %66, i32 1
store ptr %67, ptr %9, align 8
store i64 %65, ptr %66, align 8
br label %167
68: ; preds = %54
%69 = load i16, ptr %10, align 2
%70 = zext i16 %69 to i32
%71 = and i32 %70, 32768
%72 = trunc i32 %71 to i16
store i16 %72, ptr %11, align 2
%73 = load i16, ptr %10, align 2
%74 = zext i16 %73 to i32
%75 = and i32 %74, 31744
%76 = trunc i32 %75 to i16
store i16 %76, ptr %12, align 2
%77 = load i16, ptr %10, align 2
%78 = zext i16 %77 to i32
%79 = and i32 %78, 1023
%80 = trunc i32 %79 to i16
store i16 %80, ptr %13, align 2
%81 = load i16, ptr %12, align 2
%82 = zext i16 %81 to i32
%83 = icmp eq i32 %82, 0
br i1 %83, label %84, label %124
84: ; preds = %68
store i32 -1, ptr %18, align 4
br label %85
85: ; preds = %92, %84
%86 = load i32, ptr %18, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %18, align 4
%88 = load i16, ptr %13, align 2
%89 = zext i16 %88 to i32
%90 = shl i32 %89, 1
%91 = trunc i32 %90 to i16
store i16 %91, ptr %13, align 2
br label %92
92: ; preds = %85
%93 = load i16, ptr %13, align 2
%94 = zext i16 %93 to i32
%95 = and i32 %94, 1024
%96 = icmp eq i32 %95, 0
br i1 %96, label %85, label %97, !llvm.loop !6
97: ; preds = %92
%98 = load i16, ptr %11, align 2
%99 = zext i16 %98 to i64
%100 = shl i64 %99, 16
store i64 %100, ptr %14, align 8
%101 = load i16, ptr %12, align 2
%102 = zext i16 %101 to i32
%103 = ashr i32 %102, 10
%104 = sext i32 %103 to i64
%105 = sub nsw i64 %104, 15
%106 = add nsw i64 %105, 1023
%107 = load i32, ptr %18, align 4
%108 = sext i32 %107 to i64
%109 = sub nsw i64 %106, %108
store i64 %109, ptr %17, align 8
%110 = load i64, ptr %17, align 8
%111 = shl i64 %110, 20
store i64 %111, ptr %15, align 8
%112 = load i16, ptr %13, align 2
%113 = zext i16 %112 to i32
%114 = and i32 %113, 1023
%115 = zext i32 %114 to i64
%116 = shl i64 %115, 10
store i64 %116, ptr %16, align 8
%117 = load i64, ptr %14, align 8
%118 = load i64, ptr %15, align 8
%119 = or i64 %117, %118
%120 = load i64, ptr %16, align 8
%121 = or i64 %119, %120
%122 = load ptr, ptr %9, align 8
%123 = getelementptr inbounds i64, ptr %122, i32 1
store ptr %123, ptr %9, align 8
store i64 %121, ptr %122, align 8
br label %166
124: ; preds = %68
%125 = load i16, ptr %12, align 2
%126 = zext i16 %125 to i32
%127 = icmp eq i32 %126, 31744
br i1 %127, label %128, label %143
128: ; preds = %124
%129 = load i16, ptr %13, align 2
%130 = zext i16 %129 to i32
%131 = icmp eq i32 %130, 0
br i1 %131, label %132, label %139
132: ; preds = %128
%133 = load i16, ptr %11, align 2
%134 = zext i16 %133 to i64
%135 = shl i64 %134, 16
%136 = or i64 %135, 2146435072
%137 = load ptr, ptr %9, align 8
%138 = getelementptr inbounds i64, ptr %137, i32 1
store ptr %138, ptr %9, align 8
store i64 %136, ptr %137, align 8
br label %142
139: ; preds = %128
%140 = load ptr, ptr %9, align 8
%141 = getelementptr inbounds i64, ptr %140, i32 1
store ptr %141, ptr %9, align 8
store i64 4294443008, ptr %140, align 8
br label %142
142: ; preds = %139, %132
br label %165
143: ; preds = %124
%144 = load i16, ptr %11, align 2
%145 = zext i16 %144 to i64
%146 = shl i64 %145, 16
store i64 %146, ptr %14, align 8
%147 = load i16, ptr %12, align 2
%148 = zext i16 %147 to i32
%149 = ashr i32 %148, 10
%150 = sext i32 %149 to i64
%151 = sub nsw i64 %150, 15
%152 = add nsw i64 %151, 1023
store i64 %152, ptr %17, align 8
%153 = load i64, ptr %17, align 8
%154 = shl i64 %153, 20
store i64 %154, ptr %15, align 8
%155 = load i16, ptr %13, align 2
%156 = zext i16 %155 to i64
%157 = shl i64 %156, 10
store i64 %157, ptr %16, align 8
%158 = load i64, ptr %14, align 8
%159 = load i64, ptr %15, align 8
%160 = or i64 %158, %159
%161 = load i64, ptr %16, align 8
%162 = or i64 %160, %161
%163 = load ptr, ptr %9, align 8
%164 = getelementptr inbounds i64, ptr %163, i32 1
store ptr %164, ptr %9, align 8
store i64 %162, ptr %163, align 8
br label %165
165: ; preds = %143, %142
br label %166
166: ; preds = %165, %97
br label %167
167: ; preds = %166, %62
%168 = load ptr, ptr %9, align 8
%169 = getelementptr inbounds i64, ptr %168, i32 1
store ptr %169, ptr %9, align 8
%170 = load i32, ptr %7, align 4
%171 = add nsw i32 %170, -1
store i32 %171, ptr %7, align 4
%172 = icmp ne i32 %170, 0
br i1 %172, label %54, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %167
br label %173
173: ; preds = %._crit_edge, %50
store i32 0, ptr %4, align 4
br label %174
174: ; preds = %173, %49, %38, %37
%175 = load i32, ptr %4, align 4
ret i32 %175
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmptwvzt3st.c'
source_filename = "/tmp/tmptwvzt3st.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"MPI_Irecv - Error!\0A\00", align 1
@.str.2 = private unnamed_addr constant [38 x i8] c" Should not recv message from self.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @MPI_Irecv(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
store ptr %0, ptr %8, align 8
store i32 %1, ptr %9, align 4
store i32 %2, ptr %10, align 4
store i32 %3, ptr %11, align 4
store i32 %4, ptr %12, align 4
store i32 %5, ptr %13, align 4
store ptr %6, ptr %14, align 8
store i32 1, ptr %15, align 4
%16 = call i32 @printf(ptr noundef @.str)
%17 = call i32 @printf(ptr noundef @.str.1)
%18 = call i32 @printf(ptr noundef @.str.2)
%19 = load i32, ptr %15, align 4
ret i32 %19
}
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/tmptwvzt3st.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"MPI_Irecv - Error!\0A\00", align 1
@.str.2 = private unnamed_addr constant [38 x i8] c" Should not recv message from self.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @MPI_Irecv(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
store ptr %0, ptr %8, align 8
store i32 %1, ptr %9, align 4
store i32 %2, ptr %10, align 4
store i32 %3, ptr %11, align 4
store i32 %4, ptr %12, align 4
store i32 %5, ptr %13, align 4
store ptr %6, ptr %14, align 8
store i32 1, ptr %15, align 4
%16 = call i32 @printf(ptr noundef @.str)
%17 = call i32 @printf(ptr noundef @.str.1)
%18 = call i32 @printf(ptr noundef @.str.2)
%19 = load i32, ptr %15, align 4
ret i32 %19
}
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/tmphe91y7vf.c'
source_filename = "/tmp/tmphe91y7vf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @elliptic_complete_third(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
%7 = load double, ptr %5, align 8
%8 = fsub double 1.000000e+00, %7
%9 = load double, ptr %5, align 8
%10 = fadd double 1.000000e+00, %9
%11 = fmul double %8, %10
store double %11, ptr %6, align 8
%12 = load double, ptr %6, align 8
%13 = fcmp ogt double %12, 0.000000e+00
br i1 %13, label %14, label %25
14: ; preds = %2
%15 = load double, ptr %6, align 8
%16 = call double @carlson_elliptic_rf(double noundef 0.000000e+00, double noundef %15, double noundef 1.000000e+00)
%17 = load double, ptr %4, align 8
%18 = load double, ptr %6, align 8
%19 = load double, ptr %4, align 8
%20 = fsub double 1.000000e+00, %19
%21 = call double @carlson_elliptic_rj(double noundef 0.000000e+00, double noundef %18, double noundef 1.000000e+00, double noundef %20)
%22 = fmul double %17, %21
%23 = fdiv double %22, 3.000000e+00
%24 = fadd double %16, %23
store double %24, ptr %3, align 8
br label %26
25: ; preds = %2
store double -1.000000e+00, ptr %3, align 8
br label %26
26: ; preds = %25, %14
%27 = load double, ptr %3, align 8
ret double %27
}
declare double @carlson_elliptic_rf(double noundef, double noundef, double noundef) #1
declare double @carlson_elliptic_rj(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/tmphe91y7vf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @elliptic_complete_third(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
%7 = load double, ptr %5, align 8
%8 = fsub double 1.000000e+00, %7
%9 = load double, ptr %5, align 8
%10 = fadd double 1.000000e+00, %9
%11 = fmul double %8, %10
store double %11, ptr %6, align 8
%12 = load double, ptr %6, align 8
%13 = fcmp ogt double %12, 0.000000e+00
br i1 %13, label %14, label %25
14: ; preds = %2
%15 = load double, ptr %6, align 8
%16 = call double @carlson_elliptic_rf(double noundef 0.000000e+00, double noundef %15, double noundef 1.000000e+00)
%17 = load double, ptr %4, align 8
%18 = load double, ptr %6, align 8
%19 = load double, ptr %4, align 8
%20 = fsub double 1.000000e+00, %19
%21 = call double @carlson_elliptic_rj(double noundef 0.000000e+00, double noundef %18, double noundef 1.000000e+00, double noundef %20)
%22 = fmul double %17, %21
%23 = fdiv double %22, 3.000000e+00
%24 = fadd double %16, %23
store double %24, ptr %3, align 8
br label %26
25: ; preds = %2
store double -1.000000e+00, ptr %3, align 8
br label %26
26: ; preds = %25, %14
%27 = load double, ptr %3, align 8
ret double %27
}
declare double @carlson_elliptic_rf(double noundef, double noundef, double noundef) #1
declare double @carlson_elliptic_rj(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/tmpp2whxlup.c'
source_filename = "/tmp/tmpp2whxlup.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s=%s\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"NX_TRUSTED_USER\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%s=%d\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"NX_COMMFD\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"USER\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"nx\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c"SSH_CLIENT\00", align 1
@.str.7 = private unnamed_addr constant [12 x i8] c"SSH_CLIENT2\00", align 1
@.str.8 = private unnamed_addr constant [21 x i8] c"/usr/NX/bin/nxserver\00", align 1
@.str.9 = private unnamed_addr constant [13 x i8] c"/usr/NX/bin/\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @launch_nxserver(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%14 = call i32 (...) @geteuid()
%15 = call i32 (...) @geteuid()
%16 = call i32 @setreuid(i32 noundef %14, i32 noundef %15)
%17 = call ptr @calloc(i32 noundef 6, i32 noundef 8)
store ptr %17, ptr %11, align 8
store i32 0, ptr %13, align 4
%18 = load ptr, ptr %5, align 8
%19 = call i64 (i32, i32, ptr, ptr, ...) @snprintf(i32 noundef 0, i32 noundef 0, ptr noundef @.str, ptr noundef @.str.1, ptr noundef %18)
store i64 %19, ptr %9, align 8
%20 = load i64, ptr %9, align 8
%21 = add i64 %20, 1
%22 = call ptr @malloc(i64 noundef %21)
store ptr %22, ptr %10, align 8
%23 = load ptr, ptr %10, align 8
%24 = icmp ne ptr %23, null
%25 = zext i1 %24 to i32
%26 = call i32 @assert(i32 noundef %25)
%27 = load ptr, ptr %10, align 8
%28 = load ptr, ptr %5, align 8
%29 = call i32 (ptr, ptr, ptr, ...) @sprintf(ptr noundef %27, ptr noundef @.str, ptr noundef @.str.1, ptr noundef %28)
%30 = load ptr, ptr %10, align 8
%31 = load ptr, ptr %11, align 8
%32 = load i32, ptr %13, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %13, align 4
%34 = sext i32 %32 to i64
%35 = getelementptr inbounds ptr, ptr %31, i64 %34
store ptr %30, ptr %35, align 8
%36 = load i32, ptr %6, align 4
%37 = call i64 (i32, i32, ptr, ptr, ...) @snprintf(i32 noundef 0, i32 noundef 0, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef %36)
store i64 %37, ptr %9, align 8
%38 = load i64, ptr %9, align 8
%39 = add i64 %38, 1
%40 = call ptr @malloc(i64 noundef %39)
store ptr %40, ptr %10, align 8
%41 = load ptr, ptr %10, align 8
%42 = icmp ne ptr %41, null
%43 = zext i1 %42 to i32
%44 = call i32 @assert(i32 noundef %43)
%45 = load ptr, ptr %10, align 8
%46 = load i32, ptr %6, align 4
%47 = call i32 (ptr, ptr, ptr, ...) @sprintf(ptr noundef %45, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef %46)
%48 = load ptr, ptr %10, align 8
%49 = load ptr, ptr %11, align 8
%50 = load i32, ptr %13, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %13, align 4
%52 = sext i32 %50 to i64
%53 = getelementptr inbounds ptr, ptr %49, i64 %52
store ptr %48, ptr %53, align 8
%54 = call i64 (i32, i32, ptr, ptr, ...) @snprintf(i32 noundef 0, i32 noundef 0, ptr noundef @.str, ptr noundef @.str.4, ptr noundef @.str.5)
store i64 %54, ptr %9, align 8
%55 = load i64, ptr %9, align 8
%56 = add i64 %55, 1
%57 = call ptr @malloc(i64 noundef %56)
store ptr %57, ptr %10, align 8
%58 = load ptr, ptr %10, align 8
%59 = icmp ne ptr %58, null
%60 = zext i1 %59 to i32
%61 = call i32 @assert(i32 noundef %60)
%62 = load ptr, ptr %10, align 8
%63 = call i32 (ptr, ptr, ptr, ...) @sprintf(ptr noundef %62, ptr noundef @.str, ptr noundef @.str.4, ptr noundef @.str.5)
%64 = load ptr, ptr %10, align 8
%65 = load ptr, ptr %11, align 8
%66 = load i32, ptr %13, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %13, align 4
%68 = sext i32 %66 to i64
%69 = getelementptr inbounds ptr, ptr %65, i64 %68
store ptr %64, ptr %69, align 8
%70 = call ptr @getenv(ptr noundef @.str.6)
%71 = icmp ne ptr %70, null
br i1 %71, label %72, label %91
72: ; preds = %4
%73 = call ptr @getenv(ptr noundef @.str.6)
%74 = call i64 (i32, i32, ptr, ptr, ...) @snprintf(i32 noundef 0, i32 noundef 0, ptr noundef @.str, ptr noundef @.str.6, ptr noundef %73)
store i64 %74, ptr %9, align 8
%75 = load i64, ptr %9, align 8
%76 = add i64 %75, 1
%77 = call ptr @malloc(i64 noundef %76)
store ptr %77, ptr %10, align 8
%78 = load ptr, ptr %10, align 8
%79 = icmp ne ptr %78, null
%80 = zext i1 %79 to i32
%81 = call i32 @assert(i32 noundef %80)
%82 = load ptr, ptr %10, align 8
%83 = call ptr @getenv(ptr noundef @.str.6)
%84 = call i32 (ptr, ptr, ptr, ...) @sprintf(ptr noundef %82, ptr noundef @.str, ptr noundef @.str.6, ptr noundef %83)
%85 = load ptr, ptr %10, align 8
%86 = load ptr, ptr %11, align 8
%87 = load i32, ptr %13, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %13, align 4
%89 = sext i32 %87 to i64
%90 = getelementptr inbounds ptr, ptr %86, i64 %89
store ptr %85, ptr %90, align 8
br label %91
91: ; preds = %72, %4
%92 = call ptr @getenv(ptr noundef @.str.7)
%93 = icmp ne ptr %92, null
br i1 %93, label %94, label %113
94: ; preds = %91
%95 = call ptr @getenv(ptr noundef @.str.7)
%96 = call i64 (i32, i32, ptr, ptr, ...) @snprintf(i32 noundef 0, i32 noundef 0, ptr noundef @.str, ptr noundef @.str.7, ptr noundef %95)
store i64 %96, ptr %9, align 8
%97 = load i64, ptr %9, align 8
%98 = add i64 %97, 1
%99 = call ptr @malloc(i64 noundef %98)
store ptr %99, ptr %10, align 8
%100 = load ptr, ptr %10, align 8
%101 = icmp ne ptr %100, null
%102 = zext i1 %101 to i32
%103 = call i32 @assert(i32 noundef %102)
%104 = load ptr, ptr %10, align 8
%105 = call ptr @getenv(ptr noundef @.str.7)
%106 = call i32 (ptr, ptr, ptr, ...) @sprintf(ptr noundef %104, ptr noundef @.str, ptr noundef @.str.7, ptr noundef %105)
%107 = load ptr, ptr %10, align 8
%108 = load ptr, ptr %11, align 8
%109 = load i32, ptr %13, align 4
%110 = add nsw i32 %109, 1
store i32 %110, ptr %13, align 4
%111 = sext i32 %109 to i64
%112 = getelementptr inbounds ptr, ptr %108, i64 %111
store ptr %107, ptr %112, align 8
br label %113
113: ; preds = %94, %91
%114 = load i32, ptr %7, align 4
%115 = add nsw i32 %114, 1
%116 = call ptr @calloc(i32 noundef %115, i32 noundef 8)
store ptr %116, ptr %12, align 8
%117 = load ptr, ptr %12, align 8
%118 = getelementptr inbounds ptr, ptr %117, i64 0
store ptr @.str.8, ptr %118, align 8
store i32 1, ptr %13, align 4
br label %119
119: ; preds = %133, %113
%120 = load i32, ptr %13, align 4
%121 = load i32, ptr %7, align 4
%122 = icmp slt i32 %120, %121
br i1 %122, label %123, label %136
123: ; preds = %119
%124 = load ptr, ptr %8, align 8
%125 = load i32, ptr %13, align 4
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds ptr, ptr %124, i64 %126
%128 = load ptr, ptr %127, align 8
%129 = load ptr, ptr %12, align 8
%130 = load i32, ptr %13, align 4
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds ptr, ptr %129, i64 %131
store ptr %128, ptr %132, align 8
br label %133
133: ; preds = %123
%134 = load i32, ptr %13, align 4
%135 = add nsw i32 %134, 1
store i32 %135, ptr %13, align 4
br label %119, !llvm.loop !6
136: ; preds = %119
%137 = call i32 @chdir(ptr noundef @.str.9)
%138 = load ptr, ptr %12, align 8
%139 = load ptr, ptr %11, align 8
%140 = call i32 @execve(ptr noundef @.str.8, ptr noundef %138, ptr noundef %139)
ret i32 %140
}
declare i32 @setreuid(i32 noundef, i32 noundef) #1
declare i32 @geteuid(...) #1
declare ptr @calloc(i32 noundef, i32 noundef) #1
declare i64 @snprintf(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ...) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @assert(i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ...) #1
declare ptr @getenv(ptr noundef) #1
declare i32 @chdir(ptr noundef) #1
declare i32 @execve(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp2whxlup.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s=%s\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"NX_TRUSTED_USER\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%s=%d\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"NX_COMMFD\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"USER\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"nx\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c"SSH_CLIENT\00", align 1
@.str.7 = private unnamed_addr constant [12 x i8] c"SSH_CLIENT2\00", align 1
@.str.8 = private unnamed_addr constant [21 x i8] c"/usr/NX/bin/nxserver\00", align 1
@.str.9 = private unnamed_addr constant [13 x i8] c"/usr/NX/bin/\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @launch_nxserver(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%14 = call i32 (...) @geteuid()
%15 = call i32 (...) @geteuid()
%16 = call i32 @setreuid(i32 noundef %14, i32 noundef %15)
%17 = call ptr @calloc(i32 noundef 6, i32 noundef 8)
store ptr %17, ptr %11, align 8
store i32 0, ptr %13, align 4
%18 = load ptr, ptr %5, align 8
%19 = call i64 (i32, i32, ptr, ptr, ...) @snprintf(i32 noundef 0, i32 noundef 0, ptr noundef @.str, ptr noundef @.str.1, ptr noundef %18)
store i64 %19, ptr %9, align 8
%20 = load i64, ptr %9, align 8
%21 = add i64 %20, 1
%22 = call ptr @malloc(i64 noundef %21)
store ptr %22, ptr %10, align 8
%23 = load ptr, ptr %10, align 8
%24 = icmp ne ptr %23, null
%25 = zext i1 %24 to i32
%26 = call i32 @assert(i32 noundef %25)
%27 = load ptr, ptr %10, align 8
%28 = load ptr, ptr %5, align 8
%29 = call i32 (ptr, ptr, ptr, ...) @sprintf(ptr noundef %27, ptr noundef @.str, ptr noundef @.str.1, ptr noundef %28)
%30 = load ptr, ptr %10, align 8
%31 = load ptr, ptr %11, align 8
%32 = load i32, ptr %13, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %13, align 4
%34 = sext i32 %32 to i64
%35 = getelementptr inbounds ptr, ptr %31, i64 %34
store ptr %30, ptr %35, align 8
%36 = load i32, ptr %6, align 4
%37 = call i64 (i32, i32, ptr, ptr, ...) @snprintf(i32 noundef 0, i32 noundef 0, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef %36)
store i64 %37, ptr %9, align 8
%38 = load i64, ptr %9, align 8
%39 = add i64 %38, 1
%40 = call ptr @malloc(i64 noundef %39)
store ptr %40, ptr %10, align 8
%41 = load ptr, ptr %10, align 8
%42 = icmp ne ptr %41, null
%43 = zext i1 %42 to i32
%44 = call i32 @assert(i32 noundef %43)
%45 = load ptr, ptr %10, align 8
%46 = load i32, ptr %6, align 4
%47 = call i32 (ptr, ptr, ptr, ...) @sprintf(ptr noundef %45, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef %46)
%48 = load ptr, ptr %10, align 8
%49 = load ptr, ptr %11, align 8
%50 = load i32, ptr %13, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %13, align 4
%52 = sext i32 %50 to i64
%53 = getelementptr inbounds ptr, ptr %49, i64 %52
store ptr %48, ptr %53, align 8
%54 = call i64 (i32, i32, ptr, ptr, ...) @snprintf(i32 noundef 0, i32 noundef 0, ptr noundef @.str, ptr noundef @.str.4, ptr noundef @.str.5)
store i64 %54, ptr %9, align 8
%55 = load i64, ptr %9, align 8
%56 = add i64 %55, 1
%57 = call ptr @malloc(i64 noundef %56)
store ptr %57, ptr %10, align 8
%58 = load ptr, ptr %10, align 8
%59 = icmp ne ptr %58, null
%60 = zext i1 %59 to i32
%61 = call i32 @assert(i32 noundef %60)
%62 = load ptr, ptr %10, align 8
%63 = call i32 (ptr, ptr, ptr, ...) @sprintf(ptr noundef %62, ptr noundef @.str, ptr noundef @.str.4, ptr noundef @.str.5)
%64 = load ptr, ptr %10, align 8
%65 = load ptr, ptr %11, align 8
%66 = load i32, ptr %13, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %13, align 4
%68 = sext i32 %66 to i64
%69 = getelementptr inbounds ptr, ptr %65, i64 %68
store ptr %64, ptr %69, align 8
%70 = call ptr @getenv(ptr noundef @.str.6)
%71 = icmp ne ptr %70, null
br i1 %71, label %72, label %91
72: ; preds = %4
%73 = call ptr @getenv(ptr noundef @.str.6)
%74 = call i64 (i32, i32, ptr, ptr, ...) @snprintf(i32 noundef 0, i32 noundef 0, ptr noundef @.str, ptr noundef @.str.6, ptr noundef %73)
store i64 %74, ptr %9, align 8
%75 = load i64, ptr %9, align 8
%76 = add i64 %75, 1
%77 = call ptr @malloc(i64 noundef %76)
store ptr %77, ptr %10, align 8
%78 = load ptr, ptr %10, align 8
%79 = icmp ne ptr %78, null
%80 = zext i1 %79 to i32
%81 = call i32 @assert(i32 noundef %80)
%82 = load ptr, ptr %10, align 8
%83 = call ptr @getenv(ptr noundef @.str.6)
%84 = call i32 (ptr, ptr, ptr, ...) @sprintf(ptr noundef %82, ptr noundef @.str, ptr noundef @.str.6, ptr noundef %83)
%85 = load ptr, ptr %10, align 8
%86 = load ptr, ptr %11, align 8
%87 = load i32, ptr %13, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %13, align 4
%89 = sext i32 %87 to i64
%90 = getelementptr inbounds ptr, ptr %86, i64 %89
store ptr %85, ptr %90, align 8
br label %91
91: ; preds = %72, %4
%92 = call ptr @getenv(ptr noundef @.str.7)
%93 = icmp ne ptr %92, null
br i1 %93, label %94, label %113
94: ; preds = %91
%95 = call ptr @getenv(ptr noundef @.str.7)
%96 = call i64 (i32, i32, ptr, ptr, ...) @snprintf(i32 noundef 0, i32 noundef 0, ptr noundef @.str, ptr noundef @.str.7, ptr noundef %95)
store i64 %96, ptr %9, align 8
%97 = load i64, ptr %9, align 8
%98 = add i64 %97, 1
%99 = call ptr @malloc(i64 noundef %98)
store ptr %99, ptr %10, align 8
%100 = load ptr, ptr %10, align 8
%101 = icmp ne ptr %100, null
%102 = zext i1 %101 to i32
%103 = call i32 @assert(i32 noundef %102)
%104 = load ptr, ptr %10, align 8
%105 = call ptr @getenv(ptr noundef @.str.7)
%106 = call i32 (ptr, ptr, ptr, ...) @sprintf(ptr noundef %104, ptr noundef @.str, ptr noundef @.str.7, ptr noundef %105)
%107 = load ptr, ptr %10, align 8
%108 = load ptr, ptr %11, align 8
%109 = load i32, ptr %13, align 4
%110 = add nsw i32 %109, 1
store i32 %110, ptr %13, align 4
%111 = sext i32 %109 to i64
%112 = getelementptr inbounds ptr, ptr %108, i64 %111
store ptr %107, ptr %112, align 8
br label %113
113: ; preds = %94, %91
%114 = load i32, ptr %7, align 4
%115 = add nsw i32 %114, 1
%116 = call ptr @calloc(i32 noundef %115, i32 noundef 8)
store ptr %116, ptr %12, align 8
%117 = load ptr, ptr %12, align 8
%118 = getelementptr inbounds ptr, ptr %117, i64 0
store ptr @.str.8, ptr %118, align 8
store i32 1, ptr %13, align 4
%119 = load i32, ptr %13, align 4
%120 = load i32, ptr %7, align 4
%121 = icmp slt i32 %119, %120
br i1 %121, label %.lr.ph, label %138
.lr.ph: ; preds = %113
br label %122
122: ; preds = %.lr.ph, %132
%123 = load ptr, ptr %8, align 8
%124 = load i32, ptr %13, align 4
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds ptr, ptr %123, i64 %125
%127 = load ptr, ptr %126, align 8
%128 = load ptr, ptr %12, align 8
%129 = load i32, ptr %13, align 4
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds ptr, ptr %128, i64 %130
store ptr %127, ptr %131, align 8
br label %132
132: ; preds = %122
%133 = load i32, ptr %13, align 4
%134 = add nsw i32 %133, 1
store i32 %134, ptr %13, align 4
%135 = load i32, ptr %13, align 4
%136 = load i32, ptr %7, align 4
%137 = icmp slt i32 %135, %136
br i1 %137, label %122, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %132
br label %138
138: ; preds = %._crit_edge, %113
%139 = call i32 @chdir(ptr noundef @.str.9)
%140 = load ptr, ptr %12, align 8
%141 = load ptr, ptr %11, align 8
%142 = call i32 @execve(ptr noundef @.str.8, ptr noundef %140, ptr noundef %141)
ret i32 %142
}
declare i32 @setreuid(i32 noundef, i32 noundef) #1
declare i32 @geteuid(...) #1
declare ptr @calloc(i32 noundef, i32 noundef) #1
declare i64 @snprintf(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ...) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @assert(i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ...) #1
declare ptr @getenv(ptr noundef) #1
declare i32 @chdir(ptr noundef) #1
declare i32 @execve(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp7pegdrql.c'
source_filename = "/tmp/tmp7pegdrql.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [43 x i8] c"=========================================\0A\00", align 1
@.str.1 = private unnamed_addr constant [43 x i8] c"| var | value of var | address of var |\0A\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"| a | %14d | %14p |\0A\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"| b | %14d | %14p |\0A\00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c"| ptr | %14p | %14p |\0A\00", align 1
@.str.5 = private unnamed_addr constant [43 x i8] c"-----------------------------------------\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store i32 10, ptr %2, align 4
store i32 23, ptr %3, align 4
store ptr null, ptr %4, align 8
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = load i32, ptr %2, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %8, ptr noundef %2)
%10 = load i32, ptr %3, align 4
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %10, ptr noundef %3)
%12 = load ptr, ptr %4, align 8
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %12, ptr noundef %4)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store ptr %3, ptr %4, align 8
%15 = load i32, ptr %2, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %15, ptr noundef %2)
%17 = load i32, ptr %3, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %17, ptr noundef %3)
%19 = load ptr, ptr %4, align 8
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %19, ptr noundef %4)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store ptr %2, ptr %4, align 8
%22 = load i32, ptr %2, align 4
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %22, ptr noundef %2)
%24 = load i32, ptr %3, align 4
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %24, ptr noundef %3)
%26 = load ptr, ptr %4, align 8
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %26, ptr noundef %4)
%28 = call i32 (ptr, ...) @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/tmp7pegdrql.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [43 x i8] c"=========================================\0A\00", align 1
@.str.1 = private unnamed_addr constant [43 x i8] c"| var | value of var | address of var |\0A\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"| a | %14d | %14p |\0A\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"| b | %14d | %14p |\0A\00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c"| ptr | %14p | %14p |\0A\00", align 1
@.str.5 = private unnamed_addr constant [43 x i8] c"-----------------------------------------\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store i32 10, ptr %2, align 4
store i32 23, ptr %3, align 4
store ptr null, ptr %4, align 8
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = load i32, ptr %2, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %8, ptr noundef %2)
%10 = load i32, ptr %3, align 4
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %10, ptr noundef %3)
%12 = load ptr, ptr %4, align 8
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %12, ptr noundef %4)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store ptr %3, ptr %4, align 8
%15 = load i32, ptr %2, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %15, ptr noundef %2)
%17 = load i32, ptr %3, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %17, ptr noundef %3)
%19 = load ptr, ptr %4, align 8
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %19, ptr noundef %4)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store ptr %2, ptr %4, align 8
%22 = load i32, ptr %2, align 4
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %22, ptr noundef %2)
%24 = load i32, ptr %3, align 4
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %24, ptr noundef %3)
%26 = load ptr, ptr %4, align 8
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %26, ptr noundef %4)
%28 = call i32 (ptr, ...) @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/tmplpag_k8q.c'
source_filename = "/tmp/tmplpag_k8q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @intlen(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [12 x i8], align 1
store i32 %0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
store i32 %5, ptr %3, align 4
%6 = getelementptr inbounds [12 x i8], ptr %4, i64 0, i64 0
%7 = call i32 @iptoa(ptr noundef %6, ptr noundef %3)
%8 = getelementptr inbounds [12 x i8], ptr %4, i64 0, i64 0
%9 = call i32 @printf(ptr noundef @.str, ptr noundef %8)
%10 = getelementptr inbounds [12 x i8], ptr %4, i64 0, i64 0
%11 = call i32 @len(ptr noundef %10)
ret i32 %11
}
declare i32 @iptoa(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @len(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplpag_k8q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @intlen(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [12 x i8], align 1
store i32 %0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
store i32 %5, ptr %3, align 4
%6 = getelementptr inbounds [12 x i8], ptr %4, i64 0, i64 0
%7 = call i32 @iptoa(ptr noundef %6, ptr noundef %3)
%8 = getelementptr inbounds [12 x i8], ptr %4, i64 0, i64 0
%9 = call i32 @printf(ptr noundef @.str, ptr noundef %8)
%10 = getelementptr inbounds [12 x i8], ptr %4, i64 0, i64 0
%11 = call i32 @len(ptr noundef %10)
ret i32 %11
}
declare i32 @iptoa(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @len(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpiskwowy0.c'
source_filename = "/tmp/tmpiskwowy0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in6 = type { i32, i32, i32 }
@AF_INET6 = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [49 x i8] c"Error while setting TS (socket). ERR: %s (%i).\0A\00", align 1
@errno = dso_local global i32 0, align 4
@in6addr_any = dso_local global i32 0, align 4
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_REUSEADDR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [52 x i8] c"Error while setting TS (setsockopt). ERR: %s (%i).\0A\00", align 1
@.str.2 = private unnamed_addr constant [49 x i8] c"Error while setting TS (binding). ERR: %s (%i).\0A\00", align 1
@.str.3 = private unnamed_addr constant [51 x i8] c"Error while setting TS (listening). ERR: %s (%i).\0A\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"TS configured.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ts_listen(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 %struct.sockaddr_in6, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 -1, ptr %6, align 4
store i32 1, ptr %7, align 4
%9 = call i32 @memset(ptr noundef %8, i32 noundef 0, i32 noundef 12)
%10 = load i32, ptr @AF_INET6, align 4
%11 = load i32, ptr @SOCK_STREAM, align 4
%12 = call i32 @socket(i32 noundef %10, i32 noundef %11, i32 noundef 0)
%13 = load ptr, ptr %5, align 8
store i32 %12, ptr %13, align 4
%14 = load ptr, ptr %5, align 8
%15 = load i32, ptr %14, align 4
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %23
17: ; preds = %2
store i32 1, ptr %6, align 4
%18 = load i32, ptr @errno, align 4
%19 = call i32 @strerror(i32 noundef %18)
%20 = load i32, ptr %6, align 4
%21 = call i32 (i32, ptr, ...) @UNLLog(i32 noundef 1, ptr noundef @.str, i32 noundef %19, i32 noundef %20)
%22 = load i32, ptr %6, align 4
store i32 %22, ptr %3, align 4
br label %67
23: ; preds = %2
%24 = load i32, ptr @AF_INET6, align 4
%25 = getelementptr inbounds %struct.sockaddr_in6, ptr %8, i32 0, i32 2
store i32 %24, ptr %25, align 4
%26 = load i32, ptr %4, align 4
%27 = call i32 @htons(i32 noundef %26)
%28 = getelementptr inbounds %struct.sockaddr_in6, ptr %8, i32 0, i32 1
store i32 %27, ptr %28, align 4
%29 = load i32, ptr @in6addr_any, align 4
%30 = getelementptr inbounds %struct.sockaddr_in6, ptr %8, i32 0, i32 0
store i32 %29, ptr %30, align 4
%31 = load ptr, ptr %5, align 8
%32 = load i32, ptr %31, align 4
%33 = load i32, ptr @SOL_SOCKET, align 4
%34 = load i32, ptr @SO_REUSEADDR, align 4
%35 = call i64 @setsockopt(i32 noundef %32, i32 noundef %33, i32 noundef %34, ptr noundef %7, i32 noundef 4)
%36 = icmp slt i64 %35, 0
br i1 %36, label %37, label %43
37: ; preds = %23
store i32 2, ptr %6, align 4
%38 = load i32, ptr @errno, align 4
%39 = call i32 @strerror(i32 noundef %38)
%40 = load i32, ptr %6, align 4
%41 = call i32 (i32, ptr, ...) @UNLLog(i32 noundef 1, ptr noundef @.str.1, i32 noundef %39, i32 noundef %40)
%42 = load i32, ptr %6, align 4
store i32 %42, ptr %3, align 4
br label %67
43: ; preds = %23
%44 = load ptr, ptr %5, align 8
%45 = load i32, ptr %44, align 4
%46 = call i64 @bind(i32 noundef %45, ptr noundef %8, i32 noundef 12)
%47 = icmp slt i64 %46, 0
br i1 %47, label %48, label %54
48: ; preds = %43
store i32 3, ptr %6, align 4
%49 = load i32, ptr @errno, align 4
%50 = call i32 @strerror(i32 noundef %49)
%51 = load i32, ptr %6, align 4
%52 = call i32 (i32, ptr, ...) @UNLLog(i32 noundef 1, ptr noundef @.str.2, i32 noundef %50, i32 noundef %51)
%53 = load i32, ptr %6, align 4
store i32 %53, ptr %3, align 4
br label %67
54: ; preds = %43
%55 = load ptr, ptr %5, align 8
%56 = load i32, ptr %55, align 4
%57 = call i64 @listen(i32 noundef %56, i32 noundef 5)
%58 = icmp slt i64 %57, 0
br i1 %58, label %59, label %65
59: ; preds = %54
store i32 4, ptr %6, align 4
%60 = load i32, ptr @errno, align 4
%61 = call i32 @strerror(i32 noundef %60)
%62 = load i32, ptr %6, align 4
%63 = call i32 (i32, ptr, ...) @UNLLog(i32 noundef 1, ptr noundef @.str.3, i32 noundef %61, i32 noundef %62)
%64 = load i32, ptr %6, align 4
store i32 %64, ptr %3, align 4
br label %67
65: ; preds = %54
%66 = call i32 (i32, ptr, ...) @UNLLog(i32 noundef 3, ptr noundef @.str.4)
store i32 0, ptr %3, align 4
br label %67
67: ; preds = %65, %59, %48, %37, %17
%68 = load i32, ptr %3, align 4
ret i32 %68
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @UNLLog(i32 noundef, ptr noundef, ...) #1
declare i32 @strerror(i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i64 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @listen(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpiskwowy0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in6 = type { i32, i32, i32 }
@AF_INET6 = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [49 x i8] c"Error while setting TS (socket). ERR: %s (%i).\0A\00", align 1
@errno = dso_local global i32 0, align 4
@in6addr_any = dso_local global i32 0, align 4
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_REUSEADDR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [52 x i8] c"Error while setting TS (setsockopt). ERR: %s (%i).\0A\00", align 1
@.str.2 = private unnamed_addr constant [49 x i8] c"Error while setting TS (binding). ERR: %s (%i).\0A\00", align 1
@.str.3 = private unnamed_addr constant [51 x i8] c"Error while setting TS (listening). ERR: %s (%i).\0A\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"TS configured.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ts_listen(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 %struct.sockaddr_in6, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 -1, ptr %6, align 4
store i32 1, ptr %7, align 4
%9 = call i32 @memset(ptr noundef %8, i32 noundef 0, i32 noundef 12)
%10 = load i32, ptr @AF_INET6, align 4
%11 = load i32, ptr @SOCK_STREAM, align 4
%12 = call i32 @socket(i32 noundef %10, i32 noundef %11, i32 noundef 0)
%13 = load ptr, ptr %5, align 8
store i32 %12, ptr %13, align 4
%14 = load ptr, ptr %5, align 8
%15 = load i32, ptr %14, align 4
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %23
17: ; preds = %2
store i32 1, ptr %6, align 4
%18 = load i32, ptr @errno, align 4
%19 = call i32 @strerror(i32 noundef %18)
%20 = load i32, ptr %6, align 4
%21 = call i32 (i32, ptr, ...) @UNLLog(i32 noundef 1, ptr noundef @.str, i32 noundef %19, i32 noundef %20)
%22 = load i32, ptr %6, align 4
store i32 %22, ptr %3, align 4
br label %67
23: ; preds = %2
%24 = load i32, ptr @AF_INET6, align 4
%25 = getelementptr inbounds %struct.sockaddr_in6, ptr %8, i32 0, i32 2
store i32 %24, ptr %25, align 4
%26 = load i32, ptr %4, align 4
%27 = call i32 @htons(i32 noundef %26)
%28 = getelementptr inbounds %struct.sockaddr_in6, ptr %8, i32 0, i32 1
store i32 %27, ptr %28, align 4
%29 = load i32, ptr @in6addr_any, align 4
%30 = getelementptr inbounds %struct.sockaddr_in6, ptr %8, i32 0, i32 0
store i32 %29, ptr %30, align 4
%31 = load ptr, ptr %5, align 8
%32 = load i32, ptr %31, align 4
%33 = load i32, ptr @SOL_SOCKET, align 4
%34 = load i32, ptr @SO_REUSEADDR, align 4
%35 = call i64 @setsockopt(i32 noundef %32, i32 noundef %33, i32 noundef %34, ptr noundef %7, i32 noundef 4)
%36 = icmp slt i64 %35, 0
br i1 %36, label %37, label %43
37: ; preds = %23
store i32 2, ptr %6, align 4
%38 = load i32, ptr @errno, align 4
%39 = call i32 @strerror(i32 noundef %38)
%40 = load i32, ptr %6, align 4
%41 = call i32 (i32, ptr, ...) @UNLLog(i32 noundef 1, ptr noundef @.str.1, i32 noundef %39, i32 noundef %40)
%42 = load i32, ptr %6, align 4
store i32 %42, ptr %3, align 4
br label %67
43: ; preds = %23
%44 = load ptr, ptr %5, align 8
%45 = load i32, ptr %44, align 4
%46 = call i64 @bind(i32 noundef %45, ptr noundef %8, i32 noundef 12)
%47 = icmp slt i64 %46, 0
br i1 %47, label %48, label %54
48: ; preds = %43
store i32 3, ptr %6, align 4
%49 = load i32, ptr @errno, align 4
%50 = call i32 @strerror(i32 noundef %49)
%51 = load i32, ptr %6, align 4
%52 = call i32 (i32, ptr, ...) @UNLLog(i32 noundef 1, ptr noundef @.str.2, i32 noundef %50, i32 noundef %51)
%53 = load i32, ptr %6, align 4
store i32 %53, ptr %3, align 4
br label %67
54: ; preds = %43
%55 = load ptr, ptr %5, align 8
%56 = load i32, ptr %55, align 4
%57 = call i64 @listen(i32 noundef %56, i32 noundef 5)
%58 = icmp slt i64 %57, 0
br i1 %58, label %59, label %65
59: ; preds = %54
store i32 4, ptr %6, align 4
%60 = load i32, ptr @errno, align 4
%61 = call i32 @strerror(i32 noundef %60)
%62 = load i32, ptr %6, align 4
%63 = call i32 (i32, ptr, ...) @UNLLog(i32 noundef 1, ptr noundef @.str.3, i32 noundef %61, i32 noundef %62)
%64 = load i32, ptr %6, align 4
store i32 %64, ptr %3, align 4
br label %67
65: ; preds = %54
%66 = call i32 (i32, ptr, ...) @UNLLog(i32 noundef 3, ptr noundef @.str.4)
store i32 0, ptr %3, align 4
br label %67
67: ; preds = %65, %59, %48, %37, %17
%68 = load i32, ptr %3, align 4
ret i32 %68
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @UNLLog(i32 noundef, ptr noundef, ...) #1
declare i32 @strerror(i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i64 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @listen(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2pvxvfeu.c'
source_filename = "/tmp/tmp2pvxvfeu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Hello from thread!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @test_thread(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @pthread_exit(ptr noundef null)
ret ptr null
}
declare i32 @printf(ptr noundef) #1
declare i32 @pthread_exit(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2pvxvfeu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Hello from thread!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @test_thread(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @pthread_exit(ptr noundef null)
ret ptr null
}
declare i32 @printf(ptr noundef) #1
declare i32 @pthread_exit(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsk11jzik.c'
source_filename = "/tmp/tmpsk11jzik.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @DebugP_log1(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
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/tmpsk11jzik.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @DebugP_log1(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
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/tmpu3bv1rxv.c'
source_filename = "/tmp/tmpu3bv1rxv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @idle() #0 {
%1 = call i32 @glRotatef(double noundef 1.000000e-01, i32 noundef 1, i32 noundef 0, i32 noundef 0)
%2 = call i32 (...) @glutPostRedisplay()
ret void
}
declare i32 @glRotatef(double noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @glutPostRedisplay(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu3bv1rxv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @idle() #0 {
%1 = call i32 @glRotatef(double noundef 1.000000e-01, i32 noundef 1, i32 noundef 0, i32 noundef 0)
%2 = call i32 (...) @glutPostRedisplay()
ret void
}
declare i32 @glRotatef(double noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @glutPostRedisplay(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpefglyj3e.c'
source_filename = "/tmp/tmpefglyj3e.c"
target datalayout = "e-m:e-p270: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/tmpefglyj3e.c"
target datalayout = "e-m:e-p270: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/tmpvwef_quy.c'
source_filename = "/tmp/tmpvwef_quy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvwef_quy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8dd5p1br.c'
source_filename = "/tmp/tmp8dd5p1br.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [82 x i8] c"RND Invoke Response: RenderingControl/GetGreenVideoBlackLevel[ErrorCode:%d](%u)\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @RNDResponseSink_RenderingControl_GetGreenVideoBlackLevel(ptr noundef %0, i32 noundef %1, ptr noundef %2, i16 noundef zeroext %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i16, align 2
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i16 %3, ptr %8, align 2
%9 = load i32, ptr %6, align 4
%10 = load i16, ptr %8, align 2
%11 = call i32 @printf(ptr noundef @.str, i32 noundef %9, i16 noundef zeroext %10)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i16 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8dd5p1br.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [82 x i8] c"RND Invoke Response: RenderingControl/GetGreenVideoBlackLevel[ErrorCode:%d](%u)\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @RNDResponseSink_RenderingControl_GetGreenVideoBlackLevel(ptr noundef %0, i32 noundef %1, ptr noundef %2, i16 noundef zeroext %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i16, align 2
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i16 %3, ptr %8, align 2
%9 = load i32, ptr %6, align 4
%10 = load i16, ptr %8, align 2
%11 = call i32 @printf(ptr noundef @.str, i32 noundef %9, i16 noundef zeroext %10)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i16 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphdj1iorr.c'
source_filename = "/tmp/tmphdj1iorr.c"
target datalayout = "e-m:e-p270: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/tmphdj1iorr.c"
target datalayout = "e-m:e-p270: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/tmpgzjv29mb.c'
source_filename = "/tmp/tmpgzjv29mb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"yes\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @g_error(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 @printf(ptr noundef @.str, ptr noundef @.str.1, ptr noundef %3)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgzjv29mb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"yes\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @g_error(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 @printf(ptr noundef @.str, ptr noundef @.str.1, ptr noundef %3)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvfpm5nbv.c'
source_filename = "/tmp/tmpvfpm5nbv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @matmul0(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%14 = call i64 (...) @clock()
store i64 %14, ptr %13, align 8
store i32 0, ptr %10, align 4
br label %15
15: ; preds = %68, %4
%16 = load i32, ptr %10, align 4
%17 = load i32, ptr %8, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %71
19: ; preds = %15
store i32 0, ptr %9, align 4
br label %20
20: ; preds = %64, %19
%21 = load i32, ptr %9, align 4
%22 = load i32, ptr %8, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %67
24: ; preds = %20
store i32 0, ptr %12, align 4
store i32 0, ptr %11, align 4
br label %25
25: ; preds = %51, %24
%26 = load i32, ptr %11, align 4
%27 = load i32, ptr %8, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %54
29: ; preds = %25
%30 = load ptr, ptr %6, align 8
%31 = load i32, ptr %10, align 4
%32 = load i32, ptr %8, align 4
%33 = mul nsw i32 %31, %32
%34 = load i32, ptr %11, align 4
%35 = add nsw i32 %33, %34
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %30, i64 %36
%38 = load i32, ptr %37, align 4
%39 = load ptr, ptr %7, align 8
%40 = load i32, ptr %11, align 4
%41 = load i32, ptr %8, align 4
%42 = mul nsw i32 %40, %41
%43 = load i32, ptr %9, align 4
%44 = add nsw i32 %42, %43
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i32, ptr %39, i64 %45
%47 = load i32, ptr %46, align 4
%48 = mul nsw i32 %38, %47
%49 = load i32, ptr %12, align 4
%50 = add nsw i32 %49, %48
store i32 %50, ptr %12, align 4
br label %51
51: ; preds = %29
%52 = load i32, ptr %11, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %11, align 4
br label %25, !llvm.loop !6
54: ; preds = %25
%55 = load i32, ptr %12, align 4
%56 = load ptr, ptr %5, align 8
%57 = load i32, ptr %10, align 4
%58 = load i32, ptr %8, align 4
%59 = mul nsw i32 %57, %58
%60 = load i32, ptr %9, align 4
%61 = add nsw i32 %59, %60
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i32, ptr %56, i64 %62
store i32 %55, ptr %63, align 4
br label %64
64: ; preds = %54
%65 = load i32, ptr %9, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %9, align 4
br label %20, !llvm.loop !8
67: ; preds = %20
br label %68
68: ; preds = %67
%69 = load i32, ptr %10, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %10, align 4
br label %15, !llvm.loop !9
71: ; preds = %15
%72 = call i64 (...) @clock()
%73 = load i64, ptr %13, align 8
%74 = sub nsw i64 %72, %73
ret i64 %74
}
declare i64 @clock(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpvfpm5nbv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @matmul0(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%14 = call i64 (...) @clock()
store i64 %14, ptr %13, align 8
store i32 0, ptr %10, align 4
%15 = load i32, ptr %10, align 4
%16 = load i32, ptr %8, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph5, label %77
.lr.ph5: ; preds = %4
br label %18
18: ; preds = %.lr.ph5, %71
store i32 0, ptr %9, align 4
%19 = load i32, ptr %9, align 4
%20 = load i32, ptr %8, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %.lr.ph2, label %70
.lr.ph2: ; preds = %18
br label %22
22: ; preds = %.lr.ph2, %64
store i32 0, ptr %12, align 4
store i32 0, ptr %11, align 4
%23 = load i32, ptr %11, align 4
%24 = load i32, ptr %8, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %.lr.ph, label %54
.lr.ph: ; preds = %22
br label %26
26: ; preds = %.lr.ph, %48
%27 = load ptr, ptr %6, align 8
%28 = load i32, ptr %10, align 4
%29 = load i32, ptr %8, align 4
%30 = mul nsw i32 %28, %29
%31 = load i32, ptr %11, align 4
%32 = add nsw i32 %30, %31
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i32, ptr %27, i64 %33
%35 = load i32, ptr %34, align 4
%36 = load ptr, ptr %7, align 8
%37 = load i32, ptr %11, align 4
%38 = load i32, ptr %8, align 4
%39 = mul nsw i32 %37, %38
%40 = load i32, ptr %9, align 4
%41 = add nsw i32 %39, %40
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %36, i64 %42
%44 = load i32, ptr %43, align 4
%45 = mul nsw i32 %35, %44
%46 = load i32, ptr %12, align 4
%47 = add nsw i32 %46, %45
store i32 %47, ptr %12, align 4
br label %48
48: ; preds = %26
%49 = load i32, ptr %11, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %11, align 4
%51 = load i32, ptr %11, align 4
%52 = load i32, ptr %8, align 4
%53 = icmp slt i32 %51, %52
br i1 %53, label %26, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %48
br label %54
54: ; preds = %._crit_edge, %22
%55 = load i32, ptr %12, align 4
%56 = load ptr, ptr %5, align 8
%57 = load i32, ptr %10, align 4
%58 = load i32, ptr %8, align 4
%59 = mul nsw i32 %57, %58
%60 = load i32, ptr %9, align 4
%61 = add nsw i32 %59, %60
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i32, ptr %56, i64 %62
store i32 %55, ptr %63, align 4
br label %64
64: ; preds = %54
%65 = load i32, ptr %9, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %9, align 4
%67 = load i32, ptr %9, align 4
%68 = load i32, ptr %8, align 4
%69 = icmp slt i32 %67, %68
br i1 %69, label %22, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %64
br label %70
70: ; preds = %._crit_edge3, %18
br label %71
71: ; preds = %70
%72 = load i32, ptr %10, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %10, align 4
%74 = load i32, ptr %10, align 4
%75 = load i32, ptr %8, align 4
%76 = icmp slt i32 %74, %75
br i1 %76, label %18, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %71
br label %77
77: ; preds = %._crit_edge6, %4
%78 = call i64 (...) @clock()
%79 = load i64, ptr %13, align 8
%80 = sub nsw i64 %78, %79
ret i64 %80
}
declare i64 @clock(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp1hxomycp.c'
source_filename = "/tmp/tmp1hxomycp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"usage:\09%s fichier.xml\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"cannot open file %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 ptr, align 8
%7 = alloca [8192 x i8], align 16
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 2
br i1 %10, label %11, label %16
11: ; preds = %2
%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 @printf(ptr noundef @.str, ptr noundef %14)
store i32 1, ptr %3, align 4
br label %37
16: ; preds = %2
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 1
%19 = load ptr, ptr %18, align 8
%20 = call ptr @fopen(ptr noundef %19, ptr noundef @.str.1)
store ptr %20, ptr %6, align 8
%21 = load ptr, ptr %6, align 8
%22 = icmp ne ptr %21, null
br i1 %22, label %28, label %23
23: ; preds = %16
%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 @printf(ptr noundef @.str.2, ptr noundef %26)
store i32 1, ptr %3, align 4
br label %37
28: ; preds = %16
%29 = getelementptr inbounds [8192 x i8], ptr %7, i64 0, i64 0
%30 = load ptr, ptr %6, align 8
%31 = call i32 @fread(ptr noundef %29, i32 noundef 1, i32 noundef 8192, ptr noundef %30)
store i32 %31, ptr %8, align 4
%32 = load ptr, ptr %6, align 8
%33 = call i32 @fclose(ptr noundef %32)
%34 = getelementptr inbounds [8192 x i8], ptr %7, i64 0, i64 0
%35 = load i32, ptr %8, align 4
%36 = call i32 @burptest(ptr noundef %34, i32 noundef %35)
store i32 0, ptr %3, align 4
br label %37
37: ; preds = %28, %23, %11
%38 = load i32, ptr %3, align 4
ret i32 %38
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @burptest(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/tmp1hxomycp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"usage:\09%s fichier.xml\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"cannot open file %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 ptr, align 8
%7 = alloca [8192 x i8], align 16
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 2
br i1 %10, label %11, label %16
11: ; preds = %2
%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 @printf(ptr noundef @.str, ptr noundef %14)
store i32 1, ptr %3, align 4
br label %37
16: ; preds = %2
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 1
%19 = load ptr, ptr %18, align 8
%20 = call ptr @fopen(ptr noundef %19, ptr noundef @.str.1)
store ptr %20, ptr %6, align 8
%21 = load ptr, ptr %6, align 8
%22 = icmp ne ptr %21, null
br i1 %22, label %28, label %23
23: ; preds = %16
%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 @printf(ptr noundef @.str.2, ptr noundef %26)
store i32 1, ptr %3, align 4
br label %37
28: ; preds = %16
%29 = getelementptr inbounds [8192 x i8], ptr %7, i64 0, i64 0
%30 = load ptr, ptr %6, align 8
%31 = call i32 @fread(ptr noundef %29, i32 noundef 1, i32 noundef 8192, ptr noundef %30)
store i32 %31, ptr %8, align 4
%32 = load ptr, ptr %6, align 8
%33 = call i32 @fclose(ptr noundef %32)
%34 = getelementptr inbounds [8192 x i8], ptr %7, i64 0, i64 0
%35 = load i32, ptr %8, align 4
%36 = call i32 @burptest(ptr noundef %34, i32 noundef %35)
store i32 0, ptr %3, align 4
br label %37
37: ; preds = %28, %23, %11
%38 = load i32, ptr %3, align 4
ret i32 %38
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @burptest(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/tmppnxe6t63.c'
source_filename = "/tmp/tmppnxe6t63.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @blogc_get_filename(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %12
11: ; preds = %1
store ptr null, ptr %2, align 8
br label %74
12: ; preds = %1
%13 = load ptr, ptr %3, align 8
%14 = call i32 @strlen(ptr noundef %13)
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %12
store ptr null, ptr %2, align 8
br label %74
17: ; preds = %12
%18 = load ptr, ptr %3, align 8
%19 = call ptr @bc_strdup(ptr noundef %18)
store ptr %19, ptr %4, align 8
%20 = load ptr, ptr %4, align 8
store ptr %20, ptr %5, align 8
store i32 0, ptr %6, align 4
%21 = load ptr, ptr %5, align 8
%22 = call i32 @strlen(ptr noundef %21)
store i32 %22, ptr %7, align 4
br label %23
23: ; preds = %65, %17
%24 = load i32, ptr %7, align 4
%25 = icmp sge i32 %24, 0
br i1 %25, label %26, label %68
26: ; preds = %23
%27 = load i32, ptr %6, align 4
%28 = icmp ne i32 %27, 0
br i1 %28, label %42, label %29
29: ; preds = %26
%30 = load ptr, ptr %5, align 8
%31 = load i32, ptr %7, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %30, i64 %32
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 46
br i1 %36, label %37, label %42
37: ; preds = %29
%38 = load ptr, ptr %5, align 8
%39 = load i32, ptr %7, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, ptr %38, i64 %40
store i8 0, ptr %41, align 1
store i32 1, ptr %6, align 4
br label %65
42: ; preds = %29, %26
%43 = load ptr, ptr %5, align 8
%44 = load i32, ptr %7, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i8, ptr %43, i64 %45
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = icmp eq i32 %48, 47
br i1 %49, label %58, label %50
50: ; preds = %42
%51 = load ptr, ptr %5, align 8
%52 = load i32, ptr %7, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, ptr %51, i64 %53
%55 = load i8, ptr %54, align 1
%56 = sext i8 %55 to i32
%57 = icmp eq i32 %56, 92
br i1 %57, label %58, label %64
58: ; preds = %50, %42
%59 = load i32, ptr %7, align 4
%60 = add nsw i32 %59, 1
%61 = load ptr, ptr %5, align 8
%62 = sext i32 %60 to i64
%63 = getelementptr inbounds i8, ptr %61, i64 %62
store ptr %63, ptr %5, align 8
br label %68
64: ; preds = %50
br label %65
65: ; preds = %64, %37
%66 = load i32, ptr %7, align 4
%67 = add nsw i32 %66, -1
store i32 %67, ptr %7, align 4
br label %23, !llvm.loop !6
68: ; preds = %58, %23
%69 = load ptr, ptr %5, align 8
%70 = call ptr @bc_strdup(ptr noundef %69)
store ptr %70, ptr %8, align 8
%71 = load ptr, ptr %4, align 8
%72 = call i32 @free(ptr noundef %71)
%73 = load ptr, ptr %8, align 8
store ptr %73, ptr %2, align 8
br label %74
74: ; preds = %68, %16, %11
%75 = load ptr, ptr %2, align 8
ret ptr %75
}
declare i32 @strlen(ptr noundef) #1
declare ptr @bc_strdup(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/tmppnxe6t63.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @blogc_get_filename(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %12
11: ; preds = %1
store ptr null, ptr %2, align 8
br label %75
12: ; preds = %1
%13 = load ptr, ptr %3, align 8
%14 = call i32 @strlen(ptr noundef %13)
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %12
store ptr null, ptr %2, align 8
br label %75
17: ; preds = %12
%18 = load ptr, ptr %3, align 8
%19 = call ptr @bc_strdup(ptr noundef %18)
store ptr %19, ptr %4, align 8
%20 = load ptr, ptr %4, align 8
store ptr %20, ptr %5, align 8
store i32 0, ptr %6, align 4
%21 = load ptr, ptr %5, align 8
%22 = call i32 @strlen(ptr noundef %21)
store i32 %22, ptr %7, align 4
%23 = load i32, ptr %7, align 4
%24 = icmp sge i32 %23, 0
br i1 %24, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %17
br label %25
25: ; preds = %.lr.ph, %64
%26 = load i32, ptr %6, align 4
%27 = icmp ne i32 %26, 0
br i1 %27, label %41, label %28
28: ; preds = %25
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %7, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 46
br i1 %35, label %36, label %41
36: ; preds = %28
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %7, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %37, i64 %39
store i8 0, ptr %40, align 1
store i32 1, ptr %6, align 4
br label %64
41: ; preds = %28, %25
%42 = load ptr, ptr %5, align 8
%43 = load i32, ptr %7, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, ptr %42, i64 %44
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = icmp eq i32 %47, 47
br i1 %48, label %57, label %49
49: ; preds = %41
%50 = load ptr, ptr %5, align 8
%51 = load i32, ptr %7, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8, ptr %50, i64 %52
%54 = load i8, ptr %53, align 1
%55 = sext i8 %54 to i32
%56 = icmp eq i32 %55, 92
br i1 %56, label %57, label %63
57: ; preds = %49, %41
%58 = load i32, ptr %7, align 4
%59 = add nsw i32 %58, 1
%60 = load ptr, ptr %5, align 8
%61 = sext i32 %59 to i64
%62 = getelementptr inbounds i8, ptr %60, i64 %61
store ptr %62, ptr %5, align 8
br label %69
63: ; preds = %49
br label %64
64: ; preds = %63, %36
%65 = load i32, ptr %7, align 4
%66 = add nsw i32 %65, -1
store i32 %66, ptr %7, align 4
%67 = load i32, ptr %7, align 4
%68 = icmp sge i32 %67, 0
br i1 %68, label %25, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %64
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %17
br label %69
69: ; preds = %.loopexit, %57
%70 = load ptr, ptr %5, align 8
%71 = call ptr @bc_strdup(ptr noundef %70)
store ptr %71, ptr %8, align 8
%72 = load ptr, ptr %4, align 8
%73 = call i32 @free(ptr noundef %72)
%74 = load ptr, ptr %8, align 8
store ptr %74, ptr %2, align 8
br label %75
75: ; preds = %69, %16, %11
%76 = load ptr, ptr %2, align 8
ret ptr %76
}
declare i32 @strlen(ptr noundef) #1
declare ptr @bc_strdup(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/tmpc9wn29yv.c'
source_filename = "/tmp/tmpc9wn29yv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %3
3: ; preds = %11, %0
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 10
br i1 %5, label %6, label %14
6: ; preds = %3
%7 = load i32, ptr %2, align 4
%8 = sitofp i32 %7 to double
%9 = fdiv double 0x41E0000000000000, %8
%10 = call i32 @printf(ptr noundef @.str, double noundef %9)
br label %11
11: ; preds = %6
%12 = load i32, ptr %2, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %2, align 4
br label %3, !llvm.loop !6
14: ; preds = %3
ret i32 0
}
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc9wn29yv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp slt i32 %3, 10
br i1 %4, label %.lr.ph, label %15
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %10
%6 = load i32, ptr %2, align 4
%7 = sitofp i32 %6 to double
%8 = fdiv double 0x41E0000000000000, %7
%9 = call i32 @printf(ptr noundef @.str, double noundef %8)
br label %10
10: ; preds = %5
%11 = load i32, ptr %2, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %2, align 4
%13 = load i32, ptr %2, align 4
%14 = icmp slt i32 %13, 10
br i1 %14, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %15
15: ; preds = %._crit_edge, %0
ret i32 0
}
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"}
|
; ModuleID = '/tmp/tmp4b1wz6zd.c'
source_filename = "/tmp/tmp4b1wz6zd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_REUSEADDR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @tcpsocket_listen(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca %struct.sockaddr_in, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%10 = load i32, ptr @AF_INET, align 4
%11 = load i32, ptr @SOCK_STREAM, align 4
%12 = call i32 @socket(i32 noundef %10, i32 noundef %11, i32 noundef 0)
store i32 %12, ptr %6, align 4
store i32 1, ptr %7, align 4
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr @SOL_SOCKET, align 4
%15 = load i32, ptr @SO_REUSEADDR, align 4
%16 = call i32 @setsockopt(i32 noundef %13, i32 noundef %14, i32 noundef %15, ptr noundef %7, i32 noundef 4)
%17 = call i32 @memset(ptr noundef %8, i8 noundef signext 0, i32 noundef 12)
%18 = load i32, ptr @AF_INET, align 4
%19 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 2
store i32 %18, ptr %19, align 4
%20 = load ptr, ptr %4, align 8
%21 = call i32 @inet_addr(ptr noundef %20)
%22 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 1
%23 = getelementptr inbounds %struct.TYPE_2__, ptr %22, i32 0, i32 0
store i32 %21, ptr %23, align 4
%24 = load i32, ptr %5, align 4
%25 = call i32 @htons(i32 noundef %24)
%26 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 0
store i32 %25, ptr %26, align 4
%27 = load i32, ptr %6, align 4
%28 = call i32 @bind(i32 noundef %27, ptr noundef %8, i32 noundef 12)
store i32 %28, ptr %9, align 4
%29 = load i32, ptr %9, align 4
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %38
31: ; preds = %2
%32 = load i32, ptr %6, align 4
%33 = call i64 @listen(i32 noundef %32, i32 noundef 128)
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %31
%36 = load i32, ptr %6, align 4
store i32 %36, ptr %3, align 4
br label %39
37: ; preds = %31
store i32 -2, ptr %3, align 4
br label %39
38: ; preds = %2
store i32 -1, ptr %3, align 4
br label %39
39: ; preds = %38, %37, %35
%40 = load i32, ptr %3, align 4
ret i32 %40
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @inet_addr(ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @listen(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4b1wz6zd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_REUSEADDR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @tcpsocket_listen(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca %struct.sockaddr_in, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%10 = load i32, ptr @AF_INET, align 4
%11 = load i32, ptr @SOCK_STREAM, align 4
%12 = call i32 @socket(i32 noundef %10, i32 noundef %11, i32 noundef 0)
store i32 %12, ptr %6, align 4
store i32 1, ptr %7, align 4
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr @SOL_SOCKET, align 4
%15 = load i32, ptr @SO_REUSEADDR, align 4
%16 = call i32 @setsockopt(i32 noundef %13, i32 noundef %14, i32 noundef %15, ptr noundef %7, i32 noundef 4)
%17 = call i32 @memset(ptr noundef %8, i8 noundef signext 0, i32 noundef 12)
%18 = load i32, ptr @AF_INET, align 4
%19 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 2
store i32 %18, ptr %19, align 4
%20 = load ptr, ptr %4, align 8
%21 = call i32 @inet_addr(ptr noundef %20)
%22 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 1
%23 = getelementptr inbounds %struct.TYPE_2__, ptr %22, i32 0, i32 0
store i32 %21, ptr %23, align 4
%24 = load i32, ptr %5, align 4
%25 = call i32 @htons(i32 noundef %24)
%26 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 0
store i32 %25, ptr %26, align 4
%27 = load i32, ptr %6, align 4
%28 = call i32 @bind(i32 noundef %27, ptr noundef %8, i32 noundef 12)
store i32 %28, ptr %9, align 4
%29 = load i32, ptr %9, align 4
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %38
31: ; preds = %2
%32 = load i32, ptr %6, align 4
%33 = call i64 @listen(i32 noundef %32, i32 noundef 128)
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %31
%36 = load i32, ptr %6, align 4
store i32 %36, ptr %3, align 4
br label %39
37: ; preds = %31
store i32 -2, ptr %3, align 4
br label %39
38: ; preds = %2
store i32 -1, ptr %3, align 4
br label %39
39: ; preds = %38, %37, %35
%40 = load i32, ptr %3, align 4
ret i32 %40
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @inet_addr(ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @listen(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpj_jt_oc3.c'
source_filename = "/tmp/tmpj_jt_oc3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nisdigit(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
br label %6
6: ; preds = %23, %2
%7 = load ptr, ptr %4, align 8
%8 = load i8, ptr %7, align 1
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %6
%12 = load i32, ptr %5, align 4
%13 = icmp ne i32 %12, 0
br label %14
14: ; preds = %11, %6
%15 = phi i1 [ false, %6 ], [ %13, %11 ]
br i1 %15, label %16, label %28
16: ; preds = %14
%17 = load ptr, ptr %4, align 8
%18 = load i8, ptr %17, align 1
%19 = call i32 @isdigit(i8 noundef signext %18)
%20 = icmp ne i32 %19, 0
br i1 %20, label %22, label %21
21: ; preds = %16
store i32 0, ptr %3, align 4
br label %29
22: ; preds = %16
br label %23
23: ; preds = %22
%24 = load ptr, ptr %4, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %4, align 8
%26 = load i32, ptr %5, align 4
%27 = add nsw i32 %26, -1
store i32 %27, ptr %5, align 4
br label %6, !llvm.loop !6
28: ; preds = %14
store i32 1, ptr %3, align 4
br label %29
29: ; preds = %28, %21
%30 = load i32, ptr %3, align 4
ret i32 %30
}
declare i32 @isdigit(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/tmpj_jt_oc3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nisdigit(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
br label %6
6: ; preds = %23, %2
%7 = load ptr, ptr %4, align 8
%8 = load i8, ptr %7, align 1
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %6
%12 = load i32, ptr %5, align 4
%13 = icmp ne i32 %12, 0
br label %14
14: ; preds = %11, %6
%15 = phi i1 [ false, %6 ], [ %13, %11 ]
br i1 %15, label %16, label %28
16: ; preds = %14
%17 = load ptr, ptr %4, align 8
%18 = load i8, ptr %17, align 1
%19 = call i32 @isdigit(i8 noundef signext %18)
%20 = icmp ne i32 %19, 0
br i1 %20, label %22, label %21
21: ; preds = %16
store i32 0, ptr %3, align 4
br label %29
22: ; preds = %16
br label %23
23: ; preds = %22
%24 = load ptr, ptr %4, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %4, align 8
%26 = load i32, ptr %5, align 4
%27 = add nsw i32 %26, -1
store i32 %27, ptr %5, align 4
br label %6, !llvm.loop !6
28: ; preds = %14
store i32 1, ptr %3, align 4
br label %29
29: ; preds = %28, %21
%30 = load i32, ptr %3, align 4
ret i32 %30
}
declare i32 @isdigit(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/tmpmafg4ev8.c'
source_filename = "/tmp/tmpmafg4ev8.c"
target datalayout = "e-m:e-p270: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/tmpmafg4ev8.c"
target datalayout = "e-m:e-p270: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/tmpt2muudan.c'
source_filename = "/tmp/tmpt2muudan.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@acc_device_host = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr @acc_device_host, align 4
store i32 %7, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = call i32 @acc_init(i32 noundef %8)
%10 = load i32, ptr %6, align 4
%11 = call i32 @acc_shutdown(i32 noundef %10)
%12 = load i32, ptr %6, align 4
%13 = call i32 @acc_shutdown(i32 noundef %12)
ret i32 0
}
declare i32 @acc_init(i32 noundef) #1
declare i32 @acc_shutdown(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/tmpt2muudan.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@acc_device_host = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr @acc_device_host, align 4
store i32 %7, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = call i32 @acc_init(i32 noundef %8)
%10 = load i32, ptr %6, align 4
%11 = call i32 @acc_shutdown(i32 noundef %10)
%12 = load i32, ptr %6, align 4
%13 = call i32 @acc_shutdown(i32 noundef %12)
ret i32 0
}
declare i32 @acc_init(i32 noundef) #1
declare i32 @acc_shutdown(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/tmpnpj2g4ta.c'
source_filename = "/tmp/tmpnpj2g4ta.c"
target datalayout = "e-m:e-p270: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/tmpnpj2g4ta.c"
target datalayout = "e-m:e-p270: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/tmpemg3zydj.c'
source_filename = "/tmp/tmpemg3zydj.c"
target datalayout = "e-m:e-p270: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 @surface_reshape(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @glViewport(i32 noundef 0, i32 noundef 0, i32 noundef %5, i32 noundef %6)
%8 = load i32, ptr @GL_PROJECTION, align 4
%9 = call i32 @glMatrixMode(i32 noundef %8)
%10 = call i32 (...) @glLoadIdentity()
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %4, align 4
%13 = sdiv i32 %11, %12
%14 = call i32 @gluPerspective(double noundef 4.500000e+01, i32 noundef %13, double noundef 3.000000e+00, double noundef 8.000000e+00)
%15 = load i32, ptr @GL_MODELVIEW, align 4
%16 = call i32 @glMatrixMode(i32 noundef %15)
%17 = call i32 (...) @glLoadIdentity()
%18 = call i32 @glTranslatef(double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef -5.000000e+00)
ret void
}
declare i32 @glViewport(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @glMatrixMode(i32 noundef) #1
declare i32 @glLoadIdentity(...) #1
declare i32 @gluPerspective(double noundef, i32 noundef, double noundef, double noundef) #1
declare i32 @glTranslatef(double noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpemg3zydj.c"
target datalayout = "e-m:e-p270: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 @surface_reshape(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @glViewport(i32 noundef 0, i32 noundef 0, i32 noundef %5, i32 noundef %6)
%8 = load i32, ptr @GL_PROJECTION, align 4
%9 = call i32 @glMatrixMode(i32 noundef %8)
%10 = call i32 (...) @glLoadIdentity()
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %4, align 4
%13 = sdiv i32 %11, %12
%14 = call i32 @gluPerspective(double noundef 4.500000e+01, i32 noundef %13, double noundef 3.000000e+00, double noundef 8.000000e+00)
%15 = load i32, ptr @GL_MODELVIEW, align 4
%16 = call i32 @glMatrixMode(i32 noundef %15)
%17 = call i32 (...) @glLoadIdentity()
%18 = call i32 @glTranslatef(double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef -5.000000e+00)
ret void
}
declare i32 @glViewport(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @glMatrixMode(i32 noundef) #1
declare i32 @glLoadIdentity(...) #1
declare i32 @gluPerspective(double noundef, i32 noundef, double noundef, double noundef) #1
declare i32 @glTranslatef(double noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.