llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmps5j97trf.c'
source_filename = "/tmp/tmps5j97trf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @little_endian_16(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @assert(ptr noundef %4)
%6 = load ptr, ptr %2, align 8
%7 = getelementptr inbounds i32, ptr %6, i64 0
%8 = load i32, ptr %7, align 4
store i32 %8, ptr %3, align 4
%9 = load ptr, ptr %2, align 8
%10 = getelementptr inbounds i32, ptr %9, i64 1
%11 = load i32, ptr %10, align 4
%12 = shl i32 %11, 8
%13 = load i32, ptr %3, align 4
%14 = add i32 %13, %12
store i32 %14, ptr %3, align 4
%15 = load i32, ptr %3, align 4
ret i32 %15
}
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/tmps5j97trf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @little_endian_16(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @assert(ptr noundef %4)
%6 = load ptr, ptr %2, align 8
%7 = getelementptr inbounds i32, ptr %6, i64 0
%8 = load i32, ptr %7, align 4
store i32 %8, ptr %3, align 4
%9 = load ptr, ptr %2, align 8
%10 = getelementptr inbounds i32, ptr %9, i64 1
%11 = load i32, ptr %10, align 4
%12 = shl i32 %11, 8
%13 = load i32, ptr %3, align 4
%14 = add i32 %13, %12
store i32 %14, ptr %3, align 4
%15 = load i32, ptr %3, align 4
ret i32 %15
}
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/tmpfoni37r7.c'
source_filename = "/tmp/tmpfoni37r7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"pan.b\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"pan.c\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"pan.h\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"pan.m\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"pan.t\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"pan.p\00", align 1
@.str.6 = private unnamed_addr constant [8 x i8] c"pan.pre\00", align 1
@.str.7 = private unnamed_addr constant [14 x i8] c"_spin_nvr.tmp\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fatal(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 i32 @non_fatal(ptr noundef %5, ptr noundef %6)
%8 = call i32 @unlink(ptr noundef @.str)
%9 = call i32 @unlink(ptr noundef @.str.1)
%10 = call i32 @unlink(ptr noundef @.str.2)
%11 = call i32 @unlink(ptr noundef @.str.3)
%12 = call i32 @unlink(ptr noundef @.str.4)
%13 = call i32 @unlink(ptr noundef @.str.5)
%14 = call i32 @unlink(ptr noundef @.str.6)
%15 = call i32 @unlink(ptr noundef @.str.7)
%16 = call i32 @alldone(i32 noundef 1)
ret void
}
declare i32 @non_fatal(ptr noundef, ptr noundef) #1
declare i32 @unlink(ptr noundef) #1
declare i32 @alldone(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/tmpfoni37r7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"pan.b\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"pan.c\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"pan.h\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"pan.m\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"pan.t\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"pan.p\00", align 1
@.str.6 = private unnamed_addr constant [8 x i8] c"pan.pre\00", align 1
@.str.7 = private unnamed_addr constant [14 x i8] c"_spin_nvr.tmp\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fatal(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 i32 @non_fatal(ptr noundef %5, ptr noundef %6)
%8 = call i32 @unlink(ptr noundef @.str)
%9 = call i32 @unlink(ptr noundef @.str.1)
%10 = call i32 @unlink(ptr noundef @.str.2)
%11 = call i32 @unlink(ptr noundef @.str.3)
%12 = call i32 @unlink(ptr noundef @.str.4)
%13 = call i32 @unlink(ptr noundef @.str.5)
%14 = call i32 @unlink(ptr noundef @.str.6)
%15 = call i32 @unlink(ptr noundef @.str.7)
%16 = call i32 @alldone(i32 noundef 1)
ret void
}
declare i32 @non_fatal(ptr noundef, ptr noundef) #1
declare i32 @unlink(ptr noundef) #1
declare i32 @alldone(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/tmp7rqeqccy.c'
source_filename = "/tmp/tmp7rqeqccy.c"
target datalayout = "e-m:e-p270: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/tmp7rqeqccy.c"
target datalayout = "e-m:e-p270: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/tmp1qom841t.c'
source_filename = "/tmp/tmp1qom841t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @append_char(ptr noundef %0, i64 noundef %1, i8 noundef signext %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i8, align 1
%7 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i8 %2, ptr %6, align 1
%8 = load ptr, ptr %4, align 8
%9 = call i64 @strlen(ptr noundef %8)
store i64 %9, ptr %7, align 8
%10 = load i64, ptr %5, align 8
%11 = load i64, ptr %7, align 8
%12 = icmp ugt i64 %10, %11
br i1 %12, label %13, label %22
13: ; preds = %3
%14 = load i8, ptr %6, align 1
%15 = load ptr, ptr %4, align 8
%16 = load i64, ptr %7, align 8
%17 = add i64 %16, 1
store i64 %17, ptr %7, align 8
%18 = getelementptr inbounds i8, ptr %15, i64 %16
store i8 %14, ptr %18, align 1
%19 = load ptr, ptr %4, align 8
%20 = load i64, ptr %7, align 8
%21 = getelementptr inbounds i8, ptr %19, i64 %20
store i8 0, ptr %21, align 1
br label %22
22: ; preds = %13, %3
ret void
}
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1qom841t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @append_char(ptr noundef %0, i64 noundef %1, i8 noundef signext %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i8, align 1
%7 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i8 %2, ptr %6, align 1
%8 = load ptr, ptr %4, align 8
%9 = call i64 @strlen(ptr noundef %8)
store i64 %9, ptr %7, align 8
%10 = load i64, ptr %5, align 8
%11 = load i64, ptr %7, align 8
%12 = icmp ugt i64 %10, %11
br i1 %12, label %13, label %22
13: ; preds = %3
%14 = load i8, ptr %6, align 1
%15 = load ptr, ptr %4, align 8
%16 = load i64, ptr %7, align 8
%17 = add i64 %16, 1
store i64 %17, ptr %7, align 8
%18 = getelementptr inbounds i8, ptr %15, i64 %16
store i8 %14, ptr %18, align 1
%19 = load ptr, ptr %4, align 8
%20 = load i64, ptr %7, align 8
%21 = getelementptr inbounds i8, ptr %19, i64 %20
store i8 0, ptr %21, align 1
br label %22
22: ; preds = %13, %3
ret void
}
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcvwawo9h.c'
source_filename = "/tmp/tmpcvwawo9h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"%-12s %7i/%-7i %7i/%-7i (%4.1f%%)\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"VERY FULL!\0A\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"SIZE DANGER!\0A\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"SIZE OVERFLOW!!!\0A\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ArrayUsage(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca float, 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 %3, ptr %8, align 4
%10 = load i32, ptr %7, align 4
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %19
12: ; preds = %4
%13 = load i32, ptr %6, align 4
%14 = sitofp i32 %13 to double
%15 = fmul double %14, 1.000000e+02
%16 = load i32, ptr %7, align 4
%17 = sitofp i32 %16 to double
%18 = fdiv double %15, %17
br label %20
19: ; preds = %4
br label %20
20: ; preds = %19, %12
%21 = phi double [ %18, %12 ], [ 0.000000e+00, %19 ]
%22 = fptrunc double %21 to float
store float %22, ptr %9, align 4
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %6, align 4
%25 = load i32, ptr %7, align 4
%26 = load i32, ptr %6, align 4
%27 = load i32, ptr %8, align 4
%28 = mul nsw i32 %26, %27
%29 = load i32, ptr %7, align 4
%30 = load i32, ptr %8, align 4
%31 = mul nsw i32 %29, %30
%32 = load float, ptr %9, align 4
%33 = fpext float %32 to double
%34 = call i32 (ptr, ...) @qprintf(ptr noundef @.str, ptr noundef %23, i32 noundef %24, i32 noundef %25, i32 noundef %28, i32 noundef %31, double noundef %33)
%35 = load float, ptr %9, align 4
%36 = fpext float %35 to double
%37 = fcmp ogt double %36, 8.000000e+01
br i1 %37, label %38, label %40
38: ; preds = %20
%39 = call i32 (ptr, ...) @qprintf(ptr noundef @.str.1)
br label %56
40: ; preds = %20
%41 = load float, ptr %9, align 4
%42 = fpext float %41 to double
%43 = fcmp ogt double %42, 9.500000e+01
br i1 %43, label %44, label %46
44: ; preds = %40
%45 = call i32 (ptr, ...) @qprintf(ptr noundef @.str.2)
br label %55
46: ; preds = %40
%47 = load float, ptr %9, align 4
%48 = fpext float %47 to double
%49 = fcmp ogt double %48, 9.990000e+01
br i1 %49, label %50, label %52
50: ; preds = %46
%51 = call i32 (ptr, ...) @qprintf(ptr noundef @.str.3)
br label %54
52: ; preds = %46
%53 = call i32 (ptr, ...) @qprintf(ptr noundef @.str.4)
br label %54
54: ; preds = %52, %50
br label %55
55: ; preds = %54, %44
br label %56
56: ; preds = %55, %38
%57 = load i32, ptr %6, align 4
%58 = load i32, ptr %8, align 4
%59 = mul nsw i32 %57, %58
ret i32 %59
}
declare i32 @qprintf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcvwawo9h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"%-12s %7i/%-7i %7i/%-7i (%4.1f%%)\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"VERY FULL!\0A\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"SIZE DANGER!\0A\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"SIZE OVERFLOW!!!\0A\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ArrayUsage(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca float, 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 %3, ptr %8, align 4
%10 = load i32, ptr %7, align 4
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %19
12: ; preds = %4
%13 = load i32, ptr %6, align 4
%14 = sitofp i32 %13 to double
%15 = fmul double %14, 1.000000e+02
%16 = load i32, ptr %7, align 4
%17 = sitofp i32 %16 to double
%18 = fdiv double %15, %17
br label %20
19: ; preds = %4
br label %20
20: ; preds = %19, %12
%21 = phi double [ %18, %12 ], [ 0.000000e+00, %19 ]
%22 = fptrunc double %21 to float
store float %22, ptr %9, align 4
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %6, align 4
%25 = load i32, ptr %7, align 4
%26 = load i32, ptr %6, align 4
%27 = load i32, ptr %8, align 4
%28 = mul nsw i32 %26, %27
%29 = load i32, ptr %7, align 4
%30 = load i32, ptr %8, align 4
%31 = mul nsw i32 %29, %30
%32 = load float, ptr %9, align 4
%33 = fpext float %32 to double
%34 = call i32 (ptr, ...) @qprintf(ptr noundef @.str, ptr noundef %23, i32 noundef %24, i32 noundef %25, i32 noundef %28, i32 noundef %31, double noundef %33)
%35 = load float, ptr %9, align 4
%36 = fpext float %35 to double
%37 = fcmp ogt double %36, 8.000000e+01
br i1 %37, label %38, label %40
38: ; preds = %20
%39 = call i32 (ptr, ...) @qprintf(ptr noundef @.str.1)
br label %56
40: ; preds = %20
%41 = load float, ptr %9, align 4
%42 = fpext float %41 to double
%43 = fcmp ogt double %42, 9.500000e+01
br i1 %43, label %44, label %46
44: ; preds = %40
%45 = call i32 (ptr, ...) @qprintf(ptr noundef @.str.2)
br label %55
46: ; preds = %40
%47 = load float, ptr %9, align 4
%48 = fpext float %47 to double
%49 = fcmp ogt double %48, 9.990000e+01
br i1 %49, label %50, label %52
50: ; preds = %46
%51 = call i32 (ptr, ...) @qprintf(ptr noundef @.str.3)
br label %54
52: ; preds = %46
%53 = call i32 (ptr, ...) @qprintf(ptr noundef @.str.4)
br label %54
54: ; preds = %52, %50
br label %55
55: ; preds = %54, %44
br label %56
56: ; preds = %55, %38
%57 = load i32, ptr %6, align 4
%58 = load i32, ptr %8, align 4
%59 = mul nsw i32 %57, %58
ret i32 %59
}
declare i32 @qprintf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0xmao842.c'
source_filename = "/tmp/tmp0xmao842.c"
target datalayout = "e-m:e-p270: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.gbser_setup.arg = private unnamed_addr constant [4 x i32] [i32 4800, i32 8, i32 0, i32 1], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @gbser_setup(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [4 x i32], align 16
%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
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.gbser_setup.arg, i64 16, i1 false)
store i32 0, ptr %7, align 4
br label %10
10: ; preds = %80, %2
%11 = load i32, ptr %7, align 4
%12 = sext i32 %11 to i64
%13 = icmp ult i64 %12, 4
br i1 %13, label %14, label %83
14: ; preds = %10
store i32 0, ptr %8, align 4
br label %15
15: ; preds = %20, %14
%16 = load ptr, ptr %5, align 8
%17 = load i8, ptr %16, align 1
%18 = call i64 @isspace(i8 noundef signext %17)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %15
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %5, align 8
br label %15, !llvm.loop !6
23: ; preds = %15
%24 = load i32, ptr %7, align 4
%25 = icmp eq i32 %24, 2
br i1 %25, label %26, label %36
26: ; preds = %23
%27 = load ptr, ptr %5, align 8
%28 = load i8, ptr %27, align 1
%29 = call i32 @parity_letter(i8 noundef signext %28)
store i32 %29, ptr %9, align 4
%30 = load i32, ptr %9, align 4
%31 = icmp sge i32 %30, 0
br i1 %31, label %32, label %36
32: ; preds = %26
%33 = load i32, ptr %9, align 4
store i32 %33, ptr %8, align 4
%34 = load ptr, ptr %5, align 8
%35 = getelementptr inbounds i8, ptr %34, i32 1
store ptr %35, ptr %5, align 8
br label %58
36: ; preds = %26, %23
%37 = load ptr, ptr %5, align 8
%38 = load i8, ptr %37, align 1
%39 = call i64 @isdigit(i8 noundef signext %38)
%40 = icmp ne i64 %39, 0
br i1 %40, label %42, label %41
41: ; preds = %36
br label %83
42: ; preds = %36
br label %43
43: ; preds = %48, %42
%44 = load ptr, ptr %5, align 8
%45 = load i8, ptr %44, align 1
%46 = call i64 @isdigit(i8 noundef signext %45)
%47 = icmp ne i64 %46, 0
br i1 %47, label %48, label %57
48: ; preds = %43
%49 = load i32, ptr %8, align 4
%50 = mul i32 %49, 10
%51 = load ptr, ptr %5, align 8
%52 = getelementptr inbounds i8, ptr %51, i32 1
store ptr %52, ptr %5, align 8
%53 = load i8, ptr %51, align 1
%54 = sext i8 %53 to i32
%55 = add i32 %50, %54
%56 = sub i32 %55, 48
store i32 %56, ptr %8, align 4
br label %43, !llvm.loop !8
57: ; preds = %43
br label %58
58: ; preds = %57, %32
%59 = load i32, ptr %8, align 4
%60 = load i32, ptr %7, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 %61
store i32 %59, ptr %62, align 4
br label %63
63: ; preds = %68, %58
%64 = load ptr, ptr %5, align 8
%65 = load i8, ptr %64, align 1
%66 = call i64 @isspace(i8 noundef signext %65)
%67 = icmp ne i64 %66, 0
br i1 %67, label %68, label %71
68: ; preds = %63
%69 = load ptr, ptr %5, align 8
%70 = getelementptr inbounds i8, ptr %69, i32 1
store ptr %70, ptr %5, align 8
br label %63, !llvm.loop !9
71: ; preds = %63
%72 = load ptr, ptr %5, align 8
%73 = load i8, ptr %72, align 1
%74 = sext i8 %73 to i32
%75 = icmp ne i32 %74, 44
br i1 %75, label %76, label %77
76: ; preds = %71
br label %83
77: ; preds = %71
%78 = load ptr, ptr %5, align 8
%79 = getelementptr inbounds i8, ptr %78, i32 1
store ptr %79, ptr %5, align 8
br label %80
80: ; preds = %77
%81 = load i32, ptr %7, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %7, align 4
br label %10, !llvm.loop !10
83: ; preds = %76, %41, %10
%84 = load ptr, ptr %5, align 8
%85 = load i8, ptr %84, align 1
%86 = sext i8 %85 to i32
%87 = icmp ne i32 %86, 0
br i1 %87, label %88, label %89
88: ; preds = %83
store i32 -3, ptr %3, align 4
br label %100
89: ; preds = %83
%90 = load ptr, ptr %4, align 8
%91 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 0
%92 = load i32, ptr %91, align 16
%93 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 1
%94 = load i32, ptr %93, align 4
%95 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 2
%96 = load i32, ptr %95, align 8
%97 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 3
%98 = load i32, ptr %97, align 4
%99 = call i32 @gbser_set_port(ptr noundef %90, i32 noundef %92, i32 noundef %94, i32 noundef %96, i32 noundef %98)
store i32 %99, ptr %3, align 4
br label %100
100: ; preds = %89, %88
%101 = load i32, ptr %3, align 4
ret i32 %101
}
; 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 i64 @isspace(i8 noundef signext) #2
declare i32 @parity_letter(i8 noundef signext) #2
declare i64 @isdigit(i8 noundef signext) #2
declare i32 @gbser_set_port(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0xmao842.c"
target datalayout = "e-m:e-p270: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.gbser_setup.arg = private unnamed_addr constant [4 x i32] [i32 4800, i32 8, i32 0, i32 1], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @gbser_setup(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [4 x i32], align 16
%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
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.gbser_setup.arg, i64 16, i1 false)
store i32 0, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = sext i32 %10 to i64
%12 = icmp ult i64 %11, 4
br i1 %12, label %.lr.ph8, label %.loopexit
.lr.ph8: ; preds = %2
br label %13
13: ; preds = %.lr.ph8, %88
store i32 0, ptr %8, align 4
%14 = load ptr, ptr %5, align 8
%15 = load i8, ptr %14, align 1
%16 = call i64 @isspace(i8 noundef signext %15)
%17 = icmp ne i64 %16, 0
br i1 %17, label %.lr.ph, label %25
.lr.ph: ; preds = %13
br label %18
18: ; preds = %.lr.ph, %18
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds i8, ptr %19, i32 1
store ptr %20, ptr %5, align 8
%21 = load ptr, ptr %5, align 8
%22 = load i8, ptr %21, align 1
%23 = call i64 @isspace(i8 noundef signext %22)
%24 = icmp ne i64 %23, 0
br i1 %24, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %25
25: ; preds = %._crit_edge, %13
%26 = load i32, ptr %7, align 4
%27 = icmp eq i32 %26, 2
br i1 %27, label %28, label %38
28: ; preds = %25
%29 = load ptr, ptr %5, align 8
%30 = load i8, ptr %29, align 1
%31 = call i32 @parity_letter(i8 noundef signext %30)
store i32 %31, ptr %9, align 4
%32 = load i32, ptr %9, align 4
%33 = icmp sge i32 %32, 0
br i1 %33, label %34, label %38
34: ; preds = %28
%35 = load i32, ptr %9, align 4
store i32 %35, ptr %8, align 4
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds i8, ptr %36, i32 1
store ptr %37, ptr %5, align 8
br label %63
38: ; preds = %28, %25
%39 = load ptr, ptr %5, align 8
%40 = load i8, ptr %39, align 1
%41 = call i64 @isdigit(i8 noundef signext %40)
%42 = icmp ne i64 %41, 0
br i1 %42, label %44, label %43
43: ; preds = %38
br label %94
44: ; preds = %38
%45 = load ptr, ptr %5, align 8
%46 = load i8, ptr %45, align 1
%47 = call i64 @isdigit(i8 noundef signext %46)
%48 = icmp ne i64 %47, 0
br i1 %48, label %.lr.ph2, label %62
.lr.ph2: ; preds = %44
br label %49
49: ; preds = %.lr.ph2, %49
%50 = load i32, ptr %8, align 4
%51 = mul i32 %50, 10
%52 = load ptr, ptr %5, align 8
%53 = getelementptr inbounds i8, ptr %52, i32 1
store ptr %53, ptr %5, align 8
%54 = load i8, ptr %52, align 1
%55 = sext i8 %54 to i32
%56 = add i32 %51, %55
%57 = sub i32 %56, 48
store i32 %57, ptr %8, align 4
%58 = load ptr, ptr %5, align 8
%59 = load i8, ptr %58, align 1
%60 = call i64 @isdigit(i8 noundef signext %59)
%61 = icmp ne i64 %60, 0
br i1 %61, label %49, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %49
br label %62
62: ; preds = %._crit_edge3, %44
br label %63
63: ; preds = %62, %34
%64 = load i32, ptr %8, align 4
%65 = load i32, ptr %7, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 %66
store i32 %64, ptr %67, align 4
%68 = load ptr, ptr %5, align 8
%69 = load i8, ptr %68, align 1
%70 = call i64 @isspace(i8 noundef signext %69)
%71 = icmp ne i64 %70, 0
br i1 %71, label %.lr.ph5, label %79
.lr.ph5: ; preds = %63
br label %72
72: ; preds = %.lr.ph5, %72
%73 = load ptr, ptr %5, align 8
%74 = getelementptr inbounds i8, ptr %73, i32 1
store ptr %74, ptr %5, align 8
%75 = load ptr, ptr %5, align 8
%76 = load i8, ptr %75, align 1
%77 = call i64 @isspace(i8 noundef signext %76)
%78 = icmp ne i64 %77, 0
br i1 %78, label %72, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %72
br label %79
79: ; preds = %._crit_edge6, %63
%80 = load ptr, ptr %5, align 8
%81 = load i8, ptr %80, align 1
%82 = sext i8 %81 to i32
%83 = icmp ne i32 %82, 44
br i1 %83, label %84, label %85
84: ; preds = %79
br label %94
85: ; preds = %79
%86 = load ptr, ptr %5, align 8
%87 = getelementptr inbounds i8, ptr %86, i32 1
store ptr %87, ptr %5, align 8
br label %88
88: ; preds = %85
%89 = load i32, ptr %7, align 4
%90 = add nsw i32 %89, 1
store i32 %90, ptr %7, align 4
%91 = load i32, ptr %7, align 4
%92 = sext i32 %91 to i64
%93 = icmp ult i64 %92, 4
br i1 %93, label %13, label %..loopexit_crit_edge, !llvm.loop !10
..loopexit_crit_edge: ; preds = %88
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %2
br label %94
94: ; preds = %.loopexit, %84, %43
%95 = load ptr, ptr %5, align 8
%96 = load i8, ptr %95, align 1
%97 = sext i8 %96 to i32
%98 = icmp ne i32 %97, 0
br i1 %98, label %99, label %100
99: ; preds = %94
store i32 -3, ptr %3, align 4
br label %111
100: ; preds = %94
%101 = load ptr, ptr %4, align 8
%102 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 0
%103 = load i32, ptr %102, align 16
%104 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 1
%105 = load i32, ptr %104, align 4
%106 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 2
%107 = load i32, ptr %106, align 8
%108 = getelementptr inbounds [4 x i32], ptr %6, i64 0, i64 3
%109 = load i32, ptr %108, align 4
%110 = call i32 @gbser_set_port(ptr noundef %101, i32 noundef %103, i32 noundef %105, i32 noundef %107, i32 noundef %109)
store i32 %110, ptr %3, align 4
br label %111
111: ; preds = %100, %99
%112 = load i32, ptr %3, align 4
ret i32 %112
}
; 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 i64 @isspace(i8 noundef signext) #2
declare i32 @parity_letter(i8 noundef signext) #2
declare i64 @isdigit(i8 noundef signext) #2
declare i32 @gbser_set_port(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpvxkamo93.c'
source_filename = "/tmp/tmpvxkamo93.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"sdjhajsdhajsd \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @merge(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
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %31
11: ; preds = %3
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %5, align 4
%15 = sub nsw i32 %13, %14
%16 = sdiv i32 %15, 2
%17 = add nsw i32 %12, %16
store i32 %17, ptr %7, align 4
%18 = load ptr, ptr %4, align 8
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr %7, align 4
call void @merge(ptr noundef %18, i32 noundef %19, i32 noundef %20)
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %7, align 4
%23 = add nsw i32 %22, 1
%24 = load i32, ptr %6, align 4
call void @merge(ptr noundef %21, i32 noundef %23, i32 noundef %24)
%25 = call i32 @printf(ptr noundef @.str)
%26 = load ptr, ptr %4, align 8
%27 = load i32, ptr %5, align 4
%28 = load i32, ptr %7, align 4
%29 = load i32, ptr %6, align 4
%30 = call i32 @mergeSort(ptr noundef %26, i32 noundef %27, i32 noundef %28, i32 noundef %29)
br label %31
31: ; preds = %11, %3
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @mergeSort(ptr 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/tmpvxkamo93.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"sdjhajsdhajsd \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @merge(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
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %31
11: ; preds = %3
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %5, align 4
%15 = sub nsw i32 %13, %14
%16 = sdiv i32 %15, 2
%17 = add nsw i32 %12, %16
store i32 %17, ptr %7, align 4
%18 = load ptr, ptr %4, align 8
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr %7, align 4
call void @merge(ptr noundef %18, i32 noundef %19, i32 noundef %20)
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %7, align 4
%23 = add nsw i32 %22, 1
%24 = load i32, ptr %6, align 4
call void @merge(ptr noundef %21, i32 noundef %23, i32 noundef %24)
%25 = call i32 @printf(ptr noundef @.str)
%26 = load ptr, ptr %4, align 8
%27 = load i32, ptr %5, align 4
%28 = load i32, ptr %7, align 4
%29 = load i32, ptr %6, align 4
%30 = call i32 @mergeSort(ptr noundef %26, i32 noundef %27, i32 noundef %28, i32 noundef %29)
br label %31
31: ; preds = %11, %3
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @mergeSort(ptr 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/tmp4qez9_1f.c'
source_filename = "/tmp/tmp4qez9_1f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @init_rtc() #0 {
%1 = call i32 @outb_cmos(i32 noundef 10, i32 noundef 38)
%2 = call i32 @outb_cmos(i32 noundef 11, i32 noundef 2)
%3 = call i32 @inb_cmos(i32 noundef 12)
%4 = call i32 @inb_cmos(i32 noundef 13)
ret void
}
declare i32 @outb_cmos(i32 noundef, i32 noundef) #1
declare i32 @inb_cmos(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/tmp4qez9_1f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @init_rtc() #0 {
%1 = call i32 @outb_cmos(i32 noundef 10, i32 noundef 38)
%2 = call i32 @outb_cmos(i32 noundef 11, i32 noundef 2)
%3 = call i32 @inb_cmos(i32 noundef 12)
%4 = call i32 @inb_cmos(i32 noundef 13)
ret void
}
declare i32 @outb_cmos(i32 noundef, i32 noundef) #1
declare i32 @inb_cmos(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/tmpp6vewdna.c'
source_filename = "/tmp/tmpp6vewdna.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @osslib_ioctl(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %5, align 4
%9 = load ptr, ptr %6, align 8
%10 = call i32 @ioctl(i32 noundef %7, i32 noundef %8, ptr noundef %9)
ret i32 %10
}
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp6vewdna.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @osslib_ioctl(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %5, align 4
%9 = load ptr, ptr %6, align 8
%10 = call i32 @ioctl(i32 noundef %7, i32 noundef %8, ptr noundef %9)
ret i32 %10
}
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2bj7qeyj.c'
source_filename = "/tmp/tmp2bj7qeyj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"BinaryenNone: %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"BinaryenInt32: %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"BinaryenInt64: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"BinaryenFloat32: %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [21 x i8] c"BinaryenFloat64: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_types() #0 {
%1 = call i32 (...) @BinaryenNone()
%2 = call i32 @printf(ptr noundef @.str, i32 noundef %1)
%3 = call i32 (...) @BinaryenInt32()
%4 = call i32 @printf(ptr noundef @.str.1, i32 noundef %3)
%5 = call i32 (...) @BinaryenInt64()
%6 = call i32 @printf(ptr noundef @.str.2, i32 noundef %5)
%7 = call i32 (...) @BinaryenFloat32()
%8 = call i32 @printf(ptr noundef @.str.3, i32 noundef %7)
%9 = call i32 (...) @BinaryenFloat64()
%10 = call i32 @printf(ptr noundef @.str.4, i32 noundef %9)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @BinaryenNone(...) #1
declare i32 @BinaryenInt32(...) #1
declare i32 @BinaryenInt64(...) #1
declare i32 @BinaryenFloat32(...) #1
declare i32 @BinaryenFloat64(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2bj7qeyj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"BinaryenNone: %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"BinaryenInt32: %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"BinaryenInt64: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"BinaryenFloat32: %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [21 x i8] c"BinaryenFloat64: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_types() #0 {
%1 = call i32 (...) @BinaryenNone()
%2 = call i32 @printf(ptr noundef @.str, i32 noundef %1)
%3 = call i32 (...) @BinaryenInt32()
%4 = call i32 @printf(ptr noundef @.str.1, i32 noundef %3)
%5 = call i32 (...) @BinaryenInt64()
%6 = call i32 @printf(ptr noundef @.str.2, i32 noundef %5)
%7 = call i32 (...) @BinaryenFloat32()
%8 = call i32 @printf(ptr noundef @.str.3, i32 noundef %7)
%9 = call i32 (...) @BinaryenFloat64()
%10 = call i32 @printf(ptr noundef @.str.4, i32 noundef %9)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @BinaryenNone(...) #1
declare i32 @BinaryenInt32(...) #1
declare i32 @BinaryenInt64(...) #1
declare i32 @BinaryenFloat32(...) #1
declare i32 @BinaryenFloat64(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9ecmjaq9.c'
source_filename = "/tmp/tmp9ecmjaq9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"char1:\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"char2:\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c" %c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i8, align 1
%2 = alloca i8, align 1
%3 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1)
%4 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %1)
%5 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.3)
%6 = call i32 @scanf(ptr noundef @.str.4, ptr noundef %2)
%7 = load i8, ptr %1, align 1
%8 = load i8, ptr %2, align 1
%9 = call i32 @packCharacters(i8 noundef signext %7, i8 noundef signext %8)
ret i32 0
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @packCharacters(i8 noundef signext, 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9ecmjaq9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"char1:\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"char2:\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c" %c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i8, align 1
%2 = alloca i8, align 1
%3 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1)
%4 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %1)
%5 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.3)
%6 = call i32 @scanf(ptr noundef @.str.4, ptr noundef %2)
%7 = load i8, ptr %1, align 1
%8 = load i8, ptr %2, align 1
%9 = call i32 @packCharacters(i8 noundef signext %7, i8 noundef signext %8)
ret i32 0
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @packCharacters(i8 noundef signext, 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"}
|
; ModuleID = '/tmp/tmp0xip8wix.c'
source_filename = "/tmp/tmp0xip8wix.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"!10= %li\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i32 10, ptr %2, align 4
store i32 1, ptr %3, align 4
store i64 1, ptr %4, align 8
store i32 1, ptr %3, align 4
br label %5
5: ; preds = %14, %0
%6 = load i32, ptr %3, align 4
%7 = load i32, ptr %2, align 4
%8 = icmp sle i32 %6, %7
br i1 %8, label %9, label %17
9: ; preds = %5
%10 = load i64, ptr %4, align 8
%11 = load i32, ptr %3, align 4
%12 = sext i32 %11 to i64
%13 = mul nsw i64 %10, %12
store i64 %13, ptr %4, align 8
br label %14
14: ; preds = %9
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %3, align 4
br label %5, !llvm.loop !6
17: ; preds = %5
%18 = load i64, ptr %4, align 8
%19 = call i32 @printf(ptr noundef @.str, i64 noundef %18)
ret i32 0
}
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0xip8wix.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"!10= %li\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i32 10, ptr %2, align 4
store i32 1, ptr %3, align 4
store i64 1, ptr %4, align 8
store i32 1, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp sle i32 %5, %6
br i1 %7, label %.lr.ph, label %19
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %13
%9 = load i64, ptr %4, align 8
%10 = load i32, ptr %3, align 4
%11 = sext i32 %10 to i64
%12 = mul nsw i64 %9, %11
store i64 %12, ptr %4, align 8
br label %13
13: ; preds = %8
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %3, align 4
%16 = load i32, ptr %3, align 4
%17 = load i32, ptr %2, align 4
%18 = icmp sle i32 %16, %17
br i1 %18, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %19
19: ; preds = %._crit_edge, %0
%20 = load i64, ptr %4, align 8
%21 = call i32 @printf(ptr noundef @.str, i64 noundef %20)
ret i32 0
}
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpqqwydblb.c'
source_filename = "/tmp/tmpqqwydblb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%d%d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [100 x i32], align 16
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
store i32 0, ptr %5, align 4
br label %9
9: ; preds = %18, %0
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr %2, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %21
13: ; preds = %9
%14 = load i32, ptr %5, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [100 x i32], ptr %4, i64 0, i64 %15
%17 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %16)
br label %18
18: ; preds = %13
%19 = load i32, ptr %5, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %5, align 4
br label %9, !llvm.loop !6
21: ; preds = %9
%22 = load i32, ptr %2, align 4
store i32 %22, ptr %6, align 4
br label %23
23: ; preds = %56, %21
%24 = load i32, ptr %6, align 4
%25 = load i32, ptr %3, align 4
%26 = icmp sle i32 %24, %25
br i1 %26, label %27, label %59
27: ; preds = %23
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [100 x i32], ptr %4, i64 0, i64 %29
store i32 0, ptr %30, align 4
%31 = load i32, ptr %6, align 4
%32 = sub nsw i32 %31, 1
store i32 %32, ptr %7, align 4
br label %33
33: ; preds = %52, %27
%34 = load i32, ptr %7, align 4
%35 = load i32, ptr %6, align 4
%36 = load i32, ptr %2, align 4
%37 = sub nsw i32 %35, %36
%38 = icmp sge i32 %34, %37
br i1 %38, label %39, label %55
39: ; preds = %33
%40 = load i32, ptr %6, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [100 x i32], ptr %4, i64 0, i64 %41
%43 = load i32, ptr %42, align 4
%44 = load i32, ptr %7, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [100 x i32], ptr %4, i64 0, i64 %45
%47 = load i32, ptr %46, align 4
%48 = add nsw i32 %43, %47
%49 = load i32, ptr %6, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [100 x i32], ptr %4, i64 0, i64 %50
store i32 %48, ptr %51, align 4
br label %52
52: ; preds = %39
%53 = load i32, ptr %7, align 4
%54 = add nsw i32 %53, -1
store i32 %54, ptr %7, align 4
br label %33, !llvm.loop !8
55: ; preds = %33
br label %56
56: ; preds = %55
%57 = load i32, ptr %6, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %6, align 4
br label %23, !llvm.loop !9
59: ; preds = %23
%60 = load i32, ptr %3, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [100 x i32], ptr %4, i64 0, i64 %61
%63 = load i32, ptr %62, align 4
%64 = call i32 @printf(ptr noundef @.str.1, i32 noundef %63)
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}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqqwydblb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%d%d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [100 x i32], align 16
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
store i32 0, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %2, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %23
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %17
%13 = load i32, ptr %5, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [100 x i32], ptr %4, i64 0, i64 %14
%16 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %15)
br label %17
17: ; preds = %12
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %5, align 4
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %2, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %23
23: ; preds = %._crit_edge, %0
%24 = load i32, ptr %2, align 4
store i32 %24, ptr %6, align 4
%25 = load i32, ptr %6, align 4
%26 = load i32, ptr %3, align 4
%27 = icmp sle i32 %25, %26
br i1 %27, label %.lr.ph5, label %67
.lr.ph5: ; preds = %23
br label %28
28: ; preds = %.lr.ph5, %61
%29 = load i32, ptr %6, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [100 x i32], ptr %4, i64 0, i64 %30
store i32 0, ptr %31, align 4
%32 = load i32, ptr %6, align 4
%33 = sub nsw i32 %32, 1
store i32 %33, ptr %7, align 4
%34 = load i32, ptr %7, align 4
%35 = load i32, ptr %6, align 4
%36 = load i32, ptr %2, align 4
%37 = sub nsw i32 %35, %36
%38 = icmp sge i32 %34, %37
br i1 %38, label %.lr.ph2, label %60
.lr.ph2: ; preds = %28
br label %39
39: ; preds = %.lr.ph2, %52
%40 = load i32, ptr %6, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [100 x i32], ptr %4, i64 0, i64 %41
%43 = load i32, ptr %42, align 4
%44 = load i32, ptr %7, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [100 x i32], ptr %4, i64 0, i64 %45
%47 = load i32, ptr %46, align 4
%48 = add nsw i32 %43, %47
%49 = load i32, ptr %6, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [100 x i32], ptr %4, i64 0, i64 %50
store i32 %48, ptr %51, align 4
br label %52
52: ; preds = %39
%53 = load i32, ptr %7, align 4
%54 = add nsw i32 %53, -1
store i32 %54, ptr %7, align 4
%55 = load i32, ptr %7, align 4
%56 = load i32, ptr %6, align 4
%57 = load i32, ptr %2, align 4
%58 = sub nsw i32 %56, %57
%59 = icmp sge i32 %55, %58
br i1 %59, label %39, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %52
br label %60
60: ; preds = %._crit_edge3, %28
br label %61
61: ; preds = %60
%62 = load i32, ptr %6, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %6, align 4
%64 = load i32, ptr %6, align 4
%65 = load i32, ptr %3, align 4
%66 = icmp sle i32 %64, %65
br i1 %66, label %28, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %61
br label %67
67: ; preds = %._crit_edge6, %23
%68 = load i32, ptr %3, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [100 x i32], ptr %4, i64 0, i64 %69
%71 = load i32, ptr %70, align 4
%72 = call i32 @printf(ptr noundef @.str.1, i32 noundef %71)
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}
|
; ModuleID = '/tmp/tmpukdh6f0k.c'
source_filename = "/tmp/tmpukdh6f0k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @kasiski_calc(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca double, align 8
%14 = alloca i64, align 8
%15 = alloca i64, align 8
%16 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
store i64 0, ptr %12, align 8
store i64 0, ptr %9, align 8
br label %17
17: ; preds = %25, %4
%18 = load i64, ptr %9, align 8
%19 = load i64, ptr %8, align 8
%20 = icmp ult i64 %18, %19
br i1 %20, label %21, label %28
21: ; preds = %17
%22 = load ptr, ptr %7, align 8
%23 = load i64, ptr %9, align 8
%24 = getelementptr inbounds double, ptr %22, i64 %23
store double 0.000000e+00, ptr %24, align 8
br label %25
25: ; preds = %21
%26 = load i64, ptr %9, align 8
%27 = add i64 %26, 1
store i64 %27, ptr %9, align 8
br label %17, !llvm.loop !6
28: ; preds = %17
store i64 0, ptr %9, align 8
br label %29
29: ; preds = %131, %28
%30 = load i64, ptr %9, align 8
%31 = load i64, ptr %6, align 8
%32 = icmp ult i64 %30, %31
br i1 %32, label %33, label %134
33: ; preds = %29
%34 = load i64, ptr %9, align 8
%35 = add i64 %34, 2
store i64 %35, ptr %10, align 8
br label %36
36: ; preds = %127, %33
%37 = load i64, ptr %10, align 8
%38 = load i64, ptr %6, align 8
%39 = icmp ult i64 %37, %38
br i1 %39, label %40, label %130
40: ; preds = %36
br label %41
41: ; preds = %59, %40
%42 = load i64, ptr %10, align 8
%43 = load i64, ptr %6, align 8
%44 = icmp ult i64 %42, %43
br i1 %44, label %45, label %57
45: ; preds = %41
%46 = load ptr, ptr %5, align 8
%47 = load i64, ptr %9, align 8
%48 = getelementptr inbounds i8, ptr %46, i64 %47
%49 = load i8, ptr %48, align 1
%50 = zext i8 %49 to i32
%51 = load ptr, ptr %5, align 8
%52 = load i64, ptr %10, align 8
%53 = getelementptr inbounds i8, ptr %51, i64 %52
%54 = load i8, ptr %53, align 1
%55 = zext i8 %54 to i32
%56 = icmp ne i32 %50, %55
br label %57
57: ; preds = %45, %41
%58 = phi i1 [ false, %41 ], [ %56, %45 ]
br i1 %58, label %59, label %62
59: ; preds = %57
%60 = load i64, ptr %10, align 8
%61 = add i64 %60, 1
store i64 %61, ptr %10, align 8
br label %41, !llvm.loop !8
62: ; preds = %57
store i64 1, ptr %11, align 8
br label %63
63: ; preds = %87, %62
%64 = load i64, ptr %10, align 8
%65 = load i64, ptr %11, align 8
%66 = add i64 %64, %65
%67 = load i64, ptr %6, align 8
%68 = icmp ult i64 %66, %67
br i1 %68, label %69, label %85
69: ; preds = %63
%70 = load ptr, ptr %5, align 8
%71 = load i64, ptr %9, align 8
%72 = load i64, ptr %11, align 8
%73 = add i64 %71, %72
%74 = getelementptr inbounds i8, ptr %70, i64 %73
%75 = load i8, ptr %74, align 1
%76 = zext i8 %75 to i32
%77 = load ptr, ptr %5, align 8
%78 = load i64, ptr %10, align 8
%79 = load i64, ptr %11, align 8
%80 = add i64 %78, %79
%81 = getelementptr inbounds i8, ptr %77, i64 %80
%82 = load i8, ptr %81, align 1
%83 = zext i8 %82 to i32
%84 = icmp eq i32 %76, %83
br label %85
85: ; preds = %69, %63
%86 = phi i1 [ false, %63 ], [ %84, %69 ]
br i1 %86, label %87, label %90
87: ; preds = %85
%88 = load i64, ptr %11, align 8
%89 = add i64 %88, 1
store i64 %89, ptr %11, align 8
br label %63, !llvm.loop !9
90: ; preds = %85
%91 = load i64, ptr %11, align 8
%92 = icmp ugt i64 %91, 2
br i1 %92, label %93, label %127
93: ; preds = %90
%94 = load i64, ptr %10, align 8
%95 = load i64, ptr %9, align 8
%96 = sub i64 %94, %95
store i64 %96, ptr %14, align 8
store i64 1, ptr %15, align 8
br label %97
97: ; preds = %123, %93
%98 = load i64, ptr %15, align 8
%99 = load i64, ptr %14, align 8
%100 = icmp ule i64 %98, %99
br i1 %100, label %101, label %126
101: ; preds = %97
%102 = load i64, ptr %14, align 8
%103 = load i64, ptr %15, align 8
%104 = urem i64 %102, %103
%105 = icmp ne i64 %104, 0
br i1 %105, label %106, label %107
106: ; preds = %101
br label %123
107: ; preds = %101
%108 = load i64, ptr %14, align 8
%109 = load i64, ptr %15, align 8
%110 = udiv i64 %108, %109
store i64 %110, ptr %16, align 8
%111 = load i64, ptr %16, align 8
%112 = load i64, ptr %8, align 8
%113 = icmp ult i64 %111, %112
br i1 %113, label %114, label %122
114: ; preds = %107
%115 = load ptr, ptr %7, align 8
%116 = load i64, ptr %16, align 8
%117 = getelementptr inbounds double, ptr %115, i64 %116
%118 = load double, ptr %117, align 8
%119 = fadd double %118, 1.000000e+00
store double %119, ptr %117, align 8
%120 = load i64, ptr %12, align 8
%121 = add i64 %120, 1
store i64 %121, ptr %12, align 8
br label %122
122: ; preds = %114, %107
br label %123
123: ; preds = %122, %106
%124 = load i64, ptr %15, align 8
%125 = add i64 %124, 1
store i64 %125, ptr %15, align 8
br label %97, !llvm.loop !10
126: ; preds = %97
br label %127
127: ; preds = %126, %90
%128 = load i64, ptr %10, align 8
%129 = add i64 %128, 1
store i64 %129, ptr %10, align 8
br label %36, !llvm.loop !11
130: ; preds = %36
br label %131
131: ; preds = %130
%132 = load i64, ptr %9, align 8
%133 = add i64 %132, 1
store i64 %133, ptr %9, align 8
br label %29, !llvm.loop !12
134: ; preds = %29
%135 = load i64, ptr %12, align 8
%136 = icmp eq i64 %135, 0
br i1 %136, label %137, label %138
137: ; preds = %134
br label %156
138: ; preds = %134
%139 = load i64, ptr %12, align 8
%140 = uitofp i64 %139 to double
%141 = fdiv double 1.000000e+00, %140
store double %141, ptr %13, align 8
store i64 0, ptr %9, align 8
br label %142
142: ; preds = %153, %138
%143 = load i64, ptr %9, align 8
%144 = load i64, ptr %8, align 8
%145 = icmp ult i64 %143, %144
br i1 %145, label %146, label %156
146: ; preds = %142
%147 = load double, ptr %13, align 8
%148 = load ptr, ptr %7, align 8
%149 = load i64, ptr %9, align 8
%150 = getelementptr inbounds double, ptr %148, i64 %149
%151 = load double, ptr %150, align 8
%152 = fmul double %151, %147
store double %152, ptr %150, align 8
br label %153
153: ; preds = %146
%154 = load i64, ptr %9, align 8
%155 = add i64 %154, 1
store i64 %155, ptr %9, align 8
br label %142, !llvm.loop !13
156: ; preds = %137, %142
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpukdh6f0k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @kasiski_calc(ptr noundef %0, i64 noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca double, align 8
%14 = alloca i64, align 8
%15 = alloca i64, align 8
%16 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
store i64 0, ptr %12, align 8
store i64 0, ptr %9, align 8
%17 = load i64, ptr %9, align 8
%18 = load i64, ptr %8, align 8
%19 = icmp ult i64 %17, %18
br i1 %19, label %.lr.ph, label %30
.lr.ph: ; preds = %4
br label %20
20: ; preds = %.lr.ph, %24
%21 = load ptr, ptr %7, align 8
%22 = load i64, ptr %9, align 8
%23 = getelementptr inbounds double, ptr %21, i64 %22
store double 0.000000e+00, ptr %23, align 8
br label %24
24: ; preds = %20
%25 = load i64, ptr %9, align 8
%26 = add i64 %25, 1
store i64 %26, ptr %9, align 8
%27 = load i64, ptr %9, align 8
%28 = load i64, ptr %8, align 8
%29 = icmp ult i64 %27, %28
br i1 %29, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %30
30: ; preds = %._crit_edge, %4
store i64 0, ptr %9, align 8
%31 = load i64, ptr %9, align 8
%32 = load i64, ptr %6, align 8
%33 = icmp ult i64 %31, %32
br i1 %33, label %.lr.ph8, label %142
.lr.ph8: ; preds = %30
br label %34
34: ; preds = %.lr.ph8, %136
%35 = load i64, ptr %9, align 8
%36 = add i64 %35, 2
store i64 %36, ptr %10, align 8
%37 = load i64, ptr %10, align 8
%38 = load i64, ptr %6, align 8
%39 = icmp ult i64 %37, %38
br i1 %39, label %.lr.ph5, label %135
.lr.ph5: ; preds = %34
br label %40
40: ; preds = %.lr.ph5, %129
br label %41
41: ; preds = %59, %40
%42 = load i64, ptr %10, align 8
%43 = load i64, ptr %6, align 8
%44 = icmp ult i64 %42, %43
br i1 %44, label %45, label %57
45: ; preds = %41
%46 = load ptr, ptr %5, align 8
%47 = load i64, ptr %9, align 8
%48 = getelementptr inbounds i8, ptr %46, i64 %47
%49 = load i8, ptr %48, align 1
%50 = zext i8 %49 to i32
%51 = load ptr, ptr %5, align 8
%52 = load i64, ptr %10, align 8
%53 = getelementptr inbounds i8, ptr %51, i64 %52
%54 = load i8, ptr %53, align 1
%55 = zext i8 %54 to i32
%56 = icmp ne i32 %50, %55
br label %57
57: ; preds = %45, %41
%58 = phi i1 [ false, %41 ], [ %56, %45 ]
br i1 %58, label %59, label %62
59: ; preds = %57
%60 = load i64, ptr %10, align 8
%61 = add i64 %60, 1
store i64 %61, ptr %10, align 8
br label %41, !llvm.loop !8
62: ; preds = %57
store i64 1, ptr %11, align 8
br label %63
63: ; preds = %87, %62
%64 = load i64, ptr %10, align 8
%65 = load i64, ptr %11, align 8
%66 = add i64 %64, %65
%67 = load i64, ptr %6, align 8
%68 = icmp ult i64 %66, %67
br i1 %68, label %69, label %85
69: ; preds = %63
%70 = load ptr, ptr %5, align 8
%71 = load i64, ptr %9, align 8
%72 = load i64, ptr %11, align 8
%73 = add i64 %71, %72
%74 = getelementptr inbounds i8, ptr %70, i64 %73
%75 = load i8, ptr %74, align 1
%76 = zext i8 %75 to i32
%77 = load ptr, ptr %5, align 8
%78 = load i64, ptr %10, align 8
%79 = load i64, ptr %11, align 8
%80 = add i64 %78, %79
%81 = getelementptr inbounds i8, ptr %77, i64 %80
%82 = load i8, ptr %81, align 1
%83 = zext i8 %82 to i32
%84 = icmp eq i32 %76, %83
br label %85
85: ; preds = %69, %63
%86 = phi i1 [ false, %63 ], [ %84, %69 ]
br i1 %86, label %87, label %90
87: ; preds = %85
%88 = load i64, ptr %11, align 8
%89 = add i64 %88, 1
store i64 %89, ptr %11, align 8
br label %63, !llvm.loop !9
90: ; preds = %85
%91 = load i64, ptr %11, align 8
%92 = icmp ugt i64 %91, 2
br i1 %92, label %93, label %129
93: ; preds = %90
%94 = load i64, ptr %10, align 8
%95 = load i64, ptr %9, align 8
%96 = sub i64 %94, %95
store i64 %96, ptr %14, align 8
store i64 1, ptr %15, align 8
%97 = load i64, ptr %15, align 8
%98 = load i64, ptr %14, align 8
%99 = icmp ule i64 %97, %98
br i1 %99, label %.lr.ph2, label %128
.lr.ph2: ; preds = %93
br label %100
100: ; preds = %.lr.ph2, %122
%101 = load i64, ptr %14, align 8
%102 = load i64, ptr %15, align 8
%103 = urem i64 %101, %102
%104 = icmp ne i64 %103, 0
br i1 %104, label %105, label %106
105: ; preds = %100
br label %122
106: ; preds = %100
%107 = load i64, ptr %14, align 8
%108 = load i64, ptr %15, align 8
%109 = udiv i64 %107, %108
store i64 %109, ptr %16, align 8
%110 = load i64, ptr %16, align 8
%111 = load i64, ptr %8, align 8
%112 = icmp ult i64 %110, %111
br i1 %112, label %113, label %121
113: ; preds = %106
%114 = load ptr, ptr %7, align 8
%115 = load i64, ptr %16, align 8
%116 = getelementptr inbounds double, ptr %114, i64 %115
%117 = load double, ptr %116, align 8
%118 = fadd double %117, 1.000000e+00
store double %118, ptr %116, align 8
%119 = load i64, ptr %12, align 8
%120 = add i64 %119, 1
store i64 %120, ptr %12, align 8
br label %121
121: ; preds = %113, %106
br label %122
122: ; preds = %121, %105
%123 = load i64, ptr %15, align 8
%124 = add i64 %123, 1
store i64 %124, ptr %15, align 8
%125 = load i64, ptr %15, align 8
%126 = load i64, ptr %14, align 8
%127 = icmp ule i64 %125, %126
br i1 %127, label %100, label %._crit_edge3, !llvm.loop !10
._crit_edge3: ; preds = %122
br label %128
128: ; preds = %._crit_edge3, %93
br label %129
129: ; preds = %128, %90
%130 = load i64, ptr %10, align 8
%131 = add i64 %130, 1
store i64 %131, ptr %10, align 8
%132 = load i64, ptr %10, align 8
%133 = load i64, ptr %6, align 8
%134 = icmp ult i64 %132, %133
br i1 %134, label %40, label %._crit_edge6, !llvm.loop !11
._crit_edge6: ; preds = %129
br label %135
135: ; preds = %._crit_edge6, %34
br label %136
136: ; preds = %135
%137 = load i64, ptr %9, align 8
%138 = add i64 %137, 1
store i64 %138, ptr %9, align 8
%139 = load i64, ptr %9, align 8
%140 = load i64, ptr %6, align 8
%141 = icmp ult i64 %139, %140
br i1 %141, label %34, label %._crit_edge9, !llvm.loop !12
._crit_edge9: ; preds = %136
br label %142
142: ; preds = %._crit_edge9, %30
%143 = load i64, ptr %12, align 8
%144 = icmp eq i64 %143, 0
br i1 %144, label %145, label %146
145: ; preds = %142
br label %166
146: ; preds = %142
%147 = load i64, ptr %12, align 8
%148 = uitofp i64 %147 to double
%149 = fdiv double 1.000000e+00, %148
store double %149, ptr %13, align 8
store i64 0, ptr %9, align 8
%150 = load i64, ptr %9, align 8
%151 = load i64, ptr %8, align 8
%152 = icmp ult i64 %150, %151
br i1 %152, label %.lr.ph11, label %.loopexit
.lr.ph11: ; preds = %146
br label %153
153: ; preds = %.lr.ph11, %160
%154 = load double, ptr %13, align 8
%155 = load ptr, ptr %7, align 8
%156 = load i64, ptr %9, align 8
%157 = getelementptr inbounds double, ptr %155, i64 %156
%158 = load double, ptr %157, align 8
%159 = fmul double %158, %154
store double %159, ptr %157, align 8
br label %160
160: ; preds = %153
%161 = load i64, ptr %9, align 8
%162 = add i64 %161, 1
store i64 %162, ptr %9, align 8
%163 = load i64, ptr %9, align 8
%164 = load i64, ptr %8, align 8
%165 = icmp ult i64 %163, %164
br i1 %165, label %153, label %..loopexit_crit_edge, !llvm.loop !13
..loopexit_crit_edge: ; preds = %160
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %146
br label %166
166: ; preds = %.loopexit, %145
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
|
; ModuleID = '/tmp/tmpvsxg8uzj.c'
source_filename = "/tmp/tmpvsxg8uzj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"mem\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @procfs_mem_open(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 @procfs_generic_open(i32 noundef %3, ptr noundef @.str)
ret i32 %4
}
declare i32 @procfs_generic_open(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/tmpvsxg8uzj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"mem\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @procfs_mem_open(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 @procfs_generic_open(i32 noundef %3, ptr noundef @.str)
ret i32 %4
}
declare i32 @procfs_generic_open(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/tmpok5e4bvt.c'
source_filename = "/tmp/tmpok5e4bvt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
@ECONNRESET = dso_local global i32 0, align 4
@EAGAIN = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @m_recvdata(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%9 = load i32, ptr %7, align 4
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %3
store i32 0, ptr %4, align 4
br label %33
12: ; preds = %3
br label %13
13: ; preds = %28, %12
%14 = load i32, ptr %5, align 4
%15 = load ptr, ptr %6, align 8
%16 = load i32, ptr %7, align 4
%17 = call i32 @read(i32 noundef %14, ptr noundef %15, i32 noundef %16)
store i32 %17, ptr %8, align 4
%18 = load i32, ptr %8, align 4
switch i32 %18, label %31 [
i32 -1, label %19
i32 0, label %30
]
19: ; preds = %13
%20 = load i32, ptr @errno, align 4
%21 = load i32, ptr @ECONNRESET, align 4
%22 = icmp eq i32 %20, %21
br i1 %22, label %23, label %24
23: ; preds = %19
store i32 -4, ptr %4, align 4
br label %33
24: ; preds = %19
%25 = load i32, ptr @errno, align 4
%26 = load i32, ptr @EAGAIN, align 4
%27 = icmp eq i32 %25, %26
br i1 %27, label %28, label %29
28: ; preds = %24
br label %13
29: ; preds = %24
store i32 -1, ptr %4, align 4
br label %33
30: ; preds = %13
store i32 -2, ptr %4, align 4
br label %33
31: ; preds = %13
%32 = load i32, ptr %8, align 4
store i32 %32, ptr %4, align 4
br label %33
33: ; preds = %31, %30, %29, %23, %11
%34 = load i32, ptr %4, align 4
ret i32 %34
}
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpok5e4bvt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
@ECONNRESET = dso_local global i32 0, align 4
@EAGAIN = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @m_recvdata(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%9 = load i32, ptr %7, align 4
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %3
store i32 0, ptr %4, align 4
br label %32
12: ; preds = %3
br label %13
13: ; preds = %24, %12
%14 = load i32, ptr %5, align 4
%15 = load ptr, ptr %6, align 8
%16 = load i32, ptr %7, align 4
%17 = call i32 @read(i32 noundef %14, ptr noundef %15, i32 noundef %16)
store i32 %17, ptr %8, align 4
%18 = load i32, ptr %8, align 4
switch i32 %18, label %30 [
i32 -1, label %19
i32 0, label %29
]
19: ; preds = %13
%20 = load i32, ptr @errno, align 4
%21 = load i32, ptr @ECONNRESET, align 4
%22 = icmp eq i32 %20, %21
br i1 %22, label %23, label %24
23: ; preds = %19
store i32 -4, ptr %4, align 4
br label %32
24: ; preds = %19
%25 = load i32, ptr @errno, align 4
%26 = load i32, ptr @EAGAIN, align 4
%27 = icmp eq i32 %25, %26
br i1 %27, label %13, label %28
28: ; preds = %24
store i32 -1, ptr %4, align 4
br label %32
29: ; preds = %13
store i32 -2, ptr %4, align 4
br label %32
30: ; preds = %13
%31 = load i32, ptr %8, align 4
store i32 %31, ptr %4, align 4
br label %32
32: ; preds = %30, %29, %28, %23, %11
%33 = load i32, ptr %4, align 4
ret i32 %33
}
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpe3ne_1yr.c'
source_filename = "/tmp/tmpe3ne_1yr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bench_usleep(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i64, align 8
store i32 %0, ptr %2, align 4
store i64 0, ptr %3, align 8
br label %4
4: ; preds = %18, %1
%5 = load i64, ptr %3, align 8
%6 = icmp ult i64 %5, 100000
br i1 %6, label %7, label %21
7: ; preds = %4
%8 = call i32 @usleep(i32 noundef 1000)
%9 = call i32 @usleep(i32 noundef 1000)
%10 = call i32 @usleep(i32 noundef 1000)
%11 = call i32 @usleep(i32 noundef 1000)
%12 = call i32 @usleep(i32 noundef 1000)
%13 = call i32 @usleep(i32 noundef 1000)
%14 = call i32 @usleep(i32 noundef 1000)
%15 = call i32 @usleep(i32 noundef 1000)
%16 = call i32 @usleep(i32 noundef 1000)
%17 = call i32 @usleep(i32 noundef 1000)
br label %18
18: ; preds = %7
%19 = load i64, ptr %3, align 8
%20 = add i64 %19, 1
store i64 %20, ptr %3, align 8
br label %4, !llvm.loop !6
21: ; preds = %4
ret void
}
declare i32 @usleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe3ne_1yr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bench_usleep(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i64, align 8
store i32 %0, ptr %2, align 4
store i64 0, ptr %3, align 8
%4 = load i64, ptr %3, align 8
%5 = icmp ult i64 %4, 100000
br i1 %5, label %.lr.ph, label %22
.lr.ph: ; preds = %1
br label %6
6: ; preds = %.lr.ph, %17
%7 = call i32 @usleep(i32 noundef 1000)
%8 = call i32 @usleep(i32 noundef 1000)
%9 = call i32 @usleep(i32 noundef 1000)
%10 = call i32 @usleep(i32 noundef 1000)
%11 = call i32 @usleep(i32 noundef 1000)
%12 = call i32 @usleep(i32 noundef 1000)
%13 = call i32 @usleep(i32 noundef 1000)
%14 = call i32 @usleep(i32 noundef 1000)
%15 = call i32 @usleep(i32 noundef 1000)
%16 = call i32 @usleep(i32 noundef 1000)
br label %17
17: ; preds = %6
%18 = load i64, ptr %3, align 8
%19 = add i64 %18, 1
store i64 %19, ptr %3, align 8
%20 = load i64, ptr %3, align 8
%21 = icmp ult i64 %20, 100000
br i1 %21, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %22
22: ; preds = %._crit_edge, %1
ret void
}
declare i32 @usleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpd5jfks0o.c'
source_filename = "/tmp/tmpd5jfks0o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Parent\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"Calling vfork(2)\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"vfork\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"Child\00", align 1
@.str.4 = private unnamed_addr constant [29 x i8] c"Closing stdout and finishing\00", align 1
@STDOUT_FILENO = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [6 x i8] c"close\00", align 1
@.str.6 = private unnamed_addr constant [73 x i8] c"Back. If you can read this is because the file descriptor was unaffected\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @logInfo(ptr noundef @.str, ptr noundef @.str.1)
%3 = call i32 @vfork() #4
switch i32 %3, label %15 [
i32 -1, label %4
i32 0, label %6
]
4: ; preds = %0
%5 = call i32 @pexit(ptr noundef @.str.2)
br label %17
6: ; preds = %0
%7 = call i32 @logInfo(ptr noundef @.str.3, ptr noundef @.str.4)
%8 = load i32, ptr @STDOUT_FILENO, align 4
%9 = call i32 @close(i32 noundef %8)
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %13
11: ; preds = %6
%12 = call i32 @pexit(ptr noundef @.str.5)
br label %13
13: ; preds = %11, %6
%14 = call i32 @_exit(i32 noundef 0) #5
unreachable
15: ; preds = %0
%16 = call i32 @logInfo(ptr noundef @.str, ptr noundef @.str.6)
br label %17
17: ; preds = %15, %4
%18 = load i32, ptr @EXIT_SUCCESS, align 4
%19 = call i32 @exit(i32 noundef %18) #5
unreachable
}
declare i32 @logInfo(ptr noundef, ptr noundef) #1
; Function Attrs: returns_twice
declare i32 @vfork() #2
declare i32 @pexit(ptr noundef) #1
declare i32 @close(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @_exit(i32 noundef) #3
; Function Attrs: noreturn
declare i32 @exit(i32 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 = { returns_twice "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { returns_twice }
attributes #5 = { 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/tmpd5jfks0o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Parent\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"Calling vfork(2)\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"vfork\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"Child\00", align 1
@.str.4 = private unnamed_addr constant [29 x i8] c"Closing stdout and finishing\00", align 1
@STDOUT_FILENO = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [6 x i8] c"close\00", align 1
@.str.6 = private unnamed_addr constant [73 x i8] c"Back. If you can read this is because the file descriptor was unaffected\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @logInfo(ptr noundef @.str, ptr noundef @.str.1)
%3 = call i32 @vfork() #4
switch i32 %3, label %15 [
i32 -1, label %4
i32 0, label %6
]
4: ; preds = %0
%5 = call i32 @pexit(ptr noundef @.str.2)
br label %17
6: ; preds = %0
%7 = call i32 @logInfo(ptr noundef @.str.3, ptr noundef @.str.4)
%8 = load i32, ptr @STDOUT_FILENO, align 4
%9 = call i32 @close(i32 noundef %8)
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %13
11: ; preds = %6
%12 = call i32 @pexit(ptr noundef @.str.5)
br label %13
13: ; preds = %11, %6
%14 = call i32 @_exit(i32 noundef 0) #5
unreachable
15: ; preds = %0
%16 = call i32 @logInfo(ptr noundef @.str, ptr noundef @.str.6)
br label %17
17: ; preds = %15, %4
%18 = load i32, ptr @EXIT_SUCCESS, align 4
%19 = call i32 @exit(i32 noundef %18) #5
unreachable
}
declare i32 @logInfo(ptr noundef, ptr noundef) #1
; Function Attrs: returns_twice
declare i32 @vfork() #2
declare i32 @pexit(ptr noundef) #1
declare i32 @close(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @_exit(i32 noundef) #3
; Function Attrs: noreturn
declare i32 @exit(i32 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 = { returns_twice "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { returns_twice }
attributes #5 = { 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/tmpauclp52k.c'
source_filename = "/tmp/tmpauclp52k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"%f %f %f %f\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%.2f\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 float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
br label %10
10: ; preds = %13, %2
%11 = call i64 @scanf(ptr noundef @.str, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9)
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %25
13: ; preds = %10
%14 = load float, ptr %6, align 4
%15 = load float, ptr %8, align 4
%16 = fsub float %14, %15
%17 = call i64 @sqare(float noundef %16)
%18 = load float, ptr %7, align 4
%19 = load float, ptr %9, align 4
%20 = fsub float %18, %19
%21 = call i64 @sqare(float noundef %20)
%22 = add nsw i64 %17, %21
%23 = call double @sqrt(i64 noundef %22)
%24 = call i32 @printf(ptr noundef @.str.1, double noundef %23)
br label %10, !llvm.loop !6
25: ; preds = %10
ret i32 0
}
declare i64 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, double noundef) #1
declare double @sqrt(i64 noundef) #1
declare i64 @sqare(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpauclp52k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"%f %f %f %f\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%.2f\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 float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = call i64 @scanf(ptr noundef @.str, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9)
%11 = icmp ne i64 %10, 0
br i1 %11, label %.lr.ph, label %26
.lr.ph: ; preds = %2
br label %12
12: ; preds = %.lr.ph, %12
%13 = load float, ptr %6, align 4
%14 = load float, ptr %8, align 4
%15 = fsub float %13, %14
%16 = call i64 @sqare(float noundef %15)
%17 = load float, ptr %7, align 4
%18 = load float, ptr %9, align 4
%19 = fsub float %17, %18
%20 = call i64 @sqare(float noundef %19)
%21 = add nsw i64 %16, %20
%22 = call double @sqrt(i64 noundef %21)
%23 = call i32 @printf(ptr noundef @.str.1, double noundef %22)
%24 = call i64 @scanf(ptr noundef @.str, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9)
%25 = icmp ne i64 %24, 0
br i1 %25, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %26
26: ; preds = %._crit_edge, %2
ret i32 0
}
declare i64 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, double noundef) #1
declare double @sqrt(i64 noundef) #1
declare i64 @sqare(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpw0j8ppdi.c'
source_filename = "/tmp/tmpw0j8ppdi.c"
target datalayout = "e-m:e-p270: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/tmpw0j8ppdi.c"
target datalayout = "e-m:e-p270: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/tmpmp21n9v3.c'
source_filename = "/tmp/tmpmp21n9v3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Bad call to ckrealloc\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"Out of memory\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ckrealloc(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store ptr null, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 @fatal(ptr noundef @.str)
br label %21
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = load i64, ptr %5, align 8
%14 = call ptr @realloc(ptr noundef %12, i64 noundef %13) #3
store ptr %14, ptr %6, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %18
16: ; preds = %11
%17 = call i32 @fatal(ptr noundef @.str.1)
br label %20
18: ; preds = %11
%19 = load ptr, ptr %6, align 8
store ptr %19, ptr %3, align 8
br label %23
20: ; preds = %16
br label %21
21: ; preds = %20, %9
%22 = load ptr, ptr %6, align 8
store ptr %22, ptr %3, align 8
br label %23
23: ; preds = %21, %18
%24 = load ptr, ptr %3, align 8
ret ptr %24
}
declare i32 @fatal(ptr noundef) #1
; Function Attrs: allocsize(1)
declare ptr @realloc(ptr noundef, i64 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 = { allocsize(1) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { allocsize(1) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmp21n9v3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Bad call to ckrealloc\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"Out of memory\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ckrealloc(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store ptr null, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 @fatal(ptr noundef @.str)
br label %21
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = load i64, ptr %5, align 8
%14 = call ptr @realloc(ptr noundef %12, i64 noundef %13) #3
store ptr %14, ptr %6, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %18
16: ; preds = %11
%17 = call i32 @fatal(ptr noundef @.str.1)
br label %20
18: ; preds = %11
%19 = load ptr, ptr %6, align 8
store ptr %19, ptr %3, align 8
br label %23
20: ; preds = %16
br label %21
21: ; preds = %20, %9
%22 = load ptr, ptr %6, align 8
store ptr %22, ptr %3, align 8
br label %23
23: ; preds = %21, %18
%24 = load ptr, ptr %3, align 8
ret ptr %24
}
declare i32 @fatal(ptr noundef) #1
; Function Attrs: allocsize(1)
declare ptr @realloc(ptr noundef, i64 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 = { allocsize(1) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { allocsize(1) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6p61oja4.c'
source_filename = "/tmp/tmp6p61oja4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_XKeyboardControl(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = call i32 (...) @abort() #3
unreachable
7: ; preds = %1
%8 = load ptr, ptr %2, align 8
%9 = call i32 @free(ptr noundef %8)
ret void
}
; Function Attrs: noreturn
declare i32 @abort(...) #1
declare i32 @free(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 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-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/tmp6p61oja4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_XKeyboardControl(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = call i32 (...) @abort() #3
unreachable
7: ; preds = %1
%8 = load ptr, ptr %2, align 8
%9 = call i32 @free(ptr noundef %8)
ret void
}
; Function Attrs: noreturn
declare i32 @abort(...) #1
declare i32 @free(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 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-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/tmpv35nlk3r.c'
source_filename = "/tmp/tmpv35nlk3r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.tm = type { i32, i32, i32, i32, i32, i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @vis5d_time2ctime(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca %struct.tm, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = srem i32 %8, 60
%10 = getelementptr inbounds %struct.tm, ptr %5, i32 0, i32 0
store i32 %9, ptr %10, align 4
%11 = load i32, ptr %4, align 4
%12 = sdiv i32 %11, 60
%13 = srem i32 %12, 60
%14 = getelementptr inbounds %struct.tm, ptr %5, i32 0, i32 1
store i32 %13, ptr %14, align 4
%15 = load i32, ptr %4, align 4
%16 = sdiv i32 %15, 3600
%17 = getelementptr inbounds %struct.tm, ptr %5, i32 0, i32 2
store i32 %16, ptr %17, align 4
%18 = load i32, ptr %3, align 4
%19 = call i32 @v5dDaysToYYDDD(i32 noundef %18)
store i32 %19, ptr %6, align 4
%20 = load i32, ptr %6, align 4
%21 = sdiv i32 %20, 1000
%22 = sub nsw i32 %21, 1900
%23 = getelementptr inbounds %struct.tm, ptr %5, i32 0, i32 3
store i32 %22, ptr %23, align 4
%24 = load i32, ptr %6, align 4
%25 = load i32, ptr %6, align 4
%26 = sdiv i32 %25, 1000
%27 = mul nsw i32 1000, %26
%28 = sub nsw i32 %24, %27
store i32 %28, ptr %7, align 4
%29 = getelementptr inbounds %struct.tm, ptr %5, i32 0, i32 3
%30 = load i32, ptr %29, align 4
%31 = load i32, ptr %7, align 4
%32 = getelementptr inbounds %struct.tm, ptr %5, i32 0, i32 4
%33 = getelementptr inbounds %struct.tm, ptr %5, i32 0, i32 5
%34 = call i32 @julian2mmdd(i32 noundef %30, i32 noundef %31, ptr noundef %32, ptr noundef %33)
%35 = getelementptr inbounds %struct.tm, ptr %5, i32 0, i32 4
%36 = load i32, ptr %35, align 4
%37 = add nsw i32 %36, -1
store i32 %37, ptr %35, align 4
%38 = call i32 @mktime(ptr noundef %5)
ret i32 %38
}
declare i32 @v5dDaysToYYDDD(i32 noundef) #1
declare i32 @julian2mmdd(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @mktime(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv35nlk3r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.tm = type { i32, i32, i32, i32, i32, i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @vis5d_time2ctime(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca %struct.tm, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = srem i32 %8, 60
%10 = getelementptr inbounds %struct.tm, ptr %5, i32 0, i32 0
store i32 %9, ptr %10, align 4
%11 = load i32, ptr %4, align 4
%12 = sdiv i32 %11, 60
%13 = srem i32 %12, 60
%14 = getelementptr inbounds %struct.tm, ptr %5, i32 0, i32 1
store i32 %13, ptr %14, align 4
%15 = load i32, ptr %4, align 4
%16 = sdiv i32 %15, 3600
%17 = getelementptr inbounds %struct.tm, ptr %5, i32 0, i32 2
store i32 %16, ptr %17, align 4
%18 = load i32, ptr %3, align 4
%19 = call i32 @v5dDaysToYYDDD(i32 noundef %18)
store i32 %19, ptr %6, align 4
%20 = load i32, ptr %6, align 4
%21 = sdiv i32 %20, 1000
%22 = sub nsw i32 %21, 1900
%23 = getelementptr inbounds %struct.tm, ptr %5, i32 0, i32 3
store i32 %22, ptr %23, align 4
%24 = load i32, ptr %6, align 4
%25 = load i32, ptr %6, align 4
%26 = sdiv i32 %25, 1000
%27 = mul nsw i32 1000, %26
%28 = sub nsw i32 %24, %27
store i32 %28, ptr %7, align 4
%29 = getelementptr inbounds %struct.tm, ptr %5, i32 0, i32 3
%30 = load i32, ptr %29, align 4
%31 = load i32, ptr %7, align 4
%32 = getelementptr inbounds %struct.tm, ptr %5, i32 0, i32 4
%33 = getelementptr inbounds %struct.tm, ptr %5, i32 0, i32 5
%34 = call i32 @julian2mmdd(i32 noundef %30, i32 noundef %31, ptr noundef %32, ptr noundef %33)
%35 = getelementptr inbounds %struct.tm, ptr %5, i32 0, i32 4
%36 = load i32, ptr %35, align 4
%37 = add nsw i32 %36, -1
store i32 %37, ptr %35, align 4
%38 = call i32 @mktime(ptr noundef %5)
ret i32 %38
}
declare i32 @v5dDaysToYYDDD(i32 noundef) #1
declare i32 @julian2mmdd(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @mktime(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbyk0cm41.c'
source_filename = "/tmp/tmpbyk0cm41.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"test\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"cmd.exe\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [20 x i8], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%5 = load i32, ptr @stdin, align 4
%6 = call i32 @fgets(ptr noundef %4, i32 noundef 20, i32 noundef %5)
store i32 0, ptr %3, align 4
br label %7
7: ; preds = %31, %0
%8 = load i32, ptr %3, align 4
%9 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%10 = call i32 @strlen(ptr noundef %9)
%11 = icmp ult i32 %8, %10
br i1 %11, label %12, label %34
12: ; preds = %7
%13 = load i32, ptr %3, align 4
%14 = zext i32 %13 to i64
%15 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %14
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 13
br i1 %18, label %26, label %19
19: ; preds = %12
%20 = load i32, ptr %3, align 4
%21 = zext i32 %20 to i64
%22 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %21
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 10
br i1 %25, label %26, label %30
26: ; preds = %19, %12
%27 = load i32, ptr %3, align 4
%28 = zext i32 %27 to i64
%29 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %28
store i8 0, ptr %29, align 1
br label %30
30: ; preds = %26, %19
br label %31
31: ; preds = %30
%32 = load i32, ptr %3, align 4
%33 = add i32 %32, 1
store i32 %33, ptr %3, align 4
br label %7, !llvm.loop !6
34: ; preds = %7
%35 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%36 = call i64 @strcmp(ptr noundef %35, ptr noundef @.str)
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %40
38: ; preds = %34
%39 = call i32 @system(ptr noundef @.str.1)
br label %40
40: ; preds = %38, %34
ret i32 0
}
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbyk0cm41.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"test\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"cmd.exe\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [20 x i8], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%5 = load i32, ptr @stdin, align 4
%6 = call i32 @fgets(ptr noundef %4, i32 noundef 20, i32 noundef %5)
store i32 0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%9 = call i32 @strlen(ptr noundef %8)
%10 = icmp ult i32 %7, %9
br i1 %10, label %.lr.ph, label %36
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %30
%12 = load i32, ptr %3, align 4
%13 = zext i32 %12 to i64
%14 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %13
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 13
br i1 %17, label %25, label %18
18: ; preds = %11
%19 = load i32, ptr %3, align 4
%20 = zext i32 %19 to i64
%21 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 10
br i1 %24, label %25, label %29
25: ; preds = %18, %11
%26 = load i32, ptr %3, align 4
%27 = zext i32 %26 to i64
%28 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %27
store i8 0, ptr %28, align 1
br label %29
29: ; preds = %25, %18
br label %30
30: ; preds = %29
%31 = load i32, ptr %3, align 4
%32 = add i32 %31, 1
store i32 %32, ptr %3, align 4
%33 = load i32, ptr %3, align 4
%34 = call i32 @strlen(ptr noundef %8)
%35 = icmp ult i32 %33, %34
br i1 %35, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %36
36: ; preds = %._crit_edge, %0
%37 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%38 = call i64 @strcmp(ptr noundef %37, ptr noundef @.str)
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %42
40: ; preds = %36
%41 = call i32 @system(ptr noundef @.str.1)
br label %42
42: ; preds = %40, %36
ret i32 0
}
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp9dmi_ps5.c'
source_filename = "/tmp/tmp9dmi_ps5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"get_direction\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_direction() #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/tmp9dmi_ps5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"get_direction\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_direction() #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/tmpmu1eoc1b.c'
source_filename = "/tmp/tmpmu1eoc1b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"\0ATesting resolve_config_path\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"/bin/ls\00", align 1
@.str.2 = private unnamed_addr constant [71 x i8] c"FAIL: failed to resolve config_name on an absolute path name: /bin/ls\0A\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"../bin/ls\00", align 1
@.str.4 = private unnamed_addr constant [93 x i8] c"FAIL: failed to resolve config_name on a relative path name: ../bin/ls (relative to /bin/ls)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_resolve_config_path() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @resolve_config_path(ptr noundef @.str.1, ptr noundef null)
%3 = call i64 @strcmp(i32 noundef %2, ptr noundef @.str.1)
%4 = icmp ne i64 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %0
%6 = call i32 @printf(ptr noundef @.str.2)
%7 = call i32 @exit(i32 noundef 1) #3
unreachable
8: ; preds = %0
%9 = call i32 @resolve_config_path(ptr noundef @.str.3, ptr noundef @.str.1)
%10 = call i64 @strcmp(i32 noundef %9, ptr noundef @.str.1)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %8
%13 = call i32 @printf(ptr noundef @.str.4)
%14 = call i32 @exit(i32 noundef 1) #3
unreachable
15: ; preds = %8
ret void
}
declare i32 @printf(ptr noundef) #1
declare i64 @strcmp(i32 noundef, ptr noundef) #1
declare i32 @resolve_config_path(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/tmpmu1eoc1b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"\0ATesting resolve_config_path\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"/bin/ls\00", align 1
@.str.2 = private unnamed_addr constant [71 x i8] c"FAIL: failed to resolve config_name on an absolute path name: /bin/ls\0A\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"../bin/ls\00", align 1
@.str.4 = private unnamed_addr constant [93 x i8] c"FAIL: failed to resolve config_name on a relative path name: ../bin/ls (relative to /bin/ls)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_resolve_config_path() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @resolve_config_path(ptr noundef @.str.1, ptr noundef null)
%3 = call i64 @strcmp(i32 noundef %2, ptr noundef @.str.1)
%4 = icmp ne i64 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %0
%6 = call i32 @printf(ptr noundef @.str.2)
%7 = call i32 @exit(i32 noundef 1) #3
unreachable
8: ; preds = %0
%9 = call i32 @resolve_config_path(ptr noundef @.str.3, ptr noundef @.str.1)
%10 = call i64 @strcmp(i32 noundef %9, ptr noundef @.str.1)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %8
%13 = call i32 @printf(ptr noundef @.str.4)
%14 = call i32 @exit(i32 noundef 1) #3
unreachable
15: ; preds = %8
ret void
}
declare i32 @printf(ptr noundef) #1
declare i64 @strcmp(i32 noundef, ptr noundef) #1
declare i32 @resolve_config_path(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/tmpgz3rqb0l.c'
source_filename = "/tmp/tmpgz3rqb0l.c"
target datalayout = "e-m:e-p270: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/tmpgz3rqb0l.c"
target datalayout = "e-m:e-p270: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/tmp0il58asi.c'
source_filename = "/tmp/tmp0il58asi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [56 x i8] c"\0A\0AWARNING: Type-checked cast attempted on NULL pointer.\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"\0A\0ALocation: %s, function %s, line %lu. \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @_Tc_HashSequence_NullErrorMessage(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load i32, ptr @stderr, align 4
%8 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %7, ptr noundef @.str)
%9 = load i32, ptr @stderr, align 4
%10 = load ptr, ptr %4, align 8
%11 = load ptr, ptr %5, align 8
%12 = load i64, ptr %6, align 8
%13 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %9, ptr noundef @.str.1, ptr noundef %10, ptr noundef %11, i64 noundef %12)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0il58asi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [56 x i8] c"\0A\0AWARNING: Type-checked cast attempted on NULL pointer.\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"\0A\0ALocation: %s, function %s, line %lu. \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @_Tc_HashSequence_NullErrorMessage(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load i32, ptr @stderr, align 4
%8 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %7, ptr noundef @.str)
%9 = load i32, ptr @stderr, align 4
%10 = load ptr, ptr %4, align 8
%11 = load ptr, ptr %5, align 8
%12 = load i64, ptr %6, align 8
%13 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %9, ptr noundef @.str.1, ptr noundef %10, ptr noundef %11, i64 noundef %12)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp43ioxcjb.c'
source_filename = "/tmp/tmp43ioxcjb.c"
target datalayout = "e-m:e-p270: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/tmp43ioxcjb.c"
target datalayout = "e-m:e-p270: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_3ke_76a.c'
source_filename = "/tmp/tmp_3ke_76a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [44 x i8] c"To C, or not to C: that is the questions. \0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"Number %i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %2, align 4
br label %4
4: ; preds = %10, %0
%5 = load i32, ptr %2, align 4
%6 = icmp sle i32 %5, 5
br i1 %6, label %7, label %13
7: ; preds = %4
%8 = load i32, ptr %2, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %8)
br label %10
10: ; preds = %7
%11 = load i32, ptr %2, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %2, align 4
br label %4, !llvm.loop !6
13: ; preds = %4
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/tmp_3ke_76a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [44 x i8] c"To C, or not to C: that is the questions. \0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"Number %i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp sle i32 %4, 5
br i1 %5, label %.lr.ph, label %14
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %9
%7 = load i32, ptr %2, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, 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
%12 = load i32, ptr %2, align 4
%13 = icmp sle i32 %12, 5
br i1 %13, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %14
14: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpkv8ersnj.c'
source_filename = "/tmp/tmpkv8ersnj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [21 x i8] c"Today is %A, %B %d.\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"The time is %I:%M %p.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [256 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%5 = call i32 @time(ptr noundef null)
store i32 %5, ptr %3, align 4
%6 = call ptr @localtime(ptr noundef %3)
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = call ptr @asctime(ptr noundef %7)
%9 = load i32, ptr @stdout, align 4
%10 = call i32 @fputs(ptr noundef %8, i32 noundef %9)
%11 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%12 = load ptr, ptr %4, align 8
%13 = call i32 @strftime(ptr noundef %11, i32 noundef 256, ptr noundef @.str, ptr noundef %12)
%14 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%15 = load i32, ptr @stdout, align 4
%16 = call i32 @fputs(ptr noundef %14, i32 noundef %15)
%17 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%18 = load ptr, ptr %4, align 8
%19 = call i32 @strftime(ptr noundef %17, i32 noundef 256, ptr noundef @.str.1, ptr noundef %18)
%20 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%21 = load i32, ptr @stdout, align 4
%22 = call i32 @fputs(ptr noundef %20, i32 noundef %21)
ret i32 0
}
declare i32 @time(ptr noundef) #1
declare ptr @localtime(ptr noundef) #1
declare i32 @fputs(ptr noundef, i32 noundef) #1
declare ptr @asctime(ptr noundef) #1
declare i32 @strftime(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkv8ersnj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [21 x i8] c"Today is %A, %B %d.\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"The time is %I:%M %p.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [256 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%5 = call i32 @time(ptr noundef null)
store i32 %5, ptr %3, align 4
%6 = call ptr @localtime(ptr noundef %3)
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = call ptr @asctime(ptr noundef %7)
%9 = load i32, ptr @stdout, align 4
%10 = call i32 @fputs(ptr noundef %8, i32 noundef %9)
%11 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%12 = load ptr, ptr %4, align 8
%13 = call i32 @strftime(ptr noundef %11, i32 noundef 256, ptr noundef @.str, ptr noundef %12)
%14 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%15 = load i32, ptr @stdout, align 4
%16 = call i32 @fputs(ptr noundef %14, i32 noundef %15)
%17 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%18 = load ptr, ptr %4, align 8
%19 = call i32 @strftime(ptr noundef %17, i32 noundef 256, ptr noundef @.str.1, ptr noundef %18)
%20 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%21 = load i32, ptr @stdout, align 4
%22 = call i32 @fputs(ptr noundef %20, i32 noundef %21)
ret i32 0
}
declare i32 @time(ptr noundef) #1
declare ptr @localtime(ptr noundef) #1
declare i32 @fputs(ptr noundef, i32 noundef) #1
declare ptr @asctime(ptr noundef) #1
declare i32 @strftime(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0yr4ug8m.c'
source_filename = "/tmp/tmp0yr4ug8m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%02x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printHash(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %10, %2
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %20
10: ; preds = %6
%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 = zext i8 %15 to i32
%17 = call i32 @printf(ptr noundef @.str, i32 noundef %16)
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %5, align 4
br label %6, !llvm.loop !6
20: ; preds = %6
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0yr4ug8m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%02x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printHash(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %22
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %9
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, ptr %10, i64 %12
%14 = load i8, ptr %13, align 1
%15 = zext i8 %14 to i32
%16 = call i32 @printf(ptr noundef @.str, i32 noundef %15)
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %5, align 4
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %22
22: ; preds = %._crit_edge, %2
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp9lo5p9hx.c'
source_filename = "/tmp/tmp9lo5p9hx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"cgroup.procs\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cg_enter(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca [64 x i8], align 16
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = getelementptr inbounds [64 x i8], ptr %5, i64 0, i64 0
%7 = load i32, ptr %4, align 4
%8 = call i32 @snprintf(ptr noundef %6, i32 noundef 64, ptr noundef @.str, i32 noundef %7)
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds [64 x i8], ptr %5, i64 0, i64 0
%11 = call i32 @cg_write(ptr noundef %9, ptr noundef @.str.1, ptr noundef %10)
ret i32 %11
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @cg_write(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9lo5p9hx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"cgroup.procs\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cg_enter(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca [64 x i8], align 16
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = getelementptr inbounds [64 x i8], ptr %5, i64 0, i64 0
%7 = load i32, ptr %4, align 4
%8 = call i32 @snprintf(ptr noundef %6, i32 noundef 64, ptr noundef @.str, i32 noundef %7)
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds [64 x i8], ptr %5, i64 0, i64 0
%11 = call i32 @cg_write(ptr noundef %9, ptr noundef @.str.1, ptr noundef %10)
ret i32 %11
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @cg_write(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpse28ne_b.c'
source_filename = "/tmp/tmpse28ne_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"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [38 x i8] c"usage: rich-core-helper report_label\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [49 x i8] c"/usr/sbin/rich-core-dumper --name=%s --signal=%d\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"/bin/env\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"-i\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"/bin/bash\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"-c\00", align 1
@.str.6 = private unnamed_addr constant [34 x i8] c"Couldn't invoke rich-core-dumper\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [32 x i8] c"Invalid crash report label: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i32, align 4
%10 = alloca [128 x i8], align 16
%11 = alloca [6 x ptr], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %18
14: ; preds = %2
%15 = load i32, ptr @stderr, align 4
%16 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %15, ptr noundef @.str)
%17 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %17, ptr %3, align 4
br label %90
18: ; preds = %2
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 1
%21 = load ptr, ptr %20, align 8
store ptr %21, ptr %6, align 8
%22 = load ptr, ptr %6, align 8
%23 = call i64 @strlen(ptr noundef %22)
store i64 %23, ptr %7, align 8
%24 = load i64, ptr %7, align 8
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %18
br label %85
27: ; preds = %18
store i64 0, ptr %8, align 8
br label %28
28: ; preds = %55, %27
%29 = load i64, ptr %8, align 8
%30 = load i64, ptr %7, align 8
%31 = icmp ne i64 %29, %30
br i1 %31, label %32, label %58
32: ; preds = %28
%33 = load ptr, ptr %6, align 8
%34 = load i64, ptr %8, align 8
%35 = getelementptr inbounds i8, ptr %33, i64 %34
%36 = load i8, ptr %35, align 1
%37 = call i32 @isalnum(i8 noundef signext %36)
%38 = icmp ne i32 %37, 0
br i1 %38, label %54, label %39
39: ; preds = %32
%40 = load ptr, ptr %6, align 8
%41 = load i64, ptr %8, align 8
%42 = getelementptr inbounds i8, ptr %40, i64 %41
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %44, 95
br i1 %45, label %54, label %46
46: ; preds = %39
%47 = load ptr, ptr %6, align 8
%48 = load i64, ptr %8, align 8
%49 = getelementptr inbounds i8, ptr %47, i64 %48
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = icmp eq i32 %51, 45
br i1 %52, label %54, label %53
53: ; preds = %46
br label %85
54: ; preds = %46, %39, %32
br label %55
55: ; preds = %54
%56 = load i64, ptr %8, align 8
%57 = add i64 %56, 1
store i64 %57, ptr %8, align 8
br label %28, !llvm.loop !6
58: ; preds = %28
%59 = call i32 @time(ptr noundef null)
%60 = call i32 @srand(i32 noundef %59)
%61 = call i32 (...) @rand()
store i32 %61, ptr %9, align 4
%62 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
%63 = load ptr, ptr %6, align 8
%64 = load i32, ptr %9, align 4
%65 = call i32 @snprintf(ptr noundef %62, i32 noundef 128, ptr noundef @.str.1, ptr noundef %63, i32 noundef %64)
%66 = call i32 @setuid(i32 noundef 0)
%67 = getelementptr inbounds [6 x ptr], ptr %11, i64 0, i64 0
store ptr @.str.2, ptr %67, align 8
%68 = getelementptr inbounds ptr, ptr %67, i64 1
store ptr @.str.3, ptr %68, align 8
%69 = getelementptr inbounds ptr, ptr %68, i64 1
store ptr @.str.4, ptr %69, align 8
%70 = getelementptr inbounds ptr, ptr %69, i64 1
store ptr @.str.5, ptr %70, align 8
%71 = getelementptr inbounds ptr, ptr %70, i64 1
%72 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
store ptr %72, ptr %71, align 8
%73 = getelementptr inbounds ptr, ptr %71, i64 1
store ptr null, ptr %73, align 8
%74 = getelementptr inbounds [6 x ptr], ptr %11, i64 0, i64 0
%75 = load ptr, ptr %74, align 16
%76 = getelementptr inbounds [6 x ptr], ptr %11, i64 0, i64 0
%77 = call i64 @execvp(ptr noundef %75, ptr noundef %76)
%78 = icmp ne i64 %77, 0
br i1 %78, label %79, label %83
79: ; preds = %58
%80 = load i32, ptr @stderr, align 4
%81 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %80, ptr noundef @.str.6)
%82 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %82, ptr %3, align 4
br label %90
83: ; preds = %58
%84 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %84, ptr %3, align 4
br label %90
85: ; preds = %53, %26
%86 = load i32, ptr @stderr, align 4
%87 = load ptr, ptr %6, align 8
%88 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %86, ptr noundef @.str.7, ptr noundef %87)
%89 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %89, ptr %3, align 4
br label %90
90: ; preds = %85, %83, %79, %14
%91 = load i32, ptr %3, align 4
ret i32 %91
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @isalnum(i8 noundef signext) #1
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @rand(...) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @setuid(i32 noundef) #1
declare i64 @execvp(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/tmpse28ne_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"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [38 x i8] c"usage: rich-core-helper report_label\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [49 x i8] c"/usr/sbin/rich-core-dumper --name=%s --signal=%d\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"/bin/env\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"-i\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"/bin/bash\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"-c\00", align 1
@.str.6 = private unnamed_addr constant [34 x i8] c"Couldn't invoke rich-core-dumper\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [32 x i8] c"Invalid crash report label: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i32, align 4
%10 = alloca [128 x i8], align 16
%11 = alloca [6 x ptr], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %18
14: ; preds = %2
%15 = load i32, ptr @stderr, align 4
%16 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %15, ptr noundef @.str)
%17 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %17, ptr %3, align 4
br label %92
18: ; preds = %2
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 1
%21 = load ptr, ptr %20, align 8
store ptr %21, ptr %6, align 8
%22 = load ptr, ptr %6, align 8
%23 = call i64 @strlen(ptr noundef %22)
store i64 %23, ptr %7, align 8
%24 = load i64, ptr %7, align 8
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %18
br label %87
27: ; preds = %18
store i64 0, ptr %8, align 8
%28 = load i64, ptr %8, align 8
%29 = load i64, ptr %7, align 8
%30 = icmp ne i64 %28, %29
br i1 %30, label %.lr.ph, label %60
.lr.ph: ; preds = %27
br label %31
31: ; preds = %.lr.ph, %54
%32 = load ptr, ptr %6, align 8
%33 = load i64, ptr %8, align 8
%34 = getelementptr inbounds i8, ptr %32, i64 %33
%35 = load i8, ptr %34, align 1
%36 = call i32 @isalnum(i8 noundef signext %35)
%37 = icmp ne i32 %36, 0
br i1 %37, label %53, label %38
38: ; preds = %31
%39 = load ptr, ptr %6, align 8
%40 = load i64, ptr %8, align 8
%41 = getelementptr inbounds i8, ptr %39, i64 %40
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
%44 = icmp eq i32 %43, 95
br i1 %44, label %53, label %45
45: ; preds = %38
%46 = load ptr, ptr %6, align 8
%47 = load i64, ptr %8, align 8
%48 = getelementptr inbounds i8, ptr %46, i64 %47
%49 = load i8, ptr %48, align 1
%50 = sext i8 %49 to i32
%51 = icmp eq i32 %50, 45
br i1 %51, label %53, label %52
52: ; preds = %45
br label %87
53: ; preds = %45, %38, %31
br label %54
54: ; preds = %53
%55 = load i64, ptr %8, align 8
%56 = add i64 %55, 1
store i64 %56, ptr %8, align 8
%57 = load i64, ptr %8, align 8
%58 = load i64, ptr %7, align 8
%59 = icmp ne i64 %57, %58
br i1 %59, label %31, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %54
br label %60
60: ; preds = %._crit_edge, %27
%61 = call i32 @time(ptr noundef null)
%62 = call i32 @srand(i32 noundef %61)
%63 = call i32 (...) @rand()
store i32 %63, ptr %9, align 4
%64 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
%65 = load ptr, ptr %6, align 8
%66 = load i32, ptr %9, align 4
%67 = call i32 @snprintf(ptr noundef %64, i32 noundef 128, ptr noundef @.str.1, ptr noundef %65, i32 noundef %66)
%68 = call i32 @setuid(i32 noundef 0)
%69 = getelementptr inbounds [6 x ptr], ptr %11, i64 0, i64 0
store ptr @.str.2, ptr %69, align 8
%70 = getelementptr inbounds ptr, ptr %69, i64 1
store ptr @.str.3, ptr %70, align 8
%71 = getelementptr inbounds ptr, ptr %70, i64 1
store ptr @.str.4, ptr %71, align 8
%72 = getelementptr inbounds ptr, ptr %71, i64 1
store ptr @.str.5, ptr %72, align 8
%73 = getelementptr inbounds ptr, ptr %72, i64 1
%74 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
store ptr %74, ptr %73, align 8
%75 = getelementptr inbounds ptr, ptr %73, i64 1
store ptr null, ptr %75, align 8
%76 = getelementptr inbounds [6 x ptr], ptr %11, i64 0, i64 0
%77 = load ptr, ptr %76, align 16
%78 = getelementptr inbounds [6 x ptr], ptr %11, i64 0, i64 0
%79 = call i64 @execvp(ptr noundef %77, ptr noundef %78)
%80 = icmp ne i64 %79, 0
br i1 %80, label %81, label %85
81: ; preds = %60
%82 = load i32, ptr @stderr, align 4
%83 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %82, ptr noundef @.str.6)
%84 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %84, ptr %3, align 4
br label %92
85: ; preds = %60
%86 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %86, ptr %3, align 4
br label %92
87: ; preds = %52, %26
%88 = load i32, ptr @stderr, align 4
%89 = load ptr, ptr %6, align 8
%90 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %88, ptr noundef @.str.7, ptr noundef %89)
%91 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %91, ptr %3, align 4
br label %92
92: ; preds = %87, %85, %81, %14
%93 = load i32, ptr %3, align 4
ret i32 %93
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @isalnum(i8 noundef signext) #1
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @rand(...) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @setuid(i32 noundef) #1
declare i64 @execvp(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/tmp1db931w5.c'
source_filename = "/tmp/tmp1db931w5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @arc_core_mpu_configure_thread(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 (...) @_mpu_reset_dynamic_regions()
ret void
}
declare i32 @_mpu_reset_dynamic_regions(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1db931w5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @arc_core_mpu_configure_thread(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 (...) @_mpu_reset_dynamic_regions()
ret void
}
declare i32 @_mpu_reset_dynamic_regions(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpt0ajjycj.c'
source_filename = "/tmp/tmpt0ajjycj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.tm = type { i32, i32, i32, i32, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mktime(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 0, ptr %2, align 4
br label %60
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds %struct.tm, ptr %10, i32 0, i32 4
%12 = load i64, ptr %11, align 8
%13 = load i32, ptr %4, align 4
%14 = sext i32 %13 to i64
%15 = add nsw i64 %14, %12
%16 = trunc i64 %15 to i32
store i32 %16, ptr %4, align 4
%17 = load ptr, ptr %3, align 8
%18 = getelementptr inbounds %struct.tm, ptr %17, i32 0, i32 0
%19 = load i32, ptr %18, align 8
%20 = mul nsw i32 %19, 60
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, %20
store i32 %22, ptr %4, align 4
%23 = load ptr, ptr %3, align 8
%24 = getelementptr inbounds %struct.tm, ptr %23, i32 0, i32 1
%25 = load i32, ptr %24, align 4
%26 = mul nsw i32 %25, 60
%27 = mul nsw i32 %26, 60
%28 = load i32, ptr %4, align 4
%29 = add nsw i32 %28, %27
store i32 %29, ptr %4, align 4
%30 = load ptr, ptr %3, align 8
%31 = getelementptr inbounds %struct.tm, ptr %30, i32 0, i32 2
%32 = load i32, ptr %31, align 8
%33 = mul nsw i32 %32, 60
%34 = mul nsw i32 %33, 60
%35 = mul nsw i32 %34, 24
%36 = load i32, ptr %4, align 4
%37 = add nsw i32 %36, %35
store i32 %37, ptr %4, align 4
store i32 1970, ptr %5, align 4
br label %38
38: ; preds = %55, %9
%39 = load i32, ptr %5, align 4
%40 = load ptr, ptr %3, align 8
%41 = getelementptr inbounds %struct.tm, ptr %40, i32 0, i32 3
%42 = load i32, ptr %41, align 4
%43 = icmp slt i32 %39, %42
br i1 %43, label %44, label %58
44: ; preds = %38
%45 = load i32, ptr %5, align 4
%46 = call i64 @_isleap(i32 noundef %45)
%47 = icmp ne i64 %46, 0
%48 = zext i1 %47 to i64
%49 = select i1 %47, i32 366, i32 365
%50 = mul nsw i32 %49, 60
%51 = mul nsw i32 %50, 60
%52 = mul nsw i32 %51, 24
%53 = load i32, ptr %4, align 4
%54 = add nsw i32 %53, %52
store i32 %54, ptr %4, align 4
br label %55
55: ; preds = %44
%56 = load i32, ptr %5, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %5, align 4
br label %38, !llvm.loop !6
58: ; preds = %38
%59 = load i32, ptr %4, align 4
store i32 %59, ptr %2, align 4
br label %60
60: ; preds = %58, %8
%61 = load i32, ptr %2, align 4
ret i32 %61
}
declare i64 @_isleap(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/tmpt0ajjycj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.tm = type { i32, i32, i32, i32, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mktime(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 0, ptr %2, align 4
br label %64
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds %struct.tm, ptr %10, i32 0, i32 4
%12 = load i64, ptr %11, align 8
%13 = load i32, ptr %4, align 4
%14 = sext i32 %13 to i64
%15 = add nsw i64 %14, %12
%16 = trunc i64 %15 to i32
store i32 %16, ptr %4, align 4
%17 = load ptr, ptr %3, align 8
%18 = getelementptr inbounds %struct.tm, ptr %17, i32 0, i32 0
%19 = load i32, ptr %18, align 8
%20 = mul nsw i32 %19, 60
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, %20
store i32 %22, ptr %4, align 4
%23 = load ptr, ptr %3, align 8
%24 = getelementptr inbounds %struct.tm, ptr %23, i32 0, i32 1
%25 = load i32, ptr %24, align 4
%26 = mul nsw i32 %25, 60
%27 = mul nsw i32 %26, 60
%28 = load i32, ptr %4, align 4
%29 = add nsw i32 %28, %27
store i32 %29, ptr %4, align 4
%30 = load ptr, ptr %3, align 8
%31 = getelementptr inbounds %struct.tm, ptr %30, i32 0, i32 2
%32 = load i32, ptr %31, align 8
%33 = mul nsw i32 %32, 60
%34 = mul nsw i32 %33, 60
%35 = mul nsw i32 %34, 24
%36 = load i32, ptr %4, align 4
%37 = add nsw i32 %36, %35
store i32 %37, ptr %4, align 4
store i32 1970, ptr %5, align 4
%38 = load i32, ptr %5, align 4
%39 = load ptr, ptr %3, align 8
%40 = getelementptr inbounds %struct.tm, ptr %39, i32 0, i32 3
%41 = load i32, ptr %40, align 4
%42 = icmp slt i32 %38, %41
br i1 %42, label %.lr.ph, label %62
.lr.ph: ; preds = %9
br label %43
43: ; preds = %.lr.ph, %54
%44 = load i32, ptr %5, align 4
%45 = call i64 @_isleap(i32 noundef %44)
%46 = icmp ne i64 %45, 0
%47 = zext i1 %46 to i64
%48 = select i1 %46, i32 366, i32 365
%49 = mul nsw i32 %48, 60
%50 = mul nsw i32 %49, 60
%51 = mul nsw i32 %50, 24
%52 = load i32, ptr %4, align 4
%53 = add nsw i32 %52, %51
store i32 %53, ptr %4, align 4
br label %54
54: ; preds = %43
%55 = load i32, ptr %5, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %5, align 4
%57 = load i32, ptr %5, align 4
%58 = load ptr, ptr %3, align 8
%59 = getelementptr inbounds %struct.tm, ptr %58, i32 0, i32 3
%60 = load i32, ptr %59, align 4
%61 = icmp slt i32 %57, %60
br i1 %61, label %43, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %54
br label %62
62: ; preds = %._crit_edge, %9
%63 = load i32, ptr %4, align 4
store i32 %63, ptr %2, align 4
br label %64
64: ; preds = %62, %8
%65 = load i32, ptr %2, align 4
ret i32 %65
}
declare i64 @_isleap(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/tmpx74yzo3d.c'
source_filename = "/tmp/tmpx74yzo3d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"\0AStatistics of %s:\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"Number of simulations: %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"Parameter Estimate = %f\0A\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"Variance is %f\0A\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"95%% CI: {%f, %f}\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printStats(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
%7 = alloca double, align 8
%8 = alloca double, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%9 = load i32, ptr %4, align 4
%10 = sitofp i32 %9 to double
%11 = load i32, ptr %5, align 4
%12 = sitofp i32 %11 to double
%13 = fadd double %12, 0.000000e+00
%14 = fdiv double %10, %13
store double %14, ptr %7, align 8
%15 = load i32, ptr %4, align 4
%16 = sitofp i32 %15 to double
%17 = load double, ptr %7, align 8
%18 = fsub double 1.000000e+00, %17
%19 = fmul double %16, %18
%20 = load i32, ptr %5, align 4
%21 = sub nsw i32 %20, 1
%22 = sitofp i32 %21 to double
%23 = fdiv double %19, %22
store double %23, ptr %8, align 8
%24 = load ptr, ptr %6, align 8
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %24)
%26 = load i32, ptr %5, align 4
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %26)
%28 = load double, ptr %7, align 8
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %28)
%30 = load double, ptr %8, align 8
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %30)
%32 = load double, ptr %7, align 8
%33 = load double, ptr %8, align 8
%34 = load i32, ptr %5, align 4
%35 = sitofp i32 %34 to double
%36 = fdiv double %33, %35
%37 = call double @sqrt(double noundef %36) #4
%38 = call double @llvm.fmuladd.f64(double -1.960000e+00, double %37, double %32)
%39 = load double, ptr %7, align 8
%40 = load double, ptr %8, align 8
%41 = load i32, ptr %5, align 4
%42 = sitofp i32 %41 to double
%43 = fdiv double %40, %42
%44 = call double @sqrt(double noundef %43) #4
%45 = call double @llvm.fmuladd.f64(double 1.960000e+00, double %44, double %39)
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %38, double noundef %45)
ret void
}
declare i32 @printf(ptr noundef, ...) #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) #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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx74yzo3d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"\0AStatistics of %s:\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"Number of simulations: %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"Parameter Estimate = %f\0A\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"Variance is %f\0A\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"95%% CI: {%f, %f}\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printStats(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
%7 = alloca double, align 8
%8 = alloca double, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%9 = load i32, ptr %4, align 4
%10 = sitofp i32 %9 to double
%11 = load i32, ptr %5, align 4
%12 = sitofp i32 %11 to double
%13 = fadd double %12, 0.000000e+00
%14 = fdiv double %10, %13
store double %14, ptr %7, align 8
%15 = load i32, ptr %4, align 4
%16 = sitofp i32 %15 to double
%17 = load double, ptr %7, align 8
%18 = fsub double 1.000000e+00, %17
%19 = fmul double %16, %18
%20 = load i32, ptr %5, align 4
%21 = sub nsw i32 %20, 1
%22 = sitofp i32 %21 to double
%23 = fdiv double %19, %22
store double %23, ptr %8, align 8
%24 = load ptr, ptr %6, align 8
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %24)
%26 = load i32, ptr %5, align 4
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %26)
%28 = load double, ptr %7, align 8
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %28)
%30 = load double, ptr %8, align 8
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %30)
%32 = load double, ptr %7, align 8
%33 = load double, ptr %8, align 8
%34 = load i32, ptr %5, align 4
%35 = sitofp i32 %34 to double
%36 = fdiv double %33, %35
%37 = call double @sqrt(double noundef %36) #4
%38 = call double @llvm.fmuladd.f64(double -1.960000e+00, double %37, double %32)
%39 = load double, ptr %7, align 8
%40 = load double, ptr %8, align 8
%41 = load i32, ptr %5, align 4
%42 = sitofp i32 %41 to double
%43 = fdiv double %40, %42
%44 = call double @sqrt(double noundef %43) #4
%45 = call double @llvm.fmuladd.f64(double 1.960000e+00, double %44, double %39)
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %38, double noundef %45)
ret void
}
declare i32 @printf(ptr noundef, ...) #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) #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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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"}
|
; ModuleID = '/tmp/tmpo40mm29w.c'
source_filename = "/tmp/tmpo40mm29w.c"
target datalayout = "e-m:e-p270: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/tmpo40mm29w.c"
target datalayout = "e-m:e-p270: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/tmprp7nonrl.c'
source_filename = "/tmp/tmprp7nonrl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Send\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sendChat(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @strlen(ptr noundef %6)
store i32 %7, ptr %5, align 4
%8 = load i32, ptr %3, align 4
%9 = load ptr, ptr %4, align 8
%10 = load i32, ptr %5, align 4
%11 = call i32 @send(i32 noundef %8, ptr noundef %9, i32 noundef %10, i32 noundef 0)
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %16
13: ; preds = %2
%14 = call i32 @perror(ptr noundef @.str)
%15 = call i32 @exit(i32 noundef 0) #3
unreachable
16: ; preds = %2
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 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/tmprp7nonrl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Send\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sendChat(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @strlen(ptr noundef %6)
store i32 %7, ptr %5, align 4
%8 = load i32, ptr %3, align 4
%9 = load ptr, ptr %4, align 8
%10 = load i32, ptr %5, align 4
%11 = call i32 @send(i32 noundef %8, ptr noundef %9, i32 noundef %10, i32 noundef 0)
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %16
13: ; preds = %2
%14 = call i32 @perror(ptr noundef @.str)
%15 = call i32 @exit(i32 noundef 0) #3
unreachable
16: ; preds = %2
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 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/tmpsqzmsdfz.c'
source_filename = "/tmp/tmpsqzmsdfz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wps_pin_valid(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = udiv i32 %3, 10
%5 = call i32 @wps_pin_checksum(i32 noundef %4)
%6 = load i32, ptr %2, align 4
%7 = urem i32 %6, 10
%8 = icmp eq i32 %5, %7
%9 = zext i1 %8 to i32
ret i32 %9
}
declare i32 @wps_pin_checksum(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/tmpsqzmsdfz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wps_pin_valid(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = udiv i32 %3, 10
%5 = call i32 @wps_pin_checksum(i32 noundef %4)
%6 = load i32, ptr %2, align 4
%7 = urem i32 %6, 10
%8 = icmp eq i32 %5, %7
%9 = zext i1 %8 to i32
ret i32 %9
}
declare i32 @wps_pin_checksum(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/tmpa3msj896.c'
source_filename = "/tmp/tmpa3msj896.c"
target datalayout = "e-m:e-p270: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/tmpa3msj896.c"
target datalayout = "e-m:e-p270: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/tmp5yprwdy5.c'
source_filename = "/tmp/tmp5yprwdy5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @uart_disable() #0 {
%1 = call i32 @write_to_address(i32 noundef 1059065904, i32 noundef 0)
ret void
}
declare i32 @write_to_address(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/tmp5yprwdy5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @uart_disable() #0 {
%1 = call i32 @write_to_address(i32 noundef 1059065904, i32 noundef 0)
ret void
}
declare i32 @write_to_address(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/tmpcup3el9e.c'
source_filename = "/tmp/tmpcup3el9e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [467 x i8] c"Controller.o is a program to generate trajectory for a 2wheel\0Arobot. It is licensed with GNU GPL 2.\0A---------------------\0ATo pass arguements to the application you can use these options:\0A-s : passes the start coordinates, default values are set with (0,0,90).\0A-e : passes the destiation coordinates. must be set.\0A-h : show you this help.\0AExample:\0Acontroller.o -s 0,0,90 -e 1,1,-90\0Awill give you the trajectory from 0,0,looking upward (x,y) to 1,1 looking downward.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_help() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcup3el9e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [467 x i8] c"Controller.o is a program to generate trajectory for a 2wheel\0Arobot. It is licensed with GNU GPL 2.\0A---------------------\0ATo pass arguements to the application you can use these options:\0A-s : passes the start coordinates, default values are set with (0,0,90).\0A-e : passes the destiation coordinates. must be set.\0A-h : show you this help.\0AExample:\0Acontroller.o -s 0,0,90 -e 1,1,-90\0Awill give you the trajectory from 0,0,looking upward (x,y) to 1,1 looking downward.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_help() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_ee3h_bx.c'
source_filename = "/tmp/tmp_ee3h_bx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 (...) @getpid()
%2 = call i32 @printf(ptr noundef @.str, i32 noundef %1)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @getpid(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!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_ee3h_bx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 (...) @getpid()
%2 = call i32 @printf(ptr noundef @.str, i32 noundef %1)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @getpid(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpp_50b3rl.c'
source_filename = "/tmp/tmpp_50b3rl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"square grains total \00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"fraction of \0A\00", align 1
@.str.2 = private unnamed_addr constant [37 x i8] c" added grains \00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"world total\0A\00", align 1
@.str.4 = private unnamed_addr constant [26 x i8] c"%6d %13.2e %12.2e %12.2e\0A\00", align 1
@.str.5 = private unnamed_addr constant [13 x i8] c"That's all.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store double 2.000000e+16, ptr %2, align 8
store i32 1, ptr %5, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store double 1.000000e+00, ptr %3, align 8
store double 1.000000e+00, ptr %4, align 8
%10 = load i32, ptr %5, align 4
%11 = load double, ptr %3, align 8
%12 = load double, ptr %4, align 8
%13 = load double, ptr %4, align 8
%14 = fdiv double %13, 2.000000e+16
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %10, double noundef %11, double noundef %12, double noundef %14)
br label %16
16: ; preds = %19, %0
%17 = load i32, ptr %5, align 4
%18 = icmp slt i32 %17, 64
br i1 %18, label %19, label %33
19: ; preds = %16
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %5, align 4
%22 = load double, ptr %3, align 8
%23 = fmul double 2.000000e+00, %22
store double %23, ptr %3, align 8
%24 = load double, ptr %4, align 8
%25 = load double, ptr %3, align 8
%26 = fadd double %24, %25
store double %26, ptr %4, align 8
%27 = load i32, ptr %5, align 4
%28 = load double, ptr %3, align 8
%29 = load double, ptr %4, align 8
%30 = load double, ptr %4, align 8
%31 = fdiv double %30, 2.000000e+16
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %27, double noundef %28, double noundef %29, double noundef %31)
br label %16, !llvm.loop !6
33: ; preds = %16
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
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/tmpp_50b3rl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"square grains total \00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"fraction of \0A\00", align 1
@.str.2 = private unnamed_addr constant [37 x i8] c" added grains \00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"world total\0A\00", align 1
@.str.4 = private unnamed_addr constant [26 x i8] c"%6d %13.2e %12.2e %12.2e\0A\00", align 1
@.str.5 = private unnamed_addr constant [13 x i8] c"That's all.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store double 2.000000e+16, ptr %2, align 8
store i32 1, ptr %5, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store double 1.000000e+00, ptr %3, align 8
store double 1.000000e+00, ptr %4, align 8
%10 = load i32, ptr %5, align 4
%11 = load double, ptr %3, align 8
%12 = load double, ptr %4, align 8
%13 = load double, ptr %4, align 8
%14 = fdiv double %13, 2.000000e+16
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %10, double noundef %11, double noundef %12, double noundef %14)
%16 = load i32, ptr %5, align 4
%17 = icmp slt i32 %16, 64
br i1 %17, label %.lr.ph, label %34
.lr.ph: ; preds = %0
br label %18
18: ; preds = %.lr.ph, %18
%19 = load i32, ptr %5, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %5, align 4
%21 = load double, ptr %3, align 8
%22 = fmul double 2.000000e+00, %21
store double %22, ptr %3, align 8
%23 = load double, ptr %4, align 8
%24 = load double, ptr %3, align 8
%25 = fadd double %23, %24
store double %25, ptr %4, align 8
%26 = load i32, ptr %5, align 4
%27 = load double, ptr %3, align 8
%28 = load double, ptr %4, align 8
%29 = load double, ptr %4, align 8
%30 = fdiv double %29, 2.000000e+16
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %26, double noundef %27, double noundef %28, double noundef %30)
%32 = load i32, ptr %5, align 4
%33 = icmp slt i32 %32, 64
br i1 %33, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %34
34: ; preds = %._crit_edge, %0
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
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/tmp06lsca7h.c'
source_filename = "/tmp/tmp06lsca7h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AF_INET = dso_local global i32 0, align 4
@EXIT_FAILURE = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp06lsca7h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AF_INET = dso_local global i32 0, align 4
@EXIT_FAILURE = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7d14dv3r.c'
source_filename = "/tmp/tmp7d14dv3r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"usage: xor FILE1 FILE2\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"--same-size\00", align 1
@.str.2 = private unnamed_addr constant [72 x i8] c"Too many files. Please recompile with a faster number of files maximum\0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c"File %d not found: %s\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [29 x i8] c"files were not the same size\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 [10 x ptr], align 16
%7 = alloca [1024 x i8], align 16
%8 = alloca [1024 x i8], 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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %13, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp sle i32 %16, 1
br i1 %17, label %18, label %20
18: ; preds = %2
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 2, ptr %3, align 4
br label %176
20: ; preds = %2
%21 = load i32, ptr %4, align 4
%22 = sub nsw i32 %21, 1
store i32 %22, ptr %11, align 4
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 1
%25 = load ptr, ptr %24, align 8
%26 = call i64 @strcmp(ptr noundef @.str.1, ptr noundef %25)
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %31
28: ; preds = %20
%29 = load i32, ptr %11, align 4
%30 = sub nsw i32 %29, 1
store i32 %30, ptr %11, align 4
store i32 1, ptr %13, align 4
br label %31
31: ; preds = %28, %20
%32 = load i32, ptr %11, align 4
%33 = icmp slt i32 %32, 2
br i1 %33, label %34, label %36
34: ; preds = %31
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 2, ptr %3, align 4
br label %176
36: ; preds = %31
%37 = load i32, ptr %11, align 4
%38 = icmp sgt i32 %37, 10
br i1 %38, label %39, label %41
39: ; preds = %36
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 2, ptr %3, align 4
br label %176
41: ; preds = %36
br label %42
42: ; preds = %41
store i32 0, ptr %14, align 4
br label %43
43: ; preds = %73, %42
%44 = load i32, ptr %14, align 4
%45 = load i32, ptr %11, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %47, label %76
47: ; preds = %43
%48 = load ptr, ptr %5, align 8
%49 = load i32, ptr %14, align 4
%50 = add nsw i32 %49, 1
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds ptr, ptr %48, i64 %51
%53 = load ptr, ptr %52, align 8
%54 = call ptr @fopen(ptr noundef %53, ptr noundef @.str.3)
%55 = load i32, ptr %14, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [10 x ptr], ptr %6, i64 0, i64 %56
store ptr %54, ptr %57, align 8
%58 = load i32, ptr %14, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [10 x ptr], ptr %6, i64 0, i64 %59
%61 = load ptr, ptr %60, align 8
%62 = icmp eq ptr %61, null
br i1 %62, label %63, label %72
63: ; preds = %47
%64 = load i32, ptr %14, align 4
%65 = load ptr, ptr %5, align 8
%66 = load i32, ptr %14, align 4
%67 = add nsw i32 %66, 1
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds ptr, ptr %65, i64 %68
%70 = load ptr, ptr %69, align 8
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %64, ptr noundef %70)
store i32 1, ptr %3, align 4
br label %176
72: ; preds = %47
br label %73
73: ; preds = %72
%74 = load i32, ptr %14, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %14, align 4
br label %43, !llvm.loop !6
76: ; preds = %43
br label %77
77: ; preds = %76, %157
store i32 0, ptr %12, align 4
store i32 0, ptr %14, align 4
br label %78
78: ; preds = %93, %77
%79 = load i32, ptr %14, align 4
%80 = load i32, ptr %11, align 4
%81 = icmp slt i32 %79, %80
br i1 %81, label %82, label %96
82: ; preds = %78
%83 = load i32, ptr %14, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [10 x ptr], ptr %6, i64 0, i64 %84
%86 = load ptr, ptr %85, align 8
%87 = call i64 @feof(ptr noundef %86)
%88 = icmp ne i64 %87, 0
br i1 %88, label %89, label %92
89: ; preds = %82
%90 = load i32, ptr %12, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %12, align 4
br label %92
92: ; preds = %89, %82
br label %93
93: ; preds = %92
%94 = load i32, ptr %14, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %14, align 4
br label %78, !llvm.loop !8
96: ; preds = %78
%97 = load i32, ptr %11, align 4
%98 = load i32, ptr %12, align 4
%99 = icmp eq i32 %97, %98
br i1 %99, label %100, label %101
100: ; preds = %96
br label %161
101: ; preds = %96
%102 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%103 = call i32 @memset(ptr noundef %102, i32 noundef 0, i32 noundef 1024)
store i32 -1, ptr %10, align 4
store i32 0, ptr %14, align 4
br label %104
104: ; preds = %154, %101
%105 = load i32, ptr %14, align 4
%106 = load i32, ptr %11, align 4
%107 = icmp slt i32 %105, %106
br i1 %107, label %108, label %157
108: ; preds = %104
%109 = load i32, ptr %14, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [10 x ptr], ptr %6, i64 0, i64 %110
%112 = load ptr, ptr %111, align 8
%113 = call i32 @fread(ptr noundef %7, i32 noundef 1, i32 noundef 1024, ptr noundef %112)
store i32 %113, ptr %9, align 4
store i32 0, ptr %15, align 4
br label %114
114: ; preds = %131, %108
%115 = load i32, ptr %15, align 4
%116 = load i32, ptr %9, align 4
%117 = icmp slt i32 %115, %116
br i1 %117, label %118, label %134
118: ; preds = %114
%119 = load i32, ptr %15, align 4
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 %120
%122 = load i8, ptr %121, align 1
%123 = sext i8 %122 to i32
%124 = load i32, ptr %15, align 4
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 %125
%127 = load i8, ptr %126, align 1
%128 = sext i8 %127 to i32
%129 = xor i32 %128, %123
%130 = trunc i32 %129 to i8
store i8 %130, ptr %126, align 1
br label %131
131: ; preds = %118
%132 = load i32, ptr %15, align 4
%133 = add nsw i32 %132, 1
store i32 %133, ptr %15, align 4
br label %114, !llvm.loop !9
134: ; preds = %114
%135 = load i32, ptr %13, align 4
%136 = icmp ne i32 %135, 0
br i1 %136, label %137, label %147
137: ; preds = %134
%138 = load i32, ptr %10, align 4
%139 = icmp sge i32 %138, 0
br i1 %139, label %140, label %147
140: ; preds = %137
%141 = load i32, ptr %10, align 4
%142 = load i32, ptr %9, align 4
%143 = icmp ne i32 %141, %142
br i1 %143, label %144, label %147
144: ; preds = %140
%145 = load i32, ptr @stderr, align 4
%146 = call i32 @fprintf(i32 noundef %145, ptr noundef @.str.5)
store i32 3, ptr %3, align 4
br label %176
147: ; preds = %140, %137, %134
%148 = load i32, ptr %9, align 4
%149 = load i32, ptr %10, align 4
%150 = icmp sgt i32 %148, %149
br i1 %150, label %151, label %153
151: ; preds = %147
%152 = load i32, ptr %9, align 4
store i32 %152, ptr %10, align 4
br label %153
153: ; preds = %151, %147
br label %154
154: ; preds = %153
%155 = load i32, ptr %14, align 4
%156 = add nsw i32 %155, 1
store i32 %156, ptr %14, align 4
br label %104, !llvm.loop !10
157: ; preds = %104
%158 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%159 = load i32, ptr %10, align 4
%160 = call i32 @write(i32 noundef 1, ptr noundef %158, i32 noundef %159)
br label %77
161: ; preds = %100
store i32 0, ptr %14, align 4
br label %162
162: ; preds = %172, %161
%163 = load i32, ptr %14, align 4
%164 = load i32, ptr %11, align 4
%165 = icmp slt i32 %163, %164
br i1 %165, label %166, label %175
166: ; preds = %162
%167 = load i32, ptr %14, align 4
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds [10 x ptr], ptr %6, i64 0, i64 %168
%170 = load ptr, ptr %169, align 8
%171 = call i32 @fclose(ptr noundef %170)
br label %172
172: ; preds = %166
%173 = load i32, ptr %14, align 4
%174 = add nsw i32 %173, 1
store i32 %174, ptr %14, align 4
br label %162, !llvm.loop !11
175: ; preds = %162
store i32 0, ptr %3, align 4
br label %176
176: ; preds = %175, %144, %63, %39, %34, %18
%177 = load i32, ptr %3, align 4
ret i32 %177
}
declare i32 @printf(ptr noundef, ...) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @feof(ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7d14dv3r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"usage: xor FILE1 FILE2\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"--same-size\00", align 1
@.str.2 = private unnamed_addr constant [72 x i8] c"Too many files. Please recompile with a faster number of files maximum\0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c"File %d not found: %s\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [29 x i8] c"files were not the same size\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 [10 x ptr], align 16
%7 = alloca [1024 x i8], align 16
%8 = alloca [1024 x i8], 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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %13, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp sle i32 %16, 1
br i1 %17, label %18, label %20
18: ; preds = %2
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 2, ptr %3, align 4
br label %186
20: ; preds = %2
%21 = load i32, ptr %4, align 4
%22 = sub nsw i32 %21, 1
store i32 %22, ptr %11, align 4
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 1
%25 = load ptr, ptr %24, align 8
%26 = call i64 @strcmp(ptr noundef @.str.1, ptr noundef %25)
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %31
28: ; preds = %20
%29 = load i32, ptr %11, align 4
%30 = sub nsw i32 %29, 1
store i32 %30, ptr %11, align 4
store i32 1, ptr %13, align 4
br label %31
31: ; preds = %28, %20
%32 = load i32, ptr %11, align 4
%33 = icmp slt i32 %32, 2
br i1 %33, label %34, label %36
34: ; preds = %31
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 2, ptr %3, align 4
br label %186
36: ; preds = %31
%37 = load i32, ptr %11, align 4
%38 = icmp sgt i32 %37, 10
br i1 %38, label %39, label %41
39: ; preds = %36
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 2, ptr %3, align 4
br label %186
41: ; preds = %36
br label %42
42: ; preds = %41
store i32 0, ptr %14, align 4
%43 = load i32, ptr %14, align 4
%44 = load i32, ptr %11, align 4
%45 = icmp slt i32 %43, %44
br i1 %45, label %.lr.ph, label %78
.lr.ph: ; preds = %42
br label %46
46: ; preds = %.lr.ph, %72
%47 = load ptr, ptr %5, align 8
%48 = load i32, ptr %14, align 4
%49 = add nsw i32 %48, 1
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds ptr, ptr %47, i64 %50
%52 = load ptr, ptr %51, align 8
%53 = call ptr @fopen(ptr noundef %52, ptr noundef @.str.3)
%54 = load i32, ptr %14, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [10 x ptr], ptr %6, i64 0, i64 %55
store ptr %53, ptr %56, align 8
%57 = load i32, ptr %14, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [10 x ptr], ptr %6, i64 0, i64 %58
%60 = load ptr, ptr %59, align 8
%61 = icmp eq ptr %60, null
br i1 %61, label %62, label %71
62: ; preds = %46
%63 = load i32, ptr %14, align 4
%64 = load ptr, ptr %5, align 8
%65 = load i32, ptr %14, align 4
%66 = add nsw i32 %65, 1
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds ptr, ptr %64, i64 %67
%69 = load ptr, ptr %68, align 8
%70 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %63, ptr noundef %69)
store i32 1, ptr %3, align 4
br label %186
71: ; preds = %46
br label %72
72: ; preds = %71
%73 = load i32, ptr %14, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %14, align 4
%75 = load i32, ptr %14, align 4
%76 = load i32, ptr %11, align 4
%77 = icmp slt i32 %75, %76
br i1 %77, label %46, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %72
br label %78
78: ; preds = %._crit_edge, %42
br label %79
79: ; preds = %165, %78
store i32 0, ptr %12, align 4
store i32 0, ptr %14, align 4
%80 = load i32, ptr %14, align 4
%81 = load i32, ptr %11, align 4
%82 = icmp slt i32 %80, %81
br i1 %82, label %.lr.ph2, label %100
.lr.ph2: ; preds = %79
br label %83
83: ; preds = %.lr.ph2, %94
%84 = load i32, ptr %14, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [10 x ptr], ptr %6, i64 0, i64 %85
%87 = load ptr, ptr %86, align 8
%88 = call i64 @feof(ptr noundef %87)
%89 = icmp ne i64 %88, 0
br i1 %89, label %90, label %93
90: ; preds = %83
%91 = load i32, ptr %12, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr %12, align 4
br label %93
93: ; preds = %90, %83
br label %94
94: ; preds = %93
%95 = load i32, ptr %14, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %14, align 4
%97 = load i32, ptr %14, align 4
%98 = load i32, ptr %11, align 4
%99 = icmp slt i32 %97, %98
br i1 %99, label %83, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %94
br label %100
100: ; preds = %._crit_edge3, %79
%101 = load i32, ptr %11, align 4
%102 = load i32, ptr %12, align 4
%103 = icmp eq i32 %101, %102
br i1 %103, label %104, label %105
104: ; preds = %100
br label %169
105: ; preds = %100
%106 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%107 = call i32 @memset(ptr noundef %106, i32 noundef 0, i32 noundef 1024)
store i32 -1, ptr %10, align 4
store i32 0, ptr %14, align 4
%108 = load i32, ptr %14, align 4
%109 = load i32, ptr %11, align 4
%110 = icmp slt i32 %108, %109
br i1 %110, label %.lr.ph8, label %165
.lr.ph8: ; preds = %105
br label %111
111: ; preds = %.lr.ph8, %159
%112 = load i32, ptr %14, align 4
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds [10 x ptr], ptr %6, i64 0, i64 %113
%115 = load ptr, ptr %114, align 8
%116 = call i32 @fread(ptr noundef %7, i32 noundef 1, i32 noundef 1024, ptr noundef %115)
store i32 %116, ptr %9, align 4
store i32 0, ptr %15, align 4
%117 = load i32, ptr %15, align 4
%118 = load i32, ptr %9, align 4
%119 = icmp slt i32 %117, %118
br i1 %119, label %.lr.ph5, label %139
.lr.ph5: ; preds = %111
br label %120
120: ; preds = %.lr.ph5, %133
%121 = load i32, ptr %15, align 4
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 %122
%124 = load i8, ptr %123, align 1
%125 = sext i8 %124 to i32
%126 = load i32, ptr %15, align 4
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 %127
%129 = load i8, ptr %128, align 1
%130 = sext i8 %129 to i32
%131 = xor i32 %130, %125
%132 = trunc i32 %131 to i8
store i8 %132, ptr %128, align 1
br label %133
133: ; preds = %120
%134 = load i32, ptr %15, align 4
%135 = add nsw i32 %134, 1
store i32 %135, ptr %15, align 4
%136 = load i32, ptr %15, align 4
%137 = load i32, ptr %9, align 4
%138 = icmp slt i32 %136, %137
br i1 %138, label %120, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %133
br label %139
139: ; preds = %._crit_edge6, %111
%140 = load i32, ptr %13, align 4
%141 = icmp ne i32 %140, 0
br i1 %141, label %142, label %152
142: ; preds = %139
%143 = load i32, ptr %10, align 4
%144 = icmp sge i32 %143, 0
br i1 %144, label %145, label %152
145: ; preds = %142
%146 = load i32, ptr %10, align 4
%147 = load i32, ptr %9, align 4
%148 = icmp ne i32 %146, %147
br i1 %148, label %149, label %152
149: ; preds = %145
%150 = load i32, ptr @stderr, align 4
%151 = call i32 @fprintf(i32 noundef %150, ptr noundef @.str.5)
store i32 3, ptr %3, align 4
br label %186
152: ; preds = %145, %142, %139
%153 = load i32, ptr %9, align 4
%154 = load i32, ptr %10, align 4
%155 = icmp sgt i32 %153, %154
br i1 %155, label %156, label %158
156: ; preds = %152
%157 = load i32, ptr %9, align 4
store i32 %157, ptr %10, align 4
br label %158
158: ; preds = %156, %152
br label %159
159: ; preds = %158
%160 = load i32, ptr %14, align 4
%161 = add nsw i32 %160, 1
store i32 %161, ptr %14, align 4
%162 = load i32, ptr %14, align 4
%163 = load i32, ptr %11, align 4
%164 = icmp slt i32 %162, %163
br i1 %164, label %111, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %159
br label %165
165: ; preds = %._crit_edge9, %105
%166 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%167 = load i32, ptr %10, align 4
%168 = call i32 @write(i32 noundef 1, ptr noundef %166, i32 noundef %167)
br label %79
169: ; preds = %104
store i32 0, ptr %14, align 4
%170 = load i32, ptr %14, align 4
%171 = load i32, ptr %11, align 4
%172 = icmp slt i32 %170, %171
br i1 %172, label %.lr.ph11, label %185
.lr.ph11: ; preds = %169
br label %173
173: ; preds = %.lr.ph11, %179
%174 = load i32, ptr %14, align 4
%175 = sext i32 %174 to i64
%176 = getelementptr inbounds [10 x ptr], ptr %6, i64 0, i64 %175
%177 = load ptr, ptr %176, align 8
%178 = call i32 @fclose(ptr noundef %177)
br label %179
179: ; preds = %173
%180 = load i32, ptr %14, align 4
%181 = add nsw i32 %180, 1
store i32 %181, ptr %14, align 4
%182 = load i32, ptr %14, align 4
%183 = load i32, ptr %11, align 4
%184 = icmp slt i32 %182, %183
br i1 %184, label %173, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %179
br label %185
185: ; preds = %._crit_edge12, %169
store i32 0, ptr %3, align 4
br label %186
186: ; preds = %185, %149, %62, %39, %34, %18
%187 = load i32, ptr %3, align 4
ret i32 %187
}
declare i32 @printf(ptr noundef, ...) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @feof(ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmpx5sgetu0.c'
source_filename = "/tmp/tmpx5sgetu0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sceKernelAllocCodeMemBlock(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 = call i32 @uvl_alloc_code_mem(ptr noundef %4)
%6 = call i32 @sceKernelFindMemBlockByAddr(i32 noundef %5, i32 noundef 0)
ret i32 %6
}
declare i32 @sceKernelFindMemBlockByAddr(i32 noundef, i32 noundef) #1
declare i32 @uvl_alloc_code_mem(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx5sgetu0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sceKernelAllocCodeMemBlock(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 = call i32 @uvl_alloc_code_mem(ptr noundef %4)
%6 = call i32 @sceKernelFindMemBlockByAddr(i32 noundef %5, i32 noundef 0)
ret i32 %6
}
declare i32 @sceKernelFindMemBlockByAddr(i32 noundef, i32 noundef) #1
declare i32 @uvl_alloc_code_mem(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv1hrnws9.c'
source_filename = "/tmp/tmpv1hrnws9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ResetISR() #0 {
%1 = load volatile i32, ptr inttoptr (i64 3758157192 to ptr), align 4
%2 = and i32 %1, -15728641
%3 = or i32 %2, 3145728
%4 = or i32 %3, 12582912
store volatile i32 %4, ptr inttoptr (i64 3758157192 to ptr), align 4
%5 = call i32 (...) @__iar_program_start()
ret void
}
declare i32 @__iar_program_start(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv1hrnws9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ResetISR() #0 {
%1 = load volatile i32, ptr inttoptr (i64 3758157192 to ptr), align 4
%2 = and i32 %1, -15728641
%3 = or i32 %2, 3145728
%4 = or i32 %3, 12582912
store volatile i32 %4, ptr inttoptr (i64 3758157192 to ptr), align 4
%5 = call i32 (...) @__iar_program_start()
ret void
}
declare i32 @__iar_program_start(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwlv74jtw.c'
source_filename = "/tmp/tmpwlv74jtw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rt_sendto(i32 noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
store i32 %0, ptr %7, align 4
store ptr %1, ptr %8, align 8
store i64 %2, ptr %9, align 8
store i32 %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
%13 = load i32, ptr %7, align 4
%14 = load ptr, ptr %8, align 8
%15 = load i64, ptr %9, align 8
%16 = load i32, ptr %10, align 4
%17 = load ptr, ptr %11, align 8
%18 = load i32, ptr %12, align 4
%19 = call i32 @sendto(i32 noundef %13, ptr noundef %14, i64 noundef %15, i32 noundef %16, ptr noundef %17, i32 noundef %18)
ret i32 %19
}
declare i32 @sendto(i32 noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwlv74jtw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rt_sendto(i32 noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
store i32 %0, ptr %7, align 4
store ptr %1, ptr %8, align 8
store i64 %2, ptr %9, align 8
store i32 %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
%13 = load i32, ptr %7, align 4
%14 = load ptr, ptr %8, align 8
%15 = load i64, ptr %9, align 8
%16 = load i32, ptr %10, align 4
%17 = load ptr, ptr %11, align 8
%18 = load i32, ptr %12, align 4
%19 = call i32 @sendto(i32 noundef %13, ptr noundef %14, i64 noundef %15, i32 noundef %16, ptr noundef %17, i32 noundef %18)
ret i32 %19
}
declare i32 @sendto(i32 noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbbkc3lua.c'
source_filename = "/tmp/tmpbbkc3lua.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"Err = %d (%s), Pos = %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"buffer[% 3d] = \22%s\22\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Dump(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = icmp slt i32 %5, 0
br i1 %6, label %7, label %17
7: ; preds = %2
%8 = load i32, ptr %4, align 4
%9 = sub nsw i32 0, %8
%10 = and i32 %9, 255
%11 = load i32, ptr %4, align 4
%12 = call ptr @trio_strerror(i32 noundef %11)
%13 = load i32, ptr %4, align 4
%14 = sub nsw i32 0, %13
%15 = ashr i32 %14, 8
%16 = call i32 (ptr, i32, ptr, ...) @printf(ptr noundef @.str, i32 noundef %10, ptr noundef %12, i32 noundef %15)
br label %21
17: ; preds = %2
%18 = load i32, ptr %4, align 4
%19 = load ptr, ptr %3, align 8
%20 = call i32 (ptr, i32, ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %18, ptr noundef %19)
br label %21
21: ; preds = %17, %7
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, ptr noundef, ...) #1
declare ptr @trio_strerror(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/tmpbbkc3lua.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"Err = %d (%s), Pos = %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"buffer[% 3d] = \22%s\22\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Dump(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = icmp slt i32 %5, 0
br i1 %6, label %7, label %17
7: ; preds = %2
%8 = load i32, ptr %4, align 4
%9 = sub nsw i32 0, %8
%10 = and i32 %9, 255
%11 = load i32, ptr %4, align 4
%12 = call ptr @trio_strerror(i32 noundef %11)
%13 = load i32, ptr %4, align 4
%14 = sub nsw i32 0, %13
%15 = ashr i32 %14, 8
%16 = call i32 (ptr, i32, ptr, ...) @printf(ptr noundef @.str, i32 noundef %10, ptr noundef %12, i32 noundef %15)
br label %21
17: ; preds = %2
%18 = load i32, ptr %4, align 4
%19 = load ptr, ptr %3, align 8
%20 = call i32 (ptr, i32, ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %18, ptr noundef %19)
br label %21
21: ; preds = %17, %7
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, ptr noundef, ...) #1
declare ptr @trio_strerror(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/tmpx2fm8v05.c'
source_filename = "/tmp/tmpx2fm8v05.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @argv_append(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @argv_length(ptr noundef %6)
%8 = add nsw i32 %7, 1
store i32 %8, ptr %5, align 4
%9 = load ptr, ptr %3, align 8
%10 = load i32, ptr %5, align 4
%11 = add nsw i32 %10, 1
%12 = sext i32 %11 to i64
%13 = mul i64 8, %12
%14 = trunc i64 %13 to i32
%15 = call i64 @xrealloc(ptr noundef %9, i32 noundef %14)
%16 = inttoptr i64 %15 to ptr
store ptr %16, ptr %3, align 8
%17 = load ptr, ptr %4, align 8
%18 = call ptr @xstrdup(ptr noundef %17)
%19 = load ptr, ptr %3, align 8
%20 = load i32, ptr %5, align 4
%21 = sub nsw i32 %20, 1
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds ptr, ptr %19, i64 %22
store ptr %18, ptr %23, align 8
%24 = load ptr, ptr %3, align 8
%25 = load i32, ptr %5, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %24, i64 %26
store ptr null, ptr %27, align 8
%28 = load ptr, ptr %3, align 8
ret ptr %28
}
declare i32 @argv_length(ptr noundef) #1
declare i64 @xrealloc(ptr noundef, i32 noundef) #1
declare ptr @xstrdup(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx2fm8v05.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @argv_append(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @argv_length(ptr noundef %6)
%8 = add nsw i32 %7, 1
store i32 %8, ptr %5, align 4
%9 = load ptr, ptr %3, align 8
%10 = load i32, ptr %5, align 4
%11 = add nsw i32 %10, 1
%12 = sext i32 %11 to i64
%13 = mul i64 8, %12
%14 = trunc i64 %13 to i32
%15 = call i64 @xrealloc(ptr noundef %9, i32 noundef %14)
%16 = inttoptr i64 %15 to ptr
store ptr %16, ptr %3, align 8
%17 = load ptr, ptr %4, align 8
%18 = call ptr @xstrdup(ptr noundef %17)
%19 = load ptr, ptr %3, align 8
%20 = load i32, ptr %5, align 4
%21 = sub nsw i32 %20, 1
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds ptr, ptr %19, i64 %22
store ptr %18, ptr %23, align 8
%24 = load ptr, ptr %3, align 8
%25 = load i32, ptr %5, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %24, i64 %26
store ptr null, ptr %27, align 8
%28 = load ptr, ptr %3, align 8
ret ptr %28
}
declare i32 @argv_length(ptr noundef) #1
declare i64 @xrealloc(ptr noundef, i32 noundef) #1
declare ptr @xstrdup(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcshi7fp1.c'
source_filename = "/tmp/tmpcshi7fp1.c"
target datalayout = "e-m:e-p270: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/tmpcshi7fp1.c"
target datalayout = "e-m:e-p270: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/tmp8t71stjm.c'
source_filename = "/tmp/tmp8t71stjm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wBasRename() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = call ptr (...) @wPopString()
store ptr %3, ptr %2, align 8
%4 = call ptr (...) @wPopString()
store ptr %4, ptr %1, align 8
%5 = load ptr, ptr %1, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 @rename(ptr noundef %5, ptr noundef %6)
%8 = load ptr, ptr %1, align 8
%9 = call i32 @wFree(ptr noundef %8)
%10 = load ptr, ptr %2, align 8
%11 = call i32 @wFree(ptr noundef %10)
%12 = call i32 @wPushNumber(i32 noundef 0)
ret void
}
declare ptr @wPopString(...) #1
declare i32 @rename(ptr noundef, ptr noundef) #1
declare i32 @wFree(ptr noundef) #1
declare i32 @wPushNumber(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/tmp8t71stjm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wBasRename() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = call ptr (...) @wPopString()
store ptr %3, ptr %2, align 8
%4 = call ptr (...) @wPopString()
store ptr %4, ptr %1, align 8
%5 = load ptr, ptr %1, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 @rename(ptr noundef %5, ptr noundef %6)
%8 = load ptr, ptr %1, align 8
%9 = call i32 @wFree(ptr noundef %8)
%10 = load ptr, ptr %2, align 8
%11 = call i32 @wFree(ptr noundef %10)
%12 = call i32 @wPushNumber(i32 noundef 0)
ret void
}
declare ptr @wPopString(...) #1
declare i32 @rename(ptr noundef, ptr noundef) #1
declare i32 @wFree(ptr noundef) #1
declare i32 @wPushNumber(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/tmp9_lbu64b.c'
source_filename = "/tmp/tmp9_lbu64b.c"
target datalayout = "e-m:e-p270: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.date = private unnamed_addr constant [13 x i32] [i32 0, i32 31, i32 28, i32 31, i32 30, i32 31, i32 30, i32 31, i32 31, i32 30, i32 31, i32 30, i32 31], align 16
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%d%d%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 i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca [13 x i32], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 @__const.main.date, i64 52, i1 false)
%13 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
store i32 0, ptr %6, align 4
br label %14
14: ; preds = %62, %0
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %65
18: ; preds = %14
store i32 0, ptr %11, align 4
%19 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%20 = load i32, ptr %3, align 4
%21 = call i32 @leapyear(i32 noundef %20)
store i32 %21, ptr %10, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp eq i32 %22, 1
br i1 %23, label %27, label %24
24: ; preds = %18
%25 = load i32, ptr %4, align 4
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %24, %18
%28 = load i32, ptr %5, align 4
%29 = call i32 @printf(ptr noundef @.str.2, i32 noundef %28)
br label %61
30: ; preds = %24
%31 = load i32, ptr %4, align 4
%32 = icmp eq i32 %31, 2
br i1 %32, label %33, label %37
33: ; preds = %30
%34 = load i32, ptr %5, align 4
%35 = add nsw i32 31, %34
%36 = call i32 @printf(ptr noundef @.str.2, i32 noundef %35)
br label %60
37: ; preds = %30
store i32 1, ptr %7, align 4
br label %38
38: ; preds = %49, %37
%39 = load i32, ptr %7, align 4
%40 = load i32, ptr %4, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %42, label %52
42: ; preds = %38
%43 = load i32, ptr %11, align 4
%44 = load i32, ptr %7, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [13 x i32], ptr %12, i64 0, i64 %45
%47 = load i32, ptr %46, align 4
%48 = add nsw i32 %43, %47
store i32 %48, ptr %11, align 4
br label %49
49: ; preds = %42
%50 = load i32, ptr %7, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %7, align 4
br label %38, !llvm.loop !6
52: ; preds = %38
%53 = load i32, ptr %11, align 4
%54 = load i32, ptr %5, align 4
%55 = add nsw i32 %53, %54
%56 = load i32, ptr %10, align 4
%57 = add nsw i32 %55, %56
store i32 %57, ptr %11, align 4
%58 = load i32, ptr %11, align 4
%59 = call i32 @printf(ptr noundef @.str.2, i32 noundef %58)
br label %60
60: ; preds = %52, %33
br label %61
61: ; preds = %60, %27
br label %62
62: ; preds = %61
%63 = load i32, ptr %6, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %6, align 4
br label %14, !llvm.loop !8
65: ; preds = %14
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 @scanf(ptr noundef, ptr noundef, ...) #2
declare i32 @leapyear(i32 noundef) #2
declare i32 @printf(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9_lbu64b.c"
target datalayout = "e-m:e-p270: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.date = private unnamed_addr constant [13 x i32] [i32 0, i32 31, i32 28, i32 31, i32 30, i32 31, i32 30, i32 31, i32 31, i32 30, i32 31, i32 30, i32 31], align 16
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%d%d%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 i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca [13 x i32], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 @__const.main.date, i64 52, i1 false)
%13 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
store i32 0, ptr %6, align 4
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %2, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %.lr.ph2, label %69
.lr.ph2: ; preds = %0
br label %17
17: ; preds = %.lr.ph2, %63
store i32 0, ptr %11, align 4
%18 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%19 = load i32, ptr %3, align 4
%20 = call i32 @leapyear(i32 noundef %19)
store i32 %20, ptr %10, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp eq i32 %21, 1
br i1 %22, label %26, label %23
23: ; preds = %17
%24 = load i32, ptr %4, align 4
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %23, %17
%27 = load i32, ptr %5, align 4
%28 = call i32 @printf(ptr noundef @.str.2, i32 noundef %27)
br label %62
29: ; preds = %23
%30 = load i32, ptr %4, align 4
%31 = icmp eq i32 %30, 2
br i1 %31, label %32, label %36
32: ; preds = %29
%33 = load i32, ptr %5, align 4
%34 = add nsw i32 31, %33
%35 = call i32 @printf(ptr noundef @.str.2, i32 noundef %34)
br label %61
36: ; preds = %29
store i32 1, ptr %7, align 4
%37 = load i32, ptr %7, align 4
%38 = load i32, ptr %4, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %.lr.ph, label %53
.lr.ph: ; preds = %36
br label %40
40: ; preds = %.lr.ph, %47
%41 = load i32, ptr %11, align 4
%42 = load i32, ptr %7, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [13 x i32], ptr %12, i64 0, i64 %43
%45 = load i32, ptr %44, align 4
%46 = add nsw i32 %41, %45
store i32 %46, ptr %11, align 4
br label %47
47: ; preds = %40
%48 = load i32, ptr %7, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %7, align 4
%50 = load i32, ptr %7, align 4
%51 = load i32, ptr %4, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %40, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %47
br label %53
53: ; preds = %._crit_edge, %36
%54 = load i32, ptr %11, align 4
%55 = load i32, ptr %5, align 4
%56 = add nsw i32 %54, %55
%57 = load i32, ptr %10, align 4
%58 = add nsw i32 %56, %57
store i32 %58, ptr %11, align 4
%59 = load i32, ptr %11, align 4
%60 = call i32 @printf(ptr noundef @.str.2, i32 noundef %59)
br label %61
61: ; preds = %53, %32
br label %62
62: ; preds = %61, %26
br label %63
63: ; preds = %62
%64 = load i32, ptr %6, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %6, align 4
%66 = load i32, ptr %6, align 4
%67 = load i32, ptr %2, align 4
%68 = icmp slt i32 %66, %67
br i1 %68, label %17, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %63
br label %69
69: ; preds = %._crit_edge3, %0
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 @scanf(ptr noundef, ptr noundef, ...) #2
declare i32 @leapyear(i32 noundef) #2
declare i32 @printf(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp4g8gu0x1.c'
source_filename = "/tmp/tmp4g8gu0x1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @insertSubString(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i64 %3, ptr %9, align 8
store i64 %4, ptr %10, align 8
%12 = load ptr, ptr %6, align 8
%13 = load ptr, ptr %7, align 8
%14 = load i64, ptr %13, align 8
%15 = load i64, ptr %9, align 8
%16 = add i64 %14, %15
%17 = add i64 %16, 1
%18 = mul i64 1, %17
%19 = trunc i64 %18 to i32
%20 = call ptr @realloc(ptr noundef %12, i32 noundef %19)
store ptr %20, ptr %11, align 8
%21 = load ptr, ptr %11, align 8
%22 = icmp ne ptr %21, null
br i1 %22, label %23, label %48
23: ; preds = %5
%24 = load ptr, ptr %11, align 8
store ptr %24, ptr %6, align 8
%25 = load ptr, ptr %6, align 8
%26 = load i64, ptr %10, align 8
%27 = getelementptr inbounds i8, ptr %25, i64 %26
%28 = load i64, ptr %9, align 8
%29 = getelementptr inbounds i8, ptr %27, i64 %28
%30 = load ptr, ptr %6, align 8
%31 = load i64, ptr %10, align 8
%32 = getelementptr inbounds i8, ptr %30, i64 %31
%33 = load ptr, ptr %7, align 8
%34 = load i64, ptr %33, align 8
%35 = load i64, ptr %10, align 8
%36 = sub i64 %34, %35
%37 = call i32 @memmove(ptr noundef %29, ptr noundef %32, i64 noundef %36)
%38 = load ptr, ptr %6, align 8
%39 = load i64, ptr %10, align 8
%40 = getelementptr inbounds i8, ptr %38, i64 %39
%41 = load ptr, ptr %8, align 8
%42 = load i64, ptr %9, align 8
%43 = call i32 @memcpy(ptr noundef %40, ptr noundef %41, i64 noundef %42)
%44 = load i64, ptr %9, align 8
%45 = load ptr, ptr %7, align 8
%46 = load i64, ptr %45, align 8
%47 = add i64 %46, %44
store i64 %47, ptr %45, align 8
br label %48
48: ; preds = %23, %5
%49 = load ptr, ptr %6, align 8
ret ptr %49
}
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i32 @memmove(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4g8gu0x1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @insertSubString(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, i64 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i64 %3, ptr %9, align 8
store i64 %4, ptr %10, align 8
%12 = load ptr, ptr %6, align 8
%13 = load ptr, ptr %7, align 8
%14 = load i64, ptr %13, align 8
%15 = load i64, ptr %9, align 8
%16 = add i64 %14, %15
%17 = add i64 %16, 1
%18 = mul i64 1, %17
%19 = trunc i64 %18 to i32
%20 = call ptr @realloc(ptr noundef %12, i32 noundef %19)
store ptr %20, ptr %11, align 8
%21 = load ptr, ptr %11, align 8
%22 = icmp ne ptr %21, null
br i1 %22, label %23, label %48
23: ; preds = %5
%24 = load ptr, ptr %11, align 8
store ptr %24, ptr %6, align 8
%25 = load ptr, ptr %6, align 8
%26 = load i64, ptr %10, align 8
%27 = getelementptr inbounds i8, ptr %25, i64 %26
%28 = load i64, ptr %9, align 8
%29 = getelementptr inbounds i8, ptr %27, i64 %28
%30 = load ptr, ptr %6, align 8
%31 = load i64, ptr %10, align 8
%32 = getelementptr inbounds i8, ptr %30, i64 %31
%33 = load ptr, ptr %7, align 8
%34 = load i64, ptr %33, align 8
%35 = load i64, ptr %10, align 8
%36 = sub i64 %34, %35
%37 = call i32 @memmove(ptr noundef %29, ptr noundef %32, i64 noundef %36)
%38 = load ptr, ptr %6, align 8
%39 = load i64, ptr %10, align 8
%40 = getelementptr inbounds i8, ptr %38, i64 %39
%41 = load ptr, ptr %8, align 8
%42 = load i64, ptr %9, align 8
%43 = call i32 @memcpy(ptr noundef %40, ptr noundef %41, i64 noundef %42)
%44 = load i64, ptr %9, align 8
%45 = load ptr, ptr %7, align 8
%46 = load i64, ptr %45, align 8
%47 = add i64 %46, %44
store i64 %47, ptr %45, align 8
br label %48
48: ; preds = %23, %5
%49 = load ptr, ptr %6, align 8
ret ptr %49
}
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i32 @memmove(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3xnht255.c'
source_filename = "/tmp/tmp3xnht255.c"
target datalayout = "e-m:e-p270: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/tmp3xnht255.c"
target datalayout = "e-m:e-p270: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/tmpckgnj27x.c'
source_filename = "/tmp/tmpckgnj27x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mg_vprintf(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [100 x i8], align 16
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%10 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 0
store ptr %10, ptr %8, align 8
%11 = load ptr, ptr %5, align 8
%12 = load i32, ptr %6, align 4
%13 = call i32 @mg_avprintf(ptr noundef %8, i32 noundef 100, ptr noundef %11, i32 noundef %12)
store i32 %13, ptr %9, align 4
%14 = icmp sgt i32 %13, 0
br i1 %14, label %15, label %20
15: ; preds = %3
%16 = load ptr, ptr %4, align 8
%17 = load ptr, ptr %8, align 8
%18 = load i32, ptr %9, align 4
%19 = call i32 @mg_out(ptr noundef %16, ptr noundef %17, i32 noundef %18)
br label %20
20: ; preds = %15, %3
%21 = load ptr, ptr %8, align 8
%22 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 0
%23 = icmp ne ptr %21, %22
br i1 %23, label %24, label %30
24: ; preds = %20
%25 = load ptr, ptr %8, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %27, label %30
27: ; preds = %24
%28 = load ptr, ptr %8, align 8
%29 = call i32 @free(ptr noundef %28)
br label %30
30: ; preds = %27, %24, %20
%31 = load i32, ptr %9, align 4
ret i32 %31
}
declare i32 @mg_avprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @mg_out(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpckgnj27x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mg_vprintf(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [100 x i8], align 16
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%10 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 0
store ptr %10, ptr %8, align 8
%11 = load ptr, ptr %5, align 8
%12 = load i32, ptr %6, align 4
%13 = call i32 @mg_avprintf(ptr noundef %8, i32 noundef 100, ptr noundef %11, i32 noundef %12)
store i32 %13, ptr %9, align 4
%14 = icmp sgt i32 %13, 0
br i1 %14, label %15, label %20
15: ; preds = %3
%16 = load ptr, ptr %4, align 8
%17 = load ptr, ptr %8, align 8
%18 = load i32, ptr %9, align 4
%19 = call i32 @mg_out(ptr noundef %16, ptr noundef %17, i32 noundef %18)
br label %20
20: ; preds = %15, %3
%21 = load ptr, ptr %8, align 8
%22 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 0
%23 = icmp ne ptr %21, %22
br i1 %23, label %24, label %30
24: ; preds = %20
%25 = load ptr, ptr %8, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %27, label %30
27: ; preds = %24
%28 = load ptr, ptr %8, align 8
%29 = call i32 @free(ptr noundef %28)
br label %30
30: ; preds = %27, %24, %20
%31 = load i32, ptr %9, align 4
ret i32 %31
}
declare i32 @mg_avprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @mg_out(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwndw0ble.c'
source_filename = "/tmp/tmpwndw0ble.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"Invoking library function from mylib library\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @printf(ptr noundef @.str)
%7 = call i32 (...) @f1()
%8 = call i32 (...) @f2()
%9 = call i32 (...) @f3()
%10 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
declare i32 @f1(...) #1
declare i32 @f2(...) #1
declare i32 @f3(...) #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/tmpwndw0ble.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"Invoking library function from mylib library\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @printf(ptr noundef @.str)
%7 = call i32 (...) @f1()
%8 = call i32 (...) @f2()
%9 = call i32 (...) @f3()
%10 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
declare i32 @f1(...) #1
declare i32 @f2(...) #1
declare i32 @f3(...) #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/tmpdnj0aoap.c'
source_filename = "/tmp/tmpdnj0aoap.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_option_router(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca [500 x i32], align 16
%5 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%6 = load ptr, ptr %2, align 8
%7 = getelementptr inbounds [500 x i32], ptr %4, i64 0, i64 0
%8 = call i64 @get_dhcp_opt(ptr noundef %6, i32 noundef 3, ptr noundef %7, i32 noundef 2000)
store i64 %8, ptr %5, align 8
%9 = load i64, ptr %5, align 8
%10 = icmp eq i64 %9, 4
br i1 %10, label %11, label %14
11: ; preds = %1
%12 = getelementptr inbounds [500 x i32], ptr %4, i64 0, i64 0
%13 = call i32 @memcpy(ptr noundef %3, ptr noundef %12, i32 noundef 4)
br label %14
14: ; preds = %11, %1
%15 = load i32, ptr %3, align 4
ret i32 %15
}
declare i64 @get_dhcp_opt(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdnj0aoap.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_option_router(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca [500 x i32], align 16
%5 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%6 = load ptr, ptr %2, align 8
%7 = getelementptr inbounds [500 x i32], ptr %4, i64 0, i64 0
%8 = call i64 @get_dhcp_opt(ptr noundef %6, i32 noundef 3, ptr noundef %7, i32 noundef 2000)
store i64 %8, ptr %5, align 8
%9 = load i64, ptr %5, align 8
%10 = icmp eq i64 %9, 4
br i1 %10, label %11, label %14
11: ; preds = %1
%12 = getelementptr inbounds [500 x i32], ptr %4, i64 0, i64 0
%13 = call i32 @memcpy(ptr noundef %3, ptr noundef %12, i32 noundef 4)
br label %14
14: ; preds = %11, %1
%15 = load i32, ptr %3, align 4
ret i32 %15
}
declare i64 @get_dhcp_opt(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpoyko0dg7.c'
source_filename = "/tmp/tmpoyko0dg7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGABRT = dso_local global i64 0, align 8
@SIGALRM = dso_local global i64 0, align 8
@SIGBUS = dso_local global i64 0, align 8
@SIGCHLD = dso_local global i64 0, align 8
@SIGCONT = dso_local global i64 0, align 8
@SIGFPE = dso_local global i64 0, align 8
@SIGHUP = dso_local global i64 0, align 8
@SIGILL = dso_local global i64 0, align 8
@SIGINT = dso_local global i64 0, align 8
@SIGKILL = dso_local global i64 0, align 8
@SIGPIPE = dso_local global i64 0, align 8
@SIGQUIT = dso_local global i64 0, align 8
@SIGSEGV = dso_local global i64 0, align 8
@SIGSTOP = dso_local global i64 0, align 8
@SIGTERM = dso_local global i64 0, align 8
@SIGTSTP = dso_local global i64 0, align 8
@SIGTTIN = dso_local global i64 0, align 8
@SIGTTOU = dso_local global i64 0, align 8
@SIGUSR1 = dso_local global i64 0, align 8
@SIGUSR2 = dso_local global i64 0, align 8
@SIGPOLL = dso_local global i64 0, align 8
@SIGPROF = dso_local global i64 0, align 8
@SIGSYS = dso_local global i64 0, align 8
@SIGTRAP = dso_local global i64 0, align 8
@SIGURG = dso_local global i64 0, align 8
@SIGVTALRM = dso_local global i64 0, align 8
@SIGXCPU = dso_local global i64 0, align 8
@SIGXFSZ = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [13 x i8] c"Test FAILED\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"Test PASSED\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = load i64, ptr @SIGABRT, align 8
%3 = icmp eq i64 0, %2
br i1 %3, label %85, label %4
4: ; preds = %0
%5 = load i64, ptr @SIGALRM, align 8
%6 = icmp eq i64 0, %5
br i1 %6, label %85, label %7
7: ; preds = %4
%8 = load i64, ptr @SIGBUS, align 8
%9 = icmp eq i64 0, %8
br i1 %9, label %85, label %10
10: ; preds = %7
%11 = load i64, ptr @SIGCHLD, align 8
%12 = icmp eq i64 0, %11
br i1 %12, label %85, label %13
13: ; preds = %10
%14 = load i64, ptr @SIGCONT, align 8
%15 = icmp eq i64 0, %14
br i1 %15, label %85, label %16
16: ; preds = %13
%17 = load i64, ptr @SIGFPE, align 8
%18 = icmp eq i64 0, %17
br i1 %18, label %85, label %19
19: ; preds = %16
%20 = load i64, ptr @SIGHUP, align 8
%21 = icmp eq i64 0, %20
br i1 %21, label %85, label %22
22: ; preds = %19
%23 = load i64, ptr @SIGILL, align 8
%24 = icmp eq i64 0, %23
br i1 %24, label %85, label %25
25: ; preds = %22
%26 = load i64, ptr @SIGINT, align 8
%27 = icmp eq i64 0, %26
br i1 %27, label %85, label %28
28: ; preds = %25
%29 = load i64, ptr @SIGKILL, align 8
%30 = icmp eq i64 0, %29
br i1 %30, label %85, label %31
31: ; preds = %28
%32 = load i64, ptr @SIGPIPE, align 8
%33 = icmp eq i64 0, %32
br i1 %33, label %85, label %34
34: ; preds = %31
%35 = load i64, ptr @SIGQUIT, align 8
%36 = icmp eq i64 0, %35
br i1 %36, label %85, label %37
37: ; preds = %34
%38 = load i64, ptr @SIGSEGV, align 8
%39 = icmp eq i64 0, %38
br i1 %39, label %85, label %40
40: ; preds = %37
%41 = load i64, ptr @SIGSTOP, align 8
%42 = icmp eq i64 0, %41
br i1 %42, label %85, label %43
43: ; preds = %40
%44 = load i64, ptr @SIGTERM, align 8
%45 = icmp eq i64 0, %44
br i1 %45, label %85, label %46
46: ; preds = %43
%47 = load i64, ptr @SIGTSTP, align 8
%48 = icmp eq i64 0, %47
br i1 %48, label %85, label %49
49: ; preds = %46
%50 = load i64, ptr @SIGTTIN, align 8
%51 = icmp eq i64 0, %50
br i1 %51, label %85, label %52
52: ; preds = %49
%53 = load i64, ptr @SIGTTOU, align 8
%54 = icmp eq i64 0, %53
br i1 %54, label %85, label %55
55: ; preds = %52
%56 = load i64, ptr @SIGUSR1, align 8
%57 = icmp eq i64 0, %56
br i1 %57, label %85, label %58
58: ; preds = %55
%59 = load i64, ptr @SIGUSR2, align 8
%60 = icmp eq i64 0, %59
br i1 %60, label %85, label %61
61: ; preds = %58
%62 = load i64, ptr @SIGPOLL, align 8
%63 = icmp eq i64 0, %62
br i1 %63, label %85, label %64
64: ; preds = %61
%65 = load i64, ptr @SIGPROF, align 8
%66 = icmp eq i64 0, %65
br i1 %66, label %85, label %67
67: ; preds = %64
%68 = load i64, ptr @SIGSYS, align 8
%69 = icmp eq i64 0, %68
br i1 %69, label %85, label %70
70: ; preds = %67
%71 = load i64, ptr @SIGTRAP, align 8
%72 = icmp eq i64 0, %71
br i1 %72, label %85, label %73
73: ; preds = %70
%74 = load i64, ptr @SIGURG, align 8
%75 = icmp eq i64 0, %74
br i1 %75, label %85, label %76
76: ; preds = %73
%77 = load i64, ptr @SIGVTALRM, align 8
%78 = icmp eq i64 0, %77
br i1 %78, label %85, label %79
79: ; preds = %76
%80 = load i64, ptr @SIGXCPU, align 8
%81 = icmp eq i64 0, %80
br i1 %81, label %85, label %82
82: ; preds = %79
%83 = load i64, ptr @SIGXFSZ, align 8
%84 = icmp eq i64 0, %83
br i1 %84, label %85, label %87
85: ; preds = %82, %79, %76, %73, %70, %67, %64, %61, %58, %55, %52, %49, %46, %43, %40, %37, %34, %31, %28, %25, %22, %19, %16, %13, %10, %7, %4, %0
%86 = call i32 @printf(ptr noundef @.str)
store i32 -1, ptr %1, align 4
br label %89
87: ; preds = %82
%88 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
br label %89
89: ; preds = %87, %85
%90 = load i32, ptr %1, align 4
ret i32 %90
}
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/tmpoyko0dg7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGABRT = dso_local global i64 0, align 8
@SIGALRM = dso_local global i64 0, align 8
@SIGBUS = dso_local global i64 0, align 8
@SIGCHLD = dso_local global i64 0, align 8
@SIGCONT = dso_local global i64 0, align 8
@SIGFPE = dso_local global i64 0, align 8
@SIGHUP = dso_local global i64 0, align 8
@SIGILL = dso_local global i64 0, align 8
@SIGINT = dso_local global i64 0, align 8
@SIGKILL = dso_local global i64 0, align 8
@SIGPIPE = dso_local global i64 0, align 8
@SIGQUIT = dso_local global i64 0, align 8
@SIGSEGV = dso_local global i64 0, align 8
@SIGSTOP = dso_local global i64 0, align 8
@SIGTERM = dso_local global i64 0, align 8
@SIGTSTP = dso_local global i64 0, align 8
@SIGTTIN = dso_local global i64 0, align 8
@SIGTTOU = dso_local global i64 0, align 8
@SIGUSR1 = dso_local global i64 0, align 8
@SIGUSR2 = dso_local global i64 0, align 8
@SIGPOLL = dso_local global i64 0, align 8
@SIGPROF = dso_local global i64 0, align 8
@SIGSYS = dso_local global i64 0, align 8
@SIGTRAP = dso_local global i64 0, align 8
@SIGURG = dso_local global i64 0, align 8
@SIGVTALRM = dso_local global i64 0, align 8
@SIGXCPU = dso_local global i64 0, align 8
@SIGXFSZ = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [13 x i8] c"Test FAILED\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"Test PASSED\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = load i64, ptr @SIGABRT, align 8
%3 = icmp eq i64 0, %2
br i1 %3, label %85, label %4
4: ; preds = %0
%5 = load i64, ptr @SIGALRM, align 8
%6 = icmp eq i64 0, %5
br i1 %6, label %85, label %7
7: ; preds = %4
%8 = load i64, ptr @SIGBUS, align 8
%9 = icmp eq i64 0, %8
br i1 %9, label %85, label %10
10: ; preds = %7
%11 = load i64, ptr @SIGCHLD, align 8
%12 = icmp eq i64 0, %11
br i1 %12, label %85, label %13
13: ; preds = %10
%14 = load i64, ptr @SIGCONT, align 8
%15 = icmp eq i64 0, %14
br i1 %15, label %85, label %16
16: ; preds = %13
%17 = load i64, ptr @SIGFPE, align 8
%18 = icmp eq i64 0, %17
br i1 %18, label %85, label %19
19: ; preds = %16
%20 = load i64, ptr @SIGHUP, align 8
%21 = icmp eq i64 0, %20
br i1 %21, label %85, label %22
22: ; preds = %19
%23 = load i64, ptr @SIGILL, align 8
%24 = icmp eq i64 0, %23
br i1 %24, label %85, label %25
25: ; preds = %22
%26 = load i64, ptr @SIGINT, align 8
%27 = icmp eq i64 0, %26
br i1 %27, label %85, label %28
28: ; preds = %25
%29 = load i64, ptr @SIGKILL, align 8
%30 = icmp eq i64 0, %29
br i1 %30, label %85, label %31
31: ; preds = %28
%32 = load i64, ptr @SIGPIPE, align 8
%33 = icmp eq i64 0, %32
br i1 %33, label %85, label %34
34: ; preds = %31
%35 = load i64, ptr @SIGQUIT, align 8
%36 = icmp eq i64 0, %35
br i1 %36, label %85, label %37
37: ; preds = %34
%38 = load i64, ptr @SIGSEGV, align 8
%39 = icmp eq i64 0, %38
br i1 %39, label %85, label %40
40: ; preds = %37
%41 = load i64, ptr @SIGSTOP, align 8
%42 = icmp eq i64 0, %41
br i1 %42, label %85, label %43
43: ; preds = %40
%44 = load i64, ptr @SIGTERM, align 8
%45 = icmp eq i64 0, %44
br i1 %45, label %85, label %46
46: ; preds = %43
%47 = load i64, ptr @SIGTSTP, align 8
%48 = icmp eq i64 0, %47
br i1 %48, label %85, label %49
49: ; preds = %46
%50 = load i64, ptr @SIGTTIN, align 8
%51 = icmp eq i64 0, %50
br i1 %51, label %85, label %52
52: ; preds = %49
%53 = load i64, ptr @SIGTTOU, align 8
%54 = icmp eq i64 0, %53
br i1 %54, label %85, label %55
55: ; preds = %52
%56 = load i64, ptr @SIGUSR1, align 8
%57 = icmp eq i64 0, %56
br i1 %57, label %85, label %58
58: ; preds = %55
%59 = load i64, ptr @SIGUSR2, align 8
%60 = icmp eq i64 0, %59
br i1 %60, label %85, label %61
61: ; preds = %58
%62 = load i64, ptr @SIGPOLL, align 8
%63 = icmp eq i64 0, %62
br i1 %63, label %85, label %64
64: ; preds = %61
%65 = load i64, ptr @SIGPROF, align 8
%66 = icmp eq i64 0, %65
br i1 %66, label %85, label %67
67: ; preds = %64
%68 = load i64, ptr @SIGSYS, align 8
%69 = icmp eq i64 0, %68
br i1 %69, label %85, label %70
70: ; preds = %67
%71 = load i64, ptr @SIGTRAP, align 8
%72 = icmp eq i64 0, %71
br i1 %72, label %85, label %73
73: ; preds = %70
%74 = load i64, ptr @SIGURG, align 8
%75 = icmp eq i64 0, %74
br i1 %75, label %85, label %76
76: ; preds = %73
%77 = load i64, ptr @SIGVTALRM, align 8
%78 = icmp eq i64 0, %77
br i1 %78, label %85, label %79
79: ; preds = %76
%80 = load i64, ptr @SIGXCPU, align 8
%81 = icmp eq i64 0, %80
br i1 %81, label %85, label %82
82: ; preds = %79
%83 = load i64, ptr @SIGXFSZ, align 8
%84 = icmp eq i64 0, %83
br i1 %84, label %85, label %87
85: ; preds = %82, %79, %76, %73, %70, %67, %64, %61, %58, %55, %52, %49, %46, %43, %40, %37, %34, %31, %28, %25, %22, %19, %16, %13, %10, %7, %4, %0
%86 = call i32 @printf(ptr noundef @.str)
store i32 -1, ptr %1, align 4
br label %89
87: ; preds = %82
%88 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
br label %89
89: ; preds = %87, %85
%90 = load i32, ptr %1, align 4
ret i32 %90
}
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/tmpxyo4dcw9.c'
source_filename = "/tmp/tmpxyo4dcw9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s:%d in %s: %.10g != %.10g\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mu_assert_eq_float_epsilon_impl(ptr noundef %0, i32 noundef %1, ptr noundef %2, float noundef %3, float noundef %4, float noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca float, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store float %3, ptr %10, align 4
store float %4, ptr %11, align 4
store float %5, ptr %12, align 4
%13 = load float, ptr %10, align 4
%14 = load float, ptr %11, align 4
%15 = fsub float %13, %14
%16 = call float @llvm.fabs.f32(float %15)
%17 = load float, ptr %12, align 4
%18 = fcmp ogt float %16, %17
br i1 %18, label %19, label %27
19: ; preds = %6
%20 = load ptr, ptr %7, align 8
%21 = load i32, ptr %8, align 4
%22 = load ptr, ptr %9, align 8
%23 = load float, ptr %10, align 4
%24 = load float, ptr %11, align 4
%25 = call i32 @printf(ptr noundef @.str, ptr noundef %20, i32 noundef %21, ptr noundef %22, float noundef %23, float noundef %24)
%26 = call i32 (...) @abort() #4
unreachable
27: ; preds = %6
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #1
declare i32 @printf(ptr noundef, ptr noundef, i32 noundef, ptr noundef, float noundef, float noundef) #2
; Function Attrs: noreturn
declare i32 @abort(...) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxyo4dcw9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s:%d in %s: %.10g != %.10g\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mu_assert_eq_float_epsilon_impl(ptr noundef %0, i32 noundef %1, ptr noundef %2, float noundef %3, float noundef %4, float noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca float, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store float %3, ptr %10, align 4
store float %4, ptr %11, align 4
store float %5, ptr %12, align 4
%13 = load float, ptr %10, align 4
%14 = load float, ptr %11, align 4
%15 = fsub float %13, %14
%16 = call float @llvm.fabs.f32(float %15)
%17 = load float, ptr %12, align 4
%18 = fcmp ogt float %16, %17
br i1 %18, label %19, label %27
19: ; preds = %6
%20 = load ptr, ptr %7, align 8
%21 = load i32, ptr %8, align 4
%22 = load ptr, ptr %9, align 8
%23 = load float, ptr %10, align 4
%24 = load float, ptr %11, align 4
%25 = call i32 @printf(ptr noundef @.str, ptr noundef %20, i32 noundef %21, ptr noundef %22, float noundef %23, float noundef %24)
%26 = call i32 (...) @abort() #4
unreachable
27: ; preds = %6
ret void
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #1
declare i32 @printf(ptr noundef, ptr noundef, i32 noundef, ptr noundef, float noundef, float noundef) #2
; Function Attrs: noreturn
declare i32 @abort(...) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpym13lop5.c'
source_filename = "/tmp/tmpym13lop5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ICANON = dso_local global i32 0, align 4
@STDIN_FILENO = dso_local global i32 0, align 4
@TCSANOW = dso_local global i32 0, align 4
@VMIN = 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/tmpym13lop5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ICANON = dso_local global i32 0, align 4
@STDIN_FILENO = dso_local global i32 0, align 4
@TCSANOW = dso_local global i32 0, align 4
@VMIN = 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/tmp5ybjj6gs.c'
source_filename = "/tmp/tmp5ybjj6gs.c"
target datalayout = "e-m:e-p270: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/tmp5ybjj6gs.c"
target datalayout = "e-m:e-p270: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/tmpl0ehn4ia.c'
source_filename = "/tmp/tmpl0ehn4ia.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @putpacket(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
%4 = alloca i32, align 4
%5 = alloca i8, align 1
store ptr %0, ptr %2, align 8
br label %6
6: ; preds = %43, %1
%7 = call i32 @outbyte(i8 noundef signext 36)
store i8 0, ptr %3, align 1
store i32 0, ptr %4, align 4
br label %8
8: ; preds = %20, %6
%9 = load ptr, ptr %2, align 8
%10 = load i32, ptr %4, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, ptr %9, i64 %11
%13 = load i8, ptr %12, align 1
store i8 %13, ptr %5, align 1
%14 = icmp ne i8 %13, 0
br i1 %14, label %15, label %29
15: ; preds = %8
%16 = load i8, ptr %5, align 1
%17 = call i32 @outbyte(i8 noundef signext %16)
%18 = icmp ne i32 %17, 0
br i1 %18, label %20, label %19
19: ; preds = %15
br label %47
20: ; preds = %15
%21 = load i8, ptr %5, align 1
%22 = zext i8 %21 to i32
%23 = load i8, ptr %3, align 1
%24 = zext i8 %23 to i32
%25 = add nsw i32 %24, %22
%26 = trunc i32 %25 to i8
store i8 %26, ptr %3, align 1
%27 = load i32, ptr %4, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %4, align 4
br label %8, !llvm.loop !6
29: ; preds = %8
%30 = call i32 @outbyte(i8 noundef signext 35)
%31 = load i8, ptr %3, align 1
%32 = zext i8 %31 to i32
%33 = ashr i32 %32, 4
%34 = trunc i32 %33 to i8
%35 = call signext i8 @digit2hex(i8 noundef zeroext %34)
%36 = call i32 @outbyte(i8 noundef signext %35)
%37 = load i8, ptr %3, align 1
%38 = zext i8 %37 to i32
%39 = and i32 %38, 15
%40 = trunc i32 %39 to i8
%41 = call signext i8 @digit2hex(i8 noundef zeroext %40)
%42 = call i32 @outbyte(i8 noundef signext %41)
br label %43
43: ; preds = %29
%44 = call i32 (...) @inbyte()
%45 = and i32 %44, 127
%46 = icmp ne i32 %45, 43
br i1 %46, label %6, label %47, !llvm.loop !8
47: ; preds = %19, %43
ret void
}
declare i32 @outbyte(i8 noundef signext) #1
declare signext i8 @digit2hex(i8 noundef zeroext) #1
declare i32 @inbyte(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpl0ehn4ia.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @putpacket(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
%4 = alloca i32, align 4
%5 = alloca i8, align 1
store ptr %0, ptr %2, align 8
br label %6
6: ; preds = %48, %1
%7 = call i32 @outbyte(i8 noundef signext 36)
store i8 0, ptr %3, align 1
store i32 0, ptr %4, align 4
%8 = load ptr, ptr %2, align 8
%9 = load i32, ptr %4, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i8, ptr %8, i64 %10
%12 = load i8, ptr %11, align 1
store i8 %12, ptr %5, align 1
%13 = icmp ne i8 %12, 0
br i1 %13, label %.lr.ph, label %34
.lr.ph: ; preds = %6
br label %14
14: ; preds = %.lr.ph, %19
%15 = load i8, ptr %5, align 1
%16 = call i32 @outbyte(i8 noundef signext %15)
%17 = icmp ne i32 %16, 0
br i1 %17, label %19, label %18
18: ; preds = %14
br label %52
19: ; preds = %14
%20 = load i8, ptr %5, align 1
%21 = zext i8 %20 to i32
%22 = load i8, ptr %3, align 1
%23 = zext i8 %22 to i32
%24 = add nsw i32 %23, %21
%25 = trunc i32 %24 to i8
store i8 %25, ptr %3, align 1
%26 = load i32, ptr %4, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %4, align 4
%28 = load ptr, ptr %2, align 8
%29 = load i32, ptr %4, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %28, i64 %30
%32 = load i8, ptr %31, align 1
store i8 %32, ptr %5, align 1
%33 = icmp ne i8 %32, 0
br i1 %33, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %34
34: ; preds = %._crit_edge, %6
%35 = call i32 @outbyte(i8 noundef signext 35)
%36 = load i8, ptr %3, align 1
%37 = zext i8 %36 to i32
%38 = ashr i32 %37, 4
%39 = trunc i32 %38 to i8
%40 = call signext i8 @digit2hex(i8 noundef zeroext %39)
%41 = call i32 @outbyte(i8 noundef signext %40)
%42 = load i8, ptr %3, align 1
%43 = zext i8 %42 to i32
%44 = and i32 %43, 15
%45 = trunc i32 %44 to i8
%46 = call signext i8 @digit2hex(i8 noundef zeroext %45)
%47 = call i32 @outbyte(i8 noundef signext %46)
br label %48
48: ; preds = %34
%49 = call i32 (...) @inbyte()
%50 = and i32 %49, 127
%51 = icmp ne i32 %50, 43
br i1 %51, label %6, label %.loopexit, !llvm.loop !8
.loopexit: ; preds = %48
br label %52
52: ; preds = %.loopexit, %18
ret void
}
declare i32 @outbyte(i8 noundef signext) #1
declare signext i8 @digit2hex(i8 noundef zeroext) #1
declare i32 @inbyte(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpyi_j534w.c'
source_filename = "/tmp/tmpyi_j534w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @repmat(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%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
%15 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
store i32 %5, ptr %12, align 4
%16 = load ptr, ptr %8, align 8
%17 = load ptr, ptr %7, align 8
%18 = icmp ne ptr %16, %17
br i1 %18, label %19, label %44
19: ; preds = %6
store i32 0, ptr %13, align 4
br label %20
20: ; preds = %40, %19
%21 = load i32, ptr %13, align 4
%22 = load i32, ptr %11, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %43
24: ; preds = %20
%25 = load ptr, ptr %7, align 8
%26 = load i32, ptr %13, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds ptr, ptr %25, i64 %27
%29 = load ptr, ptr %28, align 8
%30 = load ptr, ptr %8, align 8
%31 = load i32, ptr %13, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds ptr, ptr %30, i64 %32
%34 = load ptr, ptr %33, align 8
%35 = load i32, ptr %12, align 4
%36 = sext i32 %35 to i64
%37 = mul i64 %36, 8
%38 = trunc i64 %37 to i32
%39 = call i32 @memcpy(ptr noundef %29, ptr noundef %34, i32 noundef %38)
br label %40
40: ; preds = %24
%41 = load i32, ptr %13, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %13, align 4
br label %20, !llvm.loop !6
43: ; preds = %20
br label %44
44: ; preds = %43, %6
store i32 0, ptr %13, align 4
br label %45
45: ; preds = %79, %44
%46 = load i32, ptr %13, align 4
%47 = load i32, ptr %11, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %49, label %82
49: ; preds = %45
store i32 1, ptr %15, align 4
br label %50
50: ; preds = %75, %49
%51 = load i32, ptr %15, align 4
%52 = load i32, ptr %10, align 4
%53 = icmp slt i32 %51, %52
br i1 %53, label %54, label %78
54: ; preds = %50
%55 = load ptr, ptr %7, align 8
%56 = load i32, ptr %13, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds ptr, ptr %55, i64 %57
%59 = load ptr, ptr %58, align 8
%60 = load i32, ptr %15, align 4
%61 = load i32, ptr %12, align 4
%62 = mul nsw i32 %60, %61
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds double, ptr %59, i64 %63
%65 = load ptr, ptr %7, align 8
%66 = load i32, ptr %13, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds ptr, ptr %65, i64 %67
%69 = load ptr, ptr %68, align 8
%70 = load i32, ptr %12, align 4
%71 = sext i32 %70 to i64
%72 = mul i64 %71, 8
%73 = trunc i64 %72 to i32
%74 = call i32 @memcpy(ptr noundef %64, ptr noundef %69, i32 noundef %73)
br label %75
75: ; preds = %54
%76 = load i32, ptr %15, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %15, align 4
br label %50, !llvm.loop !8
78: ; preds = %50
br label %79
79: ; preds = %78
%80 = load i32, ptr %13, align 4
%81 = add nsw i32 %80, 1
store i32 %81, ptr %13, align 4
br label %45, !llvm.loop !9
82: ; preds = %45
store i32 1, ptr %14, align 4
br label %83
83: ; preds = %107, %82
%84 = load i32, ptr %14, align 4
%85 = load i32, ptr %9, align 4
%86 = icmp slt i32 %84, %85
br i1 %86, label %87, label %110
87: ; preds = %83
%88 = load ptr, ptr %7, align 8
%89 = load i32, ptr %14, align 4
%90 = load i32, ptr %11, align 4
%91 = mul nsw i32 %89, %90
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds ptr, ptr %88, i64 %92
%94 = load ptr, ptr %93, align 8
%95 = load ptr, ptr %7, align 8
%96 = getelementptr inbounds ptr, ptr %95, i64 0
%97 = load ptr, ptr %96, align 8
%98 = load i32, ptr %12, align 4
%99 = load i32, ptr %10, align 4
%100 = mul nsw i32 %98, %99
%101 = load i32, ptr %11, align 4
%102 = mul nsw i32 %100, %101
%103 = sext i32 %102 to i64
%104 = mul i64 %103, 8
%105 = trunc i64 %104 to i32
%106 = call i32 @memcpy(ptr noundef %94, ptr noundef %97, i32 noundef %105)
br label %107
107: ; preds = %87
%108 = load i32, ptr %14, align 4
%109 = add nsw i32 %108, 1
store i32 %109, ptr %14, align 4
br label %83, !llvm.loop !10
110: ; preds = %83
ret void
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyi_j534w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @repmat(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%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
%15 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
store i32 %5, ptr %12, align 4
%16 = load ptr, ptr %8, align 8
%17 = load ptr, ptr %7, align 8
%18 = icmp ne ptr %16, %17
br i1 %18, label %19, label %46
19: ; preds = %6
store i32 0, ptr %13, align 4
%20 = load i32, ptr %13, align 4
%21 = load i32, ptr %11, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %.lr.ph, label %45
.lr.ph: ; preds = %19
br label %23
23: ; preds = %.lr.ph, %39
%24 = load ptr, ptr %7, align 8
%25 = load i32, ptr %13, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %24, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = load ptr, ptr %8, align 8
%30 = load i32, ptr %13, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds ptr, ptr %29, i64 %31
%33 = load ptr, ptr %32, align 8
%34 = load i32, ptr %12, align 4
%35 = sext i32 %34 to i64
%36 = mul i64 %35, 8
%37 = trunc i64 %36 to i32
%38 = call i32 @memcpy(ptr noundef %28, ptr noundef %33, i32 noundef %37)
br label %39
39: ; preds = %23
%40 = load i32, ptr %13, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %13, align 4
%42 = load i32, ptr %13, align 4
%43 = load i32, ptr %11, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %39
br label %45
45: ; preds = %._crit_edge, %19
br label %46
46: ; preds = %45, %6
store i32 0, ptr %13, align 4
%47 = load i32, ptr %13, align 4
%48 = load i32, ptr %11, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %.lr.ph5, label %88
.lr.ph5: ; preds = %46
br label %50
50: ; preds = %.lr.ph5, %82
store i32 1, ptr %15, align 4
%51 = load i32, ptr %15, align 4
%52 = load i32, ptr %10, align 4
%53 = icmp slt i32 %51, %52
br i1 %53, label %.lr.ph2, label %81
.lr.ph2: ; preds = %50
br label %54
54: ; preds = %.lr.ph2, %75
%55 = load ptr, ptr %7, align 8
%56 = load i32, ptr %13, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds ptr, ptr %55, i64 %57
%59 = load ptr, ptr %58, align 8
%60 = load i32, ptr %15, align 4
%61 = load i32, ptr %12, align 4
%62 = mul nsw i32 %60, %61
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds double, ptr %59, i64 %63
%65 = load ptr, ptr %7, align 8
%66 = load i32, ptr %13, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds ptr, ptr %65, i64 %67
%69 = load ptr, ptr %68, align 8
%70 = load i32, ptr %12, align 4
%71 = sext i32 %70 to i64
%72 = mul i64 %71, 8
%73 = trunc i64 %72 to i32
%74 = call i32 @memcpy(ptr noundef %64, ptr noundef %69, i32 noundef %73)
br label %75
75: ; preds = %54
%76 = load i32, ptr %15, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %15, align 4
%78 = load i32, ptr %15, align 4
%79 = load i32, ptr %10, align 4
%80 = icmp slt i32 %78, %79
br i1 %80, label %54, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %75
br label %81
81: ; preds = %._crit_edge3, %50
br label %82
82: ; preds = %81
%83 = load i32, ptr %13, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %13, align 4
%85 = load i32, ptr %13, align 4
%86 = load i32, ptr %11, align 4
%87 = icmp slt i32 %85, %86
br i1 %87, label %50, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %82
br label %88
88: ; preds = %._crit_edge6, %46
store i32 1, ptr %14, align 4
%89 = load i32, ptr %14, align 4
%90 = load i32, ptr %9, align 4
%91 = icmp slt i32 %89, %90
br i1 %91, label %.lr.ph8, label %118
.lr.ph8: ; preds = %88
br label %92
92: ; preds = %.lr.ph8, %112
%93 = load ptr, ptr %7, align 8
%94 = load i32, ptr %14, align 4
%95 = load i32, ptr %11, align 4
%96 = mul nsw i32 %94, %95
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds ptr, ptr %93, i64 %97
%99 = load ptr, ptr %98, align 8
%100 = load ptr, ptr %7, align 8
%101 = getelementptr inbounds ptr, ptr %100, i64 0
%102 = load ptr, ptr %101, align 8
%103 = load i32, ptr %12, align 4
%104 = load i32, ptr %10, align 4
%105 = mul nsw i32 %103, %104
%106 = load i32, ptr %11, align 4
%107 = mul nsw i32 %105, %106
%108 = sext i32 %107 to i64
%109 = mul i64 %108, 8
%110 = trunc i64 %109 to i32
%111 = call i32 @memcpy(ptr noundef %99, ptr noundef %102, i32 noundef %110)
br label %112
112: ; preds = %92
%113 = load i32, ptr %14, align 4
%114 = add nsw i32 %113, 1
store i32 %114, ptr %14, align 4
%115 = load i32, ptr %14, align 4
%116 = load i32, ptr %9, align 4
%117 = icmp slt i32 %115, %116
br i1 %117, label %92, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %112
br label %118
118: ; preds = %._crit_edge9, %88
ret void
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpimirvy7s.c'
source_filename = "/tmp/tmpimirvy7s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"Enter a number and the positive integer power\00", align 1
@.str.1 = private unnamed_addr constant [45 x i8] c" to which\0Athe number will be raised. Enter q\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c" to quit.\0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"%1f%d\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"%.3g to the power %d is %.5g\0A\00", align 1
@.str.5 = private unnamed_addr constant [42 x i8] c"Enter next pair of numbers or q to quit.\0A\00", align 1
@.str.6 = private unnamed_addr constant [41 x i8] c"Hope you enjoyed this power trip --bye!\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 double, align 8
%7 = alloca double, align 8
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %12
12: ; preds = %15, %2
%13 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %6, ptr noundef %8)
%14 = icmp eq i32 %13, 2
br i1 %14, label %15, label %24
15: ; preds = %12
%16 = load double, ptr %6, align 8
%17 = load i32, ptr %8, align 4
%18 = call double @power(double noundef %16, i32 noundef %17)
store double %18, ptr %7, align 8
%19 = load double, ptr %6, align 8
%20 = load i32, ptr %8, align 4
%21 = load double, ptr %7, align 8
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %19, i32 noundef %20, double noundef %21)
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %12, !llvm.loop !6
24: ; preds = %12
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare double @power(double 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/tmpimirvy7s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"Enter a number and the positive integer power\00", align 1
@.str.1 = private unnamed_addr constant [45 x i8] c" to which\0Athe number will be raised. Enter q\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c" to quit.\0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"%1f%d\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"%.3g to the power %d is %.5g\0A\00", align 1
@.str.5 = private unnamed_addr constant [42 x i8] c"Enter next pair of numbers or q to quit.\0A\00", align 1
@.str.6 = private unnamed_addr constant [41 x i8] c"Hope you enjoyed this power trip --bye!\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 double, align 8
%7 = alloca double, align 8
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%12 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %6, ptr noundef %8)
%13 = icmp eq i32 %12, 2
br i1 %13, label %.lr.ph, label %25
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %14
%15 = load double, ptr %6, align 8
%16 = load i32, ptr %8, align 4
%17 = call double @power(double noundef %15, i32 noundef %16)
store double %17, ptr %7, align 8
%18 = load double, ptr %6, align 8
%19 = load i32, ptr %8, align 4
%20 = load double, ptr %7, align 8
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %18, i32 noundef %19, double noundef %20)
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%23 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %6, ptr noundef %8)
%24 = icmp eq i32 %23, 2
br i1 %24, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %25
25: ; preds = %._crit_edge, %2
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare double @power(double 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/tmpsnqyillx.c'
source_filename = "/tmp/tmpsnqyillx.c"
target datalayout = "e-m:e-p270: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/tmpsnqyillx.c"
target datalayout = "e-m:e-p270: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/tmpc7cmy4xn.c'
source_filename = "/tmp/tmpc7cmy4xn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @func(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i64 @strlen(ptr noundef %6)
%8 = load ptr, ptr %5, align 8
%9 = call i64 @strlen(ptr noundef %8)
%10 = icmp sge i64 %7, %9
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
store ptr %12, ptr %3, align 8
br label %15
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
store ptr %14, ptr %3, align 8
br label %15
15: ; preds = %13, %11
%16 = load ptr, ptr %3, align 8
ret ptr %16
}
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc7cmy4xn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @func(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i64 @strlen(ptr noundef %6)
%8 = load ptr, ptr %5, align 8
%9 = call i64 @strlen(ptr noundef %8)
%10 = icmp sge i64 %7, %9
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
store ptr %12, ptr %3, align 8
br label %15
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
store ptr %14, ptr %3, align 8
br label %15
15: ; preds = %13, %11
%16 = load ptr, ptr %3, align 8
ret ptr %16
}
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"}
|
; ModuleID = '/tmp/tmpqqrlcfot.c'
source_filename = "/tmp/tmpqqrlcfot.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"#\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\09\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printChars(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 = %57, %2
%8 = load i32, ptr %5, align 4
%9 = icmp slt i32 %8, 7
br i1 %9, label %10, label %60
10: ; preds = %7
store i32 0, ptr %6, align 4
br label %11
11: ; preds = %29, %10
%12 = load i32, ptr %6, align 4
%13 = icmp slt i32 %12, 4
br i1 %13, label %14, label %32
14: ; preds = %11
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [4 x i32], ptr %15, i64 %17
%19 = load i32, ptr %6, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [4 x i32], ptr %18, i64 0, i64 %20
%22 = load i32, ptr %21, align 4
%23 = icmp eq i32 %22, 1
br i1 %23, label %24, label %26
24: ; preds = %14
%25 = call i32 @printf(ptr noundef @.str)
br label %28
26: ; preds = %14
%27 = call i32 @printf(ptr noundef @.str.1)
br label %28
28: ; preds = %26, %24
br label %29
29: ; preds = %28
%30 = load i32, ptr %6, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %6, align 4
br label %11, !llvm.loop !6
32: ; preds = %11
%33 = call i32 @printf(ptr noundef @.str.2)
store i32 0, ptr %6, align 4
br label %34
34: ; preds = %52, %32
%35 = load i32, ptr %6, align 4
%36 = icmp slt i32 %35, 4
br i1 %36, label %37, label %55
37: ; preds = %34
%38 = load ptr, ptr %4, align 8
%39 = load i32, ptr %5, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [4 x i32], ptr %38, i64 %40
%42 = load i32, ptr %6, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [4 x i32], ptr %41, i64 0, i64 %43
%45 = load i32, ptr %44, align 4
%46 = icmp eq i32 %45, 1
br i1 %46, label %47, label %49
47: ; preds = %37
%48 = call i32 @printf(ptr noundef @.str)
br label %51
49: ; preds = %37
%50 = call i32 @printf(ptr noundef @.str.1)
br label %51
51: ; preds = %49, %47
br label %52
52: ; preds = %51
%53 = load i32, ptr %6, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %6, align 4
br label %34, !llvm.loop !8
55: ; preds = %34
%56 = call i32 @printf(ptr noundef @.str.3)
br label %57
57: ; preds = %55
%58 = load i32, ptr %5, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %5, align 4
br label %7, !llvm.loop !9
60: ; preds = %7
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}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqqrlcfot.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"#\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\09\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printChars(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 = icmp slt i32 %7, 7
br i1 %8, label %.lr.ph5, label %63
.lr.ph5: ; preds = %2
br label %9
9: ; preds = %.lr.ph5, %58
store i32 0, ptr %6, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %10, 4
br i1 %11, label %.lr.ph, label %32
.lr.ph: ; preds = %9
br label %12
12: ; preds = %.lr.ph, %27
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %5, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [4 x i32], ptr %13, i64 %15
%17 = load i32, ptr %6, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [4 x i32], ptr %16, i64 0, i64 %18
%20 = load i32, ptr %19, align 4
%21 = icmp eq i32 %20, 1
br i1 %21, label %22, label %24
22: ; preds = %12
%23 = call i32 @printf(ptr noundef @.str)
br label %26
24: ; preds = %12
%25 = call i32 @printf(ptr noundef @.str.1)
br label %26
26: ; preds = %24, %22
br label %27
27: ; preds = %26
%28 = load i32, ptr %6, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %6, align 4
%30 = load i32, ptr %6, align 4
%31 = icmp slt i32 %30, 4
br i1 %31, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %32
32: ; preds = %._crit_edge, %9
%33 = call i32 @printf(ptr noundef @.str.2)
store i32 0, ptr %6, align 4
%34 = load i32, ptr %6, align 4
%35 = icmp slt i32 %34, 4
br i1 %35, label %.lr.ph2, label %56
.lr.ph2: ; preds = %32
br label %36
36: ; preds = %.lr.ph2, %51
%37 = load ptr, ptr %4, align 8
%38 = load i32, ptr %5, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [4 x i32], ptr %37, i64 %39
%41 = load i32, ptr %6, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [4 x i32], ptr %40, i64 0, i64 %42
%44 = load i32, ptr %43, align 4
%45 = icmp eq i32 %44, 1
br i1 %45, label %46, label %48
46: ; preds = %36
%47 = call i32 @printf(ptr noundef @.str)
br label %50
48: ; preds = %36
%49 = call i32 @printf(ptr noundef @.str.1)
br label %50
50: ; preds = %48, %46
br label %51
51: ; preds = %50
%52 = load i32, ptr %6, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %6, align 4
%54 = load i32, ptr %6, align 4
%55 = icmp slt i32 %54, 4
br i1 %55, label %36, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %51
br label %56
56: ; preds = %._crit_edge3, %32
%57 = call i32 @printf(ptr noundef @.str.3)
br label %58
58: ; preds = %56
%59 = load i32, ptr %5, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %5, align 4
%61 = load i32, ptr %5, align 4
%62 = icmp slt i32 %61, 7
br i1 %62, label %9, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %58
br label %63
63: ; preds = %._crit_edge6, %2
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpkk1dh0p0.c'
source_filename = "/tmp/tmpkk1dh0p0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"Hello world!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkk1dh0p0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"Hello world!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpegoohqyf.c'
source_filename = "/tmp/tmpegoohqyf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wrong_key() #0 {
%1 = call i32 (...) @flash()
%2 = call i32 (...) @beep()
%3 = call i32 (...) @flushinp()
ret void
}
declare i32 @flash(...) #1
declare i32 @beep(...) #1
declare i32 @flushinp(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpegoohqyf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wrong_key() #0 {
%1 = call i32 (...) @flash()
%2 = call i32 (...) @beep()
%3 = call i32 (...) @flushinp()
ret void
}
declare i32 @flash(...) #1
declare i32 @beep(...) #1
declare i32 @flushinp(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0urohnoq.c'
source_filename = "/tmp/tmp0urohnoq.c"
target datalayout = "e-m:e-p270: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/tmp0urohnoq.c"
target datalayout = "e-m:e-p270: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/tmpp4z54q08.c'
source_filename = "/tmp/tmpp4z54q08.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GL_PROJECTION = dso_local global i32 0, align 4
@GL_MODELVIEW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @init() #0 {
%1 = call i32 @glClearColor(double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
%2 = load i32, ptr @GL_PROJECTION, align 4
%3 = call i32 @glMatrixMode(i32 noundef %2)
%4 = call i32 @glOrtho(i32 noundef -5, i32 noundef 5, i32 noundef -5, i32 noundef 5, i32 noundef 5, i32 noundef 15)
%5 = load i32, ptr @GL_MODELVIEW, align 4
%6 = call i32 @glMatrixMode(i32 noundef %5)
%7 = call i32 @gluLookAt(i32 noundef 0, i32 noundef 0, i32 noundef 10, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 1, i32 noundef 0)
ret void
}
declare i32 @glClearColor(double noundef, double noundef, double noundef, double noundef) #1
declare i32 @glMatrixMode(i32 noundef) #1
declare i32 @glOrtho(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @gluLookAt(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp4z54q08.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GL_PROJECTION = dso_local global i32 0, align 4
@GL_MODELVIEW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @init() #0 {
%1 = call i32 @glClearColor(double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
%2 = load i32, ptr @GL_PROJECTION, align 4
%3 = call i32 @glMatrixMode(i32 noundef %2)
%4 = call i32 @glOrtho(i32 noundef -5, i32 noundef 5, i32 noundef -5, i32 noundef 5, i32 noundef 5, i32 noundef 15)
%5 = load i32, ptr @GL_MODELVIEW, align 4
%6 = call i32 @glMatrixMode(i32 noundef %5)
%7 = call i32 @gluLookAt(i32 noundef 0, i32 noundef 0, i32 noundef 10, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 1, i32 noundef 0)
ret void
}
declare i32 @glClearColor(double noundef, double noundef, double noundef, double noundef) #1
declare i32 @glMatrixMode(i32 noundef) #1
declare i32 @glOrtho(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @gluLookAt(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfu24xcb0.c'
source_filename = "/tmp/tmpfu24xcb0.c"
target datalayout = "e-m:e-p270: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/tmpfu24xcb0.c"
target datalayout = "e-m:e-p270: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/tmp5mjxwum2.c'
source_filename = "/tmp/tmp5mjxwum2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check_intersects(double noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5, double noundef %6, double noundef %7) #0 {
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
store double %0, ptr %9, align 8
store double %1, ptr %10, align 8
store double %2, ptr %11, align 8
store double %3, ptr %12, align 8
store double %4, ptr %13, align 8
store double %5, ptr %14, align 8
store double %6, ptr %15, align 8
store double %7, ptr %16, align 8
%17 = load double, ptr %10, align 8
%18 = fcmp olt double %17, 0.000000e+00
br i1 %18, label %19, label %25
19: ; preds = %8
%20 = load i32, ptr @M_PI, align 4
%21 = mul nsw i32 %20, 2
%22 = sitofp i32 %21 to double
%23 = load double, ptr %10, align 8
%24 = fadd double %23, %22
store double %24, ptr %10, align 8
br label %25
25: ; preds = %19, %8
%26 = load double, ptr %12, align 8
%27 = fcmp olt double %26, 0.000000e+00
br i1 %27, label %28, label %34
28: ; preds = %25
%29 = load i32, ptr @M_PI, align 4
%30 = mul nsw i32 %29, 2
%31 = sitofp i32 %30 to double
%32 = load double, ptr %12, align 8
%33 = fadd double %32, %31
store double %33, ptr %12, align 8
br label %34
34: ; preds = %28, %25
%35 = load double, ptr %14, align 8
%36 = fcmp olt double %35, 0.000000e+00
br i1 %36, label %37, label %43
37: ; preds = %34
%38 = load i32, ptr @M_PI, align 4
%39 = mul nsw i32 %38, 2
%40 = sitofp i32 %39 to double
%41 = load double, ptr %14, align 8
%42 = fadd double %41, %40
store double %42, ptr %14, align 8
br label %43
43: ; preds = %37, %34
%44 = load double, ptr %16, align 8
%45 = fcmp olt double %44, 0.000000e+00
br i1 %45, label %46, label %52
46: ; preds = %43
%47 = load i32, ptr @M_PI, align 4
%48 = mul nsw i32 %47, 2
%49 = sitofp i32 %48 to double
%50 = load double, ptr %16, align 8
%51 = fadd double %50, %49
store double %51, ptr %16, align 8
br label %52
52: ; preds = %46, %43
%53 = load double, ptr %10, align 8
%54 = load double, ptr %12, align 8
%55 = fsub double %53, %54
%56 = call i32 @fabs(double noundef %55)
%57 = load i32, ptr @M_PI, align 4
%58 = icmp sgt i32 %56, %57
br i1 %58, label %59, label %76
59: ; preds = %52
%60 = load double, ptr %10, align 8
%61 = load double, ptr %12, align 8
%62 = fcmp ogt double %60, %61
br i1 %62, label %63, label %69
63: ; preds = %59
%64 = load i32, ptr @M_PI, align 4
%65 = mul nsw i32 %64, 2
%66 = sitofp i32 %65 to double
%67 = load double, ptr %10, align 8
%68 = fsub double %67, %66
store double %68, ptr %10, align 8
br label %75
69: ; preds = %59
%70 = load i32, ptr @M_PI, align 4
%71 = mul nsw i32 %70, 2
%72 = sitofp i32 %71 to double
%73 = load double, ptr %12, align 8
%74 = fsub double %73, %72
store double %74, ptr %12, align 8
br label %75
75: ; preds = %69, %63
br label %76
76: ; preds = %75, %52
%77 = load double, ptr %14, align 8
%78 = load double, ptr %16, align 8
%79 = fsub double %77, %78
%80 = call i32 @fabs(double noundef %79)
%81 = load i32, ptr @M_PI, align 4
%82 = icmp sgt i32 %80, %81
br i1 %82, label %83, label %100
83: ; preds = %76
%84 = load double, ptr %14, align 8
%85 = load double, ptr %16, align 8
%86 = fcmp ogt double %84, %85
br i1 %86, label %87, label %93
87: ; preds = %83
%88 = load i32, ptr @M_PI, align 4
%89 = mul nsw i32 %88, 2
%90 = sitofp i32 %89 to double
%91 = load double, ptr %14, align 8
%92 = fsub double %91, %90
store double %92, ptr %14, align 8
br label %99
93: ; preds = %83
%94 = load i32, ptr @M_PI, align 4
%95 = mul nsw i32 %94, 2
%96 = sitofp i32 %95 to double
%97 = load double, ptr %16, align 8
%98 = fsub double %97, %96
store double %98, ptr %16, align 8
br label %99
99: ; preds = %93, %87
br label %100
100: ; preds = %99, %76
%101 = load double, ptr %10, align 8
%102 = load double, ptr %14, align 8
%103 = fsub double %101, %102
%104 = call i32 @fabs(double noundef %103)
%105 = load i32, ptr @M_PI, align 4
%106 = icmp sgt i32 %104, %105
br i1 %106, label %107, label %134
107: ; preds = %100
%108 = load double, ptr %10, align 8
%109 = load double, ptr %14, align 8
%110 = fcmp ogt double %108, %109
br i1 %110, label %111, label %122
111: ; preds = %107
%112 = load i32, ptr @M_PI, align 4
%113 = mul nsw i32 %112, 2
%114 = sitofp i32 %113 to double
%115 = load double, ptr %10, align 8
%116 = fsub double %115, %114
store double %116, ptr %10, align 8
%117 = load i32, ptr @M_PI, align 4
%118 = mul nsw i32 %117, 2
%119 = sitofp i32 %118 to double
%120 = load double, ptr %12, align 8
%121 = fsub double %120, %119
store double %121, ptr %12, align 8
br label %133
122: ; preds = %107
%123 = load i32, ptr @M_PI, align 4
%124 = mul nsw i32 %123, 2
%125 = sitofp i32 %124 to double
%126 = load double, ptr %14, align 8
%127 = fsub double %126, %125
store double %127, ptr %14, align 8
%128 = load i32, ptr @M_PI, align 4
%129 = mul nsw i32 %128, 2
%130 = sitofp i32 %129 to double
%131 = load double, ptr %16, align 8
%132 = fsub double %131, %130
store double %132, ptr %16, align 8
br label %133
133: ; preds = %122, %111
br label %134
134: ; preds = %133, %100
%135 = load double, ptr %9, align 8
%136 = load double, ptr %10, align 8
%137 = load double, ptr %11, align 8
%138 = load double, ptr %12, align 8
%139 = load double, ptr %13, align 8
%140 = load double, ptr %14, align 8
%141 = load double, ptr %15, align 8
%142 = load double, ptr %16, align 8
%143 = call i32 @__check_intersects_no_norm(double noundef %135, double noundef %136, double noundef %137, double noundef %138, double noundef %139, double noundef %140, double noundef %141, double noundef %142)
ret i32 %143
}
declare i32 @fabs(double noundef) #1
declare i32 @__check_intersects_no_norm(double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5mjxwum2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check_intersects(double noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5, double noundef %6, double noundef %7) #0 {
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
store double %0, ptr %9, align 8
store double %1, ptr %10, align 8
store double %2, ptr %11, align 8
store double %3, ptr %12, align 8
store double %4, ptr %13, align 8
store double %5, ptr %14, align 8
store double %6, ptr %15, align 8
store double %7, ptr %16, align 8
%17 = load double, ptr %10, align 8
%18 = fcmp olt double %17, 0.000000e+00
br i1 %18, label %19, label %25
19: ; preds = %8
%20 = load i32, ptr @M_PI, align 4
%21 = mul nsw i32 %20, 2
%22 = sitofp i32 %21 to double
%23 = load double, ptr %10, align 8
%24 = fadd double %23, %22
store double %24, ptr %10, align 8
br label %25
25: ; preds = %19, %8
%26 = load double, ptr %12, align 8
%27 = fcmp olt double %26, 0.000000e+00
br i1 %27, label %28, label %34
28: ; preds = %25
%29 = load i32, ptr @M_PI, align 4
%30 = mul nsw i32 %29, 2
%31 = sitofp i32 %30 to double
%32 = load double, ptr %12, align 8
%33 = fadd double %32, %31
store double %33, ptr %12, align 8
br label %34
34: ; preds = %28, %25
%35 = load double, ptr %14, align 8
%36 = fcmp olt double %35, 0.000000e+00
br i1 %36, label %37, label %43
37: ; preds = %34
%38 = load i32, ptr @M_PI, align 4
%39 = mul nsw i32 %38, 2
%40 = sitofp i32 %39 to double
%41 = load double, ptr %14, align 8
%42 = fadd double %41, %40
store double %42, ptr %14, align 8
br label %43
43: ; preds = %37, %34
%44 = load double, ptr %16, align 8
%45 = fcmp olt double %44, 0.000000e+00
br i1 %45, label %46, label %52
46: ; preds = %43
%47 = load i32, ptr @M_PI, align 4
%48 = mul nsw i32 %47, 2
%49 = sitofp i32 %48 to double
%50 = load double, ptr %16, align 8
%51 = fadd double %50, %49
store double %51, ptr %16, align 8
br label %52
52: ; preds = %46, %43
%53 = load double, ptr %10, align 8
%54 = load double, ptr %12, align 8
%55 = fsub double %53, %54
%56 = call i32 @fabs(double noundef %55)
%57 = load i32, ptr @M_PI, align 4
%58 = icmp sgt i32 %56, %57
br i1 %58, label %59, label %76
59: ; preds = %52
%60 = load double, ptr %10, align 8
%61 = load double, ptr %12, align 8
%62 = fcmp ogt double %60, %61
br i1 %62, label %63, label %69
63: ; preds = %59
%64 = load i32, ptr @M_PI, align 4
%65 = mul nsw i32 %64, 2
%66 = sitofp i32 %65 to double
%67 = load double, ptr %10, align 8
%68 = fsub double %67, %66
store double %68, ptr %10, align 8
br label %75
69: ; preds = %59
%70 = load i32, ptr @M_PI, align 4
%71 = mul nsw i32 %70, 2
%72 = sitofp i32 %71 to double
%73 = load double, ptr %12, align 8
%74 = fsub double %73, %72
store double %74, ptr %12, align 8
br label %75
75: ; preds = %69, %63
br label %76
76: ; preds = %75, %52
%77 = load double, ptr %14, align 8
%78 = load double, ptr %16, align 8
%79 = fsub double %77, %78
%80 = call i32 @fabs(double noundef %79)
%81 = load i32, ptr @M_PI, align 4
%82 = icmp sgt i32 %80, %81
br i1 %82, label %83, label %100
83: ; preds = %76
%84 = load double, ptr %14, align 8
%85 = load double, ptr %16, align 8
%86 = fcmp ogt double %84, %85
br i1 %86, label %87, label %93
87: ; preds = %83
%88 = load i32, ptr @M_PI, align 4
%89 = mul nsw i32 %88, 2
%90 = sitofp i32 %89 to double
%91 = load double, ptr %14, align 8
%92 = fsub double %91, %90
store double %92, ptr %14, align 8
br label %99
93: ; preds = %83
%94 = load i32, ptr @M_PI, align 4
%95 = mul nsw i32 %94, 2
%96 = sitofp i32 %95 to double
%97 = load double, ptr %16, align 8
%98 = fsub double %97, %96
store double %98, ptr %16, align 8
br label %99
99: ; preds = %93, %87
br label %100
100: ; preds = %99, %76
%101 = load double, ptr %10, align 8
%102 = load double, ptr %14, align 8
%103 = fsub double %101, %102
%104 = call i32 @fabs(double noundef %103)
%105 = load i32, ptr @M_PI, align 4
%106 = icmp sgt i32 %104, %105
br i1 %106, label %107, label %134
107: ; preds = %100
%108 = load double, ptr %10, align 8
%109 = load double, ptr %14, align 8
%110 = fcmp ogt double %108, %109
br i1 %110, label %111, label %122
111: ; preds = %107
%112 = load i32, ptr @M_PI, align 4
%113 = mul nsw i32 %112, 2
%114 = sitofp i32 %113 to double
%115 = load double, ptr %10, align 8
%116 = fsub double %115, %114
store double %116, ptr %10, align 8
%117 = load i32, ptr @M_PI, align 4
%118 = mul nsw i32 %117, 2
%119 = sitofp i32 %118 to double
%120 = load double, ptr %12, align 8
%121 = fsub double %120, %119
store double %121, ptr %12, align 8
br label %133
122: ; preds = %107
%123 = load i32, ptr @M_PI, align 4
%124 = mul nsw i32 %123, 2
%125 = sitofp i32 %124 to double
%126 = load double, ptr %14, align 8
%127 = fsub double %126, %125
store double %127, ptr %14, align 8
%128 = load i32, ptr @M_PI, align 4
%129 = mul nsw i32 %128, 2
%130 = sitofp i32 %129 to double
%131 = load double, ptr %16, align 8
%132 = fsub double %131, %130
store double %132, ptr %16, align 8
br label %133
133: ; preds = %122, %111
br label %134
134: ; preds = %133, %100
%135 = load double, ptr %9, align 8
%136 = load double, ptr %10, align 8
%137 = load double, ptr %11, align 8
%138 = load double, ptr %12, align 8
%139 = load double, ptr %13, align 8
%140 = load double, ptr %14, align 8
%141 = load double, ptr %15, align 8
%142 = load double, ptr %16, align 8
%143 = call i32 @__check_intersects_no_norm(double noundef %135, double noundef %136, double noundef %137, double noundef %138, double noundef %139, double noundef %140, double noundef %141, double noundef %142)
ret i32 %143
}
declare i32 @fabs(double noundef) #1
declare i32 @__check_intersects_no_norm(double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2yycyn0z.c'
source_filename = "/tmp/tmp2yycyn0z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 0x1b\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalpha_0x1b() #0 {
%1 = call i64 @isalpha(i32 noundef 27)
%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 140, 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/tmp2yycyn0z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 0x1b\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalpha_0x1b() #0 {
%1 = call i64 @isalpha(i32 noundef 27)
%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 140, 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/tmp8t2rrj2m.c'
source_filename = "/tmp/tmp8t2rrj2m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [20 x i8] c"Usage: %s file.xml\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"Error : can not open file %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [4096 x i8], align 16
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 2
br i1 %10, label %11, label %17
11: ; preds = %2
%12 = load i32, ptr @stderr, align 4
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 0
%15 = load ptr, ptr %14, align 8
%16 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str, ptr noundef %15)
store i32 1, ptr %3, align 4
br label %42
17: ; preds = %2
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 1
%20 = load ptr, ptr %19, align 8
%21 = call ptr @fopen(ptr noundef %20, ptr noundef @.str.1)
store ptr %21, ptr %6, align 8
%22 = load ptr, ptr %6, align 8
%23 = icmp ne ptr %22, null
br i1 %23, label %30, label %24
24: ; preds = %17
%25 = load i32, ptr @stderr, align 4
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 1
%28 = load ptr, ptr %27, align 8
%29 = call i32 @fprintf(i32 noundef %25, ptr noundef @.str.2, ptr noundef %28)
store i32 2, ptr %3, align 4
br label %42
30: ; preds = %17
%31 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%32 = load ptr, ptr %6, align 8
%33 = call i32 @fread(ptr noundef %31, i32 noundef 1, i32 noundef 4095, ptr noundef %32)
store i32 %33, ptr %8, align 4
%34 = load ptr, ptr %6, align 8
%35 = call i32 @fclose(ptr noundef %34)
%36 = load i32, ptr %8, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 %37
store i8 0, ptr %38, align 1
%39 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%40 = load i32, ptr %8, align 4
%41 = call i32 @test_parsing(ptr noundef %39, i32 noundef %40)
store i32 0, ptr %3, align 4
br label %42
42: ; preds = %30, %24, %11
%43 = load i32, ptr %3, align 4
ret i32 %43
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @test_parsing(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/tmp8t2rrj2m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [20 x i8] c"Usage: %s file.xml\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"Error : can not open file %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [4096 x i8], align 16
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 2
br i1 %10, label %11, label %17
11: ; preds = %2
%12 = load i32, ptr @stderr, align 4
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 0
%15 = load ptr, ptr %14, align 8
%16 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str, ptr noundef %15)
store i32 1, ptr %3, align 4
br label %42
17: ; preds = %2
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 1
%20 = load ptr, ptr %19, align 8
%21 = call ptr @fopen(ptr noundef %20, ptr noundef @.str.1)
store ptr %21, ptr %6, align 8
%22 = load ptr, ptr %6, align 8
%23 = icmp ne ptr %22, null
br i1 %23, label %30, label %24
24: ; preds = %17
%25 = load i32, ptr @stderr, align 4
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 1
%28 = load ptr, ptr %27, align 8
%29 = call i32 @fprintf(i32 noundef %25, ptr noundef @.str.2, ptr noundef %28)
store i32 2, ptr %3, align 4
br label %42
30: ; preds = %17
%31 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%32 = load ptr, ptr %6, align 8
%33 = call i32 @fread(ptr noundef %31, i32 noundef 1, i32 noundef 4095, ptr noundef %32)
store i32 %33, ptr %8, align 4
%34 = load ptr, ptr %6, align 8
%35 = call i32 @fclose(ptr noundef %34)
%36 = load i32, ptr %8, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 %37
store i8 0, ptr %38, align 1
%39 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%40 = load i32, ptr %8, align 4
%41 = call i32 @test_parsing(ptr noundef %39, i32 noundef %40)
store i32 0, ptr %3, align 4
br label %42
42: ; preds = %30, %24, %11
%43 = load i32, ptr %3, align 4
ret i32 %43
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @test_parsing(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/tmp_ar6ndth.c'
source_filename = "/tmp/tmp_ar6ndth.c"
target datalayout = "e-m:e-p270: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/tmp_ar6ndth.c"
target datalayout = "e-m:e-p270: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/tmpf02kvuq6.c'
source_filename = "/tmp/tmpf02kvuq6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c"\0AThe day of the year for %d-%d-%d is %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [55 x i8] c"\0AFor the yearday %d the day is %d and the month 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
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 2000, ptr %3, align 4
store i32 5, ptr %4, align 4
store i32 5, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
%9 = load i32, ptr %3, align 4
%10 = load i32, ptr %4, align 4
%11 = load i32, ptr %5, align 4
%12 = call i32 @day_of_year(i32 noundef %9, i32 noundef %10, i32 noundef %11)
store i32 %12, ptr %6, align 4
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %4, align 4
%15 = load i32, ptr %3, align 4
%16 = load i32, ptr %6, align 4
%17 = call i32 (ptr, i32, i32, i32, ...) @printf(ptr noundef @.str, i32 noundef %13, i32 noundef %14, i32 noundef %15, i32 noundef %16)
%18 = load i32, ptr %3, align 4
%19 = load i32, ptr %6, align 4
%20 = call i32 @month_day(i32 noundef %18, i32 noundef %19, ptr noundef %7, ptr noundef %8)
%21 = load i32, ptr %6, align 4
%22 = load i32, ptr %7, align 4
%23 = load i32, ptr %8, align 4
%24 = call i32 (ptr, i32, i32, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %21, i32 noundef %22, i32 noundef %23)
%25 = load i32, ptr %2, align 4
ret i32 %25
}
declare i32 @day_of_year(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ...) #1
declare i32 @month_day(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf02kvuq6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c"\0AThe day of the year for %d-%d-%d is %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [55 x i8] c"\0AFor the yearday %d the day is %d and the month 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
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 2000, ptr %3, align 4
store i32 5, ptr %4, align 4
store i32 5, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
%9 = load i32, ptr %3, align 4
%10 = load i32, ptr %4, align 4
%11 = load i32, ptr %5, align 4
%12 = call i32 @day_of_year(i32 noundef %9, i32 noundef %10, i32 noundef %11)
store i32 %12, ptr %6, align 4
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %4, align 4
%15 = load i32, ptr %3, align 4
%16 = load i32, ptr %6, align 4
%17 = call i32 (ptr, i32, i32, i32, ...) @printf(ptr noundef @.str, i32 noundef %13, i32 noundef %14, i32 noundef %15, i32 noundef %16)
%18 = load i32, ptr %3, align 4
%19 = load i32, ptr %6, align 4
%20 = call i32 @month_day(i32 noundef %18, i32 noundef %19, ptr noundef %7, ptr noundef %8)
%21 = load i32, ptr %6, align 4
%22 = load i32, ptr %7, align 4
%23 = load i32, ptr %8, align 4
%24 = call i32 (ptr, i32, i32, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %21, i32 noundef %22, i32 noundef %23)
%25 = load i32, ptr %2, align 4
ret i32 %25
}
declare i32 @day_of_year(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ...) #1
declare i32 @month_day(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmypcrctr.c'
source_filename = "/tmp/tmpmypcrctr.c"
target datalayout = "e-m:e-p270: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 [10 x float] [float 1.000000e+00, float 2.000000e+00, float 3.000000e+00, float 4.000000e+00, float 5.000000e+00, float 6.000000e+00, float 7.000000e+00, float 8.000000e+00, float 0x7FF8000000000000, float 0x7FF8000000000000], align 16
@.str = private unnamed_addr constant [9 x i8] c"sum: %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [10 x float], align 16
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca float, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.main.x, i64 40, i1 false)
store i32 5, ptr %2, align 4
store i32 2, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = getelementptr inbounds [10 x float], ptr %1, i64 0, i64 0
%7 = load i32, ptr %3, align 4
%8 = call float @stdlib_strided_sdsnansumpw(i32 noundef %5, ptr noundef %6, i32 noundef %7)
store float %8, ptr %4, align 4
%9 = load float, ptr %4, align 4
%10 = call i32 @printf(ptr noundef @.str, float 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 float @stdlib_strided_sdsnansumpw(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, float 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/tmpmypcrctr.c"
target datalayout = "e-m:e-p270: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 [10 x float] [float 1.000000e+00, float 2.000000e+00, float 3.000000e+00, float 4.000000e+00, float 5.000000e+00, float 6.000000e+00, float 7.000000e+00, float 8.000000e+00, float 0x7FF8000000000000, float 0x7FF8000000000000], align 16
@.str = private unnamed_addr constant [9 x i8] c"sum: %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [10 x float], align 16
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca float, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.main.x, i64 40, i1 false)
store i32 5, ptr %2, align 4
store i32 2, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = getelementptr inbounds [10 x float], ptr %1, i64 0, i64 0
%7 = load i32, ptr %3, align 4
%8 = call float @stdlib_strided_sdsnansumpw(i32 noundef %5, ptr noundef %6, i32 noundef %7)
store float %8, ptr %4, align 4
%9 = load float, ptr %4, align 4
%10 = call i32 @printf(ptr noundef @.str, float 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 float @stdlib_strided_sdsnansumpw(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, float 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/tmpq2fc6ifg.c'
source_filename = "/tmp/tmpq2fc6ifg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @EMACTimestampPPSCommand(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
br label %5
5: ; preds = %13, %2
%6 = load i32, ptr %3, align 4
%7 = add nsw i32 %6, 1836
%8 = sext i32 %7 to i64
%9 = inttoptr i64 %8 to ptr
%10 = load volatile i32, ptr %9, align 4
%11 = and i32 %10, 15
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %5
br label %5, !llvm.loop !6
14: ; preds = %5
%15 = load i32, ptr %4, align 4
%16 = or i32 16, %15
%17 = load i32, ptr %3, align 4
%18 = add nsw i32 %17, 1836
%19 = sext i32 %18 to i64
%20 = inttoptr i64 %19 to ptr
store volatile i32 %16, ptr %20, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq2fc6ifg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @EMACTimestampPPSCommand(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
br label %5
5: ; preds = %5, %2
%6 = load i32, ptr %3, align 4
%7 = add nsw i32 %6, 1836
%8 = sext i32 %7 to i64
%9 = inttoptr i64 %8 to ptr
%10 = load volatile i32, ptr %9, align 4
%11 = and i32 %10, 15
%12 = icmp ne i32 %11, 0
br i1 %12, label %5, label %13, !llvm.loop !6
13: ; preds = %5
%14 = load i32, ptr %4, align 4
%15 = or i32 16, %14
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, 1836
%18 = sext i32 %17 to i64
%19 = inttoptr i64 %18 to ptr
store volatile i32 %15, ptr %19, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpv7zw7uc9.c'
source_filename = "/tmp/tmpv7zw7uc9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printchar(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = call i32 @printf(ptr noundef @.str, i8 noundef signext %3)
ret void
}
declare i32 @printf(ptr noundef, 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv7zw7uc9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printchar(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = call i32 @printf(ptr noundef @.str, i8 noundef signext %3)
ret void
}
declare i32 @printf(ptr noundef, 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"}
|
; ModuleID = '/tmp/tmpg1_sn5h1.c'
source_filename = "/tmp/tmpg1_sn5h1.c"
target datalayout = "e-m:e-p270: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/tmpg1_sn5h1.c"
target datalayout = "e-m:e-p270: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/tmps453bp5q.c'
source_filename = "/tmp/tmps453bp5q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @FreeTriggersAndWatches() #0 {
%1 = call i32 (...) @RemoveAllTriggers()
%2 = call i32 (...) @RemoveAllWatches()
ret void
}
declare i32 @RemoveAllTriggers(...) #1
declare i32 @RemoveAllWatches(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps453bp5q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @FreeTriggersAndWatches() #0 {
%1 = call i32 (...) @RemoveAllTriggers()
%2 = call i32 (...) @RemoveAllWatches()
ret void
}
declare i32 @RemoveAllTriggers(...) #1
declare i32 @RemoveAllWatches(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpomh4hnqd.c'
source_filename = "/tmp/tmpomh4hnqd.c"
target datalayout = "e-m:e-p270: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/tmpomh4hnqd.c"
target datalayout = "e-m:e-p270: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/tmpjiwo_o0u.c'
source_filename = "/tmp/tmpjiwo_o0u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global ptr null, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @putchar_unlocked(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = load ptr, ptr @stdout, align 8
store ptr %4, ptr %3, align 8
%5 = load i32, ptr %2, align 4
%6 = load ptr, ptr %3, align 8
%7 = call i32 @putc_unlocked(i32 noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @putc_unlocked(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/tmpjiwo_o0u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global ptr null, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @putchar_unlocked(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = load ptr, ptr @stdout, align 8
store ptr %4, ptr %3, align 8
%5 = load i32, ptr %2, align 4
%6 = load ptr, ptr %3, align 8
%7 = call i32 @putc_unlocked(i32 noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @putc_unlocked(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/tmp3ayn7fvy.c'
source_filename = "/tmp/tmp3ayn7fvy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @DESDMAEnable(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp eq i32 %5, 1141080064
%7 = zext i1 %6 to i32
%8 = call i32 @ASSERT(i32 noundef %7)
%9 = load i32, ptr %4, align 4
%10 = and i32 %9, 128
%11 = icmp ne i32 %10, 0
br i1 %11, label %20, label %12
12: ; preds = %2
%13 = load i32, ptr %4, align 4
%14 = and i32 %13, 64
%15 = icmp ne i32 %14, 0
br i1 %15, label %20, label %16
16: ; preds = %12
%17 = load i32, ptr %4, align 4
%18 = and i32 %17, 32
%19 = icmp ne i32 %18, 0
br label %20
20: ; preds = %16, %12, %2
%21 = phi i1 [ true, %12 ], [ true, %2 ], [ %19, %16 ]
%22 = zext i1 %21 to i32
%23 = call i32 @ASSERT(i32 noundef %22)
%24 = load i32, ptr %4, align 4
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 52
%27 = sext i32 %26 to i64
%28 = inttoptr i64 %27 to ptr
%29 = load volatile i32, ptr %28, align 4
%30 = or i32 %29, %24
store volatile i32 %30, ptr %28, align 4
ret void
}
declare i32 @ASSERT(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/tmp3ayn7fvy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @DESDMAEnable(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp eq i32 %5, 1141080064
%7 = zext i1 %6 to i32
%8 = call i32 @ASSERT(i32 noundef %7)
%9 = load i32, ptr %4, align 4
%10 = and i32 %9, 128
%11 = icmp ne i32 %10, 0
br i1 %11, label %20, label %12
12: ; preds = %2
%13 = load i32, ptr %4, align 4
%14 = and i32 %13, 64
%15 = icmp ne i32 %14, 0
br i1 %15, label %20, label %16
16: ; preds = %12
%17 = load i32, ptr %4, align 4
%18 = and i32 %17, 32
%19 = icmp ne i32 %18, 0
br label %20
20: ; preds = %16, %12, %2
%21 = phi i1 [ true, %12 ], [ true, %2 ], [ %19, %16 ]
%22 = zext i1 %21 to i32
%23 = call i32 @ASSERT(i32 noundef %22)
%24 = load i32, ptr %4, align 4
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 52
%27 = sext i32 %26 to i64
%28 = inttoptr i64 %27 to ptr
%29 = load volatile i32, ptr %28, align 4
%30 = or i32 %29, %24
store volatile i32 %30, ptr %28, align 4
ret void
}
declare i32 @ASSERT(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/tmpsj5tlzqc.c'
source_filename = "/tmp/tmpsj5tlzqc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @calc_standard_error(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca double, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = load i32, ptr %4, align 4
%8 = call i32 @calc_dispersion(ptr noundef %6, i32 noundef %7)
%9 = call double @sqrt(i32 noundef %8)
store double %9, ptr %5, align 8
%10 = load double, ptr %5, align 8
ret double %10
}
declare double @sqrt(i32 noundef) #1
declare i32 @calc_dispersion(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/tmpsj5tlzqc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @calc_standard_error(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca double, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = load i32, ptr %4, align 4
%8 = call i32 @calc_dispersion(ptr noundef %6, i32 noundef %7)
%9 = call double @sqrt(i32 noundef %8)
store double %9, ptr %5, align 8
%10 = load double, ptr %5, align 8
ret double %10
}
declare double @sqrt(i32 noundef) #1
declare i32 @calc_dispersion(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/tmpu0g3hcsk.c'
source_filename = "/tmp/tmpu0g3hcsk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ft_strrev(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i8, align 1
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%6 = load ptr, ptr %2, align 8
%7 = call i32 @ft_strlen(ptr noundef %6)
%8 = sub nsw i32 %7, 1
store i32 %8, ptr %4, align 4
br label %9
9: ; preds = %13, %1
%10 = load i32, ptr %3, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %37
13: ; preds = %9
%14 = load ptr, ptr %2, align 8
%15 = load i32, ptr %3, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i8, ptr %17, align 1
store i8 %18, ptr %5, align 1
%19 = load ptr, ptr %2, align 8
%20 = load i32, ptr %4, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
%23 = load i8, ptr %22, align 1
%24 = load ptr, ptr %2, align 8
%25 = load i32, ptr %3, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %24, i64 %26
store i8 %23, ptr %27, align 1
%28 = load i8, ptr %5, align 1
%29 = load ptr, ptr %2, align 8
%30 = load i32, ptr %4, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
store i8 %28, ptr %32, align 1
%33 = load i32, ptr %3, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %3, align 4
%35 = load i32, ptr %4, align 4
%36 = add nsw i32 %35, -1
store i32 %36, ptr %4, align 4
br label %9, !llvm.loop !6
37: ; preds = %9
ret void
}
declare i32 @ft_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/tmpu0g3hcsk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ft_strrev(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i8, align 1
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%6 = load ptr, ptr %2, align 8
%7 = call i32 @ft_strlen(ptr noundef %6)
%8 = sub nsw i32 %7, 1
store i32 %8, ptr %4, align 4
%9 = load i32, ptr %3, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %39
.lr.ph: ; preds = %1
br label %12
12: ; preds = %.lr.ph, %12
%13 = load ptr, ptr %2, align 8
%14 = load i32, ptr %3, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i8, ptr %16, align 1
store i8 %17, ptr %5, align 1
%18 = load ptr, ptr %2, align 8
%19 = load i32, ptr %4, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
%22 = load i8, ptr %21, align 1
%23 = load ptr, ptr %2, align 8
%24 = load i32, ptr %3, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %23, i64 %25
store i8 %22, ptr %26, align 1
%27 = load i8, ptr %5, align 1
%28 = load ptr, ptr %2, align 8
%29 = load i32, ptr %4, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %28, i64 %30
store i8 %27, ptr %31, align 1
%32 = load i32, ptr %3, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %3, align 4
%34 = load i32, ptr %4, align 4
%35 = add nsw i32 %34, -1
store i32 %35, ptr %4, align 4
%36 = load i32, ptr %3, align 4
%37 = load i32, ptr %4, align 4
%38 = icmp slt i32 %36, %37
br i1 %38, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %39
39: ; preds = %._crit_edge, %1
ret void
}
declare i32 @ft_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/tmpi0964ghh.c'
source_filename = "/tmp/tmpi0964ghh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [1000 x i8], align 16
%3 = alloca [1000 x i8], align 16
store i32 0, ptr %1, align 4
%4 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 0
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%6 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
%8 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 0
%9 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%10 = call i32 @anagramma(ptr noundef %8, ptr noundef %9)
%11 = call i32 @printf(ptr noundef @.str.1, i32 noundef %10)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @anagramma(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/tmpi0964ghh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [1000 x i8], align 16
%3 = alloca [1000 x i8], align 16
store i32 0, ptr %1, align 4
%4 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 0
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%6 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
%8 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 0
%9 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%10 = call i32 @anagramma(ptr noundef %8, ptr noundef %9)
%11 = call i32 @printf(ptr noundef @.str.1, i32 noundef %10)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @anagramma(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/tmpuf822dvm.c'
source_filename = "/tmp/tmpuf822dvm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %5, align 8
%8 = getelementptr inbounds ptr, ptr %7, i64 1
%9 = load ptr, ptr %8, align 8
%10 = load i8, ptr %9, align 1
store i8 %10, ptr %6, align 1
%11 = load i8, ptr %6, align 1
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 83
br i1 %13, label %14, label %19
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 2
%17 = load ptr, ptr %16, align 8
%18 = call i32 @test_relative_participation(ptr noundef %17)
br label %29
19: ; preds = %2
%20 = load i8, ptr %6, align 1
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 66
br i1 %22, label %23, label %28
23: ; preds = %19
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 2
%26 = load ptr, ptr %25, align 8
%27 = call i32 @test_list_structints(ptr noundef %26)
br label %28
28: ; preds = %23, %19
br label %29
29: ; preds = %28, %14
ret i32 0
}
declare i32 @test_relative_participation(ptr noundef) #1
declare i32 @test_list_structints(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuf822dvm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %5, align 8
%8 = getelementptr inbounds ptr, ptr %7, i64 1
%9 = load ptr, ptr %8, align 8
%10 = load i8, ptr %9, align 1
store i8 %10, ptr %6, align 1
%11 = load i8, ptr %6, align 1
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 83
br i1 %13, label %14, label %19
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 2
%17 = load ptr, ptr %16, align 8
%18 = call i32 @test_relative_participation(ptr noundef %17)
br label %29
19: ; preds = %2
%20 = load i8, ptr %6, align 1
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 66
br i1 %22, label %23, label %28
23: ; preds = %19
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 2
%26 = load ptr, ptr %25, align 8
%27 = call i32 @test_list_structints(ptr noundef %26)
br label %28
28: ; preds = %23, %19
br label %29
29: ; preds = %28, %14
ret i32 0
}
declare i32 @test_relative_participation(ptr noundef) #1
declare i32 @test_list_structints(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpp00dduhf.c'
source_filename = "/tmp/tmpp00dduhf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"n\C3\A3o eleitor\0A\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"eleitor obrigat\C3\B3rio\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"eleitor facultativo\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 16
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @printf(ptr noundef @.str.1)
br label %19
8: ; preds = %0
%9 = load i32, ptr %2, align 4
%10 = icmp sge i32 %9, 18
br i1 %10, label %11, label %16
11: ; preds = %8
%12 = load i32, ptr %2, align 4
%13 = icmp sle i32 %12, 65
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 @printf(ptr noundef @.str.2)
br label %18
16: ; preds = %11, %8
%17 = call i32 @printf(ptr noundef @.str.3)
br label %18
18: ; preds = %16, %14
br label %19
19: ; preds = %18, %6
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp00dduhf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"n\C3\A3o eleitor\0A\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"eleitor obrigat\C3\B3rio\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"eleitor facultativo\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 16
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @printf(ptr noundef @.str.1)
br label %19
8: ; preds = %0
%9 = load i32, ptr %2, align 4
%10 = icmp sge i32 %9, 18
br i1 %10, label %11, label %16
11: ; preds = %8
%12 = load i32, ptr %2, align 4
%13 = icmp sle i32 %12, 65
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 @printf(ptr noundef @.str.2)
br label %18
16: ; preds = %11, %8
%17 = call i32 @printf(ptr noundef @.str.3)
br label %18
18: ; preds = %16, %14
br label %19
19: ; preds = %18, %6
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpaagx40da.c'
source_filename = "/tmp/tmpaagx40da.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%3 = call i64 @malloc(i32 noundef 10)
%4 = inttoptr i64 %3 to ptr
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @printf(ptr noundef %5)
%7 = load ptr, ptr %2, align 8
%8 = call i32 @free(ptr noundef %7)
ret i32 0
}
declare i64 @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaagx40da.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%3 = call i64 @malloc(i32 noundef 10)
%4 = inttoptr i64 %3 to ptr
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @printf(ptr noundef %5)
%7 = load ptr, ptr %2, align 8
%8 = call i32 @free(ptr noundef %7)
ret i32 0
}
declare i64 @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxfr0ikxp.c'
source_filename = "/tmp/tmpxfr0ikxp.c"
target datalayout = "e-m:e-p270: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/tmpxfr0ikxp.c"
target datalayout = "e-m:e-p270: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/tmp1zqiz4h9.c'
source_filename = "/tmp/tmp1zqiz4h9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Key: \00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%02X \00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_key(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %13, %1
%5 = load i32, ptr %3, align 4
%6 = icmp slt i32 %5, 8
br i1 %6, label %7, label %16
7: ; preds = %4
%8 = load ptr, ptr %2, align 8
%9 = load i32, ptr %3, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i32, ptr %8, i64 %10
%12 = load i32, ptr %11, align 4
br label %13
13: ; preds = %7
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %3, align 4
br label %4, !llvm.loop !6
16: ; preds = %4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1zqiz4h9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Key: \00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%02X \00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_key(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp slt i32 %4, 8
br i1 %5, label %.lr.ph, label %17
.lr.ph: ; preds = %1
br label %6
6: ; preds = %.lr.ph, %12
%7 = load ptr, ptr %2, align 8
%8 = load i32, ptr %3, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i32, ptr %7, i64 %9
%11 = load i32, ptr %10, align 4
br label %12
12: ; preds = %6
%13 = load i32, ptr %3, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %3, align 4
%15 = load i32, ptr %3, align 4
%16 = icmp slt i32 %15, 8
br i1 %16, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %17
17: ; preds = %._crit_edge, %1
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmppr0y9ofx.c'
source_filename = "/tmp/tmppr0y9ofx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@EAGAIN = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @WRITE(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i32 0, ptr %8, align 4
br label %10
10: ; preds = %47, %28, %3
%11 = load i64, ptr %7, align 8
%12 = icmp ugt i64 %11, 0
br i1 %12, label %13, label %48
13: ; preds = %10
%14 = load i32, ptr %5, align 4
%15 = load ptr, ptr %6, align 8
%16 = load i64, ptr %7, align 8
%17 = call i32 @write(i32 noundef %14, ptr noundef %15, i64 noundef %16)
store i32 %17, ptr %9, align 4
%18 = load i32, ptr %9, align 4
%19 = icmp eq i32 %18, -1
br i1 %19, label %20, label %30
20: ; preds = %13
%21 = load i64, ptr @errno, align 8
%22 = load i64, ptr @EAGAIN, align 8
%23 = icmp eq i64 %21, %22
br i1 %23, label %28, label %24
24: ; preds = %20
%25 = load i64, ptr @errno, align 8
%26 = load i64, ptr @EINTR, align 8
%27 = icmp eq i64 %25, %26
br i1 %27, label %28, label %29
28: ; preds = %24, %20
br label %10, !llvm.loop !6
29: ; preds = %24
store i32 -1, ptr %4, align 4
br label %50
30: ; preds = %13
%31 = load i32, ptr %9, align 4
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %30
store i32 0, ptr %4, align 4
br label %50
34: ; preds = %30
%35 = load i32, ptr %9, align 4
%36 = load ptr, ptr %6, align 8
%37 = sext i32 %35 to i64
%38 = getelementptr inbounds i8, ptr %36, i64 %37
store ptr %38, ptr %6, align 8
%39 = load i32, ptr %9, align 4
%40 = sext i32 %39 to i64
%41 = load i64, ptr %7, align 8
%42 = sub i64 %41, %40
store i64 %42, ptr %7, align 8
%43 = load i32, ptr %9, align 4
%44 = load i32, ptr %8, align 4
%45 = add nsw i32 %44, %43
store i32 %45, ptr %8, align 4
br label %46
46: ; preds = %34
br label %47
47: ; preds = %46
br label %10, !llvm.loop !6
48: ; preds = %10
%49 = load i32, ptr %8, align 4
store i32 %49, ptr %4, align 4
br label %50
50: ; preds = %48, %33, %29
%51 = load i32, ptr %4, align 4
ret i32 %51
}
declare i32 @write(i32 noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppr0y9ofx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@EAGAIN = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @WRITE(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i32 0, ptr %8, align 4
%10 = load i64, ptr %7, align 8
%11 = icmp ugt i64 %10, 0
br i1 %11, label %.lr.ph, label %49
.lr.ph: ; preds = %3
br label %12
12: ; preds = %.lr.ph, %.backedge
%13 = load i32, ptr %5, align 4
%14 = load ptr, ptr %6, align 8
%15 = load i64, ptr %7, align 8
%16 = call i32 @write(i32 noundef %13, ptr noundef %14, i64 noundef %15)
store i32 %16, ptr %9, align 4
%17 = load i32, ptr %9, align 4
%18 = icmp eq i32 %17, -1
br i1 %18, label %19, label %31
19: ; preds = %12
%20 = load i64, ptr @errno, align 8
%21 = load i64, ptr @EAGAIN, align 8
%22 = icmp eq i64 %20, %21
br i1 %22, label %27, label %23
23: ; preds = %19
%24 = load i64, ptr @errno, align 8
%25 = load i64, ptr @EINTR, align 8
%26 = icmp eq i64 %24, %25
br i1 %26, label %27, label %30
27: ; preds = %23, %19
br label %.backedge
.backedge: ; preds = %27, %48
%28 = load i64, ptr %7, align 8
%29 = icmp ugt i64 %28, 0
br i1 %29, label %12, label %._crit_edge, !llvm.loop !6
30: ; preds = %23
store i32 -1, ptr %4, align 4
br label %51
31: ; preds = %12
%32 = load i32, ptr %9, align 4
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %35
34: ; preds = %31
store i32 0, ptr %4, align 4
br label %51
35: ; preds = %31
%36 = load i32, ptr %9, align 4
%37 = load ptr, ptr %6, align 8
%38 = sext i32 %36 to i64
%39 = getelementptr inbounds i8, ptr %37, i64 %38
store ptr %39, ptr %6, align 8
%40 = load i32, ptr %9, align 4
%41 = sext i32 %40 to i64
%42 = load i64, ptr %7, align 8
%43 = sub i64 %42, %41
store i64 %43, ptr %7, align 8
%44 = load i32, ptr %9, align 4
%45 = load i32, ptr %8, align 4
%46 = add nsw i32 %45, %44
store i32 %46, ptr %8, align 4
br label %47
47: ; preds = %35
br label %48
48: ; preds = %47
br label %.backedge
._crit_edge: ; preds = %.backedge
br label %49
49: ; preds = %._crit_edge, %3
%50 = load i32, ptr %8, align 4
store i32 %50, ptr %4, align 4
br label %51
51: ; preds = %49, %34, %30
%52 = load i32, ptr %4, align 4
ret i32 %52
}
declare i32 @write(i32 noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpgw383qez.c'
source_filename = "/tmp/tmpgw383qez.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @main1(i32 noundef 100, i32 noundef 100)
%3 = call i32 @main1(i32 noundef 0, i32 noundef 15)
ret i32 0
}
declare i32 @main1(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/tmpgw383qez.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @main1(i32 noundef 100, i32 noundef 100)
%3 = call i32 @main1(i32 noundef 0, i32 noundef 15)
ret i32 0
}
declare i32 @main1(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/tmpcd79x5gi.c'
source_filename = "/tmp/tmpcd79x5gi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcd79x5gi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbav9souy.c'
source_filename = "/tmp/tmpbav9souy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [36 x i8] c"illegal proxy syntax [host:port]\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c":\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"no query!\0A\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"string encoding faild!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
store i32 0, ptr %11, align 4
store i32 0, ptr %12, align 4
store ptr null, ptr %14, align 8
%15 = load i32, ptr %4, align 4
%16 = icmp eq i32 %15, 1
br i1 %16, label %17, label %22
17: ; preds = %2
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 0
%20 = load ptr, ptr %19, align 8
%21 = call i32 @help(ptr noundef %20)
store i32 1, ptr %3, align 4
br label %151
22: ; preds = %2
store i32 1, ptr %6, align 4
br label %23
23: ; preds = %92, %22
%24 = load i32, ptr %6, align 4
%25 = load i32, ptr %4, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %95
27: ; preds = %23
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %6, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds ptr, ptr %28, i64 %30
%32 = load ptr, ptr %31, align 8
%33 = getelementptr inbounds i8, ptr %32, i64 0
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 45
br i1 %36, label %37, label %85
37: ; preds = %27
%38 = load ptr, ptr %5, align 8
%39 = load i32, ptr %6, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds ptr, ptr %38, i64 %40
%42 = load ptr, ptr %41, align 8
%43 = getelementptr inbounds i8, ptr %42, i64 1
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
switch i32 %45, label %84 [
i32 86, label %46
i32 114, label %48
i32 109, label %49
i32 112, label %57
i32 104, label %79
]
46: ; preds = %37
%47 = call i32 (...) @header()
store i32 0, ptr %3, align 4
br label %151
48: ; preds = %37
store i32 1, ptr %10, align 4
br label %84
49: ; preds = %37
%50 = load ptr, ptr %5, align 8
%51 = load i32, ptr %6, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %6, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds ptr, ptr %50, i64 %53
%55 = load ptr, ptr %54, align 8
%56 = call i32 @atoi(ptr noundef %55)
store i32 %56, ptr %9, align 4
br label %84
57: ; preds = %37
%58 = load ptr, ptr %5, align 8
%59 = load i32, ptr %6, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %6, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds ptr, ptr %58, i64 %61
%63 = load ptr, ptr %62, align 8
%64 = call ptr @strchr(ptr noundef %63, i8 noundef signext 58)
store ptr %64, ptr %13, align 8
%65 = icmp eq ptr %64, null
br i1 %65, label %66, label %69
66: ; preds = %57
%67 = load i32, ptr @stderr, align 4
%68 = call i32 @fprintf(i32 noundef %67, ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %151
69: ; preds = %57
%70 = load ptr, ptr %13, align 8
%71 = call ptr @strtok(ptr noundef %70, ptr noundef @.str.1)
%72 = call i32 @atoi(ptr noundef %71)
store i32 %72, ptr %7, align 4
%73 = load ptr, ptr %5, align 8
%74 = load i32, ptr %6, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds ptr, ptr %73, i64 %75
%77 = load ptr, ptr %76, align 8
%78 = call ptr @strtok(ptr noundef %77, ptr noundef @.str.1)
store ptr %78, ptr %13, align 8
store i32 1, ptr %12, align 4
br label %84
79: ; preds = %37
%80 = load ptr, ptr %5, align 8
%81 = getelementptr inbounds ptr, ptr %80, i64 0
%82 = load ptr, ptr %81, align 8
%83 = call i32 @help(ptr noundef %82)
store i32 0, ptr %3, align 4
br label %151
84: ; preds = %37, %69, %49, %48
br label %91
85: ; preds = %27
%86 = load ptr, ptr %5, align 8
%87 = load i32, ptr %6, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds ptr, ptr %86, i64 %88
%90 = load ptr, ptr %89, align 8
store ptr %90, ptr %14, align 8
br label %91
91: ; preds = %85, %84
br label %92
92: ; preds = %91
%93 = load i32, ptr %6, align 4
%94 = add nsw i32 %93, 1
store i32 %94, ptr %6, align 4
br label %23, !llvm.loop !6
95: ; preds = %23
br label %96
96: ; preds = %95
%97 = load ptr, ptr %14, align 8
%98 = icmp eq ptr %97, null
br i1 %98, label %99, label %106
99: ; preds = %96
%100 = load i32, ptr @stderr, align 4
%101 = call i32 @fprintf(i32 noundef %100, ptr noundef @.str.2)
%102 = load ptr, ptr %5, align 8
%103 = getelementptr inbounds ptr, ptr %102, i64 0
%104 = load ptr, ptr %103, align 8
%105 = call i32 @help(ptr noundef %104)
store i32 1, ptr %3, align 4
br label %151
106: ; preds = %96
%107 = load ptr, ptr %14, align 8
%108 = call ptr @encode(ptr noundef %107)
store ptr %108, ptr %14, align 8
%109 = icmp eq ptr %108, null
br i1 %109, label %110, label %113
110: ; preds = %106
%111 = load i32, ptr @stderr, align 4
%112 = call i32 @fprintf(i32 noundef %111, ptr noundef @.str.3)
store i32 2, ptr %3, align 4
br label %151
113: ; preds = %106
%114 = load i32, ptr %9, align 4
%115 = icmp ne i32 %114, 0
br i1 %115, label %127, label %116
116: ; preds = %113
%117 = load ptr, ptr %13, align 8
%118 = load i32, ptr %7, align 4
%119 = load i32, ptr %12, align 4
%120 = load ptr, ptr %14, align 8
%121 = load i32, ptr %10, align 4
%122 = load i32, ptr %11, align 4
%123 = call i32 @grep_google(ptr noundef %117, i32 noundef %118, i32 noundef %119, ptr noundef %120, i32 noundef %121, i32 noundef %122)
%124 = icmp sgt i32 %123, 0
br i1 %124, label %125, label %126
125: ; preds = %116
store i32 0, ptr %3, align 4
br label %151
126: ; preds = %116
store i32 1, ptr %3, align 4
br label %151
127: ; preds = %113
store i32 0, ptr %6, align 4
br label %128
128: ; preds = %149, %127
%129 = load i32, ptr %6, align 4
%130 = load i32, ptr %9, align 4
%131 = icmp slt i32 %129, %130
br i1 %131, label %132, label %150
132: ; preds = %128
%133 = load ptr, ptr %13, align 8
%134 = load i32, ptr %7, align 4
%135 = load i32, ptr %12, align 4
%136 = load ptr, ptr %14, align 8
%137 = load i32, ptr %10, align 4
%138 = load i32, ptr %11, align 4
%139 = call i32 @grep_google(ptr noundef %133, i32 noundef %134, i32 noundef %135, ptr noundef %136, i32 noundef %137, i32 noundef %138)
store i32 %139, ptr %8, align 4
%140 = load i32, ptr %11, align 4
%141 = add nsw i32 %140, 10
store i32 %141, ptr %11, align 4
%142 = load i32, ptr %8, align 4
%143 = icmp sle i32 %142, 0
br i1 %143, label %144, label %145
144: ; preds = %132
store i32 1, ptr %3, align 4
br label %151
145: ; preds = %132
%146 = load i32, ptr %8, align 4
%147 = load i32, ptr %6, align 4
%148 = add nsw i32 %147, %146
store i32 %148, ptr %6, align 4
br label %149
149: ; preds = %145
br label %128, !llvm.loop !8
150: ; preds = %128
store i32 0, ptr %3, align 4
br label %151
151: ; preds = %150, %144, %126, %125, %110, %99, %79, %66, %46, %17
%152 = load i32, ptr %3, align 4
ret i32 %152
}
declare i32 @help(ptr noundef) #1
declare i32 @header(...) #1
declare i32 @atoi(ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare ptr @strtok(ptr noundef, ptr noundef) #1
declare ptr @encode(ptr noundef) #1
declare i32 @grep_google(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbav9souy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [36 x i8] c"illegal proxy syntax [host:port]\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c":\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"no query!\0A\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"string encoding faild!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
store i32 0, ptr %11, align 4
store i32 0, ptr %12, align 4
store ptr null, ptr %14, align 8
%15 = load i32, ptr %4, align 4
%16 = icmp eq i32 %15, 1
br i1 %16, label %17, label %22
17: ; preds = %2
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 0
%20 = load ptr, ptr %19, align 8
%21 = call i32 @help(ptr noundef %20)
store i32 1, ptr %3, align 4
br label %155
22: ; preds = %2
store i32 1, 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 %.lr.ph, label %97
.lr.ph: ; preds = %22
br label %26
26: ; preds = %.lr.ph, %91
%27 = load ptr, ptr %5, align 8
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds ptr, ptr %27, i64 %29
%31 = load ptr, ptr %30, align 8
%32 = getelementptr inbounds i8, ptr %31, i64 0
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 45
br i1 %35, label %36, label %84
36: ; preds = %26
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %6, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds ptr, ptr %37, i64 %39
%41 = load ptr, ptr %40, align 8
%42 = getelementptr inbounds i8, ptr %41, i64 1
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
switch i32 %44, label %83 [
i32 86, label %45
i32 114, label %47
i32 109, label %48
i32 112, label %56
i32 104, label %78
]
45: ; preds = %36
%46 = call i32 (...) @header()
store i32 0, ptr %3, align 4
br label %155
47: ; preds = %36
store i32 1, ptr %10, align 4
br label %83
48: ; preds = %36
%49 = load ptr, ptr %5, align 8
%50 = load i32, ptr %6, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %6, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds ptr, ptr %49, i64 %52
%54 = load ptr, ptr %53, align 8
%55 = call i32 @atoi(ptr noundef %54)
store i32 %55, ptr %9, align 4
br label %83
56: ; preds = %36
%57 = load ptr, ptr %5, align 8
%58 = load i32, ptr %6, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %6, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds ptr, ptr %57, i64 %60
%62 = load ptr, ptr %61, align 8
%63 = call ptr @strchr(ptr noundef %62, i8 noundef signext 58)
store ptr %63, ptr %13, align 8
%64 = icmp eq ptr %63, null
br i1 %64, label %65, label %68
65: ; preds = %56
%66 = load i32, ptr @stderr, align 4
%67 = call i32 @fprintf(i32 noundef %66, ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %155
68: ; preds = %56
%69 = load ptr, ptr %13, align 8
%70 = call ptr @strtok(ptr noundef %69, ptr noundef @.str.1)
%71 = call i32 @atoi(ptr noundef %70)
store i32 %71, ptr %7, align 4
%72 = load ptr, ptr %5, align 8
%73 = load i32, ptr %6, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds ptr, ptr %72, i64 %74
%76 = load ptr, ptr %75, align 8
%77 = call ptr @strtok(ptr noundef %76, ptr noundef @.str.1)
store ptr %77, ptr %13, align 8
store i32 1, ptr %12, align 4
br label %83
78: ; preds = %36
%79 = load ptr, ptr %5, align 8
%80 = getelementptr inbounds ptr, ptr %79, i64 0
%81 = load ptr, ptr %80, align 8
%82 = call i32 @help(ptr noundef %81)
store i32 0, ptr %3, align 4
br label %155
83: ; preds = %68, %48, %47, %36
br label %90
84: ; preds = %26
%85 = load ptr, ptr %5, align 8
%86 = load i32, ptr %6, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds ptr, ptr %85, i64 %87
%89 = load ptr, ptr %88, align 8
store ptr %89, ptr %14, align 8
br label %90
90: ; preds = %84, %83
br label %91
91: ; preds = %90
%92 = load i32, ptr %6, align 4
%93 = add nsw i32 %92, 1
store i32 %93, ptr %6, align 4
%94 = load i32, ptr %6, align 4
%95 = load i32, ptr %4, align 4
%96 = icmp slt i32 %94, %95
br i1 %96, label %26, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %91
br label %97
97: ; preds = %._crit_edge, %22
br label %98
98: ; preds = %97
%99 = load ptr, ptr %14, align 8
%100 = icmp eq ptr %99, null
br i1 %100, label %101, label %108
101: ; preds = %98
%102 = load i32, ptr @stderr, align 4
%103 = call i32 @fprintf(i32 noundef %102, ptr noundef @.str.2)
%104 = load ptr, ptr %5, align 8
%105 = getelementptr inbounds ptr, ptr %104, i64 0
%106 = load ptr, ptr %105, align 8
%107 = call i32 @help(ptr noundef %106)
store i32 1, ptr %3, align 4
br label %155
108: ; preds = %98
%109 = load ptr, ptr %14, align 8
%110 = call ptr @encode(ptr noundef %109)
store ptr %110, ptr %14, align 8
%111 = icmp eq ptr %110, null
br i1 %111, label %112, label %115
112: ; preds = %108
%113 = load i32, ptr @stderr, align 4
%114 = call i32 @fprintf(i32 noundef %113, ptr noundef @.str.3)
store i32 2, ptr %3, align 4
br label %155
115: ; preds = %108
%116 = load i32, ptr %9, align 4
%117 = icmp ne i32 %116, 0
br i1 %117, label %129, label %118
118: ; preds = %115
%119 = load ptr, ptr %13, align 8
%120 = load i32, ptr %7, align 4
%121 = load i32, ptr %12, align 4
%122 = load ptr, ptr %14, align 8
%123 = load i32, ptr %10, align 4
%124 = load i32, ptr %11, align 4
%125 = call i32 @grep_google(ptr noundef %119, i32 noundef %120, i32 noundef %121, ptr noundef %122, i32 noundef %123, i32 noundef %124)
%126 = icmp sgt i32 %125, 0
br i1 %126, label %127, label %128
127: ; preds = %118
store i32 0, ptr %3, align 4
br label %155
128: ; preds = %118
store i32 1, ptr %3, align 4
br label %155
129: ; preds = %115
store i32 0, ptr %6, align 4
%130 = load i32, ptr %6, align 4
%131 = load i32, ptr %9, align 4
%132 = icmp slt i32 %130, %131
br i1 %132, label %.lr.ph2, label %154
.lr.ph2: ; preds = %129
br label %133
133: ; preds = %.lr.ph2, %150
%134 = load ptr, ptr %13, align 8
%135 = load i32, ptr %7, align 4
%136 = load i32, ptr %12, align 4
%137 = load ptr, ptr %14, align 8
%138 = load i32, ptr %10, align 4
%139 = load i32, ptr %11, align 4
%140 = call i32 @grep_google(ptr noundef %134, i32 noundef %135, i32 noundef %136, ptr noundef %137, i32 noundef %138, i32 noundef %139)
store i32 %140, ptr %8, align 4
%141 = load i32, ptr %11, align 4
%142 = add nsw i32 %141, 10
store i32 %142, ptr %11, align 4
%143 = load i32, ptr %8, align 4
%144 = icmp sle i32 %143, 0
br i1 %144, label %145, label %146
145: ; preds = %133
store i32 1, ptr %3, align 4
br label %155
146: ; preds = %133
%147 = load i32, ptr %8, align 4
%148 = load i32, ptr %6, align 4
%149 = add nsw i32 %148, %147
store i32 %149, ptr %6, align 4
br label %150
150: ; preds = %146
%151 = load i32, ptr %6, align 4
%152 = load i32, ptr %9, align 4
%153 = icmp slt i32 %151, %152
br i1 %153, label %133, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %150
br label %154
154: ; preds = %._crit_edge3, %129
store i32 0, ptr %3, align 4
br label %155
155: ; preds = %154, %145, %128, %127, %112, %101, %78, %65, %45, %17
%156 = load i32, ptr %3, align 4
ret i32 %156
}
declare i32 @help(ptr noundef) #1
declare i32 @header(...) #1
declare i32 @atoi(ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare ptr @strtok(ptr noundef, ptr noundef) #1
declare ptr @encode(ptr noundef) #1
declare i32 @grep_google(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.