llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
|---|---|
; ModuleID = '/tmp/tmpc5pxxa29.c'
source_filename = "/tmp/tmpc5pxxa29.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memcpy(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
store i64 0, ptr %7, align 8
br label %8
8: ; preds = %20, %3
%9 = load i64, ptr %7, align 8
%10 = load i64, ptr %6, align 8
%11 = icmp ult i64 %9, %10
br i1 %11, label %12, label %23
12: ; preds = %8
%13 = load ptr, ptr %5, align 8
%14 = load i64, ptr %7, align 8
%15 = getelementptr inbounds i8, ptr %13, i64 %14
%16 = load i8, ptr %15, align 1
%17 = load ptr, ptr %4, align 8
%18 = load i64, ptr %7, align 8
%19 = getelementptr inbounds i8, ptr %17, i64 %18
store i8 %16, ptr %19, align 1
br label %20
20: ; preds = %12
%21 = load i64, ptr %7, align 8
%22 = add i64 %21, 1
store i64 %22, ptr %7, align 8
br label %8, !llvm.loop !6
23: ; preds = %8
%24 = load ptr, ptr %4, align 8
ret ptr %24
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc5pxxa29.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memcpy(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
store i64 0, ptr %7, align 8
%8 = load i64, ptr %7, align 8
%9 = load i64, ptr %6, align 8
%10 = icmp ult i64 %8, %9
br i1 %10, label %.lr.ph, label %25
.lr.ph: ; preds = %3
br label %11
11: ; preds = %.lr.ph, %19
%12 = load ptr, ptr %5, align 8
%13 = load i64, ptr %7, align 8
%14 = getelementptr inbounds i8, ptr %12, i64 %13
%15 = load i8, ptr %14, align 1
%16 = load ptr, ptr %4, align 8
%17 = load i64, ptr %7, align 8
%18 = getelementptr inbounds i8, ptr %16, i64 %17
store i8 %15, ptr %18, align 1
br label %19
19: ; preds = %11
%20 = load i64, ptr %7, align 8
%21 = add i64 %20, 1
store i64 %21, ptr %7, align 8
%22 = load i64, ptr %7, align 8
%23 = load i64, ptr %6, align 8
%24 = icmp ult i64 %22, %23
br i1 %24, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %25
25: ; preds = %._crit_edge, %3
%26 = load ptr, ptr %4, align 8
ret ptr %26
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpfjt1ncue.c'
source_filename = "/tmp/tmpfjt1ncue.c"
target datalayout = "e-m:e-p270: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/tmpfjt1ncue.c"
target datalayout = "e-m:e-p270: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/tmpi2cy6sv1.c'
source_filename = "/tmp/tmpi2cy6sv1.c"
target datalayout = "e-m:e-p270: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/tmpi2cy6sv1.c"
target datalayout = "e-m:e-p270: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/tmpbzrm7ilj.c'
source_filename = "/tmp/tmpbzrm7ilj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hash(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 = %17, %1
%5 = load ptr, ptr %2, align 8
%6 = load i8, ptr %5, align 1
%7 = icmp ne i8 %6, 0
br i1 %7, label %8, label %20
8: ; preds = %4
%9 = load i64, ptr %3, align 8
%10 = load i64, ptr %3, align 8
%11 = shl i64 %10, 5
%12 = add i64 %9, %11
%13 = load ptr, ptr %2, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i64
%16 = xor i64 %12, %15
store i64 %16, ptr %3, align 8
br label %17
17: ; preds = %8
%18 = load ptr, ptr %2, align 8
%19 = getelementptr inbounds i8, ptr %18, i32 1
store ptr %19, ptr %2, align 8
br label %4, !llvm.loop !6
20: ; preds = %4
%21 = load i64, ptr %3, align 8
ret i64 %21
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbzrm7ilj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hash(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 i8, ptr %4, align 1
%6 = icmp ne i8 %5, 0
br i1 %6, label %.lr.ph, label %22
.lr.ph: ; preds = %1
br label %7
7: ; preds = %.lr.ph, %16
%8 = load i64, ptr %3, align 8
%9 = load i64, ptr %3, align 8
%10 = shl i64 %9, 5
%11 = add i64 %8, %10
%12 = load ptr, ptr %2, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i64
%15 = xor i64 %11, %14
store i64 %15, ptr %3, align 8
br label %16
16: ; preds = %7
%17 = load ptr, ptr %2, align 8
%18 = getelementptr inbounds i8, ptr %17, i32 1
store ptr %18, ptr %2, align 8
%19 = load ptr, ptr %2, align 8
%20 = load i8, ptr %19, align 1
%21 = icmp ne i8 %20, 0
br i1 %21, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %22
22: ; preds = %._crit_edge, %1
%23 = load i64, ptr %3, align 8
ret i64 %23
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmppvas_hkb.c'
source_filename = "/tmp/tmppvas_hkb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%d %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 [1000 x i32], align 16
%11 = alloca [1000 x i32], align 16
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
br label %12
12: ; preds = %23, %2
%13 = load i32, ptr %6, align 4
%14 = icmp slt i32 %13, 1000
br i1 %14, label %15, label %26
15: ; preds = %12
%16 = load i32, ptr %6, align 4
%17 = load i32, ptr %6, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [1000 x i32], ptr %10, i64 0, i64 %18
store i32 %16, ptr %19, align 4
%20 = load i32, ptr %6, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [1000 x i32], ptr %11, i64 0, i64 %21
store i32 1, ptr %22, align 4
br label %23
23: ; preds = %15
%24 = load i32, ptr %6, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %6, align 4
br label %12, !llvm.loop !6
26: ; preds = %12
br label %27
27: ; preds = %123, %84, %26
%28 = call i32 @scanf(ptr noundef @.str, ptr noundef %8, ptr noundef %9)
%29 = icmp eq i32 %28, 2
br i1 %29, label %30, label %127
30: ; preds = %27
%31 = load i32, ptr %8, align 4
store i32 %31, ptr %6, align 4
br label %32
32: ; preds = %50, %30
%33 = load i32, ptr %6, align 4
%34 = load i32, ptr %6, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [1000 x i32], ptr %10, i64 0, i64 %35
%37 = load i32, ptr %36, align 4
%38 = icmp ne i32 %33, %37
br i1 %38, label %39, label %55
39: ; preds = %32
%40 = load i32, ptr %6, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [1000 x i32], ptr %10, i64 0, i64 %41
%43 = load i32, ptr %42, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [1000 x i32], ptr %10, i64 0, i64 %44
%46 = load i32, ptr %45, align 4
%47 = load i32, ptr %6, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [1000 x i32], ptr %10, i64 0, i64 %48
store i32 %46, ptr %49, align 4
br label %50
50: ; preds = %39
%51 = load i32, ptr %6, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [1000 x i32], ptr %10, i64 0, i64 %52
%54 = load i32, ptr %53, align 4
store i32 %54, ptr %6, align 4
br label %32, !llvm.loop !8
55: ; preds = %32
%56 = load i32, ptr %9, align 4
store i32 %56, ptr %7, align 4
br label %57
57: ; preds = %75, %55
%58 = load i32, ptr %7, align 4
%59 = load i32, ptr %7, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [1000 x i32], ptr %10, i64 0, i64 %60
%62 = load i32, ptr %61, align 4
%63 = icmp ne i32 %58, %62
br i1 %63, label %64, label %80
64: ; preds = %57
%65 = load i32, ptr %7, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [1000 x i32], ptr %10, i64 0, i64 %66
%68 = load i32, ptr %67, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [1000 x i32], ptr %10, i64 0, i64 %69
%71 = load i32, ptr %70, align 4
%72 = load i32, ptr %7, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [1000 x i32], ptr %10, i64 0, i64 %73
store i32 %71, ptr %74, align 4
br label %75
75: ; preds = %64
%76 = load i32, ptr %7, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [1000 x i32], ptr %10, i64 0, i64 %77
%79 = load i32, ptr %78, align 4
store i32 %79, ptr %7, align 4
br label %57, !llvm.loop !9
80: ; preds = %57
%81 = load i32, ptr %6, align 4
%82 = load i32, ptr %7, align 4
%83 = icmp eq i32 %81, %82
br i1 %83, label %84, label %85
84: ; preds = %80
br label %27, !llvm.loop !10
85: ; preds = %80
%86 = load i32, ptr %6, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [1000 x i32], ptr %11, i64 0, i64 %87
%89 = load i32, ptr %88, align 4
%90 = load i32, ptr %7, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [1000 x i32], ptr %11, i64 0, i64 %91
%93 = load i32, ptr %92, align 4
%94 = icmp slt i32 %89, %93
br i1 %94, label %95, label %109
95: ; preds = %85
%96 = load i32, ptr %7, align 4
%97 = load i32, ptr %6, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds [1000 x i32], ptr %10, i64 0, i64 %98
store i32 %96, ptr %99, align 4
%100 = load i32, ptr %6, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds [1000 x i32], ptr %11, i64 0, i64 %101
%103 = load i32, ptr %102, align 4
%104 = load i32, ptr %7, align 4
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds [1000 x i32], ptr %11, i64 0, i64 %105
%107 = load i32, ptr %106, align 4
%108 = add nsw i32 %107, %103
store i32 %108, ptr %106, align 4
br label %123
109: ; preds = %85
%110 = load i32, ptr %6, align 4
%111 = load i32, ptr %7, align 4
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds [1000 x i32], ptr %10, i64 0, i64 %112
store i32 %110, ptr %113, align 4
%114 = load i32, ptr %7, align 4
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds [1000 x i32], ptr %11, i64 0, i64 %115
%117 = load i32, ptr %116, align 4
%118 = load i32, ptr %6, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds [1000 x i32], ptr %11, i64 0, i64 %119
%121 = load i32, ptr %120, align 4
%122 = add nsw i32 %121, %117
store i32 %122, ptr %120, align 4
br label %123
123: ; preds = %109, %95
%124 = load i32, ptr %8, align 4
%125 = load i32, ptr %9, align 4
%126 = call i32 @printf(ptr noundef @.str.1, i32 noundef %124, i32 noundef %125)
br label %27, !llvm.loop !10
127: ; preds = %27
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!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/tmppvas_hkb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%d %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 [1000 x i32], align 16
%11 = alloca [1000 x i32], align 16
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
%12 = load i32, ptr %6, align 4
%13 = icmp slt i32 %12, 1000
br i1 %13, label %.lr.ph, label %27
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %22
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [1000 x i32], ptr %10, i64 0, i64 %17
store i32 %15, ptr %18, align 4
%19 = load i32, ptr %6, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [1000 x i32], ptr %11, i64 0, i64 %20
store i32 1, ptr %21, align 4
br label %22
22: ; preds = %14
%23 = load i32, ptr %6, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %6, align 4
%25 = load i32, ptr %6, align 4
%26 = icmp slt i32 %25, 1000
br i1 %26, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %27
27: ; preds = %._crit_edge, %2
%28 = call i32 @scanf(ptr noundef @.str, ptr noundef %8, ptr noundef %9)
%29 = icmp eq i32 %28, 2
br i1 %29, label %.lr.ph8, label %139
.lr.ph8: ; preds = %27
br label %30
30: ; preds = %.lr.ph8, %.backedge
%31 = load i32, ptr %8, align 4
store i32 %31, ptr %6, align 4
%32 = load i32, ptr %6, align 4
%33 = load i32, ptr %6, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [1000 x i32], ptr %10, i64 0, i64 %34
%36 = load i32, ptr %35, align 4
%37 = icmp ne i32 %32, %36
br i1 %37, label %.lr.ph2, label %60
.lr.ph2: ; preds = %30
br label %38
38: ; preds = %.lr.ph2, %49
%39 = load i32, ptr %6, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [1000 x i32], ptr %10, i64 0, i64 %40
%42 = load i32, ptr %41, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [1000 x i32], ptr %10, i64 0, i64 %43
%45 = load i32, ptr %44, align 4
%46 = load i32, ptr %6, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [1000 x i32], ptr %10, i64 0, i64 %47
store i32 %45, ptr %48, align 4
br label %49
49: ; preds = %38
%50 = load i32, ptr %6, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [1000 x i32], ptr %10, i64 0, i64 %51
%53 = load i32, ptr %52, align 4
store i32 %53, ptr %6, align 4
%54 = load i32, ptr %6, align 4
%55 = load i32, ptr %6, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [1000 x i32], ptr %10, i64 0, i64 %56
%58 = load i32, ptr %57, align 4
%59 = icmp ne i32 %54, %58
br i1 %59, label %38, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %49
br label %60
60: ; preds = %._crit_edge3, %30
%61 = load i32, ptr %9, align 4
store i32 %61, ptr %7, align 4
%62 = load i32, ptr %7, align 4
%63 = load i32, ptr %7, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [1000 x i32], ptr %10, i64 0, i64 %64
%66 = load i32, ptr %65, align 4
%67 = icmp ne i32 %62, %66
br i1 %67, label %.lr.ph5, label %90
.lr.ph5: ; preds = %60
br label %68
68: ; preds = %.lr.ph5, %79
%69 = load i32, ptr %7, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [1000 x i32], ptr %10, i64 0, i64 %70
%72 = load i32, ptr %71, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [1000 x i32], ptr %10, i64 0, i64 %73
%75 = load i32, ptr %74, align 4
%76 = load i32, ptr %7, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [1000 x i32], ptr %10, i64 0, i64 %77
store i32 %75, ptr %78, align 4
br label %79
79: ; preds = %68
%80 = load i32, ptr %7, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [1000 x i32], ptr %10, i64 0, i64 %81
%83 = load i32, ptr %82, align 4
store i32 %83, ptr %7, align 4
%84 = load i32, ptr %7, align 4
%85 = load i32, ptr %7, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [1000 x i32], ptr %10, i64 0, i64 %86
%88 = load i32, ptr %87, align 4
%89 = icmp ne i32 %84, %88
br i1 %89, label %68, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %79
br label %90
90: ; preds = %._crit_edge6, %60
%91 = load i32, ptr %6, align 4
%92 = load i32, ptr %7, align 4
%93 = icmp eq i32 %91, %92
br i1 %93, label %94, label %97
94: ; preds = %90
br label %.backedge
.backedge: ; preds = %94, %135
%95 = call i32 @scanf(ptr noundef @.str, ptr noundef %8, ptr noundef %9)
%96 = icmp eq i32 %95, 2
br i1 %96, label %30, label %._crit_edge9, !llvm.loop !10
97: ; preds = %90
%98 = load i32, ptr %6, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [1000 x i32], ptr %11, i64 0, i64 %99
%101 = load i32, ptr %100, align 4
%102 = load i32, ptr %7, align 4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [1000 x i32], ptr %11, i64 0, i64 %103
%105 = load i32, ptr %104, align 4
%106 = icmp slt i32 %101, %105
br i1 %106, label %107, label %121
107: ; preds = %97
%108 = load i32, ptr %7, align 4
%109 = load i32, ptr %6, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [1000 x i32], ptr %10, i64 0, i64 %110
store i32 %108, ptr %111, align 4
%112 = load i32, ptr %6, align 4
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds [1000 x i32], ptr %11, i64 0, i64 %113
%115 = load i32, ptr %114, align 4
%116 = load i32, ptr %7, align 4
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds [1000 x i32], ptr %11, i64 0, i64 %117
%119 = load i32, ptr %118, align 4
%120 = add nsw i32 %119, %115
store i32 %120, ptr %118, align 4
br label %135
121: ; preds = %97
%122 = load i32, ptr %6, align 4
%123 = load i32, ptr %7, align 4
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds [1000 x i32], ptr %10, i64 0, i64 %124
store i32 %122, ptr %125, align 4
%126 = load i32, ptr %7, align 4
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds [1000 x i32], ptr %11, i64 0, i64 %127
%129 = load i32, ptr %128, align 4
%130 = load i32, ptr %6, align 4
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds [1000 x i32], ptr %11, i64 0, i64 %131
%133 = load i32, ptr %132, align 4
%134 = add nsw i32 %133, %129
store i32 %134, ptr %132, align 4
br label %135
135: ; preds = %121, %107
%136 = load i32, ptr %8, align 4
%137 = load i32, ptr %9, align 4
%138 = call i32 @printf(ptr noundef @.str.1, i32 noundef %136, i32 noundef %137)
br label %.backedge
._crit_edge9: ; preds = %.backedge
br label %139
139: ; preds = %._crit_edge9, %27
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpwpo0zk9l.c'
source_filename = "/tmp/tmpwpo0zk9l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0A Init Modul2\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @vInitModul2() #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/tmpwpo0zk9l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0A Init Modul2\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @vInitModul2() #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/tmpylyus2kv.c'
source_filename = "/tmp/tmpylyus2kv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @write_double(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, double noundef %3)
ret void
}
declare i32 @printf(ptr noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpylyus2kv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @write_double(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, double noundef %3)
ret void
}
declare i32 @printf(ptr noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg97piwnc.c'
source_filename = "/tmp/tmpg97piwnc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @kthSmallest(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
store i32 0, ptr %5, align 4
%6 = load ptr, ptr %3, align 8
%7 = load i32, ptr %4, align 4
%8 = call i32 @inorder(ptr noundef %6, ptr noundef %5, i32 noundef %7)
ret i32 %8
}
declare i32 @inorder(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg97piwnc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @kthSmallest(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
store i32 0, ptr %5, align 4
%6 = load ptr, ptr %3, align 8
%7 = load i32, ptr %4, align 4
%8 = call i32 @inorder(ptr noundef %6, ptr noundef %5, i32 noundef %7)
ret i32 %8
}
declare i32 @inorder(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpc1urtva1.c'
source_filename = "/tmp/tmpc1urtva1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @linemod(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @putchar(float noundef 1.020000e+02)
%4 = load ptr, ptr %2, align 8
%5 = call i32 @puts(ptr noundef %4)
ret void
}
declare i32 @putchar(float noundef) #1
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc1urtva1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @linemod(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @putchar(float noundef 1.020000e+02)
%4 = load ptr, ptr %2, align 8
%5 = call i32 @puts(ptr noundef %4)
ret void
}
declare i32 @putchar(float noundef) #1
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxylii5lq.c'
source_filename = "/tmp/tmpxylii5lq.c"
target datalayout = "e-m:e-p270: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/tmpxylii5lq.c"
target datalayout = "e-m:e-p270: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/tmpc91y758q.c'
source_filename = "/tmp/tmpc91y758q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CLOCK_MONOTONIC = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc91y758q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CLOCK_MONOTONIC = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpoit4qvlh.c'
source_filename = "/tmp/tmpoit4qvlh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Odd Sum: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @runner2(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
store ptr %7, ptr %4, align 8
store i32 0, ptr %6, align 4
store i32 1, ptr %5, align 4
br label %8
8: ; preds = %17, %1
%9 = load i32, ptr %5, align 4
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %10, align 4
%12 = icmp slt i32 %9, %11
br i1 %12, label %13, label %20
13: ; preds = %8
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %6, align 4
%16 = add nsw i32 %15, %14
store i32 %16, ptr %6, align 4
br label %17
17: ; preds = %13
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 2
store i32 %19, ptr %5, align 4
br label %8, !llvm.loop !6
20: ; preds = %8
%21 = load i32, ptr %6, align 4
%22 = call i32 @printf(ptr noundef @.str, i32 noundef %21)
%23 = load ptr, ptr %2, align 8
ret ptr %23
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoit4qvlh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Odd Sum: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @runner2(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
store ptr %7, ptr %4, align 8
store i32 0, ptr %6, align 4
store i32 1, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = load ptr, ptr %4, align 8
%10 = load i32, ptr %9, align 4
%11 = icmp slt i32 %8, %10
br i1 %11, label %.lr.ph, label %23
.lr.ph: ; preds = %1
br label %12
12: ; preds = %.lr.ph, %16
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %6, align 4
%15 = add nsw i32 %14, %13
store i32 %15, ptr %6, align 4
br label %16
16: ; preds = %12
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, 2
store i32 %18, ptr %5, align 4
%19 = load i32, ptr %5, align 4
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr %20, align 4
%22 = icmp slt i32 %19, %21
br i1 %22, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %23
23: ; preds = %._crit_edge, %1
%24 = load i32, ptr %6, align 4
%25 = call i32 @printf(ptr noundef @.str, i32 noundef %24)
%26 = load ptr, ptr %2, align 8
ret ptr %26
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpwzhoxz5l.c'
source_filename = "/tmp/tmpwzhoxz5l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"bin/notes\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"[DEBUG] buffer @ %p: '%s'\0A\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_APPEND = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [29 x i8] c"in main() while opening file\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"[DEBUG] file descriptor is %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [39 x i8] c"in main() while writing userid to file\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.6 = private unnamed_addr constant [29 x i8] c"in main() while closing file\00", align 1
@.str.7 = private unnamed_addr constant [22 x i8] c"Note has been saved.\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 ptr, align 8
%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
%10 = call i64 @ec_malloc(i32 noundef 100)
%11 = inttoptr i64 %10 to ptr
store ptr %11, ptr %8, align 8
%12 = call i64 @ec_malloc(i32 noundef 20)
%13 = inttoptr i64 %12 to ptr
store ptr %13, ptr %9, align 8
%14 = load ptr, ptr %9, align 8
%15 = call i32 @strcpy(ptr noundef %14, ptr noundef @.str)
%16 = load i32, ptr %4, align 4
%17 = icmp slt i32 %16, 2
br i1 %17, label %18, label %24
18: ; preds = %2
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 0
%21 = load ptr, ptr %20, align 8
%22 = load ptr, ptr %9, align 8
%23 = call i32 @usage(ptr noundef %21, ptr noundef %22)
br label %24
24: ; preds = %18, %2
%25 = load ptr, ptr %8, align 8
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 1
%28 = load ptr, ptr %27, align 8
%29 = call i32 @strcpy(ptr noundef %25, ptr noundef %28)
%30 = load ptr, ptr %8, align 8
%31 = load ptr, ptr %8, align 8
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %30, ptr noundef %31)
%33 = load ptr, ptr %9, align 8
%34 = load ptr, ptr %9, align 8
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %33, ptr noundef %34)
%36 = load ptr, ptr %9, align 8
%37 = load i32, ptr @O_WRONLY, align 4
%38 = load i32, ptr @O_CREAT, align 4
%39 = or i32 %37, %38
%40 = load i32, ptr @O_APPEND, align 4
%41 = or i32 %39, %40
%42 = load i32, ptr @S_IRUSR, align 4
%43 = load i32, ptr @S_IWUSR, align 4
%44 = or i32 %42, %43
%45 = call i32 @open(ptr noundef %36, i32 noundef %41, i32 noundef %44)
store i32 %45, ptr %7, align 4
%46 = load i32, ptr %7, align 4
%47 = icmp eq i32 %46, -1
br i1 %47, label %48, label %50
48: ; preds = %24
%49 = call i32 @fatal(ptr noundef @.str.2)
br label %50
50: ; preds = %48, %24
%51 = load i32, ptr %7, align 4
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %51)
%53 = call i32 (...) @getuid()
store i32 %53, ptr %6, align 4
%54 = load i32, ptr %7, align 4
%55 = call i32 (i32, ...) @write(i32 noundef %54, ptr noundef %6, i32 noundef 4)
%56 = icmp eq i32 %55, -1
br i1 %56, label %57, label %59
57: ; preds = %50
%58 = call i32 @fatal(ptr noundef @.str.4)
br label %59
59: ; preds = %57, %50
%60 = load i32, ptr %7, align 4
%61 = call i32 (i32, ...) @write(i32 noundef %60, ptr noundef @.str.5, i32 noundef 1)
%62 = load i32, ptr %7, align 4
%63 = load ptr, ptr %8, align 8
%64 = load ptr, ptr %8, align 8
%65 = call i32 @strlen(ptr noundef %64)
%66 = call i32 (i32, ...) @write(i32 noundef %62, ptr noundef %63, i32 noundef %65)
%67 = icmp eq i32 %66, -1
br i1 %67, label %68, label %70
68: ; preds = %59
%69 = call i32 @fatal(ptr noundef @.str.6)
br label %70
70: ; preds = %68, %59
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%72 = load ptr, ptr %8, align 8
%73 = call i32 @free(ptr noundef %72)
%74 = load ptr, ptr %9, align 8
%75 = call i32 @free(ptr noundef %74)
%76 = load i32, ptr %3, align 4
ret i32 %76
}
declare i64 @ec_malloc(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @usage(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fatal(ptr noundef) #1
declare i32 @getuid(...) #1
declare i32 @write(i32 noundef, ...) #1
declare i32 @strlen(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/tmpwzhoxz5l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"bin/notes\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"[DEBUG] buffer @ %p: '%s'\0A\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_APPEND = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [29 x i8] c"in main() while opening file\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"[DEBUG] file descriptor is %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [39 x i8] c"in main() while writing userid to file\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.6 = private unnamed_addr constant [29 x i8] c"in main() while closing file\00", align 1
@.str.7 = private unnamed_addr constant [22 x i8] c"Note has been saved.\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 ptr, align 8
%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
%10 = call i64 @ec_malloc(i32 noundef 100)
%11 = inttoptr i64 %10 to ptr
store ptr %11, ptr %8, align 8
%12 = call i64 @ec_malloc(i32 noundef 20)
%13 = inttoptr i64 %12 to ptr
store ptr %13, ptr %9, align 8
%14 = load ptr, ptr %9, align 8
%15 = call i32 @strcpy(ptr noundef %14, ptr noundef @.str)
%16 = load i32, ptr %4, align 4
%17 = icmp slt i32 %16, 2
br i1 %17, label %18, label %24
18: ; preds = %2
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 0
%21 = load ptr, ptr %20, align 8
%22 = load ptr, ptr %9, align 8
%23 = call i32 @usage(ptr noundef %21, ptr noundef %22)
br label %24
24: ; preds = %18, %2
%25 = load ptr, ptr %8, align 8
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 1
%28 = load ptr, ptr %27, align 8
%29 = call i32 @strcpy(ptr noundef %25, ptr noundef %28)
%30 = load ptr, ptr %8, align 8
%31 = load ptr, ptr %8, align 8
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %30, ptr noundef %31)
%33 = load ptr, ptr %9, align 8
%34 = load ptr, ptr %9, align 8
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %33, ptr noundef %34)
%36 = load ptr, ptr %9, align 8
%37 = load i32, ptr @O_WRONLY, align 4
%38 = load i32, ptr @O_CREAT, align 4
%39 = or i32 %37, %38
%40 = load i32, ptr @O_APPEND, align 4
%41 = or i32 %39, %40
%42 = load i32, ptr @S_IRUSR, align 4
%43 = load i32, ptr @S_IWUSR, align 4
%44 = or i32 %42, %43
%45 = call i32 @open(ptr noundef %36, i32 noundef %41, i32 noundef %44)
store i32 %45, ptr %7, align 4
%46 = load i32, ptr %7, align 4
%47 = icmp eq i32 %46, -1
br i1 %47, label %48, label %50
48: ; preds = %24
%49 = call i32 @fatal(ptr noundef @.str.2)
br label %50
50: ; preds = %48, %24
%51 = load i32, ptr %7, align 4
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %51)
%53 = call i32 (...) @getuid()
store i32 %53, ptr %6, align 4
%54 = load i32, ptr %7, align 4
%55 = call i32 (i32, ...) @write(i32 noundef %54, ptr noundef %6, i32 noundef 4)
%56 = icmp eq i32 %55, -1
br i1 %56, label %57, label %59
57: ; preds = %50
%58 = call i32 @fatal(ptr noundef @.str.4)
br label %59
59: ; preds = %57, %50
%60 = load i32, ptr %7, align 4
%61 = call i32 (i32, ...) @write(i32 noundef %60, ptr noundef @.str.5, i32 noundef 1)
%62 = load i32, ptr %7, align 4
%63 = load ptr, ptr %8, align 8
%64 = load ptr, ptr %8, align 8
%65 = call i32 @strlen(ptr noundef %64)
%66 = call i32 (i32, ...) @write(i32 noundef %62, ptr noundef %63, i32 noundef %65)
%67 = icmp eq i32 %66, -1
br i1 %67, label %68, label %70
68: ; preds = %59
%69 = call i32 @fatal(ptr noundef @.str.6)
br label %70
70: ; preds = %68, %59
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%72 = load ptr, ptr %8, align 8
%73 = call i32 @free(ptr noundef %72)
%74 = load ptr, ptr %9, align 8
%75 = call i32 @free(ptr noundef %74)
%76 = load i32, ptr %3, align 4
ret i32 %76
}
declare i64 @ec_malloc(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @usage(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fatal(ptr noundef) #1
declare i32 @getuid(...) #1
declare i32 @write(i32 noundef, ...) #1
declare i32 @strlen(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/tmpy967xehm.c'
source_filename = "/tmp/tmpy967xehm.c"
target datalayout = "e-m:e-p270: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/tmpy967xehm.c"
target datalayout = "e-m:e-p270: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/tmp5cxpk4gb.c'
source_filename = "/tmp/tmp5cxpk4gb.c"
target datalayout = "e-m:e-p270: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.responses = private unnamed_addr constant [40 x i32] [i32 1, i32 2, i32 6, i32 4, i32 8, i32 5, i32 9, i32 7, i32 8, i32 10, i32 1, i32 6, i32 3, i32 8, i32 6, i32 10, i32 3, i32 8, i32 2, i32 7, i32 6, i32 5, i32 7, i32 6, i32 8, i32 6, i32 7, i32 5, i32 6, i32 6, i32 5, i32 6, i32 7, i32 5, i32 6, i32 4, i32 8, i32 6, i32 8, i32 10], align 16
@.str = private unnamed_addr constant [8 x i8] c"%s%17s\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"Rating\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"Frequency\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"%6d%17d\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 [11 x i32], align 16
%5 = alloca [40 x i32], align 16
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %4, i8 0, i64 44, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.main.responses, i64 160, i1 false)
store i32 0, ptr %2, align 4
br label %6
6: ; preds = %18, %0
%7 = load i32, ptr %2, align 4
%8 = icmp slt i32 %7, 40
br i1 %8, label %9, label %21
9: ; preds = %6
%10 = load i32, ptr %2, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [40 x i32], ptr %5, i64 0, i64 %11
%13 = load i32, ptr %12, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [11 x i32], ptr %4, i64 0, i64 %14
%16 = load i32, ptr %15, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %15, align 4
br label %18
18: ; preds = %9
%19 = load i32, ptr %2, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %2, align 4
br label %6, !llvm.loop !6
21: ; preds = %6
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.2)
store i32 1, ptr %3, align 4
br label %23
23: ; preds = %33, %21
%24 = load i32, ptr %3, align 4
%25 = icmp slt i32 %24, 11
br i1 %25, label %26, label %36
26: ; preds = %23
%27 = load i32, ptr %3, align 4
%28 = load i32, ptr %3, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [11 x i32], ptr %4, i64 0, i64 %29
%31 = load i32, ptr %30, align 4
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %27, i32 noundef %31)
br label %33
33: ; preds = %26
%34 = load i32, ptr %3, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %3, align 4
br label %23, !llvm.loop !8
36: ; preds = %23
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 @printf(ptr noundef, ...) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5cxpk4gb.c"
target datalayout = "e-m:e-p270: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.responses = private unnamed_addr constant [40 x i32] [i32 1, i32 2, i32 6, i32 4, i32 8, i32 5, i32 9, i32 7, i32 8, i32 10, i32 1, i32 6, i32 3, i32 8, i32 6, i32 10, i32 3, i32 8, i32 2, i32 7, i32 6, i32 5, i32 7, i32 6, i32 8, i32 6, i32 7, i32 5, i32 6, i32 6, i32 5, i32 6, i32 7, i32 5, i32 6, i32 4, i32 8, i32 6, i32 8, i32 10], align 16
@.str = private unnamed_addr constant [8 x i8] c"%s%17s\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"Rating\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"Frequency\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"%6d%17d\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 [11 x i32], align 16
%5 = alloca [40 x i32], align 16
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %4, i8 0, i64 44, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.main.responses, i64 160, i1 false)
store i32 0, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %6, 40
br i1 %7, label %.lr.ph, label %22
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %17
%9 = load i32, ptr %2, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [40 x i32], ptr %5, i64 0, i64 %10
%12 = load i32, ptr %11, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [11 x i32], ptr %4, i64 0, i64 %13
%15 = load i32, ptr %14, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %14, align 4
br label %17
17: ; preds = %8
%18 = load i32, ptr %2, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %2, align 4
%20 = load i32, ptr %2, align 4
%21 = icmp slt i32 %20, 40
br i1 %21, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %22
22: ; preds = %._crit_edge, %0
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.2)
store i32 1, ptr %3, align 4
%24 = load i32, ptr %3, align 4
%25 = icmp slt i32 %24, 11
br i1 %25, label %.lr.ph2, label %38
.lr.ph2: ; preds = %22
br label %26
26: ; preds = %.lr.ph2, %33
%27 = load i32, ptr %3, align 4
%28 = load i32, ptr %3, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [11 x i32], ptr %4, i64 0, i64 %29
%31 = load i32, ptr %30, align 4
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %27, i32 noundef %31)
br label %33
33: ; preds = %26
%34 = load i32, ptr %3, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %3, align 4
%36 = load i32, ptr %3, align 4
%37 = icmp slt i32 %36, 11
br i1 %37, label %26, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %33
br label %38
38: ; preds = %._crit_edge3, %22
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 @printf(ptr noundef, ...) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp8xox70c5.c'
source_filename = "/tmp/tmp8xox70c5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mem_try_alloc(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = call ptr @malloc(i64 noundef %3) #2
ret ptr %4
}
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { allocsize(0) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8xox70c5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mem_try_alloc(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = call ptr @malloc(i64 noundef %3) #2
ret ptr %4
}
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { allocsize(0) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpaev80dsv.c'
source_filename = "/tmp/tmpaev80dsv.c"
target datalayout = "e-m:e-p270: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/tmpaev80dsv.c"
target datalayout = "e-m:e-p270: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/tmpk7r4pjor.c'
source_filename = "/tmp/tmpk7r4pjor.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strReverse(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%5 = load ptr, ptr %2, align 8
%6 = call i32 @strlen(ptr noundef %5)
%7 = sub nsw i32 %6, 1
%8 = sext i32 %7 to i64
store i64 %8, ptr %4, align 8
br label %9
9: ; preds = %55, %1
%10 = load i32, ptr %3, align 4
%11 = sext i32 %10 to i64
%12 = load i64, ptr %4, align 8
%13 = icmp ult i64 %11, %12
br i1 %13, label %14, label %60
14: ; preds = %9
br label %15
15: ; preds = %14
%16 = load ptr, ptr %2, align 8
%17 = load i64, ptr %4, align 8
%18 = getelementptr inbounds i8, ptr %16, i64 %17
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = load ptr, ptr %2, align 8
%22 = load i32, ptr %3, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %21, i64 %23
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = xor i32 %26, %20
%28 = trunc i32 %27 to i8
store i8 %28, ptr %24, align 1
%29 = load ptr, ptr %2, align 8
%30 = load i32, ptr %3, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = load ptr, ptr %2, align 8
%36 = load i64, ptr %4, align 8
%37 = getelementptr inbounds i8, ptr %35, i64 %36
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = xor i32 %39, %34
%41 = trunc i32 %40 to i8
store i8 %41, ptr %37, align 1
%42 = load ptr, ptr %2, align 8
%43 = load i64, ptr %4, align 8
%44 = getelementptr inbounds i8, ptr %42, i64 %43
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = load ptr, ptr %2, align 8
%48 = load i32, ptr %3, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8, ptr %47, i64 %49
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = xor i32 %52, %46
%54 = trunc i32 %53 to i8
store i8 %54, ptr %50, align 1
br label %55
55: ; preds = %15
%56 = load i32, ptr %3, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %3, align 4
%58 = load i64, ptr %4, align 8
%59 = add i64 %58, -1
store i64 %59, ptr %4, align 8
br label %9, !llvm.loop !6
60: ; preds = %9
ret void
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk7r4pjor.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strReverse(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%5 = load ptr, ptr %2, align 8
%6 = call i32 @strlen(ptr noundef %5)
%7 = sub nsw i32 %6, 1
%8 = sext i32 %7 to i64
store i64 %8, ptr %4, align 8
%9 = load i32, ptr %3, align 4
%10 = sext i32 %9 to i64
%11 = load i64, ptr %4, align 8
%12 = icmp ult i64 %10, %11
br i1 %12, label %.lr.ph, label %63
.lr.ph: ; preds = %1
br label %13
13: ; preds = %.lr.ph, %54
br label %14
14: ; preds = %13
%15 = load ptr, ptr %2, align 8
%16 = load i64, ptr %4, align 8
%17 = getelementptr inbounds i8, ptr %15, i64 %16
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = load ptr, ptr %2, align 8
%21 = load i32, ptr %3, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = xor i32 %25, %19
%27 = trunc i32 %26 to i8
store i8 %27, ptr %23, align 1
%28 = load ptr, ptr %2, align 8
%29 = load i32, ptr %3, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %28, i64 %30
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = load ptr, ptr %2, align 8
%35 = load i64, ptr %4, align 8
%36 = getelementptr inbounds i8, ptr %34, i64 %35
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = xor i32 %38, %33
%40 = trunc i32 %39 to i8
store i8 %40, ptr %36, align 1
%41 = load ptr, ptr %2, align 8
%42 = load i64, ptr %4, align 8
%43 = getelementptr inbounds i8, ptr %41, i64 %42
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = load ptr, ptr %2, align 8
%47 = load i32, ptr %3, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8, ptr %46, i64 %48
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = xor i32 %51, %45
%53 = trunc i32 %52 to i8
store i8 %53, ptr %49, align 1
br label %54
54: ; preds = %14
%55 = load i32, ptr %3, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %3, align 4
%57 = load i64, ptr %4, align 8
%58 = add i64 %57, -1
store i64 %58, ptr %4, align 8
%59 = load i32, ptr %3, align 4
%60 = sext i32 %59 to i64
%61 = load i64, ptr %4, align 8
%62 = icmp ult i64 %60, %61
br i1 %62, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %54
br label %63
63: ; preds = %._crit_edge, %1
ret void
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpnlrcry0h.c'
source_filename = "/tmp/tmpnlrcry0h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mloop_async_free(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @mloop__free_context(ptr noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @free(ptr noundef %5)
ret void
}
declare i32 @mloop__free_context(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/tmpnlrcry0h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mloop_async_free(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @mloop__free_context(ptr noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @free(ptr noundef %5)
ret void
}
declare i32 @mloop__free_context(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/tmpk4f111pr.c'
source_filename = "/tmp/tmpk4f111pr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"true\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"false\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @show_bool(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 = icmp eq i32 %6, 1
%8 = zext i1 %7 to i64
%9 = select i1 %7, ptr @.str, ptr @.str.1
%10 = call i32 @fprintf(ptr noundef %5, ptr noundef %9)
ret void
}
declare i32 @fprintf(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/tmpk4f111pr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"true\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"false\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @show_bool(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 = icmp eq i32 %6, 1
%8 = zext i1 %7 to i64
%9 = select i1 %7, ptr @.str, ptr @.str.1
%10 = call i32 @fprintf(ptr noundef %5, ptr noundef %9)
ret void
}
declare i32 @fprintf(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/tmpcfnuhg0d.c'
source_filename = "/tmp/tmpcfnuhg0d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [1025 x ptr], align 16
store i32 0, ptr %1, align 4
%6 = call ptr (...) @mem_context_new()
store ptr %6, ptr %2, align 8
store i32 1, ptr %3, align 4
br label %7
7: ; preds = %46, %0
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 400
br i1 %9, label %10, label %49
10: ; preds = %7
store i32 0, ptr %4, align 4
br label %11
11: ; preds = %27, %10
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %12, 1025
br i1 %13, label %14, label %30
14: ; preds = %11
%15 = load ptr, ptr %2, align 8
%16 = load i32, ptr %3, align 4
%17 = call ptr @mem_alloc(ptr noundef %15, i32 noundef %16)
%18 = load i32, ptr %4, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [1025 x ptr], ptr %5, i64 0, i64 %19
store ptr %17, ptr %20, align 8
%21 = load i32, ptr %4, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [1025 x ptr], ptr %5, i64 0, i64 %22
%24 = load ptr, ptr %23, align 8
%25 = load i32, ptr %3, align 4
%26 = call i32 @memset(ptr noundef %24, i32 noundef 255, i32 noundef %25)
br label %27
27: ; preds = %14
%28 = load i32, ptr %4, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %4, align 4
br label %11, !llvm.loop !6
30: ; preds = %11
store i32 0, ptr %4, align 4
br label %31
31: ; preds = %42, %30
%32 = load i32, ptr %4, align 4
%33 = icmp slt i32 %32, 1025
br i1 %33, label %34, label %45
34: ; preds = %31
%35 = load ptr, ptr %2, align 8
%36 = load i32, ptr %4, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [1025 x ptr], ptr %5, i64 0, i64 %37
%39 = load ptr, ptr %38, align 8
%40 = load i32, ptr %3, align 4
%41 = call i32 @mem_free(ptr noundef %35, ptr noundef %39, i32 noundef %40)
br label %42
42: ; preds = %34
%43 = load i32, ptr %4, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %4, align 4
br label %31, !llvm.loop !8
45: ; preds = %31
br label %46
46: ; preds = %45
%47 = load i32, ptr %3, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %3, align 4
br label %7, !llvm.loop !9
49: ; preds = %7
%50 = load ptr, ptr %2, align 8
%51 = call i32 @mem_context_free(ptr noundef %50)
%52 = load i32, ptr %1, align 4
ret i32 %52
}
declare ptr @mem_context_new(...) #1
declare ptr @mem_alloc(ptr noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @mem_free(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @mem_context_free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcfnuhg0d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [1025 x ptr], align 16
store i32 0, ptr %1, align 4
%6 = call ptr (...) @mem_context_new()
store ptr %6, ptr %2, align 8
store i32 1, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 400
br i1 %8, label %.lr.ph5, label %52
.lr.ph5: ; preds = %0
br label %9
9: ; preds = %.lr.ph5, %47
store i32 0, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 1025
br i1 %11, label %.lr.ph, label %30
.lr.ph: ; preds = %9
br label %12
12: ; preds = %.lr.ph, %25
%13 = load ptr, ptr %2, align 8
%14 = load i32, ptr %3, align 4
%15 = call ptr @mem_alloc(ptr noundef %13, i32 noundef %14)
%16 = load i32, ptr %4, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [1025 x ptr], ptr %5, i64 0, i64 %17
store ptr %15, ptr %18, align 8
%19 = load i32, ptr %4, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [1025 x ptr], ptr %5, i64 0, i64 %20
%22 = load ptr, ptr %21, align 8
%23 = load i32, ptr %3, align 4
%24 = call i32 @memset(ptr noundef %22, i32 noundef 255, i32 noundef %23)
br label %25
25: ; preds = %12
%26 = load i32, ptr %4, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %4, align 4
%28 = load i32, ptr %4, align 4
%29 = icmp slt i32 %28, 1025
br i1 %29, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %30
30: ; preds = %._crit_edge, %9
store i32 0, ptr %4, align 4
%31 = load i32, ptr %4, align 4
%32 = icmp slt i32 %31, 1025
br i1 %32, label %.lr.ph2, label %46
.lr.ph2: ; preds = %30
br label %33
33: ; preds = %.lr.ph2, %41
%34 = load ptr, ptr %2, align 8
%35 = load i32, ptr %4, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [1025 x ptr], ptr %5, i64 0, i64 %36
%38 = load ptr, ptr %37, align 8
%39 = load i32, ptr %3, align 4
%40 = call i32 @mem_free(ptr noundef %34, ptr noundef %38, i32 noundef %39)
br label %41
41: ; preds = %33
%42 = load i32, ptr %4, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %4, align 4
%44 = load i32, ptr %4, align 4
%45 = icmp slt i32 %44, 1025
br i1 %45, label %33, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %41
br label %46
46: ; preds = %._crit_edge3, %30
br label %47
47: ; preds = %46
%48 = load i32, ptr %3, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %3, align 4
%50 = load i32, ptr %3, align 4
%51 = icmp slt i32 %50, 400
br i1 %51, label %9, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %47
br label %52
52: ; preds = %._crit_edge6, %0
%53 = load ptr, ptr %2, align 8
%54 = call i32 @mem_context_free(ptr noundef %53)
%55 = load i32, ptr %1, align 4
ret i32 %55
}
declare ptr @mem_context_new(...) #1
declare ptr @mem_alloc(ptr noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @mem_free(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @mem_context_free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp4jh6g3nh.c'
source_filename = "/tmp/tmp4jh6g3nh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"aaaaacefghij\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"aaac\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @Index(ptr noundef @.str.1, ptr noundef @.str.2)
%7 = call i32 @printf(ptr noundef @.str, i32 noundef %6)
%8 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %8
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @Index(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/tmp4jh6g3nh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"aaaaacefghij\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"aaac\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @Index(ptr noundef @.str.1, ptr noundef @.str.2)
%7 = call i32 @printf(ptr noundef @.str, i32 noundef %6)
%8 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %8
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @Index(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/tmpyxiipa5r.c'
source_filename = "/tmp/tmpyxiipa5r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"%lf %lf %lf\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"TRIANGULO: %.3lf\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"CIRCULO: %.3lf\0A\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"TRAPEZIO: %.3lf\0A\00", align 1
@.str.4 = private unnamed_addr constant [17 x i8] c"QUADRADO: %.3lf\0A\00", align 1
@.str.5 = private unnamed_addr constant [18 x i8] c"RETANGULO: %.3lf\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 double, align 8
%4 = alloca double, align 8
store i32 0, ptr %1, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%6 = load double, ptr %2, align 8
%7 = load double, ptr %4, align 8
%8 = fmul double %6, %7
%9 = fdiv double %8, 2.000000e+00
%10 = call i32 @printf(ptr noundef @.str.1, double noundef %9)
%11 = load double, ptr %4, align 8
%12 = fmul double 3.141590e+00, %11
%13 = load double, ptr %4, align 8
%14 = fmul double %12, %13
%15 = call i32 @printf(ptr noundef @.str.2, double noundef %14)
%16 = load double, ptr %2, align 8
%17 = load double, ptr %3, align 8
%18 = fadd double %16, %17
%19 = fdiv double %18, 2.000000e+00
%20 = load double, ptr %4, align 8
%21 = fmul double %19, %20
%22 = call i32 @printf(ptr noundef @.str.3, double noundef %21)
%23 = load double, ptr %3, align 8
%24 = load double, ptr %3, align 8
%25 = fmul double %23, %24
%26 = call i32 @printf(ptr noundef @.str.4, double noundef %25)
%27 = load double, ptr %2, align 8
%28 = load double, ptr %3, align 8
%29 = fmul double %27, %28
%30 = call i32 @printf(ptr noundef @.str.5, double noundef %29)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyxiipa5r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"%lf %lf %lf\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"TRIANGULO: %.3lf\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"CIRCULO: %.3lf\0A\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"TRAPEZIO: %.3lf\0A\00", align 1
@.str.4 = private unnamed_addr constant [17 x i8] c"QUADRADO: %.3lf\0A\00", align 1
@.str.5 = private unnamed_addr constant [18 x i8] c"RETANGULO: %.3lf\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 double, align 8
%4 = alloca double, align 8
store i32 0, ptr %1, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%6 = load double, ptr %2, align 8
%7 = load double, ptr %4, align 8
%8 = fmul double %6, %7
%9 = fdiv double %8, 2.000000e+00
%10 = call i32 @printf(ptr noundef @.str.1, double noundef %9)
%11 = load double, ptr %4, align 8
%12 = fmul double 3.141590e+00, %11
%13 = load double, ptr %4, align 8
%14 = fmul double %12, %13
%15 = call i32 @printf(ptr noundef @.str.2, double noundef %14)
%16 = load double, ptr %2, align 8
%17 = load double, ptr %3, align 8
%18 = fadd double %16, %17
%19 = fdiv double %18, 2.000000e+00
%20 = load double, ptr %4, align 8
%21 = fmul double %19, %20
%22 = call i32 @printf(ptr noundef @.str.3, double noundef %21)
%23 = load double, ptr %3, align 8
%24 = load double, ptr %3, align 8
%25 = fmul double %23, %24
%26 = call i32 @printf(ptr noundef @.str.4, double noundef %25)
%27 = load double, ptr %2, align 8
%28 = load double, ptr %3, align 8
%29 = fmul double %27, %28
%30 = call i32 @printf(ptr noundef @.str.5, double noundef %29)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpr8jn_wbn.c'
source_filename = "/tmp/tmpr8jn_wbn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%x\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"Test failed\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"Test passed\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 268435456, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp sgt i32 %7, 1
br i1 %8, label %9, label %14
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 1
%12 = load ptr, ptr %11, align 8
%13 = call i32 @sscanf(ptr noundef %12, ptr noundef @.str, ptr noundef %6)
br label %14
14: ; preds = %9, %2
%15 = load i32, ptr %6, align 4
%16 = call i64 @cuda_test_memcpy(i32 noundef %15)
%17 = icmp slt i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = call i32 @printf(ptr noundef @.str.1)
br label %22
20: ; preds = %14
%21 = call i32 @printf(ptr noundef @.str.2)
br label %22
22: ; preds = %20, %18
ret i32 0
}
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @cuda_test_memcpy(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr8jn_wbn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%x\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"Test failed\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"Test passed\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 268435456, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp sgt i32 %7, 1
br i1 %8, label %9, label %14
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 1
%12 = load ptr, ptr %11, align 8
%13 = call i32 @sscanf(ptr noundef %12, ptr noundef @.str, ptr noundef %6)
br label %14
14: ; preds = %9, %2
%15 = load i32, ptr %6, align 4
%16 = call i64 @cuda_test_memcpy(i32 noundef %15)
%17 = icmp slt i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = call i32 @printf(ptr noundef @.str.1)
br label %22
20: ; preds = %14
%21 = call i32 @printf(ptr noundef @.str.2)
br label %22
22: ; preds = %20, %18
ret i32 0
}
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @cuda_test_memcpy(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprx1czyhl.c'
source_filename = "/tmp/tmprx1czyhl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"|SEED:%u|STATES:%u|WIDTH:%u|HEIGHT:%u\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"|CYCLES:%u\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"|GEN:%u\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"|HOOD:VON_NEUMANN\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c"|FITNESS:PATTERN_FITNESS\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_params(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %3, i32 noundef 5, i32 noundef 14, i32 noundef 7)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef 16)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 2000000)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmprx1czyhl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"|SEED:%u|STATES:%u|WIDTH:%u|HEIGHT:%u\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"|CYCLES:%u\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"|GEN:%u\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"|HOOD:VON_NEUMANN\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c"|FITNESS:PATTERN_FITNESS\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_params(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %3, i32 noundef 5, i32 noundef 14, i32 noundef 7)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef 16)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 2000000)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjvm998s8.c'
source_filename = "/tmp/tmpjvm998s8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINTR = dso_local global i64 0, align 8
@errno = dso_local global i64 0, align 8
@EAGAIN = dso_local global i64 0, align 8
@EWOULDBLOCK = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @write_log(i32 noundef %0, i32 noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
br label %12
12: ; preds = %76, %35, %4
%13 = load i32, ptr %5, align 4
%14 = load ptr, ptr %7, align 8
%15 = load i64, ptr %8, align 8
%16 = call i32 @read(i32 noundef %13, ptr noundef %14, i64 noundef %15)
store i32 %16, ptr %9, align 4
%17 = load i32, ptr %9, align 4
%18 = icmp eq i32 0, %17
br i1 %18, label %19, label %20
19: ; preds = %12
br label %77
20: ; preds = %12
%21 = load i32, ptr %9, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %37
23: ; preds = %20
%24 = load i64, ptr @EINTR, align 8
%25 = load i64, ptr @errno, align 8
%26 = icmp eq i64 %24, %25
br i1 %26, label %35, label %27
27: ; preds = %23
%28 = load i64, ptr @EAGAIN, align 8
%29 = load i64, ptr @errno, align 8
%30 = icmp eq i64 %28, %29
br i1 %30, label %35, label %31
31: ; preds = %27
%32 = load i64, ptr @EWOULDBLOCK, align 8
%33 = load i64, ptr @errno, align 8
%34 = icmp eq i64 %32, %33
br i1 %34, label %35, label %36
35: ; preds = %31, %27, %23
br label %12
36: ; preds = %31
br label %77
37: ; preds = %20
store i32 0, ptr %10, align 4
br label %38
38: ; preds = %72, %70, %37
%39 = load i32, ptr %10, align 4
%40 = load i32, ptr %9, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %42, label %76
42: ; preds = %38
%43 = load i32, ptr %6, align 4
%44 = load ptr, ptr %7, align 8
%45 = load i32, ptr %10, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i8, ptr %44, i64 %46
%48 = load i32, ptr %9, align 4
%49 = load i32, ptr %10, align 4
%50 = sub nsw i32 %48, %49
%51 = call i32 @write(i32 noundef %43, ptr noundef %47, i32 noundef %50)
store i32 %51, ptr %11, align 4
%52 = load i32, ptr %11, align 4
%53 = icmp eq i32 0, %52
br i1 %53, label %54, label %55
54: ; preds = %42
br label %77
55: ; preds = %42
%56 = load i32, ptr %11, align 4
%57 = icmp slt i32 %56, 0
br i1 %57, label %58, label %72
58: ; preds = %55
%59 = load i64, ptr @EINTR, align 8
%60 = load i64, ptr @errno, align 8
%61 = icmp eq i64 %59, %60
br i1 %61, label %70, label %62
62: ; preds = %58
%63 = load i64, ptr @EAGAIN, align 8
%64 = load i64, ptr @errno, align 8
%65 = icmp eq i64 %63, %64
br i1 %65, label %70, label %66
66: ; preds = %62
%67 = load i64, ptr @EWOULDBLOCK, align 8
%68 = load i64, ptr @errno, align 8
%69 = icmp eq i64 %67, %68
br i1 %69, label %70, label %71
70: ; preds = %66, %62, %58
br label %38, !llvm.loop !6
71: ; preds = %66
br label %77
72: ; preds = %55
%73 = load i32, ptr %11, align 4
%74 = load i32, ptr %10, align 4
%75 = add nsw i32 %74, %73
store i32 %75, ptr %10, align 4
br label %38, !llvm.loop !6
76: ; preds = %38
br label %12
77: ; preds = %71, %54, %36, %19
ret void
}
declare i32 @read(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjvm998s8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINTR = dso_local global i64 0, align 8
@errno = dso_local global i64 0, align 8
@EAGAIN = dso_local global i64 0, align 8
@EWOULDBLOCK = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @write_log(i32 noundef %0, i32 noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
%12 = load i32, ptr %5, align 4
%13 = load ptr, ptr %7, align 8
%14 = load i64, ptr %8, align 8
%15 = call i32 @read(i32 noundef %12, ptr noundef %13, i64 noundef %14)
store i32 %15, ptr %9, align 4
%16 = load i32, ptr %9, align 4
%17 = icmp eq i32 0, %16
br i1 %17, label %18, label %.lr.ph3
.lr.ph3: ; preds = %4
br label %19
._crit_edge4: ; preds = %.backedge1
br label %18
18: ; preds = %._crit_edge4, %4
br label %84
19: ; preds = %.lr.ph3, %.backedge1
%20 = load i32, ptr %9, align 4
%21 = icmp slt i32 %20, 0
br i1 %21, label %22, label %42
22: ; preds = %19
%23 = load i64, ptr @EINTR, align 8
%24 = load i64, ptr @errno, align 8
%25 = icmp eq i64 %23, %24
br i1 %25, label %34, label %26
26: ; preds = %22
%27 = load i64, ptr @EAGAIN, align 8
%28 = load i64, ptr @errno, align 8
%29 = icmp eq i64 %27, %28
br i1 %29, label %34, label %30
30: ; preds = %26
%31 = load i64, ptr @EWOULDBLOCK, align 8
%32 = load i64, ptr @errno, align 8
%33 = icmp eq i64 %31, %32
br i1 %33, label %34, label %41
34: ; preds = %30, %26, %22
br label %.backedge1
.backedge1: ; preds = %34, %83
%35 = load i32, ptr %5, align 4
%36 = load ptr, ptr %7, align 8
%37 = load i64, ptr %8, align 8
%38 = call i32 @read(i32 noundef %35, ptr noundef %36, i64 noundef %37)
store i32 %38, ptr %9, align 4
%39 = load i32, ptr %9, align 4
%40 = icmp eq i32 0, %39
br i1 %40, label %._crit_edge4, label %19
41: ; preds = %30
br label %84
42: ; preds = %19
store i32 0, ptr %10, align 4
%43 = load i32, ptr %10, align 4
%44 = load i32, ptr %9, align 4
%45 = icmp slt i32 %43, %44
br i1 %45, label %.lr.ph, label %83
.lr.ph: ; preds = %42
br label %46
46: ; preds = %.lr.ph, %.backedge
%47 = load i32, ptr %6, align 4
%48 = load ptr, ptr %7, align 8
%49 = load i32, ptr %10, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i8, ptr %48, i64 %50
%52 = load i32, ptr %9, align 4
%53 = load i32, ptr %10, align 4
%54 = sub nsw i32 %52, %53
%55 = call i32 @write(i32 noundef %47, ptr noundef %51, i32 noundef %54)
store i32 %55, ptr %11, align 4
%56 = load i32, ptr %11, align 4
%57 = icmp eq i32 0, %56
br i1 %57, label %58, label %59
58: ; preds = %46
br label %84
59: ; preds = %46
%60 = load i32, ptr %11, align 4
%61 = icmp slt i32 %60, 0
br i1 %61, label %62, label %79
62: ; preds = %59
%63 = load i64, ptr @EINTR, align 8
%64 = load i64, ptr @errno, align 8
%65 = icmp eq i64 %63, %64
br i1 %65, label %74, label %66
66: ; preds = %62
%67 = load i64, ptr @EAGAIN, align 8
%68 = load i64, ptr @errno, align 8
%69 = icmp eq i64 %67, %68
br i1 %69, label %74, label %70
70: ; preds = %66
%71 = load i64, ptr @EWOULDBLOCK, align 8
%72 = load i64, ptr @errno, align 8
%73 = icmp eq i64 %71, %72
br i1 %73, label %74, label %78
74: ; preds = %70, %66, %62
br label %.backedge
.backedge: ; preds = %74, %79
%75 = load i32, ptr %10, align 4
%76 = load i32, ptr %9, align 4
%77 = icmp slt i32 %75, %76
br i1 %77, label %46, label %._crit_edge, !llvm.loop !6
78: ; preds = %70
br label %84
79: ; preds = %59
%80 = load i32, ptr %11, align 4
%81 = load i32, ptr %10, align 4
%82 = add nsw i32 %81, %80
store i32 %82, ptr %10, align 4
br label %.backedge
._crit_edge: ; preds = %.backedge
br label %83
83: ; preds = %._crit_edge, %42
br label %.backedge1
84: ; preds = %78, %58, %41, %18
ret void
}
declare i32 @read(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmptimhb91y.c'
source_filename = "/tmp/tmptimhb91y.c"
target datalayout = "e-m:e-p270: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 [20 x i8] c"Micro-seconds: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"Micro-seconds: %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"Usleep\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 i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr @stderr, align 4
%8 = load ptr, ptr %5, align 8
%9 = getelementptr inbounds ptr, ptr %8, i64 1
%10 = load ptr, ptr %9, align 8
%11 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %7, ptr noundef @.str, ptr noundef %10)
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = call i64 @strtoul(ptr noundef %14, i8 noundef signext 0, i32 noundef 10)
store i64 %15, ptr %6, align 8
%16 = load i32, ptr @stderr, align 4
%17 = load i64, ptr %6, align 8
%18 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %16, ptr noundef @.str.1, i64 noundef %17)
%19 = load i64, ptr %6, align 8
%20 = call i64 @usleep(i64 noundef %19)
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %2
%23 = call i32 @perror(ptr noundef @.str.2)
br label %24
24: ; preds = %22, %2
%25 = load i32, ptr %3, align 4
ret i32 %25
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i64 @strtoul(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i64 @usleep(i64 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmptimhb91y.c"
target datalayout = "e-m:e-p270: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 [20 x i8] c"Micro-seconds: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"Micro-seconds: %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"Usleep\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 i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr @stderr, align 4
%8 = load ptr, ptr %5, align 8
%9 = getelementptr inbounds ptr, ptr %8, i64 1
%10 = load ptr, ptr %9, align 8
%11 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %7, ptr noundef @.str, ptr noundef %10)
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = call i64 @strtoul(ptr noundef %14, i8 noundef signext 0, i32 noundef 10)
store i64 %15, ptr %6, align 8
%16 = load i32, ptr @stderr, align 4
%17 = load i64, ptr %6, align 8
%18 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %16, ptr noundef @.str.1, i64 noundef %17)
%19 = load i64, ptr %6, align 8
%20 = call i64 @usleep(i64 noundef %19)
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %2
%23 = call i32 @perror(ptr noundef @.str.2)
br label %24
24: ; preds = %22, %2
%25 = load i32, ptr %3, align 4
ret i32 %25
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i64 @strtoul(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i64 @usleep(i64 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpt728cziv.c'
source_filename = "/tmp/tmpt728cziv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strpbrk(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [256 x i64], align 16
%7 = alloca [256 x i64], align 16
%8 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 0, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 0
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %2
store ptr null, ptr %3, align 8
br label %113
15: ; preds = %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds i8, ptr %16, i64 1
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %27
21: ; preds = %15
%22 = load ptr, ptr %4, align 8
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds i8, ptr %23, i64 0
%25 = load i8, ptr %24, align 1
%26 = call ptr @strchr(ptr noundef %22, i8 noundef signext %25)
store ptr %26, ptr %3, align 8
br label %113
27: ; preds = %15
br label %28
28: ; preds = %73, %27
%29 = load ptr, ptr %5, align 8
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %76
33: ; preds = %28
%34 = load ptr, ptr %5, align 8
%35 = load i8, ptr %34, align 1
%36 = zext i8 %35 to i32
%37 = zext i32 %36 to i64
%38 = getelementptr inbounds [256 x i64], ptr %7, i64 0, i64 %37
%39 = load i64, ptr %38, align 8
%40 = load i64, ptr %8, align 8
%41 = icmp ult i64 %39, %40
br i1 %41, label %42, label %56
42: ; preds = %33
%43 = load ptr, ptr %5, align 8
%44 = load i8, ptr %43, align 1
%45 = zext i8 %44 to i32
%46 = zext i32 %45 to i64
%47 = getelementptr inbounds [256 x i64], ptr %7, i64 0, i64 %46
%48 = load i64, ptr %47, align 8
%49 = getelementptr inbounds [256 x i64], ptr %6, i64 0, i64 %48
%50 = load i64, ptr %49, align 8
%51 = load ptr, ptr %5, align 8
%52 = load i8, ptr %51, align 1
%53 = zext i8 %52 to i32
%54 = zext i32 %53 to i64
%55 = icmp eq i64 %50, %54
br i1 %55, label %70, label %56
56: ; preds = %42, %33
%57 = load ptr, ptr %5, align 8
%58 = load i8, ptr %57, align 1
%59 = zext i8 %58 to i32
%60 = zext i32 %59 to i64
%61 = load i64, ptr %8, align 8
%62 = add i64 %61, 1
store i64 %62, ptr %8, align 8
%63 = load ptr, ptr %5, align 8
%64 = load i8, ptr %63, align 1
%65 = zext i8 %64 to i32
%66 = zext i32 %65 to i64
%67 = getelementptr inbounds [256 x i64], ptr %7, i64 0, i64 %66
store i64 %61, ptr %67, align 8
%68 = getelementptr inbounds [256 x i64], ptr %6, i64 0, i64 %61
store i64 %60, ptr %68, align 8
%69 = icmp ne i64 %60, 0
br label %70
70: ; preds = %56, %42
%71 = phi i1 [ true, %42 ], [ %69, %56 ]
%72 = zext i1 %71 to i32
br label %73
73: ; preds = %70
%74 = load ptr, ptr %5, align 8
%75 = getelementptr inbounds i8, ptr %74, i32 1
store ptr %75, ptr %5, align 8
br label %28, !llvm.loop !6
76: ; preds = %28
br label %77
77: ; preds = %109, %76
%78 = load ptr, ptr %4, align 8
%79 = load i8, ptr %78, align 1
%80 = sext i8 %79 to i32
%81 = icmp ne i32 %80, 0
br i1 %81, label %82, label %112
82: ; preds = %77
%83 = load ptr, ptr %4, align 8
%84 = load i8, ptr %83, align 1
%85 = zext i8 %84 to i32
%86 = zext i32 %85 to i64
%87 = getelementptr inbounds [256 x i64], ptr %7, i64 0, i64 %86
%88 = load i64, ptr %87, align 8
%89 = load i64, ptr %8, align 8
%90 = icmp ult i64 %88, %89
br i1 %90, label %91, label %108
91: ; preds = %82
%92 = load ptr, ptr %4, align 8
%93 = load i8, ptr %92, align 1
%94 = zext i8 %93 to i32
%95 = zext i32 %94 to i64
%96 = getelementptr inbounds [256 x i64], ptr %7, i64 0, i64 %95
%97 = load i64, ptr %96, align 8
%98 = getelementptr inbounds [256 x i64], ptr %6, i64 0, i64 %97
%99 = load i64, ptr %98, align 8
%100 = load ptr, ptr %4, align 8
%101 = load i8, ptr %100, align 1
%102 = zext i8 %101 to i32
%103 = zext i32 %102 to i64
%104 = icmp eq i64 %99, %103
br i1 %104, label %105, label %108
105: ; preds = %91
%106 = load ptr, ptr %4, align 8
%107 = call ptr @__UNCONST(ptr noundef %106)
store ptr %107, ptr %3, align 8
br label %113
108: ; preds = %91, %82
br label %109
109: ; preds = %108
%110 = load ptr, ptr %4, align 8
%111 = getelementptr inbounds i8, ptr %110, i32 1
store ptr %111, ptr %4, align 8
br label %77, !llvm.loop !8
112: ; preds = %77
store ptr null, ptr %3, align 8
br label %113
113: ; preds = %112, %105, %21, %14
%114 = load ptr, ptr %3, align 8
ret ptr %114
}
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare ptr @__UNCONST(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpt728cziv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strpbrk(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [256 x i64], align 16
%7 = alloca [256 x i64], align 16
%8 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 0, ptr %8, align 8
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 0
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %2
store ptr null, ptr %3, align 8
br label %119
15: ; preds = %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds i8, ptr %16, i64 1
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %27
21: ; preds = %15
%22 = load ptr, ptr %4, align 8
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds i8, ptr %23, i64 0
%25 = load i8, ptr %24, align 1
%26 = call ptr @strchr(ptr noundef %22, i8 noundef signext %25)
store ptr %26, ptr %3, align 8
br label %119
27: ; preds = %15
%28 = load ptr, ptr %5, align 8
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp ne i32 %30, 0
br i1 %31, label %.lr.ph, label %79
.lr.ph: ; preds = %27
br label %32
32: ; preds = %.lr.ph, %72
%33 = load ptr, ptr %5, align 8
%34 = load i8, ptr %33, align 1
%35 = zext i8 %34 to i32
%36 = zext i32 %35 to i64
%37 = getelementptr inbounds [256 x i64], ptr %7, i64 0, i64 %36
%38 = load i64, ptr %37, align 8
%39 = load i64, ptr %8, align 8
%40 = icmp ult i64 %38, %39
br i1 %40, label %41, label %55
41: ; preds = %32
%42 = load ptr, ptr %5, align 8
%43 = load i8, ptr %42, align 1
%44 = zext i8 %43 to i32
%45 = zext i32 %44 to i64
%46 = getelementptr inbounds [256 x i64], ptr %7, i64 0, i64 %45
%47 = load i64, ptr %46, align 8
%48 = getelementptr inbounds [256 x i64], ptr %6, i64 0, i64 %47
%49 = load i64, ptr %48, align 8
%50 = load ptr, ptr %5, align 8
%51 = load i8, ptr %50, align 1
%52 = zext i8 %51 to i32
%53 = zext i32 %52 to i64
%54 = icmp eq i64 %49, %53
br i1 %54, label %69, label %55
55: ; preds = %41, %32
%56 = load ptr, ptr %5, align 8
%57 = load i8, ptr %56, align 1
%58 = zext i8 %57 to i32
%59 = zext i32 %58 to i64
%60 = load i64, ptr %8, align 8
%61 = add i64 %60, 1
store i64 %61, ptr %8, align 8
%62 = load ptr, ptr %5, align 8
%63 = load i8, ptr %62, align 1
%64 = zext i8 %63 to i32
%65 = zext i32 %64 to i64
%66 = getelementptr inbounds [256 x i64], ptr %7, i64 0, i64 %65
store i64 %60, ptr %66, align 8
%67 = getelementptr inbounds [256 x i64], ptr %6, i64 0, i64 %60
store i64 %59, ptr %67, align 8
%68 = icmp ne i64 %59, 0
br label %69
69: ; preds = %55, %41
%70 = phi i1 [ true, %41 ], [ %68, %55 ]
%71 = zext i1 %70 to i32
br label %72
72: ; preds = %69
%73 = load ptr, ptr %5, align 8
%74 = getelementptr inbounds i8, ptr %73, i32 1
store ptr %74, ptr %5, align 8
%75 = load ptr, ptr %5, align 8
%76 = load i8, ptr %75, align 1
%77 = sext i8 %76 to i32
%78 = icmp ne i32 %77, 0
br i1 %78, label %32, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %72
br label %79
79: ; preds = %._crit_edge, %27
%80 = load ptr, ptr %4, align 8
%81 = load i8, ptr %80, align 1
%82 = sext i8 %81 to i32
%83 = icmp ne i32 %82, 0
br i1 %83, label %.lr.ph2, label %118
.lr.ph2: ; preds = %79
br label %84
84: ; preds = %.lr.ph2, %111
%85 = load ptr, ptr %4, align 8
%86 = load i8, ptr %85, align 1
%87 = zext i8 %86 to i32
%88 = zext i32 %87 to i64
%89 = getelementptr inbounds [256 x i64], ptr %7, i64 0, i64 %88
%90 = load i64, ptr %89, align 8
%91 = load i64, ptr %8, align 8
%92 = icmp ult i64 %90, %91
br i1 %92, label %93, label %110
93: ; preds = %84
%94 = load ptr, ptr %4, align 8
%95 = load i8, ptr %94, align 1
%96 = zext i8 %95 to i32
%97 = zext i32 %96 to i64
%98 = getelementptr inbounds [256 x i64], ptr %7, i64 0, i64 %97
%99 = load i64, ptr %98, align 8
%100 = getelementptr inbounds [256 x i64], ptr %6, i64 0, i64 %99
%101 = load i64, ptr %100, align 8
%102 = load ptr, ptr %4, align 8
%103 = load i8, ptr %102, align 1
%104 = zext i8 %103 to i32
%105 = zext i32 %104 to i64
%106 = icmp eq i64 %101, %105
br i1 %106, label %107, label %110
107: ; preds = %93
%108 = load ptr, ptr %4, align 8
%109 = call ptr @__UNCONST(ptr noundef %108)
store ptr %109, ptr %3, align 8
br label %119
110: ; preds = %93, %84
br label %111
111: ; preds = %110
%112 = load ptr, ptr %4, align 8
%113 = getelementptr inbounds i8, ptr %112, i32 1
store ptr %113, ptr %4, align 8
%114 = load ptr, ptr %4, align 8
%115 = load i8, ptr %114, align 1
%116 = sext i8 %115 to i32
%117 = icmp ne i32 %116, 0
br i1 %117, label %84, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %111
br label %118
118: ; preds = %._crit_edge3, %79
store ptr null, ptr %3, align 8
br label %119
119: ; preds = %118, %107, %21, %14
%120 = load ptr, ptr %3, align 8
ret ptr %120
}
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare ptr @__UNCONST(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpejsaibw_.c'
source_filename = "/tmp/tmpejsaibw_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @avg3(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store i32 %4, ptr %10, align 4
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %8, align 8
%14 = load i32, ptr %10, align 4
%15 = call i32 @add(ptr noundef %11, ptr noundef %12, ptr noundef %13, i32 noundef %14)
%16 = load ptr, ptr %6, align 8
%17 = load ptr, ptr %6, align 8
%18 = load ptr, ptr %9, align 8
%19 = load i32, ptr %10, align 4
%20 = call i32 @add(ptr noundef %16, ptr noundef %17, ptr noundef %18, i32 noundef %19)
%21 = load ptr, ptr %6, align 8
%22 = load ptr, ptr %6, align 8
%23 = load i32, ptr %10, align 4
%24 = call i32 @mult(ptr noundef %21, ptr noundef %22, i32 noundef 0, i32 noundef %23)
ret void
}
declare i32 @add(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @mult(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpejsaibw_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @avg3(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store i32 %4, ptr %10, align 4
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %8, align 8
%14 = load i32, ptr %10, align 4
%15 = call i32 @add(ptr noundef %11, ptr noundef %12, ptr noundef %13, i32 noundef %14)
%16 = load ptr, ptr %6, align 8
%17 = load ptr, ptr %6, align 8
%18 = load ptr, ptr %9, align 8
%19 = load i32, ptr %10, align 4
%20 = call i32 @add(ptr noundef %16, ptr noundef %17, ptr noundef %18, i32 noundef %19)
%21 = load ptr, ptr %6, align 8
%22 = load ptr, ptr %6, align 8
%23 = load i32, ptr %10, align 4
%24 = call i32 @mult(ptr noundef %21, ptr noundef %22, i32 noundef 0, i32 noundef %23)
ret void
}
declare i32 @add(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @mult(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpljlvv2p_.c'
source_filename = "/tmp/tmpljlvv2p_.c"
target datalayout = "e-m:e-p270: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/tmpljlvv2p_.c"
target datalayout = "e-m:e-p270: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/tmpj09y798p.c'
source_filename = "/tmp/tmpj09y798p.c"
target datalayout = "e-m:e-p270: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/tmpj09y798p.c"
target datalayout = "e-m:e-p270: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/tmp2yz2z7_7.c'
source_filename = "/tmp/tmp2yz2z7_7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @adderrbuf(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 @tprint(ptr noundef %3)
%5 = call i32 (...) @PANIC()
ret void
}
declare i32 @tprint(ptr noundef) #1
declare i32 @PANIC(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2yz2z7_7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @adderrbuf(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 @tprint(ptr noundef %3)
%5 = call i32 (...) @PANIC()
ret void
}
declare i32 @tprint(ptr noundef) #1
declare i32 @PANIC(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9alnj0ot.c'
source_filename = "/tmp/tmp9alnj0ot.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lruCacheGet(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = call i32 @lru_cache_get(i32 noundef %4)
%6 = load i32, ptr %2, align 4
ret i32 %6
}
declare i32 @lru_cache_get(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/tmp9alnj0ot.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lruCacheGet(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = call i32 @lru_cache_get(i32 noundef %4)
%6 = load i32, ptr %2, align 4
ret i32 %6
}
declare i32 @lru_cache_get(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/tmpivn3l228.c'
source_filename = "/tmp/tmpivn3l228.c"
target datalayout = "e-m:e-p270: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.rlimit = type { ptr, ptr }
@.str = private unnamed_addr constant [25 x i8] c"4010 Setting %s to %lld\0A\00", align 1
@.str.1 = private unnamed_addr constant [39 x i8] c"4020 Before: %s soft[%lld] hard[%lld]\0A\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"4030 %s limit was not set.\00", align 1
@.str.3 = private unnamed_addr constant [38 x i8] c"4040 After: %s soft[%lld] hard[%lld]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_one_limit(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca %struct.rlimit, align 8
%8 = alloca ptr, align 8
%9 = alloca [4096 x i8], align 16
%10 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%11 = load ptr, ptr %4, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 5
store ptr %12, ptr %8, align 8
%13 = load ptr, ptr %8, align 8
%14 = load ptr, ptr %6, align 8
%15 = call i32 (ptr, ptr, ptr, ...) @log_stdout(ptr noundef @.str, ptr noundef %13, ptr noundef %14)
%16 = load i32, ptr %5, align 4
%17 = call i32 @getrlimit(i32 noundef %16, ptr noundef %7)
%18 = load ptr, ptr %8, align 8
%19 = getelementptr inbounds %struct.rlimit, ptr %7, i32 0, i32 1
%20 = load ptr, ptr %19, align 8
%21 = getelementptr inbounds %struct.rlimit, ptr %7, i32 0, i32 0
%22 = load ptr, ptr %21, align 8
%23 = call i32 (ptr, ptr, ptr, ...) @log_stdout(ptr noundef @.str.1, ptr noundef %18, ptr noundef %20, ptr noundef %22)
%24 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
%25 = load ptr, ptr %4, align 8
%26 = call i32 @sprintf(ptr noundef %24, ptr noundef @.str.2, ptr noundef %25)
%27 = load ptr, ptr %6, align 8
%28 = getelementptr inbounds %struct.rlimit, ptr %7, i32 0, i32 1
store ptr %27, ptr %28, align 8
%29 = load ptr, ptr %6, align 8
%30 = getelementptr inbounds %struct.rlimit, ptr %7, i32 0, i32 0
store ptr %29, ptr %30, align 8
%31 = load i32, ptr %5, align 4
%32 = call i32 @setrlimit(i32 noundef %31, ptr noundef %7)
store i32 %32, ptr %10, align 4
%33 = load i32, ptr %10, align 4
%34 = icmp ne i32 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %3
%36 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
%37 = call i32 @perror(ptr noundef %36)
br label %47
38: ; preds = %3
%39 = load i32, ptr %5, align 4
%40 = call i32 @getrlimit(i32 noundef %39, ptr noundef %7)
%41 = load ptr, ptr %8, align 8
%42 = getelementptr inbounds %struct.rlimit, ptr %7, i32 0, i32 1
%43 = load ptr, ptr %42, align 8
%44 = getelementptr inbounds %struct.rlimit, ptr %7, i32 0, i32 0
%45 = load ptr, ptr %44, align 8
%46 = call i32 (ptr, ptr, ptr, ...) @log_stdout(ptr noundef @.str.3, ptr noundef %41, ptr noundef %43, ptr noundef %45)
br label %47
47: ; preds = %38, %35
ret void
}
declare i32 @log_stdout(ptr noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @getrlimit(i32 noundef, ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @setrlimit(i32 noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpivn3l228.c"
target datalayout = "e-m:e-p270: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.rlimit = type { ptr, ptr }
@.str = private unnamed_addr constant [25 x i8] c"4010 Setting %s to %lld\0A\00", align 1
@.str.1 = private unnamed_addr constant [39 x i8] c"4020 Before: %s soft[%lld] hard[%lld]\0A\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"4030 %s limit was not set.\00", align 1
@.str.3 = private unnamed_addr constant [38 x i8] c"4040 After: %s soft[%lld] hard[%lld]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_one_limit(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca %struct.rlimit, align 8
%8 = alloca ptr, align 8
%9 = alloca [4096 x i8], align 16
%10 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%11 = load ptr, ptr %4, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 5
store ptr %12, ptr %8, align 8
%13 = load ptr, ptr %8, align 8
%14 = load ptr, ptr %6, align 8
%15 = call i32 (ptr, ptr, ptr, ...) @log_stdout(ptr noundef @.str, ptr noundef %13, ptr noundef %14)
%16 = load i32, ptr %5, align 4
%17 = call i32 @getrlimit(i32 noundef %16, ptr noundef %7)
%18 = load ptr, ptr %8, align 8
%19 = getelementptr inbounds %struct.rlimit, ptr %7, i32 0, i32 1
%20 = load ptr, ptr %19, align 8
%21 = getelementptr inbounds %struct.rlimit, ptr %7, i32 0, i32 0
%22 = load ptr, ptr %21, align 8
%23 = call i32 (ptr, ptr, ptr, ...) @log_stdout(ptr noundef @.str.1, ptr noundef %18, ptr noundef %20, ptr noundef %22)
%24 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
%25 = load ptr, ptr %4, align 8
%26 = call i32 @sprintf(ptr noundef %24, ptr noundef @.str.2, ptr noundef %25)
%27 = load ptr, ptr %6, align 8
%28 = getelementptr inbounds %struct.rlimit, ptr %7, i32 0, i32 1
store ptr %27, ptr %28, align 8
%29 = load ptr, ptr %6, align 8
%30 = getelementptr inbounds %struct.rlimit, ptr %7, i32 0, i32 0
store ptr %29, ptr %30, align 8
%31 = load i32, ptr %5, align 4
%32 = call i32 @setrlimit(i32 noundef %31, ptr noundef %7)
store i32 %32, ptr %10, align 4
%33 = load i32, ptr %10, align 4
%34 = icmp ne i32 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %3
%36 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
%37 = call i32 @perror(ptr noundef %36)
br label %47
38: ; preds = %3
%39 = load i32, ptr %5, align 4
%40 = call i32 @getrlimit(i32 noundef %39, ptr noundef %7)
%41 = load ptr, ptr %8, align 8
%42 = getelementptr inbounds %struct.rlimit, ptr %7, i32 0, i32 1
%43 = load ptr, ptr %42, align 8
%44 = getelementptr inbounds %struct.rlimit, ptr %7, i32 0, i32 0
%45 = load ptr, ptr %44, align 8
%46 = call i32 (ptr, ptr, ptr, ...) @log_stdout(ptr noundef @.str.3, ptr noundef %41, ptr noundef %43, ptr noundef %45)
br label %47
47: ; preds = %38, %35
ret void
}
declare i32 @log_stdout(ptr noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @getrlimit(i32 noundef, ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @setrlimit(i32 noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdmgmedyf.c'
source_filename = "/tmp/tmpdmgmedyf.c"
target datalayout = "e-m:e-p270: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/tmpdmgmedyf.c"
target datalayout = "e-m:e-p270: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/tmpj5ycj11a.c'
source_filename = "/tmp/tmpj5ycj11a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %2
2: ; preds = %0, %2
%3 = call i32 (...) @call_f()
br label %2
}
declare i32 @call_f(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj5ycj11a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %2
2: ; preds = %2, %0
%3 = call i32 (...) @call_f()
br label %2
}
declare i32 @call_f(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpawopiv6t.c'
source_filename = "/tmp/tmpawopiv6t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"Home team wins\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"Away team wins\0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"Draw\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %3, ptr noundef %2)
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %5, %6
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = call i32 @printf(ptr noundef @.str.1)
br label %24
10: ; preds = %0
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp sgt i32 %11, %12
br i1 %13, label %14, label %16
14: ; preds = %10
%15 = call i32 @printf(ptr noundef @.str.2)
br label %23
16: ; preds = %10
%17 = load i32, ptr %3, align 4
%18 = load i32, ptr %2, align 4
%19 = icmp eq i32 %17, %18
br i1 %19, label %20, label %22
20: ; preds = %16
%21 = call i32 @printf(ptr noundef @.str.3)
br label %22
22: ; preds = %20, %16
br label %23
23: ; preds = %22, %14
br label %24
24: ; preds = %23, %8
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpawopiv6t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"Home team wins\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"Away team wins\0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"Draw\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %3, ptr noundef %2)
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %5, %6
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = call i32 @printf(ptr noundef @.str.1)
br label %24
10: ; preds = %0
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp sgt i32 %11, %12
br i1 %13, label %14, label %16
14: ; preds = %10
%15 = call i32 @printf(ptr noundef @.str.2)
br label %23
16: ; preds = %10
%17 = load i32, ptr %3, align 4
%18 = load i32, ptr %2, align 4
%19 = icmp eq i32 %17, %18
br i1 %19, label %20, label %22
20: ; preds = %16
%21 = call i32 @printf(ptr noundef @.str.3)
br label %22
22: ; preds = %20, %16
br label %23
23: ; preds = %22, %14
br label %24
24: ; preds = %23, %8
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdv3c4jky.c'
source_filename = "/tmp/tmpdv3c4jky.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Line %d: %s\0A%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @panic(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %5, align 4
%8 = load ptr, ptr %4, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @errx(i32 noundef 1, ptr noundef @.str, i32 noundef %7, ptr noundef %8, ptr noundef %9)
ret void
}
declare i32 @errx(i32 noundef, ptr noundef, 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/tmpdv3c4jky.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Line %d: %s\0A%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @panic(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %5, align 4
%8 = load ptr, ptr %4, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @errx(i32 noundef 1, ptr noundef @.str, i32 noundef %7, ptr noundef %8, ptr noundef %9)
ret void
}
declare i32 @errx(i32 noundef, ptr noundef, 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/tmpol2nmt2k.c'
source_filename = "/tmp/tmpol2nmt2k.c"
target datalayout = "e-m:e-p270: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/tmpol2nmt2k.c"
target datalayout = "e-m:e-p270: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/tmpko3yby4w.c'
source_filename = "/tmp/tmpko3yby4w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_END = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_seek_end() #0 {
%1 = load i32, ptr @SEEK_END, align 4
ret i32 %1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpko3yby4w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_END = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_seek_end() #0 {
%1 = load i32, ptr @SEEK_END, align 4
ret i32 %1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE 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_3opo2f5.c'
source_filename = "/tmp/tmp_3opo2f5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"fsync(): fd=%d\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [12 x i8] c"\09\09ret = %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"\09Succeeded Phase 1\0A\00", align 1
@.str.3 = private unnamed_addr constant [53 x i8] c"\09Failed Phase 1: returned undefined value! ret = %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [43 x i8] c"Internal syscalltester error: passed = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fsync_test(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %6)
%8 = call i32 @fflush(ptr noundef null)
%9 = load i32, ptr %2, align 4
%10 = call i32 @fsync(i32 noundef %9)
store i32 %10, ptr %3, align 4
%11 = call i32 @handle_zng(i32 noundef %10)
store i32 %11, ptr %5, align 4
%12 = load i32, ptr @errno, align 4
store i32 %12, ptr %4, align 4
%13 = load i32, ptr %5, align 4
switch i32 %13, label %23 [
i32 -1, label %14
i32 0, label %14
i32 -2, label %19
]
14: ; preds = %1, %1
%15 = load i32, ptr %3, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %15)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%18 = call i32 @fflush(ptr noundef null)
br label %27
19: ; preds = %1
%20 = load i32, ptr %3, align 4
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %20)
%22 = call i32 @fflush(ptr noundef null)
br label %27
23: ; preds = %1
%24 = load i32, ptr %5, align 4
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %24)
%26 = call i32 @fflush(ptr noundef null)
br label %27
27: ; preds = %23, %19, %14
%28 = load i32, ptr %4, align 4
store i32 %28, ptr @errno, align 4
%29 = load i32, ptr %3, align 4
ret i32 %29
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fflush(ptr noundef) #1
declare i32 @handle_zng(i32 noundef) #1
declare i32 @fsync(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_3opo2f5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"fsync(): fd=%d\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [12 x i8] c"\09\09ret = %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"\09Succeeded Phase 1\0A\00", align 1
@.str.3 = private unnamed_addr constant [53 x i8] c"\09Failed Phase 1: returned undefined value! ret = %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [43 x i8] c"Internal syscalltester error: passed = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fsync_test(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %6)
%8 = call i32 @fflush(ptr noundef null)
%9 = load i32, ptr %2, align 4
%10 = call i32 @fsync(i32 noundef %9)
store i32 %10, ptr %3, align 4
%11 = call i32 @handle_zng(i32 noundef %10)
store i32 %11, ptr %5, align 4
%12 = load i32, ptr @errno, align 4
store i32 %12, ptr %4, align 4
%13 = load i32, ptr %5, align 4
switch i32 %13, label %23 [
i32 -1, label %14
i32 0, label %14
i32 -2, label %19
]
14: ; preds = %1, %1
%15 = load i32, ptr %3, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %15)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%18 = call i32 @fflush(ptr noundef null)
br label %27
19: ; preds = %1
%20 = load i32, ptr %3, align 4
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %20)
%22 = call i32 @fflush(ptr noundef null)
br label %27
23: ; preds = %1
%24 = load i32, ptr %5, align 4
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %24)
%26 = call i32 @fflush(ptr noundef null)
br label %27
27: ; preds = %23, %19, %14
%28 = load i32, ptr %4, align 4
store i32 %28, ptr @errno, align 4
%29 = load i32, ptr %3, align 4
ret i32 %29
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fflush(ptr noundef) #1
declare i32 @handle_zng(i32 noundef) #1
declare i32 @fsync(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/tmpw_i9jbg4.c'
source_filename = "/tmp/tmpw_i9jbg4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @spng_dec_read_bits(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %18, %2
%8 = load i32, ptr %6, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp ult i32 %8, %9
br i1 %10, label %11, label %21
11: ; preds = %7
%12 = load ptr, ptr %3, align 8
%13 = call i32 @spng_dec_read_bit(ptr noundef %12)
%14 = load i32, ptr %6, align 4
%15 = shl i32 %13, %14
%16 = load i32, ptr %5, align 4
%17 = or i32 %16, %15
store i32 %17, ptr %5, align 4
br label %18
18: ; preds = %11
%19 = load i32, ptr %6, align 4
%20 = add i32 %19, 1
store i32 %20, ptr %6, align 4
br label %7, !llvm.loop !6
21: ; preds = %7
%22 = load i32, ptr %5, align 4
ret i32 %22
}
declare i32 @spng_dec_read_bit(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpw_i9jbg4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @spng_dec_read_bits(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%7 = load i32, ptr %6, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp ult i32 %7, %8
br i1 %9, label %.lr.ph, label %23
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %17
%11 = load ptr, ptr %3, align 8
%12 = call i32 @spng_dec_read_bit(ptr noundef %11)
%13 = load i32, ptr %6, align 4
%14 = shl i32 %12, %13
%15 = load i32, ptr %5, align 4
%16 = or i32 %15, %14
store i32 %16, ptr %5, align 4
br label %17
17: ; preds = %10
%18 = load i32, ptr %6, align 4
%19 = add i32 %18, 1
store i32 %19, ptr %6, align 4
%20 = load i32, ptr %6, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp ult i32 %20, %21
br i1 %22, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %23
23: ; preds = %._crit_edge, %2
%24 = load i32, ptr %5, align 4
ret i32 %24
}
declare i32 @spng_dec_read_bit(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpm1_mwrnb.c'
source_filename = "/tmp/tmpm1_mwrnb.c"
target datalayout = "e-m:e-p270: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/tmpm1_mwrnb.c"
target datalayout = "e-m:e-p270: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/tmp24i39uih.c'
source_filename = "/tmp/tmp24i39uih.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"BAD ARGUMENT\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cmd_keyname(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = load i32, ptr %3, align 4
%7 = call i32 @check_arg_count(i32 noundef %6, i32 noundef 1)
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %10
9: ; preds = %2
br label %24
10: ; preds = %2
%11 = load ptr, ptr %4, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 0
%13 = load ptr, ptr %12, align 8
%14 = call i64 @sscanf(ptr noundef %13, ptr noundef @.str, ptr noundef %5)
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %10
%17 = call i32 @report_count(i32 noundef 1)
%18 = call i32 @report_error(ptr noundef @.str.1)
br label %24
19: ; preds = %10
%20 = call i32 @report_count(i32 noundef 1)
%21 = load i32, ptr %5, align 4
%22 = call i32 @keyname(i32 noundef %21)
%23 = call i32 @report_status(i32 noundef %22)
br label %24
24: ; preds = %19, %16, %9
ret void
}
declare i32 @check_arg_count(i32 noundef, i32 noundef) #1
declare i64 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @report_count(i32 noundef) #1
declare i32 @report_error(ptr noundef) #1
declare i32 @report_status(i32 noundef) #1
declare i32 @keyname(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/tmp24i39uih.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"BAD ARGUMENT\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cmd_keyname(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = load i32, ptr %3, align 4
%7 = call i32 @check_arg_count(i32 noundef %6, i32 noundef 1)
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %10
9: ; preds = %2
br label %24
10: ; preds = %2
%11 = load ptr, ptr %4, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 0
%13 = load ptr, ptr %12, align 8
%14 = call i64 @sscanf(ptr noundef %13, ptr noundef @.str, ptr noundef %5)
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %10
%17 = call i32 @report_count(i32 noundef 1)
%18 = call i32 @report_error(ptr noundef @.str.1)
br label %24
19: ; preds = %10
%20 = call i32 @report_count(i32 noundef 1)
%21 = load i32, ptr %5, align 4
%22 = call i32 @keyname(i32 noundef %21)
%23 = call i32 @report_status(i32 noundef %22)
br label %24
24: ; preds = %19, %16, %9
ret void
}
declare i32 @check_arg_count(i32 noundef, i32 noundef) #1
declare i64 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @report_count(i32 noundef) #1
declare i32 @report_error(ptr noundef) #1
declare i32 @report_status(i32 noundef) #1
declare i32 @keyname(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/tmpthvhiwqy.c'
source_filename = "/tmp/tmpthvhiwqy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpthvhiwqy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1laglh0_.c'
source_filename = "/tmp/tmp1laglh0_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Elemento %d: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [5 x i32], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %4
4: ; preds = %15, %0
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %5, 5
br i1 %6, label %7, label %18
7: ; preds = %4
%8 = load i32, ptr %2, align 4
%9 = add nsw i32 %8, 1
%10 = call i32 @printf(ptr noundef @.str, i32 noundef %9)
%11 = load i32, ptr %2, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 %12
%14 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %13)
br label %15
15: ; preds = %7
%16 = load i32, ptr %2, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %2, align 4
br label %4, !llvm.loop !6
18: ; preds = %4
%19 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 0
%20 = call i32 @ordenar(ptr noundef %19, i32 noundef 5)
store i32 0, ptr %2, align 4
br label %21
21: ; preds = %30, %18
%22 = load i32, ptr %2, align 4
%23 = icmp slt i32 %22, 5
br i1 %23, label %24, label %33
24: ; preds = %21
%25 = load i32, ptr %2, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 %26
%28 = load i32, ptr %27, align 4
%29 = call i32 @printf(ptr noundef @.str.2, i32 noundef %28)
br label %30
30: ; preds = %24
%31 = load i32, ptr %2, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %2, align 4
br label %21, !llvm.loop !8
33: ; preds = %21
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @ordenar(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1laglh0_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Elemento %d: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [5 x i32], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 5
br i1 %5, label %.lr.ph, label %19
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %14
%7 = load i32, ptr %2, align 4
%8 = add nsw i32 %7, 1
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %8)
%10 = load i32, ptr %2, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 %11
%13 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %12)
br label %14
14: ; preds = %6
%15 = load i32, ptr %2, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %2, align 4
%17 = load i32, ptr %2, align 4
%18 = icmp slt i32 %17, 5
br i1 %18, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %19
19: ; preds = %._crit_edge, %0
%20 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 0
%21 = call i32 @ordenar(ptr noundef %20, i32 noundef 5)
store i32 0, ptr %2, align 4
%22 = load i32, ptr %2, align 4
%23 = icmp slt i32 %22, 5
br i1 %23, label %.lr.ph2, label %35
.lr.ph2: ; preds = %19
br label %24
24: ; preds = %.lr.ph2, %30
%25 = load i32, ptr %2, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 %26
%28 = load i32, ptr %27, align 4
%29 = call i32 @printf(ptr noundef @.str.2, i32 noundef %28)
br label %30
30: ; preds = %24
%31 = load i32, ptr %2, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %2, align 4
%33 = load i32, ptr %2, align 4
%34 = icmp slt i32 %33, 5
br i1 %34, label %24, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %30
br label %35
35: ; preds = %._crit_edge3, %19
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @ordenar(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpexn7u7l6.c'
source_filename = "/tmp/tmpexn7u7l6.c"
target datalayout = "e-m:e-p270: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/tmpexn7u7l6.c"
target datalayout = "e-m:e-p270: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/tmpejnfauqo.c'
source_filename = "/tmp/tmpejnfauqo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @HO_61(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%6 = call double @sqrt(double noundef 0x43A90771685EAD76)
%7 = load double, ptr %3, align 8
%8 = call double @pow(double noundef %7, double noundef 7.500000e-01)
%9 = fmul double %6, %8
%10 = load double, ptr %4, align 8
%11 = fmul double %9, %10
%12 = load double, ptr %3, align 8
%13 = call double @pow(double noundef %12, double noundef 3.000000e+01)
%14 = fmul double 0x41D0000000000000, %13
%15 = load double, ptr %4, align 8
%16 = call double @pow(double noundef %15, double noundef 6.000000e+01)
%17 = load double, ptr %3, align 8
%18 = call double @pow(double noundef %17, double noundef 2.900000e+01)
%19 = fmul double 0x426C980000000000, %18
%20 = load double, ptr %4, align 8
%21 = call double @pow(double noundef %20, double noundef 5.800000e+01)
%22 = fmul double %19, %21
%23 = fneg double %22
%24 = call double @llvm.fmuladd.f64(double %14, double %16, double %23)
%25 = load double, ptr %3, align 8
%26 = call double @pow(double noundef %25, double noundef 2.800000e+01)
%27 = fmul double 0x42F7E37D00000000, %26
%28 = load double, ptr %4, align 8
%29 = call double @pow(double noundef %28, double noundef 5.600000e+01)
%30 = call double @llvm.fmuladd.f64(double %27, double %29, double %24)
%31 = load double, ptr %3, align 8
%32 = call double @pow(double noundef %31, double noundef 2.700000e+01)
%33 = fmul double 0x4378D25FE2000000, %32
%34 = load double, ptr %4, align 8
%35 = call double @pow(double noundef %34, double noundef 5.400000e+01)
%36 = fneg double %33
%37 = call double @llvm.fmuladd.f64(double %36, double %35, double %30)
%38 = load double, ptr %3, align 8
%39 = call double @pow(double noundef %38, double noundef 2.600000e+01)
%40 = fmul double 0x43F1FF8AC63F4000, %39
%41 = load double, ptr %4, align 8
%42 = call double @pow(double noundef %41, double noundef 5.200000e+01)
%43 = call double @llvm.fmuladd.f64(double %40, double %42, double %37)
%44 = load double, ptr %3, align 8
%45 = call double @pow(double noundef %44, double noundef 2.500000e+01)
%46 = fmul double 0x4463604E996CE480, %45
%47 = load double, ptr %4, align 8
%48 = call double @pow(double noundef %47, double noundef 5.000000e+01)
%49 = fneg double %46
%50 = call double @llvm.fmuladd.f64(double %49, double %48, double %43)
%51 = load double, ptr %3, align 8
%52 = call double @pow(double noundef %51, double noundef 2.400000e+01)
%53 = fmul double 0x44D015713E5AE3AC, %52
%54 = load double, ptr %4, align 8
%55 = call double @pow(double noundef %54, double noundef 4.800000e+01)
%56 = call double @llvm.fmuladd.f64(double %53, double %55, double %50)
%57 = load double, ptr %3, align 8
%58 = call double @pow(double noundef %57, double noundef 2.300000e+01)
%59 = fmul double 0x45351C24A1D74AD2, %58
%60 = load double, ptr %4, align 8
%61 = call double @pow(double noundef %60, double noundef 4.600000e+01)
%62 = fneg double %59
%63 = call double @llvm.fmuladd.f64(double %62, double %61, double %56)
%64 = load double, ptr %3, align 8
%65 = call double @pow(double noundef %64, double noundef 2.200000e+01)
%66 = fmul double 0x459648F5ABD986BC, %65
%67 = load double, ptr %4, align 8
%68 = call double @pow(double noundef %67, double noundef 4.400000e+01)
%69 = call double @llvm.fmuladd.f64(double %66, double %68, double %63)
%70 = load double, ptr %3, align 8
%71 = call double @pow(double noundef %70, double noundef 2.100000e+01)
%72 = fmul double 0x45F326B31FAEEFCA, %71
%73 = load double, ptr %4, align 8
%74 = call double @pow(double noundef %73, double noundef 4.200000e+01)
%75 = fneg double %72
%76 = call double @llvm.fmuladd.f64(double %75, double %74, double %69)
%77 = load double, ptr %3, align 8
%78 = call double @pow(double noundef %77, double noundef 2.000000e+01)
%79 = fmul double 0x464B056721E73987, %78
%80 = load double, ptr %4, align 8
%81 = call double @pow(double noundef %80, double noundef 4.000000e+01)
%82 = call double @llvm.fmuladd.f64(double %79, double %81, double %76)
%83 = load double, ptr %3, align 8
%84 = call double @pow(double noundef %83, double noundef 1.900000e+01)
%85 = fmul double 0x469F7933C3203BBB, %84
%86 = load double, ptr %4, align 8
%87 = call double @pow(double noundef %86, double noundef 3.800000e+01)
%88 = fneg double %85
%89 = call double @llvm.fmuladd.f64(double %88, double %87, double %82)
%90 = load double, ptr %3, align 8
%91 = call double @pow(double noundef %90, double noundef 1.800000e+01)
%92 = fmul double 0x46EE5DF0F14419A2, %91
%93 = load double, ptr %4, align 8
%94 = call double @pow(double noundef %93, double noundef 3.600000e+01)
%95 = call double @llvm.fmuladd.f64(double %92, double %94, double %89)
%96 = load double, ptr %3, align 8
%97 = call double @pow(double noundef %96, double noundef 1.700000e+01)
%98 = fmul double 0x47384EE3F25C0D22, %97
%99 = load double, ptr %4, align 8
%100 = call double @pow(double noundef %99, double noundef 3.400000e+01)
%101 = fneg double %98
%102 = call double @llvm.fmuladd.f64(double %101, double %100, double %95)
%103 = load double, ptr %3, align 8
%104 = call double @pow(double noundef %103, double noundef 1.600000e+01)
%105 = fmul double 0x478024635EF120B9, %104
%106 = load double, ptr %4, align 8
%107 = call double @pow(double noundef %106, double noundef 3.200000e+01)
%108 = call double @llvm.fmuladd.f64(double %105, double %107, double %102)
%109 = load double, ptr %3, align 8
%110 = call double @pow(double noundef %109, double noundef 1.500000e+01)
%111 = fmul double 0x47C1C1A082093D98, %110
%112 = load double, ptr %4, align 8
%113 = call double @pow(double noundef %112, double noundef 3.000000e+01)
%114 = fneg double %111
%115 = call double @llvm.fmuladd.f64(double %114, double %113, double %108)
%116 = load double, ptr %3, align 8
%117 = call double @pow(double noundef %116, double noundef 1.400000e+01)
%118 = fmul double 0x4800205A46196471, %117
%119 = load double, ptr %4, align 8
%120 = call double @pow(double noundef %119, double noundef 2.800000e+01)
%121 = call double @llvm.fmuladd.f64(double %118, double %120, double %115)
%122 = load double, ptr %3, align 8
%123 = call double @pow(double noundef %122, double noundef 1.300000e+01)
%124 = fmul double 0x4838122C64DE5F55, %123
%125 = load double, ptr %4, align 8
%126 = call double @pow(double noundef %125, double noundef 2.600000e+01)
%127 = fneg double %124
%128 = call double @llvm.fmuladd.f64(double %127, double %126, double %121)
%129 = load double, ptr %3, align 8
%130 = call double @pow(double noundef %129, double noundef 1.200000e+01)
%131 = fmul double 0x486D56261AEF0430, %130
%132 = load double, ptr %4, align 8
%133 = call double @pow(double noundef %132, double noundef 2.400000e+01)
%134 = call double @llvm.fmuladd.f64(double %131, double %133, double %128)
%135 = load double, ptr %3, align 8
%136 = call double @pow(double noundef %135, double noundef 1.100000e+01)
%137 = fmul double 0x489CF354C30014F9, %136
%138 = load double, ptr %4, align 8
%139 = call double @pow(double noundef %138, double noundef 2.200000e+01)
%140 = fneg double %137
%141 = call double @llvm.fmuladd.f64(double %140, double %139, double %134)
%142 = load double, ptr %3, align 8
%143 = call double @pow(double noundef %142, double noundef 1.000000e+01)
%144 = fmul double 0x48C6E3956A2C1095, %143
%145 = load double, ptr %4, align 8
%146 = call double @pow(double noundef %145, double noundef 2.000000e+01)
%147 = call double @llvm.fmuladd.f64(double %144, double %146, double %141)
%148 = load double, ptr %3, align 8
%149 = call double @pow(double noundef %148, double noundef 9.000000e+00)
%150 = fmul double 0x48EC9C7AC4B714BA, %149
%151 = load double, ptr %4, align 8
%152 = call double @pow(double noundef %151, double noundef 1.800000e+01)
%153 = fneg double %150
%154 = call double @llvm.fmuladd.f64(double %153, double %152, double %147)
%155 = load double, ptr %3, align 8
%156 = call double @pow(double noundef %155, double noundef 8.000000e+00)
%157 = fmul double 0x490BCC65D37D8424, %156
%158 = load double, ptr %4, align 8
%159 = call double @pow(double noundef %158, double noundef 1.600000e+01)
%160 = call double @llvm.fmuladd.f64(double %157, double %159, double %154)
%161 = load double, ptr %3, align 8
%162 = call double @pow(double noundef %161, double noundef 7.000000e+00)
%163 = fmul double 0x49248BF238251EE3, %162
%164 = load double, ptr %4, align 8
%165 = call double @pow(double noundef %164, double noundef 1.400000e+01)
%166 = fneg double %163
%167 = call double @llvm.fmuladd.f64(double %166, double %165, double %160)
%168 = load double, ptr %3, align 8
%169 = call double @pow(double noundef %168, double noundef 6.000000e+00)
%170 = fmul double 0x49367910ED6899C8, %169
%171 = load double, ptr %4, align 8
%172 = call double @pow(double noundef %171, double noundef 1.200000e+01)
%173 = call double @llvm.fmuladd.f64(double %170, double %172, double %167)
%174 = load double, ptr %3, align 8
%175 = call double @pow(double noundef %174, double noundef 5.000000e+00)
%176 = fmul double 0x494187643E4C77F3, %175
%177 = load double, ptr %4, align 8
%178 = call double @pow(double noundef %177, double noundef 1.000000e+01)
%179 = fneg double %176
%180 = call double @llvm.fmuladd.f64(double %179, double %178, double %173)
%181 = load double, ptr %3, align 8
%182 = call double @pow(double noundef %181, double noundef 4.000000e+00)
%183 = fmul double 0x49428A4790A97EDF, %182
%184 = load double, ptr %4, align 8
%185 = call double @pow(double noundef %184, double noundef 8.000000e+00)
%186 = call double @llvm.fmuladd.f64(double %183, double %185, double %180)
%187 = load double, ptr %3, align 8
%188 = call double @pow(double noundef %187, double noundef 3.000000e+00)
%189 = fmul double 0x4938B85F6B8CA929, %188
%190 = load double, ptr %4, align 8
%191 = call double @pow(double noundef %190, double noundef 6.000000e+00)
%192 = fneg double %189
%193 = call double @llvm.fmuladd.f64(double %192, double %191, double %186)
%194 = load double, ptr %3, align 8
%195 = fmul double 0x49228A4790A97EDF, %194
%196 = load double, ptr %3, align 8
%197 = fmul double %195, %196
%198 = load double, ptr %4, align 8
%199 = call double @pow(double noundef %198, double noundef 4.000000e+00)
%200 = call double @llvm.fmuladd.f64(double %197, double %199, double %193)
%201 = load double, ptr %3, align 8
%202 = fmul double 0x48F99297AD0D18EC, %201
%203 = load double, ptr %4, align 8
%204 = fmul double %202, %203
%205 = load double, ptr %4, align 8
%206 = fneg double %204
%207 = call double @llvm.fmuladd.f64(double %206, double %205, double %200)
%208 = fadd double %207, 0x48B47546240A7A57
%209 = fmul double %11, %208
%210 = load double, ptr %3, align 8
%211 = fneg double %210
%212 = load double, ptr %4, align 8
%213 = fmul double %211, %212
%214 = load double, ptr %4, align 8
%215 = fmul double %213, %214
%216 = fdiv double %215, 2.000000e+00
%217 = call double @exp(double noundef %216)
%218 = fmul double %209, %217
%219 = call double @pow(double noundef 0x400921FB54524550, double noundef -2.500000e-01)
%220 = fmul double %218, %219
%221 = fdiv double %220, 0x4A747546240A7A57
store double %221, ptr %5, align 8
%222 = load double, ptr %5, align 8
ret double %222
}
declare double @sqrt(double noundef) #1
declare double @pow(double noundef, double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare double @exp(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpejnfauqo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @HO_61(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%6 = call double @sqrt(double noundef 0x43A90771685EAD76)
%7 = load double, ptr %3, align 8
%8 = call double @pow(double noundef %7, double noundef 7.500000e-01)
%9 = fmul double %6, %8
%10 = load double, ptr %4, align 8
%11 = fmul double %9, %10
%12 = load double, ptr %3, align 8
%13 = call double @pow(double noundef %12, double noundef 3.000000e+01)
%14 = fmul double 0x41D0000000000000, %13
%15 = load double, ptr %4, align 8
%16 = call double @pow(double noundef %15, double noundef 6.000000e+01)
%17 = load double, ptr %3, align 8
%18 = call double @pow(double noundef %17, double noundef 2.900000e+01)
%19 = fmul double 0x426C980000000000, %18
%20 = load double, ptr %4, align 8
%21 = call double @pow(double noundef %20, double noundef 5.800000e+01)
%22 = fmul double %19, %21
%23 = fneg double %22
%24 = call double @llvm.fmuladd.f64(double %14, double %16, double %23)
%25 = load double, ptr %3, align 8
%26 = call double @pow(double noundef %25, double noundef 2.800000e+01)
%27 = fmul double 0x42F7E37D00000000, %26
%28 = load double, ptr %4, align 8
%29 = call double @pow(double noundef %28, double noundef 5.600000e+01)
%30 = call double @llvm.fmuladd.f64(double %27, double %29, double %24)
%31 = load double, ptr %3, align 8
%32 = call double @pow(double noundef %31, double noundef 2.700000e+01)
%33 = fmul double 0x4378D25FE2000000, %32
%34 = load double, ptr %4, align 8
%35 = call double @pow(double noundef %34, double noundef 5.400000e+01)
%36 = fneg double %33
%37 = call double @llvm.fmuladd.f64(double %36, double %35, double %30)
%38 = load double, ptr %3, align 8
%39 = call double @pow(double noundef %38, double noundef 2.600000e+01)
%40 = fmul double 0x43F1FF8AC63F4000, %39
%41 = load double, ptr %4, align 8
%42 = call double @pow(double noundef %41, double noundef 5.200000e+01)
%43 = call double @llvm.fmuladd.f64(double %40, double %42, double %37)
%44 = load double, ptr %3, align 8
%45 = call double @pow(double noundef %44, double noundef 2.500000e+01)
%46 = fmul double 0x4463604E996CE480, %45
%47 = load double, ptr %4, align 8
%48 = call double @pow(double noundef %47, double noundef 5.000000e+01)
%49 = fneg double %46
%50 = call double @llvm.fmuladd.f64(double %49, double %48, double %43)
%51 = load double, ptr %3, align 8
%52 = call double @pow(double noundef %51, double noundef 2.400000e+01)
%53 = fmul double 0x44D015713E5AE3AC, %52
%54 = load double, ptr %4, align 8
%55 = call double @pow(double noundef %54, double noundef 4.800000e+01)
%56 = call double @llvm.fmuladd.f64(double %53, double %55, double %50)
%57 = load double, ptr %3, align 8
%58 = call double @pow(double noundef %57, double noundef 2.300000e+01)
%59 = fmul double 0x45351C24A1D74AD2, %58
%60 = load double, ptr %4, align 8
%61 = call double @pow(double noundef %60, double noundef 4.600000e+01)
%62 = fneg double %59
%63 = call double @llvm.fmuladd.f64(double %62, double %61, double %56)
%64 = load double, ptr %3, align 8
%65 = call double @pow(double noundef %64, double noundef 2.200000e+01)
%66 = fmul double 0x459648F5ABD986BC, %65
%67 = load double, ptr %4, align 8
%68 = call double @pow(double noundef %67, double noundef 4.400000e+01)
%69 = call double @llvm.fmuladd.f64(double %66, double %68, double %63)
%70 = load double, ptr %3, align 8
%71 = call double @pow(double noundef %70, double noundef 2.100000e+01)
%72 = fmul double 0x45F326B31FAEEFCA, %71
%73 = load double, ptr %4, align 8
%74 = call double @pow(double noundef %73, double noundef 4.200000e+01)
%75 = fneg double %72
%76 = call double @llvm.fmuladd.f64(double %75, double %74, double %69)
%77 = load double, ptr %3, align 8
%78 = call double @pow(double noundef %77, double noundef 2.000000e+01)
%79 = fmul double 0x464B056721E73987, %78
%80 = load double, ptr %4, align 8
%81 = call double @pow(double noundef %80, double noundef 4.000000e+01)
%82 = call double @llvm.fmuladd.f64(double %79, double %81, double %76)
%83 = load double, ptr %3, align 8
%84 = call double @pow(double noundef %83, double noundef 1.900000e+01)
%85 = fmul double 0x469F7933C3203BBB, %84
%86 = load double, ptr %4, align 8
%87 = call double @pow(double noundef %86, double noundef 3.800000e+01)
%88 = fneg double %85
%89 = call double @llvm.fmuladd.f64(double %88, double %87, double %82)
%90 = load double, ptr %3, align 8
%91 = call double @pow(double noundef %90, double noundef 1.800000e+01)
%92 = fmul double 0x46EE5DF0F14419A2, %91
%93 = load double, ptr %4, align 8
%94 = call double @pow(double noundef %93, double noundef 3.600000e+01)
%95 = call double @llvm.fmuladd.f64(double %92, double %94, double %89)
%96 = load double, ptr %3, align 8
%97 = call double @pow(double noundef %96, double noundef 1.700000e+01)
%98 = fmul double 0x47384EE3F25C0D22, %97
%99 = load double, ptr %4, align 8
%100 = call double @pow(double noundef %99, double noundef 3.400000e+01)
%101 = fneg double %98
%102 = call double @llvm.fmuladd.f64(double %101, double %100, double %95)
%103 = load double, ptr %3, align 8
%104 = call double @pow(double noundef %103, double noundef 1.600000e+01)
%105 = fmul double 0x478024635EF120B9, %104
%106 = load double, ptr %4, align 8
%107 = call double @pow(double noundef %106, double noundef 3.200000e+01)
%108 = call double @llvm.fmuladd.f64(double %105, double %107, double %102)
%109 = load double, ptr %3, align 8
%110 = call double @pow(double noundef %109, double noundef 1.500000e+01)
%111 = fmul double 0x47C1C1A082093D98, %110
%112 = load double, ptr %4, align 8
%113 = call double @pow(double noundef %112, double noundef 3.000000e+01)
%114 = fneg double %111
%115 = call double @llvm.fmuladd.f64(double %114, double %113, double %108)
%116 = load double, ptr %3, align 8
%117 = call double @pow(double noundef %116, double noundef 1.400000e+01)
%118 = fmul double 0x4800205A46196471, %117
%119 = load double, ptr %4, align 8
%120 = call double @pow(double noundef %119, double noundef 2.800000e+01)
%121 = call double @llvm.fmuladd.f64(double %118, double %120, double %115)
%122 = load double, ptr %3, align 8
%123 = call double @pow(double noundef %122, double noundef 1.300000e+01)
%124 = fmul double 0x4838122C64DE5F55, %123
%125 = load double, ptr %4, align 8
%126 = call double @pow(double noundef %125, double noundef 2.600000e+01)
%127 = fneg double %124
%128 = call double @llvm.fmuladd.f64(double %127, double %126, double %121)
%129 = load double, ptr %3, align 8
%130 = call double @pow(double noundef %129, double noundef 1.200000e+01)
%131 = fmul double 0x486D56261AEF0430, %130
%132 = load double, ptr %4, align 8
%133 = call double @pow(double noundef %132, double noundef 2.400000e+01)
%134 = call double @llvm.fmuladd.f64(double %131, double %133, double %128)
%135 = load double, ptr %3, align 8
%136 = call double @pow(double noundef %135, double noundef 1.100000e+01)
%137 = fmul double 0x489CF354C30014F9, %136
%138 = load double, ptr %4, align 8
%139 = call double @pow(double noundef %138, double noundef 2.200000e+01)
%140 = fneg double %137
%141 = call double @llvm.fmuladd.f64(double %140, double %139, double %134)
%142 = load double, ptr %3, align 8
%143 = call double @pow(double noundef %142, double noundef 1.000000e+01)
%144 = fmul double 0x48C6E3956A2C1095, %143
%145 = load double, ptr %4, align 8
%146 = call double @pow(double noundef %145, double noundef 2.000000e+01)
%147 = call double @llvm.fmuladd.f64(double %144, double %146, double %141)
%148 = load double, ptr %3, align 8
%149 = call double @pow(double noundef %148, double noundef 9.000000e+00)
%150 = fmul double 0x48EC9C7AC4B714BA, %149
%151 = load double, ptr %4, align 8
%152 = call double @pow(double noundef %151, double noundef 1.800000e+01)
%153 = fneg double %150
%154 = call double @llvm.fmuladd.f64(double %153, double %152, double %147)
%155 = load double, ptr %3, align 8
%156 = call double @pow(double noundef %155, double noundef 8.000000e+00)
%157 = fmul double 0x490BCC65D37D8424, %156
%158 = load double, ptr %4, align 8
%159 = call double @pow(double noundef %158, double noundef 1.600000e+01)
%160 = call double @llvm.fmuladd.f64(double %157, double %159, double %154)
%161 = load double, ptr %3, align 8
%162 = call double @pow(double noundef %161, double noundef 7.000000e+00)
%163 = fmul double 0x49248BF238251EE3, %162
%164 = load double, ptr %4, align 8
%165 = call double @pow(double noundef %164, double noundef 1.400000e+01)
%166 = fneg double %163
%167 = call double @llvm.fmuladd.f64(double %166, double %165, double %160)
%168 = load double, ptr %3, align 8
%169 = call double @pow(double noundef %168, double noundef 6.000000e+00)
%170 = fmul double 0x49367910ED6899C8, %169
%171 = load double, ptr %4, align 8
%172 = call double @pow(double noundef %171, double noundef 1.200000e+01)
%173 = call double @llvm.fmuladd.f64(double %170, double %172, double %167)
%174 = load double, ptr %3, align 8
%175 = call double @pow(double noundef %174, double noundef 5.000000e+00)
%176 = fmul double 0x494187643E4C77F3, %175
%177 = load double, ptr %4, align 8
%178 = call double @pow(double noundef %177, double noundef 1.000000e+01)
%179 = fneg double %176
%180 = call double @llvm.fmuladd.f64(double %179, double %178, double %173)
%181 = load double, ptr %3, align 8
%182 = call double @pow(double noundef %181, double noundef 4.000000e+00)
%183 = fmul double 0x49428A4790A97EDF, %182
%184 = load double, ptr %4, align 8
%185 = call double @pow(double noundef %184, double noundef 8.000000e+00)
%186 = call double @llvm.fmuladd.f64(double %183, double %185, double %180)
%187 = load double, ptr %3, align 8
%188 = call double @pow(double noundef %187, double noundef 3.000000e+00)
%189 = fmul double 0x4938B85F6B8CA929, %188
%190 = load double, ptr %4, align 8
%191 = call double @pow(double noundef %190, double noundef 6.000000e+00)
%192 = fneg double %189
%193 = call double @llvm.fmuladd.f64(double %192, double %191, double %186)
%194 = load double, ptr %3, align 8
%195 = fmul double 0x49228A4790A97EDF, %194
%196 = load double, ptr %3, align 8
%197 = fmul double %195, %196
%198 = load double, ptr %4, align 8
%199 = call double @pow(double noundef %198, double noundef 4.000000e+00)
%200 = call double @llvm.fmuladd.f64(double %197, double %199, double %193)
%201 = load double, ptr %3, align 8
%202 = fmul double 0x48F99297AD0D18EC, %201
%203 = load double, ptr %4, align 8
%204 = fmul double %202, %203
%205 = load double, ptr %4, align 8
%206 = fneg double %204
%207 = call double @llvm.fmuladd.f64(double %206, double %205, double %200)
%208 = fadd double %207, 0x48B47546240A7A57
%209 = fmul double %11, %208
%210 = load double, ptr %3, align 8
%211 = fneg double %210
%212 = load double, ptr %4, align 8
%213 = fmul double %211, %212
%214 = load double, ptr %4, align 8
%215 = fmul double %213, %214
%216 = fdiv double %215, 2.000000e+00
%217 = call double @exp(double noundef %216)
%218 = fmul double %209, %217
%219 = call double @pow(double noundef 0x400921FB54524550, double noundef -2.500000e-01)
%220 = fmul double %218, %219
%221 = fdiv double %220, 0x4A747546240A7A57
store double %221, ptr %5, align 8
%222 = load double, ptr %5, align 8
ret double %222
}
declare double @sqrt(double noundef) #1
declare double @pow(double noundef, double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare double @exp(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpp0016ztu.c'
source_filename = "/tmp/tmpp0016ztu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @leerArchivos() #0 {
%1 = call i32 (...) @leerArchivo1()
%2 = call i32 (...) @leerArchivo2()
%3 = call i32 (...) @leerArchivo3()
%4 = call i32 (...) @leerArchivo4()
%5 = call i32 (...) @leerArchivo5()
%6 = call i32 (...) @leerArchivo6()
%7 = call i32 (...) @leerArchivo7()
ret void
}
declare i32 @leerArchivo1(...) #1
declare i32 @leerArchivo2(...) #1
declare i32 @leerArchivo3(...) #1
declare i32 @leerArchivo4(...) #1
declare i32 @leerArchivo5(...) #1
declare i32 @leerArchivo6(...) #1
declare i32 @leerArchivo7(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp0016ztu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @leerArchivos() #0 {
%1 = call i32 (...) @leerArchivo1()
%2 = call i32 (...) @leerArchivo2()
%3 = call i32 (...) @leerArchivo3()
%4 = call i32 (...) @leerArchivo4()
%5 = call i32 (...) @leerArchivo5()
%6 = call i32 (...) @leerArchivo6()
%7 = call i32 (...) @leerArchivo7()
ret void
}
declare i32 @leerArchivo1(...) #1
declare i32 @leerArchivo2(...) #1
declare i32 @leerArchivo3(...) #1
declare i32 @leerArchivo4(...) #1
declare i32 @leerArchivo5(...) #1
declare i32 @leerArchivo6(...) #1
declare i32 @leerArchivo7(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp534hwut1.c'
source_filename = "/tmp/tmp534hwut1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bin2hex(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
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i8, align 1
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store ptr null, ptr %7, align 8
store ptr null, ptr %8, align 8
store i8 65, ptr %9, align 1
%10 = load i32, ptr %4, align 4
%11 = mul nsw i32 %10, 2
%12 = add nsw i32 %11, 1
%13 = call i64 @malloc(i32 noundef %12)
%14 = inttoptr i64 %13 to ptr
store ptr %14, ptr %7, align 8
store ptr %14, ptr %8, align 8
store i32 0, ptr %5, align 4
br label %15
15: ; preds = %66, %2
%16 = load i32, ptr %5, align 4
%17 = load i32, ptr %4, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %69
19: ; preds = %15
%20 = load ptr, ptr %3, align 8
%21 = load i32, ptr %5, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
%24 = load i8, ptr %23, align 1
%25 = zext i8 %24 to i32
%26 = ashr i32 %25, 4
store i32 %26, ptr %6, align 4
%27 = load i32, ptr %6, align 4
%28 = icmp slt i32 %27, 10
br i1 %28, label %29, label %32
29: ; preds = %19
%30 = load i32, ptr %6, align 4
%31 = add nsw i32 %30, 48
br label %38
32: ; preds = %19
%33 = load i32, ptr %6, align 4
%34 = sub nsw i32 %33, 10
%35 = load i8, ptr %9, align 1
%36 = sext i8 %35 to i32
%37 = add nsw i32 %34, %36
br label %38
38: ; preds = %32, %29
%39 = phi i32 [ %31, %29 ], [ %37, %32 ]
%40 = trunc i32 %39 to i8
%41 = load ptr, ptr %7, align 8
%42 = getelementptr inbounds i8, ptr %41, i32 1
store ptr %42, ptr %7, align 8
store i8 %40, ptr %41, align 1
%43 = load ptr, ptr %3, align 8
%44 = load i32, ptr %5, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i8, ptr %43, i64 %45
%47 = load i8, ptr %46, align 1
%48 = zext i8 %47 to i32
%49 = and i32 %48, 15
store i32 %49, ptr %6, align 4
%50 = load i32, ptr %6, align 4
%51 = icmp slt i32 %50, 10
br i1 %51, label %52, label %55
52: ; preds = %38
%53 = load i32, ptr %6, align 4
%54 = add nsw i32 %53, 48
br label %61
55: ; preds = %38
%56 = load i32, ptr %6, align 4
%57 = sub nsw i32 %56, 10
%58 = load i8, ptr %9, align 1
%59 = sext i8 %58 to i32
%60 = add nsw i32 %57, %59
br label %61
61: ; preds = %55, %52
%62 = phi i32 [ %54, %52 ], [ %60, %55 ]
%63 = trunc i32 %62 to i8
%64 = load ptr, ptr %7, align 8
%65 = getelementptr inbounds i8, ptr %64, i32 1
store ptr %65, ptr %7, align 8
store i8 %63, ptr %64, align 1
br label %66
66: ; preds = %61
%67 = load i32, ptr %5, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %5, align 4
br label %15, !llvm.loop !6
69: ; preds = %15
%70 = load ptr, ptr %7, align 8
store i8 0, ptr %70, align 1
%71 = load ptr, ptr %8, align 8
ret ptr %71
}
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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp534hwut1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bin2hex(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
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i8, align 1
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store ptr null, ptr %7, align 8
store ptr null, ptr %8, align 8
store i8 65, ptr %9, align 1
%10 = load i32, ptr %4, align 4
%11 = mul nsw i32 %10, 2
%12 = add nsw i32 %11, 1
%13 = call i64 @malloc(i32 noundef %12)
%14 = inttoptr i64 %13 to ptr
store ptr %14, ptr %7, align 8
store ptr %14, ptr %8, align 8
store i32 0, ptr %5, align 4
%15 = load i32, ptr %5, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph, label %71
.lr.ph: ; preds = %2
br label %18
18: ; preds = %.lr.ph, %65
%19 = load ptr, ptr %3, align 8
%20 = load i32, ptr %5, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
%23 = load i8, ptr %22, align 1
%24 = zext i8 %23 to i32
%25 = ashr i32 %24, 4
store i32 %25, ptr %6, align 4
%26 = load i32, ptr %6, align 4
%27 = icmp slt i32 %26, 10
br i1 %27, label %28, label %31
28: ; preds = %18
%29 = load i32, ptr %6, align 4
%30 = add nsw i32 %29, 48
br label %37
31: ; preds = %18
%32 = load i32, ptr %6, align 4
%33 = sub nsw i32 %32, 10
%34 = load i8, ptr %9, align 1
%35 = sext i8 %34 to i32
%36 = add nsw i32 %33, %35
br label %37
37: ; preds = %31, %28
%38 = phi i32 [ %30, %28 ], [ %36, %31 ]
%39 = trunc i32 %38 to i8
%40 = load ptr, ptr %7, align 8
%41 = getelementptr inbounds i8, ptr %40, i32 1
store ptr %41, ptr %7, align 8
store i8 %39, ptr %40, align 1
%42 = load ptr, ptr %3, align 8
%43 = load i32, ptr %5, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, ptr %42, i64 %44
%46 = load i8, ptr %45, align 1
%47 = zext i8 %46 to i32
%48 = and i32 %47, 15
store i32 %48, ptr %6, align 4
%49 = load i32, ptr %6, align 4
%50 = icmp slt i32 %49, 10
br i1 %50, label %51, label %54
51: ; preds = %37
%52 = load i32, ptr %6, align 4
%53 = add nsw i32 %52, 48
br label %60
54: ; preds = %37
%55 = load i32, ptr %6, align 4
%56 = sub nsw i32 %55, 10
%57 = load i8, ptr %9, align 1
%58 = sext i8 %57 to i32
%59 = add nsw i32 %56, %58
br label %60
60: ; preds = %54, %51
%61 = phi i32 [ %53, %51 ], [ %59, %54 ]
%62 = trunc i32 %61 to i8
%63 = load ptr, ptr %7, align 8
%64 = getelementptr inbounds i8, ptr %63, i32 1
store ptr %64, ptr %7, align 8
store i8 %62, ptr %63, align 1
br label %65
65: ; preds = %60
%66 = load i32, ptr %5, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %5, align 4
%68 = load i32, ptr %5, align 4
%69 = load i32, ptr %4, align 4
%70 = icmp slt i32 %68, %69
br i1 %70, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %65
br label %71
71: ; preds = %._crit_edge, %2
%72 = load ptr, ptr %7, align 8
store i8 0, ptr %72, align 1
%73 = load ptr, ptr %8, align 8
ret ptr %73
}
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"}
|
; ModuleID = '/tmp/tmp_idh7uoz.c'
source_filename = "/tmp/tmp_idh7uoz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"i = %i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @foo(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
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/tmp_idh7uoz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"i = %i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @foo(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
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/tmpnheb1n6r.c'
source_filename = "/tmp/tmpnheb1n6r.c"
target datalayout = "e-m:e-p270: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/tmpnheb1n6r.c"
target datalayout = "e-m:e-p270: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/tmpxg554dk1.c'
source_filename = "/tmp/tmpxg554dk1.c"
target datalayout = "e-m:e-p270: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/tmpxg554dk1.c"
target datalayout = "e-m:e-p270: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/tmpb21u01ws.c'
source_filename = "/tmp/tmpb21u01ws.c"
target datalayout = "e-m:e-p270: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 [19 x i8] c"read image %u: %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@EX_IOERR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [4 x i8] c" %u\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_next_image(i32 noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%15 = load i32, ptr %9, align 4
%16 = load i32, ptr %10, align 4
%17 = mul nsw i32 %15, %16
store i32 %17, ptr %12, align 4
%18 = load i32, ptr %6, align 4
%19 = load ptr, ptr %8, align 8
%20 = load i32, ptr %12, align 4
%21 = call i32 @read(i32 noundef %18, ptr noundef %19, i32 noundef %20)
store i32 %21, ptr %11, align 4
%22 = load i32, ptr %11, align 4
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %32
24: ; preds = %5
%25 = load i32, ptr @stderr, align 4
%26 = load i32, ptr %7, align 4
%27 = load i32, ptr @errno, align 4
%28 = call ptr @strerror(i32 noundef %27)
%29 = call i32 @fprintf(i32 noundef %25, ptr noundef @.str, i32 noundef %26, ptr noundef %28)
%30 = load i32, ptr @EX_IOERR, align 4
%31 = call i32 @exit(i32 noundef %30) #3
unreachable
32: ; preds = %5
store i32 0, ptr %13, align 4
br label %33
33: ; preds = %58, %32
%34 = load i32, ptr %13, align 4
%35 = load i32, ptr %9, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %61
37: ; preds = %33
store i32 0, ptr %14, align 4
br label %38
38: ; preds = %54, %37
%39 = load i32, ptr %14, align 4
%40 = load i32, ptr %10, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %42, label %57
42: ; preds = %38
%43 = load ptr, ptr %8, align 8
%44 = load i32, ptr %14, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i32, ptr %43, i64 %45
%47 = load i32, ptr %13, align 4
%48 = load i32, ptr %10, align 4
%49 = mul nsw i32 %47, %48
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i32, ptr %46, i64 %50
%52 = load i32, ptr %51, align 4
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %52)
br label %54
54: ; preds = %42
%55 = load i32, ptr %14, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %14, align 4
br label %38, !llvm.loop !6
57: ; preds = %38
br label %58
58: ; preds = %57
%59 = load i32, ptr %13, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %13, align 4
br label %33, !llvm.loop !8
61: ; preds = %33
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret void
}
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb21u01ws.c"
target datalayout = "e-m:e-p270: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 [19 x i8] c"read image %u: %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@EX_IOERR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [4 x i8] c" %u\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_next_image(i32 noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%15 = load i32, ptr %9, align 4
%16 = load i32, ptr %10, align 4
%17 = mul nsw i32 %15, %16
store i32 %17, ptr %12, align 4
%18 = load i32, ptr %6, align 4
%19 = load ptr, ptr %8, align 8
%20 = load i32, ptr %12, align 4
%21 = call i32 @read(i32 noundef %18, ptr noundef %19, i32 noundef %20)
store i32 %21, ptr %11, align 4
%22 = load i32, ptr %11, align 4
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %32
24: ; preds = %5
%25 = load i32, ptr @stderr, align 4
%26 = load i32, ptr %7, align 4
%27 = load i32, ptr @errno, align 4
%28 = call ptr @strerror(i32 noundef %27)
%29 = call i32 @fprintf(i32 noundef %25, ptr noundef @.str, i32 noundef %26, ptr noundef %28)
%30 = load i32, ptr @EX_IOERR, align 4
%31 = call i32 @exit(i32 noundef %30) #3
unreachable
32: ; preds = %5
store i32 0, ptr %13, align 4
%33 = load i32, ptr %13, align 4
%34 = load i32, ptr %9, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %.lr.ph2, label %65
.lr.ph2: ; preds = %32
br label %36
36: ; preds = %.lr.ph2, %59
store i32 0, ptr %14, align 4
%37 = load i32, ptr %14, align 4
%38 = load i32, ptr %10, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %.lr.ph, label %58
.lr.ph: ; preds = %36
br label %40
40: ; preds = %.lr.ph, %52
%41 = load ptr, ptr %8, align 8
%42 = load i32, ptr %14, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %41, i64 %43
%45 = load i32, ptr %13, align 4
%46 = load i32, ptr %10, align 4
%47 = mul nsw i32 %45, %46
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i32, ptr %44, i64 %48
%50 = load i32, ptr %49, align 4
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %50)
br label %52
52: ; preds = %40
%53 = load i32, ptr %14, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %14, align 4
%55 = load i32, ptr %14, align 4
%56 = load i32, ptr %10, align 4
%57 = icmp slt i32 %55, %56
br i1 %57, label %40, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %52
br label %58
58: ; preds = %._crit_edge, %36
br label %59
59: ; preds = %58
%60 = load i32, ptr %13, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %13, align 4
%62 = load i32, ptr %13, align 4
%63 = load i32, ptr %9, align 4
%64 = icmp slt i32 %62, %63
br i1 %64, label %36, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %59
br label %65
65: ; preds = %._crit_edge3, %32
%66 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret void
}
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpl3jg1y97.c'
source_filename = "/tmp/tmpl3jg1y97.c"
target datalayout = "e-m:e-p270: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/tmpl3jg1y97.c"
target datalayout = "e-m:e-p270: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/tmpfj60ahnr.c'
source_filename = "/tmp/tmpfj60ahnr.c"
target datalayout = "e-m:e-p270: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/tmpfj60ahnr.c"
target datalayout = "e-m:e-p270: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/tmpj3rz9c6v.c'
source_filename = "/tmp/tmpj3rz9c6v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"SendSocket error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @writeSocket(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %4, align 4
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr %6, align 4
%11 = call i32 @send(i32 noundef %8, ptr noundef %9, i32 noundef %10, i32 noundef 0)
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %7, align 4
%13 = icmp slt i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %3
%15 = call i32 @perror(ptr noundef @.str)
br label %16
16: ; preds = %14, %3
%17 = load i32, ptr %7, align 4
ret i32 %17
}
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj3rz9c6v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"SendSocket error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @writeSocket(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %4, align 4
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr %6, align 4
%11 = call i32 @send(i32 noundef %8, ptr noundef %9, i32 noundef %10, i32 noundef 0)
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %7, align 4
%13 = icmp slt i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %3
%15 = call i32 @perror(ptr noundef @.str)
br label %16
16: ; preds = %14, %3
%17 = load i32, ptr %7, align 4
ret i32 %17
}
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpiysnpvtg.c'
source_filename = "/tmp/tmpiysnpvtg.c"
target datalayout = "e-m:e-p270: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/tmpiysnpvtg.c"
target datalayout = "e-m:e-p270: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/tmpela7v8z5.c'
source_filename = "/tmp/tmpela7v8z5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getstring(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds i8, ptr %6, i32 1
store ptr %7, ptr %3, align 8
%8 = load i8, ptr %6, align 1
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 34
br i1 %10, label %11, label %12
11: ; preds = %1
store ptr null, ptr %2, align 8
br label %58
12: ; preds = %1
store i32 0, ptr %5, align 4
br label %13
13: ; preds = %42, %12
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 34
br i1 %20, label %21, label %30
21: ; preds = %13
%22 = load ptr, ptr %3, align 8
%23 = load i32, ptr %5, align 4
%24 = sub nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %22, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp ne i32 %28, 92
br label %30
30: ; preds = %21, %13
%31 = phi i1 [ false, %13 ], [ %29, %21 ]
%32 = xor i1 %31, true
br i1 %32, label %33, label %45
33: ; preds = %30
%34 = load ptr, ptr %3, align 8
%35 = load i32, ptr %5, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
%38 = load i8, ptr %37, align 1
%39 = icmp ne i8 %38, 0
br i1 %39, label %41, label %40
40: ; preds = %33
store ptr null, ptr %2, align 8
br label %58
41: ; preds = %33
br label %42
42: ; preds = %41
%43 = load i32, ptr %5, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %5, align 4
br label %13, !llvm.loop !6
45: ; preds = %30
%46 = load i32, ptr %5, align 4
%47 = add nsw i32 %46, 1
%48 = call ptr @xmalloc(i32 noundef %47)
store ptr %48, ptr %4, align 8
%49 = load ptr, ptr %3, align 8
%50 = load ptr, ptr %4, align 8
%51 = load i32, ptr %5, align 4
%52 = call i32 @memcpy(ptr noundef %49, ptr noundef %50, i32 noundef %51)
%53 = load ptr, ptr %4, align 8
%54 = load i32, ptr %5, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, ptr %53, i64 %55
store i8 0, ptr %56, align 1
%57 = load ptr, ptr %4, align 8
store ptr %57, ptr %2, align 8
br label %58
58: ; preds = %45, %40, %11
%59 = load ptr, ptr %2, align 8
ret ptr %59
}
declare ptr @xmalloc(i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpela7v8z5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getstring(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds i8, ptr %6, i32 1
store ptr %7, ptr %3, align 8
%8 = load i8, ptr %6, align 1
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 34
br i1 %10, label %11, label %12
11: ; preds = %1
store ptr null, ptr %2, align 8
br label %58
12: ; preds = %1
store i32 0, ptr %5, align 4
br label %13
13: ; preds = %42, %12
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 34
br i1 %20, label %21, label %30
21: ; preds = %13
%22 = load ptr, ptr %3, align 8
%23 = load i32, ptr %5, align 4
%24 = sub nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %22, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp ne i32 %28, 92
br label %30
30: ; preds = %21, %13
%31 = phi i1 [ false, %13 ], [ %29, %21 ]
%32 = xor i1 %31, true
br i1 %32, label %33, label %45
33: ; preds = %30
%34 = load ptr, ptr %3, align 8
%35 = load i32, ptr %5, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
%38 = load i8, ptr %37, align 1
%39 = icmp ne i8 %38, 0
br i1 %39, label %41, label %40
40: ; preds = %33
store ptr null, ptr %2, align 8
br label %58
41: ; preds = %33
br label %42
42: ; preds = %41
%43 = load i32, ptr %5, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %5, align 4
br label %13, !llvm.loop !6
45: ; preds = %30
%46 = load i32, ptr %5, align 4
%47 = add nsw i32 %46, 1
%48 = call ptr @xmalloc(i32 noundef %47)
store ptr %48, ptr %4, align 8
%49 = load ptr, ptr %3, align 8
%50 = load ptr, ptr %4, align 8
%51 = load i32, ptr %5, align 4
%52 = call i32 @memcpy(ptr noundef %49, ptr noundef %50, i32 noundef %51)
%53 = load ptr, ptr %4, align 8
%54 = load i32, ptr %5, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, ptr %53, i64 %55
store i8 0, ptr %56, align 1
%57 = load ptr, ptr %4, align 8
store ptr %57, ptr %2, align 8
br label %58
58: ; preds = %45, %40, %11
%59 = load ptr, ptr %2, align 8
ret ptr %59
}
declare ptr @xmalloc(i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp3t4b0sc5.c'
source_filename = "/tmp/tmp3t4b0sc5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @exports_parsegoal(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = load i8, ptr %6, align 1
%8 = sext i8 %7 to i32
%9 = icmp slt i32 %8, 49
br i1 %9, label %21, label %10
10: ; preds = %2
%11 = load ptr, ptr %4, align 8
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp sgt i32 %13, 57
br i1 %14, label %21, label %15
15: ; preds = %10
%16 = load ptr, ptr %4, align 8
%17 = getelementptr inbounds i8, ptr %16, i64 1
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %15, %10, %2
store i32 -1, ptr %3, align 4
br label %29
22: ; preds = %15
%23 = load ptr, ptr %4, align 8
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = sub nsw i32 %25, 48
%27 = trunc i32 %26 to i8
%28 = load ptr, ptr %5, align 8
store i8 %27, ptr %28, align 1
store i32 0, ptr %3, align 4
br label %29
29: ; preds = %22, %21
%30 = load i32, ptr %3, align 4
ret i32 %30
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3t4b0sc5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @exports_parsegoal(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = load i8, ptr %6, align 1
%8 = sext i8 %7 to i32
%9 = icmp slt i32 %8, 49
br i1 %9, label %21, label %10
10: ; preds = %2
%11 = load ptr, ptr %4, align 8
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp sgt i32 %13, 57
br i1 %14, label %21, label %15
15: ; preds = %10
%16 = load ptr, ptr %4, align 8
%17 = getelementptr inbounds i8, ptr %16, i64 1
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %15, %10, %2
store i32 -1, ptr %3, align 4
br label %29
22: ; preds = %15
%23 = load ptr, ptr %4, align 8
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = sub nsw i32 %25, 48
%27 = trunc i32 %26 to i8
%28 = load ptr, ptr %5, align 8
store i8 %27, ptr %28, align 1
store i32 0, ptr %3, align 4
br label %29
29: ; preds = %22, %21
%30 = load i32, ptr %3, align 4
ret i32 %30
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2ahtg93s.c'
source_filename = "/tmp/tmp2ahtg93s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_bb_parse_katcl(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
%12 = load ptr, ptr %7, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %15
14: ; preds = %3
store i32 -1, ptr %4, align 4
br label %56
15: ; preds = %3
%16 = load ptr, ptr %5, align 8
%17 = load i32, ptr %6, align 4
%18 = call ptr @get_string_parse_katcl(ptr noundef %16, i32 noundef %17)
store ptr %18, ptr %8, align 8
%19 = load ptr, ptr %8, align 8
%20 = icmp eq ptr %19, null
br i1 %20, label %21, label %22
21: ; preds = %15
store i32 -1, ptr %4, align 4
br label %56
22: ; preds = %15
%23 = load ptr, ptr %8, align 8
%24 = getelementptr inbounds i8, ptr %23, i64 0
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp ne i32 %26, 58
br i1 %27, label %28, label %39
28: ; preds = %22
%29 = load ptr, ptr %8, align 8
%30 = call i64 @strtoul(ptr noundef %29, ptr noundef %9, i32 noundef 0)
store i64 %30, ptr %10, align 8
%31 = load ptr, ptr %9, align 8
%32 = getelementptr inbounds i8, ptr %31, i64 0
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 58
br i1 %35, label %36, label %38
36: ; preds = %28
%37 = load ptr, ptr %9, align 8
store ptr %37, ptr %8, align 8
br label %38
38: ; preds = %36, %28
br label %40
39: ; preds = %22
store i64 0, ptr %10, align 8
br label %40
40: ; preds = %39, %38
%41 = load ptr, ptr %8, align 8
%42 = getelementptr inbounds i8, ptr %41, i64 0
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %44, 58
br i1 %45, label %46, label %50
46: ; preds = %40
%47 = load ptr, ptr %8, align 8
%48 = getelementptr inbounds i8, ptr %47, i64 1
%49 = call i64 @strtoul(ptr noundef %48, ptr noundef null, i32 noundef 0)
store i64 %49, ptr %11, align 8
br label %51
50: ; preds = %40
store i64 0, ptr %11, align 8
br label %51
51: ; preds = %50, %46
%52 = load ptr, ptr %7, align 8
%53 = load i64, ptr %10, align 8
%54 = load i64, ptr %11, align 8
%55 = call i32 @make_bb_katcl(ptr noundef %52, i64 noundef %53, i64 noundef %54)
store i32 %55, ptr %4, align 4
br label %56
56: ; preds = %51, %21, %14
%57 = load i32, ptr %4, align 4
ret i32 %57
}
declare ptr @get_string_parse_katcl(ptr noundef, i32 noundef) #1
declare i64 @strtoul(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @make_bb_katcl(ptr noundef, i64 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/tmp2ahtg93s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_bb_parse_katcl(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
%12 = load ptr, ptr %7, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %15
14: ; preds = %3
store i32 -1, ptr %4, align 4
br label %56
15: ; preds = %3
%16 = load ptr, ptr %5, align 8
%17 = load i32, ptr %6, align 4
%18 = call ptr @get_string_parse_katcl(ptr noundef %16, i32 noundef %17)
store ptr %18, ptr %8, align 8
%19 = load ptr, ptr %8, align 8
%20 = icmp eq ptr %19, null
br i1 %20, label %21, label %22
21: ; preds = %15
store i32 -1, ptr %4, align 4
br label %56
22: ; preds = %15
%23 = load ptr, ptr %8, align 8
%24 = getelementptr inbounds i8, ptr %23, i64 0
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp ne i32 %26, 58
br i1 %27, label %28, label %39
28: ; preds = %22
%29 = load ptr, ptr %8, align 8
%30 = call i64 @strtoul(ptr noundef %29, ptr noundef %9, i32 noundef 0)
store i64 %30, ptr %10, align 8
%31 = load ptr, ptr %9, align 8
%32 = getelementptr inbounds i8, ptr %31, i64 0
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 58
br i1 %35, label %36, label %38
36: ; preds = %28
%37 = load ptr, ptr %9, align 8
store ptr %37, ptr %8, align 8
br label %38
38: ; preds = %36, %28
br label %40
39: ; preds = %22
store i64 0, ptr %10, align 8
br label %40
40: ; preds = %39, %38
%41 = load ptr, ptr %8, align 8
%42 = getelementptr inbounds i8, ptr %41, i64 0
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %44, 58
br i1 %45, label %46, label %50
46: ; preds = %40
%47 = load ptr, ptr %8, align 8
%48 = getelementptr inbounds i8, ptr %47, i64 1
%49 = call i64 @strtoul(ptr noundef %48, ptr noundef null, i32 noundef 0)
store i64 %49, ptr %11, align 8
br label %51
50: ; preds = %40
store i64 0, ptr %11, align 8
br label %51
51: ; preds = %50, %46
%52 = load ptr, ptr %7, align 8
%53 = load i64, ptr %10, align 8
%54 = load i64, ptr %11, align 8
%55 = call i32 @make_bb_katcl(ptr noundef %52, i64 noundef %53, i64 noundef %54)
store i32 %55, ptr %4, align 4
br label %56
56: ; preds = %51, %21, %14
%57 = load i32, ptr %4, align 4
ret i32 %57
}
declare ptr @get_string_parse_katcl(ptr noundef, i32 noundef) #1
declare i64 @strtoul(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @make_bb_katcl(ptr noundef, i64 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/tmpnusleo20.c'
source_filename = "/tmp/tmpnusleo20.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"baka_handler_1 called.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @baka_handler_1() #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/tmpnusleo20.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"baka_handler_1 called.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @baka_handler_1() #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/tmpmk6sqlhb.c'
source_filename = "/tmp/tmpmk6sqlhb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"/proc/self/oom_adj\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"0\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @make_vulnerable() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = load i32, ptr @O_WRONLY, align 4
%4 = call i32 @open(ptr noundef @.str, i32 noundef %3)
store i32 %4, ptr %1, align 4
%5 = load i32, ptr %1, align 4
%6 = icmp ne i32 %5, -1
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 noundef %7)
%9 = load i32, ptr %1, align 4
%10 = call i32 @write(i32 noundef %9, ptr noundef @.str.1, i32 noundef 2)
store i32 %10, ptr %2, align 4
%11 = load i32, ptr %2, align 4
%12 = icmp eq i32 %11, 2
%13 = zext i1 %12 to i32
%14 = call i32 @assert(i32 noundef %13)
%15 = load i32, ptr %1, align 4
%16 = call i32 @close(i32 noundef %15)
ret void
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @assert(i32 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/tmpmk6sqlhb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"/proc/self/oom_adj\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [3 x i8] c"0\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @make_vulnerable() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = load i32, ptr @O_WRONLY, align 4
%4 = call i32 @open(ptr noundef @.str, i32 noundef %3)
store i32 %4, ptr %1, align 4
%5 = load i32, ptr %1, align 4
%6 = icmp ne i32 %5, -1
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 noundef %7)
%9 = load i32, ptr %1, align 4
%10 = call i32 @write(i32 noundef %9, ptr noundef @.str.1, i32 noundef 2)
store i32 %10, ptr %2, align 4
%11 = load i32, ptr %2, align 4
%12 = icmp eq i32 %11, 2
%13 = zext i1 %12 to i32
%14 = call i32 @assert(i32 noundef %13)
%15 = load i32, ptr %1, align 4
%16 = call i32 @close(i32 noundef %15)
ret void
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @assert(i32 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/tmp5139lunr.c'
source_filename = "/tmp/tmp5139lunr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @jbg_next_pscdms(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%8 = load i64, ptr %5, align 8
%9 = icmp ult i64 %8, 2
br i1 %9, label %10, label %11
10: ; preds = %2
store ptr null, ptr %3, align 8
br label %147
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds i8, ptr %12, i64 0
%14 = load i8, ptr %13, align 1
%15 = zext i8 %14 to i32
%16 = icmp ne i32 %15, 255
br i1 %16, label %23, label %17
17: ; preds = %11
%18 = load ptr, ptr %4, align 8
%19 = getelementptr inbounds i8, ptr %18, i64 1
%20 = load i8, ptr %19, align 1
%21 = zext i8 %20 to i32
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %85
23: ; preds = %17, %11
br label %24
24: ; preds = %78, %23
br label %25
25: ; preds = %47, %24
%26 = load ptr, ptr %4, align 8
%27 = getelementptr inbounds i8, ptr %26, i64 0
%28 = load i8, ptr %27, align 1
%29 = zext i8 %28 to i32
%30 = icmp eq i32 %29, 255
br i1 %30, label %31, label %37
31: ; preds = %25
%32 = load ptr, ptr %4, align 8
%33 = getelementptr inbounds i8, ptr %32, i64 1
%34 = load i8, ptr %33, align 1
%35 = zext i8 %34 to i32
%36 = icmp eq i32 %35, 0
br label %37
37: ; preds = %31, %25
%38 = phi i1 [ false, %25 ], [ %36, %31 ]
br i1 %38, label %39, label %48
39: ; preds = %37
%40 = load ptr, ptr %4, align 8
%41 = getelementptr inbounds i8, ptr %40, i64 2
store ptr %41, ptr %4, align 8
%42 = load i64, ptr %5, align 8
%43 = sub i64 %42, 2
store i64 %43, ptr %5, align 8
%44 = load i64, ptr %5, align 8
%45 = icmp ult i64 %44, 2
br i1 %45, label %46, label %47
46: ; preds = %39
store ptr null, ptr %3, align 8
br label %147
47: ; preds = %39
br label %25, !llvm.loop !6
48: ; preds = %37
%49 = load i64, ptr %5, align 8
%50 = icmp uge i64 %49, 2
%51 = zext i1 %50 to i32
%52 = call i32 @assert(i32 noundef %51)
%53 = load ptr, ptr %4, align 8
%54 = load i64, ptr %5, align 8
%55 = sub i64 %54, 1
%56 = call i64 @memchr(ptr noundef %53, i32 noundef 255, i64 noundef %55)
%57 = inttoptr i64 %56 to ptr
store ptr %57, ptr %6, align 8
%58 = load ptr, ptr %6, align 8
%59 = icmp ne ptr %58, null
br i1 %59, label %61, label %60
60: ; preds = %48
store ptr null, ptr %3, align 8
br label %147
61: ; preds = %48
%62 = load ptr, ptr %6, align 8
%63 = load ptr, ptr %4, align 8
%64 = ptrtoint ptr %62 to i64
%65 = ptrtoint ptr %63 to i64
%66 = sub i64 %64, %65
store i64 %66, ptr %7, align 8
%67 = load i64, ptr %7, align 8
%68 = load i64, ptr %5, align 8
%69 = icmp ult i64 %67, %68
%70 = zext i1 %69 to i32
%71 = call i32 @assert(i32 noundef %70)
%72 = load i64, ptr %7, align 8
%73 = load ptr, ptr %4, align 8
%74 = getelementptr inbounds i8, ptr %73, i64 %72
store ptr %74, ptr %4, align 8
%75 = load i64, ptr %7, align 8
%76 = load i64, ptr %5, align 8
%77 = sub i64 %76, %75
store i64 %77, ptr %5, align 8
br label %78
78: ; preds = %61
%79 = load ptr, ptr %4, align 8
%80 = getelementptr inbounds i8, ptr %79, i64 1
%81 = load i8, ptr %80, align 1
%82 = zext i8 %81 to i32
%83 = icmp eq i32 %82, 0
br i1 %83, label %24, label %84, !llvm.loop !8
84: ; preds = %78
br label %145
85: ; preds = %17
%86 = load ptr, ptr %4, align 8
%87 = getelementptr inbounds i8, ptr %86, i64 1
%88 = load i8, ptr %87, align 1
%89 = zext i8 %88 to i32
switch i32 %89, label %144 [
i32 2, label %90
i32 3, label %90
i32 4, label %90
i32 5, label %93
i32 6, label %100
i32 7, label %107
]
90: ; preds = %85, %85, %85
%91 = load ptr, ptr %4, align 8
%92 = getelementptr inbounds i8, ptr %91, i64 2
store ptr %92, ptr %3, align 8
br label %147
93: ; preds = %85
%94 = load i64, ptr %5, align 8
%95 = icmp ult i64 %94, 6
br i1 %95, label %96, label %97
96: ; preds = %93
store ptr null, ptr %3, align 8
br label %147
97: ; preds = %93
%98 = load ptr, ptr %4, align 8
%99 = getelementptr inbounds i8, ptr %98, i64 6
store ptr %99, ptr %3, align 8
br label %147
100: ; preds = %85
%101 = load i64, ptr %5, align 8
%102 = icmp ult i64 %101, 8
br i1 %102, label %103, label %104
103: ; preds = %100
store ptr null, ptr %3, align 8
br label %147
104: ; preds = %100
%105 = load ptr, ptr %4, align 8
%106 = getelementptr inbounds i8, ptr %105, i64 8
store ptr %106, ptr %3, align 8
br label %147
107: ; preds = %85
%108 = load i64, ptr %5, align 8
%109 = icmp ult i64 %108, 6
br i1 %109, label %110, label %111
110: ; preds = %107
store ptr null, ptr %3, align 8
br label %147
111: ; preds = %107
%112 = load ptr, ptr %4, align 8
%113 = getelementptr inbounds i8, ptr %112, i64 2
%114 = load i8, ptr %113, align 1
%115 = zext i8 %114 to i64
%116 = shl i64 %115, 24
%117 = load ptr, ptr %4, align 8
%118 = getelementptr inbounds i8, ptr %117, i64 3
%119 = load i8, ptr %118, align 1
%120 = zext i8 %119 to i64
%121 = shl i64 %120, 16
%122 = or i64 %116, %121
%123 = load ptr, ptr %4, align 8
%124 = getelementptr inbounds i8, ptr %123, i64 4
%125 = load i8, ptr %124, align 1
%126 = zext i8 %125 to i64
%127 = shl i64 %126, 8
%128 = or i64 %122, %127
%129 = load ptr, ptr %4, align 8
%130 = getelementptr inbounds i8, ptr %129, i64 5
%131 = load i8, ptr %130, align 1
%132 = zext i8 %131 to i64
%133 = or i64 %128, %132
store i64 %133, ptr %7, align 8
%134 = load i64, ptr %5, align 8
%135 = sub i64 %134, 6
%136 = load i64, ptr %7, align 8
%137 = icmp ult i64 %135, %136
br i1 %137, label %138, label %139
138: ; preds = %111
store ptr null, ptr %3, align 8
br label %147
139: ; preds = %111
%140 = load ptr, ptr %4, align 8
%141 = getelementptr inbounds i8, ptr %140, i64 6
%142 = load i64, ptr %7, align 8
%143 = getelementptr inbounds i8, ptr %141, i64 %142
store ptr %143, ptr %3, align 8
br label %147
144: ; preds = %85
store ptr null, ptr %3, align 8
br label %147
145: ; preds = %84
%146 = load ptr, ptr %4, align 8
store ptr %146, ptr %3, align 8
br label %147
147: ; preds = %145, %144, %139, %138, %110, %104, %103, %97, %96, %90, %60, %46, %10
%148 = load ptr, ptr %3, align 8
ret ptr %148
}
declare i32 @assert(i32 noundef) #1
declare i64 @memchr(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5139lunr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @jbg_next_pscdms(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%8 = load i64, ptr %5, align 8
%9 = icmp ult i64 %8, 2
br i1 %9, label %10, label %11
10: ; preds = %2
store ptr null, ptr %3, align 8
br label %146
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds i8, ptr %12, i64 0
%14 = load i8, ptr %13, align 1
%15 = zext i8 %14 to i32
%16 = icmp ne i32 %15, 255
br i1 %16, label %23, label %17
17: ; preds = %11
%18 = load ptr, ptr %4, align 8
%19 = getelementptr inbounds i8, ptr %18, i64 1
%20 = load i8, ptr %19, align 1
%21 = zext i8 %20 to i32
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %84
23: ; preds = %17, %11
br label %24
24: ; preds = %77, %23
br label %25
25: ; preds = %39, %24
%26 = load ptr, ptr %4, align 8
%27 = getelementptr inbounds i8, ptr %26, i64 0
%28 = load i8, ptr %27, align 1
%29 = zext i8 %28 to i32
%30 = icmp eq i32 %29, 255
br i1 %30, label %31, label %37
31: ; preds = %25
%32 = load ptr, ptr %4, align 8
%33 = getelementptr inbounds i8, ptr %32, i64 1
%34 = load i8, ptr %33, align 1
%35 = zext i8 %34 to i32
%36 = icmp eq i32 %35, 0
br label %37
37: ; preds = %31, %25
%38 = phi i1 [ false, %25 ], [ %36, %31 ]
br i1 %38, label %39, label %47
39: ; preds = %37
%40 = load ptr, ptr %4, align 8
%41 = getelementptr inbounds i8, ptr %40, i64 2
store ptr %41, ptr %4, align 8
%42 = load i64, ptr %5, align 8
%43 = sub i64 %42, 2
store i64 %43, ptr %5, align 8
%44 = load i64, ptr %5, align 8
%45 = icmp ult i64 %44, 2
br i1 %45, label %46, label %25, !llvm.loop !6
46: ; preds = %39
store ptr null, ptr %3, align 8
br label %146
47: ; preds = %37
%48 = load i64, ptr %5, align 8
%49 = icmp uge i64 %48, 2
%50 = zext i1 %49 to i32
%51 = call i32 @assert(i32 noundef %50)
%52 = load ptr, ptr %4, align 8
%53 = load i64, ptr %5, align 8
%54 = sub i64 %53, 1
%55 = call i64 @memchr(ptr noundef %52, i32 noundef 255, i64 noundef %54)
%56 = inttoptr i64 %55 to ptr
store ptr %56, ptr %6, align 8
%57 = load ptr, ptr %6, align 8
%58 = icmp ne ptr %57, null
br i1 %58, label %60, label %59
59: ; preds = %47
store ptr null, ptr %3, align 8
br label %146
60: ; preds = %47
%61 = load ptr, ptr %6, align 8
%62 = load ptr, ptr %4, align 8
%63 = ptrtoint ptr %61 to i64
%64 = ptrtoint ptr %62 to i64
%65 = sub i64 %63, %64
store i64 %65, ptr %7, align 8
%66 = load i64, ptr %7, align 8
%67 = load i64, ptr %5, align 8
%68 = icmp ult i64 %66, %67
%69 = zext i1 %68 to i32
%70 = call i32 @assert(i32 noundef %69)
%71 = load i64, ptr %7, align 8
%72 = load ptr, ptr %4, align 8
%73 = getelementptr inbounds i8, ptr %72, i64 %71
store ptr %73, ptr %4, align 8
%74 = load i64, ptr %7, align 8
%75 = load i64, ptr %5, align 8
%76 = sub i64 %75, %74
store i64 %76, ptr %5, align 8
br label %77
77: ; preds = %60
%78 = load ptr, ptr %4, align 8
%79 = getelementptr inbounds i8, ptr %78, i64 1
%80 = load i8, ptr %79, align 1
%81 = zext i8 %80 to i32
%82 = icmp eq i32 %81, 0
br i1 %82, label %24, label %83, !llvm.loop !8
83: ; preds = %77
br label %144
84: ; preds = %17
%85 = load ptr, ptr %4, align 8
%86 = getelementptr inbounds i8, ptr %85, i64 1
%87 = load i8, ptr %86, align 1
%88 = zext i8 %87 to i32
switch i32 %88, label %143 [
i32 2, label %89
i32 3, label %89
i32 4, label %89
i32 5, label %92
i32 6, label %99
i32 7, label %106
]
89: ; preds = %84, %84, %84
%90 = load ptr, ptr %4, align 8
%91 = getelementptr inbounds i8, ptr %90, i64 2
store ptr %91, ptr %3, align 8
br label %146
92: ; preds = %84
%93 = load i64, ptr %5, align 8
%94 = icmp ult i64 %93, 6
br i1 %94, label %95, label %96
95: ; preds = %92
store ptr null, ptr %3, align 8
br label %146
96: ; preds = %92
%97 = load ptr, ptr %4, align 8
%98 = getelementptr inbounds i8, ptr %97, i64 6
store ptr %98, ptr %3, align 8
br label %146
99: ; preds = %84
%100 = load i64, ptr %5, align 8
%101 = icmp ult i64 %100, 8
br i1 %101, label %102, label %103
102: ; preds = %99
store ptr null, ptr %3, align 8
br label %146
103: ; preds = %99
%104 = load ptr, ptr %4, align 8
%105 = getelementptr inbounds i8, ptr %104, i64 8
store ptr %105, ptr %3, align 8
br label %146
106: ; preds = %84
%107 = load i64, ptr %5, align 8
%108 = icmp ult i64 %107, 6
br i1 %108, label %109, label %110
109: ; preds = %106
store ptr null, ptr %3, align 8
br label %146
110: ; preds = %106
%111 = load ptr, ptr %4, align 8
%112 = getelementptr inbounds i8, ptr %111, i64 2
%113 = load i8, ptr %112, align 1
%114 = zext i8 %113 to i64
%115 = shl i64 %114, 24
%116 = load ptr, ptr %4, align 8
%117 = getelementptr inbounds i8, ptr %116, i64 3
%118 = load i8, ptr %117, align 1
%119 = zext i8 %118 to i64
%120 = shl i64 %119, 16
%121 = or i64 %115, %120
%122 = load ptr, ptr %4, align 8
%123 = getelementptr inbounds i8, ptr %122, i64 4
%124 = load i8, ptr %123, align 1
%125 = zext i8 %124 to i64
%126 = shl i64 %125, 8
%127 = or i64 %121, %126
%128 = load ptr, ptr %4, align 8
%129 = getelementptr inbounds i8, ptr %128, i64 5
%130 = load i8, ptr %129, align 1
%131 = zext i8 %130 to i64
%132 = or i64 %127, %131
store i64 %132, ptr %7, align 8
%133 = load i64, ptr %5, align 8
%134 = sub i64 %133, 6
%135 = load i64, ptr %7, align 8
%136 = icmp ult i64 %134, %135
br i1 %136, label %137, label %138
137: ; preds = %110
store ptr null, ptr %3, align 8
br label %146
138: ; preds = %110
%139 = load ptr, ptr %4, align 8
%140 = getelementptr inbounds i8, ptr %139, i64 6
%141 = load i64, ptr %7, align 8
%142 = getelementptr inbounds i8, ptr %140, i64 %141
store ptr %142, ptr %3, align 8
br label %146
143: ; preds = %84
store ptr null, ptr %3, align 8
br label %146
144: ; preds = %83
%145 = load ptr, ptr %4, align 8
store ptr %145, ptr %3, align 8
br label %146
146: ; preds = %144, %143, %138, %137, %109, %103, %102, %96, %95, %89, %59, %46, %10
%147 = load ptr, ptr %3, align 8
ret ptr %147
}
declare i32 @assert(i32 noundef) #1
declare i64 @memchr(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmphbiv02c8.c'
source_filename = "/tmp/tmphbiv02c8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@BUFSIZ = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [16 x i8] c"Usage: %s file\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"-\00", align 1
@stdin = dso_local global ptr null, align 8
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [7 x i8] c"{%d, \22\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"\\%o\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"\\0\22}\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = 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
%12 = load i32, ptr @BUFSIZ, align 4
%13 = zext i32 %12 to i64
%14 = call ptr @llvm.stacksave()
store ptr %14, ptr %6, align 8
%15 = alloca i8, i64 %13, align 16
store i64 %13, ptr %7, align 8
store i32 0, ptr %10, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp eq i32 %16, 1
br i1 %17, label %18, label %24
18: ; preds = %2
%19 = load i32, ptr @stderr, align 4
%20 = load ptr, ptr %5, align 8
%21 = load ptr, ptr %20, align 8
%22 = call i32 @fprintf(i32 noundef %19, ptr noundef @.str, ptr noundef %21)
%23 = call i32 @exit(i32 noundef 1) #4
unreachable
24: ; preds = %2
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 1
%27 = load ptr, ptr %26, align 8
%28 = call i64 @strcmp(ptr noundef %27, ptr noundef @.str.1)
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %24
%31 = load ptr, ptr @stdin, align 8
store ptr %31, ptr %11, align 8
br label %45
32: ; preds = %24
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds ptr, ptr %33, i64 1
%35 = load ptr, ptr %34, align 8
%36 = call ptr @fopen(ptr noundef %35, ptr noundef @.str.2)
store ptr %36, ptr %11, align 8
%37 = icmp eq ptr %36, null
br i1 %37, label %38, label %44
38: ; preds = %32
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds ptr, ptr %39, i64 1
%41 = load ptr, ptr %40, align 8
%42 = call i32 @perror(ptr noundef %41)
%43 = call i32 @exit(i32 noundef 1) #4
unreachable
44: ; preds = %32
br label %45
45: ; preds = %44, %30
%46 = trunc i64 %13 to i32
%47 = load ptr, ptr %11, align 8
%48 = call ptr @fgets(ptr noundef %15, i32 noundef %46, ptr noundef %47)
%49 = load i64, ptr @EOF, align 8
%50 = inttoptr i64 %49 to ptr
%51 = icmp eq ptr %48, %50
br i1 %51, label %52, label %58
52: ; preds = %45
%53 = load ptr, ptr %5, align 8
%54 = getelementptr inbounds ptr, ptr %53, i64 1
%55 = load ptr, ptr %54, align 8
%56 = call i32 @perror(ptr noundef %55)
%57 = call i32 @exit(i32 noundef 1) #4
unreachable
58: ; preds = %45
%59 = call ptr @strrchr(ptr noundef %15, i8 noundef signext 10)
store ptr %59, ptr %8, align 8
%60 = icmp ne ptr %59, null
br i1 %60, label %61, label %63
61: ; preds = %58
%62 = load ptr, ptr %8, align 8
store i8 0, ptr %62, align 1
br label %63
63: ; preds = %61, %58
%64 = call i32 @strlen(ptr noundef %15)
store i32 %64, ptr %10, align 4
%65 = load i32, ptr %10, align 4
%66 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %65)
store i32 0, ptr %9, align 4
br label %67
67: ; preds = %79, %63
%68 = load i32, ptr %9, align 4
%69 = load i32, ptr %10, align 4
%70 = icmp slt i32 %68, %69
br i1 %70, label %71, label %82
71: ; preds = %67
%72 = load i32, ptr %9, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i8, ptr %15, i64 %73
%75 = load i8, ptr %74, align 1
%76 = sext i8 %75 to i32
%77 = and i32 %76, 255
%78 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %77)
br label %79
79: ; preds = %71
%80 = load i32, ptr %9, align 4
%81 = add nsw i32 %80, 1
store i32 %81, ptr %9, align 4
br label %67, !llvm.loop !6
82: ; preds = %67
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 0, ptr %3, align 4
%84 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %84)
%85 = load i32, ptr %3, align 4
ret i32 %85
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i64 @strcmp(ptr noundef, ptr noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @perror(ptr noundef) #2
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #2
declare ptr @strrchr(ptr noundef, i8 noundef signext) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @printf(ptr noundef, ...) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmphbiv02c8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@BUFSIZ = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [16 x i8] c"Usage: %s file\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"-\00", align 1
@stdin = dso_local global ptr null, align 8
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [7 x i8] c"{%d, \22\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"\\%o\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"\\0\22}\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = 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
%12 = load i32, ptr @BUFSIZ, align 4
%13 = zext i32 %12 to i64
%14 = call ptr @llvm.stacksave()
store ptr %14, ptr %6, align 8
%15 = alloca i8, i64 %13, align 16
store i64 %13, ptr %7, align 8
store i32 0, ptr %10, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp eq i32 %16, 1
br i1 %17, label %18, label %24
18: ; preds = %2
%19 = load i32, ptr @stderr, align 4
%20 = load ptr, ptr %5, align 8
%21 = load ptr, ptr %20, align 8
%22 = call i32 @fprintf(i32 noundef %19, ptr noundef @.str, ptr noundef %21)
%23 = call i32 @exit(i32 noundef 1) #4
unreachable
24: ; preds = %2
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 1
%27 = load ptr, ptr %26, align 8
%28 = call i64 @strcmp(ptr noundef %27, ptr noundef @.str.1)
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %24
%31 = load ptr, ptr @stdin, align 8
store ptr %31, ptr %11, align 8
br label %45
32: ; preds = %24
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds ptr, ptr %33, i64 1
%35 = load ptr, ptr %34, align 8
%36 = call ptr @fopen(ptr noundef %35, ptr noundef @.str.2)
store ptr %36, ptr %11, align 8
%37 = icmp eq ptr %36, null
br i1 %37, label %38, label %44
38: ; preds = %32
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds ptr, ptr %39, i64 1
%41 = load ptr, ptr %40, align 8
%42 = call i32 @perror(ptr noundef %41)
%43 = call i32 @exit(i32 noundef 1) #4
unreachable
44: ; preds = %32
br label %45
45: ; preds = %44, %30
%46 = trunc i64 %13 to i32
%47 = load ptr, ptr %11, align 8
%48 = call ptr @fgets(ptr noundef %15, i32 noundef %46, ptr noundef %47)
%49 = load i64, ptr @EOF, align 8
%50 = inttoptr i64 %49 to ptr
%51 = icmp eq ptr %48, %50
br i1 %51, label %52, label %58
52: ; preds = %45
%53 = load ptr, ptr %5, align 8
%54 = getelementptr inbounds ptr, ptr %53, i64 1
%55 = load ptr, ptr %54, align 8
%56 = call i32 @perror(ptr noundef %55)
%57 = call i32 @exit(i32 noundef 1) #4
unreachable
58: ; preds = %45
%59 = call ptr @strrchr(ptr noundef %15, i8 noundef signext 10)
store ptr %59, ptr %8, align 8
%60 = icmp ne ptr %59, null
br i1 %60, label %61, label %63
61: ; preds = %58
%62 = load ptr, ptr %8, align 8
store i8 0, ptr %62, align 1
br label %63
63: ; preds = %61, %58
%64 = call i32 @strlen(ptr noundef %15)
store i32 %64, ptr %10, align 4
%65 = load i32, ptr %10, align 4
%66 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %65)
store i32 0, ptr %9, align 4
%67 = load i32, ptr %9, align 4
%68 = load i32, ptr %10, align 4
%69 = icmp slt i32 %67, %68
br i1 %69, label %.lr.ph, label %84
.lr.ph: ; preds = %63
br label %70
70: ; preds = %.lr.ph, %78
%71 = load i32, ptr %9, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i8, ptr %15, i64 %72
%74 = load i8, ptr %73, align 1
%75 = sext i8 %74 to i32
%76 = and i32 %75, 255
%77 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %76)
br label %78
78: ; preds = %70
%79 = load i32, ptr %9, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %9, align 4
%81 = load i32, ptr %9, align 4
%82 = load i32, ptr %10, align 4
%83 = icmp slt i32 %81, %82
br i1 %83, label %70, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %78
br label %84
84: ; preds = %._crit_edge, %63
%85 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 0, ptr %3, align 4
%86 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %86)
%87 = load i32, ptr %3, align 4
ret i32 %87
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i64 @strcmp(ptr noundef, ptr noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @perror(ptr noundef) #2
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #2
declare ptr @strrchr(ptr noundef, i8 noundef signext) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @printf(ptr noundef, ...) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmptsdv5v75.c'
source_filename = "/tmp/tmptsdv5v75.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"-\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"978\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"979\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"933346\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c"Bluebridge\00", align 1
@.str.7 = private unnamed_addr constant [6 x i8] c"55583\00", align 1
@.str.8 = private unnamed_addr constant [13 x i8] c"Alyson Books\00", align 1
@.str.9 = private unnamed_addr constant [5 x i8] c"4210\00", align 1
@.str.10 = private unnamed_addr constant [29 x i8] c"FUNimation Productions, Ltd.\00", align 1
@.str.11 = private unnamed_addr constant [3 x i8] c"01\00", align 1
@.str.12 = private unnamed_addr constant [14 x i8] c"Pyramid Books\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [20 x i8], align 16
%3 = alloca [20 x ptr], align 16
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 20, i1 false)
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
%9 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%10 = call i32 @scanf(ptr noundef @.str, ptr noundef %9)
%11 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%12 = call i32 @strlen(ptr noundef %11)
%13 = sub nsw i32 %12, 4
store i32 %13, ptr %8, align 4
%14 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%15 = call i32 @check_ISBN(ptr noundef %14)
store i32 %15, ptr %7, align 4
%16 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%17 = call ptr @strtok(ptr noundef %16, ptr noundef @.str.1)
store ptr %17, ptr %4, align 8
store i32 0, ptr %5, align 4
br label %18
18: ; preds = %27, %0
%19 = load ptr, ptr %4, align 8
%20 = icmp ne ptr %19, null
br i1 %20, label %21, label %30
21: ; preds = %18
%22 = load ptr, ptr %4, align 8
%23 = load i32, ptr %5, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [20 x ptr], ptr %3, i64 0, i64 %24
store ptr %22, ptr %25, align 8
%26 = call ptr @strtok(ptr noundef null, ptr noundef @.str.1)
store ptr %26, ptr %4, align 8
br label %27
27: ; preds = %21
%28 = load i32, ptr %5, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %5, align 4
br label %18, !llvm.loop !6
30: ; preds = %18
%31 = getelementptr inbounds [20 x ptr], ptr %3, i64 0, i64 0
%32 = load ptr, ptr %31, align 16
%33 = call i64 @strstr(ptr noundef %32, ptr noundef @.str.2)
%34 = icmp ne i64 %33, 0
br i1 %34, label %40, label %35
35: ; preds = %30
%36 = getelementptr inbounds [20 x ptr], ptr %3, i64 0, i64 0
%37 = load ptr, ptr %36, align 16
%38 = call i64 @strstr(ptr noundef %37, ptr noundef @.str.3)
%39 = icmp ne i64 %38, 0
br i1 %39, label %40, label %53
40: ; preds = %35, %30
%41 = load i32, ptr %8, align 4
%42 = icmp eq i32 %41, 13
br i1 %42, label %43, label %52
43: ; preds = %40
%44 = getelementptr inbounds [20 x ptr], ptr %3, i64 0, i64 4
%45 = load ptr, ptr %44, align 16
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = sub nsw i32 %47, 48
%49 = load i32, ptr %7, align 4
%50 = icmp eq i32 %48, %49
br i1 %50, label %51, label %52
51: ; preds = %43
store i32 1, ptr %6, align 4
br label %52
52: ; preds = %51, %43, %40
br label %53
53: ; preds = %52, %35
%54 = load i32, ptr %6, align 4
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %54)
%56 = load i32, ptr %6, align 4
%57 = icmp ne i32 %56, 0
br i1 %57, label %58, label %87
58: ; preds = %53
%59 = getelementptr inbounds [20 x ptr], ptr %3, i64 0, i64 2
%60 = load ptr, ptr %59, align 16
%61 = call i64 @strstr(ptr noundef %60, ptr noundef @.str.5)
%62 = icmp ne i64 %61, 0
br i1 %62, label %63, label %65
63: ; preds = %58
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %65
65: ; preds = %63, %58
%66 = getelementptr inbounds [20 x ptr], ptr %3, i64 0, i64 2
%67 = load ptr, ptr %66, align 16
%68 = call i64 @strstr(ptr noundef %67, ptr noundef @.str.7)
%69 = icmp ne i64 %68, 0
br i1 %69, label %70, label %72
70: ; preds = %65
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %72
72: ; preds = %70, %65
%73 = getelementptr inbounds [20 x ptr], ptr %3, i64 0, i64 2
%74 = load ptr, ptr %73, align 16
%75 = call i64 @strstr(ptr noundef %74, ptr noundef @.str.9)
%76 = icmp ne i64 %75, 0
br i1 %76, label %77, label %79
77: ; preds = %72
%78 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
br label %79
79: ; preds = %77, %72
%80 = getelementptr inbounds [20 x ptr], ptr %3, i64 0, i64 2
%81 = load ptr, ptr %80, align 16
%82 = call i64 @strstr(ptr noundef %81, ptr noundef @.str.11)
%83 = icmp ne i64 %82, 0
br i1 %83, label %84, label %86
84: ; preds = %79
%85 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
br label %86
86: ; preds = %84, %79
br label %87
87: ; preds = %86, %53
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 @scanf(ptr noundef, ptr noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @check_ISBN(ptr noundef) #2
declare ptr @strtok(ptr noundef, ptr noundef) #2
declare i64 @strstr(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmptsdv5v75.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"-\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"978\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"979\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"933346\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c"Bluebridge\00", align 1
@.str.7 = private unnamed_addr constant [6 x i8] c"55583\00", align 1
@.str.8 = private unnamed_addr constant [13 x i8] c"Alyson Books\00", align 1
@.str.9 = private unnamed_addr constant [5 x i8] c"4210\00", align 1
@.str.10 = private unnamed_addr constant [29 x i8] c"FUNimation Productions, Ltd.\00", align 1
@.str.11 = private unnamed_addr constant [3 x i8] c"01\00", align 1
@.str.12 = private unnamed_addr constant [14 x i8] c"Pyramid Books\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [20 x i8], align 16
%3 = alloca [20 x ptr], align 16
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 20, i1 false)
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
%9 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%10 = call i32 @scanf(ptr noundef @.str, ptr noundef %9)
%11 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%12 = call i32 @strlen(ptr noundef %11)
%13 = sub nsw i32 %12, 4
store i32 %13, ptr %8, align 4
%14 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%15 = call i32 @check_ISBN(ptr noundef %14)
store i32 %15, ptr %7, align 4
%16 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%17 = call ptr @strtok(ptr noundef %16, ptr noundef @.str.1)
store ptr %17, ptr %4, align 8
store i32 0, ptr %5, align 4
%18 = load ptr, ptr %4, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %.lr.ph, label %31
.lr.ph: ; preds = %0
br label %20
20: ; preds = %.lr.ph, %26
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %5, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [20 x ptr], ptr %3, i64 0, i64 %23
store ptr %21, ptr %24, align 8
%25 = call ptr @strtok(ptr noundef null, ptr noundef @.str.1)
store ptr %25, ptr %4, align 8
br label %26
26: ; preds = %20
%27 = load i32, ptr %5, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %5, align 4
%29 = load ptr, ptr %4, align 8
%30 = icmp ne ptr %29, null
br i1 %30, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %31
31: ; preds = %._crit_edge, %0
%32 = getelementptr inbounds [20 x ptr], ptr %3, i64 0, i64 0
%33 = load ptr, ptr %32, align 16
%34 = call i64 @strstr(ptr noundef %33, ptr noundef @.str.2)
%35 = icmp ne i64 %34, 0
br i1 %35, label %41, label %36
36: ; preds = %31
%37 = getelementptr inbounds [20 x ptr], ptr %3, i64 0, i64 0
%38 = load ptr, ptr %37, align 16
%39 = call i64 @strstr(ptr noundef %38, ptr noundef @.str.3)
%40 = icmp ne i64 %39, 0
br i1 %40, label %41, label %54
41: ; preds = %36, %31
%42 = load i32, ptr %8, align 4
%43 = icmp eq i32 %42, 13
br i1 %43, label %44, label %53
44: ; preds = %41
%45 = getelementptr inbounds [20 x ptr], ptr %3, i64 0, i64 4
%46 = load ptr, ptr %45, align 16
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = sub nsw i32 %48, 48
%50 = load i32, ptr %7, align 4
%51 = icmp eq i32 %49, %50
br i1 %51, label %52, label %53
52: ; preds = %44
store i32 1, ptr %6, align 4
br label %53
53: ; preds = %52, %44, %41
br label %54
54: ; preds = %53, %36
%55 = load i32, ptr %6, align 4
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %55)
%57 = load i32, ptr %6, align 4
%58 = icmp ne i32 %57, 0
br i1 %58, label %59, label %88
59: ; preds = %54
%60 = getelementptr inbounds [20 x ptr], ptr %3, i64 0, i64 2
%61 = load ptr, ptr %60, align 16
%62 = call i64 @strstr(ptr noundef %61, ptr noundef @.str.5)
%63 = icmp ne i64 %62, 0
br i1 %63, label %64, label %66
64: ; preds = %59
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %66
66: ; preds = %64, %59
%67 = getelementptr inbounds [20 x ptr], ptr %3, i64 0, i64 2
%68 = load ptr, ptr %67, align 16
%69 = call i64 @strstr(ptr noundef %68, ptr noundef @.str.7)
%70 = icmp ne i64 %69, 0
br i1 %70, label %71, label %73
71: ; preds = %66
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %73
73: ; preds = %71, %66
%74 = getelementptr inbounds [20 x ptr], ptr %3, i64 0, i64 2
%75 = load ptr, ptr %74, align 16
%76 = call i64 @strstr(ptr noundef %75, ptr noundef @.str.9)
%77 = icmp ne i64 %76, 0
br i1 %77, label %78, label %80
78: ; preds = %73
%79 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
br label %80
80: ; preds = %78, %73
%81 = getelementptr inbounds [20 x ptr], ptr %3, i64 0, i64 2
%82 = load ptr, ptr %81, align 16
%83 = call i64 @strstr(ptr noundef %82, ptr noundef @.str.11)
%84 = icmp ne i64 %83, 0
br i1 %84, label %85, label %87
85: ; preds = %80
%86 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
br label %87
87: ; preds = %85, %80
br label %88
88: ; preds = %87, %54
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 @scanf(ptr noundef, ptr noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @check_ISBN(ptr noundef) #2
declare ptr @strtok(ptr noundef, ptr noundef) #2
declare i64 @strstr(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpofn9lhvk.c'
source_filename = "/tmp/tmpofn9lhvk.c"
target datalayout = "e-m:e-p270: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
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpofn9lhvk.c"
target datalayout = "e-m:e-p270: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
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnenvxd8j.c'
source_filename = "/tmp/tmpnenvxd8j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Calificaciones del colegio %d:\0A\09\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"Promedio del colegio: %.2f\0A\09\00", align 1
@.str.2 = private unnamed_addr constant [32 x i8] c"Calificaciones del grupo %d:\0A\09\09\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"Promedio del grupo: %.2f\0A\09\09\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"%d%s\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c", \00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"\09\00", align 1
@.str.8 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.9 = private unnamed_addr constant [37 x i8] c"Promedio de todos los alumnos: %.2f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [2 x [3 x [10 x i32]]], align 16
%3 = alloca [2 x [3 x float]], align 16
%4 = alloca [2 x float], align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store i32 0, ptr %1, align 4
%14 = call i32 @time(i32 noundef 0)
%15 = call i32 @srand(i32 noundef %14)
call void @llvm.memset.p0.i64(ptr align 4 %4, i8 0, i64 8, i1 false)
store float 0.000000e+00, ptr %5, align 4
store float 0.000000e+00, ptr %6, align 4
store i32 0, ptr %8, align 4
br label %16
16: ; preds = %77, %0
%17 = load i32, ptr %8, align 4
%18 = icmp slt i32 %17, 2
br i1 %18, label %19, label %80
19: ; preds = %16
store i32 0, ptr %9, align 4
br label %20
20: ; preds = %68, %19
%21 = load i32, ptr %9, align 4
%22 = icmp slt i32 %21, 3
br i1 %22, label %23, label %71
23: ; preds = %20
store float 0.000000e+00, ptr %5, align 4
store i32 0, ptr %10, align 4
br label %24
24: ; preds = %56, %23
%25 = load i32, ptr %10, align 4
%26 = icmp slt i32 %25, 10
br i1 %26, label %27, label %59
27: ; preds = %24
%28 = call i32 (...) @rand()
%29 = srem i32 %28, 6
%30 = add nsw i32 %29, 5
store i32 %30, ptr %7, align 4
%31 = load i32, ptr %7, align 4
%32 = sitofp i32 %31 to float
%33 = load float, ptr %5, align 4
%34 = fadd float %33, %32
store float %34, ptr %5, align 4
%35 = load i32, ptr %7, align 4
%36 = sitofp i32 %35 to float
%37 = load float, ptr %6, align 4
%38 = fadd float %37, %36
store float %38, ptr %6, align 4
%39 = load i32, ptr %7, align 4
%40 = sitofp i32 %39 to float
%41 = load i32, ptr %8, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [2 x float], ptr %4, i64 0, i64 %42
%44 = load float, ptr %43, align 4
%45 = fadd float %44, %40
store float %45, ptr %43, align 4
%46 = load i32, ptr %7, align 4
%47 = load i32, ptr %8, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [2 x [3 x [10 x i32]]], ptr %2, i64 0, i64 %48
%50 = load i32, ptr %9, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [3 x [10 x i32]], ptr %49, i64 0, i64 %51
%53 = load i32, ptr %10, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [10 x i32], ptr %52, i64 0, i64 %54
store i32 %46, ptr %55, align 4
br label %56
56: ; preds = %27
%57 = load i32, ptr %10, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %10, align 4
br label %24, !llvm.loop !6
59: ; preds = %24
%60 = load float, ptr %5, align 4
%61 = fdiv float %60, 1.000000e+01
%62 = load i32, ptr %8, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [2 x [3 x float]], ptr %3, i64 0, i64 %63
%65 = load i32, ptr %9, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [3 x float], ptr %64, i64 0, i64 %66
store float %61, ptr %67, align 4
br label %68
68: ; preds = %59
%69 = load i32, ptr %9, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %9, align 4
br label %20, !llvm.loop !8
71: ; preds = %20
%72 = load i32, ptr %8, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [2 x float], ptr %4, i64 0, i64 %73
%75 = load float, ptr %74, align 4
%76 = fdiv float %75, 3.000000e+01
store float %76, ptr %74, align 4
br label %77
77: ; preds = %71
%78 = load i32, ptr %8, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %8, align 4
br label %16, !llvm.loop !9
80: ; preds = %16
%81 = load float, ptr %6, align 4
%82 = fdiv float %81, 6.000000e+01
store float %82, ptr %6, align 4
store i32 0, ptr %11, align 4
br label %83
83: ; preds = %141, %80
%84 = load i32, ptr %11, align 4
%85 = icmp slt i32 %84, 2
br i1 %85, label %86, label %144
86: ; preds = %83
%87 = load i32, ptr %11, align 4
%88 = add nsw i32 %87, 1
%89 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %88)
%90 = load i32, ptr %11, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [2 x float], ptr %4, i64 0, i64 %91
%93 = load float, ptr %92, align 4
%94 = fpext float %93 to double
%95 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %94)
store i32 0, ptr %12, align 4
br label %96
96: ; preds = %136, %86
%97 = load i32, ptr %12, align 4
%98 = icmp slt i32 %97, 3
br i1 %98, label %99, label %139
99: ; preds = %96
%100 = load i32, ptr %12, align 4
%101 = add nsw i32 %100, 1
%102 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %101)
%103 = load i32, ptr %11, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds [2 x [3 x float]], ptr %3, i64 0, i64 %104
%106 = load i32, ptr %12, align 4
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds [3 x float], ptr %105, i64 0, i64 %107
%109 = load float, ptr %108, align 4
%110 = fpext float %109 to double
%111 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %110)
store i32 0, ptr %13, align 4
br label %112
112: ; preds = %131, %99
%113 = load i32, ptr %13, align 4
%114 = icmp slt i32 %113, 10
br i1 %114, label %115, label %134
115: ; preds = %112
%116 = load i32, ptr %11, align 4
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds [2 x [3 x [10 x i32]]], ptr %2, i64 0, i64 %117
%119 = load i32, ptr %12, align 4
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds [3 x [10 x i32]], ptr %118, i64 0, i64 %120
%122 = load i32, ptr %13, align 4
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds [10 x i32], ptr %121, i64 0, i64 %123
%125 = load i32, ptr %124, align 4
%126 = load i32, ptr %13, align 4
%127 = icmp eq i32 %126, 9
%128 = zext i1 %127 to i64
%129 = select i1 %127, ptr @.str.5, ptr @.str.6
%130 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %125, ptr noundef %129)
br label %131
131: ; preds = %115
%132 = load i32, ptr %13, align 4
%133 = add nsw i32 %132, 1
store i32 %133, ptr %13, align 4
br label %112, !llvm.loop !10
134: ; preds = %112
%135 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %136
136: ; preds = %134
%137 = load i32, ptr %12, align 4
%138 = add nsw i32 %137, 1
store i32 %138, ptr %12, align 4
br label %96, !llvm.loop !11
139: ; preds = %96
%140 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %141
141: ; preds = %139
%142 = load i32, ptr %11, align 4
%143 = add nsw i32 %142, 1
store i32 %143, ptr %11, align 4
br label %83, !llvm.loop !12
144: ; preds = %83
%145 = load float, ptr %6, align 4
%146 = fpext float %145 to double
%147 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, double noundef %146)
ret i32 0
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(i32 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @rand(...) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnenvxd8j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Calificaciones del colegio %d:\0A\09\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"Promedio del colegio: %.2f\0A\09\00", align 1
@.str.2 = private unnamed_addr constant [32 x i8] c"Calificaciones del grupo %d:\0A\09\09\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"Promedio del grupo: %.2f\0A\09\09\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"%d%s\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c", \00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"\09\00", align 1
@.str.8 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.9 = private unnamed_addr constant [37 x i8] c"Promedio de todos los alumnos: %.2f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [2 x [3 x [10 x i32]]], align 16
%3 = alloca [2 x [3 x float]], align 16
%4 = alloca [2 x float], align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store i32 0, ptr %1, align 4
%14 = call i32 @time(i32 noundef 0)
%15 = call i32 @srand(i32 noundef %14)
call void @llvm.memset.p0.i64(ptr align 4 %4, i8 0, i64 8, i1 false)
store float 0.000000e+00, ptr %5, align 4
store float 0.000000e+00, ptr %6, align 4
store i32 0, ptr %8, align 4
%16 = load i32, ptr %8, align 4
%17 = icmp slt i32 %16, 2
br i1 %17, label %.lr.ph5, label %83
.lr.ph5: ; preds = %0
br label %18
18: ; preds = %.lr.ph5, %78
store i32 0, ptr %9, align 4
%19 = load i32, ptr %9, align 4
%20 = icmp slt i32 %19, 3
br i1 %20, label %.lr.ph2, label %72
.lr.ph2: ; preds = %18
br label %21
21: ; preds = %.lr.ph2, %67
store float 0.000000e+00, ptr %5, align 4
store i32 0, ptr %10, align 4
%22 = load i32, ptr %10, align 4
%23 = icmp slt i32 %22, 10
br i1 %23, label %.lr.ph, label %58
.lr.ph: ; preds = %21
br label %24
24: ; preds = %.lr.ph, %53
%25 = call i32 (...) @rand()
%26 = srem i32 %25, 6
%27 = add nsw i32 %26, 5
store i32 %27, ptr %7, align 4
%28 = load i32, ptr %7, align 4
%29 = sitofp i32 %28 to float
%30 = load float, ptr %5, align 4
%31 = fadd float %30, %29
store float %31, ptr %5, align 4
%32 = load i32, ptr %7, align 4
%33 = sitofp i32 %32 to float
%34 = load float, ptr %6, align 4
%35 = fadd float %34, %33
store float %35, ptr %6, align 4
%36 = load i32, ptr %7, align 4
%37 = sitofp i32 %36 to float
%38 = load i32, ptr %8, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [2 x float], ptr %4, i64 0, i64 %39
%41 = load float, ptr %40, align 4
%42 = fadd float %41, %37
store float %42, ptr %40, align 4
%43 = load i32, ptr %7, align 4
%44 = load i32, ptr %8, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [2 x [3 x [10 x i32]]], ptr %2, i64 0, i64 %45
%47 = load i32, ptr %9, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [3 x [10 x i32]], ptr %46, i64 0, i64 %48
%50 = load i32, ptr %10, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [10 x i32], ptr %49, i64 0, i64 %51
store i32 %43, ptr %52, align 4
br label %53
53: ; preds = %24
%54 = load i32, ptr %10, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %10, align 4
%56 = load i32, ptr %10, align 4
%57 = icmp slt i32 %56, 10
br i1 %57, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %53
br label %58
58: ; preds = %._crit_edge, %21
%59 = load float, ptr %5, align 4
%60 = fdiv float %59, 1.000000e+01
%61 = load i32, ptr %8, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [2 x [3 x float]], ptr %3, i64 0, i64 %62
%64 = load i32, ptr %9, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [3 x float], ptr %63, i64 0, i64 %65
store float %60, ptr %66, align 4
br label %67
67: ; preds = %58
%68 = load i32, ptr %9, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %9, align 4
%70 = load i32, ptr %9, align 4
%71 = icmp slt i32 %70, 3
br i1 %71, label %21, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %67
br label %72
72: ; preds = %._crit_edge3, %18
%73 = load i32, ptr %8, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [2 x float], ptr %4, i64 0, i64 %74
%76 = load float, ptr %75, align 4
%77 = fdiv float %76, 3.000000e+01
store float %77, ptr %75, align 4
br label %78
78: ; preds = %72
%79 = load i32, ptr %8, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %8, align 4
%81 = load i32, ptr %8, align 4
%82 = icmp slt i32 %81, 2
br i1 %82, label %18, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %78
br label %83
83: ; preds = %._crit_edge6, %0
%84 = load float, ptr %6, align 4
%85 = fdiv float %84, 6.000000e+01
store float %85, ptr %6, align 4
store i32 0, ptr %11, align 4
%86 = load i32, ptr %11, align 4
%87 = icmp slt i32 %86, 2
br i1 %87, label %.lr.ph14, label %150
.lr.ph14: ; preds = %83
br label %88
88: ; preds = %.lr.ph14, %145
%89 = load i32, ptr %11, align 4
%90 = add nsw i32 %89, 1
%91 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %90)
%92 = load i32, ptr %11, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [2 x float], ptr %4, i64 0, i64 %93
%95 = load float, ptr %94, align 4
%96 = fpext float %95 to double
%97 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %96)
store i32 0, ptr %12, align 4
%98 = load i32, ptr %12, align 4
%99 = icmp slt i32 %98, 3
br i1 %99, label %.lr.ph11, label %143
.lr.ph11: ; preds = %88
br label %100
100: ; preds = %.lr.ph11, %138
%101 = load i32, ptr %12, align 4
%102 = add nsw i32 %101, 1
%103 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %102)
%104 = load i32, ptr %11, align 4
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds [2 x [3 x float]], ptr %3, i64 0, i64 %105
%107 = load i32, ptr %12, align 4
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [3 x float], ptr %106, i64 0, i64 %108
%110 = load float, ptr %109, align 4
%111 = fpext float %110 to double
%112 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %111)
store i32 0, ptr %13, align 4
%113 = load i32, ptr %13, align 4
%114 = icmp slt i32 %113, 10
br i1 %114, label %.lr.ph8, label %136
.lr.ph8: ; preds = %100
br label %115
115: ; preds = %.lr.ph8, %131
%116 = load i32, ptr %11, align 4
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds [2 x [3 x [10 x i32]]], ptr %2, i64 0, i64 %117
%119 = load i32, ptr %12, align 4
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds [3 x [10 x i32]], ptr %118, i64 0, i64 %120
%122 = load i32, ptr %13, align 4
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds [10 x i32], ptr %121, i64 0, i64 %123
%125 = load i32, ptr %124, align 4
%126 = load i32, ptr %13, align 4
%127 = icmp eq i32 %126, 9
%128 = zext i1 %127 to i64
%129 = select i1 %127, ptr @.str.5, ptr @.str.6
%130 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %125, ptr noundef %129)
br label %131
131: ; preds = %115
%132 = load i32, ptr %13, align 4
%133 = add nsw i32 %132, 1
store i32 %133, ptr %13, align 4
%134 = load i32, ptr %13, align 4
%135 = icmp slt i32 %134, 10
br i1 %135, label %115, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %131
br label %136
136: ; preds = %._crit_edge9, %100
%137 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %138
138: ; preds = %136
%139 = load i32, ptr %12, align 4
%140 = add nsw i32 %139, 1
store i32 %140, ptr %12, align 4
%141 = load i32, ptr %12, align 4
%142 = icmp slt i32 %141, 3
br i1 %142, label %100, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %138
br label %143
143: ; preds = %._crit_edge12, %88
%144 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %145
145: ; preds = %143
%146 = load i32, ptr %11, align 4
%147 = add nsw i32 %146, 1
store i32 %147, ptr %11, align 4
%148 = load i32, ptr %11, align 4
%149 = icmp slt i32 %148, 2
br i1 %149, label %88, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %145
br label %150
150: ; preds = %._crit_edge15, %83
%151 = load float, ptr %6, align 4
%152 = fpext float %151 to double
%153 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, double noundef %152)
ret i32 0
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(i32 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @rand(...) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmpan414o8k.c'
source_filename = "/tmp/tmpan414o8k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i8 @test_interlockedbittestandset(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 zeroext i8 @_interlockedbittestandset(ptr noundef %5, i32 noundef %6)
ret i8 %7
}
declare zeroext i8 @_interlockedbittestandset(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/tmpan414o8k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i8 @test_interlockedbittestandset(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 zeroext i8 @_interlockedbittestandset(ptr noundef %5, i32 noundef %6)
ret i8 %7
}
declare zeroext i8 @_interlockedbittestandset(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/tmpj8s70bdx.c'
source_filename = "/tmp/tmpj8s70bdx.c"
target datalayout = "e-m:e-p270: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/tmpj8s70bdx.c"
target datalayout = "e-m:e-p270: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/tmpv1wx4m2y.c'
source_filename = "/tmp/tmpv1wx4m2y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strrindex(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i32 @strlen(ptr noundef %9)
%11 = sub nsw i32 %10, 1
store i32 %11, ptr %6, align 4
br label %12
12: ; preds = %61, %2
%13 = load i32, ptr %6, align 4
%14 = icmp sgt i32 %13, 0
br i1 %14, label %15, label %64
15: ; preds = %12
%16 = load i32, ptr %6, align 4
store i32 %16, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %17
17: ; preds = %42, %15
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %8, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %39
25: ; preds = %17
%26 = load ptr, ptr %4, align 8
%27 = load i32, ptr %7, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = load ptr, ptr %5, align 8
%33 = load i32, ptr %8, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %31, %37
br label %39
39: ; preds = %25, %17
%40 = phi i1 [ false, %17 ], [ %38, %25 ]
br i1 %40, label %41, label %47
41: ; preds = %39
br label %42
42: ; preds = %41
%43 = load i32, ptr %7, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %7, align 4
%45 = load i32, ptr %8, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %8, align 4
br label %17, !llvm.loop !6
47: ; preds = %39
%48 = load i32, ptr %8, align 4
%49 = icmp sgt i32 %48, 0
br i1 %49, label %50, label %60
50: ; preds = %47
%51 = load ptr, ptr %5, align 8
%52 = load i32, ptr %8, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, ptr %51, i64 %53
%55 = load i8, ptr %54, align 1
%56 = sext i8 %55 to i32
%57 = icmp eq i32 %56, 0
br i1 %57, label %58, label %60
58: ; preds = %50
%59 = load i32, ptr %6, align 4
store i32 %59, ptr %3, align 4
br label %65
60: ; preds = %50, %47
br label %61
61: ; preds = %60
%62 = load i32, ptr %6, align 4
%63 = add nsw i32 %62, -1
store i32 %63, ptr %6, align 4
br label %12, !llvm.loop !8
64: ; preds = %12
store i32 -1, ptr %3, align 4
br label %65
65: ; preds = %64, %58
%66 = load i32, ptr %3, align 4
ret i32 %66
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv1wx4m2y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strrindex(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i32 @strlen(ptr noundef %9)
%11 = sub nsw i32 %10, 1
store i32 %11, ptr %6, align 4
%12 = load i32, ptr %6, align 4
%13 = icmp sgt i32 %12, 0
br i1 %13, label %.lr.ph, label %65
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %60
%15 = load i32, ptr %6, align 4
store i32 %15, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %16
16: ; preds = %41, %14
%17 = load ptr, ptr %5, align 8
%18 = load i32, ptr %8, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %38
24: ; preds = %16
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr %7, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = load ptr, ptr %5, align 8
%32 = load i32, ptr %8, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %31, i64 %33
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = icmp eq i32 %30, %36
br label %38
38: ; preds = %24, %16
%39 = phi i1 [ false, %16 ], [ %37, %24 ]
br i1 %39, label %40, label %46
40: ; preds = %38
br label %41
41: ; preds = %40
%42 = load i32, ptr %7, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %7, align 4
%44 = load i32, ptr %8, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %8, align 4
br label %16, !llvm.loop !6
46: ; preds = %38
%47 = load i32, ptr %8, align 4
%48 = icmp sgt i32 %47, 0
br i1 %48, label %49, label %59
49: ; preds = %46
%50 = load ptr, ptr %5, align 8
%51 = load i32, ptr %8, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8, ptr %50, i64 %52
%54 = load i8, ptr %53, align 1
%55 = sext i8 %54 to i32
%56 = icmp eq i32 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %49
%58 = load i32, ptr %6, align 4
store i32 %58, ptr %3, align 4
br label %66
59: ; preds = %49, %46
br label %60
60: ; preds = %59
%61 = load i32, ptr %6, align 4
%62 = add nsw i32 %61, -1
store i32 %62, ptr %6, align 4
%63 = load i32, ptr %6, align 4
%64 = icmp sgt i32 %63, 0
br i1 %64, label %14, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %60
br label %65
65: ; preds = %._crit_edge, %2
store i32 -1, ptr %3, align 4
br label %66
66: ; preds = %65, %57
%67 = load i32, ptr %3, align 4
ret i32 %67
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpjtovepxd.c'
source_filename = "/tmp/tmpjtovepxd.c"
target datalayout = "e-m:e-p270: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/tmpjtovepxd.c"
target datalayout = "e-m:e-p270: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/tmp53wifgx6.c'
source_filename = "/tmp/tmp53wifgx6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @HDeschedule() #0 {
%1 = call i32 (...) @sched_yield()
ret void
}
declare i32 @sched_yield(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp53wifgx6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @HDeschedule() #0 {
%1 = call i32 (...) @sched_yield()
ret void
}
declare i32 @sched_yield(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmph80q3eac.c'
source_filename = "/tmp/tmph80q3eac.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CLOCKS_PER_SEC = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @clocktime() #0 {
%1 = alloca double, align 8
%2 = alloca double, align 8
%3 = call i64 (...) @clock()
%4 = sitofp i64 %3 to double
store double %4, ptr %1, align 8
%5 = load double, ptr %1, align 8
%6 = load i64, ptr @CLOCKS_PER_SEC, align 8
%7 = sitofp i64 %6 to double
%8 = fdiv double %5, %7
store double %8, ptr %2, align 8
%9 = load double, ptr %2, align 8
ret double %9
}
declare i64 @clock(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmph80q3eac.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CLOCKS_PER_SEC = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @clocktime() #0 {
%1 = alloca double, align 8
%2 = alloca double, align 8
%3 = call i64 (...) @clock()
%4 = sitofp i64 %3 to double
store double %4, ptr %1, align 8
%5 = load double, ptr %1, align 8
%6 = load i64, ptr @CLOCKS_PER_SEC, align 8
%7 = sitofp i64 %6 to double
%8 = fdiv double %5, %7
store double %8, ptr %2, align 8
%9 = load double, ptr %2, align 8
ret double %9
}
declare i64 @clock(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_uof9e_a.c'
source_filename = "/tmp/tmp_uof9e_a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_mm_njnjnj_b_c_bc_i4_d() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca double, align 8
%21 = alloca double, align 8
store i32 21, ptr %1, align 4
store i32 23, ptr %2, align 4
store i32 25, ptr %3, align 4
%22 = load i32, ptr %1, align 4
%23 = zext i32 %22 to i64
%24 = load i32, ptr %2, align 4
%25 = zext i32 %24 to i64
%26 = call ptr @llvm.stacksave()
store ptr %26, ptr %4, align 8
%27 = mul nuw i64 %23, %25
%28 = alloca i32, i64 %27, align 16
store i64 %23, ptr %5, align 8
store i64 %25, ptr %6, align 8
%29 = load i32, ptr %2, align 4
%30 = zext i32 %29 to i64
%31 = load i32, ptr %3, align 4
%32 = zext i32 %31 to i64
%33 = mul nuw i64 %30, %32
%34 = alloca i32, i64 %33, align 16
store i64 %30, ptr %7, align 8
store i64 %32, ptr %8, align 8
%35 = load i32, ptr %1, align 4
%36 = zext i32 %35 to i64
%37 = load i32, ptr %3, align 4
%38 = zext i32 %37 to i64
%39 = mul nuw i64 %36, %38
%40 = alloca i32, i64 %39, align 16
store i64 %36, ptr %9, align 8
store i64 %38, ptr %10, align 8
store i32 0, ptr %11, align 4
br label %41
41: ; preds = %68, %0
%42 = load i32, ptr %11, align 4
%43 = load i32, ptr %1, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %45, label %71
45: ; preds = %41
store i32 0, ptr %12, align 4
br label %46
46: ; preds = %64, %45
%47 = load i32, ptr %12, align 4
%48 = load i32, ptr %2, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %50, label %67
50: ; preds = %46
%51 = load i32, ptr %11, align 4
%52 = load i32, ptr %1, align 4
%53 = mul nsw i32 %51, %52
%54 = load i32, ptr %12, align 4
%55 = add nsw i32 %53, %54
%56 = add nsw i32 %55, 1
%57 = load i32, ptr %11, align 4
%58 = sext i32 %57 to i64
%59 = mul nsw i64 %58, %25
%60 = getelementptr inbounds i32, ptr %28, i64 %59
%61 = load i32, ptr %12, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i32, ptr %60, i64 %62
store i32 %56, ptr %63, align 4
br label %64
64: ; preds = %50
%65 = load i32, ptr %12, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %12, align 4
br label %46, !llvm.loop !6
67: ; preds = %46
br label %68
68: ; preds = %67
%69 = load i32, ptr %11, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %11, align 4
br label %41, !llvm.loop !8
71: ; preds = %41
store i32 0, ptr %11, align 4
br label %72
72: ; preds = %99, %71
%73 = load i32, ptr %11, align 4
%74 = load i32, ptr %2, align 4
%75 = icmp slt i32 %73, %74
br i1 %75, label %76, label %102
76: ; preds = %72
store i32 0, ptr %12, align 4
br label %77
77: ; preds = %95, %76
%78 = load i32, ptr %12, align 4
%79 = load i32, ptr %3, align 4
%80 = icmp slt i32 %78, %79
br i1 %80, label %81, label %98
81: ; preds = %77
%82 = load i32, ptr %12, align 4
%83 = load i32, ptr %3, align 4
%84 = mul nsw i32 %82, %83
%85 = load i32, ptr %11, align 4
%86 = add nsw i32 %84, %85
%87 = add nsw i32 %86, 1
%88 = load i32, ptr %11, align 4
%89 = sext i32 %88 to i64
%90 = mul nsw i64 %89, %32
%91 = getelementptr inbounds i32, ptr %34, i64 %90
%92 = load i32, ptr %12, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i32, ptr %91, i64 %93
store i32 %87, ptr %94, align 4
br label %95
95: ; preds = %81
%96 = load i32, ptr %12, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %12, align 4
br label %77, !llvm.loop !9
98: ; preds = %77
br label %99
99: ; preds = %98
%100 = load i32, ptr %11, align 4
%101 = add nsw i32 %100, 1
store i32 %101, ptr %11, align 4
br label %72, !llvm.loop !10
102: ; preds = %72
store i32 0, ptr %11, align 4
br label %103
103: ; preds = %124, %102
%104 = load i32, ptr %11, align 4
%105 = load i32, ptr %1, align 4
%106 = icmp slt i32 %104, %105
br i1 %106, label %107, label %127
107: ; preds = %103
store i32 0, ptr %12, align 4
br label %108
108: ; preds = %120, %107
%109 = load i32, ptr %12, align 4
%110 = load i32, ptr %3, align 4
%111 = icmp slt i32 %109, %110
br i1 %111, label %112, label %123
112: ; preds = %108
%113 = load i32, ptr %11, align 4
%114 = sext i32 %113 to i64
%115 = mul nsw i64 %114, %38
%116 = getelementptr inbounds i32, ptr %40, i64 %115
%117 = load i32, ptr %12, align 4
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds i32, ptr %116, i64 %118
store i32 0, ptr %119, align 4
br label %120
120: ; preds = %112
%121 = load i32, ptr %12, align 4
%122 = add nsw i32 %121, 1
store i32 %122, ptr %12, align 4
br label %108, !llvm.loop !11
123: ; preds = %108
br label %124
124: ; preds = %123
%125 = load i32, ptr %11, align 4
%126 = add nsw i32 %125, 1
store i32 %126, ptr %11, align 4
br label %103, !llvm.loop !12
127: ; preds = %103
%128 = call i32 @xmp_desc_of(ptr noundef %40)
%129 = call i32 @xmp_desc_of(ptr noundef %28)
%130 = call i32 @xmp_desc_of(ptr noundef %34)
%131 = call i32 @xmp_matmul(i32 noundef %128, i32 noundef %129, i32 noundef %130)
store i32 0, ptr %13, align 4
%132 = load i32, ptr %1, align 4
%133 = sitofp i32 %132 to double
store double %133, ptr %14, align 8
%134 = load i32, ptr %2, align 4
%135 = sitofp i32 %134 to double
store double %135, ptr %15, align 8
%136 = load i32, ptr %3, align 4
%137 = sitofp i32 %136 to double
store double %137, ptr %16, align 8
%138 = load double, ptr %15, align 8
%139 = load double, ptr %15, align 8
%140 = fadd double %139, 1.000000e+00
%141 = fmul double %138, %140
%142 = load double, ptr %15, align 8
%143 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %142, double 1.000000e+00)
%144 = fmul double %141, %143
%145 = fdiv double %144, 6.000000e+00
store double %145, ptr %17, align 8
%146 = load double, ptr %15, align 8
%147 = load double, ptr %15, align 8
%148 = fadd double %147, 1.000000e+00
%149 = fmul double %146, %148
%150 = fdiv double %149, 2.000000e+00
store double %150, ptr %18, align 8
store i32 0, ptr %11, align 4
br label %151
151: ; preds = %199, %127
%152 = load i32, ptr %11, align 4
%153 = load i32, ptr %1, align 4
%154 = icmp slt i32 %152, %153
br i1 %154, label %155, label %202
155: ; preds = %151
store i32 0, ptr %12, align 4
br label %156
156: ; preds = %195, %155
%157 = load i32, ptr %12, align 4
%158 = load i32, ptr %3, align 4
%159 = icmp slt i32 %157, %158
br i1 %159, label %160, label %198
160: ; preds = %156
%161 = load i32, ptr %11, align 4
%162 = sitofp i32 %161 to double
%163 = load double, ptr %14, align 8
%164 = fmul double %162, %163
store double %164, ptr %20, align 8
%165 = load i32, ptr %12, align 4
%166 = sitofp i32 %165 to double
%167 = load double, ptr %16, align 8
%168 = fmul double %166, %167
store double %168, ptr %21, align 8
%169 = load double, ptr %17, align 8
%170 = load double, ptr %18, align 8
%171 = load double, ptr %20, align 8
%172 = load double, ptr %21, align 8
%173 = fadd double %171, %172
%174 = call double @llvm.fmuladd.f64(double %170, double %173, double %169)
%175 = load double, ptr %20, align 8
%176 = load double, ptr %21, align 8
%177 = fmul double %175, %176
%178 = load double, ptr %15, align 8
%179 = call double @llvm.fmuladd.f64(double %177, double %178, double %174)
store double %179, ptr %19, align 8
%180 = load i32, ptr %13, align 4
%181 = sitofp i32 %180 to double
%182 = load i32, ptr %11, align 4
%183 = sext i32 %182 to i64
%184 = mul nsw i64 %183, %38
%185 = getelementptr inbounds i32, ptr %40, i64 %184
%186 = load i32, ptr %12, align 4
%187 = sext i32 %186 to i64
%188 = getelementptr inbounds i32, ptr %185, i64 %187
%189 = load i32, ptr %188, align 4
%190 = sitofp i32 %189 to double
%191 = load double, ptr %19, align 8
%192 = fsub double %190, %191
%193 = fadd double %181, %192
%194 = fptosi double %193 to i32
store i32 %194, ptr %13, align 4
br label %195
195: ; preds = %160
%196 = load i32, ptr %12, align 4
%197 = add nsw i32 %196, 1
store i32 %197, ptr %12, align 4
br label %156, !llvm.loop !13
198: ; preds = %156
br label %199
199: ; preds = %198
%200 = load i32, ptr %11, align 4
%201 = add nsw i32 %200, 1
store i32 %201, ptr %11, align 4
br label %151, !llvm.loop !14
202: ; preds = %151
%203 = load i32, ptr %13, align 4
%204 = call i32 @chk_int2(i32 noundef %203)
%205 = load ptr, ptr %4, align 8
call void @llvm.stackrestore(ptr %205)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @xmp_matmul(i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @xmp_desc_of(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
declare i32 @chk_int2(i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_uof9e_a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_mm_njnjnj_b_c_bc_i4_d() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca double, align 8
%21 = alloca double, align 8
store i32 21, ptr %1, align 4
store i32 23, ptr %2, align 4
store i32 25, ptr %3, align 4
%22 = load i32, ptr %1, align 4
%23 = zext i32 %22 to i64
%24 = load i32, ptr %2, align 4
%25 = zext i32 %24 to i64
%26 = call ptr @llvm.stacksave()
store ptr %26, ptr %4, align 8
%27 = mul nuw i64 %23, %25
%28 = alloca i32, i64 %27, align 16
store i64 %23, ptr %5, align 8
store i64 %25, ptr %6, align 8
%29 = load i32, ptr %2, align 4
%30 = zext i32 %29 to i64
%31 = load i32, ptr %3, align 4
%32 = zext i32 %31 to i64
%33 = mul nuw i64 %30, %32
%34 = alloca i32, i64 %33, align 16
store i64 %30, ptr %7, align 8
store i64 %32, ptr %8, align 8
%35 = load i32, ptr %1, align 4
%36 = zext i32 %35 to i64
%37 = load i32, ptr %3, align 4
%38 = zext i32 %37 to i64
%39 = mul nuw i64 %36, %38
%40 = alloca i32, i64 %39, align 16
store i64 %36, ptr %9, align 8
store i64 %38, ptr %10, align 8
store i32 0, ptr %11, align 4
%41 = load i32, ptr %11, align 4
%42 = load i32, ptr %1, align 4
%43 = icmp slt i32 %41, %42
br i1 %43, label %.lr.ph2, label %75
.lr.ph2: ; preds = %0
br label %44
44: ; preds = %.lr.ph2, %69
store i32 0, ptr %12, align 4
%45 = load i32, ptr %12, align 4
%46 = load i32, ptr %2, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %.lr.ph, label %68
.lr.ph: ; preds = %44
br label %48
48: ; preds = %.lr.ph, %62
%49 = load i32, ptr %11, align 4
%50 = load i32, ptr %1, align 4
%51 = mul nsw i32 %49, %50
%52 = load i32, ptr %12, align 4
%53 = add nsw i32 %51, %52
%54 = add nsw i32 %53, 1
%55 = load i32, ptr %11, align 4
%56 = sext i32 %55 to i64
%57 = mul nsw i64 %56, %25
%58 = getelementptr inbounds i32, ptr %28, i64 %57
%59 = load i32, ptr %12, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i32, ptr %58, i64 %60
store i32 %54, ptr %61, align 4
br label %62
62: ; preds = %48
%63 = load i32, ptr %12, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %12, align 4
%65 = load i32, ptr %12, align 4
%66 = load i32, ptr %2, align 4
%67 = icmp slt i32 %65, %66
br i1 %67, label %48, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %62
br label %68
68: ; preds = %._crit_edge, %44
br label %69
69: ; preds = %68
%70 = load i32, ptr %11, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %11, align 4
%72 = load i32, ptr %11, align 4
%73 = load i32, ptr %1, align 4
%74 = icmp slt i32 %72, %73
br i1 %74, label %44, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %69
br label %75
75: ; preds = %._crit_edge3, %0
store i32 0, ptr %11, align 4
%76 = load i32, ptr %11, align 4
%77 = load i32, ptr %2, align 4
%78 = icmp slt i32 %76, %77
br i1 %78, label %.lr.ph8, label %110
.lr.ph8: ; preds = %75
br label %79
79: ; preds = %.lr.ph8, %104
store i32 0, ptr %12, align 4
%80 = load i32, ptr %12, align 4
%81 = load i32, ptr %3, align 4
%82 = icmp slt i32 %80, %81
br i1 %82, label %.lr.ph5, label %103
.lr.ph5: ; preds = %79
br label %83
83: ; preds = %.lr.ph5, %97
%84 = load i32, ptr %12, align 4
%85 = load i32, ptr %3, align 4
%86 = mul nsw i32 %84, %85
%87 = load i32, ptr %11, align 4
%88 = add nsw i32 %86, %87
%89 = add nsw i32 %88, 1
%90 = load i32, ptr %11, align 4
%91 = sext i32 %90 to i64
%92 = mul nsw i64 %91, %32
%93 = getelementptr inbounds i32, ptr %34, i64 %92
%94 = load i32, ptr %12, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds i32, ptr %93, i64 %95
store i32 %89, ptr %96, align 4
br label %97
97: ; preds = %83
%98 = load i32, ptr %12, align 4
%99 = add nsw i32 %98, 1
store i32 %99, ptr %12, align 4
%100 = load i32, ptr %12, align 4
%101 = load i32, ptr %3, align 4
%102 = icmp slt i32 %100, %101
br i1 %102, label %83, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %97
br label %103
103: ; preds = %._crit_edge6, %79
br label %104
104: ; preds = %103
%105 = load i32, ptr %11, align 4
%106 = add nsw i32 %105, 1
store i32 %106, ptr %11, align 4
%107 = load i32, ptr %11, align 4
%108 = load i32, ptr %2, align 4
%109 = icmp slt i32 %107, %108
br i1 %109, label %79, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %104
br label %110
110: ; preds = %._crit_edge9, %75
store i32 0, ptr %11, align 4
%111 = load i32, ptr %11, align 4
%112 = load i32, ptr %1, align 4
%113 = icmp slt i32 %111, %112
br i1 %113, label %.lr.ph14, label %139
.lr.ph14: ; preds = %110
br label %114
114: ; preds = %.lr.ph14, %133
store i32 0, ptr %12, align 4
%115 = load i32, ptr %12, align 4
%116 = load i32, ptr %3, align 4
%117 = icmp slt i32 %115, %116
br i1 %117, label %.lr.ph11, label %132
.lr.ph11: ; preds = %114
br label %118
118: ; preds = %.lr.ph11, %126
%119 = load i32, ptr %11, align 4
%120 = sext i32 %119 to i64
%121 = mul nsw i64 %120, %38
%122 = getelementptr inbounds i32, ptr %40, i64 %121
%123 = load i32, ptr %12, align 4
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds i32, ptr %122, i64 %124
store i32 0, ptr %125, align 4
br label %126
126: ; preds = %118
%127 = load i32, ptr %12, align 4
%128 = add nsw i32 %127, 1
store i32 %128, ptr %12, align 4
%129 = load i32, ptr %12, align 4
%130 = load i32, ptr %3, align 4
%131 = icmp slt i32 %129, %130
br i1 %131, label %118, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %126
br label %132
132: ; preds = %._crit_edge12, %114
br label %133
133: ; preds = %132
%134 = load i32, ptr %11, align 4
%135 = add nsw i32 %134, 1
store i32 %135, ptr %11, align 4
%136 = load i32, ptr %11, align 4
%137 = load i32, ptr %1, align 4
%138 = icmp slt i32 %136, %137
br i1 %138, label %114, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %133
br label %139
139: ; preds = %._crit_edge15, %110
%140 = call i32 @xmp_desc_of(ptr noundef %40)
%141 = call i32 @xmp_desc_of(ptr noundef %28)
%142 = call i32 @xmp_desc_of(ptr noundef %34)
%143 = call i32 @xmp_matmul(i32 noundef %140, i32 noundef %141, i32 noundef %142)
store i32 0, ptr %13, align 4
%144 = load i32, ptr %1, align 4
%145 = sitofp i32 %144 to double
store double %145, ptr %14, align 8
%146 = load i32, ptr %2, align 4
%147 = sitofp i32 %146 to double
store double %147, ptr %15, align 8
%148 = load i32, ptr %3, align 4
%149 = sitofp i32 %148 to double
store double %149, ptr %16, align 8
%150 = load double, ptr %15, align 8
%151 = load double, ptr %15, align 8
%152 = fadd double %151, 1.000000e+00
%153 = fmul double %150, %152
%154 = load double, ptr %15, align 8
%155 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %154, double 1.000000e+00)
%156 = fmul double %153, %155
%157 = fdiv double %156, 6.000000e+00
store double %157, ptr %17, align 8
%158 = load double, ptr %15, align 8
%159 = load double, ptr %15, align 8
%160 = fadd double %159, 1.000000e+00
%161 = fmul double %158, %160
%162 = fdiv double %161, 2.000000e+00
store double %162, ptr %18, align 8
store i32 0, ptr %11, align 4
%163 = load i32, ptr %11, align 4
%164 = load i32, ptr %1, align 4
%165 = icmp slt i32 %163, %164
br i1 %165, label %.lr.ph20, label %218
.lr.ph20: ; preds = %139
br label %166
166: ; preds = %.lr.ph20, %212
store i32 0, ptr %12, align 4
%167 = load i32, ptr %12, align 4
%168 = load i32, ptr %3, align 4
%169 = icmp slt i32 %167, %168
br i1 %169, label %.lr.ph17, label %211
.lr.ph17: ; preds = %166
br label %170
170: ; preds = %.lr.ph17, %205
%171 = load i32, ptr %11, align 4
%172 = sitofp i32 %171 to double
%173 = load double, ptr %14, align 8
%174 = fmul double %172, %173
store double %174, ptr %20, align 8
%175 = load i32, ptr %12, align 4
%176 = sitofp i32 %175 to double
%177 = load double, ptr %16, align 8
%178 = fmul double %176, %177
store double %178, ptr %21, align 8
%179 = load double, ptr %17, align 8
%180 = load double, ptr %18, align 8
%181 = load double, ptr %20, align 8
%182 = load double, ptr %21, align 8
%183 = fadd double %181, %182
%184 = call double @llvm.fmuladd.f64(double %180, double %183, double %179)
%185 = load double, ptr %20, align 8
%186 = load double, ptr %21, align 8
%187 = fmul double %185, %186
%188 = load double, ptr %15, align 8
%189 = call double @llvm.fmuladd.f64(double %187, double %188, double %184)
store double %189, ptr %19, align 8
%190 = load i32, ptr %13, align 4
%191 = sitofp i32 %190 to double
%192 = load i32, ptr %11, align 4
%193 = sext i32 %192 to i64
%194 = mul nsw i64 %193, %38
%195 = getelementptr inbounds i32, ptr %40, i64 %194
%196 = load i32, ptr %12, align 4
%197 = sext i32 %196 to i64
%198 = getelementptr inbounds i32, ptr %195, i64 %197
%199 = load i32, ptr %198, align 4
%200 = sitofp i32 %199 to double
%201 = load double, ptr %19, align 8
%202 = fsub double %200, %201
%203 = fadd double %191, %202
%204 = fptosi double %203 to i32
store i32 %204, ptr %13, align 4
br label %205
205: ; preds = %170
%206 = load i32, ptr %12, align 4
%207 = add nsw i32 %206, 1
store i32 %207, ptr %12, align 4
%208 = load i32, ptr %12, align 4
%209 = load i32, ptr %3, align 4
%210 = icmp slt i32 %208, %209
br i1 %210, label %170, label %._crit_edge18, !llvm.loop !13
._crit_edge18: ; preds = %205
br label %211
211: ; preds = %._crit_edge18, %166
br label %212
212: ; preds = %211
%213 = load i32, ptr %11, align 4
%214 = add nsw i32 %213, 1
store i32 %214, ptr %11, align 4
%215 = load i32, ptr %11, align 4
%216 = load i32, ptr %1, align 4
%217 = icmp slt i32 %215, %216
br i1 %217, label %166, label %._crit_edge21, !llvm.loop !14
._crit_edge21: ; preds = %212
br label %218
218: ; preds = %._crit_edge21, %139
%219 = load i32, ptr %13, align 4
%220 = call i32 @chk_int2(i32 noundef %219)
%221 = load ptr, ptr %4, align 8
call void @llvm.stackrestore(ptr %221)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @xmp_matmul(i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @xmp_desc_of(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
declare i32 @chk_int2(i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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}
|
; ModuleID = '/tmp/tmpgg4d3mu3.c'
source_filename = "/tmp/tmpgg4d3mu3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"Enter an integer to find factorial\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [36 x i8] c"Negative integers are not allowed.\0A\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"%d! = %ld\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 i64, align 8
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %16
10: ; preds = %0
%11 = load i32, ptr %2, align 4
%12 = call i64 @factorial(i32 noundef %11)
store i64 %12, ptr %3, align 8
%13 = load i32, ptr %2, align 4
%14 = load i64, ptr %3, align 8
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %13, i64 noundef %14)
br label %16
16: ; preds = %10, %8
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @factorial(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgg4d3mu3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"Enter an integer to find factorial\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [36 x i8] c"Negative integers are not allowed.\0A\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"%d! = %ld\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 i64, align 8
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %16
10: ; preds = %0
%11 = load i32, ptr %2, align 4
%12 = call i64 @factorial(i32 noundef %11)
store i64 %12, ptr %3, align 8
%13 = load i32, ptr %2, align 4
%14 = load i64, ptr %3, align 8
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %13, i64 noundef %14)
br label %16
16: ; preds = %10, %8
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @factorial(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp78s6ch4o.c'
source_filename = "/tmp/tmp78s6ch4o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%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
store i32 0, ptr %1, align 4
%3 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%4 = load i32, ptr %2, align 4
%5 = call i32 @factorial(i32 noundef %4)
%6 = call i32 @printf(ptr noundef @.str.1, i32 noundef %5)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @factorial(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp78s6ch4o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%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
store i32 0, ptr %1, align 4
%3 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%4 = load i32, ptr %2, align 4
%5 = call i32 @factorial(i32 noundef %4)
%6 = call i32 @printf(ptr noundef @.str.1, i32 noundef %5)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @factorial(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv4wbndvg.c'
source_filename = "/tmp/tmpv4wbndvg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @coshf(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = call double @exp(float noundef %3)
%5 = load float, ptr %2, align 4
%6 = fneg float %5
%7 = call double @exp(float noundef %6)
%8 = fadd double %4, %7
%9 = fmul double %8, 5.000000e-01
%10 = fptrunc double %9 to float
ret float %10
}
declare double @exp(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv4wbndvg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @coshf(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = call double @exp(float noundef %3)
%5 = load float, ptr %2, align 4
%6 = fneg float %5
%7 = call double @exp(float noundef %6)
%8 = fadd double %4, %7
%9 = fmul double %8, 5.000000e-01
%10 = fptrunc double %9 to float
ret float %10
}
declare double @exp(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpog20meap.c'
source_filename = "/tmp/tmpog20meap.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @equinoxsolstice(i32 noundef %0, double noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca double, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca [2 x double], align 16
%10 = alloca [2 x double], align 16
store i32 %0, ptr %5, align 4
store double %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%11 = load i32, ptr %5, align 4
%12 = load double, ptr %6, align 8
%13 = getelementptr inbounds [2 x double], ptr %9, i64 0, i64 0
%14 = getelementptr inbounds [2 x double], ptr %10, i64 0, i64 0
%15 = call i32 @fequinoxsolstice(i32 noundef %11, double noundef %12, ptr noundef %13, ptr noundef %14)
%16 = getelementptr inbounds [2 x double], ptr %9, i64 0, i64 0
%17 = load double, ptr %16, align 16
%18 = call i32 @round(double noundef %17)
%19 = load ptr, ptr %7, align 8
%20 = getelementptr inbounds i32, ptr %19, i64 0
store i32 %18, ptr %20, align 4
%21 = getelementptr inbounds [2 x double], ptr %9, i64 0, i64 1
%22 = load double, ptr %21, align 8
%23 = call i32 @round(double noundef %22)
%24 = load ptr, ptr %7, align 8
%25 = getelementptr inbounds i32, ptr %24, i64 1
store i32 %23, ptr %25, align 4
%26 = getelementptr inbounds [2 x double], ptr %10, i64 0, i64 0
%27 = load double, ptr %26, align 16
%28 = call i32 @round(double noundef %27)
%29 = load ptr, ptr %8, align 8
%30 = getelementptr inbounds i32, ptr %29, i64 0
store i32 %28, ptr %30, align 4
%31 = getelementptr inbounds [2 x double], ptr %10, i64 0, i64 1
%32 = load double, ptr %31, align 8
%33 = call i32 @round(double noundef %32)
%34 = load ptr, ptr %8, align 8
%35 = getelementptr inbounds i32, ptr %34, i64 1
store i32 %33, ptr %35, align 4
ret void
}
declare i32 @fequinoxsolstice(i32 noundef, double noundef, ptr noundef, ptr noundef) #1
declare i32 @round(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/tmpog20meap.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @equinoxsolstice(i32 noundef %0, double noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca double, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca [2 x double], align 16
%10 = alloca [2 x double], align 16
store i32 %0, ptr %5, align 4
store double %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%11 = load i32, ptr %5, align 4
%12 = load double, ptr %6, align 8
%13 = getelementptr inbounds [2 x double], ptr %9, i64 0, i64 0
%14 = getelementptr inbounds [2 x double], ptr %10, i64 0, i64 0
%15 = call i32 @fequinoxsolstice(i32 noundef %11, double noundef %12, ptr noundef %13, ptr noundef %14)
%16 = getelementptr inbounds [2 x double], ptr %9, i64 0, i64 0
%17 = load double, ptr %16, align 16
%18 = call i32 @round(double noundef %17)
%19 = load ptr, ptr %7, align 8
%20 = getelementptr inbounds i32, ptr %19, i64 0
store i32 %18, ptr %20, align 4
%21 = getelementptr inbounds [2 x double], ptr %9, i64 0, i64 1
%22 = load double, ptr %21, align 8
%23 = call i32 @round(double noundef %22)
%24 = load ptr, ptr %7, align 8
%25 = getelementptr inbounds i32, ptr %24, i64 1
store i32 %23, ptr %25, align 4
%26 = getelementptr inbounds [2 x double], ptr %10, i64 0, i64 0
%27 = load double, ptr %26, align 16
%28 = call i32 @round(double noundef %27)
%29 = load ptr, ptr %8, align 8
%30 = getelementptr inbounds i32, ptr %29, i64 0
store i32 %28, ptr %30, align 4
%31 = getelementptr inbounds [2 x double], ptr %10, i64 0, i64 1
%32 = load double, ptr %31, align 8
%33 = call i32 @round(double noundef %32)
%34 = load ptr, ptr %8, align 8
%35 = getelementptr inbounds i32, ptr %34, i64 1
store i32 %33, ptr %35, align 4
ret void
}
declare i32 @fequinoxsolstice(i32 noundef, double noundef, ptr noundef, ptr noundef) #1
declare i32 @round(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/tmp9w302qwo.c'
source_filename = "/tmp/tmp9w302qwo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"\0A%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"q1c ------\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 @q1c() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 3, ptr %1, align 4
store ptr %1, ptr %2, align 8
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
br label %4
4: ; preds = %9, %0
%5 = load ptr, ptr %2, align 8
%6 = load i32, ptr %5, align 4
%7 = add nsw i32 %6, 1
store i32 %7, ptr %5, align 4
%8 = icmp slt i32 %7, 8
br i1 %8, label %9, label %13
9: ; preds = %4
%10 = load ptr, ptr %2, align 8
%11 = load i32, ptr %10, align 4
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %11)
br label %4, !llvm.loop !6
13: ; preds = %4
ret i32 1
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9w302qwo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"\0A%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"q1c ------\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 @q1c() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 3, ptr %1, align 4
store ptr %1, ptr %2, align 8
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%4 = load ptr, ptr %2, align 8
%5 = load i32, ptr %4, align 4
%6 = add nsw i32 %5, 1
store i32 %6, ptr %4, align 4
%7 = icmp slt i32 %6, 8
br i1 %7, label %.lr.ph, label %16
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %8
%9 = load ptr, ptr %2, align 8
%10 = load i32, ptr %9, align 4
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %10)
%12 = load ptr, ptr %2, align 8
%13 = load i32, ptr %12, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %12, align 4
%15 = icmp slt i32 %14, 8
br i1 %15, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %8
br label %16
16: ; preds = %._crit_edge, %0
ret i32 1
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpzyanqlmw.c'
source_filename = "/tmp/tmpzyanqlmw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.1 = private unnamed_addr constant [103 x i8] c" | |\0A %c | %c | %c\0A___|___|___\0A | |\0A %c | %c | %c\0A___|___|___\0A | |\0A %c | %c | %c\0A | |\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mostra_matriz(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %5, align 4
br label %8
8: ; preds = %56, %2
%9 = load i32, ptr %5, align 4
%10 = icmp slt i32 %9, 3
br i1 %10, label %11, label %59
11: ; preds = %8
store i32 0, ptr %6, align 4
br label %12
12: ; preds = %52, %11
%13 = load i32, ptr %6, align 4
%14 = icmp slt i32 %13, 3
br i1 %14, label %15, label %55
15: ; preds = %12
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %5, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [3 x i32], ptr %16, i64 %18
%20 = load i32, ptr %6, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [3 x i32], ptr %19, i64 0, i64 %21
%23 = load i32, ptr %22, align 4
%24 = icmp eq i32 %23, -1
br i1 %24, label %25, label %33
25: ; preds = %15
%26 = load ptr, ptr %4, align 8
%27 = load i32, ptr %5, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [3 x i8], ptr %26, i64 %28
%30 = load i32, ptr %6, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [3 x i8], ptr %29, i64 0, i64 %31
store i8 79, ptr %32, align 1
br label %33
33: ; preds = %25, %15
%34 = load ptr, ptr %3, align 8
%35 = load i32, ptr %5, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [3 x i32], ptr %34, i64 %36
%38 = load i32, ptr %6, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [3 x i32], ptr %37, i64 0, i64 %39
%41 = load i32, ptr %40, align 4
%42 = icmp eq i32 %41, -2
br i1 %42, label %43, label %51
43: ; preds = %33
%44 = load ptr, ptr %4, align 8
%45 = load i32, ptr %5, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [3 x i8], ptr %44, i64 %46
%48 = load i32, ptr %6, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [3 x i8], ptr %47, i64 0, i64 %49
store i8 88, ptr %50, align 1
br label %51
51: ; preds = %43, %33
br label %52
52: ; preds = %51
%53 = load i32, ptr %6, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %6, align 4
br label %12, !llvm.loop !6
55: ; preds = %12
br label %56
56: ; preds = %55
%57 = load i32, ptr %5, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %5, align 4
br label %8, !llvm.loop !8
59: ; preds = %8
%60 = load ptr, ptr %4, align 8
%61 = getelementptr inbounds [3 x i8], ptr %60, i64 0
%62 = getelementptr inbounds [3 x i8], ptr %61, i64 0, i64 0
%63 = load i8, ptr %62, align 1
%64 = sext i8 %63 to i32
%65 = load ptr, ptr %4, align 8
%66 = getelementptr inbounds [3 x i8], ptr %65, i64 0
%67 = getelementptr inbounds [3 x i8], ptr %66, i64 0, i64 1
%68 = load i8, ptr %67, align 1
%69 = sext i8 %68 to i32
%70 = load ptr, ptr %4, align 8
%71 = getelementptr inbounds [3 x i8], ptr %70, i64 0
%72 = getelementptr inbounds [3 x i8], ptr %71, i64 0, i64 2
%73 = load i8, ptr %72, align 1
%74 = sext i8 %73 to i32
%75 = load ptr, ptr %4, align 8
%76 = getelementptr inbounds [3 x i8], ptr %75, i64 1
%77 = getelementptr inbounds [3 x i8], ptr %76, i64 0, i64 0
%78 = load i8, ptr %77, align 1
%79 = sext i8 %78 to i32
%80 = load ptr, ptr %4, align 8
%81 = getelementptr inbounds [3 x i8], ptr %80, i64 1
%82 = getelementptr inbounds [3 x i8], ptr %81, i64 0, i64 1
%83 = load i8, ptr %82, align 1
%84 = sext i8 %83 to i32
%85 = load ptr, ptr %4, align 8
%86 = getelementptr inbounds [3 x i8], ptr %85, i64 1
%87 = getelementptr inbounds [3 x i8], ptr %86, i64 0, i64 2
%88 = load i8, ptr %87, align 1
%89 = sext i8 %88 to i32
%90 = load ptr, ptr %4, align 8
%91 = getelementptr inbounds [3 x i8], ptr %90, i64 2
%92 = getelementptr inbounds [3 x i8], ptr %91, i64 0, i64 0
%93 = load i8, ptr %92, align 1
%94 = sext i8 %93 to i32
%95 = load ptr, ptr %4, align 8
%96 = getelementptr inbounds [3 x i8], ptr %95, i64 2
%97 = getelementptr inbounds [3 x i8], ptr %96, i64 0, i64 1
%98 = load i8, ptr %97, align 1
%99 = sext i8 %98 to i32
%100 = load ptr, ptr %4, align 8
%101 = getelementptr inbounds [3 x i8], ptr %100, i64 2
%102 = getelementptr inbounds [3 x i8], ptr %101, i64 0, i64 2
%103 = load i8, ptr %102, align 1
%104 = sext i8 %103 to i32
%105 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %64, i32 noundef %69, i32 noundef %74, i32 noundef %79, i32 noundef %84, i32 noundef %89, i32 noundef %94, i32 noundef %99, i32 noundef %104)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzyanqlmw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.1 = private unnamed_addr constant [103 x i8] c" | |\0A %c | %c | %c\0A___|___|___\0A | |\0A %c | %c | %c\0A___|___|___\0A | |\0A %c | %c | %c\0A | |\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mostra_matriz(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = icmp slt i32 %8, 3
br i1 %9, label %.lr.ph2, label %61
.lr.ph2: ; preds = %2
br label %10
10: ; preds = %.lr.ph2, %56
store i32 0, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp slt i32 %11, 3
br i1 %12, label %.lr.ph, label %55
.lr.ph: ; preds = %10
br label %13
13: ; preds = %.lr.ph, %50
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [3 x i32], ptr %14, i64 %16
%18 = load i32, ptr %6, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [3 x i32], ptr %17, i64 0, i64 %19
%21 = load i32, ptr %20, align 4
%22 = icmp eq i32 %21, -1
br i1 %22, label %23, label %31
23: ; preds = %13
%24 = load ptr, ptr %4, align 8
%25 = load i32, ptr %5, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [3 x i8], ptr %24, i64 %26
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [3 x i8], ptr %27, i64 0, i64 %29
store i8 79, ptr %30, align 1
br label %31
31: ; preds = %23, %13
%32 = load ptr, ptr %3, align 8
%33 = load i32, ptr %5, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [3 x i32], ptr %32, i64 %34
%36 = load i32, ptr %6, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [3 x i32], ptr %35, i64 0, i64 %37
%39 = load i32, ptr %38, align 4
%40 = icmp eq i32 %39, -2
br i1 %40, label %41, label %49
41: ; preds = %31
%42 = load ptr, ptr %4, align 8
%43 = load i32, ptr %5, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [3 x i8], ptr %42, i64 %44
%46 = load i32, ptr %6, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [3 x i8], ptr %45, i64 0, i64 %47
store i8 88, ptr %48, align 1
br label %49
49: ; preds = %41, %31
br label %50
50: ; preds = %49
%51 = load i32, ptr %6, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %6, align 4
%53 = load i32, ptr %6, align 4
%54 = icmp slt i32 %53, 3
br i1 %54, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %50
br label %55
55: ; preds = %._crit_edge, %10
br label %56
56: ; preds = %55
%57 = load i32, ptr %5, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %5, align 4
%59 = load i32, ptr %5, align 4
%60 = icmp slt i32 %59, 3
br i1 %60, label %10, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %56
br label %61
61: ; preds = %._crit_edge3, %2
%62 = load ptr, ptr %4, align 8
%63 = getelementptr inbounds [3 x i8], ptr %62, i64 0
%64 = getelementptr inbounds [3 x i8], ptr %63, i64 0, i64 0
%65 = load i8, ptr %64, align 1
%66 = sext i8 %65 to i32
%67 = load ptr, ptr %4, align 8
%68 = getelementptr inbounds [3 x i8], ptr %67, i64 0
%69 = getelementptr inbounds [3 x i8], ptr %68, i64 0, i64 1
%70 = load i8, ptr %69, align 1
%71 = sext i8 %70 to i32
%72 = load ptr, ptr %4, align 8
%73 = getelementptr inbounds [3 x i8], ptr %72, i64 0
%74 = getelementptr inbounds [3 x i8], ptr %73, i64 0, i64 2
%75 = load i8, ptr %74, align 1
%76 = sext i8 %75 to i32
%77 = load ptr, ptr %4, align 8
%78 = getelementptr inbounds [3 x i8], ptr %77, i64 1
%79 = getelementptr inbounds [3 x i8], ptr %78, i64 0, i64 0
%80 = load i8, ptr %79, align 1
%81 = sext i8 %80 to i32
%82 = load ptr, ptr %4, align 8
%83 = getelementptr inbounds [3 x i8], ptr %82, i64 1
%84 = getelementptr inbounds [3 x i8], ptr %83, i64 0, i64 1
%85 = load i8, ptr %84, align 1
%86 = sext i8 %85 to i32
%87 = load ptr, ptr %4, align 8
%88 = getelementptr inbounds [3 x i8], ptr %87, i64 1
%89 = getelementptr inbounds [3 x i8], ptr %88, i64 0, i64 2
%90 = load i8, ptr %89, align 1
%91 = sext i8 %90 to i32
%92 = load ptr, ptr %4, align 8
%93 = getelementptr inbounds [3 x i8], ptr %92, i64 2
%94 = getelementptr inbounds [3 x i8], ptr %93, i64 0, i64 0
%95 = load i8, ptr %94, align 1
%96 = sext i8 %95 to i32
%97 = load ptr, ptr %4, align 8
%98 = getelementptr inbounds [3 x i8], ptr %97, i64 2
%99 = getelementptr inbounds [3 x i8], ptr %98, i64 0, i64 1
%100 = load i8, ptr %99, align 1
%101 = sext i8 %100 to i32
%102 = load ptr, ptr %4, align 8
%103 = getelementptr inbounds [3 x i8], ptr %102, i64 2
%104 = getelementptr inbounds [3 x i8], ptr %103, i64 0, i64 2
%105 = load i8, ptr %104, align 1
%106 = sext i8 %105 to i32
%107 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %66, i32 noundef %71, i32 noundef %76, i32 noundef %81, i32 noundef %86, i32 noundef %91, i32 noundef %96, i32 noundef %101, i32 noundef %106)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp5juxd_ud.c'
source_filename = "/tmp/tmp5juxd_ud.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"-\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getop(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
br label %7
7: ; preds = %21, %2
%8 = load ptr, ptr %4, align 8
%9 = load i8, ptr %8, align 1
%10 = sext i8 %9 to i32
store i32 %10, ptr %6, align 4
%11 = trunc i32 %10 to i8
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds i8, ptr %12, i64 0
store i8 %11, ptr %13, align 1
%14 = sext i8 %11 to i32
%15 = icmp eq i32 %14, 32
br i1 %15, label %19, label %16
16: ; preds = %7
%17 = load i32, ptr %6, align 4
%18 = icmp eq i32 %17, 9
br label %19
19: ; preds = %16, %7
%20 = phi i1 [ true, %7 ], [ %18, %16 ]
br i1 %20, label %21, label %22
21: ; preds = %19
br label %7, !llvm.loop !6
22: ; preds = %19
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds i8, ptr %23, i64 1
store i8 0, ptr %24, align 1
%25 = load i32, ptr %6, align 4
%26 = call i64 @isdigit(i32 noundef %25)
%27 = icmp ne i64 %26, 0
br i1 %27, label %36, label %28
28: ; preds = %22
%29 = load i32, ptr %6, align 4
%30 = icmp ne i32 %29, 46
br i1 %30, label %31, label %36
31: ; preds = %28
%32 = load i32, ptr %6, align 4
%33 = icmp ne i32 %32, 45
br i1 %33, label %34, label %36
34: ; preds = %31
%35 = load i32, ptr %6, align 4
store i32 %35, ptr %3, align 4
br label %95
36: ; preds = %31, %28, %22
%37 = load i32, ptr %6, align 4
%38 = icmp eq i32 %37, 45
br i1 %38, label %39, label %53
39: ; preds = %36
br label %40
40: ; preds = %51, %39
%41 = load ptr, ptr %4, align 8
%42 = getelementptr inbounds i8, ptr %41, i32 1
store ptr %42, ptr %4, align 8
%43 = load i8, ptr %41, align 1
%44 = sext i8 %43 to i32
store i32 %44, ptr %6, align 4
%45 = trunc i32 %44 to i8
%46 = load ptr, ptr %5, align 8
%47 = getelementptr inbounds i8, ptr %46, i32 1
store ptr %47, ptr %5, align 8
store i8 %45, ptr %46, align 1
%48 = sext i8 %45 to i32
%49 = call i64 @isdigit(i32 noundef %48)
%50 = icmp ne i64 %49, 0
br i1 %50, label %51, label %52
51: ; preds = %40
br label %40, !llvm.loop !8
52: ; preds = %40
br label %53
53: ; preds = %52, %36
%54 = load i32, ptr %6, align 4
%55 = call i64 @isdigit(i32 noundef %54)
%56 = icmp ne i64 %55, 0
br i1 %56, label %57, label %71
57: ; preds = %53
br label %58
58: ; preds = %69, %57
%59 = load ptr, ptr %4, align 8
%60 = getelementptr inbounds i8, ptr %59, i32 1
store ptr %60, ptr %4, align 8
%61 = load i8, ptr %59, align 1
%62 = sext i8 %61 to i32
store i32 %62, ptr %6, align 4
%63 = trunc i32 %62 to i8
%64 = load ptr, ptr %5, align 8
%65 = getelementptr inbounds i8, ptr %64, i32 1
store ptr %65, ptr %5, align 8
store i8 %63, ptr %64, align 1
%66 = sext i8 %63 to i32
%67 = call i64 @isdigit(i32 noundef %66)
%68 = icmp ne i64 %67, 0
br i1 %68, label %69, label %70
69: ; preds = %58
br label %58, !llvm.loop !9
70: ; preds = %58
br label %71
71: ; preds = %70, %53
%72 = load i32, ptr %6, align 4
%73 = icmp eq i32 %72, 46
br i1 %73, label %74, label %88
74: ; preds = %71
br label %75
75: ; preds = %86, %74
%76 = load ptr, ptr %4, align 8
%77 = getelementptr inbounds i8, ptr %76, i32 1
store ptr %77, ptr %4, align 8
%78 = load i8, ptr %76, align 1
%79 = sext i8 %78 to i32
store i32 %79, ptr %6, align 4
%80 = trunc i32 %79 to i8
%81 = load ptr, ptr %5, align 8
%82 = getelementptr inbounds i8, ptr %81, i32 1
store ptr %82, ptr %5, align 8
store i8 %80, ptr %81, align 1
%83 = sext i8 %80 to i32
%84 = call i64 @isdigit(i32 noundef %83)
%85 = icmp ne i64 %84, 0
br i1 %85, label %86, label %87
86: ; preds = %75
br label %75, !llvm.loop !10
87: ; preds = %75
br label %88
88: ; preds = %87, %71
%89 = load ptr, ptr %5, align 8
store i8 0, ptr %89, align 1
%90 = load ptr, ptr %5, align 8
%91 = call i64 @strcmp(ptr noundef %90, ptr noundef @.str)
%92 = icmp eq i64 %91, 0
br i1 %92, label %93, label %94
93: ; preds = %88
store i32 45, ptr %3, align 4
br label %95
94: ; preds = %88
store i32 48, ptr %3, align 4
br label %95
95: ; preds = %94, %93, %34
%96 = load i32, ptr %3, align 4
ret i32 %96
}
declare i64 @isdigit(i32 noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5juxd_ud.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"-\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getop(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
br label %7
7: ; preds = %19, %2
%8 = load ptr, ptr %4, align 8
%9 = load i8, ptr %8, align 1
%10 = sext i8 %9 to i32
store i32 %10, ptr %6, align 4
%11 = trunc i32 %10 to i8
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds i8, ptr %12, i64 0
store i8 %11, ptr %13, align 1
%14 = sext i8 %11 to i32
%15 = icmp eq i32 %14, 32
br i1 %15, label %19, label %16
16: ; preds = %7
%17 = load i32, ptr %6, align 4
%18 = icmp eq i32 %17, 9
br label %19
19: ; preds = %16, %7
%20 = phi i1 [ true, %7 ], [ %18, %16 ]
br i1 %20, label %7, label %21, !llvm.loop !6
21: ; preds = %19
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds i8, ptr %22, i64 1
store i8 0, ptr %23, align 1
%24 = load i32, ptr %6, align 4
%25 = call i64 @isdigit(i32 noundef %24)
%26 = icmp ne i64 %25, 0
br i1 %26, label %35, label %27
27: ; preds = %21
%28 = load i32, ptr %6, align 4
%29 = icmp ne i32 %28, 46
br i1 %29, label %30, label %35
30: ; preds = %27
%31 = load i32, ptr %6, align 4
%32 = icmp ne i32 %31, 45
br i1 %32, label %33, label %35
33: ; preds = %30
%34 = load i32, ptr %6, align 4
store i32 %34, ptr %3, align 4
br label %91
35: ; preds = %30, %27, %21
%36 = load i32, ptr %6, align 4
%37 = icmp eq i32 %36, 45
br i1 %37, label %38, label %51
38: ; preds = %35
br label %39
39: ; preds = %39, %38
%40 = load ptr, ptr %4, align 8
%41 = getelementptr inbounds i8, ptr %40, i32 1
store ptr %41, ptr %4, align 8
%42 = load i8, ptr %40, align 1
%43 = sext i8 %42 to i32
store i32 %43, ptr %6, align 4
%44 = trunc i32 %43 to i8
%45 = load ptr, ptr %5, align 8
%46 = getelementptr inbounds i8, ptr %45, i32 1
store ptr %46, ptr %5, align 8
store i8 %44, ptr %45, align 1
%47 = sext i8 %44 to i32
%48 = call i64 @isdigit(i32 noundef %47)
%49 = icmp ne i64 %48, 0
br i1 %49, label %39, label %50, !llvm.loop !8
50: ; preds = %39
br label %51
51: ; preds = %50, %35
%52 = load i32, ptr %6, align 4
%53 = call i64 @isdigit(i32 noundef %52)
%54 = icmp ne i64 %53, 0
br i1 %54, label %55, label %68
55: ; preds = %51
br label %56
56: ; preds = %56, %55
%57 = load ptr, ptr %4, align 8
%58 = getelementptr inbounds i8, ptr %57, i32 1
store ptr %58, ptr %4, align 8
%59 = load i8, ptr %57, align 1
%60 = sext i8 %59 to i32
store i32 %60, ptr %6, align 4
%61 = trunc i32 %60 to i8
%62 = load ptr, ptr %5, align 8
%63 = getelementptr inbounds i8, ptr %62, i32 1
store ptr %63, ptr %5, align 8
store i8 %61, ptr %62, align 1
%64 = sext i8 %61 to i32
%65 = call i64 @isdigit(i32 noundef %64)
%66 = icmp ne i64 %65, 0
br i1 %66, label %56, label %67, !llvm.loop !9
67: ; preds = %56
br label %68
68: ; preds = %67, %51
%69 = load i32, ptr %6, align 4
%70 = icmp eq i32 %69, 46
br i1 %70, label %71, label %84
71: ; preds = %68
br label %72
72: ; preds = %72, %71
%73 = load ptr, ptr %4, align 8
%74 = getelementptr inbounds i8, ptr %73, i32 1
store ptr %74, ptr %4, align 8
%75 = load i8, ptr %73, align 1
%76 = sext i8 %75 to i32
store i32 %76, ptr %6, align 4
%77 = trunc i32 %76 to i8
%78 = load ptr, ptr %5, align 8
%79 = getelementptr inbounds i8, ptr %78, i32 1
store ptr %79, ptr %5, align 8
store i8 %77, ptr %78, align 1
%80 = sext i8 %77 to i32
%81 = call i64 @isdigit(i32 noundef %80)
%82 = icmp ne i64 %81, 0
br i1 %82, label %72, label %83, !llvm.loop !10
83: ; preds = %72
br label %84
84: ; preds = %83, %68
%85 = load ptr, ptr %5, align 8
store i8 0, ptr %85, align 1
%86 = load ptr, ptr %5, align 8
%87 = call i64 @strcmp(ptr noundef %86, ptr noundef @.str)
%88 = icmp eq i64 %87, 0
br i1 %88, label %89, label %90
89: ; preds = %84
store i32 45, ptr %3, align 4
br label %91
90: ; preds = %84
store i32 48, ptr %3, align 4
br label %91
91: ; preds = %90, %89, %33
%92 = load i32, ptr %3, align 4
ret i32 %92
}
declare i64 @isdigit(i32 noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpo1krwg9d.c'
source_filename = "/tmp/tmpo1krwg9d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo1krwg9d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpaoevaaex.c'
source_filename = "/tmp/tmpaoevaaex.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_cwd(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = load i32, ptr %4, align 4
%8 = call ptr @getcwd(ptr noundef %6, i32 noundef %7)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
store ptr %9, ptr %5, align 8
%10 = load ptr, ptr %3, align 8
ret ptr %10
}
declare ptr @getcwd(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/tmpaoevaaex.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_cwd(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = load i32, ptr %4, align 4
%8 = call ptr @getcwd(ptr noundef %6, i32 noundef %7)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
store ptr %9, ptr %5, align 8
%10 = load ptr, ptr %3, align 8
ret ptr %10
}
declare ptr @getcwd(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/tmpgu2lt1q3.c'
source_filename = "/tmp/tmpgu2lt1q3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@RAND_MAX = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [9 x i8] c"Pi = %f\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 double, align 8
%6 = alloca double, align 8
store i32 0, ptr %1, align 4
%7 = call i32 @time(i32 noundef 0)
%8 = call i32 @srand(i32 noundef %7)
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
store i32 0, ptr %4, align 4
br label %10
10: ; preds = %34, %0
%11 = load i32, ptr %4, align 4
%12 = load i32, ptr %3, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %37
14: ; preds = %10
%15 = call double (...) @rand()
%16 = load i64, ptr @RAND_MAX, align 8
%17 = sitofp i64 %16 to double
%18 = fdiv double %15, %17
store double %18, ptr %5, align 8
%19 = call double (...) @rand()
%20 = load i64, ptr @RAND_MAX, align 8
%21 = sitofp i64 %20 to double
%22 = fdiv double %19, %21
store double %22, ptr %6, align 8
%23 = load double, ptr %5, align 8
%24 = load double, ptr %5, align 8
%25 = load double, ptr %6, align 8
%26 = load double, ptr %6, align 8
%27 = fmul double %25, %26
%28 = call double @llvm.fmuladd.f64(double %23, double %24, double %27)
%29 = fcmp olt double %28, 1.000000e+00
br i1 %29, label %30, label %33
30: ; preds = %14
%31 = load i32, ptr %2, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %2, align 4
br label %33
33: ; preds = %30, %14
br label %34
34: ; preds = %33
%35 = load i32, ptr %4, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %4, align 4
br label %10, !llvm.loop !6
37: ; preds = %10
%38 = load i32, ptr %2, align 4
%39 = sitofp i32 %38 to double
%40 = fmul double 4.000000e+00, %39
%41 = load i32, ptr %3, align 4
%42 = sitofp i32 %41 to double
%43 = fdiv double %40, %42
%44 = fptosi double %43 to i32
%45 = call i32 @printf(ptr noundef @.str.1, i32 noundef %44)
ret i32 0
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare double @rand(...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
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" }
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/tmpgu2lt1q3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@RAND_MAX = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [9 x i8] c"Pi = %f\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 double, align 8
%6 = alloca double, align 8
store i32 0, ptr %1, align 4
%7 = call i32 @time(i32 noundef 0)
%8 = call i32 @srand(i32 noundef %7)
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
store i32 0, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = load i32, ptr %3, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph, label %39
.lr.ph: ; preds = %0
br label %13
13: ; preds = %.lr.ph, %33
%14 = call double (...) @rand()
%15 = load i64, ptr @RAND_MAX, align 8
%16 = sitofp i64 %15 to double
%17 = fdiv double %14, %16
store double %17, ptr %5, align 8
%18 = call double (...) @rand()
%19 = load i64, ptr @RAND_MAX, align 8
%20 = sitofp i64 %19 to double
%21 = fdiv double %18, %20
store double %21, ptr %6, align 8
%22 = load double, ptr %5, align 8
%23 = load double, ptr %5, align 8
%24 = load double, ptr %6, align 8
%25 = load double, ptr %6, align 8
%26 = fmul double %24, %25
%27 = call double @llvm.fmuladd.f64(double %22, double %23, double %26)
%28 = fcmp olt double %27, 1.000000e+00
br i1 %28, label %29, label %32
29: ; preds = %13
%30 = load i32, ptr %2, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %2, align 4
br label %32
32: ; preds = %29, %13
br label %33
33: ; preds = %32
%34 = load i32, ptr %4, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %4, align 4
%36 = load i32, ptr %4, align 4
%37 = load i32, ptr %3, align 4
%38 = icmp slt i32 %36, %37
br i1 %38, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %33
br label %39
39: ; preds = %._crit_edge, %0
%40 = load i32, ptr %2, align 4
%41 = sitofp i32 %40 to double
%42 = fmul double 4.000000e+00, %41
%43 = load i32, ptr %3, align 4
%44 = sitofp i32 %43 to double
%45 = fdiv double %42, %44
%46 = fptosi double %45 to i32
%47 = call i32 @printf(ptr noundef @.str.1, i32 noundef %46)
ret i32 0
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare double @rand(...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
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" }
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/tmpvbwo49s2.c'
source_filename = "/tmp/tmpvbwo49s2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @do_tests() #0 {
%1 = call i32 (...) @create_data()
%2 = call i32 (...) @change_some_references()
%3 = call i32 (...) @test_filters()
%4 = call i32 (...) @print_data()
ret void
}
declare i32 @create_data(...) #1
declare i32 @change_some_references(...) #1
declare i32 @test_filters(...) #1
declare i32 @print_data(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvbwo49s2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @do_tests() #0 {
%1 = call i32 (...) @create_data()
%2 = call i32 (...) @change_some_references()
%3 = call i32 (...) @test_filters()
%4 = call i32 (...) @print_data()
ret void
}
declare i32 @create_data(...) #1
declare i32 @change_some_references(...) #1
declare i32 @test_filters(...) #1
declare i32 @print_data(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6ooe7cp_.c'
source_filename = "/tmp/tmp6ooe7cp_.c"
target datalayout = "e-m:e-p270: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/tmp6ooe7cp_.c"
target datalayout = "e-m:e-p270: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/tmpuswoptz7.c'
source_filename = "/tmp/tmpuswoptz7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\82%s\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"Press ENTER to continue\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @CONS_Error(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 (ptr, ...) @CONS_Printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 (ptr, ...) @CONS_Printf(ptr noundef @.str.1)
br label %6
6: ; preds = %9, %1
%7 = call i32 (...) @I_GetKey()
%8 = icmp ne i32 %7, 13
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = call i32 (...) @I_OsPolling()
br label %6, !llvm.loop !6
11: ; preds = %6
ret void
}
declare i32 @CONS_Printf(ptr noundef, ...) #1
declare i32 @I_GetKey(...) #1
declare i32 @I_OsPolling(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpuswoptz7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\82%s\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"Press ENTER to continue\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @CONS_Error(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 (ptr, ...) @CONS_Printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 (ptr, ...) @CONS_Printf(ptr noundef @.str.1)
%6 = call i32 (...) @I_GetKey()
%7 = icmp ne i32 %6, 13
br i1 %7, label %.lr.ph, label %12
.lr.ph: ; preds = %1
br label %8
8: ; preds = %.lr.ph, %8
%9 = call i32 (...) @I_OsPolling()
%10 = call i32 (...) @I_GetKey()
%11 = icmp ne i32 %10, 13
br i1 %11, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %8
br label %12
12: ; preds = %._crit_edge, %1
ret void
}
declare i32 @CONS_Printf(ptr noundef, ...) #1
declare i32 @I_GetKey(...) #1
declare i32 @I_OsPolling(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpr25ptq_b.c'
source_filename = "/tmp/tmpr25ptq_b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @s_calloc(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %3, align 8
%6 = load i64, ptr %4, align 8
%7 = call ptr @calloc(i64 noundef %5, i64 noundef %6) #2
ret ptr %7
}
; Function Attrs: allocsize(0,1)
declare ptr @calloc(i64 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 = { allocsize(0,1) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { allocsize(0,1) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr25ptq_b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @s_calloc(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %3, align 8
%6 = load i64, ptr %4, align 8
%7 = call ptr @calloc(i64 noundef %5, i64 noundef %6) #2
ret ptr %7
}
; Function Attrs: allocsize(0,1)
declare ptr @calloc(i64 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 = { allocsize(0,1) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { allocsize(0,1) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4ftwaam3.c'
source_filename = "/tmp/tmp4ftwaam3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @set_cursor(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = sdiv i32 %3, 2
store i32 %4, ptr %2, align 4
%5 = call i32 @write_port_byte(i32 noundef 980, i8 noundef zeroext 15)
%6 = load i32, ptr %2, align 4
%7 = trunc i32 %6 to i8
%8 = call i32 @write_port_byte(i32 noundef 981, i8 noundef zeroext %7)
%9 = call i32 @write_port_byte(i32 noundef 980, i8 noundef zeroext 14)
%10 = load i32, ptr %2, align 4
%11 = ashr i32 %10, 8
%12 = trunc i32 %11 to i8
%13 = call i32 @write_port_byte(i32 noundef 981, i8 noundef zeroext %12)
ret void
}
declare i32 @write_port_byte(i32 noundef, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4ftwaam3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @set_cursor(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = sdiv i32 %3, 2
store i32 %4, ptr %2, align 4
%5 = call i32 @write_port_byte(i32 noundef 980, i8 noundef zeroext 15)
%6 = load i32, ptr %2, align 4
%7 = trunc i32 %6 to i8
%8 = call i32 @write_port_byte(i32 noundef 981, i8 noundef zeroext %7)
%9 = call i32 @write_port_byte(i32 noundef 980, i8 noundef zeroext 14)
%10 = load i32, ptr %2, align 4
%11 = ashr i32 %10, 8
%12 = trunc i32 %11 to i8
%13 = call i32 @write_port_byte(i32 noundef 981, i8 noundef zeroext %12)
ret void
}
declare i32 @write_port_byte(i32 noundef, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkq2cnw7_.c'
source_filename = "/tmp/tmpkq2cnw7_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vo_draw_alpha_yv12(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, i32 noundef %6) #0 {
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
store i32 %0, ptr %8, align 4
store i32 %1, ptr %9, align 4
store ptr %2, ptr %10, align 8
store ptr %3, ptr %11, align 8
store i32 %4, ptr %12, align 4
store ptr %5, ptr %13, align 8
store i32 %6, ptr %14, align 4
%15 = load i32, ptr %8, align 4
%16 = load i32, ptr %9, align 4
%17 = load ptr, ptr %10, align 8
%18 = load ptr, ptr %11, align 8
%19 = load i32, ptr %12, align 4
%20 = load ptr, ptr %13, align 8
%21 = load i32, ptr %14, align 4
%22 = call i32 @vo_draw_alpha_yv12_C(i32 noundef %15, i32 noundef %16, ptr noundef %17, ptr noundef %18, i32 noundef %19, ptr noundef %20, i32 noundef %21)
ret void
}
declare i32 @vo_draw_alpha_yv12_C(i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkq2cnw7_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vo_draw_alpha_yv12(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, i32 noundef %6) #0 {
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
store i32 %0, ptr %8, align 4
store i32 %1, ptr %9, align 4
store ptr %2, ptr %10, align 8
store ptr %3, ptr %11, align 8
store i32 %4, ptr %12, align 4
store ptr %5, ptr %13, align 8
store i32 %6, ptr %14, align 4
%15 = load i32, ptr %8, align 4
%16 = load i32, ptr %9, align 4
%17 = load ptr, ptr %10, align 8
%18 = load ptr, ptr %11, align 8
%19 = load i32, ptr %12, align 4
%20 = load ptr, ptr %13, align 8
%21 = load i32, ptr %14, align 4
%22 = call i32 @vo_draw_alpha_yv12_C(i32 noundef %15, i32 noundef %16, ptr noundef %17, ptr noundef %18, i32 noundef %19, ptr noundef %20, i32 noundef %21)
ret void
}
declare i32 @vo_draw_alpha_yv12_C(i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4fzctdgo.c'
source_filename = "/tmp/tmp4fzctdgo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @emblfree(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 @free(ptr noundef %3)
ret void
}
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/tmp4fzctdgo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @emblfree(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 @free(ptr noundef %3)
ret void
}
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/tmpg_80twfz.c'
source_filename = "/tmp/tmpg_80twfz.c"
target datalayout = "e-m:e-p270: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/tmpg_80twfz.c"
target datalayout = "e-m:e-p270: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/tmpxoxo8210.c'
source_filename = "/tmp/tmpxoxo8210.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rpc_disable_user(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
%11 = load ptr, ptr %6, align 8
%12 = load i32, ptr %7, align 4
%13 = load ptr, ptr %8, align 8
%14 = load i32, ptr %9, align 4
%15 = load ptr, ptr %10, align 8
%16 = call i32 @set_user_upload(ptr noundef %11, i32 noundef %12, ptr noundef %13, i32 noundef 1, i32 noundef %14, ptr noundef %15)
ret i32 %16
}
declare i32 @set_user_upload(ptr noundef, i32 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/tmpxoxo8210.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rpc_disable_user(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
%11 = load ptr, ptr %6, align 8
%12 = load i32, ptr %7, align 4
%13 = load ptr, ptr %8, align 8
%14 = load i32, ptr %9, align 4
%15 = load ptr, ptr %10, align 8
%16 = call i32 @set_user_upload(ptr noundef %11, i32 noundef %12, ptr noundef %13, i32 noundef 1, i32 noundef %14, ptr noundef %15)
ret i32 %16
}
declare i32 @set_user_upload(ptr noundef, i32 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/tmpysmcupi7.c'
source_filename = "/tmp/tmpysmcupi7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_string_array(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
%4 = load ptr, ptr %2, align 8
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %7
6: ; preds = %1
br label %23
7: ; preds = %1
br label %8
8: ; preds = %15, %7
%9 = load ptr, ptr %2, align 8
%10 = load i32, ptr %3, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds ptr, ptr %9, i64 %11
%13 = load ptr, ptr %12, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %23
15: ; preds = %8
%16 = load ptr, ptr %2, align 8
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %3, align 4
%19 = sext i32 %17 to i64
%20 = getelementptr inbounds ptr, ptr %16, i64 %19
%21 = load ptr, ptr %20, align 8
%22 = call i32 @printf(ptr noundef @.str, ptr noundef %21)
br label %8, !llvm.loop !6
23: ; preds = %6, %8
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpysmcupi7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_string_array(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
%4 = load ptr, ptr %2, align 8
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %7
6: ; preds = %1
br label %28
7: ; preds = %1
%8 = load ptr, ptr %2, align 8
%9 = load i32, ptr %3, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds ptr, ptr %8, i64 %10
%12 = load ptr, ptr %11, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %7
br label %14
14: ; preds = %.lr.ph, %14
%15 = load ptr, ptr %2, align 8
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %3, align 4
%18 = sext i32 %16 to i64
%19 = getelementptr inbounds ptr, ptr %15, i64 %18
%20 = load ptr, ptr %19, align 8
%21 = call i32 @printf(ptr noundef @.str, ptr noundef %20)
%22 = load ptr, ptr %2, align 8
%23 = load i32, ptr %3, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds ptr, ptr %22, i64 %24
%26 = load ptr, ptr %25, align 8
%27 = icmp ne ptr %26, null
br i1 %27, label %14, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %14
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %7
br label %28
28: ; preds = %.loopexit, %6
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpf3e6zx6b.c'
source_filename = "/tmp/tmpf3e6zx6b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"[]\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"[%d\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c", %d\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printArray(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
store i32 0, ptr %5, align 4
%6 = load i32, ptr %4, align 4
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %31
10: ; preds = %2
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds i32, ptr %11, i64 0
%13 = load i32, ptr %12, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %13)
store i32 1, ptr %5, align 4
br label %15
15: ; preds = %26, %10
%16 = load i32, ptr %5, align 4
%17 = load i32, ptr %4, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %29
19: ; preds = %15
%20 = load ptr, ptr %3, align 8
%21 = load i32, ptr %5, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %20, i64 %22
%24 = load i32, ptr %23, align 4
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %24)
br label %26
26: ; preds = %19
%27 = load i32, ptr %5, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %5, align 4
br label %15, !llvm.loop !6
29: ; preds = %15
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %31
31: ; preds = %29, %8
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf3e6zx6b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"[]\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"[%d\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c", %d\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printArray(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
store i32 0, ptr %5, align 4
%6 = load i32, ptr %4, align 4
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %33
10: ; preds = %2
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds i32, ptr %11, i64 0
%13 = load i32, ptr %12, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %13)
store i32 1, ptr %5, align 4
%15 = load i32, ptr %5, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph, label %31
.lr.ph: ; preds = %10
br label %18
18: ; preds = %.lr.ph, %25
%19 = load ptr, ptr %3, align 8
%20 = load i32, ptr %5, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, ptr %19, i64 %21
%23 = load i32, ptr %22, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %23)
br label %25
25: ; preds = %18
%26 = load i32, ptr %5, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %5, align 4
%28 = load i32, ptr %5, align 4
%29 = load i32, ptr %4, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %31
31: ; preds = %._crit_edge, %10
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %33
33: ; preds = %31, %8
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpmupp58um.c'
source_filename = "/tmp/tmpmupp58um.c"
target datalayout = "e-m:e-p270: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/tmpmupp58um.c"
target datalayout = "e-m:e-p270: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/tmphzw82y40.c'
source_filename = "/tmp/tmphzw82y40.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @twiddleFFT_8(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #0 {
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca [8 x i32], align 16
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca [4 x double], align 16
%23 = alloca [4 x double], align 16
%24 = alloca [4 x double], align 16
%25 = alloca [4 x double], align 16
%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
store i32 %0, ptr %9, align 4
store i32 %1, ptr %10, align 4
store i32 %2, ptr %11, align 4
store i32 %3, ptr %12, align 4
store ptr %4, ptr %13, align 8
store ptr %5, ptr %14, align 8
store ptr %6, ptr %15, align 8
store ptr %7, ptr %16, align 8
%31 = load i32, ptr %12, align 4
store i32 %31, ptr %20, align 4
store i32 0, ptr %18, align 4
br label %32
32: ; preds = %389, %8
%33 = load i32, ptr %18, align 4
%34 = load i32, ptr %11, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %36, label %392
36: ; preds = %32
store i32 0, ptr %19, align 4
br label %37
37: ; preds = %49, %36
%38 = load i32, ptr %19, align 4
%39 = load i32, ptr %10, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %41, label %52
41: ; preds = %37
%42 = load i32, ptr %20, align 4
%43 = load i32, ptr %19, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 %44
store i32 %42, ptr %45, align 4
%46 = load i32, ptr %20, align 4
%47 = load i32, ptr %9, align 4
%48 = add nsw i32 %46, %47
store i32 %48, ptr %20, align 4
br label %49
49: ; preds = %41
%50 = load i32, ptr %19, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %19, align 4
br label %37, !llvm.loop !6
52: ; preds = %37
%53 = load ptr, ptr %15, align 8
%54 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 0
%55 = load i32, ptr %54, align 16
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds double, ptr %53, i64 %56
%58 = load double, ptr %57, align 8
%59 = getelementptr inbounds [4 x double], ptr %22, i64 0, i64 0
store double %58, ptr %59, align 16
%60 = load ptr, ptr %16, align 8
%61 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 0
%62 = load i32, ptr %61, align 16
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds double, ptr %60, i64 %63
%65 = load double, ptr %64, align 8
%66 = getelementptr inbounds [4 x double], ptr %23, i64 0, i64 0
store double %65, ptr %66, align 16
store i32 1, ptr %21, align 4
store i32 2, ptr %19, align 4
br label %67
67: ; preds = %119, %52
%68 = load i32, ptr %19, align 4
%69 = load i32, ptr %10, align 4
%70 = icmp slt i32 %68, %69
br i1 %70, label %71, label %122
71: ; preds = %67
%72 = load ptr, ptr %15, align 8
%73 = load i32, ptr %19, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 %74
%76 = load i32, ptr %75, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds double, ptr %72, i64 %77
%79 = load double, ptr %78, align 8
store double %79, ptr %27, align 8
%80 = load ptr, ptr %16, align 8
%81 = load i32, ptr %19, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 %82
%84 = load i32, ptr %83, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds double, ptr %80, i64 %85
%87 = load double, ptr %86, align 8
store double %87, ptr %28, align 8
%88 = load ptr, ptr %13, align 8
%89 = load i32, ptr %19, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds double, ptr %88, i64 %90
%92 = load double, ptr %91, align 8
store double %92, ptr %29, align 8
%93 = load ptr, ptr %14, align 8
%94 = load i32, ptr %19, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds double, ptr %93, i64 %95
%97 = load double, ptr %96, align 8
store double %97, ptr %30, align 8
%98 = load double, ptr %29, align 8
%99 = load double, ptr %27, align 8
%100 = load double, ptr %30, align 8
%101 = load double, ptr %28, align 8
%102 = fmul double %100, %101
%103 = fneg double %102
%104 = call double @llvm.fmuladd.f64(double %98, double %99, double %103)
%105 = load i32, ptr %21, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [4 x double], ptr %22, i64 0, i64 %106
store double %104, ptr %107, align 8
%108 = load double, ptr %29, align 8
%109 = load double, ptr %28, align 8
%110 = load double, ptr %30, align 8
%111 = load double, ptr %27, align 8
%112 = fmul double %110, %111
%113 = call double @llvm.fmuladd.f64(double %108, double %109, double %112)
%114 = load i32, ptr %21, align 4
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds [4 x double], ptr %23, i64 0, i64 %115
store double %113, ptr %116, align 8
%117 = load i32, ptr %21, align 4
%118 = add nsw i32 %117, 1
store i32 %118, ptr %21, align 4
br label %119
119: ; preds = %71
%120 = load i32, ptr %19, align 4
%121 = add nsw i32 %120, 2
store i32 %121, ptr %19, align 4
br label %67, !llvm.loop !8
122: ; preds = %67
store i32 0, ptr %21, align 4
store i32 1, ptr %19, align 4
br label %123
123: ; preds = %175, %122
%124 = load i32, ptr %19, align 4
%125 = load i32, ptr %10, align 4
%126 = icmp slt i32 %124, %125
br i1 %126, label %127, label %178
127: ; preds = %123
%128 = load ptr, ptr %15, align 8
%129 = load i32, ptr %19, align 4
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 %130
%132 = load i32, ptr %131, align 4
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds double, ptr %128, i64 %133
%135 = load double, ptr %134, align 8
store double %135, ptr %27, align 8
%136 = load ptr, ptr %16, align 8
%137 = load i32, ptr %19, align 4
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 %138
%140 = load i32, ptr %139, align 4
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds double, ptr %136, i64 %141
%143 = load double, ptr %142, align 8
store double %143, ptr %28, align 8
%144 = load ptr, ptr %13, align 8
%145 = load i32, ptr %19, align 4
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds double, ptr %144, i64 %146
%148 = load double, ptr %147, align 8
store double %148, ptr %29, align 8
%149 = load ptr, ptr %14, align 8
%150 = load i32, ptr %19, align 4
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds double, ptr %149, i64 %151
%153 = load double, ptr %152, align 8
store double %153, ptr %30, align 8
%154 = load double, ptr %29, align 8
%155 = load double, ptr %27, align 8
%156 = load double, ptr %30, align 8
%157 = load double, ptr %28, align 8
%158 = fmul double %156, %157
%159 = fneg double %158
%160 = call double @llvm.fmuladd.f64(double %154, double %155, double %159)
%161 = load i32, ptr %21, align 4
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 %162
store double %160, ptr %163, align 8
%164 = load double, ptr %29, align 8
%165 = load double, ptr %28, align 8
%166 = load double, ptr %30, align 8
%167 = load double, ptr %27, align 8
%168 = fmul double %166, %167
%169 = call double @llvm.fmuladd.f64(double %164, double %165, double %168)
%170 = load i32, ptr %21, align 4
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 %171
store double %169, ptr %172, align 8
%173 = load i32, ptr %21, align 4
%174 = add nsw i32 %173, 1
store i32 %174, ptr %21, align 4
br label %175
175: ; preds = %127
%176 = load i32, ptr %19, align 4
%177 = add nsw i32 %176, 2
store i32 %177, ptr %19, align 4
br label %123, !llvm.loop !9
178: ; preds = %123
%179 = getelementptr inbounds [4 x double], ptr %22, i64 0, i64 0
%180 = getelementptr inbounds [4 x double], ptr %23, i64 0, i64 0
%181 = call i32 @dft_4(ptr noundef %179, ptr noundef %180)
%182 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 0
%183 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 0
%184 = call i32 @dft_4(ptr noundef %182, ptr noundef %183)
%185 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 1
%186 = load double, ptr %185, align 8
%187 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 1
%188 = load double, ptr %187, align 8
%189 = fadd double %186, %188
%190 = fmul double 0x3FE6A09E667F3BCD, %189
store double %190, ptr %26, align 8
%191 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 1
%192 = load double, ptr %191, align 8
%193 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 1
%194 = load double, ptr %193, align 8
%195 = fsub double %192, %194
%196 = fmul double 0x3FE6A09E667F3BCD, %195
%197 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 1
store double %196, ptr %197, align 8
%198 = load double, ptr %26, align 8
%199 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 1
store double %198, ptr %199, align 8
%200 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 2
%201 = load double, ptr %200, align 16
store double %201, ptr %26, align 8
%202 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 2
%203 = load double, ptr %202, align 16
%204 = fneg double %203
%205 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 2
store double %204, ptr %205, align 16
%206 = load double, ptr %26, align 8
%207 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 2
store double %206, ptr %207, align 16
%208 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 3
%209 = load double, ptr %208, align 8
%210 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 3
%211 = load double, ptr %210, align 8
%212 = fsub double %209, %211
%213 = fmul double 0x3FE6A09E667F3BCD, %212
store double %213, ptr %26, align 8
%214 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 3
%215 = load double, ptr %214, align 8
%216 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 3
%217 = load double, ptr %216, align 8
%218 = fadd double %215, %217
%219 = fmul double 0xBFE6A09E667F3BCD, %218
%220 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 3
store double %219, ptr %220, align 8
%221 = load double, ptr %26, align 8
%222 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 3
store double %221, ptr %222, align 8
%223 = getelementptr inbounds [4 x double], ptr %22, i64 0, i64 0
%224 = load double, ptr %223, align 16
%225 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 0
%226 = load double, ptr %225, align 16
%227 = fadd double %224, %226
%228 = load ptr, ptr %15, align 8
%229 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 0
%230 = load i32, ptr %229, align 16
%231 = sext i32 %230 to i64
%232 = getelementptr inbounds double, ptr %228, i64 %231
store double %227, ptr %232, align 8
%233 = getelementptr inbounds [4 x double], ptr %22, i64 0, i64 0
%234 = load double, ptr %233, align 16
%235 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 0
%236 = load double, ptr %235, align 16
%237 = fsub double %234, %236
%238 = load ptr, ptr %15, align 8
%239 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 4
%240 = load i32, ptr %239, align 16
%241 = sext i32 %240 to i64
%242 = getelementptr inbounds double, ptr %238, i64 %241
store double %237, ptr %242, align 8
%243 = getelementptr inbounds [4 x double], ptr %22, i64 0, i64 1
%244 = load double, ptr %243, align 8
%245 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 1
%246 = load double, ptr %245, align 8
%247 = fadd double %244, %246
%248 = load ptr, ptr %15, align 8
%249 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 1
%250 = load i32, ptr %249, align 4
%251 = sext i32 %250 to i64
%252 = getelementptr inbounds double, ptr %248, i64 %251
store double %247, ptr %252, align 8
%253 = getelementptr inbounds [4 x double], ptr %22, i64 0, i64 1
%254 = load double, ptr %253, align 8
%255 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 1
%256 = load double, ptr %255, align 8
%257 = fsub double %254, %256
%258 = load ptr, ptr %15, align 8
%259 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 5
%260 = load i32, ptr %259, align 4
%261 = sext i32 %260 to i64
%262 = getelementptr inbounds double, ptr %258, i64 %261
store double %257, ptr %262, align 8
%263 = getelementptr inbounds [4 x double], ptr %22, i64 0, i64 2
%264 = load double, ptr %263, align 16
%265 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 2
%266 = load double, ptr %265, align 16
%267 = fadd double %264, %266
%268 = load ptr, ptr %15, align 8
%269 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 2
%270 = load i32, ptr %269, align 8
%271 = sext i32 %270 to i64
%272 = getelementptr inbounds double, ptr %268, i64 %271
store double %267, ptr %272, align 8
%273 = getelementptr inbounds [4 x double], ptr %22, i64 0, i64 2
%274 = load double, ptr %273, align 16
%275 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 2
%276 = load double, ptr %275, align 16
%277 = fsub double %274, %276
%278 = load ptr, ptr %15, align 8
%279 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 6
%280 = load i32, ptr %279, align 8
%281 = sext i32 %280 to i64
%282 = getelementptr inbounds double, ptr %278, i64 %281
store double %277, ptr %282, align 8
%283 = getelementptr inbounds [4 x double], ptr %22, i64 0, i64 3
%284 = load double, ptr %283, align 8
%285 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 3
%286 = load double, ptr %285, align 8
%287 = fadd double %284, %286
%288 = load ptr, ptr %15, align 8
%289 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 3
%290 = load i32, ptr %289, align 4
%291 = sext i32 %290 to i64
%292 = getelementptr inbounds double, ptr %288, i64 %291
store double %287, ptr %292, align 8
%293 = getelementptr inbounds [4 x double], ptr %22, i64 0, i64 3
%294 = load double, ptr %293, align 8
%295 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 3
%296 = load double, ptr %295, align 8
%297 = fsub double %294, %296
%298 = load ptr, ptr %15, align 8
%299 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 7
%300 = load i32, ptr %299, align 4
%301 = sext i32 %300 to i64
%302 = getelementptr inbounds double, ptr %298, i64 %301
store double %297, ptr %302, align 8
%303 = getelementptr inbounds [4 x double], ptr %23, i64 0, i64 0
%304 = load double, ptr %303, align 16
%305 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 0
%306 = load double, ptr %305, align 16
%307 = fadd double %304, %306
%308 = load ptr, ptr %16, align 8
%309 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 0
%310 = load i32, ptr %309, align 16
%311 = sext i32 %310 to i64
%312 = getelementptr inbounds double, ptr %308, i64 %311
store double %307, ptr %312, align 8
%313 = getelementptr inbounds [4 x double], ptr %23, i64 0, i64 0
%314 = load double, ptr %313, align 16
%315 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 0
%316 = load double, ptr %315, align 16
%317 = fsub double %314, %316
%318 = load ptr, ptr %16, align 8
%319 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 4
%320 = load i32, ptr %319, align 16
%321 = sext i32 %320 to i64
%322 = getelementptr inbounds double, ptr %318, i64 %321
store double %317, ptr %322, align 8
%323 = getelementptr inbounds [4 x double], ptr %23, i64 0, i64 1
%324 = load double, ptr %323, align 8
%325 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 1
%326 = load double, ptr %325, align 8
%327 = fadd double %324, %326
%328 = load ptr, ptr %16, align 8
%329 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 1
%330 = load i32, ptr %329, align 4
%331 = sext i32 %330 to i64
%332 = getelementptr inbounds double, ptr %328, i64 %331
store double %327, ptr %332, align 8
%333 = getelementptr inbounds [4 x double], ptr %23, i64 0, i64 1
%334 = load double, ptr %333, align 8
%335 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 1
%336 = load double, ptr %335, align 8
%337 = fsub double %334, %336
%338 = load ptr, ptr %16, align 8
%339 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 5
%340 = load i32, ptr %339, align 4
%341 = sext i32 %340 to i64
%342 = getelementptr inbounds double, ptr %338, i64 %341
store double %337, ptr %342, align 8
%343 = getelementptr inbounds [4 x double], ptr %23, i64 0, i64 2
%344 = load double, ptr %343, align 16
%345 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 2
%346 = load double, ptr %345, align 16
%347 = fadd double %344, %346
%348 = load ptr, ptr %16, align 8
%349 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 2
%350 = load i32, ptr %349, align 8
%351 = sext i32 %350 to i64
%352 = getelementptr inbounds double, ptr %348, i64 %351
store double %347, ptr %352, align 8
%353 = getelementptr inbounds [4 x double], ptr %23, i64 0, i64 2
%354 = load double, ptr %353, align 16
%355 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 2
%356 = load double, ptr %355, align 16
%357 = fsub double %354, %356
%358 = load ptr, ptr %16, align 8
%359 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 6
%360 = load i32, ptr %359, align 8
%361 = sext i32 %360 to i64
%362 = getelementptr inbounds double, ptr %358, i64 %361
store double %357, ptr %362, align 8
%363 = getelementptr inbounds [4 x double], ptr %23, i64 0, i64 3
%364 = load double, ptr %363, align 8
%365 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 3
%366 = load double, ptr %365, align 8
%367 = fadd double %364, %366
%368 = load ptr, ptr %16, align 8
%369 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 3
%370 = load i32, ptr %369, align 4
%371 = sext i32 %370 to i64
%372 = getelementptr inbounds double, ptr %368, i64 %371
store double %367, ptr %372, align 8
%373 = getelementptr inbounds [4 x double], ptr %23, i64 0, i64 3
%374 = load double, ptr %373, align 8
%375 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 3
%376 = load double, ptr %375, align 8
%377 = fsub double %374, %376
%378 = load ptr, ptr %16, align 8
%379 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 7
%380 = load i32, ptr %379, align 4
%381 = sext i32 %380 to i64
%382 = getelementptr inbounds double, ptr %378, i64 %381
store double %377, ptr %382, align 8
%383 = load i32, ptr %12, align 4
%384 = load i32, ptr %9, align 4
%385 = load i32, ptr %10, align 4
%386 = mul nsw i32 %384, %385
%387 = add nsw i32 %383, %386
store i32 %387, ptr %12, align 4
%388 = load i32, ptr %12, align 4
store i32 %388, ptr %20, align 4
br label %389
389: ; preds = %178
%390 = load i32, ptr %18, align 4
%391 = add nsw i32 %390, 1
store i32 %391, ptr %18, align 4
br label %32, !llvm.loop !10
392: ; preds = %32
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare i32 @dft_4(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree 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"}
!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/tmphzw82y40.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @twiddleFFT_8(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #0 {
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca [8 x i32], align 16
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca [4 x double], align 16
%23 = alloca [4 x double], align 16
%24 = alloca [4 x double], align 16
%25 = alloca [4 x double], align 16
%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
store i32 %0, ptr %9, align 4
store i32 %1, ptr %10, align 4
store i32 %2, ptr %11, align 4
store i32 %3, ptr %12, align 4
store ptr %4, ptr %13, align 8
store ptr %5, ptr %14, align 8
store ptr %6, ptr %15, align 8
store ptr %7, ptr %16, align 8
%31 = load i32, ptr %12, align 4
store i32 %31, ptr %20, align 4
store i32 0, ptr %18, align 4
%32 = load i32, ptr %18, align 4
%33 = load i32, ptr %11, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %.lr.ph8, label %400
.lr.ph8: ; preds = %8
br label %35
35: ; preds = %.lr.ph8, %394
store i32 0, ptr %19, align 4
%36 = load i32, ptr %19, align 4
%37 = load i32, ptr %10, align 4
%38 = icmp slt i32 %36, %37
br i1 %38, label %.lr.ph, label %53
.lr.ph: ; preds = %35
br label %39
39: ; preds = %.lr.ph, %47
%40 = load i32, ptr %20, align 4
%41 = load i32, ptr %19, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 %42
store i32 %40, ptr %43, align 4
%44 = load i32, ptr %20, align 4
%45 = load i32, ptr %9, align 4
%46 = add nsw i32 %44, %45
store i32 %46, ptr %20, align 4
br label %47
47: ; preds = %39
%48 = load i32, ptr %19, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %19, align 4
%50 = load i32, ptr %19, align 4
%51 = load i32, ptr %10, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %39, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %47
br label %53
53: ; preds = %._crit_edge, %35
%54 = load ptr, ptr %15, align 8
%55 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 0
%56 = load i32, ptr %55, align 16
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds double, ptr %54, i64 %57
%59 = load double, ptr %58, align 8
%60 = getelementptr inbounds [4 x double], ptr %22, i64 0, i64 0
store double %59, ptr %60, align 16
%61 = load ptr, ptr %16, align 8
%62 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 0
%63 = load i32, ptr %62, align 16
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds double, ptr %61, i64 %64
%66 = load double, ptr %65, align 8
%67 = getelementptr inbounds [4 x double], ptr %23, i64 0, i64 0
store double %66, ptr %67, align 16
store i32 1, ptr %21, align 4
store i32 2, ptr %19, align 4
%68 = load i32, ptr %19, align 4
%69 = load i32, ptr %10, align 4
%70 = icmp slt i32 %68, %69
br i1 %70, label %.lr.ph2, label %125
.lr.ph2: ; preds = %53
br label %71
71: ; preds = %.lr.ph2, %119
%72 = load ptr, ptr %15, align 8
%73 = load i32, ptr %19, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 %74
%76 = load i32, ptr %75, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds double, ptr %72, i64 %77
%79 = load double, ptr %78, align 8
store double %79, ptr %27, align 8
%80 = load ptr, ptr %16, align 8
%81 = load i32, ptr %19, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 %82
%84 = load i32, ptr %83, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds double, ptr %80, i64 %85
%87 = load double, ptr %86, align 8
store double %87, ptr %28, align 8
%88 = load ptr, ptr %13, align 8
%89 = load i32, ptr %19, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds double, ptr %88, i64 %90
%92 = load double, ptr %91, align 8
store double %92, ptr %29, align 8
%93 = load ptr, ptr %14, align 8
%94 = load i32, ptr %19, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds double, ptr %93, i64 %95
%97 = load double, ptr %96, align 8
store double %97, ptr %30, align 8
%98 = load double, ptr %29, align 8
%99 = load double, ptr %27, align 8
%100 = load double, ptr %30, align 8
%101 = load double, ptr %28, align 8
%102 = fmul double %100, %101
%103 = fneg double %102
%104 = call double @llvm.fmuladd.f64(double %98, double %99, double %103)
%105 = load i32, ptr %21, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [4 x double], ptr %22, i64 0, i64 %106
store double %104, ptr %107, align 8
%108 = load double, ptr %29, align 8
%109 = load double, ptr %28, align 8
%110 = load double, ptr %30, align 8
%111 = load double, ptr %27, align 8
%112 = fmul double %110, %111
%113 = call double @llvm.fmuladd.f64(double %108, double %109, double %112)
%114 = load i32, ptr %21, align 4
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds [4 x double], ptr %23, i64 0, i64 %115
store double %113, ptr %116, align 8
%117 = load i32, ptr %21, align 4
%118 = add nsw i32 %117, 1
store i32 %118, ptr %21, align 4
br label %119
119: ; preds = %71
%120 = load i32, ptr %19, align 4
%121 = add nsw i32 %120, 2
store i32 %121, ptr %19, align 4
%122 = load i32, ptr %19, align 4
%123 = load i32, ptr %10, align 4
%124 = icmp slt i32 %122, %123
br i1 %124, label %71, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %119
br label %125
125: ; preds = %._crit_edge3, %53
store i32 0, ptr %21, align 4
store i32 1, ptr %19, align 4
%126 = load i32, ptr %19, align 4
%127 = load i32, ptr %10, align 4
%128 = icmp slt i32 %126, %127
br i1 %128, label %.lr.ph5, label %183
.lr.ph5: ; preds = %125
br label %129
129: ; preds = %.lr.ph5, %177
%130 = load ptr, ptr %15, align 8
%131 = load i32, ptr %19, align 4
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 %132
%134 = load i32, ptr %133, align 4
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds double, ptr %130, i64 %135
%137 = load double, ptr %136, align 8
store double %137, ptr %27, align 8
%138 = load ptr, ptr %16, align 8
%139 = load i32, ptr %19, align 4
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 %140
%142 = load i32, ptr %141, align 4
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds double, ptr %138, i64 %143
%145 = load double, ptr %144, align 8
store double %145, ptr %28, align 8
%146 = load ptr, ptr %13, align 8
%147 = load i32, ptr %19, align 4
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds double, ptr %146, i64 %148
%150 = load double, ptr %149, align 8
store double %150, ptr %29, align 8
%151 = load ptr, ptr %14, align 8
%152 = load i32, ptr %19, align 4
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds double, ptr %151, i64 %153
%155 = load double, ptr %154, align 8
store double %155, ptr %30, align 8
%156 = load double, ptr %29, align 8
%157 = load double, ptr %27, align 8
%158 = load double, ptr %30, align 8
%159 = load double, ptr %28, align 8
%160 = fmul double %158, %159
%161 = fneg double %160
%162 = call double @llvm.fmuladd.f64(double %156, double %157, double %161)
%163 = load i32, ptr %21, align 4
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 %164
store double %162, ptr %165, align 8
%166 = load double, ptr %29, align 8
%167 = load double, ptr %28, align 8
%168 = load double, ptr %30, align 8
%169 = load double, ptr %27, align 8
%170 = fmul double %168, %169
%171 = call double @llvm.fmuladd.f64(double %166, double %167, double %170)
%172 = load i32, ptr %21, align 4
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 %173
store double %171, ptr %174, align 8
%175 = load i32, ptr %21, align 4
%176 = add nsw i32 %175, 1
store i32 %176, ptr %21, align 4
br label %177
177: ; preds = %129
%178 = load i32, ptr %19, align 4
%179 = add nsw i32 %178, 2
store i32 %179, ptr %19, align 4
%180 = load i32, ptr %19, align 4
%181 = load i32, ptr %10, align 4
%182 = icmp slt i32 %180, %181
br i1 %182, label %129, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %177
br label %183
183: ; preds = %._crit_edge6, %125
%184 = getelementptr inbounds [4 x double], ptr %22, i64 0, i64 0
%185 = getelementptr inbounds [4 x double], ptr %23, i64 0, i64 0
%186 = call i32 @dft_4(ptr noundef %184, ptr noundef %185)
%187 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 0
%188 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 0
%189 = call i32 @dft_4(ptr noundef %187, ptr noundef %188)
%190 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 1
%191 = load double, ptr %190, align 8
%192 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 1
%193 = load double, ptr %192, align 8
%194 = fadd double %191, %193
%195 = fmul double 0x3FE6A09E667F3BCD, %194
store double %195, ptr %26, align 8
%196 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 1
%197 = load double, ptr %196, align 8
%198 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 1
%199 = load double, ptr %198, align 8
%200 = fsub double %197, %199
%201 = fmul double 0x3FE6A09E667F3BCD, %200
%202 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 1
store double %201, ptr %202, align 8
%203 = load double, ptr %26, align 8
%204 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 1
store double %203, ptr %204, align 8
%205 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 2
%206 = load double, ptr %205, align 16
store double %206, ptr %26, align 8
%207 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 2
%208 = load double, ptr %207, align 16
%209 = fneg double %208
%210 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 2
store double %209, ptr %210, align 16
%211 = load double, ptr %26, align 8
%212 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 2
store double %211, ptr %212, align 16
%213 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 3
%214 = load double, ptr %213, align 8
%215 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 3
%216 = load double, ptr %215, align 8
%217 = fsub double %214, %216
%218 = fmul double 0x3FE6A09E667F3BCD, %217
store double %218, ptr %26, align 8
%219 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 3
%220 = load double, ptr %219, align 8
%221 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 3
%222 = load double, ptr %221, align 8
%223 = fadd double %220, %222
%224 = fmul double 0xBFE6A09E667F3BCD, %223
%225 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 3
store double %224, ptr %225, align 8
%226 = load double, ptr %26, align 8
%227 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 3
store double %226, ptr %227, align 8
%228 = getelementptr inbounds [4 x double], ptr %22, i64 0, i64 0
%229 = load double, ptr %228, align 16
%230 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 0
%231 = load double, ptr %230, align 16
%232 = fadd double %229, %231
%233 = load ptr, ptr %15, align 8
%234 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 0
%235 = load i32, ptr %234, align 16
%236 = sext i32 %235 to i64
%237 = getelementptr inbounds double, ptr %233, i64 %236
store double %232, ptr %237, align 8
%238 = getelementptr inbounds [4 x double], ptr %22, i64 0, i64 0
%239 = load double, ptr %238, align 16
%240 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 0
%241 = load double, ptr %240, align 16
%242 = fsub double %239, %241
%243 = load ptr, ptr %15, align 8
%244 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 4
%245 = load i32, ptr %244, align 16
%246 = sext i32 %245 to i64
%247 = getelementptr inbounds double, ptr %243, i64 %246
store double %242, ptr %247, align 8
%248 = getelementptr inbounds [4 x double], ptr %22, i64 0, i64 1
%249 = load double, ptr %248, align 8
%250 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 1
%251 = load double, ptr %250, align 8
%252 = fadd double %249, %251
%253 = load ptr, ptr %15, align 8
%254 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 1
%255 = load i32, ptr %254, align 4
%256 = sext i32 %255 to i64
%257 = getelementptr inbounds double, ptr %253, i64 %256
store double %252, ptr %257, align 8
%258 = getelementptr inbounds [4 x double], ptr %22, i64 0, i64 1
%259 = load double, ptr %258, align 8
%260 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 1
%261 = load double, ptr %260, align 8
%262 = fsub double %259, %261
%263 = load ptr, ptr %15, align 8
%264 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 5
%265 = load i32, ptr %264, align 4
%266 = sext i32 %265 to i64
%267 = getelementptr inbounds double, ptr %263, i64 %266
store double %262, ptr %267, align 8
%268 = getelementptr inbounds [4 x double], ptr %22, i64 0, i64 2
%269 = load double, ptr %268, align 16
%270 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 2
%271 = load double, ptr %270, align 16
%272 = fadd double %269, %271
%273 = load ptr, ptr %15, align 8
%274 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 2
%275 = load i32, ptr %274, align 8
%276 = sext i32 %275 to i64
%277 = getelementptr inbounds double, ptr %273, i64 %276
store double %272, ptr %277, align 8
%278 = getelementptr inbounds [4 x double], ptr %22, i64 0, i64 2
%279 = load double, ptr %278, align 16
%280 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 2
%281 = load double, ptr %280, align 16
%282 = fsub double %279, %281
%283 = load ptr, ptr %15, align 8
%284 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 6
%285 = load i32, ptr %284, align 8
%286 = sext i32 %285 to i64
%287 = getelementptr inbounds double, ptr %283, i64 %286
store double %282, ptr %287, align 8
%288 = getelementptr inbounds [4 x double], ptr %22, i64 0, i64 3
%289 = load double, ptr %288, align 8
%290 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 3
%291 = load double, ptr %290, align 8
%292 = fadd double %289, %291
%293 = load ptr, ptr %15, align 8
%294 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 3
%295 = load i32, ptr %294, align 4
%296 = sext i32 %295 to i64
%297 = getelementptr inbounds double, ptr %293, i64 %296
store double %292, ptr %297, align 8
%298 = getelementptr inbounds [4 x double], ptr %22, i64 0, i64 3
%299 = load double, ptr %298, align 8
%300 = getelementptr inbounds [4 x double], ptr %24, i64 0, i64 3
%301 = load double, ptr %300, align 8
%302 = fsub double %299, %301
%303 = load ptr, ptr %15, align 8
%304 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 7
%305 = load i32, ptr %304, align 4
%306 = sext i32 %305 to i64
%307 = getelementptr inbounds double, ptr %303, i64 %306
store double %302, ptr %307, align 8
%308 = getelementptr inbounds [4 x double], ptr %23, i64 0, i64 0
%309 = load double, ptr %308, align 16
%310 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 0
%311 = load double, ptr %310, align 16
%312 = fadd double %309, %311
%313 = load ptr, ptr %16, align 8
%314 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 0
%315 = load i32, ptr %314, align 16
%316 = sext i32 %315 to i64
%317 = getelementptr inbounds double, ptr %313, i64 %316
store double %312, ptr %317, align 8
%318 = getelementptr inbounds [4 x double], ptr %23, i64 0, i64 0
%319 = load double, ptr %318, align 16
%320 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 0
%321 = load double, ptr %320, align 16
%322 = fsub double %319, %321
%323 = load ptr, ptr %16, align 8
%324 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 4
%325 = load i32, ptr %324, align 16
%326 = sext i32 %325 to i64
%327 = getelementptr inbounds double, ptr %323, i64 %326
store double %322, ptr %327, align 8
%328 = getelementptr inbounds [4 x double], ptr %23, i64 0, i64 1
%329 = load double, ptr %328, align 8
%330 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 1
%331 = load double, ptr %330, align 8
%332 = fadd double %329, %331
%333 = load ptr, ptr %16, align 8
%334 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 1
%335 = load i32, ptr %334, align 4
%336 = sext i32 %335 to i64
%337 = getelementptr inbounds double, ptr %333, i64 %336
store double %332, ptr %337, align 8
%338 = getelementptr inbounds [4 x double], ptr %23, i64 0, i64 1
%339 = load double, ptr %338, align 8
%340 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 1
%341 = load double, ptr %340, align 8
%342 = fsub double %339, %341
%343 = load ptr, ptr %16, align 8
%344 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 5
%345 = load i32, ptr %344, align 4
%346 = sext i32 %345 to i64
%347 = getelementptr inbounds double, ptr %343, i64 %346
store double %342, ptr %347, align 8
%348 = getelementptr inbounds [4 x double], ptr %23, i64 0, i64 2
%349 = load double, ptr %348, align 16
%350 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 2
%351 = load double, ptr %350, align 16
%352 = fadd double %349, %351
%353 = load ptr, ptr %16, align 8
%354 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 2
%355 = load i32, ptr %354, align 8
%356 = sext i32 %355 to i64
%357 = getelementptr inbounds double, ptr %353, i64 %356
store double %352, ptr %357, align 8
%358 = getelementptr inbounds [4 x double], ptr %23, i64 0, i64 2
%359 = load double, ptr %358, align 16
%360 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 2
%361 = load double, ptr %360, align 16
%362 = fsub double %359, %361
%363 = load ptr, ptr %16, align 8
%364 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 6
%365 = load i32, ptr %364, align 8
%366 = sext i32 %365 to i64
%367 = getelementptr inbounds double, ptr %363, i64 %366
store double %362, ptr %367, align 8
%368 = getelementptr inbounds [4 x double], ptr %23, i64 0, i64 3
%369 = load double, ptr %368, align 8
%370 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 3
%371 = load double, ptr %370, align 8
%372 = fadd double %369, %371
%373 = load ptr, ptr %16, align 8
%374 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 3
%375 = load i32, ptr %374, align 4
%376 = sext i32 %375 to i64
%377 = getelementptr inbounds double, ptr %373, i64 %376
store double %372, ptr %377, align 8
%378 = getelementptr inbounds [4 x double], ptr %23, i64 0, i64 3
%379 = load double, ptr %378, align 8
%380 = getelementptr inbounds [4 x double], ptr %25, i64 0, i64 3
%381 = load double, ptr %380, align 8
%382 = fsub double %379, %381
%383 = load ptr, ptr %16, align 8
%384 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 7
%385 = load i32, ptr %384, align 4
%386 = sext i32 %385 to i64
%387 = getelementptr inbounds double, ptr %383, i64 %386
store double %382, ptr %387, align 8
%388 = load i32, ptr %12, align 4
%389 = load i32, ptr %9, align 4
%390 = load i32, ptr %10, align 4
%391 = mul nsw i32 %389, %390
%392 = add nsw i32 %388, %391
store i32 %392, ptr %12, align 4
%393 = load i32, ptr %12, align 4
store i32 %393, ptr %20, align 4
br label %394
394: ; preds = %183
%395 = load i32, ptr %18, align 4
%396 = add nsw i32 %395, 1
store i32 %396, ptr %18, align 4
%397 = load i32, ptr %18, align 4
%398 = load i32, ptr %11, align 4
%399 = icmp slt i32 %397, %398
br i1 %399, label %35, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %394
br label %400
400: ; preds = %._crit_edge9, %8
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare i32 @dft_4(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpmiq00dea.c'
source_filename = "/tmp/tmpmiq00dea.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"timerp: %i\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"Tempo total CPU %d: %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c"Tempo total ocioso CPU %d: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print(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
%6 = load ptr, ptr %4, align 8
%7 = getelementptr inbounds i32, ptr %6, i64 1
%8 = load i32, ptr %7, align 4
%9 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %8)
store i32 0, ptr %5, align 4
br label %10
10: ; preds = %29, %2
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %11, 1
br i1 %12, label %13, label %32
13: ; preds = %10
%14 = load i32, ptr %5, align 4
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i32, ptr %15, i64 %17
%19 = load i32, ptr %18, align 4
%20 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %14, i32 noundef %19)
%21 = load i32, ptr %5, align 4
%22 = load ptr, ptr %4, align 8
%23 = load i32, ptr %5, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i32, ptr %22, i64 %24
%26 = load i32, ptr %25, align 4
%27 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %21, i32 noundef %26)
%28 = call i32 @puts(ptr noundef @.str.3)
br label %29
29: ; preds = %13
%30 = load i32, ptr %5, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %5, align 4
br label %10, !llvm.loop !6
32: ; preds = %10
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmiq00dea.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"timerp: %i\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"Tempo total CPU %d: %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c"Tempo total ocioso CPU %d: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print(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
%6 = load ptr, ptr %4, align 8
%7 = getelementptr inbounds i32, ptr %6, i64 1
%8 = load i32, ptr %7, align 4
%9 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %8)
store i32 0, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp slt i32 %10, 1
br i1 %11, label %.lr.ph, label %33
.lr.ph: ; preds = %2
br label %12
12: ; preds = %.lr.ph, %28
%13 = load i32, ptr %5, align 4
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i32, ptr %14, i64 %16
%18 = load i32, ptr %17, align 4
%19 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %13, i32 noundef %18)
%20 = load i32, ptr %5, align 4
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %5, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i32, ptr %21, i64 %23
%25 = load i32, ptr %24, align 4
%26 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %20, i32 noundef %25)
%27 = call i32 @puts(ptr noundef @.str.3)
br label %28
28: ; preds = %12
%29 = load i32, ptr %5, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %5, align 4
%31 = load i32, ptr %5, align 4
%32 = icmp slt i32 %31, 1
br i1 %32, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %33
33: ; preds = %._crit_edge, %2
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmptwd_8bh2.c'
source_filename = "/tmp/tmptwd_8bh2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Error writing msg len\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"Error writing msg\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @msg_write(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 i16, align 2
%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
%12 = trunc i32 %11 to i16
store i16 %12, ptr %8, align 2
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
%13 = load i32, ptr %5, align 4
%14 = call i32 (i32, ...) @write(i32 noundef %13, ptr noundef %8, i64 noundef 2)
%15 = sext i32 %14 to i64
%16 = icmp ult i64 %15, 2
br i1 %16, label %17, label %19
17: ; preds = %3
%18 = call i32 @perror(ptr noundef @.str)
store i32 -1, ptr %4, align 4
br label %39
19: ; preds = %3
br label %20
20: ; preds = %34, %19
%21 = load i32, ptr %10, align 4
%22 = load i16, ptr %8, align 2
%23 = zext i16 %22 to i32
%24 = icmp slt i32 %21, %23
br i1 %24, label %25, label %38
25: ; preds = %20
%26 = load i32, ptr %5, align 4
%27 = load ptr, ptr %6, align 8
%28 = load i16, ptr %8, align 2
%29 = zext i16 %28 to i32
%30 = call i32 (i32, ...) @write(i32 noundef %26, ptr noundef %27, i32 noundef %29)
store i32 %30, ptr %9, align 4
%31 = icmp slt i32 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %25
%33 = call i32 @perror(ptr noundef @.str.1)
store i32 -1, ptr %4, align 4
br label %39
34: ; preds = %25
%35 = load i32, ptr %9, align 4
%36 = load i32, ptr %10, align 4
%37 = add nsw i32 %36, %35
store i32 %37, ptr %10, align 4
br label %20, !llvm.loop !6
38: ; preds = %20
store i32 0, ptr %4, align 4
br label %39
39: ; preds = %38, %32, %17
%40 = load i32, ptr %4, align 4
ret i32 %40
}
declare i32 @write(i32 noundef, ...) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmptwd_8bh2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Error writing msg len\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"Error writing msg\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @msg_write(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 i16, align 2
%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
%12 = trunc i32 %11 to i16
store i16 %12, ptr %8, align 2
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
%13 = load i32, ptr %5, align 4
%14 = call i32 (i32, ...) @write(i32 noundef %13, ptr noundef %8, i64 noundef 2)
%15 = sext i32 %14 to i64
%16 = icmp ult i64 %15, 2
br i1 %16, label %17, label %19
17: ; preds = %3
%18 = call i32 @perror(ptr noundef @.str)
store i32 -1, ptr %4, align 4
br label %42
19: ; preds = %3
%20 = load i32, ptr %10, align 4
%21 = load i16, ptr %8, align 2
%22 = zext i16 %21 to i32
%23 = icmp slt i32 %20, %22
br i1 %23, label %.lr.ph, label %41
.lr.ph: ; preds = %19
br label %24
24: ; preds = %.lr.ph, %33
%25 = load i32, ptr %5, align 4
%26 = load ptr, ptr %6, align 8
%27 = load i16, ptr %8, align 2
%28 = zext i16 %27 to i32
%29 = call i32 (i32, ...) @write(i32 noundef %25, ptr noundef %26, i32 noundef %28)
store i32 %29, ptr %9, align 4
%30 = icmp slt i32 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %24
%32 = call i32 @perror(ptr noundef @.str.1)
store i32 -1, ptr %4, align 4
br label %42
33: ; preds = %24
%34 = load i32, ptr %9, align 4
%35 = load i32, ptr %10, align 4
%36 = add nsw i32 %35, %34
store i32 %36, ptr %10, align 4
%37 = load i32, ptr %10, align 4
%38 = load i16, ptr %8, align 2
%39 = zext i16 %38 to i32
%40 = icmp slt i32 %37, %39
br i1 %40, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %33
br label %41
41: ; preds = %._crit_edge, %19
store i32 0, ptr %4, align 4
br label %42
42: ; preds = %41, %31, %17
%43 = load i32, ptr %4, align 4
ret i32 %43
}
declare i32 @write(i32 noundef, ...) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.