llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
|---|---|
; ModuleID = '/tmp/tmpwj7f_y9f.c'
source_filename = "/tmp/tmpwj7f_y9f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @kmod_list_remove_n_latest(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = load ptr, ptr %3, align 8
store ptr %7, ptr %5, align 8
store i32 0, ptr %6, align 4
br label %8
8: ; preds = %17, %2
%9 = load i32, ptr %6, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp ult i32 %9, %10
br i1 %11, label %12, label %20
12: ; preds = %8
%13 = load ptr, ptr %5, align 8
%14 = call ptr @kmod_list_last(ptr noundef %13)
store ptr %14, ptr %5, align 8
%15 = load ptr, ptr %5, align 8
%16 = call ptr @kmod_list_remove(ptr noundef %15)
store ptr %16, ptr %5, align 8
br label %17
17: ; preds = %12
%18 = load i32, ptr %6, align 4
%19 = add i32 %18, 1
store i32 %19, ptr %6, align 4
br label %8, !llvm.loop !6
20: ; preds = %8
%21 = load ptr, ptr %5, align 8
ret ptr %21
}
declare ptr @kmod_list_last(ptr noundef) #1
declare ptr @kmod_list_remove(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpwj7f_y9f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @kmod_list_remove_n_latest(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = load ptr, ptr %3, align 8
store ptr %7, ptr %5, align 8
store i32 0, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp ult i32 %8, %9
br i1 %10, label %.lr.ph, label %22
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %16
%12 = load ptr, ptr %5, align 8
%13 = call ptr @kmod_list_last(ptr noundef %12)
store ptr %13, ptr %5, align 8
%14 = load ptr, ptr %5, align 8
%15 = call ptr @kmod_list_remove(ptr noundef %14)
store ptr %15, ptr %5, align 8
br label %16
16: ; preds = %11
%17 = load i32, ptr %6, align 4
%18 = add i32 %17, 1
store i32 %18, ptr %6, align 4
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp ult i32 %19, %20
br i1 %21, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %22
22: ; preds = %._crit_edge, %2
%23 = load ptr, ptr %5, align 8
ret ptr %23
}
declare ptr @kmod_list_last(ptr noundef) #1
declare ptr @kmod_list_remove(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpvck_gtle.c'
source_filename = "/tmp/tmpvck_gtle.c"
target datalayout = "e-m:e-p270: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/tmpvck_gtle.c"
target datalayout = "e-m:e-p270: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/tmpok9lbvbu.c'
source_filename = "/tmp/tmpok9lbvbu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @LefEndStatement(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
br label %4
4: ; preds = %14, %1
%5 = load ptr, ptr %2, align 8
%6 = call ptr @LefNextToken(ptr noundef %5, i32 noundef 1)
store ptr %6, ptr %3, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %8, label %15
8: ; preds = %4
%9 = load ptr, ptr %3, align 8
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp eq i32 %11, 59
br i1 %12, label %13, label %14
13: ; preds = %8
br label %15
14: ; preds = %8
br label %4, !llvm.loop !6
15: ; preds = %13, %4
ret void
}
declare ptr @LefNextToken(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/tmpok9lbvbu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @LefEndStatement(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call ptr @LefNextToken(ptr noundef %4, i32 noundef 1)
store ptr %5, ptr %3, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %1
br label %11
7: ; preds = %11
%8 = load ptr, ptr %2, align 8
%9 = call ptr @LefNextToken(ptr noundef %8, i32 noundef 1)
store ptr %9, ptr %3, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %..loopexit_crit_edge, !llvm.loop !6
11: ; preds = %.lr.ph, %7
%12 = load ptr, ptr %3, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 59
br i1 %15, label %16, label %7
16: ; preds = %11
br label %17
..loopexit_crit_edge: ; preds = %7
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %1
br label %17
17: ; preds = %.loopexit, %16
ret void
}
declare ptr @LefNextToken(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/tmpfb_7m20l.c'
source_filename = "/tmp/tmpfb_7m20l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @base64_decode(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i8, align 1
%10 = alloca i8, align 1
%11 = alloca i8, align 1
%12 = alloca i8, align 1
%13 = alloca i8, align 1
%14 = alloca i8, align 1
%15 = alloca i8, align 1
%16 = alloca i8, align 1
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%17 = load ptr, ptr %6, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %204
19: ; preds = %3
%20 = load ptr, ptr %6, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %204
24: ; preds = %19
%25 = load ptr, ptr %5, align 8
store ptr %25, ptr %8, align 8
br label %26
26: ; preds = %197, %24
%27 = load ptr, ptr %6, align 8
%28 = load i8, ptr %27, align 1
%29 = icmp ne i8 %28, 0
br i1 %29, label %30, label %198
30: ; preds = %26
store i8 65, ptr %9, align 1
store i8 65, ptr %10, align 1
store i8 65, ptr %11, align 1
store i8 65, ptr %12, align 1
store i8 0, ptr %13, align 1
store i8 0, ptr %14, align 1
store i8 0, ptr %15, align 1
store i8 0, ptr %16, align 1
br label %31
31: ; preds = %44, %30
%32 = load ptr, ptr %6, align 8
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %42
36: ; preds = %31
%37 = load ptr, ptr %6, align 8
%38 = load i8, ptr %37, align 1
%39 = call i32 @is_base64(i8 noundef signext %38)
%40 = icmp ne i32 %39, 0
%41 = xor i1 %40, true
br label %42
42: ; preds = %36, %31
%43 = phi i1 [ false, %31 ], [ %41, %36 ]
br i1 %43, label %44, label %47
44: ; preds = %42
%45 = load ptr, ptr %6, align 8
%46 = getelementptr inbounds i8, ptr %45, i32 1
store ptr %46, ptr %6, align 8
br label %31, !llvm.loop !6
47: ; preds = %42
%48 = load ptr, ptr %6, align 8
%49 = load i8, ptr %48, align 1
%50 = icmp ne i8 %49, 0
br i1 %50, label %51, label %55
51: ; preds = %47
%52 = load ptr, ptr %6, align 8
%53 = getelementptr inbounds i8, ptr %52, i32 1
store ptr %53, ptr %6, align 8
%54 = load i8, ptr %52, align 1
store i8 %54, ptr %9, align 1
br label %55
55: ; preds = %51, %47
br label %56
56: ; preds = %69, %55
%57 = load ptr, ptr %6, align 8
%58 = load i8, ptr %57, align 1
%59 = sext i8 %58 to i32
%60 = icmp ne i32 %59, 0
br i1 %60, label %61, label %67
61: ; preds = %56
%62 = load ptr, ptr %6, align 8
%63 = load i8, ptr %62, align 1
%64 = call i32 @is_base64(i8 noundef signext %63)
%65 = icmp ne i32 %64, 0
%66 = xor i1 %65, true
br label %67
67: ; preds = %61, %56
%68 = phi i1 [ false, %56 ], [ %66, %61 ]
br i1 %68, label %69, label %72
69: ; preds = %67
%70 = load ptr, ptr %6, align 8
%71 = getelementptr inbounds i8, ptr %70, i32 1
store ptr %71, ptr %6, align 8
br label %56, !llvm.loop !8
72: ; preds = %67
%73 = load ptr, ptr %6, align 8
%74 = load i8, ptr %73, align 1
%75 = icmp ne i8 %74, 0
br i1 %75, label %76, label %80
76: ; preds = %72
%77 = load ptr, ptr %6, align 8
%78 = getelementptr inbounds i8, ptr %77, i32 1
store ptr %78, ptr %6, align 8
%79 = load i8, ptr %77, align 1
store i8 %79, ptr %10, align 1
br label %80
80: ; preds = %76, %72
br label %81
81: ; preds = %94, %80
%82 = load ptr, ptr %6, align 8
%83 = load i8, ptr %82, align 1
%84 = sext i8 %83 to i32
%85 = icmp ne i32 %84, 0
br i1 %85, label %86, label %92
86: ; preds = %81
%87 = load ptr, ptr %6, align 8
%88 = load i8, ptr %87, align 1
%89 = call i32 @is_base64(i8 noundef signext %88)
%90 = icmp ne i32 %89, 0
%91 = xor i1 %90, true
br label %92
92: ; preds = %86, %81
%93 = phi i1 [ false, %81 ], [ %91, %86 ]
br i1 %93, label %94, label %97
94: ; preds = %92
%95 = load ptr, ptr %6, align 8
%96 = getelementptr inbounds i8, ptr %95, i32 1
store ptr %96, ptr %6, align 8
br label %81, !llvm.loop !9
97: ; preds = %92
%98 = load ptr, ptr %6, align 8
%99 = load i8, ptr %98, align 1
%100 = icmp ne i8 %99, 0
br i1 %100, label %101, label %105
101: ; preds = %97
%102 = load ptr, ptr %6, align 8
%103 = getelementptr inbounds i8, ptr %102, i32 1
store ptr %103, ptr %6, align 8
%104 = load i8, ptr %102, align 1
store i8 %104, ptr %11, align 1
br label %105
105: ; preds = %101, %97
br label %106
106: ; preds = %119, %105
%107 = load ptr, ptr %6, align 8
%108 = load i8, ptr %107, align 1
%109 = sext i8 %108 to i32
%110 = icmp ne i32 %109, 0
br i1 %110, label %111, label %117
111: ; preds = %106
%112 = load ptr, ptr %6, align 8
%113 = load i8, ptr %112, align 1
%114 = call i32 @is_base64(i8 noundef signext %113)
%115 = icmp ne i32 %114, 0
%116 = xor i1 %115, true
br label %117
117: ; preds = %111, %106
%118 = phi i1 [ false, %106 ], [ %116, %111 ]
br i1 %118, label %119, label %122
119: ; preds = %117
%120 = load ptr, ptr %6, align 8
%121 = getelementptr inbounds i8, ptr %120, i32 1
store ptr %121, ptr %6, align 8
br label %106, !llvm.loop !10
122: ; preds = %117
%123 = load ptr, ptr %6, align 8
%124 = load i8, ptr %123, align 1
%125 = icmp ne i8 %124, 0
br i1 %125, label %126, label %130
126: ; preds = %122
%127 = load ptr, ptr %6, align 8
%128 = getelementptr inbounds i8, ptr %127, i32 1
store ptr %128, ptr %6, align 8
%129 = load i8, ptr %127, align 1
store i8 %129, ptr %12, align 1
br label %130
130: ; preds = %126, %122
%131 = load i8, ptr %9, align 1
%132 = call zeroext i8 @decode(i8 noundef signext %131)
store i8 %132, ptr %13, align 1
%133 = load i8, ptr %10, align 1
%134 = call zeroext i8 @decode(i8 noundef signext %133)
store i8 %134, ptr %14, align 1
%135 = load i8, ptr %11, align 1
%136 = call zeroext i8 @decode(i8 noundef signext %135)
store i8 %136, ptr %15, align 1
%137 = load i8, ptr %12, align 1
%138 = call zeroext i8 @decode(i8 noundef signext %137)
store i8 %138, ptr %16, align 1
%139 = load i64, ptr %7, align 8
%140 = icmp ne i64 %139, 0
br i1 %140, label %142, label %141
141: ; preds = %130
br label %198
142: ; preds = %130
%143 = load i8, ptr %13, align 1
%144 = zext i8 %143 to i32
%145 = shl i32 %144, 2
%146 = load i8, ptr %14, align 1
%147 = zext i8 %146 to i32
%148 = ashr i32 %147, 4
%149 = or i32 %145, %148
%150 = trunc i32 %149 to i8
%151 = load ptr, ptr %8, align 8
%152 = getelementptr inbounds i8, ptr %151, i32 1
store ptr %152, ptr %8, align 8
store i8 %150, ptr %151, align 1
%153 = load i64, ptr %7, align 8
%154 = add i64 %153, -1
store i64 %154, ptr %7, align 8
%155 = load i8, ptr %11, align 1
%156 = sext i8 %155 to i32
%157 = icmp ne i32 %156, 61
br i1 %157, label %158, label %176
158: ; preds = %142
%159 = load i64, ptr %7, align 8
%160 = icmp ne i64 %159, 0
br i1 %160, label %162, label %161
161: ; preds = %158
br label %198
162: ; preds = %158
%163 = load i8, ptr %14, align 1
%164 = zext i8 %163 to i32
%165 = and i32 %164, 15
%166 = shl i32 %165, 4
%167 = load i8, ptr %15, align 1
%168 = zext i8 %167 to i32
%169 = ashr i32 %168, 2
%170 = or i32 %166, %169
%171 = trunc i32 %170 to i8
%172 = load ptr, ptr %8, align 8
%173 = getelementptr inbounds i8, ptr %172, i32 1
store ptr %173, ptr %8, align 8
store i8 %171, ptr %172, align 1
%174 = load i64, ptr %7, align 8
%175 = add i64 %174, -1
store i64 %175, ptr %7, align 8
br label %176
176: ; preds = %162, %142
%177 = load i8, ptr %12, align 1
%178 = sext i8 %177 to i32
%179 = icmp ne i32 %178, 61
br i1 %179, label %180, label %197
180: ; preds = %176
%181 = load i64, ptr %7, align 8
%182 = icmp ne i64 %181, 0
br i1 %182, label %184, label %183
183: ; preds = %180
br label %198
184: ; preds = %180
%185 = load i8, ptr %15, align 1
%186 = zext i8 %185 to i32
%187 = and i32 %186, 3
%188 = shl i32 %187, 6
%189 = load i8, ptr %16, align 1
%190 = zext i8 %189 to i32
%191 = or i32 %188, %190
%192 = trunc i32 %191 to i8
%193 = load ptr, ptr %8, align 8
%194 = getelementptr inbounds i8, ptr %193, i32 1
store ptr %194, ptr %8, align 8
store i8 %192, ptr %193, align 1
%195 = load i64, ptr %7, align 8
%196 = add i64 %195, -1
store i64 %196, ptr %7, align 8
br label %197
197: ; preds = %184, %176
br label %26, !llvm.loop !11
198: ; preds = %183, %161, %141, %26
%199 = load ptr, ptr %8, align 8
%200 = load ptr, ptr %5, align 8
%201 = ptrtoint ptr %199 to i64
%202 = ptrtoint ptr %200 to i64
%203 = sub i64 %201, %202
store i64 %203, ptr %4, align 8
br label %205
204: ; preds = %19, %3
store i64 0, ptr %4, align 8
br label %205
205: ; preds = %204, %198
%206 = load i64, ptr %4, align 8
ret i64 %206
}
declare i32 @is_base64(i8 noundef signext) #1
declare zeroext i8 @decode(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfb_7m20l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @base64_decode(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i8, align 1
%10 = alloca i8, align 1
%11 = alloca i8, align 1
%12 = alloca i8, align 1
%13 = alloca i8, align 1
%14 = alloca i8, align 1
%15 = alloca i8, align 1
%16 = alloca i8, align 1
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%17 = load ptr, ptr %6, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %206
19: ; preds = %3
%20 = load ptr, ptr %6, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %206
24: ; preds = %19
%25 = load ptr, ptr %5, align 8
store ptr %25, ptr %8, align 8
%26 = load ptr, ptr %6, align 8
%27 = load i8, ptr %26, align 1
%28 = icmp ne i8 %27, 0
br i1 %28, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %24
br label %29
29: ; preds = %.lr.ph, %196
store i8 65, ptr %9, align 1
store i8 65, ptr %10, align 1
store i8 65, ptr %11, align 1
store i8 65, ptr %12, align 1
store i8 0, ptr %13, align 1
store i8 0, ptr %14, align 1
store i8 0, ptr %15, align 1
store i8 0, ptr %16, align 1
br label %30
30: ; preds = %43, %29
%31 = load ptr, ptr %6, align 8
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp ne i32 %33, 0
br i1 %34, label %35, label %41
35: ; preds = %30
%36 = load ptr, ptr %6, align 8
%37 = load i8, ptr %36, align 1
%38 = call i32 @is_base64(i8 noundef signext %37)
%39 = icmp ne i32 %38, 0
%40 = xor i1 %39, true
br label %41
41: ; preds = %35, %30
%42 = phi i1 [ false, %30 ], [ %40, %35 ]
br i1 %42, label %43, label %46
43: ; preds = %41
%44 = load ptr, ptr %6, align 8
%45 = getelementptr inbounds i8, ptr %44, i32 1
store ptr %45, ptr %6, align 8
br label %30, !llvm.loop !6
46: ; preds = %41
%47 = load ptr, ptr %6, align 8
%48 = load i8, ptr %47, align 1
%49 = icmp ne i8 %48, 0
br i1 %49, label %50, label %54
50: ; preds = %46
%51 = load ptr, ptr %6, align 8
%52 = getelementptr inbounds i8, ptr %51, i32 1
store ptr %52, ptr %6, align 8
%53 = load i8, ptr %51, align 1
store i8 %53, ptr %9, align 1
br label %54
54: ; preds = %50, %46
br label %55
55: ; preds = %68, %54
%56 = load ptr, ptr %6, align 8
%57 = load i8, ptr %56, align 1
%58 = sext i8 %57 to i32
%59 = icmp ne i32 %58, 0
br i1 %59, label %60, label %66
60: ; preds = %55
%61 = load ptr, ptr %6, align 8
%62 = load i8, ptr %61, align 1
%63 = call i32 @is_base64(i8 noundef signext %62)
%64 = icmp ne i32 %63, 0
%65 = xor i1 %64, true
br label %66
66: ; preds = %60, %55
%67 = phi i1 [ false, %55 ], [ %65, %60 ]
br i1 %67, label %68, label %71
68: ; preds = %66
%69 = load ptr, ptr %6, align 8
%70 = getelementptr inbounds i8, ptr %69, i32 1
store ptr %70, ptr %6, align 8
br label %55, !llvm.loop !8
71: ; preds = %66
%72 = load ptr, ptr %6, align 8
%73 = load i8, ptr %72, align 1
%74 = icmp ne i8 %73, 0
br i1 %74, label %75, label %79
75: ; preds = %71
%76 = load ptr, ptr %6, align 8
%77 = getelementptr inbounds i8, ptr %76, i32 1
store ptr %77, ptr %6, align 8
%78 = load i8, ptr %76, align 1
store i8 %78, ptr %10, align 1
br label %79
79: ; preds = %75, %71
br label %80
80: ; preds = %93, %79
%81 = load ptr, ptr %6, align 8
%82 = load i8, ptr %81, align 1
%83 = sext i8 %82 to i32
%84 = icmp ne i32 %83, 0
br i1 %84, label %85, label %91
85: ; preds = %80
%86 = load ptr, ptr %6, align 8
%87 = load i8, ptr %86, align 1
%88 = call i32 @is_base64(i8 noundef signext %87)
%89 = icmp ne i32 %88, 0
%90 = xor i1 %89, true
br label %91
91: ; preds = %85, %80
%92 = phi i1 [ false, %80 ], [ %90, %85 ]
br i1 %92, label %93, label %96
93: ; preds = %91
%94 = load ptr, ptr %6, align 8
%95 = getelementptr inbounds i8, ptr %94, i32 1
store ptr %95, ptr %6, align 8
br label %80, !llvm.loop !9
96: ; preds = %91
%97 = load ptr, ptr %6, align 8
%98 = load i8, ptr %97, align 1
%99 = icmp ne i8 %98, 0
br i1 %99, label %100, label %104
100: ; preds = %96
%101 = load ptr, ptr %6, align 8
%102 = getelementptr inbounds i8, ptr %101, i32 1
store ptr %102, ptr %6, align 8
%103 = load i8, ptr %101, align 1
store i8 %103, ptr %11, align 1
br label %104
104: ; preds = %100, %96
br label %105
105: ; preds = %118, %104
%106 = load ptr, ptr %6, align 8
%107 = load i8, ptr %106, align 1
%108 = sext i8 %107 to i32
%109 = icmp ne i32 %108, 0
br i1 %109, label %110, label %116
110: ; preds = %105
%111 = load ptr, ptr %6, align 8
%112 = load i8, ptr %111, align 1
%113 = call i32 @is_base64(i8 noundef signext %112)
%114 = icmp ne i32 %113, 0
%115 = xor i1 %114, true
br label %116
116: ; preds = %110, %105
%117 = phi i1 [ false, %105 ], [ %115, %110 ]
br i1 %117, label %118, label %121
118: ; preds = %116
%119 = load ptr, ptr %6, align 8
%120 = getelementptr inbounds i8, ptr %119, i32 1
store ptr %120, ptr %6, align 8
br label %105, !llvm.loop !10
121: ; preds = %116
%122 = load ptr, ptr %6, align 8
%123 = load i8, ptr %122, align 1
%124 = icmp ne i8 %123, 0
br i1 %124, label %125, label %129
125: ; preds = %121
%126 = load ptr, ptr %6, align 8
%127 = getelementptr inbounds i8, ptr %126, i32 1
store ptr %127, ptr %6, align 8
%128 = load i8, ptr %126, align 1
store i8 %128, ptr %12, align 1
br label %129
129: ; preds = %125, %121
%130 = load i8, ptr %9, align 1
%131 = call zeroext i8 @decode(i8 noundef signext %130)
store i8 %131, ptr %13, align 1
%132 = load i8, ptr %10, align 1
%133 = call zeroext i8 @decode(i8 noundef signext %132)
store i8 %133, ptr %14, align 1
%134 = load i8, ptr %11, align 1
%135 = call zeroext i8 @decode(i8 noundef signext %134)
store i8 %135, ptr %15, align 1
%136 = load i8, ptr %12, align 1
%137 = call zeroext i8 @decode(i8 noundef signext %136)
store i8 %137, ptr %16, align 1
%138 = load i64, ptr %7, align 8
%139 = icmp ne i64 %138, 0
br i1 %139, label %141, label %140
140: ; preds = %129
br label %200
141: ; preds = %129
%142 = load i8, ptr %13, align 1
%143 = zext i8 %142 to i32
%144 = shl i32 %143, 2
%145 = load i8, ptr %14, align 1
%146 = zext i8 %145 to i32
%147 = ashr i32 %146, 4
%148 = or i32 %144, %147
%149 = trunc i32 %148 to i8
%150 = load ptr, ptr %8, align 8
%151 = getelementptr inbounds i8, ptr %150, i32 1
store ptr %151, ptr %8, align 8
store i8 %149, ptr %150, align 1
%152 = load i64, ptr %7, align 8
%153 = add i64 %152, -1
store i64 %153, ptr %7, align 8
%154 = load i8, ptr %11, align 1
%155 = sext i8 %154 to i32
%156 = icmp ne i32 %155, 61
br i1 %156, label %157, label %175
157: ; preds = %141
%158 = load i64, ptr %7, align 8
%159 = icmp ne i64 %158, 0
br i1 %159, label %161, label %160
160: ; preds = %157
br label %200
161: ; preds = %157
%162 = load i8, ptr %14, align 1
%163 = zext i8 %162 to i32
%164 = and i32 %163, 15
%165 = shl i32 %164, 4
%166 = load i8, ptr %15, align 1
%167 = zext i8 %166 to i32
%168 = ashr i32 %167, 2
%169 = or i32 %165, %168
%170 = trunc i32 %169 to i8
%171 = load ptr, ptr %8, align 8
%172 = getelementptr inbounds i8, ptr %171, i32 1
store ptr %172, ptr %8, align 8
store i8 %170, ptr %171, align 1
%173 = load i64, ptr %7, align 8
%174 = add i64 %173, -1
store i64 %174, ptr %7, align 8
br label %175
175: ; preds = %161, %141
%176 = load i8, ptr %12, align 1
%177 = sext i8 %176 to i32
%178 = icmp ne i32 %177, 61
br i1 %178, label %179, label %196
179: ; preds = %175
%180 = load i64, ptr %7, align 8
%181 = icmp ne i64 %180, 0
br i1 %181, label %183, label %182
182: ; preds = %179
br label %200
183: ; preds = %179
%184 = load i8, ptr %15, align 1
%185 = zext i8 %184 to i32
%186 = and i32 %185, 3
%187 = shl i32 %186, 6
%188 = load i8, ptr %16, align 1
%189 = zext i8 %188 to i32
%190 = or i32 %187, %189
%191 = trunc i32 %190 to i8
%192 = load ptr, ptr %8, align 8
%193 = getelementptr inbounds i8, ptr %192, i32 1
store ptr %193, ptr %8, align 8
store i8 %191, ptr %192, align 1
%194 = load i64, ptr %7, align 8
%195 = add i64 %194, -1
store i64 %195, ptr %7, align 8
br label %196
196: ; preds = %183, %175
%197 = load ptr, ptr %6, align 8
%198 = load i8, ptr %197, align 1
%199 = icmp ne i8 %198, 0
br i1 %199, label %29, label %..loopexit_crit_edge, !llvm.loop !11
..loopexit_crit_edge: ; preds = %196
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %24
br label %200
200: ; preds = %.loopexit, %182, %160, %140
%201 = load ptr, ptr %8, align 8
%202 = load ptr, ptr %5, align 8
%203 = ptrtoint ptr %201 to i64
%204 = ptrtoint ptr %202 to i64
%205 = sub i64 %203, %204
store i64 %205, ptr %4, align 8
br label %207
206: ; preds = %19, %3
store i64 0, ptr %4, align 8
br label %207
207: ; preds = %206, %200
%208 = load i64, ptr %4, align 8
ret i64 %208
}
declare i32 @is_base64(i8 noundef signext) #1
declare zeroext i8 @decode(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmpzumm00xe.c'
source_filename = "/tmp/tmpzumm00xe.c"
target datalayout = "e-m:e-p270: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 { %struct.TYPE_2__ }
%struct.TYPE_2__ = type { ptr }
@.str = private unnamed_addr constant [72 x i8] c"%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ipv6ToString(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds %struct.sockaddr_in6, ptr %3, i32 0, i32 0
%5 = getelementptr inbounds %struct.TYPE_2__, ptr %4, i32 0, i32 0
%6 = load ptr, ptr %5, align 8
%7 = getelementptr inbounds i32, ptr %6, i64 0
%8 = load i32, ptr %7, align 4
%9 = load ptr, ptr %2, align 8
%10 = getelementptr inbounds %struct.sockaddr_in6, ptr %9, i32 0, i32 0
%11 = getelementptr inbounds %struct.TYPE_2__, ptr %10, i32 0, i32 0
%12 = load ptr, ptr %11, align 8
%13 = getelementptr inbounds i32, ptr %12, i64 1
%14 = load i32, ptr %13, align 4
%15 = load ptr, ptr %2, align 8
%16 = getelementptr inbounds %struct.sockaddr_in6, ptr %15, i32 0, i32 0
%17 = getelementptr inbounds %struct.TYPE_2__, ptr %16, i32 0, i32 0
%18 = load ptr, ptr %17, align 8
%19 = getelementptr inbounds i32, ptr %18, i64 2
%20 = load i32, ptr %19, align 4
%21 = load ptr, ptr %2, align 8
%22 = getelementptr inbounds %struct.sockaddr_in6, ptr %21, i32 0, i32 0
%23 = getelementptr inbounds %struct.TYPE_2__, ptr %22, i32 0, i32 0
%24 = load ptr, ptr %23, align 8
%25 = getelementptr inbounds i32, ptr %24, i64 3
%26 = load i32, ptr %25, align 4
%27 = load ptr, ptr %2, align 8
%28 = getelementptr inbounds %struct.sockaddr_in6, ptr %27, i32 0, i32 0
%29 = getelementptr inbounds %struct.TYPE_2__, ptr %28, i32 0, i32 0
%30 = load ptr, ptr %29, align 8
%31 = getelementptr inbounds i32, ptr %30, i64 4
%32 = load i32, ptr %31, align 4
%33 = load ptr, ptr %2, align 8
%34 = getelementptr inbounds %struct.sockaddr_in6, ptr %33, i32 0, i32 0
%35 = getelementptr inbounds %struct.TYPE_2__, ptr %34, i32 0, i32 0
%36 = load ptr, ptr %35, align 8
%37 = getelementptr inbounds i32, ptr %36, i64 5
%38 = load i32, ptr %37, align 4
%39 = load ptr, ptr %2, align 8
%40 = getelementptr inbounds %struct.sockaddr_in6, ptr %39, i32 0, i32 0
%41 = getelementptr inbounds %struct.TYPE_2__, ptr %40, i32 0, i32 0
%42 = load ptr, ptr %41, align 8
%43 = getelementptr inbounds i32, ptr %42, i64 6
%44 = load i32, ptr %43, align 4
%45 = load ptr, ptr %2, align 8
%46 = getelementptr inbounds %struct.sockaddr_in6, ptr %45, i32 0, i32 0
%47 = getelementptr inbounds %struct.TYPE_2__, ptr %46, i32 0, i32 0
%48 = load ptr, ptr %47, align 8
%49 = getelementptr inbounds i32, ptr %48, i64 7
%50 = load i32, ptr %49, align 4
%51 = load ptr, ptr %2, align 8
%52 = getelementptr inbounds %struct.sockaddr_in6, ptr %51, i32 0, i32 0
%53 = getelementptr inbounds %struct.TYPE_2__, ptr %52, i32 0, i32 0
%54 = load ptr, ptr %53, align 8
%55 = getelementptr inbounds i32, ptr %54, i64 8
%56 = load i32, ptr %55, align 4
%57 = load ptr, ptr %2, align 8
%58 = getelementptr inbounds %struct.sockaddr_in6, ptr %57, i32 0, i32 0
%59 = getelementptr inbounds %struct.TYPE_2__, ptr %58, i32 0, i32 0
%60 = load ptr, ptr %59, align 8
%61 = getelementptr inbounds i32, ptr %60, i64 9
%62 = load i32, ptr %61, align 4
%63 = load ptr, ptr %2, align 8
%64 = getelementptr inbounds %struct.sockaddr_in6, ptr %63, i32 0, i32 0
%65 = getelementptr inbounds %struct.TYPE_2__, ptr %64, i32 0, i32 0
%66 = load ptr, ptr %65, align 8
%67 = getelementptr inbounds i32, ptr %66, i64 10
%68 = load i32, ptr %67, align 4
%69 = load ptr, ptr %2, align 8
%70 = getelementptr inbounds %struct.sockaddr_in6, ptr %69, i32 0, i32 0
%71 = getelementptr inbounds %struct.TYPE_2__, ptr %70, i32 0, i32 0
%72 = load ptr, ptr %71, align 8
%73 = getelementptr inbounds i32, ptr %72, i64 11
%74 = load i32, ptr %73, align 4
%75 = load ptr, ptr %2, align 8
%76 = getelementptr inbounds %struct.sockaddr_in6, ptr %75, i32 0, i32 0
%77 = getelementptr inbounds %struct.TYPE_2__, ptr %76, i32 0, i32 0
%78 = load ptr, ptr %77, align 8
%79 = getelementptr inbounds i32, ptr %78, i64 12
%80 = load i32, ptr %79, align 4
%81 = load ptr, ptr %2, align 8
%82 = getelementptr inbounds %struct.sockaddr_in6, ptr %81, i32 0, i32 0
%83 = getelementptr inbounds %struct.TYPE_2__, ptr %82, i32 0, i32 0
%84 = load ptr, ptr %83, align 8
%85 = getelementptr inbounds i32, ptr %84, i64 13
%86 = load i32, ptr %85, align 4
%87 = load ptr, ptr %2, align 8
%88 = getelementptr inbounds %struct.sockaddr_in6, ptr %87, i32 0, i32 0
%89 = getelementptr inbounds %struct.TYPE_2__, ptr %88, i32 0, i32 0
%90 = load ptr, ptr %89, align 8
%91 = getelementptr inbounds i32, ptr %90, i64 14
%92 = load i32, ptr %91, align 4
%93 = load ptr, ptr %2, align 8
%94 = getelementptr inbounds %struct.sockaddr_in6, ptr %93, i32 0, i32 0
%95 = getelementptr inbounds %struct.TYPE_2__, ptr %94, i32 0, i32 0
%96 = load ptr, ptr %95, align 8
%97 = getelementptr inbounds i32, ptr %96, i64 15
%98 = load i32, ptr %97, align 4
%99 = call ptr @allocateString(ptr noundef @.str, i32 noundef %8, i32 noundef %14, i32 noundef %20, i32 noundef %26, i32 noundef %32, i32 noundef %38, i32 noundef %44, i32 noundef %50, i32 noundef %56, i32 noundef %62, i32 noundef %68, i32 noundef %74, i32 noundef %80, i32 noundef %86, i32 noundef %92, i32 noundef %98)
ret ptr %99
}
declare ptr @allocateString(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzumm00xe.c"
target datalayout = "e-m:e-p270: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 { %struct.TYPE_2__ }
%struct.TYPE_2__ = type { ptr }
@.str = private unnamed_addr constant [72 x i8] c"%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ipv6ToString(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds %struct.sockaddr_in6, ptr %3, i32 0, i32 0
%5 = getelementptr inbounds %struct.TYPE_2__, ptr %4, i32 0, i32 0
%6 = load ptr, ptr %5, align 8
%7 = getelementptr inbounds i32, ptr %6, i64 0
%8 = load i32, ptr %7, align 4
%9 = load ptr, ptr %2, align 8
%10 = getelementptr inbounds %struct.sockaddr_in6, ptr %9, i32 0, i32 0
%11 = getelementptr inbounds %struct.TYPE_2__, ptr %10, i32 0, i32 0
%12 = load ptr, ptr %11, align 8
%13 = getelementptr inbounds i32, ptr %12, i64 1
%14 = load i32, ptr %13, align 4
%15 = load ptr, ptr %2, align 8
%16 = getelementptr inbounds %struct.sockaddr_in6, ptr %15, i32 0, i32 0
%17 = getelementptr inbounds %struct.TYPE_2__, ptr %16, i32 0, i32 0
%18 = load ptr, ptr %17, align 8
%19 = getelementptr inbounds i32, ptr %18, i64 2
%20 = load i32, ptr %19, align 4
%21 = load ptr, ptr %2, align 8
%22 = getelementptr inbounds %struct.sockaddr_in6, ptr %21, i32 0, i32 0
%23 = getelementptr inbounds %struct.TYPE_2__, ptr %22, i32 0, i32 0
%24 = load ptr, ptr %23, align 8
%25 = getelementptr inbounds i32, ptr %24, i64 3
%26 = load i32, ptr %25, align 4
%27 = load ptr, ptr %2, align 8
%28 = getelementptr inbounds %struct.sockaddr_in6, ptr %27, i32 0, i32 0
%29 = getelementptr inbounds %struct.TYPE_2__, ptr %28, i32 0, i32 0
%30 = load ptr, ptr %29, align 8
%31 = getelementptr inbounds i32, ptr %30, i64 4
%32 = load i32, ptr %31, align 4
%33 = load ptr, ptr %2, align 8
%34 = getelementptr inbounds %struct.sockaddr_in6, ptr %33, i32 0, i32 0
%35 = getelementptr inbounds %struct.TYPE_2__, ptr %34, i32 0, i32 0
%36 = load ptr, ptr %35, align 8
%37 = getelementptr inbounds i32, ptr %36, i64 5
%38 = load i32, ptr %37, align 4
%39 = load ptr, ptr %2, align 8
%40 = getelementptr inbounds %struct.sockaddr_in6, ptr %39, i32 0, i32 0
%41 = getelementptr inbounds %struct.TYPE_2__, ptr %40, i32 0, i32 0
%42 = load ptr, ptr %41, align 8
%43 = getelementptr inbounds i32, ptr %42, i64 6
%44 = load i32, ptr %43, align 4
%45 = load ptr, ptr %2, align 8
%46 = getelementptr inbounds %struct.sockaddr_in6, ptr %45, i32 0, i32 0
%47 = getelementptr inbounds %struct.TYPE_2__, ptr %46, i32 0, i32 0
%48 = load ptr, ptr %47, align 8
%49 = getelementptr inbounds i32, ptr %48, i64 7
%50 = load i32, ptr %49, align 4
%51 = load ptr, ptr %2, align 8
%52 = getelementptr inbounds %struct.sockaddr_in6, ptr %51, i32 0, i32 0
%53 = getelementptr inbounds %struct.TYPE_2__, ptr %52, i32 0, i32 0
%54 = load ptr, ptr %53, align 8
%55 = getelementptr inbounds i32, ptr %54, i64 8
%56 = load i32, ptr %55, align 4
%57 = load ptr, ptr %2, align 8
%58 = getelementptr inbounds %struct.sockaddr_in6, ptr %57, i32 0, i32 0
%59 = getelementptr inbounds %struct.TYPE_2__, ptr %58, i32 0, i32 0
%60 = load ptr, ptr %59, align 8
%61 = getelementptr inbounds i32, ptr %60, i64 9
%62 = load i32, ptr %61, align 4
%63 = load ptr, ptr %2, align 8
%64 = getelementptr inbounds %struct.sockaddr_in6, ptr %63, i32 0, i32 0
%65 = getelementptr inbounds %struct.TYPE_2__, ptr %64, i32 0, i32 0
%66 = load ptr, ptr %65, align 8
%67 = getelementptr inbounds i32, ptr %66, i64 10
%68 = load i32, ptr %67, align 4
%69 = load ptr, ptr %2, align 8
%70 = getelementptr inbounds %struct.sockaddr_in6, ptr %69, i32 0, i32 0
%71 = getelementptr inbounds %struct.TYPE_2__, ptr %70, i32 0, i32 0
%72 = load ptr, ptr %71, align 8
%73 = getelementptr inbounds i32, ptr %72, i64 11
%74 = load i32, ptr %73, align 4
%75 = load ptr, ptr %2, align 8
%76 = getelementptr inbounds %struct.sockaddr_in6, ptr %75, i32 0, i32 0
%77 = getelementptr inbounds %struct.TYPE_2__, ptr %76, i32 0, i32 0
%78 = load ptr, ptr %77, align 8
%79 = getelementptr inbounds i32, ptr %78, i64 12
%80 = load i32, ptr %79, align 4
%81 = load ptr, ptr %2, align 8
%82 = getelementptr inbounds %struct.sockaddr_in6, ptr %81, i32 0, i32 0
%83 = getelementptr inbounds %struct.TYPE_2__, ptr %82, i32 0, i32 0
%84 = load ptr, ptr %83, align 8
%85 = getelementptr inbounds i32, ptr %84, i64 13
%86 = load i32, ptr %85, align 4
%87 = load ptr, ptr %2, align 8
%88 = getelementptr inbounds %struct.sockaddr_in6, ptr %87, i32 0, i32 0
%89 = getelementptr inbounds %struct.TYPE_2__, ptr %88, i32 0, i32 0
%90 = load ptr, ptr %89, align 8
%91 = getelementptr inbounds i32, ptr %90, i64 14
%92 = load i32, ptr %91, align 4
%93 = load ptr, ptr %2, align 8
%94 = getelementptr inbounds %struct.sockaddr_in6, ptr %93, i32 0, i32 0
%95 = getelementptr inbounds %struct.TYPE_2__, ptr %94, i32 0, i32 0
%96 = load ptr, ptr %95, align 8
%97 = getelementptr inbounds i32, ptr %96, i64 15
%98 = load i32, ptr %97, align 4
%99 = call ptr @allocateString(ptr noundef @.str, i32 noundef %8, i32 noundef %14, i32 noundef %20, i32 noundef %26, i32 noundef %32, i32 noundef %38, i32 noundef %44, i32 noundef %50, i32 noundef %56, i32 noundef %62, i32 noundef %68, i32 noundef %74, i32 noundef %80, i32 noundef %86, i32 noundef %92, i32 noundef %98)
ret ptr %99
}
declare ptr @allocateString(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp028x1i4s.c'
source_filename = "/tmp/tmp028x1i4s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1 x i16], align 2
%7 = alloca [1 x i16], align 2
%8 = alloca i32, align 4
%9 = alloca i16, align 2
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
br label %19
19: ; preds = %22, %18
%20 = load i32, ptr %8, align 4
%21 = icmp slt i32 %20, 1
br i1 %21, label %22, label %37
22: ; preds = %19
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %23, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = call i64 @strtoul(ptr noundef %28, i32 noundef 0, i32 noundef 10)
%30 = trunc i64 %29 to i16
store i16 %30, ptr %9, align 2
%31 = load i16, ptr %9, align 2
%32 = load i32, ptr %8, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [1 x i16], ptr %6, i64 0, i64 %33
store i16 %31, ptr %34, align 2
%35 = load i32, ptr %8, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %8, align 4
br label %19, !llvm.loop !6
37: ; preds = %19
%38 = getelementptr inbounds [1 x i16], ptr %6, i64 0, i64 0
%39 = getelementptr inbounds [1 x i16], ptr %7, i64 0, i64 0
%40 = call i32 @RandomFunc(ptr noundef %38, ptr noundef %39)
%41 = getelementptr inbounds [1 x i16], ptr %7, i64 0, i64 0
%42 = load i16, ptr %41, align 2
%43 = zext i16 %42 to i32
%44 = icmp eq i32 %43, 4448
br i1 %44, label %45, label %47
45: ; preds = %37
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %48
47: ; preds = %37
br label %48
48: ; preds = %47, %45
store i32 0, ptr %10, align 4
br label %49
49: ; preds = %52, %48
%50 = load i32, ptr %10, align 4
%51 = icmp slt i32 %50, 1
br i1 %51, label %52, label %61
52: ; preds = %49
%53 = load i32, ptr %10, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [1 x i16], ptr %7, i64 0, i64 %54
%56 = load i16, ptr %55, align 2
%57 = zext i16 %56 to i32
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %57)
%59 = load i32, ptr %10, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %10, align 4
br label %49, !llvm.loop !8
61: ; preds = %49
%62 = load i32, ptr %3, align 4
ret i32 %62
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp028x1i4s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1 x i16], align 2
%7 = alloca [1 x i16], align 2
%8 = alloca i32, align 4
%9 = alloca i16, align 2
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp slt i32 %19, 1
br i1 %20, label %.lr.ph, label %38
.lr.ph: ; preds = %18
br label %21
21: ; preds = %.lr.ph, %21
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %22, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = call i64 @strtoul(ptr noundef %27, i32 noundef 0, i32 noundef 10)
%29 = trunc i64 %28 to i16
store i16 %29, ptr %9, align 2
%30 = load i16, ptr %9, align 2
%31 = load i32, ptr %8, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [1 x i16], ptr %6, i64 0, i64 %32
store i16 %30, ptr %33, align 2
%34 = load i32, ptr %8, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %8, align 4
%36 = load i32, ptr %8, align 4
%37 = icmp slt i32 %36, 1
br i1 %37, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %38
38: ; preds = %._crit_edge, %18
%39 = getelementptr inbounds [1 x i16], ptr %6, i64 0, i64 0
%40 = getelementptr inbounds [1 x i16], ptr %7, i64 0, i64 0
%41 = call i32 @RandomFunc(ptr noundef %39, ptr noundef %40)
%42 = getelementptr inbounds [1 x i16], ptr %7, i64 0, i64 0
%43 = load i16, ptr %42, align 2
%44 = zext i16 %43 to i32
%45 = icmp eq i32 %44, 4448
br i1 %45, label %46, label %48
46: ; preds = %38
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %49
48: ; preds = %38
br label %49
49: ; preds = %48, %46
store i32 0, ptr %10, align 4
%50 = load i32, ptr %10, align 4
%51 = icmp slt i32 %50, 1
br i1 %51, label %.lr.ph2, label %63
.lr.ph2: ; preds = %49
br label %52
52: ; preds = %.lr.ph2, %52
%53 = load i32, ptr %10, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [1 x i16], ptr %7, i64 0, i64 %54
%56 = load i16, ptr %55, align 2
%57 = zext i16 %56 to i32
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %57)
%59 = load i32, ptr %10, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %10, align 4
%61 = load i32, ptr %10, align 4
%62 = icmp slt i32 %61, 1
br i1 %62, label %52, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %52
br label %63
63: ; preds = %._crit_edge3, %49
%64 = load i32, ptr %3, align 4
ret i32 %64
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp8zmvd4_9.c'
source_filename = "/tmp/tmp8zmvd4_9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8zmvd4_9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpuiduc2v2.c'
source_filename = "/tmp/tmpuiduc2v2.c"
target datalayout = "e-m:e-p270: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/tmpuiduc2v2.c"
target datalayout = "e-m:e-p270: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/tmp2wghopcg.c'
source_filename = "/tmp/tmp2wghopcg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [38 x i8] c"/sys/class/power_supply/BAT1/capacity\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [27 x i8] c"Error opening energy_now.\0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getbattery() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %6, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %12
9: ; preds = %0
%10 = load i32, ptr @stderr, align 4
%11 = call i32 @fprintf(i32 noundef %10, ptr noundef @.str.2)
store i32 -1, ptr %1, align 4
br label %20
12: ; preds = %0
%13 = load ptr, ptr %2, align 8
%14 = call i32 @fscanf(ptr noundef %13, ptr noundef @.str.3, ptr noundef %3)
%15 = load ptr, ptr %2, align 8
%16 = call i32 @fclose(ptr noundef %15)
%17 = load i32, ptr %3, align 4
%18 = sitofp i32 %17 to float
%19 = fptosi float %18 to i32
store i32 %19, ptr %1, align 4
br label %20
20: ; preds = %12, %9
%21 = load i32, ptr %1, align 4
ret i32 %21
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2wghopcg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [38 x i8] c"/sys/class/power_supply/BAT1/capacity\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [27 x i8] c"Error opening energy_now.\0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getbattery() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %6, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %12
9: ; preds = %0
%10 = load i32, ptr @stderr, align 4
%11 = call i32 @fprintf(i32 noundef %10, ptr noundef @.str.2)
store i32 -1, ptr %1, align 4
br label %20
12: ; preds = %0
%13 = load ptr, ptr %2, align 8
%14 = call i32 @fscanf(ptr noundef %13, ptr noundef @.str.3, ptr noundef %3)
%15 = load ptr, ptr %2, align 8
%16 = call i32 @fclose(ptr noundef %15)
%17 = load i32, ptr %3, align 4
%18 = sitofp i32 %17 to float
%19 = fptosi float %18 to i32
store i32 %19, ptr %1, align 4
br label %20
20: ; preds = %12, %9
%21 = load i32, ptr %1, align 4
ret i32 %21
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2pzmblk4.c'
source_filename = "/tmp/tmp2pzmblk4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @escape_str(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i8, align 1
store ptr %0, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i64 @strlen(ptr noundef %7)
store i64 %8, ptr %3, align 8
%9 = load i64, ptr %3, align 8
%10 = mul i64 %9, 2
%11 = add i64 %10, 1
%12 = call ptr @malloc(i64 noundef %11)
store ptr %12, ptr %4, align 8
%13 = load ptr, ptr %4, align 8
store ptr %13, ptr %5, align 8
br label %14
14: ; preds = %62, %1
%15 = load ptr, ptr %2, align 8
%16 = getelementptr inbounds i8, ptr %15, i32 1
store ptr %16, ptr %2, align 8
%17 = load i8, ptr %15, align 1
store i8 %17, ptr %6, align 1
%18 = sext i8 %17 to i32
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %63
20: ; preds = %14
%21 = load i8, ptr %6, align 1
%22 = sext i8 %21 to i32
switch i32 %22, label %58 [
i32 10, label %23
i32 13, label %28
i32 7, label %33
i32 11, label %38
i32 9, label %43
i32 12, label %48
i32 8, label %53
]
23: ; preds = %20
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %5, align 8
store i8 92, ptr %24, align 1
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds i8, ptr %26, i32 1
store ptr %27, ptr %5, align 8
store i8 110, ptr %26, align 1
br label %62
28: ; preds = %20
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds i8, ptr %29, i32 1
store ptr %30, ptr %5, align 8
store i8 92, ptr %29, align 1
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 1
store ptr %32, ptr %5, align 8
store i8 114, ptr %31, align 1
br label %62
33: ; preds = %20
%34 = load ptr, ptr %5, align 8
%35 = getelementptr inbounds i8, ptr %34, i32 1
store ptr %35, ptr %5, align 8
store i8 92, ptr %34, align 1
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds i8, ptr %36, i32 1
store ptr %37, ptr %5, align 8
store i8 97, ptr %36, align 1
br label %62
38: ; preds = %20
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds i8, ptr %39, i32 1
store ptr %40, ptr %5, align 8
store i8 92, ptr %39, align 1
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds i8, ptr %41, i32 1
store ptr %42, ptr %5, align 8
store i8 118, ptr %41, align 1
br label %62
43: ; preds = %20
%44 = load ptr, ptr %5, align 8
%45 = getelementptr inbounds i8, ptr %44, i32 1
store ptr %45, ptr %5, align 8
store i8 92, ptr %44, align 1
%46 = load ptr, ptr %5, align 8
%47 = getelementptr inbounds i8, ptr %46, i32 1
store ptr %47, ptr %5, align 8
store i8 116, ptr %46, align 1
br label %62
48: ; preds = %20
%49 = load ptr, ptr %5, align 8
%50 = getelementptr inbounds i8, ptr %49, i32 1
store ptr %50, ptr %5, align 8
store i8 92, ptr %49, align 1
%51 = load ptr, ptr %5, align 8
%52 = getelementptr inbounds i8, ptr %51, i32 1
store ptr %52, ptr %5, align 8
store i8 102, ptr %51, align 1
br label %62
53: ; preds = %20
%54 = load ptr, ptr %5, align 8
%55 = getelementptr inbounds i8, ptr %54, i32 1
store ptr %55, ptr %5, align 8
store i8 92, ptr %54, align 1
%56 = load ptr, ptr %5, align 8
%57 = getelementptr inbounds i8, ptr %56, i32 1
store ptr %57, ptr %5, align 8
store i8 98, ptr %56, align 1
br label %62
58: ; preds = %20
%59 = load i8, ptr %6, align 1
%60 = load ptr, ptr %5, align 8
%61 = getelementptr inbounds i8, ptr %60, i32 1
store ptr %61, ptr %5, align 8
store i8 %59, ptr %60, align 1
br label %62
62: ; preds = %58, %53, %48, %43, %38, %33, %28, %23
br label %14, !llvm.loop !6
63: ; preds = %14
%64 = load ptr, ptr %5, align 8
store i8 0, ptr %64, align 1
%65 = load ptr, ptr %4, align 8
ret ptr %65
}
declare i64 @strlen(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp2pzmblk4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @escape_str(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i8, align 1
store ptr %0, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i64 @strlen(ptr noundef %7)
store i64 %8, ptr %3, align 8
%9 = load i64, ptr %3, align 8
%10 = mul i64 %9, 2
%11 = add i64 %10, 1
%12 = call ptr @malloc(i64 noundef %11)
store ptr %12, ptr %4, align 8
%13 = load ptr, ptr %4, align 8
store ptr %13, ptr %5, align 8
%14 = load ptr, ptr %2, align 8
%15 = getelementptr inbounds i8, ptr %14, i32 1
store ptr %15, ptr %2, align 8
%16 = load i8, ptr %14, align 1
store i8 %16, ptr %6, align 1
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %17, 0
br i1 %18, label %.lr.ph, label %67
.lr.ph: ; preds = %1
br label %19
19: ; preds = %.lr.ph, %61
%20 = load i8, ptr %6, align 1
%21 = sext i8 %20 to i32
switch i32 %21, label %57 [
i32 10, label %22
i32 13, label %27
i32 7, label %32
i32 11, label %37
i32 9, label %42
i32 12, label %47
i32 8, label %52
]
22: ; preds = %19
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds i8, ptr %23, i32 1
store ptr %24, ptr %5, align 8
store i8 92, ptr %23, align 1
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds i8, ptr %25, i32 1
store ptr %26, ptr %5, align 8
store i8 110, ptr %25, align 1
br label %61
27: ; preds = %19
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds i8, ptr %28, i32 1
store ptr %29, ptr %5, align 8
store i8 92, ptr %28, align 1
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds i8, ptr %30, i32 1
store ptr %31, ptr %5, align 8
store i8 114, ptr %30, align 1
br label %61
32: ; preds = %19
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds i8, ptr %33, i32 1
store ptr %34, ptr %5, align 8
store i8 92, ptr %33, align 1
%35 = load ptr, ptr %5, align 8
%36 = getelementptr inbounds i8, ptr %35, i32 1
store ptr %36, ptr %5, align 8
store i8 97, ptr %35, align 1
br label %61
37: ; preds = %19
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds i8, ptr %38, i32 1
store ptr %39, ptr %5, align 8
store i8 92, ptr %38, align 1
%40 = load ptr, ptr %5, align 8
%41 = getelementptr inbounds i8, ptr %40, i32 1
store ptr %41, ptr %5, align 8
store i8 118, ptr %40, align 1
br label %61
42: ; preds = %19
%43 = load ptr, ptr %5, align 8
%44 = getelementptr inbounds i8, ptr %43, i32 1
store ptr %44, ptr %5, align 8
store i8 92, ptr %43, align 1
%45 = load ptr, ptr %5, align 8
%46 = getelementptr inbounds i8, ptr %45, i32 1
store ptr %46, ptr %5, align 8
store i8 116, ptr %45, align 1
br label %61
47: ; preds = %19
%48 = load ptr, ptr %5, align 8
%49 = getelementptr inbounds i8, ptr %48, i32 1
store ptr %49, ptr %5, align 8
store i8 92, ptr %48, align 1
%50 = load ptr, ptr %5, align 8
%51 = getelementptr inbounds i8, ptr %50, i32 1
store ptr %51, ptr %5, align 8
store i8 102, ptr %50, align 1
br label %61
52: ; preds = %19
%53 = load ptr, ptr %5, align 8
%54 = getelementptr inbounds i8, ptr %53, i32 1
store ptr %54, ptr %5, align 8
store i8 92, ptr %53, align 1
%55 = load ptr, ptr %5, align 8
%56 = getelementptr inbounds i8, ptr %55, i32 1
store ptr %56, ptr %5, align 8
store i8 98, ptr %55, align 1
br label %61
57: ; preds = %19
%58 = load i8, ptr %6, align 1
%59 = load ptr, ptr %5, align 8
%60 = getelementptr inbounds i8, ptr %59, i32 1
store ptr %60, ptr %5, align 8
store i8 %58, ptr %59, align 1
br label %61
61: ; preds = %57, %52, %47, %42, %37, %32, %27, %22
%62 = load ptr, ptr %2, align 8
%63 = getelementptr inbounds i8, ptr %62, i32 1
store ptr %63, ptr %2, align 8
%64 = load i8, ptr %62, align 1
store i8 %64, ptr %6, align 1
%65 = sext i8 %64 to i32
%66 = icmp ne i32 %65, 0
br i1 %66, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %61
br label %67
67: ; preds = %._crit_edge, %1
%68 = load ptr, ptr %5, align 8
store i8 0, ptr %68, align 1
%69 = load ptr, ptr %4, align 8
ret ptr %69
}
declare i64 @strlen(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp0w3050vn.c'
source_filename = "/tmp/tmp0w3050vn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c" %s\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @first(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca [79 x i8], align 16
%6 = alloca [79 x i8], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %7, align 4
br label %9
9: ; preds = %16, %2
%10 = load i32, ptr %7, align 4
%11 = icmp slt i32 %10, 80
br i1 %11, label %12, label %19
12: ; preds = %9
%13 = load i32, ptr %7, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [79 x i8], ptr %5, i64 0, i64 %14
store i8 0, ptr %15, align 1
br label %16
16: ; preds = %12
%17 = load i32, ptr %7, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %7, align 4
br label %9, !llvm.loop !6
19: ; preds = %9
%20 = load ptr, ptr %3, align 8
%21 = load i32, ptr %4, align 4
%22 = getelementptr inbounds [79 x i8], ptr %5, i64 0, i64 0
%23 = call i32 @primary(ptr noundef %20, i32 noundef %21, ptr noundef %22)
store i32 0, ptr %8, align 4
br label %24
24: ; preds = %31, %19
%25 = load i32, ptr %8, align 4
%26 = icmp slt i32 %25, 80
br i1 %26, label %27, label %34
27: ; preds = %24
%28 = load i32, ptr %8, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [79 x i8], ptr %6, i64 0, i64 %29
store i8 0, ptr %30, align 1
br label %31
31: ; preds = %27
%32 = load i32, ptr %8, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %8, align 4
br label %24, !llvm.loop !8
34: ; preds = %24
%35 = getelementptr inbounds [79 x i8], ptr %6, i64 0, i64 0
%36 = getelementptr inbounds [79 x i8], ptr %5, i64 0, i64 0
%37 = call i32 @sprintf(ptr noundef %35, ptr noundef @.str, ptr noundef %36)
%38 = getelementptr inbounds [79 x i8], ptr %6, i64 0, i64 0
%39 = call i32 @printf(ptr noundef @.str.1, ptr noundef %38)
ret void
}
declare i32 @primary(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0w3050vn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c" %s\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @first(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca [79 x i8], align 16
%6 = alloca [79 x i8], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %7, align 4
%9 = load i32, ptr %7, align 4
%10 = icmp slt i32 %9, 80
br i1 %10, label %.lr.ph, label %20
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %15
%12 = load i32, ptr %7, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [79 x i8], ptr %5, i64 0, i64 %13
store i8 0, ptr %14, align 1
br label %15
15: ; preds = %11
%16 = load i32, ptr %7, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %7, align 4
%18 = load i32, ptr %7, align 4
%19 = icmp slt i32 %18, 80
br i1 %19, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %20
20: ; preds = %._crit_edge, %2
%21 = load ptr, ptr %3, align 8
%22 = load i32, ptr %4, align 4
%23 = getelementptr inbounds [79 x i8], ptr %5, i64 0, i64 0
%24 = call i32 @primary(ptr noundef %21, i32 noundef %22, ptr noundef %23)
store i32 0, ptr %8, align 4
%25 = load i32, ptr %8, align 4
%26 = icmp slt i32 %25, 80
br i1 %26, label %.lr.ph2, label %36
.lr.ph2: ; preds = %20
br label %27
27: ; preds = %.lr.ph2, %31
%28 = load i32, ptr %8, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [79 x i8], ptr %6, i64 0, i64 %29
store i8 0, ptr %30, align 1
br label %31
31: ; preds = %27
%32 = load i32, ptr %8, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %8, align 4
%34 = load i32, ptr %8, align 4
%35 = icmp slt i32 %34, 80
br i1 %35, label %27, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %31
br label %36
36: ; preds = %._crit_edge3, %20
%37 = getelementptr inbounds [79 x i8], ptr %6, i64 0, i64 0
%38 = getelementptr inbounds [79 x i8], ptr %5, i64 0, i64 0
%39 = call i32 @sprintf(ptr noundef %37, ptr noundef @.str, ptr noundef %38)
%40 = getelementptr inbounds [79 x i8], ptr %6, i64 0, i64 0
%41 = call i32 @printf(ptr noundef @.str.1, ptr noundef %40)
ret void
}
declare i32 @primary(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp8m6qayxs.c'
source_filename = "/tmp/tmp8m6qayxs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @free_client(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 @clear_client(ptr noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @free(ptr noundef %5)
ret void
}
declare i32 @clear_client(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8m6qayxs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @free_client(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 @clear_client(ptr noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @free(ptr noundef %5)
ret void
}
declare i32 @clear_client(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpt02dvdfv.c'
source_filename = "/tmp/tmpt02dvdfv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca 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 i8, align 1
%10 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i32 0, ptr %6, align 4
store i32 4, ptr %7, align 4
store i32 1, ptr %8, align 4
store i32 1, ptr %4, align 4
store i32 0, ptr %5, align 4
store i8 42, ptr %9, align 1
store i8 32, ptr %10, align 1
%11 = load i32, ptr %8, align 4
switch i32 %11, label %134 [
i32 1, label %12
i32 2, label %53
i32 3, label %94
]
12: ; preds = %0
store i32 4, ptr %3, align 4
br label %13
13: ; preds = %47, %12
store i32 0, ptr %2, align 4
%14 = load i32, ptr %7, align 4
%15 = sub nsw i32 %14, 1
store i32 %15, ptr %7, align 4
store i32 0, ptr %6, align 4
%16 = load i32, ptr %7, align 4
%17 = icmp sge i32 %16, 1
br i1 %17, label %18, label %30
18: ; preds = %13
br label %19
19: ; preds = %25, %18
%20 = load i32, ptr %6, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %6, align 4
%22 = load i8, ptr %10, align 1
%23 = sext i8 %22 to i32
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %23)
br label %25
25: ; preds = %19
%26 = load i32, ptr %6, align 4
%27 = load i32, ptr %7, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %19, label %29, !llvm.loop !6
29: ; preds = %25
br label %30
30: ; preds = %29, %13
br label %31
31: ; preds = %37, %30
%32 = load i32, ptr %2, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %2, align 4
%34 = load i8, ptr %9, align 1
%35 = sext i8 %34 to i32
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %35)
br label %37
37: ; preds = %31
%38 = load i32, ptr %2, align 4
%39 = load i32, ptr %4, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %31, label %41, !llvm.loop !8
41: ; preds = %37
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%43 = load i32, ptr %4, align 4
%44 = add nsw i32 %43, 2
store i32 %44, ptr %4, align 4
%45 = load i32, ptr %5, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %5, align 4
br label %47
47: ; preds = %41
%48 = load i32, ptr %5, align 4
%49 = load i32, ptr %3, align 4
%50 = icmp slt i32 %48, %49
br i1 %50, label %13, label %51, !llvm.loop !9
51: ; preds = %47
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %53
53: ; preds = %0, %51
store i32 7, ptr %3, align 4
store i32 0, ptr %6, align 4
store i32 7, ptr %7, align 4
store i32 1, ptr %8, align 4
store i32 1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %54
54: ; preds = %88, %53
store i32 0, ptr %2, align 4
%55 = load i32, ptr %7, align 4
%56 = sub nsw i32 %55, 1
store i32 %56, ptr %7, align 4
store i32 0, ptr %6, align 4
%57 = load i32, ptr %7, align 4
%58 = icmp sge i32 %57, 1
br i1 %58, label %59, label %71
59: ; preds = %54
br label %60
60: ; preds = %66, %59
%61 = load i32, ptr %6, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %6, align 4
%63 = load i8, ptr %10, align 1
%64 = sext i8 %63 to i32
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %64)
br label %66
66: ; preds = %60
%67 = load i32, ptr %6, align 4
%68 = load i32, ptr %7, align 4
%69 = icmp slt i32 %67, %68
br i1 %69, label %60, label %70, !llvm.loop !10
70: ; preds = %66
br label %71
71: ; preds = %70, %54
br label %72
72: ; preds = %78, %71
%73 = load i32, ptr %2, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %2, align 4
%75 = load i8, ptr %9, align 1
%76 = sext i8 %75 to i32
%77 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %76)
br label %78
78: ; preds = %72
%79 = load i32, ptr %2, align 4
%80 = load i32, ptr %4, align 4
%81 = icmp slt i32 %79, %80
br i1 %81, label %72, label %82, !llvm.loop !11
82: ; preds = %78
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%84 = load i32, ptr %4, align 4
%85 = add nsw i32 %84, 2
store i32 %85, ptr %4, align 4
%86 = load i32, ptr %5, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %5, align 4
br label %88
88: ; preds = %82
%89 = load i32, ptr %5, align 4
%90 = load i32, ptr %3, align 4
%91 = icmp slt i32 %89, %90
br i1 %91, label %54, label %92, !llvm.loop !12
92: ; preds = %88
%93 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %94
94: ; preds = %0, %92
store i32 11, ptr %3, align 4
store i32 0, ptr %6, align 4
store i32 11, ptr %7, align 4
store i32 1, ptr %8, align 4
store i32 1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %95
95: ; preds = %129, %94
store i32 0, ptr %2, align 4
%96 = load i32, ptr %7, align 4
%97 = sub nsw i32 %96, 1
store i32 %97, ptr %7, align 4
store i32 0, ptr %6, align 4
%98 = load i32, ptr %7, align 4
%99 = icmp sge i32 %98, 1
br i1 %99, label %100, label %112
100: ; preds = %95
br label %101
101: ; preds = %107, %100
%102 = load i32, ptr %6, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %6, align 4
%104 = load i8, ptr %10, align 1
%105 = sext i8 %104 to i32
%106 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %105)
br label %107
107: ; preds = %101
%108 = load i32, ptr %6, align 4
%109 = load i32, ptr %7, align 4
%110 = icmp slt i32 %108, %109
br i1 %110, label %101, label %111, !llvm.loop !13
111: ; preds = %107
br label %112
112: ; preds = %111, %95
br label %113
113: ; preds = %119, %112
%114 = load i32, ptr %2, align 4
%115 = add nsw i32 %114, 1
store i32 %115, ptr %2, align 4
%116 = load i8, ptr %9, align 1
%117 = sext i8 %116 to i32
%118 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %117)
br label %119
119: ; preds = %113
%120 = load i32, ptr %2, align 4
%121 = load i32, ptr %4, align 4
%122 = icmp slt i32 %120, %121
br i1 %122, label %113, label %123, !llvm.loop !14
123: ; preds = %119
%124 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%125 = load i32, ptr %4, align 4
%126 = add nsw i32 %125, 2
store i32 %126, ptr %4, align 4
%127 = load i32, ptr %5, align 4
%128 = add nsw i32 %127, 1
store i32 %128, ptr %5, align 4
br label %129
129: ; preds = %123
%130 = load i32, ptr %5, align 4
%131 = load i32, ptr %3, align 4
%132 = icmp slt i32 %130, %131
br i1 %132, label %95, label %133, !llvm.loop !15
133: ; preds = %129
br label %134
134: ; preds = %0, %133
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt02dvdfv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca 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 i8, align 1
%10 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i32 0, ptr %6, align 4
store i32 4, ptr %7, align 4
store i32 1, ptr %8, align 4
store i32 1, ptr %4, align 4
store i32 0, ptr %5, align 4
store i8 42, ptr %9, align 1
store i8 32, ptr %10, align 1
%11 = load i32, ptr %8, align 4
switch i32 %11, label %134 [
i32 1, label %12
i32 2, label %53
i32 3, label %94
]
12: ; preds = %0
store i32 4, ptr %3, align 4
br label %13
13: ; preds = %47, %12
store i32 0, ptr %2, align 4
%14 = load i32, ptr %7, align 4
%15 = sub nsw i32 %14, 1
store i32 %15, ptr %7, align 4
store i32 0, ptr %6, align 4
%16 = load i32, ptr %7, align 4
%17 = icmp sge i32 %16, 1
br i1 %17, label %18, label %30
18: ; preds = %13
br label %19
19: ; preds = %25, %18
%20 = load i32, ptr %6, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %6, align 4
%22 = load i8, ptr %10, align 1
%23 = sext i8 %22 to i32
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %23)
br label %25
25: ; preds = %19
%26 = load i32, ptr %6, align 4
%27 = load i32, ptr %7, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %19, label %29, !llvm.loop !6
29: ; preds = %25
br label %30
30: ; preds = %29, %13
br label %31
31: ; preds = %37, %30
%32 = load i32, ptr %2, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %2, align 4
%34 = load i8, ptr %9, align 1
%35 = sext i8 %34 to i32
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %35)
br label %37
37: ; preds = %31
%38 = load i32, ptr %2, align 4
%39 = load i32, ptr %4, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %31, label %41, !llvm.loop !8
41: ; preds = %37
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%43 = load i32, ptr %4, align 4
%44 = add nsw i32 %43, 2
store i32 %44, ptr %4, align 4
%45 = load i32, ptr %5, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %5, align 4
br label %47
47: ; preds = %41
%48 = load i32, ptr %5, align 4
%49 = load i32, ptr %3, align 4
%50 = icmp slt i32 %48, %49
br i1 %50, label %13, label %51, !llvm.loop !9
51: ; preds = %47
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %53
53: ; preds = %51, %0
store i32 7, ptr %3, align 4
store i32 0, ptr %6, align 4
store i32 7, ptr %7, align 4
store i32 1, ptr %8, align 4
store i32 1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %54
54: ; preds = %88, %53
store i32 0, ptr %2, align 4
%55 = load i32, ptr %7, align 4
%56 = sub nsw i32 %55, 1
store i32 %56, ptr %7, align 4
store i32 0, ptr %6, align 4
%57 = load i32, ptr %7, align 4
%58 = icmp sge i32 %57, 1
br i1 %58, label %59, label %71
59: ; preds = %54
br label %60
60: ; preds = %66, %59
%61 = load i32, ptr %6, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %6, align 4
%63 = load i8, ptr %10, align 1
%64 = sext i8 %63 to i32
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %64)
br label %66
66: ; preds = %60
%67 = load i32, ptr %6, align 4
%68 = load i32, ptr %7, align 4
%69 = icmp slt i32 %67, %68
br i1 %69, label %60, label %70, !llvm.loop !10
70: ; preds = %66
br label %71
71: ; preds = %70, %54
br label %72
72: ; preds = %78, %71
%73 = load i32, ptr %2, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %2, align 4
%75 = load i8, ptr %9, align 1
%76 = sext i8 %75 to i32
%77 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %76)
br label %78
78: ; preds = %72
%79 = load i32, ptr %2, align 4
%80 = load i32, ptr %4, align 4
%81 = icmp slt i32 %79, %80
br i1 %81, label %72, label %82, !llvm.loop !11
82: ; preds = %78
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%84 = load i32, ptr %4, align 4
%85 = add nsw i32 %84, 2
store i32 %85, ptr %4, align 4
%86 = load i32, ptr %5, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %5, align 4
br label %88
88: ; preds = %82
%89 = load i32, ptr %5, align 4
%90 = load i32, ptr %3, align 4
%91 = icmp slt i32 %89, %90
br i1 %91, label %54, label %92, !llvm.loop !12
92: ; preds = %88
%93 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %94
94: ; preds = %92, %0
store i32 11, ptr %3, align 4
store i32 0, ptr %6, align 4
store i32 11, ptr %7, align 4
store i32 1, ptr %8, align 4
store i32 1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %95
95: ; preds = %129, %94
store i32 0, ptr %2, align 4
%96 = load i32, ptr %7, align 4
%97 = sub nsw i32 %96, 1
store i32 %97, ptr %7, align 4
store i32 0, ptr %6, align 4
%98 = load i32, ptr %7, align 4
%99 = icmp sge i32 %98, 1
br i1 %99, label %100, label %112
100: ; preds = %95
br label %101
101: ; preds = %107, %100
%102 = load i32, ptr %6, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %6, align 4
%104 = load i8, ptr %10, align 1
%105 = sext i8 %104 to i32
%106 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %105)
br label %107
107: ; preds = %101
%108 = load i32, ptr %6, align 4
%109 = load i32, ptr %7, align 4
%110 = icmp slt i32 %108, %109
br i1 %110, label %101, label %111, !llvm.loop !13
111: ; preds = %107
br label %112
112: ; preds = %111, %95
br label %113
113: ; preds = %119, %112
%114 = load i32, ptr %2, align 4
%115 = add nsw i32 %114, 1
store i32 %115, ptr %2, align 4
%116 = load i8, ptr %9, align 1
%117 = sext i8 %116 to i32
%118 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %117)
br label %119
119: ; preds = %113
%120 = load i32, ptr %2, align 4
%121 = load i32, ptr %4, align 4
%122 = icmp slt i32 %120, %121
br i1 %122, label %113, label %123, !llvm.loop !14
123: ; preds = %119
%124 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%125 = load i32, ptr %4, align 4
%126 = add nsw i32 %125, 2
store i32 %126, ptr %4, align 4
%127 = load i32, ptr %5, align 4
%128 = add nsw i32 %127, 1
store i32 %128, ptr %5, align 4
br label %129
129: ; preds = %123
%130 = load i32, ptr %5, align 4
%131 = load i32, ptr %3, align 4
%132 = icmp slt i32 %130, %131
br i1 %132, label %95, label %133, !llvm.loop !15
133: ; preds = %129
br label %134
134: ; preds = %133, %0
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
|
; ModuleID = '/tmp/tmpa24t4vgi.c'
source_filename = "/tmp/tmpa24t4vgi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@test_or.val = internal global [57 x i32] [i32 0, i32 1, i32 2, i32 3, i32 63, i32 64, i32 65, i32 126, i32 127, i32 128, i32 129, i32 130, i32 191, i32 192, i32 193, i32 252, i32 253, i32 254, i32 255, i32 65280, i32 65281, i32 65282, i32 65283, i32 65343, i32 65344, i32 65345, i32 65406, i32 65407, i32 65408, i32 65409, i32 65410, i32 65471, i32 65472, i32 65473, i32 65532, i32 65533, i32 65534, i32 65535, i32 -256, i32 -255, i32 -254, i32 -253, i32 -193, i32 -192, i32 -191, i32 -130, i32 -129, i32 -128, i32 -127, i32 -126, i32 -65, i32 -64, i32 -63, i32 -4, i32 -3, i32 -2, i32 -1], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_or() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 @exec_or(i32 noundef 305419896, i32 noundef 135461594)
%4 = call i32 @exec_or(i32 noundef 74561, i32 noundef 74561)
%5 = call i32 @exec_or(i32 noundef 74561, i32 noundef -74561)
%6 = call i32 @exec_or(i32 noundef -1, i32 noundef 0)
%7 = call i32 @exec_or(i32 noundef -1, i32 noundef -1)
%8 = call i32 @exec_or(i32 noundef -1, i32 noundef 1)
%9 = call i32 @exec_or(i32 noundef -1, i32 noundef 2)
%10 = call i32 @exec_or(i32 noundef 2147483647, i32 noundef 0)
%11 = call i32 @exec_or(i32 noundef 2147483647, i32 noundef 1)
%12 = call i32 @exec_or(i32 noundef 2147483647, i32 noundef -1)
%13 = call i32 @exec_or(i32 noundef -2147483648, i32 noundef -1)
%14 = call i32 @exec_or(i32 noundef -2147483648, i32 noundef 1)
%15 = call i32 @exec_or(i32 noundef -2147483648, i32 noundef -2)
%16 = call i32 @exec_or(i32 noundef 305430527, i32 noundef 0)
%17 = call i32 @exec_or(i32 noundef 305430527, i32 noundef 1)
%18 = call i32 @exec_or(i32 noundef 305430527, i32 noundef -1)
%19 = call i32 @exec_or(i32 noundef 305430528, i32 noundef -1)
%20 = call i32 @exec_or(i32 noundef 305430528, i32 noundef 1)
%21 = call i32 @exec_or(i32 noundef 305430528, i32 noundef -2)
%22 = call i32 @exec_or(i32 noundef 305430399, i32 noundef 0)
%23 = call i32 @exec_or(i32 noundef 305430399, i32 noundef 1)
%24 = call i32 @exec_or(i32 noundef 305430399, i32 noundef -1)
%25 = call i32 @exec_or(i32 noundef 305430656, i32 noundef -1)
%26 = call i32 @exec_or(i32 noundef 305430656, i32 noundef 1)
%27 = call i32 @exec_or(i32 noundef 305430656, i32 noundef -2)
store i32 0, ptr %1, align 4
br label %28
28: ; preds = %49, %0
%29 = load i32, ptr %1, align 4
%30 = icmp slt i32 %29, 57
br i1 %30, label %31, label %52
31: ; preds = %28
store i32 0, ptr %2, align 4
br label %32
32: ; preds = %45, %31
%33 = load i32, ptr %2, align 4
%34 = icmp slt i32 %33, 57
br i1 %34, label %35, label %48
35: ; preds = %32
%36 = load i32, ptr %1, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [57 x i32], ptr @test_or.val, i64 0, i64 %37
%39 = load i32, ptr %38, align 4
%40 = load i32, ptr %2, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [57 x i32], ptr @test_or.val, i64 0, i64 %41
%43 = load i32, ptr %42, align 4
%44 = call i32 @exec_or(i32 noundef %39, i32 noundef %43)
br label %45
45: ; preds = %35
%46 = load i32, ptr %2, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %2, align 4
br label %32, !llvm.loop !6
48: ; preds = %32
br label %49
49: ; preds = %48
%50 = load i32, ptr %1, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %1, align 4
br label %28, !llvm.loop !8
52: ; preds = %28
ret void
}
declare i32 @exec_or(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa24t4vgi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@test_or.val = internal global [57 x i32] [i32 0, i32 1, i32 2, i32 3, i32 63, i32 64, i32 65, i32 126, i32 127, i32 128, i32 129, i32 130, i32 191, i32 192, i32 193, i32 252, i32 253, i32 254, i32 255, i32 65280, i32 65281, i32 65282, i32 65283, i32 65343, i32 65344, i32 65345, i32 65406, i32 65407, i32 65408, i32 65409, i32 65410, i32 65471, i32 65472, i32 65473, i32 65532, i32 65533, i32 65534, i32 65535, i32 -256, i32 -255, i32 -254, i32 -253, i32 -193, i32 -192, i32 -191, i32 -130, i32 -129, i32 -128, i32 -127, i32 -126, i32 -65, i32 -64, i32 -63, i32 -4, i32 -3, i32 -2, i32 -1], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_or() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 @exec_or(i32 noundef 305419896, i32 noundef 135461594)
%4 = call i32 @exec_or(i32 noundef 74561, i32 noundef 74561)
%5 = call i32 @exec_or(i32 noundef 74561, i32 noundef -74561)
%6 = call i32 @exec_or(i32 noundef -1, i32 noundef 0)
%7 = call i32 @exec_or(i32 noundef -1, i32 noundef -1)
%8 = call i32 @exec_or(i32 noundef -1, i32 noundef 1)
%9 = call i32 @exec_or(i32 noundef -1, i32 noundef 2)
%10 = call i32 @exec_or(i32 noundef 2147483647, i32 noundef 0)
%11 = call i32 @exec_or(i32 noundef 2147483647, i32 noundef 1)
%12 = call i32 @exec_or(i32 noundef 2147483647, i32 noundef -1)
%13 = call i32 @exec_or(i32 noundef -2147483648, i32 noundef -1)
%14 = call i32 @exec_or(i32 noundef -2147483648, i32 noundef 1)
%15 = call i32 @exec_or(i32 noundef -2147483648, i32 noundef -2)
%16 = call i32 @exec_or(i32 noundef 305430527, i32 noundef 0)
%17 = call i32 @exec_or(i32 noundef 305430527, i32 noundef 1)
%18 = call i32 @exec_or(i32 noundef 305430527, i32 noundef -1)
%19 = call i32 @exec_or(i32 noundef 305430528, i32 noundef -1)
%20 = call i32 @exec_or(i32 noundef 305430528, i32 noundef 1)
%21 = call i32 @exec_or(i32 noundef 305430528, i32 noundef -2)
%22 = call i32 @exec_or(i32 noundef 305430399, i32 noundef 0)
%23 = call i32 @exec_or(i32 noundef 305430399, i32 noundef 1)
%24 = call i32 @exec_or(i32 noundef 305430399, i32 noundef -1)
%25 = call i32 @exec_or(i32 noundef 305430656, i32 noundef -1)
%26 = call i32 @exec_or(i32 noundef 305430656, i32 noundef 1)
%27 = call i32 @exec_or(i32 noundef 305430656, i32 noundef -2)
store i32 0, ptr %1, align 4
%28 = load i32, ptr %1, align 4
%29 = icmp slt i32 %28, 57
br i1 %29, label %.lr.ph2, label %54
.lr.ph2: ; preds = %0
br label %30
30: ; preds = %.lr.ph2, %49
store i32 0, ptr %2, align 4
%31 = load i32, ptr %2, align 4
%32 = icmp slt i32 %31, 57
br i1 %32, label %.lr.ph, label %48
.lr.ph: ; preds = %30
br label %33
33: ; preds = %.lr.ph, %43
%34 = load i32, ptr %1, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [57 x i32], ptr @test_or.val, i64 0, i64 %35
%37 = load i32, ptr %36, align 4
%38 = load i32, ptr %2, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [57 x i32], ptr @test_or.val, i64 0, i64 %39
%41 = load i32, ptr %40, align 4
%42 = call i32 @exec_or(i32 noundef %37, i32 noundef %41)
br label %43
43: ; preds = %33
%44 = load i32, ptr %2, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %2, align 4
%46 = load i32, ptr %2, align 4
%47 = icmp slt i32 %46, 57
br i1 %47, label %33, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %43
br label %48
48: ; preds = %._crit_edge, %30
br label %49
49: ; preds = %48
%50 = load i32, ptr %1, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %1, align 4
%52 = load i32, ptr %1, align 4
%53 = icmp slt i32 %52, 57
br i1 %53, label %30, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %49
br label %54
54: ; preds = %._crit_edge3, %0
ret void
}
declare i32 @exec_or(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpis1igxmb.c'
source_filename = "/tmp/tmpis1igxmb.c"
target datalayout = "e-m:e-p270: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/tmpis1igxmb.c"
target datalayout = "e-m:e-p270: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/tmpur0v7hi1.c'
source_filename = "/tmp/tmpur0v7hi1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @msg_setd_(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca double, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%9 = load ptr, ptr %5, align 8
%10 = load double, ptr %9, align 8
store double %10, ptr %7, align 8
%11 = load i32, ptr %6, align 4
%12 = add nsw i32 %11, 1
%13 = call ptr @starMallocAtomic(i32 noundef %12)
store ptr %13, ptr %8, align 8
%14 = load ptr, ptr %4, align 8
%15 = load i32, ptr %6, align 4
%16 = load ptr, ptr %8, align 8
%17 = call i32 @cnfImprt(ptr noundef %14, i32 noundef %15, ptr noundef %16)
%18 = load ptr, ptr %8, align 8
%19 = load double, ptr %7, align 8
%20 = call i32 @msgSetd(ptr noundef %18, double noundef %19)
%21 = load ptr, ptr %8, align 8
%22 = call i32 @starFree(ptr noundef %21)
ret void
}
declare ptr @starMallocAtomic(i32 noundef) #1
declare i32 @cnfImprt(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @msgSetd(ptr noundef, double noundef) #1
declare i32 @starFree(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpur0v7hi1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @msg_setd_(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca double, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%9 = load ptr, ptr %5, align 8
%10 = load double, ptr %9, align 8
store double %10, ptr %7, align 8
%11 = load i32, ptr %6, align 4
%12 = add nsw i32 %11, 1
%13 = call ptr @starMallocAtomic(i32 noundef %12)
store ptr %13, ptr %8, align 8
%14 = load ptr, ptr %4, align 8
%15 = load i32, ptr %6, align 4
%16 = load ptr, ptr %8, align 8
%17 = call i32 @cnfImprt(ptr noundef %14, i32 noundef %15, ptr noundef %16)
%18 = load ptr, ptr %8, align 8
%19 = load double, ptr %7, align 8
%20 = call i32 @msgSetd(ptr noundef %18, double noundef %19)
%21 = load ptr, ptr %8, align 8
%22 = call i32 @starFree(ptr noundef %21)
ret void
}
declare ptr @starMallocAtomic(i32 noundef) #1
declare i32 @cnfImprt(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @msgSetd(ptr noundef, double noundef) #1
declare i32 @starFree(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzgwvir9f.c'
source_filename = "/tmp/tmpzgwvir9f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c" TWI LCD Test Application\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"vch?d:p:\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"%s: version %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"0.1\00", align 1
@optarg = dso_local global i32 0, align 4
@stdout = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [27 x i8] c"ERROR: unkown option '%c'\0A\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"/dev/lcd\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [21 x i8] c"Can't open dev lcd.\0A\00", align 1
@.str.7 = private unnamed_addr constant [28 x i8] c" Selected Controller\09: %d \0A\00", align 1
@.str.8 = private unnamed_addr constant [22 x i8] c" Clearing Display\09: \0A\00", align 1
@.str.9 = private unnamed_addr constant [18 x i8] c" Position\09\09: %d \0A\00", align 1
@optind = dso_local global i64 0, align 8
@.str.10 = private unnamed_addr constant [17 x i8] c" Message\09\09: %s \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca 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 ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
store i32 0, ptr %11, align 4
store i32 0, ptr %12, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %15
15: ; preds = %50, %2
%16 = load i32, ptr %4, align 4
%17 = load ptr, ptr %5, align 8
%18 = call i32 @getopt(i32 noundef %16, ptr noundef %17, ptr noundef @.str.1)
store i32 %18, ptr %7, align 4
%19 = icmp sgt i32 %18, 0
br i1 %19, label %20, label %51
20: ; preds = %15
%21 = load i32, ptr %7, align 4
switch i32 %21, label %44 [
i32 118, label %22
i32 99, label %28
i32 100, label %31
i32 112, label %36
i32 104, label %41
i32 63, label %41
]
22: ; preds = %20
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 0
%25 = load ptr, ptr %24, align 8
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %25, ptr noundef @.str.3)
%27 = call i32 @exit(i32 noundef 0) #3
unreachable
28: ; preds = %20
%29 = load i32, ptr %8, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %8, align 4
br label %50
31: ; preds = %20
%32 = load i32, ptr %11, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %11, align 4
%34 = load i32, ptr @optarg, align 4
%35 = call i32 @atoi(i32 noundef %34)
store i32 %35, ptr %12, align 4
br label %50
36: ; preds = %20
%37 = load i32, ptr %9, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %9, align 4
%39 = load i32, ptr @optarg, align 4
%40 = call i32 @atoi(i32 noundef %39)
store i32 %40, ptr %10, align 4
br label %50
41: ; preds = %20, %20
%42 = load i32, ptr @stdout, align 4
%43 = call i32 @usage(i32 noundef %42, i32 noundef 0)
br label %50
44: ; preds = %20
%45 = load i32, ptr @stderr, align 4
%46 = load i32, ptr %7, align 4
%47 = call i32 @fprintf(i32 noundef %45, ptr noundef @.str.4, i32 noundef %46)
%48 = load i32, ptr @stderr, align 4
%49 = call i32 @usage(i32 noundef %48, i32 noundef 1)
br label %50
50: ; preds = %44, %41, %36, %31, %28
br label %15, !llvm.loop !6
51: ; preds = %15
%52 = load i32, ptr @O_RDWR, align 4
%53 = call i32 @open(ptr noundef @.str.5, i32 noundef %52)
store i32 %53, ptr %6, align 4
%54 = load i32, ptr %6, align 4
%55 = icmp slt i32 %54, 0
br i1 %55, label %56, label %58
56: ; preds = %51
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
ret i32 -1
58: ; preds = %51
%59 = load i32, ptr %11, align 4
%60 = icmp ne i32 %59, 0
br i1 %60, label %61, label %67
61: ; preds = %58
%62 = load i32, ptr %6, align 4
%63 = load i32, ptr %12, align 4
%64 = call i32 @ioctl(i32 noundef %62, i32 noundef 12, i32 noundef %63)
%65 = load i32, ptr %12, align 4
%66 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %65)
br label %67
67: ; preds = %61, %58
%68 = load i32, ptr %8, align 4
%69 = icmp ne i32 %68, 0
br i1 %69, label %70, label %75
70: ; preds = %67
%71 = load i32, ptr %6, align 4
%72 = call i32 @ioctl(i32 noundef %71, i32 noundef 3, i32 noundef 1)
%73 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%74 = call i32 @sleep(i32 noundef 1)
br label %75
75: ; preds = %70, %67
%76 = load i32, ptr %9, align 4
%77 = icmp ne i32 %76, 0
br i1 %77, label %78, label %84
78: ; preds = %75
%79 = load i32, ptr %6, align 4
%80 = load i32, ptr %10, align 4
%81 = call i32 @ioctl(i32 noundef %79, i32 noundef 17, i32 noundef %80)
%82 = load i32, ptr %10, align 4
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %82)
br label %84
84: ; preds = %78, %75
%85 = load ptr, ptr %5, align 8
%86 = load i64, ptr @optind, align 8
%87 = getelementptr inbounds ptr, ptr %85, i64 %86
%88 = load ptr, ptr %87, align 8
store ptr %88, ptr %13, align 8
%89 = load ptr, ptr %13, align 8
%90 = icmp ne ptr %89, null
br i1 %90, label %91, label %99
91: ; preds = %84
%92 = load ptr, ptr %13, align 8
%93 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, ptr noundef %92)
%94 = load i32, ptr %6, align 4
%95 = load ptr, ptr %13, align 8
%96 = load ptr, ptr %13, align 8
%97 = call i32 @strlen(ptr noundef %96)
%98 = call i32 @write(i32 noundef %94, ptr noundef %95, i32 noundef %97)
br label %99
99: ; preds = %91, %84
%100 = load i32, ptr %6, align 4
%101 = call i32 @close(i32 noundef %100)
%102 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @atoi(i32 noundef) #1
declare i32 @usage(i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @ioctl(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @sleep(i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzgwvir9f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c" TWI LCD Test Application\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"vch?d:p:\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"%s: version %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"0.1\00", align 1
@optarg = dso_local global i32 0, align 4
@stdout = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [27 x i8] c"ERROR: unkown option '%c'\0A\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"/dev/lcd\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [21 x i8] c"Can't open dev lcd.\0A\00", align 1
@.str.7 = private unnamed_addr constant [28 x i8] c" Selected Controller\09: %d \0A\00", align 1
@.str.8 = private unnamed_addr constant [22 x i8] c" Clearing Display\09: \0A\00", align 1
@.str.9 = private unnamed_addr constant [18 x i8] c" Position\09\09: %d \0A\00", align 1
@optind = dso_local global i64 0, align 8
@.str.10 = private unnamed_addr constant [17 x i8] c" Message\09\09: %s \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca 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 ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
store i32 0, ptr %11, align 4
store i32 0, ptr %12, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%15 = load i32, ptr %4, align 4
%16 = load ptr, ptr %5, align 8
%17 = call i32 @getopt(i32 noundef %15, ptr noundef %16, ptr noundef @.str.1)
store i32 %17, ptr %7, align 4
%18 = icmp sgt i32 %17, 0
br i1 %18, label %.lr.ph, label %54
.lr.ph: ; preds = %2
br label %19
19: ; preds = %.lr.ph, %49
%20 = load i32, ptr %7, align 4
switch i32 %20, label %43 [
i32 118, label %21
i32 99, label %27
i32 100, label %30
i32 112, label %35
i32 104, label %40
i32 63, label %40
]
21: ; preds = %19
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 0
%24 = load ptr, ptr %23, align 8
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %24, ptr noundef @.str.3)
%26 = call i32 @exit(i32 noundef 0) #3
unreachable
27: ; preds = %19
%28 = load i32, ptr %8, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %8, align 4
br label %49
30: ; preds = %19
%31 = load i32, ptr %11, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %11, align 4
%33 = load i32, ptr @optarg, align 4
%34 = call i32 @atoi(i32 noundef %33)
store i32 %34, ptr %12, align 4
br label %49
35: ; preds = %19
%36 = load i32, ptr %9, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %9, align 4
%38 = load i32, ptr @optarg, align 4
%39 = call i32 @atoi(i32 noundef %38)
store i32 %39, ptr %10, align 4
br label %49
40: ; preds = %19, %19
%41 = load i32, ptr @stdout, align 4
%42 = call i32 @usage(i32 noundef %41, i32 noundef 0)
br label %49
43: ; preds = %19
%44 = load i32, ptr @stderr, align 4
%45 = load i32, ptr %7, align 4
%46 = call i32 @fprintf(i32 noundef %44, ptr noundef @.str.4, i32 noundef %45)
%47 = load i32, ptr @stderr, align 4
%48 = call i32 @usage(i32 noundef %47, i32 noundef 1)
br label %49
49: ; preds = %43, %40, %35, %30, %27
%50 = load i32, ptr %4, align 4
%51 = load ptr, ptr %5, align 8
%52 = call i32 @getopt(i32 noundef %50, ptr noundef %51, ptr noundef @.str.1)
store i32 %52, ptr %7, align 4
%53 = icmp sgt i32 %52, 0
br i1 %53, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %49
br label %54
54: ; preds = %._crit_edge, %2
%55 = load i32, ptr @O_RDWR, align 4
%56 = call i32 @open(ptr noundef @.str.5, i32 noundef %55)
store i32 %56, ptr %6, align 4
%57 = load i32, ptr %6, align 4
%58 = icmp slt i32 %57, 0
br i1 %58, label %59, label %61
59: ; preds = %54
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
ret i32 -1
61: ; preds = %54
%62 = load i32, ptr %11, align 4
%63 = icmp ne i32 %62, 0
br i1 %63, label %64, label %70
64: ; preds = %61
%65 = load i32, ptr %6, align 4
%66 = load i32, ptr %12, align 4
%67 = call i32 @ioctl(i32 noundef %65, i32 noundef 12, i32 noundef %66)
%68 = load i32, ptr %12, align 4
%69 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %68)
br label %70
70: ; preds = %64, %61
%71 = load i32, ptr %8, align 4
%72 = icmp ne i32 %71, 0
br i1 %72, label %73, label %78
73: ; preds = %70
%74 = load i32, ptr %6, align 4
%75 = call i32 @ioctl(i32 noundef %74, i32 noundef 3, i32 noundef 1)
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%77 = call i32 @sleep(i32 noundef 1)
br label %78
78: ; preds = %73, %70
%79 = load i32, ptr %9, align 4
%80 = icmp ne i32 %79, 0
br i1 %80, label %81, label %87
81: ; preds = %78
%82 = load i32, ptr %6, align 4
%83 = load i32, ptr %10, align 4
%84 = call i32 @ioctl(i32 noundef %82, i32 noundef 17, i32 noundef %83)
%85 = load i32, ptr %10, align 4
%86 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %85)
br label %87
87: ; preds = %81, %78
%88 = load ptr, ptr %5, align 8
%89 = load i64, ptr @optind, align 8
%90 = getelementptr inbounds ptr, ptr %88, i64 %89
%91 = load ptr, ptr %90, align 8
store ptr %91, ptr %13, align 8
%92 = load ptr, ptr %13, align 8
%93 = icmp ne ptr %92, null
br i1 %93, label %94, label %102
94: ; preds = %87
%95 = load ptr, ptr %13, align 8
%96 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, ptr noundef %95)
%97 = load i32, ptr %6, align 4
%98 = load ptr, ptr %13, align 8
%99 = load ptr, ptr %13, align 8
%100 = call i32 @strlen(ptr noundef %99)
%101 = call i32 @write(i32 noundef %97, ptr noundef %98, i32 noundef %100)
br label %102
102: ; preds = %94, %87
%103 = load i32, ptr %6, align 4
%104 = call i32 @close(i32 noundef %103)
%105 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @atoi(i32 noundef) #1
declare i32 @usage(i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @ioctl(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @sleep(i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpayxq8ekz.c'
source_filename = "/tmp/tmpayxq8ekz.c"
target datalayout = "e-m:e-p270: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/tmpayxq8ekz.c"
target datalayout = "e-m:e-p270: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/tmp7c1tal3j.c'
source_filename = "/tmp/tmp7c1tal3j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @AfSrvCurPos() #0 {
%1 = alloca i16, align 2
%2 = call i32 @RamReadA(i32 noundef 5378, ptr noundef %1)
%3 = load i16, ptr %1, align 2
%4 = zext i16 %3 to i32
%5 = mul nsw i32 %4, -1
%6 = trunc i32 %5 to i16
store i16 %6, ptr %1, align 2
%7 = load i16, ptr %1, align 2
%8 = call i32 @RamWriteA(i32 noundef 5407, i16 noundef zeroext %7)
%9 = load i16, ptr %1, align 2
%10 = call i32 @RamWriteA(i32 noundef 5395, i16 noundef zeroext %9)
ret void
}
declare i32 @RamReadA(i32 noundef, ptr noundef) #1
declare i32 @RamWriteA(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/tmp7c1tal3j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @AfSrvCurPos() #0 {
%1 = alloca i16, align 2
%2 = call i32 @RamReadA(i32 noundef 5378, ptr noundef %1)
%3 = load i16, ptr %1, align 2
%4 = zext i16 %3 to i32
%5 = mul nsw i32 %4, -1
%6 = trunc i32 %5 to i16
store i16 %6, ptr %1, align 2
%7 = load i16, ptr %1, align 2
%8 = call i32 @RamWriteA(i32 noundef 5407, i16 noundef zeroext %7)
%9 = load i16, ptr %1, align 2
%10 = call i32 @RamWriteA(i32 noundef 5395, i16 noundef zeroext %9)
ret void
}
declare i32 @RamReadA(i32 noundef, ptr noundef) #1
declare i32 @RamWriteA(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/tmpqlxxjnpx.c'
source_filename = "/tmp/tmpqlxxjnpx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"-h\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"--help\00", align 1
@.str.2 = 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 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 ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 1, ptr %7, align 4
store i32 100, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
store i32 0, ptr %11, align 4
store ptr null, ptr %12, align 8
%13 = load i32, ptr %4, align 4
%14 = icmp sge i32 %13, 2
br i1 %14, label %15, label %34
15: ; preds = %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = load ptr, ptr %17, align 8
%19 = call i64 @strcmp(ptr noundef %18, ptr noundef @.str)
%20 = icmp eq i64 %19, 0
br i1 %20, label %27, label %21
21: ; preds = %15
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call i64 @strcmp(ptr noundef %24, ptr noundef @.str.1)
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %21, %15
%28 = call i32 (...) @usage()
store i32 1, ptr %6, align 4
br label %115
29: ; preds = %21
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds ptr, ptr %30, i64 1
%32 = load ptr, ptr %31, align 8
%33 = call i32 @atoi(ptr noundef %32)
store i32 %33, ptr %7, align 4
br label %34
34: ; preds = %29, %2
%35 = load i32, ptr %4, align 4
%36 = icmp sge i32 %35, 3
br i1 %36, label %37, label %42
37: ; preds = %34
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds ptr, ptr %38, i64 2
%40 = load ptr, ptr %39, align 8
%41 = call i32 @atoi(ptr noundef %40)
store i32 %41, ptr %8, align 4
br label %42
42: ; preds = %37, %34
%43 = load i32, ptr %8, align 4
%44 = sext i32 %43 to i64
%45 = mul i64 4, %44
%46 = add i64 %45, 1
%47 = trunc i64 %46 to i32
%48 = call ptr @malloc(i32 noundef %47)
store ptr %48, ptr %12, align 8
%49 = load i32, ptr %7, align 4
%50 = load ptr, ptr %12, align 8
%51 = load i32, ptr %9, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %9, align 4
%53 = sext i32 %51 to i64
%54 = getelementptr inbounds i32, ptr %50, i64 %53
store i32 %49, ptr %54, align 4
%55 = load i32, ptr %7, align 4
%56 = load ptr, ptr %12, align 8
%57 = load i32, ptr %9, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %9, align 4
%59 = sext i32 %57 to i64
%60 = getelementptr inbounds i32, ptr %56, i64 %59
store i32 %55, ptr %60, align 4
store i32 0, ptr %10, align 4
%61 = load i32, ptr %8, align 4
store i32 %61, ptr %11, align 4
br label %62
62: ; preds = %95, %42
%63 = load i32, ptr %10, align 4
%64 = load i32, ptr %11, align 4
%65 = icmp slt i32 %63, %64
br i1 %65, label %66, label %98
66: ; preds = %62
%67 = load ptr, ptr %12, align 8
%68 = load i32, ptr %10, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i32, ptr %67, i64 %69
%71 = load i32, ptr %70, align 4
%72 = load ptr, ptr %12, align 8
%73 = load i32, ptr %10, align 4
%74 = add nsw i32 %73, 1
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i32, ptr %72, i64 %75
%77 = load i32, ptr %76, align 4
%78 = add nsw i32 %71, %77
%79 = load ptr, ptr %12, align 8
%80 = load i32, ptr %9, align 4
%81 = add nsw i32 %80, 1
store i32 %81, ptr %9, align 4
%82 = sext i32 %80 to i64
%83 = getelementptr inbounds i32, ptr %79, i64 %82
store i32 %78, ptr %83, align 4
%84 = load ptr, ptr %12, align 8
%85 = load i32, ptr %10, align 4
%86 = add nsw i32 %85, 1
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i32, ptr %84, i64 %87
%89 = load i32, ptr %88, align 4
%90 = load ptr, ptr %12, align 8
%91 = load i32, ptr %9, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr %9, align 4
%93 = sext i32 %91 to i64
%94 = getelementptr inbounds i32, ptr %90, i64 %93
store i32 %89, ptr %94, align 4
br label %95
95: ; preds = %66
%96 = load i32, ptr %10, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %10, align 4
br label %62, !llvm.loop !6
98: ; preds = %62
store i32 0, ptr %10, align 4
%99 = load i32, ptr %8, align 4
store i32 %99, ptr %11, align 4
br label %100
100: ; preds = %111, %98
%101 = load i32, ptr %10, align 4
%102 = load i32, ptr %11, align 4
%103 = icmp slt i32 %101, %102
br i1 %103, label %104, label %114
104: ; preds = %100
%105 = load ptr, ptr %12, align 8
%106 = load i32, ptr %10, align 4
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds i32, ptr %105, i64 %107
%109 = load i32, ptr %108, align 4
%110 = call i32 @printf(ptr noundef @.str.2, i32 noundef %109)
br label %111
111: ; preds = %104
%112 = load i32, ptr %10, align 4
%113 = add nsw i32 %112, 1
store i32 %113, ptr %10, align 4
br label %100, !llvm.loop !8
114: ; preds = %100
br label %115
115: ; preds = %114, %27
%116 = load ptr, ptr %12, align 8
%117 = icmp ne ptr %116, null
br i1 %117, label %118, label %121
118: ; preds = %115
%119 = load ptr, ptr %12, align 8
%120 = call i32 @free(ptr noundef %119)
br label %121
121: ; preds = %118, %115
%122 = load i32, ptr %6, align 4
ret i32 %122
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @usage(...) #1
declare i32 @atoi(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqlxxjnpx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"-h\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"--help\00", align 1
@.str.2 = 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 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 ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 1, ptr %7, align 4
store i32 100, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
store i32 0, ptr %11, align 4
store ptr null, ptr %12, align 8
%13 = load i32, ptr %4, align 4
%14 = icmp sge i32 %13, 2
br i1 %14, label %15, label %34
15: ; preds = %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = load ptr, ptr %17, align 8
%19 = call i64 @strcmp(ptr noundef %18, ptr noundef @.str)
%20 = icmp eq i64 %19, 0
br i1 %20, label %27, label %21
21: ; preds = %15
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call i64 @strcmp(ptr noundef %24, ptr noundef @.str.1)
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %21, %15
%28 = call i32 (...) @usage()
store i32 1, ptr %6, align 4
br label %119
29: ; preds = %21
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds ptr, ptr %30, i64 1
%32 = load ptr, ptr %31, align 8
%33 = call i32 @atoi(ptr noundef %32)
store i32 %33, ptr %7, align 4
br label %34
34: ; preds = %29, %2
%35 = load i32, ptr %4, align 4
%36 = icmp sge i32 %35, 3
br i1 %36, label %37, label %42
37: ; preds = %34
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds ptr, ptr %38, i64 2
%40 = load ptr, ptr %39, align 8
%41 = call i32 @atoi(ptr noundef %40)
store i32 %41, ptr %8, align 4
br label %42
42: ; preds = %37, %34
%43 = load i32, ptr %8, align 4
%44 = sext i32 %43 to i64
%45 = mul i64 4, %44
%46 = add i64 %45, 1
%47 = trunc i64 %46 to i32
%48 = call ptr @malloc(i32 noundef %47)
store ptr %48, ptr %12, align 8
%49 = load i32, ptr %7, align 4
%50 = load ptr, ptr %12, align 8
%51 = load i32, ptr %9, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %9, align 4
%53 = sext i32 %51 to i64
%54 = getelementptr inbounds i32, ptr %50, i64 %53
store i32 %49, ptr %54, align 4
%55 = load i32, ptr %7, align 4
%56 = load ptr, ptr %12, align 8
%57 = load i32, ptr %9, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %9, align 4
%59 = sext i32 %57 to i64
%60 = getelementptr inbounds i32, ptr %56, i64 %59
store i32 %55, ptr %60, align 4
store i32 0, ptr %10, align 4
%61 = load i32, ptr %8, align 4
store i32 %61, ptr %11, align 4
%62 = load i32, ptr %10, align 4
%63 = load i32, ptr %11, align 4
%64 = icmp slt i32 %62, %63
br i1 %64, label %.lr.ph, label %100
.lr.ph: ; preds = %42
br label %65
65: ; preds = %.lr.ph, %94
%66 = load ptr, ptr %12, align 8
%67 = load i32, ptr %10, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i32, ptr %66, i64 %68
%70 = load i32, ptr %69, align 4
%71 = load ptr, ptr %12, align 8
%72 = load i32, ptr %10, align 4
%73 = add nsw i32 %72, 1
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i32, ptr %71, i64 %74
%76 = load i32, ptr %75, align 4
%77 = add nsw i32 %70, %76
%78 = load ptr, ptr %12, align 8
%79 = load i32, ptr %9, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %9, align 4
%81 = sext i32 %79 to i64
%82 = getelementptr inbounds i32, ptr %78, i64 %81
store i32 %77, ptr %82, align 4
%83 = load ptr, ptr %12, align 8
%84 = load i32, ptr %10, align 4
%85 = add nsw i32 %84, 1
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i32, ptr %83, i64 %86
%88 = load i32, ptr %87, align 4
%89 = load ptr, ptr %12, align 8
%90 = load i32, ptr %9, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %9, align 4
%92 = sext i32 %90 to i64
%93 = getelementptr inbounds i32, ptr %89, i64 %92
store i32 %88, ptr %93, align 4
br label %94
94: ; preds = %65
%95 = load i32, ptr %10, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %10, align 4
%97 = load i32, ptr %10, align 4
%98 = load i32, ptr %11, align 4
%99 = icmp slt i32 %97, %98
br i1 %99, label %65, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %94
br label %100
100: ; preds = %._crit_edge, %42
store i32 0, ptr %10, align 4
%101 = load i32, ptr %8, align 4
store i32 %101, ptr %11, align 4
%102 = load i32, ptr %10, align 4
%103 = load i32, ptr %11, align 4
%104 = icmp slt i32 %102, %103
br i1 %104, label %.lr.ph2, label %118
.lr.ph2: ; preds = %100
br label %105
105: ; preds = %.lr.ph2, %112
%106 = load ptr, ptr %12, align 8
%107 = load i32, ptr %10, align 4
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds i32, ptr %106, i64 %108
%110 = load i32, ptr %109, align 4
%111 = call i32 @printf(ptr noundef @.str.2, i32 noundef %110)
br label %112
112: ; preds = %105
%113 = load i32, ptr %10, align 4
%114 = add nsw i32 %113, 1
store i32 %114, ptr %10, align 4
%115 = load i32, ptr %10, align 4
%116 = load i32, ptr %11, align 4
%117 = icmp slt i32 %115, %116
br i1 %117, label %105, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %112
br label %118
118: ; preds = %._crit_edge3, %100
br label %119
119: ; preds = %118, %27
%120 = load ptr, ptr %12, align 8
%121 = icmp ne ptr %120, null
br i1 %121, label %122, label %125
122: ; preds = %119
%123 = load ptr, ptr %12, align 8
%124 = call i32 @free(ptr noundef %123)
br label %125
125: ; preds = %122, %119
%126 = load i32, ptr %6, align 4
ret i32 %126
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @usage(...) #1
declare i32 @atoi(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp0td20_p_.c'
source_filename = "/tmp/tmp0td20_p_.c"
target datalayout = "e-m:e-p270: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.src = private unnamed_addr constant [1 x i8] c"a", align 1
@__const.main.dest = private unnamed_addr constant [1 x i8] c"b", align 1
@.str = private unnamed_addr constant [7 x i8] c"%c %c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [1 x i8], align 1
%2 = alloca [1 x i8], align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %1, ptr align 1 @__const.main.src, i64 1, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.main.dest, i64 1, i1 false)
%3 = call i32 @memcpy(ptr noundef %2, ptr noundef %1, i32 noundef 0)
%4 = getelementptr inbounds [1 x i8], ptr %1, i64 0, i64 0
%5 = load i8, ptr %4, align 1
%6 = getelementptr inbounds [1 x i8], ptr %2, i64 0, i64 0
%7 = load i8, ptr %6, align 1
%8 = call i32 @printf(ptr noundef @.str, i8 noundef signext %5, i8 noundef signext %7)
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 @memcpy(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, i8 noundef signext, i8 noundef signext) #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/tmp0td20_p_.c"
target datalayout = "e-m:e-p270: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.src = private unnamed_addr constant [1 x i8] c"a", align 1
@__const.main.dest = private unnamed_addr constant [1 x i8] c"b", align 1
@.str = private unnamed_addr constant [7 x i8] c"%c %c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [1 x i8], align 1
%2 = alloca [1 x i8], align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %1, ptr align 1 @__const.main.src, i64 1, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.main.dest, i64 1, i1 false)
%3 = call i32 @memcpy(ptr noundef %2, ptr noundef %1, i32 noundef 0)
%4 = getelementptr inbounds [1 x i8], ptr %1, i64 0, i64 0
%5 = load i8, ptr %4, align 1
%6 = getelementptr inbounds [1 x i8], ptr %2, i64 0, i64 0
%7 = load i8, ptr %6, align 1
%8 = call i32 @printf(ptr noundef @.str, i8 noundef signext %5, i8 noundef signext %7)
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 @memcpy(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, i8 noundef signext, i8 noundef signext) #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/tmpnehha2ig.c'
source_filename = "/tmp/tmpnehha2ig.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [20 x i8] c"\1B[1;31m:: \1B[0m%s%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @display_verbose(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %22, %2
%7 = load i32, ptr %5, align 4
%8 = icmp slt i32 %7, 17
br i1 %8, label %9, label %25
9: ; preds = %6
%10 = load i32, ptr @stdout, align 4
%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
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %5, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds ptr, ptr %16, i64 %18
%20 = load ptr, ptr %19, align 8
%21 = call i32 @fprintf(i32 noundef %10, ptr noundef @.str, ptr noundef %15, ptr noundef %20)
br label %22
22: ; preds = %9
%23 = load i32, ptr %5, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %5, align 4
br label %6, !llvm.loop !6
25: ; preds = %6
ret void
}
declare i32 @fprintf(i32 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnehha2ig.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [20 x i8] c"\1B[1;31m:: \1B[0m%s%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @display_verbose(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = icmp slt i32 %6, 17
br i1 %7, label %.lr.ph, label %26
.lr.ph: ; preds = %2
br label %8
8: ; preds = %.lr.ph, %21
%9 = load i32, ptr @stdout, align 4
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds ptr, ptr %10, i64 %12
%14 = load ptr, ptr %13, align 8
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds ptr, ptr %15, i64 %17
%19 = load ptr, ptr %18, align 8
%20 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str, ptr noundef %14, ptr noundef %19)
br label %21
21: ; preds = %8
%22 = load i32, ptr %5, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %5, align 4
%24 = load i32, ptr %5, align 4
%25 = icmp slt i32 %24, 17
br i1 %25, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %26
26: ; preds = %._crit_edge, %2
ret void
}
declare i32 @fprintf(i32 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp17fiwhkc.c'
source_filename = "/tmp/tmp17fiwhkc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"foo\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 @length_str(ptr noundef @.str)
%3 = icmp eq i32 %2, 3
br i1 %3, label %4, label %5
4: ; preds = %0
store i32 0, ptr %1, align 4
br label %6
5: ; preds = %0
store i32 1, ptr %1, align 4
br label %6
6: ; preds = %5, %4
%7 = load i32, ptr %1, align 4
ret i32 %7
}
declare i32 @length_str(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp17fiwhkc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"foo\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 @length_str(ptr noundef @.str)
%3 = icmp eq i32 %2, 3
br i1 %3, label %4, label %5
4: ; preds = %0
store i32 0, ptr %1, align 4
br label %6
5: ; preds = %0
store i32 1, ptr %1, align 4
br label %6
6: ; preds = %5, %4
%7 = load i32, ptr %1, align 4
ret i32 %7
}
declare i32 @length_str(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpf5s_kn1w.c'
source_filename = "/tmp/tmpf5s_kn1w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%union.anon = type { [2 x i64] }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @compute_checksum(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca %union.anon, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i64 0, ptr %7, align 8
%10 = load ptr, ptr %3, align 8
store ptr %10, ptr %5, align 8
store i64 0, ptr %8, align 8
br label %11
11: ; preds = %39, %2
%12 = load i64, ptr %8, align 8
%13 = load i64, ptr %4, align 8
%14 = icmp ult i64 %12, %13
br i1 %14, label %15, label %42
15: ; preds = %11
%16 = load ptr, ptr %5, align 8
%17 = load i64, ptr %8, align 8
%18 = getelementptr inbounds i64, ptr %16, i64 %17
%19 = load i64, ptr %18, align 8
store i64 %19, ptr %9, align 8
%20 = load i64, ptr %8, align 8
%21 = and i64 %20, 1
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %15
%24 = load i64, ptr %9, align 8
%25 = shl i64 %24, 8
store i64 %25, ptr %9, align 8
br label %26
26: ; preds = %23, %15
%27 = load i64, ptr %9, align 8
%28 = load i64, ptr %7, align 8
%29 = add i64 %28, %27
store i64 %29, ptr %7, align 8
%30 = load i64, ptr %7, align 8
%31 = icmp ugt i64 %30, 65535
br i1 %31, label %32, label %38
32: ; preds = %26
%33 = load i64, ptr %7, align 8
%34 = load i64, ptr %7, align 8
%35 = lshr i64 %34, 16
%36 = add i64 %33, %35
%37 = and i64 %36, 65535
store i64 %37, ptr %7, align 8
br label %38
38: ; preds = %32, %26
br label %39
39: ; preds = %38
%40 = load i64, ptr %8, align 8
%41 = add i64 %40, 1
store i64 %41, ptr %8, align 8
br label %11, !llvm.loop !6
42: ; preds = %11
%43 = load i64, ptr %7, align 8
%44 = and i64 %43, 255
%45 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 0
store volatile i64 %44, ptr %45, align 8
%46 = load i64, ptr %7, align 8
%47 = lshr i64 %46, 8
%48 = and i64 %47, 255
%49 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 1
store volatile i64 %48, ptr %49, align 8
%50 = load volatile i32, ptr %6, align 8
%51 = xor i32 %50, -1
%52 = and i32 %51, 65535
%53 = sext i32 %52 to i64
ret i64 %53
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpf5s_kn1w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%union.anon = type { [2 x i64] }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @compute_checksum(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca %union.anon, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i64 0, ptr %7, align 8
%10 = load ptr, ptr %3, align 8
store ptr %10, ptr %5, align 8
store i64 0, ptr %8, align 8
%11 = load i64, ptr %8, align 8
%12 = load i64, ptr %4, align 8
%13 = icmp ult i64 %11, %12
br i1 %13, label %.lr.ph, label %44
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %38
%15 = load ptr, ptr %5, align 8
%16 = load i64, ptr %8, align 8
%17 = getelementptr inbounds i64, ptr %15, i64 %16
%18 = load i64, ptr %17, align 8
store i64 %18, ptr %9, align 8
%19 = load i64, ptr %8, align 8
%20 = and i64 %19, 1
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %14
%23 = load i64, ptr %9, align 8
%24 = shl i64 %23, 8
store i64 %24, ptr %9, align 8
br label %25
25: ; preds = %22, %14
%26 = load i64, ptr %9, align 8
%27 = load i64, ptr %7, align 8
%28 = add i64 %27, %26
store i64 %28, ptr %7, align 8
%29 = load i64, ptr %7, align 8
%30 = icmp ugt i64 %29, 65535
br i1 %30, label %31, label %37
31: ; preds = %25
%32 = load i64, ptr %7, align 8
%33 = load i64, ptr %7, align 8
%34 = lshr i64 %33, 16
%35 = add i64 %32, %34
%36 = and i64 %35, 65535
store i64 %36, ptr %7, align 8
br label %37
37: ; preds = %31, %25
br label %38
38: ; preds = %37
%39 = load i64, ptr %8, align 8
%40 = add i64 %39, 1
store i64 %40, ptr %8, align 8
%41 = load i64, ptr %8, align 8
%42 = load i64, ptr %4, align 8
%43 = icmp ult i64 %41, %42
br i1 %43, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %38
br label %44
44: ; preds = %._crit_edge, %2
%45 = load i64, ptr %7, align 8
%46 = and i64 %45, 255
%47 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 0
store volatile i64 %46, ptr %47, align 8
%48 = load i64, ptr %7, align 8
%49 = lshr i64 %48, 8
%50 = and i64 %49, 255
%51 = getelementptr inbounds [2 x i64], ptr %6, i64 0, i64 1
store volatile i64 %50, ptr %51, align 8
%52 = load volatile i32, ptr %6, align 8
%53 = xor i32 %52, -1
%54 = and i32 %53, 65535
%55 = sext i32 %54 to i64
ret i64 %55
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpbtgi0ekn.c'
source_filename = "/tmp/tmpbtgi0ekn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"%.11f\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"test1 %.22f\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"test2 %.11f\0A\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"test3 %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str, i32 noundef 1)
%3 = call i32 @printf(ptr noundef @.str.1, i32 noundef 1)
%4 = call i32 @printf(ptr noundef @.str.2, i32 noundef 1)
%5 = call i32 @printf(ptr noundef @.str.3, i32 noundef 1)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbtgi0ekn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"%.11f\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"test1 %.22f\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"test2 %.11f\0A\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"test3 %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str, i32 noundef 1)
%3 = call i32 @printf(ptr noundef @.str.1, i32 noundef 1)
%4 = call i32 @printf(ptr noundef @.str.2, i32 noundef 1)
%5 = call i32 @printf(ptr noundef @.str.3, i32 noundef 1)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjrjy824w.c'
source_filename = "/tmp/tmpjrjy824w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [10 x [10 x i32]], align 16
store i32 0, ptr %1, align 4
%3 = getelementptr inbounds [10 x [10 x i32]], ptr %2, i64 0, i64 0
%4 = call i32 @size(ptr noundef %3)
ret i32 0
}
declare i32 @size(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjrjy824w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [10 x [10 x i32]], align 16
store i32 0, ptr %1, align 4
%3 = getelementptr inbounds [10 x [10 x i32]], ptr %2, i64 0, i64 0
%4 = call i32 @size(ptr noundef %3)
ret i32 0
}
declare i32 @size(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0szcmtjm.c'
source_filename = "/tmp/tmp0szcmtjm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"Maximun size of opcodes in a line, is too big\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [49 x i8] c" The maximun size in opcodes per line is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sourceSizeLineError() #0 {
%1 = call i32 @recoverableError(ptr noundef @.str)
%2 = load i32, ptr @stderr, align 4
%3 = call i32 @fprintf(i32 noundef %2, ptr noundef @.str.1, i32 noundef 32500)
%4 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @recoverableError(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0szcmtjm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"Maximun size of opcodes in a line, is too big\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [49 x i8] c" The maximun size in opcodes per line is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sourceSizeLineError() #0 {
%1 = call i32 @recoverableError(ptr noundef @.str)
%2 = load i32, ptr @stderr, align 4
%3 = call i32 @fprintf(i32 noundef %2, ptr noundef @.str.1, i32 noundef 32500)
%4 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @recoverableError(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp46v29jyw.c'
source_filename = "/tmp/tmp46v29jyw.c"
target datalayout = "e-m:e-p270: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/tmp46v29jyw.c"
target datalayout = "e-m:e-p270: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/tmp3stquej3.c'
source_filename = "/tmp/tmp3stquej3.c"
target datalayout = "e-m:e-p270: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/tmp3stquej3.c"
target datalayout = "e-m:e-p270: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/tmp5qlz_g1y.c'
source_filename = "/tmp/tmp5qlz_g1y.c"
target datalayout = "e-m:e-p270: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_2__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_XUnmapEvent_event(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.TYPE_2__, ptr %6, i32 0, i32 0
store i64 %5, ptr %7, 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/tmp5qlz_g1y.c"
target datalayout = "e-m:e-p270: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_2__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_XUnmapEvent_event(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.TYPE_2__, ptr %6, i32 0, i32 0
store i64 %5, ptr %7, 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/tmpn1_4_avn.c'
source_filename = "/tmp/tmpn1_4_avn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test_the_switch() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 1, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = call i32 @the_switch(i32 noundef %3)
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %1, align 4
%6 = load i32, ptr %2, align 4
%7 = call i32 @gen_the_switch(i32 noundef %5, i32 noundef %6)
ret void
}
declare i32 @the_switch(i32 noundef) #1
declare i32 @gen_the_switch(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/tmpn1_4_avn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test_the_switch() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 1, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = call i32 @the_switch(i32 noundef %3)
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %1, align 4
%6 = load i32, ptr %2, align 4
%7 = call i32 @gen_the_switch(i32 noundef %5, i32 noundef %6)
ret void
}
declare i32 @the_switch(i32 noundef) #1
declare i32 @gen_the_switch(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/tmp_krkr37y.c'
source_filename = "/tmp/tmp_krkr37y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PF_NETLINK = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@NETLINK_ROUTE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @rtnl_set_iff_up(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr @PF_NETLINK, align 4
%9 = load i32, ptr @SOCK_DGRAM, align 4
%10 = load i32, ptr @NETLINK_ROUTE, align 4
%11 = call i32 @socket(i32 noundef %8, i32 noundef %9, i32 noundef %10)
store i32 %11, ptr %6, align 4
%12 = load i32, ptr %6, align 4
%13 = icmp slt i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = load i32, ptr %6, align 4
store i32 %15, ptr %3, align 4
br label %31
16: ; preds = %2
%17 = load i32, ptr %6, align 4
%18 = load i32, ptr %4, align 4
%19 = load ptr, ptr %5, align 8
%20 = call i32 @rtnl_send_set_iff_up(i32 noundef %17, i32 noundef %18, ptr noundef %19)
store i32 %20, ptr %7, align 4
%21 = load i32, ptr %7, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %16
br label %27
24: ; preds = %16
%25 = load i32, ptr %6, align 4
%26 = call i32 @rtnl_recv(i32 noundef %25, ptr noundef null, ptr noundef null)
store i32 %26, ptr %7, align 4
br label %27
27: ; preds = %24, %23
%28 = load i32, ptr %6, align 4
%29 = call i32 @close(i32 noundef %28)
%30 = load i32, ptr %7, align 4
store i32 %30, ptr %3, align 4
br label %31
31: ; preds = %27, %14
%32 = load i32, ptr %3, align 4
ret i32 %32
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @rtnl_send_set_iff_up(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @rtnl_recv(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!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_krkr37y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PF_NETLINK = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@NETLINK_ROUTE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @rtnl_set_iff_up(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr @PF_NETLINK, align 4
%9 = load i32, ptr @SOCK_DGRAM, align 4
%10 = load i32, ptr @NETLINK_ROUTE, align 4
%11 = call i32 @socket(i32 noundef %8, i32 noundef %9, i32 noundef %10)
store i32 %11, ptr %6, align 4
%12 = load i32, ptr %6, align 4
%13 = icmp slt i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = load i32, ptr %6, align 4
store i32 %15, ptr %3, align 4
br label %31
16: ; preds = %2
%17 = load i32, ptr %6, align 4
%18 = load i32, ptr %4, align 4
%19 = load ptr, ptr %5, align 8
%20 = call i32 @rtnl_send_set_iff_up(i32 noundef %17, i32 noundef %18, ptr noundef %19)
store i32 %20, ptr %7, align 4
%21 = load i32, ptr %7, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %16
br label %27
24: ; preds = %16
%25 = load i32, ptr %6, align 4
%26 = call i32 @rtnl_recv(i32 noundef %25, ptr noundef null, ptr noundef null)
store i32 %26, ptr %7, align 4
br label %27
27: ; preds = %24, %23
%28 = load i32, ptr %6, align 4
%29 = call i32 @close(i32 noundef %28)
%30 = load i32, ptr %7, align 4
store i32 %30, ptr %3, align 4
br label %31
31: ; preds = %27, %14
%32 = load i32, ptr %3, align 4
ret i32 %32
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @rtnl_send_set_iff_up(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @rtnl_recv(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyramoadq.c'
source_filename = "/tmp/tmpyramoadq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @av_filebuf_getline(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%10 = load ptr, ptr %6, align 8
store ptr null, ptr %10, align 8
br label %11
11: ; preds = %3, %38
%12 = load ptr, ptr %5, align 8
%13 = call i32 @av_filebuf_readline(ptr noundef %12, ptr noundef %9)
store i32 %13, ptr %8, align 4
%14 = load i32, ptr %8, align 4
%15 = icmp slt i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %11
%17 = load i32, ptr %8, align 4
store i32 %17, ptr %4, align 4
br label %42
18: ; preds = %11
%19 = load i32, ptr %8, align 4
%20 = icmp eq i32 %19, 1
br i1 %20, label %21, label %22
21: ; preds = %18
br label %39
22: ; preds = %18
%23 = load ptr, ptr %5, align 8
%24 = call i64 @av_filebuf_eof(ptr noundef %23)
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %22
store i32 1, ptr %4, align 4
br label %42
27: ; preds = %22
%28 = load i64, ptr %7, align 8
%29 = call i32 @av_filebuf_check(ptr noundef %5, i32 noundef 1, i64 noundef %28)
store i32 %29, ptr %8, align 4
%30 = load i32, ptr %8, align 4
%31 = icmp slt i32 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %27
%33 = load i32, ptr %8, align 4
store i32 %33, ptr %4, align 4
br label %42
34: ; preds = %27
%35 = load i32, ptr %8, align 4
%36 = icmp eq i32 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %34
store i32 0, ptr %4, align 4
br label %42
38: ; preds = %34
br label %11
39: ; preds = %21
%40 = load ptr, ptr %9, align 8
%41 = load ptr, ptr %6, align 8
store ptr %40, ptr %41, align 8
store i32 1, ptr %4, align 4
br label %42
42: ; preds = %39, %37, %32, %26, %16
%43 = load i32, ptr %4, align 4
ret i32 %43
}
declare i32 @av_filebuf_readline(ptr noundef, ptr noundef) #1
declare i64 @av_filebuf_eof(ptr noundef) #1
declare i32 @av_filebuf_check(ptr noundef, i32 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/tmpyramoadq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @av_filebuf_getline(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%10 = load ptr, ptr %6, align 8
store ptr null, ptr %10, align 8
%11 = load ptr, ptr %5, align 8
%12 = call i32 @av_filebuf_readline(ptr noundef %11, ptr noundef %9)
store i32 %12, ptr %8, align 4
%13 = load i32, ptr %8, align 4
%14 = icmp slt i32 %13, 0
br i1 %14, label %20, label %.lr.ph
.lr.ph: ; preds = %3
br label %22
15: ; preds = %38
%16 = load ptr, ptr %5, align 8
%17 = call i32 @av_filebuf_readline(ptr noundef %16, ptr noundef %9)
store i32 %17, ptr %8, align 4
%18 = load i32, ptr %8, align 4
%19 = icmp slt i32 %18, 0
br i1 %19, label %._crit_edge, label %22
._crit_edge: ; preds = %15
br label %20
20: ; preds = %._crit_edge, %3
%21 = load i32, ptr %8, align 4
store i32 %21, ptr %4, align 4
br label %45
22: ; preds = %.lr.ph, %15
%23 = load i32, ptr %8, align 4
%24 = icmp eq i32 %23, 1
br i1 %24, label %25, label %26
25: ; preds = %22
br label %42
26: ; preds = %22
%27 = load ptr, ptr %5, align 8
%28 = call i64 @av_filebuf_eof(ptr noundef %27)
%29 = icmp ne i64 %28, 0
br i1 %29, label %30, label %31
30: ; preds = %26
store i32 1, ptr %4, align 4
br label %45
31: ; preds = %26
%32 = load i64, ptr %7, align 8
%33 = call i32 @av_filebuf_check(ptr noundef %5, i32 noundef 1, i64 noundef %32)
store i32 %33, ptr %8, align 4
%34 = load i32, ptr %8, align 4
%35 = icmp slt i32 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %31
%37 = load i32, ptr %8, align 4
store i32 %37, ptr %4, align 4
br label %45
38: ; preds = %31
%39 = load i32, ptr %8, align 4
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %15
41: ; preds = %38
store i32 0, ptr %4, align 4
br label %45
42: ; preds = %25
%43 = load ptr, ptr %9, align 8
%44 = load ptr, ptr %6, align 8
store ptr %43, ptr %44, align 8
store i32 1, ptr %4, align 4
br label %45
45: ; preds = %42, %41, %36, %30, %20
%46 = load i32, ptr %4, align 4
ret i32 %46
}
declare i32 @av_filebuf_readline(ptr noundef, ptr noundef) #1
declare i64 @av_filebuf_eof(ptr noundef) #1
declare i32 @av_filebuf_check(ptr noundef, i32 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/tmp58mt06lr.c'
source_filename = "/tmp/tmp58mt06lr.c"
target datalayout = "e-m:e-p270: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.b = private unnamed_addr constant [5 x i8] c"2468\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x i8], align 16
%3 = alloca [5 x i8], align 1
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 100, i1 false)
%4 = getelementptr inbounds [100 x i8], ptr %2, i32 0, i32 0
store i8 49, ptr %4, align 16
%5 = getelementptr inbounds [100 x i8], ptr %2, i32 0, i32 1
store i8 51, ptr %5, align 1
%6 = getelementptr inbounds [100 x i8], ptr %2, i32 0, i32 2
store i8 53, ptr %6, align 2
%7 = getelementptr inbounds [100 x i8], ptr %2, i32 0, i32 3
store i8 55, ptr %7, align 1
%8 = getelementptr inbounds [100 x i8], ptr %2, i32 0, i32 4
store i8 57, ptr %8, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.b, i64 5, i1 false)
%9 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%10 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 0
%11 = call i32 @fun(ptr noundef %9, ptr noundef %10)
%12 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%13 = call i32 @puts(ptr noundef %12)
%14 = call i32 (...) @getchar()
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
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @fun(ptr noundef, ptr noundef) #3
declare i32 @puts(ptr noundef) #3
declare i32 @getchar(...) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp58mt06lr.c"
target datalayout = "e-m:e-p270: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.b = private unnamed_addr constant [5 x i8] c"2468\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x i8], align 16
%3 = alloca [5 x i8], align 1
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 100, i1 false)
%4 = getelementptr inbounds [100 x i8], ptr %2, i32 0, i32 0
store i8 49, ptr %4, align 16
%5 = getelementptr inbounds [100 x i8], ptr %2, i32 0, i32 1
store i8 51, ptr %5, align 1
%6 = getelementptr inbounds [100 x i8], ptr %2, i32 0, i32 2
store i8 53, ptr %6, align 2
%7 = getelementptr inbounds [100 x i8], ptr %2, i32 0, i32 3
store i8 55, ptr %7, align 1
%8 = getelementptr inbounds [100 x i8], ptr %2, i32 0, i32 4
store i8 57, ptr %8, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.b, i64 5, i1 false)
%9 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%10 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 0
%11 = call i32 @fun(ptr noundef %9, ptr noundef %10)
%12 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%13 = call i32 @puts(ptr noundef %12)
%14 = call i32 (...) @getchar()
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
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @fun(ptr noundef, ptr noundef) #3
declare i32 @puts(ptr noundef) #3
declare i32 @getchar(...) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_lm_a5xe.c'
source_filename = "/tmp/tmp_lm_a5xe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @U_EMRARCTO_swap(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @core9_swap(ptr noundef %5, i32 noundef %6)
ret void
}
declare i32 @core9_swap(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_lm_a5xe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @U_EMRARCTO_swap(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @core9_swap(ptr noundef %5, i32 noundef %6)
ret void
}
declare i32 @core9_swap(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/tmph8gd114x.c'
source_filename = "/tmp/tmph8gd114x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_square(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr %7, align 4
%12 = add nsw i32 %10, %11
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %8, align 4
%15 = add nsw i32 %13, %14
%16 = mul nsw i32 %12, %15
%17 = sdiv i32 %16, 2
%18 = load i32, ptr %5, align 4
%19 = load i32, ptr %6, align 4
%20 = call i32 @gcd(i32 noundef %18, i32 noundef %19)
%21 = load i32, ptr %6, align 4
%22 = load i32, ptr %7, align 4
%23 = call i32 @gcd(i32 noundef %21, i32 noundef %22)
%24 = add nsw i32 %20, %23
%25 = load i32, ptr %7, align 4
%26 = load i32, ptr %8, align 4
%27 = call i32 @gcd(i32 noundef %25, i32 noundef %26)
%28 = add nsw i32 %24, %27
%29 = load i32, ptr %8, align 4
%30 = load i32, ptr %5, align 4
%31 = call i32 @gcd(i32 noundef %29, i32 noundef %30)
%32 = add nsw i32 %28, %31
%33 = sdiv i32 %32, 2
%34 = sub nsw i32 %17, %33
%35 = add nsw i32 %34, 1
store i32 %35, ptr %9, align 4
%36 = load i32, ptr %9, align 4
%37 = call i64 @sqrt(i32 noundef %36)
%38 = trunc i64 %37 to i32
%39 = call i32 @pow(i32 noundef %38, i32 noundef 2)
%40 = load i32, ptr %9, align 4
%41 = icmp eq i32 %39, %40
%42 = zext i1 %41 to i32
ret i32 %42
}
declare i32 @gcd(i32 noundef, i32 noundef) #1
declare i32 @pow(i32 noundef, i32 noundef) #1
declare i64 @sqrt(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/tmph8gd114x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_square(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr %7, align 4
%12 = add nsw i32 %10, %11
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %8, align 4
%15 = add nsw i32 %13, %14
%16 = mul nsw i32 %12, %15
%17 = sdiv i32 %16, 2
%18 = load i32, ptr %5, align 4
%19 = load i32, ptr %6, align 4
%20 = call i32 @gcd(i32 noundef %18, i32 noundef %19)
%21 = load i32, ptr %6, align 4
%22 = load i32, ptr %7, align 4
%23 = call i32 @gcd(i32 noundef %21, i32 noundef %22)
%24 = add nsw i32 %20, %23
%25 = load i32, ptr %7, align 4
%26 = load i32, ptr %8, align 4
%27 = call i32 @gcd(i32 noundef %25, i32 noundef %26)
%28 = add nsw i32 %24, %27
%29 = load i32, ptr %8, align 4
%30 = load i32, ptr %5, align 4
%31 = call i32 @gcd(i32 noundef %29, i32 noundef %30)
%32 = add nsw i32 %28, %31
%33 = sdiv i32 %32, 2
%34 = sub nsw i32 %17, %33
%35 = add nsw i32 %34, 1
store i32 %35, ptr %9, align 4
%36 = load i32, ptr %9, align 4
%37 = call i64 @sqrt(i32 noundef %36)
%38 = trunc i64 %37 to i32
%39 = call i32 @pow(i32 noundef %38, i32 noundef 2)
%40 = load i32, ptr %9, align 4
%41 = icmp eq i32 %39, %40
%42 = zext i1 %41 to i32
ret i32 %42
}
declare i32 @gcd(i32 noundef, i32 noundef) #1
declare i32 @pow(i32 noundef, i32 noundef) #1
declare i64 @sqrt(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/tmpn6u_pzku.c'
source_filename = "/tmp/tmpn6u_pzku.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EIO = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getentropy(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i32 -1, ptr %6, align 4
%7 = load i64, ptr %5, align 8
%8 = icmp ugt i64 %7, 256
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = load i32, ptr @EIO, align 4
store i32 %10, ptr @errno, align 4
store i32 -1, ptr %3, align 4
br label %30
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = load i64, ptr %5, align 8
%14 = call i32 @getentropy_urandom(ptr noundef %12, i64 noundef %13)
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = icmp ne i32 %15, -1
br i1 %16, label %17, label %19
17: ; preds = %11
%18 = load i32, ptr %6, align 4
store i32 %18, ptr %3, align 4
br label %30
19: ; preds = %11
%20 = load ptr, ptr %4, align 8
%21 = load i64, ptr %5, align 8
%22 = call i32 @getentropy_fallback(ptr noundef %20, i64 noundef %21)
store i32 %22, ptr %6, align 4
%23 = load i32, ptr %6, align 4
%24 = icmp ne i32 %23, -1
br i1 %24, label %25, label %27
25: ; preds = %19
%26 = load i32, ptr %6, align 4
store i32 %26, ptr %3, align 4
br label %30
27: ; preds = %19
%28 = load i32, ptr @EIO, align 4
store i32 %28, ptr @errno, align 4
%29 = load i32, ptr %6, align 4
store i32 %29, ptr %3, align 4
br label %30
30: ; preds = %27, %25, %17, %9
%31 = load i32, ptr %3, align 4
ret i32 %31
}
declare i32 @getentropy_urandom(ptr noundef, i64 noundef) #1
declare i32 @getentropy_fallback(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/tmpn6u_pzku.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EIO = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getentropy(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i32 -1, ptr %6, align 4
%7 = load i64, ptr %5, align 8
%8 = icmp ugt i64 %7, 256
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = load i32, ptr @EIO, align 4
store i32 %10, ptr @errno, align 4
store i32 -1, ptr %3, align 4
br label %30
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = load i64, ptr %5, align 8
%14 = call i32 @getentropy_urandom(ptr noundef %12, i64 noundef %13)
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = icmp ne i32 %15, -1
br i1 %16, label %17, label %19
17: ; preds = %11
%18 = load i32, ptr %6, align 4
store i32 %18, ptr %3, align 4
br label %30
19: ; preds = %11
%20 = load ptr, ptr %4, align 8
%21 = load i64, ptr %5, align 8
%22 = call i32 @getentropy_fallback(ptr noundef %20, i64 noundef %21)
store i32 %22, ptr %6, align 4
%23 = load i32, ptr %6, align 4
%24 = icmp ne i32 %23, -1
br i1 %24, label %25, label %27
25: ; preds = %19
%26 = load i32, ptr %6, align 4
store i32 %26, ptr %3, align 4
br label %30
27: ; preds = %19
%28 = load i32, ptr @EIO, align 4
store i32 %28, ptr @errno, align 4
%29 = load i32, ptr %6, align 4
store i32 %29, ptr %3, align 4
br label %30
30: ; preds = %27, %25, %17, %9
%31 = load i32, ptr %3, align 4
ret i32 %31
}
declare i32 @getentropy_urandom(ptr noundef, i64 noundef) #1
declare i32 @getentropy_fallback(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/tmpxnebm05i.c'
source_filename = "/tmp/tmpxnebm05i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lf%s\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [57 x i8] c"Wrong type of parameter for flag -%c. Has to be a float\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @check_float(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca double, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%8 = load ptr, ptr %3, align 8
%9 = call i64 @strlen(ptr noundef %8)
%10 = add nsw i64 %9, 1
%11 = call i64 @calloc(i64 noundef %10, i64 noundef 1)
%12 = inttoptr i64 %11 to ptr
store ptr %12, ptr %7, align 8
%13 = call i32 @check_alloc(ptr noundef %12)
%14 = load ptr, ptr %3, align 8
%15 = load ptr, ptr %7, align 8
%16 = call i32 @sscanf(ptr noundef %14, ptr noundef @.str, ptr noundef %5, ptr noundef %15)
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %6, align 4
%18 = icmp ne i32 %17, 1
br i1 %18, label %19, label %24
19: ; preds = %2
%20 = load i32, ptr @stderr, align 4
%21 = load i32, ptr %4, align 4
%22 = call i32 @fprintf(i32 noundef %20, ptr noundef @.str.1, i32 noundef %21)
%23 = call i32 @exit(i32 noundef 3) #3
unreachable
24: ; preds = %2
%25 = load ptr, ptr %7, align 8
%26 = call i32 @free(ptr noundef %25)
ret void
}
declare i32 @check_alloc(ptr noundef) #1
declare i64 @calloc(i64 noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
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" }
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/tmpxnebm05i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lf%s\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [57 x i8] c"Wrong type of parameter for flag -%c. Has to be a float\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @check_float(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca double, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%8 = load ptr, ptr %3, align 8
%9 = call i64 @strlen(ptr noundef %8)
%10 = add nsw i64 %9, 1
%11 = call i64 @calloc(i64 noundef %10, i64 noundef 1)
%12 = inttoptr i64 %11 to ptr
store ptr %12, ptr %7, align 8
%13 = call i32 @check_alloc(ptr noundef %12)
%14 = load ptr, ptr %3, align 8
%15 = load ptr, ptr %7, align 8
%16 = call i32 @sscanf(ptr noundef %14, ptr noundef @.str, ptr noundef %5, ptr noundef %15)
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %6, align 4
%18 = icmp ne i32 %17, 1
br i1 %18, label %19, label %24
19: ; preds = %2
%20 = load i32, ptr @stderr, align 4
%21 = load i32, ptr %4, align 4
%22 = call i32 @fprintf(i32 noundef %20, ptr noundef @.str.1, i32 noundef %21)
%23 = call i32 @exit(i32 noundef 3) #3
unreachable
24: ; preds = %2
%25 = load ptr, ptr %7, align 8
%26 = call i32 @free(ptr noundef %25)
ret void
}
declare i32 @check_alloc(ptr noundef) #1
declare i64 @calloc(i64 noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
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" }
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/tmpvd9vho0j.c'
source_filename = "/tmp/tmpvd9vho0j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @LCD_ClearScreen() #0 {
%1 = call i32 @LCD_WriteCommand(i32 noundef 1)
ret void
}
declare i32 @LCD_WriteCommand(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/tmpvd9vho0j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @LCD_ClearScreen() #0 {
%1 = call i32 @LCD_WriteCommand(i32 noundef 1)
ret void
}
declare i32 @LCD_WriteCommand(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_n18mrqq.c'
source_filename = "/tmp/tmp_n18mrqq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"...\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @include_descendents(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %4, align 4
%5 = load ptr, ptr %2, align 8
%6 = call i32 @strlen(ptr noundef %5)
store i32 %6, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp sge i32 %7, 4
br i1 %8, label %9, label %24
9: ; preds = %1
%10 = load ptr, ptr %2, align 8
%11 = load i32, ptr %3, align 4
%12 = sub nsw i32 %11, 3
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %10, i64 %13
%15 = call i32 @strcmp(ptr noundef %14, ptr noundef @.str)
%16 = icmp ne i32 %15, 0
br i1 %16, label %23, label %17
17: ; preds = %9
store i32 1, ptr %4, align 4
%18 = load ptr, ptr %2, align 8
%19 = load i32, ptr %3, align 4
%20 = sub nsw i32 %19, 3
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %18, i64 %21
store i8 0, ptr %22, align 1
br label %23
23: ; preds = %17, %9
br label %24
24: ; preds = %23, %1
%25 = load i32, ptr %4, align 4
ret i32 %25
}
declare i32 @strlen(ptr noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_n18mrqq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"...\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @include_descendents(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %4, align 4
%5 = load ptr, ptr %2, align 8
%6 = call i32 @strlen(ptr noundef %5)
store i32 %6, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp sge i32 %7, 4
br i1 %8, label %9, label %24
9: ; preds = %1
%10 = load ptr, ptr %2, align 8
%11 = load i32, ptr %3, align 4
%12 = sub nsw i32 %11, 3
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %10, i64 %13
%15 = call i32 @strcmp(ptr noundef %14, ptr noundef @.str)
%16 = icmp ne i32 %15, 0
br i1 %16, label %23, label %17
17: ; preds = %9
store i32 1, ptr %4, align 4
%18 = load ptr, ptr %2, align 8
%19 = load i32, ptr %3, align 4
%20 = sub nsw i32 %19, 3
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %18, i64 %21
store i8 0, ptr %22, align 1
br label %23
23: ; preds = %17, %9
br label %24
24: ; preds = %23, %1
%25 = load i32, ptr %4, align 4
ret i32 %25
}
declare i32 @strlen(ptr noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg5gchk36.c'
source_filename = "/tmp/tmpg5gchk36.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @readToNewLine(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %14, %1
%5 = load ptr, ptr %2, align 8
%6 = call i32 @fgetc(ptr noundef %5)
store i32 %6, ptr %3, align 4
%7 = load i32, ptr @EOF, align 4
%8 = icmp ne i32 %6, %7
br i1 %8, label %9, label %12
9: ; preds = %4
%10 = load i32, ptr %3, align 4
%11 = icmp ne i32 %10, 10
br label %12
12: ; preds = %9, %4
%13 = phi i1 [ false, %4 ], [ %11, %9 ]
br i1 %13, label %14, label %15
14: ; preds = %12
br label %4, !llvm.loop !6
15: ; preds = %12
ret void
}
declare i32 @fgetc(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg5gchk36.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @readToNewLine(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %12, %1
%5 = load ptr, ptr %2, align 8
%6 = call i32 @fgetc(ptr noundef %5)
store i32 %6, ptr %3, align 4
%7 = load i32, ptr @EOF, align 4
%8 = icmp ne i32 %6, %7
br i1 %8, label %9, label %12
9: ; preds = %4
%10 = load i32, ptr %3, align 4
%11 = icmp ne i32 %10, 10
br label %12
12: ; preds = %9, %4
%13 = phi i1 [ false, %4 ], [ %11, %9 ]
br i1 %13, label %4, label %14, !llvm.loop !6
14: ; preds = %12
ret void
}
declare i32 @fgetc(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpho0jokdz.c'
source_filename = "/tmp/tmpho0jokdz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i64 }
@.str = private unnamed_addr constant [24 x i8] c"Failed to get file size\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @getfilesize(i32 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca %struct.stat, align 8
store i32 %0, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = call i32 @fstat(i32 noundef %6, ptr noundef %5)
store i32 %7, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %1
%11 = call i32 @galinette_setError(i32 noundef -17, ptr noundef @.str)
store i64 -17, ptr %2, align 8
br label %15
12: ; preds = %1
%13 = getelementptr inbounds %struct.stat, ptr %5, i32 0, i32 0
%14 = load i64, ptr %13, align 8
store i64 %14, ptr %2, align 8
br label %15
15: ; preds = %12, %10
%16 = load i64, ptr %2, align 8
ret i64 %16
}
declare i32 @fstat(i32 noundef, ptr noundef) #1
declare i32 @galinette_setError(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/tmpho0jokdz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i64 }
@.str = private unnamed_addr constant [24 x i8] c"Failed to get file size\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @getfilesize(i32 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca %struct.stat, align 8
store i32 %0, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = call i32 @fstat(i32 noundef %6, ptr noundef %5)
store i32 %7, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %1
%11 = call i32 @galinette_setError(i32 noundef -17, ptr noundef @.str)
store i64 -17, ptr %2, align 8
br label %15
12: ; preds = %1
%13 = getelementptr inbounds %struct.stat, ptr %5, i32 0, i32 0
%14 = load i64, ptr %13, align 8
store i64 %14, ptr %2, align 8
br label %15
15: ; preds = %12, %10
%16 = load i64, ptr %2, align 8
ret i64 %16
}
declare i32 @fstat(i32 noundef, ptr noundef) #1
declare i32 @galinette_setError(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/tmpnnidi9m5.c'
source_filename = "/tmp/tmpnnidi9m5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"number in float %f and returns %d\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca float, align 4
%9 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store float 0.000000e+00, ptr %8, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp sgt i32 %10, 1
br i1 %11, label %12, label %17
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 1
%15 = load ptr, ptr %14, align 8
%16 = call i32 @atoi(ptr noundef %15)
br label %18
17: ; preds = %2
br label %18
18: ; preds = %17, %12
%19 = phi i32 [ %16, %12 ], [ 0, %17 ]
store i32 %19, ptr %7, align 4
%20 = load i32, ptr %7, align 4
%21 = call ptr @getbuiltout(i32 noundef %20)
store ptr %21, ptr %9, align 8
%22 = load ptr, ptr %9, align 8
%23 = icmp ne ptr %22, null
br i1 %23, label %24, label %32
24: ; preds = %18
%25 = load ptr, ptr %9, align 8
%26 = call i32 %25(ptr noundef %8)
store i32 %26, ptr %6, align 4
%27 = load float, ptr %8, align 4
%28 = load i32, ptr %6, align 4
%29 = call i32 @printf(ptr noundef @.str, float noundef %27, i32 noundef %28)
%30 = load i32, ptr @EXIT_SUCCESS, align 4
%31 = call i32 @exit(i32 noundef %30) #3
unreachable
32: ; preds = %18
%33 = load i32, ptr @EXIT_FAILURE, align 4
%34 = call i32 @exit(i32 noundef %33) #3
unreachable
}
declare i32 @atoi(ptr noundef) #1
declare ptr @getbuiltout(i32 noundef) #1
declare i32 @printf(ptr noundef, float noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnnidi9m5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"number in float %f and returns %d\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca float, align 4
%9 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store float 0.000000e+00, ptr %8, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp sgt i32 %10, 1
br i1 %11, label %12, label %17
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 1
%15 = load ptr, ptr %14, align 8
%16 = call i32 @atoi(ptr noundef %15)
br label %18
17: ; preds = %2
br label %18
18: ; preds = %17, %12
%19 = phi i32 [ %16, %12 ], [ 0, %17 ]
store i32 %19, ptr %7, align 4
%20 = load i32, ptr %7, align 4
%21 = call ptr @getbuiltout(i32 noundef %20)
store ptr %21, ptr %9, align 8
%22 = load ptr, ptr %9, align 8
%23 = icmp ne ptr %22, null
br i1 %23, label %24, label %32
24: ; preds = %18
%25 = load ptr, ptr %9, align 8
%26 = call i32 %25(ptr noundef %8)
store i32 %26, ptr %6, align 4
%27 = load float, ptr %8, align 4
%28 = load i32, ptr %6, align 4
%29 = call i32 @printf(ptr noundef @.str, float noundef %27, i32 noundef %28)
%30 = load i32, ptr @EXIT_SUCCESS, align 4
%31 = call i32 @exit(i32 noundef %30) #3
unreachable
32: ; preds = %18
%33 = load i32, ptr @EXIT_FAILURE, align 4
%34 = call i32 @exit(i32 noundef %33) #3
unreachable
}
declare i32 @atoi(ptr noundef) #1
declare ptr @getbuiltout(i32 noundef) #1
declare i32 @printf(ptr noundef, float noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpq9_u92nr.c'
source_filename = "/tmp/tmpq9_u92nr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @put_field(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = load i32, ptr %4, align 4
%8 = add i32 %6, %7
%9 = urem i32 %8, 8
%10 = sub i32 %9, 8
store i32 %10, ptr %5, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp sgt i32 %11, -8
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = call i32 @exit(i32 noundef 0) #2
unreachable
15: ; preds = %2
ret void
}
; Function Attrs: noreturn
declare i32 @exit(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 = { 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 #2 = { 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/tmpq9_u92nr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @put_field(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = load i32, ptr %4, align 4
%8 = add i32 %6, %7
%9 = urem i32 %8, 8
%10 = sub i32 %9, 8
store i32 %10, ptr %5, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp sgt i32 %11, -8
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = call i32 @exit(i32 noundef 0) #2
unreachable
15: ; preds = %2
ret void
}
; Function Attrs: noreturn
declare i32 @exit(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 = { 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 #2 = { 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/tmpgr0_krsa.c'
source_filename = "/tmp/tmpgr0_krsa.c"
target datalayout = "e-m:e-p270: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/tmpgr0_krsa.c"
target datalayout = "e-m:e-p270: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/tmpsyn527d9.c'
source_filename = "/tmp/tmpsyn527d9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"/proc/%d/stat\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @testarExistenciaProcesso(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca [50 x i8], align 16
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
%6 = getelementptr inbounds [50 x i8], ptr %5, i64 0, i64 0
%7 = load i32, ptr %2, align 4
%8 = call i32 @sprintf(ptr noundef %6, ptr noundef @.str, i32 noundef %7)
%9 = getelementptr inbounds [50 x i8], ptr %5, i64 0, i64 0
%10 = call ptr @fopen(ptr noundef %9, ptr noundef @.str.1)
store ptr %10, ptr %4, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %12, label %15
12: ; preds = %1
%13 = load ptr, ptr %4, align 8
%14 = call i32 @fclose(ptr noundef %13)
store i32 1, ptr %3, align 4
br label %15
15: ; preds = %12, %1
%16 = load i32, ptr %3, align 4
ret i32 %16
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsyn527d9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"/proc/%d/stat\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @testarExistenciaProcesso(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca [50 x i8], align 16
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
%6 = getelementptr inbounds [50 x i8], ptr %5, i64 0, i64 0
%7 = load i32, ptr %2, align 4
%8 = call i32 @sprintf(ptr noundef %6, ptr noundef @.str, i32 noundef %7)
%9 = getelementptr inbounds [50 x i8], ptr %5, i64 0, i64 0
%10 = call ptr @fopen(ptr noundef %9, ptr noundef @.str.1)
store ptr %10, ptr %4, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %12, label %15
12: ; preds = %1
%13 = load ptr, ptr %4, align 8
%14 = call i32 @fclose(ptr noundef %13)
store i32 1, ptr %3, align 4
br label %15
15: ; preds = %12, %1
%16 = load i32, ptr %3, align 4
ret i32 %16
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpeely7mzk.c'
source_filename = "/tmp/tmpeely7mzk.c"
target datalayout = "e-m:e-p270: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.timespec = type { i32, i32, i32, i32 }
@CLOCK_REALTIME = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [24 x i8] c"CLOCK_REALTIME: %d, %d\0A\00", align 1
@CLOCK_MONOTONIC = dso_local global i32 0, align 4
@CLOCK_MONOTONIC_RAW = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [26 x i8] c"\0ACLOCK_MONOTONIC:\09%d, %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"CLOCK_MONOTONIC_RAW:\09%d, %d\0A\0A\00", align 1
@CLOCK_PROCESS_CPUTIME_ID = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [34 x i8] c"CLOCK_PROCESS_CPUTIME_ID: %d, %d\0A\00", align 1
@CLOCK_THREAD_CPUTIME_ID = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [33 x i8] c"CLOCK_THREAD_CPUTIME_ID: %d, %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [30 x i8] c"CLOCK_MONOTONIC_RAW: \0A%d, %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [10 x i8] c"time:\0A%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca %struct.timespec, align 4
%2 = alloca %struct.timespec, align 4
call void @llvm.memset.p0.i64(ptr align 4 %1, i8 0, i64 16, i1 false)
call void @llvm.memset.p0.i64(ptr align 4 %2, i8 0, i64 16, i1 false)
%3 = load i32, ptr @CLOCK_REALTIME, align 4
%4 = call i32 @clock_gettime(i32 noundef %3, ptr noundef %1)
%5 = getelementptr inbounds %struct.timespec, ptr %1, i32 0, i32 0
%6 = load i32, ptr %5, align 4
%7 = getelementptr inbounds %struct.timespec, ptr %1, i32 0, i32 1
%8 = load i32, ptr %7, align 4
%9 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %6, i32 noundef %8)
%10 = load i32, ptr @CLOCK_MONOTONIC, align 4
%11 = call i32 @clock_gettime(i32 noundef %10, ptr noundef %1)
%12 = load i32, ptr @CLOCK_MONOTONIC_RAW, align 4
%13 = call i32 @clock_gettime(i32 noundef %12, ptr noundef %2)
%14 = getelementptr inbounds %struct.timespec, ptr %1, i32 0, i32 0
%15 = load i32, ptr %14, align 4
%16 = getelementptr inbounds %struct.timespec, ptr %1, i32 0, i32 1
%17 = load i32, ptr %16, align 4
%18 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %15, i32 noundef %17)
%19 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 0
%20 = load i32, ptr %19, align 4
%21 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 1
%22 = load i32, ptr %21, align 4
%23 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %20, i32 noundef %22)
%24 = load i32, ptr @CLOCK_PROCESS_CPUTIME_ID, align 4
%25 = call i32 @clock_gettime(i32 noundef %24, ptr noundef %1)
%26 = getelementptr inbounds %struct.timespec, ptr %1, i32 0, i32 0
%27 = load i32, ptr %26, align 4
%28 = getelementptr inbounds %struct.timespec, ptr %1, i32 0, i32 1
%29 = load i32, ptr %28, align 4
%30 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.3, i32 noundef %27, i32 noundef %29)
%31 = load i32, ptr @CLOCK_THREAD_CPUTIME_ID, align 4
%32 = call i32 @clock_gettime(i32 noundef %31, ptr noundef %1)
%33 = getelementptr inbounds %struct.timespec, ptr %1, i32 0, i32 0
%34 = load i32, ptr %33, align 4
%35 = getelementptr inbounds %struct.timespec, ptr %1, i32 0, i32 1
%36 = load i32, ptr %35, align 4
%37 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.4, i32 noundef %34, i32 noundef %36)
%38 = load i32, ptr @CLOCK_MONOTONIC_RAW, align 4
%39 = call i32 @clock_gettime(i32 noundef %38, ptr noundef %2)
%40 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 0
%41 = load i32, ptr %40, align 4
%42 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 1
%43 = load i32, ptr %42, align 4
%44 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.5, i32 noundef %41, i32 noundef %43)
%45 = call i32 @time(ptr noundef null)
%46 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.6, i32 noundef %45)
%47 = call i32 @sleep(i32 noundef 1)
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 i32 @clock_gettime(i32 noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, i32 noundef, ...) #2
declare i32 @time(ptr noundef) #2
declare i32 @sleep(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeely7mzk.c"
target datalayout = "e-m:e-p270: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.timespec = type { i32, i32, i32, i32 }
@CLOCK_REALTIME = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [24 x i8] c"CLOCK_REALTIME: %d, %d\0A\00", align 1
@CLOCK_MONOTONIC = dso_local global i32 0, align 4
@CLOCK_MONOTONIC_RAW = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [26 x i8] c"\0ACLOCK_MONOTONIC:\09%d, %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"CLOCK_MONOTONIC_RAW:\09%d, %d\0A\0A\00", align 1
@CLOCK_PROCESS_CPUTIME_ID = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [34 x i8] c"CLOCK_PROCESS_CPUTIME_ID: %d, %d\0A\00", align 1
@CLOCK_THREAD_CPUTIME_ID = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [33 x i8] c"CLOCK_THREAD_CPUTIME_ID: %d, %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [30 x i8] c"CLOCK_MONOTONIC_RAW: \0A%d, %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [10 x i8] c"time:\0A%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca %struct.timespec, align 4
%2 = alloca %struct.timespec, align 4
call void @llvm.memset.p0.i64(ptr align 4 %1, i8 0, i64 16, i1 false)
call void @llvm.memset.p0.i64(ptr align 4 %2, i8 0, i64 16, i1 false)
%3 = load i32, ptr @CLOCK_REALTIME, align 4
%4 = call i32 @clock_gettime(i32 noundef %3, ptr noundef %1)
%5 = getelementptr inbounds %struct.timespec, ptr %1, i32 0, i32 0
%6 = load i32, ptr %5, align 4
%7 = getelementptr inbounds %struct.timespec, ptr %1, i32 0, i32 1
%8 = load i32, ptr %7, align 4
%9 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %6, i32 noundef %8)
%10 = load i32, ptr @CLOCK_MONOTONIC, align 4
%11 = call i32 @clock_gettime(i32 noundef %10, ptr noundef %1)
%12 = load i32, ptr @CLOCK_MONOTONIC_RAW, align 4
%13 = call i32 @clock_gettime(i32 noundef %12, ptr noundef %2)
%14 = getelementptr inbounds %struct.timespec, ptr %1, i32 0, i32 0
%15 = load i32, ptr %14, align 4
%16 = getelementptr inbounds %struct.timespec, ptr %1, i32 0, i32 1
%17 = load i32, ptr %16, align 4
%18 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %15, i32 noundef %17)
%19 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 0
%20 = load i32, ptr %19, align 4
%21 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 1
%22 = load i32, ptr %21, align 4
%23 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %20, i32 noundef %22)
%24 = load i32, ptr @CLOCK_PROCESS_CPUTIME_ID, align 4
%25 = call i32 @clock_gettime(i32 noundef %24, ptr noundef %1)
%26 = getelementptr inbounds %struct.timespec, ptr %1, i32 0, i32 0
%27 = load i32, ptr %26, align 4
%28 = getelementptr inbounds %struct.timespec, ptr %1, i32 0, i32 1
%29 = load i32, ptr %28, align 4
%30 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.3, i32 noundef %27, i32 noundef %29)
%31 = load i32, ptr @CLOCK_THREAD_CPUTIME_ID, align 4
%32 = call i32 @clock_gettime(i32 noundef %31, ptr noundef %1)
%33 = getelementptr inbounds %struct.timespec, ptr %1, i32 0, i32 0
%34 = load i32, ptr %33, align 4
%35 = getelementptr inbounds %struct.timespec, ptr %1, i32 0, i32 1
%36 = load i32, ptr %35, align 4
%37 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.4, i32 noundef %34, i32 noundef %36)
%38 = load i32, ptr @CLOCK_MONOTONIC_RAW, align 4
%39 = call i32 @clock_gettime(i32 noundef %38, ptr noundef %2)
%40 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 0
%41 = load i32, ptr %40, align 4
%42 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 1
%43 = load i32, ptr %42, align 4
%44 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.5, i32 noundef %41, i32 noundef %43)
%45 = call i32 @time(ptr noundef null)
%46 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.6, i32 noundef %45)
%47 = call i32 @sleep(i32 noundef 1)
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 i32 @clock_gettime(i32 noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, i32 noundef, ...) #2
declare i32 @time(ptr noundef) #2
declare i32 @sleep(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprk1konyx.c'
source_filename = "/tmp/tmprk1konyx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"good\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"bad\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"requset loop = %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"run loop = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cgm_CRS(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5, double noundef %6, i32 noundef %7, i32 noundef %8) #0 {
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
%16 = alloca double, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca ptr, align 8
%23 = alloca ptr, align 8
%24 = alloca ptr, align 8
%25 = alloca ptr, align 8
%26 = alloca double, align 8
%27 = alloca double, align 8
%28 = alloca double, align 8
%29 = alloca double, align 8
%30 = alloca double, align 8
%31 = alloca double, align 8
%32 = alloca double, align 8
store ptr %0, ptr %10, align 8
store ptr %1, ptr %11, align 8
store ptr %2, ptr %12, align 8
store ptr %3, ptr %13, align 8
store ptr %4, ptr %14, align 8
store i32 %5, ptr %15, align 4
store double %6, ptr %16, align 8
store i32 %7, ptr %17, align 4
store i32 %8, ptr %18, align 4
store double 0.000000e+00, ptr %32, align 8
%33 = load i32, ptr %15, align 4
%34 = sext i32 %33 to i64
%35 = mul i64 8, %34
%36 = trunc i64 %35 to i32
%37 = call i64 @malloc(i32 noundef %36)
%38 = inttoptr i64 %37 to ptr
store ptr %38, ptr %22, align 8
%39 = load i32, ptr %15, align 4
%40 = sext i32 %39 to i64
%41 = mul i64 8, %40
%42 = trunc i64 %41 to i32
%43 = call i64 @malloc(i32 noundef %42)
%44 = inttoptr i64 %43 to ptr
store ptr %44, ptr %23, align 8
%45 = load i32, ptr %15, align 4
%46 = sext i32 %45 to i64
%47 = mul i64 8, %46
%48 = trunc i64 %47 to i32
%49 = call i64 @malloc(i32 noundef %48)
%50 = inttoptr i64 %49 to ptr
store ptr %50, ptr %24, align 8
%51 = load i32, ptr %15, align 4
%52 = sext i32 %51 to i64
%53 = mul i64 8, %52
%54 = trunc i64 %53 to i32
%55 = call i64 @malloc(i32 noundef %54)
%56 = inttoptr i64 %55 to ptr
store ptr %56, ptr %25, align 8
store i32 0, ptr %19, align 4
br label %57
57: ; preds = %74, %9
%58 = load i32, ptr %19, align 4
%59 = load i32, ptr %15, align 4
%60 = icmp slt i32 %58, %59
br i1 %60, label %61, label %77
61: ; preds = %57
%62 = load ptr, ptr %14, align 8
%63 = load i32, ptr %19, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds double, ptr %62, i64 %64
store double 0.000000e+00, ptr %65, align 8
%66 = load ptr, ptr %24, align 8
%67 = load i32, ptr %19, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds double, ptr %66, i64 %68
store double 0.000000e+00, ptr %69, align 8
%70 = load ptr, ptr %22, align 8
%71 = load i32, ptr %19, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds double, ptr %70, i64 %72
store double 0.000000e+00, ptr %73, align 8
br label %74
74: ; preds = %61
%75 = load i32, ptr %19, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %19, align 4
br label %57, !llvm.loop !6
77: ; preds = %57
store double 0.000000e+00, ptr %28, align 8
store double 0.000000e+00, ptr %29, align 8
store double 0.000000e+00, ptr %31, align 8
store i32 0, ptr %19, align 4
br label %78
78: ; preds = %123, %77
%79 = load i32, ptr %19, align 4
%80 = load i32, ptr %15, align 4
%81 = icmp slt i32 %79, %80
br i1 %81, label %82, label %126
82: ; preds = %78
store double 0.000000e+00, ptr %32, align 8
%83 = load ptr, ptr %12, align 8
%84 = load i32, ptr %19, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i32, ptr %83, i64 %85
%87 = load i32, ptr %86, align 4
store i32 %87, ptr %21, align 4
br label %88
88: ; preds = %119, %82
%89 = load i32, ptr %21, align 4
%90 = load ptr, ptr %12, align 8
%91 = load i32, ptr %19, align 4
%92 = add nsw i32 %91, 1
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i32, ptr %90, i64 %93
%95 = load i32, ptr %94, align 4
%96 = icmp slt i32 %89, %95
br i1 %96, label %97, label %122
97: ; preds = %88
%98 = load ptr, ptr %10, align 8
%99 = load i32, ptr %21, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds double, ptr %98, i64 %100
%102 = load double, ptr %101, align 8
%103 = load ptr, ptr %14, align 8
%104 = load ptr, ptr %11, align 8
%105 = load i32, ptr %21, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i32, ptr %104, i64 %106
%108 = load i32, ptr %107, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds double, ptr %103, i64 %109
%111 = load double, ptr %110, align 8
%112 = load double, ptr %32, align 8
%113 = call double @llvm.fmuladd.f64(double %102, double %111, double %112)
store double %113, ptr %32, align 8
%114 = load double, ptr %32, align 8
%115 = load ptr, ptr %24, align 8
%116 = load i32, ptr %19, align 4
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds double, ptr %115, i64 %117
store double %114, ptr %118, align 8
br label %119
119: ; preds = %97
%120 = load i32, ptr %21, align 4
%121 = add nsw i32 %120, 1
store i32 %121, ptr %21, align 4
br label %88, !llvm.loop !8
122: ; preds = %88
br label %123
123: ; preds = %122
%124 = load i32, ptr %19, align 4
%125 = add nsw i32 %124, 1
store i32 %125, ptr %19, align 4
br label %78, !llvm.loop !9
126: ; preds = %78
store i32 0, ptr %19, align 4
br label %127
127: ; preds = %171, %126
%128 = load i32, ptr %19, align 4
%129 = load i32, ptr %15, align 4
%130 = icmp slt i32 %128, %129
br i1 %130, label %131, label %174
131: ; preds = %127
%132 = load ptr, ptr %13, align 8
%133 = load i32, ptr %19, align 4
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds double, ptr %132, i64 %134
%136 = load double, ptr %135, align 8
%137 = load ptr, ptr %24, align 8
%138 = load i32, ptr %19, align 4
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds double, ptr %137, i64 %139
%141 = load double, ptr %140, align 8
%142 = fsub double %136, %141
%143 = load ptr, ptr %25, align 8
%144 = load i32, ptr %19, align 4
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds double, ptr %143, i64 %145
store double %142, ptr %146, align 8
%147 = load ptr, ptr %13, align 8
%148 = load i32, ptr %19, align 4
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds double, ptr %147, i64 %149
%151 = load double, ptr %150, align 8
%152 = load ptr, ptr %13, align 8
%153 = load i32, ptr %19, align 4
%154 = sext i32 %153 to i64
%155 = getelementptr inbounds double, ptr %152, i64 %154
%156 = load double, ptr %155, align 8
%157 = load double, ptr %31, align 8
%158 = call double @llvm.fmuladd.f64(double %151, double %156, double %157)
store double %158, ptr %31, align 8
%159 = load ptr, ptr %25, align 8
%160 = load i32, ptr %19, align 4
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds double, ptr %159, i64 %161
%163 = load double, ptr %162, align 8
%164 = load ptr, ptr %25, align 8
%165 = load i32, ptr %19, align 4
%166 = sext i32 %165 to i64
%167 = getelementptr inbounds double, ptr %164, i64 %166
%168 = load double, ptr %167, align 8
%169 = load double, ptr %28, align 8
%170 = call double @llvm.fmuladd.f64(double %163, double %168, double %169)
store double %170, ptr %28, align 8
br label %171
171: ; preds = %131
%172 = load i32, ptr %19, align 4
%173 = add nsw i32 %172, 1
store i32 %173, ptr %19, align 4
br label %127, !llvm.loop !10
174: ; preds = %127
store double 0.000000e+00, ptr %27, align 8
store i32 0, ptr %20, align 4
br label %175
175: ; preds = %340, %174
%176 = load i32, ptr %20, align 4
%177 = load i32, ptr %17, align 4
%178 = icmp slt i32 %176, %177
br i1 %178, label %179, label %343
179: ; preds = %175
store i32 0, ptr %19, align 4
br label %180
180: ; preds = %205, %179
%181 = load i32, ptr %19, align 4
%182 = load i32, ptr %15, align 4
%183 = icmp slt i32 %181, %182
br i1 %183, label %184, label %208
184: ; preds = %180
%185 = load ptr, ptr %25, align 8
%186 = load i32, ptr %19, align 4
%187 = sext i32 %186 to i64
%188 = getelementptr inbounds double, ptr %185, i64 %187
%189 = load double, ptr %188, align 8
%190 = load double, ptr %27, align 8
%191 = load ptr, ptr %22, align 8
%192 = load i32, ptr %19, align 4
%193 = sext i32 %192 to i64
%194 = getelementptr inbounds double, ptr %191, i64 %193
%195 = load double, ptr %194, align 8
%196 = call double @llvm.fmuladd.f64(double %190, double %195, double %189)
%197 = load ptr, ptr %22, align 8
%198 = load i32, ptr %19, align 4
%199 = sext i32 %198 to i64
%200 = getelementptr inbounds double, ptr %197, i64 %199
store double %196, ptr %200, align 8
%201 = load ptr, ptr %23, align 8
%202 = load i32, ptr %19, align 4
%203 = sext i32 %202 to i64
%204 = getelementptr inbounds double, ptr %201, i64 %203
store double 0.000000e+00, ptr %204, align 8
br label %205
205: ; preds = %184
%206 = load i32, ptr %19, align 4
%207 = add nsw i32 %206, 1
store i32 %207, ptr %19, align 4
br label %180, !llvm.loop !11
208: ; preds = %180
store double 0.000000e+00, ptr %30, align 8
store i32 0, ptr %19, align 4
br label %209
209: ; preds = %254, %208
%210 = load i32, ptr %19, align 4
%211 = load i32, ptr %15, align 4
%212 = icmp slt i32 %210, %211
br i1 %212, label %213, label %257
213: ; preds = %209
store double 0.000000e+00, ptr %32, align 8
%214 = load ptr, ptr %12, align 8
%215 = load i32, ptr %19, align 4
%216 = sext i32 %215 to i64
%217 = getelementptr inbounds i32, ptr %214, i64 %216
%218 = load i32, ptr %217, align 4
store i32 %218, ptr %21, align 4
br label %219
219: ; preds = %250, %213
%220 = load i32, ptr %21, align 4
%221 = load ptr, ptr %12, align 8
%222 = load i32, ptr %19, align 4
%223 = add nsw i32 %222, 1
%224 = sext i32 %223 to i64
%225 = getelementptr inbounds i32, ptr %221, i64 %224
%226 = load i32, ptr %225, align 4
%227 = icmp slt i32 %220, %226
br i1 %227, label %228, label %253
228: ; preds = %219
%229 = load ptr, ptr %10, align 8
%230 = load i32, ptr %21, align 4
%231 = sext i32 %230 to i64
%232 = getelementptr inbounds double, ptr %229, i64 %231
%233 = load double, ptr %232, align 8
%234 = load ptr, ptr %22, align 8
%235 = load ptr, ptr %11, align 8
%236 = load i32, ptr %21, align 4
%237 = sext i32 %236 to i64
%238 = getelementptr inbounds i32, ptr %235, i64 %237
%239 = load i32, ptr %238, align 4
%240 = sext i32 %239 to i64
%241 = getelementptr inbounds double, ptr %234, i64 %240
%242 = load double, ptr %241, align 8
%243 = load double, ptr %32, align 8
%244 = call double @llvm.fmuladd.f64(double %233, double %242, double %243)
store double %244, ptr %32, align 8
%245 = load double, ptr %32, align 8
%246 = load ptr, ptr %23, align 8
%247 = load i32, ptr %19, align 4
%248 = sext i32 %247 to i64
%249 = getelementptr inbounds double, ptr %246, i64 %248
store double %245, ptr %249, align 8
br label %250
250: ; preds = %228
%251 = load i32, ptr %21, align 4
%252 = add nsw i32 %251, 1
store i32 %252, ptr %21, align 4
br label %219, !llvm.loop !12
253: ; preds = %219
br label %254
254: ; preds = %253
%255 = load i32, ptr %19, align 4
%256 = add nsw i32 %255, 1
store i32 %256, ptr %19, align 4
br label %209, !llvm.loop !13
257: ; preds = %209
store i32 0, ptr %19, align 4
br label %258
258: ; preds = %275, %257
%259 = load i32, ptr %19, align 4
%260 = load i32, ptr %15, align 4
%261 = icmp slt i32 %259, %260
br i1 %261, label %262, label %278
262: ; preds = %258
%263 = load ptr, ptr %22, align 8
%264 = load i32, ptr %19, align 4
%265 = sext i32 %264 to i64
%266 = getelementptr inbounds double, ptr %263, i64 %265
%267 = load double, ptr %266, align 8
%268 = load ptr, ptr %23, align 8
%269 = load i32, ptr %19, align 4
%270 = sext i32 %269 to i64
%271 = getelementptr inbounds double, ptr %268, i64 %270
%272 = load double, ptr %271, align 8
%273 = load double, ptr %30, align 8
%274 = call double @llvm.fmuladd.f64(double %267, double %272, double %273)
store double %274, ptr %30, align 8
br label %275
275: ; preds = %262
%276 = load i32, ptr %19, align 4
%277 = add nsw i32 %276, 1
store i32 %277, ptr %19, align 4
br label %258, !llvm.loop !14
278: ; preds = %258
%279 = load double, ptr %28, align 8
%280 = load double, ptr %30, align 8
%281 = fdiv double %279, %280
store double %281, ptr %26, align 8
store double 0.000000e+00, ptr %29, align 8
store i32 0, ptr %19, align 4
br label %282
282: ; preds = %324, %278
%283 = load i32, ptr %19, align 4
%284 = load i32, ptr %15, align 4
%285 = icmp slt i32 %283, %284
br i1 %285, label %286, label %327
286: ; preds = %282
%287 = load double, ptr %26, align 8
%288 = load ptr, ptr %22, align 8
%289 = load i32, ptr %19, align 4
%290 = sext i32 %289 to i64
%291 = getelementptr inbounds double, ptr %288, i64 %290
%292 = load double, ptr %291, align 8
%293 = load ptr, ptr %14, align 8
%294 = load i32, ptr %19, align 4
%295 = sext i32 %294 to i64
%296 = getelementptr inbounds double, ptr %293, i64 %295
%297 = load double, ptr %296, align 8
%298 = call double @llvm.fmuladd.f64(double %287, double %292, double %297)
store double %298, ptr %296, align 8
%299 = load double, ptr %26, align 8
%300 = load ptr, ptr %23, align 8
%301 = load i32, ptr %19, align 4
%302 = sext i32 %301 to i64
%303 = getelementptr inbounds double, ptr %300, i64 %302
%304 = load double, ptr %303, align 8
%305 = load ptr, ptr %25, align 8
%306 = load i32, ptr %19, align 4
%307 = sext i32 %306 to i64
%308 = getelementptr inbounds double, ptr %305, i64 %307
%309 = load double, ptr %308, align 8
%310 = fneg double %299
%311 = call double @llvm.fmuladd.f64(double %310, double %304, double %309)
store double %311, ptr %308, align 8
%312 = load ptr, ptr %25, align 8
%313 = load i32, ptr %19, align 4
%314 = sext i32 %313 to i64
%315 = getelementptr inbounds double, ptr %312, i64 %314
%316 = load double, ptr %315, align 8
%317 = load ptr, ptr %25, align 8
%318 = load i32, ptr %19, align 4
%319 = sext i32 %318 to i64
%320 = getelementptr inbounds double, ptr %317, i64 %319
%321 = load double, ptr %320, align 8
%322 = load double, ptr %29, align 8
%323 = call double @llvm.fmuladd.f64(double %316, double %321, double %322)
store double %323, ptr %29, align 8
br label %324
324: ; preds = %286
%325 = load i32, ptr %19, align 4
%326 = add nsw i32 %325, 1
store i32 %326, ptr %19, align 4
br label %282, !llvm.loop !15
327: ; preds = %282
%328 = load double, ptr %29, align 8
%329 = load double, ptr %28, align 8
%330 = fdiv double %328, %329
store double %330, ptr %27, align 8
%331 = load double, ptr %29, align 8
store double %331, ptr %28, align 8
%332 = load double, ptr %29, align 8
%333 = call double @sqrt(double noundef %332)
%334 = load double, ptr %31, align 8
%335 = call double @sqrt(double noundef %334)
%336 = fdiv double %333, %335
%337 = load double, ptr %16, align 8
%338 = fcmp olt double %336, %337
br i1 %338, label %339, label %340
339: ; preds = %327
br label %343
340: ; preds = %327
%341 = load i32, ptr %20, align 4
%342 = add nsw i32 %341, 1
store i32 %342, ptr %20, align 4
br label %175, !llvm.loop !16
343: ; preds = %339, %175
%344 = load double, ptr %29, align 8
%345 = call double @sqrt(double noundef %344)
%346 = load double, ptr %31, align 8
%347 = call double @sqrt(double noundef %346)
%348 = fdiv double %345, %347
%349 = load double, ptr %16, align 8
%350 = fcmp olt double %348, %349
br i1 %350, label %351, label %353
351: ; preds = %343
%352 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %355
353: ; preds = %343
%354 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %355
355: ; preds = %353, %351
%356 = load i32, ptr %17, align 4
%357 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %356)
%358 = load i32, ptr %20, align 4
%359 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %358)
%360 = load ptr, ptr %22, align 8
%361 = call i32 @free(ptr noundef %360)
%362 = load ptr, ptr %23, align 8
%363 = call i32 @free(ptr noundef %362)
%364 = load ptr, ptr %24, align 8
%365 = call i32 @free(ptr noundef %364)
%366 = load ptr, ptr %25, align 8
%367 = call i32 @free(ptr noundef %366)
ret void
}
declare i64 @malloc(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare double @sqrt(double noundef) #1
declare i32 @printf(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" }
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}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
!16 = distinct !{!16, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmprk1konyx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"good\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"bad\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"requset loop = %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"run loop = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cgm_CRS(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5, double noundef %6, i32 noundef %7, i32 noundef %8) #0 {
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
%16 = alloca double, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca ptr, align 8
%23 = alloca ptr, align 8
%24 = alloca ptr, align 8
%25 = alloca ptr, align 8
%26 = alloca double, align 8
%27 = alloca double, align 8
%28 = alloca double, align 8
%29 = alloca double, align 8
%30 = alloca double, align 8
%31 = alloca double, align 8
%32 = alloca double, align 8
store ptr %0, ptr %10, align 8
store ptr %1, ptr %11, align 8
store ptr %2, ptr %12, align 8
store ptr %3, ptr %13, align 8
store ptr %4, ptr %14, align 8
store i32 %5, ptr %15, align 4
store double %6, ptr %16, align 8
store i32 %7, ptr %17, align 4
store i32 %8, ptr %18, align 4
store double 0.000000e+00, ptr %32, align 8
%33 = load i32, ptr %15, align 4
%34 = sext i32 %33 to i64
%35 = mul i64 8, %34
%36 = trunc i64 %35 to i32
%37 = call i64 @malloc(i32 noundef %36)
%38 = inttoptr i64 %37 to ptr
store ptr %38, ptr %22, align 8
%39 = load i32, ptr %15, align 4
%40 = sext i32 %39 to i64
%41 = mul i64 8, %40
%42 = trunc i64 %41 to i32
%43 = call i64 @malloc(i32 noundef %42)
%44 = inttoptr i64 %43 to ptr
store ptr %44, ptr %23, align 8
%45 = load i32, ptr %15, align 4
%46 = sext i32 %45 to i64
%47 = mul i64 8, %46
%48 = trunc i64 %47 to i32
%49 = call i64 @malloc(i32 noundef %48)
%50 = inttoptr i64 %49 to ptr
store ptr %50, ptr %24, align 8
%51 = load i32, ptr %15, align 4
%52 = sext i32 %51 to i64
%53 = mul i64 8, %52
%54 = trunc i64 %53 to i32
%55 = call i64 @malloc(i32 noundef %54)
%56 = inttoptr i64 %55 to ptr
store ptr %56, ptr %25, align 8
store i32 0, ptr %19, align 4
%57 = load i32, ptr %19, align 4
%58 = load i32, ptr %15, align 4
%59 = icmp slt i32 %57, %58
br i1 %59, label %.lr.ph, label %79
.lr.ph: ; preds = %9
br label %60
60: ; preds = %.lr.ph, %73
%61 = load ptr, ptr %14, align 8
%62 = load i32, ptr %19, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds double, ptr %61, i64 %63
store double 0.000000e+00, ptr %64, align 8
%65 = load ptr, ptr %24, align 8
%66 = load i32, ptr %19, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds double, ptr %65, i64 %67
store double 0.000000e+00, ptr %68, align 8
%69 = load ptr, ptr %22, align 8
%70 = load i32, ptr %19, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds double, ptr %69, i64 %71
store double 0.000000e+00, ptr %72, align 8
br label %73
73: ; preds = %60
%74 = load i32, ptr %19, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %19, align 4
%76 = load i32, ptr %19, align 4
%77 = load i32, ptr %15, align 4
%78 = icmp slt i32 %76, %77
br i1 %78, label %60, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %73
br label %79
79: ; preds = %._crit_edge, %9
store double 0.000000e+00, ptr %28, align 8
store double 0.000000e+00, ptr %29, align 8
store double 0.000000e+00, ptr %31, align 8
store i32 0, ptr %19, align 4
%80 = load i32, ptr %19, align 4
%81 = load i32, ptr %15, align 4
%82 = icmp slt i32 %80, %81
br i1 %82, label %.lr.ph5, label %137
.lr.ph5: ; preds = %79
br label %83
83: ; preds = %.lr.ph5, %131
store double 0.000000e+00, ptr %32, align 8
%84 = load ptr, ptr %12, align 8
%85 = load i32, ptr %19, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i32, ptr %84, i64 %86
%88 = load i32, ptr %87, align 4
store i32 %88, ptr %21, align 4
%89 = load i32, ptr %21, align 4
%90 = load ptr, ptr %12, align 8
%91 = load i32, ptr %19, align 4
%92 = add nsw i32 %91, 1
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i32, ptr %90, i64 %93
%95 = load i32, ptr %94, align 4
%96 = icmp slt i32 %89, %95
br i1 %96, label %.lr.ph2, label %130
.lr.ph2: ; preds = %83
br label %97
97: ; preds = %.lr.ph2, %119
%98 = load ptr, ptr %10, align 8
%99 = load i32, ptr %21, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds double, ptr %98, i64 %100
%102 = load double, ptr %101, align 8
%103 = load ptr, ptr %14, align 8
%104 = load ptr, ptr %11, align 8
%105 = load i32, ptr %21, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i32, ptr %104, i64 %106
%108 = load i32, ptr %107, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds double, ptr %103, i64 %109
%111 = load double, ptr %110, align 8
%112 = load double, ptr %32, align 8
%113 = call double @llvm.fmuladd.f64(double %102, double %111, double %112)
store double %113, ptr %32, align 8
%114 = load double, ptr %32, align 8
%115 = load ptr, ptr %24, align 8
%116 = load i32, ptr %19, align 4
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds double, ptr %115, i64 %117
store double %114, ptr %118, align 8
br label %119
119: ; preds = %97
%120 = load i32, ptr %21, align 4
%121 = add nsw i32 %120, 1
store i32 %121, ptr %21, align 4
%122 = load i32, ptr %21, align 4
%123 = load ptr, ptr %12, align 8
%124 = load i32, ptr %19, align 4
%125 = add nsw i32 %124, 1
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds i32, ptr %123, i64 %126
%128 = load i32, ptr %127, align 4
%129 = icmp slt i32 %122, %128
br i1 %129, label %97, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %119
br label %130
130: ; preds = %._crit_edge3, %83
br label %131
131: ; preds = %130
%132 = load i32, ptr %19, align 4
%133 = add nsw i32 %132, 1
store i32 %133, ptr %19, align 4
%134 = load i32, ptr %19, align 4
%135 = load i32, ptr %15, align 4
%136 = icmp slt i32 %134, %135
br i1 %136, label %83, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %131
br label %137
137: ; preds = %._crit_edge6, %79
store i32 0, ptr %19, align 4
%138 = load i32, ptr %19, align 4
%139 = load i32, ptr %15, align 4
%140 = icmp slt i32 %138, %139
br i1 %140, label %.lr.ph8, label %187
.lr.ph8: ; preds = %137
br label %141
141: ; preds = %.lr.ph8, %181
%142 = load ptr, ptr %13, align 8
%143 = load i32, ptr %19, align 4
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds double, ptr %142, i64 %144
%146 = load double, ptr %145, align 8
%147 = load ptr, ptr %24, align 8
%148 = load i32, ptr %19, align 4
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds double, ptr %147, i64 %149
%151 = load double, ptr %150, align 8
%152 = fsub double %146, %151
%153 = load ptr, ptr %25, align 8
%154 = load i32, ptr %19, align 4
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds double, ptr %153, i64 %155
store double %152, ptr %156, align 8
%157 = load ptr, ptr %13, align 8
%158 = load i32, ptr %19, align 4
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds double, ptr %157, i64 %159
%161 = load double, ptr %160, align 8
%162 = load ptr, ptr %13, align 8
%163 = load i32, ptr %19, align 4
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds double, ptr %162, i64 %164
%166 = load double, ptr %165, align 8
%167 = load double, ptr %31, align 8
%168 = call double @llvm.fmuladd.f64(double %161, double %166, double %167)
store double %168, ptr %31, align 8
%169 = load ptr, ptr %25, align 8
%170 = load i32, ptr %19, align 4
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds double, ptr %169, i64 %171
%173 = load double, ptr %172, align 8
%174 = load ptr, ptr %25, align 8
%175 = load i32, ptr %19, align 4
%176 = sext i32 %175 to i64
%177 = getelementptr inbounds double, ptr %174, i64 %176
%178 = load double, ptr %177, align 8
%179 = load double, ptr %28, align 8
%180 = call double @llvm.fmuladd.f64(double %173, double %178, double %179)
store double %180, ptr %28, align 8
br label %181
181: ; preds = %141
%182 = load i32, ptr %19, align 4
%183 = add nsw i32 %182, 1
store i32 %183, ptr %19, align 4
%184 = load i32, ptr %19, align 4
%185 = load i32, ptr %15, align 4
%186 = icmp slt i32 %184, %185
br i1 %186, label %141, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %181
br label %187
187: ; preds = %._crit_edge9, %137
store double 0.000000e+00, ptr %27, align 8
store i32 0, ptr %20, align 4
%188 = load i32, ptr %20, align 4
%189 = load i32, ptr %17, align 4
%190 = icmp slt i32 %188, %189
br i1 %190, label %.lr.ph26, label %.loopexit
.lr.ph26: ; preds = %187
br label %191
191: ; preds = %.lr.ph26, %367
store i32 0, ptr %19, align 4
%192 = load i32, ptr %19, align 4
%193 = load i32, ptr %15, align 4
%194 = icmp slt i32 %192, %193
br i1 %194, label %.lr.ph11, label %222
.lr.ph11: ; preds = %191
br label %195
195: ; preds = %.lr.ph11, %216
%196 = load ptr, ptr %25, align 8
%197 = load i32, ptr %19, align 4
%198 = sext i32 %197 to i64
%199 = getelementptr inbounds double, ptr %196, i64 %198
%200 = load double, ptr %199, align 8
%201 = load double, ptr %27, align 8
%202 = load ptr, ptr %22, align 8
%203 = load i32, ptr %19, align 4
%204 = sext i32 %203 to i64
%205 = getelementptr inbounds double, ptr %202, i64 %204
%206 = load double, ptr %205, align 8
%207 = call double @llvm.fmuladd.f64(double %201, double %206, double %200)
%208 = load ptr, ptr %22, align 8
%209 = load i32, ptr %19, align 4
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds double, ptr %208, i64 %210
store double %207, ptr %211, align 8
%212 = load ptr, ptr %23, align 8
%213 = load i32, ptr %19, align 4
%214 = sext i32 %213 to i64
%215 = getelementptr inbounds double, ptr %212, i64 %214
store double 0.000000e+00, ptr %215, align 8
br label %216
216: ; preds = %195
%217 = load i32, ptr %19, align 4
%218 = add nsw i32 %217, 1
store i32 %218, ptr %19, align 4
%219 = load i32, ptr %19, align 4
%220 = load i32, ptr %15, align 4
%221 = icmp slt i32 %219, %220
br i1 %221, label %195, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %216
br label %222
222: ; preds = %._crit_edge12, %191
store double 0.000000e+00, ptr %30, align 8
store i32 0, ptr %19, align 4
%223 = load i32, ptr %19, align 4
%224 = load i32, ptr %15, align 4
%225 = icmp slt i32 %223, %224
br i1 %225, label %.lr.ph17, label %280
.lr.ph17: ; preds = %222
br label %226
226: ; preds = %.lr.ph17, %274
store double 0.000000e+00, ptr %32, align 8
%227 = load ptr, ptr %12, align 8
%228 = load i32, ptr %19, align 4
%229 = sext i32 %228 to i64
%230 = getelementptr inbounds i32, ptr %227, i64 %229
%231 = load i32, ptr %230, align 4
store i32 %231, ptr %21, align 4
%232 = load i32, ptr %21, align 4
%233 = load ptr, ptr %12, align 8
%234 = load i32, ptr %19, align 4
%235 = add nsw i32 %234, 1
%236 = sext i32 %235 to i64
%237 = getelementptr inbounds i32, ptr %233, i64 %236
%238 = load i32, ptr %237, align 4
%239 = icmp slt i32 %232, %238
br i1 %239, label %.lr.ph14, label %273
.lr.ph14: ; preds = %226
br label %240
240: ; preds = %.lr.ph14, %262
%241 = load ptr, ptr %10, align 8
%242 = load i32, ptr %21, align 4
%243 = sext i32 %242 to i64
%244 = getelementptr inbounds double, ptr %241, i64 %243
%245 = load double, ptr %244, align 8
%246 = load ptr, ptr %22, align 8
%247 = load ptr, ptr %11, align 8
%248 = load i32, ptr %21, align 4
%249 = sext i32 %248 to i64
%250 = getelementptr inbounds i32, ptr %247, i64 %249
%251 = load i32, ptr %250, align 4
%252 = sext i32 %251 to i64
%253 = getelementptr inbounds double, ptr %246, i64 %252
%254 = load double, ptr %253, align 8
%255 = load double, ptr %32, align 8
%256 = call double @llvm.fmuladd.f64(double %245, double %254, double %255)
store double %256, ptr %32, align 8
%257 = load double, ptr %32, align 8
%258 = load ptr, ptr %23, align 8
%259 = load i32, ptr %19, align 4
%260 = sext i32 %259 to i64
%261 = getelementptr inbounds double, ptr %258, i64 %260
store double %257, ptr %261, align 8
br label %262
262: ; preds = %240
%263 = load i32, ptr %21, align 4
%264 = add nsw i32 %263, 1
store i32 %264, ptr %21, align 4
%265 = load i32, ptr %21, align 4
%266 = load ptr, ptr %12, align 8
%267 = load i32, ptr %19, align 4
%268 = add nsw i32 %267, 1
%269 = sext i32 %268 to i64
%270 = getelementptr inbounds i32, ptr %266, i64 %269
%271 = load i32, ptr %270, align 4
%272 = icmp slt i32 %265, %271
br i1 %272, label %240, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %262
br label %273
273: ; preds = %._crit_edge15, %226
br label %274
274: ; preds = %273
%275 = load i32, ptr %19, align 4
%276 = add nsw i32 %275, 1
store i32 %276, ptr %19, align 4
%277 = load i32, ptr %19, align 4
%278 = load i32, ptr %15, align 4
%279 = icmp slt i32 %277, %278
br i1 %279, label %226, label %._crit_edge18, !llvm.loop !13
._crit_edge18: ; preds = %274
br label %280
280: ; preds = %._crit_edge18, %222
store i32 0, ptr %19, align 4
%281 = load i32, ptr %19, align 4
%282 = load i32, ptr %15, align 4
%283 = icmp slt i32 %281, %282
br i1 %283, label %.lr.ph20, label %303
.lr.ph20: ; preds = %280
br label %284
284: ; preds = %.lr.ph20, %297
%285 = load ptr, ptr %22, align 8
%286 = load i32, ptr %19, align 4
%287 = sext i32 %286 to i64
%288 = getelementptr inbounds double, ptr %285, i64 %287
%289 = load double, ptr %288, align 8
%290 = load ptr, ptr %23, align 8
%291 = load i32, ptr %19, align 4
%292 = sext i32 %291 to i64
%293 = getelementptr inbounds double, ptr %290, i64 %292
%294 = load double, ptr %293, align 8
%295 = load double, ptr %30, align 8
%296 = call double @llvm.fmuladd.f64(double %289, double %294, double %295)
store double %296, ptr %30, align 8
br label %297
297: ; preds = %284
%298 = load i32, ptr %19, align 4
%299 = add nsw i32 %298, 1
store i32 %299, ptr %19, align 4
%300 = load i32, ptr %19, align 4
%301 = load i32, ptr %15, align 4
%302 = icmp slt i32 %300, %301
br i1 %302, label %284, label %._crit_edge21, !llvm.loop !14
._crit_edge21: ; preds = %297
br label %303
303: ; preds = %._crit_edge21, %280
%304 = load double, ptr %28, align 8
%305 = load double, ptr %30, align 8
%306 = fdiv double %304, %305
store double %306, ptr %26, align 8
store double 0.000000e+00, ptr %29, align 8
store i32 0, ptr %19, align 4
%307 = load i32, ptr %19, align 4
%308 = load i32, ptr %15, align 4
%309 = icmp slt i32 %307, %308
br i1 %309, label %.lr.ph23, label %354
.lr.ph23: ; preds = %303
br label %310
310: ; preds = %.lr.ph23, %348
%311 = load double, ptr %26, align 8
%312 = load ptr, ptr %22, align 8
%313 = load i32, ptr %19, align 4
%314 = sext i32 %313 to i64
%315 = getelementptr inbounds double, ptr %312, i64 %314
%316 = load double, ptr %315, align 8
%317 = load ptr, ptr %14, align 8
%318 = load i32, ptr %19, align 4
%319 = sext i32 %318 to i64
%320 = getelementptr inbounds double, ptr %317, i64 %319
%321 = load double, ptr %320, align 8
%322 = call double @llvm.fmuladd.f64(double %311, double %316, double %321)
store double %322, ptr %320, align 8
%323 = load double, ptr %26, align 8
%324 = load ptr, ptr %23, align 8
%325 = load i32, ptr %19, align 4
%326 = sext i32 %325 to i64
%327 = getelementptr inbounds double, ptr %324, i64 %326
%328 = load double, ptr %327, align 8
%329 = load ptr, ptr %25, align 8
%330 = load i32, ptr %19, align 4
%331 = sext i32 %330 to i64
%332 = getelementptr inbounds double, ptr %329, i64 %331
%333 = load double, ptr %332, align 8
%334 = fneg double %323
%335 = call double @llvm.fmuladd.f64(double %334, double %328, double %333)
store double %335, ptr %332, align 8
%336 = load ptr, ptr %25, align 8
%337 = load i32, ptr %19, align 4
%338 = sext i32 %337 to i64
%339 = getelementptr inbounds double, ptr %336, i64 %338
%340 = load double, ptr %339, align 8
%341 = load ptr, ptr %25, align 8
%342 = load i32, ptr %19, align 4
%343 = sext i32 %342 to i64
%344 = getelementptr inbounds double, ptr %341, i64 %343
%345 = load double, ptr %344, align 8
%346 = load double, ptr %29, align 8
%347 = call double @llvm.fmuladd.f64(double %340, double %345, double %346)
store double %347, ptr %29, align 8
br label %348
348: ; preds = %310
%349 = load i32, ptr %19, align 4
%350 = add nsw i32 %349, 1
store i32 %350, ptr %19, align 4
%351 = load i32, ptr %19, align 4
%352 = load i32, ptr %15, align 4
%353 = icmp slt i32 %351, %352
br i1 %353, label %310, label %._crit_edge24, !llvm.loop !15
._crit_edge24: ; preds = %348
br label %354
354: ; preds = %._crit_edge24, %303
%355 = load double, ptr %29, align 8
%356 = load double, ptr %28, align 8
%357 = fdiv double %355, %356
store double %357, ptr %27, align 8
%358 = load double, ptr %29, align 8
store double %358, ptr %28, align 8
%359 = load double, ptr %29, align 8
%360 = call double @sqrt(double noundef %359)
%361 = load double, ptr %31, align 8
%362 = call double @sqrt(double noundef %361)
%363 = fdiv double %360, %362
%364 = load double, ptr %16, align 8
%365 = fcmp olt double %363, %364
br i1 %365, label %366, label %367
366: ; preds = %354
br label %373
367: ; preds = %354
%368 = load i32, ptr %20, align 4
%369 = add nsw i32 %368, 1
store i32 %369, ptr %20, align 4
%370 = load i32, ptr %20, align 4
%371 = load i32, ptr %17, align 4
%372 = icmp slt i32 %370, %371
br i1 %372, label %191, label %..loopexit_crit_edge, !llvm.loop !16
..loopexit_crit_edge: ; preds = %367
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %187
br label %373
373: ; preds = %.loopexit, %366
%374 = load double, ptr %29, align 8
%375 = call double @sqrt(double noundef %374)
%376 = load double, ptr %31, align 8
%377 = call double @sqrt(double noundef %376)
%378 = fdiv double %375, %377
%379 = load double, ptr %16, align 8
%380 = fcmp olt double %378, %379
br i1 %380, label %381, label %383
381: ; preds = %373
%382 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %385
383: ; preds = %373
%384 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %385
385: ; preds = %383, %381
%386 = load i32, ptr %17, align 4
%387 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %386)
%388 = load i32, ptr %20, align 4
%389 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %388)
%390 = load ptr, ptr %22, align 8
%391 = call i32 @free(ptr noundef %390)
%392 = load ptr, ptr %23, align 8
%393 = call i32 @free(ptr noundef %392)
%394 = load ptr, ptr %24, align 8
%395 = call i32 @free(ptr noundef %394)
%396 = load ptr, ptr %25, align 8
%397 = call i32 @free(ptr noundef %396)
ret void
}
declare i64 @malloc(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare double @sqrt(double noundef) #1
declare i32 @printf(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" }
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}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
!16 = distinct !{!16, !7}
|
; ModuleID = '/tmp/tmpe72omvya.c'
source_filename = "/tmp/tmpe72omvya.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%2d %2d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @by_pointer(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
store i32 1, ptr %5, align 4
%6 = load ptr, ptr %4, align 8
store i32 10, ptr %6, align 4
%7 = load ptr, ptr %3, align 8
%8 = load i32, ptr %7, align 4
%9 = load ptr, ptr %4, align 8
%10 = load i32, ptr %9, align 4
%11 = call i32 @printf(ptr noundef @.str, i32 noundef %8, i32 noundef %10)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe72omvya.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%2d %2d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @by_pointer(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
store i32 1, ptr %5, align 4
%6 = load ptr, ptr %4, align 8
store i32 10, ptr %6, align 4
%7 = load ptr, ptr %3, align 8
%8 = load i32, ptr %7, align 4
%9 = load ptr, ptr %4, align 8
%10 = load i32, ptr %9, align 4
%11 = call i32 @printf(ptr noundef @.str, i32 noundef %8, i32 noundef %10)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpt5amnljh.c'
source_filename = "/tmp/tmpt5amnljh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @plotQuadBezierSeg(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%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 i64, align 8
%16 = alloca i64, align 8
%17 = alloca i64, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca double, align 8
%21 = alloca double, align 8
store i32 %0, ptr %7, align 4
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
store i32 %5, ptr %12, align 4
%22 = load i32, ptr %11, align 4
%23 = load i32, ptr %9, align 4
%24 = sub nsw i32 %22, %23
store i32 %24, ptr %13, align 4
%25 = load i32, ptr %12, align 4
%26 = load i32, ptr %10, align 4
%27 = sub nsw i32 %25, %26
store i32 %27, ptr %14, align 4
%28 = load i32, ptr %7, align 4
%29 = load i32, ptr %9, align 4
%30 = sub nsw i32 %28, %29
%31 = sext i32 %30 to i64
store i64 %31, ptr %15, align 8
%32 = load i32, ptr %8, align 4
%33 = load i32, ptr %10, align 4
%34 = sub nsw i32 %32, %33
%35 = sext i32 %34 to i64
store i64 %35, ptr %16, align 8
%36 = load i64, ptr %15, align 8
%37 = load i32, ptr %14, align 4
%38 = sext i32 %37 to i64
%39 = mul nsw i64 %36, %38
%40 = load i64, ptr %16, align 8
%41 = load i32, ptr %13, align 4
%42 = sext i32 %41 to i64
%43 = mul nsw i64 %40, %42
%44 = sub nsw i64 %39, %43
%45 = sitofp i64 %44 to double
store double %45, ptr %21, align 8
%46 = load i64, ptr %15, align 8
%47 = load i32, ptr %13, align 4
%48 = sext i32 %47 to i64
%49 = mul nsw i64 %46, %48
%50 = icmp sle i64 %49, 0
br i1 %50, label %51, label %57
51: ; preds = %6
%52 = load i64, ptr %16, align 8
%53 = load i32, ptr %14, align 4
%54 = sext i32 %53 to i64
%55 = mul nsw i64 %52, %54
%56 = icmp sle i64 %55, 0
br label %57
57: ; preds = %51, %6
%58 = phi i1 [ false, %6 ], [ %56, %51 ]
%59 = zext i1 %58 to i32
%60 = call i32 @assert(i32 noundef %59)
%61 = load i32, ptr %13, align 4
%62 = sext i32 %61 to i64
%63 = load i32, ptr %13, align 4
%64 = sext i32 %63 to i64
%65 = mul nsw i64 %62, %64
%66 = load i32, ptr %14, align 4
%67 = sext i32 %66 to i64
%68 = load i32, ptr %14, align 4
%69 = sext i32 %68 to i64
%70 = mul nsw i64 %67, %69
%71 = add nsw i64 %65, %70
%72 = load i64, ptr %15, align 8
%73 = load i64, ptr %15, align 8
%74 = mul nsw i64 %72, %73
%75 = load i64, ptr %16, align 8
%76 = load i64, ptr %16, align 8
%77 = mul nsw i64 %75, %76
%78 = add nsw i64 %74, %77
%79 = icmp sgt i64 %71, %78
br i1 %79, label %80, label %91
80: ; preds = %57
%81 = load i32, ptr %7, align 4
store i32 %81, ptr %11, align 4
%82 = load i32, ptr %13, align 4
%83 = load i32, ptr %9, align 4
%84 = add nsw i32 %82, %83
store i32 %84, ptr %7, align 4
%85 = load i32, ptr %8, align 4
store i32 %85, ptr %12, align 4
%86 = load i32, ptr %14, align 4
%87 = load i32, ptr %10, align 4
%88 = add nsw i32 %86, %87
store i32 %88, ptr %8, align 4
%89 = load double, ptr %21, align 8
%90 = fneg double %89
store double %90, ptr %21, align 8
br label %91
91: ; preds = %80, %57
%92 = load double, ptr %21, align 8
%93 = fcmp une double %92, 0.000000e+00
br i1 %93, label %94, label %252
94: ; preds = %91
%95 = load i32, ptr %13, align 4
%96 = sext i32 %95 to i64
%97 = load i64, ptr %15, align 8
%98 = add nsw i64 %97, %96
store i64 %98, ptr %15, align 8
%99 = load i32, ptr %7, align 4
%100 = load i32, ptr %11, align 4
%101 = icmp slt i32 %99, %100
%102 = zext i1 %101 to i64
%103 = select i1 %101, i32 1, i32 -1
store i32 %103, ptr %13, align 4
%104 = sext i32 %103 to i64
%105 = load i64, ptr %15, align 8
%106 = mul nsw i64 %105, %104
store i64 %106, ptr %15, align 8
%107 = load i32, ptr %14, align 4
%108 = sext i32 %107 to i64
%109 = load i64, ptr %16, align 8
%110 = add nsw i64 %109, %108
store i64 %110, ptr %16, align 8
%111 = load i32, ptr %8, align 4
%112 = load i32, ptr %12, align 4
%113 = icmp slt i32 %111, %112
%114 = zext i1 %113 to i64
%115 = select i1 %113, i32 1, i32 -1
store i32 %115, ptr %14, align 4
%116 = sext i32 %115 to i64
%117 = load i64, ptr %16, align 8
%118 = mul nsw i64 %117, %116
store i64 %118, ptr %16, align 8
%119 = load i64, ptr %15, align 8
%120 = mul nsw i64 2, %119
%121 = load i64, ptr %16, align 8
%122 = mul nsw i64 %120, %121
store i64 %122, ptr %17, align 8
%123 = load i64, ptr %15, align 8
%124 = load i64, ptr %15, align 8
%125 = mul nsw i64 %124, %123
store i64 %125, ptr %15, align 8
%126 = load i64, ptr %16, align 8
%127 = load i64, ptr %16, align 8
%128 = mul nsw i64 %127, %126
store i64 %128, ptr %16, align 8
%129 = load double, ptr %21, align 8
%130 = load i32, ptr %13, align 4
%131 = sitofp i32 %130 to double
%132 = fmul double %129, %131
%133 = load i32, ptr %14, align 4
%134 = sitofp i32 %133 to double
%135 = fmul double %132, %134
%136 = fcmp olt double %135, 0.000000e+00
br i1 %136, label %137, label %146
137: ; preds = %94
%138 = load i64, ptr %15, align 8
%139 = sub nsw i64 0, %138
store i64 %139, ptr %15, align 8
%140 = load i64, ptr %16, align 8
%141 = sub nsw i64 0, %140
store i64 %141, ptr %16, align 8
%142 = load i64, ptr %17, align 8
%143 = sub nsw i64 0, %142
store i64 %143, ptr %17, align 8
%144 = load double, ptr %21, align 8
%145 = fneg double %144
store double %145, ptr %21, align 8
br label %146
146: ; preds = %137, %94
%147 = load i32, ptr %14, align 4
%148 = sitofp i32 %147 to double
%149 = fmul double 4.000000e+00, %148
%150 = load double, ptr %21, align 8
%151 = fmul double %149, %150
%152 = load i32, ptr %9, align 4
%153 = load i32, ptr %7, align 4
%154 = sub nsw i32 %152, %153
%155 = sitofp i32 %154 to double
%156 = load i64, ptr %15, align 8
%157 = sitofp i64 %156 to double
%158 = call double @llvm.fmuladd.f64(double %151, double %155, double %157)
%159 = load i64, ptr %17, align 8
%160 = sitofp i64 %159 to double
%161 = fsub double %158, %160
store double %161, ptr %18, align 8
%162 = load i32, ptr %13, align 4
%163 = sitofp i32 %162 to double
%164 = fmul double 4.000000e+00, %163
%165 = load double, ptr %21, align 8
%166 = fmul double %164, %165
%167 = load i32, ptr %8, align 4
%168 = load i32, ptr %10, align 4
%169 = sub nsw i32 %167, %168
%170 = sitofp i32 %169 to double
%171 = load i64, ptr %16, align 8
%172 = sitofp i64 %171 to double
%173 = call double @llvm.fmuladd.f64(double %166, double %170, double %172)
%174 = load i64, ptr %17, align 8
%175 = sitofp i64 %174 to double
%176 = fsub double %173, %175
store double %176, ptr %19, align 8
%177 = load i64, ptr %15, align 8
%178 = load i64, ptr %15, align 8
%179 = add nsw i64 %178, %177
store i64 %179, ptr %15, align 8
%180 = load i64, ptr %16, align 8
%181 = load i64, ptr %16, align 8
%182 = add nsw i64 %181, %180
store i64 %182, ptr %16, align 8
%183 = load double, ptr %18, align 8
%184 = load double, ptr %19, align 8
%185 = fadd double %183, %184
%186 = load i64, ptr %17, align 8
%187 = sitofp i64 %186 to double
%188 = fadd double %185, %187
store double %188, ptr %20, align 8
br label %189
189: ; preds = %249, %146
%190 = load i32, ptr %7, align 4
%191 = load i32, ptr %8, align 4
%192 = call i32 @setPixel(i32 noundef %190, i32 noundef %191)
%193 = load i32, ptr %7, align 4
%194 = load i32, ptr %11, align 4
%195 = icmp eq i32 %193, %194
br i1 %195, label %196, label %201
196: ; preds = %189
%197 = load i32, ptr %8, align 4
%198 = load i32, ptr %12, align 4
%199 = icmp eq i32 %197, %198
br i1 %199, label %200, label %201
200: ; preds = %196
br label %258
201: ; preds = %196, %189
%202 = load double, ptr %20, align 8
%203 = fmul double 2.000000e+00, %202
%204 = load double, ptr %18, align 8
%205 = fcmp olt double %203, %204
%206 = zext i1 %205 to i32
store i32 %206, ptr %10, align 4
%207 = load double, ptr %20, align 8
%208 = fmul double 2.000000e+00, %207
%209 = load double, ptr %19, align 8
%210 = fcmp ogt double %208, %209
br i1 %210, label %211, label %225
211: ; preds = %201
%212 = load i32, ptr %13, align 4
%213 = load i32, ptr %7, align 4
%214 = add nsw i32 %213, %212
store i32 %214, ptr %7, align 4
%215 = load i64, ptr %17, align 8
%216 = sitofp i64 %215 to double
%217 = load double, ptr %18, align 8
%218 = fsub double %217, %216
store double %218, ptr %18, align 8
%219 = load i64, ptr %16, align 8
%220 = sitofp i64 %219 to double
%221 = load double, ptr %19, align 8
%222 = fadd double %221, %220
store double %222, ptr %19, align 8
%223 = load double, ptr %20, align 8
%224 = fadd double %223, %222
store double %224, ptr %20, align 8
br label %225
225: ; preds = %211, %201
%226 = load i32, ptr %10, align 4
%227 = icmp ne i32 %226, 0
br i1 %227, label %228, label %242
228: ; preds = %225
%229 = load i32, ptr %14, align 4
%230 = load i32, ptr %8, align 4
%231 = add nsw i32 %230, %229
store i32 %231, ptr %8, align 4
%232 = load i64, ptr %17, align 8
%233 = sitofp i64 %232 to double
%234 = load double, ptr %19, align 8
%235 = fsub double %234, %233
store double %235, ptr %19, align 8
%236 = load i64, ptr %15, align 8
%237 = sitofp i64 %236 to double
%238 = load double, ptr %18, align 8
%239 = fadd double %238, %237
store double %239, ptr %18, align 8
%240 = load double, ptr %20, align 8
%241 = fadd double %240, %239
store double %241, ptr %20, align 8
br label %242
242: ; preds = %228, %225
br label %243
243: ; preds = %242
%244 = load double, ptr %19, align 8
%245 = fcmp olt double %244, 0.000000e+00
br i1 %245, label %246, label %249
246: ; preds = %243
%247 = load double, ptr %18, align 8
%248 = fcmp ogt double %247, 0.000000e+00
br label %249
249: ; preds = %246, %243
%250 = phi i1 [ false, %243 ], [ %248, %246 ]
br i1 %250, label %189, label %251, !llvm.loop !6
251: ; preds = %249
br label %252
252: ; preds = %251, %91
%253 = load i32, ptr %7, align 4
%254 = load i32, ptr %8, align 4
%255 = load i32, ptr %11, align 4
%256 = load i32, ptr %12, align 4
%257 = call i32 @plotLine(i32 noundef %253, i32 noundef %254, i32 noundef %255, i32 noundef %256)
br label %258
258: ; preds = %252, %200
ret void
}
declare i32 @assert(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare i32 @setPixel(i32 noundef, i32 noundef) #1
declare i32 @plotLine(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpt5amnljh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @plotQuadBezierSeg(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%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 i64, align 8
%16 = alloca i64, align 8
%17 = alloca i64, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca double, align 8
%21 = alloca double, align 8
store i32 %0, ptr %7, align 4
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
store i32 %5, ptr %12, align 4
%22 = load i32, ptr %11, align 4
%23 = load i32, ptr %9, align 4
%24 = sub nsw i32 %22, %23
store i32 %24, ptr %13, align 4
%25 = load i32, ptr %12, align 4
%26 = load i32, ptr %10, align 4
%27 = sub nsw i32 %25, %26
store i32 %27, ptr %14, align 4
%28 = load i32, ptr %7, align 4
%29 = load i32, ptr %9, align 4
%30 = sub nsw i32 %28, %29
%31 = sext i32 %30 to i64
store i64 %31, ptr %15, align 8
%32 = load i32, ptr %8, align 4
%33 = load i32, ptr %10, align 4
%34 = sub nsw i32 %32, %33
%35 = sext i32 %34 to i64
store i64 %35, ptr %16, align 8
%36 = load i64, ptr %15, align 8
%37 = load i32, ptr %14, align 4
%38 = sext i32 %37 to i64
%39 = mul nsw i64 %36, %38
%40 = load i64, ptr %16, align 8
%41 = load i32, ptr %13, align 4
%42 = sext i32 %41 to i64
%43 = mul nsw i64 %40, %42
%44 = sub nsw i64 %39, %43
%45 = sitofp i64 %44 to double
store double %45, ptr %21, align 8
%46 = load i64, ptr %15, align 8
%47 = load i32, ptr %13, align 4
%48 = sext i32 %47 to i64
%49 = mul nsw i64 %46, %48
%50 = icmp sle i64 %49, 0
br i1 %50, label %51, label %57
51: ; preds = %6
%52 = load i64, ptr %16, align 8
%53 = load i32, ptr %14, align 4
%54 = sext i32 %53 to i64
%55 = mul nsw i64 %52, %54
%56 = icmp sle i64 %55, 0
br label %57
57: ; preds = %51, %6
%58 = phi i1 [ false, %6 ], [ %56, %51 ]
%59 = zext i1 %58 to i32
%60 = call i32 @assert(i32 noundef %59)
%61 = load i32, ptr %13, align 4
%62 = sext i32 %61 to i64
%63 = load i32, ptr %13, align 4
%64 = sext i32 %63 to i64
%65 = mul nsw i64 %62, %64
%66 = load i32, ptr %14, align 4
%67 = sext i32 %66 to i64
%68 = load i32, ptr %14, align 4
%69 = sext i32 %68 to i64
%70 = mul nsw i64 %67, %69
%71 = add nsw i64 %65, %70
%72 = load i64, ptr %15, align 8
%73 = load i64, ptr %15, align 8
%74 = mul nsw i64 %72, %73
%75 = load i64, ptr %16, align 8
%76 = load i64, ptr %16, align 8
%77 = mul nsw i64 %75, %76
%78 = add nsw i64 %74, %77
%79 = icmp sgt i64 %71, %78
br i1 %79, label %80, label %91
80: ; preds = %57
%81 = load i32, ptr %7, align 4
store i32 %81, ptr %11, align 4
%82 = load i32, ptr %13, align 4
%83 = load i32, ptr %9, align 4
%84 = add nsw i32 %82, %83
store i32 %84, ptr %7, align 4
%85 = load i32, ptr %8, align 4
store i32 %85, ptr %12, align 4
%86 = load i32, ptr %14, align 4
%87 = load i32, ptr %10, align 4
%88 = add nsw i32 %86, %87
store i32 %88, ptr %8, align 4
%89 = load double, ptr %21, align 8
%90 = fneg double %89
store double %90, ptr %21, align 8
br label %91
91: ; preds = %80, %57
%92 = load double, ptr %21, align 8
%93 = fcmp une double %92, 0.000000e+00
br i1 %93, label %94, label %252
94: ; preds = %91
%95 = load i32, ptr %13, align 4
%96 = sext i32 %95 to i64
%97 = load i64, ptr %15, align 8
%98 = add nsw i64 %97, %96
store i64 %98, ptr %15, align 8
%99 = load i32, ptr %7, align 4
%100 = load i32, ptr %11, align 4
%101 = icmp slt i32 %99, %100
%102 = zext i1 %101 to i64
%103 = select i1 %101, i32 1, i32 -1
store i32 %103, ptr %13, align 4
%104 = sext i32 %103 to i64
%105 = load i64, ptr %15, align 8
%106 = mul nsw i64 %105, %104
store i64 %106, ptr %15, align 8
%107 = load i32, ptr %14, align 4
%108 = sext i32 %107 to i64
%109 = load i64, ptr %16, align 8
%110 = add nsw i64 %109, %108
store i64 %110, ptr %16, align 8
%111 = load i32, ptr %8, align 4
%112 = load i32, ptr %12, align 4
%113 = icmp slt i32 %111, %112
%114 = zext i1 %113 to i64
%115 = select i1 %113, i32 1, i32 -1
store i32 %115, ptr %14, align 4
%116 = sext i32 %115 to i64
%117 = load i64, ptr %16, align 8
%118 = mul nsw i64 %117, %116
store i64 %118, ptr %16, align 8
%119 = load i64, ptr %15, align 8
%120 = mul nsw i64 2, %119
%121 = load i64, ptr %16, align 8
%122 = mul nsw i64 %120, %121
store i64 %122, ptr %17, align 8
%123 = load i64, ptr %15, align 8
%124 = load i64, ptr %15, align 8
%125 = mul nsw i64 %124, %123
store i64 %125, ptr %15, align 8
%126 = load i64, ptr %16, align 8
%127 = load i64, ptr %16, align 8
%128 = mul nsw i64 %127, %126
store i64 %128, ptr %16, align 8
%129 = load double, ptr %21, align 8
%130 = load i32, ptr %13, align 4
%131 = sitofp i32 %130 to double
%132 = fmul double %129, %131
%133 = load i32, ptr %14, align 4
%134 = sitofp i32 %133 to double
%135 = fmul double %132, %134
%136 = fcmp olt double %135, 0.000000e+00
br i1 %136, label %137, label %146
137: ; preds = %94
%138 = load i64, ptr %15, align 8
%139 = sub nsw i64 0, %138
store i64 %139, ptr %15, align 8
%140 = load i64, ptr %16, align 8
%141 = sub nsw i64 0, %140
store i64 %141, ptr %16, align 8
%142 = load i64, ptr %17, align 8
%143 = sub nsw i64 0, %142
store i64 %143, ptr %17, align 8
%144 = load double, ptr %21, align 8
%145 = fneg double %144
store double %145, ptr %21, align 8
br label %146
146: ; preds = %137, %94
%147 = load i32, ptr %14, align 4
%148 = sitofp i32 %147 to double
%149 = fmul double 4.000000e+00, %148
%150 = load double, ptr %21, align 8
%151 = fmul double %149, %150
%152 = load i32, ptr %9, align 4
%153 = load i32, ptr %7, align 4
%154 = sub nsw i32 %152, %153
%155 = sitofp i32 %154 to double
%156 = load i64, ptr %15, align 8
%157 = sitofp i64 %156 to double
%158 = call double @llvm.fmuladd.f64(double %151, double %155, double %157)
%159 = load i64, ptr %17, align 8
%160 = sitofp i64 %159 to double
%161 = fsub double %158, %160
store double %161, ptr %18, align 8
%162 = load i32, ptr %13, align 4
%163 = sitofp i32 %162 to double
%164 = fmul double 4.000000e+00, %163
%165 = load double, ptr %21, align 8
%166 = fmul double %164, %165
%167 = load i32, ptr %8, align 4
%168 = load i32, ptr %10, align 4
%169 = sub nsw i32 %167, %168
%170 = sitofp i32 %169 to double
%171 = load i64, ptr %16, align 8
%172 = sitofp i64 %171 to double
%173 = call double @llvm.fmuladd.f64(double %166, double %170, double %172)
%174 = load i64, ptr %17, align 8
%175 = sitofp i64 %174 to double
%176 = fsub double %173, %175
store double %176, ptr %19, align 8
%177 = load i64, ptr %15, align 8
%178 = load i64, ptr %15, align 8
%179 = add nsw i64 %178, %177
store i64 %179, ptr %15, align 8
%180 = load i64, ptr %16, align 8
%181 = load i64, ptr %16, align 8
%182 = add nsw i64 %181, %180
store i64 %182, ptr %16, align 8
%183 = load double, ptr %18, align 8
%184 = load double, ptr %19, align 8
%185 = fadd double %183, %184
%186 = load i64, ptr %17, align 8
%187 = sitofp i64 %186 to double
%188 = fadd double %185, %187
store double %188, ptr %20, align 8
br label %189
189: ; preds = %249, %146
%190 = load i32, ptr %7, align 4
%191 = load i32, ptr %8, align 4
%192 = call i32 @setPixel(i32 noundef %190, i32 noundef %191)
%193 = load i32, ptr %7, align 4
%194 = load i32, ptr %11, align 4
%195 = icmp eq i32 %193, %194
br i1 %195, label %196, label %201
196: ; preds = %189
%197 = load i32, ptr %8, align 4
%198 = load i32, ptr %12, align 4
%199 = icmp eq i32 %197, %198
br i1 %199, label %200, label %201
200: ; preds = %196
br label %258
201: ; preds = %196, %189
%202 = load double, ptr %20, align 8
%203 = fmul double 2.000000e+00, %202
%204 = load double, ptr %18, align 8
%205 = fcmp olt double %203, %204
%206 = zext i1 %205 to i32
store i32 %206, ptr %10, align 4
%207 = load double, ptr %20, align 8
%208 = fmul double 2.000000e+00, %207
%209 = load double, ptr %19, align 8
%210 = fcmp ogt double %208, %209
br i1 %210, label %211, label %225
211: ; preds = %201
%212 = load i32, ptr %13, align 4
%213 = load i32, ptr %7, align 4
%214 = add nsw i32 %213, %212
store i32 %214, ptr %7, align 4
%215 = load i64, ptr %17, align 8
%216 = sitofp i64 %215 to double
%217 = load double, ptr %18, align 8
%218 = fsub double %217, %216
store double %218, ptr %18, align 8
%219 = load i64, ptr %16, align 8
%220 = sitofp i64 %219 to double
%221 = load double, ptr %19, align 8
%222 = fadd double %221, %220
store double %222, ptr %19, align 8
%223 = load double, ptr %20, align 8
%224 = fadd double %223, %222
store double %224, ptr %20, align 8
br label %225
225: ; preds = %211, %201
%226 = load i32, ptr %10, align 4
%227 = icmp ne i32 %226, 0
br i1 %227, label %228, label %242
228: ; preds = %225
%229 = load i32, ptr %14, align 4
%230 = load i32, ptr %8, align 4
%231 = add nsw i32 %230, %229
store i32 %231, ptr %8, align 4
%232 = load i64, ptr %17, align 8
%233 = sitofp i64 %232 to double
%234 = load double, ptr %19, align 8
%235 = fsub double %234, %233
store double %235, ptr %19, align 8
%236 = load i64, ptr %15, align 8
%237 = sitofp i64 %236 to double
%238 = load double, ptr %18, align 8
%239 = fadd double %238, %237
store double %239, ptr %18, align 8
%240 = load double, ptr %20, align 8
%241 = fadd double %240, %239
store double %241, ptr %20, align 8
br label %242
242: ; preds = %228, %225
br label %243
243: ; preds = %242
%244 = load double, ptr %19, align 8
%245 = fcmp olt double %244, 0.000000e+00
br i1 %245, label %246, label %249
246: ; preds = %243
%247 = load double, ptr %18, align 8
%248 = fcmp ogt double %247, 0.000000e+00
br label %249
249: ; preds = %246, %243
%250 = phi i1 [ false, %243 ], [ %248, %246 ]
br i1 %250, label %189, label %251, !llvm.loop !6
251: ; preds = %249
br label %252
252: ; preds = %251, %91
%253 = load i32, ptr %7, align 4
%254 = load i32, ptr %8, align 4
%255 = load i32, ptr %11, align 4
%256 = load i32, ptr %12, align 4
%257 = call i32 @plotLine(i32 noundef %253, i32 noundef %254, i32 noundef %255, i32 noundef %256)
br label %258
258: ; preds = %252, %200
ret void
}
declare i32 @assert(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare i32 @setPixel(i32 noundef, i32 noundef) #1
declare i32 @plotLine(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpr0btz1iz.c'
source_filename = "/tmp/tmpr0btz1iz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @traceBegin() #0 {
%1 = call i32 (...) @traceInit()
ret void
}
declare i32 @traceInit(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr0btz1iz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @traceBegin() #0 {
%1 = call i32 (...) @traceInit()
ret void
}
declare i32 @traceInit(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcystfwnl.c'
source_filename = "/tmp/tmpcystfwnl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"skipped\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcystfwnl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"skipped\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4rjhb379.c'
source_filename = "/tmp/tmp4rjhb379.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local x86_fp80 @sinl(x86_fp80 noundef %0) #0 {
%2 = alloca x86_fp80, align 16
store x86_fp80 %0, ptr %2, align 16
%3 = load x86_fp80, ptr %2, align 16
%4 = fptrunc x86_fp80 %3 to double
%5 = call i64 @sin(double noundef %4)
%6 = sitofp i64 %5 to x86_fp80
ret x86_fp80 %6
}
declare i64 @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 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4rjhb379.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local x86_fp80 @sinl(x86_fp80 noundef %0) #0 {
%2 = alloca x86_fp80, align 16
store x86_fp80 %0, ptr %2, align 16
%3 = load x86_fp80, ptr %2, align 16
%4 = fptrunc x86_fp80 %3 to double
%5 = call i64 @sin(double noundef %4)
%6 = sitofp i64 %5 to x86_fp80
ret x86_fp80 %6
}
declare i64 @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 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4cp53gr5.c'
source_filename = "/tmp/tmp4cp53gr5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"thread %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @func(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = ptrtoint ptr %3 to i32
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
ret ptr null
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4cp53gr5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"thread %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @func(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = ptrtoint ptr %3 to i32
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
ret ptr null
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdu66cq9f.c'
source_filename = "/tmp/tmpdu66cq9f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @read_at_least(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%11 = load i32, ptr %7, align 4
store i32 %11, ptr %8, align 4
store i32 0, ptr %9, align 4
br label %12
12: ; preds = %26, %3
%13 = load i32, ptr %8, align 4
%14 = icmp sgt i32 %13, 0
br i1 %14, label %15, label %33
15: ; preds = %12
%16 = load i32, ptr %5, align 4
%17 = load ptr, ptr %6, align 8
%18 = load i32, ptr %9, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = load i32, ptr %8, align 4
%22 = call i32 @read(i32 noundef %16, ptr noundef %20, i32 noundef %21)
store i32 %22, ptr %10, align 4
%23 = load i32, ptr %10, align 4
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %15
store i32 0, ptr %4, align 4
br label %35
26: ; preds = %15
%27 = load i32, ptr %10, align 4
%28 = load i32, ptr %9, align 4
%29 = add nsw i32 %28, %27
store i32 %29, ptr %9, align 4
%30 = load i32, ptr %10, align 4
%31 = load i32, ptr %8, align 4
%32 = sub nsw i32 %31, %30
store i32 %32, ptr %8, align 4
br label %12, !llvm.loop !6
33: ; preds = %12
%34 = load i32, ptr %9, align 4
store i32 %34, ptr %4, align 4
br label %35
35: ; preds = %33, %25
%36 = load i32, ptr %4, align 4
ret i32 %36
}
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdu66cq9f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @read_at_least(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%11 = load i32, ptr %7, align 4
store i32 %11, ptr %8, align 4
store i32 0, ptr %9, align 4
%12 = load i32, ptr %8, align 4
%13 = icmp sgt i32 %12, 0
br i1 %13, label %.lr.ph, label %34
.lr.ph: ; preds = %3
br label %14
14: ; preds = %.lr.ph, %25
%15 = load i32, ptr %5, align 4
%16 = load ptr, ptr %6, align 8
%17 = load i32, ptr %9, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i32, ptr %8, align 4
%21 = call i32 @read(i32 noundef %15, ptr noundef %19, i32 noundef %20)
store i32 %21, ptr %10, align 4
%22 = load i32, ptr %10, align 4
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %14
store i32 0, ptr %4, align 4
br label %36
25: ; preds = %14
%26 = load i32, ptr %10, align 4
%27 = load i32, ptr %9, align 4
%28 = add nsw i32 %27, %26
store i32 %28, ptr %9, align 4
%29 = load i32, ptr %10, align 4
%30 = load i32, ptr %8, align 4
%31 = sub nsw i32 %30, %29
store i32 %31, ptr %8, align 4
%32 = load i32, ptr %8, align 4
%33 = icmp sgt i32 %32, 0
br i1 %33, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %34
34: ; preds = %._crit_edge, %3
%35 = load i32, ptr %9, align 4
store i32 %35, ptr %4, align 4
br label %36
36: ; preds = %34, %24
%37 = load i32, ptr %4, align 4
ret i32 %37
}
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmplla8ul0t.c'
source_filename = "/tmp/tmplla8ul0t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [13 x i8] c"line = `%s'\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"field[%d] = `%s'\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 0, ptr %1, align 4
br label %4
4: ; preds = %23, %0
%5 = load i32, ptr @stdin, align 4
%6 = call ptr @csvgetline(i32 noundef %5)
store ptr %6, ptr %3, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %8, label %24
8: ; preds = %4
%9 = load ptr, ptr %3, align 8
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %9)
store i32 0, ptr %2, align 4
br label %11
11: ; preds = %20, %8
%12 = load i32, ptr %2, align 4
%13 = call i32 (...) @csvnfield()
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %23
15: ; preds = %11
%16 = load i32, ptr %2, align 4
%17 = load i32, ptr %2, align 4
%18 = call ptr @csvfield(i32 noundef %17)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %16, ptr noundef %18)
br label %20
20: ; preds = %15
%21 = load i32, ptr %2, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %2, align 4
br label %11, !llvm.loop !6
23: ; preds = %11
br label %4, !llvm.loop !8
24: ; preds = %4
ret i32 0
}
declare ptr @csvgetline(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @csvnfield(...) #1
declare ptr @csvfield(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/tmplla8ul0t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [13 x i8] c"line = `%s'\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"field[%d] = `%s'\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%4 = load i32, ptr @stdin, align 4
%5 = call ptr @csvgetline(i32 noundef %4)
store ptr %5, ptr %3, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %.lr.ph2, label %28
.lr.ph2: ; preds = %0
br label %7
7: ; preds = %.lr.ph2, %24
%8 = load ptr, ptr %3, align 8
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %8)
store i32 0, ptr %2, align 4
%10 = load i32, ptr %2, align 4
%11 = call i32 (...) @csvnfield()
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph, label %24
.lr.ph: ; preds = %7
br label %13
13: ; preds = %.lr.ph, %18
%14 = load i32, ptr %2, align 4
%15 = load i32, ptr %2, align 4
%16 = call ptr @csvfield(i32 noundef %15)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %14, ptr noundef %16)
br label %18
18: ; preds = %13
%19 = load i32, ptr %2, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %2, align 4
%21 = load i32, ptr %2, align 4
%22 = call i32 (...) @csvnfield()
%23 = icmp slt i32 %21, %22
br i1 %23, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %24
24: ; preds = %._crit_edge, %7
%25 = load i32, ptr @stdin, align 4
%26 = call ptr @csvgetline(i32 noundef %25)
store ptr %26, ptr %3, align 8
%27 = icmp ne ptr %26, null
br i1 %27, label %7, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %24
br label %28
28: ; preds = %._crit_edge3, %0
ret i32 0
}
declare ptr @csvgetline(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @csvnfield(...) #1
declare ptr @csvfield(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/tmpoj81ouis.c'
source_filename = "/tmp/tmpoj81ouis.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Hello,World\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @HelloFunc() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoj81ouis.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Hello,World\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @HelloFunc() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_xx0mx39.c'
source_filename = "/tmp/tmp_xx0mx39.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Default_Handler() #0 {
br label %1
1: ; preds = %0, %1
br label %1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!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_xx0mx39.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Default_Handler() #0 {
br label %1
1: ; preds = %1, %0
br label %1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpa9ukv_lz.c'
source_filename = "/tmp/tmpa9ukv_lz.c"
target datalayout = "e-m:e-p270: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/tmpa9ukv_lz.c"
target datalayout = "e-m:e-p270: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/tmp0di60959.c'
source_filename = "/tmp/tmp0di60959.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @create_wait_length(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @create_write_byte(i32 noundef 156)
%4 = load i32, ptr %2, align 4
%5 = and i32 %4, 65535
%6 = ashr i32 %5, 8
%7 = call i32 @create_write_byte(i32 noundef %6)
%8 = load i32, ptr %2, align 4
%9 = and i32 %8, 255
%10 = call i32 @create_write_byte(i32 noundef %9)
ret void
}
declare i32 @create_write_byte(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/tmp0di60959.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @create_wait_length(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @create_write_byte(i32 noundef 156)
%4 = load i32, ptr %2, align 4
%5 = and i32 %4, 65535
%6 = ashr i32 %5, 8
%7 = call i32 @create_write_byte(i32 noundef %6)
%8 = load i32, ptr %2, align 4
%9 = and i32 %8, 255
%10 = call i32 @create_write_byte(i32 noundef %9)
ret void
}
declare i32 @create_write_byte(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/tmp620n5p95.c'
source_filename = "/tmp/tmp620n5p95.c"
target datalayout = "e-m:e-p270: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/tmp620n5p95.c"
target datalayout = "e-m:e-p270: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/tmp8c9b9v_8.c'
source_filename = "/tmp/tmp8c9b9v_8.c"
target datalayout = "e-m:e-p270: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/tmp8c9b9v_8.c"
target datalayout = "e-m:e-p270: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/tmpzyvbaldr.c'
source_filename = "/tmp/tmpzyvbaldr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @buildmaxheap(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = sdiv i32 %6, 2
store i32 %7, ptr %5, align 4
br label %8
8: ; preds = %16, %2
%9 = load i32, ptr %5, align 4
%10 = icmp sge i32 %9, 0
br i1 %10, label %11, label %19
11: ; preds = %8
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %4, align 4
%15 = call i32 @maxheapify(ptr noundef %12, i32 noundef %13, i32 noundef %14)
br label %16
16: ; preds = %11
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, -1
store i32 %18, ptr %5, align 4
br label %8, !llvm.loop !6
19: ; preds = %8
ret void
}
declare i32 @maxheapify(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzyvbaldr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @buildmaxheap(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = sdiv i32 %6, 2
store i32 %7, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = icmp sge i32 %8, 0
br i1 %9, label %.lr.ph, label %20
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %15
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %4, align 4
%14 = call i32 @maxheapify(ptr noundef %11, i32 noundef %12, i32 noundef %13)
br label %15
15: ; preds = %10
%16 = load i32, ptr %5, align 4
%17 = add nsw i32 %16, -1
store i32 %17, ptr %5, align 4
%18 = load i32, ptr %5, align 4
%19 = icmp sge i32 %18, 0
br i1 %19, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %20
20: ; preds = %._crit_edge, %2
ret void
}
declare i32 @maxheapify(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpj0_dp_uj.c'
source_filename = "/tmp/tmpj0_dp_uj.c"
target datalayout = "e-m:e-p270: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.dirent = type { ptr }
@.str = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"opendir\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%4 = call ptr @opendir(ptr noundef @.str)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %10, label %7
7: ; preds = %0
%8 = call i32 @perror(ptr noundef @.str.1)
%9 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %9, ptr %1, align 4
br label %27
10: ; preds = %0
%11 = load ptr, ptr %2, align 8
%12 = call ptr @readdir(ptr noundef %11)
store ptr %12, ptr %3, align 8
br label %13
13: ; preds = %16, %10
%14 = load ptr, ptr %3, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %16, label %23
16: ; preds = %13
%17 = load ptr, ptr %3, align 8
%18 = getelementptr inbounds %struct.dirent, ptr %17, i32 0, i32 0
%19 = load ptr, ptr %18, align 8
%20 = call i32 @printf(ptr noundef @.str.2, ptr noundef %19)
%21 = load ptr, ptr %2, align 8
%22 = call ptr @readdir(ptr noundef %21)
store ptr %22, ptr %3, align 8
br label %13, !llvm.loop !6
23: ; preds = %13
%24 = load ptr, ptr %2, align 8
%25 = call i32 @closedir(ptr noundef %24)
%26 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %26, ptr %1, align 4
br label %27
27: ; preds = %23, %7
%28 = load i32, ptr %1, align 4
ret i32 %28
}
declare ptr @opendir(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare ptr @readdir(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @closedir(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpj0_dp_uj.c"
target datalayout = "e-m:e-p270: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.dirent = type { ptr }
@.str = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"opendir\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%4 = call ptr @opendir(ptr noundef @.str)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %10, label %7
7: ; preds = %0
%8 = call i32 @perror(ptr noundef @.str.1)
%9 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %9, ptr %1, align 4
br label %28
10: ; preds = %0
%11 = load ptr, ptr %2, align 8
%12 = call ptr @readdir(ptr noundef %11)
store ptr %12, ptr %3, align 8
%13 = load ptr, ptr %3, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %.lr.ph, label %24
.lr.ph: ; preds = %10
br label %15
15: ; preds = %.lr.ph, %15
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds %struct.dirent, ptr %16, i32 0, i32 0
%18 = load ptr, ptr %17, align 8
%19 = call i32 @printf(ptr noundef @.str.2, ptr noundef %18)
%20 = load ptr, ptr %2, align 8
%21 = call ptr @readdir(ptr noundef %20)
store ptr %21, ptr %3, align 8
%22 = load ptr, ptr %3, align 8
%23 = icmp ne ptr %22, null
br i1 %23, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %24
24: ; preds = %._crit_edge, %10
%25 = load ptr, ptr %2, align 8
%26 = call i32 @closedir(ptr noundef %25)
%27 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %27, ptr %1, align 4
br label %28
28: ; preds = %24, %7
%29 = load i32, ptr %1, align 4
ret i32 %29
}
declare ptr @opendir(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare ptr @readdir(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @closedir(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp2y7q0er3.c'
source_filename = "/tmp/tmp2y7q0er3.c"
target datalayout = "e-m:e-p270: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/tmp2y7q0er3.c"
target datalayout = "e-m:e-p270: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/tmpwpgve0dk.c'
source_filename = "/tmp/tmpwpgve0dk.c"
target datalayout = "e-m:e-p270: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 i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @ANTweenTimingFunctionElasticIn(float noundef %0, float noundef %1, float noundef %2, float noundef %3) #0 {
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca float, align 4
store float %0, ptr %6, align 4
store float %1, ptr %7, align 4
store float %2, ptr %8, align 4
store float %3, ptr %9, align 4
%13 = load float, ptr %9, align 4
%14 = fpext float %13 to double
%15 = fmul double %14, 3.000000e-01
%16 = fptrunc double %15 to float
store float %16, ptr %10, align 4
%17 = load float, ptr %6, align 4
%18 = fcmp oeq float %17, 0.000000e+00
br i1 %18, label %19, label %21
19: ; preds = %4
%20 = load float, ptr %7, align 4
store float %20, ptr %5, align 4
br label %78
21: ; preds = %4
%22 = load float, ptr %9, align 4
%23 = load float, ptr %6, align 4
%24 = fdiv float %23, %22
store float %24, ptr %6, align 4
%25 = load float, ptr %6, align 4
%26 = fcmp oeq float %25, 1.000000e+00
br i1 %26, label %27, label %31
27: ; preds = %21
%28 = load float, ptr %7, align 4
%29 = load float, ptr %8, align 4
%30 = fadd float %28, %29
store float %30, ptr %5, align 4
br label %78
31: ; preds = %21
%32 = load float, ptr %12, align 4
%33 = fcmp une float %32, 0.000000e+00
br i1 %33, label %34, label %39
34: ; preds = %31
%35 = load float, ptr %12, align 4
%36 = load float, ptr %8, align 4
%37 = call float @llvm.fabs.f32(float %36)
%38 = fcmp olt float %35, %37
br i1 %38, label %39, label %43
39: ; preds = %34, %31
%40 = load float, ptr %8, align 4
store float %40, ptr %12, align 4
%41 = load float, ptr %10, align 4
%42 = fdiv float %41, 4.000000e+00
store float %42, ptr %11, align 4
br label %54
43: ; preds = %34
%44 = load float, ptr %10, align 4
%45 = load i32, ptr @M_PI, align 4
%46 = mul nsw i32 2, %45
%47 = sitofp i32 %46 to float
%48 = fdiv float %44, %47
%49 = load float, ptr %8, align 4
%50 = load float, ptr %12, align 4
%51 = fdiv float %49, %50
%52 = call float @asin(float noundef %51)
%53 = fmul float %48, %52
store float %53, ptr %11, align 4
br label %54
54: ; preds = %43, %39
%55 = load float, ptr %6, align 4
%56 = fsub float %55, 1.000000e+00
store float %56, ptr %6, align 4
%57 = load float, ptr %12, align 4
%58 = load float, ptr %6, align 4
%59 = fmul float 1.000000e+01, %58
%60 = fptosi float %59 to i32
%61 = call float @pow(i32 noundef 2, i32 noundef %60)
%62 = fmul float %57, %61
%63 = load float, ptr %6, align 4
%64 = load float, ptr %9, align 4
%65 = load float, ptr %11, align 4
%66 = fneg float %65
%67 = call float @llvm.fmuladd.f32(float %63, float %64, float %66)
%68 = load i32, ptr @M_PI, align 4
%69 = mul nsw i32 2, %68
%70 = sitofp i32 %69 to float
%71 = fmul float %67, %70
%72 = load float, ptr %10, align 4
%73 = fdiv float %71, %72
%74 = call float @sin(float noundef %73)
%75 = load float, ptr %7, align 4
%76 = fneg float %62
%77 = call float @llvm.fmuladd.f32(float %76, float %74, float %75)
store float %77, ptr %5, align 4
br label %78
78: ; preds = %54, %27, %19
%79 = load float, ptr %5, align 4
ret float %79
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #1
declare float @asin(float noundef) #2
declare float @pow(i32 noundef, i32 noundef) #2
declare float @sin(float noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwpgve0dk.c"
target datalayout = "e-m:e-p270: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 i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @ANTweenTimingFunctionElasticIn(float noundef %0, float noundef %1, float noundef %2, float noundef %3) #0 {
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca float, align 4
store float %0, ptr %6, align 4
store float %1, ptr %7, align 4
store float %2, ptr %8, align 4
store float %3, ptr %9, align 4
%13 = load float, ptr %9, align 4
%14 = fpext float %13 to double
%15 = fmul double %14, 3.000000e-01
%16 = fptrunc double %15 to float
store float %16, ptr %10, align 4
%17 = load float, ptr %6, align 4
%18 = fcmp oeq float %17, 0.000000e+00
br i1 %18, label %19, label %21
19: ; preds = %4
%20 = load float, ptr %7, align 4
store float %20, ptr %5, align 4
br label %78
21: ; preds = %4
%22 = load float, ptr %9, align 4
%23 = load float, ptr %6, align 4
%24 = fdiv float %23, %22
store float %24, ptr %6, align 4
%25 = load float, ptr %6, align 4
%26 = fcmp oeq float %25, 1.000000e+00
br i1 %26, label %27, label %31
27: ; preds = %21
%28 = load float, ptr %7, align 4
%29 = load float, ptr %8, align 4
%30 = fadd float %28, %29
store float %30, ptr %5, align 4
br label %78
31: ; preds = %21
%32 = load float, ptr %12, align 4
%33 = fcmp une float %32, 0.000000e+00
br i1 %33, label %34, label %39
34: ; preds = %31
%35 = load float, ptr %12, align 4
%36 = load float, ptr %8, align 4
%37 = call float @llvm.fabs.f32(float %36)
%38 = fcmp olt float %35, %37
br i1 %38, label %39, label %43
39: ; preds = %34, %31
%40 = load float, ptr %8, align 4
store float %40, ptr %12, align 4
%41 = load float, ptr %10, align 4
%42 = fdiv float %41, 4.000000e+00
store float %42, ptr %11, align 4
br label %54
43: ; preds = %34
%44 = load float, ptr %10, align 4
%45 = load i32, ptr @M_PI, align 4
%46 = mul nsw i32 2, %45
%47 = sitofp i32 %46 to float
%48 = fdiv float %44, %47
%49 = load float, ptr %8, align 4
%50 = load float, ptr %12, align 4
%51 = fdiv float %49, %50
%52 = call float @asin(float noundef %51)
%53 = fmul float %48, %52
store float %53, ptr %11, align 4
br label %54
54: ; preds = %43, %39
%55 = load float, ptr %6, align 4
%56 = fsub float %55, 1.000000e+00
store float %56, ptr %6, align 4
%57 = load float, ptr %12, align 4
%58 = load float, ptr %6, align 4
%59 = fmul float 1.000000e+01, %58
%60 = fptosi float %59 to i32
%61 = call float @pow(i32 noundef 2, i32 noundef %60)
%62 = fmul float %57, %61
%63 = load float, ptr %6, align 4
%64 = load float, ptr %9, align 4
%65 = load float, ptr %11, align 4
%66 = fneg float %65
%67 = call float @llvm.fmuladd.f32(float %63, float %64, float %66)
%68 = load i32, ptr @M_PI, align 4
%69 = mul nsw i32 2, %68
%70 = sitofp i32 %69 to float
%71 = fmul float %67, %70
%72 = load float, ptr %10, align 4
%73 = fdiv float %71, %72
%74 = call float @sin(float noundef %73)
%75 = load float, ptr %7, align 4
%76 = fneg float %62
%77 = call float @llvm.fmuladd.f32(float %76, float %74, float %75)
store float %77, ptr %5, align 4
br label %78
78: ; preds = %54, %27, %19
%79 = load float, ptr %5, align 4
ret float %79
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #1
declare float @asin(float noundef) #2
declare float @pow(i32 noundef, i32 noundef) #2
declare float @sin(float noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqgmzy3es.c'
source_filename = "/tmp/tmpqgmzy3es.c"
target datalayout = "e-m:e-p270: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/tmpqgmzy3es.c"
target datalayout = "e-m:e-p270: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/tmpfnqk0isp.c'
source_filename = "/tmp/tmpfnqk0isp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"/gpio/pin%d/direction\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [15 x i8] c"gpio/direction\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"out\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"in\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @gpio_set_dir(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [64 x i8], align 16
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%9 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%10 = load i32, ptr %4, align 4
%11 = call i32 @snprintf(ptr noundef %9, i32 noundef 64, ptr noundef @.str, i32 noundef %10)
store i32 %11, ptr %7, align 4
%12 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%13 = load i32, ptr @O_WRONLY, align 4
%14 = call i32 @open(ptr noundef %12, i32 noundef %13)
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %2
%18 = call i32 @perror(ptr noundef @.str.1)
%19 = load i32, ptr %6, align 4
store i32 %19, ptr %3, align 4
br label %32
20: ; preds = %2
%21 = load i32, ptr %5, align 4
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %20
%24 = load i32, ptr %6, align 4
%25 = call i32 @write(i32 noundef %24, ptr noundef @.str.2, i32 noundef 4)
br label %29
26: ; preds = %20
%27 = load i32, ptr %6, align 4
%28 = call i32 @write(i32 noundef %27, ptr noundef @.str.3, i32 noundef 3)
br label %29
29: ; preds = %26, %23
%30 = load i32, ptr %6, align 4
%31 = call i32 @close(i32 noundef %30)
store i32 0, ptr %3, align 4
br label %32
32: ; preds = %29, %17
%33 = load i32, ptr %3, align 4
ret i32 %33
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfnqk0isp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"/gpio/pin%d/direction\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [15 x i8] c"gpio/direction\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"out\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"in\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @gpio_set_dir(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [64 x i8], align 16
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%9 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%10 = load i32, ptr %4, align 4
%11 = call i32 @snprintf(ptr noundef %9, i32 noundef 64, ptr noundef @.str, i32 noundef %10)
store i32 %11, ptr %7, align 4
%12 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%13 = load i32, ptr @O_WRONLY, align 4
%14 = call i32 @open(ptr noundef %12, i32 noundef %13)
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %2
%18 = call i32 @perror(ptr noundef @.str.1)
%19 = load i32, ptr %6, align 4
store i32 %19, ptr %3, align 4
br label %32
20: ; preds = %2
%21 = load i32, ptr %5, align 4
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %20
%24 = load i32, ptr %6, align 4
%25 = call i32 @write(i32 noundef %24, ptr noundef @.str.2, i32 noundef 4)
br label %29
26: ; preds = %20
%27 = load i32, ptr %6, align 4
%28 = call i32 @write(i32 noundef %27, ptr noundef @.str.3, i32 noundef 3)
br label %29
29: ; preds = %26, %23
%30 = load i32, ptr %6, align 4
%31 = call i32 @close(i32 noundef %30)
store i32 0, ptr %3, align 4
br label %32
32: ; preds = %29, %17
%33 = load i32, ptr %3, align 4
ret i32 %33
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpm125hkwv.c'
source_filename = "/tmp/tmpm125hkwv.c"
target datalayout = "e-m:e-p270: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 [28 x i8] c"can't convert to double %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @trans_double(ptr noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca ptr, align 8
%5 = alloca double, align 8
%6 = alloca ptr, align 8
%7 = alloca double, align 8
store ptr %0, ptr %4, align 8
store double %1, ptr %5, align 8
store ptr null, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = call double @strtod(ptr noundef %8, ptr noundef %6)
store double %9, ptr %7, align 8
%10 = load ptr, ptr %6, align 8
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %19
14: ; preds = %2
%15 = load i32, ptr @stderr, align 4
%16 = load ptr, ptr %4, align 8
%17 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str, ptr noundef %16)
%18 = load double, ptr %5, align 8
store double %18, ptr %3, align 8
br label %21
19: ; preds = %2
%20 = load double, ptr %7, align 8
store double %20, ptr %3, align 8
br label %21
21: ; preds = %19, %14
%22 = load double, ptr %3, align 8
ret double %22
}
declare double @strtod(ptr noundef, ptr noundef) #1
declare i32 @fprintf(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/tmpm125hkwv.c"
target datalayout = "e-m:e-p270: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 [28 x i8] c"can't convert to double %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @trans_double(ptr noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca ptr, align 8
%5 = alloca double, align 8
%6 = alloca ptr, align 8
%7 = alloca double, align 8
store ptr %0, ptr %4, align 8
store double %1, ptr %5, align 8
store ptr null, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = call double @strtod(ptr noundef %8, ptr noundef %6)
store double %9, ptr %7, align 8
%10 = load ptr, ptr %6, align 8
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %19
14: ; preds = %2
%15 = load i32, ptr @stderr, align 4
%16 = load ptr, ptr %4, align 8
%17 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str, ptr noundef %16)
%18 = load double, ptr %5, align 8
store double %18, ptr %3, align 8
br label %21
19: ; preds = %2
%20 = load double, ptr %7, align 8
store double %20, ptr %3, align 8
br label %21
21: ; preds = %19, %14
%22 = load double, ptr %3, align 8
ret double %22
}
declare double @strtod(ptr noundef, ptr noundef) #1
declare i32 @fprintf(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/tmpxog8g_g_.c'
source_filename = "/tmp/tmpxog8g_g_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c"Error(gcf):a too large, ITMAX too small\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gcf(ptr noundef %0, float noundef %1, float noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca float, align 4
%13 = alloca float, align 4
%14 = alloca float, align 4
%15 = alloca float, align 4
store ptr %0, ptr %5, align 8
store float %1, ptr %6, align 4
store float %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%16 = load float, ptr %6, align 4
%17 = call float @gammln(float noundef %16)
%18 = load ptr, ptr %8, align 8
store float %17, ptr %18, align 4
%19 = load float, ptr %7, align 4
%20 = fpext float %19 to double
%21 = fadd double %20, 1.000000e+00
%22 = load float, ptr %6, align 4
%23 = fpext float %22 to double
%24 = fsub double %21, %23
%25 = fptrunc double %24 to float
store float %25, ptr %11, align 4
store float 0x46293E5940000000, ptr %12, align 4
%26 = load float, ptr %11, align 4
%27 = fpext float %26 to double
%28 = fdiv double 1.000000e+00, %27
%29 = fptrunc double %28 to float
store float %29, ptr %13, align 4
%30 = load float, ptr %13, align 4
store float %30, ptr %15, align 4
store i32 1, ptr %9, align 4
br label %31
31: ; preds = %84, %4
%32 = load i32, ptr %9, align 4
%33 = icmp sle i32 %32, 100
br i1 %33, label %34, label %87
34: ; preds = %31
%35 = load i32, ptr %9, align 4
%36 = sub nsw i32 0, %35
%37 = sitofp i32 %36 to float
%38 = load i32, ptr %9, align 4
%39 = sitofp i32 %38 to float
%40 = load float, ptr %6, align 4
%41 = fsub float %39, %40
%42 = fmul float %37, %41
store float %42, ptr %10, align 4
%43 = load float, ptr %11, align 4
%44 = fpext float %43 to double
%45 = fadd double %44, 2.000000e+00
%46 = fptrunc double %45 to float
store float %46, ptr %11, align 4
%47 = load float, ptr %10, align 4
%48 = load float, ptr %13, align 4
%49 = load float, ptr %11, align 4
%50 = call float @llvm.fmuladd.f32(float %47, float %48, float %49)
store float %50, ptr %13, align 4
%51 = load float, ptr %13, align 4
%52 = call double @fabs(float noundef %51)
%53 = fcmp olt double %52, 1.000000e-30
br i1 %53, label %54, label %55
54: ; preds = %34
store float 0x39B4484C00000000, ptr %13, align 4
br label %55
55: ; preds = %54, %34
%56 = load float, ptr %11, align 4
%57 = load float, ptr %10, align 4
%58 = load float, ptr %12, align 4
%59 = fdiv float %57, %58
%60 = fadd float %56, %59
store float %60, ptr %12, align 4
%61 = load float, ptr %12, align 4
%62 = call double @fabs(float noundef %61)
%63 = fcmp olt double %62, 1.000000e-30
br i1 %63, label %64, label %65
64: ; preds = %55
store float 0x39B4484C00000000, ptr %12, align 4
br label %65
65: ; preds = %64, %55
%66 = load float, ptr %13, align 4
%67 = fpext float %66 to double
%68 = fdiv double 1.000000e+00, %67
%69 = fptrunc double %68 to float
store float %69, ptr %13, align 4
%70 = load float, ptr %13, align 4
%71 = load float, ptr %12, align 4
%72 = fmul float %70, %71
store float %72, ptr %14, align 4
%73 = load float, ptr %14, align 4
%74 = load float, ptr %15, align 4
%75 = fmul float %74, %73
store float %75, ptr %15, align 4
%76 = load float, ptr %14, align 4
%77 = fpext float %76 to double
%78 = fsub double %77, 1.000000e+00
%79 = fptrunc double %78 to float
%80 = call double @fabs(float noundef %79)
%81 = fcmp olt double %80, 3.000000e-07
br i1 %81, label %82, label %83
82: ; preds = %65
br label %87
83: ; preds = %65
br label %84
84: ; preds = %83
%85 = load i32, ptr %9, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %9, align 4
br label %31, !llvm.loop !6
87: ; preds = %82, %31
%88 = load i32, ptr %9, align 4
%89 = icmp sgt i32 %88, 100
br i1 %89, label %90, label %92
90: ; preds = %87
%91 = call i32 @printf(ptr noundef @.str)
br label %92
92: ; preds = %90, %87
%93 = load float, ptr %7, align 4
%94 = fneg float %93
%95 = load float, ptr %6, align 4
%96 = load float, ptr %7, align 4
%97 = call float @log(float noundef %96)
%98 = call float @llvm.fmuladd.f32(float %95, float %97, float %94)
%99 = load ptr, ptr %8, align 8
%100 = load float, ptr %99, align 4
%101 = fsub float %98, %100
%102 = call float @exp(float noundef %101)
%103 = load float, ptr %15, align 4
%104 = fmul float %102, %103
%105 = load ptr, ptr %5, align 8
store float %104, ptr %105, align 4
ret void
}
declare float @gammln(float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
declare double @fabs(float noundef) #1
declare i32 @printf(ptr noundef) #1
declare float @exp(float noundef) #1
declare float @log(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxog8g_g_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c"Error(gcf):a too large, ITMAX too small\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gcf(ptr noundef %0, float noundef %1, float noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca float, align 4
%13 = alloca float, align 4
%14 = alloca float, align 4
%15 = alloca float, align 4
store ptr %0, ptr %5, align 8
store float %1, ptr %6, align 4
store float %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%16 = load float, ptr %6, align 4
%17 = call float @gammln(float noundef %16)
%18 = load ptr, ptr %8, align 8
store float %17, ptr %18, align 4
%19 = load float, ptr %7, align 4
%20 = fpext float %19 to double
%21 = fadd double %20, 1.000000e+00
%22 = load float, ptr %6, align 4
%23 = fpext float %22 to double
%24 = fsub double %21, %23
%25 = fptrunc double %24 to float
store float %25, ptr %11, align 4
store float 0x46293E5940000000, ptr %12, align 4
%26 = load float, ptr %11, align 4
%27 = fpext float %26 to double
%28 = fdiv double 1.000000e+00, %27
%29 = fptrunc double %28 to float
store float %29, ptr %13, align 4
%30 = load float, ptr %13, align 4
store float %30, ptr %15, align 4
store i32 1, ptr %9, align 4
%31 = load i32, ptr %9, align 4
%32 = icmp sle i32 %31, 100
br i1 %32, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %4
br label %33
33: ; preds = %.lr.ph, %83
%34 = load i32, ptr %9, align 4
%35 = sub nsw i32 0, %34
%36 = sitofp i32 %35 to float
%37 = load i32, ptr %9, align 4
%38 = sitofp i32 %37 to float
%39 = load float, ptr %6, align 4
%40 = fsub float %38, %39
%41 = fmul float %36, %40
store float %41, ptr %10, align 4
%42 = load float, ptr %11, align 4
%43 = fpext float %42 to double
%44 = fadd double %43, 2.000000e+00
%45 = fptrunc double %44 to float
store float %45, ptr %11, align 4
%46 = load float, ptr %10, align 4
%47 = load float, ptr %13, align 4
%48 = load float, ptr %11, align 4
%49 = call float @llvm.fmuladd.f32(float %46, float %47, float %48)
store float %49, ptr %13, align 4
%50 = load float, ptr %13, align 4
%51 = call double @fabs(float noundef %50)
%52 = fcmp olt double %51, 1.000000e-30
br i1 %52, label %53, label %54
53: ; preds = %33
store float 0x39B4484C00000000, ptr %13, align 4
br label %54
54: ; preds = %53, %33
%55 = load float, ptr %11, align 4
%56 = load float, ptr %10, align 4
%57 = load float, ptr %12, align 4
%58 = fdiv float %56, %57
%59 = fadd float %55, %58
store float %59, ptr %12, align 4
%60 = load float, ptr %12, align 4
%61 = call double @fabs(float noundef %60)
%62 = fcmp olt double %61, 1.000000e-30
br i1 %62, label %63, label %64
63: ; preds = %54
store float 0x39B4484C00000000, ptr %12, align 4
br label %64
64: ; preds = %63, %54
%65 = load float, ptr %13, align 4
%66 = fpext float %65 to double
%67 = fdiv double 1.000000e+00, %66
%68 = fptrunc double %67 to float
store float %68, ptr %13, align 4
%69 = load float, ptr %13, align 4
%70 = load float, ptr %12, align 4
%71 = fmul float %69, %70
store float %71, ptr %14, align 4
%72 = load float, ptr %14, align 4
%73 = load float, ptr %15, align 4
%74 = fmul float %73, %72
store float %74, ptr %15, align 4
%75 = load float, ptr %14, align 4
%76 = fpext float %75 to double
%77 = fsub double %76, 1.000000e+00
%78 = fptrunc double %77 to float
%79 = call double @fabs(float noundef %78)
%80 = fcmp olt double %79, 3.000000e-07
br i1 %80, label %81, label %82
81: ; preds = %64
br label %88
82: ; preds = %64
br label %83
83: ; preds = %82
%84 = load i32, ptr %9, align 4
%85 = add nsw i32 %84, 1
store i32 %85, ptr %9, align 4
%86 = load i32, ptr %9, align 4
%87 = icmp sle i32 %86, 100
br i1 %87, label %33, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %83
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %4
br label %88
88: ; preds = %.loopexit, %81
%89 = load i32, ptr %9, align 4
%90 = icmp sgt i32 %89, 100
br i1 %90, label %91, label %93
91: ; preds = %88
%92 = call i32 @printf(ptr noundef @.str)
br label %93
93: ; preds = %91, %88
%94 = load float, ptr %7, align 4
%95 = fneg float %94
%96 = load float, ptr %6, align 4
%97 = load float, ptr %7, align 4
%98 = call float @log(float noundef %97)
%99 = call float @llvm.fmuladd.f32(float %96, float %98, float %95)
%100 = load ptr, ptr %8, align 8
%101 = load float, ptr %100, align 4
%102 = fsub float %99, %101
%103 = call float @exp(float noundef %102)
%104 = load float, ptr %15, align 4
%105 = fmul float %103, %104
%106 = load ptr, ptr %5, align 8
store float %105, ptr %106, align 4
ret void
}
declare float @gammln(float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
declare double @fabs(float noundef) #1
declare i32 @printf(ptr noundef) #1
declare float @exp(float noundef) #1
declare float @log(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpamsnyk5o.c'
source_filename = "/tmp/tmpamsnyk5o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"# c::%s:len=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"ssumkbn2\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"ok %d benchmark finished\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%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 %1, align 4
%8 = call i32 @time(ptr noundef null)
%9 = call i32 @srand(i32 noundef %8)
%10 = call i32 (...) @print_version()
store i32 0, ptr %3, align 4
store i32 1, ptr %6, align 4
br label %11
11: ; preds = %41, %0
%12 = load i32, ptr %6, align 4
%13 = icmp sle i32 %12, 6
br i1 %13, label %14, label %44
14: ; preds = %11
%15 = load i32, ptr %6, align 4
%16 = call i32 @pow(i32 noundef 10, i32 noundef %15)
store i32 %16, ptr %5, align 4
%17 = load i32, ptr %6, align 4
%18 = sub nsw i32 %17, 1
%19 = call i32 @pow(i32 noundef 10, i32 noundef %18)
%20 = sdiv i32 1000000, %19
store i32 %20, ptr %4, align 4
store i32 0, ptr %7, align 4
br label %21
21: ; preds = %37, %14
%22 = load i32, ptr %7, align 4
%23 = icmp slt i32 %22, 3
br i1 %23, label %24, label %40
24: ; preds = %21
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %3, align 4
%27 = load i32, ptr %5, align 4
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef %27)
%29 = load i32, ptr %4, align 4
%30 = load i32, ptr %5, align 4
%31 = call double @benchmark(i32 noundef %29, i32 noundef %30)
store double %31, ptr %2, align 8
%32 = load i32, ptr %4, align 4
%33 = load double, ptr %2, align 8
%34 = call i32 @print_results(i32 noundef %32, double noundef %33)
%35 = load i32, ptr %3, align 4
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %35)
br label %37
37: ; preds = %24
%38 = load i32, ptr %7, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %7, align 4
br label %21, !llvm.loop !6
40: ; preds = %21
br label %41
41: ; preds = %40
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4
br label %11, !llvm.loop !8
44: ; preds = %11
%45 = load i32, ptr %3, align 4
%46 = load i32, ptr %3, align 4
%47 = call i32 @print_summary(i32 noundef %45, i32 noundef %46)
%48 = load i32, ptr %1, align 4
ret i32 %48
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @print_version(...) #1
declare i32 @pow(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @benchmark(i32 noundef, i32 noundef) #1
declare i32 @print_results(i32 noundef, double noundef) #1
declare i32 @print_summary(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpamsnyk5o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"# c::%s:len=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"ssumkbn2\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"ok %d benchmark finished\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%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 %1, align 4
%8 = call i32 @time(ptr noundef null)
%9 = call i32 @srand(i32 noundef %8)
%10 = call i32 (...) @print_version()
store i32 0, ptr %3, align 4
store i32 1, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp sle i32 %11, 6
br i1 %12, label %.lr.ph2, label %46
.lr.ph2: ; preds = %0
br label %13
13: ; preds = %.lr.ph2, %41
%14 = load i32, ptr %6, align 4
%15 = call i32 @pow(i32 noundef 10, i32 noundef %14)
store i32 %15, ptr %5, align 4
%16 = load i32, ptr %6, align 4
%17 = sub nsw i32 %16, 1
%18 = call i32 @pow(i32 noundef 10, i32 noundef %17)
%19 = sdiv i32 1000000, %18
store i32 %19, ptr %4, align 4
store i32 0, ptr %7, align 4
%20 = load i32, ptr %7, align 4
%21 = icmp slt i32 %20, 3
br i1 %21, label %.lr.ph, label %40
.lr.ph: ; preds = %13
br label %22
22: ; preds = %.lr.ph, %35
%23 = load i32, ptr %3, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %3, align 4
%25 = load i32, ptr %5, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef %25)
%27 = load i32, ptr %4, align 4
%28 = load i32, ptr %5, align 4
%29 = call double @benchmark(i32 noundef %27, i32 noundef %28)
store double %29, ptr %2, align 8
%30 = load i32, ptr %4, align 4
%31 = load double, ptr %2, align 8
%32 = call i32 @print_results(i32 noundef %30, double noundef %31)
%33 = load i32, ptr %3, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %33)
br label %35
35: ; preds = %22
%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, 3
br i1 %39, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %35
br label %40
40: ; preds = %._crit_edge, %13
br label %41
41: ; preds = %40
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4
%44 = load i32, ptr %6, align 4
%45 = icmp sle i32 %44, 6
br i1 %45, label %13, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %41
br label %46
46: ; preds = %._crit_edge3, %0
%47 = load i32, ptr %3, align 4
%48 = load i32, ptr %3, align 4
%49 = call i32 @print_summary(i32 noundef %47, i32 noundef %48)
%50 = load i32, ptr %1, align 4
ret i32 %50
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @print_version(...) #1
declare i32 @pow(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @benchmark(i32 noundef, i32 noundef) #1
declare i32 @print_results(i32 noundef, double noundef) #1
declare i32 @print_summary(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpjlfp_a79.c'
source_filename = "/tmp/tmpjlfp_a79.c"
target datalayout = "e-m:e-p270: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/tmpjlfp_a79.c"
target datalayout = "e-m:e-p270: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/tmpsmva6fy5.c'
source_filename = "/tmp/tmpsmva6fy5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"collisionLog.log\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"collisionLog\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"record in LSH\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"fin\00", align 1
@.str.6 = private unnamed_addr constant [8 x i8] c"%u.hash\00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c"rb+\00", align 1
@.str.8 = private unnamed_addr constant [6 x i8] c"hfile\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.9 = private unnamed_addr constant [15 x i8] c"fseek in hfile\00", align 1
@.str.10 = private unnamed_addr constant [4 x i8] c"%u\0A\00", align 1
@SEEK_CUR = dso_local global i32 0, align 4
@.str.11 = private unnamed_addr constant [16 x i8] c"fseek in hfile2\00", align 1
@.str.12 = private unnamed_addr constant [7 x i8] c"fwrite\00", align 1
@stdout = dso_local global ptr null, align 8
@.str.13 = private unnamed_addr constant [26 x i8] c"number of overflows = %u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @PreprocessLSH(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca [8 x ptr], align 16
%5 = alloca ptr, align 8
%6 = alloca [7 x i8], align 1
%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 ptr, align 8
store ptr %0, ptr %2, align 8
%15 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %15, ptr %14, align 8
%16 = load ptr, ptr %14, align 8
%17 = icmp eq ptr %16, null
br i1 %17, label %18, label %20
18: ; preds = %1
%19 = call i32 @perror(ptr noundef @.str.2)
br label %20
20: ; preds = %18, %1
%21 = call ptr @malloc(i32 noundef 1024)
store ptr %21, ptr %5, align 8
%22 = load ptr, ptr %5, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %27
24: ; preds = %20
%25 = call i32 @perror(ptr noundef @.str.3)
%26 = call i32 @exit(i32 noundef -1) #3
unreachable
27: ; preds = %20
%28 = load ptr, ptr %2, align 8
%29 = call ptr @fopen(ptr noundef %28, ptr noundef @.str.4)
store ptr %29, ptr %3, align 8
%30 = load ptr, ptr %3, align 8
%31 = icmp eq ptr %30, null
br i1 %31, label %32, label %35
32: ; preds = %27
%33 = call i32 @perror(ptr noundef @.str.5)
%34 = call i32 @exit(i32 noundef -1) #3
unreachable
35: ; preds = %27
store i32 0, ptr %7, align 4
br label %36
36: ; preds = %59, %35
%37 = load i32, ptr %7, align 4
%38 = icmp ult i32 %37, 8
br i1 %38, label %39, label %62
39: ; preds = %36
%40 = getelementptr inbounds [7 x i8], ptr %6, i64 0, i64 0
%41 = call i32 @memset(ptr noundef %40, i8 noundef signext 0, i32 noundef 4)
%42 = getelementptr inbounds [7 x i8], ptr %6, i64 0, i64 0
%43 = load i32, ptr %7, align 4
%44 = call i32 @sprintf(ptr noundef %42, ptr noundef @.str.6, i32 noundef %43)
%45 = getelementptr inbounds [7 x i8], ptr %6, i64 0, i64 0
%46 = call ptr @fopen(ptr noundef %45, ptr noundef @.str.7)
%47 = load i32, ptr %7, align 4
%48 = zext i32 %47 to i64
%49 = getelementptr inbounds [8 x ptr], ptr %4, i64 0, i64 %48
store ptr %46, ptr %49, align 8
%50 = load i32, ptr %7, align 4
%51 = zext i32 %50 to i64
%52 = getelementptr inbounds [8 x ptr], ptr %4, i64 0, i64 %51
%53 = load ptr, ptr %52, align 8
%54 = icmp eq ptr %53, null
br i1 %54, label %55, label %58
55: ; preds = %39
%56 = call i32 @perror(ptr noundef @.str.8)
%57 = call i32 @exit(i32 noundef -1) #3
unreachable
58: ; preds = %39
br label %59
59: ; preds = %58
%60 = load i32, ptr %7, align 4
%61 = add i32 %60, 1
store i32 %61, ptr %7, align 4
br label %36, !llvm.loop !6
62: ; preds = %36
store i32 0, ptr %13, align 4
br label %63
63: ; preds = %145, %62
%64 = load ptr, ptr %3, align 8
%65 = call i32 @feof(ptr noundef %64)
%66 = icmp ne i32 %65, 0
%67 = xor i1 %66, true
br i1 %67, label %68, label %146
68: ; preds = %63
%69 = load ptr, ptr %5, align 8
%70 = load ptr, ptr %3, align 8
%71 = call i32 @fread(ptr noundef %69, i32 noundef 1024, i32 noundef 1, ptr noundef %70)
store i32 0, ptr %7, align 4
br label %72
72: ; preds = %142, %68
%73 = load i32, ptr %7, align 4
%74 = icmp ult i32 %73, 32
br i1 %74, label %75, label %145
75: ; preds = %72
%76 = load ptr, ptr %5, align 8
%77 = load i32, ptr %7, align 4
%78 = call i32 @HashValue(ptr noundef %76, i32 noundef %77)
store i32 %78, ptr %9, align 4
%79 = load i32, ptr %9, align 4
%80 = and i32 %79, 7
store i32 %80, ptr %10, align 4
%81 = load i32, ptr %9, align 4
%82 = udiv i32 %81, 8
store i32 %82, ptr %11, align 4
%83 = load i32, ptr %10, align 4
%84 = zext i32 %83 to i64
%85 = getelementptr inbounds [8 x ptr], ptr %4, i64 0, i64 %84
%86 = load ptr, ptr %85, align 8
%87 = load i32, ptr %11, align 4
%88 = zext i32 %87 to i64
%89 = mul i64 256, %88
%90 = trunc i64 %89 to i32
%91 = load i32, ptr @SEEK_SET, align 4
%92 = call i64 @fseek(ptr noundef %86, i32 noundef %90, i32 noundef %91)
%93 = icmp slt i64 %92, 0
br i1 %93, label %94, label %96
94: ; preds = %75
%95 = call i32 @perror(ptr noundef @.str.9)
br label %96
96: ; preds = %94, %75
%97 = load ptr, ptr %14, align 8
%98 = load i32, ptr %9, align 4
%99 = call i32 @fprintf(ptr noundef %97, ptr noundef @.str.10, i32 noundef %98)
store i32 1, ptr %12, align 4
br label %100
100: ; preds = %112, %96
%101 = load i32, ptr %12, align 4
%102 = icmp ule i32 %101, 64
br i1 %102, label %103, label %115
103: ; preds = %100
%104 = load i32, ptr %10, align 4
%105 = zext i32 %104 to i64
%106 = getelementptr inbounds [8 x ptr], ptr %4, i64 0, i64 %105
%107 = load ptr, ptr %106, align 8
%108 = call i32 @fread(ptr noundef %8, i32 noundef 4, i32 noundef 1, ptr noundef %107)
%109 = load i32, ptr %8, align 4
%110 = icmp eq i32 %109, 0
br i1 %110, label %111, label %112
111: ; preds = %103
br label %115
112: ; preds = %103
%113 = load i32, ptr %12, align 4
%114 = add i32 %113, 1
store i32 %114, ptr %12, align 4
br label %100, !llvm.loop !8
115: ; preds = %111, %100
%116 = load i32, ptr %8, align 4
%117 = icmp ne i32 %116, 0
br i1 %117, label %118, label %121
118: ; preds = %115
%119 = load i32, ptr %13, align 4
%120 = add i32 %119, 1
store i32 %120, ptr %13, align 4
br label %142
121: ; preds = %115
%122 = load i32, ptr %10, align 4
%123 = zext i32 %122 to i64
%124 = getelementptr inbounds [8 x ptr], ptr %4, i64 0, i64 %123
%125 = load ptr, ptr %124, align 8
%126 = load i32, ptr @SEEK_CUR, align 4
%127 = call i64 @fseek(ptr noundef %125, i32 noundef -4, i32 noundef %126)
%128 = icmp slt i64 %127, 0
br i1 %128, label %129, label %131
129: ; preds = %121
%130 = call i32 @perror(ptr noundef @.str.11)
br label %131
131: ; preds = %129, %121
%132 = load ptr, ptr %5, align 8
%133 = load i32, ptr %10, align 4
%134 = zext i32 %133 to i64
%135 = getelementptr inbounds [8 x ptr], ptr %4, i64 0, i64 %134
%136 = load ptr, ptr %135, align 8
%137 = call i32 @fwrite(ptr noundef %132, i32 noundef 4, i32 noundef 1, ptr noundef %136)
%138 = icmp ne i32 %137, 1
br i1 %138, label %139, label %141
139: ; preds = %131
%140 = call i32 @perror(ptr noundef @.str.12)
br label %141
141: ; preds = %139, %131
br label %142
142: ; preds = %141, %118
%143 = load i32, ptr %7, align 4
%144 = add i32 %143, 1
store i32 %144, ptr %7, align 4
br label %72, !llvm.loop !9
145: ; preds = %72
br label %63, !llvm.loop !10
146: ; preds = %63
%147 = load ptr, ptr @stdout, align 8
%148 = load i32, ptr %13, align 4
%149 = call i32 @fprintf(ptr noundef %147, ptr noundef @.str.13, i32 noundef %148)
%150 = load ptr, ptr %3, align 8
%151 = call i32 @fclose(ptr noundef %150)
%152 = load ptr, ptr %14, align 8
%153 = call i32 @fclose(ptr noundef %152)
%154 = load ptr, ptr %5, align 8
%155 = call i32 @free(ptr noundef %154)
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @feof(ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @HashValue(ptr noundef, i32 noundef) #1
declare i64 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(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" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsmva6fy5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"collisionLog.log\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"collisionLog\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"record in LSH\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"fin\00", align 1
@.str.6 = private unnamed_addr constant [8 x i8] c"%u.hash\00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c"rb+\00", align 1
@.str.8 = private unnamed_addr constant [6 x i8] c"hfile\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.9 = private unnamed_addr constant [15 x i8] c"fseek in hfile\00", align 1
@.str.10 = private unnamed_addr constant [4 x i8] c"%u\0A\00", align 1
@SEEK_CUR = dso_local global i32 0, align 4
@.str.11 = private unnamed_addr constant [16 x i8] c"fseek in hfile2\00", align 1
@.str.12 = private unnamed_addr constant [7 x i8] c"fwrite\00", align 1
@stdout = dso_local global ptr null, align 8
@.str.13 = private unnamed_addr constant [26 x i8] c"number of overflows = %u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @PreprocessLSH(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca [8 x ptr], align 16
%5 = alloca ptr, align 8
%6 = alloca [7 x i8], align 1
%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 ptr, align 8
store ptr %0, ptr %2, align 8
%15 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %15, ptr %14, align 8
%16 = load ptr, ptr %14, align 8
%17 = icmp eq ptr %16, null
br i1 %17, label %18, label %20
18: ; preds = %1
%19 = call i32 @perror(ptr noundef @.str.2)
br label %20
20: ; preds = %18, %1
%21 = call ptr @malloc(i32 noundef 1024)
store ptr %21, ptr %5, align 8
%22 = load ptr, ptr %5, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %27
24: ; preds = %20
%25 = call i32 @perror(ptr noundef @.str.3)
%26 = call i32 @exit(i32 noundef -1) #3
unreachable
27: ; preds = %20
%28 = load ptr, ptr %2, align 8
%29 = call ptr @fopen(ptr noundef %28, ptr noundef @.str.4)
store ptr %29, ptr %3, align 8
%30 = load ptr, ptr %3, align 8
%31 = icmp eq ptr %30, null
br i1 %31, label %32, label %35
32: ; preds = %27
%33 = call i32 @perror(ptr noundef @.str.5)
%34 = call i32 @exit(i32 noundef -1) #3
unreachable
35: ; preds = %27
store i32 0, ptr %7, align 4
%36 = load i32, ptr %7, align 4
%37 = icmp ult i32 %36, 8
br i1 %37, label %.lr.ph, label %63
.lr.ph: ; preds = %35
br label %38
38: ; preds = %.lr.ph, %58
%39 = getelementptr inbounds [7 x i8], ptr %6, i64 0, i64 0
%40 = call i32 @memset(ptr noundef %39, i8 noundef signext 0, i32 noundef 4)
%41 = getelementptr inbounds [7 x i8], ptr %6, i64 0, i64 0
%42 = load i32, ptr %7, align 4
%43 = call i32 @sprintf(ptr noundef %41, ptr noundef @.str.6, i32 noundef %42)
%44 = getelementptr inbounds [7 x i8], ptr %6, i64 0, i64 0
%45 = call ptr @fopen(ptr noundef %44, ptr noundef @.str.7)
%46 = load i32, ptr %7, align 4
%47 = zext i32 %46 to i64
%48 = getelementptr inbounds [8 x ptr], ptr %4, i64 0, i64 %47
store ptr %45, ptr %48, align 8
%49 = load i32, ptr %7, align 4
%50 = zext i32 %49 to i64
%51 = getelementptr inbounds [8 x ptr], ptr %4, i64 0, i64 %50
%52 = load ptr, ptr %51, align 8
%53 = icmp eq ptr %52, null
br i1 %53, label %54, label %57
54: ; preds = %38
%55 = call i32 @perror(ptr noundef @.str.8)
%56 = call i32 @exit(i32 noundef -1) #3
unreachable
57: ; preds = %38
br label %58
58: ; preds = %57
%59 = load i32, ptr %7, align 4
%60 = add i32 %59, 1
store i32 %60, ptr %7, align 4
%61 = load i32, ptr %7, align 4
%62 = icmp ult i32 %61, 8
br i1 %62, label %38, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %58
br label %63
63: ; preds = %._crit_edge, %35
store i32 0, ptr %13, align 4
%64 = load ptr, ptr %3, align 8
%65 = call i32 @feof(ptr noundef %64)
%66 = icmp ne i32 %65, 0
%67 = xor i1 %66, true
br i1 %67, label %.lr.ph7, label %152
.lr.ph7: ; preds = %63
br label %68
68: ; preds = %.lr.ph7, %147
%69 = load ptr, ptr %5, align 8
%70 = load ptr, ptr %3, align 8
%71 = call i32 @fread(ptr noundef %69, i32 noundef 1024, i32 noundef 1, ptr noundef %70)
store i32 0, ptr %7, align 4
%72 = load i32, ptr %7, align 4
%73 = icmp ult i32 %72, 32
br i1 %73, label %.lr.ph4, label %147
.lr.ph4: ; preds = %68
br label %74
74: ; preds = %.lr.ph4, %142
%75 = load ptr, ptr %5, align 8
%76 = load i32, ptr %7, align 4
%77 = call i32 @HashValue(ptr noundef %75, i32 noundef %76)
store i32 %77, ptr %9, align 4
%78 = load i32, ptr %9, align 4
%79 = and i32 %78, 7
store i32 %79, ptr %10, align 4
%80 = load i32, ptr %9, align 4
%81 = udiv i32 %80, 8
store i32 %81, ptr %11, align 4
%82 = load i32, ptr %10, align 4
%83 = zext i32 %82 to i64
%84 = getelementptr inbounds [8 x ptr], ptr %4, i64 0, i64 %83
%85 = load ptr, ptr %84, align 8
%86 = load i32, ptr %11, align 4
%87 = zext i32 %86 to i64
%88 = mul i64 256, %87
%89 = trunc i64 %88 to i32
%90 = load i32, ptr @SEEK_SET, align 4
%91 = call i64 @fseek(ptr noundef %85, i32 noundef %89, i32 noundef %90)
%92 = icmp slt i64 %91, 0
br i1 %92, label %93, label %95
93: ; preds = %74
%94 = call i32 @perror(ptr noundef @.str.9)
br label %95
95: ; preds = %93, %74
%96 = load ptr, ptr %14, align 8
%97 = load i32, ptr %9, align 4
%98 = call i32 @fprintf(ptr noundef %96, ptr noundef @.str.10, i32 noundef %97)
store i32 1, ptr %12, align 4
%99 = load i32, ptr %12, align 4
%100 = icmp ule i32 %99, 64
br i1 %100, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %95
br label %101
101: ; preds = %.lr.ph2, %110
%102 = load i32, ptr %10, align 4
%103 = zext i32 %102 to i64
%104 = getelementptr inbounds [8 x ptr], ptr %4, i64 0, i64 %103
%105 = load ptr, ptr %104, align 8
%106 = call i32 @fread(ptr noundef %8, i32 noundef 4, i32 noundef 1, ptr noundef %105)
%107 = load i32, ptr %8, align 4
%108 = icmp eq i32 %107, 0
br i1 %108, label %109, label %110
109: ; preds = %101
br label %115
110: ; preds = %101
%111 = load i32, ptr %12, align 4
%112 = add i32 %111, 1
store i32 %112, ptr %12, align 4
%113 = load i32, ptr %12, align 4
%114 = icmp ule i32 %113, 64
br i1 %114, label %101, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %110
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %95
br label %115
115: ; preds = %.loopexit, %109
%116 = load i32, ptr %8, align 4
%117 = icmp ne i32 %116, 0
br i1 %117, label %118, label %121
118: ; preds = %115
%119 = load i32, ptr %13, align 4
%120 = add i32 %119, 1
store i32 %120, ptr %13, align 4
br label %142
121: ; preds = %115
%122 = load i32, ptr %10, align 4
%123 = zext i32 %122 to i64
%124 = getelementptr inbounds [8 x ptr], ptr %4, i64 0, i64 %123
%125 = load ptr, ptr %124, align 8
%126 = load i32, ptr @SEEK_CUR, align 4
%127 = call i64 @fseek(ptr noundef %125, i32 noundef -4, i32 noundef %126)
%128 = icmp slt i64 %127, 0
br i1 %128, label %129, label %131
129: ; preds = %121
%130 = call i32 @perror(ptr noundef @.str.11)
br label %131
131: ; preds = %129, %121
%132 = load ptr, ptr %5, align 8
%133 = load i32, ptr %10, align 4
%134 = zext i32 %133 to i64
%135 = getelementptr inbounds [8 x ptr], ptr %4, i64 0, i64 %134
%136 = load ptr, ptr %135, align 8
%137 = call i32 @fwrite(ptr noundef %132, i32 noundef 4, i32 noundef 1, ptr noundef %136)
%138 = icmp ne i32 %137, 1
br i1 %138, label %139, label %141
139: ; preds = %131
%140 = call i32 @perror(ptr noundef @.str.12)
br label %141
141: ; preds = %139, %131
br label %142
142: ; preds = %141, %118
%143 = load i32, ptr %7, align 4
%144 = add i32 %143, 1
store i32 %144, ptr %7, align 4
%145 = load i32, ptr %7, align 4
%146 = icmp ult i32 %145, 32
br i1 %146, label %74, label %._crit_edge5, !llvm.loop !9
._crit_edge5: ; preds = %142
br label %147
147: ; preds = %._crit_edge5, %68
%148 = load ptr, ptr %3, align 8
%149 = call i32 @feof(ptr noundef %148)
%150 = icmp ne i32 %149, 0
%151 = xor i1 %150, true
br i1 %151, label %68, label %._crit_edge8, !llvm.loop !10
._crit_edge8: ; preds = %147
br label %152
152: ; preds = %._crit_edge8, %63
%153 = load ptr, ptr @stdout, align 8
%154 = load i32, ptr %13, align 4
%155 = call i32 @fprintf(ptr noundef %153, ptr noundef @.str.13, i32 noundef %154)
%156 = load ptr, ptr %3, align 8
%157 = call i32 @fclose(ptr noundef %156)
%158 = load ptr, ptr %14, align 8
%159 = call i32 @fclose(ptr noundef %158)
%160 = load ptr, ptr %5, align 8
%161 = call i32 @free(ptr noundef %160)
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @feof(ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @HashValue(ptr noundef, i32 noundef) #1
declare i64 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(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" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpp4f7tie0.c'
source_filename = "/tmp/tmpp4f7tie0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong willreturn memory(none) uwtable
define dso_local ptr @__nacl_read_tp() #0 {
%1 = call ptr (...) @__nacl_irt_tls_get()
ret ptr %1
}
declare ptr @__nacl_irt_tls_get(...) #1
attributes #0 = { noinline nounwind sspstrong willreturn memory(none) uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp4f7tie0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong willreturn memory(none) uwtable
define dso_local ptr @__nacl_read_tp() #0 {
%1 = call ptr (...) @__nacl_irt_tls_get()
ret ptr %1
}
declare ptr @__nacl_irt_tls_get(...) #1
attributes #0 = { noinline nounwind sspstrong willreturn memory(none) uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp33atsy9c.c'
source_filename = "/tmp/tmp33atsy9c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"test.milk\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [34 x i8] c"loaded, starting 200 frames test\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"done test, doing deinit\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"finished test\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [578 x i32], align 16
%9 = alloca [1024 x i16], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = call i32 @sagevis_init(i32 noundef 100)
%11 = call i32 @sagevis_loadpreset(ptr noundef @.str)
%12 = load i32, ptr @stderr, align 4
%13 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str.1)
store i32 0, ptr %6, align 4
br label %14
14: ; preds = %21, %2
%15 = load i32, ptr %6, align 4
%16 = icmp slt i32 %15, 200
br i1 %16, label %17, label %24
17: ; preds = %14
%18 = getelementptr inbounds [1024 x i16], ptr %9, i64 0, i64 0
%19 = getelementptr inbounds [578 x i32], ptr %8, i64 0, i64 0
%20 = call i32 @sagevis_update(ptr noundef %18, ptr noundef %7, ptr noundef %19)
br label %21
21: ; preds = %17
%22 = load i32, ptr %6, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %6, align 4
br label %14, !llvm.loop !6
24: ; preds = %14
%25 = load i32, ptr @stderr, align 4
%26 = call i32 @fprintf(i32 noundef %25, ptr noundef @.str.2)
%27 = call i32 (...) @sagevis_deinit()
%28 = load i32, ptr @stderr, align 4
%29 = call i32 @fprintf(i32 noundef %28, ptr noundef @.str.3)
ret i32 0
}
declare i32 @sagevis_init(i32 noundef) #1
declare i32 @sagevis_loadpreset(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @sagevis_update(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @sagevis_deinit(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp33atsy9c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"test.milk\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [34 x i8] c"loaded, starting 200 frames test\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"done test, doing deinit\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"finished test\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [578 x i32], align 16
%9 = alloca [1024 x i16], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = call i32 @sagevis_init(i32 noundef 100)
%11 = call i32 @sagevis_loadpreset(ptr noundef @.str)
%12 = load i32, ptr @stderr, align 4
%13 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str.1)
store i32 0, ptr %6, align 4
%14 = load i32, ptr %6, align 4
%15 = icmp slt i32 %14, 200
br i1 %15, label %.lr.ph, label %25
.lr.ph: ; preds = %2
br label %16
16: ; preds = %.lr.ph, %20
%17 = getelementptr inbounds [1024 x i16], ptr %9, i64 0, i64 0
%18 = getelementptr inbounds [578 x i32], ptr %8, i64 0, i64 0
%19 = call i32 @sagevis_update(ptr noundef %17, ptr noundef %7, ptr noundef %18)
br label %20
20: ; preds = %16
%21 = load i32, ptr %6, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %6, align 4
%23 = load i32, ptr %6, align 4
%24 = icmp slt i32 %23, 200
br i1 %24, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %25
25: ; preds = %._crit_edge, %2
%26 = load i32, ptr @stderr, align 4
%27 = call i32 @fprintf(i32 noundef %26, ptr noundef @.str.2)
%28 = call i32 (...) @sagevis_deinit()
%29 = load i32, ptr @stderr, align 4
%30 = call i32 @fprintf(i32 noundef %29, ptr noundef @.str.3)
ret i32 0
}
declare i32 @sagevis_init(i32 noundef) #1
declare i32 @sagevis_loadpreset(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @sagevis_update(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @sagevis_deinit(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpszr1rnnu.c'
source_filename = "/tmp/tmpszr1rnnu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @kmp_table(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
%9 = call i64 @strlen(ptr noundef %8)
store i64 %9, ptr %7, align 8
store i64 2, ptr %5, align 8
store i64 0, ptr %6, align 8
%10 = load ptr, ptr %4, align 8
%11 = getelementptr inbounds i32, ptr %10, i64 0
store i32 -1, ptr %11, align 4
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds i32, ptr %12, i64 1
store i32 0, ptr %13, align 4
br label %14
14: ; preds = %58, %2
%15 = load i64, ptr %5, align 8
%16 = load i64, ptr %7, align 8
%17 = icmp ult i64 %15, %16
br i1 %17, label %18, label %59
18: ; preds = %14
%19 = load ptr, ptr %3, align 8
%20 = load i64, ptr %5, align 8
%21 = sub i64 %20, 1
%22 = getelementptr inbounds i8, ptr %19, i64 %21
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = load ptr, ptr %3, align 8
%26 = load i64, ptr %6, align 8
%27 = getelementptr inbounds i8, ptr %25, i64 %26
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %24, %29
br i1 %30, label %31, label %42
31: ; preds = %18
%32 = load i64, ptr %6, align 8
%33 = add i64 %32, 1
%34 = trunc i64 %33 to i32
%35 = load ptr, ptr %4, align 8
%36 = load i64, ptr %5, align 8
%37 = getelementptr inbounds i32, ptr %35, i64 %36
store i32 %34, ptr %37, align 4
%38 = load i64, ptr %6, align 8
%39 = add i64 %38, 1
store i64 %39, ptr %6, align 8
%40 = load i64, ptr %5, align 8
%41 = add i64 %40, 1
store i64 %41, ptr %5, align 8
br label %58
42: ; preds = %18
%43 = load i64, ptr %6, align 8
%44 = icmp ugt i64 %43, 0
br i1 %44, label %45, label %51
45: ; preds = %42
%46 = load ptr, ptr %4, align 8
%47 = load i64, ptr %6, align 8
%48 = getelementptr inbounds i32, ptr %46, i64 %47
%49 = load i32, ptr %48, align 4
%50 = sext i32 %49 to i64
store i64 %50, ptr %6, align 8
br label %57
51: ; preds = %42
%52 = load ptr, ptr %4, align 8
%53 = load i64, ptr %5, align 8
%54 = getelementptr inbounds i32, ptr %52, i64 %53
store i32 0, ptr %54, align 4
%55 = load i64, ptr %5, align 8
%56 = add i64 %55, 1
store i64 %56, ptr %5, align 8
br label %57
57: ; preds = %51, %45
br label %58
58: ; preds = %57, %31
br label %14, !llvm.loop !6
59: ; preds = %14
ret void
}
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpszr1rnnu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @kmp_table(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
%9 = call i64 @strlen(ptr noundef %8)
store i64 %9, ptr %7, align 8
store i64 2, ptr %5, align 8
store i64 0, ptr %6, align 8
%10 = load ptr, ptr %4, align 8
%11 = getelementptr inbounds i32, ptr %10, i64 0
store i32 -1, ptr %11, align 4
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds i32, ptr %12, i64 1
store i32 0, ptr %13, align 4
%14 = load i64, ptr %5, align 8
%15 = load i64, ptr %7, align 8
%16 = icmp ult i64 %14, %15
br i1 %16, label %.lr.ph, label %61
.lr.ph: ; preds = %2
br label %17
17: ; preds = %.lr.ph, %57
%18 = load ptr, ptr %3, align 8
%19 = load i64, ptr %5, align 8
%20 = sub i64 %19, 1
%21 = getelementptr inbounds i8, ptr %18, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = load ptr, ptr %3, align 8
%25 = load i64, ptr %6, align 8
%26 = getelementptr inbounds i8, ptr %24, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %23, %28
br i1 %29, label %30, label %41
30: ; preds = %17
%31 = load i64, ptr %6, align 8
%32 = add i64 %31, 1
%33 = trunc i64 %32 to i32
%34 = load ptr, ptr %4, align 8
%35 = load i64, ptr %5, align 8
%36 = getelementptr inbounds i32, ptr %34, i64 %35
store i32 %33, ptr %36, align 4
%37 = load i64, ptr %6, align 8
%38 = add i64 %37, 1
store i64 %38, ptr %6, align 8
%39 = load i64, ptr %5, align 8
%40 = add i64 %39, 1
store i64 %40, ptr %5, align 8
br label %57
41: ; preds = %17
%42 = load i64, ptr %6, align 8
%43 = icmp ugt i64 %42, 0
br i1 %43, label %44, label %50
44: ; preds = %41
%45 = load ptr, ptr %4, align 8
%46 = load i64, ptr %6, align 8
%47 = getelementptr inbounds i32, ptr %45, i64 %46
%48 = load i32, ptr %47, align 4
%49 = sext i32 %48 to i64
store i64 %49, ptr %6, align 8
br label %56
50: ; preds = %41
%51 = load ptr, ptr %4, align 8
%52 = load i64, ptr %5, align 8
%53 = getelementptr inbounds i32, ptr %51, i64 %52
store i32 0, ptr %53, align 4
%54 = load i64, ptr %5, align 8
%55 = add i64 %54, 1
store i64 %55, ptr %5, align 8
br label %56
56: ; preds = %50, %44
br label %57
57: ; preds = %56, %30
%58 = load i64, ptr %5, align 8
%59 = load i64, ptr %7, align 8
%60 = icmp ult i64 %58, %59
br i1 %60, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %57
br label %61
61: ; preds = %._crit_edge, %2
ret void
}
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpyrl4y2eu.c'
source_filename = "/tmp/tmpyrl4y2eu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@HIDIOCGREPORT = dso_local global i32 0, align 4
@HIDIOCGUSAGES = dso_local global i32 0, align 4
@HID_REPORT_TYPE_INPUT = dso_local global ptr null, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyrl4y2eu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@HIDIOCGREPORT = dso_local global i32 0, align 4
@HIDIOCGUSAGES = dso_local global i32 0, align 4
@HID_REPORT_TYPE_INPUT = dso_local global ptr null, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmucn6fq0.c'
source_filename = "/tmp/tmpmucn6fq0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @serialDataBlock(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
br label %7
7: ; preds = %16, %2
%8 = load i32, ptr %4, align 4
%9 = call i32 @serialDataAvail(i32 noundef %8)
store i32 %9, ptr %6, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %18
12: ; preds = %7
%13 = load i32, ptr %6, align 4
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %12
store i32 -1, ptr %3, align 4
br label %19
16: ; preds = %12
%17 = call i32 @usleep(i32 noundef 5)
br label %7, !llvm.loop !6
18: ; preds = %7
store i32 1, ptr %3, align 4
br label %19
19: ; preds = %18, %15
%20 = load i32, ptr %3, align 4
ret i32 %20
}
declare i32 @serialDataAvail(i32 noundef) #1
declare i32 @usleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmucn6fq0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @serialDataBlock(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = call i32 @serialDataAvail(i32 noundef %7)
store i32 %8, ptr %6, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %21
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %15
%12 = load i32, ptr %6, align 4
%13 = icmp slt i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %11
store i32 -1, ptr %3, align 4
br label %22
15: ; preds = %11
%16 = call i32 @usleep(i32 noundef 5)
%17 = load i32, ptr %4, align 4
%18 = call i32 @serialDataAvail(i32 noundef %17)
store i32 %18, ptr %6, align 4
%19 = load i32, ptr %5, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %21
21: ; preds = %._crit_edge, %2
store i32 1, ptr %3, align 4
br label %22
22: ; preds = %21, %14
%23 = load i32, ptr %3, align 4
ret i32 %23
}
declare i32 @serialDataAvail(i32 noundef) #1
declare i32 @usleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp01hhjadz.c'
source_filename = "/tmp/tmp01hhjadz.c"
target datalayout = "e-m:e-p270: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/tmp01hhjadz.c"
target datalayout = "e-m:e-p270: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/tmpeylypdmr.c'
source_filename = "/tmp/tmpeylypdmr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"d:be:\00", align 1
@optarg = dso_local global ptr null, align 8
@optopt = dso_local global i8 0, align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"rawText.bin\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [48 x i8] c"Option -e requires a filename. Set to default.\0A\00", align 1
@.str.4 = private unnamed_addr constant [56 x i8] c"Battletoads & Double Dragon - The Ultimate Team (U).nes\00", align 1
@.str.5 = private unnamed_addr constant [48 x i8] c"Option -d requires a filename. Set to default.\0A\00", align 1
@.str.6 = private unnamed_addr constant [31 x i8] c"Unknown option character: %c.\0A\00", align 1
@.str.7 = private unnamed_addr constant [46 x i8] c"Cannot find encode/decode flags in arguments.\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [51 x i8] c"Usage: aBsenTminDeD -d fileName [-b] [-e fileName]\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 i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr @.str, ptr %6, align 8
%11 = load i32, ptr %4, align 4
%12 = icmp sgt i32 %11, 1
br i1 %12, label %13, label %70
13: ; preds = %2
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
br label %14
14: ; preds = %48, %13
%15 = load i32, ptr %4, align 4
%16 = load ptr, ptr %5, align 8
%17 = call i32 @getopt(i32 noundef %15, ptr noundef %16, ptr noundef @.str.1)
store i32 %17, ptr %7, align 4
%18 = icmp ne i32 %17, -1
br i1 %18, label %19, label %49
19: ; preds = %14
%20 = load i32, ptr %7, align 4
switch i32 %20, label %47 [
i32 100, label %21
i32 101, label %23
i32 98, label %25
i32 63, label %26
]
21: ; preds = %19
store i32 1, ptr %8, align 4
%22 = load ptr, ptr @optarg, align 8
store ptr %22, ptr %6, align 8
br label %48
23: ; preds = %19
store i32 1, ptr %9, align 4
%24 = load ptr, ptr @optarg, align 8
store ptr %24, ptr %6, align 8
br label %48
25: ; preds = %19
store i32 1, ptr %10, align 4
br label %48
26: ; preds = %19
%27 = load i8, ptr @optopt, align 1
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %28, 101
br i1 %29, label %30, label %33
30: ; preds = %26
store ptr @.str.2, ptr %6, align 8
%31 = load i32, ptr @stderr, align 4
%32 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %31, ptr noundef @.str.3)
br label %46
33: ; preds = %26
%34 = load i8, ptr @optopt, align 1
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 100
br i1 %36, label %37, label %40
37: ; preds = %33
store ptr @.str.4, ptr %6, align 8
%38 = load i32, ptr @stderr, align 4
%39 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %38, ptr noundef @.str.5)
br label %45
40: ; preds = %33
%41 = load i32, ptr @stderr, align 4
%42 = load i8, ptr @optopt, align 1
%43 = sext i8 %42 to i32
%44 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %41, ptr noundef @.str.6, i32 noundef %43)
br label %45
45: ; preds = %40, %37
br label %46
46: ; preds = %45, %30
br label %47
47: ; preds = %19, %46
br label %48
48: ; preds = %47, %25, %23, %21
br label %14, !llvm.loop !6
49: ; preds = %14
%50 = load i32, ptr %8, align 4
%51 = icmp ne i32 %50, 0
br i1 %51, label %52, label %56
52: ; preds = %49
%53 = load ptr, ptr %6, align 8
%54 = load i32, ptr %10, align 4
%55 = call i32 @decodeFile(ptr noundef %53, i32 noundef %54)
br label %69
56: ; preds = %49
%57 = load i32, ptr %9, align 4
%58 = icmp ne i32 %57, 0
br i1 %58, label %59, label %62
59: ; preds = %56
%60 = load ptr, ptr %6, align 8
%61 = call i32 @encodeFile(ptr noundef %60)
br label %68
62: ; preds = %56
%63 = load i32, ptr @stderr, align 4
%64 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %63, ptr noundef @.str.7)
%65 = call i32 (...) @getchar()
%66 = load i32, ptr @EXIT_FAILURE, align 4
%67 = call i32 @exit(i32 noundef %66) #3
unreachable
68: ; preds = %59
br label %69
69: ; preds = %68, %52
br label %76
70: ; preds = %2
%71 = load i32, ptr @stderr, align 4
%72 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %71, ptr noundef @.str.8)
%73 = call i32 (...) @getchar()
%74 = load i32, ptr @EXIT_FAILURE, align 4
%75 = call i32 @exit(i32 noundef %74) #3
unreachable
76: ; preds = %69
ret i32 0
}
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @decodeFile(ptr noundef, i32 noundef) #1
declare i32 @encodeFile(ptr noundef) #1
declare i32 @getchar(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeylypdmr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"d:be:\00", align 1
@optarg = dso_local global ptr null, align 8
@optopt = dso_local global i8 0, align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"rawText.bin\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [48 x i8] c"Option -e requires a filename. Set to default.\0A\00", align 1
@.str.4 = private unnamed_addr constant [56 x i8] c"Battletoads & Double Dragon - The Ultimate Team (U).nes\00", align 1
@.str.5 = private unnamed_addr constant [48 x i8] c"Option -d requires a filename. Set to default.\0A\00", align 1
@.str.6 = private unnamed_addr constant [31 x i8] c"Unknown option character: %c.\0A\00", align 1
@.str.7 = private unnamed_addr constant [46 x i8] c"Cannot find encode/decode flags in arguments.\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [51 x i8] c"Usage: aBsenTminDeD -d fileName [-b] [-e fileName]\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 i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr @.str, ptr %6, align 8
%11 = load i32, ptr %4, align 4
%12 = icmp sgt i32 %11, 1
br i1 %12, label %13, label %73
13: ; preds = %2
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
%14 = load i32, ptr %4, align 4
%15 = load ptr, ptr %5, align 8
%16 = call i32 @getopt(i32 noundef %14, ptr noundef %15, ptr noundef @.str.1)
store i32 %16, ptr %7, align 4
%17 = icmp ne i32 %16, -1
br i1 %17, label %.lr.ph, label %52
.lr.ph: ; preds = %13
br label %18
18: ; preds = %.lr.ph, %47
%19 = load i32, ptr %7, align 4
switch i32 %19, label %46 [
i32 100, label %20
i32 101, label %22
i32 98, label %24
i32 63, label %25
]
20: ; preds = %18
store i32 1, ptr %8, align 4
%21 = load ptr, ptr @optarg, align 8
store ptr %21, ptr %6, align 8
br label %47
22: ; preds = %18
store i32 1, ptr %9, align 4
%23 = load ptr, ptr @optarg, align 8
store ptr %23, ptr %6, align 8
br label %47
24: ; preds = %18
store i32 1, ptr %10, align 4
br label %47
25: ; preds = %18
%26 = load i8, ptr @optopt, align 1
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 101
br i1 %28, label %29, label %32
29: ; preds = %25
store ptr @.str.2, ptr %6, align 8
%30 = load i32, ptr @stderr, align 4
%31 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %30, ptr noundef @.str.3)
br label %45
32: ; preds = %25
%33 = load i8, ptr @optopt, align 1
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 100
br i1 %35, label %36, label %39
36: ; preds = %32
store ptr @.str.4, ptr %6, align 8
%37 = load i32, ptr @stderr, align 4
%38 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %37, ptr noundef @.str.5)
br label %44
39: ; preds = %32
%40 = load i32, ptr @stderr, align 4
%41 = load i8, ptr @optopt, align 1
%42 = sext i8 %41 to i32
%43 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %40, ptr noundef @.str.6, i32 noundef %42)
br label %44
44: ; preds = %39, %36
br label %45
45: ; preds = %44, %29
br label %46
46: ; preds = %45, %18
br label %47
47: ; preds = %46, %24, %22, %20
%48 = load i32, ptr %4, align 4
%49 = load ptr, ptr %5, align 8
%50 = call i32 @getopt(i32 noundef %48, ptr noundef %49, ptr noundef @.str.1)
store i32 %50, ptr %7, align 4
%51 = icmp ne i32 %50, -1
br i1 %51, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %47
br label %52
52: ; preds = %._crit_edge, %13
%53 = load i32, ptr %8, align 4
%54 = icmp ne i32 %53, 0
br i1 %54, label %55, label %59
55: ; preds = %52
%56 = load ptr, ptr %6, align 8
%57 = load i32, ptr %10, align 4
%58 = call i32 @decodeFile(ptr noundef %56, i32 noundef %57)
br label %72
59: ; preds = %52
%60 = load i32, ptr %9, align 4
%61 = icmp ne i32 %60, 0
br i1 %61, label %62, label %65
62: ; preds = %59
%63 = load ptr, ptr %6, align 8
%64 = call i32 @encodeFile(ptr noundef %63)
br label %71
65: ; preds = %59
%66 = load i32, ptr @stderr, align 4
%67 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %66, ptr noundef @.str.7)
%68 = call i32 (...) @getchar()
%69 = load i32, ptr @EXIT_FAILURE, align 4
%70 = call i32 @exit(i32 noundef %69) #3
unreachable
71: ; preds = %62
br label %72
72: ; preds = %71, %55
br label %79
73: ; preds = %2
%74 = load i32, ptr @stderr, align 4
%75 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %74, ptr noundef @.str.8)
%76 = call i32 (...) @getchar()
%77 = load i32, ptr @EXIT_FAILURE, align 4
%78 = call i32 @exit(i32 noundef %77) #3
unreachable
79: ; preds = %72
ret i32 0
}
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @decodeFile(ptr noundef, i32 noundef) #1
declare i32 @encodeFile(ptr noundef) #1
declare i32 @getchar(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpw2i45h3p.c'
source_filename = "/tmp/tmpw2i45h3p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%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 %4, ptr noundef %5, ptr noundef %6, ptr noundef %7)
%9 = load float, ptr %6, align 4
%10 = load float, ptr %4, align 4
%11 = fdiv float %9, %10
%12 = load float, ptr %7, align 4
%13 = load float, ptr %5, align 4
%14 = fdiv float %12, %13
%15 = fcmp oeq float %11, %14
br i1 %15, label %24, label %16
16: ; preds = %0
%17 = load float, ptr %4, align 4
%18 = load float, ptr %6, align 4
%19 = fdiv float %17, %18
%20 = load float, ptr %5, align 4
%21 = load float, ptr %7, align 4
%22 = fdiv float %20, %21
%23 = fcmp oeq float %19, %22
br i1 %23, label %24, label %26
24: ; preds = %16, %0
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %62
26: ; preds = %16
%27 = load float, ptr %4, align 4
%28 = load float, ptr %6, align 4
%29 = fmul float %27, %28
%30 = load float, ptr %5, align 4
%31 = load float, ptr %7, align 4
%32 = fsub float %30, %31
%33 = fmul float %29, %32
%34 = load float, ptr %5, align 4
%35 = load float, ptr %6, align 4
%36 = load float, ptr %7, align 4
%37 = load float, ptr %4, 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 %2, align 4
%42 = load float, ptr %5, align 4
%43 = load float, ptr %7, align 4
%44 = fmul float %42, %43
%45 = load float, ptr %4, align 4
%46 = load float, ptr %6, align 4
%47 = fsub float %45, %46
%48 = fmul float %44, %47
%49 = load float, ptr %4, align 4
%50 = load float, ptr %7, align 4
%51 = load float, ptr %6, align 4
%52 = load float, ptr %5, align 4
%53 = fmul float %51, %52
%54 = fneg float %53
%55 = call float @llvm.fmuladd.f32(float %49, float %50, float %54)
%56 = fdiv float %48, %55
store float %56, ptr %3, align 4
%57 = load float, ptr %2, align 4
%58 = fpext float %57 to double
%59 = load float, ptr %3, align 4
%60 = fpext float %59 to double
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %58, double noundef %60)
br label %62
62: ; preds = %26, %24
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr 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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw2i45h3p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%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 %4, ptr noundef %5, ptr noundef %6, ptr noundef %7)
%9 = load float, ptr %6, align 4
%10 = load float, ptr %4, align 4
%11 = fdiv float %9, %10
%12 = load float, ptr %7, align 4
%13 = load float, ptr %5, align 4
%14 = fdiv float %12, %13
%15 = fcmp oeq float %11, %14
br i1 %15, label %24, label %16
16: ; preds = %0
%17 = load float, ptr %4, align 4
%18 = load float, ptr %6, align 4
%19 = fdiv float %17, %18
%20 = load float, ptr %5, align 4
%21 = load float, ptr %7, align 4
%22 = fdiv float %20, %21
%23 = fcmp oeq float %19, %22
br i1 %23, label %24, label %26
24: ; preds = %16, %0
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %62
26: ; preds = %16
%27 = load float, ptr %4, align 4
%28 = load float, ptr %6, align 4
%29 = fmul float %27, %28
%30 = load float, ptr %5, align 4
%31 = load float, ptr %7, align 4
%32 = fsub float %30, %31
%33 = fmul float %29, %32
%34 = load float, ptr %5, align 4
%35 = load float, ptr %6, align 4
%36 = load float, ptr %7, align 4
%37 = load float, ptr %4, 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 %2, align 4
%42 = load float, ptr %5, align 4
%43 = load float, ptr %7, align 4
%44 = fmul float %42, %43
%45 = load float, ptr %4, align 4
%46 = load float, ptr %6, align 4
%47 = fsub float %45, %46
%48 = fmul float %44, %47
%49 = load float, ptr %4, align 4
%50 = load float, ptr %7, align 4
%51 = load float, ptr %6, align 4
%52 = load float, ptr %5, align 4
%53 = fmul float %51, %52
%54 = fneg float %53
%55 = call float @llvm.fmuladd.f32(float %49, float %50, float %54)
%56 = fdiv float %48, %55
store float %56, ptr %3, align 4
%57 = load float, ptr %2, align 4
%58 = fpext float %57 to double
%59 = load float, ptr %3, align 4
%60 = fpext float %59 to double
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %58, double noundef %60)
br label %62
62: ; preds = %26, %24
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr 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"}
|
; ModuleID = '/tmp/tmp2v7msspp.c'
source_filename = "/tmp/tmp2v7msspp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_iscntrl.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"iscntrl should be 0 for 0xcf\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_iscntrl_0xcf() #0 {
%1 = call i64 @iscntrl(i32 noundef 207)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 1040, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @iscntrl(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/tmp2v7msspp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_iscntrl.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"iscntrl should be 0 for 0xcf\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_iscntrl_0xcf() #0 {
%1 = call i64 @iscntrl(i32 noundef 207)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 1040, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @iscntrl(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/tmp3dqnwy50.c'
source_filename = "/tmp/tmp3dqnwy50.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get32(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @get16(ptr noundef %4)
%6 = trunc i64 %5 to i32
%7 = shl i32 %6, 16
%8 = load ptr, ptr %2, align 8
%9 = call i64 @get16(ptr noundef %8)
%10 = trunc i64 %9 to i32
%11 = or i32 %7, %10
store i32 %11, ptr %3, align 4
%12 = load i32, ptr %3, align 4
ret i32 %12
}
declare i64 @get16(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3dqnwy50.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get32(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @get16(ptr noundef %4)
%6 = trunc i64 %5 to i32
%7 = shl i32 %6, 16
%8 = load ptr, ptr %2, align 8
%9 = call i64 @get16(ptr noundef %8)
%10 = trunc i64 %9 to i32
%11 = or i32 %7, %10
store i32 %11, ptr %3, align 4
%12 = load i32, ptr %3, align 4
ret i32 %12
}
declare i64 @get16(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbk93b_v4.c'
source_filename = "/tmp/tmpbk93b_v4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%i\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"Case %i: %i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %7, align 4
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
br label %10
10: ; preds = %43, %0
%11 = load i32, ptr %7, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %7, align 4
%13 = load i32, ptr %2, align 4
%14 = icmp slt i32 %11, %13
br i1 %14, label %15, label %51
15: ; preds = %10
store i32 2, ptr %8, align 4
%16 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%17 = load i32, ptr %4, align 4
store i32 %17, ptr %3, align 4
store i32 %17, ptr %5, align 4
br label %18
18: ; preds = %38, %15
%19 = load i32, ptr %8, align 4
%20 = add nsw i32 %19, -1
store i32 %20, ptr %8, align 4
%21 = icmp ne i32 %19, 0
br i1 %21, label %22, label %43
22: ; preds = %18
%23 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
%24 = load i32, ptr %6, align 4
%25 = load i32, ptr %3, align 4
%26 = icmp sgt i32 %24, %25
br i1 %26, label %27, label %29
27: ; preds = %22
%28 = load i32, ptr %6, align 4
store i32 %28, ptr %3, align 4
br label %38
29: ; preds = %22
%30 = load i32, ptr %6, align 4
%31 = load i32, ptr %4, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %35
33: ; preds = %29
%34 = load i32, ptr %6, align 4
store i32 %34, ptr %4, align 4
br label %36
35: ; preds = %29
br label %36
36: ; preds = %35, %33
%37 = phi i32 [ %34, %33 ], [ 1, %35 ]
br label %38
38: ; preds = %36, %27
%39 = phi i32 [ %28, %27 ], [ %37, %36 ]
%40 = load i32, ptr %6, align 4
%41 = load i32, ptr %5, align 4
%42 = add nsw i32 %41, %40
store i32 %42, ptr %5, align 4
br label %18, !llvm.loop !6
43: ; preds = %18
%44 = load i32, ptr %7, align 4
%45 = load i32, ptr %5, align 4
%46 = load i32, ptr %3, align 4
%47 = sub nsw i32 %45, %46
%48 = load i32, ptr %4, align 4
%49 = sub nsw i32 %47, %48
%50 = call i32 @printf(ptr noundef @.str.1, i32 noundef %44, i32 noundef %49)
br label %10, !llvm.loop !8
51: ; preds = %10
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbk93b_v4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%i\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"Case %i: %i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %7, align 4
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%10 = load i32, ptr %7, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp slt i32 %10, %12
br i1 %13, label %.lr.ph2, label %56
.lr.ph2: ; preds = %0
br label %14
14: ; preds = %.lr.ph2, %44
store i32 2, ptr %8, align 4
%15 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%16 = load i32, ptr %4, align 4
store i32 %16, ptr %3, align 4
store i32 %16, ptr %5, align 4
%17 = load i32, ptr %8, align 4
%18 = add nsw i32 %17, -1
store i32 %18, ptr %8, align 4
%19 = icmp ne i32 %17, 0
br i1 %19, label %.lr.ph, label %44
.lr.ph: ; preds = %14
br label %20
20: ; preds = %.lr.ph, %36
%21 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
%22 = load i32, ptr %6, align 4
%23 = load i32, ptr %3, align 4
%24 = icmp sgt i32 %22, %23
br i1 %24, label %25, label %27
25: ; preds = %20
%26 = load i32, ptr %6, align 4
store i32 %26, ptr %3, align 4
br label %36
27: ; preds = %20
%28 = load i32, ptr %6, align 4
%29 = load i32, ptr %4, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %31, label %33
31: ; preds = %27
%32 = load i32, ptr %6, align 4
store i32 %32, ptr %4, align 4
br label %34
33: ; preds = %27
br label %34
34: ; preds = %33, %31
%35 = phi i32 [ %32, %31 ], [ 1, %33 ]
br label %36
36: ; preds = %34, %25
%37 = phi i32 [ %26, %25 ], [ %35, %34 ]
%38 = load i32, ptr %6, align 4
%39 = load i32, ptr %5, align 4
%40 = add nsw i32 %39, %38
store i32 %40, ptr %5, align 4
%41 = load i32, ptr %8, align 4
%42 = add nsw i32 %41, -1
store i32 %42, ptr %8, align 4
%43 = icmp ne i32 %41, 0
br i1 %43, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %36
br label %44
44: ; preds = %._crit_edge, %14
%45 = load i32, ptr %7, align 4
%46 = load i32, ptr %5, align 4
%47 = load i32, ptr %3, align 4
%48 = sub nsw i32 %46, %47
%49 = load i32, ptr %4, align 4
%50 = sub nsw i32 %48, %49
%51 = call i32 @printf(ptr noundef @.str.1, i32 noundef %45, i32 noundef %50)
%52 = load i32, ptr %7, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %7, align 4
%54 = load i32, ptr %2, align 4
%55 = icmp slt i32 %52, %54
br i1 %55, label %14, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %44
br label %56
56: ; preds = %._crit_edge3, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmptl7xql3p.c'
source_filename = "/tmp/tmptl7xql3p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @integralBlur(ptr noundef %0, i64 noundef %1, i64 noundef %2, i32 noundef %3, i32 noundef %4, float noundef %5) #0 {
%7 = alloca float, align 4
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca float, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca float, align 4
store ptr %0, ptr %8, align 8
store i64 %1, ptr %9, align 8
store i64 %2, ptr %10, align 8
store i32 %3, ptr %11, align 4
store i32 %4, ptr %12, align 4
store float %5, ptr %13, align 4
%19 = load i32, ptr %11, align 4
%20 = sitofp i32 %19 to float
%21 = load float, ptr %13, align 4
%22 = fadd float %20, %21
%23 = load i64, ptr %9, align 8
%24 = uitofp i64 %23 to float
%25 = fcmp olt float %22, %24
br i1 %25, label %26, label %32
26: ; preds = %6
%27 = load i32, ptr %11, align 4
%28 = sitofp i32 %27 to float
%29 = load float, ptr %13, align 4
%30 = fadd float %28, %29
%31 = fptosi float %30 to i32
br label %36
32: ; preds = %6
%33 = load i64, ptr %9, align 8
%34 = sub i64 %33, 1
%35 = trunc i64 %34 to i32
br label %36
36: ; preds = %32, %26
%37 = phi i32 [ %31, %26 ], [ %35, %32 ]
store i32 %37, ptr %14, align 4
%38 = load i32, ptr %11, align 4
%39 = sitofp i32 %38 to float
%40 = load float, ptr %13, align 4
%41 = fsub float %39, %40
%42 = fcmp oge float %41, 0.000000e+00
br i1 %42, label %43, label %49
43: ; preds = %36
%44 = load i32, ptr %11, align 4
%45 = sitofp i32 %44 to float
%46 = load float, ptr %13, align 4
%47 = fsub float %45, %46
%48 = fptosi float %47 to i32
br label %50
49: ; preds = %36
br label %50
50: ; preds = %49, %43
%51 = phi i32 [ %48, %43 ], [ 0, %49 ]
store i32 %51, ptr %15, align 4
%52 = load i32, ptr %12, align 4
%53 = sitofp i32 %52 to float
%54 = load float, ptr %13, align 4
%55 = fadd float %53, %54
%56 = load i64, ptr %10, align 8
%57 = uitofp i64 %56 to float
%58 = fcmp olt float %55, %57
br i1 %58, label %59, label %65
59: ; preds = %50
%60 = load i32, ptr %12, align 4
%61 = sitofp i32 %60 to float
%62 = load float, ptr %13, align 4
%63 = fadd float %61, %62
%64 = fptosi float %63 to i32
br label %69
65: ; preds = %50
%66 = load i64, ptr %10, align 8
%67 = sub i64 %66, 1
%68 = trunc i64 %67 to i32
br label %69
69: ; preds = %65, %59
%70 = phi i32 [ %64, %59 ], [ %68, %65 ]
store i32 %70, ptr %16, align 4
%71 = load i32, ptr %12, align 4
%72 = sitofp i32 %71 to float
%73 = load float, ptr %13, align 4
%74 = fsub float %72, %73
%75 = fcmp oge float %74, 0.000000e+00
br i1 %75, label %76, label %82
76: ; preds = %69
%77 = load i32, ptr %12, align 4
%78 = sitofp i32 %77 to float
%79 = load float, ptr %13, align 4
%80 = fsub float %78, %79
%81 = fptosi float %80 to i32
br label %83
82: ; preds = %69
br label %83
83: ; preds = %82, %76
%84 = phi i32 [ %81, %76 ], [ 0, %82 ]
store i32 %84, ptr %17, align 4
%85 = load ptr, ptr %8, align 8
%86 = load i64, ptr %9, align 8
%87 = load i32, ptr %16, align 4
%88 = sext i32 %87 to i64
%89 = mul i64 %86, %88
%90 = load i32, ptr %14, align 4
%91 = sext i32 %90 to i64
%92 = add i64 %89, %91
%93 = getelementptr inbounds float, ptr %85, i64 %92
%94 = load float, ptr %93, align 4
store float %94, ptr %18, align 4
%95 = load i32, ptr %15, align 4
%96 = icmp sgt i32 %95, 0
br i1 %96, label %97, label %144
97: ; preds = %83
%98 = load i32, ptr %17, align 4
%99 = icmp sgt i32 %98, 0
br i1 %99, label %100, label %144
100: ; preds = %97
%101 = load float, ptr %18, align 4
%102 = load ptr, ptr %8, align 8
%103 = load i64, ptr %9, align 8
%104 = load i32, ptr %17, align 4
%105 = sext i32 %104 to i64
%106 = mul i64 %103, %105
%107 = load i32, ptr %14, align 4
%108 = sext i32 %107 to i64
%109 = add i64 %106, %108
%110 = getelementptr inbounds float, ptr %102, i64 %109
%111 = load float, ptr %110, align 4
%112 = fsub float %101, %111
%113 = load ptr, ptr %8, align 8
%114 = load i64, ptr %9, align 8
%115 = load i32, ptr %16, align 4
%116 = sext i32 %115 to i64
%117 = mul i64 %114, %116
%118 = load i32, ptr %15, align 4
%119 = sext i32 %118 to i64
%120 = add i64 %117, %119
%121 = getelementptr inbounds float, ptr %113, i64 %120
%122 = load float, ptr %121, align 4
%123 = fsub float %112, %122
%124 = load ptr, ptr %8, align 8
%125 = load i64, ptr %9, align 8
%126 = load i32, ptr %17, align 4
%127 = sext i32 %126 to i64
%128 = mul i64 %125, %127
%129 = load i32, ptr %15, align 4
%130 = sext i32 %129 to i64
%131 = add i64 %128, %130
%132 = getelementptr inbounds float, ptr %124, i64 %131
%133 = load float, ptr %132, align 4
%134 = fadd float %123, %133
%135 = load i32, ptr %14, align 4
%136 = load i32, ptr %15, align 4
%137 = sub nsw i32 %135, %136
%138 = load i32, ptr %16, align 4
%139 = load i32, ptr %17, align 4
%140 = sub nsw i32 %138, %139
%141 = mul nsw i32 %137, %140
%142 = sitofp i32 %141 to float
%143 = fdiv float %134, %142
store float %143, ptr %7, align 4
br label %205
144: ; preds = %97, %83
%145 = load i32, ptr %15, align 4
%146 = icmp sgt i32 %145, 0
br i1 %146, label %147, label %169
147: ; preds = %144
%148 = load float, ptr %18, align 4
%149 = load ptr, ptr %8, align 8
%150 = load i64, ptr %9, align 8
%151 = load i32, ptr %16, align 4
%152 = sext i32 %151 to i64
%153 = mul i64 %150, %152
%154 = load i32, ptr %15, align 4
%155 = sext i32 %154 to i64
%156 = add i64 %153, %155
%157 = getelementptr inbounds float, ptr %149, i64 %156
%158 = load float, ptr %157, align 4
%159 = load i32, ptr %14, align 4
%160 = load i32, ptr %15, align 4
%161 = sub nsw i32 %159, %160
%162 = load i32, ptr %16, align 4
%163 = load i32, ptr %17, align 4
%164 = sub nsw i32 %162, %163
%165 = mul nsw i32 %161, %164
%166 = sitofp i32 %165 to float
%167 = fdiv float %158, %166
%168 = fsub float %148, %167
store float %168, ptr %7, align 4
br label %205
169: ; preds = %144
%170 = load i32, ptr %17, align 4
%171 = icmp sgt i32 %170, 0
br i1 %171, label %172, label %194
172: ; preds = %169
%173 = load float, ptr %18, align 4
%174 = load ptr, ptr %8, align 8
%175 = load i64, ptr %9, align 8
%176 = load i32, ptr %17, align 4
%177 = sext i32 %176 to i64
%178 = mul i64 %175, %177
%179 = load i32, ptr %14, align 4
%180 = sext i32 %179 to i64
%181 = add i64 %178, %180
%182 = getelementptr inbounds float, ptr %174, i64 %181
%183 = load float, ptr %182, align 4
%184 = load i32, ptr %14, align 4
%185 = load i32, ptr %15, align 4
%186 = sub nsw i32 %184, %185
%187 = load i32, ptr %16, align 4
%188 = load i32, ptr %17, align 4
%189 = sub nsw i32 %187, %188
%190 = mul nsw i32 %186, %189
%191 = sitofp i32 %190 to float
%192 = fdiv float %183, %191
%193 = fsub float %173, %192
store float %193, ptr %7, align 4
br label %205
194: ; preds = %169
%195 = load float, ptr %18, align 4
%196 = load i32, ptr %14, align 4
%197 = load i32, ptr %15, align 4
%198 = sub nsw i32 %196, %197
%199 = load i32, ptr %16, align 4
%200 = load i32, ptr %17, align 4
%201 = sub nsw i32 %199, %200
%202 = mul nsw i32 %198, %201
%203 = sitofp i32 %202 to float
%204 = fdiv float %195, %203
store float %204, ptr %7, align 4
br label %205
205: ; preds = %194, %172, %147, %100
%206 = load float, ptr %7, align 4
ret float %206
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmptl7xql3p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @integralBlur(ptr noundef %0, i64 noundef %1, i64 noundef %2, i32 noundef %3, i32 noundef %4, float noundef %5) #0 {
%7 = alloca float, align 4
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca float, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca float, align 4
store ptr %0, ptr %8, align 8
store i64 %1, ptr %9, align 8
store i64 %2, ptr %10, align 8
store i32 %3, ptr %11, align 4
store i32 %4, ptr %12, align 4
store float %5, ptr %13, align 4
%19 = load i32, ptr %11, align 4
%20 = sitofp i32 %19 to float
%21 = load float, ptr %13, align 4
%22 = fadd float %20, %21
%23 = load i64, ptr %9, align 8
%24 = uitofp i64 %23 to float
%25 = fcmp olt float %22, %24
br i1 %25, label %26, label %32
26: ; preds = %6
%27 = load i32, ptr %11, align 4
%28 = sitofp i32 %27 to float
%29 = load float, ptr %13, align 4
%30 = fadd float %28, %29
%31 = fptosi float %30 to i32
br label %36
32: ; preds = %6
%33 = load i64, ptr %9, align 8
%34 = sub i64 %33, 1
%35 = trunc i64 %34 to i32
br label %36
36: ; preds = %32, %26
%37 = phi i32 [ %31, %26 ], [ %35, %32 ]
store i32 %37, ptr %14, align 4
%38 = load i32, ptr %11, align 4
%39 = sitofp i32 %38 to float
%40 = load float, ptr %13, align 4
%41 = fsub float %39, %40
%42 = fcmp oge float %41, 0.000000e+00
br i1 %42, label %43, label %49
43: ; preds = %36
%44 = load i32, ptr %11, align 4
%45 = sitofp i32 %44 to float
%46 = load float, ptr %13, align 4
%47 = fsub float %45, %46
%48 = fptosi float %47 to i32
br label %50
49: ; preds = %36
br label %50
50: ; preds = %49, %43
%51 = phi i32 [ %48, %43 ], [ 0, %49 ]
store i32 %51, ptr %15, align 4
%52 = load i32, ptr %12, align 4
%53 = sitofp i32 %52 to float
%54 = load float, ptr %13, align 4
%55 = fadd float %53, %54
%56 = load i64, ptr %10, align 8
%57 = uitofp i64 %56 to float
%58 = fcmp olt float %55, %57
br i1 %58, label %59, label %65
59: ; preds = %50
%60 = load i32, ptr %12, align 4
%61 = sitofp i32 %60 to float
%62 = load float, ptr %13, align 4
%63 = fadd float %61, %62
%64 = fptosi float %63 to i32
br label %69
65: ; preds = %50
%66 = load i64, ptr %10, align 8
%67 = sub i64 %66, 1
%68 = trunc i64 %67 to i32
br label %69
69: ; preds = %65, %59
%70 = phi i32 [ %64, %59 ], [ %68, %65 ]
store i32 %70, ptr %16, align 4
%71 = load i32, ptr %12, align 4
%72 = sitofp i32 %71 to float
%73 = load float, ptr %13, align 4
%74 = fsub float %72, %73
%75 = fcmp oge float %74, 0.000000e+00
br i1 %75, label %76, label %82
76: ; preds = %69
%77 = load i32, ptr %12, align 4
%78 = sitofp i32 %77 to float
%79 = load float, ptr %13, align 4
%80 = fsub float %78, %79
%81 = fptosi float %80 to i32
br label %83
82: ; preds = %69
br label %83
83: ; preds = %82, %76
%84 = phi i32 [ %81, %76 ], [ 0, %82 ]
store i32 %84, ptr %17, align 4
%85 = load ptr, ptr %8, align 8
%86 = load i64, ptr %9, align 8
%87 = load i32, ptr %16, align 4
%88 = sext i32 %87 to i64
%89 = mul i64 %86, %88
%90 = load i32, ptr %14, align 4
%91 = sext i32 %90 to i64
%92 = add i64 %89, %91
%93 = getelementptr inbounds float, ptr %85, i64 %92
%94 = load float, ptr %93, align 4
store float %94, ptr %18, align 4
%95 = load i32, ptr %15, align 4
%96 = icmp sgt i32 %95, 0
br i1 %96, label %97, label %144
97: ; preds = %83
%98 = load i32, ptr %17, align 4
%99 = icmp sgt i32 %98, 0
br i1 %99, label %100, label %144
100: ; preds = %97
%101 = load float, ptr %18, align 4
%102 = load ptr, ptr %8, align 8
%103 = load i64, ptr %9, align 8
%104 = load i32, ptr %17, align 4
%105 = sext i32 %104 to i64
%106 = mul i64 %103, %105
%107 = load i32, ptr %14, align 4
%108 = sext i32 %107 to i64
%109 = add i64 %106, %108
%110 = getelementptr inbounds float, ptr %102, i64 %109
%111 = load float, ptr %110, align 4
%112 = fsub float %101, %111
%113 = load ptr, ptr %8, align 8
%114 = load i64, ptr %9, align 8
%115 = load i32, ptr %16, align 4
%116 = sext i32 %115 to i64
%117 = mul i64 %114, %116
%118 = load i32, ptr %15, align 4
%119 = sext i32 %118 to i64
%120 = add i64 %117, %119
%121 = getelementptr inbounds float, ptr %113, i64 %120
%122 = load float, ptr %121, align 4
%123 = fsub float %112, %122
%124 = load ptr, ptr %8, align 8
%125 = load i64, ptr %9, align 8
%126 = load i32, ptr %17, align 4
%127 = sext i32 %126 to i64
%128 = mul i64 %125, %127
%129 = load i32, ptr %15, align 4
%130 = sext i32 %129 to i64
%131 = add i64 %128, %130
%132 = getelementptr inbounds float, ptr %124, i64 %131
%133 = load float, ptr %132, align 4
%134 = fadd float %123, %133
%135 = load i32, ptr %14, align 4
%136 = load i32, ptr %15, align 4
%137 = sub nsw i32 %135, %136
%138 = load i32, ptr %16, align 4
%139 = load i32, ptr %17, align 4
%140 = sub nsw i32 %138, %139
%141 = mul nsw i32 %137, %140
%142 = sitofp i32 %141 to float
%143 = fdiv float %134, %142
store float %143, ptr %7, align 4
br label %205
144: ; preds = %97, %83
%145 = load i32, ptr %15, align 4
%146 = icmp sgt i32 %145, 0
br i1 %146, label %147, label %169
147: ; preds = %144
%148 = load float, ptr %18, align 4
%149 = load ptr, ptr %8, align 8
%150 = load i64, ptr %9, align 8
%151 = load i32, ptr %16, align 4
%152 = sext i32 %151 to i64
%153 = mul i64 %150, %152
%154 = load i32, ptr %15, align 4
%155 = sext i32 %154 to i64
%156 = add i64 %153, %155
%157 = getelementptr inbounds float, ptr %149, i64 %156
%158 = load float, ptr %157, align 4
%159 = load i32, ptr %14, align 4
%160 = load i32, ptr %15, align 4
%161 = sub nsw i32 %159, %160
%162 = load i32, ptr %16, align 4
%163 = load i32, ptr %17, align 4
%164 = sub nsw i32 %162, %163
%165 = mul nsw i32 %161, %164
%166 = sitofp i32 %165 to float
%167 = fdiv float %158, %166
%168 = fsub float %148, %167
store float %168, ptr %7, align 4
br label %205
169: ; preds = %144
%170 = load i32, ptr %17, align 4
%171 = icmp sgt i32 %170, 0
br i1 %171, label %172, label %194
172: ; preds = %169
%173 = load float, ptr %18, align 4
%174 = load ptr, ptr %8, align 8
%175 = load i64, ptr %9, align 8
%176 = load i32, ptr %17, align 4
%177 = sext i32 %176 to i64
%178 = mul i64 %175, %177
%179 = load i32, ptr %14, align 4
%180 = sext i32 %179 to i64
%181 = add i64 %178, %180
%182 = getelementptr inbounds float, ptr %174, i64 %181
%183 = load float, ptr %182, align 4
%184 = load i32, ptr %14, align 4
%185 = load i32, ptr %15, align 4
%186 = sub nsw i32 %184, %185
%187 = load i32, ptr %16, align 4
%188 = load i32, ptr %17, align 4
%189 = sub nsw i32 %187, %188
%190 = mul nsw i32 %186, %189
%191 = sitofp i32 %190 to float
%192 = fdiv float %183, %191
%193 = fsub float %173, %192
store float %193, ptr %7, align 4
br label %205
194: ; preds = %169
%195 = load float, ptr %18, align 4
%196 = load i32, ptr %14, align 4
%197 = load i32, ptr %15, align 4
%198 = sub nsw i32 %196, %197
%199 = load i32, ptr %16, align 4
%200 = load i32, ptr %17, align 4
%201 = sub nsw i32 %199, %200
%202 = mul nsw i32 %198, %201
%203 = sitofp i32 %202 to float
%204 = fdiv float %195, %203
store float %204, ptr %7, align 4
br label %205
205: ; preds = %194, %172, %147, %100
%206 = load float, ptr %7, align 4
ret float %206
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdrxwk71i.c'
source_filename = "/tmp/tmpdrxwk71i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ba_alloc(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
store i64 %0, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = add i64 %4, 8
%6 = call ptr @malloc(i64 noundef %5) #3
store ptr %6, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = icmp ne ptr %7, null
%9 = zext i1 %8 to i32
%10 = call i32 @assert(i32 noundef %9)
%11 = load i64, ptr %2, align 8
%12 = load ptr, ptr %3, align 8
store i64 %11, ptr %12, align 8
%13 = load ptr, ptr %3, align 8
%14 = getelementptr i8, ptr %13, i64 8
ret ptr %14
}
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #1
declare i32 @assert(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { allocsize(0) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdrxwk71i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ba_alloc(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
store i64 %0, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = add i64 %4, 8
%6 = call ptr @malloc(i64 noundef %5) #3
store ptr %6, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = icmp ne ptr %7, null
%9 = zext i1 %8 to i32
%10 = call i32 @assert(i32 noundef %9)
%11 = load i64, ptr %2, align 8
%12 = load ptr, ptr %3, align 8
store i64 %11, ptr %12, align 8
%13 = load ptr, ptr %3, align 8
%14 = getelementptr i8, ptr %13, i64 8
ret ptr %14
}
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #1
declare i32 @assert(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { allocsize(0) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxrj7szb_.c'
source_filename = "/tmp/tmpxrj7szb_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
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
%8 = call i32 (...) @f1()
%9 = call i32 (...) @f2()
ret i32 0
}
declare i32 @f1(...) #1
declare i32 @f2(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxrj7szb_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
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
%8 = call i32 (...) @f1()
%9 = call i32 (...) @f2()
ret i32 0
}
declare i32 @f1(...) #1
declare i32 @f2(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpamlrj78x.c'
source_filename = "/tmp/tmpamlrj78x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"regex.h\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"pcre.h\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"pcreposix.h\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"RegularExpressions\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"HAS_PCRE_H\00", align 1
@.str.5 = private unnamed_addr constant [16 x i8] c"HAS_PCREPOSIX_H\00", align 1
@.str.6 = private unnamed_addr constant [129 x i8] c"#include <regex.h>\0Aint main(int argc, char **argv) {\0Aregex_t re;\0Aif (regcomp(&re, \22^\22, REG_ENHANCED)) {\0Areturn 1;\0A}\0Areturn 0;\0A}\0A\00", align 1
@.str.7 = private unnamed_addr constant [17 x i8] c"HAS_REG_ENHANCED\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @chaz_RegularExpressions_run() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = call i32 @chaz_HeadCheck_check_header(ptr noundef @.str)
store i32 %5, ptr %1, align 4
%6 = call i32 @chaz_HeadCheck_check_header(ptr noundef @.str.1)
store i32 %6, ptr %2, align 4
%7 = call i32 @chaz_HeadCheck_check_header(ptr noundef @.str.2)
store i32 %7, ptr %3, align 4
%8 = call i32 @chaz_ConfWriter_start_module(ptr noundef @.str.3)
%9 = load i32, ptr %2, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %0
%12 = call i32 @chaz_ConfWriter_add_def(ptr noundef @.str.4, ptr noundef null)
br label %13
13: ; preds = %11, %0
%14 = load i32, ptr %3, align 4
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 @chaz_ConfWriter_add_def(ptr noundef @.str.5, ptr noundef null)
br label %18
18: ; preds = %16, %13
%19 = load i32, ptr %1, align 4
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %28
21: ; preds = %18
store ptr @.str.6, ptr %4, align 8
%22 = load ptr, ptr %4, align 8
%23 = call i64 @chaz_CC_test_compile(ptr noundef %22)
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = call i32 @chaz_ConfWriter_add_def(ptr noundef @.str.7, ptr noundef null)
br label %27
27: ; preds = %25, %21
br label %28
28: ; preds = %27, %18
%29 = call i32 (...) @chaz_ConfWriter_end_module()
ret void
}
declare i32 @chaz_HeadCheck_check_header(ptr noundef) #1
declare i32 @chaz_ConfWriter_start_module(ptr noundef) #1
declare i32 @chaz_ConfWriter_add_def(ptr noundef, ptr noundef) #1
declare i64 @chaz_CC_test_compile(ptr noundef) #1
declare i32 @chaz_ConfWriter_end_module(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpamlrj78x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"regex.h\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"pcre.h\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"pcreposix.h\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"RegularExpressions\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"HAS_PCRE_H\00", align 1
@.str.5 = private unnamed_addr constant [16 x i8] c"HAS_PCREPOSIX_H\00", align 1
@.str.6 = private unnamed_addr constant [129 x i8] c"#include <regex.h>\0Aint main(int argc, char **argv) {\0Aregex_t re;\0Aif (regcomp(&re, \22^\22, REG_ENHANCED)) {\0Areturn 1;\0A}\0Areturn 0;\0A}\0A\00", align 1
@.str.7 = private unnamed_addr constant [17 x i8] c"HAS_REG_ENHANCED\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @chaz_RegularExpressions_run() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = call i32 @chaz_HeadCheck_check_header(ptr noundef @.str)
store i32 %5, ptr %1, align 4
%6 = call i32 @chaz_HeadCheck_check_header(ptr noundef @.str.1)
store i32 %6, ptr %2, align 4
%7 = call i32 @chaz_HeadCheck_check_header(ptr noundef @.str.2)
store i32 %7, ptr %3, align 4
%8 = call i32 @chaz_ConfWriter_start_module(ptr noundef @.str.3)
%9 = load i32, ptr %2, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %0
%12 = call i32 @chaz_ConfWriter_add_def(ptr noundef @.str.4, ptr noundef null)
br label %13
13: ; preds = %11, %0
%14 = load i32, ptr %3, align 4
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 @chaz_ConfWriter_add_def(ptr noundef @.str.5, ptr noundef null)
br label %18
18: ; preds = %16, %13
%19 = load i32, ptr %1, align 4
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %28
21: ; preds = %18
store ptr @.str.6, ptr %4, align 8
%22 = load ptr, ptr %4, align 8
%23 = call i64 @chaz_CC_test_compile(ptr noundef %22)
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = call i32 @chaz_ConfWriter_add_def(ptr noundef @.str.7, ptr noundef null)
br label %27
27: ; preds = %25, %21
br label %28
28: ; preds = %27, %18
%29 = call i32 (...) @chaz_ConfWriter_end_module()
ret void
}
declare i32 @chaz_HeadCheck_check_header(ptr noundef) #1
declare i32 @chaz_ConfWriter_start_module(ptr noundef) #1
declare i32 @chaz_ConfWriter_add_def(ptr noundef, ptr noundef) #1
declare i64 @chaz_CC_test_compile(ptr noundef) #1
declare i32 @chaz_ConfWriter_end_module(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpz3fe7dyl.c'
source_filename = "/tmp/tmpz3fe7dyl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isprint.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isprint should be 1 for `\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isprint_0x60() #0 {
%1 = call i32 @isprint(i32 noundef 96) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 485, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isprint(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz3fe7dyl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isprint.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isprint should be 1 for `\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isprint_0x60() #0 {
%1 = call i32 @isprint(i32 noundef 96) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 485, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isprint(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3bu6woq4.c'
source_filename = "/tmp/tmp3bu6woq4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"<%s[%d]:%d>%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @listenner(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
store i32 %0, ptr %7, align 4
store ptr %1, ptr %8, align 8
store i32 %2, ptr %9, align 4
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
%13 = load ptr, ptr %11, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %25
15: ; preds = %6
%16 = load i32, ptr %12, align 4
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %25
18: ; preds = %15
%19 = load ptr, ptr %8, align 8
%20 = load ptr, ptr %10, align 8
%21 = load i32, ptr %20, align 4
%22 = load i32, ptr %7, align 4
%23 = load ptr, ptr %11, align 8
%24 = call i32 @printf(ptr noundef @.str, ptr noundef %19, i32 noundef %21, i32 noundef %22, ptr noundef %23)
br label %25
25: ; preds = %18, %15, %6
ret void
}
declare i32 @printf(ptr noundef, 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/tmp3bu6woq4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"<%s[%d]:%d>%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @listenner(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
store i32 %0, ptr %7, align 4
store ptr %1, ptr %8, align 8
store i32 %2, ptr %9, align 4
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
%13 = load ptr, ptr %11, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %25
15: ; preds = %6
%16 = load i32, ptr %12, align 4
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %25
18: ; preds = %15
%19 = load ptr, ptr %8, align 8
%20 = load ptr, ptr %10, align 8
%21 = load i32, ptr %20, align 4
%22 = load i32, ptr %7, align 4
%23 = load ptr, ptr %11, align 8
%24 = call i32 @printf(ptr noundef @.str, ptr noundef %19, i32 noundef %21, i32 noundef %22, ptr noundef %23)
br label %25
25: ; preds = %18, %15, %6
ret void
}
declare i32 @printf(ptr noundef, 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/tmplc8_elwu.c'
source_filename = "/tmp/tmplc8_elwu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"Ok!\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"Impossib1e!\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
br label %4
4: ; preds = %21, %0
%5 = call i64 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%6 = load i64, ptr @EOF, align 8
%7 = icmp ne i64 %5, %6
br i1 %7, label %8, label %26
8: ; preds = %4
%9 = load i32, ptr %2, align 4
%10 = icmp eq i32 %9, 0
br i1 %10, label %21, label %11
11: ; preds = %8
%12 = load i32, ptr %3, align 4
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %19
14: ; preds = %11
%15 = load i32, ptr %2, align 4
%16 = load i32, ptr %3, align 4
%17 = srem i32 %15, %16
%18 = icmp eq i32 %17, 0
br label %19
19: ; preds = %14, %11
%20 = phi i1 [ false, %11 ], [ %18, %14 ]
br label %21
21: ; preds = %19, %8
%22 = phi i1 [ true, %8 ], [ %20, %19 ]
%23 = zext i1 %22 to i64
%24 = select i1 %22, ptr @.str.2, ptr @.str.3
%25 = call i32 @printf(ptr noundef @.str.1, ptr noundef %24)
br label %4, !llvm.loop !6
26: ; preds = %4
ret i32 0
}
declare i64 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmplc8_elwu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"Ok!\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"Impossib1e!\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 i64 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%5 = load i64, ptr @EOF, align 8
%6 = icmp ne i64 %4, %5
br i1 %6, label %.lr.ph, label %28
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %20
%8 = load i32, ptr %2, align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label %20, label %10
10: ; preds = %7
%11 = load i32, ptr %3, align 4
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %18
13: ; preds = %10
%14 = load i32, ptr %2, align 4
%15 = load i32, ptr %3, align 4
%16 = srem i32 %14, %15
%17 = icmp eq i32 %16, 0
br label %18
18: ; preds = %13, %10
%19 = phi i1 [ false, %10 ], [ %17, %13 ]
br label %20
20: ; preds = %18, %7
%21 = phi i1 [ true, %7 ], [ %19, %18 ]
%22 = zext i1 %21 to i64
%23 = select i1 %21, ptr @.str.2, ptr @.str.3
%24 = call i32 @printf(ptr noundef @.str.1, ptr noundef %23)
%25 = call i64 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%26 = load i64, ptr @EOF, align 8
%27 = icmp ne i64 %25, %26
br i1 %27, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %28
28: ; preds = %._crit_edge, %0
ret i32 0
}
declare i64 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpubo3047g.c'
source_filename = "/tmp/tmpubo3047g.c"
target datalayout = "e-m:e-p270: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/tmpubo3047g.c"
target datalayout = "e-m:e-p270: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/tmpwtmhbbkd.c'
source_filename = "/tmp/tmpwtmhbbkd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"the parameter a<=0!\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"the parameter x<0!\0A\00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c"the parameter a is too large!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @incomgam(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca i32, align 4
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
store i32 0, ptr %16, align 4
%17 = load double, ptr %4, align 8
%18 = fcmp ole double %17, 0.000000e+00
br i1 %18, label %19, label %21
19: ; preds = %2
%20 = call i32 @printf(ptr noundef @.str)
store double -1.000000e+00, ptr %3, align 8
br label %171
21: ; preds = %2
%22 = load double, ptr %5, align 8
%23 = fcmp olt double %22, 0.000000e+00
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 @printf(ptr noundef @.str.1)
store double -1.000000e+00, ptr %3, align 8
br label %171
26: ; preds = %21
%27 = load double, ptr %5, align 8
%28 = call double @llvm.fabs.f64(double %27)
%29 = fcmp olt double %28, 0x3E7AD7F29ABCAF48
br i1 %29, label %30, label %31
30: ; preds = %26
store double 0.000000e+00, ptr %3, align 8
br label %171
31: ; preds = %26
%32 = load double, ptr %5, align 8
%33 = fcmp ogt double %32, 0x4733426172C74D82
br i1 %33, label %34, label %35
34: ; preds = %31
store double 1.000000e+00, ptr %3, align 8
br label %171
35: ; preds = %31
%36 = load double, ptr %4, align 8
%37 = load double, ptr %5, align 8
%38 = call double @log(double noundef %37) #4
%39 = fmul double %36, %38
store double %39, ptr %7, align 8
%40 = load double, ptr %7, align 8
%41 = call double @exp(double noundef %40) #4
store double %41, ptr %15, align 8
%42 = load double, ptr %5, align 8
%43 = load double, ptr %4, align 8
%44 = fadd double 1.000000e+00, %43
%45 = fcmp olt double %42, %44
br i1 %45, label %46, label %85
46: ; preds = %35
%47 = load double, ptr %4, align 8
store double %47, ptr %6, align 8
%48 = load double, ptr %4, align 8
%49 = fdiv double 1.000000e+00, %48
store double %49, ptr %8, align 8
%50 = load double, ptr %8, align 8
store double %50, ptr %9, align 8
br label %51
51: ; preds = %83, %46
%52 = load i32, ptr %16, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %16, align 4
%54 = icmp sle i32 %53, 100
br i1 %54, label %55, label %84
55: ; preds = %51
%56 = load double, ptr %6, align 8
%57 = fadd double %56, 1.000000e+00
store double %57, ptr %6, align 8
%58 = load double, ptr %5, align 8
%59 = load double, ptr %6, align 8
%60 = fdiv double %58, %59
%61 = load double, ptr %8, align 8
%62 = fmul double %61, %60
store double %62, ptr %8, align 8
%63 = load double, ptr %8, align 8
%64 = load double, ptr %9, align 8
%65 = fadd double %64, %63
store double %65, ptr %9, align 8
%66 = load double, ptr %8, align 8
%67 = load double, ptr %9, align 8
%68 = fdiv double %66, %67
%69 = call double @llvm.fabs.f64(double %68)
%70 = fcmp olt double %69, 0x3E7AD7F29ABCAF48
br i1 %70, label %71, label %83
71: ; preds = %55
%72 = load double, ptr %5, align 8
%73 = fneg double %72
%74 = call double @exp(double noundef %73) #4
%75 = load double, ptr %15, align 8
%76 = fmul double %74, %75
%77 = load double, ptr %4, align 8
%78 = call double @gamma(double noundef %77)
%79 = fdiv double %76, %78
%80 = load double, ptr %9, align 8
%81 = fmul double %80, %79
store double %81, ptr %9, align 8
%82 = load double, ptr %9, align 8
store double %82, ptr %3, align 8
br label %171
83: ; preds = %55
br label %51, !llvm.loop !6
84: ; preds = %51
br label %157
85: ; preds = %35
%86 = load double, ptr %5, align 8
%87 = fdiv double 1.000000e+00, %86
store double %87, ptr %9, align 8
store double 0.000000e+00, ptr %11, align 8
store double 1.000000e+00, ptr %13, align 8
store double 1.000000e+00, ptr %12, align 8
%88 = load double, ptr %5, align 8
store double %88, ptr %14, align 8
br label %89
89: ; preds = %153, %85
%90 = load i32, ptr %16, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %16, align 4
%92 = icmp sle i32 %91, 100
br i1 %92, label %93, label %156
93: ; preds = %89
%94 = load double, ptr %13, align 8
%95 = load i32, ptr %16, align 4
%96 = sitofp i32 %95 to double
%97 = load double, ptr %4, align 8
%98 = fsub double %96, %97
%99 = load double, ptr %11, align 8
%100 = call double @llvm.fmuladd.f64(double %98, double %99, double %94)
store double %100, ptr %11, align 8
%101 = load double, ptr %14, align 8
%102 = load i32, ptr %16, align 4
%103 = sitofp i32 %102 to double
%104 = load double, ptr %4, align 8
%105 = fsub double %103, %104
%106 = load double, ptr %12, align 8
%107 = call double @llvm.fmuladd.f64(double %105, double %106, double %101)
store double %107, ptr %12, align 8
%108 = load double, ptr %5, align 8
%109 = load double, ptr %11, align 8
%110 = load i32, ptr %16, align 4
%111 = sitofp i32 %110 to double
%112 = load double, ptr %13, align 8
%113 = fmul double %111, %112
%114 = call double @llvm.fmuladd.f64(double %108, double %109, double %113)
store double %114, ptr %6, align 8
%115 = load double, ptr %5, align 8
%116 = load double, ptr %12, align 8
%117 = load i32, ptr %16, align 4
%118 = sitofp i32 %117 to double
%119 = load double, ptr %14, align 8
%120 = fmul double %118, %119
%121 = call double @llvm.fmuladd.f64(double %115, double %116, double %120)
store double %121, ptr %7, align 8
%122 = load double, ptr %7, align 8
%123 = call double @llvm.fabs.f64(double %122)
%124 = fcmp ogt double %123, 0x3E7AD7F29ABCAF48
br i1 %124, label %125, label %153
125: ; preds = %93
%126 = load double, ptr %6, align 8
%127 = load double, ptr %7, align 8
%128 = fdiv double %126, %127
store double %128, ptr %10, align 8
%129 = load double, ptr %6, align 8
store double %129, ptr %13, align 8
%130 = load double, ptr %7, align 8
store double %130, ptr %14, align 8
%131 = load double, ptr %10, align 8
%132 = load double, ptr %9, align 8
%133 = fsub double %131, %132
%134 = load double, ptr %10, align 8
%135 = fdiv double %133, %134
%136 = call double @llvm.fabs.f64(double %135)
%137 = fcmp olt double %136, 0x3E7AD7F29ABCAF48
br i1 %137, label %138, label %151
138: ; preds = %125
%139 = load double, ptr %10, align 8
%140 = load double, ptr %5, align 8
%141 = fneg double %140
%142 = call double @exp(double noundef %141) #4
%143 = fmul double %139, %142
%144 = load double, ptr %15, align 8
%145 = fmul double %143, %144
%146 = load double, ptr %4, align 8
%147 = call double @gamma(double noundef %146)
%148 = fdiv double %145, %147
store double %148, ptr %9, align 8
%149 = load double, ptr %9, align 8
%150 = fsub double 1.000000e+00, %149
store double %150, ptr %3, align 8
br label %171
151: ; preds = %125
%152 = load double, ptr %10, align 8
store double %152, ptr %9, align 8
br label %153
153: ; preds = %151, %93
%154 = load double, ptr %6, align 8
store double %154, ptr %13, align 8
%155 = load double, ptr %7, align 8
store double %155, ptr %14, align 8
br label %89, !llvm.loop !8
156: ; preds = %89
br label %157
157: ; preds = %156, %84
%158 = call i32 @printf(ptr noundef @.str.2)
%159 = load double, ptr %9, align 8
%160 = load double, ptr %5, align 8
%161 = fneg double %160
%162 = call double @exp(double noundef %161) #4
%163 = fmul double %159, %162
%164 = load double, ptr %15, align 8
%165 = fmul double %163, %164
%166 = load double, ptr %4, align 8
%167 = call double @gamma(double noundef %166)
%168 = fdiv double %165, %167
%169 = fsub double 1.000000e+00, %168
store double %169, ptr %9, align 8
%170 = load double, ptr %9, align 8
store double %170, ptr %3, align 8
br label %171
171: ; preds = %157, %138, %71, %34, %30, %24, %19
%172 = load double, ptr %3, align 8
ret double %172
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #2
; Function Attrs: nounwind
declare double @log(double noundef) #3
; Function Attrs: nounwind
declare double @exp(double noundef) #3
declare double @gamma(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwtmhbbkd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"the parameter a<=0!\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"the parameter x<0!\0A\00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c"the parameter a is too large!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @incomgam(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca i32, align 4
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
store i32 0, ptr %16, align 4
%17 = load double, ptr %4, align 8
%18 = fcmp ole double %17, 0.000000e+00
br i1 %18, label %19, label %21
19: ; preds = %2
%20 = call i32 @printf(ptr noundef @.str)
store double -1.000000e+00, ptr %3, align 8
br label %175
21: ; preds = %2
%22 = load double, ptr %5, align 8
%23 = fcmp olt double %22, 0.000000e+00
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 @printf(ptr noundef @.str.1)
store double -1.000000e+00, ptr %3, align 8
br label %175
26: ; preds = %21
%27 = load double, ptr %5, align 8
%28 = call double @llvm.fabs.f64(double %27)
%29 = fcmp olt double %28, 0x3E7AD7F29ABCAF48
br i1 %29, label %30, label %31
30: ; preds = %26
store double 0.000000e+00, ptr %3, align 8
br label %175
31: ; preds = %26
%32 = load double, ptr %5, align 8
%33 = fcmp ogt double %32, 0x4733426172C74D82
br i1 %33, label %34, label %35
34: ; preds = %31
store double 1.000000e+00, ptr %3, align 8
br label %175
35: ; preds = %31
%36 = load double, ptr %4, align 8
%37 = load double, ptr %5, align 8
%38 = call double @log(double noundef %37) #4
%39 = fmul double %36, %38
store double %39, ptr %7, align 8
%40 = load double, ptr %7, align 8
%41 = call double @exp(double noundef %40) #4
store double %41, ptr %15, align 8
%42 = load double, ptr %5, align 8
%43 = load double, ptr %4, align 8
%44 = fadd double 1.000000e+00, %43
%45 = fcmp olt double %42, %44
br i1 %45, label %46, label %87
46: ; preds = %35
%47 = load double, ptr %4, align 8
store double %47, ptr %6, align 8
%48 = load double, ptr %4, align 8
%49 = fdiv double 1.000000e+00, %48
store double %49, ptr %8, align 8
%50 = load double, ptr %8, align 8
store double %50, ptr %9, align 8
%51 = load i32, ptr %16, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %16, align 4
%53 = icmp sle i32 %52, 100
br i1 %53, label %.lr.ph2, label %86
.lr.ph2: ; preds = %46
br label %58
54: ; preds = %58
%55 = load i32, ptr %16, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %16, align 4
%57 = icmp sle i32 %56, 100
br i1 %57, label %58, label %._crit_edge3, !llvm.loop !6
58: ; preds = %.lr.ph2, %54
%59 = load double, ptr %6, align 8
%60 = fadd double %59, 1.000000e+00
store double %60, ptr %6, align 8
%61 = load double, ptr %5, align 8
%62 = load double, ptr %6, align 8
%63 = fdiv double %61, %62
%64 = load double, ptr %8, align 8
%65 = fmul double %64, %63
store double %65, ptr %8, align 8
%66 = load double, ptr %8, align 8
%67 = load double, ptr %9, align 8
%68 = fadd double %67, %66
store double %68, ptr %9, align 8
%69 = load double, ptr %8, align 8
%70 = load double, ptr %9, align 8
%71 = fdiv double %69, %70
%72 = call double @llvm.fabs.f64(double %71)
%73 = fcmp olt double %72, 0x3E7AD7F29ABCAF48
br i1 %73, label %74, label %54
74: ; preds = %58
%75 = load double, ptr %5, align 8
%76 = fneg double %75
%77 = call double @exp(double noundef %76) #4
%78 = load double, ptr %15, align 8
%79 = fmul double %77, %78
%80 = load double, ptr %4, align 8
%81 = call double @gamma(double noundef %80)
%82 = fdiv double %79, %81
%83 = load double, ptr %9, align 8
%84 = fmul double %83, %82
store double %84, ptr %9, align 8
%85 = load double, ptr %9, align 8
store double %85, ptr %3, align 8
br label %175
._crit_edge3: ; preds = %54
br label %86
86: ; preds = %._crit_edge3, %46
br label %161
87: ; preds = %35
%88 = load double, ptr %5, align 8
%89 = fdiv double 1.000000e+00, %88
store double %89, ptr %9, align 8
store double 0.000000e+00, ptr %11, align 8
store double 1.000000e+00, ptr %13, align 8
store double 1.000000e+00, ptr %12, align 8
%90 = load double, ptr %5, align 8
store double %90, ptr %14, align 8
%91 = load i32, ptr %16, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr %16, align 4
%93 = icmp sle i32 %92, 100
br i1 %93, label %.lr.ph, label %160
.lr.ph: ; preds = %87
br label %94
94: ; preds = %.lr.ph, %154
%95 = load double, ptr %13, align 8
%96 = load i32, ptr %16, align 4
%97 = sitofp i32 %96 to double
%98 = load double, ptr %4, align 8
%99 = fsub double %97, %98
%100 = load double, ptr %11, align 8
%101 = call double @llvm.fmuladd.f64(double %99, double %100, double %95)
store double %101, ptr %11, align 8
%102 = load double, ptr %14, align 8
%103 = load i32, ptr %16, align 4
%104 = sitofp i32 %103 to double
%105 = load double, ptr %4, align 8
%106 = fsub double %104, %105
%107 = load double, ptr %12, align 8
%108 = call double @llvm.fmuladd.f64(double %106, double %107, double %102)
store double %108, ptr %12, align 8
%109 = load double, ptr %5, align 8
%110 = load double, ptr %11, align 8
%111 = load i32, ptr %16, align 4
%112 = sitofp i32 %111 to double
%113 = load double, ptr %13, align 8
%114 = fmul double %112, %113
%115 = call double @llvm.fmuladd.f64(double %109, double %110, double %114)
store double %115, ptr %6, align 8
%116 = load double, ptr %5, align 8
%117 = load double, ptr %12, align 8
%118 = load i32, ptr %16, align 4
%119 = sitofp i32 %118 to double
%120 = load double, ptr %14, align 8
%121 = fmul double %119, %120
%122 = call double @llvm.fmuladd.f64(double %116, double %117, double %121)
store double %122, ptr %7, align 8
%123 = load double, ptr %7, align 8
%124 = call double @llvm.fabs.f64(double %123)
%125 = fcmp ogt double %124, 0x3E7AD7F29ABCAF48
br i1 %125, label %126, label %154
126: ; preds = %94
%127 = load double, ptr %6, align 8
%128 = load double, ptr %7, align 8
%129 = fdiv double %127, %128
store double %129, ptr %10, align 8
%130 = load double, ptr %6, align 8
store double %130, ptr %13, align 8
%131 = load double, ptr %7, align 8
store double %131, ptr %14, align 8
%132 = load double, ptr %10, align 8
%133 = load double, ptr %9, align 8
%134 = fsub double %132, %133
%135 = load double, ptr %10, align 8
%136 = fdiv double %134, %135
%137 = call double @llvm.fabs.f64(double %136)
%138 = fcmp olt double %137, 0x3E7AD7F29ABCAF48
br i1 %138, label %139, label %152
139: ; preds = %126
%140 = load double, ptr %10, align 8
%141 = load double, ptr %5, align 8
%142 = fneg double %141
%143 = call double @exp(double noundef %142) #4
%144 = fmul double %140, %143
%145 = load double, ptr %15, align 8
%146 = fmul double %144, %145
%147 = load double, ptr %4, align 8
%148 = call double @gamma(double noundef %147)
%149 = fdiv double %146, %148
store double %149, ptr %9, align 8
%150 = load double, ptr %9, align 8
%151 = fsub double 1.000000e+00, %150
store double %151, ptr %3, align 8
br label %175
152: ; preds = %126
%153 = load double, ptr %10, align 8
store double %153, ptr %9, align 8
br label %154
154: ; preds = %152, %94
%155 = load double, ptr %6, align 8
store double %155, ptr %13, align 8
%156 = load double, ptr %7, align 8
store double %156, ptr %14, align 8
%157 = load i32, ptr %16, align 4
%158 = add nsw i32 %157, 1
store i32 %158, ptr %16, align 4
%159 = icmp sle i32 %158, 100
br i1 %159, label %94, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %154
br label %160
160: ; preds = %._crit_edge, %87
br label %161
161: ; preds = %160, %86
%162 = call i32 @printf(ptr noundef @.str.2)
%163 = load double, ptr %9, align 8
%164 = load double, ptr %5, align 8
%165 = fneg double %164
%166 = call double @exp(double noundef %165) #4
%167 = fmul double %163, %166
%168 = load double, ptr %15, align 8
%169 = fmul double %167, %168
%170 = load double, ptr %4, align 8
%171 = call double @gamma(double noundef %170)
%172 = fdiv double %169, %171
%173 = fsub double 1.000000e+00, %172
store double %173, ptr %9, align 8
%174 = load double, ptr %9, align 8
store double %174, ptr %3, align 8
br label %175
175: ; preds = %161, %139, %74, %34, %30, %24, %19
%176 = load double, ptr %3, align 8
ret double %176
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #2
; Function Attrs: nounwind
declare double @log(double noundef) #3
; Function Attrs: nounwind
declare double @exp(double noundef) #3
declare double @gamma(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp4wrnuayd.c'
source_filename = "/tmp/tmp4wrnuayd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.utmp = type { i32 }
@USER_PROCESS = dso_local global i32 0, align 4
@DEAD_PROCESS = 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 %struct.utmp, align 4
store i32 0, ptr %1, align 4
%3 = load i32, ptr @USER_PROCESS, align 4
%4 = load i32, ptr @DEAD_PROCESS, align 4
%5 = or i32 %3, %4
%6 = getelementptr inbounds %struct.utmp, ptr %2, i32 0, i32 0
store i32 %5, ptr %6, align 4
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4wrnuayd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.utmp = type { i32 }
@USER_PROCESS = dso_local global i32 0, align 4
@DEAD_PROCESS = 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 %struct.utmp, align 4
store i32 0, ptr %1, align 4
%3 = load i32, ptr @USER_PROCESS, align 4
%4 = load i32, ptr @DEAD_PROCESS, align 4
%5 = or i32 %3, %4
%6 = getelementptr inbounds %struct.utmp, ptr %2, i32 0, i32 0
store i32 %5, ptr %6, align 4
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprtn2wbr8.c'
source_filename = "/tmp/tmprtn2wbr8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"Introdu primele n numere prime: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"%3llu \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
%8 = load i32, ptr %5, align 4
%9 = sext i32 %8 to i64
%10 = mul i64 4, %9
%11 = trunc i64 %10 to i32
%12 = call i64 @malloc(i32 noundef %11)
%13 = inttoptr i64 %12 to ptr
store ptr %13, ptr %4, align 8
store i64 2, ptr %2, align 8
br label %14
14: ; preds = %23, %0
%15 = load i64, ptr %2, align 8
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = icmp ult i64 %15, %17
br i1 %18, label %19, label %26
19: ; preds = %14
%20 = load ptr, ptr %4, align 8
%21 = load i64, ptr %2, align 8
%22 = getelementptr inbounds i32, ptr %20, i64 %21
store i32 1, ptr %22, align 4
br label %23
23: ; preds = %19
%24 = load i64, ptr %2, align 8
%25 = add i64 %24, 1
store i64 %25, ptr %2, align 8
br label %14, !llvm.loop !6
26: ; preds = %14
store i64 2, ptr %2, align 8
br label %27
27: ; preds = %58, %26
%28 = load i64, ptr %2, align 8
%29 = load i32, ptr %5, align 4
%30 = sext i32 %29 to i64
%31 = icmp ult i64 %28, %30
br i1 %31, label %32, label %61
32: ; preds = %27
%33 = load ptr, ptr %4, align 8
%34 = load i64, ptr %2, align 8
%35 = getelementptr inbounds i32, ptr %33, i64 %34
%36 = load i32, ptr %35, align 4
%37 = icmp ne i32 %36, 0
br i1 %37, label %38, label %57
38: ; preds = %32
%39 = load i64, ptr %2, align 8
store i64 %39, ptr %3, align 8
br label %40
40: ; preds = %53, %38
%41 = load i64, ptr %2, align 8
%42 = load i64, ptr %3, align 8
%43 = mul i64 %41, %42
%44 = load i32, ptr %5, align 4
%45 = sext i32 %44 to i64
%46 = icmp ult i64 %43, %45
br i1 %46, label %47, label %56
47: ; preds = %40
%48 = load ptr, ptr %4, align 8
%49 = load i64, ptr %2, align 8
%50 = load i64, ptr %3, align 8
%51 = mul i64 %49, %50
%52 = getelementptr inbounds i32, ptr %48, i64 %51
store i32 0, ptr %52, align 4
br label %53
53: ; preds = %47
%54 = load i64, ptr %3, align 8
%55 = add i64 %54, 1
store i64 %55, ptr %3, align 8
br label %40, !llvm.loop !8
56: ; preds = %40
br label %57
57: ; preds = %56, %32
br label %58
58: ; preds = %57
%59 = load i64, ptr %2, align 8
%60 = add i64 %59, 1
store i64 %60, ptr %2, align 8
br label %27, !llvm.loop !9
61: ; preds = %27
store i64 2, ptr %2, align 8
br label %62
62: ; preds = %77, %61
%63 = load i64, ptr %2, align 8
%64 = load i32, ptr %5, align 4
%65 = sext i32 %64 to i64
%66 = icmp ult i64 %63, %65
br i1 %66, label %67, label %80
67: ; preds = %62
%68 = load ptr, ptr %4, align 8
%69 = load i64, ptr %2, align 8
%70 = getelementptr inbounds i32, ptr %68, i64 %69
%71 = load i32, ptr %70, align 4
%72 = icmp ne i32 %71, 0
br i1 %72, label %73, label %76
73: ; preds = %67
%74 = load i64, ptr %2, align 8
%75 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %74)
br label %76
76: ; preds = %73, %67
br label %77
77: ; preds = %76
%78 = load i64, ptr %2, align 8
%79 = add i64 %78, 1
store i64 %79, ptr %2, align 8
br label %62, !llvm.loop !10
80: ; preds = %62
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmprtn2wbr8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"Introdu primele n numere prime: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"%3llu \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
%8 = load i32, ptr %5, align 4
%9 = sext i32 %8 to i64
%10 = mul i64 4, %9
%11 = trunc i64 %10 to i32
%12 = call i64 @malloc(i32 noundef %11)
%13 = inttoptr i64 %12 to ptr
store ptr %13, ptr %4, align 8
store i64 2, ptr %2, align 8
%14 = load i64, ptr %2, align 8
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = icmp ult i64 %14, %16
br i1 %17, label %.lr.ph, label %29
.lr.ph: ; preds = %0
br label %18
18: ; preds = %.lr.ph, %22
%19 = load ptr, ptr %4, align 8
%20 = load i64, ptr %2, align 8
%21 = getelementptr inbounds i32, ptr %19, i64 %20
store i32 1, ptr %21, align 4
br label %22
22: ; preds = %18
%23 = load i64, ptr %2, align 8
%24 = add i64 %23, 1
store i64 %24, ptr %2, align 8
%25 = load i64, ptr %2, align 8
%26 = load i32, ptr %5, align 4
%27 = sext i32 %26 to i64
%28 = icmp ult i64 %25, %27
br i1 %28, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %29
29: ; preds = %._crit_edge, %0
store i64 2, ptr %2, align 8
%30 = load i64, ptr %2, align 8
%31 = load i32, ptr %5, align 4
%32 = sext i32 %31 to i64
%33 = icmp ult i64 %30, %32
br i1 %33, label %.lr.ph5, label %72
.lr.ph5: ; preds = %29
br label %34
34: ; preds = %.lr.ph5, %65
%35 = load ptr, ptr %4, align 8
%36 = load i64, ptr %2, align 8
%37 = getelementptr inbounds i32, ptr %35, i64 %36
%38 = load i32, ptr %37, align 4
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %64
40: ; preds = %34
%41 = load i64, ptr %2, align 8
store i64 %41, ptr %3, align 8
%42 = load i64, ptr %2, align 8
%43 = load i64, ptr %3, align 8
%44 = mul i64 %42, %43
%45 = load i32, ptr %5, align 4
%46 = sext i32 %45 to i64
%47 = icmp ult i64 %44, %46
br i1 %47, label %.lr.ph2, label %63
.lr.ph2: ; preds = %40
br label %48
48: ; preds = %.lr.ph2, %54
%49 = load ptr, ptr %4, align 8
%50 = load i64, ptr %2, align 8
%51 = load i64, ptr %3, align 8
%52 = mul i64 %50, %51
%53 = getelementptr inbounds i32, ptr %49, i64 %52
store i32 0, ptr %53, align 4
br label %54
54: ; preds = %48
%55 = load i64, ptr %3, align 8
%56 = add i64 %55, 1
store i64 %56, ptr %3, align 8
%57 = load i64, ptr %2, align 8
%58 = load i64, ptr %3, align 8
%59 = mul i64 %57, %58
%60 = load i32, ptr %5, align 4
%61 = sext i32 %60 to i64
%62 = icmp ult i64 %59, %61
br i1 %62, label %48, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %54
br label %63
63: ; preds = %._crit_edge3, %40
br label %64
64: ; preds = %63, %34
br label %65
65: ; preds = %64
%66 = load i64, ptr %2, align 8
%67 = add i64 %66, 1
store i64 %67, ptr %2, align 8
%68 = load i64, ptr %2, align 8
%69 = load i32, ptr %5, align 4
%70 = sext i32 %69 to i64
%71 = icmp ult i64 %68, %70
br i1 %71, label %34, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %65
br label %72
72: ; preds = %._crit_edge6, %29
store i64 2, ptr %2, align 8
%73 = load i64, ptr %2, align 8
%74 = load i32, ptr %5, align 4
%75 = sext i32 %74 to i64
%76 = icmp ult i64 %73, %75
br i1 %76, label %.lr.ph8, label %94
.lr.ph8: ; preds = %72
br label %77
77: ; preds = %.lr.ph8, %87
%78 = load ptr, ptr %4, align 8
%79 = load i64, ptr %2, align 8
%80 = getelementptr inbounds i32, ptr %78, i64 %79
%81 = load i32, ptr %80, align 4
%82 = icmp ne i32 %81, 0
br i1 %82, label %83, label %86
83: ; preds = %77
%84 = load i64, ptr %2, align 8
%85 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %84)
br label %86
86: ; preds = %83, %77
br label %87
87: ; preds = %86
%88 = load i64, ptr %2, align 8
%89 = add i64 %88, 1
store i64 %89, ptr %2, align 8
%90 = load i64, ptr %2, align 8
%91 = load i32, ptr %5, align 4
%92 = sext i32 %91 to i64
%93 = icmp ult i64 %90, %92
br i1 %93, label %77, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %87
br label %94
94: ; preds = %._crit_edge9, %72
%95 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmp_krx57tk.c'
source_filename = "/tmp/tmp_krx57tk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bst_print_level_order(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = load ptr, ptr %3, align 8
%8 = call i32 @height(ptr noundef %7)
store i32 %8, ptr %6, align 4
store i32 1, ptr %5, align 4
br label %9
9: ; preds = %17, %2
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp sle i32 %10, %11
br i1 %12, label %13, label %20
13: ; preds = %9
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %5, align 4
%16 = call i32 @print_level(ptr noundef %14, i32 noundef %15)
br label %17
17: ; preds = %13
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %5, align 4
br label %9, !llvm.loop !6
20: ; preds = %9
ret void
}
declare i32 @height(ptr noundef) #1
declare i32 @print_level(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/tmp_krx57tk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bst_print_level_order(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = load ptr, ptr %3, align 8
%8 = call i32 @height(ptr noundef %7)
store i32 %8, ptr %6, align 4
store i32 1, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp sle i32 %9, %10
br i1 %11, label %.lr.ph, label %22
.lr.ph: ; preds = %2
br label %12
12: ; preds = %.lr.ph, %16
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %5, align 4
%15 = call i32 @print_level(ptr noundef %13, i32 noundef %14)
br label %16
16: ; preds = %12
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %5, align 4
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr %6, align 4
%21 = icmp sle i32 %19, %20
br i1 %21, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %22
22: ; preds = %._crit_edge, %2
ret void
}
declare i32 @height(ptr noundef) #1
declare i32 @print_level(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/tmpv_264dpr.c'
source_filename = "/tmp/tmpv_264dpr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gotcha_strlen(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i64 0, ptr %3, align 8
br label %4
4: ; preds = %11, %1
%5 = load ptr, ptr %2, align 8
%6 = load i64, ptr %3, align 8
%7 = getelementptr inbounds i8, ptr %5, i64 %6
%8 = load i8, ptr %7, align 1
%9 = icmp ne i8 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %4
br label %11
11: ; preds = %10
%12 = load i64, ptr %3, align 8
%13 = add i64 %12, 1
store i64 %13, ptr %3, align 8
br label %4, !llvm.loop !6
14: ; preds = %4
%15 = load i64, ptr %3, align 8
ret i64 %15
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpv_264dpr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gotcha_strlen(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i64 0, ptr %3, align 8
%4 = load ptr, ptr %2, align 8
%5 = load i64, ptr %3, align 8
%6 = getelementptr inbounds i8, ptr %4, i64 %5
%7 = load i8, ptr %6, align 1
%8 = icmp ne i8 %7, 0
br i1 %8, label %.lr.ph, label %18
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %10
br label %10
10: ; preds = %9
%11 = load i64, ptr %3, align 8
%12 = add i64 %11, 1
store i64 %12, ptr %3, align 8
%13 = load ptr, ptr %2, align 8
%14 = load i64, ptr %3, align 8
%15 = getelementptr inbounds i8, ptr %13, i64 %14
%16 = load i8, ptr %15, align 1
%17 = icmp ne i8 %16, 0
br i1 %17, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %18
18: ; preds = %._crit_edge, %1
%19 = load i64, ptr %3, align 8
ret i64 %19
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpg03reb46.c'
source_filename = "/tmp/tmpg03reb46.c"
target datalayout = "e-m:e-p270: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/tmpg03reb46.c"
target datalayout = "e-m:e-p270: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/tmpso2b6zc2.c'
source_filename = "/tmp/tmpso2b6zc2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"%i.%n%u%n\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @dd_atof(ptr noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca ptr, align 8
%4 = alloca double, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store double 1.000000e+00, ptr %4, align 8
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
br label %10
10: ; preds = %28, %1
%11 = load ptr, ptr %3, align 8
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %26
15: ; preds = %10
%16 = load ptr, ptr %3, align 8
%17 = load i8, ptr %16, align 1
%18 = zext i8 %17 to i32
%19 = call i32 @isdigit(i32 noundef %18) #3
%20 = icmp ne i32 %19, 0
br i1 %20, label %26, label %21
21: ; preds = %15
%22 = load ptr, ptr %3, align 8
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp ne i32 %24, 45
br label %26
26: ; preds = %21, %15, %10
%27 = phi i1 [ false, %15 ], [ false, %10 ], [ %25, %21 ]
br i1 %27, label %28, label %31
28: ; preds = %26
%29 = load ptr, ptr %3, align 8
%30 = getelementptr inbounds i8, ptr %29, i32 1
store ptr %30, ptr %3, align 8
br label %10, !llvm.loop !6
31: ; preds = %26
%32 = load ptr, ptr %3, align 8
%33 = load i8, ptr %32, align 1
%34 = icmp ne i8 %33, 0
br i1 %34, label %36, label %35
35: ; preds = %31
store double 0.000000e+00, ptr %2, align 8
br label %68
36: ; preds = %31
%37 = load ptr, ptr %3, align 8
%38 = call i32 @sscanf(ptr noundef %37, ptr noundef @.str, ptr noundef %6, ptr noundef %8, ptr noundef %7, ptr noundef %9)
store i32 %38, ptr %5, align 4
%39 = load i32, ptr %5, align 4
%40 = icmp slt i32 %39, 1
br i1 %40, label %41, label %42
41: ; preds = %36
store double 0.000000e+00, ptr %2, align 8
br label %68
42: ; preds = %36
%43 = load i32, ptr %7, align 4
%44 = icmp ne i32 %43, 0
br i1 %44, label %48, label %45
45: ; preds = %42
%46 = load i32, ptr %6, align 4
%47 = sitofp i32 %46 to double
store double %47, ptr %2, align 8
br label %68
48: ; preds = %42
%49 = load i32, ptr %6, align 4
%50 = icmp slt i32 %49, 0
br i1 %50, label %51, label %54
51: ; preds = %48
%52 = load double, ptr %4, align 8
%53 = fneg double %52
store double %53, ptr %4, align 8
br label %54
54: ; preds = %51, %48
%55 = load i32, ptr %9, align 4
%56 = load i32, ptr %8, align 4
%57 = sub i32 %55, %56
%58 = call double @pow(double noundef 1.000000e+01, i32 noundef %57)
%59 = load double, ptr %4, align 8
%60 = fmul double %59, %58
store double %60, ptr %4, align 8
%61 = load i32, ptr %6, align 4
%62 = sitofp i32 %61 to double
%63 = load i32, ptr %7, align 4
%64 = uitofp i32 %63 to double
%65 = load double, ptr %4, align 8
%66 = fdiv double %64, %65
%67 = fadd double %62, %66
store double %67, ptr %2, align 8
br label %68
68: ; preds = %54, %45, %41, %35
%69 = load double, ptr %2, align 8
ret double %69
}
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isdigit(i32 noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
declare double @pow(double 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 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpso2b6zc2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"%i.%n%u%n\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @dd_atof(ptr noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca ptr, align 8
%4 = alloca double, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store double 1.000000e+00, ptr %4, align 8
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
br label %10
10: ; preds = %28, %1
%11 = load ptr, ptr %3, align 8
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %26
15: ; preds = %10
%16 = load ptr, ptr %3, align 8
%17 = load i8, ptr %16, align 1
%18 = zext i8 %17 to i32
%19 = call i32 @isdigit(i32 noundef %18) #3
%20 = icmp ne i32 %19, 0
br i1 %20, label %26, label %21
21: ; preds = %15
%22 = load ptr, ptr %3, align 8
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp ne i32 %24, 45
br label %26
26: ; preds = %21, %15, %10
%27 = phi i1 [ false, %15 ], [ false, %10 ], [ %25, %21 ]
br i1 %27, label %28, label %31
28: ; preds = %26
%29 = load ptr, ptr %3, align 8
%30 = getelementptr inbounds i8, ptr %29, i32 1
store ptr %30, ptr %3, align 8
br label %10, !llvm.loop !6
31: ; preds = %26
%32 = load ptr, ptr %3, align 8
%33 = load i8, ptr %32, align 1
%34 = icmp ne i8 %33, 0
br i1 %34, label %36, label %35
35: ; preds = %31
store double 0.000000e+00, ptr %2, align 8
br label %68
36: ; preds = %31
%37 = load ptr, ptr %3, align 8
%38 = call i32 @sscanf(ptr noundef %37, ptr noundef @.str, ptr noundef %6, ptr noundef %8, ptr noundef %7, ptr noundef %9)
store i32 %38, ptr %5, align 4
%39 = load i32, ptr %5, align 4
%40 = icmp slt i32 %39, 1
br i1 %40, label %41, label %42
41: ; preds = %36
store double 0.000000e+00, ptr %2, align 8
br label %68
42: ; preds = %36
%43 = load i32, ptr %7, align 4
%44 = icmp ne i32 %43, 0
br i1 %44, label %48, label %45
45: ; preds = %42
%46 = load i32, ptr %6, align 4
%47 = sitofp i32 %46 to double
store double %47, ptr %2, align 8
br label %68
48: ; preds = %42
%49 = load i32, ptr %6, align 4
%50 = icmp slt i32 %49, 0
br i1 %50, label %51, label %54
51: ; preds = %48
%52 = load double, ptr %4, align 8
%53 = fneg double %52
store double %53, ptr %4, align 8
br label %54
54: ; preds = %51, %48
%55 = load i32, ptr %9, align 4
%56 = load i32, ptr %8, align 4
%57 = sub i32 %55, %56
%58 = call double @pow(double noundef 1.000000e+01, i32 noundef %57)
%59 = load double, ptr %4, align 8
%60 = fmul double %59, %58
store double %60, ptr %4, align 8
%61 = load i32, ptr %6, align 4
%62 = sitofp i32 %61 to double
%63 = load i32, ptr %7, align 4
%64 = uitofp i32 %63 to double
%65 = load double, ptr %4, align 8
%66 = fdiv double %64, %65
%67 = fadd double %62, %66
store double %67, ptr %2, align 8
br label %68
68: ; preds = %54, %45, %41, %35
%69 = load double, ptr %2, align 8
ret double %69
}
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isdigit(i32 noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
declare double @pow(double 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 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp9mutq_fc.c'
source_filename = "/tmp/tmp9mutq_fc.c"
target datalayout = "e-m:e-p270: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/tmp9mutq_fc.c"
target datalayout = "e-m:e-p270: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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.