llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmpd9r1fz21.c'
source_filename = "/tmp/tmpd9r1fz21.c"
target datalayout = "e-m:e-p270: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/tmpd9r1fz21.c"
target datalayout = "e-m:e-p270: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/tmp53_o4g7b.c'
source_filename = "/tmp/tmp53_o4g7b.c"
target datalayout = "e-m:e-p270: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/tmp53_o4g7b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_ihgklce.c'
source_filename = "/tmp/tmp_ihgklce.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @U_EMRINTERSECTCLIPRECT_safe(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 @core4_safe(ptr noundef %3)
ret i32 %4
}
declare i32 @core4_safe(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!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_ihgklce.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @U_EMRINTERSECTCLIPRECT_safe(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 @core4_safe(ptr noundef %3)
ret i32 %4
}
declare i32 @core4_safe(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpc7dcyki2.c'
source_filename = "/tmp/tmpc7dcyki2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bugets(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
store i32 0, ptr %10, align 4
%13 = load ptr, ptr %7, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %17
15: ; preds = %4
%16 = load ptr, ptr %7, align 8
store i32 0, ptr %16, align 4
br label %17
17: ; preds = %15, %4
%18 = load i32, ptr %8, align 4
%19 = icmp slt i32 %18, 2
br i1 %19, label %20, label %26
20: ; preds = %17
%21 = load ptr, ptr %9, align 8
%22 = icmp ne ptr %21, null
br i1 %22, label %23, label %25
23: ; preds = %20
%24 = load ptr, ptr %9, align 8
store i8 0, ptr %24, align 1
br label %25
25: ; preds = %23, %20
store i32 0, ptr %5, align 4
br label %74
26: ; preds = %17
%27 = load i32, ptr %8, align 4
%28 = add nsw i32 %27, -1
store i32 %28, ptr %8, align 4
%29 = load i32, ptr %6, align 4
%30 = call ptr @jelio_buffer(i32 noundef %29)
store ptr %30, ptr %12, align 8
br label %31
31: ; preds = %26, %63
%32 = load ptr, ptr %12, align 8
%33 = call i32 @jelio_buffer_getc(ptr noundef %32)
store i32 %33, ptr %11, align 4
%34 = load i32, ptr %11, align 4
%35 = icmp eq i32 %34, -1
br i1 %35, label %36, label %42
36: ; preds = %31
%37 = load ptr, ptr %7, align 8
%38 = icmp ne ptr %37, null
br i1 %38, label %39, label %41
39: ; preds = %36
%40 = load ptr, ptr %7, align 8
store i32 1, ptr %40, align 4
br label %41
41: ; preds = %39, %36
br label %64
42: ; preds = %31
%43 = load i32, ptr %10, align 4
%44 = load i32, ptr %8, align 4
%45 = icmp slt i32 %43, %44
br i1 %45, label %46, label %59
46: ; preds = %42
%47 = load ptr, ptr %9, align 8
%48 = icmp ne ptr %47, null
br i1 %48, label %49, label %56
49: ; preds = %46
%50 = load i32, ptr %11, align 4
%51 = trunc i32 %50 to i8
%52 = load ptr, ptr %9, align 8
%53 = load i32, ptr %10, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %52, i64 %54
store i8 %51, ptr %55, align 1
br label %56
56: ; preds = %49, %46
%57 = load i32, ptr %10, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %10, align 4
br label %59
59: ; preds = %56, %42
%60 = load i32, ptr %11, align 4
%61 = icmp eq i32 %60, 10
br i1 %61, label %62, label %63
62: ; preds = %59
br label %64
63: ; preds = %59
br label %31
64: ; preds = %62, %41
%65 = load ptr, ptr %9, align 8
%66 = icmp ne ptr %65, null
br i1 %66, label %67, label %72
67: ; preds = %64
%68 = load ptr, ptr %9, align 8
%69 = load i32, ptr %10, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i8, ptr %68, i64 %70
store i8 0, ptr %71, align 1
br label %72
72: ; preds = %67, %64
%73 = load i32, ptr %10, align 4
store i32 %73, ptr %5, align 4
br label %74
74: ; preds = %72, %25
%75 = load i32, ptr %5, align 4
ret i32 %75
}
declare ptr @jelio_buffer(i32 noundef) #1
declare i32 @jelio_buffer_getc(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc7dcyki2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bugets(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
store i32 0, ptr %10, align 4
%13 = load ptr, ptr %7, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %17
15: ; preds = %4
%16 = load ptr, ptr %7, align 8
store i32 0, ptr %16, align 4
br label %17
17: ; preds = %15, %4
%18 = load i32, ptr %8, align 4
%19 = icmp slt i32 %18, 2
br i1 %19, label %20, label %26
20: ; preds = %17
%21 = load ptr, ptr %9, align 8
%22 = icmp ne ptr %21, null
br i1 %22, label %23, label %25
23: ; preds = %20
%24 = load ptr, ptr %9, align 8
store i8 0, ptr %24, align 1
br label %25
25: ; preds = %23, %20
store i32 0, ptr %5, align 4
br label %77
26: ; preds = %17
%27 = load i32, ptr %8, align 4
%28 = add nsw i32 %27, -1
store i32 %28, ptr %8, align 4
%29 = load i32, ptr %6, align 4
%30 = call ptr @jelio_buffer(i32 noundef %29)
store ptr %30, ptr %12, align 8
%31 = load ptr, ptr %12, align 8
%32 = call i32 @jelio_buffer_getc(ptr noundef %31)
store i32 %32, ptr %11, align 4
%33 = load i32, ptr %11, align 4
%34 = icmp eq i32 %33, -1
br i1 %34, label %40, label %.lr.ph
.lr.ph: ; preds = %26
br label %46
35: ; preds = %63
%36 = load ptr, ptr %12, align 8
%37 = call i32 @jelio_buffer_getc(ptr noundef %36)
store i32 %37, ptr %11, align 4
%38 = load i32, ptr %11, align 4
%39 = icmp eq i32 %38, -1
br i1 %39, label %._crit_edge, label %46
._crit_edge: ; preds = %35
br label %40
40: ; preds = %._crit_edge, %26
%41 = load ptr, ptr %7, align 8
%42 = icmp ne ptr %41, null
br i1 %42, label %43, label %45
43: ; preds = %40
%44 = load ptr, ptr %7, align 8
store i32 1, ptr %44, align 4
br label %45
45: ; preds = %43, %40
br label %67
46: ; preds = %.lr.ph, %35
%47 = load i32, ptr %10, align 4
%48 = load i32, ptr %8, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %50, label %63
50: ; preds = %46
%51 = load ptr, ptr %9, align 8
%52 = icmp ne ptr %51, null
br i1 %52, label %53, label %60
53: ; preds = %50
%54 = load i32, ptr %11, align 4
%55 = trunc i32 %54 to i8
%56 = load ptr, ptr %9, align 8
%57 = load i32, ptr %10, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i8, ptr %56, i64 %58
store i8 %55, ptr %59, align 1
br label %60
60: ; preds = %53, %50
%61 = load i32, ptr %10, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %10, align 4
br label %63
63: ; preds = %60, %46
%64 = load i32, ptr %11, align 4
%65 = icmp eq i32 %64, 10
br i1 %65, label %66, label %35
66: ; preds = %63
br label %67
67: ; preds = %66, %45
%68 = load ptr, ptr %9, align 8
%69 = icmp ne ptr %68, null
br i1 %69, label %70, label %75
70: ; preds = %67
%71 = load ptr, ptr %9, align 8
%72 = load i32, ptr %10, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i8, ptr %71, i64 %73
store i8 0, ptr %74, align 1
br label %75
75: ; preds = %70, %67
%76 = load i32, ptr %10, align 4
store i32 %76, ptr %5, align 4
br label %77
77: ; preds = %75, %25
%78 = load i32, ptr %5, align 4
ret i32 %78
}
declare ptr @jelio_buffer(i32 noundef) #1
declare i32 @jelio_buffer_getc(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjlfxx33o.c'
source_filename = "/tmp/tmpjlfxx33o.c"
target datalayout = "e-m:e-p270: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/tmpjlfxx33o.c"
target datalayout = "e-m:e-p270: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/tmpaeux05uz.c'
source_filename = "/tmp/tmpaeux05uz.c"
target datalayout = "e-m:e-p270: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/tmpaeux05uz.c"
target datalayout = "e-m:e-p270: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/tmp11jyszeu.c'
source_filename = "/tmp/tmp11jyszeu.c"
target datalayout = "e-m:e-p270: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/tmp11jyszeu.c"
target datalayout = "e-m:e-p270: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/tmp2dayagw6.c'
source_filename = "/tmp/tmp2dayagw6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test6_Led2_targetInit__I() #0 {
%1 = call i32 (...) @test6_Y_set__E()
ret void
}
declare i32 @test6_Y_set__E(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2dayagw6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test6_Led2_targetInit__I() #0 {
%1 = call i32 (...) @test6_Y_set__E()
ret void
}
declare i32 @test6_Y_set__E(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1iewf0_s.c'
source_filename = "/tmp/tmp1iewf0_s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [16 x i8] c"%.3d/%.3d/%.3d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dumpbuf(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%16 = load i32, ptr %10, align 4
%17 = and i32 %16, 1
%18 = icmp ne i32 %17, 0
%19 = zext i1 %18 to i64
%20 = select i1 %18, i32 2, i32 0
store i32 %20, ptr %11, align 4
store i32 1, ptr %12, align 4
%21 = load i32, ptr %10, align 4
%22 = and i32 %21, 1
%23 = icmp ne i32 %22, 0
%24 = zext i1 %23 to i64
%25 = select i1 %23, i32 0, i32 2
store i32 %25, ptr %13, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %14, align 4
br label %27
27: ; preds = %85, %5
%28 = load i32, ptr %14, align 4
%29 = load i32, ptr %8, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %31, label %88
31: ; preds = %27
store i32 0, ptr %15, align 4
br label %32
32: ; preds = %80, %31
%33 = load i32, ptr %15, align 4
%34 = load i32, ptr %7, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %36, label %83
36: ; preds = %32
%37 = load ptr, ptr %6, align 8
%38 = load i32, ptr %7, align 4
%39 = load i32, ptr %14, align 4
%40 = mul nsw i32 %38, %39
%41 = load i32, ptr %15, align 4
%42 = add nsw i32 %40, %41
%43 = load i32, ptr %9, align 4
%44 = mul nsw i32 %42, %43
%45 = load i32, ptr %11, align 4
%46 = add nsw i32 %44, %45
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8, ptr %37, i64 %47
%49 = load i8, ptr %48, align 1
%50 = zext i8 %49 to i32
%51 = load ptr, ptr %6, align 8
%52 = load i32, ptr %7, align 4
%53 = load i32, ptr %14, align 4
%54 = mul nsw i32 %52, %53
%55 = load i32, ptr %15, align 4
%56 = add nsw i32 %54, %55
%57 = load i32, ptr %9, align 4
%58 = mul nsw i32 %56, %57
%59 = load i32, ptr %12, align 4
%60 = add nsw i32 %58, %59
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i8, ptr %51, i64 %61
%63 = load i8, ptr %62, align 1
%64 = zext i8 %63 to i32
%65 = load ptr, ptr %6, align 8
%66 = load i32, ptr %7, align 4
%67 = load i32, ptr %14, align 4
%68 = mul nsw i32 %66, %67
%69 = load i32, ptr %15, align 4
%70 = add nsw i32 %68, %69
%71 = load i32, ptr %9, align 4
%72 = mul nsw i32 %70, %71
%73 = load i32, ptr %13, align 4
%74 = add nsw i32 %72, %73
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i8, ptr %65, i64 %75
%77 = load i8, ptr %76, align 1
%78 = zext i8 %77 to i32
%79 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %50, i32 noundef %64, i32 noundef %78)
br label %80
80: ; preds = %36
%81 = load i32, ptr %15, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %15, align 4
br label %32, !llvm.loop !6
83: ; preds = %32
%84 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %85
85: ; preds = %83
%86 = load i32, ptr %14, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %14, align 4
br label %27, !llvm.loop !8
88: ; preds = %27
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/tmp1iewf0_s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [16 x i8] c"%.3d/%.3d/%.3d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dumpbuf(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%16 = load i32, ptr %10, align 4
%17 = and i32 %16, 1
%18 = icmp ne i32 %17, 0
%19 = zext i1 %18 to i64
%20 = select i1 %18, i32 2, i32 0
store i32 %20, ptr %11, align 4
store i32 1, ptr %12, align 4
%21 = load i32, ptr %10, align 4
%22 = and i32 %21, 1
%23 = icmp ne i32 %22, 0
%24 = zext i1 %23 to i64
%25 = select i1 %23, i32 0, i32 2
store i32 %25, ptr %13, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %14, align 4
%27 = load i32, ptr %14, align 4
%28 = load i32, ptr %8, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %.lr.ph2, label %92
.lr.ph2: ; preds = %5
br label %30
30: ; preds = %.lr.ph2, %86
store i32 0, ptr %15, align 4
%31 = load i32, ptr %15, align 4
%32 = load i32, ptr %7, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %.lr.ph, label %84
.lr.ph: ; preds = %30
br label %34
34: ; preds = %.lr.ph, %78
%35 = load ptr, ptr %6, align 8
%36 = load i32, ptr %7, align 4
%37 = load i32, ptr %14, align 4
%38 = mul nsw i32 %36, %37
%39 = load i32, ptr %15, align 4
%40 = add nsw i32 %38, %39
%41 = load i32, ptr %9, align 4
%42 = mul nsw i32 %40, %41
%43 = load i32, ptr %11, align 4
%44 = add nsw i32 %42, %43
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i8, ptr %35, i64 %45
%47 = load i8, ptr %46, align 1
%48 = zext i8 %47 to i32
%49 = load ptr, ptr %6, align 8
%50 = load i32, ptr %7, align 4
%51 = load i32, ptr %14, align 4
%52 = mul nsw i32 %50, %51
%53 = load i32, ptr %15, align 4
%54 = add nsw i32 %52, %53
%55 = load i32, ptr %9, align 4
%56 = mul nsw i32 %54, %55
%57 = load i32, ptr %12, align 4
%58 = add nsw i32 %56, %57
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8, ptr %49, i64 %59
%61 = load i8, ptr %60, align 1
%62 = zext i8 %61 to i32
%63 = load ptr, ptr %6, align 8
%64 = load i32, ptr %7, align 4
%65 = load i32, ptr %14, align 4
%66 = mul nsw i32 %64, %65
%67 = load i32, ptr %15, align 4
%68 = add nsw i32 %66, %67
%69 = load i32, ptr %9, align 4
%70 = mul nsw i32 %68, %69
%71 = load i32, ptr %13, align 4
%72 = add nsw i32 %70, %71
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i8, ptr %63, i64 %73
%75 = load i8, ptr %74, align 1
%76 = zext i8 %75 to i32
%77 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %48, i32 noundef %62, i32 noundef %76)
br label %78
78: ; preds = %34
%79 = load i32, ptr %15, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %15, align 4
%81 = load i32, ptr %15, align 4
%82 = load i32, ptr %7, align 4
%83 = icmp slt i32 %81, %82
br i1 %83, label %34, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %78
br label %84
84: ; preds = %._crit_edge, %30
%85 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %86
86: ; preds = %84
%87 = load i32, ptr %14, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %14, align 4
%89 = load i32, ptr %14, align 4
%90 = load i32, ptr %8, align 4
%91 = icmp slt i32 %89, %90
br i1 %91, label %30, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %86
br label %92
92: ; preds = %._crit_edge3, %5
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpdp8352je.c'
source_filename = "/tmp/tmpdp8352je.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"a = 1\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"a squared is: %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"a + 1 squared is: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [22 x i8] c"a + 2 squared is: %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [22 x i8] c"a + 3 squared is: %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"a + 4 squared is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = mul nsw i32 %4, %5
store i32 %6, ptr %3, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = load i32, ptr %3, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %8)
%10 = load i32, ptr %2, align 4
%11 = add nsw i32 %10, 1
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 4)
%13 = load i32, ptr %2, align 4
%14 = add nsw i32 %13, 2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef 9)
%16 = load i32, ptr %2, align 4
%17 = add nsw i32 %16, 3
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef 16)
%19 = load i32, ptr %2, align 4
%20 = add nsw i32 %19, 4
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef 25)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdp8352je.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"a = 1\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"a squared is: %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"a + 1 squared is: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [22 x i8] c"a + 2 squared is: %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [22 x i8] c"a + 3 squared is: %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"a + 4 squared is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = mul nsw i32 %4, %5
store i32 %6, ptr %3, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = load i32, ptr %3, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %8)
%10 = load i32, ptr %2, align 4
%11 = add nsw i32 %10, 1
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 4)
%13 = load i32, ptr %2, align 4
%14 = add nsw i32 %13, 2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef 9)
%16 = load i32, ptr %2, align 4
%17 = add nsw i32 %16, 3
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef 16)
%19 = load i32, ptr %2, align 4
%20 = add nsw i32 %19, 4
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef 25)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7bu277xn.c'
source_filename = "/tmp/tmp7bu277xn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isalpha.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isalpha should be 0 for 0xd7\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalpha_0xd7() #0 {
%1 = call i64 @isalpha(i32 noundef 215)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 1080, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isalpha(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/tmp7bu277xn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isalpha.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isalpha should be 0 for 0xd7\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalpha_0xd7() #0 {
%1 = call i64 @isalpha(i32 noundef 215)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 1080, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isalpha(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/tmpacemye81.c'
source_filename = "/tmp/tmpacemye81.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EBADFD = dso_local global i64 0, align 8
@IFF_NO_PI = dso_local global i32 0, align 4
@IFF_TAP = dso_local global i32 0, align 4
@IFF_TUN = dso_local global i32 0, align 4
@IFNAMSIZ = dso_local global i32 0, align 4
@O_RDWR = dso_local global i32 0, align 4
@TUNSETIFF = dso_local global i8 0, align 1
@errno = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpacemye81.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EBADFD = dso_local global i64 0, align 8
@IFF_NO_PI = dso_local global i32 0, align 4
@IFF_TAP = dso_local global i32 0, align 4
@IFF_TUN = dso_local global i32 0, align 4
@IFNAMSIZ = dso_local global i32 0, align 4
@O_RDWR = dso_local global i32 0, align 4
@TUNSETIFF = dso_local global i8 0, align 1
@errno = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpr3varo5y.c'
source_filename = "/tmp/tmpr3varo5y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @FindVal(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%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
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
br label %10
10: ; preds = %31, %3
%11 = load i32, ptr %8, align 4
%12 = icmp ne i32 %11, 0
br i1 %12, label %17, label %13
13: ; preds = %10
%14 = load i32, ptr %9, align 4
%15 = load i32, ptr %6, align 4
%16 = icmp slt i32 %14, %15
br label %17
17: ; preds = %13, %10
%18 = phi i1 [ false, %10 ], [ %16, %13 ]
br i1 %18, label %19, label %32
19: ; preds = %17
%20 = load ptr, ptr %5, align 8
%21 = load i32, ptr %9, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %20, i64 %22
%24 = load i32, ptr %23, align 4
%25 = load i32, ptr %7, align 4
%26 = icmp eq i32 %24, %25
br i1 %26, label %27, label %28
27: ; preds = %19
store i32 1, ptr %8, align 4
br label %31
28: ; preds = %19
%29 = load i32, ptr %9, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %9, align 4
br label %31
31: ; preds = %28, %27
br label %10, !llvm.loop !6
32: ; preds = %17
%33 = load i32, ptr %8, align 4
%34 = icmp ne i32 %33, 0
br i1 %34, label %35, label %40
35: ; preds = %32
%36 = load ptr, ptr %5, align 8
%37 = load i32, ptr %9, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i32, ptr %36, i64 %38
store ptr %39, ptr %4, align 8
br label %41
40: ; preds = %32
store ptr null, ptr %4, align 8
br label %41
41: ; preds = %40, %35
%42 = load ptr, ptr %4, align 8
ret ptr %42
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpr3varo5y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @FindVal(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%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
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
br label %10
10: ; preds = %31, %3
%11 = load i32, ptr %8, align 4
%12 = icmp ne i32 %11, 0
br i1 %12, label %17, label %13
13: ; preds = %10
%14 = load i32, ptr %9, align 4
%15 = load i32, ptr %6, align 4
%16 = icmp slt i32 %14, %15
br label %17
17: ; preds = %13, %10
%18 = phi i1 [ false, %10 ], [ %16, %13 ]
br i1 %18, label %19, label %32
19: ; preds = %17
%20 = load ptr, ptr %5, align 8
%21 = load i32, ptr %9, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %20, i64 %22
%24 = load i32, ptr %23, align 4
%25 = load i32, ptr %7, align 4
%26 = icmp eq i32 %24, %25
br i1 %26, label %27, label %28
27: ; preds = %19
store i32 1, ptr %8, align 4
br label %31
28: ; preds = %19
%29 = load i32, ptr %9, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %9, align 4
br label %31
31: ; preds = %28, %27
br label %10, !llvm.loop !6
32: ; preds = %17
%33 = load i32, ptr %8, align 4
%34 = icmp ne i32 %33, 0
br i1 %34, label %35, label %40
35: ; preds = %32
%36 = load ptr, ptr %5, align 8
%37 = load i32, ptr %9, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i32, ptr %36, i64 %38
store ptr %39, ptr %4, align 8
br label %41
40: ; preds = %32
store ptr null, ptr %4, align 8
br label %41
41: ; preds = %40, %35
%42 = load ptr, ptr %4, align 8
ret ptr %42
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpb4o5oxpv.c'
source_filename = "/tmp/tmpb4o5oxpv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"should not return NaN\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @benchmark() #0 {
%1 = alloca double, align 8
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca i32, align 4
%6 = call double (...) @tic()
store double %6, ptr %4, align 8
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %21, %0
%8 = load i32, ptr %5, align 4
%9 = icmp slt i32 %8, 1000000
br i1 %9, label %10, label %24
10: ; preds = %7
%11 = call double (...) @rand_double()
%12 = call double @llvm.fmuladd.f64(double 1.000000e+03, double %11, double -0.000000e+00)
store double %12, ptr %2, align 8
%13 = load double, ptr %2, align 8
%14 = call double @log2(double noundef %13) #4
store double %14, ptr %3, align 8
%15 = load double, ptr %3, align 8
%16 = load double, ptr %3, align 8
%17 = fcmp une double %15, %16
br i1 %17, label %18, label %20
18: ; preds = %10
%19 = call i32 @printf(ptr noundef @.str)
br label %24
20: ; preds = %10
br label %21
21: ; preds = %20
%22 = load i32, ptr %5, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %5, align 4
br label %7, !llvm.loop !6
24: ; preds = %18, %7
%25 = call double (...) @tic()
%26 = load double, ptr %4, align 8
%27 = fsub double %25, %26
store double %27, ptr %1, align 8
%28 = load double, ptr %3, align 8
%29 = load double, ptr %3, align 8
%30 = fcmp une double %28, %29
br i1 %30, label %31, label %33
31: ; preds = %24
%32 = call i32 @printf(ptr noundef @.str)
br label %33
33: ; preds = %31, %24
%34 = load double, ptr %1, align 8
ret double %34
}
declare double @tic(...) #1
declare double @rand_double(...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
; Function Attrs: nounwind
declare double @log2(double noundef) #3
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb4o5oxpv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"should not return NaN\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @benchmark() #0 {
%1 = alloca double, align 8
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca i32, align 4
%6 = call double (...) @tic()
store double %6, ptr %4, align 8
store i32 0, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = icmp slt i32 %7, 1000000
br i1 %8, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %20
%10 = call double (...) @rand_double()
%11 = call double @llvm.fmuladd.f64(double 1.000000e+03, double %10, double -0.000000e+00)
store double %11, ptr %2, align 8
%12 = load double, ptr %2, align 8
%13 = call double @log2(double noundef %12) #4
store double %13, ptr %3, align 8
%14 = load double, ptr %3, align 8
%15 = load double, ptr %3, align 8
%16 = fcmp une double %14, %15
br i1 %16, label %17, label %19
17: ; preds = %9
%18 = call i32 @printf(ptr noundef @.str)
br label %25
19: ; preds = %9
br label %20
20: ; preds = %19
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %5, align 4
%23 = load i32, ptr %5, align 4
%24 = icmp slt i32 %23, 1000000
br i1 %24, label %9, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %20
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %0
br label %25
25: ; preds = %.loopexit, %17
%26 = call double (...) @tic()
%27 = load double, ptr %4, align 8
%28 = fsub double %26, %27
store double %28, ptr %1, align 8
%29 = load double, ptr %3, align 8
%30 = load double, ptr %3, align 8
%31 = fcmp une double %29, %30
br i1 %31, label %32, label %34
32: ; preds = %25
%33 = call i32 @printf(ptr noundef @.str)
br label %34
34: ; preds = %32, %25
%35 = load double, ptr %1, align 8
ret double %35
}
declare double @tic(...) #1
declare double @rand_double(...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
; Function Attrs: nounwind
declare double @log2(double noundef) #3
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp2sj3674z.c'
source_filename = "/tmp/tmp2sj3674z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sigfillset(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i32, ptr @EINVAL, align 4
%8 = call i32 @__set_errno(i32 noundef %7)
store i32 -1, ptr %2, align 4
br label %12
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = call i32 @memset(ptr noundef %10, i32 noundef 255, i32 noundef 4)
store i32 0, ptr %2, align 4
br label %12
12: ; preds = %9, %6
%13 = load i32, ptr %2, align 4
ret i32 %13
}
declare i32 @__set_errno(i32 noundef) #1
declare i32 @memset(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/tmp2sj3674z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sigfillset(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i32, ptr @EINVAL, align 4
%8 = call i32 @__set_errno(i32 noundef %7)
store i32 -1, ptr %2, align 4
br label %12
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = call i32 @memset(ptr noundef %10, i32 noundef 255, i32 noundef 4)
store i32 0, ptr %2, align 4
br label %12
12: ; preds = %9, %6
%13 = load i32, ptr %2, align 4
ret i32 %13
}
declare i32 @__set_errno(i32 noundef) #1
declare i32 @memset(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/tmp0ntk1c0r.c'
source_filename = "/tmp/tmp0ntk1c0r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PATH_MAX = 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/tmp0ntk1c0r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PATH_MAX = 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/tmpleey7c4w.c'
source_filename = "/tmp/tmpleey7c4w.c"
target datalayout = "e-m:e-p270: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.vector = private unnamed_addr constant [6 x i32] [i32 20, i32 12, i32 7, i32 2, i32 10, i32 35], align 16
@.str = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [6 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.vector, i64 24, i1 false)
store i32 6, ptr %3, align 4
store i32 35, ptr %4, align 4
%6 = getelementptr inbounds [6 x i32], ptr %2, i64 0, i64 0
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %4, align 4
%9 = call i32 @countingSort(ptr noundef %6, i32 noundef %7, i32 noundef %8)
store i32 0, ptr %5, align 4
br label %10
10: ; preds = %20, %0
%11 = load i32, ptr %5, align 4
%12 = load i32, ptr %3, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %23
14: ; preds = %10
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [6 x i32], ptr %2, i64 0, i64 %16
%18 = load i32, ptr %17, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %18)
br label %20
20: ; preds = %14
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %5, align 4
br label %10, !llvm.loop !6
23: ; preds = %10
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @countingSort(ptr noundef, i32 noundef, i32 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: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpleey7c4w.c"
target datalayout = "e-m:e-p270: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.vector = private unnamed_addr constant [6 x i32] [i32 20, i32 12, i32 7, i32 2, i32 10, i32 35], align 16
@.str = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [6 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.vector, i64 24, i1 false)
store i32 6, ptr %3, align 4
store i32 35, ptr %4, align 4
%6 = getelementptr inbounds [6 x i32], ptr %2, i64 0, i64 0
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %4, align 4
%9 = call i32 @countingSort(ptr noundef %6, i32 noundef %7, i32 noundef %8)
store i32 0, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr %3, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph, label %25
.lr.ph: ; preds = %0
br label %13
13: ; preds = %.lr.ph, %19
%14 = load i32, ptr %5, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [6 x i32], ptr %2, i64 0, i64 %15
%17 = load i32, ptr %16, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %17)
br label %19
19: ; preds = %13
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %5, align 4
%22 = load i32, ptr %5, align 4
%23 = load i32, ptr %3, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %25
25: ; preds = %._crit_edge, %0
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @countingSort(ptr noundef, i32 noundef, i32 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: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpxvum2xsc.c'
source_filename = "/tmp/tmpxvum2xsc.c"
target datalayout = "e-m:e-p270: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/tmpxvum2xsc.c"
target datalayout = "e-m:e-p270: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/tmplf7wi2ka.c'
source_filename = "/tmp/tmplf7wi2ka.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [57 x i8] c"fibo[9] computed as return value should be equal to 55.\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 @fibo(i32 noundef 9)
store i32 %3, ptr %2, align 4
%4 = call i32 @print_str(ptr noundef @.str)
%5 = load i32, ptr %2, align 4
ret i32 %5
}
declare i32 @fibo(i32 noundef) #1
declare i32 @print_str(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplf7wi2ka.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [57 x i8] c"fibo[9] computed as return value should be equal to 55.\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 @fibo(i32 noundef 9)
store i32 %3, ptr %2, align 4
%4 = call i32 @print_str(ptr noundef @.str)
%5 = load i32, ptr %2, align 4
ret i32 %5
}
declare i32 @fibo(i32 noundef) #1
declare i32 @print_str(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdcfxz6kg.c'
source_filename = "/tmp/tmpdcfxz6kg.c"
target datalayout = "e-m:e-p270: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_SET = 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/tmpdcfxz6kg.c"
target datalayout = "e-m:e-p270: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_SET = 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/tmpi5n53gy9.c'
source_filename = "/tmp/tmpi5n53gy9.c"
target datalayout = "e-m:e-p270: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/tmpi5n53gy9.c"
target datalayout = "e-m:e-p270: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/tmpx4zruw0f.c'
source_filename = "/tmp/tmpx4zruw0f.c"
target datalayout = "e-m:e-p270: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/tmpx4zruw0f.c"
target datalayout = "e-m:e-p270: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/tmpwrs380xe.c'
source_filename = "/tmp/tmpwrs380xe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGINT = dso_local global i32 0, align 4
@SIGTSTP = dso_local global i32 0, align 4
@SIG_BLOCK = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [12 x i8] c"sigprocmask\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @setup_job_handler() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 @sigemptyset(ptr noundef %1)
%4 = load i32, ptr @SIGINT, align 4
%5 = call i32 @sigaddset(ptr noundef %1, i32 noundef %4)
%6 = load i32, ptr @SIGTSTP, align 4
%7 = call i32 @sigaddset(ptr noundef %1, i32 noundef %6)
%8 = load i32, ptr @SIG_BLOCK, align 4
%9 = call i32 @sigprocmask(i32 noundef %8, ptr noundef %1, ptr noundef %2)
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %13
11: ; preds = %0
%12 = call i32 @perror(ptr noundef @.str)
br label %13
13: ; preds = %11, %0
%14 = call i32 (...) @setup_zombier_cleaner()
ret void
}
declare i32 @sigemptyset(ptr noundef) #1
declare i32 @sigaddset(ptr noundef, i32 noundef) #1
declare i32 @sigprocmask(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @setup_zombier_cleaner(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwrs380xe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGINT = dso_local global i32 0, align 4
@SIGTSTP = dso_local global i32 0, align 4
@SIG_BLOCK = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [12 x i8] c"sigprocmask\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @setup_job_handler() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 @sigemptyset(ptr noundef %1)
%4 = load i32, ptr @SIGINT, align 4
%5 = call i32 @sigaddset(ptr noundef %1, i32 noundef %4)
%6 = load i32, ptr @SIGTSTP, align 4
%7 = call i32 @sigaddset(ptr noundef %1, i32 noundef %6)
%8 = load i32, ptr @SIG_BLOCK, align 4
%9 = call i32 @sigprocmask(i32 noundef %8, ptr noundef %1, ptr noundef %2)
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %13
11: ; preds = %0
%12 = call i32 @perror(ptr noundef @.str)
br label %13
13: ; preds = %11, %0
%14 = call i32 (...) @setup_zombier_cleaner()
ret void
}
declare i32 @sigemptyset(ptr noundef) #1
declare i32 @sigaddset(ptr noundef, i32 noundef) #1
declare i32 @sigprocmask(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @setup_zombier_cleaner(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3tlpmuob.c'
source_filename = "/tmp/tmp3tlpmuob.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@RAND_MAX = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @random_gaussian(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
br label %8
8: ; preds = %33, %2
%9 = call i64 (...) @rand()
%10 = sitofp i64 %9 to double
%11 = load double, ptr @RAND_MAX, align 8
%12 = fdiv double %10, %11
store double %12, ptr %5, align 8
%13 = call i64 (...) @rand()
%14 = sitofp i64 %13 to double
%15 = load double, ptr @RAND_MAX, align 8
%16 = fdiv double %14, %15
store double %16, ptr %6, align 8
%17 = load double, ptr %5, align 8
%18 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %17, double -1.000000e+00)
store double %18, ptr %5, align 8
%19 = load double, ptr %6, align 8
%20 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %19, double -1.000000e+00)
store double %20, ptr %6, align 8
%21 = load double, ptr %5, align 8
%22 = load double, ptr %5, align 8
%23 = load double, ptr %6, align 8
%24 = load double, ptr %6, align 8
%25 = fmul double %23, %24
%26 = call double @llvm.fmuladd.f64(double %21, double %22, double %25)
store double %26, ptr %7, align 8
br label %27
27: ; preds = %8
%28 = load double, ptr %7, align 8
%29 = fcmp oge double %28, 1.000000e+00
br i1 %29, label %33, label %30
30: ; preds = %27
%31 = load double, ptr %7, align 8
%32 = fcmp oeq double %31, 0.000000e+00
br label %33
33: ; preds = %30, %27
%34 = phi i1 [ true, %27 ], [ %32, %30 ]
br i1 %34, label %8, label %35, !llvm.loop !6
35: ; preds = %33
%36 = load double, ptr %7, align 8
%37 = call double @log(double noundef %36) #4
%38 = fmul double -2.000000e+00, %37
%39 = load double, ptr %7, align 8
%40 = fdiv double %38, %39
%41 = call double @sqrt(double noundef %40) #4
store double %41, ptr %7, align 8
%42 = load double, ptr %5, align 8
%43 = load double, ptr %7, align 8
%44 = fmul double %42, %43
%45 = load ptr, ptr %3, align 8
store double %44, ptr %45, align 8
%46 = load double, ptr %6, align 8
%47 = load double, ptr %7, align 8
%48 = fmul double %46, %47
%49 = load ptr, ptr %4, align 8
store double %48, ptr %49, align 8
ret void
}
declare i64 @rand(...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
; Function Attrs: nounwind
declare double @sqrt(double noundef) #3
; Function Attrs: nounwind
declare double @log(double noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3tlpmuob.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@RAND_MAX = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @random_gaussian(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
br label %8
8: ; preds = %33, %2
%9 = call i64 (...) @rand()
%10 = sitofp i64 %9 to double
%11 = load double, ptr @RAND_MAX, align 8
%12 = fdiv double %10, %11
store double %12, ptr %5, align 8
%13 = call i64 (...) @rand()
%14 = sitofp i64 %13 to double
%15 = load double, ptr @RAND_MAX, align 8
%16 = fdiv double %14, %15
store double %16, ptr %6, align 8
%17 = load double, ptr %5, align 8
%18 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %17, double -1.000000e+00)
store double %18, ptr %5, align 8
%19 = load double, ptr %6, align 8
%20 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %19, double -1.000000e+00)
store double %20, ptr %6, align 8
%21 = load double, ptr %5, align 8
%22 = load double, ptr %5, align 8
%23 = load double, ptr %6, align 8
%24 = load double, ptr %6, align 8
%25 = fmul double %23, %24
%26 = call double @llvm.fmuladd.f64(double %21, double %22, double %25)
store double %26, ptr %7, align 8
br label %27
27: ; preds = %8
%28 = load double, ptr %7, align 8
%29 = fcmp oge double %28, 1.000000e+00
br i1 %29, label %33, label %30
30: ; preds = %27
%31 = load double, ptr %7, align 8
%32 = fcmp oeq double %31, 0.000000e+00
br label %33
33: ; preds = %30, %27
%34 = phi i1 [ true, %27 ], [ %32, %30 ]
br i1 %34, label %8, label %35, !llvm.loop !6
35: ; preds = %33
%36 = load double, ptr %7, align 8
%37 = call double @log(double noundef %36) #4
%38 = fmul double -2.000000e+00, %37
%39 = load double, ptr %7, align 8
%40 = fdiv double %38, %39
%41 = call double @sqrt(double noundef %40) #4
store double %41, ptr %7, align 8
%42 = load double, ptr %5, align 8
%43 = load double, ptr %7, align 8
%44 = fmul double %42, %43
%45 = load ptr, ptr %3, align 8
store double %44, ptr %45, align 8
%46 = load double, ptr %6, align 8
%47 = load double, ptr %7, align 8
%48 = fmul double %46, %47
%49 = load ptr, ptr %4, align 8
store double %48, ptr %49, align 8
ret void
}
declare i64 @rand(...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
; Function Attrs: nounwind
declare double @sqrt(double noundef) #3
; Function Attrs: nounwind
declare double @log(double noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp8q10rndb.c'
source_filename = "/tmp/tmp8q10rndb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local x86_fp80 @sqrtl(x86_fp80 noundef %0) #0 {
%2 = alloca x86_fp80, align 16
store x86_fp80 %0, ptr %2, align 16
%3 = load x86_fp80, ptr %2, align 16
%4 = call i32 @logl(x86_fp80 noundef %3)
%5 = sdiv i32 %4, 2
%6 = call x86_fp80 @expl(i32 noundef %5)
ret x86_fp80 %6
}
declare x86_fp80 @expl(i32 noundef) #1
declare i32 @logl(x86_fp80 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8q10rndb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local x86_fp80 @sqrtl(x86_fp80 noundef %0) #0 {
%2 = alloca x86_fp80, align 16
store x86_fp80 %0, ptr %2, align 16
%3 = load x86_fp80, ptr %2, align 16
%4 = call i32 @logl(x86_fp80 noundef %3)
%5 = sdiv i32 %4, 2
%6 = call x86_fp80 @expl(i32 noundef %5)
ret x86_fp80 %6
}
declare x86_fp80 @expl(i32 noundef) #1
declare i32 @logl(x86_fp80 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpk07a13gv.c'
source_filename = "/tmp/tmpk07a13gv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"Yow!!! Are we having fun yet?!?\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"write\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @write_to_server(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i64 @strlen(ptr noundef @.str)
%6 = add nsw i64 %5, 1
%7 = call i32 @write(i32 noundef %4, ptr noundef @.str, i64 noundef %6)
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %1
%11 = call i32 @perror(ptr noundef @.str.1)
%12 = load i32, ptr @EXIT_FAILURE, align 4
%13 = call i32 @exit(i32 noundef %12) #3
unreachable
14: ; preds = %1
ret void
}
declare i32 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk07a13gv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"Yow!!! Are we having fun yet?!?\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"write\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @write_to_server(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i64 @strlen(ptr noundef @.str)
%6 = add nsw i64 %5, 1
%7 = call i32 @write(i32 noundef %4, ptr noundef @.str, i64 noundef %6)
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %1
%11 = call i32 @perror(ptr noundef @.str.1)
%12 = load i32, ptr @EXIT_FAILURE, align 4
%13 = call i32 @exit(i32 noundef %12) #3
unreachable
14: ; preds = %1
ret void
}
declare i32 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbt0o8vl5.c'
source_filename = "/tmp/tmpbt0o8vl5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @logic_byte_shift_left(i8 noundef zeroext %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = alloca i8, align 1
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store i8 %0, ptr %4, align 1
store i64 %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %6, align 8
%9 = call i32 @assert(ptr noundef %8)
store i32 0, ptr %7, align 4
%10 = load ptr, ptr %6, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %13, label %12
12: ; preds = %3
store i32 2, ptr %7, align 4
br label %21
13: ; preds = %3
%14 = load i8, ptr %4, align 1
%15 = zext i8 %14 to i32
%16 = load i64, ptr %5, align 8
%17 = trunc i64 %16 to i32
%18 = shl i32 %15, %17
%19 = trunc i32 %18 to i8
%20 = load ptr, ptr %6, align 8
store i8 %19, ptr %20, align 1
br label %21
21: ; preds = %13, %12
%22 = load i32, ptr %7, align 4
ret i32 %22
}
declare i32 @assert(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbt0o8vl5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @logic_byte_shift_left(i8 noundef zeroext %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = alloca i8, align 1
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store i8 %0, ptr %4, align 1
store i64 %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %6, align 8
%9 = call i32 @assert(ptr noundef %8)
store i32 0, ptr %7, align 4
%10 = load ptr, ptr %6, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %13, label %12
12: ; preds = %3
store i32 2, ptr %7, align 4
br label %21
13: ; preds = %3
%14 = load i8, ptr %4, align 1
%15 = zext i8 %14 to i32
%16 = load i64, ptr %5, align 8
%17 = trunc i64 %16 to i32
%18 = shl i32 %15, %17
%19 = trunc i32 %18 to i8
%20 = load ptr, ptr %6, align 8
store i8 %19, ptr %20, align 1
br label %21
21: ; preds = %13, %12
%22 = load i32, ptr %7, align 4
ret i32 %22
}
declare i32 @assert(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE 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_8o62fra.c'
source_filename = "/tmp/tmp_8o62fra.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @snos_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 @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/tmp_8o62fra.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @snos_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 @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/tmpnqgvv6n_.c'
source_filename = "/tmp/tmpnqgvv6n_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read_raw_varint32(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i8, align 1
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%10 = load ptr, ptr %6, align 8
%11 = load i32, ptr %7, align 4
%12 = call i32 @read_raw_byte(ptr noundef %8, ptr noundef %10, i32 noundef %11)
store i32 %12, ptr %7, align 4
%13 = load i8, ptr %8, align 1
%14 = sext i8 %13 to i32
%15 = icmp sge i32 %14, 0
br i1 %15, label %16, label %21
16: ; preds = %3
%17 = load i8, ptr %8, align 1
%18 = sext i8 %17 to i64
%19 = load ptr, ptr %5, align 8
store i64 %18, ptr %19, align 8
%20 = load i32, ptr %7, align 4
store i32 %20, ptr %4, align 4
br label %129
21: ; preds = %3
%22 = load i8, ptr %8, align 1
%23 = sext i8 %22 to i32
%24 = and i32 %23, 127
%25 = sext i32 %24 to i64
%26 = load ptr, ptr %5, align 8
store i64 %25, ptr %26, align 8
%27 = load ptr, ptr %6, align 8
%28 = load i32, ptr %7, align 4
%29 = call i32 @read_raw_byte(ptr noundef %8, ptr noundef %27, i32 noundef %28)
store i32 %29, ptr %7, align 4
%30 = load i8, ptr %8, align 1
%31 = sext i8 %30 to i32
%32 = icmp sge i32 %31, 0
br i1 %32, label %33, label %41
33: ; preds = %21
%34 = load i8, ptr %8, align 1
%35 = sext i8 %34 to i32
%36 = shl i32 %35, 7
%37 = sext i32 %36 to i64
%38 = load ptr, ptr %5, align 8
%39 = load i64, ptr %38, align 8
%40 = or i64 %39, %37
store i64 %40, ptr %38, align 8
br label %127
41: ; preds = %21
%42 = load i8, ptr %8, align 1
%43 = sext i8 %42 to i32
%44 = and i32 %43, 127
%45 = shl i32 %44, 7
%46 = sext i32 %45 to i64
%47 = load ptr, ptr %5, align 8
%48 = load i64, ptr %47, align 8
%49 = or i64 %48, %46
store i64 %49, ptr %47, align 8
%50 = load ptr, ptr %6, align 8
%51 = load i32, ptr %7, align 4
%52 = call i32 @read_raw_byte(ptr noundef %8, ptr noundef %50, i32 noundef %51)
store i32 %52, ptr %7, align 4
%53 = load i8, ptr %8, align 1
%54 = sext i8 %53 to i32
%55 = icmp sge i32 %54, 0
br i1 %55, label %56, label %64
56: ; preds = %41
%57 = load i8, ptr %8, align 1
%58 = sext i8 %57 to i32
%59 = shl i32 %58, 14
%60 = sext i32 %59 to i64
%61 = load ptr, ptr %5, align 8
%62 = load i64, ptr %61, align 8
%63 = or i64 %62, %60
store i64 %63, ptr %61, align 8
br label %126
64: ; preds = %41
%65 = load i8, ptr %8, align 1
%66 = sext i8 %65 to i32
%67 = and i32 %66, 127
%68 = shl i32 %67, 14
%69 = sext i32 %68 to i64
%70 = load ptr, ptr %5, align 8
%71 = load i64, ptr %70, align 8
%72 = or i64 %71, %69
store i64 %72, ptr %70, align 8
%73 = load ptr, ptr %6, align 8
%74 = load i32, ptr %7, align 4
%75 = call i32 @read_raw_byte(ptr noundef %8, ptr noundef %73, i32 noundef %74)
store i32 %75, ptr %7, align 4
%76 = load i8, ptr %8, align 1
%77 = sext i8 %76 to i32
%78 = icmp sge i32 %77, 0
br i1 %78, label %79, label %86
79: ; preds = %64
%80 = load i8, ptr %8, align 1
%81 = sext i8 %80 to i64
%82 = shl i64 %81, 21
%83 = load ptr, ptr %5, align 8
%84 = load i64, ptr %83, align 8
%85 = or i64 %84, %82
store i64 %85, ptr %83, align 8
br label %125
86: ; preds = %64
%87 = load i8, ptr %8, align 1
%88 = sext i8 %87 to i64
%89 = and i64 %88, 127
%90 = shl i64 %89, 21
%91 = load ptr, ptr %5, align 8
%92 = load i64, ptr %91, align 8
%93 = or i64 %92, %90
store i64 %93, ptr %91, align 8
%94 = load ptr, ptr %6, align 8
%95 = load i32, ptr %7, align 4
%96 = call i32 @read_raw_byte(ptr noundef %8, ptr noundef %94, i32 noundef %95)
store i32 %96, ptr %7, align 4
%97 = load i8, ptr %8, align 1
%98 = sext i8 %97 to i64
%99 = shl i64 %98, 28
%100 = load ptr, ptr %5, align 8
%101 = load i64, ptr %100, align 8
%102 = or i64 %101, %99
store i64 %102, ptr %100, align 8
%103 = load i8, ptr %8, align 1
%104 = sext i8 %103 to i32
%105 = icmp slt i32 %104, 0
br i1 %105, label %106, label %124
106: ; preds = %86
store i32 0, ptr %9, align 4
br label %107
107: ; preds = %120, %106
%108 = load i32, ptr %9, align 4
%109 = icmp slt i32 %108, 5
br i1 %109, label %110, label %123
110: ; preds = %107
%111 = load ptr, ptr %6, align 8
%112 = load i32, ptr %7, align 4
%113 = call i32 @read_raw_byte(ptr noundef %8, ptr noundef %111, i32 noundef %112)
store i32 %113, ptr %7, align 4
%114 = load i8, ptr %8, align 1
%115 = sext i8 %114 to i32
%116 = icmp sge i32 %115, 0
br i1 %116, label %117, label %119
117: ; preds = %110
%118 = load i32, ptr %7, align 4
store i32 %118, ptr %4, align 4
br label %129
119: ; preds = %110
br label %120
120: ; preds = %119
%121 = load i32, ptr %9, align 4
%122 = add nsw i32 %121, 1
store i32 %122, ptr %9, align 4
br label %107, !llvm.loop !6
123: ; preds = %107
br label %124
124: ; preds = %123, %86
br label %125
125: ; preds = %124, %79
br label %126
126: ; preds = %125, %56
br label %127
127: ; preds = %126, %33
%128 = load i32, ptr %7, align 4
store i32 %128, ptr %4, align 4
br label %129
129: ; preds = %127, %117, %16
%130 = load i32, ptr %4, align 4
ret i32 %130
}
declare i32 @read_raw_byte(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/tmpnqgvv6n_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read_raw_varint32(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i8, align 1
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%10 = load ptr, ptr %6, align 8
%11 = load i32, ptr %7, align 4
%12 = call i32 @read_raw_byte(ptr noundef %8, ptr noundef %10, i32 noundef %11)
store i32 %12, ptr %7, align 4
%13 = load i8, ptr %8, align 1
%14 = sext i8 %13 to i32
%15 = icmp sge i32 %14, 0
br i1 %15, label %16, label %21
16: ; preds = %3
%17 = load i8, ptr %8, align 1
%18 = sext i8 %17 to i64
%19 = load ptr, ptr %5, align 8
store i64 %18, ptr %19, align 8
%20 = load i32, ptr %7, align 4
store i32 %20, ptr %4, align 4
br label %130
21: ; preds = %3
%22 = load i8, ptr %8, align 1
%23 = sext i8 %22 to i32
%24 = and i32 %23, 127
%25 = sext i32 %24 to i64
%26 = load ptr, ptr %5, align 8
store i64 %25, ptr %26, align 8
%27 = load ptr, ptr %6, align 8
%28 = load i32, ptr %7, align 4
%29 = call i32 @read_raw_byte(ptr noundef %8, ptr noundef %27, i32 noundef %28)
store i32 %29, ptr %7, align 4
%30 = load i8, ptr %8, align 1
%31 = sext i8 %30 to i32
%32 = icmp sge i32 %31, 0
br i1 %32, label %33, label %41
33: ; preds = %21
%34 = load i8, ptr %8, align 1
%35 = sext i8 %34 to i32
%36 = shl i32 %35, 7
%37 = sext i32 %36 to i64
%38 = load ptr, ptr %5, align 8
%39 = load i64, ptr %38, align 8
%40 = or i64 %39, %37
store i64 %40, ptr %38, align 8
br label %128
41: ; preds = %21
%42 = load i8, ptr %8, align 1
%43 = sext i8 %42 to i32
%44 = and i32 %43, 127
%45 = shl i32 %44, 7
%46 = sext i32 %45 to i64
%47 = load ptr, ptr %5, align 8
%48 = load i64, ptr %47, align 8
%49 = or i64 %48, %46
store i64 %49, ptr %47, align 8
%50 = load ptr, ptr %6, align 8
%51 = load i32, ptr %7, align 4
%52 = call i32 @read_raw_byte(ptr noundef %8, ptr noundef %50, i32 noundef %51)
store i32 %52, ptr %7, align 4
%53 = load i8, ptr %8, align 1
%54 = sext i8 %53 to i32
%55 = icmp sge i32 %54, 0
br i1 %55, label %56, label %64
56: ; preds = %41
%57 = load i8, ptr %8, align 1
%58 = sext i8 %57 to i32
%59 = shl i32 %58, 14
%60 = sext i32 %59 to i64
%61 = load ptr, ptr %5, align 8
%62 = load i64, ptr %61, align 8
%63 = or i64 %62, %60
store i64 %63, ptr %61, align 8
br label %127
64: ; preds = %41
%65 = load i8, ptr %8, align 1
%66 = sext i8 %65 to i32
%67 = and i32 %66, 127
%68 = shl i32 %67, 14
%69 = sext i32 %68 to i64
%70 = load ptr, ptr %5, align 8
%71 = load i64, ptr %70, align 8
%72 = or i64 %71, %69
store i64 %72, ptr %70, align 8
%73 = load ptr, ptr %6, align 8
%74 = load i32, ptr %7, align 4
%75 = call i32 @read_raw_byte(ptr noundef %8, ptr noundef %73, i32 noundef %74)
store i32 %75, ptr %7, align 4
%76 = load i8, ptr %8, align 1
%77 = sext i8 %76 to i32
%78 = icmp sge i32 %77, 0
br i1 %78, label %79, label %86
79: ; preds = %64
%80 = load i8, ptr %8, align 1
%81 = sext i8 %80 to i64
%82 = shl i64 %81, 21
%83 = load ptr, ptr %5, align 8
%84 = load i64, ptr %83, align 8
%85 = or i64 %84, %82
store i64 %85, ptr %83, align 8
br label %126
86: ; preds = %64
%87 = load i8, ptr %8, align 1
%88 = sext i8 %87 to i64
%89 = and i64 %88, 127
%90 = shl i64 %89, 21
%91 = load ptr, ptr %5, align 8
%92 = load i64, ptr %91, align 8
%93 = or i64 %92, %90
store i64 %93, ptr %91, align 8
%94 = load ptr, ptr %6, align 8
%95 = load i32, ptr %7, align 4
%96 = call i32 @read_raw_byte(ptr noundef %8, ptr noundef %94, i32 noundef %95)
store i32 %96, ptr %7, align 4
%97 = load i8, ptr %8, align 1
%98 = sext i8 %97 to i64
%99 = shl i64 %98, 28
%100 = load ptr, ptr %5, align 8
%101 = load i64, ptr %100, align 8
%102 = or i64 %101, %99
store i64 %102, ptr %100, align 8
%103 = load i8, ptr %8, align 1
%104 = sext i8 %103 to i32
%105 = icmp slt i32 %104, 0
br i1 %105, label %106, label %125
106: ; preds = %86
store i32 0, ptr %9, align 4
%107 = load i32, ptr %9, align 4
%108 = icmp slt i32 %107, 5
br i1 %108, label %.lr.ph, label %124
.lr.ph: ; preds = %106
br label %109
109: ; preds = %.lr.ph, %119
%110 = load ptr, ptr %6, align 8
%111 = load i32, ptr %7, align 4
%112 = call i32 @read_raw_byte(ptr noundef %8, ptr noundef %110, i32 noundef %111)
store i32 %112, ptr %7, align 4
%113 = load i8, ptr %8, align 1
%114 = sext i8 %113 to i32
%115 = icmp sge i32 %114, 0
br i1 %115, label %116, label %118
116: ; preds = %109
%117 = load i32, ptr %7, align 4
store i32 %117, ptr %4, align 4
br label %130
118: ; preds = %109
br label %119
119: ; preds = %118
%120 = load i32, ptr %9, align 4
%121 = add nsw i32 %120, 1
store i32 %121, ptr %9, align 4
%122 = load i32, ptr %9, align 4
%123 = icmp slt i32 %122, 5
br i1 %123, label %109, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %119
br label %124
124: ; preds = %._crit_edge, %106
br label %125
125: ; preds = %124, %86
br label %126
126: ; preds = %125, %79
br label %127
127: ; preds = %126, %56
br label %128
128: ; preds = %127, %33
%129 = load i32, ptr %7, align 4
store i32 %129, ptr %4, align 4
br label %130
130: ; preds = %128, %116, %16
%131 = load i32, ptr %4, align 4
ret i32 %131
}
declare i32 @read_raw_byte(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/tmprjfj5l_h.c'
source_filename = "/tmp/tmprjfj5l_h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @wc_1()
%3 = call i32 (...) @getchar()
ret i32 0
}
declare i32 @wc_1(...) #1
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprjfj5l_h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @wc_1()
%3 = call i32 (...) @getchar()
ret i32 0
}
declare i32 @wc_1(...) #1
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcyurapa1.c'
source_filename = "/tmp/tmpcyurapa1.c"
target datalayout = "e-m:e-p270: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/tmpcyurapa1.c"
target datalayout = "e-m:e-p270: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/tmp3wmgv85r.c'
source_filename = "/tmp/tmp3wmgv85r.c"
target datalayout = "e-m:e-p270: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/tmp3wmgv85r.c"
target datalayout = "e-m:e-p270: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/tmpmhz2j1di.c'
source_filename = "/tmp/tmpmhz2j1di.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @midi_to_logf(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca double, align 8
store i32 %0, ptr %2, align 4
%4 = call double @log(double noundef 4.400000e+02) #2
%5 = load i32, ptr %2, align 4
%6 = sub nsw i32 %5, 69
%7 = sitofp i32 %6 to double
%8 = call double @log(double noundef 2.000000e+00) #2
%9 = fmul double %7, %8
%10 = fdiv double %9, 1.200000e+01
%11 = fadd double %4, %10
store double %11, ptr %3, align 8
%12 = load double, ptr %3, align 8
ret double %12
}
; Function Attrs: nounwind
declare double @log(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmhz2j1di.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @midi_to_logf(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca double, align 8
store i32 %0, ptr %2, align 4
%4 = call double @log(double noundef 4.400000e+02) #2
%5 = load i32, ptr %2, align 4
%6 = sub nsw i32 %5, 69
%7 = sitofp i32 %6 to double
%8 = call double @log(double noundef 2.000000e+00) #2
%9 = fmul double %7, %8
%10 = fdiv double %9, 1.200000e+01
%11 = fadd double %4, %10
store double %11, ptr %3, align 8
%12 = load double, ptr %3, align 8
ret double %12
}
; Function Attrs: nounwind
declare double @log(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpm36rlfu3.c'
source_filename = "/tmp/tmpm36rlfu3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@INT_MAX = dso_local global i32 0, align 4
@INT_MIN = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @absolute(i32 noundef -1)
store i32 %3, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
%6 = call i32 @absolute(i32 noundef 10)
store i32 %6, ptr %2, align 4
%7 = load i32, ptr %2, align 4
%8 = call i32 @printf(ptr noundef @.str, i32 noundef %7)
%9 = call i32 @absolute(i32 noundef 0)
store i32 %9, ptr %2, align 4
%10 = load i32, ptr %2, align 4
%11 = call i32 @printf(ptr noundef @.str, i32 noundef %10)
%12 = load i32, ptr @INT_MAX, align 4
%13 = call i32 @absolute(i32 noundef %12)
store i32 %13, ptr %2, align 4
%14 = load i32, ptr %2, align 4
%15 = call i32 @printf(ptr noundef @.str, i32 noundef %14)
%16 = load i32, ptr @INT_MIN, align 4
%17 = add nsw i32 %16, 1
%18 = call i32 @absolute(i32 noundef %17)
store i32 %18, ptr %2, align 4
%19 = load i32, ptr %2, align 4
%20 = call i32 @printf(ptr noundef @.str, i32 noundef %19)
%21 = load i32, ptr @INT_MIN, align 4
%22 = call i32 @absolute(i32 noundef %21)
store i32 %22, ptr %2, align 4
%23 = load i32, ptr %2, align 4
%24 = call i32 @printf(ptr noundef @.str, i32 noundef %23)
ret i32 0
}
declare i32 @absolute(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm36rlfu3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@INT_MAX = dso_local global i32 0, align 4
@INT_MIN = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @absolute(i32 noundef -1)
store i32 %3, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
%6 = call i32 @absolute(i32 noundef 10)
store i32 %6, ptr %2, align 4
%7 = load i32, ptr %2, align 4
%8 = call i32 @printf(ptr noundef @.str, i32 noundef %7)
%9 = call i32 @absolute(i32 noundef 0)
store i32 %9, ptr %2, align 4
%10 = load i32, ptr %2, align 4
%11 = call i32 @printf(ptr noundef @.str, i32 noundef %10)
%12 = load i32, ptr @INT_MAX, align 4
%13 = call i32 @absolute(i32 noundef %12)
store i32 %13, ptr %2, align 4
%14 = load i32, ptr %2, align 4
%15 = call i32 @printf(ptr noundef @.str, i32 noundef %14)
%16 = load i32, ptr @INT_MIN, align 4
%17 = add nsw i32 %16, 1
%18 = call i32 @absolute(i32 noundef %17)
store i32 %18, ptr %2, align 4
%19 = load i32, ptr %2, align 4
%20 = call i32 @printf(ptr noundef @.str, i32 noundef %19)
%21 = load i32, ptr @INT_MIN, align 4
%22 = call i32 @absolute(i32 noundef %21)
store i32 %22, ptr %2, align 4
%23 = load i32, ptr %2, align 4
%24 = call i32 @printf(ptr noundef @.str, i32 noundef %23)
ret i32 0
}
declare i32 @absolute(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsu330bp5.c'
source_filename = "/tmp/tmpsu330bp5.c"
target datalayout = "e-m:e-p270: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/tmpsu330bp5.c"
target datalayout = "e-m:e-p270: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/tmpkb3oouum.c'
source_filename = "/tmp/tmpkb3oouum.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"\0AHello 33333 world this is a test\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @hello3() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkb3oouum.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"\0AHello 33333 world this is a test\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @hello3() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnqpz884q.c'
source_filename = "/tmp/tmpnqpz884q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s thread, i:%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @thr_fun(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
store ptr %6, ptr %4, align 8
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %19, %1
%8 = load i32, ptr %5, align 4
%9 = icmp slt i32 %8, 10
br i1 %9, label %10, label %22
10: ; preds = %7
%11 = load ptr, ptr %4, align 8
%12 = load i32, ptr %5, align 4
%13 = call i32 @printf(ptr noundef @.str, ptr noundef %11, i32 noundef %12)
%14 = load i32, ptr %5, align 4
%15 = icmp eq i32 %14, 5
br i1 %15, label %16, label %18
16: ; preds = %10
%17 = call i32 @pthread_exit(i32 noundef 2)
br label %18
18: ; preds = %16, %10
br label %19
19: ; preds = %18
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %5, align 4
br label %7, !llvm.loop !6
22: ; preds = %7
%23 = load ptr, ptr %2, align 8
ret ptr %23
}
declare i32 @printf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @pthread_exit(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpnqpz884q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s thread, i:%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @thr_fun(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
store ptr %6, ptr %4, align 8
store i32 0, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = icmp slt i32 %7, 10
br i1 %8, label %.lr.ph, label %23
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %18
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %5, align 4
%12 = call i32 @printf(ptr noundef @.str, ptr noundef %10, i32 noundef %11)
%13 = load i32, ptr %5, align 4
%14 = icmp eq i32 %13, 5
br i1 %14, label %15, label %17
15: ; preds = %9
%16 = call i32 @pthread_exit(i32 noundef 2)
br label %17
17: ; preds = %15, %9
br label %18
18: ; preds = %17
%19 = load i32, ptr %5, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %5, align 4
%21 = load i32, ptr %5, align 4
%22 = icmp slt i32 %21, 10
br i1 %22, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %23
23: ; preds = %._crit_edge, %1
%24 = load ptr, ptr %2, align 8
ret ptr %24
}
declare i32 @printf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @pthread_exit(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpiw59r7ne.c'
source_filename = "/tmp/tmpiw59r7ne.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"hello world from rank %d/%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"v[%d]=%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"veryBad = %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 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 %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 20, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = call i32 @omp_set_num_threads(i32 noundef %15)
store i32 6, ptr %7, align 4
%17 = load i32, ptr %6, align 4
%18 = call i64 @calloc(i32 noundef %17, i32 noundef 4)
%19 = inttoptr i64 %18 to ptr
store ptr %19, ptr %8, align 8
store i32 0, ptr %10, align 4
%20 = call i32 (...) @omp_get_thread_num()
store i32 %20, ptr %11, align 4
%21 = call i32 (...) @omp_get_num_threads()
store i32 %21, ptr %12, align 4
%22 = load i32, ptr %10, align 4
store i32 %22, ptr %13, align 4
%23 = load i32, ptr %11, align 4
%24 = add nsw i32 %23, 1
%25 = srem i32 %24, 2
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %31
27: ; preds = %2
%28 = load i32, ptr %11, align 4
%29 = load i32, ptr %12, align 4
%30 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %28, i32 noundef %29)
br label %31
31: ; preds = %27, %2
%32 = load i32, ptr %11, align 4
%33 = load ptr, ptr %8, align 8
%34 = load i32, ptr %11, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i32, ptr %33, i64 %35
store i32 %32, ptr %36, align 4
%37 = load i32, ptr %11, align 4
store i32 %37, ptr %9, align 4
%38 = load i32, ptr %13, align 4
%39 = load i32, ptr %11, align 4
%40 = add nsw i32 %38, %39
store i32 %40, ptr %10, align 4
store i32 0, ptr %14, align 4
br label %41
41: ; preds = %53, %31
%42 = load i32, ptr %14, align 4
%43 = load i32, ptr %6, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %45, label %56
45: ; preds = %41
%46 = load i32, ptr %14, align 4
%47 = load ptr, ptr %8, align 8
%48 = load i32, ptr %14, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i32, ptr %47, i64 %49
%51 = load i32, ptr %50, align 4
%52 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %46, i32 noundef %51)
br label %53
53: ; preds = %45
%54 = load i32, ptr %14, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %14, align 4
br label %41, !llvm.loop !6
56: ; preds = %41
%57 = load i32, ptr %10, align 4
%58 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %57)
%59 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @omp_set_num_threads(i32 noundef) #1
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @omp_get_thread_num(...) #1
declare i32 @omp_get_num_threads(...) #1
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpiw59r7ne.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"hello world from rank %d/%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"v[%d]=%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"veryBad = %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 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 %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 20, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = call i32 @omp_set_num_threads(i32 noundef %15)
store i32 6, ptr %7, align 4
%17 = load i32, ptr %6, align 4
%18 = call i64 @calloc(i32 noundef %17, i32 noundef 4)
%19 = inttoptr i64 %18 to ptr
store ptr %19, ptr %8, align 8
store i32 0, ptr %10, align 4
%20 = call i32 (...) @omp_get_thread_num()
store i32 %20, ptr %11, align 4
%21 = call i32 (...) @omp_get_num_threads()
store i32 %21, ptr %12, align 4
%22 = load i32, ptr %10, align 4
store i32 %22, ptr %13, align 4
%23 = load i32, ptr %11, align 4
%24 = add nsw i32 %23, 1
%25 = srem i32 %24, 2
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %31
27: ; preds = %2
%28 = load i32, ptr %11, align 4
%29 = load i32, ptr %12, align 4
%30 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %28, i32 noundef %29)
br label %31
31: ; preds = %27, %2
%32 = load i32, ptr %11, align 4
%33 = load ptr, ptr %8, align 8
%34 = load i32, ptr %11, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i32, ptr %33, i64 %35
store i32 %32, ptr %36, align 4
%37 = load i32, ptr %11, align 4
store i32 %37, ptr %9, align 4
%38 = load i32, ptr %13, align 4
%39 = load i32, ptr %11, align 4
%40 = add nsw i32 %38, %39
store i32 %40, ptr %10, align 4
store i32 0, ptr %14, align 4
%41 = load i32, ptr %14, align 4
%42 = load i32, ptr %6, align 4
%43 = icmp slt i32 %41, %42
br i1 %43, label %.lr.ph, label %58
.lr.ph: ; preds = %31
br label %44
44: ; preds = %.lr.ph, %52
%45 = load i32, ptr %14, align 4
%46 = load ptr, ptr %8, align 8
%47 = load i32, ptr %14, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i32, ptr %46, i64 %48
%50 = load i32, ptr %49, align 4
%51 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %45, i32 noundef %50)
br label %52
52: ; preds = %44
%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 %6, align 4
%57 = icmp slt i32 %55, %56
br i1 %57, label %44, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %52
br label %58
58: ; preds = %._crit_edge, %31
%59 = load i32, ptr %10, align 4
%60 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %59)
%61 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @omp_set_num_threads(i32 noundef) #1
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @omp_get_thread_num(...) #1
declare i32 @omp_get_num_threads(...) #1
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp82tg65og.c'
source_filename = "/tmp/tmp82tg65og.c"
target datalayout = "e-m:e-p270: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/tmp82tg65og.c"
target datalayout = "e-m:e-p270: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/tmpmi9p7fnj.c'
source_filename = "/tmp/tmpmi9p7fnj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%08X\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%016X\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"%04X\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"%02X\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @PrintUtfType(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
switch i32 %5, label %64 [
i32 11, label %6
i32 10, label %11
i32 9, label %16
i32 8, label %21
i32 7, label %26
i32 6, label %31
i32 5, label %36
i32 4, label %41
i32 3, label %46
i32 2, label %51
i32 1, label %56
i32 0, label %60
]
6: ; preds = %2
%7 = load ptr, ptr %3, align 8
%8 = load i64, ptr %7, align 8
%9 = trunc i64 %8 to i8
%10 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %9)
br label %64
11: ; preds = %2
%12 = load ptr, ptr %3, align 8
%13 = load i64, ptr %12, align 8
%14 = trunc i64 %13 to i8
%15 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %14)
br label %64
16: ; preds = %2
%17 = load ptr, ptr %3, align 8
%18 = load double, ptr %17, align 8
%19 = fptoui double %18 to i8
%20 = call i32 @printf(ptr noundef @.str.1, i8 noundef zeroext %19)
br label %64
21: ; preds = %2
%22 = load ptr, ptr %3, align 8
%23 = load float, ptr %22, align 4
%24 = fptoui float %23 to i8
%25 = call i32 @printf(ptr noundef @.str.1, i8 noundef zeroext %24)
br label %64
26: ; preds = %2
%27 = load ptr, ptr %3, align 8
%28 = load i64, ptr %27, align 8
%29 = trunc i64 %28 to i8
%30 = call i32 @printf(ptr noundef @.str.2, i8 noundef zeroext %29)
br label %64
31: ; preds = %2
%32 = load ptr, ptr %3, align 8
%33 = load i64, ptr %32, align 8
%34 = trunc i64 %33 to i8
%35 = call i32 @printf(ptr noundef @.str.2, i8 noundef zeroext %34)
br label %64
36: ; preds = %2
%37 = load ptr, ptr %3, align 8
%38 = load i64, ptr %37, align 8
%39 = trunc i64 %38 to i8
%40 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %39)
br label %64
41: ; preds = %2
%42 = load ptr, ptr %3, align 8
%43 = load i64, ptr %42, align 8
%44 = trunc i64 %43 to i8
%45 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %44)
br label %64
46: ; preds = %2
%47 = load ptr, ptr %3, align 8
%48 = load i16, ptr %47, align 2
%49 = trunc i16 %48 to i8
%50 = call i32 @printf(ptr noundef @.str.3, i8 noundef zeroext %49)
br label %64
51: ; preds = %2
%52 = load ptr, ptr %3, align 8
%53 = load i16, ptr %52, align 2
%54 = trunc i16 %53 to i8
%55 = call i32 @printf(ptr noundef @.str.3, i8 noundef zeroext %54)
br label %64
56: ; preds = %2
%57 = load ptr, ptr %3, align 8
%58 = load i8, ptr %57, align 1
%59 = call i32 @printf(ptr noundef @.str.4, i8 noundef zeroext %58)
br label %64
60: ; preds = %2
%61 = load ptr, ptr %3, align 8
%62 = load i8, ptr %61, align 1
%63 = call i32 @printf(ptr noundef @.str.4, i8 noundef zeroext %62)
br label %64
64: ; preds = %2, %60, %56, %51, %46, %41, %36, %31, %26, %21, %16, %11, %6
ret void
}
declare i32 @printf(ptr 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/tmpmi9p7fnj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%08X\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%016X\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"%04X\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"%02X\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @PrintUtfType(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
switch i32 %5, label %64 [
i32 11, label %6
i32 10, label %11
i32 9, label %16
i32 8, label %21
i32 7, label %26
i32 6, label %31
i32 5, label %36
i32 4, label %41
i32 3, label %46
i32 2, label %51
i32 1, label %56
i32 0, label %60
]
6: ; preds = %2
%7 = load ptr, ptr %3, align 8
%8 = load i64, ptr %7, align 8
%9 = trunc i64 %8 to i8
%10 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %9)
br label %64
11: ; preds = %2
%12 = load ptr, ptr %3, align 8
%13 = load i64, ptr %12, align 8
%14 = trunc i64 %13 to i8
%15 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %14)
br label %64
16: ; preds = %2
%17 = load ptr, ptr %3, align 8
%18 = load double, ptr %17, align 8
%19 = fptoui double %18 to i8
%20 = call i32 @printf(ptr noundef @.str.1, i8 noundef zeroext %19)
br label %64
21: ; preds = %2
%22 = load ptr, ptr %3, align 8
%23 = load float, ptr %22, align 4
%24 = fptoui float %23 to i8
%25 = call i32 @printf(ptr noundef @.str.1, i8 noundef zeroext %24)
br label %64
26: ; preds = %2
%27 = load ptr, ptr %3, align 8
%28 = load i64, ptr %27, align 8
%29 = trunc i64 %28 to i8
%30 = call i32 @printf(ptr noundef @.str.2, i8 noundef zeroext %29)
br label %64
31: ; preds = %2
%32 = load ptr, ptr %3, align 8
%33 = load i64, ptr %32, align 8
%34 = trunc i64 %33 to i8
%35 = call i32 @printf(ptr noundef @.str.2, i8 noundef zeroext %34)
br label %64
36: ; preds = %2
%37 = load ptr, ptr %3, align 8
%38 = load i64, ptr %37, align 8
%39 = trunc i64 %38 to i8
%40 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %39)
br label %64
41: ; preds = %2
%42 = load ptr, ptr %3, align 8
%43 = load i64, ptr %42, align 8
%44 = trunc i64 %43 to i8
%45 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %44)
br label %64
46: ; preds = %2
%47 = load ptr, ptr %3, align 8
%48 = load i16, ptr %47, align 2
%49 = trunc i16 %48 to i8
%50 = call i32 @printf(ptr noundef @.str.3, i8 noundef zeroext %49)
br label %64
51: ; preds = %2
%52 = load ptr, ptr %3, align 8
%53 = load i16, ptr %52, align 2
%54 = trunc i16 %53 to i8
%55 = call i32 @printf(ptr noundef @.str.3, i8 noundef zeroext %54)
br label %64
56: ; preds = %2
%57 = load ptr, ptr %3, align 8
%58 = load i8, ptr %57, align 1
%59 = call i32 @printf(ptr noundef @.str.4, i8 noundef zeroext %58)
br label %64
60: ; preds = %2
%61 = load ptr, ptr %3, align 8
%62 = load i8, ptr %61, align 1
%63 = call i32 @printf(ptr noundef @.str.4, i8 noundef zeroext %62)
br label %64
64: ; preds = %60, %56, %51, %46, %41, %36, %31, %26, %21, %16, %11, %6, %2
ret void
}
declare i32 @printf(ptr 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/tmpp4svp6sr.c'
source_filename = "/tmp/tmpp4svp6sr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @rand_quicksort(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %40
12: ; preds = %3
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %6, align 4
%16 = call i32 @rand_partition(ptr noundef %13, i32 noundef %14, i32 noundef %15)
store i32 %16, ptr %8, align 4
store i32 0, ptr %7, align 4
br label %17
17: ; preds = %27, %12
%18 = load i32, ptr %7, align 4
%19 = icmp slt i32 %18, 8
br i1 %19, label %20, label %30
20: ; preds = %17
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %7, 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, ...) @printf(ptr noundef @.str, i32 noundef %25)
br label %27
27: ; preds = %20
%28 = load i32, ptr %7, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %7, align 4
br label %17, !llvm.loop !6
30: ; preds = %17
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%32 = load ptr, ptr %4, align 8
%33 = load i32, ptr %5, align 4
%34 = load i32, ptr %8, align 4
%35 = sub nsw i32 %34, 1
call void @rand_quicksort(ptr noundef %32, i32 noundef %33, i32 noundef %35)
%36 = load ptr, ptr %4, align 8
%37 = load i32, ptr %8, align 4
%38 = add nsw i32 %37, 1
%39 = load i32, ptr %6, align 4
call void @rand_quicksort(ptr noundef %36, i32 noundef %38, i32 noundef %39)
br label %40
40: ; preds = %30, %3
ret void
}
declare i32 @rand_partition(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp4svp6sr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @rand_quicksort(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %41
12: ; preds = %3
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %6, align 4
%16 = call i32 @rand_partition(ptr noundef %13, i32 noundef %14, i32 noundef %15)
store i32 %16, ptr %8, align 4
store i32 0, ptr %7, align 4
%17 = load i32, ptr %7, align 4
%18 = icmp slt i32 %17, 8
br i1 %18, label %.lr.ph, label %31
.lr.ph: ; preds = %12
br label %19
19: ; preds = %.lr.ph, %26
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr %7, 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, i32 noundef %24)
br label %26
26: ; preds = %19
%27 = load i32, ptr %7, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %7, align 4
%29 = load i32, ptr %7, align 4
%30 = icmp slt i32 %29, 8
br i1 %30, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %31
31: ; preds = %._crit_edge, %12
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%33 = load ptr, ptr %4, align 8
%34 = load i32, ptr %5, align 4
%35 = load i32, ptr %8, align 4
%36 = sub nsw i32 %35, 1
call void @rand_quicksort(ptr noundef %33, i32 noundef %34, i32 noundef %36)
%37 = load ptr, ptr %4, align 8
%38 = load i32, ptr %8, align 4
%39 = add nsw i32 %38, 1
%40 = load i32, ptr %6, align 4
call void @rand_quicksort(ptr noundef %37, i32 noundef %39, i32 noundef %40)
br label %41
41: ; preds = %31, %3
ret void
}
declare i32 @rand_partition(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpfyg000xr.c'
source_filename = "/tmp/tmpfyg000xr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s %d %s %d %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c" == \00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c" != \00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c" OK\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c" FAILED!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp eq i32 %9, %10
%12 = zext i1 %11 to i64
%13 = select i1 %11, ptr @.str.1, ptr @.str.2
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %5, align 4
%17 = icmp eq i32 %15, %16
%18 = zext i1 %17 to i64
%19 = select i1 %17, ptr @.str.3, ptr @.str.4
%20 = call i32 @printf(ptr noundef @.str, ptr noundef %7, i32 noundef %8, ptr noundef %13, i32 noundef %14, ptr noundef %19)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfyg000xr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s %d %s %d %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c" == \00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c" != \00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c" OK\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c" FAILED!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp eq i32 %9, %10
%12 = zext i1 %11 to i64
%13 = select i1 %11, ptr @.str.1, ptr @.str.2
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %5, align 4
%17 = icmp eq i32 %15, %16
%18 = zext i1 %17 to i64
%19 = select i1 %17, ptr @.str.3, ptr @.str.4
%20 = call i32 @printf(ptr noundef @.str, ptr noundef %7, i32 noundef %8, ptr noundef %13, i32 noundef %14, ptr noundef %19)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbz1mnn64.c'
source_filename = "/tmp/tmpbz1mnn64.c"
target datalayout = "e-m:e-p270: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/tmpbz1mnn64.c"
target datalayout = "e-m:e-p270: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/tmpnzjh5uo7.c'
source_filename = "/tmp/tmpnzjh5uo7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Previous guesses: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\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 i32 @draw_guessword(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %19, %2
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp sle i32 %8, %9
br i1 %10, label %11, label %22
11: ; preds = %7
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %5, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %17)
br label %19
19: ; preds = %11
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %5, align 4
br label %7, !llvm.loop !6
22: ; preds = %7
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnzjh5uo7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Previous guesses: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\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 i32 @draw_guessword(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp sle i32 %7, %8
br i1 %9, label %.lr.ph, label %24
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %18
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %11, i64 %13
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %16)
br label %18
18: ; preds = %10
%19 = load i32, ptr %5, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %5, align 4
%21 = load i32, ptr %5, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp sle i32 %21, %22
br i1 %23, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %24
24: ; preds = %._crit_edge, %2
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpebbe8iy2.c'
source_filename = "/tmp/tmpebbe8iy2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Entre com N: \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%ld\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"0\0A\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"%ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store i32 0, ptr %1, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
store i64 1, ptr %3, align 8
store i64 0, ptr %4, align 8
%9 = load i64, ptr %2, align 8
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %0
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %30
13: ; preds = %0
store i64 2, ptr %5, align 8
br label %14
14: ; preds = %24, %13
%15 = load i64, ptr %5, align 8
%16 = load i64, ptr %2, align 8
%17 = icmp sle i64 %15, %16
br i1 %17, label %18, label %27
18: ; preds = %14
%19 = load i64, ptr %3, align 8
%20 = load i64, ptr %4, align 8
%21 = add nsw i64 %19, %20
store i64 %21, ptr %6, align 8
%22 = load i64, ptr %3, align 8
store i64 %22, ptr %4, align 8
%23 = load i64, ptr %6, align 8
store i64 %23, ptr %3, align 8
br label %24
24: ; preds = %18
%25 = load i64, ptr %5, align 8
%26 = add nsw i64 %25, 1
store i64 %26, ptr %5, align 8
br label %14, !llvm.loop !6
27: ; preds = %14
%28 = load i64, ptr %3, align 8
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef %28)
br label %30
30: ; preds = %27, %11
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpebbe8iy2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Entre com N: \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%ld\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"0\0A\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"%ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store i32 0, ptr %1, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
store i64 1, ptr %3, align 8
store i64 0, ptr %4, align 8
%9 = load i64, ptr %2, align 8
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %0
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %32
13: ; preds = %0
store i64 2, ptr %5, align 8
%14 = load i64, ptr %5, align 8
%15 = load i64, ptr %2, align 8
%16 = icmp sle i64 %14, %15
br i1 %16, label %.lr.ph, label %29
.lr.ph: ; preds = %13
br label %17
17: ; preds = %.lr.ph, %23
%18 = load i64, ptr %3, align 8
%19 = load i64, ptr %4, align 8
%20 = add nsw i64 %18, %19
store i64 %20, ptr %6, align 8
%21 = load i64, ptr %3, align 8
store i64 %21, ptr %4, align 8
%22 = load i64, ptr %6, align 8
store i64 %22, ptr %3, align 8
br label %23
23: ; preds = %17
%24 = load i64, ptr %5, align 8
%25 = add nsw i64 %24, 1
store i64 %25, ptr %5, align 8
%26 = load i64, ptr %5, align 8
%27 = load i64, ptr %2, align 8
%28 = icmp sle i64 %26, %27
br i1 %28, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %29
29: ; preds = %._crit_edge, %13
%30 = load i64, ptr %3, align 8
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef %30)
br label %32
32: ; preds = %29, %11
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpcmk_vs6q.c'
source_filename = "/tmp/tmpcmk_vs6q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @foo(i32 noundef 1, i32 noundef 2, i32 noundef 3)
ret i32 0
}
declare i32 @foo(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcmk_vs6q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @foo(i32 noundef 1, i32 noundef 2, i32 noundef 3)
ret i32 0
}
declare i32 @foo(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpoxho_bp4.c'
source_filename = "/tmp/tmpoxho_bp4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%d %d %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\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [50 x [50 x i32]], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %13, align 4
%14 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %3, ptr noundef %4, ptr noundef %5)
store i32 0, ptr %6, align 4
br label %15
15: ; preds = %36, %0
%16 = load i32, ptr %6, align 4
%17 = load i32, ptr %3, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %39
19: ; preds = %15
store i32 0, ptr %7, align 4
br label %20
20: ; preds = %32, %19
%21 = load i32, ptr %7, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %35
24: ; preds = %20
%25 = load i32, ptr %6, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [50 x [50 x i32]], ptr %2, i64 0, i64 %26
%28 = load i32, ptr %7, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [50 x i32], ptr %27, i64 0, i64 %29
%31 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %30)
br label %32
32: ; preds = %24
%33 = load i32, ptr %7, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %7, align 4
br label %20, !llvm.loop !6
35: ; preds = %20
br label %36
36: ; preds = %35
%37 = load i32, ptr %6, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %6, align 4
br label %15, !llvm.loop !8
39: ; preds = %15
%40 = load i32, ptr %5, align 4
%41 = mul nsw i32 2, %40
%42 = add nsw i32 %41, 1
store i32 %42, ptr %5, align 4
store i32 0, ptr %10, align 4
store i32 0, ptr %11, align 4
%43 = load i32, ptr %5, align 4
store i32 %43, ptr %8, align 4
%44 = load i32, ptr %5, align 4
store i32 %44, ptr %9, align 4
br label %45
45: ; preds = %99, %39
%46 = load i32, ptr %8, align 4
%47 = load i32, ptr %3, align 4
%48 = icmp sle i32 %46, %47
br i1 %48, label %49, label %100
49: ; preds = %45
store i32 0, ptr %12, align 4
%50 = load i32, ptr %10, align 4
store i32 %50, ptr %6, align 4
br label %51
51: ; preds = %75, %49
%52 = load i32, ptr %6, align 4
%53 = load i32, ptr %8, align 4
%54 = icmp slt i32 %52, %53
br i1 %54, label %55, label %78
55: ; preds = %51
%56 = load i32, ptr %11, align 4
store i32 %56, ptr %7, align 4
br label %57
57: ; preds = %71, %55
%58 = load i32, ptr %7, align 4
%59 = load i32, ptr %9, align 4
%60 = icmp slt i32 %58, %59
br i1 %60, label %61, label %74
61: ; preds = %57
%62 = load i32, ptr %6, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [50 x [50 x i32]], ptr %2, i64 0, i64 %63
%65 = load i32, ptr %7, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [50 x i32], ptr %64, i64 0, i64 %66
%68 = load i32, ptr %67, align 4
%69 = load i32, ptr %12, align 4
%70 = add nsw i32 %69, %68
store i32 %70, ptr %12, align 4
br label %71
71: ; preds = %61
%72 = load i32, ptr %7, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %7, align 4
br label %57, !llvm.loop !9
74: ; preds = %57
br label %75
75: ; preds = %74
%76 = load i32, ptr %6, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %6, align 4
br label %51, !llvm.loop !10
78: ; preds = %51
%79 = load i32, ptr %12, align 4
%80 = load i32, ptr %13, align 4
%81 = icmp sgt i32 %79, %80
br i1 %81, label %82, label %84
82: ; preds = %78
%83 = load i32, ptr %12, align 4
store i32 %83, ptr %13, align 4
br label %84
84: ; preds = %82, %78
%85 = load i32, ptr %9, align 4
%86 = load i32, ptr %4, align 4
%87 = icmp slt i32 %85, %86
br i1 %87, label %88, label %93
88: ; preds = %84
%89 = load i32, ptr %11, align 4
%90 = add nsw i32 %89, 1
store i32 %90, ptr %11, align 4
%91 = load i32, ptr %9, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr %9, align 4
br label %99
93: ; preds = %84
%94 = load i32, ptr %10, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %10, align 4
%96 = load i32, ptr %8, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %8, align 4
store i32 0, ptr %11, align 4
%98 = load i32, ptr %5, align 4
store i32 %98, ptr %9, align 4
br label %99
99: ; preds = %93, %88
br label %45, !llvm.loop !11
100: ; preds = %45
%101 = load i32, ptr %13, align 4
%102 = call i32 @printf(ptr noundef @.str.2, i32 noundef %101)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoxho_bp4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%d %d %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\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [50 x [50 x i32]], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %13, align 4
%14 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %3, ptr noundef %4, ptr noundef %5)
store i32 0, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %3, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph2, label %43
.lr.ph2: ; preds = %0
br label %18
18: ; preds = %.lr.ph2, %37
store i32 0, ptr %7, align 4
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %.lr.ph, label %36
.lr.ph: ; preds = %18
br label %22
22: ; preds = %.lr.ph, %30
%23 = load i32, ptr %6, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [50 x [50 x i32]], ptr %2, i64 0, i64 %24
%26 = load i32, ptr %7, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [50 x i32], ptr %25, i64 0, i64 %27
%29 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %28)
br label %30
30: ; preds = %22
%31 = load i32, ptr %7, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %7, align 4
%33 = load i32, ptr %7, align 4
%34 = load i32, ptr %4, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %36
36: ; preds = %._crit_edge, %18
br label %37
37: ; preds = %36
%38 = load i32, ptr %6, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %6, align 4
%40 = load i32, ptr %6, align 4
%41 = load i32, ptr %3, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %18, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %37
br label %43
43: ; preds = %._crit_edge3, %0
%44 = load i32, ptr %5, align 4
%45 = mul nsw i32 2, %44
%46 = add nsw i32 %45, 1
store i32 %46, ptr %5, align 4
store i32 0, ptr %10, align 4
store i32 0, ptr %11, align 4
%47 = load i32, ptr %5, align 4
store i32 %47, ptr %8, align 4
%48 = load i32, ptr %5, align 4
store i32 %48, ptr %9, align 4
%49 = load i32, ptr %8, align 4
%50 = load i32, ptr %3, align 4
%51 = icmp sle i32 %49, %50
br i1 %51, label %.lr.ph11, label %110
.lr.ph11: ; preds = %43
br label %52
52: ; preds = %.lr.ph11, %106
store i32 0, ptr %12, align 4
%53 = load i32, ptr %10, align 4
store i32 %53, ptr %6, align 4
%54 = load i32, ptr %6, align 4
%55 = load i32, ptr %8, align 4
%56 = icmp slt i32 %54, %55
br i1 %56, label %.lr.ph8, label %85
.lr.ph8: ; preds = %52
br label %57
57: ; preds = %.lr.ph8, %79
%58 = load i32, ptr %11, align 4
store i32 %58, ptr %7, align 4
%59 = load i32, ptr %7, align 4
%60 = load i32, ptr %9, align 4
%61 = icmp slt i32 %59, %60
br i1 %61, label %.lr.ph5, label %78
.lr.ph5: ; preds = %57
br label %62
62: ; preds = %.lr.ph5, %72
%63 = load i32, ptr %6, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [50 x [50 x i32]], ptr %2, i64 0, i64 %64
%66 = load i32, ptr %7, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [50 x i32], ptr %65, i64 0, i64 %67
%69 = load i32, ptr %68, align 4
%70 = load i32, ptr %12, align 4
%71 = add nsw i32 %70, %69
store i32 %71, ptr %12, align 4
br label %72
72: ; preds = %62
%73 = load i32, ptr %7, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %7, align 4
%75 = load i32, ptr %7, align 4
%76 = load i32, ptr %9, align 4
%77 = icmp slt i32 %75, %76
br i1 %77, label %62, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %72
br label %78
78: ; preds = %._crit_edge6, %57
br label %79
79: ; preds = %78
%80 = load i32, ptr %6, align 4
%81 = add nsw i32 %80, 1
store i32 %81, ptr %6, align 4
%82 = load i32, ptr %6, align 4
%83 = load i32, ptr %8, align 4
%84 = icmp slt i32 %82, %83
br i1 %84, label %57, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %79
br label %85
85: ; preds = %._crit_edge9, %52
%86 = load i32, ptr %12, align 4
%87 = load i32, ptr %13, align 4
%88 = icmp sgt i32 %86, %87
br i1 %88, label %89, label %91
89: ; preds = %85
%90 = load i32, ptr %12, align 4
store i32 %90, ptr %13, align 4
br label %91
91: ; preds = %89, %85
%92 = load i32, ptr %9, align 4
%93 = load i32, ptr %4, align 4
%94 = icmp slt i32 %92, %93
br i1 %94, label %95, label %100
95: ; preds = %91
%96 = load i32, ptr %11, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %11, align 4
%98 = load i32, ptr %9, align 4
%99 = add nsw i32 %98, 1
store i32 %99, ptr %9, align 4
br label %106
100: ; preds = %91
%101 = load i32, ptr %10, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %10, align 4
%103 = load i32, ptr %8, align 4
%104 = add nsw i32 %103, 1
store i32 %104, ptr %8, align 4
store i32 0, ptr %11, align 4
%105 = load i32, ptr %5, align 4
store i32 %105, ptr %9, align 4
br label %106
106: ; preds = %100, %95
%107 = load i32, ptr %8, align 4
%108 = load i32, ptr %3, align 4
%109 = icmp sle i32 %107, %108
br i1 %109, label %52, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %106
br label %110
110: ; preds = %._crit_edge12, %43
%111 = load i32, ptr %13, align 4
%112 = call i32 @printf(ptr noundef @.str.2, i32 noundef %111)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmpk06s3q2h.c'
source_filename = "/tmp/tmpk06s3q2h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [42 x i8] c"[FAIL] symbol-resolver-basic: foo() != 0\0A\00", align 1
@.str.1 = private unnamed_addr constant [49 x i8] c"[FAIL] symbol-resolver-basic: fooPlusOne() != 1\0A\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"[PASS] symbol-resolver-basic\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i64 (...) @foo()
%3 = icmp ne i64 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 @printf(ptr noundef @.str)
br label %14
6: ; preds = %0
%7 = call i32 (...) @fooPlusOne()
%8 = icmp ne i32 %7, 1
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = call i32 @printf(ptr noundef @.str.1)
br label %13
11: ; preds = %6
%12 = call i32 @printf(ptr noundef @.str.2)
br label %13
13: ; preds = %11, %9
br label %14
14: ; preds = %13, %4
ret i32 0
}
declare i64 @foo(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @fooPlusOne(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk06s3q2h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [42 x i8] c"[FAIL] symbol-resolver-basic: foo() != 0\0A\00", align 1
@.str.1 = private unnamed_addr constant [49 x i8] c"[FAIL] symbol-resolver-basic: fooPlusOne() != 1\0A\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"[PASS] symbol-resolver-basic\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i64 (...) @foo()
%3 = icmp ne i64 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 @printf(ptr noundef @.str)
br label %14
6: ; preds = %0
%7 = call i32 (...) @fooPlusOne()
%8 = icmp ne i32 %7, 1
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = call i32 @printf(ptr noundef @.str.1)
br label %13
11: ; preds = %6
%12 = call i32 @printf(ptr noundef @.str.2)
br label %13
13: ; preds = %11, %9
br label %14
14: ; preds = %13, %4
ret i32 0
}
declare i64 @foo(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @fooPlusOne(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpej5u7hmb.c'
source_filename = "/tmp/tmpej5u7hmb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"save file header buffer too small\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"File name? \00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c".sav\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [46 x i8] c"This save file does not match the adventure!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @advrestore(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca [50 x i8], align 16
%11 = alloca [50 x i8], align 16
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
%14 = load i32, ptr %7, align 4
%15 = icmp sgt i32 %14, 50
br i1 %15, label %16, label %18
16: ; preds = %4
%17 = call i32 @error(ptr noundef @.str)
br label %18
18: ; preds = %16, %4
%19 = call i32 @trm_str(ptr noundef @.str.1)
%20 = getelementptr inbounds [50 x i8], ptr %10, i64 0, i64 0
%21 = call i32 @trm_get(ptr noundef %20)
%22 = getelementptr inbounds [50 x i8], ptr %10, i64 0, i64 0
%23 = call i32 @strcat(ptr noundef %22, ptr noundef @.str.2)
%24 = getelementptr inbounds [50 x i8], ptr %10, i64 0, i64 0
%25 = load i32, ptr @O_RDONLY, align 4
%26 = call i32 @open(ptr noundef %24, i32 noundef %25)
store i32 %26, ptr %13, align 4
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %18
store i32 0, ptr %5, align 4
br label %73
29: ; preds = %18
%30 = load i32, ptr %13, align 4
%31 = getelementptr inbounds [50 x i8], ptr %11, i64 0, i64 0
%32 = load i32, ptr %7, align 4
%33 = call i32 @read(i32 noundef %30, ptr noundef %31, i32 noundef %32)
%34 = load i32, ptr %7, align 4
%35 = icmp ne i32 %33, %34
br i1 %35, label %36, label %39
36: ; preds = %29
%37 = load i32, ptr %13, align 4
%38 = call i32 @close(i32 noundef %37)
store i32 0, ptr %5, align 4
br label %73
39: ; preds = %29
%40 = getelementptr inbounds [50 x i8], ptr %11, i64 0, i64 0
store ptr %40, ptr %12, align 8
br label %41
41: ; preds = %59, %39
%42 = load i32, ptr %7, align 4
%43 = add nsw i32 %42, -1
store i32 %43, ptr %7, align 4
%44 = icmp ne i32 %42, 0
br i1 %44, label %45, label %60
45: ; preds = %41
%46 = load ptr, ptr %6, align 8
%47 = getelementptr inbounds i8, ptr %46, i32 1
store ptr %47, ptr %6, align 8
%48 = load i8, ptr %46, align 1
%49 = sext i8 %48 to i32
%50 = load ptr, ptr %12, align 8
%51 = getelementptr inbounds i8, ptr %50, i32 1
store ptr %51, ptr %12, align 8
%52 = load i8, ptr %50, align 1
%53 = sext i8 %52 to i32
%54 = icmp ne i32 %49, %53
br i1 %54, label %55, label %59
55: ; preds = %45
%56 = call i32 @trm_str(ptr noundef @.str.3)
%57 = load i32, ptr %13, align 4
%58 = call i32 @close(i32 noundef %57)
store i32 0, ptr %5, align 4
br label %73
59: ; preds = %45
br label %41, !llvm.loop !6
60: ; preds = %41
%61 = load i32, ptr %13, align 4
%62 = load ptr, ptr %8, align 8
%63 = load i32, ptr %9, align 4
%64 = call i32 @read(i32 noundef %61, ptr noundef %62, i32 noundef %63)
%65 = load i32, ptr %9, align 4
%66 = icmp ne i32 %64, %65
br i1 %66, label %67, label %70
67: ; preds = %60
%68 = load i32, ptr %13, align 4
%69 = call i32 @close(i32 noundef %68)
store i32 0, ptr %5, align 4
br label %73
70: ; preds = %60
%71 = load i32, ptr %13, align 4
%72 = call i32 @close(i32 noundef %71)
store i32 1, ptr %5, align 4
br label %73
73: ; preds = %70, %67, %55, %36, %28
%74 = load i32, ptr %5, align 4
ret i32 %74
}
declare i32 @error(ptr noundef) #1
declare i32 @trm_str(ptr noundef) #1
declare i32 @trm_get(ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @read(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpej5u7hmb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"save file header buffer too small\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"File name? \00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c".sav\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [46 x i8] c"This save file does not match the adventure!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @advrestore(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca [50 x i8], align 16
%11 = alloca [50 x i8], align 16
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
%14 = load i32, ptr %7, align 4
%15 = icmp sgt i32 %14, 50
br i1 %15, label %16, label %18
16: ; preds = %4
%17 = call i32 @error(ptr noundef @.str)
br label %18
18: ; preds = %16, %4
%19 = call i32 @trm_str(ptr noundef @.str.1)
%20 = getelementptr inbounds [50 x i8], ptr %10, i64 0, i64 0
%21 = call i32 @trm_get(ptr noundef %20)
%22 = getelementptr inbounds [50 x i8], ptr %10, i64 0, i64 0
%23 = call i32 @strcat(ptr noundef %22, ptr noundef @.str.2)
%24 = getelementptr inbounds [50 x i8], ptr %10, i64 0, i64 0
%25 = load i32, ptr @O_RDONLY, align 4
%26 = call i32 @open(ptr noundef %24, i32 noundef %25)
store i32 %26, ptr %13, align 4
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %18
store i32 0, ptr %5, align 4
br label %75
29: ; preds = %18
%30 = load i32, ptr %13, align 4
%31 = getelementptr inbounds [50 x i8], ptr %11, i64 0, i64 0
%32 = load i32, ptr %7, align 4
%33 = call i32 @read(i32 noundef %30, ptr noundef %31, i32 noundef %32)
%34 = load i32, ptr %7, align 4
%35 = icmp ne i32 %33, %34
br i1 %35, label %36, label %39
36: ; preds = %29
%37 = load i32, ptr %13, align 4
%38 = call i32 @close(i32 noundef %37)
store i32 0, ptr %5, align 4
br label %75
39: ; preds = %29
%40 = getelementptr inbounds [50 x i8], ptr %11, i64 0, i64 0
store ptr %40, ptr %12, align 8
%41 = load i32, ptr %7, align 4
%42 = add nsw i32 %41, -1
store i32 %42, ptr %7, align 4
%43 = icmp ne i32 %41, 0
br i1 %43, label %.lr.ph, label %62
.lr.ph: ; preds = %39
br label %48
44: ; preds = %48
%45 = load i32, ptr %7, align 4
%46 = add nsw i32 %45, -1
store i32 %46, ptr %7, align 4
%47 = icmp ne i32 %45, 0
br i1 %47, label %48, label %._crit_edge, !llvm.loop !6
48: ; preds = %.lr.ph, %44
%49 = load ptr, ptr %6, align 8
%50 = getelementptr inbounds i8, ptr %49, i32 1
store ptr %50, ptr %6, align 8
%51 = load i8, ptr %49, align 1
%52 = sext i8 %51 to i32
%53 = load ptr, ptr %12, align 8
%54 = getelementptr inbounds i8, ptr %53, i32 1
store ptr %54, ptr %12, align 8
%55 = load i8, ptr %53, align 1
%56 = sext i8 %55 to i32
%57 = icmp ne i32 %52, %56
br i1 %57, label %58, label %44
58: ; preds = %48
%59 = call i32 @trm_str(ptr noundef @.str.3)
%60 = load i32, ptr %13, align 4
%61 = call i32 @close(i32 noundef %60)
store i32 0, ptr %5, align 4
br label %75
._crit_edge: ; preds = %44
br label %62
62: ; preds = %._crit_edge, %39
%63 = load i32, ptr %13, align 4
%64 = load ptr, ptr %8, align 8
%65 = load i32, ptr %9, align 4
%66 = call i32 @read(i32 noundef %63, ptr noundef %64, i32 noundef %65)
%67 = load i32, ptr %9, align 4
%68 = icmp ne i32 %66, %67
br i1 %68, label %69, label %72
69: ; preds = %62
%70 = load i32, ptr %13, align 4
%71 = call i32 @close(i32 noundef %70)
store i32 0, ptr %5, align 4
br label %75
72: ; preds = %62
%73 = load i32, ptr %13, align 4
%74 = call i32 @close(i32 noundef %73)
store i32 1, ptr %5, align 4
br label %75
75: ; preds = %72, %69, %58, %36, %28
%76 = load i32, ptr %5, align 4
ret i32 %76
}
declare i32 @error(ptr noundef) #1
declare i32 @trm_str(ptr noundef) #1
declare i32 @trm_get(ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @read(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp0nxdfpce.c'
source_filename = "/tmp/tmp0nxdfpce.c"
target datalayout = "e-m:e-p270: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/tmp0nxdfpce.c"
target datalayout = "e-m:e-p270: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/tmp9dnhzjuq.c'
source_filename = "/tmp/tmp9dnhzjuq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @free_parsers() #0 {
%1 = call i32 (...) @free_instructions()
%2 = call i32 (...) @free_directives()
%3 = call i32 (...) @free_definitions()
ret void
}
declare i32 @free_instructions(...) #1
declare i32 @free_directives(...) #1
declare i32 @free_definitions(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9dnhzjuq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @free_parsers() #0 {
%1 = call i32 (...) @free_instructions()
%2 = call i32 (...) @free_directives()
%3 = call i32 (...) @free_definitions()
ret void
}
declare i32 @free_instructions(...) #1
declare i32 @free_directives(...) #1
declare i32 @free_definitions(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphmj7w4x8.c'
source_filename = "/tmp/tmphmj7w4x8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"pthread_key_t\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @g_pthread_key_t() #0 {
%1 = call i32 @gptp(ptr noundef @.str, i32 noundef 4)
ret void
}
declare i32 @gptp(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/tmphmj7w4x8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"pthread_key_t\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @g_pthread_key_t() #0 {
%1 = call i32 @gptp(ptr noundef @.str, i32 noundef 4)
ret void
}
declare i32 @gptp(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/tmpsqt3pewj.c'
source_filename = "/tmp/tmpsqt3pewj.c"
target datalayout = "e-m:e-p270: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/tmpsqt3pewj.c"
target datalayout = "e-m:e-p270: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/tmpdf8pxbgg.c'
source_filename = "/tmp/tmpdf8pxbgg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"There was %d arguments provided : \0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"argument #%d\09-\09%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %7)
store i32 0, ptr %6, align 4
br label %9
9: ; preds = %21, %2
%10 = load i32, ptr %6, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %24
13: ; preds = %9
%14 = load i32, ptr %6, align 4
%15 = load ptr, ptr %5, align 8
%16 = load i32, ptr %6, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds ptr, ptr %15, i64 %17
%19 = load ptr, ptr %18, align 8
%20 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %14, ptr noundef %19)
br label %21
21: ; preds = %13
%22 = load i32, ptr %6, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %6, align 4
br label %9, !llvm.loop !6
24: ; preds = %9
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdf8pxbgg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"There was %d arguments provided : \0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"argument #%d\09-\09%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %7)
store i32 0, ptr %6, align 4
%9 = load i32, ptr %6, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %26
.lr.ph: ; preds = %2
br label %12
12: ; preds = %.lr.ph, %20
%13 = load i32, ptr %6, align 4
%14 = load ptr, ptr %5, align 8
%15 = load i32, ptr %6, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds ptr, ptr %14, i64 %16
%18 = load ptr, ptr %17, align 8
%19 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %13, ptr noundef %18)
br label %20
20: ; preds = %12
%21 = load i32, ptr %6, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %6, align 4
%23 = load i32, ptr %6, align 4
%24 = load i32, ptr %4, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %26
26: ; preds = %._crit_edge, %2
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpqqzs_txm.c'
source_filename = "/tmp/tmpqqzs_txm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SensorSetMode_ET8EC3(i8 noundef zeroext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = zext i8 %3 to i32
switch i32 %4, label %16 [
i32 1, label %5
i32 2, label %8
i32 4, label %11
i32 3, label %13
]
5: ; preds = %1
%6 = call i32 @VIM_SIF_I2cWriteByte(i32 noundef 2, i32 noundef 0)
%7 = call i32 @VIM_SIF_I2cWriteByte(i32 noundef 4, i32 noundef 31)
br label %17
8: ; preds = %1
%9 = call i32 @VIM_SIF_I2cWriteByte(i32 noundef 2, i32 noundef 64)
%10 = call i32 @VIM_SIF_I2cWriteByte(i32 noundef 4, i32 noundef 31)
br label %17
11: ; preds = %1
%12 = call i32 @VIM_SIF_I2cWriteByte(i32 noundef 4, i32 noundef 47)
br label %17
13: ; preds = %1
%14 = call i32 @VIM_SIF_I2cWriteByte(i32 noundef 2, i32 noundef 0)
%15 = call i32 @VIM_SIF_I2cWriteByte(i32 noundef 4, i32 noundef 31)
br label %17
16: ; preds = %1
br label %17
17: ; preds = %16, %13, %11, %8, %5
ret void
}
declare i32 @VIM_SIF_I2cWriteByte(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/tmpqqzs_txm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SensorSetMode_ET8EC3(i8 noundef zeroext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = zext i8 %3 to i32
switch i32 %4, label %16 [
i32 1, label %5
i32 2, label %8
i32 4, label %11
i32 3, label %13
]
5: ; preds = %1
%6 = call i32 @VIM_SIF_I2cWriteByte(i32 noundef 2, i32 noundef 0)
%7 = call i32 @VIM_SIF_I2cWriteByte(i32 noundef 4, i32 noundef 31)
br label %17
8: ; preds = %1
%9 = call i32 @VIM_SIF_I2cWriteByte(i32 noundef 2, i32 noundef 64)
%10 = call i32 @VIM_SIF_I2cWriteByte(i32 noundef 4, i32 noundef 31)
br label %17
11: ; preds = %1
%12 = call i32 @VIM_SIF_I2cWriteByte(i32 noundef 4, i32 noundef 47)
br label %17
13: ; preds = %1
%14 = call i32 @VIM_SIF_I2cWriteByte(i32 noundef 2, i32 noundef 0)
%15 = call i32 @VIM_SIF_I2cWriteByte(i32 noundef 4, i32 noundef 31)
br label %17
16: ; preds = %1
br label %17
17: ; preds = %16, %13, %11, %8, %5
ret void
}
declare i32 @VIM_SIF_I2cWriteByte(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/tmpzizaoa2q.c'
source_filename = "/tmp/tmpzizaoa2q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [42 x i8] c"Version %ld, CAR %d, POS %d, MAXBLOCK %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"Sum %lld \0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"SumOK %lld \0A\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"Time: %ld \0A\00", align 1
@CLOCKS_PER_SEC = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca [9 x i32], align 16
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 0, ptr %6, align 8
store i64 0, ptr %7, align 8
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
br label %18
18: ; preds = %25, %2
%19 = load i32, ptr %10, align 4
%20 = icmp slt i32 %19, 9
br i1 %20, label %21, label %28
21: ; preds = %18
%22 = load i32, ptr %10, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [9 x i32], ptr %8, i64 0, i64 %23
store i32 0, ptr %24, align 4
br label %25
25: ; preds = %21
%26 = load i32, ptr %10, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %10, align 4
br label %18, !llvm.loop !6
28: ; preds = %18
%29 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef 32, i32 noundef 13, i32 noundef 9, i32 noundef 3)
%30 = call i32 (...) @clock()
store i32 %30, ptr %14, align 4
br label %31
31: ; preds = %108, %28
%32 = load i64, ptr %6, align 8
%33 = add nsw i64 %32, 1
store i64 %33, ptr %6, align 8
store i32 1, ptr %15, align 4
store i32 0, ptr %11, align 4
br label %34
34: ; preds = %72, %31
%35 = load i32, ptr %15, align 4
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %34
%38 = load i32, ptr %11, align 4
%39 = icmp slt i32 %38, 6
br label %40
40: ; preds = %37, %34
%41 = phi i1 [ false, %34 ], [ %39, %37 ]
br i1 %41, label %42, label %75
42: ; preds = %40
store i32 0, ptr %15, align 4
%43 = load i32, ptr %11, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %13, align 4
br label %45
45: ; preds = %68, %42
%46 = load i32, ptr %15, align 4
%47 = icmp ne i32 %46, 0
br i1 %47, label %54, label %48
48: ; preds = %45
%49 = load i32, ptr %13, align 4
%50 = load i32, ptr %11, align 4
%51 = add nsw i32 %50, 3
%52 = add nsw i32 %51, 1
%53 = icmp slt i32 %49, %52
br label %54
54: ; preds = %48, %45
%55 = phi i1 [ false, %45 ], [ %53, %48 ]
br i1 %55, label %56, label %71
56: ; preds = %54
%57 = load i32, ptr %11, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [9 x i32], ptr %8, i64 0, i64 %58
%60 = load i32, ptr %59, align 4
%61 = load i32, ptr %13, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [9 x i32], ptr %8, i64 0, i64 %62
%64 = load i32, ptr %63, align 4
%65 = icmp ne i32 %60, %64
br i1 %65, label %66, label %67
66: ; preds = %56
store i32 1, ptr %15, align 4
br label %67
67: ; preds = %66, %56
br label %68
68: ; preds = %67
%69 = load i32, ptr %13, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %13, align 4
br label %45, !llvm.loop !8
71: ; preds = %54
br label %72
72: ; preds = %71
%73 = load i32, ptr %11, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %11, align 4
br label %34, !llvm.loop !9
75: ; preds = %40
%76 = load i32, ptr %15, align 4
%77 = icmp ne i32 %76, 0
br i1 %77, label %78, label %81
78: ; preds = %75
%79 = load i64, ptr %7, align 8
%80 = add nsw i64 %79, 1
store i64 %80, ptr %7, align 8
br label %81
81: ; preds = %78, %75
%82 = getelementptr inbounds [9 x i32], ptr %8, i64 0, i64 0
%83 = load i32, ptr %82, align 16
%84 = add nsw i32 %83, 1
store i32 %84, ptr %82, align 16
store i32 0, ptr %16, align 4
br label %85
85: ; preds = %106, %81
%86 = load i32, ptr %16, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [9 x i32], ptr %8, i64 0, i64 %87
%89 = load i32, ptr %88, align 4
%90 = icmp sge i32 %89, 13
br i1 %90, label %91, label %107
91: ; preds = %85
%92 = load i32, ptr %16, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [9 x i32], ptr %8, i64 0, i64 %93
store i32 0, ptr %94, align 4
%95 = load i32, ptr %16, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %16, align 4
%97 = load i32, ptr %16, align 4
%98 = icmp slt i32 %97, 9
br i1 %98, label %99, label %105
99: ; preds = %91
%100 = load i32, ptr %16, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds [9 x i32], ptr %8, i64 0, i64 %101
%103 = load i32, ptr %102, align 4
%104 = add nsw i32 %103, 1
store i32 %104, ptr %102, align 4
br label %106
105: ; preds = %91
store i32 1, ptr %9, align 4
br label %107
106: ; preds = %99
br label %85, !llvm.loop !10
107: ; preds = %105, %85
br label %108
108: ; preds = %107
%109 = load i32, ptr %9, align 4
%110 = icmp ne i32 %109, 0
%111 = xor i1 %110, true
br i1 %111, label %31, label %112, !llvm.loop !11
112: ; preds = %108
%113 = call i32 (...) @clock()
store i32 %113, ptr %17, align 4
%114 = load i64, ptr %6, align 8
%115 = trunc i64 %114 to i32
%116 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %115)
%117 = load i64, ptr %7, align 8
%118 = trunc i64 %117 to i32
%119 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %118)
%120 = load i32, ptr %17, align 4
%121 = load i32, ptr %14, align 4
%122 = sub nsw i32 %120, %121
%123 = mul nsw i32 %122, 1000
%124 = load i32, ptr @CLOCKS_PER_SEC, align 4
%125 = sdiv i32 %123, %124
%126 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.3, i32 noundef %125)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
declare i32 @clock(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzizaoa2q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [42 x i8] c"Version %ld, CAR %d, POS %d, MAXBLOCK %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"Sum %lld \0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"SumOK %lld \0A\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"Time: %ld \0A\00", align 1
@CLOCKS_PER_SEC = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca [9 x i32], align 16
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 0, ptr %6, align 8
store i64 0, ptr %7, align 8
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
%18 = load i32, ptr %10, align 4
%19 = icmp slt i32 %18, 9
br i1 %19, label %.lr.ph, label %29
.lr.ph: ; preds = %2
br label %20
20: ; preds = %.lr.ph, %24
%21 = load i32, ptr %10, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [9 x i32], ptr %8, i64 0, i64 %22
store i32 0, ptr %23, align 4
br label %24
24: ; preds = %20
%25 = load i32, ptr %10, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %10, align 4
%27 = load i32, ptr %10, align 4
%28 = icmp slt i32 %27, 9
br i1 %28, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %29
29: ; preds = %._crit_edge, %2
%30 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef 32, i32 noundef 13, i32 noundef 9, i32 noundef 3)
%31 = call i32 (...) @clock()
store i32 %31, ptr %14, align 4
br label %32
32: ; preds = %113, %29
%33 = load i64, ptr %6, align 8
%34 = add nsw i64 %33, 1
store i64 %34, ptr %6, align 8
store i32 1, ptr %15, align 4
store i32 0, ptr %11, align 4
br label %35
35: ; preds = %73, %32
%36 = load i32, ptr %15, align 4
%37 = icmp ne i32 %36, 0
br i1 %37, label %38, label %41
38: ; preds = %35
%39 = load i32, ptr %11, align 4
%40 = icmp slt i32 %39, 6
br label %41
41: ; preds = %38, %35
%42 = phi i1 [ false, %35 ], [ %40, %38 ]
br i1 %42, label %43, label %76
43: ; preds = %41
store i32 0, ptr %15, align 4
%44 = load i32, ptr %11, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %13, align 4
br label %46
46: ; preds = %69, %43
%47 = load i32, ptr %15, align 4
%48 = icmp ne i32 %47, 0
br i1 %48, label %55, label %49
49: ; preds = %46
%50 = load i32, ptr %13, align 4
%51 = load i32, ptr %11, align 4
%52 = add nsw i32 %51, 3
%53 = add nsw i32 %52, 1
%54 = icmp slt i32 %50, %53
br label %55
55: ; preds = %49, %46
%56 = phi i1 [ false, %46 ], [ %54, %49 ]
br i1 %56, label %57, label %72
57: ; preds = %55
%58 = load i32, ptr %11, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [9 x i32], ptr %8, i64 0, i64 %59
%61 = load i32, ptr %60, align 4
%62 = load i32, ptr %13, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [9 x i32], ptr %8, i64 0, i64 %63
%65 = load i32, ptr %64, align 4
%66 = icmp ne i32 %61, %65
br i1 %66, label %67, label %68
67: ; preds = %57
store i32 1, ptr %15, align 4
br label %68
68: ; preds = %67, %57
br label %69
69: ; preds = %68
%70 = load i32, ptr %13, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %13, align 4
br label %46, !llvm.loop !8
72: ; preds = %55
br label %73
73: ; preds = %72
%74 = load i32, ptr %11, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %11, align 4
br label %35, !llvm.loop !9
76: ; preds = %41
%77 = load i32, ptr %15, align 4
%78 = icmp ne i32 %77, 0
br i1 %78, label %79, label %82
79: ; preds = %76
%80 = load i64, ptr %7, align 8
%81 = add nsw i64 %80, 1
store i64 %81, ptr %7, align 8
br label %82
82: ; preds = %79, %76
%83 = getelementptr inbounds [9 x i32], ptr %8, i64 0, i64 0
%84 = load i32, ptr %83, align 16
%85 = add nsw i32 %84, 1
store i32 %85, ptr %83, align 16
store i32 0, ptr %16, align 4
%86 = load i32, ptr %16, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [9 x i32], ptr %8, i64 0, i64 %87
%89 = load i32, ptr %88, align 4
%90 = icmp sge i32 %89, 13
br i1 %90, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %82
br label %91
91: ; preds = %.lr.ph2, %106
%92 = load i32, ptr %16, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [9 x i32], ptr %8, i64 0, i64 %93
store i32 0, ptr %94, align 4
%95 = load i32, ptr %16, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %16, align 4
%97 = load i32, ptr %16, align 4
%98 = icmp slt i32 %97, 9
br i1 %98, label %99, label %105
99: ; preds = %91
%100 = load i32, ptr %16, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds [9 x i32], ptr %8, i64 0, i64 %101
%103 = load i32, ptr %102, align 4
%104 = add nsw i32 %103, 1
store i32 %104, ptr %102, align 4
br label %106
105: ; preds = %91
store i32 1, ptr %9, align 4
br label %112
106: ; preds = %99
%107 = load i32, ptr %16, align 4
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [9 x i32], ptr %8, i64 0, i64 %108
%110 = load i32, ptr %109, align 4
%111 = icmp sge i32 %110, 13
br i1 %111, label %91, label %..loopexit_crit_edge, !llvm.loop !10
..loopexit_crit_edge: ; preds = %106
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %82
br label %112
112: ; preds = %.loopexit, %105
br label %113
113: ; preds = %112
%114 = load i32, ptr %9, align 4
%115 = icmp ne i32 %114, 0
%116 = xor i1 %115, true
br i1 %116, label %32, label %117, !llvm.loop !11
117: ; preds = %113
%118 = call i32 (...) @clock()
store i32 %118, ptr %17, align 4
%119 = load i64, ptr %6, align 8
%120 = trunc i64 %119 to i32
%121 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %120)
%122 = load i64, ptr %7, align 8
%123 = trunc i64 %122 to i32
%124 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %123)
%125 = load i32, ptr %17, align 4
%126 = load i32, ptr %14, align 4
%127 = sub nsw i32 %125, %126
%128 = mul nsw i32 %127, 1000
%129 = load i32, ptr @CLOCKS_PER_SEC, align 4
%130 = sdiv i32 %128, %129
%131 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.3, i32 noundef %130)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
declare i32 @clock(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmpvej10_ae.c'
source_filename = "/tmp/tmpvej10_ae.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fft_rec(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6) #0 {
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca double, align 8
%24 = alloca double, align 8
store i32 %0, ptr %8, align 4
store i32 %1, ptr %9, align 4
store i32 %2, ptr %10, align 4
store ptr %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
store i32 %6, ptr %14, align 4
%25 = load i32, ptr %8, align 4
%26 = sdiv i32 %25, 2
store i32 %26, ptr %15, align 4
%27 = load i32, ptr %14, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %14, align 4
%29 = load i32, ptr %8, align 4
%30 = icmp ne i32 %29, 2
br i1 %30, label %31, label %179
31: ; preds = %7
%32 = load i32, ptr %15, align 4
%33 = load i32, ptr %9, align 4
%34 = load i32, ptr %10, align 4
%35 = mul nsw i32 2, %34
%36 = load ptr, ptr %11, align 8
%37 = load ptr, ptr %13, align 8
%38 = load ptr, ptr %12, align 8
%39 = load i32, ptr %14, align 4
call void @fft_rec(i32 noundef %32, i32 noundef %33, i32 noundef %35, ptr noundef %36, ptr noundef %37, ptr noundef %38, i32 noundef %39)
%40 = load i32, ptr %15, align 4
%41 = load i32, ptr %9, align 4
%42 = load i32, ptr %10, align 4
%43 = add nsw i32 %41, %42
%44 = load i32, ptr %10, align 4
%45 = mul nsw i32 2, %44
%46 = load ptr, ptr %11, align 8
%47 = load ptr, ptr %13, align 8
%48 = load ptr, ptr %12, align 8
%49 = load i32, ptr %14, align 4
call void @fft_rec(i32 noundef %40, i32 noundef %43, i32 noundef %45, ptr noundef %46, ptr noundef %47, ptr noundef %48, i32 noundef %49)
store i32 0, ptr %16, align 4
br label %50
50: ; preds = %175, %31
%51 = load i32, ptr %16, align 4
%52 = load i32, ptr %15, align 4
%53 = icmp slt i32 %51, %52
br i1 %53, label %54, label %178
54: ; preds = %50
%55 = load i32, ptr %9, align 4
%56 = load i32, ptr %16, align 4
%57 = load i32, ptr %10, align 4
%58 = mul nsw i32 %56, %57
%59 = add nsw i32 %55, %58
store i32 %59, ptr %19, align 4
%60 = load i32, ptr %19, align 4
%61 = load i32, ptr %15, align 4
%62 = load i32, ptr %10, align 4
%63 = mul nsw i32 %61, %62
%64 = add nsw i32 %60, %63
store i32 %64, ptr %20, align 4
%65 = load i32, ptr %9, align 4
%66 = load i32, ptr %16, align 4
%67 = mul nsw i32 2, %66
%68 = load i32, ptr %10, align 4
%69 = mul nsw i32 %67, %68
%70 = add nsw i32 %65, %69
store i32 %70, ptr %21, align 4
%71 = load i32, ptr %21, align 4
%72 = load i32, ptr %10, align 4
%73 = add nsw i32 %71, %72
store i32 %73, ptr %22, align 4
%74 = load i32, ptr %16, align 4
%75 = sitofp i32 %74 to x86_fp80
%76 = fmul x86_fp80 0xK4001C90FDAA22168C235, %75
%77 = load i32, ptr %8, align 4
%78 = sitofp i32 %77 to double
%79 = fpext double %78 to x86_fp80
%80 = fdiv x86_fp80 %76, %79
%81 = call double @cos(x86_fp80 noundef %80)
store double %81, ptr %17, align 8
%82 = load i32, ptr %16, align 4
%83 = sitofp i32 %82 to x86_fp80
%84 = fmul x86_fp80 0xK4001C90FDAA22168C235, %83
%85 = load i32, ptr %8, align 4
%86 = sitofp i32 %85 to double
%87 = fpext double %86 to x86_fp80
%88 = fdiv x86_fp80 %84, %87
%89 = call double @sin(x86_fp80 noundef %88)
store double %89, ptr %18, align 8
%90 = load double, ptr %17, align 8
%91 = load ptr, ptr %13, align 8
%92 = load i32, ptr %22, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [2 x double], ptr %91, i64 %93
%95 = getelementptr inbounds [2 x double], ptr %94, i64 0, i64 0
%96 = load double, ptr %95, align 8
%97 = load double, ptr %18, align 8
%98 = load ptr, ptr %13, align 8
%99 = load i32, ptr %22, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [2 x double], ptr %98, i64 %100
%102 = getelementptr inbounds [2 x double], ptr %101, i64 0, i64 1
%103 = load double, ptr %102, align 8
%104 = fmul double %97, %103
%105 = call double @llvm.fmuladd.f64(double %90, double %96, double %104)
store double %105, ptr %23, align 8
%106 = load double, ptr %17, align 8
%107 = load ptr, ptr %13, align 8
%108 = load i32, ptr %22, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds [2 x double], ptr %107, i64 %109
%111 = getelementptr inbounds [2 x double], ptr %110, i64 0, i64 1
%112 = load double, ptr %111, align 8
%113 = load double, ptr %18, align 8
%114 = load ptr, ptr %13, align 8
%115 = load i32, ptr %22, align 4
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds [2 x double], ptr %114, i64 %116
%118 = getelementptr inbounds [2 x double], ptr %117, i64 0, i64 0
%119 = load double, ptr %118, align 8
%120 = fmul double %113, %119
%121 = fneg double %120
%122 = call double @llvm.fmuladd.f64(double %106, double %112, double %121)
store double %122, ptr %24, align 8
%123 = load ptr, ptr %13, align 8
%124 = load i32, ptr %21, align 4
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds [2 x double], ptr %123, i64 %125
%127 = getelementptr inbounds [2 x double], ptr %126, i64 0, i64 0
%128 = load double, ptr %127, align 8
%129 = load double, ptr %23, align 8
%130 = fsub double %128, %129
%131 = load ptr, ptr %12, align 8
%132 = load i32, ptr %20, align 4
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds [2 x double], ptr %131, i64 %133
%135 = getelementptr inbounds [2 x double], ptr %134, i64 0, i64 0
store double %130, ptr %135, align 8
%136 = load ptr, ptr %13, align 8
%137 = load i32, ptr %21, align 4
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds [2 x double], ptr %136, i64 %138
%140 = getelementptr inbounds [2 x double], ptr %139, i64 0, i64 1
%141 = load double, ptr %140, align 8
%142 = load double, ptr %24, align 8
%143 = fsub double %141, %142
%144 = load ptr, ptr %12, align 8
%145 = load i32, ptr %20, align 4
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds [2 x double], ptr %144, i64 %146
%148 = getelementptr inbounds [2 x double], ptr %147, i64 0, i64 1
store double %143, ptr %148, align 8
%149 = load ptr, ptr %13, align 8
%150 = load i32, ptr %21, align 4
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds [2 x double], ptr %149, i64 %151
%153 = getelementptr inbounds [2 x double], ptr %152, i64 0, i64 0
%154 = load double, ptr %153, align 8
%155 = load double, ptr %23, align 8
%156 = fadd double %154, %155
%157 = load ptr, ptr %12, align 8
%158 = load i32, ptr %19, align 4
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds [2 x double], ptr %157, i64 %159
%161 = getelementptr inbounds [2 x double], ptr %160, i64 0, i64 0
store double %156, ptr %161, align 8
%162 = load ptr, ptr %13, align 8
%163 = load i32, ptr %21, align 4
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds [2 x double], ptr %162, i64 %164
%166 = getelementptr inbounds [2 x double], ptr %165, i64 0, i64 1
%167 = load double, ptr %166, align 8
%168 = load double, ptr %24, align 8
%169 = fadd double %167, %168
%170 = load ptr, ptr %12, align 8
%171 = load i32, ptr %19, align 4
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds [2 x double], ptr %170, i64 %172
%174 = getelementptr inbounds [2 x double], ptr %173, i64 0, i64 1
store double %169, ptr %174, align 8
br label %175
175: ; preds = %54
%176 = load i32, ptr %16, align 4
%177 = add nsw i32 %176, 1
store i32 %177, ptr %16, align 4
br label %50, !llvm.loop !6
178: ; preds = %50
br label %256
179: ; preds = %7
%180 = load i32, ptr %9, align 4
store i32 %180, ptr %19, align 4
%181 = load i32, ptr %19, align 4
%182 = load i32, ptr %10, align 4
%183 = add nsw i32 %181, %182
store i32 %183, ptr %20, align 4
%184 = load ptr, ptr %11, align 8
%185 = load i32, ptr %19, align 4
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds [2 x double], ptr %184, i64 %186
%188 = getelementptr inbounds [2 x double], ptr %187, i64 0, i64 0
%189 = load double, ptr %188, align 8
%190 = load ptr, ptr %11, align 8
%191 = load i32, ptr %20, align 4
%192 = sext i32 %191 to i64
%193 = getelementptr inbounds [2 x double], ptr %190, i64 %192
%194 = getelementptr inbounds [2 x double], ptr %193, i64 0, i64 0
%195 = load double, ptr %194, align 8
%196 = fsub double %189, %195
%197 = load ptr, ptr %12, align 8
%198 = load i32, ptr %20, align 4
%199 = sext i32 %198 to i64
%200 = getelementptr inbounds [2 x double], ptr %197, i64 %199
%201 = getelementptr inbounds [2 x double], ptr %200, i64 0, i64 0
store double %196, ptr %201, align 8
%202 = load ptr, ptr %11, align 8
%203 = load i32, ptr %19, align 4
%204 = sext i32 %203 to i64
%205 = getelementptr inbounds [2 x double], ptr %202, i64 %204
%206 = getelementptr inbounds [2 x double], ptr %205, i64 0, i64 1
%207 = load double, ptr %206, align 8
%208 = load ptr, ptr %11, align 8
%209 = load i32, ptr %20, align 4
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds [2 x double], ptr %208, i64 %210
%212 = getelementptr inbounds [2 x double], ptr %211, i64 0, i64 1
%213 = load double, ptr %212, align 8
%214 = fsub double %207, %213
%215 = load ptr, ptr %12, align 8
%216 = load i32, ptr %20, align 4
%217 = sext i32 %216 to i64
%218 = getelementptr inbounds [2 x double], ptr %215, i64 %217
%219 = getelementptr inbounds [2 x double], ptr %218, i64 0, i64 1
store double %214, ptr %219, align 8
%220 = load ptr, ptr %11, align 8
%221 = load i32, ptr %19, align 4
%222 = sext i32 %221 to i64
%223 = getelementptr inbounds [2 x double], ptr %220, i64 %222
%224 = getelementptr inbounds [2 x double], ptr %223, i64 0, i64 0
%225 = load double, ptr %224, align 8
%226 = load ptr, ptr %11, align 8
%227 = load i32, ptr %20, align 4
%228 = sext i32 %227 to i64
%229 = getelementptr inbounds [2 x double], ptr %226, i64 %228
%230 = getelementptr inbounds [2 x double], ptr %229, i64 0, i64 0
%231 = load double, ptr %230, align 8
%232 = fadd double %225, %231
%233 = load ptr, ptr %12, align 8
%234 = load i32, ptr %19, align 4
%235 = sext i32 %234 to i64
%236 = getelementptr inbounds [2 x double], ptr %233, i64 %235
%237 = getelementptr inbounds [2 x double], ptr %236, i64 0, i64 0
store double %232, ptr %237, align 8
%238 = load ptr, ptr %11, align 8
%239 = load i32, ptr %19, align 4
%240 = sext i32 %239 to i64
%241 = getelementptr inbounds [2 x double], ptr %238, i64 %240
%242 = getelementptr inbounds [2 x double], ptr %241, i64 0, i64 1
%243 = load double, ptr %242, align 8
%244 = load ptr, ptr %11, align 8
%245 = load i32, ptr %20, align 4
%246 = sext i32 %245 to i64
%247 = getelementptr inbounds [2 x double], ptr %244, i64 %246
%248 = getelementptr inbounds [2 x double], ptr %247, i64 0, i64 1
%249 = load double, ptr %248, align 8
%250 = fadd double %243, %249
%251 = load ptr, ptr %12, align 8
%252 = load i32, ptr %19, align 4
%253 = sext i32 %252 to i64
%254 = getelementptr inbounds [2 x double], ptr %251, i64 %253
%255 = getelementptr inbounds [2 x double], ptr %254, i64 0, i64 1
store double %250, ptr %255, align 8
br label %256
256: ; preds = %179, %178
%257 = load i32, ptr %14, align 4
%258 = sub nsw i32 %257, 1
store i32 %258, ptr %14, align 4
ret void
}
declare double @cos(x86_fp80 noundef) #1
declare double @sin(x86_fp80 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvej10_ae.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fft_rec(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6) #0 {
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca double, align 8
%24 = alloca double, align 8
store i32 %0, ptr %8, align 4
store i32 %1, ptr %9, align 4
store i32 %2, ptr %10, align 4
store ptr %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
store i32 %6, ptr %14, align 4
%25 = load i32, ptr %8, align 4
%26 = sdiv i32 %25, 2
store i32 %26, ptr %15, align 4
%27 = load i32, ptr %14, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %14, align 4
%29 = load i32, ptr %8, align 4
%30 = icmp ne i32 %29, 2
br i1 %30, label %31, label %181
31: ; preds = %7
%32 = load i32, ptr %15, align 4
%33 = load i32, ptr %9, align 4
%34 = load i32, ptr %10, align 4
%35 = mul nsw i32 2, %34
%36 = load ptr, ptr %11, align 8
%37 = load ptr, ptr %13, align 8
%38 = load ptr, ptr %12, align 8
%39 = load i32, ptr %14, align 4
call void @fft_rec(i32 noundef %32, i32 noundef %33, i32 noundef %35, ptr noundef %36, ptr noundef %37, ptr noundef %38, i32 noundef %39)
%40 = load i32, ptr %15, align 4
%41 = load i32, ptr %9, align 4
%42 = load i32, ptr %10, align 4
%43 = add nsw i32 %41, %42
%44 = load i32, ptr %10, align 4
%45 = mul nsw i32 2, %44
%46 = load ptr, ptr %11, align 8
%47 = load ptr, ptr %13, align 8
%48 = load ptr, ptr %12, align 8
%49 = load i32, ptr %14, align 4
call void @fft_rec(i32 noundef %40, i32 noundef %43, i32 noundef %45, ptr noundef %46, ptr noundef %47, ptr noundef %48, i32 noundef %49)
store i32 0, ptr %16, align 4
%50 = load i32, ptr %16, align 4
%51 = load i32, ptr %15, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %.lr.ph, label %180
.lr.ph: ; preds = %31
br label %53
53: ; preds = %.lr.ph, %174
%54 = load i32, ptr %9, align 4
%55 = load i32, ptr %16, align 4
%56 = load i32, ptr %10, align 4
%57 = mul nsw i32 %55, %56
%58 = add nsw i32 %54, %57
store i32 %58, ptr %19, align 4
%59 = load i32, ptr %19, align 4
%60 = load i32, ptr %15, align 4
%61 = load i32, ptr %10, align 4
%62 = mul nsw i32 %60, %61
%63 = add nsw i32 %59, %62
store i32 %63, ptr %20, align 4
%64 = load i32, ptr %9, align 4
%65 = load i32, ptr %16, align 4
%66 = mul nsw i32 2, %65
%67 = load i32, ptr %10, align 4
%68 = mul nsw i32 %66, %67
%69 = add nsw i32 %64, %68
store i32 %69, ptr %21, align 4
%70 = load i32, ptr %21, align 4
%71 = load i32, ptr %10, align 4
%72 = add nsw i32 %70, %71
store i32 %72, ptr %22, align 4
%73 = load i32, ptr %16, align 4
%74 = sitofp i32 %73 to x86_fp80
%75 = fmul x86_fp80 0xK4001C90FDAA22168C235, %74
%76 = load i32, ptr %8, align 4
%77 = sitofp i32 %76 to double
%78 = fpext double %77 to x86_fp80
%79 = fdiv x86_fp80 %75, %78
%80 = call double @cos(x86_fp80 noundef %79)
store double %80, ptr %17, align 8
%81 = load i32, ptr %16, align 4
%82 = sitofp i32 %81 to x86_fp80
%83 = fmul x86_fp80 0xK4001C90FDAA22168C235, %82
%84 = load i32, ptr %8, align 4
%85 = sitofp i32 %84 to double
%86 = fpext double %85 to x86_fp80
%87 = fdiv x86_fp80 %83, %86
%88 = call double @sin(x86_fp80 noundef %87)
store double %88, ptr %18, align 8
%89 = load double, ptr %17, align 8
%90 = load ptr, ptr %13, align 8
%91 = load i32, ptr %22, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [2 x double], ptr %90, i64 %92
%94 = getelementptr inbounds [2 x double], ptr %93, i64 0, i64 0
%95 = load double, ptr %94, align 8
%96 = load double, ptr %18, align 8
%97 = load ptr, ptr %13, align 8
%98 = load i32, ptr %22, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [2 x double], ptr %97, i64 %99
%101 = getelementptr inbounds [2 x double], ptr %100, i64 0, i64 1
%102 = load double, ptr %101, align 8
%103 = fmul double %96, %102
%104 = call double @llvm.fmuladd.f64(double %89, double %95, double %103)
store double %104, ptr %23, align 8
%105 = load double, ptr %17, align 8
%106 = load ptr, ptr %13, align 8
%107 = load i32, ptr %22, align 4
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [2 x double], ptr %106, i64 %108
%110 = getelementptr inbounds [2 x double], ptr %109, i64 0, i64 1
%111 = load double, ptr %110, align 8
%112 = load double, ptr %18, align 8
%113 = load ptr, ptr %13, align 8
%114 = load i32, ptr %22, align 4
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds [2 x double], ptr %113, i64 %115
%117 = getelementptr inbounds [2 x double], ptr %116, i64 0, i64 0
%118 = load double, ptr %117, align 8
%119 = fmul double %112, %118
%120 = fneg double %119
%121 = call double @llvm.fmuladd.f64(double %105, double %111, double %120)
store double %121, ptr %24, align 8
%122 = load ptr, ptr %13, align 8
%123 = load i32, ptr %21, align 4
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds [2 x double], ptr %122, i64 %124
%126 = getelementptr inbounds [2 x double], ptr %125, i64 0, i64 0
%127 = load double, ptr %126, align 8
%128 = load double, ptr %23, align 8
%129 = fsub double %127, %128
%130 = load ptr, ptr %12, align 8
%131 = load i32, ptr %20, align 4
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds [2 x double], ptr %130, i64 %132
%134 = getelementptr inbounds [2 x double], ptr %133, i64 0, i64 0
store double %129, ptr %134, align 8
%135 = load ptr, ptr %13, align 8
%136 = load i32, ptr %21, align 4
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds [2 x double], ptr %135, i64 %137
%139 = getelementptr inbounds [2 x double], ptr %138, i64 0, i64 1
%140 = load double, ptr %139, align 8
%141 = load double, ptr %24, align 8
%142 = fsub double %140, %141
%143 = load ptr, ptr %12, align 8
%144 = load i32, ptr %20, align 4
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds [2 x double], ptr %143, i64 %145
%147 = getelementptr inbounds [2 x double], ptr %146, i64 0, i64 1
store double %142, ptr %147, align 8
%148 = load ptr, ptr %13, align 8
%149 = load i32, ptr %21, align 4
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds [2 x double], ptr %148, i64 %150
%152 = getelementptr inbounds [2 x double], ptr %151, i64 0, i64 0
%153 = load double, ptr %152, align 8
%154 = load double, ptr %23, align 8
%155 = fadd double %153, %154
%156 = load ptr, ptr %12, align 8
%157 = load i32, ptr %19, align 4
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds [2 x double], ptr %156, i64 %158
%160 = getelementptr inbounds [2 x double], ptr %159, i64 0, i64 0
store double %155, ptr %160, align 8
%161 = load ptr, ptr %13, align 8
%162 = load i32, ptr %21, align 4
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds [2 x double], ptr %161, i64 %163
%165 = getelementptr inbounds [2 x double], ptr %164, i64 0, i64 1
%166 = load double, ptr %165, align 8
%167 = load double, ptr %24, align 8
%168 = fadd double %166, %167
%169 = load ptr, ptr %12, align 8
%170 = load i32, ptr %19, align 4
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds [2 x double], ptr %169, i64 %171
%173 = getelementptr inbounds [2 x double], ptr %172, i64 0, i64 1
store double %168, ptr %173, align 8
br label %174
174: ; preds = %53
%175 = load i32, ptr %16, align 4
%176 = add nsw i32 %175, 1
store i32 %176, ptr %16, align 4
%177 = load i32, ptr %16, align 4
%178 = load i32, ptr %15, align 4
%179 = icmp slt i32 %177, %178
br i1 %179, label %53, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %174
br label %180
180: ; preds = %._crit_edge, %31
br label %258
181: ; preds = %7
%182 = load i32, ptr %9, align 4
store i32 %182, ptr %19, align 4
%183 = load i32, ptr %19, align 4
%184 = load i32, ptr %10, align 4
%185 = add nsw i32 %183, %184
store i32 %185, ptr %20, align 4
%186 = load ptr, ptr %11, align 8
%187 = load i32, ptr %19, align 4
%188 = sext i32 %187 to i64
%189 = getelementptr inbounds [2 x double], ptr %186, i64 %188
%190 = getelementptr inbounds [2 x double], ptr %189, i64 0, i64 0
%191 = load double, ptr %190, align 8
%192 = load ptr, ptr %11, align 8
%193 = load i32, ptr %20, align 4
%194 = sext i32 %193 to i64
%195 = getelementptr inbounds [2 x double], ptr %192, i64 %194
%196 = getelementptr inbounds [2 x double], ptr %195, i64 0, i64 0
%197 = load double, ptr %196, align 8
%198 = fsub double %191, %197
%199 = load ptr, ptr %12, align 8
%200 = load i32, ptr %20, align 4
%201 = sext i32 %200 to i64
%202 = getelementptr inbounds [2 x double], ptr %199, i64 %201
%203 = getelementptr inbounds [2 x double], ptr %202, i64 0, i64 0
store double %198, ptr %203, align 8
%204 = load ptr, ptr %11, align 8
%205 = load i32, ptr %19, align 4
%206 = sext i32 %205 to i64
%207 = getelementptr inbounds [2 x double], ptr %204, i64 %206
%208 = getelementptr inbounds [2 x double], ptr %207, i64 0, i64 1
%209 = load double, ptr %208, align 8
%210 = load ptr, ptr %11, align 8
%211 = load i32, ptr %20, align 4
%212 = sext i32 %211 to i64
%213 = getelementptr inbounds [2 x double], ptr %210, i64 %212
%214 = getelementptr inbounds [2 x double], ptr %213, i64 0, i64 1
%215 = load double, ptr %214, align 8
%216 = fsub double %209, %215
%217 = load ptr, ptr %12, align 8
%218 = load i32, ptr %20, align 4
%219 = sext i32 %218 to i64
%220 = getelementptr inbounds [2 x double], ptr %217, i64 %219
%221 = getelementptr inbounds [2 x double], ptr %220, i64 0, i64 1
store double %216, ptr %221, align 8
%222 = load ptr, ptr %11, align 8
%223 = load i32, ptr %19, align 4
%224 = sext i32 %223 to i64
%225 = getelementptr inbounds [2 x double], ptr %222, i64 %224
%226 = getelementptr inbounds [2 x double], ptr %225, i64 0, i64 0
%227 = load double, ptr %226, align 8
%228 = load ptr, ptr %11, align 8
%229 = load i32, ptr %20, align 4
%230 = sext i32 %229 to i64
%231 = getelementptr inbounds [2 x double], ptr %228, i64 %230
%232 = getelementptr inbounds [2 x double], ptr %231, i64 0, i64 0
%233 = load double, ptr %232, align 8
%234 = fadd double %227, %233
%235 = load ptr, ptr %12, align 8
%236 = load i32, ptr %19, align 4
%237 = sext i32 %236 to i64
%238 = getelementptr inbounds [2 x double], ptr %235, i64 %237
%239 = getelementptr inbounds [2 x double], ptr %238, i64 0, i64 0
store double %234, ptr %239, align 8
%240 = load ptr, ptr %11, align 8
%241 = load i32, ptr %19, align 4
%242 = sext i32 %241 to i64
%243 = getelementptr inbounds [2 x double], ptr %240, i64 %242
%244 = getelementptr inbounds [2 x double], ptr %243, i64 0, i64 1
%245 = load double, ptr %244, align 8
%246 = load ptr, ptr %11, align 8
%247 = load i32, ptr %20, align 4
%248 = sext i32 %247 to i64
%249 = getelementptr inbounds [2 x double], ptr %246, i64 %248
%250 = getelementptr inbounds [2 x double], ptr %249, i64 0, i64 1
%251 = load double, ptr %250, align 8
%252 = fadd double %245, %251
%253 = load ptr, ptr %12, align 8
%254 = load i32, ptr %19, align 4
%255 = sext i32 %254 to i64
%256 = getelementptr inbounds [2 x double], ptr %253, i64 %255
%257 = getelementptr inbounds [2 x double], ptr %256, i64 0, i64 1
store double %252, ptr %257, align 8
br label %258
258: ; preds = %181, %180
%259 = load i32, ptr %14, align 4
%260 = sub nsw i32 %259, 1
store i32 %260, ptr %14, align 4
ret void
}
declare double @cos(x86_fp80 noundef) #1
declare double @sin(x86_fp80 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpgnusppsr.c'
source_filename = "/tmp/tmpgnusppsr.c"
target datalayout = "e-m:e-p270: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/tmpgnusppsr.c"
target datalayout = "e-m:e-p270: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/tmp6trkvjot.c'
source_filename = "/tmp/tmp6trkvjot.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @strlen(ptr noundef %4)
%6 = add nsw i64 %5, 1
%7 = call i64 @malloc(i64 noundef %6)
%8 = inttoptr i64 %7 to ptr
store ptr %8, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %15
11: ; preds = %1
%12 = load ptr, ptr %3, align 8
%13 = load ptr, ptr %2, align 8
%14 = call i32 @strcpy(ptr noundef %12, ptr noundef %13)
br label %15
15: ; preds = %11, %1
%16 = load ptr, ptr %3, align 8
ret ptr %16
}
declare i64 @malloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(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/tmp6trkvjot.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @strlen(ptr noundef %4)
%6 = add nsw i64 %5, 1
%7 = call i64 @malloc(i64 noundef %6)
%8 = inttoptr i64 %7 to ptr
store ptr %8, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %15
11: ; preds = %1
%12 = load ptr, ptr %3, align 8
%13 = load ptr, ptr %2, align 8
%14 = call i32 @strcpy(ptr noundef %12, ptr noundef %13)
br label %15
15: ; preds = %11, %1
%16 = load ptr, ptr %3, align 8
ret ptr %16
}
declare i64 @malloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(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/tmpbk3wta3a.c'
source_filename = "/tmp/tmpbk3wta3a.c"
target datalayout = "e-m:e-p270: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/tmpbk3wta3a.c"
target datalayout = "e-m:e-p270: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/tmpg3y9ugr_.c'
source_filename = "/tmp/tmpg3y9ugr_.c"
target datalayout = "e-m:e-p270: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/tmpg3y9ugr_.c"
target datalayout = "e-m:e-p270: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/tmpid1o3q9j.c'
source_filename = "/tmp/tmpid1o3q9j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"timer called\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @timer(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @glutTimerFunc(i32 noundef 500, ptr noundef @timer, i32 noundef 0)
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @glutTimerFunc(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/tmpid1o3q9j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"timer called\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @timer(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @glutTimerFunc(i32 noundef 500, ptr noundef @timer, i32 noundef 0)
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @glutTimerFunc(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/tmpw5bng_g8.c'
source_filename = "/tmp/tmpw5bng_g8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @FMfilter(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
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %97, %2
%8 = load i32, ptr %5, align 4
%9 = load ptr, ptr %4, align 8
%10 = call i32 @strlen(ptr noundef %9)
%11 = icmp sle i32 %8, %10
br i1 %11, label %12, label %100
12: ; preds = %7
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %5, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
switch i32 %18, label %84 [
i32 9, label %19
i32 62, label %32
i32 39, label %45
i32 96, label %58
i32 92, label %71
]
19: ; preds = %12
%20 = load ptr, ptr %3, align 8
%21 = load i32, ptr %6, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
store i8 92, ptr %23, align 1
%24 = load i32, ptr %6, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %6, align 4
%26 = load ptr, ptr %3, align 8
%27 = load i32, ptr %6, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
store i8 116, ptr %29, align 1
%30 = load i32, ptr %6, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %6, align 4
br label %96
32: ; preds = %12
%33 = load ptr, ptr %3, align 8
%34 = load i32, ptr %6, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
store i8 92, ptr %36, align 1
%37 = load i32, ptr %6, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %6, align 4
%39 = load ptr, ptr %3, align 8
%40 = load i32, ptr %6, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8, ptr %39, i64 %41
store i8 62, ptr %42, align 1
%43 = load i32, ptr %6, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %6, align 4
br label %96
45: ; preds = %12
%46 = load ptr, ptr %3, align 8
%47 = load i32, ptr %6, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8, ptr %46, i64 %48
store i8 92, ptr %49, align 1
%50 = load i32, ptr %6, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %6, align 4
%52 = load ptr, ptr %3, align 8
%53 = load i32, ptr %6, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %52, i64 %54
store i8 39, ptr %55, align 1
%56 = load i32, ptr %6, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %6, align 4
br label %96
58: ; preds = %12
%59 = load ptr, ptr %3, align 8
%60 = load i32, ptr %6, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i8, ptr %59, i64 %61
store i8 92, ptr %62, align 1
%63 = load i32, ptr %6, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %6, align 4
%65 = load ptr, ptr %3, align 8
%66 = load i32, ptr %6, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i8, ptr %65, i64 %67
store i8 96, ptr %68, align 1
%69 = load i32, ptr %6, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %6, align 4
br label %96
71: ; preds = %12
%72 = load ptr, ptr %3, align 8
%73 = load i32, ptr %6, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i8, ptr %72, i64 %74
store i8 92, ptr %75, align 1
%76 = load i32, ptr %6, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %6, align 4
%78 = load ptr, ptr %3, align 8
%79 = load i32, ptr %6, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i8, ptr %78, i64 %80
store i8 92, ptr %81, align 1
%82 = load i32, ptr %6, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %6, align 4
br label %96
84: ; preds = %12
%85 = load ptr, ptr %4, align 8
%86 = load i32, ptr %5, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i8, ptr %85, i64 %87
%89 = load i8, ptr %88, align 1
%90 = load ptr, ptr %3, align 8
%91 = load i32, ptr %6, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i8, ptr %90, i64 %92
store i8 %89, ptr %93, align 1
%94 = load i32, ptr %6, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %6, align 4
br label %96
96: ; preds = %84, %71, %58, %45, %32, %19
br label %97
97: ; preds = %96
%98 = load i32, ptr %5, align 4
%99 = add nsw i32 %98, 1
store i32 %99, ptr %5, align 4
br label %7, !llvm.loop !6
100: ; preds = %7
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/tmpw5bng_g8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @FMfilter(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
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = load ptr, ptr %4, align 8
%9 = call i32 @strlen(ptr noundef %8)
%10 = icmp sle i32 %7, %9
br i1 %10, label %.lr.ph, label %103
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %96
%12 = load ptr, ptr %4, align 8
%13 = load i32, ptr %5, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
switch i32 %17, label %83 [
i32 9, label %18
i32 62, label %31
i32 39, label %44
i32 96, label %57
i32 92, label %70
]
18: ; preds = %11
%19 = load ptr, ptr %3, align 8
%20 = load i32, ptr %6, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
store i8 92, ptr %22, align 1
%23 = load i32, ptr %6, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %6, align 4
%25 = load ptr, ptr %3, align 8
%26 = load i32, ptr %6, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
store i8 116, ptr %28, align 1
%29 = load i32, ptr %6, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %6, align 4
br label %95
31: ; preds = %11
%32 = load ptr, ptr %3, align 8
%33 = load i32, ptr %6, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
store i8 92, ptr %35, align 1
%36 = load i32, ptr %6, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %6, align 4
%38 = load ptr, ptr %3, align 8
%39 = load i32, ptr %6, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, ptr %38, i64 %40
store i8 62, ptr %41, align 1
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4
br label %95
44: ; preds = %11
%45 = load ptr, ptr %3, align 8
%46 = load i32, ptr %6, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8, ptr %45, i64 %47
store i8 92, ptr %48, align 1
%49 = load i32, ptr %6, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %6, align 4
%51 = load ptr, ptr %3, align 8
%52 = load i32, ptr %6, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, ptr %51, i64 %53
store i8 39, ptr %54, align 1
%55 = load i32, ptr %6, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %6, align 4
br label %95
57: ; preds = %11
%58 = load ptr, ptr %3, align 8
%59 = load i32, ptr %6, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i8, ptr %58, i64 %60
store i8 92, ptr %61, align 1
%62 = load i32, ptr %6, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %6, align 4
%64 = load ptr, ptr %3, align 8
%65 = load i32, ptr %6, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i8, ptr %64, i64 %66
store i8 96, ptr %67, align 1
%68 = load i32, ptr %6, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %6, align 4
br label %95
70: ; preds = %11
%71 = load ptr, ptr %3, align 8
%72 = load i32, ptr %6, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i8, ptr %71, i64 %73
store i8 92, ptr %74, align 1
%75 = load i32, ptr %6, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %6, align 4
%77 = load ptr, ptr %3, align 8
%78 = load i32, ptr %6, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i8, ptr %77, i64 %79
store i8 92, ptr %80, align 1
%81 = load i32, ptr %6, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %6, align 4
br label %95
83: ; preds = %11
%84 = load ptr, ptr %4, align 8
%85 = load i32, ptr %5, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i8, ptr %84, i64 %86
%88 = load i8, ptr %87, align 1
%89 = load ptr, ptr %3, align 8
%90 = load i32, ptr %6, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i8, ptr %89, i64 %91
store i8 %88, ptr %92, align 1
%93 = load i32, ptr %6, align 4
%94 = add nsw i32 %93, 1
store i32 %94, ptr %6, align 4
br label %95
95: ; preds = %83, %70, %57, %44, %31, %18
br label %96
96: ; preds = %95
%97 = load i32, ptr %5, align 4
%98 = add nsw i32 %97, 1
store i32 %98, ptr %5, align 4
%99 = load i32, ptr %5, align 4
%100 = load ptr, ptr %4, align 8
%101 = call i32 @strlen(ptr noundef %100)
%102 = icmp sle i32 %99, %101
br i1 %102, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %96
br label %103
103: ; preds = %._crit_edge, %2
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/tmp5w1ddwqk.c'
source_filename = "/tmp/tmp5w1ddwqk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_divisible_by_5(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 @is_divisible(i32 noundef %3, i32 noundef 5)
ret i32 %4
}
declare i32 @is_divisible(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/tmp5w1ddwqk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_divisible_by_5(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 @is_divisible(i32 noundef %3, i32 noundef 5)
ret i32 %4
}
declare i32 @is_divisible(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/tmppt2pp1pu.c'
source_filename = "/tmp/tmppt2pp1pu.c"
target datalayout = "e-m:e-p270: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/tmppt2pp1pu.c"
target datalayout = "e-m:e-p270: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/tmpgluqt81d.c'
source_filename = "/tmp/tmpgluqt81d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hash_ulongptr_hash(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 @assert(ptr noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = load i64, ptr %5, align 8
%7 = trunc i64 %6 to i32
ret i32 %7
}
declare i32 @assert(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgluqt81d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hash_ulongptr_hash(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 @assert(ptr noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = load i64, ptr %5, align 8
%7 = trunc i64 %6 to i32
ret i32 %7
}
declare i32 @assert(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptmvtd4uq.c'
source_filename = "/tmp/tmptmvtd4uq.c"
target datalayout = "e-m:e-p270: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/tmptmvtd4uq.c"
target datalayout = "e-m:e-p270: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/tmpo534pkho.c'
source_filename = "/tmp/tmpo534pkho.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"card.raw\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [35 x i8] c"Wasn't able to open the cardfile.\0A\00", align 1
@__const.main.checkjpg1 = private unnamed_addr constant [4 x i32] [i32 255, i32 216, i32 255, i32 224], align 16
@__const.main.checkjpg2 = private unnamed_addr constant [4 x i32] [i32 255, i32 216, i32 255, i32 225], align 16
@.str.3 = private unnamed_addr constant [9 x i8] c"%03d.jpg\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"w\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca [4 x i32], align 16
%4 = alloca [4 x i32], align 16
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca [512 x i32], align 16
%9 = alloca [4 x i32], align 16
%10 = alloca i32, align 4
%11 = alloca [8 x i8], align 1
store i32 0, ptr %1, align 4
%12 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %12, ptr %2, align 8
%13 = load ptr, ptr %2, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %20
15: ; preds = %0
%16 = load ptr, ptr %2, align 8
%17 = call i32 @fclose(ptr noundef %16)
%18 = load i32, ptr @stderr, align 4
%19 = call i32 @fprintf(i32 noundef %18, ptr noundef @.str.2)
store i32 1, ptr %1, align 4
br label %98
20: ; preds = %0
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.checkjpg1, i64 16, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.main.checkjpg2, i64 16, i1 false)
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%21 = getelementptr inbounds [512 x i32], ptr %8, i64 0, i64 0
%22 = load ptr, ptr %2, align 8
%23 = call i64 @fread(ptr noundef %21, i32 noundef 512, i32 noundef 1, ptr noundef %22)
br label %24
24: ; preds = %88, %20
%25 = getelementptr inbounds [512 x i32], ptr %8, i64 0, i64 0
%26 = load ptr, ptr %2, align 8
%27 = call i64 @fread(ptr noundef %25, i32 noundef 512, i32 noundef 1, ptr noundef %26)
%28 = icmp sgt i64 %27, 0
br i1 %28, label %29, label %89
29: ; preds = %24
store i32 0, ptr %10, align 4
br label %30
30: ; preds = %41, %29
%31 = load i32, ptr %10, align 4
%32 = icmp slt i32 %31, 4
br i1 %32, label %33, label %44
33: ; preds = %30
%34 = load i32, ptr %10, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [512 x i32], ptr %8, i64 0, i64 %35
%37 = load i32, ptr %36, align 4
%38 = load i32, ptr %10, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 %39
store i32 %37, ptr %40, align 4
br label %41
41: ; preds = %33
%42 = load i32, ptr %10, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %10, align 4
br label %30, !llvm.loop !6
44: ; preds = %30
%45 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 0
%46 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 0
%47 = call i64 @memcmp(ptr noundef %45, ptr noundef %46, i32 noundef 4)
%48 = icmp eq i64 %47, 0
br i1 %48, label %54, label %49
49: ; preds = %44
%50 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 0
%51 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 0
%52 = call i64 @memcmp(ptr noundef %50, ptr noundef %51, i32 noundef 16)
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %80
54: ; preds = %49, %44
%55 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 0
%56 = load i32, ptr %5, align 4
%57 = call i32 @sprintf(ptr noundef %55, ptr noundef @.str.3, i32 noundef %56)
%58 = load i32, ptr %6, align 4
%59 = icmp eq i32 %58, 0
br i1 %59, label %60, label %66
60: ; preds = %54
%61 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 0
%62 = call ptr @fopen(ptr noundef %61, ptr noundef @.str.4)
store ptr %62, ptr %7, align 8
%63 = getelementptr inbounds [512 x i32], ptr %8, i64 0, i64 0
%64 = load ptr, ptr %7, align 8
%65 = call i32 @fwrite(ptr noundef %63, i32 noundef 2048, i32 noundef 1, ptr noundef %64)
store i32 1, ptr %6, align 4
br label %66
66: ; preds = %60, %54
%67 = load i32, ptr %6, align 4
%68 = icmp eq i32 %67, 1
br i1 %68, label %69, label %79
69: ; preds = %66
%70 = load ptr, ptr %7, align 8
%71 = call i32 @fclose(ptr noundef %70)
%72 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 0
%73 = call ptr @fopen(ptr noundef %72, ptr noundef @.str.4)
store ptr %73, ptr %7, align 8
%74 = getelementptr inbounds [512 x i32], ptr %8, i64 0, i64 0
%75 = load ptr, ptr %7, align 8
%76 = call i32 @fwrite(ptr noundef %74, i32 noundef 2048, i32 noundef 1, ptr noundef %75)
%77 = load i32, ptr %5, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %5, align 4
br label %79
79: ; preds = %69, %66
br label %88
80: ; preds = %49
%81 = load i32, ptr %6, align 4
%82 = icmp eq i32 %81, 1
br i1 %82, label %83, label %87
83: ; preds = %80
%84 = getelementptr inbounds [512 x i32], ptr %8, i64 0, i64 0
%85 = load ptr, ptr %7, align 8
%86 = call i32 @fwrite(ptr noundef %84, i32 noundef 2048, i32 noundef 1, ptr noundef %85)
br label %87
87: ; preds = %83, %80
br label %88
88: ; preds = %87, %79
br label %24, !llvm.loop !8
89: ; preds = %24
%90 = load ptr, ptr %7, align 8
%91 = icmp ne ptr %90, null
br i1 %91, label %92, label %95
92: ; preds = %89
%93 = load ptr, ptr %7, align 8
%94 = call i32 @fclose(ptr noundef %93)
br label %95
95: ; preds = %92, %89
%96 = load ptr, ptr %2, align 8
%97 = call i32 @fclose(ptr noundef %96)
store i32 0, ptr %1, align 4
br label %98
98: ; preds = %95, %15
%99 = load i32, ptr %1, align 4
ret i32 %99
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #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 i64 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i64 @memcmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpo534pkho.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"card.raw\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [35 x i8] c"Wasn't able to open the cardfile.\0A\00", align 1
@__const.main.checkjpg1 = private unnamed_addr constant [4 x i32] [i32 255, i32 216, i32 255, i32 224], align 16
@__const.main.checkjpg2 = private unnamed_addr constant [4 x i32] [i32 255, i32 216, i32 255, i32 225], align 16
@.str.3 = private unnamed_addr constant [9 x i8] c"%03d.jpg\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"w\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca [4 x i32], align 16
%4 = alloca [4 x i32], align 16
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca [512 x i32], align 16
%9 = alloca [4 x i32], align 16
%10 = alloca i32, align 4
%11 = alloca [8 x i8], align 1
store i32 0, ptr %1, align 4
%12 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %12, ptr %2, align 8
%13 = load ptr, ptr %2, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %20
15: ; preds = %0
%16 = load ptr, ptr %2, align 8
%17 = call i32 @fclose(ptr noundef %16)
%18 = load i32, ptr @stderr, align 4
%19 = call i32 @fprintf(i32 noundef %18, ptr noundef @.str.2)
store i32 1, ptr %1, align 4
br label %101
20: ; preds = %0
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.checkjpg1, i64 16, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.main.checkjpg2, i64 16, i1 false)
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%21 = getelementptr inbounds [512 x i32], ptr %8, i64 0, i64 0
%22 = load ptr, ptr %2, align 8
%23 = call i64 @fread(ptr noundef %21, i32 noundef 512, i32 noundef 1, ptr noundef %22)
%24 = getelementptr inbounds [512 x i32], ptr %8, i64 0, i64 0
%25 = load ptr, ptr %2, align 8
%26 = call i64 @fread(ptr noundef %24, i32 noundef 512, i32 noundef 1, ptr noundef %25)
%27 = icmp sgt i64 %26, 0
br i1 %27, label %.lr.ph2, label %92
.lr.ph2: ; preds = %20
br label %28
28: ; preds = %.lr.ph2, %88
store i32 0, ptr %10, align 4
%29 = load i32, ptr %10, align 4
%30 = icmp slt i32 %29, 4
br i1 %30, label %.lr.ph, label %44
.lr.ph: ; preds = %28
br label %31
31: ; preds = %.lr.ph, %39
%32 = load i32, ptr %10, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [512 x i32], ptr %8, i64 0, i64 %33
%35 = load i32, ptr %34, align 4
%36 = load i32, ptr %10, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 %37
store i32 %35, ptr %38, align 4
br label %39
39: ; preds = %31
%40 = load i32, ptr %10, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %10, align 4
%42 = load i32, ptr %10, align 4
%43 = icmp slt i32 %42, 4
br i1 %43, label %31, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %39
br label %44
44: ; preds = %._crit_edge, %28
%45 = getelementptr inbounds [4 x i32], ptr %3, i64 0, i64 0
%46 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 0
%47 = call i64 @memcmp(ptr noundef %45, ptr noundef %46, i32 noundef 4)
%48 = icmp eq i64 %47, 0
br i1 %48, label %54, label %49
49: ; preds = %44
%50 = getelementptr inbounds [4 x i32], ptr %4, i64 0, i64 0
%51 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 0
%52 = call i64 @memcmp(ptr noundef %50, ptr noundef %51, i32 noundef 16)
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %80
54: ; preds = %49, %44
%55 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 0
%56 = load i32, ptr %5, align 4
%57 = call i32 @sprintf(ptr noundef %55, ptr noundef @.str.3, i32 noundef %56)
%58 = load i32, ptr %6, align 4
%59 = icmp eq i32 %58, 0
br i1 %59, label %60, label %66
60: ; preds = %54
%61 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 0
%62 = call ptr @fopen(ptr noundef %61, ptr noundef @.str.4)
store ptr %62, ptr %7, align 8
%63 = getelementptr inbounds [512 x i32], ptr %8, i64 0, i64 0
%64 = load ptr, ptr %7, align 8
%65 = call i32 @fwrite(ptr noundef %63, i32 noundef 2048, i32 noundef 1, ptr noundef %64)
store i32 1, ptr %6, align 4
br label %66
66: ; preds = %60, %54
%67 = load i32, ptr %6, align 4
%68 = icmp eq i32 %67, 1
br i1 %68, label %69, label %79
69: ; preds = %66
%70 = load ptr, ptr %7, align 8
%71 = call i32 @fclose(ptr noundef %70)
%72 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 0
%73 = call ptr @fopen(ptr noundef %72, ptr noundef @.str.4)
store ptr %73, ptr %7, align 8
%74 = getelementptr inbounds [512 x i32], ptr %8, i64 0, i64 0
%75 = load ptr, ptr %7, align 8
%76 = call i32 @fwrite(ptr noundef %74, i32 noundef 2048, i32 noundef 1, ptr noundef %75)
%77 = load i32, ptr %5, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %5, align 4
br label %79
79: ; preds = %69, %66
br label %88
80: ; preds = %49
%81 = load i32, ptr %6, align 4
%82 = icmp eq i32 %81, 1
br i1 %82, label %83, label %87
83: ; preds = %80
%84 = getelementptr inbounds [512 x i32], ptr %8, i64 0, i64 0
%85 = load ptr, ptr %7, align 8
%86 = call i32 @fwrite(ptr noundef %84, i32 noundef 2048, i32 noundef 1, ptr noundef %85)
br label %87
87: ; preds = %83, %80
br label %88
88: ; preds = %87, %79
%89 = load ptr, ptr %2, align 8
%90 = call i64 @fread(ptr noundef %24, i32 noundef 512, i32 noundef 1, ptr noundef %89)
%91 = icmp sgt i64 %90, 0
br i1 %91, label %28, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %88
br label %92
92: ; preds = %._crit_edge3, %20
%93 = load ptr, ptr %7, align 8
%94 = icmp ne ptr %93, null
br i1 %94, label %95, label %98
95: ; preds = %92
%96 = load ptr, ptr %7, align 8
%97 = call i32 @fclose(ptr noundef %96)
br label %98
98: ; preds = %95, %92
%99 = load ptr, ptr %2, align 8
%100 = call i32 @fclose(ptr noundef %99)
store i32 0, ptr %1, align 4
br label %101
101: ; preds = %98, %15
%102 = load i32, ptr %1, align 4
ret i32 %102
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #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 i64 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i64 @memcmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp7h_bqqqt.c'
source_filename = "/tmp/tmp7h_bqqqt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"a\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @log_init(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 @log_init_internal(ptr noundef %3, ptr noundef @.str)
ret i32 %4
}
declare i32 @log_init_internal(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/tmp7h_bqqqt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"a\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @log_init(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 @log_init_internal(ptr noundef %3, ptr noundef @.str)
ret i32 %4
}
declare i32 @log_init_internal(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/tmpm16vms5h.c'
source_filename = "/tmp/tmpm16vms5h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @trim(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @strlen(ptr noundef %5)
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, ptr %4, i64 %7
%9 = getelementptr inbounds i8, ptr %8, i64 -1
store ptr %9, ptr %3, align 8
br label %10
10: ; preds = %21, %1
%11 = load ptr, ptr %3, align 8
%12 = load ptr, ptr %2, align 8
%13 = icmp uge ptr %11, %12
br i1 %13, label %14, label %19
14: ; preds = %10
%15 = load ptr, ptr %3, align 8
%16 = load i8, ptr %15, align 1
%17 = call i64 @isspace(i8 noundef signext %16)
%18 = icmp ne i64 %17, 0
br label %19
19: ; preds = %14, %10
%20 = phi i1 [ false, %10 ], [ %18, %14 ]
br i1 %20, label %21, label %24
21: ; preds = %19
%22 = load ptr, ptr %3, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 -1
store ptr %23, ptr %3, align 8
br label %10, !llvm.loop !6
24: ; preds = %19
%25 = load ptr, ptr %3, align 8
%26 = getelementptr inbounds i8, ptr %25, i64 1
store i8 10, ptr %26, align 1
%27 = load ptr, ptr %3, align 8
%28 = getelementptr inbounds i8, ptr %27, i64 2
store i8 0, ptr %28, align 1
%29 = load ptr, ptr %2, align 8
ret ptr %29
}
declare i32 @strlen(ptr noundef) #1
declare i64 @isspace(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm16vms5h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @trim(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @strlen(ptr noundef %5)
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, ptr %4, i64 %7
%9 = getelementptr inbounds i8, ptr %8, i64 -1
store ptr %9, ptr %3, align 8
br label %10
10: ; preds = %21, %1
%11 = load ptr, ptr %3, align 8
%12 = load ptr, ptr %2, align 8
%13 = icmp uge ptr %11, %12
br i1 %13, label %14, label %19
14: ; preds = %10
%15 = load ptr, ptr %3, align 8
%16 = load i8, ptr %15, align 1
%17 = call i64 @isspace(i8 noundef signext %16)
%18 = icmp ne i64 %17, 0
br label %19
19: ; preds = %14, %10
%20 = phi i1 [ false, %10 ], [ %18, %14 ]
br i1 %20, label %21, label %24
21: ; preds = %19
%22 = load ptr, ptr %3, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 -1
store ptr %23, ptr %3, align 8
br label %10, !llvm.loop !6
24: ; preds = %19
%25 = load ptr, ptr %3, align 8
%26 = getelementptr inbounds i8, ptr %25, i64 1
store i8 10, ptr %26, align 1
%27 = load ptr, ptr %3, align 8
%28 = getelementptr inbounds i8, ptr %27, i64 2
store i8 0, ptr %28, align 1
%29 = load ptr, ptr %2, align 8
ret ptr %29
}
declare i32 @strlen(ptr noundef) #1
declare i64 @isspace(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmprl081916.c'
source_filename = "/tmp/tmprl081916.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 65, ptr %2, align 4
br label %3
3: ; preds = %9, %0
%4 = load i32, ptr %2, align 4
%5 = icmp sle i32 %4, 90
br i1 %5, label %6, label %12
6: ; preds = %3
%7 = load i32, ptr %2, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %7)
br label %9
9: ; preds = %6
%10 = load i32, ptr %2, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %2, align 4
br label %3, !llvm.loop !6
12: ; preds = %3
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 97, ptr %2, align 4
br label %14
14: ; preds = %20, %12
%15 = load i32, ptr %2, align 4
%16 = icmp sle i32 %15, 122
br i1 %16, label %17, label %23
17: ; preds = %14
%18 = load i32, ptr %2, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %18)
br label %20
20: ; preds = %17
%21 = load i32, ptr %2, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %2, align 4
br label %14, !llvm.loop !8
23: ; preds = %14
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprl081916.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 65, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp sle i32 %3, 90
br i1 %4, label %.lr.ph, label %13
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %8
%6 = load i32, ptr %2, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %6)
br label %8
8: ; preds = %5
%9 = load i32, ptr %2, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr %2, align 4
%11 = load i32, ptr %2, align 4
%12 = icmp sle i32 %11, 90
br i1 %12, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %8
br label %13
13: ; preds = %._crit_edge, %0
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 97, ptr %2, align 4
%15 = load i32, ptr %2, align 4
%16 = icmp sle i32 %15, 122
br i1 %16, label %.lr.ph2, label %25
.lr.ph2: ; preds = %13
br label %17
17: ; preds = %.lr.ph2, %20
%18 = load i32, ptr %2, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %18)
br label %20
20: ; preds = %17
%21 = load i32, ptr %2, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %2, align 4
%23 = load i32, ptr %2, align 4
%24 = icmp sle i32 %23, 122
br i1 %24, label %17, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %20
br label %25
25: ; preds = %._crit_edge3, %13
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpvbyap8xi.c'
source_filename = "/tmp/tmpvbyap8xi.c"
target datalayout = "e-m:e-p270: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/tmpvbyap8xi.c"
target datalayout = "e-m:e-p270: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/tmp1wn93xu_.c'
source_filename = "/tmp/tmp1wn93xu_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EVP_PKEY_RSA = dso_local global i32 0, align 4
@LONG_MAX = 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/tmp1wn93xu_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EVP_PKEY_RSA = dso_local global i32 0, align 4
@LONG_MAX = 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/tmpi17oja77.c'
source_filename = "/tmp/tmpi17oja77.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pythag(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
%9 = load double, ptr %4, align 8
%10 = call double @llvm.fabs.f64(double %9)
store double %10, ptr %6, align 8
%11 = load double, ptr %5, align 8
%12 = call double @llvm.fabs.f64(double %11)
store double %12, ptr %7, align 8
%13 = load double, ptr %6, align 8
%14 = load double, ptr %7, align 8
%15 = fcmp ogt double %13, %14
br i1 %15, label %16, label %26
16: ; preds = %2
%17 = load double, ptr %7, align 8
%18 = load double, ptr %6, align 8
%19 = fdiv double %17, %18
store double %19, ptr %8, align 8
%20 = load double, ptr %6, align 8
%21 = load double, ptr %8, align 8
%22 = load double, ptr %8, align 8
%23 = call double @llvm.fmuladd.f64(double %21, double %22, double 1.000000e+00)
%24 = call double @sqrt(double noundef %23) #3
%25 = fmul double %20, %24
store double %25, ptr %3, align 8
br label %42
26: ; preds = %2
%27 = load double, ptr %6, align 8
%28 = load double, ptr %7, align 8
%29 = fdiv double %27, %28
store double %29, ptr %8, align 8
%30 = load double, ptr %7, align 8
%31 = fcmp oeq double %30, 0.000000e+00
br i1 %31, label %32, label %33
32: ; preds = %26
br label %40
33: ; preds = %26
%34 = load double, ptr %7, align 8
%35 = load double, ptr %8, align 8
%36 = load double, ptr %8, align 8
%37 = call double @llvm.fmuladd.f64(double %35, double %36, double 1.000000e+00)
%38 = call double @sqrt(double noundef %37) #3
%39 = fmul double %34, %38
br label %40
40: ; preds = %33, %32
%41 = phi double [ 0.000000e+00, %32 ], [ %39, %33 ]
store double %41, ptr %3, align 8
br label %42
42: ; preds = %40, %16
%43 = load double, ptr %3, align 8
ret double %43
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
; Function Attrs: nounwind
declare double @sqrt(double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi17oja77.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pythag(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
%9 = load double, ptr %4, align 8
%10 = call double @llvm.fabs.f64(double %9)
store double %10, ptr %6, align 8
%11 = load double, ptr %5, align 8
%12 = call double @llvm.fabs.f64(double %11)
store double %12, ptr %7, align 8
%13 = load double, ptr %6, align 8
%14 = load double, ptr %7, align 8
%15 = fcmp ogt double %13, %14
br i1 %15, label %16, label %26
16: ; preds = %2
%17 = load double, ptr %7, align 8
%18 = load double, ptr %6, align 8
%19 = fdiv double %17, %18
store double %19, ptr %8, align 8
%20 = load double, ptr %6, align 8
%21 = load double, ptr %8, align 8
%22 = load double, ptr %8, align 8
%23 = call double @llvm.fmuladd.f64(double %21, double %22, double 1.000000e+00)
%24 = call double @sqrt(double noundef %23) #3
%25 = fmul double %20, %24
store double %25, ptr %3, align 8
br label %42
26: ; preds = %2
%27 = load double, ptr %6, align 8
%28 = load double, ptr %7, align 8
%29 = fdiv double %27, %28
store double %29, ptr %8, align 8
%30 = load double, ptr %7, align 8
%31 = fcmp oeq double %30, 0.000000e+00
br i1 %31, label %32, label %33
32: ; preds = %26
br label %40
33: ; preds = %26
%34 = load double, ptr %7, align 8
%35 = load double, ptr %8, align 8
%36 = load double, ptr %8, align 8
%37 = call double @llvm.fmuladd.f64(double %35, double %36, double 1.000000e+00)
%38 = call double @sqrt(double noundef %37) #3
%39 = fmul double %34, %38
br label %40
40: ; preds = %33, %32
%41 = phi double [ 0.000000e+00, %32 ], [ %39, %33 ]
store double %41, ptr %3, align 8
br label %42
42: ; preds = %40, %16
%43 = load double, ptr %3, align 8
ret double %43
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
; Function Attrs: nounwind
declare double @sqrt(double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsllu85_p.c'
source_filename = "/tmp/tmpsllu85_p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SYS_fork = 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/tmpsllu85_p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SYS_fork = 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/tmp29h5c27m.c'
source_filename = "/tmp/tmp29h5c27m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"Type the name of the sudoku file \00", align 1
@EOF = dso_local global i8 0, align 1
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [22 x i8] c"Error opening file %s\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"File loaded succesfully \0A\0A \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @LoadSudoku(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i8, align 1
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i64 256, ptr %10, align 8
%13 = load i64, ptr %10, align 8
%14 = mul i64 %13, 1
%15 = trunc i64 %14 to i32
%16 = call i64 @malloc(i32 noundef %15)
%17 = inttoptr i64 %16 to ptr
store ptr %17, ptr %9, align 8
%18 = call i32 @printf(ptr noundef @.str)
br label %19
19: ; preds = %31, %1
%20 = call signext i8 (...) @getchar()
store i8 %20, ptr %8, align 1
%21 = sext i8 %20 to i32
%22 = icmp ne i32 %21, 10
br i1 %22, label %23, label %29
23: ; preds = %19
%24 = load i8, ptr %8, align 1
%25 = sext i8 %24 to i32
%26 = load i8, ptr @EOF, align 1
%27 = sext i8 %26 to i32
%28 = icmp ne i32 %25, %27
br label %29
29: ; preds = %23, %19
%30 = phi i1 [ false, %19 ], [ %28, %23 ]
br i1 %30, label %31, label %32
31: ; preds = %29
br label %19, !llvm.loop !6
32: ; preds = %29
%33 = load i32, ptr @stdin, align 4
%34 = call i32 @getline(ptr noundef %9, ptr noundef %10, i32 noundef %33)
%35 = load ptr, ptr %9, align 8
%36 = call ptr @strchr(ptr noundef %35, i8 noundef signext 10)
store ptr %36, ptr %11, align 8
%37 = icmp ne ptr %36, null
br i1 %37, label %38, label %40
38: ; preds = %32
%39 = load ptr, ptr %11, align 8
store i8 0, ptr %39, align 1
br label %40
40: ; preds = %38, %32
%41 = load ptr, ptr %9, align 8
%42 = call ptr @fopen(ptr noundef %41, ptr noundef @.str.1)
store ptr %42, ptr %12, align 8
%43 = icmp eq ptr %42, null
br i1 %43, label %44, label %49
44: ; preds = %40
%45 = load i32, ptr @stderr, align 4
%46 = load ptr, ptr %9, align 8
%47 = call i32 @fprintf(i32 noundef %45, ptr noundef @.str.2, ptr noundef %46)
%48 = call signext i8 (...) @getchar()
br label %141
49: ; preds = %40
br label %50
50: ; preds = %136, %49
%51 = load ptr, ptr %9, align 8
%52 = load ptr, ptr %12, align 8
%53 = call ptr @fgets(ptr noundef %51, i32 noundef 256, ptr noundef %52)
%54 = icmp ne ptr %53, null
br i1 %54, label %55, label %139
55: ; preds = %50
%56 = load ptr, ptr %9, align 8
%57 = call ptr @strchr(ptr noundef %56, i8 noundef signext 10)
store ptr %57, ptr %11, align 8
%58 = icmp ne ptr %57, null
br i1 %58, label %59, label %61
59: ; preds = %55
%60 = load ptr, ptr %11, align 8
store i8 0, ptr %60, align 1
br label %61
61: ; preds = %59, %55
%62 = load ptr, ptr %9, align 8
%63 = call i32 @strlen(ptr noundef %62)
store i32 %63, ptr %3, align 4
%64 = load i32, ptr %3, align 4
%65 = load ptr, ptr %2, align 8
store i32 %64, ptr %65, align 4
%66 = load i32, ptr %5, align 4
%67 = icmp eq i32 %66, 0
br i1 %67, label %68, label %77
68: ; preds = %61
%69 = load i32, ptr %3, align 4
%70 = load i32, ptr %3, align 4
%71 = mul nsw i32 %69, %70
%72 = sext i32 %71 to i64
%73 = mul i64 %72, 4
%74 = trunc i64 %73 to i32
%75 = call i64 @malloc(i32 noundef %74)
%76 = inttoptr i64 %75 to ptr
store ptr %76, ptr %7, align 8
store i32 1, ptr %5, align 4
br label %77
77: ; preds = %68, %61
store i32 0, ptr %4, align 4
br label %78
78: ; preds = %133, %77
%79 = load i32, ptr %4, align 4
%80 = load i32, ptr %3, align 4
%81 = icmp slt i32 %79, %80
br i1 %81, label %82, label %136
82: ; preds = %78
%83 = load ptr, ptr %9, align 8
%84 = load i32, ptr %4, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i8, ptr %83, i64 %85
%87 = load i8, ptr %86, align 1
%88 = call i64 @isspace(i8 noundef signext %87)
%89 = icmp ne i64 %88, 0
br i1 %89, label %90, label %91
90: ; preds = %82
br label %133
91: ; preds = %82
%92 = load ptr, ptr %9, align 8
%93 = load i32, ptr %4, align 4
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds i8, ptr %92, i64 %94
%96 = load i8, ptr %95, align 1
%97 = sext i8 %96 to i32
%98 = icmp slt i32 %97, 58
br i1 %98, label %99, label %115
99: ; preds = %91
%100 = load ptr, ptr %9, align 8
%101 = load i32, ptr %4, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i8, ptr %100, i64 %102
%104 = load i8, ptr %103, align 1
%105 = sext i8 %104 to i32
%106 = sub nsw i32 %105, 48
%107 = load ptr, ptr %7, align 8
%108 = load i32, ptr %6, align 4
%109 = load i32, ptr %3, align 4
%110 = mul nsw i32 %108, %109
%111 = load i32, ptr %4, align 4
%112 = add nsw i32 %110, %111
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds i32, ptr %107, i64 %113
store i32 %106, ptr %114, align 4
br label %131
115: ; preds = %91
%116 = load ptr, ptr %9, align 8
%117 = load i32, ptr %4, align 4
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds i8, ptr %116, i64 %118
%120 = load i8, ptr %119, align 1
%121 = sext i8 %120 to i32
%122 = sub nsw i32 %121, 55
%123 = load ptr, ptr %7, align 8
%124 = load i32, ptr %6, align 4
%125 = load i32, ptr %3, align 4
%126 = mul nsw i32 %124, %125
%127 = load i32, ptr %4, align 4
%128 = add nsw i32 %126, %127
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds i32, ptr %123, i64 %129
store i32 %122, ptr %130, align 4
br label %131
131: ; preds = %115, %99
br label %132
132: ; preds = %131
br label %133
133: ; preds = %132, %90
%134 = load i32, ptr %4, align 4
%135 = add nsw i32 %134, 1
store i32 %135, ptr %4, align 4
br label %78, !llvm.loop !8
136: ; preds = %78
%137 = load i32, ptr %6, align 4
%138 = add nsw i32 %137, 1
store i32 %138, ptr %6, align 4
br label %50, !llvm.loop !9
139: ; preds = %50
%140 = call i32 @printf(ptr noundef @.str.3)
br label %141
141: ; preds = %139, %44
%142 = load ptr, ptr %12, align 8
%143 = call i32 @fclose(ptr noundef %142)
%144 = load ptr, ptr %9, align 8
%145 = call i32 @free(ptr noundef %144)
%146 = load ptr, ptr %7, align 8
ret ptr %146
}
declare i64 @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare signext i8 @getchar(...) #1
declare i32 @getline(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @isspace(i8 noundef signext) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp29h5c27m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"Type the name of the sudoku file \00", align 1
@EOF = dso_local global i8 0, align 1
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [22 x i8] c"Error opening file %s\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"File loaded succesfully \0A\0A \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @LoadSudoku(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i8, align 1
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i64 256, ptr %10, align 8
%13 = load i64, ptr %10, align 8
%14 = mul i64 %13, 1
%15 = trunc i64 %14 to i32
%16 = call i64 @malloc(i32 noundef %15)
%17 = inttoptr i64 %16 to ptr
store ptr %17, ptr %9, align 8
%18 = call i32 @printf(ptr noundef @.str)
br label %19
19: ; preds = %29, %1
%20 = call signext i8 (...) @getchar()
store i8 %20, ptr %8, align 1
%21 = sext i8 %20 to i32
%22 = icmp ne i32 %21, 10
br i1 %22, label %23, label %29
23: ; preds = %19
%24 = load i8, ptr %8, align 1
%25 = sext i8 %24 to i32
%26 = load i8, ptr @EOF, align 1
%27 = sext i8 %26 to i32
%28 = icmp ne i32 %25, %27
br label %29
29: ; preds = %23, %19
%30 = phi i1 [ false, %19 ], [ %28, %23 ]
br i1 %30, label %19, label %31, !llvm.loop !6
31: ; preds = %29
%32 = load i32, ptr @stdin, align 4
%33 = call i32 @getline(ptr noundef %9, ptr noundef %10, i32 noundef %32)
%34 = load ptr, ptr %9, align 8
%35 = call ptr @strchr(ptr noundef %34, i8 noundef signext 10)
store ptr %35, ptr %11, align 8
%36 = icmp ne ptr %35, null
br i1 %36, label %37, label %39
37: ; preds = %31
%38 = load ptr, ptr %11, align 8
store i8 0, ptr %38, align 1
br label %39
39: ; preds = %37, %31
%40 = load ptr, ptr %9, align 8
%41 = call ptr @fopen(ptr noundef %40, ptr noundef @.str.1)
store ptr %41, ptr %12, align 8
%42 = icmp eq ptr %41, null
br i1 %42, label %43, label %48
43: ; preds = %39
%44 = load i32, ptr @stderr, align 4
%45 = load ptr, ptr %9, align 8
%46 = call i32 @fprintf(i32 noundef %44, ptr noundef @.str.2, ptr noundef %45)
%47 = call signext i8 (...) @getchar()
br label %145
48: ; preds = %39
%49 = load ptr, ptr %9, align 8
%50 = load ptr, ptr %12, align 8
%51 = call ptr @fgets(ptr noundef %49, i32 noundef 256, ptr noundef %50)
%52 = icmp ne ptr %51, null
br i1 %52, label %.lr.ph2, label %143
.lr.ph2: ; preds = %48
br label %53
53: ; preds = %.lr.ph2, %136
%54 = load ptr, ptr %9, align 8
%55 = call ptr @strchr(ptr noundef %54, i8 noundef signext 10)
store ptr %55, ptr %11, align 8
%56 = icmp ne ptr %55, null
br i1 %56, label %57, label %59
57: ; preds = %53
%58 = load ptr, ptr %11, align 8
store i8 0, ptr %58, align 1
br label %59
59: ; preds = %57, %53
%60 = load ptr, ptr %9, align 8
%61 = call i32 @strlen(ptr noundef %60)
store i32 %61, ptr %3, align 4
%62 = load i32, ptr %3, align 4
%63 = load ptr, ptr %2, align 8
store i32 %62, ptr %63, align 4
%64 = load i32, ptr %5, align 4
%65 = icmp eq i32 %64, 0
br i1 %65, label %66, label %75
66: ; preds = %59
%67 = load i32, ptr %3, align 4
%68 = load i32, ptr %3, align 4
%69 = mul nsw i32 %67, %68
%70 = sext i32 %69 to i64
%71 = mul i64 %70, 4
%72 = trunc i64 %71 to i32
%73 = call i64 @malloc(i32 noundef %72)
%74 = inttoptr i64 %73 to ptr
store ptr %74, ptr %7, align 8
store i32 1, ptr %5, align 4
br label %75
75: ; preds = %66, %59
store i32 0, ptr %4, align 4
%76 = load i32, ptr %4, align 4
%77 = load i32, ptr %3, align 4
%78 = icmp slt i32 %76, %77
br i1 %78, label %.lr.ph, label %136
.lr.ph: ; preds = %75
br label %79
79: ; preds = %.lr.ph, %130
%80 = load ptr, ptr %9, align 8
%81 = load i32, ptr %4, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i8, ptr %80, i64 %82
%84 = load i8, ptr %83, align 1
%85 = call i64 @isspace(i8 noundef signext %84)
%86 = icmp ne i64 %85, 0
br i1 %86, label %87, label %88
87: ; preds = %79
br label %130
88: ; preds = %79
%89 = load ptr, ptr %9, align 8
%90 = load i32, ptr %4, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i8, ptr %89, i64 %91
%93 = load i8, ptr %92, align 1
%94 = sext i8 %93 to i32
%95 = icmp slt i32 %94, 58
br i1 %95, label %96, label %112
96: ; preds = %88
%97 = load ptr, ptr %9, align 8
%98 = load i32, ptr %4, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds i8, ptr %97, i64 %99
%101 = load i8, ptr %100, align 1
%102 = sext i8 %101 to i32
%103 = sub nsw i32 %102, 48
%104 = load ptr, ptr %7, align 8
%105 = load i32, ptr %6, align 4
%106 = load i32, ptr %3, align 4
%107 = mul nsw i32 %105, %106
%108 = load i32, ptr %4, align 4
%109 = add nsw i32 %107, %108
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i32, ptr %104, i64 %110
store i32 %103, ptr %111, align 4
br label %128
112: ; preds = %88
%113 = load ptr, ptr %9, align 8
%114 = load i32, ptr %4, align 4
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds i8, ptr %113, i64 %115
%117 = load i8, ptr %116, align 1
%118 = sext i8 %117 to i32
%119 = sub nsw i32 %118, 55
%120 = load ptr, ptr %7, align 8
%121 = load i32, ptr %6, align 4
%122 = load i32, ptr %3, align 4
%123 = mul nsw i32 %121, %122
%124 = load i32, ptr %4, align 4
%125 = add nsw i32 %123, %124
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds i32, ptr %120, i64 %126
store i32 %119, ptr %127, align 4
br label %128
128: ; preds = %112, %96
br label %129
129: ; preds = %128
br label %130
130: ; preds = %129, %87
%131 = load i32, ptr %4, align 4
%132 = add nsw i32 %131, 1
store i32 %132, ptr %4, align 4
%133 = load i32, ptr %4, align 4
%134 = load i32, ptr %3, align 4
%135 = icmp slt i32 %133, %134
br i1 %135, label %79, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %130
br label %136
136: ; preds = %._crit_edge, %75
%137 = load i32, ptr %6, align 4
%138 = add nsw i32 %137, 1
store i32 %138, ptr %6, align 4
%139 = load ptr, ptr %9, align 8
%140 = load ptr, ptr %12, align 8
%141 = call ptr @fgets(ptr noundef %139, i32 noundef 256, ptr noundef %140)
%142 = icmp ne ptr %141, null
br i1 %142, label %53, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %136
br label %143
143: ; preds = %._crit_edge3, %48
%144 = call i32 @printf(ptr noundef @.str.3)
br label %145
145: ; preds = %143, %43
%146 = load ptr, ptr %12, align 8
%147 = call i32 @fclose(ptr noundef %146)
%148 = load ptr, ptr %9, align 8
%149 = call i32 @free(ptr noundef %148)
%150 = load ptr, ptr %7, align 8
ret ptr %150
}
declare i64 @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare signext i8 @getchar(...) #1
declare i32 @getline(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @isspace(i8 noundef signext) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp4t5hq152.c'
source_filename = "/tmp/tmp4t5hq152.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 = call i32 @usecsleep(i32 noundef 0, i32 noundef 500000)
ret i32 0
}
declare i32 @usecsleep(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/tmp4t5hq152.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 = call i32 @usecsleep(i32 noundef 0, i32 noundef 500000)
ret i32 0
}
declare i32 @usecsleep(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/tmpmp41tbgm.c'
source_filename = "/tmp/tmpmp41tbgm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"\0AReading a witness set ...\0A\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"\0AMENU for the kind of output :\0A\00", align 1
@.str.2 = private unnamed_addr constant [49 x i8] c" 0. remain silent with no intermediate output;\0A\00", align 1
@.str.3 = private unnamed_addr constant [46 x i8] c" 1. all intermediate output goes to screen;\0A\00", align 1
@.str.4 = private unnamed_addr constant [52 x i8] c" 2. give a file name for all intermediate output.\0A\00", align 1
@.str.5 = private unnamed_addr constant [36 x i8] c"Type 0, 1, or 2 to make a choice : \00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.8 = private unnamed_addr constant [30 x i8] c"\0AThe ambient dimension : %d.\0A\00", align 1
@.str.9 = private unnamed_addr constant [41 x i8] c"The dimension of the solution set : %d.\0A\00", align 1
@.str.10 = private unnamed_addr constant [38 x i8] c"The degree of the solution set : %d.\0A\00", align 1
@.str.11 = private unnamed_addr constant [49 x i8] c"\0ADo you wish to see the embedded system ? (y/n) \00", align 1
@.str.12 = private unnamed_addr constant [20 x i8] c"\0AThe system read :\0A\00", align 1
@.str.13 = private unnamed_addr constant [37 x i8] c"\0AGive the maximum number of loops : \00", align 1
@.str.14 = private unnamed_addr constant [34 x i8] c"See the output file for results.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @quaddobl_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
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i8, align 1
store i32 %0, ptr %2, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = load i32, ptr %2, align 4
%12 = icmp eq i32 %11, 1
br i1 %12, label %13, label %15
13: ; preds = %1
%14 = call i32 @read_quaddobl_Laurent_witness_set(ptr noundef %4, ptr noundef %5, ptr noundef %6)
store i32 %14, ptr %3, align 4
br label %17
15: ; preds = %1
%16 = call i32 @read_quaddobl_witness_set(ptr noundef %4, ptr noundef %5, ptr noundef %6)
store i32 %16, ptr %3, align 4
br label %17
17: ; preds = %15, %13
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%23 = call i32 (ptr, ...) @scanf(ptr noundef @.str.6, ptr noundef %8)
%24 = call i32 (ptr, ...) @scanf(ptr noundef @.str.7, ptr noundef %9)
%25 = load i32, ptr %8, align 4
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %17
%28 = call i32 (...) @set_quaddobl_state_to_silent()
store i32 %28, ptr %3, align 4
br label %29
29: ; preds = %27, %17
%30 = load i32, ptr %8, align 4
%31 = icmp eq i32 %30, 2
br i1 %31, label %32, label %34
32: ; preds = %29
%33 = call i32 (...) @define_output_file()
store i32 %33, ptr %3, align 4
br label %34
34: ; preds = %32, %29
%35 = load i32, ptr %4, align 4
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %35)
%37 = load i32, ptr %5, align 4
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %37)
%39 = load i32, ptr %6, align 4
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %39)
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%42 = call i32 (ptr, ...) @scanf(ptr noundef @.str.7, ptr noundef %9)
%43 = load i8, ptr %9, align 1
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %44, 121
br i1 %45, label %46, label %55
46: ; preds = %34
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
%48 = load i32, ptr %2, align 4
%49 = icmp eq i32 %48, 1
br i1 %49, label %50, label %52
50: ; preds = %46
%51 = call i32 (...) @syscon_write_quaddobl_Laurent_system()
store i32 %51, ptr %3, align 4
br label %54
52: ; preds = %46
%53 = call i32 (...) @syscon_write_quaddobl_system()
store i32 %53, ptr %3, align 4
br label %54
54: ; preds = %52, %50
br label %55
55: ; preds = %54, %34
%56 = load i32, ptr %4, align 4
%57 = load i32, ptr %6, align 4
%58 = call i32 @quaddobl_assign_labels(i32 noundef %56, i32 noundef %57)
store i32 %58, ptr %3, align 4
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%60 = call i32 (ptr, ...) @scanf(ptr noundef @.str.6, ptr noundef %7)
%61 = load i32, ptr %2, align 4
%62 = load i32, ptr %7, align 4
%63 = load i32, ptr %4, align 4
%64 = load i32, ptr %5, align 4
%65 = load i32, ptr %6, align 4
%66 = call i32 @quaddobl_monodromy_breakup(i32 noundef %61, i32 noundef %62, i32 noundef %63, i32 noundef %64, i32 noundef %65)
store i32 %66, ptr %3, align 4
%67 = load i32, ptr %8, align 4
%68 = icmp eq i32 %67, 2
br i1 %68, label %69, label %71
69: ; preds = %55
%70 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
br label %71
71: ; preds = %69, %55
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @read_quaddobl_Laurent_witness_set(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @read_quaddobl_witness_set(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @set_quaddobl_state_to_silent(...) #1
declare i32 @define_output_file(...) #1
declare i32 @syscon_write_quaddobl_Laurent_system(...) #1
declare i32 @syscon_write_quaddobl_system(...) #1
declare i32 @quaddobl_assign_labels(i32 noundef, i32 noundef) #1
declare i32 @quaddobl_monodromy_breakup(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmp41tbgm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"\0AReading a witness set ...\0A\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"\0AMENU for the kind of output :\0A\00", align 1
@.str.2 = private unnamed_addr constant [49 x i8] c" 0. remain silent with no intermediate output;\0A\00", align 1
@.str.3 = private unnamed_addr constant [46 x i8] c" 1. all intermediate output goes to screen;\0A\00", align 1
@.str.4 = private unnamed_addr constant [52 x i8] c" 2. give a file name for all intermediate output.\0A\00", align 1
@.str.5 = private unnamed_addr constant [36 x i8] c"Type 0, 1, or 2 to make a choice : \00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.8 = private unnamed_addr constant [30 x i8] c"\0AThe ambient dimension : %d.\0A\00", align 1
@.str.9 = private unnamed_addr constant [41 x i8] c"The dimension of the solution set : %d.\0A\00", align 1
@.str.10 = private unnamed_addr constant [38 x i8] c"The degree of the solution set : %d.\0A\00", align 1
@.str.11 = private unnamed_addr constant [49 x i8] c"\0ADo you wish to see the embedded system ? (y/n) \00", align 1
@.str.12 = private unnamed_addr constant [20 x i8] c"\0AThe system read :\0A\00", align 1
@.str.13 = private unnamed_addr constant [37 x i8] c"\0AGive the maximum number of loops : \00", align 1
@.str.14 = private unnamed_addr constant [34 x i8] c"See the output file for results.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @quaddobl_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
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i8, align 1
store i32 %0, ptr %2, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = load i32, ptr %2, align 4
%12 = icmp eq i32 %11, 1
br i1 %12, label %13, label %15
13: ; preds = %1
%14 = call i32 @read_quaddobl_Laurent_witness_set(ptr noundef %4, ptr noundef %5, ptr noundef %6)
store i32 %14, ptr %3, align 4
br label %17
15: ; preds = %1
%16 = call i32 @read_quaddobl_witness_set(ptr noundef %4, ptr noundef %5, ptr noundef %6)
store i32 %16, ptr %3, align 4
br label %17
17: ; preds = %15, %13
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%23 = call i32 (ptr, ...) @scanf(ptr noundef @.str.6, ptr noundef %8)
%24 = call i32 (ptr, ...) @scanf(ptr noundef @.str.7, ptr noundef %9)
%25 = load i32, ptr %8, align 4
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %17
%28 = call i32 (...) @set_quaddobl_state_to_silent()
store i32 %28, ptr %3, align 4
br label %29
29: ; preds = %27, %17
%30 = load i32, ptr %8, align 4
%31 = icmp eq i32 %30, 2
br i1 %31, label %32, label %34
32: ; preds = %29
%33 = call i32 (...) @define_output_file()
store i32 %33, ptr %3, align 4
br label %34
34: ; preds = %32, %29
%35 = load i32, ptr %4, align 4
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %35)
%37 = load i32, ptr %5, align 4
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %37)
%39 = load i32, ptr %6, align 4
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %39)
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%42 = call i32 (ptr, ...) @scanf(ptr noundef @.str.7, ptr noundef %9)
%43 = load i8, ptr %9, align 1
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %44, 121
br i1 %45, label %46, label %55
46: ; preds = %34
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
%48 = load i32, ptr %2, align 4
%49 = icmp eq i32 %48, 1
br i1 %49, label %50, label %52
50: ; preds = %46
%51 = call i32 (...) @syscon_write_quaddobl_Laurent_system()
store i32 %51, ptr %3, align 4
br label %54
52: ; preds = %46
%53 = call i32 (...) @syscon_write_quaddobl_system()
store i32 %53, ptr %3, align 4
br label %54
54: ; preds = %52, %50
br label %55
55: ; preds = %54, %34
%56 = load i32, ptr %4, align 4
%57 = load i32, ptr %6, align 4
%58 = call i32 @quaddobl_assign_labels(i32 noundef %56, i32 noundef %57)
store i32 %58, ptr %3, align 4
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%60 = call i32 (ptr, ...) @scanf(ptr noundef @.str.6, ptr noundef %7)
%61 = load i32, ptr %2, align 4
%62 = load i32, ptr %7, align 4
%63 = load i32, ptr %4, align 4
%64 = load i32, ptr %5, align 4
%65 = load i32, ptr %6, align 4
%66 = call i32 @quaddobl_monodromy_breakup(i32 noundef %61, i32 noundef %62, i32 noundef %63, i32 noundef %64, i32 noundef %65)
store i32 %66, ptr %3, align 4
%67 = load i32, ptr %8, align 4
%68 = icmp eq i32 %67, 2
br i1 %68, label %69, label %71
69: ; preds = %55
%70 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
br label %71
71: ; preds = %69, %55
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @read_quaddobl_Laurent_witness_set(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @read_quaddobl_witness_set(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @set_quaddobl_state_to_silent(...) #1
declare i32 @define_output_file(...) #1
declare i32 @syscon_write_quaddobl_Laurent_system(...) #1
declare i32 @syscon_write_quaddobl_system(...) #1
declare i32 @quaddobl_assign_labels(i32 noundef, i32 noundef) #1
declare i32 @quaddobl_monodromy_breakup(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpta1r9ipi.c'
source_filename = "/tmp/tmpta1r9ipi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"musicIn.mp3\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"musicOut.mp3\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.5 = private unnamed_addr constant [10 x i8] c"%c ~~ %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [20 x i8] c"Total de Bytes: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [255 x i32], align 16
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %8, ptr %3, align 8
%9 = call ptr @fopen(ptr noundef @.str.2, ptr noundef @.str.3)
store ptr %9, ptr %4, align 8
store i32 0, ptr %6, align 4
br label %10
10: ; preds = %17, %0
%11 = load i32, ptr %6, align 4
%12 = icmp slt i32 %11, 256
br i1 %12, label %13, label %20
13: ; preds = %10
%14 = load i32, ptr %6, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [255 x i32], ptr %5, i64 0, i64 %15
store i32 0, ptr %16, align 4
br label %17
17: ; preds = %13
%18 = load i32, ptr %6, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %6, align 4
br label %10, !llvm.loop !6
20: ; preds = %10
store i32 0, ptr %7, align 4
br label %21
21: ; preds = %26, %20
%22 = load ptr, ptr %3, align 8
%23 = call i64 @fscanf(ptr noundef %22, ptr noundef @.str.4, ptr noundef %2)
%24 = load i64, ptr @EOF, align 8
%25 = icmp ne i64 %23, %24
br i1 %25, label %26, label %37
26: ; preds = %21
%27 = load ptr, ptr %4, align 8
%28 = load i8, ptr %2, align 1
%29 = call i32 @fprintf(ptr noundef %27, ptr noundef @.str.4, i8 noundef zeroext %28)
%30 = load i8, ptr %2, align 1
%31 = zext i8 %30 to i64
%32 = getelementptr inbounds [255 x i32], ptr %5, i64 0, i64 %31
%33 = load i32, ptr %32, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %32, align 4
%35 = load i32, ptr %7, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %7, align 4
br label %21, !llvm.loop !8
37: ; preds = %21
%38 = getelementptr inbounds [255 x i32], ptr %5, i64 0, i64 0
%39 = call i32 @sort(ptr noundef %38)
store i32 0, ptr %6, align 4
br label %40
40: ; preds = %57, %37
%41 = load i32, ptr %6, align 4
%42 = icmp slt i32 %41, 256
br i1 %42, label %43, label %60
43: ; preds = %40
%44 = load i32, ptr %6, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [255 x i32], ptr %5, i64 0, i64 %45
%47 = load i32, ptr %46, align 4
%48 = icmp ne i32 %47, 0
br i1 %48, label %49, label %56
49: ; preds = %43
%50 = load i32, ptr %6, align 4
%51 = load i32, ptr %6, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [255 x i32], ptr %5, i64 0, i64 %52
%54 = load i32, ptr %53, align 4
%55 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.5, i32 noundef %50, i32 noundef %54)
br label %56
56: ; preds = %49, %43
br label %57
57: ; preds = %56
%58 = load i32, ptr %6, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %6, align 4
br label %40, !llvm.loop !9
60: ; preds = %40
%61 = load i32, ptr %7, align 4
%62 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.6, i32 noundef %61)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i8 noundef zeroext) #1
declare i32 @sort(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpta1r9ipi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"musicIn.mp3\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"musicOut.mp3\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.5 = private unnamed_addr constant [10 x i8] c"%c ~~ %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [20 x i8] c"Total de Bytes: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [255 x i32], align 16
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %8, ptr %3, align 8
%9 = call ptr @fopen(ptr noundef @.str.2, ptr noundef @.str.3)
store ptr %9, ptr %4, align 8
store i32 0, ptr %6, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %10, 256
br i1 %11, label %.lr.ph, label %21
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %16
%13 = load i32, ptr %6, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [255 x i32], ptr %5, i64 0, i64 %14
store i32 0, ptr %15, align 4
br label %16
16: ; preds = %12
%17 = load i32, ptr %6, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %6, align 4
%19 = load i32, ptr %6, align 4
%20 = icmp slt i32 %19, 256
br i1 %20, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %21
21: ; preds = %._crit_edge, %0
store i32 0, ptr %7, align 4
%22 = load ptr, ptr %3, align 8
%23 = call i64 @fscanf(ptr noundef %22, ptr noundef @.str.4, ptr noundef %2)
%24 = load i64, ptr @EOF, align 8
%25 = icmp ne i64 %23, %24
br i1 %25, label %.lr.ph2, label %41
.lr.ph2: ; preds = %21
br label %26
26: ; preds = %.lr.ph2, %26
%27 = load ptr, ptr %4, align 8
%28 = load i8, ptr %2, align 1
%29 = call i32 @fprintf(ptr noundef %27, ptr noundef @.str.4, i8 noundef zeroext %28)
%30 = load i8, ptr %2, align 1
%31 = zext i8 %30 to i64
%32 = getelementptr inbounds [255 x i32], ptr %5, i64 0, i64 %31
%33 = load i32, ptr %32, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %32, align 4
%35 = load i32, ptr %7, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %7, align 4
%37 = load ptr, ptr %3, align 8
%38 = call i64 @fscanf(ptr noundef %37, ptr noundef @.str.4, ptr noundef %2)
%39 = load i64, ptr @EOF, align 8
%40 = icmp ne i64 %38, %39
br i1 %40, label %26, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %26
br label %41
41: ; preds = %._crit_edge3, %21
%42 = getelementptr inbounds [255 x i32], ptr %5, i64 0, i64 0
%43 = call i32 @sort(ptr noundef %42)
store i32 0, ptr %6, align 4
%44 = load i32, ptr %6, align 4
%45 = icmp slt i32 %44, 256
br i1 %45, label %.lr.ph5, label %65
.lr.ph5: ; preds = %41
br label %46
46: ; preds = %.lr.ph5, %60
%47 = load i32, ptr %6, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [255 x i32], ptr %5, i64 0, i64 %48
%50 = load i32, ptr %49, align 4
%51 = icmp ne i32 %50, 0
br i1 %51, label %52, label %59
52: ; preds = %46
%53 = load i32, ptr %6, align 4
%54 = load i32, ptr %6, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [255 x i32], ptr %5, i64 0, i64 %55
%57 = load i32, ptr %56, align 4
%58 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.5, i32 noundef %53, i32 noundef %57)
br label %59
59: ; preds = %52, %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 slt i32 %63, 256
br i1 %64, label %46, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %60
br label %65
65: ; preds = %._crit_edge6, %41
%66 = load i32, ptr %7, align 4
%67 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.6, i32 noundef %66)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i8 noundef zeroext) #1
declare i32 @sort(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpckwaigxb.c'
source_filename = "/tmp/tmpckwaigxb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @lcdClear(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 (...) @Clear_Display()
ret i8 0
}
declare i32 @Clear_Display(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpckwaigxb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @lcdClear(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 (...) @Clear_Display()
ret i8 0
}
declare i32 @Clear_Display(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpttmk4l35.c'
source_filename = "/tmp/tmpttmk4l35.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [10 x i8] c"tmp = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%3 = call i32 @create_array_stack(i32 noundef 12)
%4 = call i32 @push(i32 noundef 10)
%5 = call i32 @push(i32 noundef 20)
%6 = call i32 @push(i32 noundef 30)
%7 = call i32 (...) @print_array_stack()
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = call i32 (...) @pop()
store i32 %9, ptr %2, align 4
%10 = load i32, ptr %2, align 4
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %10)
%12 = call i32 (...) @print_array_stack()
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%14 = call i32 (...) @peek()
store i32 %14, ptr %2, align 4
%15 = load i32, ptr %2, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %15)
%17 = call i32 (...) @print_array_stack()
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%19 = call i32 @push(i32 noundef 40)
%20 = call i32 (...) @print_array_stack()
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%22 = call i32 (...) @destroy_array_stack()
%23 = call i32 (...) @getchar()
ret i32 0
}
declare i32 @create_array_stack(i32 noundef) #1
declare i32 @push(i32 noundef) #1
declare i32 @print_array_stack(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @pop(...) #1
declare i32 @peek(...) #1
declare i32 @destroy_array_stack(...) #1
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpttmk4l35.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [10 x i8] c"tmp = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%3 = call i32 @create_array_stack(i32 noundef 12)
%4 = call i32 @push(i32 noundef 10)
%5 = call i32 @push(i32 noundef 20)
%6 = call i32 @push(i32 noundef 30)
%7 = call i32 (...) @print_array_stack()
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = call i32 (...) @pop()
store i32 %9, ptr %2, align 4
%10 = load i32, ptr %2, align 4
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %10)
%12 = call i32 (...) @print_array_stack()
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%14 = call i32 (...) @peek()
store i32 %14, ptr %2, align 4
%15 = load i32, ptr %2, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %15)
%17 = call i32 (...) @print_array_stack()
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%19 = call i32 @push(i32 noundef 40)
%20 = call i32 (...) @print_array_stack()
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%22 = call i32 (...) @destroy_array_stack()
%23 = call i32 (...) @getchar()
ret i32 0
}
declare i32 @create_array_stack(i32 noundef) #1
declare i32 @push(i32 noundef) #1
declare i32 @print_array_stack(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @pop(...) #1
declare i32 @peek(...) #1
declare i32 @destroy_array_stack(...) #1
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmibmdz5f.c'
source_filename = "/tmp/tmpmibmdz5f.c"
target datalayout = "e-m:e-p270: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/tmpmibmdz5f.c"
target datalayout = "e-m:e-p270: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/tmpj9j4cgob.c'
source_filename = "/tmp/tmpj9j4cgob.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @selection_sort(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 i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %8
8: ; preds = %44, %2
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %4, align 4
%11 = sub i32 %10, 1
%12 = icmp ult i32 %9, %11
br i1 %12, label %13, label %47
13: ; preds = %8
%14 = load i32, ptr %5, align 4
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %5, align 4
%16 = add i32 %15, 1
store i32 %16, ptr %7, align 4
br label %17
17: ; preds = %36, %13
%18 = load i32, ptr %7, align 4
%19 = load i32, ptr %4, align 4
%20 = icmp ult i32 %18, %19
br i1 %20, label %21, label %39
21: ; preds = %17
%22 = load ptr, ptr %3, align 8
%23 = load i32, ptr %7, align 4
%24 = zext i32 %23 to i64
%25 = getelementptr inbounds i32, ptr %22, i64 %24
%26 = load i32, ptr %25, align 4
%27 = load ptr, ptr %3, align 8
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i32, ptr %27, i64 %29
%31 = load i32, ptr %30, align 4
%32 = icmp slt i32 %26, %31
br i1 %32, label %33, label %35
33: ; preds = %21
%34 = load i32, ptr %7, align 4
store i32 %34, ptr %6, align 4
br label %35
35: ; preds = %33, %21
br label %36
36: ; preds = %35
%37 = load i32, ptr %7, align 4
%38 = add i32 %37, 1
store i32 %38, ptr %7, align 4
br label %17, !llvm.loop !6
39: ; preds = %17
%40 = load ptr, ptr %3, align 8
%41 = load i32, ptr %5, align 4
%42 = load i32, ptr %6, align 4
%43 = call i32 @swap(ptr noundef %40, i32 noundef %41, i32 noundef %42)
br label %44
44: ; preds = %39
%45 = load i32, ptr %5, align 4
%46 = add i32 %45, 1
store i32 %46, ptr %5, align 4
br label %8, !llvm.loop !8
47: ; preds = %8
ret void
}
declare i32 @swap(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj9j4cgob.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @selection_sort(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 i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = sub i32 %9, 1
%11 = icmp ult i32 %8, %10
br i1 %11, label %.lr.ph2, label %52
.lr.ph2: ; preds = %2
br label %12
12: ; preds = %.lr.ph2, %45
%13 = load i32, ptr %5, align 4
store i32 %13, ptr %6, align 4
%14 = load i32, ptr %5, align 4
%15 = add i32 %14, 1
store i32 %15, ptr %7, align 4
%16 = load i32, ptr %7, align 4
%17 = load i32, ptr %4, align 4
%18 = icmp ult i32 %16, %17
br i1 %18, label %.lr.ph, label %40
.lr.ph: ; preds = %12
br label %19
19: ; preds = %.lr.ph, %34
%20 = load ptr, ptr %3, align 8
%21 = load i32, ptr %7, align 4
%22 = zext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %20, i64 %22
%24 = load i32, ptr %23, align 4
%25 = load ptr, ptr %3, align 8
%26 = load i32, ptr %6, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, ptr %25, i64 %27
%29 = load i32, ptr %28, align 4
%30 = icmp slt i32 %24, %29
br i1 %30, label %31, label %33
31: ; preds = %19
%32 = load i32, ptr %7, align 4
store i32 %32, ptr %6, align 4
br label %33
33: ; preds = %31, %19
br label %34
34: ; preds = %33
%35 = load i32, ptr %7, align 4
%36 = add i32 %35, 1
store i32 %36, ptr %7, align 4
%37 = load i32, ptr %7, align 4
%38 = load i32, ptr %4, align 4
%39 = icmp ult i32 %37, %38
br i1 %39, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %34
br label %40
40: ; preds = %._crit_edge, %12
%41 = load ptr, ptr %3, align 8
%42 = load i32, ptr %5, align 4
%43 = load i32, ptr %6, align 4
%44 = call i32 @swap(ptr noundef %41, i32 noundef %42, i32 noundef %43)
br label %45
45: ; preds = %40
%46 = load i32, ptr %5, align 4
%47 = add i32 %46, 1
store i32 %47, ptr %5, align 4
%48 = load i32, ptr %5, align 4
%49 = load i32, ptr %4, align 4
%50 = sub i32 %49, 1
%51 = icmp ult i32 %48, %50
br i1 %51, label %12, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %45
br label %52
52: ; preds = %._crit_edge3, %2
ret void
}
declare i32 @swap(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpucax_h7j.c'
source_filename = "/tmp/tmpucax_h7j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"a:w:\00", align 1
@EOF = dso_local global i8 0, align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"a\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"%[^\0A]%*c\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i8, align 1
%8 = alloca ptr, align 8
%9 = alloca [80 x i8], align 16
%10 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 80, i1 false)
br label %11
11: ; preds = %25, %2
%12 = load i32, ptr %4, align 4
%13 = load ptr, ptr %5, align 8
%14 = call signext i8 @getopt(i32 noundef %12, ptr noundef %13, ptr noundef @.str)
store i8 %14, ptr %7, align 1
%15 = sext i8 %14 to i32
%16 = load i8, ptr @EOF, align 1
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %15, %17
br i1 %18, label %19, label %26
19: ; preds = %11
%20 = load i8, ptr %7, align 1
%21 = sext i8 %20 to i32
switch i32 %21, label %24 [
i32 97, label %22
i32 119, label %23
]
22: ; preds = %19
store ptr @.str.1, ptr %8, align 8
br label %25
23: ; preds = %19
store ptr @.str.2, ptr %8, align 8
br label %25
24: ; preds = %19
store ptr @.str.2, ptr %8, align 8
br label %25
25: ; preds = %24, %23, %22
br label %11, !llvm.loop !6
26: ; preds = %11
br label %27
27: ; preds = %31, %26
%28 = getelementptr inbounds [80 x i8], ptr %9, i64 0, i64 0
%29 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %28)
%30 = icmp eq i32 %29, 1
br i1 %30, label %31, label %44
31: ; preds = %27
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 2
%34 = load ptr, ptr %33, align 8
%35 = load ptr, ptr %8, align 8
%36 = call ptr @fopen(ptr noundef %34, ptr noundef %35)
store ptr %36, ptr %10, align 8
%37 = load ptr, ptr %10, align 8
%38 = getelementptr inbounds [80 x i8], ptr %9, i64 0, i64 0
%39 = call i32 @fprintf(ptr noundef %37, ptr noundef @.str.4, ptr noundef %38)
%40 = getelementptr inbounds [80 x i8], ptr %9, i64 0, i64 0
%41 = call i32 @printf(ptr noundef @.str.4, ptr noundef %40)
%42 = load ptr, ptr %10, align 8
%43 = call i32 @fclose(ptr noundef %42)
br label %27, !llvm.loop !8
44: ; preds = %27
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 signext i8 @getopt(i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @scanf(ptr noundef, ptr noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
declare i32 @fclose(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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpucax_h7j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"a:w:\00", align 1
@EOF = dso_local global i8 0, align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"a\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"%[^\0A]%*c\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i8, align 1
%8 = alloca ptr, align 8
%9 = alloca [80 x i8], align 16
%10 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 80, i1 false)
%11 = load i32, ptr %4, align 4
%12 = load ptr, ptr %5, align 8
%13 = call signext i8 @getopt(i32 noundef %11, ptr noundef %12, ptr noundef @.str)
store i8 %13, ptr %7, align 1
%14 = sext i8 %13 to i32
%15 = load i8, ptr @EOF, align 1
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %14, %16
br i1 %17, label %.lr.ph, label %32
.lr.ph: ; preds = %2
br label %18
18: ; preds = %.lr.ph, %24
%19 = load i8, ptr %7, align 1
%20 = sext i8 %19 to i32
switch i32 %20, label %23 [
i32 97, label %21
i32 119, label %22
]
21: ; preds = %18
store ptr @.str.1, ptr %8, align 8
br label %24
22: ; preds = %18
store ptr @.str.2, ptr %8, align 8
br label %24
23: ; preds = %18
store ptr @.str.2, ptr %8, align 8
br label %24
24: ; preds = %23, %22, %21
%25 = load i32, ptr %4, align 4
%26 = load ptr, ptr %5, align 8
%27 = call signext i8 @getopt(i32 noundef %25, ptr noundef %26, ptr noundef @.str)
store i8 %27, ptr %7, align 1
%28 = sext i8 %27 to i32
%29 = load i8, ptr @EOF, align 1
%30 = sext i8 %29 to i32
%31 = icmp ne i32 %28, %30
br i1 %31, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %32
32: ; preds = %._crit_edge, %2
%33 = getelementptr inbounds [80 x i8], ptr %9, i64 0, i64 0
%34 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %33)
%35 = icmp eq i32 %34, 1
br i1 %35, label %.lr.ph2, label %51
.lr.ph2: ; preds = %32
br label %36
36: ; preds = %.lr.ph2, %36
%37 = load ptr, ptr %5, align 8
%38 = getelementptr inbounds ptr, ptr %37, i64 2
%39 = load ptr, ptr %38, align 8
%40 = load ptr, ptr %8, align 8
%41 = call ptr @fopen(ptr noundef %39, ptr noundef %40)
store ptr %41, ptr %10, align 8
%42 = load ptr, ptr %10, align 8
%43 = getelementptr inbounds [80 x i8], ptr %9, i64 0, i64 0
%44 = call i32 @fprintf(ptr noundef %42, ptr noundef @.str.4, ptr noundef %43)
%45 = getelementptr inbounds [80 x i8], ptr %9, i64 0, i64 0
%46 = call i32 @printf(ptr noundef @.str.4, ptr noundef %45)
%47 = load ptr, ptr %10, align 8
%48 = call i32 @fclose(ptr noundef %47)
%49 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %33)
%50 = icmp eq i32 %49, 1
br i1 %50, label %36, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %36
br label %51
51: ; preds = %._crit_edge3, %32
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 signext i8 @getopt(i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @scanf(ptr noundef, ptr noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
declare i32 @fclose(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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpju2er9fx.c'
source_filename = "/tmp/tmpju2er9fx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca [1000 x i8], align 16
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
br label %5
5: ; preds = %26, %0
%6 = call signext i8 (...) @getchar()
store i8 %6, ptr %2, align 1
%7 = load i8, ptr %2, align 1
%8 = sext i8 %7 to i32
%9 = icmp eq i32 %8, 32
br i1 %9, label %18, label %10
10: ; preds = %5
%11 = load i8, ptr %2, align 1
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 9
br i1 %13, label %18, label %14
14: ; preds = %10
%15 = load i8, ptr %2, align 1
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 10
br i1 %17, label %18, label %19
18: ; preds = %14, %10, %5
br label %26
19: ; preds = %14
%20 = load i8, ptr %2, align 1
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %4, align 4
%23 = sext i32 %21 to i64
%24 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 %23
store i8 %20, ptr %24, align 1
br label %25
25: ; preds = %19
br label %26
26: ; preds = %25, %18
%27 = load i8, ptr %2, align 1
%28 = sext i8 %27 to i32
%29 = icmp ne i32 %28, 126
br i1 %29, label %5, label %30, !llvm.loop !6
30: ; preds = %26
%31 = load i32, ptr %4, align 4
%32 = sub nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 %33
store i8 0, ptr %34, align 1
%35 = call i32 @putchar(i8 noundef signext 10)
%36 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%37 = call i32 @puts(ptr noundef %36)
%38 = load i32, ptr @stdin, align 4
%39 = call i32 @fflush(i32 noundef %38)
%40 = call signext i8 (...) @getchar()
ret i32 0
}
declare signext i8 @getchar(...) #1
declare i32 @putchar(i8 noundef signext) #1
declare i32 @puts(ptr noundef) #1
declare i32 @fflush(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpju2er9fx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca [1000 x i8], align 16
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
br label %5
5: ; preds = %26, %0
%6 = call signext i8 (...) @getchar()
store i8 %6, ptr %2, align 1
%7 = load i8, ptr %2, align 1
%8 = sext i8 %7 to i32
%9 = icmp eq i32 %8, 32
br i1 %9, label %18, label %10
10: ; preds = %5
%11 = load i8, ptr %2, align 1
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 9
br i1 %13, label %18, label %14
14: ; preds = %10
%15 = load i8, ptr %2, align 1
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 10
br i1 %17, label %18, label %19
18: ; preds = %14, %10, %5
br label %26
19: ; preds = %14
%20 = load i8, ptr %2, align 1
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %4, align 4
%23 = sext i32 %21 to i64
%24 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 %23
store i8 %20, ptr %24, align 1
br label %25
25: ; preds = %19
br label %26
26: ; preds = %25, %18
%27 = load i8, ptr %2, align 1
%28 = sext i8 %27 to i32
%29 = icmp ne i32 %28, 126
br i1 %29, label %5, label %30, !llvm.loop !6
30: ; preds = %26
%31 = load i32, ptr %4, align 4
%32 = sub nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 %33
store i8 0, ptr %34, align 1
%35 = call i32 @putchar(i8 noundef signext 10)
%36 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%37 = call i32 @puts(ptr noundef %36)
%38 = load i32, ptr @stdin, align 4
%39 = call i32 @fflush(i32 noundef %38)
%40 = call signext i8 (...) @getchar()
ret i32 0
}
declare signext i8 @getchar(...) #1
declare i32 @putchar(i8 noundef signext) #1
declare i32 @puts(ptr noundef) #1
declare i32 @fflush(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpjfu9hlir.c'
source_filename = "/tmp/tmpjfu9hlir.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Quaternion_ToEuler(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = getelementptr inbounds float, ptr %5, i64 2
%7 = load float, ptr %6, align 4
%8 = fmul float 2.000000e+00, %7
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds float, ptr %9, i64 3
%11 = load float, ptr %10, align 4
%12 = load ptr, ptr %3, align 8
%13 = getelementptr inbounds float, ptr %12, i64 0
%14 = load float, ptr %13, align 4
%15 = fmul float 2.000000e+00, %14
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds float, ptr %16, i64 1
%18 = load float, ptr %17, align 4
%19 = fmul float %15, %18
%20 = call float @llvm.fmuladd.f32(float %8, float %11, float %19)
%21 = fptosi float %20 to i32
%22 = load ptr, ptr %3, align 8
%23 = getelementptr inbounds float, ptr %22, i64 1
%24 = load float, ptr %23, align 4
%25 = fmul float -2.000000e+00, %24
%26 = load ptr, ptr %3, align 8
%27 = getelementptr inbounds float, ptr %26, i64 1
%28 = load float, ptr %27, align 4
%29 = load ptr, ptr %3, align 8
%30 = getelementptr inbounds float, ptr %29, i64 2
%31 = load float, ptr %30, align 4
%32 = fmul float 2.000000e+00, %31
%33 = load ptr, ptr %3, align 8
%34 = getelementptr inbounds float, ptr %33, i64 2
%35 = load float, ptr %34, align 4
%36 = fmul float %32, %35
%37 = fneg float %36
%38 = call float @llvm.fmuladd.f32(float %25, float %28, float %37)
%39 = fadd float %38, 1.000000e+00
%40 = fptosi float %39 to i32
%41 = call float @atan2(i32 noundef %21, i32 noundef %40)
%42 = load ptr, ptr %4, align 8
%43 = getelementptr inbounds float, ptr %42, i64 0
store float %41, ptr %43, align 4
%44 = load ptr, ptr %3, align 8
%45 = getelementptr inbounds float, ptr %44, i64 1
%46 = load float, ptr %45, align 4
%47 = fmul float -2.000000e+00, %46
%48 = load ptr, ptr %3, align 8
%49 = getelementptr inbounds float, ptr %48, i64 3
%50 = load float, ptr %49, align 4
%51 = load ptr, ptr %3, align 8
%52 = getelementptr inbounds float, ptr %51, i64 0
%53 = load float, ptr %52, align 4
%54 = fmul float 2.000000e+00, %53
%55 = load ptr, ptr %3, align 8
%56 = getelementptr inbounds float, ptr %55, i64 2
%57 = load float, ptr %56, align 4
%58 = fmul float %54, %57
%59 = call float @llvm.fmuladd.f32(float %47, float %50, float %58)
%60 = fptosi float %59 to i32
%61 = call float @asin(i32 noundef %60)
%62 = load ptr, ptr %4, align 8
%63 = getelementptr inbounds float, ptr %62, i64 1
store float %61, ptr %63, align 4
%64 = load ptr, ptr %3, align 8
%65 = getelementptr inbounds float, ptr %64, i64 1
%66 = load float, ptr %65, align 4
%67 = fmul float 2.000000e+00, %66
%68 = load ptr, ptr %3, align 8
%69 = getelementptr inbounds float, ptr %68, i64 2
%70 = load float, ptr %69, align 4
%71 = load ptr, ptr %3, align 8
%72 = getelementptr inbounds float, ptr %71, i64 0
%73 = load float, ptr %72, align 4
%74 = fmul float 2.000000e+00, %73
%75 = load ptr, ptr %3, align 8
%76 = getelementptr inbounds float, ptr %75, i64 3
%77 = load float, ptr %76, align 4
%78 = fmul float %74, %77
%79 = call float @llvm.fmuladd.f32(float %67, float %70, float %78)
%80 = fptosi float %79 to i32
%81 = load ptr, ptr %3, align 8
%82 = getelementptr inbounds float, ptr %81, i64 2
%83 = load float, ptr %82, align 4
%84 = fmul float -2.000000e+00, %83
%85 = load ptr, ptr %3, align 8
%86 = getelementptr inbounds float, ptr %85, i64 2
%87 = load float, ptr %86, align 4
%88 = load ptr, ptr %3, align 8
%89 = getelementptr inbounds float, ptr %88, i64 3
%90 = load float, ptr %89, align 4
%91 = fmul float 2.000000e+00, %90
%92 = load ptr, ptr %3, align 8
%93 = getelementptr inbounds float, ptr %92, i64 3
%94 = load float, ptr %93, align 4
%95 = fmul float %91, %94
%96 = fneg float %95
%97 = call float @llvm.fmuladd.f32(float %84, float %87, float %96)
%98 = fadd float %97, 1.000000e+00
%99 = fptosi float %98 to i32
%100 = call float @atan2(i32 noundef %80, i32 noundef %99)
%101 = load ptr, ptr %4, align 8
%102 = getelementptr inbounds float, ptr %101, i64 2
store float %100, ptr %102, align 4
ret void
}
declare float @atan2(i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
declare float @asin(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjfu9hlir.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Quaternion_ToEuler(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = getelementptr inbounds float, ptr %5, i64 2
%7 = load float, ptr %6, align 4
%8 = fmul float 2.000000e+00, %7
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds float, ptr %9, i64 3
%11 = load float, ptr %10, align 4
%12 = load ptr, ptr %3, align 8
%13 = getelementptr inbounds float, ptr %12, i64 0
%14 = load float, ptr %13, align 4
%15 = fmul float 2.000000e+00, %14
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds float, ptr %16, i64 1
%18 = load float, ptr %17, align 4
%19 = fmul float %15, %18
%20 = call float @llvm.fmuladd.f32(float %8, float %11, float %19)
%21 = fptosi float %20 to i32
%22 = load ptr, ptr %3, align 8
%23 = getelementptr inbounds float, ptr %22, i64 1
%24 = load float, ptr %23, align 4
%25 = fmul float -2.000000e+00, %24
%26 = load ptr, ptr %3, align 8
%27 = getelementptr inbounds float, ptr %26, i64 1
%28 = load float, ptr %27, align 4
%29 = load ptr, ptr %3, align 8
%30 = getelementptr inbounds float, ptr %29, i64 2
%31 = load float, ptr %30, align 4
%32 = fmul float 2.000000e+00, %31
%33 = load ptr, ptr %3, align 8
%34 = getelementptr inbounds float, ptr %33, i64 2
%35 = load float, ptr %34, align 4
%36 = fmul float %32, %35
%37 = fneg float %36
%38 = call float @llvm.fmuladd.f32(float %25, float %28, float %37)
%39 = fadd float %38, 1.000000e+00
%40 = fptosi float %39 to i32
%41 = call float @atan2(i32 noundef %21, i32 noundef %40)
%42 = load ptr, ptr %4, align 8
%43 = getelementptr inbounds float, ptr %42, i64 0
store float %41, ptr %43, align 4
%44 = load ptr, ptr %3, align 8
%45 = getelementptr inbounds float, ptr %44, i64 1
%46 = load float, ptr %45, align 4
%47 = fmul float -2.000000e+00, %46
%48 = load ptr, ptr %3, align 8
%49 = getelementptr inbounds float, ptr %48, i64 3
%50 = load float, ptr %49, align 4
%51 = load ptr, ptr %3, align 8
%52 = getelementptr inbounds float, ptr %51, i64 0
%53 = load float, ptr %52, align 4
%54 = fmul float 2.000000e+00, %53
%55 = load ptr, ptr %3, align 8
%56 = getelementptr inbounds float, ptr %55, i64 2
%57 = load float, ptr %56, align 4
%58 = fmul float %54, %57
%59 = call float @llvm.fmuladd.f32(float %47, float %50, float %58)
%60 = fptosi float %59 to i32
%61 = call float @asin(i32 noundef %60)
%62 = load ptr, ptr %4, align 8
%63 = getelementptr inbounds float, ptr %62, i64 1
store float %61, ptr %63, align 4
%64 = load ptr, ptr %3, align 8
%65 = getelementptr inbounds float, ptr %64, i64 1
%66 = load float, ptr %65, align 4
%67 = fmul float 2.000000e+00, %66
%68 = load ptr, ptr %3, align 8
%69 = getelementptr inbounds float, ptr %68, i64 2
%70 = load float, ptr %69, align 4
%71 = load ptr, ptr %3, align 8
%72 = getelementptr inbounds float, ptr %71, i64 0
%73 = load float, ptr %72, align 4
%74 = fmul float 2.000000e+00, %73
%75 = load ptr, ptr %3, align 8
%76 = getelementptr inbounds float, ptr %75, i64 3
%77 = load float, ptr %76, align 4
%78 = fmul float %74, %77
%79 = call float @llvm.fmuladd.f32(float %67, float %70, float %78)
%80 = fptosi float %79 to i32
%81 = load ptr, ptr %3, align 8
%82 = getelementptr inbounds float, ptr %81, i64 2
%83 = load float, ptr %82, align 4
%84 = fmul float -2.000000e+00, %83
%85 = load ptr, ptr %3, align 8
%86 = getelementptr inbounds float, ptr %85, i64 2
%87 = load float, ptr %86, align 4
%88 = load ptr, ptr %3, align 8
%89 = getelementptr inbounds float, ptr %88, i64 3
%90 = load float, ptr %89, align 4
%91 = fmul float 2.000000e+00, %90
%92 = load ptr, ptr %3, align 8
%93 = getelementptr inbounds float, ptr %92, i64 3
%94 = load float, ptr %93, align 4
%95 = fmul float %91, %94
%96 = fneg float %95
%97 = call float @llvm.fmuladd.f32(float %84, float %87, float %96)
%98 = fadd float %97, 1.000000e+00
%99 = fptosi float %98 to i32
%100 = call float @atan2(i32 noundef %80, i32 noundef %99)
%101 = load ptr, ptr %4, align 8
%102 = getelementptr inbounds float, ptr %101, i64 2
store float %100, ptr %102, align 4
ret void
}
declare float @atan2(i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
declare float @asin(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"}
|
; ModuleID = '/tmp/tmpkwv3u2nl.c'
source_filename = "/tmp/tmpkwv3u2nl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @BootComInit() #0 {
%1 = call i32 (...) @BootComUartInit()
ret void
}
declare i32 @BootComUartInit(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkwv3u2nl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @BootComInit() #0 {
%1 = call i32 (...) @BootComUartInit()
ret void
}
declare i32 @BootComUartInit(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpp77cbzy9.c'
source_filename = "/tmp/tmpp77cbzy9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @reference_mask_32(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 1, ptr %3, align 4
br label %4
4: ; preds = %8, %1
%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 %12
8: ; preds = %4
%9 = load i32, ptr %3, align 4
%10 = shl i32 %9, 1
%11 = or i32 %10, 1
store i32 %11, ptr %3, align 4
br label %4, !llvm.loop !6
12: ; preds = %4
%13 = load i32, ptr %3, align 4
ret i32 %13
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpp77cbzy9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @reference_mask_32(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 1, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %4, %5
br i1 %6, label %.lr.ph, label %14
.lr.ph: ; preds = %1
br label %7
7: ; preds = %.lr.ph, %7
%8 = load i32, ptr %3, align 4
%9 = shl i32 %8, 1
%10 = or i32 %9, 1
store i32 %10, ptr %3, align 4
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %7
br label %14
14: ; preds = %._crit_edge, %1
%15 = load i32, ptr %3, align 4
ret i32 %15
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpi21_io_b.c'
source_filename = "/tmp/tmpi21_io_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"
@.str = private unnamed_addr constant [38 x i8] c"I2C: Unable to write to i2c register.\00", align 1
@.str.1 = private unnamed_addr constant [38 x i8] c"I2C: Unable to read from i2c register\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i8 @readI2cReg(i32 noundef %0, i8 noundef zeroext %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i8, align 1
%5 = alloca i32, align 4
%6 = alloca i8, align 1
store i32 %0, ptr %3, align 4
store i8 %1, ptr %4, align 1
%7 = load i32, ptr %3, align 4
%8 = call i32 @write(i32 noundef %7, ptr noundef %4, i32 noundef 1)
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = sext i32 %9 to i64
%11 = icmp ne i64 %10, 1
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = call i32 @perror(ptr noundef @.str)
%14 = call i32 @exit(i32 noundef 1) #3
unreachable
15: ; preds = %2
store i8 0, ptr %6, align 1
%16 = load i32, ptr %3, align 4
%17 = call i32 @read(i32 noundef %16, ptr noundef %6, i32 noundef 1)
store i32 %17, ptr %5, align 4
%18 = load i32, ptr %5, align 4
%19 = sext i32 %18 to i64
%20 = icmp ne i64 %19, 1
br i1 %20, label %21, label %24
21: ; preds = %15
%22 = call i32 @perror(ptr noundef @.str.1)
%23 = call i32 @exit(i32 noundef 1) #3
unreachable
24: ; preds = %15
%25 = load i8, ptr %6, align 1
ret i8 %25
}
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi21_io_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"
@.str = private unnamed_addr constant [38 x i8] c"I2C: Unable to write to i2c register.\00", align 1
@.str.1 = private unnamed_addr constant [38 x i8] c"I2C: Unable to read from i2c register\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i8 @readI2cReg(i32 noundef %0, i8 noundef zeroext %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i8, align 1
%5 = alloca i32, align 4
%6 = alloca i8, align 1
store i32 %0, ptr %3, align 4
store i8 %1, ptr %4, align 1
%7 = load i32, ptr %3, align 4
%8 = call i32 @write(i32 noundef %7, ptr noundef %4, i32 noundef 1)
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = sext i32 %9 to i64
%11 = icmp ne i64 %10, 1
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = call i32 @perror(ptr noundef @.str)
%14 = call i32 @exit(i32 noundef 1) #3
unreachable
15: ; preds = %2
store i8 0, ptr %6, align 1
%16 = load i32, ptr %3, align 4
%17 = call i32 @read(i32 noundef %16, ptr noundef %6, i32 noundef 1)
store i32 %17, ptr %5, align 4
%18 = load i32, ptr %5, align 4
%19 = sext i32 %18 to i64
%20 = icmp ne i64 %19, 1
br i1 %20, label %21, label %24
21: ; preds = %15
%22 = call i32 @perror(ptr noundef @.str.1)
%23 = call i32 @exit(i32 noundef 1) #3
unreachable
24: ; preds = %15
%25 = load i8, ptr %6, align 1
ret i8 %25
}
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpoyb5k3uz.c'
source_filename = "/tmp/tmpoyb5k3uz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"format: readproc pid\0A\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"/proc/%s/cmdline\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"fopen\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"%c %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [80 x i8], align 16
%8 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp ne i32 %9, 2
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %43
13: ; preds = %2
%14 = getelementptr inbounds [80 x i8], ptr %7, i64 0, i64 0
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
%18 = call i32 @sprintf(ptr noundef %14, ptr noundef @.str.1, ptr noundef %17)
%19 = getelementptr inbounds [80 x i8], ptr %7, i64 0, i64 0
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %19)
%21 = getelementptr inbounds [80 x i8], ptr %7, i64 0, i64 0
%22 = call ptr @fopen(ptr noundef %21, ptr noundef @.str.3)
store ptr %22, ptr %6, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %26
24: ; preds = %13
%25 = call i32 @perror(ptr noundef @.str.4)
store i32 0, ptr %3, align 4
br label %43
26: ; preds = %13
br label %27
27: ; preds = %32, %26
%28 = load ptr, ptr %6, align 8
%29 = call i32 @feof(ptr noundef %28)
%30 = icmp ne i32 %29, 0
%31 = xor i1 %30, true
br i1 %31, label %32, label %40
32: ; preds = %27
%33 = load ptr, ptr %6, align 8
%34 = call zeroext i8 @fgetc(ptr noundef %33)
store i8 %34, ptr %8, align 1
%35 = load i8, ptr %8, align 1
%36 = zext i8 %35 to i32
%37 = load i8, ptr %8, align 1
%38 = zext i8 %37 to i32
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %36, i32 noundef %38)
br label %27, !llvm.loop !6
40: ; preds = %27
%41 = load ptr, ptr %6, align 8
%42 = call i32 @fclose(ptr noundef %41)
store i32 0, ptr %3, align 4
br label %43
43: ; preds = %40, %24, %11
%44 = load i32, ptr %3, align 4
ret i32 %44
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @feof(ptr noundef) #1
declare zeroext i8 @fgetc(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoyb5k3uz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"format: readproc pid\0A\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"/proc/%s/cmdline\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"fopen\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"%c %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [80 x i8], align 16
%8 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp ne i32 %9, 2
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %46
13: ; preds = %2
%14 = getelementptr inbounds [80 x i8], ptr %7, i64 0, i64 0
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
%18 = call i32 @sprintf(ptr noundef %14, ptr noundef @.str.1, ptr noundef %17)
%19 = getelementptr inbounds [80 x i8], ptr %7, i64 0, i64 0
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %19)
%21 = getelementptr inbounds [80 x i8], ptr %7, i64 0, i64 0
%22 = call ptr @fopen(ptr noundef %21, ptr noundef @.str.3)
store ptr %22, ptr %6, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %26
24: ; preds = %13
%25 = call i32 @perror(ptr noundef @.str.4)
store i32 0, ptr %3, align 4
br label %46
26: ; preds = %13
%27 = load ptr, ptr %6, align 8
%28 = call i32 @feof(ptr noundef %27)
%29 = icmp ne i32 %28, 0
%30 = xor i1 %29, true
br i1 %30, label %.lr.ph, label %43
.lr.ph: ; preds = %26
br label %31
31: ; preds = %.lr.ph, %31
%32 = load ptr, ptr %6, align 8
%33 = call zeroext i8 @fgetc(ptr noundef %32)
store i8 %33, ptr %8, align 1
%34 = load i8, ptr %8, align 1
%35 = zext i8 %34 to i32
%36 = load i8, ptr %8, align 1
%37 = zext i8 %36 to i32
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %35, i32 noundef %37)
%39 = load ptr, ptr %6, align 8
%40 = call i32 @feof(ptr noundef %39)
%41 = icmp ne i32 %40, 0
%42 = xor i1 %41, true
br i1 %42, label %31, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %31
br label %43
43: ; preds = %._crit_edge, %26
%44 = load ptr, ptr %6, align 8
%45 = call i32 @fclose(ptr noundef %44)
store i32 0, ptr %3, align 4
br label %46
46: ; preds = %43, %24, %11
%47 = load i32, ptr %3, align 4
ret i32 %47
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @feof(ptr noundef) #1
declare zeroext i8 @fgetc(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp37r8ril9.c'
source_filename = "/tmp/tmp37r8ril9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@MAP_HUGETLB = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @set_alt_hugepage() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 (...) @get_hugepage_mbytes()
store i32 %3, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp eq i32 %4, 16384
br i1 %5, label %6, label %9
6: ; preds = %0
%7 = load i32, ptr @MAP_HUGETLB, align 4
%8 = or i32 %7, 1610612736
store i32 %8, ptr %1, align 4
br label %24
9: ; preds = %0
%10 = load i32, ptr %2, align 4
%11 = icmp eq i32 %10, 1024
br i1 %11, label %12, label %15
12: ; preds = %9
%13 = load i32, ptr @MAP_HUGETLB, align 4
%14 = or i32 %13, 1409286144
store i32 %14, ptr %1, align 4
br label %24
15: ; preds = %9
%16 = load i32, ptr %2, align 4
%17 = icmp eq i32 %16, 2
br i1 %17, label %18, label %21
18: ; preds = %15
%19 = load i32, ptr @MAP_HUGETLB, align 4
%20 = or i32 %19, 2013265920
store i32 %20, ptr %1, align 4
br label %24
21: ; preds = %15
%22 = load i32, ptr @MAP_HUGETLB, align 4
%23 = or i32 %22, -2013265920
store i32 %23, ptr %1, align 4
br label %24
24: ; preds = %21, %18, %12, %6
%25 = load i32, ptr %1, align 4
ret i32 %25
}
declare i32 @get_hugepage_mbytes(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp37r8ril9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@MAP_HUGETLB = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @set_alt_hugepage() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 (...) @get_hugepage_mbytes()
store i32 %3, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp eq i32 %4, 16384
br i1 %5, label %6, label %9
6: ; preds = %0
%7 = load i32, ptr @MAP_HUGETLB, align 4
%8 = or i32 %7, 1610612736
store i32 %8, ptr %1, align 4
br label %24
9: ; preds = %0
%10 = load i32, ptr %2, align 4
%11 = icmp eq i32 %10, 1024
br i1 %11, label %12, label %15
12: ; preds = %9
%13 = load i32, ptr @MAP_HUGETLB, align 4
%14 = or i32 %13, 1409286144
store i32 %14, ptr %1, align 4
br label %24
15: ; preds = %9
%16 = load i32, ptr %2, align 4
%17 = icmp eq i32 %16, 2
br i1 %17, label %18, label %21
18: ; preds = %15
%19 = load i32, ptr @MAP_HUGETLB, align 4
%20 = or i32 %19, 2013265920
store i32 %20, ptr %1, align 4
br label %24
21: ; preds = %15
%22 = load i32, ptr @MAP_HUGETLB, align 4
%23 = or i32 %22, -2013265920
store i32 %23, ptr %1, align 4
br label %24
24: ; preds = %21, %18, %12, %6
%25 = load i32, ptr %1, align 4
ret i32 %25
}
declare i32 @get_hugepage_mbytes(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyfuwyhpu.c'
source_filename = "/tmp/tmpyfuwyhpu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @IndexOf(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
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%10 = load ptr, ptr %4, align 8
%11 = call i64 @strlen(ptr noundef %10)
%12 = trunc i64 %11 to i32
store i32 %12, ptr %8, align 4
%13 = load ptr, ptr %5, align 8
%14 = call i64 @strlen(ptr noundef %13)
%15 = trunc i64 %14 to i32
store i32 %15, ptr %9, align 4
%16 = load i32, ptr %9, align 4
%17 = load i32, ptr %8, align 4
%18 = icmp sle i32 %16, %17
br i1 %18, label %19, label %61
19: ; preds = %2
store i32 0, ptr %6, align 4
br label %20
20: ; preds = %57, %19
%21 = load i32, ptr %6, align 4
%22 = load i32, ptr %8, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %60
24: ; preds = %20
store i32 0, ptr %7, align 4
br label %25
25: ; preds = %47, %24
%26 = load i32, ptr %7, align 4
%27 = load i32, ptr %9, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %50
29: ; preds = %25
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %6, align 4
%32 = load i32, ptr %7, align 4
%33 = add nsw i32 %31, %32
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %30, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = load ptr, ptr %5, align 8
%39 = load i32, ptr %7, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, ptr %38, i64 %40
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
%44 = icmp ne i32 %37, %43
br i1 %44, label %45, label %46
45: ; preds = %29
br label %50
46: ; preds = %29
br label %47
47: ; preds = %46
%48 = load i32, ptr %7, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %7, align 4
br label %25, !llvm.loop !6
50: ; preds = %45, %25
%51 = load i32, ptr %7, align 4
%52 = load i32, ptr %9, align 4
%53 = icmp eq i32 %51, %52
br i1 %53, label %54, label %56
54: ; preds = %50
%55 = load i32, ptr %6, align 4
store i32 %55, ptr %3, align 4
br label %62
56: ; preds = %50
br label %57
57: ; preds = %56
%58 = load i32, ptr %6, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %6, align 4
br label %20, !llvm.loop !8
60: ; preds = %20
br label %61
61: ; preds = %60, %2
store i32 -1, ptr %3, align 4
br label %62
62: ; preds = %61, %54
%63 = load i32, ptr %3, align 4
ret i32 %63
}
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyfuwyhpu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @IndexOf(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
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%10 = load ptr, ptr %4, align 8
%11 = call i64 @strlen(ptr noundef %10)
%12 = trunc i64 %11 to i32
store i32 %12, ptr %8, align 4
%13 = load ptr, ptr %5, align 8
%14 = call i64 @strlen(ptr noundef %13)
%15 = trunc i64 %14 to i32
store i32 %15, ptr %9, align 4
%16 = load i32, ptr %9, align 4
%17 = load i32, ptr %8, align 4
%18 = icmp sle i32 %16, %17
br i1 %18, label %19, label %65
19: ; preds = %2
store i32 0, ptr %6, align 4
%20 = load i32, ptr %6, align 4
%21 = load i32, ptr %8, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %.lr.ph1, label %64
.lr.ph1: ; preds = %19
br label %23
23: ; preds = %.lr.ph1, %58
store i32 0, ptr %7, align 4
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %9, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %23
br label %27
27: ; preds = %.lr.ph, %45
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %6, align 4
%30 = load i32, ptr %7, align 4
%31 = add nsw i32 %29, %30
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %28, i64 %32
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = load ptr, ptr %5, align 8
%37 = load i32, ptr %7, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = icmp ne i32 %35, %41
br i1 %42, label %43, label %44
43: ; preds = %27
br label %51
44: ; preds = %27
br label %45
45: ; preds = %44
%46 = load i32, ptr %7, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %7, align 4
%48 = load i32, ptr %7, align 4
%49 = load i32, ptr %9, align 4
%50 = icmp slt i32 %48, %49
br i1 %50, label %27, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %45
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %23
br label %51
51: ; preds = %.loopexit, %43
%52 = load i32, ptr %7, align 4
%53 = load i32, ptr %9, align 4
%54 = icmp eq i32 %52, %53
br i1 %54, label %55, label %57
55: ; preds = %51
%56 = load i32, ptr %6, align 4
store i32 %56, ptr %3, align 4
br label %66
57: ; preds = %51
br label %58
58: ; preds = %57
%59 = load i32, ptr %6, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %6, align 4
%61 = load i32, ptr %6, align 4
%62 = load i32, ptr %8, align 4
%63 = icmp slt i32 %61, %62
br i1 %63, label %23, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %58
br label %64
64: ; preds = %._crit_edge, %19
br label %65
65: ; preds = %64, %2
store i32 -1, ptr %3, align 4
br label %66
66: ; preds = %65, %55
%67 = load i32, ptr %3, align 4
ret i32 %67
}
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpbr7u9lqn.c'
source_filename = "/tmp/tmpbr7u9lqn.c"
target datalayout = "e-m:e-p270: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.x = private unnamed_addr constant [12 x float] [float 1.000000e+00, float 2.000000e+00, float 0x7FF8000000000000, float 3.000000e+00, float 0x7FF8000000000000, float 4.000000e+00, float 5.000000e+00, float 6.000000e+00, float 0x7FF8000000000000, float 7.000000e+00, float 8.000000e+00, float 0x7FF8000000000000], align 16
@.str = private unnamed_addr constant [10 x i8] c"mean: %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [12 x float], align 16
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca double, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.main.x, i64 48, i1 false)
store i32 6, ptr %2, align 4
store i32 2, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = getelementptr inbounds [12 x float], ptr %1, i64 0, i64 0
%7 = load i32, ptr %3, align 4
%8 = call double @stdlib_strided_dsnanmeanpn(i32 noundef %5, ptr noundef %6, i32 noundef %7)
store double %8, ptr %4, align 8
%9 = load double, ptr %4, align 8
%10 = call i32 @printf(ptr noundef @.str, double noundef %9)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare double @stdlib_strided_dsnanmeanpn(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbr7u9lqn.c"
target datalayout = "e-m:e-p270: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.x = private unnamed_addr constant [12 x float] [float 1.000000e+00, float 2.000000e+00, float 0x7FF8000000000000, float 3.000000e+00, float 0x7FF8000000000000, float 4.000000e+00, float 5.000000e+00, float 6.000000e+00, float 0x7FF8000000000000, float 7.000000e+00, float 8.000000e+00, float 0x7FF8000000000000], align 16
@.str = private unnamed_addr constant [10 x i8] c"mean: %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [12 x float], align 16
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca double, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.main.x, i64 48, i1 false)
store i32 6, ptr %2, align 4
store i32 2, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = getelementptr inbounds [12 x float], ptr %1, i64 0, i64 0
%7 = load i32, ptr %3, align 4
%8 = call double @stdlib_strided_dsnanmeanpn(i32 noundef %5, ptr noundef %6, i32 noundef %7)
store double %8, ptr %4, align 8
%9 = load double, ptr %4, align 8
%10 = call i32 @printf(ptr noundef @.str, double noundef %9)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare double @stdlib_strided_dsnanmeanpn(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpp9rzwtv3.c'
source_filename = "/tmp/tmpp9rzwtv3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"pthread_mutex_init\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @std_pthread_mutex_init(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i64 @pthread_mutex_init(ptr noundef %5, ptr noundef %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = call i32 @perror(ptr noundef @.str)
%11 = call i32 @exit(i32 noundef 1) #3
unreachable
12: ; preds = %2
ret void
}
declare i64 @pthread_mutex_init(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp9rzwtv3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"pthread_mutex_init\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @std_pthread_mutex_init(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i64 @pthread_mutex_init(ptr noundef %5, ptr noundef %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = call i32 @perror(ptr noundef @.str)
%11 = call i32 @exit(i32 noundef 1) #3
unreachable
12: ; preds = %2
ret void
}
declare i64 @pthread_mutex_init(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpag46mn2d.c'
source_filename = "/tmp/tmpag46mn2d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @displayArray(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i64 0, ptr %5, align 8
br label %6
6: ; preds = %16, %2
%7 = load i64, ptr %5, align 8
%8 = load i64, ptr %4, align 8
%9 = icmp ult i64 %7, %8
br i1 %9, label %10, label %19
10: ; preds = %6
%11 = load ptr, ptr %3, align 8
%12 = load i64, ptr %5, align 8
%13 = getelementptr inbounds i64, ptr %11, i64 %12
%14 = load i64, ptr %13, align 8
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef %14)
br label %16
16: ; preds = %10
%17 = load i64, ptr %5, align 8
%18 = add i64 %17, 1
store i64 %18, ptr %5, align 8
br label %6, !llvm.loop !6
19: ; preds = %6
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpag46mn2d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @displayArray(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i64 0, ptr %5, align 8
%6 = load i64, ptr %5, align 8
%7 = load i64, ptr %4, align 8
%8 = icmp ult i64 %6, %7
br i1 %8, label %.lr.ph, label %21
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %15
%10 = load ptr, ptr %3, align 8
%11 = load i64, ptr %5, align 8
%12 = getelementptr inbounds i64, ptr %10, i64 %11
%13 = load i64, ptr %12, align 8
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef %13)
br label %15
15: ; preds = %9
%16 = load i64, ptr %5, align 8
%17 = add i64 %16, 1
store i64 %17, ptr %5, align 8
%18 = load i64, ptr %5, align 8
%19 = load i64, ptr %4, align 8
%20 = icmp ult i64 %18, %19
br i1 %20, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %21
21: ; preds = %._crit_edge, %2
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpdfzgds2a.c'
source_filename = "/tmp/tmpdfzgds2a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOSYS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @shmctl(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load i32, ptr @ENOSYS, align 4
%8 = call i32 @__set_errno(i32 noundef %7)
ret i32 -1
}
declare i32 @__set_errno(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/tmpdfzgds2a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOSYS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @shmctl(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load i32, ptr @ENOSYS, align 4
%8 = call i32 @__set_errno(i32 noundef %7)
ret i32 -1
}
declare i32 @__set_errno(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/tmpiprjcro2.c'
source_filename = "/tmp/tmpiprjcro2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [47 x i8] c"BigExtract: %s\0ABigExtract: calling it a day...\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printError(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpiprjcro2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [47 x i8] c"BigExtract: %s\0ABigExtract: calling it a day...\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printError(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvznru7ht.c'
source_filename = "/tmp/tmpvznru7ht.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"\0AFinal result your number is even\0A\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c"\0AFinal result your number is odd\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Mult(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = srem i32 %4, 2
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = call i32 @printf(ptr noundef @.str)
br label %12
10: ; preds = %1
%11 = call i32 @printf(ptr noundef @.str.1)
br label %12
12: ; preds = %10, %8
%13 = load i32, ptr %3, align 4
ret i32 %13
}
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/tmpvznru7ht.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"\0AFinal result your number is even\0A\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c"\0AFinal result your number is odd\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Mult(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = srem i32 %4, 2
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = call i32 @printf(ptr noundef @.str)
br label %12
10: ; preds = %1
%11 = call i32 @printf(ptr noundef @.str.1)
br label %12
12: ; preds = %10, %8
%13 = load i32, ptr %3, align 4
ret i32 %13
}
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/tmp9yduc03m.c'
source_filename = "/tmp/tmp9yduc03m.c"
target datalayout = "e-m:e-p270: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/tmp9yduc03m.c"
target datalayout = "e-m:e-p270: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/tmp91bqz85h.c'
source_filename = "/tmp/tmp91bqz85h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hts_lrand48() #0 {
%1 = call double (...) @lrand48()
ret double %1
}
declare double @lrand48(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp91bqz85h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hts_lrand48() #0 {
%1 = call double (...) @lrand48()
ret double %1
}
declare double @lrand48(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.