llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmp9zsdimon.c'
source_filename = "/tmp/tmp9zsdimon.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 (...) @db_send()
ret i32 0
}
declare i32 @db_send(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9zsdimon.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 (...) @db_send()
ret i32 0
}
declare i32 @db_send(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmph80w7wzx.c'
source_filename = "/tmp/tmph80w7wzx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timespec = type { i64, i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @calc_elapsed_time(i64 %0, i32 %1, i64 %2, i32 %3) #0 {
%5 = alloca %struct.timespec, align 8
%6 = alloca %struct.timespec, align 8
%7 = alloca double, align 8
%8 = alloca i64, align 8
%9 = getelementptr inbounds { i64, i32 }, ptr %5, i32 0, i32 0
store i64 %0, ptr %9, align 8
%10 = getelementptr inbounds { i64, i32 }, ptr %5, i32 0, i32 1
store i32 %1, ptr %10, align 8
%11 = getelementptr inbounds { i64, i32 }, ptr %6, i32 0, i32 0
store i64 %2, ptr %11, align 8
%12 = getelementptr inbounds { i64, i32 }, ptr %6, i32 0, i32 1
store i32 %3, ptr %12, align 8
%13 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 1
%14 = load i32, ptr %13, align 8
%15 = getelementptr inbounds %struct.timespec, ptr %5, i32 0, i32 1
%16 = load i32, ptr %15, align 8
%17 = call double @difftime(i32 noundef %14, i32 noundef %16)
store double %17, ptr %7, align 8
%18 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 0
%19 = load i64, ptr %18, align 8
%20 = getelementptr inbounds %struct.timespec, ptr %5, i32 0, i32 0
%21 = load i64, ptr %20, align 8
%22 = sub nsw i64 %19, %21
store i64 %22, ptr %8, align 8
%23 = load double, ptr %7, align 8
%24 = load i64, ptr %8, align 8
%25 = sitofp i64 %24 to double
%26 = fdiv double %25, 1.000000e+09
%27 = fadd double %23, %26
ret double %27
}
declare double @difftime(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/tmph80w7wzx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timespec = type { i64, i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @calc_elapsed_time(i64 %0, i32 %1, i64 %2, i32 %3) #0 {
%5 = alloca %struct.timespec, align 8
%6 = alloca %struct.timespec, align 8
%7 = alloca double, align 8
%8 = alloca i64, align 8
%9 = getelementptr inbounds { i64, i32 }, ptr %5, i32 0, i32 0
store i64 %0, ptr %9, align 8
%10 = getelementptr inbounds { i64, i32 }, ptr %5, i32 0, i32 1
store i32 %1, ptr %10, align 8
%11 = getelementptr inbounds { i64, i32 }, ptr %6, i32 0, i32 0
store i64 %2, ptr %11, align 8
%12 = getelementptr inbounds { i64, i32 }, ptr %6, i32 0, i32 1
store i32 %3, ptr %12, align 8
%13 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 1
%14 = load i32, ptr %13, align 8
%15 = getelementptr inbounds %struct.timespec, ptr %5, i32 0, i32 1
%16 = load i32, ptr %15, align 8
%17 = call double @difftime(i32 noundef %14, i32 noundef %16)
store double %17, ptr %7, align 8
%18 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 0
%19 = load i64, ptr %18, align 8
%20 = getelementptr inbounds %struct.timespec, ptr %5, i32 0, i32 0
%21 = load i64, ptr %20, align 8
%22 = sub nsw i64 %19, %21
store i64 %22, ptr %8, align 8
%23 = load double, ptr %7, align 8
%24 = load i64, ptr %8, align 8
%25 = sitofp i64 %24 to double
%26 = fdiv double %25, 1.000000e+09
%27 = fadd double %23, %26
ret double %27
}
declare double @difftime(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/tmproxmh2jc.c'
source_filename = "/tmp/tmproxmh2jc.c"
target datalayout = "e-m:e-p270: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/tmproxmh2jc.c"
target datalayout = "e-m:e-p270: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/tmpw53elb8c.c'
source_filename = "/tmp/tmpw53elb8c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i64 @time(ptr noundef null)
%6 = trunc i64 %5 to i32
store i32 %6, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = call i32 @srand(i32 noundef %7)
store i32 0, ptr %2, align 4
br label %9
9: ; preds = %17, %0
%10 = load i32, ptr %2, align 4
%11 = icmp slt i32 %10, 10
br i1 %11, label %12, label %20
12: ; preds = %9
%13 = call i32 (...) @rand()
store i32 %13, ptr %3, align 4
%14 = load i32, ptr %3, align 4
%15 = srem i32 %14, 10
%16 = call i32 @printf(ptr noundef @.str, i32 noundef %15)
br label %17
17: ; preds = %12
%18 = load i32, ptr %2, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %2, align 4
br label %9, !llvm.loop !6
20: ; preds = %9
ret i32 0
}
declare i64 @time(ptr noundef) #1
declare i32 @srand(i32 noundef) #1
declare i32 @rand(...) #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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw53elb8c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i64 @time(ptr noundef null)
%6 = trunc i64 %5 to i32
store i32 %6, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = call i32 @srand(i32 noundef %7)
store i32 0, ptr %2, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp slt i32 %9, 10
br i1 %10, label %.lr.ph, label %21
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %16
%12 = call i32 (...) @rand()
store i32 %12, ptr %3, align 4
%13 = load i32, ptr %3, align 4
%14 = srem i32 %13, 10
%15 = call i32 @printf(ptr noundef @.str, i32 noundef %14)
br label %16
16: ; preds = %11
%17 = load i32, ptr %2, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %2, align 4
%19 = load i32, ptr %2, align 4
%20 = icmp slt i32 %19, 10
br i1 %20, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %21
21: ; preds = %._crit_edge, %0
ret i32 0
}
declare i64 @time(ptr noundef) #1
declare i32 @srand(i32 noundef) #1
declare i32 @rand(...) #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"}
|
; ModuleID = '/tmp/tmptgfmluik.c'
source_filename = "/tmp/tmptgfmluik.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @find_completion_word_start(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, ptr %10, i64 %12
store ptr %13, ptr %6, align 8
%14 = load ptr, ptr %4, align 8
store ptr %14, ptr %7, align 8
%15 = load ptr, ptr %4, align 8
store ptr %15, ptr %8, align 8
store i32 0, ptr %9, align 4
br label %16
16: ; preds = %51, %2
%17 = load ptr, ptr %8, align 8
%18 = load ptr, ptr %6, align 8
%19 = call ptr @find_word_end_termchar(ptr noundef %17, ptr noundef %18, i8 noundef signext 0)
store ptr %19, ptr %8, align 8
%20 = load ptr, ptr %8, align 8
%21 = load ptr, ptr %6, align 8
%22 = icmp uge ptr %20, %21
br i1 %22, label %28, label %23
23: ; preds = %16
%24 = load ptr, ptr %8, align 8
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %49
28: ; preds = %23, %16
%29 = load ptr, ptr %7, align 8
%30 = load ptr, ptr %6, align 8
%31 = call ptr @find_word_start(ptr noundef %29, ptr noundef %30)
store ptr %31, ptr %7, align 8
%32 = load ptr, ptr %7, align 8
%33 = load ptr, ptr %6, align 8
%34 = icmp uge ptr %32, %33
br i1 %34, label %40, label %35
35: ; preds = %28
%36 = load ptr, ptr %7, align 8
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %42
40: ; preds = %35, %28
%41 = load i32, ptr %5, align 4
store i32 %41, ptr %3, align 4
br label %54
42: ; preds = %35
%43 = load ptr, ptr %7, align 8
%44 = load ptr, ptr %4, align 8
%45 = ptrtoint ptr %43 to i64
%46 = ptrtoint ptr %44 to i64
%47 = sub i64 %45, %46
%48 = trunc i64 %47 to i32
store i32 %48, ptr %3, align 4
br label %54
49: ; preds = %23
%50 = load ptr, ptr %8, align 8
store ptr %50, ptr %7, align 8
br label %51
51: ; preds = %49
%52 = load i32, ptr %9, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %9, align 4
br label %16
54: ; preds = %42, %40
%55 = load i32, ptr %3, align 4
ret i32 %55
}
declare ptr @find_word_end_termchar(ptr noundef, ptr noundef, i8 noundef signext) #1
declare ptr @find_word_start(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/tmptgfmluik.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @find_completion_word_start(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, ptr %10, i64 %12
store ptr %13, ptr %6, align 8
%14 = load ptr, ptr %4, align 8
store ptr %14, ptr %7, align 8
%15 = load ptr, ptr %4, align 8
store ptr %15, ptr %8, align 8
store i32 0, ptr %9, align 4
%16 = load ptr, ptr %8, align 8
%17 = load ptr, ptr %6, align 8
%18 = call ptr @find_word_end_termchar(ptr noundef %16, ptr noundef %17, i8 noundef signext 0)
store ptr %18, ptr %8, align 8
%19 = load ptr, ptr %8, align 8
%20 = load ptr, ptr %6, align 8
%21 = icmp uge ptr %19, %20
br i1 %21, label %27, label %.lr.ph
.lr.ph: ; preds = %2
br label %22
22: ; preds = %.lr.ph, %50
%23 = load ptr, ptr %8, align 8
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 0
br i1 %26, label %._crit_edge, label %48
._crit_edge: ; preds = %22
br label %27
._crit_edge1: ; preds = %50
br label %27
27: ; preds = %._crit_edge1, %._crit_edge, %2
%28 = load ptr, ptr %7, align 8
%29 = load ptr, ptr %6, align 8
%30 = call ptr @find_word_start(ptr noundef %28, ptr noundef %29)
store ptr %30, ptr %7, align 8
%31 = load ptr, ptr %7, align 8
%32 = load ptr, ptr %6, align 8
%33 = icmp uge ptr %31, %32
br i1 %33, label %39, label %34
34: ; preds = %27
%35 = load ptr, ptr %7, align 8
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %34, %27
%40 = load i32, ptr %5, align 4
store i32 %40, ptr %3, align 4
br label %59
41: ; preds = %34
%42 = load ptr, ptr %7, align 8
%43 = load ptr, ptr %4, align 8
%44 = ptrtoint ptr %42 to i64
%45 = ptrtoint ptr %43 to i64
%46 = sub i64 %44, %45
%47 = trunc i64 %46 to i32
store i32 %47, ptr %3, align 4
br label %59
48: ; preds = %22
%49 = load ptr, ptr %8, align 8
store ptr %49, ptr %7, align 8
br label %50
50: ; preds = %48
%51 = load i32, ptr %9, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %9, align 4
%53 = load ptr, ptr %8, align 8
%54 = load ptr, ptr %6, align 8
%55 = call ptr @find_word_end_termchar(ptr noundef %53, ptr noundef %54, i8 noundef signext 0)
store ptr %55, ptr %8, align 8
%56 = load ptr, ptr %8, align 8
%57 = load ptr, ptr %6, align 8
%58 = icmp uge ptr %56, %57
br i1 %58, label %._crit_edge1, label %22
59: ; preds = %41, %39
%60 = load i32, ptr %3, align 4
ret i32 %60
}
declare ptr @find_word_end_termchar(ptr noundef, ptr noundef, i8 noundef signext) #1
declare ptr @find_word_start(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/tmpswrbw60h.c'
source_filename = "/tmp/tmpswrbw60h.c"
target datalayout = "e-m:e-p270: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/tmpswrbw60h.c"
target datalayout = "e-m:e-p270: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/tmpc3pig3w5.c'
source_filename = "/tmp/tmpc3pig3w5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"safe_sendto - Failed to semd\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @safe_sendto(i32 noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%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 ptr %3, ptr %8, align 8
%10 = load i32, ptr %5, align 4
%11 = load ptr, ptr %6, align 8
%12 = load i64, ptr %7, align 8
%13 = load ptr, ptr %8, align 8
%14 = call i32 @sendto(i32 noundef %10, ptr noundef %11, i64 noundef %12, i32 noundef 0, ptr noundef %13, i32 noundef 4)
store i32 %14, ptr %9, align 4
%15 = load i32, ptr %9, align 4
%16 = icmp eq i32 %15, -1
br i1 %16, label %17, label %21
17: ; preds = %4
%18 = call i32 @perror(ptr noundef @.str)
%19 = load i32, ptr @EXIT_FAILURE, align 4
%20 = call i32 @exit(i32 noundef %19) #3
unreachable
21: ; preds = %4
%22 = load i32, ptr %9, align 4
ret i32 %22
}
declare i32 @sendto(i32 noundef, ptr noundef, i64 noundef, i32 noundef, ptr 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/tmpc3pig3w5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"safe_sendto - Failed to semd\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @safe_sendto(i32 noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%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 ptr %3, ptr %8, align 8
%10 = load i32, ptr %5, align 4
%11 = load ptr, ptr %6, align 8
%12 = load i64, ptr %7, align 8
%13 = load ptr, ptr %8, align 8
%14 = call i32 @sendto(i32 noundef %10, ptr noundef %11, i64 noundef %12, i32 noundef 0, ptr noundef %13, i32 noundef 4)
store i32 %14, ptr %9, align 4
%15 = load i32, ptr %9, align 4
%16 = icmp eq i32 %15, -1
br i1 %16, label %17, label %21
17: ; preds = %4
%18 = call i32 @perror(ptr noundef @.str)
%19 = load i32, ptr @EXIT_FAILURE, align 4
%20 = call i32 @exit(i32 noundef %19) #3
unreachable
21: ; preds = %4
%22 = load i32, ptr %9, align 4
ret i32 %22
}
declare i32 @sendto(i32 noundef, ptr noundef, i64 noundef, i32 noundef, ptr 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/tmpvcoc67od.c'
source_filename = "/tmp/tmpvcoc67od.c"
target datalayout = "e-m:e-p270: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/tmpvcoc67od.c"
target datalayout = "e-m:e-p270: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/tmp2hci4d_c.c'
source_filename = "/tmp/tmp2hci4d_c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PEX_8111Write(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %5, align 4
%8 = icmp slt i32 %7, 4096
br i1 %8, label %9, label %14
9: ; preds = %3
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %5, align 4
%12 = load i32, ptr %6, align 4
%13 = call i32 @exec_write_cmd(ptr noundef %10, i32 noundef %11, i32 noundef 4, i32 noundef %12)
br label %28
14: ; preds = %3
%15 = load i32, ptr %5, align 4
%16 = icmp sge i32 %15, 4096
br i1 %16, label %17, label %27
17: ; preds = %14
%18 = load i32, ptr %5, align 4
%19 = icmp sle i32 %18, 8191
br i1 %19, label %20, label %27
20: ; preds = %17
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %5, align 4
%23 = call i32 @exec_write_cmd(ptr noundef %21, i32 noundef 132, i32 noundef 4, i32 noundef %22)
%24 = load ptr, ptr %4, align 8
%25 = load i32, ptr %6, align 4
%26 = call i32 @exec_write_cmd(ptr noundef %24, i32 noundef 136, i32 noundef 4, i32 noundef %25)
br label %27
27: ; preds = %20, %17, %14
br label %28
28: ; preds = %27, %9
ret void
}
declare i32 @exec_write_cmd(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/tmp2hci4d_c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PEX_8111Write(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %5, align 4
%8 = icmp slt i32 %7, 4096
br i1 %8, label %9, label %14
9: ; preds = %3
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %5, align 4
%12 = load i32, ptr %6, align 4
%13 = call i32 @exec_write_cmd(ptr noundef %10, i32 noundef %11, i32 noundef 4, i32 noundef %12)
br label %28
14: ; preds = %3
%15 = load i32, ptr %5, align 4
%16 = icmp sge i32 %15, 4096
br i1 %16, label %17, label %27
17: ; preds = %14
%18 = load i32, ptr %5, align 4
%19 = icmp sle i32 %18, 8191
br i1 %19, label %20, label %27
20: ; preds = %17
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %5, align 4
%23 = call i32 @exec_write_cmd(ptr noundef %21, i32 noundef 132, i32 noundef 4, i32 noundef %22)
%24 = load ptr, ptr %4, align 8
%25 = load i32, ptr %6, align 4
%26 = call i32 @exec_write_cmd(ptr noundef %24, i32 noundef 136, i32 noundef 4, i32 noundef %25)
br label %27
27: ; preds = %20, %17, %14
br label %28
28: ; preds = %27, %9
ret void
}
declare i32 @exec_write_cmd(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/tmppwbg675q.c'
source_filename = "/tmp/tmppwbg675q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%f %f %f\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%.1f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
store i32 0, ptr %1, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%6 = load float, ptr %2, align 4
%7 = load float, ptr %3, align 4
%8 = fcmp ogt float %6, %7
br i1 %8, label %9, label %16
9: ; preds = %0
%10 = load float, ptr %2, align 4
%11 = load float, ptr %4, align 4
%12 = fcmp ogt float %10, %11
br i1 %12, label %13, label %16
13: ; preds = %9
%14 = load float, ptr %2, align 4
%15 = call i32 @printf(ptr noundef @.str.1, float noundef %14)
br label %16
16: ; preds = %13, %9, %0
%17 = load float, ptr %3, align 4
%18 = load float, ptr %2, align 4
%19 = fcmp ogt float %17, %18
br i1 %19, label %20, label %27
20: ; preds = %16
%21 = load float, ptr %3, align 4
%22 = load float, ptr %4, align 4
%23 = fcmp ogt float %21, %22
br i1 %23, label %24, label %27
24: ; preds = %20
%25 = load float, ptr %3, align 4
%26 = call i32 @printf(ptr noundef @.str.1, float noundef %25)
br label %27
27: ; preds = %24, %20, %16
%28 = load float, ptr %4, align 4
%29 = load float, ptr %2, align 4
%30 = fcmp ogt float %28, %29
br i1 %30, label %31, label %38
31: ; preds = %27
%32 = load float, ptr %4, align 4
%33 = load float, ptr %3, align 4
%34 = fcmp ogt float %32, %33
br i1 %34, label %35, label %38
35: ; preds = %31
%36 = load float, ptr %4, align 4
%37 = call i32 @printf(ptr noundef @.str.1, float noundef %36)
br label %38
38: ; preds = %35, %31, %27
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppwbg675q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%f %f %f\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%.1f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
store i32 0, ptr %1, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%6 = load float, ptr %2, align 4
%7 = load float, ptr %3, align 4
%8 = fcmp ogt float %6, %7
br i1 %8, label %9, label %16
9: ; preds = %0
%10 = load float, ptr %2, align 4
%11 = load float, ptr %4, align 4
%12 = fcmp ogt float %10, %11
br i1 %12, label %13, label %16
13: ; preds = %9
%14 = load float, ptr %2, align 4
%15 = call i32 @printf(ptr noundef @.str.1, float noundef %14)
br label %16
16: ; preds = %13, %9, %0
%17 = load float, ptr %3, align 4
%18 = load float, ptr %2, align 4
%19 = fcmp ogt float %17, %18
br i1 %19, label %20, label %27
20: ; preds = %16
%21 = load float, ptr %3, align 4
%22 = load float, ptr %4, align 4
%23 = fcmp ogt float %21, %22
br i1 %23, label %24, label %27
24: ; preds = %20
%25 = load float, ptr %3, align 4
%26 = call i32 @printf(ptr noundef @.str.1, float noundef %25)
br label %27
27: ; preds = %24, %20, %16
%28 = load float, ptr %4, align 4
%29 = load float, ptr %2, align 4
%30 = fcmp ogt float %28, %29
br i1 %30, label %31, label %38
31: ; preds = %27
%32 = load float, ptr %4, align 4
%33 = load float, ptr %3, align 4
%34 = fcmp ogt float %32, %33
br i1 %34, label %35, label %38
35: ; preds = %31
%36 = load float, ptr %4, align 4
%37 = call i32 @printf(ptr noundef @.str.1, float noundef %36)
br label %38
38: ; preds = %35, %31, %27
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmexc94xa.c'
source_filename = "/tmp/tmpmexc94xa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @exists_non_delimiter(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %13, label %12
12: ; preds = %9, %2
store i32 0, ptr %3, align 4
br label %32
13: ; preds = %9
%14 = load ptr, ptr %4, align 8
store ptr %14, ptr %6, align 8
br label %15
15: ; preds = %28, %13
%16 = load ptr, ptr %6, align 8
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %31
20: ; preds = %15
%21 = load ptr, ptr %5, align 8
%22 = load ptr, ptr %6, align 8
%23 = load i8, ptr %22, align 1
%24 = call i32 @strchr(ptr noundef %21, i8 noundef signext %23)
%25 = icmp ne i32 %24, 0
br i1 %25, label %27, label %26
26: ; preds = %20
store i32 1, ptr %3, align 4
br label %32
27: ; preds = %20
br label %28
28: ; preds = %27
%29 = load ptr, ptr %6, align 8
%30 = getelementptr inbounds i8, ptr %29, i32 1
store ptr %30, ptr %6, align 8
br label %15, !llvm.loop !6
31: ; preds = %15
store i32 0, ptr %3, align 4
br label %32
32: ; preds = %31, %26, %12
%33 = load i32, ptr %3, align 4
ret i32 %33
}
declare i32 @strchr(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmexc94xa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @exists_non_delimiter(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %13, label %12
12: ; preds = %9, %2
store i32 0, ptr %3, align 4
br label %35
13: ; preds = %9
%14 = load ptr, ptr %4, align 8
store ptr %14, ptr %6, align 8
%15 = load ptr, ptr %6, align 8
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %17, 0
br i1 %18, label %.lr.ph, label %34
.lr.ph: ; preds = %13
br label %19
19: ; preds = %.lr.ph, %27
%20 = load ptr, ptr %5, align 8
%21 = load ptr, ptr %6, align 8
%22 = load i8, ptr %21, align 1
%23 = call i32 @strchr(ptr noundef %20, i8 noundef signext %22)
%24 = icmp ne i32 %23, 0
br i1 %24, label %26, label %25
25: ; preds = %19
store i32 1, ptr %3, align 4
br label %35
26: ; preds = %19
br label %27
27: ; preds = %26
%28 = load ptr, ptr %6, align 8
%29 = getelementptr inbounds i8, ptr %28, i32 1
store ptr %29, ptr %6, align 8
%30 = load ptr, ptr %6, align 8
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = icmp ne i32 %32, 0
br i1 %33, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %34
34: ; preds = %._crit_edge, %13
store i32 0, ptr %3, align 4
br label %35
35: ; preds = %34, %25, %12
%36 = load i32, ptr %3, align 4
ret i32 %36
}
declare i32 @strchr(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_l9td1uv.c'
source_filename = "/tmp/tmp_l9td1uv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [45 x i8] c"Information:\09File Name \09:[ %s ]\0A\00", align 1
@.str.1 = private unnamed_addr constant [45 x i8] c"Information:\09Function Name \09:[ %s ]\0A\00", align 1
@.str.2 = private unnamed_addr constant [47 x i8] c"Information:\09Line Number of Function \09:[ %d ]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @info_message(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %7)
%9 = load ptr, ptr %5, align 8
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %9)
%11 = load i32, ptr %6, align 4
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %11)
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/tmp_l9td1uv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [45 x i8] c"Information:\09File Name \09:[ %s ]\0A\00", align 1
@.str.1 = private unnamed_addr constant [45 x i8] c"Information:\09Function Name \09:[ %s ]\0A\00", align 1
@.str.2 = private unnamed_addr constant [47 x i8] c"Information:\09Line Number of Function \09:[ %d ]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @info_message(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %7)
%9 = load ptr, ptr %5, align 8
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %9)
%11 = load i32, ptr %6, align 4
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %11)
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/tmpt5q9hjxq.c'
source_filename = "/tmp/tmpt5q9hjxq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [613 x i8] c"Commands are: \0A add [Supply Card Number] \09\09\09- add any card to your hand (teh hacks)\0A buy [Supply Card Number] \09\09\09- buy a card at supply position\0A end \09\09\09 \09\09\09- end your turn\0A init [Number of Players] [Number of Bots] \09- initialize the game\0A num \09\09\09 \09\09\09- print number of cards in your hand\0A play [Hand Index] [Choice] [Choice] [Choice]\09- play a card from your hand\0A resign\09\09\09\09\09- end the game showing the current scores\0A show \09\09\09\09\09\09- show your current hand\0A stat \09\09\09\09\09\09- show your turn's status\0A supp \09\09\09\09\09\09- show the supply\0A whos \09\09\09 \09\09\09- whos turn\0A exit \09\09\09 \09\09\09- exit the interface\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printHelp() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt5q9hjxq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [613 x i8] c"Commands are: \0A add [Supply Card Number] \09\09\09- add any card to your hand (teh hacks)\0A buy [Supply Card Number] \09\09\09- buy a card at supply position\0A end \09\09\09 \09\09\09- end your turn\0A init [Number of Players] [Number of Bots] \09- initialize the game\0A num \09\09\09 \09\09\09- print number of cards in your hand\0A play [Hand Index] [Choice] [Choice] [Choice]\09- play a card from your hand\0A resign\09\09\09\09\09- end the game showing the current scores\0A show \09\09\09\09\09\09- show your current hand\0A stat \09\09\09\09\09\09- show your turn's status\0A supp \09\09\09\09\09\09- show the supply\0A whos \09\09\09 \09\09\09- whos turn\0A exit \09\09\09 \09\09\09- exit the interface\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printHelp() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjp6n65_r.c'
source_filename = "/tmp/tmpjp6n65_r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INT16_MAX = dso_local global i64 0, align 8
@INT16_MIN = dso_local global i64 0, align 8
@INT8_MAX = dso_local global i64 0, align 8
@INT8_MIN = 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/tmpjp6n65_r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INT16_MAX = dso_local global i64 0, align 8
@INT16_MIN = dso_local global i64 0, align 8
@INT8_MAX = dso_local global i64 0, align 8
@INT8_MIN = 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/tmpjwpgzxyq.c'
source_filename = "/tmp/tmpjwpgzxyq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @memcpy(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call ptr @memcpy_forward(ptr noundef %7, ptr noundef %8, i32 noundef %9)
ret ptr %10
}
declare ptr @memcpy_forward(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/tmpjwpgzxyq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @memcpy(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call ptr @memcpy_forward(ptr noundef %7, ptr noundef %8, i32 noundef %9)
ret ptr %10
}
declare ptr @memcpy_forward(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/tmpb65_vy7g.c'
source_filename = "/tmp/tmpb65_vy7g.c"
target datalayout = "e-m:e-p270: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/tmpb65_vy7g.c"
target datalayout = "e-m:e-p270: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/tmp4algb0hw.c'
source_filename = "/tmp/tmp4algb0hw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"\0A===== test_bit_set\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"Initial value : \00", align 1
@.str.2 = private unnamed_addr constant [28 x i8] c"Result of setting bit %d : \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_bit_set() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 240, ptr %1, align 4
store i32 2, ptr %2, align 4
%5 = load i32, ptr %1, align 4
%6 = load i32, ptr %2, align 4
%7 = shl i32 1, %6
%8 = or i32 %5, %7
store i32 %8, ptr %3, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%10 = load i32, ptr %1, align 4
%11 = call i32 @print_binary(i32 noundef %10)
%12 = load i32, ptr %2, align 4
%13 = add nsw i32 %12, 1
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %13)
%15 = load i32, ptr %3, align 4
%16 = call i32 @print_binary(i32 noundef %15)
%17 = load i32, ptr %3, align 4
%18 = icmp eq i32 %17, 244
%19 = zext i1 %18 to i32
%20 = call i32 @assert(i32 noundef %19)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @print_binary(i32 noundef) #1
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/tmp4algb0hw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"\0A===== test_bit_set\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"Initial value : \00", align 1
@.str.2 = private unnamed_addr constant [28 x i8] c"Result of setting bit %d : \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_bit_set() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 240, ptr %1, align 4
store i32 2, ptr %2, align 4
%5 = load i32, ptr %1, align 4
%6 = load i32, ptr %2, align 4
%7 = shl i32 1, %6
%8 = or i32 %5, %7
store i32 %8, ptr %3, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%10 = load i32, ptr %1, align 4
%11 = call i32 @print_binary(i32 noundef %10)
%12 = load i32, ptr %2, align 4
%13 = add nsw i32 %12, 1
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %13)
%15 = load i32, ptr %3, align 4
%16 = call i32 @print_binary(i32 noundef %15)
%17 = load i32, ptr %3, align 4
%18 = icmp eq i32 %17, 244
%19 = zext i1 %18 to i32
%20 = call i32 @assert(i32 noundef %19)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @print_binary(i32 noundef) #1
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/tmprzwk_wfo.c'
source_filename = "/tmp/tmprzwk_wfo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"UTF-8\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [22 x i8] c"utf8: iconv_open: %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [18 x i8] c"utf8: malloc: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"utf8: %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @utf8(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%11 = load ptr, ptr %5, align 8
%12 = call i64 @strlen(ptr noundef %11)
store i64 %12, ptr %10, align 8
%13 = load ptr, ptr %4, align 8
%14 = call i64 @iconv_open(ptr noundef @.str, ptr noundef %13)
store i64 %14, ptr %6, align 8
%15 = load i64, ptr %6, align 8
%16 = icmp eq i64 %15, -1
br i1 %16, label %17, label %22
17: ; preds = %2
%18 = load i32, ptr @stderr, align 4
%19 = load i32, ptr @errno, align 4
%20 = call ptr @strerror(i32 noundef %19)
%21 = call i32 @fprintf(i32 noundef %18, ptr noundef @.str.1, ptr noundef %20)
store ptr null, ptr %3, align 8
br label %53
22: ; preds = %2
%23 = load i64, ptr %10, align 8
%24 = mul i64 %23, 3
%25 = add i64 %24, 1
store i64 %25, ptr %9, align 8
%26 = load i64, ptr %9, align 8
%27 = call i64 @safe_malloc(i64 noundef %26)
%28 = inttoptr i64 %27 to ptr
store ptr %28, ptr %8, align 8
%29 = load ptr, ptr %8, align 8
%30 = icmp ne ptr %29, null
br i1 %30, label %36, label %31
31: ; preds = %22
%32 = load i32, ptr @stderr, align 4
%33 = load i32, ptr @errno, align 4
%34 = call ptr @strerror(i32 noundef %33)
%35 = call i32 @fprintf(i32 noundef %32, ptr noundef @.str.2, ptr noundef %34)
store ptr null, ptr %3, align 8
br label %53
36: ; preds = %22
%37 = load ptr, ptr %8, align 8
%38 = load i64, ptr %9, align 8
%39 = call i32 @memset(ptr noundef %37, i32 noundef 0, i64 noundef %38)
%40 = load ptr, ptr %8, align 8
store ptr %40, ptr %7, align 8
%41 = load i64, ptr %6, align 8
%42 = call i32 @iconv(i64 noundef %41, ptr noundef %5, ptr noundef %10, ptr noundef %7, ptr noundef %9)
%43 = icmp eq i32 -1, %42
br i1 %43, label %44, label %49
44: ; preds = %36
%45 = load i32, ptr @stderr, align 4
%46 = load i32, ptr @errno, align 4
%47 = call ptr @strerror(i32 noundef %46)
%48 = call i32 @fprintf(i32 noundef %45, ptr noundef @.str.3, ptr noundef %47)
store ptr null, ptr %3, align 8
br label %53
49: ; preds = %36
%50 = load i64, ptr %6, align 8
%51 = call i32 @iconv_close(i64 noundef %50)
%52 = load ptr, ptr %8, align 8
store ptr %52, ptr %3, align 8
br label %53
53: ; preds = %49, %44, %31, %17
%54 = load ptr, ptr %3, align 8
ret ptr %54
}
declare i64 @strlen(ptr noundef) #1
declare i64 @iconv_open(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i64 @safe_malloc(i64 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i64 noundef) #1
declare i32 @iconv(i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @iconv_close(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/tmprzwk_wfo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"UTF-8\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [22 x i8] c"utf8: iconv_open: %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [18 x i8] c"utf8: malloc: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"utf8: %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @utf8(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%11 = load ptr, ptr %5, align 8
%12 = call i64 @strlen(ptr noundef %11)
store i64 %12, ptr %10, align 8
%13 = load ptr, ptr %4, align 8
%14 = call i64 @iconv_open(ptr noundef @.str, ptr noundef %13)
store i64 %14, ptr %6, align 8
%15 = load i64, ptr %6, align 8
%16 = icmp eq i64 %15, -1
br i1 %16, label %17, label %22
17: ; preds = %2
%18 = load i32, ptr @stderr, align 4
%19 = load i32, ptr @errno, align 4
%20 = call ptr @strerror(i32 noundef %19)
%21 = call i32 @fprintf(i32 noundef %18, ptr noundef @.str.1, ptr noundef %20)
store ptr null, ptr %3, align 8
br label %53
22: ; preds = %2
%23 = load i64, ptr %10, align 8
%24 = mul i64 %23, 3
%25 = add i64 %24, 1
store i64 %25, ptr %9, align 8
%26 = load i64, ptr %9, align 8
%27 = call i64 @safe_malloc(i64 noundef %26)
%28 = inttoptr i64 %27 to ptr
store ptr %28, ptr %8, align 8
%29 = load ptr, ptr %8, align 8
%30 = icmp ne ptr %29, null
br i1 %30, label %36, label %31
31: ; preds = %22
%32 = load i32, ptr @stderr, align 4
%33 = load i32, ptr @errno, align 4
%34 = call ptr @strerror(i32 noundef %33)
%35 = call i32 @fprintf(i32 noundef %32, ptr noundef @.str.2, ptr noundef %34)
store ptr null, ptr %3, align 8
br label %53
36: ; preds = %22
%37 = load ptr, ptr %8, align 8
%38 = load i64, ptr %9, align 8
%39 = call i32 @memset(ptr noundef %37, i32 noundef 0, i64 noundef %38)
%40 = load ptr, ptr %8, align 8
store ptr %40, ptr %7, align 8
%41 = load i64, ptr %6, align 8
%42 = call i32 @iconv(i64 noundef %41, ptr noundef %5, ptr noundef %10, ptr noundef %7, ptr noundef %9)
%43 = icmp eq i32 -1, %42
br i1 %43, label %44, label %49
44: ; preds = %36
%45 = load i32, ptr @stderr, align 4
%46 = load i32, ptr @errno, align 4
%47 = call ptr @strerror(i32 noundef %46)
%48 = call i32 @fprintf(i32 noundef %45, ptr noundef @.str.3, ptr noundef %47)
store ptr null, ptr %3, align 8
br label %53
49: ; preds = %36
%50 = load i64, ptr %6, align 8
%51 = call i32 @iconv_close(i64 noundef %50)
%52 = load ptr, ptr %8, align 8
store ptr %52, ptr %3, align 8
br label %53
53: ; preds = %49, %44, %31, %17
%54 = load ptr, ptr %3, align 8
ret ptr %54
}
declare i64 @strlen(ptr noundef) #1
declare i64 @iconv_open(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i64 @safe_malloc(i64 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i64 noundef) #1
declare i32 @iconv(i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @iconv_close(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/tmpvbbhw2kh.c'
source_filename = "/tmp/tmpvbbhw2kh.c"
target datalayout = "e-m:e-p270: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/tmpvbbhw2kh.c"
target datalayout = "e-m:e-p270: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/tmp57yy8myh.c'
source_filename = "/tmp/tmp57yy8myh.c"
target datalayout = "e-m:e-p270: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/tmp57yy8myh.c"
target datalayout = "e-m:e-p270: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/tmp97ddy40c.c'
source_filename = "/tmp/tmp97ddy40c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @mstime() #0 {
%1 = alloca %struct.timeval, align 4
%2 = alloca i64, align 8
%3 = call i32 @gettimeofday(ptr noundef %1, ptr noundef null)
%4 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 0
%5 = load i32, ptr %4, align 4
%6 = mul nsw i32 %5, 1000
%7 = sext i32 %6 to i64
store i64 %7, ptr %2, align 8
%8 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 1
%9 = load i32, ptr %8, align 4
%10 = sdiv i32 %9, 1000
%11 = sext i32 %10 to i64
%12 = load i64, ptr %2, align 8
%13 = add nsw i64 %12, %11
store i64 %13, ptr %2, align 8
%14 = load i64, ptr %2, align 8
ret i64 %14
}
declare i32 @gettimeofday(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/tmp97ddy40c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @mstime() #0 {
%1 = alloca %struct.timeval, align 4
%2 = alloca i64, align 8
%3 = call i32 @gettimeofday(ptr noundef %1, ptr noundef null)
%4 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 0
%5 = load i32, ptr %4, align 4
%6 = mul nsw i32 %5, 1000
%7 = sext i32 %6 to i64
store i64 %7, ptr %2, align 8
%8 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 1
%9 = load i32, ptr %8, align 4
%10 = sdiv i32 %9, 1000
%11 = sext i32 %10 to i64
%12 = load i64, ptr %2, align 8
%13 = add nsw i64 %12, %11
store i64 %13, ptr %2, align 8
%14 = load i64, ptr %2, align 8
ret i64 %14
}
declare i32 @gettimeofday(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/tmp8dzxb8g7.c'
source_filename = "/tmp/tmp8dzxb8g7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SHT_REL = dso_local global i64 0, align 8
@SHT_RELA = 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/tmp8dzxb8g7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SHT_REL = dso_local global i64 0, align 8
@SHT_RELA = 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/tmprnbwe4p4.c'
source_filename = "/tmp/tmprnbwe4p4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Initial: \00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"After fry(): \00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"After boil(): \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 5, ptr %6, align 4
store i32 -8293, ptr %7, align 4
store ptr %6, ptr %8, align 8
store ptr %7, ptr %9, align 8
%10 = call i32 @printf(ptr noundef @.str)
%11 = load ptr, ptr %9, align 8
%12 = call i32 @display_status(ptr noundef %11)
%13 = load ptr, ptr %9, align 8
%14 = load ptr, ptr %8, align 8
%15 = call i32 @fry(ptr noundef %13, ptr noundef %14)
%16 = call i32 @printf(ptr noundef @.str.1)
%17 = load ptr, ptr %9, align 8
%18 = call i32 @display_status(ptr noundef %17)
%19 = load ptr, ptr %8, align 8
%20 = call i32 @boil(ptr noundef %9, ptr noundef %19)
%21 = call i32 @printf(ptr noundef @.str.2)
%22 = load ptr, ptr %9, align 8
%23 = call i32 @display_status(ptr noundef %22)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @display_status(ptr noundef) #1
declare i32 @fry(ptr noundef, ptr noundef) #1
declare i32 @boil(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/tmprnbwe4p4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Initial: \00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"After fry(): \00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"After boil(): \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 5, ptr %6, align 4
store i32 -8293, ptr %7, align 4
store ptr %6, ptr %8, align 8
store ptr %7, ptr %9, align 8
%10 = call i32 @printf(ptr noundef @.str)
%11 = load ptr, ptr %9, align 8
%12 = call i32 @display_status(ptr noundef %11)
%13 = load ptr, ptr %9, align 8
%14 = load ptr, ptr %8, align 8
%15 = call i32 @fry(ptr noundef %13, ptr noundef %14)
%16 = call i32 @printf(ptr noundef @.str.1)
%17 = load ptr, ptr %9, align 8
%18 = call i32 @display_status(ptr noundef %17)
%19 = load ptr, ptr %8, align 8
%20 = call i32 @boil(ptr noundef %9, ptr noundef %19)
%21 = call i32 @printf(ptr noundef @.str.2)
%22 = load ptr, ptr %9, align 8
%23 = call i32 @display_status(ptr noundef %22)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @display_status(ptr noundef) #1
declare i32 @fry(ptr noundef, ptr noundef) #1
declare i32 @boil(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/tmpxn2x4wl_.c'
source_filename = "/tmp/tmpxn2x4wl_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FALSE = dso_local global i32 0, align 4
@TRUE = dso_local global i32 0, align 4
@stdscr = dso_local global ptr null, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxn2x4wl_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FALSE = dso_local global i32 0, align 4
@TRUE = dso_local global i32 0, align 4
@stdscr = dso_local global ptr null, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprf7lvpjt.c'
source_filename = "/tmp/tmprf7lvpjt.c"
target datalayout = "e-m:e-p270: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/tmprf7lvpjt.c"
target datalayout = "e-m:e-p270: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/tmpfp2movhm.c'
source_filename = "/tmp/tmpfp2movhm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (...) @SSL_library_init()
%4 = call i32 (...) @OpenSSL_add_all_ciphers()
%5 = call i32 (...) @OpenSSL_add_all_digests()
%6 = call i32 (...) @RunTests()
store i32 %6, ptr %2, align 4
%7 = call i32 (...) @ERR_free_strings()
%8 = call i32 (...) @EVP_cleanup()
%9 = call i32 (...) @CRYPTO_cleanup_all_ex_data()
%10 = load i32, ptr %2, align 4
ret i32 %10
}
declare i32 @SSL_library_init(...) #1
declare i32 @OpenSSL_add_all_ciphers(...) #1
declare i32 @OpenSSL_add_all_digests(...) #1
declare i32 @RunTests(...) #1
declare i32 @ERR_free_strings(...) #1
declare i32 @EVP_cleanup(...) #1
declare i32 @CRYPTO_cleanup_all_ex_data(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfp2movhm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (...) @SSL_library_init()
%4 = call i32 (...) @OpenSSL_add_all_ciphers()
%5 = call i32 (...) @OpenSSL_add_all_digests()
%6 = call i32 (...) @RunTests()
store i32 %6, ptr %2, align 4
%7 = call i32 (...) @ERR_free_strings()
%8 = call i32 (...) @EVP_cleanup()
%9 = call i32 (...) @CRYPTO_cleanup_all_ex_data()
%10 = load i32, ptr %2, align 4
ret i32 %10
}
declare i32 @SSL_library_init(...) #1
declare i32 @OpenSSL_add_all_ciphers(...) #1
declare i32 @OpenSSL_add_all_digests(...) #1
declare i32 @RunTests(...) #1
declare i32 @ERR_free_strings(...) #1
declare i32 @EVP_cleanup(...) #1
declare i32 @CRYPTO_cleanup_all_ex_data(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppx8dc5s9.c'
source_filename = "/tmp/tmppx8dc5s9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"NSTACK too small in sort.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sort(i64 noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
store i64 %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%14 = load i64, ptr %3, align 8
store i64 %14, ptr %6, align 8
store i64 1, ptr %9, align 8
store i32 0, ptr %10, align 4
%15 = call ptr @ivector(i32 noundef 1, i32 noundef 50)
store ptr %15, ptr %11, align 8
br label %16
16: ; preds = %302, %2
%17 = load i64, ptr %6, align 8
%18 = load i64, ptr %9, align 8
%19 = sub i64 %17, %18
%20 = icmp ult i64 %19, 7
br i1 %20, label %21, label %86
21: ; preds = %16
%22 = load i64, ptr %9, align 8
%23 = add i64 %22, 1
store i64 %23, ptr %7, align 8
br label %24
24: ; preds = %64, %21
%25 = load i64, ptr %7, align 8
%26 = load i64, ptr %6, align 8
%27 = icmp ule i64 %25, %26
br i1 %27, label %28, label %67
28: ; preds = %24
%29 = load ptr, ptr %4, align 8
%30 = load i64, ptr %7, align 8
%31 = getelementptr inbounds double, ptr %29, i64 %30
%32 = load double, ptr %31, align 8
store double %32, ptr %12, align 8
%33 = load i64, ptr %7, align 8
%34 = sub i64 %33, 1
store i64 %34, ptr %5, align 8
br label %35
35: ; preds = %55, %28
%36 = load i64, ptr %5, align 8
%37 = icmp uge i64 %36, 1
br i1 %37, label %38, label %58
38: ; preds = %35
%39 = load ptr, ptr %4, align 8
%40 = load i64, ptr %5, align 8
%41 = getelementptr inbounds double, ptr %39, i64 %40
%42 = load double, ptr %41, align 8
%43 = load double, ptr %12, align 8
%44 = fcmp ole double %42, %43
br i1 %44, label %45, label %46
45: ; preds = %38
br label %58
46: ; preds = %38
%47 = load ptr, ptr %4, align 8
%48 = load i64, ptr %5, align 8
%49 = getelementptr inbounds double, ptr %47, i64 %48
%50 = load double, ptr %49, align 8
%51 = load ptr, ptr %4, align 8
%52 = load i64, ptr %5, align 8
%53 = add i64 %52, 1
%54 = getelementptr inbounds double, ptr %51, i64 %53
store double %50, ptr %54, align 8
br label %55
55: ; preds = %46
%56 = load i64, ptr %5, align 8
%57 = add i64 %56, -1
store i64 %57, ptr %5, align 8
br label %35, !llvm.loop !6
58: ; preds = %45, %35
%59 = load double, ptr %12, align 8
%60 = load ptr, ptr %4, align 8
%61 = load i64, ptr %5, align 8
%62 = add i64 %61, 1
%63 = getelementptr inbounds double, ptr %60, i64 %62
store double %59, ptr %63, align 8
br label %64
64: ; preds = %58
%65 = load i64, ptr %7, align 8
%66 = add i64 %65, 1
store i64 %66, ptr %7, align 8
br label %24, !llvm.loop !8
67: ; preds = %24
%68 = load i32, ptr %10, align 4
%69 = icmp eq i32 %68, 0
br i1 %69, label %70, label %71
70: ; preds = %67
br label %303
71: ; preds = %67
%72 = load ptr, ptr %11, align 8
%73 = load i32, ptr %10, align 4
%74 = add nsw i32 %73, -1
store i32 %74, ptr %10, align 4
%75 = sext i32 %73 to i64
%76 = getelementptr inbounds i32, ptr %72, i64 %75
%77 = load i32, ptr %76, align 4
%78 = sext i32 %77 to i64
store i64 %78, ptr %6, align 8
%79 = load ptr, ptr %11, align 8
%80 = load i32, ptr %10, align 4
%81 = add nsw i32 %80, -1
store i32 %81, ptr %10, align 4
%82 = sext i32 %80 to i64
%83 = getelementptr inbounds i32, ptr %79, i64 %82
%84 = load i32, ptr %83, align 4
%85 = sext i32 %84 to i64
store i64 %85, ptr %9, align 8
br label %302
86: ; preds = %16
%87 = load i64, ptr %9, align 8
%88 = load i64, ptr %6, align 8
%89 = add i64 %87, %88
%90 = lshr i64 %89, 1
store i64 %90, ptr %8, align 8
%91 = load ptr, ptr %4, align 8
%92 = load i64, ptr %8, align 8
%93 = getelementptr inbounds double, ptr %91, i64 %92
%94 = load double, ptr %93, align 8
store double %94, ptr %13, align 8
%95 = load ptr, ptr %4, align 8
%96 = load i64, ptr %9, align 8
%97 = add i64 %96, 1
%98 = getelementptr inbounds double, ptr %95, i64 %97
%99 = load double, ptr %98, align 8
%100 = load ptr, ptr %4, align 8
%101 = load i64, ptr %8, align 8
%102 = getelementptr inbounds double, ptr %100, i64 %101
store double %99, ptr %102, align 8
%103 = load double, ptr %13, align 8
%104 = load ptr, ptr %4, align 8
%105 = load i64, ptr %9, align 8
%106 = add i64 %105, 1
%107 = getelementptr inbounds double, ptr %104, i64 %106
store double %103, ptr %107, align 8
%108 = load ptr, ptr %4, align 8
%109 = load i64, ptr %9, align 8
%110 = add i64 %109, 1
%111 = getelementptr inbounds double, ptr %108, i64 %110
%112 = load double, ptr %111, align 8
%113 = load ptr, ptr %4, align 8
%114 = load i64, ptr %6, align 8
%115 = getelementptr inbounds double, ptr %113, i64 %114
%116 = load double, ptr %115, align 8
%117 = fcmp ogt double %112, %116
br i1 %117, label %118, label %136
118: ; preds = %86
%119 = load ptr, ptr %4, align 8
%120 = load i64, ptr %9, align 8
%121 = add i64 %120, 1
%122 = getelementptr inbounds double, ptr %119, i64 %121
%123 = load double, ptr %122, align 8
store double %123, ptr %13, align 8
%124 = load ptr, ptr %4, align 8
%125 = load i64, ptr %6, align 8
%126 = getelementptr inbounds double, ptr %124, i64 %125
%127 = load double, ptr %126, align 8
%128 = load ptr, ptr %4, align 8
%129 = load i64, ptr %9, align 8
%130 = add i64 %129, 1
%131 = getelementptr inbounds double, ptr %128, i64 %130
store double %127, ptr %131, align 8
%132 = load double, ptr %13, align 8
%133 = load ptr, ptr %4, align 8
%134 = load i64, ptr %6, align 8
%135 = getelementptr inbounds double, ptr %133, i64 %134
store double %132, ptr %135, align 8
br label %136
136: ; preds = %118, %86
%137 = load ptr, ptr %4, align 8
%138 = load i64, ptr %9, align 8
%139 = getelementptr inbounds double, ptr %137, i64 %138
%140 = load double, ptr %139, align 8
%141 = load ptr, ptr %4, align 8
%142 = load i64, ptr %6, align 8
%143 = getelementptr inbounds double, ptr %141, i64 %142
%144 = load double, ptr %143, align 8
%145 = fcmp ogt double %140, %144
br i1 %145, label %146, label %162
146: ; preds = %136
%147 = load ptr, ptr %4, align 8
%148 = load i64, ptr %9, align 8
%149 = getelementptr inbounds double, ptr %147, i64 %148
%150 = load double, ptr %149, align 8
store double %150, ptr %13, align 8
%151 = load ptr, ptr %4, align 8
%152 = load i64, ptr %6, align 8
%153 = getelementptr inbounds double, ptr %151, i64 %152
%154 = load double, ptr %153, align 8
%155 = load ptr, ptr %4, align 8
%156 = load i64, ptr %9, align 8
%157 = getelementptr inbounds double, ptr %155, i64 %156
store double %154, ptr %157, align 8
%158 = load double, ptr %13, align 8
%159 = load ptr, ptr %4, align 8
%160 = load i64, ptr %6, align 8
%161 = getelementptr inbounds double, ptr %159, i64 %160
store double %158, ptr %161, align 8
br label %162
162: ; preds = %146, %136
%163 = load ptr, ptr %4, align 8
%164 = load i64, ptr %9, align 8
%165 = add i64 %164, 1
%166 = getelementptr inbounds double, ptr %163, i64 %165
%167 = load double, ptr %166, align 8
%168 = load ptr, ptr %4, align 8
%169 = load i64, ptr %9, align 8
%170 = getelementptr inbounds double, ptr %168, i64 %169
%171 = load double, ptr %170, align 8
%172 = fcmp ogt double %167, %171
br i1 %172, label %173, label %191
173: ; preds = %162
%174 = load ptr, ptr %4, align 8
%175 = load i64, ptr %9, align 8
%176 = add i64 %175, 1
%177 = getelementptr inbounds double, ptr %174, i64 %176
%178 = load double, ptr %177, align 8
store double %178, ptr %13, align 8
%179 = load ptr, ptr %4, align 8
%180 = load i64, ptr %9, align 8
%181 = getelementptr inbounds double, ptr %179, i64 %180
%182 = load double, ptr %181, align 8
%183 = load ptr, ptr %4, align 8
%184 = load i64, ptr %9, align 8
%185 = add i64 %184, 1
%186 = getelementptr inbounds double, ptr %183, i64 %185
store double %182, ptr %186, align 8
%187 = load double, ptr %13, align 8
%188 = load ptr, ptr %4, align 8
%189 = load i64, ptr %9, align 8
%190 = getelementptr inbounds double, ptr %188, i64 %189
store double %187, ptr %190, align 8
br label %191
191: ; preds = %173, %162
%192 = load i64, ptr %9, align 8
%193 = add i64 %192, 1
store i64 %193, ptr %5, align 8
%194 = load i64, ptr %6, align 8
store i64 %194, ptr %7, align 8
%195 = load ptr, ptr %4, align 8
%196 = load i64, ptr %9, align 8
%197 = getelementptr inbounds double, ptr %195, i64 %196
%198 = load double, ptr %197, align 8
store double %198, ptr %12, align 8
br label %199
199: ; preds = %226, %191
br label %200
200: ; preds = %203, %199
%201 = load i64, ptr %5, align 8
%202 = add i64 %201, 1
store i64 %202, ptr %5, align 8
br label %203
203: ; preds = %200
%204 = load ptr, ptr %4, align 8
%205 = load i64, ptr %5, align 8
%206 = getelementptr inbounds double, ptr %204, i64 %205
%207 = load double, ptr %206, align 8
%208 = load double, ptr %12, align 8
%209 = fcmp olt double %207, %208
br i1 %209, label %200, label %210, !llvm.loop !9
210: ; preds = %203
br label %211
211: ; preds = %214, %210
%212 = load i64, ptr %7, align 8
%213 = add i64 %212, -1
store i64 %213, ptr %7, align 8
br label %214
214: ; preds = %211
%215 = load ptr, ptr %4, align 8
%216 = load i64, ptr %7, align 8
%217 = getelementptr inbounds double, ptr %215, i64 %216
%218 = load double, ptr %217, align 8
%219 = load double, ptr %12, align 8
%220 = fcmp ogt double %218, %219
br i1 %220, label %211, label %221, !llvm.loop !10
221: ; preds = %214
%222 = load i64, ptr %7, align 8
%223 = load i64, ptr %5, align 8
%224 = icmp ult i64 %222, %223
br i1 %224, label %225, label %226
225: ; preds = %221
br label %242
226: ; preds = %221
%227 = load ptr, ptr %4, align 8
%228 = load i64, ptr %5, align 8
%229 = getelementptr inbounds double, ptr %227, i64 %228
%230 = load double, ptr %229, align 8
store double %230, ptr %13, align 8
%231 = load ptr, ptr %4, align 8
%232 = load i64, ptr %7, align 8
%233 = getelementptr inbounds double, ptr %231, i64 %232
%234 = load double, ptr %233, align 8
%235 = load ptr, ptr %4, align 8
%236 = load i64, ptr %5, align 8
%237 = getelementptr inbounds double, ptr %235, i64 %236
store double %234, ptr %237, align 8
%238 = load double, ptr %13, align 8
%239 = load ptr, ptr %4, align 8
%240 = load i64, ptr %7, align 8
%241 = getelementptr inbounds double, ptr %239, i64 %240
store double %238, ptr %241, align 8
br label %199
242: ; preds = %225
%243 = load ptr, ptr %4, align 8
%244 = load i64, ptr %7, align 8
%245 = getelementptr inbounds double, ptr %243, i64 %244
%246 = load double, ptr %245, align 8
%247 = load ptr, ptr %4, align 8
%248 = load i64, ptr %9, align 8
%249 = getelementptr inbounds double, ptr %247, i64 %248
store double %246, ptr %249, align 8
%250 = load double, ptr %12, align 8
%251 = load ptr, ptr %4, align 8
%252 = load i64, ptr %7, align 8
%253 = getelementptr inbounds double, ptr %251, i64 %252
store double %250, ptr %253, align 8
%254 = load i32, ptr %10, align 4
%255 = add nsw i32 %254, 2
store i32 %255, ptr %10, align 4
%256 = load i32, ptr %10, align 4
%257 = icmp sgt i32 %256, 50
br i1 %257, label %258, label %260
258: ; preds = %242
%259 = call i32 @nrerror(ptr noundef @.str)
br label %260
260: ; preds = %258, %242
%261 = load i64, ptr %6, align 8
%262 = load i64, ptr %5, align 8
%263 = sub i64 %261, %262
%264 = add i64 %263, 1
%265 = load i64, ptr %7, align 8
%266 = load i64, ptr %9, align 8
%267 = sub i64 %265, %266
%268 = icmp uge i64 %264, %267
br i1 %268, label %269, label %285
269: ; preds = %260
%270 = load i64, ptr %6, align 8
%271 = trunc i64 %270 to i32
%272 = load ptr, ptr %11, align 8
%273 = load i32, ptr %10, align 4
%274 = sext i32 %273 to i64
%275 = getelementptr inbounds i32, ptr %272, i64 %274
store i32 %271, ptr %275, align 4
%276 = load i64, ptr %5, align 8
%277 = trunc i64 %276 to i32
%278 = load ptr, ptr %11, align 8
%279 = load i32, ptr %10, align 4
%280 = sub nsw i32 %279, 1
%281 = sext i32 %280 to i64
%282 = getelementptr inbounds i32, ptr %278, i64 %281
store i32 %277, ptr %282, align 4
%283 = load i64, ptr %7, align 8
%284 = sub i64 %283, 1
store i64 %284, ptr %6, align 8
br label %301
285: ; preds = %260
%286 = load i64, ptr %7, align 8
%287 = sub i64 %286, 1
%288 = trunc i64 %287 to i32
%289 = load ptr, ptr %11, align 8
%290 = load i32, ptr %10, align 4
%291 = sext i32 %290 to i64
%292 = getelementptr inbounds i32, ptr %289, i64 %291
store i32 %288, ptr %292, align 4
%293 = load i64, ptr %9, align 8
%294 = trunc i64 %293 to i32
%295 = load ptr, ptr %11, align 8
%296 = load i32, ptr %10, align 4
%297 = sub nsw i32 %296, 1
%298 = sext i32 %297 to i64
%299 = getelementptr inbounds i32, ptr %295, i64 %298
store i32 %294, ptr %299, align 4
%300 = load i64, ptr %5, align 8
store i64 %300, ptr %9, align 8
br label %301
301: ; preds = %285, %269
br label %302
302: ; preds = %301, %71
br label %16
303: ; preds = %70
%304 = load ptr, ptr %11, align 8
%305 = call i32 @free_ivector(ptr noundef %304, i32 noundef 1, i32 noundef 50)
ret void
}
declare ptr @ivector(i32 noundef, i32 noundef) #1
declare i32 @nrerror(ptr noundef) #1
declare i32 @free_ivector(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppx8dc5s9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"NSTACK too small in sort.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sort(i64 noundef %0, ptr noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
store i64 %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%14 = load i64, ptr %3, align 8
store i64 %14, ptr %6, align 8
store i64 1, ptr %9, align 8
store i32 0, ptr %10, align 4
%15 = call ptr @ivector(i32 noundef 1, i32 noundef 50)
store ptr %15, ptr %11, align 8
br label %16
16: ; preds = %305, %2
%17 = load i64, ptr %6, align 8
%18 = load i64, ptr %9, align 8
%19 = sub i64 %17, %18
%20 = icmp ult i64 %19, 7
br i1 %20, label %21, label %89
21: ; preds = %16
%22 = load i64, ptr %9, align 8
%23 = add i64 %22, 1
store i64 %23, ptr %7, align 8
%24 = load i64, ptr %7, align 8
%25 = load i64, ptr %6, align 8
%26 = icmp ule i64 %24, %25
br i1 %26, label %.lr.ph1, label %70
.lr.ph1: ; preds = %21
br label %27
27: ; preds = %.lr.ph1, %64
%28 = load ptr, ptr %4, align 8
%29 = load i64, ptr %7, align 8
%30 = getelementptr inbounds double, ptr %28, i64 %29
%31 = load double, ptr %30, align 8
store double %31, ptr %12, align 8
%32 = load i64, ptr %7, align 8
%33 = sub i64 %32, 1
store i64 %33, ptr %5, align 8
%34 = load i64, ptr %5, align 8
%35 = icmp uge i64 %34, 1
br i1 %35, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %27
br label %36
36: ; preds = %.lr.ph, %53
%37 = load ptr, ptr %4, align 8
%38 = load i64, ptr %5, align 8
%39 = getelementptr inbounds double, ptr %37, i64 %38
%40 = load double, ptr %39, align 8
%41 = load double, ptr %12, align 8
%42 = fcmp ole double %40, %41
br i1 %42, label %43, label %44
43: ; preds = %36
br label %58
44: ; preds = %36
%45 = load ptr, ptr %4, align 8
%46 = load i64, ptr %5, align 8
%47 = getelementptr inbounds double, ptr %45, i64 %46
%48 = load double, ptr %47, align 8
%49 = load ptr, ptr %4, align 8
%50 = load i64, ptr %5, align 8
%51 = add i64 %50, 1
%52 = getelementptr inbounds double, ptr %49, i64 %51
store double %48, ptr %52, align 8
br label %53
53: ; preds = %44
%54 = load i64, ptr %5, align 8
%55 = add i64 %54, -1
store i64 %55, ptr %5, align 8
%56 = load i64, ptr %5, align 8
%57 = icmp uge i64 %56, 1
br i1 %57, label %36, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %53
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %27
br label %58
58: ; preds = %.loopexit, %43
%59 = load double, ptr %12, align 8
%60 = load ptr, ptr %4, align 8
%61 = load i64, ptr %5, align 8
%62 = add i64 %61, 1
%63 = getelementptr inbounds double, ptr %60, i64 %62
store double %59, ptr %63, align 8
br label %64
64: ; preds = %58
%65 = load i64, ptr %7, align 8
%66 = add i64 %65, 1
store i64 %66, ptr %7, align 8
%67 = load i64, ptr %7, align 8
%68 = load i64, ptr %6, align 8
%69 = icmp ule i64 %67, %68
br i1 %69, label %27, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %64
br label %70
70: ; preds = %._crit_edge, %21
%71 = load i32, ptr %10, align 4
%72 = icmp eq i32 %71, 0
br i1 %72, label %73, label %74
73: ; preds = %70
br label %306
74: ; preds = %70
%75 = load ptr, ptr %11, align 8
%76 = load i32, ptr %10, align 4
%77 = add nsw i32 %76, -1
store i32 %77, ptr %10, align 4
%78 = sext i32 %76 to i64
%79 = getelementptr inbounds i32, ptr %75, i64 %78
%80 = load i32, ptr %79, align 4
%81 = sext i32 %80 to i64
store i64 %81, ptr %6, align 8
%82 = load ptr, ptr %11, align 8
%83 = load i32, ptr %10, align 4
%84 = add nsw i32 %83, -1
store i32 %84, ptr %10, align 4
%85 = sext i32 %83 to i64
%86 = getelementptr inbounds i32, ptr %82, i64 %85
%87 = load i32, ptr %86, align 4
%88 = sext i32 %87 to i64
store i64 %88, ptr %9, align 8
br label %305
89: ; preds = %16
%90 = load i64, ptr %9, align 8
%91 = load i64, ptr %6, align 8
%92 = add i64 %90, %91
%93 = lshr i64 %92, 1
store i64 %93, ptr %8, align 8
%94 = load ptr, ptr %4, align 8
%95 = load i64, ptr %8, align 8
%96 = getelementptr inbounds double, ptr %94, i64 %95
%97 = load double, ptr %96, align 8
store double %97, ptr %13, align 8
%98 = load ptr, ptr %4, align 8
%99 = load i64, ptr %9, align 8
%100 = add i64 %99, 1
%101 = getelementptr inbounds double, ptr %98, i64 %100
%102 = load double, ptr %101, align 8
%103 = load ptr, ptr %4, align 8
%104 = load i64, ptr %8, align 8
%105 = getelementptr inbounds double, ptr %103, i64 %104
store double %102, ptr %105, align 8
%106 = load double, ptr %13, align 8
%107 = load ptr, ptr %4, align 8
%108 = load i64, ptr %9, align 8
%109 = add i64 %108, 1
%110 = getelementptr inbounds double, ptr %107, i64 %109
store double %106, ptr %110, align 8
%111 = load ptr, ptr %4, align 8
%112 = load i64, ptr %9, align 8
%113 = add i64 %112, 1
%114 = getelementptr inbounds double, ptr %111, i64 %113
%115 = load double, ptr %114, align 8
%116 = load ptr, ptr %4, align 8
%117 = load i64, ptr %6, align 8
%118 = getelementptr inbounds double, ptr %116, i64 %117
%119 = load double, ptr %118, align 8
%120 = fcmp ogt double %115, %119
br i1 %120, label %121, label %139
121: ; preds = %89
%122 = load ptr, ptr %4, align 8
%123 = load i64, ptr %9, align 8
%124 = add i64 %123, 1
%125 = getelementptr inbounds double, ptr %122, i64 %124
%126 = load double, ptr %125, align 8
store double %126, ptr %13, align 8
%127 = load ptr, ptr %4, align 8
%128 = load i64, ptr %6, align 8
%129 = getelementptr inbounds double, ptr %127, i64 %128
%130 = load double, ptr %129, align 8
%131 = load ptr, ptr %4, align 8
%132 = load i64, ptr %9, align 8
%133 = add i64 %132, 1
%134 = getelementptr inbounds double, ptr %131, i64 %133
store double %130, ptr %134, align 8
%135 = load double, ptr %13, align 8
%136 = load ptr, ptr %4, align 8
%137 = load i64, ptr %6, align 8
%138 = getelementptr inbounds double, ptr %136, i64 %137
store double %135, ptr %138, align 8
br label %139
139: ; preds = %121, %89
%140 = load ptr, ptr %4, align 8
%141 = load i64, ptr %9, align 8
%142 = getelementptr inbounds double, ptr %140, i64 %141
%143 = load double, ptr %142, align 8
%144 = load ptr, ptr %4, align 8
%145 = load i64, ptr %6, align 8
%146 = getelementptr inbounds double, ptr %144, i64 %145
%147 = load double, ptr %146, align 8
%148 = fcmp ogt double %143, %147
br i1 %148, label %149, label %165
149: ; preds = %139
%150 = load ptr, ptr %4, align 8
%151 = load i64, ptr %9, align 8
%152 = getelementptr inbounds double, ptr %150, i64 %151
%153 = load double, ptr %152, align 8
store double %153, ptr %13, align 8
%154 = load ptr, ptr %4, align 8
%155 = load i64, ptr %6, align 8
%156 = getelementptr inbounds double, ptr %154, i64 %155
%157 = load double, ptr %156, align 8
%158 = load ptr, ptr %4, align 8
%159 = load i64, ptr %9, align 8
%160 = getelementptr inbounds double, ptr %158, i64 %159
store double %157, ptr %160, align 8
%161 = load double, ptr %13, align 8
%162 = load ptr, ptr %4, align 8
%163 = load i64, ptr %6, align 8
%164 = getelementptr inbounds double, ptr %162, i64 %163
store double %161, ptr %164, align 8
br label %165
165: ; preds = %149, %139
%166 = load ptr, ptr %4, align 8
%167 = load i64, ptr %9, align 8
%168 = add i64 %167, 1
%169 = getelementptr inbounds double, ptr %166, i64 %168
%170 = load double, ptr %169, align 8
%171 = load ptr, ptr %4, align 8
%172 = load i64, ptr %9, align 8
%173 = getelementptr inbounds double, ptr %171, i64 %172
%174 = load double, ptr %173, align 8
%175 = fcmp ogt double %170, %174
br i1 %175, label %176, label %194
176: ; preds = %165
%177 = load ptr, ptr %4, align 8
%178 = load i64, ptr %9, align 8
%179 = add i64 %178, 1
%180 = getelementptr inbounds double, ptr %177, i64 %179
%181 = load double, ptr %180, align 8
store double %181, ptr %13, align 8
%182 = load ptr, ptr %4, align 8
%183 = load i64, ptr %9, align 8
%184 = getelementptr inbounds double, ptr %182, i64 %183
%185 = load double, ptr %184, align 8
%186 = load ptr, ptr %4, align 8
%187 = load i64, ptr %9, align 8
%188 = add i64 %187, 1
%189 = getelementptr inbounds double, ptr %186, i64 %188
store double %185, ptr %189, align 8
%190 = load double, ptr %13, align 8
%191 = load ptr, ptr %4, align 8
%192 = load i64, ptr %9, align 8
%193 = getelementptr inbounds double, ptr %191, i64 %192
store double %190, ptr %193, align 8
br label %194
194: ; preds = %176, %165
%195 = load i64, ptr %9, align 8
%196 = add i64 %195, 1
store i64 %196, ptr %5, align 8
%197 = load i64, ptr %6, align 8
store i64 %197, ptr %7, align 8
%198 = load ptr, ptr %4, align 8
%199 = load i64, ptr %9, align 8
%200 = getelementptr inbounds double, ptr %198, i64 %199
%201 = load double, ptr %200, align 8
store double %201, ptr %12, align 8
br label %202
202: ; preds = %229, %194
br label %203
203: ; preds = %206, %202
%204 = load i64, ptr %5, align 8
%205 = add i64 %204, 1
store i64 %205, ptr %5, align 8
br label %206
206: ; preds = %203
%207 = load ptr, ptr %4, align 8
%208 = load i64, ptr %5, align 8
%209 = getelementptr inbounds double, ptr %207, i64 %208
%210 = load double, ptr %209, align 8
%211 = load double, ptr %12, align 8
%212 = fcmp olt double %210, %211
br i1 %212, label %203, label %213, !llvm.loop !9
213: ; preds = %206
br label %214
214: ; preds = %217, %213
%215 = load i64, ptr %7, align 8
%216 = add i64 %215, -1
store i64 %216, ptr %7, align 8
br label %217
217: ; preds = %214
%218 = load ptr, ptr %4, align 8
%219 = load i64, ptr %7, align 8
%220 = getelementptr inbounds double, ptr %218, i64 %219
%221 = load double, ptr %220, align 8
%222 = load double, ptr %12, align 8
%223 = fcmp ogt double %221, %222
br i1 %223, label %214, label %224, !llvm.loop !10
224: ; preds = %217
%225 = load i64, ptr %7, align 8
%226 = load i64, ptr %5, align 8
%227 = icmp ult i64 %225, %226
br i1 %227, label %228, label %229
228: ; preds = %224
br label %245
229: ; preds = %224
%230 = load ptr, ptr %4, align 8
%231 = load i64, ptr %5, align 8
%232 = getelementptr inbounds double, ptr %230, i64 %231
%233 = load double, ptr %232, align 8
store double %233, ptr %13, align 8
%234 = load ptr, ptr %4, align 8
%235 = load i64, ptr %7, align 8
%236 = getelementptr inbounds double, ptr %234, i64 %235
%237 = load double, ptr %236, align 8
%238 = load ptr, ptr %4, align 8
%239 = load i64, ptr %5, align 8
%240 = getelementptr inbounds double, ptr %238, i64 %239
store double %237, ptr %240, align 8
%241 = load double, ptr %13, align 8
%242 = load ptr, ptr %4, align 8
%243 = load i64, ptr %7, align 8
%244 = getelementptr inbounds double, ptr %242, i64 %243
store double %241, ptr %244, align 8
br label %202
245: ; preds = %228
%246 = load ptr, ptr %4, align 8
%247 = load i64, ptr %7, align 8
%248 = getelementptr inbounds double, ptr %246, i64 %247
%249 = load double, ptr %248, align 8
%250 = load ptr, ptr %4, align 8
%251 = load i64, ptr %9, align 8
%252 = getelementptr inbounds double, ptr %250, i64 %251
store double %249, ptr %252, align 8
%253 = load double, ptr %12, align 8
%254 = load ptr, ptr %4, align 8
%255 = load i64, ptr %7, align 8
%256 = getelementptr inbounds double, ptr %254, i64 %255
store double %253, ptr %256, align 8
%257 = load i32, ptr %10, align 4
%258 = add nsw i32 %257, 2
store i32 %258, ptr %10, align 4
%259 = load i32, ptr %10, align 4
%260 = icmp sgt i32 %259, 50
br i1 %260, label %261, label %263
261: ; preds = %245
%262 = call i32 @nrerror(ptr noundef @.str)
br label %263
263: ; preds = %261, %245
%264 = load i64, ptr %6, align 8
%265 = load i64, ptr %5, align 8
%266 = sub i64 %264, %265
%267 = add i64 %266, 1
%268 = load i64, ptr %7, align 8
%269 = load i64, ptr %9, align 8
%270 = sub i64 %268, %269
%271 = icmp uge i64 %267, %270
br i1 %271, label %272, label %288
272: ; preds = %263
%273 = load i64, ptr %6, align 8
%274 = trunc i64 %273 to i32
%275 = load ptr, ptr %11, align 8
%276 = load i32, ptr %10, align 4
%277 = sext i32 %276 to i64
%278 = getelementptr inbounds i32, ptr %275, i64 %277
store i32 %274, ptr %278, align 4
%279 = load i64, ptr %5, align 8
%280 = trunc i64 %279 to i32
%281 = load ptr, ptr %11, align 8
%282 = load i32, ptr %10, align 4
%283 = sub nsw i32 %282, 1
%284 = sext i32 %283 to i64
%285 = getelementptr inbounds i32, ptr %281, i64 %284
store i32 %280, ptr %285, align 4
%286 = load i64, ptr %7, align 8
%287 = sub i64 %286, 1
store i64 %287, ptr %6, align 8
br label %304
288: ; preds = %263
%289 = load i64, ptr %7, align 8
%290 = sub i64 %289, 1
%291 = trunc i64 %290 to i32
%292 = load ptr, ptr %11, align 8
%293 = load i32, ptr %10, align 4
%294 = sext i32 %293 to i64
%295 = getelementptr inbounds i32, ptr %292, i64 %294
store i32 %291, ptr %295, align 4
%296 = load i64, ptr %9, align 8
%297 = trunc i64 %296 to i32
%298 = load ptr, ptr %11, align 8
%299 = load i32, ptr %10, align 4
%300 = sub nsw i32 %299, 1
%301 = sext i32 %300 to i64
%302 = getelementptr inbounds i32, ptr %298, i64 %301
store i32 %297, ptr %302, align 4
%303 = load i64, ptr %5, align 8
store i64 %303, ptr %9, align 8
br label %304
304: ; preds = %288, %272
br label %305
305: ; preds = %304, %74
br label %16
306: ; preds = %73
%307 = load ptr, ptr %11, align 8
%308 = call i32 @free_ivector(ptr noundef %307, i32 noundef 1, i32 noundef 50)
ret void
}
declare ptr @ivector(i32 noundef, i32 noundef) #1
declare i32 @nrerror(ptr noundef) #1
declare i32 @free_ivector(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmprdadritg.c'
source_filename = "/tmp/tmprdadritg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mstrdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i64 0, ptr %4, align 8
store ptr null, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = load ptr, ptr %3, align 8
%8 = icmp eq ptr null, %7
br i1 %8, label %14, label %9
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp eq i32 0, %12
br i1 %13, label %14, label %15
14: ; preds = %9, %1
store ptr null, ptr %2, align 8
br label %51
15: ; preds = %9
%16 = load ptr, ptr %3, align 8
%17 = call i64 @mstrsize(ptr noundef %16)
store i64 %17, ptr %4, align 8
%18 = load i64, ptr %4, align 8
%19 = add i64 %18, 1
%20 = mul i64 1, %19
%21 = trunc i64 %20 to i32
%22 = call ptr @malloc(i32 noundef %21)
store ptr %22, ptr %5, align 8
%23 = load ptr, ptr %5, align 8
%24 = icmp eq ptr null, %23
br i1 %24, label %25, label %26
25: ; preds = %15
store ptr null, ptr %2, align 8
br label %51
26: ; preds = %15
store i32 0, ptr %6, align 4
br label %27
27: ; preds = %42, %26
%28 = load i32, ptr %6, align 4
%29 = zext i32 %28 to i64
%30 = load i64, ptr %4, align 8
%31 = icmp ult i64 %29, %30
br i1 %31, label %32, label %45
32: ; preds = %27
%33 = load ptr, ptr %3, align 8
%34 = load i32, ptr %6, align 4
%35 = zext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
%37 = load i8, ptr %36, align 1
%38 = load ptr, ptr %5, align 8
%39 = load i32, ptr %6, align 4
%40 = zext i32 %39 to i64
%41 = getelementptr inbounds i8, ptr %38, i64 %40
store i8 %37, ptr %41, align 1
br label %42
42: ; preds = %32
%43 = load i32, ptr %6, align 4
%44 = add i32 %43, 1
store i32 %44, ptr %6, align 4
br label %27, !llvm.loop !6
45: ; preds = %27
%46 = load ptr, ptr %5, align 8
%47 = load i32, ptr %6, align 4
%48 = zext i32 %47 to i64
%49 = getelementptr inbounds i8, ptr %46, i64 %48
store i8 0, ptr %49, align 1
%50 = load ptr, ptr %5, align 8
store ptr %50, ptr %2, align 8
br label %51
51: ; preds = %45, %25, %14
%52 = load ptr, ptr %2, align 8
ret ptr %52
}
declare i64 @mstrsize(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprdadritg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mstrdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i64 0, ptr %4, align 8
store ptr null, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = load ptr, ptr %3, align 8
%8 = icmp eq ptr null, %7
br i1 %8, label %14, label %9
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp eq i32 0, %12
br i1 %13, label %14, label %15
14: ; preds = %9, %1
store ptr null, ptr %2, align 8
br label %54
15: ; preds = %9
%16 = load ptr, ptr %3, align 8
%17 = call i64 @mstrsize(ptr noundef %16)
store i64 %17, ptr %4, align 8
%18 = load i64, ptr %4, align 8
%19 = add i64 %18, 1
%20 = mul i64 1, %19
%21 = trunc i64 %20 to i32
%22 = call ptr @malloc(i32 noundef %21)
store ptr %22, ptr %5, align 8
%23 = load ptr, ptr %5, align 8
%24 = icmp eq ptr null, %23
br i1 %24, label %25, label %26
25: ; preds = %15
store ptr null, ptr %2, align 8
br label %54
26: ; preds = %15
store i32 0, ptr %6, align 4
%27 = load i32, ptr %6, align 4
%28 = zext i32 %27 to i64
%29 = load i64, ptr %4, align 8
%30 = icmp ult i64 %28, %29
br i1 %30, label %.lr.ph, label %48
.lr.ph: ; preds = %26
br label %31
31: ; preds = %.lr.ph, %41
%32 = load ptr, ptr %3, align 8
%33 = load i32, ptr %6, align 4
%34 = zext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
%36 = load i8, ptr %35, align 1
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %6, align 4
%39 = zext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %37, i64 %39
store i8 %36, ptr %40, align 1
br label %41
41: ; preds = %31
%42 = load i32, ptr %6, align 4
%43 = add i32 %42, 1
store i32 %43, ptr %6, align 4
%44 = load i32, ptr %6, align 4
%45 = zext i32 %44 to i64
%46 = load i64, ptr %4, align 8
%47 = icmp ult i64 %45, %46
br i1 %47, label %31, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %41
br label %48
48: ; preds = %._crit_edge, %26
%49 = load ptr, ptr %5, align 8
%50 = load i32, ptr %6, align 4
%51 = zext i32 %50 to i64
%52 = getelementptr inbounds i8, ptr %49, i64 %51
store i8 0, ptr %52, align 1
%53 = load ptr, ptr %5, align 8
store ptr %53, ptr %2, align 8
br label %54
54: ; preds = %48, %25, %14
%55 = load ptr, ptr %2, align 8
ret ptr %55
}
declare i64 @mstrsize(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp3ifg19uh.c'
source_filename = "/tmp/tmp3ifg19uh.c"
target datalayout = "e-m:e-p270: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/tmp3ifg19uh.c"
target datalayout = "e-m:e-p270: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/tmpc11aj7cz.c'
source_filename = "/tmp/tmpc11aj7cz.c"
target datalayout = "e-m:e-p270: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/tmpc11aj7cz.c"
target datalayout = "e-m:e-p270: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/tmpwicztrzh.c'
source_filename = "/tmp/tmpwicztrzh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [29 x i8] c"Sun Mon Tue Wen Thu Fri Sat\0A\00", align 1
@.str.2 = private unnamed_addr constant [124 x i8] c" 1 2 3 4 5 6\0A 7 8 9 10 11 12 13\0A 14 15 16 17 18 19 20\0A 21 22 23 24 25 26 27\0A 28 29 30\00", align 1
@.str.3 = private unnamed_addr constant [128 x i8] c" 1 2 3 4 5\0A 6 7 8 9 10 11 12\0A 13 14 15 16 17 18 19\0A 20 21 22 23 24 25 26\0A 27 28 29 30\00", align 1
@.str.4 = private unnamed_addr constant [132 x i8] c" 1 2 3 4\0A 5 6 7 8 9 10 11\0A 12 13 14 15 16 17 18\0A 19 20 21 22 23 24 25\0A 26 27 28 29 30\00", align 1
@.str.5 = private unnamed_addr constant [136 x i8] c" 1 2 3\0A 4 5 6 7 8 9 10\0A 11 12 13 14 15 16 17\0A 18 19 20 21 22 23 24\0A 25 26 27 28 29 30\00", align 1
@.str.6 = private unnamed_addr constant [140 x i8] c" 1 2\0A 3 4 5 6 7 8 9\0A 10 11 12 13 14 15 16\0A 17 18 19 20 21 22 23\0A 24 25 26 27 28 29 30\00", align 1
@.str.7 = private unnamed_addr constant [144 x i8] c" 1\0A 2 3 4 5 6 7 8\0A 9 10 11 12 13 14 15\0A 16 17 18 19 20 21 22\0A 23 24 25 26 27 28 29\0A 30\00", align 1
@.str.8 = private unnamed_addr constant [120 x i8] c" 1 2 3 4 5 6 7\0A 8 9 10 11 12 13 14\0A 15 16 17 18 19 20 21\0A 22 23 24 25 26 27 28\0A 29 30\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
store i32 0, ptr %1, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%7 = call i32 @printf(ptr noundef @.str.1)
%8 = load i32, ptr %2, align 4
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %12
10: ; preds = %0
%11 = call i32 @printf(ptr noundef @.str.2)
br label %44
12: ; preds = %0
%13 = load i32, ptr %2, align 4
%14 = icmp eq i32 %13, 2
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call i32 @printf(ptr noundef @.str.3)
br label %43
17: ; preds = %12
%18 = load i32, ptr %2, align 4
%19 = icmp eq i32 %18, 3
br i1 %19, label %20, label %22
20: ; preds = %17
%21 = call i32 @printf(ptr noundef @.str.4)
br label %42
22: ; preds = %17
%23 = load i32, ptr %2, align 4
%24 = icmp eq i32 %23, 4
br i1 %24, label %25, label %27
25: ; preds = %22
%26 = call i32 @printf(ptr noundef @.str.5)
br label %41
27: ; preds = %22
%28 = load i32, ptr %2, align 4
%29 = icmp eq i32 %28, 5
br i1 %29, label %30, label %32
30: ; preds = %27
%31 = call i32 @printf(ptr noundef @.str.6)
br label %40
32: ; preds = %27
%33 = load i32, ptr %2, align 4
%34 = icmp eq i32 %33, 6
br i1 %34, label %35, label %37
35: ; preds = %32
%36 = call i32 @printf(ptr noundef @.str.7)
br label %39
37: ; preds = %32
%38 = call i32 @printf(ptr noundef @.str.8)
br label %39
39: ; preds = %37, %35
br label %40
40: ; preds = %39, %30
br label %41
41: ; preds = %40, %25
br label %42
42: ; preds = %41, %20
br label %43
43: ; preds = %42, %15
br label %44
44: ; preds = %43, %10
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/tmpwicztrzh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [29 x i8] c"Sun Mon Tue Wen Thu Fri Sat\0A\00", align 1
@.str.2 = private unnamed_addr constant [124 x i8] c" 1 2 3 4 5 6\0A 7 8 9 10 11 12 13\0A 14 15 16 17 18 19 20\0A 21 22 23 24 25 26 27\0A 28 29 30\00", align 1
@.str.3 = private unnamed_addr constant [128 x i8] c" 1 2 3 4 5\0A 6 7 8 9 10 11 12\0A 13 14 15 16 17 18 19\0A 20 21 22 23 24 25 26\0A 27 28 29 30\00", align 1
@.str.4 = private unnamed_addr constant [132 x i8] c" 1 2 3 4\0A 5 6 7 8 9 10 11\0A 12 13 14 15 16 17 18\0A 19 20 21 22 23 24 25\0A 26 27 28 29 30\00", align 1
@.str.5 = private unnamed_addr constant [136 x i8] c" 1 2 3\0A 4 5 6 7 8 9 10\0A 11 12 13 14 15 16 17\0A 18 19 20 21 22 23 24\0A 25 26 27 28 29 30\00", align 1
@.str.6 = private unnamed_addr constant [140 x i8] c" 1 2\0A 3 4 5 6 7 8 9\0A 10 11 12 13 14 15 16\0A 17 18 19 20 21 22 23\0A 24 25 26 27 28 29 30\00", align 1
@.str.7 = private unnamed_addr constant [144 x i8] c" 1\0A 2 3 4 5 6 7 8\0A 9 10 11 12 13 14 15\0A 16 17 18 19 20 21 22\0A 23 24 25 26 27 28 29\0A 30\00", align 1
@.str.8 = private unnamed_addr constant [120 x i8] c" 1 2 3 4 5 6 7\0A 8 9 10 11 12 13 14\0A 15 16 17 18 19 20 21\0A 22 23 24 25 26 27 28\0A 29 30\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
store i32 0, ptr %1, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%7 = call i32 @printf(ptr noundef @.str.1)
%8 = load i32, ptr %2, align 4
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %12
10: ; preds = %0
%11 = call i32 @printf(ptr noundef @.str.2)
br label %44
12: ; preds = %0
%13 = load i32, ptr %2, align 4
%14 = icmp eq i32 %13, 2
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call i32 @printf(ptr noundef @.str.3)
br label %43
17: ; preds = %12
%18 = load i32, ptr %2, align 4
%19 = icmp eq i32 %18, 3
br i1 %19, label %20, label %22
20: ; preds = %17
%21 = call i32 @printf(ptr noundef @.str.4)
br label %42
22: ; preds = %17
%23 = load i32, ptr %2, align 4
%24 = icmp eq i32 %23, 4
br i1 %24, label %25, label %27
25: ; preds = %22
%26 = call i32 @printf(ptr noundef @.str.5)
br label %41
27: ; preds = %22
%28 = load i32, ptr %2, align 4
%29 = icmp eq i32 %28, 5
br i1 %29, label %30, label %32
30: ; preds = %27
%31 = call i32 @printf(ptr noundef @.str.6)
br label %40
32: ; preds = %27
%33 = load i32, ptr %2, align 4
%34 = icmp eq i32 %33, 6
br i1 %34, label %35, label %37
35: ; preds = %32
%36 = call i32 @printf(ptr noundef @.str.7)
br label %39
37: ; preds = %32
%38 = call i32 @printf(ptr noundef @.str.8)
br label %39
39: ; preds = %37, %35
br label %40
40: ; preds = %39, %30
br label %41
41: ; preds = %40, %25
br label %42
42: ; preds = %41, %20
br label %43
43: ; preds = %42, %15
br label %44
44: ; preds = %43, %10
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/tmpln_isua7.c'
source_filename = "/tmp/tmpln_isua7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @my_putchar(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @write(i32 noundef 1, ptr noundef %2, i32 noundef 4)
ret i32 0
}
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpln_isua7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @my_putchar(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @write(i32 noundef 1, ptr noundef %2, i32 noundef 4)
ret i32 0
}
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqg7njhzz.c'
source_filename = "/tmp/tmpqg7njhzz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define weak dso_local void @EXTI1_IRQHandler() #0 {
%1 = call i32 (...) @default_handler()
ret void
}
declare i32 @default_handler(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqg7njhzz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define weak dso_local void @EXTI1_IRQHandler() #0 {
%1 = call i32 (...) @default_handler()
ret void
}
declare i32 @default_handler(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpal1tey6r.c'
source_filename = "/tmp/tmpal1tey6r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @vrrp_multicast_open_socket(ptr noundef %0) #0 {
%2 = alloca i8, align 1
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = call i32 @vrrp_network_open_socket(ptr noundef %4)
%6 = icmp eq i32 %5, -1
br i1 %6, label %7, label %8
7: ; preds = %1
store i8 -1, ptr %2, align 1
br label %14
8: ; preds = %1
%9 = load ptr, ptr %3, align 8
%10 = call i32 @vrrp_multicast_set_socket(ptr noundef %9)
%11 = icmp eq i32 %10, -1
br i1 %11, label %12, label %13
12: ; preds = %8
store i8 -1, ptr %2, align 1
br label %14
13: ; preds = %8
store i8 0, ptr %2, align 1
br label %14
14: ; preds = %13, %12, %7
%15 = load i8, ptr %2, align 1
ret i8 %15
}
declare i32 @vrrp_network_open_socket(ptr noundef) #1
declare i32 @vrrp_multicast_set_socket(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpal1tey6r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @vrrp_multicast_open_socket(ptr noundef %0) #0 {
%2 = alloca i8, align 1
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = call i32 @vrrp_network_open_socket(ptr noundef %4)
%6 = icmp eq i32 %5, -1
br i1 %6, label %7, label %8
7: ; preds = %1
store i8 -1, ptr %2, align 1
br label %14
8: ; preds = %1
%9 = load ptr, ptr %3, align 8
%10 = call i32 @vrrp_multicast_set_socket(ptr noundef %9)
%11 = icmp eq i32 %10, -1
br i1 %11, label %12, label %13
12: ; preds = %8
store i8 -1, ptr %2, align 1
br label %14
13: ; preds = %8
store i8 0, ptr %2, align 1
br label %14
14: ; preds = %13, %12, %7
%15 = load i8, ptr %2, align 1
ret i8 %15
}
declare i32 @vrrp_network_open_socket(ptr noundef) #1
declare i32 @vrrp_multicast_set_socket(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9a4c9uyq.c'
source_filename = "/tmp/tmp9a4c9uyq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Vertex4sv(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @glVertex4sv(ptr noundef %3)
ret void
}
declare i32 @glVertex4sv(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9a4c9uyq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Vertex4sv(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @glVertex4sv(ptr noundef %3)
ret void
}
declare i32 @glVertex4sv(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp61utothl.c'
source_filename = "/tmp/tmp61utothl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr = type { i64 }
%struct.sockaddr_in = type { i32 }
%struct.sockaddr_in6 = type { i32 }
@AF_INET = dso_local global i64 0, align 8
@AF_INET6 = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @chitcp_addr_port_cmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%10 = load ptr, ptr %4, align 8
%11 = getelementptr inbounds %struct.sockaddr, ptr %10, i32 0, i32 0
%12 = load i64, ptr %11, align 8
%13 = load i64, ptr @AF_INET, align 8
%14 = icmp eq i64 %12, %13
br i1 %14, label %21, label %15
15: ; preds = %2
%16 = load ptr, ptr %4, align 8
%17 = getelementptr inbounds %struct.sockaddr, ptr %16, i32 0, i32 0
%18 = load i64, ptr %17, align 8
%19 = load i64, ptr @AF_INET6, align 8
%20 = icmp eq i64 %18, %19
br label %21
21: ; preds = %15, %2
%22 = phi i1 [ true, %2 ], [ %20, %15 ]
%23 = zext i1 %22 to i32
%24 = call i32 @assert(i32 noundef %23)
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds %struct.sockaddr, ptr %25, i32 0, i32 0
%27 = load i64, ptr %26, align 8
%28 = load i64, ptr @AF_INET, align 8
%29 = icmp eq i64 %27, %28
br i1 %29, label %36, label %30
30: ; preds = %21
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds %struct.sockaddr, ptr %31, i32 0, i32 0
%33 = load i64, ptr %32, align 8
%34 = load i64, ptr @AF_INET6, align 8
%35 = icmp eq i64 %33, %34
br label %36
36: ; preds = %30, %21
%37 = phi i1 [ true, %21 ], [ %35, %30 ]
%38 = zext i1 %37 to i32
%39 = call i32 @assert(i32 noundef %38)
%40 = load ptr, ptr %4, align 8
%41 = getelementptr inbounds %struct.sockaddr, ptr %40, i32 0, i32 0
%42 = load i64, ptr %41, align 8
%43 = load ptr, ptr %5, align 8
%44 = getelementptr inbounds %struct.sockaddr, ptr %43, i32 0, i32 0
%45 = load i64, ptr %44, align 8
%46 = icmp ne i64 %42, %45
br i1 %46, label %47, label %56
47: ; preds = %36
%48 = load ptr, ptr %4, align 8
%49 = getelementptr inbounds %struct.sockaddr, ptr %48, i32 0, i32 0
%50 = load i64, ptr %49, align 8
%51 = load ptr, ptr %5, align 8
%52 = getelementptr inbounds %struct.sockaddr, ptr %51, i32 0, i32 0
%53 = load i64, ptr %52, align 8
%54 = sub nsw i64 %50, %53
%55 = trunc i64 %54 to i32
store i32 %55, ptr %3, align 4
br label %91
56: ; preds = %36
%57 = load ptr, ptr %4, align 8
%58 = getelementptr inbounds %struct.sockaddr, ptr %57, i32 0, i32 0
%59 = load i64, ptr %58, align 8
%60 = load i64, ptr @AF_INET, align 8
%61 = icmp eq i64 %59, %60
br i1 %61, label %62, label %72
62: ; preds = %56
%63 = load ptr, ptr %4, align 8
store ptr %63, ptr %6, align 8
%64 = load ptr, ptr %5, align 8
store ptr %64, ptr %7, align 8
%65 = load ptr, ptr %6, align 8
%66 = getelementptr inbounds %struct.sockaddr_in, ptr %65, i32 0, i32 0
%67 = load i32, ptr %66, align 4
%68 = load ptr, ptr %7, align 8
%69 = getelementptr inbounds %struct.sockaddr_in, ptr %68, i32 0, i32 0
%70 = load i32, ptr %69, align 4
%71 = sub nsw i32 %67, %70
store i32 %71, ptr %3, align 4
br label %91
72: ; preds = %56
%73 = load ptr, ptr %4, align 8
%74 = getelementptr inbounds %struct.sockaddr, ptr %73, i32 0, i32 0
%75 = load i64, ptr %74, align 8
%76 = load i64, ptr @AF_INET6, align 8
%77 = icmp eq i64 %75, %76
br i1 %77, label %78, label %88
78: ; preds = %72
%79 = load ptr, ptr %4, align 8
store ptr %79, ptr %8, align 8
%80 = load ptr, ptr %5, align 8
store ptr %80, ptr %9, align 8
%81 = load ptr, ptr %8, align 8
%82 = getelementptr inbounds %struct.sockaddr_in6, ptr %81, i32 0, i32 0
%83 = load i32, ptr %82, align 4
%84 = load ptr, ptr %9, align 8
%85 = getelementptr inbounds %struct.sockaddr_in6, ptr %84, i32 0, i32 0
%86 = load i32, ptr %85, align 4
%87 = sub nsw i32 %83, %86
store i32 %87, ptr %3, align 4
br label %91
88: ; preds = %72
br label %89
89: ; preds = %88
br label %90
90: ; preds = %89
store i32 -1, ptr %3, align 4
br label %91
91: ; preds = %90, %78, %62, %47
%92 = load i32, ptr %3, align 4
ret i32 %92
}
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/tmp61utothl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr = type { i64 }
%struct.sockaddr_in = type { i32 }
%struct.sockaddr_in6 = type { i32 }
@AF_INET = dso_local global i64 0, align 8
@AF_INET6 = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @chitcp_addr_port_cmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%10 = load ptr, ptr %4, align 8
%11 = getelementptr inbounds %struct.sockaddr, ptr %10, i32 0, i32 0
%12 = load i64, ptr %11, align 8
%13 = load i64, ptr @AF_INET, align 8
%14 = icmp eq i64 %12, %13
br i1 %14, label %21, label %15
15: ; preds = %2
%16 = load ptr, ptr %4, align 8
%17 = getelementptr inbounds %struct.sockaddr, ptr %16, i32 0, i32 0
%18 = load i64, ptr %17, align 8
%19 = load i64, ptr @AF_INET6, align 8
%20 = icmp eq i64 %18, %19
br label %21
21: ; preds = %15, %2
%22 = phi i1 [ true, %2 ], [ %20, %15 ]
%23 = zext i1 %22 to i32
%24 = call i32 @assert(i32 noundef %23)
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds %struct.sockaddr, ptr %25, i32 0, i32 0
%27 = load i64, ptr %26, align 8
%28 = load i64, ptr @AF_INET, align 8
%29 = icmp eq i64 %27, %28
br i1 %29, label %36, label %30
30: ; preds = %21
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds %struct.sockaddr, ptr %31, i32 0, i32 0
%33 = load i64, ptr %32, align 8
%34 = load i64, ptr @AF_INET6, align 8
%35 = icmp eq i64 %33, %34
br label %36
36: ; preds = %30, %21
%37 = phi i1 [ true, %21 ], [ %35, %30 ]
%38 = zext i1 %37 to i32
%39 = call i32 @assert(i32 noundef %38)
%40 = load ptr, ptr %4, align 8
%41 = getelementptr inbounds %struct.sockaddr, ptr %40, i32 0, i32 0
%42 = load i64, ptr %41, align 8
%43 = load ptr, ptr %5, align 8
%44 = getelementptr inbounds %struct.sockaddr, ptr %43, i32 0, i32 0
%45 = load i64, ptr %44, align 8
%46 = icmp ne i64 %42, %45
br i1 %46, label %47, label %56
47: ; preds = %36
%48 = load ptr, ptr %4, align 8
%49 = getelementptr inbounds %struct.sockaddr, ptr %48, i32 0, i32 0
%50 = load i64, ptr %49, align 8
%51 = load ptr, ptr %5, align 8
%52 = getelementptr inbounds %struct.sockaddr, ptr %51, i32 0, i32 0
%53 = load i64, ptr %52, align 8
%54 = sub nsw i64 %50, %53
%55 = trunc i64 %54 to i32
store i32 %55, ptr %3, align 4
br label %91
56: ; preds = %36
%57 = load ptr, ptr %4, align 8
%58 = getelementptr inbounds %struct.sockaddr, ptr %57, i32 0, i32 0
%59 = load i64, ptr %58, align 8
%60 = load i64, ptr @AF_INET, align 8
%61 = icmp eq i64 %59, %60
br i1 %61, label %62, label %72
62: ; preds = %56
%63 = load ptr, ptr %4, align 8
store ptr %63, ptr %6, align 8
%64 = load ptr, ptr %5, align 8
store ptr %64, ptr %7, align 8
%65 = load ptr, ptr %6, align 8
%66 = getelementptr inbounds %struct.sockaddr_in, ptr %65, i32 0, i32 0
%67 = load i32, ptr %66, align 4
%68 = load ptr, ptr %7, align 8
%69 = getelementptr inbounds %struct.sockaddr_in, ptr %68, i32 0, i32 0
%70 = load i32, ptr %69, align 4
%71 = sub nsw i32 %67, %70
store i32 %71, ptr %3, align 4
br label %91
72: ; preds = %56
%73 = load ptr, ptr %4, align 8
%74 = getelementptr inbounds %struct.sockaddr, ptr %73, i32 0, i32 0
%75 = load i64, ptr %74, align 8
%76 = load i64, ptr @AF_INET6, align 8
%77 = icmp eq i64 %75, %76
br i1 %77, label %78, label %88
78: ; preds = %72
%79 = load ptr, ptr %4, align 8
store ptr %79, ptr %8, align 8
%80 = load ptr, ptr %5, align 8
store ptr %80, ptr %9, align 8
%81 = load ptr, ptr %8, align 8
%82 = getelementptr inbounds %struct.sockaddr_in6, ptr %81, i32 0, i32 0
%83 = load i32, ptr %82, align 4
%84 = load ptr, ptr %9, align 8
%85 = getelementptr inbounds %struct.sockaddr_in6, ptr %84, i32 0, i32 0
%86 = load i32, ptr %85, align 4
%87 = sub nsw i32 %83, %86
store i32 %87, ptr %3, align 4
br label %91
88: ; preds = %72
br label %89
89: ; preds = %88
br label %90
90: ; preds = %89
store i32 -1, ptr %3, align 4
br label %91
91: ; preds = %90, %78, %62, %47
%92 = load i32, ptr %3, align 4
ret i32 %92
}
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/tmpkcptua__.c'
source_filename = "/tmp/tmpkcptua__.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"tcp\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"udp\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"icmp\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"unknown \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_protocol(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
%7 = alloca i32, align 4
%8 = alloca [11 x i8], align 1
%9 = alloca [6 x i8], align 1
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
call void @llvm.memset.p0.i64(ptr align 1 %8, i8 0, i64 11, i1 false)
call void @llvm.memset.p0.i64(ptr align 1 %9, i8 0, i64 6, i1 false)
%10 = load ptr, ptr %3, align 8
%11 = call i64 @string_search(ptr noundef %10, ptr noundef @.str)
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %16
13: ; preds = %2
%14 = load ptr, ptr %4, align 8
%15 = call i32 @memcpy(ptr noundef %14, ptr noundef @.str, i32 noundef 3)
br label %87
16: ; preds = %2
%17 = load ptr, ptr %3, align 8
%18 = call i64 @string_search(ptr noundef %17, ptr noundef @.str.1)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %16
%21 = load ptr, ptr %4, align 8
%22 = call i32 @memcpy(ptr noundef %21, ptr noundef @.str.1, i32 noundef 3)
br label %86
23: ; preds = %16
%24 = load ptr, ptr %3, align 8
%25 = call i64 @string_search(ptr noundef %24, ptr noundef @.str.2)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %23
%28 = load ptr, ptr %4, align 8
%29 = call i32 @memcpy(ptr noundef %28, ptr noundef @.str.2, i32 noundef 4)
br label %85
30: ; preds = %23
store i32 0, ptr %5, align 4
br label %31
31: ; preds = %81, %30
%32 = load i32, ptr %5, align 4
%33 = load ptr, ptr %3, align 8
%34 = call i32 @strlen(ptr noundef %33)
%35 = icmp slt i32 %32, %34
br i1 %35, label %36, label %84
36: ; preds = %31
%37 = load ptr, ptr %3, align 8
%38 = load i32, ptr %5, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %37, i64 %39
%41 = call i32 @strncmp(ptr noundef %40, ptr noundef @.str.3, i32 noundef 9)
%42 = icmp ne i32 %41, 0
br i1 %42, label %80, label %43
43: ; preds = %36
%44 = load i32, ptr %5, align 4
%45 = add nsw i32 %44, 9
store i32 %45, ptr %5, align 4
%46 = load i32, ptr %5, align 4
store i32 %46, ptr %6, align 4
br label %47
47: ; preds = %68, %43
%48 = load i32, ptr %6, align 4
%49 = load ptr, ptr %3, align 8
%50 = call i32 @strlen(ptr noundef %49)
%51 = icmp slt i32 %48, %50
br i1 %51, label %52, label %71
52: ; preds = %47
%53 = load ptr, ptr %3, align 8
%54 = load i32, ptr %6, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, ptr %53, i64 %55
%57 = load i8, ptr %56, align 1
%58 = sext i8 %57 to i32
%59 = icmp eq i32 %58, 32
br i1 %59, label %60, label %61
60: ; preds = %52
br label %71
61: ; preds = %52
%62 = getelementptr inbounds [6 x i8], ptr %9, i64 0, i64 0
%63 = load ptr, ptr %3, align 8
%64 = load i32, ptr %6, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i8, ptr %63, i64 %65
%67 = call i32 @strncat(ptr noundef %62, ptr noundef %66, i32 noundef 1)
br label %68
68: ; preds = %61
%69 = load i32, ptr %6, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %6, align 4
br label %47, !llvm.loop !6
71: ; preds = %60, %47
%72 = getelementptr inbounds [6 x i8], ptr %9, i64 0, i64 0
%73 = call i32 @atoi(ptr noundef %72)
store i32 %73, ptr %7, align 4
%74 = getelementptr inbounds [11 x i8], ptr %8, i64 0, i64 0
%75 = load i32, ptr %7, align 4
%76 = call i32 @get_protocol_name(ptr noundef %74, i32 noundef %75)
%77 = load ptr, ptr %4, align 8
%78 = getelementptr inbounds [11 x i8], ptr %8, i64 0, i64 0
%79 = call i32 @memcpy(ptr noundef %77, ptr noundef %78, i32 noundef 5)
br label %84
80: ; preds = %36
br label %81
81: ; preds = %80
%82 = load i32, ptr %5, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %5, align 4
br label %31, !llvm.loop !8
84: ; preds = %71, %31
br label %85
85: ; preds = %84, %27
br label %86
86: ; preds = %85, %20
br label %87
87: ; preds = %86, %13
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i64 @string_search(ptr noundef, ptr noundef) #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @strncmp(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @strncat(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @atoi(ptr noundef) #2
declare i32 @get_protocol_name(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: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkcptua__.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"tcp\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"udp\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"icmp\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"unknown \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_protocol(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
%7 = alloca i32, align 4
%8 = alloca [11 x i8], align 1
%9 = alloca [6 x i8], align 1
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
call void @llvm.memset.p0.i64(ptr align 1 %8, i8 0, i64 11, i1 false)
call void @llvm.memset.p0.i64(ptr align 1 %9, i8 0, i64 6, i1 false)
%10 = load ptr, ptr %3, align 8
%11 = call i64 @string_search(ptr noundef %10, ptr noundef @.str)
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %16
13: ; preds = %2
%14 = load ptr, ptr %4, align 8
%15 = call i32 @memcpy(ptr noundef %14, ptr noundef @.str, i32 noundef 3)
br label %93
16: ; preds = %2
%17 = load ptr, ptr %3, align 8
%18 = call i64 @string_search(ptr noundef %17, ptr noundef @.str.1)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %16
%21 = load ptr, ptr %4, align 8
%22 = call i32 @memcpy(ptr noundef %21, ptr noundef @.str.1, i32 noundef 3)
br label %92
23: ; preds = %16
%24 = load ptr, ptr %3, align 8
%25 = call i64 @string_search(ptr noundef %24, ptr noundef @.str.2)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %23
%28 = load ptr, ptr %4, align 8
%29 = call i32 @memcpy(ptr noundef %28, ptr noundef @.str.2, i32 noundef 4)
br label %91
30: ; preds = %23
store i32 0, ptr %5, align 4
%31 = load i32, ptr %5, align 4
%32 = load ptr, ptr %3, align 8
%33 = call i32 @strlen(ptr noundef %32)
%34 = icmp slt i32 %31, %33
br i1 %34, label %.lr.ph, label %.loopexit1
.lr.ph: ; preds = %30
br label %35
35: ; preds = %.lr.ph, %83
%36 = load ptr, ptr %3, align 8
%37 = load i32, ptr %5, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
%40 = call i32 @strncmp(ptr noundef %39, ptr noundef @.str.3, i32 noundef 9)
%41 = icmp ne i32 %40, 0
br i1 %41, label %82, label %42
42: ; preds = %35
%43 = load i32, ptr %5, align 4
%44 = add nsw i32 %43, 9
store i32 %44, ptr %5, align 4
%45 = load i32, ptr %5, align 4
store i32 %45, ptr %6, align 4
%46 = load i32, ptr %6, align 4
%47 = load ptr, ptr %3, align 8
%48 = call i32 @strlen(ptr noundef %47)
%49 = icmp slt i32 %46, %48
br i1 %49, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %42
br label %50
50: ; preds = %.lr.ph2, %66
%51 = load ptr, ptr %3, align 8
%52 = load i32, ptr %6, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, ptr %51, i64 %53
%55 = load i8, ptr %54, align 1
%56 = sext i8 %55 to i32
%57 = icmp eq i32 %56, 32
br i1 %57, label %58, label %59
58: ; preds = %50
br label %73
59: ; preds = %50
%60 = getelementptr inbounds [6 x i8], ptr %9, i64 0, i64 0
%61 = load ptr, ptr %3, align 8
%62 = load i32, ptr %6, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i8, ptr %61, i64 %63
%65 = call i32 @strncat(ptr noundef %60, ptr noundef %64, i32 noundef 1)
br label %66
66: ; preds = %59
%67 = load i32, ptr %6, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %6, align 4
%69 = load i32, ptr %6, align 4
%70 = load ptr, ptr %3, align 8
%71 = call i32 @strlen(ptr noundef %70)
%72 = icmp slt i32 %69, %71
br i1 %72, label %50, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %66
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %42
br label %73
73: ; preds = %.loopexit, %58
%74 = getelementptr inbounds [6 x i8], ptr %9, i64 0, i64 0
%75 = call i32 @atoi(ptr noundef %74)
store i32 %75, ptr %7, align 4
%76 = getelementptr inbounds [11 x i8], ptr %8, i64 0, i64 0
%77 = load i32, ptr %7, align 4
%78 = call i32 @get_protocol_name(ptr noundef %76, i32 noundef %77)
%79 = load ptr, ptr %4, align 8
%80 = getelementptr inbounds [11 x i8], ptr %8, i64 0, i64 0
%81 = call i32 @memcpy(ptr noundef %79, ptr noundef %80, i32 noundef 5)
br label %90
82: ; preds = %35
br label %83
83: ; preds = %82
%84 = load i32, ptr %5, align 4
%85 = add nsw i32 %84, 1
store i32 %85, ptr %5, align 4
%86 = load i32, ptr %5, align 4
%87 = load ptr, ptr %3, align 8
%88 = call i32 @strlen(ptr noundef %87)
%89 = icmp slt i32 %86, %88
br i1 %89, label %35, label %..loopexit1_crit_edge, !llvm.loop !8
..loopexit1_crit_edge: ; preds = %83
br label %.loopexit1
.loopexit1: ; preds = %..loopexit1_crit_edge, %30
br label %90
90: ; preds = %.loopexit1, %73
br label %91
91: ; preds = %90, %27
br label %92
92: ; preds = %91, %20
br label %93
93: ; preds = %92, %13
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i64 @string_search(ptr noundef, ptr noundef) #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @strncmp(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @strncat(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @atoi(ptr noundef) #2
declare i32 @get_protocol_name(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: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpj9cvvsjq.c'
source_filename = "/tmp/tmpj9cvvsjq.c"
target datalayout = "e-m:e-p270: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.s = private unnamed_addr constant [40 x i8] c"abcdefghijklmnopqrstuvwxyz\00\00\00\00\00\00\00\00\00\00\00\00\00\00", align 16
@.str = private unnamed_addr constant [22 x i8] c"Please input a char:\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"No match found.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
%4 = alloca [40 x i8], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.main.s, i64 40, i1 false)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call signext i8 (...) @getchar()
store i8 %6, ptr %3, align 1
%7 = load i8, ptr %3, align 1
%8 = getelementptr inbounds [40 x i8], ptr %4, i64 0, i64 0
%9 = call ptr @find_char(i8 noundef signext %7, ptr noundef %8)
store ptr %9, ptr %2, align 8
%10 = getelementptr inbounds [40 x i8], ptr %4, i64 0, i64 0
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %10)
%12 = load ptr, ptr %2, align 8
%13 = load i8, ptr %12, align 1
%14 = icmp ne i8 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %0
%16 = load ptr, ptr %2, align 8
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %16)
br label %20
18: ; preds = %0
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %20
20: ; preds = %18, %15
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
declare signext i8 @getchar(...) #2
declare ptr @find_char(i8 noundef signext, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj9cvvsjq.c"
target datalayout = "e-m:e-p270: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.s = private unnamed_addr constant [40 x i8] c"abcdefghijklmnopqrstuvwxyz\00\00\00\00\00\00\00\00\00\00\00\00\00\00", align 16
@.str = private unnamed_addr constant [22 x i8] c"Please input a char:\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"No match found.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
%4 = alloca [40 x i8], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.main.s, i64 40, i1 false)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call signext i8 (...) @getchar()
store i8 %6, ptr %3, align 1
%7 = load i8, ptr %3, align 1
%8 = getelementptr inbounds [40 x i8], ptr %4, i64 0, i64 0
%9 = call ptr @find_char(i8 noundef signext %7, ptr noundef %8)
store ptr %9, ptr %2, align 8
%10 = getelementptr inbounds [40 x i8], ptr %4, i64 0, i64 0
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %10)
%12 = load ptr, ptr %2, align 8
%13 = load i8, ptr %12, align 1
%14 = icmp ne i8 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %0
%16 = load ptr, ptr %2, align 8
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %16)
br label %20
18: ; preds = %0
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %20
20: ; preds = %18, %15
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
declare signext i8 @getchar(...) #2
declare ptr @find_char(i8 noundef signext, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpala2itg2.c'
source_filename = "/tmp/tmpala2itg2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @foo(i32 noundef 7)
ret i32 0
}
declare i32 @foo(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/tmpala2itg2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @foo(i32 noundef 7)
ret i32 0
}
declare i32 @foo(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/tmpg6r8u8kz.c'
source_filename = "/tmp/tmpg6r8u8kz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_NOFOLLOW = dso_local global i32 0, align 4
@O_RDONLY = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg6r8u8kz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_NOFOLLOW = dso_local global i32 0, align 4
@O_RDONLY = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8n4r1tb4.c'
source_filename = "/tmp/tmp8n4r1tb4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"in fun2\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @fun2(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
br label %3
3: ; preds = %1, %3
%4 = call i32 @printf(ptr noundef @.str)
%5 = call i32 @sleep(i32 noundef 5)
br label %3
}
declare i32 @printf(ptr noundef) #1
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8n4r1tb4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"in fun2\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @fun2(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
br label %3
3: ; preds = %3, %1
%4 = call i32 @printf(ptr noundef @.str)
%5 = call i32 @sleep(i32 noundef 5)
br label %3
}
declare i32 @printf(ptr noundef) #1
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpibw_kq5a.c'
source_filename = "/tmp/tmpibw_kq5a.c"
target datalayout = "e-m:e-p270: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/tmpibw_kq5a.c"
target datalayout = "e-m:e-p270: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/tmp6mmvjsfd.c'
source_filename = "/tmp/tmp6mmvjsfd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bwio_uart_setup() #0 {
%1 = alloca i32, align 4
%2 = call i32 @UARTPinMuxSetup(i32 noundef 0)
%3 = call i32 @UARTModuleReset(i32 noundef 1155567616)
store i32 0, ptr %1, align 4
%4 = call i32 @UARTDivisorValCompute(i32 noundef 48000000, i32 noundef 115200, i32 noundef 0, i32 noundef 42)
store i32 %4, ptr %1, align 4
%5 = load i32, ptr %1, align 4
%6 = call i32 @UARTDivisorLatchWrite(i32 noundef 1155567616, i32 noundef %5)
%7 = call i32 @UARTRegConfigModeEnable(i32 noundef 1155567616, i32 noundef 191)
%8 = call i32 @UARTLineCharacConfig(i32 noundef 1155567616, i32 noundef 3, i32 noundef 0)
%9 = call i32 @UARTDivisorLatchDisable(i32 noundef 1155567616)
%10 = call i32 @UARTBreakCtl(i32 noundef 1155567616, i32 noundef 0)
%11 = call i32 @UARTOperatingModeSelect(i32 noundef 1155567616, i32 noundef 0)
ret void
}
declare i32 @UARTPinMuxSetup(i32 noundef) #1
declare i32 @UARTModuleReset(i32 noundef) #1
declare i32 @UARTDivisorValCompute(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @UARTDivisorLatchWrite(i32 noundef, i32 noundef) #1
declare i32 @UARTRegConfigModeEnable(i32 noundef, i32 noundef) #1
declare i32 @UARTLineCharacConfig(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @UARTDivisorLatchDisable(i32 noundef) #1
declare i32 @UARTBreakCtl(i32 noundef, i32 noundef) #1
declare i32 @UARTOperatingModeSelect(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/tmp6mmvjsfd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bwio_uart_setup() #0 {
%1 = alloca i32, align 4
%2 = call i32 @UARTPinMuxSetup(i32 noundef 0)
%3 = call i32 @UARTModuleReset(i32 noundef 1155567616)
store i32 0, ptr %1, align 4
%4 = call i32 @UARTDivisorValCompute(i32 noundef 48000000, i32 noundef 115200, i32 noundef 0, i32 noundef 42)
store i32 %4, ptr %1, align 4
%5 = load i32, ptr %1, align 4
%6 = call i32 @UARTDivisorLatchWrite(i32 noundef 1155567616, i32 noundef %5)
%7 = call i32 @UARTRegConfigModeEnable(i32 noundef 1155567616, i32 noundef 191)
%8 = call i32 @UARTLineCharacConfig(i32 noundef 1155567616, i32 noundef 3, i32 noundef 0)
%9 = call i32 @UARTDivisorLatchDisable(i32 noundef 1155567616)
%10 = call i32 @UARTBreakCtl(i32 noundef 1155567616, i32 noundef 0)
%11 = call i32 @UARTOperatingModeSelect(i32 noundef 1155567616, i32 noundef 0)
ret void
}
declare i32 @UARTPinMuxSetup(i32 noundef) #1
declare i32 @UARTModuleReset(i32 noundef) #1
declare i32 @UARTDivisorValCompute(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @UARTDivisorLatchWrite(i32 noundef, i32 noundef) #1
declare i32 @UARTRegConfigModeEnable(i32 noundef, i32 noundef) #1
declare i32 @UARTLineCharacConfig(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @UARTDivisorLatchDisable(i32 noundef) #1
declare i32 @UARTBreakCtl(i32 noundef, i32 noundef) #1
declare i32 @UARTOperatingModeSelect(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_vxgq_57.c'
source_filename = "/tmp/tmp_vxgq_57.c"
target datalayout = "e-m:e-p270: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_vxgq_57.c"
target datalayout = "e-m:e-p270: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/tmp0g6jb2jc.c'
source_filename = "/tmp/tmp0g6jb2jc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__NR_futex = 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/tmp0g6jb2jc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__NR_futex = 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/tmpibiv2dxm.c'
source_filename = "/tmp/tmpibiv2dxm.c"
target datalayout = "e-m:e-p270: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/tmpibiv2dxm.c"
target datalayout = "e-m:e-p270: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/tmpliso1709.c'
source_filename = "/tmp/tmpliso1709.c"
target datalayout = "e-m:e-p270: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/tmpliso1709.c"
target datalayout = "e-m:e-p270: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/tmpthfia14g.c'
source_filename = "/tmp/tmpthfia14g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ro2quLoop(ptr noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
store i64 4, ptr %13, align 8
store i64 4, ptr %14, align 8
store i64 0, ptr %10, align 8
br label %15
15: ; preds = %34, %4
%16 = load i64, ptr %10, align 8
%17 = load i64, ptr %7, align 8
%18 = icmp ult i64 %16, %17
br i1 %18, label %19, label %37
19: ; preds = %15
%20 = load i64, ptr %10, align 8
%21 = load i64, ptr %13, align 8
%22 = mul i64 %20, %21
store i64 %22, ptr %11, align 8
%23 = load i64, ptr %10, align 8
%24 = load i64, ptr %14, align 8
%25 = mul i64 %23, %24
store i64 %25, ptr %12, align 8
%26 = load ptr, ptr %5, align 8
%27 = load i64, ptr %11, align 8
%28 = getelementptr inbounds double, ptr %26, i64 %27
%29 = load ptr, ptr %6, align 8
%30 = load i64, ptr %12, align 8
%31 = getelementptr inbounds double, ptr %29, i64 %30
%32 = load i32, ptr %8, align 4
%33 = call i32 @ro2qu(ptr noundef %28, ptr noundef %31, i32 noundef %32)
store i32 %33, ptr %9, align 4
br label %34
34: ; preds = %19
%35 = load i64, ptr %10, align 8
%36 = add i64 %35, 1
store i64 %36, ptr %10, align 8
br label %15, !llvm.loop !6
37: ; preds = %15
ret i32 1
}
declare i32 @ro2qu(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpthfia14g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ro2quLoop(ptr noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
store i64 4, ptr %13, align 8
store i64 4, ptr %14, align 8
store i64 0, ptr %10, align 8
%15 = load i64, ptr %10, align 8
%16 = load i64, ptr %7, align 8
%17 = icmp ult i64 %15, %16
br i1 %17, label %.lr.ph, label %39
.lr.ph: ; preds = %4
br label %18
18: ; preds = %.lr.ph, %33
%19 = load i64, ptr %10, align 8
%20 = load i64, ptr %13, align 8
%21 = mul i64 %19, %20
store i64 %21, ptr %11, align 8
%22 = load i64, ptr %10, align 8
%23 = load i64, ptr %14, align 8
%24 = mul i64 %22, %23
store i64 %24, ptr %12, align 8
%25 = load ptr, ptr %5, align 8
%26 = load i64, ptr %11, align 8
%27 = getelementptr inbounds double, ptr %25, i64 %26
%28 = load ptr, ptr %6, align 8
%29 = load i64, ptr %12, align 8
%30 = getelementptr inbounds double, ptr %28, i64 %29
%31 = load i32, ptr %8, align 4
%32 = call i32 @ro2qu(ptr noundef %27, ptr noundef %30, i32 noundef %31)
store i32 %32, ptr %9, align 4
br label %33
33: ; preds = %18
%34 = load i64, ptr %10, align 8
%35 = add i64 %34, 1
store i64 %35, ptr %10, align 8
%36 = load i64, ptr %10, align 8
%37 = load i64, ptr %7, align 8
%38 = icmp ult i64 %36, %37
br i1 %38, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %33
br label %39
39: ; preds = %._crit_edge, %4
ret i32 1
}
declare i32 @ro2qu(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpk9f5u_65.c'
source_filename = "/tmp/tmpk9f5u_65.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"Number of elements:- \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [14 x i8] c"Pipe Failed.\0A\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"main: fork\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"In child process (ID: %d)\0A\00", align 1
@.str.5 = private unnamed_addr constant [28 x i8] c"In parent process (ID: %d)\0A\00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"Enter elements\0A\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.8 = private unnamed_addr constant [29 x i8] c"Total no of palindromes: %d\0A\00", align 1
@.str.9 = private unnamed_addr constant [20 x i8] c"Palindrome %d:- %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [2 x i32], align 4
%6 = alloca [2 x 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 [100 x [100 x i8]], align 16
%14 = alloca [100 x [100 x i8]], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %12, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%16 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %4)
%17 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 0
%18 = call i32 @pipe(ptr noundef %17)
store i32 %18, ptr %3, align 4
%19 = load i32, ptr %3, align 4
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %25
21: ; preds = %0
%22 = load i32, ptr @stderr, align 4
%23 = call i32 @fprintf(i32 noundef %22, ptr noundef @.str.2)
%24 = call i32 @exit(i32 noundef 1) #3
unreachable
25: ; preds = %0
%26 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%27 = call i32 @pipe(ptr noundef %26)
store i32 %27, ptr %3, align 4
%28 = load i32, ptr %3, align 4
%29 = icmp eq i32 %28, -1
br i1 %29, label %30, label %34
30: ; preds = %25
%31 = load i32, ptr @stderr, align 4
%32 = call i32 @fprintf(i32 noundef %31, ptr noundef @.str.2)
%33 = call i32 @exit(i32 noundef 1) #3
unreachable
34: ; preds = %25
%35 = call i32 (...) @fork()
store i32 %35, ptr %2, align 4
%36 = load i32, ptr %2, align 4
switch i32 %36, label %117 [
i32 -1, label %37
i32 0, label %40
]
37: ; preds = %34
%38 = call i32 @perror(ptr noundef @.str.3)
%39 = call i32 @exit(i32 noundef 1) #3
unreachable
40: ; preds = %34
%41 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 0
%42 = load i32, ptr %41, align 4
%43 = getelementptr inbounds [100 x [100 x i8]], ptr %14, i64 0, i64 0
%44 = call i32 @read(i32 noundef %42, ptr noundef %43, i32 noundef 10000)
%45 = call i32 (...) @getpid()
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %45)
store i32 0, ptr %7, align 4
br label %47
47: ; preds = %104, %40
%48 = load i32, ptr %7, align 4
%49 = load i32, ptr %4, align 4
%50 = icmp slt i32 %48, %49
br i1 %50, label %51, label %107
51: ; preds = %47
%52 = load i32, ptr %7, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [100 x [100 x i8]], ptr %14, i64 0, i64 %53
%55 = getelementptr inbounds [100 x i8], ptr %54, i64 0, i64 0
%56 = call i32 @strlen(ptr noundef %55)
store i32 %56, ptr %8, align 4
store i32 0, ptr %11, align 4
store i32 0, ptr %9, align 4
%57 = load i32, ptr %8, align 4
%58 = sub nsw i32 %57, 1
store i32 %58, ptr %10, align 4
br label %59
59: ; preds = %83, %51
%60 = load i32, ptr %9, align 4
%61 = load i32, ptr %8, align 4
%62 = icmp slt i32 %60, %61
br i1 %62, label %63, label %88
63: ; preds = %59
%64 = load i32, ptr %7, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [100 x [100 x i8]], ptr %14, i64 0, i64 %65
%67 = load i32, ptr %9, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [100 x i8], ptr %66, i64 0, i64 %68
%70 = load i8, ptr %69, align 1
%71 = sext i8 %70 to i32
%72 = load i32, ptr %7, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [100 x [100 x i8]], ptr %14, i64 0, i64 %73
%75 = load i32, ptr %10, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [100 x i8], ptr %74, i64 0, i64 %76
%78 = load i8, ptr %77, align 1
%79 = sext i8 %78 to i32
%80 = icmp ne i32 %71, %79
br i1 %80, label %81, label %82
81: ; preds = %63
store i32 1, ptr %11, align 4
br label %88
82: ; preds = %63
br label %83
83: ; preds = %82
%84 = load i32, ptr %9, align 4
%85 = add nsw i32 %84, 1
store i32 %85, ptr %9, align 4
%86 = load i32, ptr %10, align 4
%87 = add nsw i32 %86, -1
store i32 %87, ptr %10, align 4
br label %59, !llvm.loop !6
88: ; preds = %81, %59
%89 = load i32, ptr %11, align 4
%90 = icmp eq i32 %89, 0
br i1 %90, label %91, label %103
91: ; preds = %88
%92 = load i32, ptr %12, align 4
%93 = add nsw i32 %92, 1
store i32 %93, ptr %12, align 4
%94 = load i32, ptr %12, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds [100 x [100 x i8]], ptr %13, i64 0, i64 %95
%97 = getelementptr inbounds [100 x i8], ptr %96, i64 0, i64 0
%98 = load i32, ptr %7, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [100 x [100 x i8]], ptr %14, i64 0, i64 %99
%101 = getelementptr inbounds [100 x i8], ptr %100, i64 0, i64 0
%102 = call i32 @strcpy(ptr noundef %97, ptr noundef %101)
br label %103
103: ; preds = %91, %88
br label %104
104: ; preds = %103
%105 = load i32, ptr %7, align 4
%106 = add nsw i32 %105, 1
store i32 %106, ptr %7, align 4
br label %47, !llvm.loop !8
107: ; preds = %47
%108 = load i32, ptr %12, align 4
%109 = trunc i32 %108 to i8
%110 = getelementptr inbounds [100 x [100 x i8]], ptr %13, i64 0, i64 0
%111 = getelementptr inbounds [100 x i8], ptr %110, i64 0, i64 0
store i8 %109, ptr %111, align 16
%112 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
%113 = load i32, ptr %112, align 4
%114 = getelementptr inbounds [100 x [100 x i8]], ptr %13, i64 0, i64 0
%115 = call i32 @write(i32 noundef %113, ptr noundef %114, i32 noundef 10000)
%116 = call i32 @exit(i32 noundef 1) #3
unreachable
117: ; preds = %34
%118 = call i32 (...) @getpid()
%119 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %118)
%120 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
store i32 0, ptr %7, align 4
br label %121
121: ; preds = %131, %117
%122 = load i32, ptr %7, align 4
%123 = load i32, ptr %4, align 4
%124 = icmp slt i32 %122, %123
br i1 %124, label %125, label %134
125: ; preds = %121
%126 = load i32, ptr %7, align 4
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds [100 x [100 x i8]], ptr %13, i64 0, i64 %127
%129 = getelementptr inbounds [100 x i8], ptr %128, i64 0, i64 0
%130 = call i32 (ptr, ...) @scanf(ptr noundef @.str.7, ptr noundef %129)
br label %131
131: ; preds = %125
%132 = load i32, ptr %7, align 4
%133 = add nsw i32 %132, 1
store i32 %133, ptr %7, align 4
br label %121, !llvm.loop !9
134: ; preds = %121
%135 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 1
%136 = load i32, ptr %135, align 4
%137 = getelementptr inbounds [100 x [100 x i8]], ptr %13, i64 0, i64 0
%138 = call i32 @write(i32 noundef %136, ptr noundef %137, i32 noundef 10000)
%139 = load i32, ptr %2, align 4
%140 = call i32 @waitpid(i32 noundef %139, ptr noundef null, i32 noundef 0)
%141 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%142 = load i32, ptr %141, align 4
%143 = getelementptr inbounds [100 x [100 x i8]], ptr %14, i64 0, i64 0
%144 = call i32 @read(i32 noundef %142, ptr noundef %143, i32 noundef 10000)
%145 = load i32, ptr %2, align 4
%146 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %145)
%147 = getelementptr inbounds [100 x [100 x i8]], ptr %14, i64 0, i64 0
%148 = getelementptr inbounds [100 x i8], ptr %147, i64 0, i64 0
%149 = load i8, ptr %148, align 16
%150 = sext i8 %149 to i32
store i32 %150, ptr %4, align 4
%151 = load i32, ptr %4, align 4
%152 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %151)
store i32 1, ptr %7, align 4
br label %153
153: ; preds = %164, %134
%154 = load i32, ptr %7, align 4
%155 = load i32, ptr %4, align 4
%156 = icmp sle i32 %154, %155
br i1 %156, label %157, label %167
157: ; preds = %153
%158 = load i32, ptr %7, align 4
%159 = load i32, ptr %7, align 4
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds [100 x [100 x i8]], ptr %14, i64 0, i64 %160
%162 = getelementptr inbounds [100 x i8], ptr %161, i64 0, i64 0
%163 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %158, ptr noundef %162)
br label %164
164: ; preds = %157
%165 = load i32, ptr %7, align 4
%166 = add nsw i32 %165, 1
store i32 %166, ptr %7, align 4
br label %153, !llvm.loop !10
167: ; preds = %153
br label %168
168: ; preds = %167
%169 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 0
%170 = load i32, ptr %169, align 4
%171 = call i32 @close(i32 noundef %170)
%172 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%173 = load i32, ptr %172, align 4
%174 = call i32 @close(i32 noundef %173)
%175 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 1
%176 = load i32, ptr %175, align 4
%177 = call i32 @close(i32 noundef %176)
%178 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
%179 = load i32, ptr %178, align 4
%180 = call i32 @close(i32 noundef %179)
%181 = load i32, ptr %1, align 4
ret i32 %181
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @pipe(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fork(...) #1
declare i32 @perror(ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @getpid(...) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @waitpid(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk9f5u_65.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"Number of elements:- \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [14 x i8] c"Pipe Failed.\0A\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"main: fork\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"In child process (ID: %d)\0A\00", align 1
@.str.5 = private unnamed_addr constant [28 x i8] c"In parent process (ID: %d)\0A\00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"Enter elements\0A\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.8 = private unnamed_addr constant [29 x i8] c"Total no of palindromes: %d\0A\00", align 1
@.str.9 = private unnamed_addr constant [20 x i8] c"Palindrome %d:- %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [2 x i32], align 4
%6 = alloca [2 x 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 [100 x [100 x i8]], align 16
%14 = alloca [100 x [100 x i8]], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %12, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%16 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %4)
%17 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 0
%18 = call i32 @pipe(ptr noundef %17)
store i32 %18, ptr %3, align 4
%19 = load i32, ptr %3, align 4
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %25
21: ; preds = %0
%22 = load i32, ptr @stderr, align 4
%23 = call i32 @fprintf(i32 noundef %22, ptr noundef @.str.2)
%24 = call i32 @exit(i32 noundef 1) #3
unreachable
25: ; preds = %0
%26 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%27 = call i32 @pipe(ptr noundef %26)
store i32 %27, ptr %3, align 4
%28 = load i32, ptr %3, align 4
%29 = icmp eq i32 %28, -1
br i1 %29, label %30, label %34
30: ; preds = %25
%31 = load i32, ptr @stderr, align 4
%32 = call i32 @fprintf(i32 noundef %31, ptr noundef @.str.2)
%33 = call i32 @exit(i32 noundef 1) #3
unreachable
34: ; preds = %25
%35 = call i32 (...) @fork()
store i32 %35, ptr %2, align 4
%36 = load i32, ptr %2, align 4
switch i32 %36, label %121 [
i32 -1, label %37
i32 0, label %40
]
37: ; preds = %34
%38 = call i32 @perror(ptr noundef @.str.3)
%39 = call i32 @exit(i32 noundef 1) #3
unreachable
40: ; preds = %34
%41 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 0
%42 = load i32, ptr %41, align 4
%43 = getelementptr inbounds [100 x [100 x i8]], ptr %14, i64 0, i64 0
%44 = call i32 @read(i32 noundef %42, ptr noundef %43, i32 noundef 10000)
%45 = call i32 (...) @getpid()
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %45)
store i32 0, ptr %7, align 4
%47 = load i32, ptr %7, align 4
%48 = load i32, ptr %4, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %.lr.ph1, label %111
.lr.ph1: ; preds = %40
br label %50
50: ; preds = %.lr.ph1, %105
%51 = load i32, ptr %7, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [100 x [100 x i8]], ptr %14, i64 0, i64 %52
%54 = getelementptr inbounds [100 x i8], ptr %53, i64 0, i64 0
%55 = call i32 @strlen(ptr noundef %54)
store i32 %55, ptr %8, align 4
store i32 0, ptr %11, align 4
store i32 0, ptr %9, align 4
%56 = load i32, ptr %8, align 4
%57 = sub nsw i32 %56, 1
store i32 %57, ptr %10, align 4
%58 = load i32, ptr %9, align 4
%59 = load i32, ptr %8, align 4
%60 = icmp slt i32 %58, %59
br i1 %60, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %50
br label %61
61: ; preds = %.lr.ph, %81
%62 = load i32, ptr %7, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [100 x [100 x i8]], ptr %14, i64 0, i64 %63
%65 = load i32, ptr %9, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [100 x i8], ptr %64, i64 0, i64 %66
%68 = load i8, ptr %67, align 1
%69 = sext i8 %68 to i32
%70 = load i32, ptr %7, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [100 x [100 x i8]], ptr %14, i64 0, i64 %71
%73 = load i32, ptr %10, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [100 x i8], ptr %72, i64 0, i64 %74
%76 = load i8, ptr %75, align 1
%77 = sext i8 %76 to i32
%78 = icmp ne i32 %69, %77
br i1 %78, label %79, label %80
79: ; preds = %61
store i32 1, ptr %11, align 4
br label %89
80: ; preds = %61
br label %81
81: ; preds = %80
%82 = load i32, ptr %9, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %9, align 4
%84 = load i32, ptr %10, align 4
%85 = add nsw i32 %84, -1
store i32 %85, ptr %10, align 4
%86 = load i32, ptr %9, align 4
%87 = load i32, ptr %8, align 4
%88 = icmp slt i32 %86, %87
br i1 %88, label %61, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %81
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %50
br label %89
89: ; preds = %.loopexit, %79
%90 = load i32, ptr %11, align 4
%91 = icmp eq i32 %90, 0
br i1 %91, label %92, label %104
92: ; preds = %89
%93 = load i32, ptr %12, align 4
%94 = add nsw i32 %93, 1
store i32 %94, ptr %12, align 4
%95 = load i32, ptr %12, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [100 x [100 x i8]], ptr %13, i64 0, i64 %96
%98 = getelementptr inbounds [100 x i8], ptr %97, i64 0, i64 0
%99 = load i32, ptr %7, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [100 x [100 x i8]], ptr %14, i64 0, i64 %100
%102 = getelementptr inbounds [100 x i8], ptr %101, i64 0, i64 0
%103 = call i32 @strcpy(ptr noundef %98, ptr noundef %102)
br label %104
104: ; preds = %92, %89
br label %105
105: ; preds = %104
%106 = load i32, ptr %7, align 4
%107 = add nsw i32 %106, 1
store i32 %107, ptr %7, align 4
%108 = load i32, ptr %7, align 4
%109 = load i32, ptr %4, align 4
%110 = icmp slt i32 %108, %109
br i1 %110, label %50, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %105
br label %111
111: ; preds = %._crit_edge, %40
%112 = load i32, ptr %12, align 4
%113 = trunc i32 %112 to i8
%114 = getelementptr inbounds [100 x [100 x i8]], ptr %13, i64 0, i64 0
%115 = getelementptr inbounds [100 x i8], ptr %114, i64 0, i64 0
store i8 %113, ptr %115, align 16
%116 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
%117 = load i32, ptr %116, align 4
%118 = getelementptr inbounds [100 x [100 x i8]], ptr %13, i64 0, i64 0
%119 = call i32 @write(i32 noundef %117, ptr noundef %118, i32 noundef 10000)
%120 = call i32 @exit(i32 noundef 1) #3
unreachable
121: ; preds = %34
%122 = call i32 (...) @getpid()
%123 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %122)
%124 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
store i32 0, ptr %7, align 4
%125 = load i32, ptr %7, align 4
%126 = load i32, ptr %4, align 4
%127 = icmp slt i32 %125, %126
br i1 %127, label %.lr.ph3, label %140
.lr.ph3: ; preds = %121
br label %128
128: ; preds = %.lr.ph3, %134
%129 = load i32, ptr %7, align 4
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds [100 x [100 x i8]], ptr %13, i64 0, i64 %130
%132 = getelementptr inbounds [100 x i8], ptr %131, i64 0, i64 0
%133 = call i32 (ptr, ...) @scanf(ptr noundef @.str.7, ptr noundef %132)
br label %134
134: ; preds = %128
%135 = load i32, ptr %7, align 4
%136 = add nsw i32 %135, 1
store i32 %136, ptr %7, align 4
%137 = load i32, ptr %7, align 4
%138 = load i32, ptr %4, align 4
%139 = icmp slt i32 %137, %138
br i1 %139, label %128, label %._crit_edge4, !llvm.loop !9
._crit_edge4: ; preds = %134
br label %140
140: ; preds = %._crit_edge4, %121
%141 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 1
%142 = load i32, ptr %141, align 4
%143 = getelementptr inbounds [100 x [100 x i8]], ptr %13, i64 0, i64 0
%144 = call i32 @write(i32 noundef %142, ptr noundef %143, i32 noundef 10000)
%145 = load i32, ptr %2, align 4
%146 = call i32 @waitpid(i32 noundef %145, ptr noundef null, i32 noundef 0)
%147 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%148 = load i32, ptr %147, align 4
%149 = getelementptr inbounds [100 x [100 x i8]], ptr %14, i64 0, i64 0
%150 = call i32 @read(i32 noundef %148, ptr noundef %149, i32 noundef 10000)
%151 = load i32, ptr %2, align 4
%152 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %151)
%153 = getelementptr inbounds [100 x [100 x i8]], ptr %14, i64 0, i64 0
%154 = getelementptr inbounds [100 x i8], ptr %153, i64 0, i64 0
%155 = load i8, ptr %154, align 16
%156 = sext i8 %155 to i32
store i32 %156, ptr %4, align 4
%157 = load i32, ptr %4, align 4
%158 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %157)
store i32 1, ptr %7, align 4
%159 = load i32, ptr %7, align 4
%160 = load i32, ptr %4, align 4
%161 = icmp sle i32 %159, %160
br i1 %161, label %.lr.ph6, label %175
.lr.ph6: ; preds = %140
br label %162
162: ; preds = %.lr.ph6, %169
%163 = load i32, ptr %7, align 4
%164 = load i32, ptr %7, align 4
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds [100 x [100 x i8]], ptr %14, i64 0, i64 %165
%167 = getelementptr inbounds [100 x i8], ptr %166, i64 0, i64 0
%168 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %163, ptr noundef %167)
br label %169
169: ; preds = %162
%170 = load i32, ptr %7, align 4
%171 = add nsw i32 %170, 1
store i32 %171, ptr %7, align 4
%172 = load i32, ptr %7, align 4
%173 = load i32, ptr %4, align 4
%174 = icmp sle i32 %172, %173
br i1 %174, label %162, label %._crit_edge7, !llvm.loop !10
._crit_edge7: ; preds = %169
br label %175
175: ; preds = %._crit_edge7, %140
br label %176
176: ; preds = %175
%177 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 0
%178 = load i32, ptr %177, align 4
%179 = call i32 @close(i32 noundef %178)
%180 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%181 = load i32, ptr %180, align 4
%182 = call i32 @close(i32 noundef %181)
%183 = getelementptr inbounds [2 x i32], ptr %5, i64 0, i64 1
%184 = load i32, ptr %183, align 4
%185 = call i32 @close(i32 noundef %184)
%186 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
%187 = load i32, ptr %186, align 4
%188 = call i32 @close(i32 noundef %187)
%189 = load i32, ptr %1, align 4
ret i32 %189
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @pipe(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fork(...) #1
declare i32 @perror(ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @getpid(...) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @waitpid(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpnkr6_mat.c'
source_filename = "/tmp/tmpnkr6_mat.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cur_time_rfc1123() #0 {
%1 = alloca i32, align 4
%2 = call i32 @time(ptr noundef %1)
%3 = load i32, ptr %1, align 4
%4 = call ptr @time_rfc1123(i32 noundef %3)
ret ptr %4
}
declare i32 @time(ptr noundef) #1
declare ptr @time_rfc1123(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/tmpnkr6_mat.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cur_time_rfc1123() #0 {
%1 = alloca i32, align 4
%2 = call i32 @time(ptr noundef %1)
%3 = load i32, ptr %1, align 4
%4 = call ptr @time_rfc1123(i32 noundef %3)
ret ptr %4
}
declare i32 @time(ptr noundef) #1
declare ptr @time_rfc1123(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/tmpm00igjt8.c'
source_filename = "/tmp/tmpm00igjt8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @divideLine(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 i8, align 1
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = 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
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
store i32 0, ptr %12, align 4
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %6, align 4
%15 = add nsw i32 %14, 1
%16 = call ptr @mallocCharArray(i32 noundef %13, i32 noundef %15)
store ptr %16, ptr %11, align 8
%17 = load ptr, ptr %11, align 8
%18 = icmp ne ptr %17, null
%19 = zext i1 %18 to i32
%20 = call i32 @assert(i32 noundef %19)
br label %21
21: ; preds = %65, %3
%22 = load ptr, ptr %4, align 8
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %8, align 4
%25 = sext i32 %23 to i64
%26 = getelementptr inbounds i8, ptr %22, i64 %25
%27 = load i8, ptr %26, align 1
store i8 %27, ptr %7, align 1
%28 = sext i8 %27 to i32
%29 = icmp ne i32 %28, 0
br i1 %29, label %30, label %66
30: ; preds = %21
%31 = load i8, ptr %7, align 1
%32 = sext i8 %31 to i32
%33 = icmp ne i32 %32, 9
br i1 %33, label %34, label %46
34: ; preds = %30
%35 = load i8, ptr %7, align 1
%36 = load ptr, ptr %11, align 8
%37 = load i32, ptr %9, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds ptr, ptr %36, i64 %38
%40 = load ptr, ptr %39, align 8
%41 = load i32, ptr %10, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %40, i64 %42
store i8 %35, ptr %43, align 1
store i32 1, ptr %12, align 4
%44 = load i32, ptr %10, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %10, align 4
br label %65
46: ; preds = %30
%47 = load i8, ptr %7, align 1
%48 = sext i8 %47 to i32
%49 = icmp eq i32 %48, 9
br i1 %49, label %50, label %64
50: ; preds = %46
%51 = load i32, ptr %12, align 4
%52 = icmp eq i32 %51, 1
br i1 %52, label %53, label %64
53: ; preds = %50
store i32 0, ptr %12, align 4
%54 = load ptr, ptr %11, align 8
%55 = load i32, ptr %9, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds ptr, ptr %54, i64 %56
%58 = load ptr, ptr %57, align 8
%59 = load i32, ptr %10, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i8, ptr %58, i64 %60
store i8 0, ptr %61, align 1
store i32 0, ptr %10, align 4
%62 = load i32, ptr %9, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %9, align 4
br label %64
64: ; preds = %53, %50, %46
br label %65
65: ; preds = %64, %34
br label %21, !llvm.loop !6
66: ; preds = %21
%67 = load i32, ptr %9, align 4
%68 = load i32, ptr %5, align 4
%69 = icmp slt i32 %67, %68
br i1 %69, label %70, label %79
70: ; preds = %66
%71 = load ptr, ptr %11, align 8
%72 = load i32, ptr %9, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds ptr, ptr %71, i64 %73
%75 = load ptr, ptr %74, align 8
%76 = load i32, ptr %10, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i8, ptr %75, i64 %77
store i8 0, ptr %78, align 1
br label %79
79: ; preds = %70, %66
%80 = load ptr, ptr %11, align 8
ret ptr %80
}
declare ptr @mallocCharArray(i32 noundef, i32 noundef) #1
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm00igjt8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @divideLine(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 i8, align 1
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = 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
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
store i32 0, ptr %12, align 4
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %6, align 4
%15 = add nsw i32 %14, 1
%16 = call ptr @mallocCharArray(i32 noundef %13, i32 noundef %15)
store ptr %16, ptr %11, align 8
%17 = load ptr, ptr %11, align 8
%18 = icmp ne ptr %17, null
%19 = zext i1 %18 to i32
%20 = call i32 @assert(i32 noundef %19)
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %8, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %8, align 4
%24 = sext i32 %22 to i64
%25 = getelementptr inbounds i8, ptr %21, i64 %24
%26 = load i8, ptr %25, align 1
store i8 %26, ptr %7, align 1
%27 = sext i8 %26 to i32
%28 = icmp ne i32 %27, 0
br i1 %28, label %.lr.ph, label %73
.lr.ph: ; preds = %3
br label %29
29: ; preds = %.lr.ph, %64
%30 = load i8, ptr %7, align 1
%31 = sext i8 %30 to i32
%32 = icmp ne i32 %31, 9
br i1 %32, label %33, label %45
33: ; preds = %29
%34 = load i8, ptr %7, align 1
%35 = load ptr, ptr %11, align 8
%36 = load i32, ptr %9, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds ptr, ptr %35, i64 %37
%39 = load ptr, ptr %38, align 8
%40 = load i32, ptr %10, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8, ptr %39, i64 %41
store i8 %34, ptr %42, align 1
store i32 1, ptr %12, align 4
%43 = load i32, ptr %10, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %10, align 4
br label %64
45: ; preds = %29
%46 = load i8, ptr %7, align 1
%47 = sext i8 %46 to i32
%48 = icmp eq i32 %47, 9
br i1 %48, label %49, label %63
49: ; preds = %45
%50 = load i32, ptr %12, align 4
%51 = icmp eq i32 %50, 1
br i1 %51, label %52, label %63
52: ; preds = %49
store i32 0, ptr %12, align 4
%53 = load ptr, ptr %11, align 8
%54 = load i32, ptr %9, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds ptr, ptr %53, i64 %55
%57 = load ptr, ptr %56, align 8
%58 = load i32, ptr %10, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8, ptr %57, i64 %59
store i8 0, ptr %60, align 1
store i32 0, ptr %10, align 4
%61 = load i32, ptr %9, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %9, align 4
br label %63
63: ; preds = %52, %49, %45
br label %64
64: ; preds = %63, %33
%65 = load ptr, ptr %4, align 8
%66 = load i32, ptr %8, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %8, align 4
%68 = sext i32 %66 to i64
%69 = getelementptr inbounds i8, ptr %65, i64 %68
%70 = load i8, ptr %69, align 1
store i8 %70, ptr %7, align 1
%71 = sext i8 %70 to i32
%72 = icmp ne i32 %71, 0
br i1 %72, label %29, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %64
br label %73
73: ; preds = %._crit_edge, %3
%74 = load i32, ptr %9, align 4
%75 = load i32, ptr %5, align 4
%76 = icmp slt i32 %74, %75
br i1 %76, label %77, label %86
77: ; preds = %73
%78 = load ptr, ptr %11, align 8
%79 = load i32, ptr %9, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds ptr, ptr %78, i64 %80
%82 = load ptr, ptr %81, align 8
%83 = load i32, ptr %10, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i8, ptr %82, i64 %84
store i8 0, ptr %85, align 1
br label %86
86: ; preds = %77, %73
%87 = load ptr, ptr %11, align 8
ret ptr %87
}
declare ptr @mallocCharArray(i32 noundef, i32 noundef) #1
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp7bx7niyr.c'
source_filename = "/tmp/tmp7bx7niyr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @_strlcat(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%12 = load ptr, ptr %5, align 8
store ptr %12, ptr %8, align 8
%13 = load ptr, ptr %6, align 8
store ptr %13, ptr %9, align 8
%14 = load i64, ptr %7, align 8
store i64 %14, ptr %10, align 8
br label %15
15: ; preds = %26, %3
%16 = load i64, ptr %10, align 8
%17 = add i64 %16, -1
store i64 %17, ptr %10, align 8
%18 = icmp ne i64 %16, 0
br i1 %18, label %19, label %24
19: ; preds = %15
%20 = load ptr, ptr %8, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 0
br label %24
24: ; preds = %19, %15
%25 = phi i1 [ false, %15 ], [ %23, %19 ]
br i1 %25, label %26, label %29
26: ; preds = %24
%27 = load ptr, ptr %8, align 8
%28 = getelementptr inbounds i8, ptr %27, i32 1
store ptr %28, ptr %8, align 8
br label %15, !llvm.loop !6
29: ; preds = %24
%30 = load ptr, ptr %8, align 8
%31 = load ptr, ptr %5, align 8
%32 = ptrtoint ptr %30 to i64
%33 = ptrtoint ptr %31 to i64
%34 = sub i64 %32, %33
store i64 %34, ptr %11, align 8
%35 = load i64, ptr %7, align 8
%36 = load i64, ptr %11, align 8
%37 = sub i64 %35, %36
store i64 %37, ptr %10, align 8
%38 = load i64, ptr %10, align 8
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %45
40: ; preds = %29
%41 = load i64, ptr %11, align 8
%42 = load ptr, ptr %9, align 8
%43 = call i64 @strlen(ptr noundef %42)
%44 = add i64 %41, %43
store i64 %44, ptr %4, align 8
br label %73
45: ; preds = %29
br label %46
46: ; preds = %61, %45
%47 = load ptr, ptr %9, align 8
%48 = load i8, ptr %47, align 1
%49 = sext i8 %48 to i32
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %64
51: ; preds = %46
%52 = load i64, ptr %10, align 8
%53 = icmp ne i64 %52, 1
br i1 %53, label %54, label %61
54: ; preds = %51
%55 = load ptr, ptr %9, align 8
%56 = load i8, ptr %55, align 1
%57 = load ptr, ptr %8, align 8
%58 = getelementptr inbounds i8, ptr %57, i32 1
store ptr %58, ptr %8, align 8
store i8 %56, ptr %57, align 1
%59 = load i64, ptr %10, align 8
%60 = add i64 %59, -1
store i64 %60, ptr %10, align 8
br label %61
61: ; preds = %54, %51
%62 = load ptr, ptr %9, align 8
%63 = getelementptr inbounds i8, ptr %62, i32 1
store ptr %63, ptr %9, align 8
br label %46, !llvm.loop !8
64: ; preds = %46
%65 = load ptr, ptr %8, align 8
store i8 0, ptr %65, align 1
%66 = load i64, ptr %11, align 8
%67 = load ptr, ptr %9, align 8
%68 = load ptr, ptr %6, align 8
%69 = ptrtoint ptr %67 to i64
%70 = ptrtoint ptr %68 to i64
%71 = sub i64 %69, %70
%72 = add i64 %66, %71
store i64 %72, ptr %4, align 8
br label %73
73: ; preds = %64, %40
%74 = load i64, ptr %4, align 8
ret i64 %74
}
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7bx7niyr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @_strlcat(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%12 = load ptr, ptr %5, align 8
store ptr %12, ptr %8, align 8
%13 = load ptr, ptr %6, align 8
store ptr %13, ptr %9, align 8
%14 = load i64, ptr %7, align 8
store i64 %14, ptr %10, align 8
br label %15
15: ; preds = %26, %3
%16 = load i64, ptr %10, align 8
%17 = add i64 %16, -1
store i64 %17, ptr %10, align 8
%18 = icmp ne i64 %16, 0
br i1 %18, label %19, label %24
19: ; preds = %15
%20 = load ptr, ptr %8, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 0
br label %24
24: ; preds = %19, %15
%25 = phi i1 [ false, %15 ], [ %23, %19 ]
br i1 %25, label %26, label %29
26: ; preds = %24
%27 = load ptr, ptr %8, align 8
%28 = getelementptr inbounds i8, ptr %27, i32 1
store ptr %28, ptr %8, align 8
br label %15, !llvm.loop !6
29: ; preds = %24
%30 = load ptr, ptr %8, align 8
%31 = load ptr, ptr %5, align 8
%32 = ptrtoint ptr %30 to i64
%33 = ptrtoint ptr %31 to i64
%34 = sub i64 %32, %33
store i64 %34, ptr %11, align 8
%35 = load i64, ptr %7, align 8
%36 = load i64, ptr %11, align 8
%37 = sub i64 %35, %36
store i64 %37, ptr %10, align 8
%38 = load i64, ptr %10, align 8
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %45
40: ; preds = %29
%41 = load i64, ptr %11, align 8
%42 = load ptr, ptr %9, align 8
%43 = call i64 @strlen(ptr noundef %42)
%44 = add i64 %41, %43
store i64 %44, ptr %4, align 8
br label %76
45: ; preds = %29
%46 = load ptr, ptr %9, align 8
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = icmp ne i32 %48, 0
br i1 %49, label %.lr.ph, label %67
.lr.ph: ; preds = %45
br label %50
50: ; preds = %.lr.ph, %60
%51 = load i64, ptr %10, align 8
%52 = icmp ne i64 %51, 1
br i1 %52, label %53, label %60
53: ; preds = %50
%54 = load ptr, ptr %9, align 8
%55 = load i8, ptr %54, align 1
%56 = load ptr, ptr %8, align 8
%57 = getelementptr inbounds i8, ptr %56, i32 1
store ptr %57, ptr %8, align 8
store i8 %55, ptr %56, align 1
%58 = load i64, ptr %10, align 8
%59 = add i64 %58, -1
store i64 %59, ptr %10, align 8
br label %60
60: ; preds = %53, %50
%61 = load ptr, ptr %9, align 8
%62 = getelementptr inbounds i8, ptr %61, i32 1
store ptr %62, ptr %9, align 8
%63 = load ptr, ptr %9, align 8
%64 = load i8, ptr %63, align 1
%65 = sext i8 %64 to i32
%66 = icmp ne i32 %65, 0
br i1 %66, label %50, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %60
br label %67
67: ; preds = %._crit_edge, %45
%68 = load ptr, ptr %8, align 8
store i8 0, ptr %68, align 1
%69 = load i64, ptr %11, align 8
%70 = load ptr, ptr %9, align 8
%71 = load ptr, ptr %6, align 8
%72 = ptrtoint ptr %70 to i64
%73 = ptrtoint ptr %71 to i64
%74 = sub i64 %72, %73
%75 = add i64 %69, %74
store i64 %75, ptr %4, align 8
br label %76
76: ; preds = %67, %40
%77 = load i64, ptr %4, align 8
ret i64 %77
}
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmppf6lk9fx.c'
source_filename = "/tmp/tmppf6lk9fx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CLOCK_MONOTONIC = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppf6lk9fx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CLOCK_MONOTONIC = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpe1mfvrvn.c'
source_filename = "/tmp/tmpe1mfvrvn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_2__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @get_XSetWindowAttributes_backing_planes(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds %struct.TYPE_2__, ptr %3, i32 0, i32 0
%5 = load i64, ptr %4, align 8
ret i64 %5
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe1mfvrvn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_2__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @get_XSetWindowAttributes_backing_planes(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds %struct.TYPE_2__, ptr %3, i32 0, i32 0
%5 = load i64, ptr %4, align 8
ret i64 %5
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkllgq039.c'
source_filename = "/tmp/tmpkllgq039.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Token: %s \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @tokenise(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [40 x [80 x i8]], align 16
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store ptr null, ptr %4, align 8
%9 = load ptr, ptr %2, align 8
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %2, align 8
%11 = getelementptr inbounds i8, ptr %10, i64 1
store ptr %11, ptr %4, align 8
store i32 0, ptr %6, align 4
store i32 1, ptr %7, align 4
br label %12
12: ; preds = %55, %1
%13 = load ptr, ptr %3, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %60
17: ; preds = %12
%18 = load ptr, ptr %3, align 8
%19 = load i8, ptr %18, align 1
%20 = load ptr, ptr %4, align 8
%21 = load i8, ptr %20, align 1
%22 = call i32 @ischange(i8 noundef signext %19, i8 noundef signext %21)
store i32 %22, ptr %8, align 4
%23 = load i32, ptr %8, align 4
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %28
25: ; preds = %17
%26 = load i32, ptr %7, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %7, align 4
br label %55
28: ; preds = %17
%29 = load i32, ptr %8, align 4
%30 = icmp eq i32 %29, 1
br i1 %30, label %31, label %54
31: ; preds = %28
%32 = load i32, ptr %6, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [40 x [80 x i8]], ptr %5, i64 0, i64 %33
%35 = getelementptr inbounds [80 x i8], ptr %34, i64 0, i64 0
%36 = load ptr, ptr %2, align 8
%37 = load i32, ptr %7, align 4
%38 = call i32 @strncpy(ptr noundef %35, ptr noundef %36, i32 noundef %37)
%39 = load i32, ptr %6, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [40 x [80 x i8]], ptr %5, i64 0, i64 %40
%42 = load i32, ptr %7, align 4
%43 = add nsw i32 %42, 1
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [80 x i8], ptr %41, i64 0, i64 %44
store i8 0, ptr %45, align 1
%46 = load i32, ptr %6, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [40 x [80 x i8]], ptr %5, i64 0, i64 %47
%49 = getelementptr inbounds [80 x i8], ptr %48, i64 0, i64 0
%50 = call i32 @printf(ptr noundef @.str, ptr noundef %49)
store i32 1, ptr %7, align 4
%51 = load i32, ptr %6, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %6, align 4
%53 = load ptr, ptr %3, align 8
store ptr %53, ptr %2, align 8
br label %54
54: ; preds = %31, %28
br label %55
55: ; preds = %54, %25
%56 = load ptr, ptr %3, align 8
%57 = getelementptr inbounds i8, ptr %56, i32 1
store ptr %57, ptr %3, align 8
%58 = load ptr, ptr %3, align 8
%59 = getelementptr inbounds i8, ptr %58, i64 1
store ptr %59, ptr %4, align 8
br label %12, !llvm.loop !6
60: ; preds = %12
%61 = load ptr, ptr %3, align 8
%62 = load i8, ptr %61, align 1
%63 = call i32 @isspace(i8 noundef signext %62)
%64 = icmp ne i32 %63, 0
br i1 %64, label %85, label %65
65: ; preds = %60
%66 = load i32, ptr %6, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [40 x [80 x i8]], ptr %5, i64 0, i64 %67
%69 = getelementptr inbounds [80 x i8], ptr %68, i64 0, i64 0
%70 = load ptr, ptr %2, align 8
%71 = load i32, ptr %7, align 4
%72 = call i32 @strncpy(ptr noundef %69, ptr noundef %70, i32 noundef %71)
%73 = load i32, ptr %6, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [40 x [80 x i8]], ptr %5, i64 0, i64 %74
%76 = load i32, ptr %7, align 4
%77 = add nsw i32 %76, 1
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [80 x i8], ptr %75, i64 0, i64 %78
store i8 0, ptr %79, align 1
%80 = load i32, ptr %6, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [40 x [80 x i8]], ptr %5, i64 0, i64 %81
%83 = getelementptr inbounds [80 x i8], ptr %82, i64 0, i64 0
%84 = call i32 @printf(ptr noundef @.str, ptr noundef %83)
br label %85
85: ; preds = %65, %60
ret void
}
declare i32 @ischange(i8 noundef signext, i8 noundef signext) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @isspace(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkllgq039.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Token: %s \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @tokenise(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [40 x [80 x i8]], align 16
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store ptr null, ptr %4, align 8
%9 = load ptr, ptr %2, align 8
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %2, align 8
%11 = getelementptr inbounds i8, ptr %10, i64 1
store ptr %11, ptr %4, align 8
store i32 0, ptr %6, align 4
store i32 1, ptr %7, align 4
%12 = load ptr, ptr %3, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 0
br i1 %15, label %.lr.ph, label %63
.lr.ph: ; preds = %1
br label %16
16: ; preds = %.lr.ph, %54
%17 = load ptr, ptr %3, align 8
%18 = load i8, ptr %17, align 1
%19 = load ptr, ptr %4, align 8
%20 = load i8, ptr %19, align 1
%21 = call i32 @ischange(i8 noundef signext %18, i8 noundef signext %20)
store i32 %21, ptr %8, align 4
%22 = load i32, ptr %8, align 4
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %16
%25 = load i32, ptr %7, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %7, align 4
br label %54
27: ; preds = %16
%28 = load i32, ptr %8, align 4
%29 = icmp eq i32 %28, 1
br i1 %29, label %30, label %53
30: ; preds = %27
%31 = load i32, ptr %6, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [40 x [80 x i8]], ptr %5, i64 0, i64 %32
%34 = getelementptr inbounds [80 x i8], ptr %33, i64 0, i64 0
%35 = load ptr, ptr %2, align 8
%36 = load i32, ptr %7, align 4
%37 = call i32 @strncpy(ptr noundef %34, ptr noundef %35, i32 noundef %36)
%38 = load i32, ptr %6, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [40 x [80 x i8]], ptr %5, i64 0, i64 %39
%41 = load i32, ptr %7, align 4
%42 = add nsw i32 %41, 1
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [80 x i8], ptr %40, i64 0, i64 %43
store i8 0, ptr %44, align 1
%45 = load i32, ptr %6, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [40 x [80 x i8]], ptr %5, i64 0, i64 %46
%48 = getelementptr inbounds [80 x i8], ptr %47, i64 0, i64 0
%49 = call i32 @printf(ptr noundef @.str, ptr noundef %48)
store i32 1, ptr %7, align 4
%50 = load i32, ptr %6, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %6, align 4
%52 = load ptr, ptr %3, align 8
store ptr %52, ptr %2, align 8
br label %53
53: ; preds = %30, %27
br label %54
54: ; preds = %53, %24
%55 = load ptr, ptr %3, align 8
%56 = getelementptr inbounds i8, ptr %55, i32 1
store ptr %56, ptr %3, align 8
%57 = load ptr, ptr %3, align 8
%58 = getelementptr inbounds i8, ptr %57, i64 1
store ptr %58, ptr %4, align 8
%59 = load ptr, ptr %3, align 8
%60 = load i8, ptr %59, align 1
%61 = sext i8 %60 to i32
%62 = icmp ne i32 %61, 0
br i1 %62, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %54
br label %63
63: ; preds = %._crit_edge, %1
%64 = load ptr, ptr %3, align 8
%65 = load i8, ptr %64, align 1
%66 = call i32 @isspace(i8 noundef signext %65)
%67 = icmp ne i32 %66, 0
br i1 %67, label %88, label %68
68: ; preds = %63
%69 = load i32, ptr %6, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [40 x [80 x i8]], ptr %5, i64 0, i64 %70
%72 = getelementptr inbounds [80 x i8], ptr %71, i64 0, i64 0
%73 = load ptr, ptr %2, align 8
%74 = load i32, ptr %7, align 4
%75 = call i32 @strncpy(ptr noundef %72, ptr noundef %73, i32 noundef %74)
%76 = load i32, ptr %6, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [40 x [80 x i8]], ptr %5, i64 0, i64 %77
%79 = load i32, ptr %7, align 4
%80 = add nsw i32 %79, 1
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [80 x i8], ptr %78, i64 0, i64 %81
store i8 0, ptr %82, align 1
%83 = load i32, ptr %6, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [40 x [80 x i8]], ptr %5, i64 0, i64 %84
%86 = getelementptr inbounds [80 x i8], ptr %85, i64 0, i64 0
%87 = call i32 @printf(ptr noundef @.str, ptr noundef %86)
br label %88
88: ; preds = %68, %63
ret void
}
declare i32 @ischange(i8 noundef signext, i8 noundef signext) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @isspace(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpsavlmk64.c'
source_filename = "/tmp/tmpsavlmk64.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @push(i8 noundef signext 97)
%3 = call i32 @push(i8 noundef signext 98)
%4 = call i32 @push(i8 noundef signext 99)
br label %5
5: ; preds = %9, %0
%6 = call i32 (...) @is_empty()
%7 = icmp ne i32 %6, 0
%8 = xor i1 %7, true
br i1 %8, label %9, label %12
9: ; preds = %5
%10 = call signext i8 (...) @pop()
%11 = call i32 @putchar(i8 noundef signext %10)
br label %5, !llvm.loop !6
12: ; preds = %5
%13 = call i32 @putchar(i8 noundef signext 10)
ret i32 0
}
declare i32 @push(i8 noundef signext) #1
declare i32 @is_empty(...) #1
declare i32 @putchar(i8 noundef signext) #1
declare signext i8 @pop(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpsavlmk64.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @push(i8 noundef signext 97)
%3 = call i32 @push(i8 noundef signext 98)
%4 = call i32 @push(i8 noundef signext 99)
%5 = call i32 (...) @is_empty()
%6 = icmp ne i32 %5, 0
%7 = xor i1 %6, true
br i1 %7, label %.lr.ph, label %14
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %8
%9 = call signext i8 (...) @pop()
%10 = call i32 @putchar(i8 noundef signext %9)
%11 = call i32 (...) @is_empty()
%12 = icmp ne i32 %11, 0
%13 = xor i1 %12, true
br i1 %13, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %8
br label %14
14: ; preds = %._crit_edge, %0
%15 = call i32 @putchar(i8 noundef signext 10)
ret i32 0
}
declare i32 @push(i8 noundef signext) #1
declare i32 @is_empty(...) #1
declare i32 @putchar(i8 noundef signext) #1
declare signext i8 @pop(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpw9uuwd39.c'
source_filename = "/tmp/tmpw9uuwd39.c"
target datalayout = "e-m:e-p270: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/tmpw9uuwd39.c"
target datalayout = "e-m:e-p270: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/tmpglu8eq6e.c'
source_filename = "/tmp/tmpglu8eq6e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @toasim_write_64(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i32 8, ptr %7, align 4
%8 = load ptr, ptr %4, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @fwrite_err(ptr noundef %8, i32 noundef 4, i32 noundef 1, ptr noundef %9)
%11 = load ptr, ptr %6, align 8
%12 = call i32 @fwrite_err(ptr noundef %7, i32 noundef 4, i32 noundef 1, ptr noundef %11)
%13 = load ptr, ptr %5, align 8
%14 = load i32, ptr %7, align 4
%15 = load ptr, ptr %6, align 8
%16 = call i32 @fwrite_err(ptr noundef %13, i32 noundef %14, i32 noundef 1, ptr noundef %15)
ret void
}
declare i32 @fwrite_err(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpglu8eq6e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @toasim_write_64(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i32 8, ptr %7, align 4
%8 = load ptr, ptr %4, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @fwrite_err(ptr noundef %8, i32 noundef 4, i32 noundef 1, ptr noundef %9)
%11 = load ptr, ptr %6, align 8
%12 = call i32 @fwrite_err(ptr noundef %7, i32 noundef 4, i32 noundef 1, ptr noundef %11)
%13 = load ptr, ptr %5, align 8
%14 = load i32, ptr %7, align 4
%15 = load ptr, ptr %6, align 8
%16 = call i32 @fwrite_err(ptr noundef %13, i32 noundef %14, i32 noundef 1, ptr noundef %15)
ret void
}
declare i32 @fwrite_err(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppo9wo2eo.c'
source_filename = "/tmp/tmppo9wo2eo.c"
target datalayout = "e-m:e-p270: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/tmppo9wo2eo.c"
target datalayout = "e-m:e-p270: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/tmpbop1zqo_.c'
source_filename = "/tmp/tmpbop1zqo_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"file:%s \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printFile(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 %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @fprintf(ptr noundef %6, ptr noundef @.str, ptr noundef %7)
ret void
}
declare i32 @fprintf(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/tmpbop1zqo_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"file:%s \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printFile(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 %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @fprintf(ptr noundef %6, ptr noundef @.str, ptr noundef %7)
ret void
}
declare i32 @fprintf(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/tmpp6ofww_2.c'
source_filename = "/tmp/tmpp6ofww_2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"Error writing to i2c slave\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @read_request(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = load ptr, ptr %4, align 8
%7 = call i32 @write(i32 noundef %5, ptr noundef %6, i32 noundef 1)
%8 = icmp ne i32 %7, 1
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = call i32 @printf(ptr noundef @.str)
%11 = call i32 @exit(i32 noundef 1) #3
unreachable
12: ; preds = %2
ret void
}
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(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/tmpp6ofww_2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"Error writing to i2c slave\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @read_request(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = load ptr, ptr %4, align 8
%7 = call i32 @write(i32 noundef %5, ptr noundef %6, i32 noundef 1)
%8 = icmp ne i32 %7, 1
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = call i32 @printf(ptr noundef @.str)
%11 = call i32 @exit(i32 noundef 1) #3
unreachable
12: ; preds = %2
ret void
}
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(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/tmpnjd2ntnz.c'
source_filename = "/tmp/tmpnjd2ntnz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_print_comb() #0 {
%1 = alloca i8, align 1
%2 = alloca i8, align 1
%3 = alloca i8, align 1
store i8 48, ptr %1, align 1
br label %4
4: ; preds = %36, %0
%5 = load i8, ptr %1, align 1
%6 = sext i8 %5 to i32
%7 = icmp sle i32 %6, 57
br i1 %7, label %8, label %39
8: ; preds = %4
%9 = load i8, ptr %1, align 1
%10 = sext i8 %9 to i32
%11 = add nsw i32 %10, 1
%12 = trunc i32 %11 to i8
store i8 %12, ptr %2, align 1
br label %13
13: ; preds = %33, %8
%14 = load i8, ptr %2, align 1
%15 = sext i8 %14 to i32
%16 = icmp sle i32 %15, 57
br i1 %16, label %17, label %36
17: ; preds = %13
%18 = load i8, ptr %2, align 1
%19 = sext i8 %18 to i32
%20 = add nsw i32 %19, 1
%21 = trunc i32 %20 to i8
store i8 %21, ptr %3, align 1
br label %22
22: ; preds = %26, %17
%23 = load i8, ptr %3, align 1
%24 = sext i8 %23 to i32
%25 = icmp sle i32 %24, 57
br i1 %25, label %26, label %33
26: ; preds = %22
%27 = load i8, ptr %1, align 1
%28 = load i8, ptr %2, align 1
%29 = load i8, ptr %3, align 1
%30 = call i32 @ft_print(i8 noundef signext %27, i8 noundef signext %28, i8 noundef signext %29)
%31 = load i8, ptr %3, align 1
%32 = add i8 %31, 1
store i8 %32, ptr %3, align 1
br label %22, !llvm.loop !6
33: ; preds = %22
%34 = load i8, ptr %2, align 1
%35 = add i8 %34, 1
store i8 %35, ptr %2, align 1
br label %13, !llvm.loop !8
36: ; preds = %13
%37 = load i8, ptr %1, align 1
%38 = add i8 %37, 1
store i8 %38, ptr %1, align 1
br label %4, !llvm.loop !9
39: ; preds = %4
ret void
}
declare i32 @ft_print(i8 noundef signext, 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnjd2ntnz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_print_comb() #0 {
%1 = alloca i8, align 1
%2 = alloca i8, align 1
%3 = alloca i8, align 1
store i8 48, ptr %1, align 1
%4 = load i8, ptr %1, align 1
%5 = sext i8 %4 to i32
%6 = icmp sle i32 %5, 57
br i1 %6, label %.lr.ph5, label %45
.lr.ph5: ; preds = %0
br label %7
7: ; preds = %.lr.ph5, %39
%8 = load i8, ptr %1, align 1
%9 = sext i8 %8 to i32
%10 = add nsw i32 %9, 1
%11 = trunc i32 %10 to i8
store i8 %11, ptr %2, align 1
%12 = load i8, ptr %2, align 1
%13 = sext i8 %12 to i32
%14 = icmp sle i32 %13, 57
br i1 %14, label %.lr.ph2, label %39
.lr.ph2: ; preds = %7
br label %15
15: ; preds = %.lr.ph2, %33
%16 = load i8, ptr %2, align 1
%17 = sext i8 %16 to i32
%18 = add nsw i32 %17, 1
%19 = trunc i32 %18 to i8
store i8 %19, ptr %3, align 1
%20 = load i8, ptr %3, align 1
%21 = sext i8 %20 to i32
%22 = icmp sle i32 %21, 57
br i1 %22, label %.lr.ph, label %33
.lr.ph: ; preds = %15
br label %23
23: ; preds = %.lr.ph, %23
%24 = load i8, ptr %1, align 1
%25 = load i8, ptr %2, align 1
%26 = load i8, ptr %3, align 1
%27 = call i32 @ft_print(i8 noundef signext %24, i8 noundef signext %25, i8 noundef signext %26)
%28 = load i8, ptr %3, align 1
%29 = add i8 %28, 1
store i8 %29, ptr %3, align 1
%30 = load i8, ptr %3, align 1
%31 = sext i8 %30 to i32
%32 = icmp sle i32 %31, 57
br i1 %32, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %33
33: ; preds = %._crit_edge, %15
%34 = load i8, ptr %2, align 1
%35 = add i8 %34, 1
store i8 %35, ptr %2, align 1
%36 = load i8, ptr %2, align 1
%37 = sext i8 %36 to i32
%38 = icmp sle i32 %37, 57
br i1 %38, label %15, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %33
br label %39
39: ; preds = %._crit_edge3, %7
%40 = load i8, ptr %1, align 1
%41 = add i8 %40, 1
store i8 %41, ptr %1, align 1
%42 = load i8, ptr %1, align 1
%43 = sext i8 %42 to i32
%44 = icmp sle i32 %43, 57
br i1 %44, label %7, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %39
br label %45
45: ; preds = %._crit_edge6, %0
ret void
}
declare i32 @ft_print(i8 noundef signext, 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpsom5140d.c'
source_filename = "/tmp/tmpsom5140d.c"
target datalayout = "e-m:e-p270: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/tmpsom5140d.c"
target datalayout = "e-m:e-p270: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/tmp2zueys4n.c'
source_filename = "/tmp/tmp2zueys4n.c"
target datalayout = "e-m:e-p270: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/tmp2zueys4n.c"
target datalayout = "e-m:e-p270: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/tmpcecwet1w.c'
source_filename = "/tmp/tmpcecwet1w.c"
target datalayout = "e-m:e-p270: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/tmpcecwet1w.c"
target datalayout = "e-m:e-p270: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/tmphqa_telp.c'
source_filename = "/tmp/tmphqa_telp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"w\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [38 x i8] c"%s: cannot open file for writing: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"tlist(trasker)\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cmdline_parser_file_save(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %7, align 4
%8 = load ptr, ptr %4, align 8
%9 = call ptr @fopen(ptr noundef %8, ptr noundef @.str)
store ptr %9, ptr %6, align 8
%10 = load ptr, ptr %6, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %17, label %12
12: ; preds = %2
%13 = load i32, ptr @stderr, align 4
%14 = load ptr, ptr %4, align 8
%15 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef %14)
%16 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %16, ptr %3, align 4
br label %24
17: ; preds = %2
%18 = load ptr, ptr %6, align 8
%19 = load ptr, ptr %5, align 8
%20 = call i32 @cmdline_parser_dump(ptr noundef %18, ptr noundef %19)
store i32 %20, ptr %7, align 4
%21 = load ptr, ptr %6, align 8
%22 = call i32 @fclose(ptr noundef %21)
%23 = load i32, ptr %7, align 4
store i32 %23, ptr %3, align 4
br label %24
24: ; preds = %17, %12
%25 = load i32, ptr %3, align 4
ret i32 %25
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @cmdline_parser_dump(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphqa_telp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"w\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [38 x i8] c"%s: cannot open file for writing: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"tlist(trasker)\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cmdline_parser_file_save(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %7, align 4
%8 = load ptr, ptr %4, align 8
%9 = call ptr @fopen(ptr noundef %8, ptr noundef @.str)
store ptr %9, ptr %6, align 8
%10 = load ptr, ptr %6, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %17, label %12
12: ; preds = %2
%13 = load i32, ptr @stderr, align 4
%14 = load ptr, ptr %4, align 8
%15 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef %14)
%16 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %16, ptr %3, align 4
br label %24
17: ; preds = %2
%18 = load ptr, ptr %6, align 8
%19 = load ptr, ptr %5, align 8
%20 = call i32 @cmdline_parser_dump(ptr noundef %18, ptr noundef %19)
store i32 %20, ptr %7, align 4
%21 = load ptr, ptr %6, align 8
%22 = call i32 @fclose(ptr noundef %21)
%23 = load i32, ptr %7, align 4
store i32 %23, ptr %3, align 4
br label %24
24: ; preds = %17, %12
%25 = load i32, ptr %3, align 4
ret i32 %25
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @cmdline_parser_dump(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6ypcl_gl.c'
source_filename = "/tmp/tmp6ypcl_gl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ez_net_tcp_accept(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 @ez_net_tcp_accept2(i32 noundef %3, ptr noundef null, i32 noundef 0, ptr noundef null)
ret i32 %4
}
declare i32 @ez_net_tcp_accept2(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6ypcl_gl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ez_net_tcp_accept(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 @ez_net_tcp_accept2(i32 noundef %3, ptr noundef null, i32 noundef 0, ptr noundef null)
ret i32 %4
}
declare i32 @ez_net_tcp_accept2(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqs_ptf4a.c'
source_filename = "/tmp/tmpqs_ptf4a.c"
target datalayout = "e-m:e-p270: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 [24 x i8] c"Failed closing socket.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @close_socket(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = call i64 @close(i32 noundef %4)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load i32, ptr @stderr, align 4
%9 = call i32 @fprintf(i32 noundef %8, ptr noundef @.str)
store i32 1, ptr %2, align 4
br label %11
10: ; preds = %1
store i32 0, ptr %2, align 4
br label %11
11: ; preds = %10, %7
%12 = load i32, ptr %2, align 4
ret i32 %12
}
declare i64 @close(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqs_ptf4a.c"
target datalayout = "e-m:e-p270: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 [24 x i8] c"Failed closing socket.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @close_socket(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = call i64 @close(i32 noundef %4)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load i32, ptr @stderr, align 4
%9 = call i32 @fprintf(i32 noundef %8, ptr noundef @.str)
store i32 1, ptr %2, align 4
br label %11
10: ; preds = %1
store i32 0, ptr %2, align 4
br label %11
11: ; preds = %10, %7
%12 = load i32, ptr %2, align 4
ret i32 %12
}
declare i64 @close(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqsd4jfap.c'
source_filename = "/tmp/tmpqsd4jfap.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c".\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @os_DirName(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call ptr @xstrdup(ptr noundef %5)
store ptr %6, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call ptr @strchr(ptr noundef %7, i32 noundef 0)
%9 = getelementptr inbounds i8, ptr %8, i64 -1
store ptr %9, ptr %4, align 8
br label %10
10: ; preds = %21, %1
%11 = load ptr, ptr %4, align 8
%12 = load ptr, ptr %3, align 8
%13 = icmp uge ptr %11, %12
br i1 %13, label %14, label %19
14: ; preds = %10
%15 = load ptr, ptr %4, align 8
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 47
br label %19
19: ; preds = %14, %10
%20 = phi i1 [ false, %10 ], [ %18, %14 ]
br i1 %20, label %21, label %24
21: ; preds = %19
%22 = load ptr, ptr %4, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 -1
store ptr %23, ptr %4, align 8
store i8 0, ptr %22, align 1
br label %10, !llvm.loop !6
24: ; preds = %19
%25 = load ptr, ptr %3, align 8
%26 = call ptr @strrchr(ptr noundef %25, i8 noundef signext 47)
store ptr %26, ptr %4, align 8
%27 = load ptr, ptr %4, align 8
%28 = icmp eq ptr %27, null
br i1 %28, label %29, label %31
29: ; preds = %24
%30 = call ptr @xstrdup(ptr noundef @.str)
store ptr %30, ptr %3, align 8
br label %49
31: ; preds = %24
br label %32
32: ; preds = %43, %31
%33 = load ptr, ptr %4, align 8
%34 = load ptr, ptr %3, align 8
%35 = icmp ugt ptr %33, %34
br i1 %35, label %36, label %41
36: ; preds = %32
%37 = load ptr, ptr %4, align 8
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 47
br label %41
41: ; preds = %36, %32
%42 = phi i1 [ false, %32 ], [ %40, %36 ]
br i1 %42, label %43, label %46
43: ; preds = %41
%44 = load ptr, ptr %4, align 8
%45 = getelementptr inbounds i8, ptr %44, i32 -1
store ptr %45, ptr %4, align 8
br label %32, !llvm.loop !8
46: ; preds = %41
%47 = load ptr, ptr %4, align 8
%48 = getelementptr inbounds i8, ptr %47, i64 1
store i8 0, ptr %48, align 1
br label %49
49: ; preds = %46, %29
%50 = load ptr, ptr %3, align 8
ret ptr %50
}
declare ptr @xstrdup(ptr noundef) #1
declare ptr @strchr(ptr noundef, i32 noundef) #1
declare ptr @strrchr(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqsd4jfap.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c".\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @os_DirName(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call ptr @xstrdup(ptr noundef %5)
store ptr %6, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call ptr @strchr(ptr noundef %7, i32 noundef 0)
%9 = getelementptr inbounds i8, ptr %8, i64 -1
store ptr %9, ptr %4, align 8
br label %10
10: ; preds = %21, %1
%11 = load ptr, ptr %4, align 8
%12 = load ptr, ptr %3, align 8
%13 = icmp uge ptr %11, %12
br i1 %13, label %14, label %19
14: ; preds = %10
%15 = load ptr, ptr %4, align 8
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 47
br label %19
19: ; preds = %14, %10
%20 = phi i1 [ false, %10 ], [ %18, %14 ]
br i1 %20, label %21, label %24
21: ; preds = %19
%22 = load ptr, ptr %4, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 -1
store ptr %23, ptr %4, align 8
store i8 0, ptr %22, align 1
br label %10, !llvm.loop !6
24: ; preds = %19
%25 = load ptr, ptr %3, align 8
%26 = call ptr @strrchr(ptr noundef %25, i8 noundef signext 47)
store ptr %26, ptr %4, align 8
%27 = load ptr, ptr %4, align 8
%28 = icmp eq ptr %27, null
br i1 %28, label %29, label %31
29: ; preds = %24
%30 = call ptr @xstrdup(ptr noundef @.str)
store ptr %30, ptr %3, align 8
br label %49
31: ; preds = %24
br label %32
32: ; preds = %43, %31
%33 = load ptr, ptr %4, align 8
%34 = load ptr, ptr %3, align 8
%35 = icmp ugt ptr %33, %34
br i1 %35, label %36, label %41
36: ; preds = %32
%37 = load ptr, ptr %4, align 8
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 47
br label %41
41: ; preds = %36, %32
%42 = phi i1 [ false, %32 ], [ %40, %36 ]
br i1 %42, label %43, label %46
43: ; preds = %41
%44 = load ptr, ptr %4, align 8
%45 = getelementptr inbounds i8, ptr %44, i32 -1
store ptr %45, ptr %4, align 8
br label %32, !llvm.loop !8
46: ; preds = %41
%47 = load ptr, ptr %4, align 8
%48 = getelementptr inbounds i8, ptr %47, i64 1
store i8 0, ptr %48, align 1
br label %49
49: ; preds = %46, %29
%50 = load ptr, ptr %3, align 8
ret ptr %50
}
declare ptr @xstrdup(ptr noundef) #1
declare ptr @strchr(ptr noundef, i32 noundef) #1
declare ptr @strrchr(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp8dnb9ada.c'
source_filename = "/tmp/tmp8dnb9ada.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"too few arguments\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 3
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = call i32 @printf(ptr noundef @.str)
%11 = call i32 @exit(i32 noundef 1) #3
unreachable
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 1
%15 = load ptr, ptr %14, align 8
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 2
%18 = load ptr, ptr %17, align 8
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 3
%21 = load ptr, ptr %20, align 8
%22 = call i32 @pal2bin(ptr noundef %15, ptr noundef %18, ptr noundef %21)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @pal2bin(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" }
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/tmp8dnb9ada.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"too few arguments\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 3
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = call i32 @printf(ptr noundef @.str)
%11 = call i32 @exit(i32 noundef 1) #3
unreachable
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 1
%15 = load ptr, ptr %14, align 8
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 2
%18 = load ptr, ptr %17, align 8
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 3
%21 = load ptr, ptr %20, align 8
%22 = call i32 @pal2bin(ptr noundef %15, ptr noundef %18, ptr noundef %21)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @pal2bin(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" }
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/tmp3vs1jmf_.c'
source_filename = "/tmp/tmp3vs1jmf_.c"
target datalayout = "e-m:e-p270: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.a = private unnamed_addr constant [6 x i8] c"abccd\00", align 1
@__const.main.b = private unnamed_addr constant [3 x i8] c"cb\00", align 1
@.str = private unnamed_addr constant [25 x i8] c"Before function call...\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"a = %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"b = %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"After function call...\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [6 x i8], align 1
%3 = alloca [3 x i8], align 1
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.main.a, i64 6, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.b, i64 3, i1 false)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = getelementptr inbounds [6 x i8], ptr %2, i64 0, i64 0
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %5)
%7 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 0
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %7)
%9 = getelementptr inbounds [6 x i8], ptr %2, i64 0, i64 0
%10 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 0
%11 = call i32 @squeeze(ptr noundef %9, ptr noundef %10)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%13 = getelementptr inbounds [6 x i8], ptr %2, i64 0, i64 0
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %13)
%15 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 0
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %15)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
declare i32 @squeeze(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3vs1jmf_.c"
target datalayout = "e-m:e-p270: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.a = private unnamed_addr constant [6 x i8] c"abccd\00", align 1
@__const.main.b = private unnamed_addr constant [3 x i8] c"cb\00", align 1
@.str = private unnamed_addr constant [25 x i8] c"Before function call...\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"a = %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"b = %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"After function call...\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [6 x i8], align 1
%3 = alloca [3 x i8], align 1
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.main.a, i64 6, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.b, i64 3, i1 false)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = getelementptr inbounds [6 x i8], ptr %2, i64 0, i64 0
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %5)
%7 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 0
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %7)
%9 = getelementptr inbounds [6 x i8], ptr %2, i64 0, i64 0
%10 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 0
%11 = call i32 @squeeze(ptr noundef %9, ptr noundef %10)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%13 = getelementptr inbounds [6 x i8], ptr %2, i64 0, i64 0
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %13)
%15 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 0
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %15)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
declare i32 @squeeze(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpe555l3b_.c'
source_filename = "/tmp/tmpe555l3b_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 [100 x i32], align 16
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 0
%9 = call i32 @init_vector(ptr noundef %8)
%10 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 0
%11 = call i32 @count_sort(ptr noundef %10, i32 noundef 100)
store i32 1, ptr %7, align 4
br label %12
12: ; preds = %28, %2
%13 = load i32, ptr %7, align 4
%14 = icmp slt i32 %13, 100
br i1 %14, label %15, label %31
15: ; preds = %12
%16 = load i32, ptr %7, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %17
%19 = load i32, ptr %18, align 4
%20 = load i32, ptr %7, align 4
%21 = sub nsw i32 %20, 1
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %22
%24 = load i32, ptr %23, align 4
%25 = icmp slt i32 %19, %24
br i1 %25, label %26, label %27
26: ; preds = %15
store i32 1, ptr %3, align 4
br label %32
27: ; preds = %15
br label %28
28: ; preds = %27
%29 = load i32, ptr %7, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %7, align 4
br label %12, !llvm.loop !6
31: ; preds = %12
store i32 0, ptr %3, align 4
br label %32
32: ; preds = %31, %26
%33 = load i32, ptr %3, align 4
ret i32 %33
}
declare i32 @init_vector(ptr noundef) #1
declare i32 @count_sort(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/tmpe555l3b_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 [100 x i32], align 16
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 0
%9 = call i32 @init_vector(ptr noundef %8)
%10 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 0
%11 = call i32 @count_sort(ptr noundef %10, i32 noundef 100)
store i32 1, ptr %7, align 4
%12 = load i32, ptr %7, align 4
%13 = icmp slt i32 %12, 100
br i1 %13, label %.lr.ph, label %32
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %27
%15 = load i32, ptr %7, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %16
%18 = load i32, ptr %17, align 4
%19 = load i32, ptr %7, align 4
%20 = sub nsw i32 %19, 1
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %21
%23 = load i32, ptr %22, align 4
%24 = icmp slt i32 %18, %23
br i1 %24, label %25, label %26
25: ; preds = %14
store i32 1, ptr %3, align 4
br label %33
26: ; preds = %14
br label %27
27: ; preds = %26
%28 = load i32, ptr %7, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %7, align 4
%30 = load i32, ptr %7, align 4
%31 = icmp slt i32 %30, 100
br i1 %31, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %32
32: ; preds = %._crit_edge, %2
store i32 0, ptr %3, align 4
br label %33
33: ; preds = %32, %25
%34 = load i32, ptr %3, align 4
ret i32 %34
}
declare i32 @init_vector(ptr noundef) #1
declare i32 @count_sort(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/tmpz7wv8xbp.c'
source_filename = "/tmp/tmpz7wv8xbp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @recRateLowerBound(ptr noundef %0, i32 noundef %1, i32 noundef %2, float noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca float, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store float %3, ptr %8, align 4
%14 = load i32, ptr %6, align 4
%15 = add nsw i32 %14, 1
%16 = sext i32 %15 to i64
%17 = mul i64 4, %16
%18 = trunc i64 %17 to i32
%19 = call i64 @malloc(i32 noundef %18)
%20 = inttoptr i64 %19 to ptr
store ptr %20, ptr %13, align 8
%21 = load ptr, ptr %13, align 8
%22 = call i32 @assert(ptr noundef %21)
%23 = load float, ptr %8, align 4
%24 = load i32, ptr %7, align 4
%25 = sitofp i32 %24 to float
%26 = fmul float %23, %25
%27 = fptosi float %26 to i32
store i32 %27, ptr %11, align 4
store i32 1, ptr %9, align 4
br label %28
28: ; preds = %64, %4
%29 = load i32, ptr %9, align 4
%30 = load i32, ptr %6, align 4
%31 = icmp sle i32 %29, %30
br i1 %31, label %32, label %67
32: ; preds = %28
store i32 0, ptr %12, align 4
store i32 0, ptr %10, align 4
br label %33
33: ; preds = %43, %32
%34 = load i32, ptr %12, align 4
%35 = load i32, ptr %11, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %41
37: ; preds = %33
%38 = load i32, ptr %10, align 4
%39 = load i32, ptr %6, align 4
%40 = icmp sle i32 %38, %39
br label %41
41: ; preds = %37, %33
%42 = phi i1 [ false, %33 ], [ %40, %37 ]
br i1 %42, label %43, label %57
43: ; preds = %41
%44 = load i32, ptr %12, align 4
%45 = load ptr, ptr %5, align 8
%46 = load i32, ptr %9, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds ptr, ptr %45, i64 %47
%49 = load ptr, ptr %48, align 8
%50 = load i32, ptr %10, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i32, ptr %49, i64 %51
%53 = load i32, ptr %52, align 4
%54 = add nsw i32 %44, %53
store i32 %54, ptr %12, align 4
%55 = load i32, ptr %10, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %10, align 4
br label %33, !llvm.loop !6
57: ; preds = %41
%58 = load i32, ptr %10, align 4
%59 = sub nsw i32 %58, 1
%60 = load ptr, ptr %13, align 8
%61 = load i32, ptr %9, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i32, ptr %60, i64 %62
store i32 %59, ptr %63, align 4
br label %64
64: ; preds = %57
%65 = load i32, ptr %9, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %9, align 4
br label %28, !llvm.loop !8
67: ; preds = %28
%68 = load ptr, ptr %13, align 8
ret ptr %68
}
declare i64 @malloc(i32 noundef) #1
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz7wv8xbp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @recRateLowerBound(ptr noundef %0, i32 noundef %1, i32 noundef %2, float noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca float, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store float %3, ptr %8, align 4
%14 = load i32, ptr %6, align 4
%15 = add nsw i32 %14, 1
%16 = sext i32 %15 to i64
%17 = mul i64 4, %16
%18 = trunc i64 %17 to i32
%19 = call i64 @malloc(i32 noundef %18)
%20 = inttoptr i64 %19 to ptr
store ptr %20, ptr %13, align 8
%21 = load ptr, ptr %13, align 8
%22 = call i32 @assert(ptr noundef %21)
%23 = load float, ptr %8, align 4
%24 = load i32, ptr %7, align 4
%25 = sitofp i32 %24 to float
%26 = fmul float %23, %25
%27 = fptosi float %26 to i32
store i32 %27, ptr %11, align 4
store i32 1, ptr %9, align 4
%28 = load i32, ptr %9, align 4
%29 = load i32, ptr %6, align 4
%30 = icmp sle i32 %28, %29
br i1 %30, label %.lr.ph, label %69
.lr.ph: ; preds = %4
br label %31
31: ; preds = %.lr.ph, %63
store i32 0, ptr %12, align 4
store i32 0, ptr %10, align 4
br label %32
32: ; preds = %42, %31
%33 = load i32, ptr %12, align 4
%34 = load i32, ptr %11, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %36, label %40
36: ; preds = %32
%37 = load i32, ptr %10, align 4
%38 = load i32, ptr %6, align 4
%39 = icmp sle i32 %37, %38
br label %40
40: ; preds = %36, %32
%41 = phi i1 [ false, %32 ], [ %39, %36 ]
br i1 %41, label %42, label %56
42: ; preds = %40
%43 = load i32, ptr %12, align 4
%44 = load ptr, ptr %5, align 8
%45 = load i32, ptr %9, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds ptr, ptr %44, i64 %46
%48 = load ptr, ptr %47, align 8
%49 = load i32, ptr %10, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i32, ptr %48, i64 %50
%52 = load i32, ptr %51, align 4
%53 = add nsw i32 %43, %52
store i32 %53, ptr %12, align 4
%54 = load i32, ptr %10, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %10, align 4
br label %32, !llvm.loop !6
56: ; preds = %40
%57 = load i32, ptr %10, align 4
%58 = sub nsw i32 %57, 1
%59 = load ptr, ptr %13, align 8
%60 = load i32, ptr %9, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i32, ptr %59, i64 %61
store i32 %58, ptr %62, align 4
br label %63
63: ; preds = %56
%64 = load i32, ptr %9, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %9, align 4
%66 = load i32, ptr %9, align 4
%67 = load i32, ptr %6, align 4
%68 = icmp sle i32 %66, %67
br i1 %68, label %31, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %63
br label %69
69: ; preds = %._crit_edge, %4
%70 = load ptr, ptr %13, align 8
ret ptr %70
}
declare i64 @malloc(i32 noundef) #1
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpk_5o5lss.c'
source_filename = "/tmp/tmpk_5o5lss.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Please enter 3 numbers separated by spaces > \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 [18 x i8] c"%d is the median\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
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp sle i32 %7, %8
br i1 %9, label %10, label %14
10: ; preds = %0
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp sle i32 %11, %12
br i1 %13, label %22, label %14
14: ; preds = %10, %0
%15 = load i32, ptr %4, align 4
%16 = load i32, ptr %3, align 4
%17 = icmp sle i32 %15, %16
br i1 %17, label %18, label %25
18: ; preds = %14
%19 = load i32, ptr %3, align 4
%20 = load i32, ptr %2, align 4
%21 = icmp sle i32 %19, %20
br i1 %21, label %22, label %25
22: ; preds = %18, %10
%23 = load i32, ptr %3, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %23)
br label %25
25: ; preds = %22, %18, %14
%26 = load i32, ptr %3, align 4
%27 = load i32, ptr %2, align 4
%28 = icmp sle i32 %26, %27
br i1 %28, label %29, label %33
29: ; preds = %25
%30 = load i32, ptr %2, align 4
%31 = load i32, ptr %4, align 4
%32 = icmp sle i32 %30, %31
br i1 %32, label %41, label %33
33: ; preds = %29, %25
%34 = load i32, ptr %4, align 4
%35 = load i32, ptr %2, align 4
%36 = icmp sle i32 %34, %35
br i1 %36, label %37, label %44
37: ; preds = %33
%38 = load i32, ptr %2, align 4
%39 = load i32, ptr %3, align 4
%40 = icmp sle i32 %38, %39
br i1 %40, label %41, label %44
41: ; preds = %37, %29
%42 = load i32, ptr %2, align 4
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %42)
br label %47
44: ; preds = %37, %33
%45 = load i32, ptr %4, align 4
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %45)
br label %47
47: ; preds = %44, %41
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk_5o5lss.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Please enter 3 numbers separated by spaces > \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 [18 x i8] c"%d is the median\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
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp sle i32 %7, %8
br i1 %9, label %10, label %14
10: ; preds = %0
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp sle i32 %11, %12
br i1 %13, label %22, label %14
14: ; preds = %10, %0
%15 = load i32, ptr %4, align 4
%16 = load i32, ptr %3, align 4
%17 = icmp sle i32 %15, %16
br i1 %17, label %18, label %25
18: ; preds = %14
%19 = load i32, ptr %3, align 4
%20 = load i32, ptr %2, align 4
%21 = icmp sle i32 %19, %20
br i1 %21, label %22, label %25
22: ; preds = %18, %10
%23 = load i32, ptr %3, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %23)
br label %25
25: ; preds = %22, %18, %14
%26 = load i32, ptr %3, align 4
%27 = load i32, ptr %2, align 4
%28 = icmp sle i32 %26, %27
br i1 %28, label %29, label %33
29: ; preds = %25
%30 = load i32, ptr %2, align 4
%31 = load i32, ptr %4, align 4
%32 = icmp sle i32 %30, %31
br i1 %32, label %41, label %33
33: ; preds = %29, %25
%34 = load i32, ptr %4, align 4
%35 = load i32, ptr %2, align 4
%36 = icmp sle i32 %34, %35
br i1 %36, label %37, label %44
37: ; preds = %33
%38 = load i32, ptr %2, align 4
%39 = load i32, ptr %3, align 4
%40 = icmp sle i32 %38, %39
br i1 %40, label %41, label %44
41: ; preds = %37, %29
%42 = load i32, ptr %2, align 4
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %42)
br label %47
44: ; preds = %37, %33
%45 = load i32, ptr %4, align 4
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %45)
br label %47
47: ; preds = %44, %41
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpy3nth_y_.c'
source_filename = "/tmp/tmpy3nth_y_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [7 x i8] c"socket\00", align 1
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_REUSEADDR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @create_and_bind(i32 noundef %0, i16 noundef zeroext %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i16, align 2
%6 = alloca %struct.sockaddr_in, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i16 %1, ptr %5, align 2
store i32 1, ptr %9, align 4
%10 = load i32, ptr @AF_INET, align 4
%11 = load i32, ptr @SOCK_STREAM, align 4
%12 = call i32 @socket(i32 noundef %10, i32 noundef %11, i32 noundef 0)
store i32 %12, ptr %7, align 4
%13 = icmp slt i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = call i32 @perror(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %45
16: ; preds = %2
%17 = call i32 @memset(ptr noundef %6, i8 noundef signext 0, i32 noundef 12)
%18 = load i32, ptr @AF_INET, align 4
%19 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 2
store i32 %18, ptr %19, align 4
%20 = load i16, ptr %5, align 2
%21 = call i32 @htons(i16 noundef zeroext %20)
%22 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 1
store i32 %21, ptr %22, align 4
%23 = load i32, ptr %4, align 4
%24 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 0
%25 = getelementptr inbounds %struct.TYPE_2__, ptr %24, i32 0, i32 0
store i32 %23, ptr %25, align 4
%26 = load i32, ptr %7, align 4
%27 = load i32, ptr @SOL_SOCKET, align 4
%28 = load i32, ptr @SO_REUSEADDR, align 4
%29 = call i64 @setsockopt(i32 noundef %26, i32 noundef %27, i32 noundef %28, ptr noundef %9, i32 noundef 4)
%30 = icmp slt i64 %29, 0
br i1 %30, label %31, label %35
31: ; preds = %16
%32 = call i32 @perror(ptr noundef @.str.1)
%33 = load i32, ptr @EXIT_FAILURE, align 4
%34 = call i32 @exit(i32 noundef %33) #3
unreachable
35: ; preds = %16
%36 = load i32, ptr %7, align 4
%37 = call i64 @bind(i32 noundef %36, ptr noundef %6, i32 noundef 12)
%38 = icmp slt i64 %37, 0
br i1 %38, label %39, label %43
39: ; preds = %35
%40 = call i32 @perror(ptr noundef @.str.1)
%41 = load i32, ptr @EXIT_FAILURE, align 4
%42 = call i32 @exit(i32 noundef %41) #3
unreachable
43: ; preds = %35
%44 = load i32, ptr %7, align 4
store i32 %44, ptr %3, align 4
br label %45
45: ; preds = %43, %14
%46 = load i32, ptr %3, align 4
ret i32 %46
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @htons(i16 noundef zeroext) #1
declare i64 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @bind(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy3nth_y_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [7 x i8] c"socket\00", align 1
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_REUSEADDR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @create_and_bind(i32 noundef %0, i16 noundef zeroext %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i16, align 2
%6 = alloca %struct.sockaddr_in, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i16 %1, ptr %5, align 2
store i32 1, ptr %9, align 4
%10 = load i32, ptr @AF_INET, align 4
%11 = load i32, ptr @SOCK_STREAM, align 4
%12 = call i32 @socket(i32 noundef %10, i32 noundef %11, i32 noundef 0)
store i32 %12, ptr %7, align 4
%13 = icmp slt i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = call i32 @perror(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %45
16: ; preds = %2
%17 = call i32 @memset(ptr noundef %6, i8 noundef signext 0, i32 noundef 12)
%18 = load i32, ptr @AF_INET, align 4
%19 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 2
store i32 %18, ptr %19, align 4
%20 = load i16, ptr %5, align 2
%21 = call i32 @htons(i16 noundef zeroext %20)
%22 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 1
store i32 %21, ptr %22, align 4
%23 = load i32, ptr %4, align 4
%24 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 0
%25 = getelementptr inbounds %struct.TYPE_2__, ptr %24, i32 0, i32 0
store i32 %23, ptr %25, align 4
%26 = load i32, ptr %7, align 4
%27 = load i32, ptr @SOL_SOCKET, align 4
%28 = load i32, ptr @SO_REUSEADDR, align 4
%29 = call i64 @setsockopt(i32 noundef %26, i32 noundef %27, i32 noundef %28, ptr noundef %9, i32 noundef 4)
%30 = icmp slt i64 %29, 0
br i1 %30, label %31, label %35
31: ; preds = %16
%32 = call i32 @perror(ptr noundef @.str.1)
%33 = load i32, ptr @EXIT_FAILURE, align 4
%34 = call i32 @exit(i32 noundef %33) #3
unreachable
35: ; preds = %16
%36 = load i32, ptr %7, align 4
%37 = call i64 @bind(i32 noundef %36, ptr noundef %6, i32 noundef 12)
%38 = icmp slt i64 %37, 0
br i1 %38, label %39, label %43
39: ; preds = %35
%40 = call i32 @perror(ptr noundef @.str.1)
%41 = load i32, ptr @EXIT_FAILURE, align 4
%42 = call i32 @exit(i32 noundef %41) #3
unreachable
43: ; preds = %35
%44 = load i32, ptr %7, align 4
store i32 %44, ptr %3, align 4
br label %45
45: ; preds = %43, %14
%46 = load i32, ptr %3, align 4
ret i32 %46
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @htons(i16 noundef zeroext) #1
declare i64 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @bind(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmnihj9uq.c'
source_filename = "/tmp/tmpmnihj9uq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @find(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
store i32 %0, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = call i32 @digit_count(i32 noundef %6)
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = zext i32 %8 to i64
%10 = call ptr @llvm.stacksave()
store ptr %10, ptr %4, align 8
%11 = alloca i32, i64 %9, align 16
store i64 %9, ptr %5, align 8
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %2, align 4
%14 = call i64 @find_rec(ptr noundef %11, i32 noundef %12, i32 noundef 0, i32 noundef %13)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %1
%17 = load i32, ptr %3, align 4
%18 = call i32 @to_int(ptr noundef %11, i32 noundef %17)
br label %20
19: ; preds = %1
br label %20
20: ; preds = %19, %16
%21 = phi i32 [ %18, %16 ], [ 0, %19 ]
%22 = load ptr, ptr %4, align 8
call void @llvm.stackrestore(ptr %22)
ret i32 %21
}
declare i32 @digit_count(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i64 @find_rec(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @to_int(ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmnihj9uq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @find(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
store i32 %0, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = call i32 @digit_count(i32 noundef %6)
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = zext i32 %8 to i64
%10 = call ptr @llvm.stacksave()
store ptr %10, ptr %4, align 8
%11 = alloca i32, i64 %9, align 16
store i64 %9, ptr %5, align 8
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %2, align 4
%14 = call i64 @find_rec(ptr noundef %11, i32 noundef %12, i32 noundef 0, i32 noundef %13)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %1
%17 = load i32, ptr %3, align 4
%18 = call i32 @to_int(ptr noundef %11, i32 noundef %17)
br label %20
19: ; preds = %1
br label %20
20: ; preds = %19, %16
%21 = phi i32 [ %18, %16 ], [ 0, %19 ]
%22 = load ptr, ptr %4, align 8
call void @llvm.stackrestore(ptr %22)
ret i32 %21
}
declare i32 @digit_count(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i64 @find_rec(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @to_int(ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE 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_o4ew552.c'
source_filename = "/tmp/tmp_o4ew552.c"
target datalayout = "e-m:e-p270: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 [84 x i8] c"usage: cpufreqctl [-h] [turbo {get,0,1}] [min {get,check,VALUE}] [max {get,VALUE}]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
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/tmp_o4ew552.c"
target datalayout = "e-m:e-p270: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 [84 x i8] c"usage: cpufreqctl [-h] [turbo {get,0,1}] [min {get,check,VALUE}] [max {get,VALUE}]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
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/tmp2ugv1hw6.c'
source_filename = "/tmp/tmp2ugv1hw6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"rt\00", align 1
@.str.1 = private unnamed_addr constant [37 x i8] c"read_file: Could not open file '%s'\0A\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @read_file(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call ptr @fopen(ptr noundef %7, ptr noundef @.str)
store ptr %8, ptr %4, align 8
%9 = load ptr, ptr %4, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %14, label %11
11: ; preds = %1
%12 = load ptr, ptr %3, align 8
%13 = call i32 @debug_out(ptr noundef @.str.1, ptr noundef %12)
store ptr null, ptr %2, align 8
br label %36
14: ; preds = %1
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr @SEEK_END, align 4
%17 = call i32 @fseek(ptr noundef %15, i32 noundef 0, i32 noundef %16)
%18 = load ptr, ptr %4, align 8
%19 = call i64 @ftell(ptr noundef %18)
store i64 %19, ptr %5, align 8
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr @SEEK_SET, align 4
%22 = call i32 @fseek(ptr noundef %20, i32 noundef 0, i32 noundef %21)
%23 = load i64, ptr %5, align 8
%24 = add i64 %23, 1
%25 = call ptr @malloc(i64 noundef %24)
store ptr %25, ptr %6, align 8
%26 = load ptr, ptr %6, align 8
%27 = load i64, ptr %5, align 8
%28 = load ptr, ptr %4, align 8
%29 = call i32 @fread(ptr noundef %26, i64 noundef %27, i32 noundef 1, ptr noundef %28)
%30 = load ptr, ptr %6, align 8
%31 = load i64, ptr %5, align 8
%32 = getelementptr inbounds i8, ptr %30, i64 %31
store i8 0, ptr %32, align 1
%33 = load ptr, ptr %4, align 8
%34 = call i32 @fclose(ptr noundef %33)
%35 = load ptr, ptr %6, align 8
store ptr %35, ptr %2, align 8
br label %36
36: ; preds = %14, %11
%37 = load ptr, ptr %2, align 8
ret ptr %37
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @debug_out(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @fread(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2ugv1hw6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"rt\00", align 1
@.str.1 = private unnamed_addr constant [37 x i8] c"read_file: Could not open file '%s'\0A\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @read_file(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call ptr @fopen(ptr noundef %7, ptr noundef @.str)
store ptr %8, ptr %4, align 8
%9 = load ptr, ptr %4, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %14, label %11
11: ; preds = %1
%12 = load ptr, ptr %3, align 8
%13 = call i32 @debug_out(ptr noundef @.str.1, ptr noundef %12)
store ptr null, ptr %2, align 8
br label %36
14: ; preds = %1
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr @SEEK_END, align 4
%17 = call i32 @fseek(ptr noundef %15, i32 noundef 0, i32 noundef %16)
%18 = load ptr, ptr %4, align 8
%19 = call i64 @ftell(ptr noundef %18)
store i64 %19, ptr %5, align 8
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr @SEEK_SET, align 4
%22 = call i32 @fseek(ptr noundef %20, i32 noundef 0, i32 noundef %21)
%23 = load i64, ptr %5, align 8
%24 = add i64 %23, 1
%25 = call ptr @malloc(i64 noundef %24)
store ptr %25, ptr %6, align 8
%26 = load ptr, ptr %6, align 8
%27 = load i64, ptr %5, align 8
%28 = load ptr, ptr %4, align 8
%29 = call i32 @fread(ptr noundef %26, i64 noundef %27, i32 noundef 1, ptr noundef %28)
%30 = load ptr, ptr %6, align 8
%31 = load i64, ptr %5, align 8
%32 = getelementptr inbounds i8, ptr %30, i64 %31
store i8 0, ptr %32, align 1
%33 = load ptr, ptr %4, align 8
%34 = call i32 @fclose(ptr noundef %33)
%35 = load ptr, ptr %6, align 8
store ptr %35, ptr %2, align 8
br label %36
36: ; preds = %14, %11
%37 = load ptr, ptr %2, align 8
ret ptr %37
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @debug_out(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @fread(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnycig4ch.c'
source_filename = "/tmp/tmpnycig4ch.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cfg_change_dir(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 @real_cfg_change_dir(ptr noundef %5, ptr noundef %6)
ret i32 1
}
declare i32 @real_cfg_change_dir(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/tmpnycig4ch.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cfg_change_dir(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 @real_cfg_change_dir(ptr noundef %5, ptr noundef %6)
ret i32 1
}
declare i32 @real_cfg_change_dir(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/tmp4rli3rql.c'
source_filename = "/tmp/tmp4rli3rql.c"
target datalayout = "e-m:e-p270: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/tmp4rli3rql.c"
target datalayout = "e-m:e-p270: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/tmpxikpnn76.c'
source_filename = "/tmp/tmpxikpnn76.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [89 x i8] c"[PHY][CODING] Rate matching parameter error (N_coded %d, N_input %d, N_bps %d), exiting\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @rate_matching(i32 noundef %0, i32 noundef %1, ptr noundef %2, i8 noundef zeroext %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i8, align 1
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
store i32 %0, ptr %7, align 4
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store i8 %3, ptr %10, align 1
store i32 %4, ptr %11, align 4
store i32 0, ptr %16, align 4
%21 = load i32, ptr %7, align 4
%22 = mul i32 9, %21
%23 = load i32, ptr %8, align 4
%24 = shl i32 %23, 2
%25 = icmp ult i32 %22, %24
br i1 %25, label %31, label %26
26: ; preds = %5
%27 = load i32, ptr %8, align 4
%28 = load i32, ptr %7, align 4
%29 = lshr i32 %28, 1
%30 = icmp ult i32 %27, %29
br i1 %30, label %31, label %36
31: ; preds = %26, %5
%32 = load i32, ptr %7, align 4
%33 = load i32, ptr %8, align 4
%34 = load i8, ptr %10, align 1
%35 = call i32 @msg(ptr noundef @.str, i32 noundef %32, i32 noundef %33, i8 noundef zeroext %34)
store i32 -1, ptr %6, align 4
br label %159
36: ; preds = %26
store i32 0, ptr %12, align 4
br label %37
37: ; preds = %50, %36
%38 = load i32, ptr %12, align 4
%39 = load i32, ptr %8, align 4
%40 = icmp ult i32 %38, %39
br i1 %40, label %41, label %53
41: ; preds = %37
%42 = load ptr, ptr %9, align 8
%43 = load i32, ptr %12, align 4
%44 = zext i32 %43 to i64
%45 = getelementptr inbounds i8, ptr %42, i64 %44
%46 = load i8, ptr %45, align 1
%47 = zext i8 %46 to i32
%48 = or i32 %47, 128
%49 = trunc i32 %48 to i8
store i8 %49, ptr %45, align 1
br label %50
50: ; preds = %41
%51 = load i32, ptr %12, align 4
%52 = add i32 %51, 1
store i32 %52, ptr %12, align 4
br label %37, !llvm.loop !6
53: ; preds = %37
store i32 0, ptr %12, align 4
%54 = load i32, ptr %7, align 4
%55 = load i8, ptr %10, align 1
%56 = zext i8 %55 to i32
%57 = udiv i32 %54, %56
store i32 %57, ptr %17, align 4
%58 = load i32, ptr %11, align 4
%59 = call i32 @pset_taus_seed(i32 noundef %58)
%60 = load i32, ptr %8, align 4
%61 = load i8, ptr %10, align 1
%62 = zext i8 %61 to i32
%63 = udiv i32 %60, %62
store i32 %63, ptr %18, align 4
%64 = load i32, ptr %18, align 4
%65 = load i32, ptr %17, align 4
%66 = sub i32 %64, %65
store i32 %66, ptr %20, align 4
%67 = load i32, ptr %20, align 4
%68 = icmp slt i32 %67, 0
br i1 %68, label %69, label %72
69: ; preds = %53
%70 = load i32, ptr %20, align 4
%71 = sub nsw i32 0, %70
store i32 %71, ptr %20, align 4
store i32 1, ptr %16, align 4
br label %72
72: ; preds = %69, %53
%73 = load i32, ptr %18, align 4
%74 = call i32 @log2_approx(i32 noundef %73)
%75 = add nsw i32 1, %74
%76 = shl i32 1, %75
%77 = sub nsw i32 %76, 1
store i32 %77, ptr %19, align 4
br label %78
78: ; preds = %155, %72
%79 = load i32, ptr %12, align 4
%80 = load i32, ptr %20, align 4
%81 = icmp ult i32 %79, %80
br i1 %81, label %82, label %158
82: ; preds = %78
br label %83
83: ; preds = %112, %82
%84 = call i32 (...) @ptaus()
store i32 %84, ptr %14, align 4
%85 = load i32, ptr %14, align 4
%86 = load i32, ptr %19, align 4
%87 = and i32 %85, %86
store i32 %87, ptr %15, align 4
%88 = load i32, ptr %15, align 4
%89 = load i32, ptr %18, align 4
%90 = icmp ult i32 %88, %89
br i1 %90, label %91, label %111
91: ; preds = %83
%92 = load ptr, ptr %9, align 8
%93 = load i32, ptr %15, align 4
%94 = zext i32 %93 to i64
%95 = getelementptr inbounds i8, ptr %92, i64 %94
%96 = load i8, ptr %95, align 1
%97 = zext i8 %96 to i32
%98 = and i32 %97, 128
%99 = icmp eq i32 %98, 0
br i1 %99, label %109, label %100
100: ; preds = %91
%101 = load ptr, ptr %9, align 8
%102 = load i32, ptr %15, align 4
%103 = zext i32 %102 to i64
%104 = getelementptr inbounds i8, ptr %101, i64 %103
%105 = load i8, ptr %104, align 1
%106 = zext i8 %105 to i32
%107 = and i32 %106, 192
%108 = icmp eq i32 %107, 192
br i1 %108, label %109, label %111
109: ; preds = %100, %91
%110 = load i32, ptr %18, align 4
store i32 %110, ptr %15, align 4
br label %111
111: ; preds = %109, %100, %83
br label %112
112: ; preds = %111
%113 = load i32, ptr %15, align 4
%114 = load i32, ptr %18, align 4
%115 = icmp uge i32 %113, %114
br i1 %115, label %83, label %116, !llvm.loop !8
116: ; preds = %112
store i32 0, ptr %13, align 4
br label %117
117: ; preds = %152, %116
%118 = load i32, ptr %13, align 4
%119 = load i8, ptr %10, align 1
%120 = zext i8 %119 to i32
%121 = icmp ult i32 %118, %120
br i1 %121, label %122, label %155
122: ; preds = %117
%123 = load i32, ptr %16, align 4
%124 = icmp eq i32 %123, 0
br i1 %124, label %125, label %138
125: ; preds = %122
%126 = load ptr, ptr %9, align 8
%127 = load i32, ptr %15, align 4
%128 = load i32, ptr %13, align 4
%129 = load i32, ptr %18, align 4
%130 = mul i32 %128, %129
%131 = add i32 %127, %130
%132 = zext i32 %131 to i64
%133 = getelementptr inbounds i8, ptr %126, i64 %132
%134 = load i8, ptr %133, align 1
%135 = zext i8 %134 to i32
%136 = and i32 %135, 127
%137 = trunc i32 %136 to i8
store i8 %137, ptr %133, align 1
br label %151
138: ; preds = %122
%139 = load ptr, ptr %9, align 8
%140 = load i32, ptr %15, align 4
%141 = load i32, ptr %13, align 4
%142 = load i32, ptr %18, align 4
%143 = mul i32 %141, %142
%144 = add i32 %140, %143
%145 = zext i32 %144 to i64
%146 = getelementptr inbounds i8, ptr %139, i64 %145
%147 = load i8, ptr %146, align 1
%148 = zext i8 %147 to i32
%149 = or i32 %148, 192
%150 = trunc i32 %149 to i8
store i8 %150, ptr %146, align 1
br label %151
151: ; preds = %138, %125
br label %152
152: ; preds = %151
%153 = load i32, ptr %13, align 4
%154 = add i32 %153, 1
store i32 %154, ptr %13, align 4
br label %117, !llvm.loop !9
155: ; preds = %117
%156 = load i32, ptr %12, align 4
%157 = add i32 %156, 1
store i32 %157, ptr %12, align 4
br label %78, !llvm.loop !10
158: ; preds = %78
store i32 0, ptr %6, align 4
br label %159
159: ; preds = %158, %31
%160 = load i32, ptr %6, align 4
ret i32 %160
}
declare i32 @msg(ptr noundef, i32 noundef, i32 noundef, i8 noundef zeroext) #1
declare i32 @pset_taus_seed(i32 noundef) #1
declare i32 @log2_approx(i32 noundef) #1
declare i32 @ptaus(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpxikpnn76.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [89 x i8] c"[PHY][CODING] Rate matching parameter error (N_coded %d, N_input %d, N_bps %d), exiting\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @rate_matching(i32 noundef %0, i32 noundef %1, ptr noundef %2, i8 noundef zeroext %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i8, align 1
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
store i32 %0, ptr %7, align 4
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store i8 %3, ptr %10, align 1
store i32 %4, ptr %11, align 4
store i32 0, ptr %16, align 4
%21 = load i32, ptr %7, align 4
%22 = mul i32 9, %21
%23 = load i32, ptr %8, align 4
%24 = shl i32 %23, 2
%25 = icmp ult i32 %22, %24
br i1 %25, label %31, label %26
26: ; preds = %5
%27 = load i32, ptr %8, align 4
%28 = load i32, ptr %7, align 4
%29 = lshr i32 %28, 1
%30 = icmp ult i32 %27, %29
br i1 %30, label %31, label %36
31: ; preds = %26, %5
%32 = load i32, ptr %7, align 4
%33 = load i32, ptr %8, align 4
%34 = load i8, ptr %10, align 1
%35 = call i32 @msg(ptr noundef @.str, i32 noundef %32, i32 noundef %33, i8 noundef zeroext %34)
store i32 -1, ptr %6, align 4
br label %166
36: ; preds = %26
store i32 0, ptr %12, align 4
%37 = load i32, ptr %12, align 4
%38 = load i32, ptr %8, align 4
%39 = icmp ult i32 %37, %38
br i1 %39, label %.lr.ph, label %55
.lr.ph: ; preds = %36
br label %40
40: ; preds = %.lr.ph, %49
%41 = load ptr, ptr %9, align 8
%42 = load i32, ptr %12, align 4
%43 = zext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %41, i64 %43
%45 = load i8, ptr %44, align 1
%46 = zext i8 %45 to i32
%47 = or i32 %46, 128
%48 = trunc i32 %47 to i8
store i8 %48, ptr %44, align 1
br label %49
49: ; preds = %40
%50 = load i32, ptr %12, align 4
%51 = add i32 %50, 1
store i32 %51, ptr %12, align 4
%52 = load i32, ptr %12, align 4
%53 = load i32, ptr %8, align 4
%54 = icmp ult i32 %52, %53
br i1 %54, label %40, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %49
br label %55
55: ; preds = %._crit_edge, %36
store i32 0, ptr %12, align 4
%56 = load i32, ptr %7, align 4
%57 = load i8, ptr %10, align 1
%58 = zext i8 %57 to i32
%59 = udiv i32 %56, %58
store i32 %59, ptr %17, align 4
%60 = load i32, ptr %11, align 4
%61 = call i32 @pset_taus_seed(i32 noundef %60)
%62 = load i32, ptr %8, align 4
%63 = load i8, ptr %10, align 1
%64 = zext i8 %63 to i32
%65 = udiv i32 %62, %64
store i32 %65, ptr %18, align 4
%66 = load i32, ptr %18, align 4
%67 = load i32, ptr %17, align 4
%68 = sub i32 %66, %67
store i32 %68, ptr %20, align 4
%69 = load i32, ptr %20, align 4
%70 = icmp slt i32 %69, 0
br i1 %70, label %71, label %74
71: ; preds = %55
%72 = load i32, ptr %20, align 4
%73 = sub nsw i32 0, %72
store i32 %73, ptr %20, align 4
store i32 1, ptr %16, align 4
br label %74
74: ; preds = %71, %55
%75 = load i32, ptr %18, align 4
%76 = call i32 @log2_approx(i32 noundef %75)
%77 = add nsw i32 1, %76
%78 = shl i32 1, %77
%79 = sub nsw i32 %78, 1
store i32 %79, ptr %19, align 4
%80 = load i32, ptr %12, align 4
%81 = load i32, ptr %20, align 4
%82 = icmp ult i32 %80, %81
br i1 %82, label %.lr.ph5, label %165
.lr.ph5: ; preds = %74
br label %83
83: ; preds = %.lr.ph5, %159
br label %84
84: ; preds = %113, %83
%85 = call i32 (...) @ptaus()
store i32 %85, ptr %14, align 4
%86 = load i32, ptr %14, align 4
%87 = load i32, ptr %19, align 4
%88 = and i32 %86, %87
store i32 %88, ptr %15, align 4
%89 = load i32, ptr %15, align 4
%90 = load i32, ptr %18, align 4
%91 = icmp ult i32 %89, %90
br i1 %91, label %92, label %112
92: ; preds = %84
%93 = load ptr, ptr %9, align 8
%94 = load i32, ptr %15, align 4
%95 = zext i32 %94 to i64
%96 = getelementptr inbounds i8, ptr %93, i64 %95
%97 = load i8, ptr %96, align 1
%98 = zext i8 %97 to i32
%99 = and i32 %98, 128
%100 = icmp eq i32 %99, 0
br i1 %100, label %110, label %101
101: ; preds = %92
%102 = load ptr, ptr %9, align 8
%103 = load i32, ptr %15, align 4
%104 = zext i32 %103 to i64
%105 = getelementptr inbounds i8, ptr %102, i64 %104
%106 = load i8, ptr %105, align 1
%107 = zext i8 %106 to i32
%108 = and i32 %107, 192
%109 = icmp eq i32 %108, 192
br i1 %109, label %110, label %112
110: ; preds = %101, %92
%111 = load i32, ptr %18, align 4
store i32 %111, ptr %15, align 4
br label %112
112: ; preds = %110, %101, %84
br label %113
113: ; preds = %112
%114 = load i32, ptr %15, align 4
%115 = load i32, ptr %18, align 4
%116 = icmp uge i32 %114, %115
br i1 %116, label %84, label %117, !llvm.loop !8
117: ; preds = %113
store i32 0, ptr %13, align 4
%118 = load i32, ptr %13, align 4
%119 = load i8, ptr %10, align 1
%120 = zext i8 %119 to i32
%121 = icmp ult i32 %118, %120
br i1 %121, label %.lr.ph2, label %159
.lr.ph2: ; preds = %117
br label %122
122: ; preds = %.lr.ph2, %152
%123 = load i32, ptr %16, align 4
%124 = icmp eq i32 %123, 0
br i1 %124, label %125, label %138
125: ; preds = %122
%126 = load ptr, ptr %9, align 8
%127 = load i32, ptr %15, align 4
%128 = load i32, ptr %13, align 4
%129 = load i32, ptr %18, align 4
%130 = mul i32 %128, %129
%131 = add i32 %127, %130
%132 = zext i32 %131 to i64
%133 = getelementptr inbounds i8, ptr %126, i64 %132
%134 = load i8, ptr %133, align 1
%135 = zext i8 %134 to i32
%136 = and i32 %135, 127
%137 = trunc i32 %136 to i8
store i8 %137, ptr %133, align 1
br label %151
138: ; preds = %122
%139 = load ptr, ptr %9, align 8
%140 = load i32, ptr %15, align 4
%141 = load i32, ptr %13, align 4
%142 = load i32, ptr %18, align 4
%143 = mul i32 %141, %142
%144 = add i32 %140, %143
%145 = zext i32 %144 to i64
%146 = getelementptr inbounds i8, ptr %139, i64 %145
%147 = load i8, ptr %146, align 1
%148 = zext i8 %147 to i32
%149 = or i32 %148, 192
%150 = trunc i32 %149 to i8
store i8 %150, ptr %146, align 1
br label %151
151: ; preds = %138, %125
br label %152
152: ; preds = %151
%153 = load i32, ptr %13, align 4
%154 = add i32 %153, 1
store i32 %154, ptr %13, align 4
%155 = load i32, ptr %13, align 4
%156 = load i8, ptr %10, align 1
%157 = zext i8 %156 to i32
%158 = icmp ult i32 %155, %157
br i1 %158, label %122, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %152
br label %159
159: ; preds = %._crit_edge3, %117
%160 = load i32, ptr %12, align 4
%161 = add i32 %160, 1
store i32 %161, ptr %12, align 4
%162 = load i32, ptr %12, align 4
%163 = load i32, ptr %20, align 4
%164 = icmp ult i32 %162, %163
br i1 %164, label %83, label %._crit_edge6, !llvm.loop !10
._crit_edge6: ; preds = %159
br label %165
165: ; preds = %._crit_edge6, %74
store i32 0, ptr %6, align 4
br label %166
166: ; preds = %165, %31
%167 = load i32, ptr %6, align 4
ret i32 %167
}
declare i32 @msg(ptr noundef, i32 noundef, i32 noundef, i8 noundef zeroext) #1
declare i32 @pset_taus_seed(i32 noundef) #1
declare i32 @log2_approx(i32 noundef) #1
declare i32 @ptaus(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpdnz4mtji.c'
source_filename = "/tmp/tmpdnz4mtji.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0AHow many paragraphs do you want to write? \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @msg_babble1() #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/tmpdnz4mtji.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0AHow many paragraphs do you want to write? \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @msg_babble1() #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/tmpkpxqqmy9.c'
source_filename = "/tmp/tmpkpxqqmy9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bzero(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 = %15, %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 %18
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
store i8 0, ptr %14, align 1
br label %15
15: ; preds = %10
%16 = load i32, ptr %5, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %5, align 4
br label %6, !llvm.loop !6
18: ; preds = %6
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/tmpkpxqqmy9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bzero(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 %20
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %14
%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
store i8 0, ptr %13, align 1
br label %14
14: ; preds = %9
%15 = load i32, ptr %5, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %5, align 4
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %4, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %20
20: ; preds = %._crit_edge, %2
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/tmp8zwo1zvd.c'
source_filename = "/tmp/tmp8zwo1zvd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @v5dcreatesimple_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14) #0 {
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca ptr, align 8
%22 = alloca ptr, align 8
%23 = alloca ptr, align 8
%24 = alloca ptr, align 8
%25 = alloca ptr, align 8
%26 = alloca ptr, align 8
%27 = alloca ptr, align 8
%28 = alloca ptr, align 8
%29 = alloca ptr, align 8
%30 = alloca ptr, align 8
%31 = alloca i32, align 4
%32 = alloca i32, align 4
%33 = alloca i32, align 4
%34 = alloca [100 x float], align 16
%35 = alloca [400 x float], align 16
%36 = alloca [200 x i32], align 16
%37 = alloca i32, align 4
store ptr %0, ptr %16, align 8
store ptr %1, ptr %17, align 8
store ptr %2, ptr %18, align 8
store ptr %3, ptr %19, align 8
store ptr %4, ptr %20, align 8
store ptr %5, ptr %21, align 8
store ptr %6, ptr %22, align 8
store ptr %7, ptr %23, align 8
store ptr %8, ptr %24, align 8
store ptr %9, ptr %25, align 8
store ptr %10, ptr %26, align 8
store ptr %11, ptr %27, align 8
store ptr %12, ptr %28, align 8
store ptr %13, ptr %29, align 8
store ptr %14, ptr %30, align 8
store i32 0, ptr %37, align 4
br label %38
38: ; preds = %47, %15
%39 = load i32, ptr %37, align 4
%40 = icmp slt i32 %39, 200
br i1 %40, label %41, label %50
41: ; preds = %38
%42 = load ptr, ptr %21, align 8
%43 = load i32, ptr %42, align 4
%44 = load i32, ptr %37, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [200 x i32], ptr %36, i64 0, i64 %45
store i32 %43, ptr %46, align 4
br label %47
47: ; preds = %41
%48 = load i32, ptr %37, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %37, align 4
br label %38, !llvm.loop !6
50: ; preds = %38
store i32 1, ptr %31, align 4
store i32 1, ptr %32, align 4
%51 = load ptr, ptr %25, align 8
%52 = load float, ptr %51, align 4
%53 = getelementptr inbounds [100 x float], ptr %34, i64 0, i64 0
store float %52, ptr %53, align 16
%54 = load ptr, ptr %27, align 8
%55 = load float, ptr %54, align 4
%56 = getelementptr inbounds [100 x float], ptr %34, i64 0, i64 1
store float %55, ptr %56, align 4
%57 = load ptr, ptr %26, align 8
%58 = load float, ptr %57, align 4
%59 = getelementptr inbounds [100 x float], ptr %34, i64 0, i64 2
store float %58, ptr %59, align 8
%60 = load ptr, ptr %28, align 8
%61 = load float, ptr %60, align 4
%62 = getelementptr inbounds [100 x float], ptr %34, i64 0, i64 3
store float %61, ptr %62, align 4
store i32 1, ptr %33, align 4
%63 = load ptr, ptr %29, align 8
%64 = load float, ptr %63, align 4
%65 = getelementptr inbounds [400 x float], ptr %35, i64 0, i64 0
store float %64, ptr %65, align 16
%66 = load ptr, ptr %30, align 8
%67 = load float, ptr %66, align 4
%68 = getelementptr inbounds [400 x float], ptr %35, i64 0, i64 1
store float %67, ptr %68, align 4
%69 = load ptr, ptr %16, align 8
%70 = load ptr, ptr %17, align 8
%71 = load ptr, ptr %18, align 8
%72 = load ptr, ptr %19, align 8
%73 = load ptr, ptr %20, align 8
%74 = getelementptr inbounds [200 x i32], ptr %36, i64 0, i64 0
%75 = load ptr, ptr %22, align 8
%76 = load ptr, ptr %23, align 8
%77 = load ptr, ptr %24, align 8
%78 = getelementptr inbounds [100 x float], ptr %34, i64 0, i64 0
%79 = getelementptr inbounds [400 x float], ptr %35, i64 0, i64 0
%80 = call i32 @v5dcreate_(ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %72, ptr noundef %73, ptr noundef %74, ptr noundef %75, ptr noundef %76, ptr noundef %77, ptr noundef %31, ptr noundef %32, ptr noundef %78, ptr noundef %33, ptr noundef %79)
ret i32 %80
}
declare i32 @v5dcreate_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8zwo1zvd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @v5dcreatesimple_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14) #0 {
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca ptr, align 8
%22 = alloca ptr, align 8
%23 = alloca ptr, align 8
%24 = alloca ptr, align 8
%25 = alloca ptr, align 8
%26 = alloca ptr, align 8
%27 = alloca ptr, align 8
%28 = alloca ptr, align 8
%29 = alloca ptr, align 8
%30 = alloca ptr, align 8
%31 = alloca i32, align 4
%32 = alloca i32, align 4
%33 = alloca i32, align 4
%34 = alloca [100 x float], align 16
%35 = alloca [400 x float], align 16
%36 = alloca [200 x i32], align 16
%37 = alloca i32, align 4
store ptr %0, ptr %16, align 8
store ptr %1, ptr %17, align 8
store ptr %2, ptr %18, align 8
store ptr %3, ptr %19, align 8
store ptr %4, ptr %20, align 8
store ptr %5, ptr %21, align 8
store ptr %6, ptr %22, align 8
store ptr %7, ptr %23, align 8
store ptr %8, ptr %24, align 8
store ptr %9, ptr %25, align 8
store ptr %10, ptr %26, align 8
store ptr %11, ptr %27, align 8
store ptr %12, ptr %28, align 8
store ptr %13, ptr %29, align 8
store ptr %14, ptr %30, align 8
store i32 0, ptr %37, align 4
%38 = load i32, ptr %37, align 4
%39 = icmp slt i32 %38, 200
br i1 %39, label %.lr.ph, label %51
.lr.ph: ; preds = %15
br label %40
40: ; preds = %.lr.ph, %46
%41 = load ptr, ptr %21, align 8
%42 = load i32, ptr %41, align 4
%43 = load i32, ptr %37, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [200 x i32], ptr %36, i64 0, i64 %44
store i32 %42, ptr %45, align 4
br label %46
46: ; preds = %40
%47 = load i32, ptr %37, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %37, align 4
%49 = load i32, ptr %37, align 4
%50 = icmp slt i32 %49, 200
br i1 %50, label %40, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %46
br label %51
51: ; preds = %._crit_edge, %15
store i32 1, ptr %31, align 4
store i32 1, ptr %32, align 4
%52 = load ptr, ptr %25, align 8
%53 = load float, ptr %52, align 4
%54 = getelementptr inbounds [100 x float], ptr %34, i64 0, i64 0
store float %53, ptr %54, align 16
%55 = load ptr, ptr %27, align 8
%56 = load float, ptr %55, align 4
%57 = getelementptr inbounds [100 x float], ptr %34, i64 0, i64 1
store float %56, ptr %57, align 4
%58 = load ptr, ptr %26, align 8
%59 = load float, ptr %58, align 4
%60 = getelementptr inbounds [100 x float], ptr %34, i64 0, i64 2
store float %59, ptr %60, align 8
%61 = load ptr, ptr %28, align 8
%62 = load float, ptr %61, align 4
%63 = getelementptr inbounds [100 x float], ptr %34, i64 0, i64 3
store float %62, ptr %63, align 4
store i32 1, ptr %33, align 4
%64 = load ptr, ptr %29, align 8
%65 = load float, ptr %64, align 4
%66 = getelementptr inbounds [400 x float], ptr %35, i64 0, i64 0
store float %65, ptr %66, align 16
%67 = load ptr, ptr %30, align 8
%68 = load float, ptr %67, align 4
%69 = getelementptr inbounds [400 x float], ptr %35, i64 0, i64 1
store float %68, ptr %69, align 4
%70 = load ptr, ptr %16, align 8
%71 = load ptr, ptr %17, align 8
%72 = load ptr, ptr %18, align 8
%73 = load ptr, ptr %19, align 8
%74 = load ptr, ptr %20, align 8
%75 = getelementptr inbounds [200 x i32], ptr %36, i64 0, i64 0
%76 = load ptr, ptr %22, align 8
%77 = load ptr, ptr %23, align 8
%78 = load ptr, ptr %24, align 8
%79 = getelementptr inbounds [100 x float], ptr %34, i64 0, i64 0
%80 = getelementptr inbounds [400 x float], ptr %35, i64 0, i64 0
%81 = call i32 @v5dcreate_(ptr noundef %70, ptr noundef %71, ptr noundef %72, ptr noundef %73, ptr noundef %74, ptr noundef %75, ptr noundef %76, ptr noundef %77, ptr noundef %78, ptr noundef %31, ptr noundef %32, ptr noundef %79, ptr noundef %33, ptr noundef %80)
ret i32 %81
}
declare i32 @v5dcreate_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp4wjgpcri.c'
source_filename = "/tmp/tmp4wjgpcri.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__libc_open64(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = or i32 %8, 0
%10 = load i32, ptr %6, align 4
%11 = call i32 @open(ptr noundef %7, i32 noundef %9, i32 noundef %10)
ret i32 %11
}
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4wjgpcri.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__libc_open64(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = or i32 %8, 0
%10 = load i32, ptr %6, align 4
%11 = call i32 @open(ptr noundef %7, i32 noundef %9, i32 noundef %10)
ret i32 %11
}
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0q_kgy_5.c'
source_filename = "/tmp/tmp0q_kgy_5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bitmap_free_bit_array(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0q_kgy_5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bitmap_free_bit_array(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcusf5sop.c'
source_filename = "/tmp/tmpcusf5sop.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @test_graph()
ret i32 0
}
declare i32 @test_graph(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcusf5sop.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @test_graph()
ret i32 0
}
declare i32 @test_graph(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplhi94ymu.c'
source_filename = "/tmp/tmplhi94ymu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"n\09triangular number\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%i\09%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 = %12, %0
%5 = load i32, ptr %2, align 4
%6 = icmp sle i32 %5, 20
br i1 %6, label %7, label %15
7: ; preds = %4
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %2, align 4
%10 = call i32 @getTriangular(i32 noundef %9)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %8, i32 noundef %10)
br label %12
12: ; preds = %7
%13 = load i32, ptr %2, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %2, align 4
br label %4, !llvm.loop !6
15: ; preds = %4
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @getTriangular(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/tmplhi94ymu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"n\09triangular number\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%i\09%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, 20
br i1 %5, label %.lr.ph, label %16
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %11
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = call i32 @getTriangular(i32 noundef %8)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %7, i32 noundef %9)
br label %11
11: ; preds = %6
%12 = load i32, ptr %2, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %2, align 4
%14 = load i32, ptr %2, align 4
%15 = icmp sle i32 %14, 20
br i1 %15, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %16
16: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @getTriangular(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/tmp42nlb4xd.c'
source_filename = "/tmp/tmp42nlb4xd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = load double, ptr %2, align 8
%5 = fneg double %4
%6 = call double @exp(double noundef %5) #4
%7 = load double, ptr %2, align 8
%8 = call double @pow(double noundef %7, i32 noundef 3)
%9 = call double @llvm.fmuladd.f64(double %3, double %6, double %8)
%10 = fadd double %9, 1.000000e+00
ret double %10
}
; Function Attrs: nounwind
declare double @exp(double noundef) #1
declare double @pow(double noundef, i32 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 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-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/tmp42nlb4xd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = load double, ptr %2, align 8
%5 = fneg double %4
%6 = call double @exp(double noundef %5) #4
%7 = load double, ptr %2, align 8
%8 = call double @pow(double noundef %7, i32 noundef 3)
%9 = call double @llvm.fmuladd.f64(double %3, double %6, double %8)
%10 = fadd double %9, 1.000000e+00
ret double %10
}
; Function Attrs: nounwind
declare double @exp(double noundef) #1
declare double @pow(double noundef, i32 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 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-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/tmpau7ka59r.c'
source_filename = "/tmp/tmpau7ka59r.c"
target datalayout = "e-m:e-p270: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/tmpau7ka59r.c"
target datalayout = "e-m:e-p270: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/tmpu2dx3szb.c'
source_filename = "/tmp/tmpu2dx3szb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@NAN = dso_local global float 0.000000e+00, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @sgn(x86_fp80 noundef %0) #0 {
%2 = alloca x86_fp80, align 16
store x86_fp80 %0, ptr %2, align 16
%3 = load x86_fp80, ptr %2, align 16
%4 = call i64 @isnan(x86_fp80 noundef %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load float, ptr @NAN, align 4
%8 = fpext float %7 to double
br label %20
9: ; preds = %1
%10 = load x86_fp80, ptr %2, align 16
%11 = fcmp ogt x86_fp80 %10, 0xK00000000000000000000
br i1 %11, label %12, label %13
12: ; preds = %9
br label %18
13: ; preds = %9
%14 = load x86_fp80, ptr %2, align 16
%15 = fcmp olt x86_fp80 %14, 0xK00000000000000000000
%16 = zext i1 %15 to i64
%17 = select i1 %15, double -1.000000e+00, double 0.000000e+00
br label %18
18: ; preds = %13, %12
%19 = phi double [ 1.000000e+00, %12 ], [ %17, %13 ]
br label %20
20: ; preds = %18, %6
%21 = phi double [ %8, %6 ], [ %19, %18 ]
%22 = fptrunc double %21 to float
ret float %22
}
declare i64 @isnan(x86_fp80 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu2dx3szb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@NAN = dso_local global float 0.000000e+00, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @sgn(x86_fp80 noundef %0) #0 {
%2 = alloca x86_fp80, align 16
store x86_fp80 %0, ptr %2, align 16
%3 = load x86_fp80, ptr %2, align 16
%4 = call i64 @isnan(x86_fp80 noundef %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load float, ptr @NAN, align 4
%8 = fpext float %7 to double
br label %20
9: ; preds = %1
%10 = load x86_fp80, ptr %2, align 16
%11 = fcmp ogt x86_fp80 %10, 0xK00000000000000000000
br i1 %11, label %12, label %13
12: ; preds = %9
br label %18
13: ; preds = %9
%14 = load x86_fp80, ptr %2, align 16
%15 = fcmp olt x86_fp80 %14, 0xK00000000000000000000
%16 = zext i1 %15 to i64
%17 = select i1 %15, double -1.000000e+00, double 0.000000e+00
br label %18
18: ; preds = %13, %12
%19 = phi double [ 1.000000e+00, %12 ], [ %17, %13 ]
br label %20
20: ; preds = %18, %6
%21 = phi double [ %8, %6 ], [ %19, %18 ]
%22 = fptrunc double %21 to float
ret float %22
}
declare i64 @isnan(x86_fp80 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzl_ckstn.c'
source_filename = "/tmp/tmpzl_ckstn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @renme(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
%15 = load i32, ptr %7, align 4
%16 = icmp sle i32 1, %15
br i1 %16, label %17, label %20
17: ; preds = %4
%18 = load i32, ptr %7, align 4
%19 = icmp sle i32 %18, 5
br label %20
20: ; preds = %17, %4
%21 = phi i1 [ false, %4 ], [ %19, %17 ]
%22 = zext i1 %21 to i32
%23 = call i32 @assert(i32 noundef %22)
%24 = load i32, ptr %8, align 4
%25 = icmp eq i32 %24, 0
br i1 %25, label %29, label %26
26: ; preds = %20
%27 = load i32, ptr %8, align 4
%28 = icmp eq i32 %27, 1
br label %29
29: ; preds = %26, %20
%30 = phi i1 [ true, %20 ], [ %28, %26 ]
%31 = zext i1 %30 to i32
%32 = call i32 @assert(i32 noundef %31)
store i32 0, ptr %10, align 4
%33 = load i32, ptr %8, align 4
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %56
35: ; preds = %29
store i32 0, ptr %11, align 4
br label %36
36: ; preds = %51, %35
%37 = load i32, ptr %11, align 4
%38 = load i32, ptr %7, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %40, label %54
40: ; preds = %36
%41 = load i32, ptr %6, align 4
%42 = load ptr, ptr %9, align 8
%43 = load i32, ptr %11, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i32, ptr %42, i64 %44
%46 = load i32, ptr %45, align 4
%47 = shl i32 1, %46
%48 = and i32 %41, %47
%49 = load i32, ptr %10, align 4
%50 = add nsw i32 %49, %48
store i32 %50, ptr %10, align 4
br label %51
51: ; preds = %40
%52 = load i32, ptr %11, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %11, align 4
br label %36, !llvm.loop !6
54: ; preds = %36
%55 = load i32, ptr %10, align 4
store i32 %55, ptr %5, align 4
br label %136
56: ; preds = %29
store i32 0, ptr %11, align 4
br label %57
57: ; preds = %131, %56
%58 = load i32, ptr %11, align 4
%59 = load i32, ptr %7, align 4
%60 = sub nsw i32 %59, 1
%61 = icmp slt i32 %58, %60
br i1 %61, label %62, label %134
62: ; preds = %57
%63 = load i32, ptr %11, align 4
store i32 %63, ptr %13, align 4
%64 = load i32, ptr %11, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %12, align 4
br label %66
66: ; preds = %127, %62
%67 = load i32, ptr %12, align 4
%68 = load i32, ptr %7, align 4
%69 = icmp slt i32 %67, %68
br i1 %69, label %70, label %130
70: ; preds = %66
%71 = load ptr, ptr %9, align 8
%72 = load i32, ptr %12, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i32, ptr %71, i64 %73
%75 = load i32, ptr %74, align 4
%76 = load ptr, ptr %9, align 8
%77 = load i32, ptr %13, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i32, ptr %76, i64 %78
%80 = load i32, ptr %79, align 4
%81 = icmp slt i32 %75, %80
br i1 %81, label %82, label %84
82: ; preds = %70
%83 = load i32, ptr %12, align 4
store i32 %83, ptr %13, align 4
br label %84
84: ; preds = %82, %70
%85 = load ptr, ptr %9, align 8
%86 = load i32, ptr %11, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i32, ptr %85, i64 %87
%89 = load i32, ptr %88, align 4
store i32 %89, ptr %14, align 4
%90 = load ptr, ptr %9, align 8
%91 = load i32, ptr %13, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i32, ptr %90, i64 %92
%94 = load i32, ptr %93, align 4
%95 = load ptr, ptr %9, align 8
%96 = load i32, ptr %11, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i32, ptr %95, i64 %97
store i32 %94, ptr %98, align 4
%99 = load i32, ptr %14, align 4
%100 = load ptr, ptr %9, align 8
%101 = load i32, ptr %13, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i32, ptr %100, i64 %102
store i32 %99, ptr %103, align 4
%104 = load i32, ptr %8, align 4
%105 = icmp eq i32 %104, 0
br i1 %105, label %106, label %120
106: ; preds = %84
%107 = load i32, ptr %6, align 4
%108 = load i32, ptr %7, align 4
%109 = load ptr, ptr %9, align 8
%110 = load i32, ptr %13, align 4
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds i32, ptr %109, i64 %111
%113 = load i32, ptr %112, align 4
%114 = load ptr, ptr %9, align 8
%115 = load i32, ptr %11, align 4
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds i32, ptr %114, i64 %116
%118 = load i32, ptr %117, align 4
%119 = call i32 @swap(i32 noundef %107, i32 noundef %108, i32 noundef %113, i32 noundef %118)
store i32 %119, ptr %6, align 4
br label %126
120: ; preds = %84
%121 = load i32, ptr %6, align 4
%122 = load i32, ptr %7, align 4
%123 = load i32, ptr %13, align 4
%124 = load i32, ptr %11, align 4
%125 = call i32 @swap(i32 noundef %121, i32 noundef %122, i32 noundef %123, i32 noundef %124)
store i32 %125, ptr %6, align 4
br label %126
126: ; preds = %120, %106
br label %127
127: ; preds = %126
%128 = load i32, ptr %12, align 4
%129 = add nsw i32 %128, 1
store i32 %129, ptr %12, align 4
br label %66, !llvm.loop !8
130: ; preds = %66
br label %131
131: ; preds = %130
%132 = load i32, ptr %11, align 4
%133 = add nsw i32 %132, 1
store i32 %133, ptr %11, align 4
br label %57, !llvm.loop !9
134: ; preds = %57
%135 = load i32, ptr %6, align 4
store i32 %135, ptr %5, align 4
br label %136
136: ; preds = %134, %54
%137 = load i32, ptr %5, align 4
ret i32 %137
}
declare i32 @assert(i32 noundef) #1
declare i32 @swap(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzl_ckstn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @renme(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
%15 = load i32, ptr %7, align 4
%16 = icmp sle i32 1, %15
br i1 %16, label %17, label %20
17: ; preds = %4
%18 = load i32, ptr %7, align 4
%19 = icmp sle i32 %18, 5
br label %20
20: ; preds = %17, %4
%21 = phi i1 [ false, %4 ], [ %19, %17 ]
%22 = zext i1 %21 to i32
%23 = call i32 @assert(i32 noundef %22)
%24 = load i32, ptr %8, align 4
%25 = icmp eq i32 %24, 0
br i1 %25, label %29, label %26
26: ; preds = %20
%27 = load i32, ptr %8, align 4
%28 = icmp eq i32 %27, 1
br label %29
29: ; preds = %26, %20
%30 = phi i1 [ true, %20 ], [ %28, %26 ]
%31 = zext i1 %30 to i32
%32 = call i32 @assert(i32 noundef %31)
store i32 0, ptr %10, align 4
%33 = load i32, ptr %8, align 4
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %58
35: ; preds = %29
store i32 0, ptr %11, align 4
%36 = load i32, ptr %11, align 4
%37 = load i32, ptr %7, align 4
%38 = icmp slt i32 %36, %37
br i1 %38, label %.lr.ph5, label %56
.lr.ph5: ; preds = %35
br label %39
39: ; preds = %.lr.ph5, %50
%40 = load i32, ptr %6, align 4
%41 = load ptr, ptr %9, align 8
%42 = load i32, ptr %11, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %41, i64 %43
%45 = load i32, ptr %44, align 4
%46 = shl i32 1, %45
%47 = and i32 %40, %46
%48 = load i32, ptr %10, align 4
%49 = add nsw i32 %48, %47
store i32 %49, ptr %10, align 4
br label %50
50: ; preds = %39
%51 = load i32, ptr %11, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %11, align 4
%53 = load i32, ptr %11, align 4
%54 = load i32, ptr %7, align 4
%55 = icmp slt i32 %53, %54
br i1 %55, label %39, label %._crit_edge6, !llvm.loop !6
._crit_edge6: ; preds = %50
br label %56
56: ; preds = %._crit_edge6, %35
%57 = load i32, ptr %10, align 4
store i32 %57, ptr %5, align 4
br label %143
58: ; preds = %29
store i32 0, ptr %11, align 4
%59 = load i32, ptr %11, align 4
%60 = load i32, ptr %7, align 4
%61 = sub nsw i32 %60, 1
%62 = icmp slt i32 %59, %61
br i1 %62, label %.lr.ph2, label %141
.lr.ph2: ; preds = %58
br label %63
63: ; preds = %.lr.ph2, %134
%64 = load i32, ptr %11, align 4
store i32 %64, ptr %13, align 4
%65 = load i32, ptr %11, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %12, align 4
%67 = load i32, ptr %12, align 4
%68 = load i32, ptr %7, align 4
%69 = icmp slt i32 %67, %68
br i1 %69, label %.lr.ph, label %133
.lr.ph: ; preds = %63
br label %70
70: ; preds = %.lr.ph, %127
%71 = load ptr, ptr %9, align 8
%72 = load i32, ptr %12, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i32, ptr %71, i64 %73
%75 = load i32, ptr %74, align 4
%76 = load ptr, ptr %9, align 8
%77 = load i32, ptr %13, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i32, ptr %76, i64 %78
%80 = load i32, ptr %79, align 4
%81 = icmp slt i32 %75, %80
br i1 %81, label %82, label %84
82: ; preds = %70
%83 = load i32, ptr %12, align 4
store i32 %83, ptr %13, align 4
br label %84
84: ; preds = %82, %70
%85 = load ptr, ptr %9, align 8
%86 = load i32, ptr %11, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i32, ptr %85, i64 %87
%89 = load i32, ptr %88, align 4
store i32 %89, ptr %14, align 4
%90 = load ptr, ptr %9, align 8
%91 = load i32, ptr %13, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i32, ptr %90, i64 %92
%94 = load i32, ptr %93, align 4
%95 = load ptr, ptr %9, align 8
%96 = load i32, ptr %11, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i32, ptr %95, i64 %97
store i32 %94, ptr %98, align 4
%99 = load i32, ptr %14, align 4
%100 = load ptr, ptr %9, align 8
%101 = load i32, ptr %13, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i32, ptr %100, i64 %102
store i32 %99, ptr %103, align 4
%104 = load i32, ptr %8, align 4
%105 = icmp eq i32 %104, 0
br i1 %105, label %106, label %120
106: ; preds = %84
%107 = load i32, ptr %6, align 4
%108 = load i32, ptr %7, align 4
%109 = load ptr, ptr %9, align 8
%110 = load i32, ptr %13, align 4
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds i32, ptr %109, i64 %111
%113 = load i32, ptr %112, align 4
%114 = load ptr, ptr %9, align 8
%115 = load i32, ptr %11, align 4
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds i32, ptr %114, i64 %116
%118 = load i32, ptr %117, align 4
%119 = call i32 @swap(i32 noundef %107, i32 noundef %108, i32 noundef %113, i32 noundef %118)
store i32 %119, ptr %6, align 4
br label %126
120: ; preds = %84
%121 = load i32, ptr %6, align 4
%122 = load i32, ptr %7, align 4
%123 = load i32, ptr %13, align 4
%124 = load i32, ptr %11, align 4
%125 = call i32 @swap(i32 noundef %121, i32 noundef %122, i32 noundef %123, i32 noundef %124)
store i32 %125, ptr %6, align 4
br label %126
126: ; preds = %120, %106
br label %127
127: ; preds = %126
%128 = load i32, ptr %12, align 4
%129 = add nsw i32 %128, 1
store i32 %129, ptr %12, align 4
%130 = load i32, ptr %12, align 4
%131 = load i32, ptr %7, align 4
%132 = icmp slt i32 %130, %131
br i1 %132, label %70, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %127
br label %133
133: ; preds = %._crit_edge, %63
br label %134
134: ; preds = %133
%135 = load i32, ptr %11, align 4
%136 = add nsw i32 %135, 1
store i32 %136, ptr %11, align 4
%137 = load i32, ptr %11, align 4
%138 = load i32, ptr %7, align 4
%139 = sub nsw i32 %138, 1
%140 = icmp slt i32 %137, %139
br i1 %140, label %63, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %134
br label %141
141: ; preds = %._crit_edge3, %58
%142 = load i32, ptr %6, align 4
store i32 %142, ptr %5, align 4
br label %143
143: ; preds = %141, %56
%144 = load i32, ptr %5, align 4
ret i32 %144
}
declare i32 @assert(i32 noundef) #1
declare i32 @swap(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpuuuyrw6s.c'
source_filename = "/tmp/tmpuuuyrw6s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Error: Out of memory.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @trimalloc(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i64 @malloc(i32 noundef %4)
%6 = inttoptr i64 %5 to ptr
store ptr %6, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %12
9: ; preds = %1
%10 = call i32 @printf(ptr noundef @.str)
%11 = call i32 @triexit(i32 noundef 1)
br label %12
12: ; preds = %9, %1
%13 = load ptr, ptr %3, align 8
ret ptr %13
}
declare i64 @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @triexit(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/tmpuuuyrw6s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Error: Out of memory.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @trimalloc(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i64 @malloc(i32 noundef %4)
%6 = inttoptr i64 %5 to ptr
store ptr %6, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %12
9: ; preds = %1
%10 = call i32 @printf(ptr noundef @.str)
%11 = call i32 @triexit(i32 noundef 1)
br label %12
12: ; preds = %9, %1
%13 = load ptr, ptr %3, align 8
ret ptr %13
}
declare i64 @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @triexit(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/tmp81k6q7vl.c'
source_filename = "/tmp/tmp81k6q7vl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"SCQuarantine\00", align 1
@.str.1 = private unnamed_addr constant [46 x i8] c"sleep 1 && clamscan -vir --bell --move=$HOME/\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c" --log=$HOME/\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"/\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"SCReport-0\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c".txt \00", align 1
@.str.6 = private unnamed_addr constant [52 x i8] c"%s: Updating ClamAV virus database. Please wait...\0A\00", align 1
@.str.7 = private unnamed_addr constant [30 x i8] c"sleep 1 && freshclam --quiet \00", align 1
@.str.8 = private unnamed_addr constant [6 x i8] c"Done\0A\00", align 1
@.str.9 = private unnamed_addr constant [7 x i8] c"%s: %s\00", align 1
@.str.10 = private unnamed_addr constant [43 x i8] c"Command failed to execute due to error(s).\00", align 1
@.str.11 = private unnamed_addr constant [3 x i8] c"/*\00", align 1
@.str.12 = private unnamed_addr constant [63 x i8] c"%s: Initiating full scan (might take a while). Please wait...\0A\00", align 1
@.str.13 = private unnamed_addr constant [8 x i8] c"$HOME/*\00", align 1
@.str.14 = private unnamed_addr constant [59 x i8] c"%s: Scanning home directory (recursively). Please wait...\0A\00", align 1
@.str.15 = private unnamed_addr constant [56 x i8] c"%s: Please check the %s folder for any infected files.\0A\00", align 1
@.str.16 = private unnamed_addr constant [44 x i8] c"%s: Virus scanning failed due to error(s).\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @clam_scan_util(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca [128 x i8], align 16
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%8 = load ptr, ptr %3, align 8
%9 = call i32 @infc_files_dir(ptr noundef @.str, ptr noundef %8)
%10 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%11 = call i32 @strcpy(ptr noundef %10, ptr noundef @.str.1)
%12 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%13 = call i32 @strcat(ptr noundef %12, ptr noundef @.str)
%14 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%15 = call i32 @strcat(ptr noundef %14, ptr noundef @.str.2)
%16 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%17 = call i32 @strcat(ptr noundef %16, ptr noundef @.str)
%18 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%19 = call i32 @strcat(ptr noundef %18, ptr noundef @.str.3)
%20 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%21 = call i32 @strcat(ptr noundef %20, ptr noundef @.str.4)
%22 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%23 = call ptr @randstr(i32 noundef 8)
%24 = call i32 @strcat(ptr noundef %22, ptr noundef %23)
%25 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%26 = call i32 @strcat(ptr noundef %25, ptr noundef @.str.5)
%27 = load ptr, ptr %3, align 8
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %27)
%29 = call i32 @system(ptr noundef @.str.7)
store i32 %29, ptr %5, align 4
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %2
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %36
33: ; preds = %2
%34 = load ptr, ptr %3, align 8
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %34, ptr noundef @.str.10)
br label %36
36: ; preds = %33, %31
%37 = call i32 @putchar(i8 noundef signext 10)
%38 = load i32, ptr %4, align 4
%39 = icmp sgt i32 %38, 0
br i1 %39, label %40, label %45
40: ; preds = %36
%41 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%42 = call i32 @strcat(ptr noundef %41, ptr noundef @.str.11)
%43 = load ptr, ptr %3, align 8
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, ptr noundef %43)
br label %50
45: ; preds = %36
%46 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%47 = call i32 @strcat(ptr noundef %46, ptr noundef @.str.13)
%48 = load ptr, ptr %3, align 8
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, ptr noundef %48)
br label %50
50: ; preds = %45, %40
%51 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%52 = call i32 @system(ptr noundef %51)
store i32 %52, ptr %6, align 4
%53 = icmp eq i32 %52, 0
br i1 %53, label %54, label %57
54: ; preds = %50
%55 = load ptr, ptr %3, align 8
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, ptr noundef %55, ptr noundef @.str)
br label %60
57: ; preds = %50
%58 = load ptr, ptr %3, align 8
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, ptr noundef %58)
br label %60
60: ; preds = %57, %54
%61 = call i32 @putchar(i8 noundef signext 10)
ret void
}
declare i32 @infc_files_dir(ptr noundef, ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare ptr @randstr(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @system(ptr noundef) #1
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp81k6q7vl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"SCQuarantine\00", align 1
@.str.1 = private unnamed_addr constant [46 x i8] c"sleep 1 && clamscan -vir --bell --move=$HOME/\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c" --log=$HOME/\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"/\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"SCReport-0\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c".txt \00", align 1
@.str.6 = private unnamed_addr constant [52 x i8] c"%s: Updating ClamAV virus database. Please wait...\0A\00", align 1
@.str.7 = private unnamed_addr constant [30 x i8] c"sleep 1 && freshclam --quiet \00", align 1
@.str.8 = private unnamed_addr constant [6 x i8] c"Done\0A\00", align 1
@.str.9 = private unnamed_addr constant [7 x i8] c"%s: %s\00", align 1
@.str.10 = private unnamed_addr constant [43 x i8] c"Command failed to execute due to error(s).\00", align 1
@.str.11 = private unnamed_addr constant [3 x i8] c"/*\00", align 1
@.str.12 = private unnamed_addr constant [63 x i8] c"%s: Initiating full scan (might take a while). Please wait...\0A\00", align 1
@.str.13 = private unnamed_addr constant [8 x i8] c"$HOME/*\00", align 1
@.str.14 = private unnamed_addr constant [59 x i8] c"%s: Scanning home directory (recursively). Please wait...\0A\00", align 1
@.str.15 = private unnamed_addr constant [56 x i8] c"%s: Please check the %s folder for any infected files.\0A\00", align 1
@.str.16 = private unnamed_addr constant [44 x i8] c"%s: Virus scanning failed due to error(s).\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @clam_scan_util(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca [128 x i8], align 16
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%8 = load ptr, ptr %3, align 8
%9 = call i32 @infc_files_dir(ptr noundef @.str, ptr noundef %8)
%10 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%11 = call i32 @strcpy(ptr noundef %10, ptr noundef @.str.1)
%12 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%13 = call i32 @strcat(ptr noundef %12, ptr noundef @.str)
%14 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%15 = call i32 @strcat(ptr noundef %14, ptr noundef @.str.2)
%16 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%17 = call i32 @strcat(ptr noundef %16, ptr noundef @.str)
%18 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%19 = call i32 @strcat(ptr noundef %18, ptr noundef @.str.3)
%20 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%21 = call i32 @strcat(ptr noundef %20, ptr noundef @.str.4)
%22 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%23 = call ptr @randstr(i32 noundef 8)
%24 = call i32 @strcat(ptr noundef %22, ptr noundef %23)
%25 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%26 = call i32 @strcat(ptr noundef %25, ptr noundef @.str.5)
%27 = load ptr, ptr %3, align 8
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %27)
%29 = call i32 @system(ptr noundef @.str.7)
store i32 %29, ptr %5, align 4
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %2
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %36
33: ; preds = %2
%34 = load ptr, ptr %3, align 8
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %34, ptr noundef @.str.10)
br label %36
36: ; preds = %33, %31
%37 = call i32 @putchar(i8 noundef signext 10)
%38 = load i32, ptr %4, align 4
%39 = icmp sgt i32 %38, 0
br i1 %39, label %40, label %45
40: ; preds = %36
%41 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%42 = call i32 @strcat(ptr noundef %41, ptr noundef @.str.11)
%43 = load ptr, ptr %3, align 8
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, ptr noundef %43)
br label %50
45: ; preds = %36
%46 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%47 = call i32 @strcat(ptr noundef %46, ptr noundef @.str.13)
%48 = load ptr, ptr %3, align 8
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, ptr noundef %48)
br label %50
50: ; preds = %45, %40
%51 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%52 = call i32 @system(ptr noundef %51)
store i32 %52, ptr %6, align 4
%53 = icmp eq i32 %52, 0
br i1 %53, label %54, label %57
54: ; preds = %50
%55 = load ptr, ptr %3, align 8
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, ptr noundef %55, ptr noundef @.str)
br label %60
57: ; preds = %50
%58 = load ptr, ptr %3, align 8
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, ptr noundef %58)
br label %60
60: ; preds = %57, %54
%61 = call i32 @putchar(i8 noundef signext 10)
ret void
}
declare i32 @infc_files_dir(ptr noundef, ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare ptr @randstr(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @system(ptr noundef) #1
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbyo7algq.c'
source_filename = "/tmp/tmpbyo7algq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @unique_chars2(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca [26 x i8], align 16
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 @strlen(ptr noundef %7)
store i32 %8, ptr %6, align 4
store i32 0, ptr %5, align 4
br label %9
9: ; preds = %16, %1
%10 = load i32, ptr %5, align 4
%11 = icmp slt i32 %10, 26
br i1 %11, label %12, label %19
12: ; preds = %9
%13 = load i32, ptr %5, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [26 x i8], ptr %4, i64 0, i64 %14
store i8 0, ptr %15, align 1
br label %16
16: ; preds = %12
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %5, align 4
br label %9, !llvm.loop !6
19: ; preds = %9
store i32 0, ptr %5, align 4
br label %20
20: ; preds = %37, %19
%21 = load i32, ptr %5, align 4
%22 = load i32, ptr %6, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %40
24: ; preds = %20
%25 = load ptr, ptr %3, align 8
%26 = load i32, ptr %5, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
%29 = load i8, ptr %28, align 1
%30 = call signext i8 @tolower(i8 noundef signext %29)
%31 = sext i8 %30 to i32
%32 = sub nsw i32 %31, 97
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [26 x i8], ptr %4, i64 0, i64 %33
%35 = load i8, ptr %34, align 1
%36 = add i8 %35, 1
store i8 %36, ptr %34, align 1
br label %37
37: ; preds = %24
%38 = load i32, ptr %5, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %5, align 4
br label %20, !llvm.loop !8
40: ; preds = %20
store i32 0, ptr %5, align 4
br label %41
41: ; preds = %53, %40
%42 = load i32, ptr %5, align 4
%43 = icmp slt i32 %42, 26
br i1 %43, label %44, label %56
44: ; preds = %41
%45 = load i32, ptr %5, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [26 x i8], ptr %4, i64 0, i64 %46
%48 = load i8, ptr %47, align 1
%49 = sext i8 %48 to i32
%50 = icmp sgt i32 %49, 1
br i1 %50, label %51, label %52
51: ; preds = %44
store i32 0, ptr %2, align 4
br label %57
52: ; preds = %44
br label %53
53: ; preds = %52
%54 = load i32, ptr %5, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %5, align 4
br label %41, !llvm.loop !9
56: ; preds = %41
store i32 1, ptr %2, align 4
br label %57
57: ; preds = %56, %51
%58 = load i32, ptr %2, align 4
ret i32 %58
}
declare i32 @strlen(ptr noundef) #1
declare signext i8 @tolower(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbyo7algq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @unique_chars2(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca [26 x i8], align 16
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 @strlen(ptr noundef %7)
store i32 %8, ptr %6, align 4
store i32 0, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp slt i32 %9, 26
br i1 %10, label %.lr.ph, label %20
.lr.ph: ; preds = %1
br label %11
11: ; preds = %.lr.ph, %15
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [26 x i8], ptr %4, i64 0, i64 %13
store i8 0, ptr %14, align 1
br label %15
15: ; preds = %11
%16 = load i32, ptr %5, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %5, align 4
%18 = load i32, ptr %5, align 4
%19 = icmp slt i32 %18, 26
br i1 %19, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %20
20: ; preds = %._crit_edge, %1
store i32 0, ptr %5, align 4
%21 = load i32, ptr %5, align 4
%22 = load i32, ptr %6, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %.lr.ph2, label %43
.lr.ph2: ; preds = %20
br label %24
24: ; preds = %.lr.ph2, %37
%25 = load ptr, ptr %3, align 8
%26 = load i32, ptr %5, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
%29 = load i8, ptr %28, align 1
%30 = call signext i8 @tolower(i8 noundef signext %29)
%31 = sext i8 %30 to i32
%32 = sub nsw i32 %31, 97
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [26 x i8], ptr %4, i64 0, i64 %33
%35 = load i8, ptr %34, align 1
%36 = add i8 %35, 1
store i8 %36, ptr %34, align 1
br label %37
37: ; preds = %24
%38 = load i32, ptr %5, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %5, align 4
%40 = load i32, ptr %5, align 4
%41 = load i32, ptr %6, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %24, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %37
br label %43
43: ; preds = %._crit_edge3, %20
store i32 0, ptr %5, align 4
%44 = load i32, ptr %5, align 4
%45 = icmp slt i32 %44, 26
br i1 %45, label %.lr.ph5, label %60
.lr.ph5: ; preds = %43
br label %46
46: ; preds = %.lr.ph5, %55
%47 = load i32, ptr %5, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [26 x i8], ptr %4, i64 0, i64 %48
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = icmp sgt i32 %51, 1
br i1 %52, label %53, label %54
53: ; preds = %46
store i32 0, ptr %2, align 4
br label %61
54: ; preds = %46
br label %55
55: ; preds = %54
%56 = load i32, ptr %5, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %5, align 4
%58 = load i32, ptr %5, align 4
%59 = icmp slt i32 %58, 26
br i1 %59, label %46, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %55
br label %60
60: ; preds = %._crit_edge6, %43
store i32 1, ptr %2, align 4
br label %61
61: ; preds = %60, %53
%62 = load i32, ptr %2, align 4
ret i32 %62
}
declare i32 @strlen(ptr noundef) #1
declare signext i8 @tolower(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpcqpmhr60.c'
source_filename = "/tmp/tmpcqpmhr60.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @fmax(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
store float %0, ptr %4, align 4
store float %1, ptr %5, align 4
%6 = load float, ptr %4, align 4
%7 = load float, ptr %5, align 4
%8 = fcmp ogt float %6, %7
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = load float, ptr %4, align 4
store float %10, ptr %3, align 4
br label %13
11: ; preds = %2
%12 = load float, ptr %5, align 4
store float %12, ptr %3, align 4
br label %13
13: ; preds = %11, %9
%14 = load float, ptr %3, align 4
ret float %14
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcqpmhr60.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @fmax(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
store float %0, ptr %4, align 4
store float %1, ptr %5, align 4
%6 = load float, ptr %4, align 4
%7 = load float, ptr %5, align 4
%8 = fcmp ogt float %6, %7
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = load float, ptr %4, align 4
store float %10, ptr %3, align 4
br label %13
11: ; preds = %2
%12 = load float, ptr %5, align 4
store float %12, ptr %3, align 4
br label %13
13: ; preds = %11, %9
%14 = load float, ptr %3, align 4
ret float %14
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjbaw11n3.c'
source_filename = "/tmp/tmpjbaw11n3.c"
target datalayout = "e-m:e-p270: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/tmpjbaw11n3.c"
target datalayout = "e-m:e-p270: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/tmpizucymrj.c'
source_filename = "/tmp/tmpizucymrj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"hello, \00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"world\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [40 x i8], align 16
store i32 0, ptr %1, align 4
%3 = getelementptr inbounds [40 x i8], ptr %2, i64 0, i64 0
%4 = call i32 @strcpy(ptr noundef %3, ptr noundef @.str)
%5 = getelementptr inbounds [40 x i8], ptr %2, i64 0, i64 0
%6 = call i32 @strcat(ptr noundef %5, ptr noundef @.str.1)
%7 = getelementptr inbounds [40 x i8], ptr %2, i64 0, i64 0
%8 = call i32 @printf(ptr noundef @.str.2, ptr noundef %7)
%9 = getelementptr inbounds [40 x i8], ptr %2, i64 0, i64 0
%10 = call i32 @strncpy(ptr noundef %9, ptr noundef @.str, i32 noundef 8)
%11 = getelementptr inbounds [40 x i8], ptr %2, i64 0, i64 0
%12 = call i32 @strncat(ptr noundef %11, ptr noundef @.str.1, i32 noundef 5)
%13 = getelementptr inbounds [40 x i8], ptr %2, i64 0, i64 0
%14 = call i32 @printf(ptr noundef @.str.2, ptr noundef %13)
ret i32 0
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strncat(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/tmpizucymrj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"hello, \00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"world\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [40 x i8], align 16
store i32 0, ptr %1, align 4
%3 = getelementptr inbounds [40 x i8], ptr %2, i64 0, i64 0
%4 = call i32 @strcpy(ptr noundef %3, ptr noundef @.str)
%5 = getelementptr inbounds [40 x i8], ptr %2, i64 0, i64 0
%6 = call i32 @strcat(ptr noundef %5, ptr noundef @.str.1)
%7 = getelementptr inbounds [40 x i8], ptr %2, i64 0, i64 0
%8 = call i32 @printf(ptr noundef @.str.2, ptr noundef %7)
%9 = getelementptr inbounds [40 x i8], ptr %2, i64 0, i64 0
%10 = call i32 @strncpy(ptr noundef %9, ptr noundef @.str, i32 noundef 8)
%11 = getelementptr inbounds [40 x i8], ptr %2, i64 0, i64 0
%12 = call i32 @strncat(ptr noundef %11, ptr noundef @.str.1, i32 noundef 5)
%13 = getelementptr inbounds [40 x i8], ptr %2, i64 0, i64 0
%14 = call i32 @printf(ptr noundef @.str.2, ptr noundef %13)
ret i32 0
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strncat(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/tmpp76ww1z7.c'
source_filename = "/tmp/tmpp76ww1z7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_leading_digit_place(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 -2147483648, ptr %3, align 4
store i32 31, ptr %4, align 4
br label %5
5: ; preds = %1, %12
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %3, align 4
%8 = and i32 %6, %7
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %5
%11 = load i32, ptr %4, align 4
ret i32 %11
12: ; preds = %5
%13 = load i32, ptr %3, align 4
%14 = ashr i32 %13, 1
store i32 %14, ptr %3, align 4
%15 = load i32, ptr %4, align 4
%16 = add nsw i32 %15, -1
store i32 %16, ptr %4, align 4
br label %5
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp76ww1z7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_leading_digit_place(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 -2147483648, ptr %3, align 4
store i32 31, ptr %4, align 4
%5 = load i32, ptr %2, align 4
%6 = load i32, ptr %3, align 4
%7 = and i32 %5, %6
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %.lr.ph
.lr.ph: ; preds = %1
br label %11
._crit_edge: ; preds = %11
br label %9
9: ; preds = %._crit_edge, %1
%10 = load i32, ptr %4, align 4
ret i32 %10
11: ; preds = %.lr.ph, %11
%12 = load i32, ptr %3, align 4
%13 = ashr i32 %12, 1
store i32 %13, ptr %3, align 4
%14 = load i32, ptr %4, align 4
%15 = add nsw i32 %14, -1
store i32 %15, ptr %4, align 4
%16 = load i32, ptr %2, align 4
%17 = load i32, ptr %3, align 4
%18 = and i32 %16, %17
%19 = icmp ne i32 %18, 0
br i1 %19, label %._crit_edge, label %11
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3iwffmgx.c'
source_filename = "/tmp/tmp3iwffmgx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"Hello world! It's me - thread %zd\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @busy_work(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = ptrtoint ptr %7 to i64
store i64 %8, ptr %5, align 8
%9 = call ptr @calloc(i32 noundef 1, i32 noundef 8)
store ptr %9, ptr %6, align 8
%10 = load i64, ptr %5, align 8
%11 = call i32 @printf(ptr noundef @.str, i64 noundef %10)
store i32 0, ptr %4, align 4
br label %12
12: ; preds = %21, %1
%13 = load i32, ptr %4, align 4
%14 = icmp slt i32 %13, 1000000
br i1 %14, label %15, label %24
15: ; preds = %12
%16 = load ptr, ptr %6, align 8
%17 = load i64, ptr %16, align 8
%18 = call i64 (...) @random()
%19 = add i64 %17, %18
%20 = load ptr, ptr %6, align 8
store i64 %19, ptr %20, align 8
br label %21
21: ; preds = %15
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %4, align 4
br label %12, !llvm.loop !6
24: ; preds = %12
%25 = load ptr, ptr %6, align 8
%26 = call i32 @pthread_exit(ptr noundef %25)
%27 = load ptr, ptr %2, align 8
ret ptr %27
}
declare ptr @calloc(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
declare i64 @random(...) #1
declare i32 @pthread_exit(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3iwffmgx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"Hello world! It's me - thread %zd\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @busy_work(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = ptrtoint ptr %7 to i64
store i64 %8, ptr %5, align 8
%9 = call ptr @calloc(i32 noundef 1, i32 noundef 8)
store ptr %9, ptr %6, align 8
%10 = load i64, ptr %5, align 8
%11 = call i32 @printf(ptr noundef @.str, i64 noundef %10)
store i32 0, ptr %4, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %12, 1000000
br i1 %13, label %.lr.ph, label %25
.lr.ph: ; preds = %1
br label %14
14: ; preds = %.lr.ph, %20
%15 = load ptr, ptr %6, align 8
%16 = load i64, ptr %15, align 8
%17 = call i64 (...) @random()
%18 = add i64 %16, %17
%19 = load ptr, ptr %6, align 8
store i64 %18, ptr %19, align 8
br label %20
20: ; preds = %14
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %4, align 4
%23 = load i32, ptr %4, align 4
%24 = icmp slt i32 %23, 1000000
br i1 %24, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %25
25: ; preds = %._crit_edge, %1
%26 = load ptr, ptr %6, align 8
%27 = call i32 @pthread_exit(ptr noundef %26)
%28 = load ptr, ptr %2, align 8
ret ptr %28
}
declare ptr @calloc(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
declare i64 @random(...) #1
declare i32 @pthread_exit(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.