llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmpy7pqrs5_.c'
source_filename = "/tmp/tmpy7pqrs5_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"Starting Webbly web server...\0A\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"Exiting Webbly web server...\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @printf(ptr noundef @.str)
%7 = call i32 (...) @start_server()
%8 = call i32 @printf(ptr noundef @.str.1)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @start_server(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy7pqrs5_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"Starting Webbly web server...\0A\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"Exiting Webbly web server...\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @printf(ptr noundef @.str)
%7 = call i32 (...) @start_server()
%8 = call i32 @printf(ptr noundef @.str.1)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @start_server(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpifvrjngc.c'
source_filename = "/tmp/tmpifvrjngc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fsync(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = call i32 (...) @__infer_nondet_int()
store i32 %4, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp slt i32 %5, -1
br i1 %6, label %10, label %7
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %7, %1
br label %11
11: ; preds = %10, %11
br label %11
12: ; preds = %7
%13 = load i32, ptr %3, align 4
ret i32 %13
}
declare i32 @__infer_nondet_int(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpifvrjngc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fsync(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = call i32 (...) @__infer_nondet_int()
store i32 %4, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp slt i32 %5, -1
br i1 %6, label %10, label %7
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %7, %1
br label %11
11: ; preds = %11, %10
br label %11
12: ; preds = %7
%13 = load i32, ptr %3, align 4
ret i32 %13
}
declare i32 @__infer_nondet_int(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9c15dsm_.c'
source_filename = "/tmp/tmp9c15dsm_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"Initializing plugins.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @init_plugins() #0 {
%1 = call i32 @logmsg(i32 noundef 3, i32 noundef 1, ptr noundef @.str)
%2 = call i32 (...) @plughook_init_plugins()
ret void
}
declare i32 @logmsg(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @plughook_init_plugins(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9c15dsm_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"Initializing plugins.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @init_plugins() #0 {
%1 = call i32 @logmsg(i32 noundef 3, i32 noundef 1, ptr noundef @.str)
%2 = call i32 (...) @plughook_init_plugins()
ret void
}
declare i32 @logmsg(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @plughook_init_plugins(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxnshf25d.c'
source_filename = "/tmp/tmpxnshf25d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wait_KBC_sendready() #0 {
br label %1
1: ; preds = %6, %0
%2 = call i32 @_io_in8(i32 noundef 100)
%3 = and i32 %2, 2
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %6
5: ; preds = %1
br label %7
6: ; preds = %1
br label %1
7: ; preds = %5
ret void
}
declare i32 @_io_in8(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/tmpxnshf25d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wait_KBC_sendready() #0 {
br label %1
1: ; preds = %1, %0
%2 = call i32 @_io_in8(i32 noundef 100)
%3 = and i32 %2, 2
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %1
5: ; preds = %1
br label %6
6: ; preds = %5
ret void
}
declare i32 @_io_in8(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/tmp56kp5slc.c'
source_filename = "/tmp/tmp56kp5slc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f_to_s_max_F4(ptr noundef %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = getelementptr inbounds float, ptr %8, i64 0
%10 = load float, ptr %9, align 4
%11 = load ptr, ptr %6, align 8
store float %10, ptr %11, align 4
store i64 1, ptr %7, align 8
br label %12
12: ; preds = %31, %3
%13 = load i64, ptr %7, align 8
%14 = load i64, ptr %5, align 8
%15 = icmp ult i64 %13, %14
br i1 %15, label %16, label %34
16: ; preds = %12
%17 = load ptr, ptr %4, align 8
%18 = load i64, ptr %7, align 8
%19 = getelementptr inbounds float, ptr %17, i64 %18
%20 = load float, ptr %19, align 4
%21 = load ptr, ptr %6, align 8
%22 = load float, ptr %21, align 4
%23 = fcmp ogt float %20, %22
br i1 %23, label %24, label %30
24: ; preds = %16
%25 = load ptr, ptr %4, align 8
%26 = load i64, ptr %7, align 8
%27 = getelementptr inbounds float, ptr %25, i64 %26
%28 = load float, ptr %27, align 4
%29 = load ptr, ptr %6, align 8
store float %28, ptr %29, align 4
br label %30
30: ; preds = %24, %16
br label %31
31: ; preds = %30
%32 = load i64, ptr %7, align 8
%33 = add i64 %32, 1
store i64 %33, ptr %7, align 8
br label %12, !llvm.loop !6
34: ; preds = %12
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/tmp56kp5slc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f_to_s_max_F4(ptr noundef %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = getelementptr inbounds float, ptr %8, i64 0
%10 = load float, ptr %9, align 4
%11 = load ptr, ptr %6, align 8
store float %10, ptr %11, align 4
store i64 1, ptr %7, align 8
%12 = load i64, ptr %7, align 8
%13 = load i64, ptr %5, align 8
%14 = icmp ult i64 %12, %13
br i1 %14, label %.lr.ph, label %36
.lr.ph: ; preds = %3
br label %15
15: ; preds = %.lr.ph, %30
%16 = load ptr, ptr %4, align 8
%17 = load i64, ptr %7, align 8
%18 = getelementptr inbounds float, ptr %16, i64 %17
%19 = load float, ptr %18, align 4
%20 = load ptr, ptr %6, align 8
%21 = load float, ptr %20, align 4
%22 = fcmp ogt float %19, %21
br i1 %22, label %23, label %29
23: ; preds = %15
%24 = load ptr, ptr %4, align 8
%25 = load i64, ptr %7, align 8
%26 = getelementptr inbounds float, ptr %24, i64 %25
%27 = load float, ptr %26, align 4
%28 = load ptr, ptr %6, align 8
store float %27, ptr %28, align 4
br label %29
29: ; preds = %23, %15
br label %30
30: ; preds = %29
%31 = load i64, ptr %7, align 8
%32 = add i64 %31, 1
store i64 %32, ptr %7, align 8
%33 = load i64, ptr %7, align 8
%34 = load i64, ptr %5, align 8
%35 = icmp ult i64 %33, %34
br i1 %35, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %36
36: ; preds = %._crit_edge, %3
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/tmp7t9jnxse.c'
source_filename = "/tmp/tmp7t9jnxse.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [28 x i8] c"Unable to execute close(%d)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @closeSafe(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @close(i32 noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp eq i32 %6, -1
br i1 %7, label %8, label %13
8: ; preds = %1
%9 = load i32, ptr @stderr, align 4
%10 = load i32, ptr %2, align 4
%11 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str, i32 noundef %10)
%12 = call i32 @exit(i32 noundef 1) #3
unreachable
13: ; preds = %1
ret void
}
declare i32 @close(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7t9jnxse.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [28 x i8] c"Unable to execute close(%d)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @closeSafe(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @close(i32 noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp eq i32 %6, -1
br i1 %7, label %8, label %13
8: ; preds = %1
%9 = load i32, ptr @stderr, align 4
%10 = load i32, ptr %2, align 4
%11 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str, i32 noundef %10)
%12 = call i32 @exit(i32 noundef 1) #3
unreachable
13: ; preds = %1
ret void
}
declare i32 @close(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpp3qozs5e.c'
source_filename = "/tmp/tmpp3qozs5e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strlen(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %9, %1
%5 = load ptr, ptr %2, align 8
%6 = getelementptr inbounds i8, ptr %5, i32 1
store ptr %6, ptr %2, align 8
%7 = load i8, ptr %5, align 1
%8 = icmp ne i8 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %4
%10 = load i32, ptr %3, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %3, align 4
br label %4, !llvm.loop !6
12: ; preds = %4
%13 = load i32, ptr %3, align 4
ret i32 %13
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp3qozs5e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strlen(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%4 = load ptr, ptr %2, align 8
%5 = getelementptr inbounds i8, ptr %4, i32 1
store ptr %5, ptr %2, align 8
%6 = load i8, ptr %4, align 1
%7 = icmp ne i8 %6, 0
br i1 %7, label %.lr.ph, label %15
.lr.ph: ; preds = %1
br label %8
8: ; preds = %.lr.ph, %8
%9 = load i32, ptr %3, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr %3, align 4
%11 = load ptr, ptr %2, align 8
%12 = getelementptr inbounds i8, ptr %11, i32 1
store ptr %12, ptr %2, align 8
%13 = load i8, ptr %11, align 1
%14 = icmp ne i8 %13, 0
br i1 %14, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %8
br label %15
15: ; preds = %._crit_edge, %1
%16 = load i32, ptr %3, align 4
ret i32 %16
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp93t9h2l7.c'
source_filename = "/tmp/tmp93t9h2l7.c"
target datalayout = "e-m:e-p270: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/tmp93t9h2l7.c"
target datalayout = "e-m:e-p270: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/tmplxl_9ief.c'
source_filename = "/tmp/tmplxl_9ief.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @es_sizecmp(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %3, align 8
%6 = load i64, ptr %4, align 8
%7 = icmp ult i64 %5, %6
br i1 %7, label %8, label %9
8: ; preds = %2
br label %15
9: ; preds = %2
%10 = load i64, ptr %3, align 8
%11 = load i64, ptr %4, align 8
%12 = icmp ugt i64 %10, %11
%13 = zext i1 %12 to i64
%14 = select i1 %12, i32 1, i32 0
br label %15
15: ; preds = %9, %8
%16 = phi i32 [ -1, %8 ], [ %14, %9 ]
ret i32 %16
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplxl_9ief.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @es_sizecmp(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %3, align 8
%6 = load i64, ptr %4, align 8
%7 = icmp ult i64 %5, %6
br i1 %7, label %8, label %9
8: ; preds = %2
br label %15
9: ; preds = %2
%10 = load i64, ptr %3, align 8
%11 = load i64, ptr %4, align 8
%12 = icmp ugt i64 %10, %11
%13 = zext i1 %12 to i64
%14 = select i1 %12, i32 1, i32 0
br label %15
15: ; preds = %9, %8
%16 = phi i32 [ -1, %8 ], [ %14, %9 ]
ret i32 %16
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsuihhsle.c'
source_filename = "/tmp/tmpsuihhsle.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @OR3(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp sle i32 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %1
store i32 0, ptr %2, align 4
br label %54
11: ; preds = %1
store i32 0, ptr %7, align 4
store i32 0, ptr %4, align 4
br label %12
12: ; preds = %49, %11
%13 = load i32, ptr %4, align 4
%14 = call i32 @pow(i32 noundef 2, i32 noundef %13)
%15 = load i32, ptr %3, align 4
%16 = icmp sle i32 %14, %15
br i1 %16, label %17, label %52
17: ; preds = %12
store i32 0, ptr %5, align 4
br label %18
18: ; preds = %45, %17
%19 = load i32, ptr %4, align 4
%20 = call i32 @pow(i32 noundef 2, i32 noundef %19)
%21 = load i32, ptr %5, align 4
%22 = call i32 @pow(i32 noundef 3, i32 noundef %21)
%23 = mul nsw i32 %20, %22
%24 = load i32, ptr %3, align 4
%25 = icmp sle i32 %23, %24
br i1 %25, label %26, label %48
26: ; preds = %18
store i32 0, ptr %6, align 4
br label %27
27: ; preds = %41, %26
%28 = load i32, ptr %4, align 4
%29 = call i32 @pow(i32 noundef 2, i32 noundef %28)
%30 = load i32, ptr %5, align 4
%31 = call i32 @pow(i32 noundef 3, i32 noundef %30)
%32 = mul nsw i32 %29, %31
%33 = load i32, ptr %6, align 4
%34 = call i32 @pow(i32 noundef 5, i32 noundef %33)
%35 = mul nsw i32 %32, %34
%36 = load i32, ptr %3, align 4
%37 = icmp sle i32 %35, %36
br i1 %37, label %38, label %44
38: ; preds = %27
%39 = load i32, ptr %7, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %7, align 4
br label %41
41: ; preds = %38
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4
br label %27, !llvm.loop !6
44: ; preds = %27
br label %45
45: ; preds = %44
%46 = load i32, ptr %5, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %5, align 4
br label %18, !llvm.loop !8
48: ; preds = %18
br label %49
49: ; preds = %48
%50 = load i32, ptr %4, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %4, align 4
br label %12, !llvm.loop !9
52: ; preds = %12
%53 = load i32, ptr %7, align 4
store i32 %53, ptr %2, align 4
br label %54
54: ; preds = %52, %10
%55 = load i32, ptr %2, align 4
ret i32 %55
}
declare i32 @pow(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/tmpsuihhsle.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @OR3(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp sle i32 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %1
store i32 0, ptr %2, align 4
br label %72
11: ; preds = %1
store i32 0, ptr %7, align 4
store i32 0, ptr %4, align 4
%12 = load i32, ptr %4, align 4
%13 = call i32 @pow(i32 noundef 2, i32 noundef %12)
%14 = load i32, ptr %3, align 4
%15 = icmp sle i32 %13, %14
br i1 %15, label %.lr.ph5, label %70
.lr.ph5: ; preds = %11
br label %16
16: ; preds = %.lr.ph5, %63
store i32 0, ptr %5, align 4
%17 = load i32, ptr %4, align 4
%18 = call i32 @pow(i32 noundef 2, i32 noundef %17)
%19 = load i32, ptr %5, align 4
%20 = call i32 @pow(i32 noundef 3, i32 noundef %19)
%21 = mul nsw i32 %18, %20
%22 = load i32, ptr %3, align 4
%23 = icmp sle i32 %21, %22
br i1 %23, label %.lr.ph2, label %62
.lr.ph2: ; preds = %16
br label %24
24: ; preds = %.lr.ph2, %52
store i32 0, ptr %6, align 4
%25 = load i32, ptr %4, align 4
%26 = call i32 @pow(i32 noundef 2, i32 noundef %25)
%27 = load i32, ptr %5, align 4
%28 = call i32 @pow(i32 noundef 3, i32 noundef %27)
%29 = mul nsw i32 %26, %28
%30 = load i32, ptr %6, align 4
%31 = call i32 @pow(i32 noundef 5, i32 noundef %30)
%32 = mul nsw i32 %29, %31
%33 = load i32, ptr %3, align 4
%34 = icmp sle i32 %32, %33
br i1 %34, label %.lr.ph, label %51
.lr.ph: ; preds = %24
br label %35
35: ; preds = %.lr.ph, %38
%36 = load i32, ptr %7, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %7, align 4
br label %38
38: ; preds = %35
%39 = load i32, ptr %6, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %6, align 4
%41 = load i32, ptr %4, align 4
%42 = call i32 @pow(i32 noundef 2, i32 noundef %41)
%43 = load i32, ptr %5, align 4
%44 = call i32 @pow(i32 noundef 3, i32 noundef %43)
%45 = mul nsw i32 %42, %44
%46 = load i32, ptr %6, align 4
%47 = call i32 @pow(i32 noundef 5, i32 noundef %46)
%48 = mul nsw i32 %45, %47
%49 = load i32, ptr %3, align 4
%50 = icmp sle i32 %48, %49
br i1 %50, label %35, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %38
br label %51
51: ; preds = %._crit_edge, %24
br label %52
52: ; preds = %51
%53 = load i32, ptr %5, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %5, align 4
%55 = load i32, ptr %4, align 4
%56 = call i32 @pow(i32 noundef 2, i32 noundef %55)
%57 = load i32, ptr %5, align 4
%58 = call i32 @pow(i32 noundef 3, i32 noundef %57)
%59 = mul nsw i32 %56, %58
%60 = load i32, ptr %3, align 4
%61 = icmp sle i32 %59, %60
br i1 %61, label %24, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %52
br label %62
62: ; preds = %._crit_edge3, %16
br label %63
63: ; preds = %62
%64 = load i32, ptr %4, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %4, align 4
%66 = load i32, ptr %4, align 4
%67 = call i32 @pow(i32 noundef 2, i32 noundef %66)
%68 = load i32, ptr %3, align 4
%69 = icmp sle i32 %67, %68
br i1 %69, label %16, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %63
br label %70
70: ; preds = %._crit_edge6, %11
%71 = load i32, ptr %7, align 4
store i32 %71, ptr %2, align 4
br label %72
72: ; preds = %70, %10
%73 = load i32, ptr %2, align 4
ret i32 %73
}
declare i32 @pow(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/tmphuvin2kc.c'
source_filename = "/tmp/tmphuvin2kc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"param is %ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @foo(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = ptrtoint ptr %4 to i64
store i64 %5, ptr %3, align 8
%6 = load i64, ptr %3, align 8
%7 = call i32 @printf(ptr noundef @.str, i64 noundef %6)
%8 = load i64, ptr %3, align 8
%9 = add nsw i64 %8, 1
store i64 %9, ptr %3, align 8
%10 = inttoptr i64 %9 to ptr
ret ptr %10
}
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphuvin2kc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"param is %ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @foo(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = ptrtoint ptr %4 to i64
store i64 %5, ptr %3, align 8
%6 = load i64, ptr %3, align 8
%7 = call i32 @printf(ptr noundef @.str, i64 noundef %6)
%8 = load i64, ptr %3, align 8
%9 = add nsw i64 %8, 1
store i64 %9, ptr %3, align 8
%10 = inttoptr i64 %9 to ptr
ret ptr %10
}
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpo7_t4pp7.c'
source_filename = "/tmp/tmpo7_t4pp7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dstrsplitc(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca [8 x i8], align 1
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
call void @llvm.memset.p0.i64(ptr align 1 %5, i8 0, i64 8, i1 false)
%6 = getelementptr inbounds [8 x i8], ptr %5, i64 0, i64 0
%7 = load i64, ptr %4, align 8
%8 = call i32 @utf8_encode(ptr noundef %6, i32 noundef 8, i64 noundef %7)
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds [8 x i8], ptr %5, i64 0, i64 0
%11 = call ptr @dstrsplit(ptr noundef %9, ptr noundef %10)
ret ptr %11
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @utf8_encode(ptr noundef, i32 noundef, i64 noundef) #2
declare ptr @dstrsplit(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: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo7_t4pp7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dstrsplitc(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca [8 x i8], align 1
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
call void @llvm.memset.p0.i64(ptr align 1 %5, i8 0, i64 8, i1 false)
%6 = getelementptr inbounds [8 x i8], ptr %5, i64 0, i64 0
%7 = load i64, ptr %4, align 8
%8 = call i32 @utf8_encode(ptr noundef %6, i32 noundef 8, i64 noundef %7)
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds [8 x i8], ptr %5, i64 0, i64 0
%11 = call ptr @dstrsplit(ptr noundef %9, ptr noundef %10)
ret ptr %11
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @utf8_encode(ptr noundef, i32 noundef, i64 noundef) #2
declare ptr @dstrsplit(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: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphv527cha.c'
source_filename = "/tmp/tmphv527cha.c"
target datalayout = "e-m:e-p270: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/tmphv527cha.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_9bsslh6.c'
source_filename = "/tmp/tmp_9bsslh6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [57 x i8] c"sub (test15f) C903:(%d):(5):Call by value from literal\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @STEST903(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_9bsslh6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [57 x i8] c"sub (test15f) C903:(%d):(5):Call by value from literal\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @STEST903(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6bu_1a_p.c'
source_filename = "/tmp/tmp6bu_1a_p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"/dev/CSI_dev\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @close_csi_device(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 @close(i32 noundef %3)
%5 = call i32 @remove(ptr noundef @.str)
ret void
}
declare i32 @close(i32 noundef) #1
declare i32 @remove(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6bu_1a_p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"/dev/CSI_dev\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @close_csi_device(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 @close(i32 noundef %3)
%5 = call i32 @remove(ptr noundef @.str)
ret void
}
declare i32 @close(i32 noundef) #1
declare i32 @remove(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpn8wevhn2.c'
source_filename = "/tmp/tmpn8wevhn2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @insertsort(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 1, ptr %5, align 4
br label %7
7: ; preds = %46, %2
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = sub nsw i32 %9, 1
%11 = icmp sle i32 %8, %10
br i1 %11, label %12, label %49
12: ; preds = %7
%13 = load i32, ptr %5, align 4
store i32 %13, ptr %6, align 4
br label %14
14: ; preds = %32, %12
%15 = load i32, ptr %6, align 4
%16 = icmp sgt i32 %15, 0
br i1 %16, label %17, label %30
17: ; preds = %14
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %6, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i32, ptr %18, i64 %20
%22 = load i32, ptr %21, align 4
%23 = load ptr, ptr %3, align 8
%24 = load i32, ptr %6, align 4
%25 = sub nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i32, ptr %23, i64 %26
%28 = load i32, ptr %27, align 4
%29 = icmp slt i32 %22, %28
br label %30
30: ; preds = %17, %14
%31 = phi i1 [ false, %14 ], [ %29, %17 ]
br i1 %31, label %32, label %45
32: ; preds = %30
%33 = load ptr, ptr %3, align 8
%34 = load i32, ptr %6, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i32, ptr %33, i64 %35
%37 = load ptr, ptr %3, align 8
%38 = load i32, ptr %6, align 4
%39 = sub nsw i32 %38, 1
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, ptr %37, i64 %40
%42 = call i32 @swap(ptr noundef %36, ptr noundef %41)
%43 = load i32, ptr %6, align 4
%44 = add nsw i32 %43, -1
store i32 %44, ptr %6, align 4
br label %14, !llvm.loop !6
45: ; preds = %30
br label %46
46: ; preds = %45
%47 = load i32, ptr %5, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %5, align 4
br label %7, !llvm.loop !8
49: ; preds = %7
ret void
}
declare i32 @swap(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn8wevhn2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @insertsort(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 1, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = sub nsw i32 %8, 1
%10 = icmp sle i32 %7, %9
br i1 %10, label %.lr.ph, label %52
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %45
%12 = load i32, ptr %5, align 4
store i32 %12, ptr %6, align 4
br label %13
13: ; preds = %31, %11
%14 = load i32, ptr %6, align 4
%15 = icmp sgt i32 %14, 0
br i1 %15, label %16, label %29
16: ; preds = %13
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %6, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %17, i64 %19
%21 = load i32, ptr %20, align 4
%22 = load ptr, ptr %3, align 8
%23 = load i32, ptr %6, align 4
%24 = sub nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %22, i64 %25
%27 = load i32, ptr %26, align 4
%28 = icmp slt i32 %21, %27
br label %29
29: ; preds = %16, %13
%30 = phi i1 [ false, %13 ], [ %28, %16 ]
br i1 %30, label %31, label %44
31: ; preds = %29
%32 = load ptr, ptr %3, align 8
%33 = load i32, ptr %6, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i32, ptr %32, i64 %34
%36 = load ptr, ptr %3, align 8
%37 = load i32, ptr %6, align 4
%38 = sub nsw i32 %37, 1
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i32, ptr %36, i64 %39
%41 = call i32 @swap(ptr noundef %35, ptr noundef %40)
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, -1
store i32 %43, ptr %6, align 4
br label %13, !llvm.loop !6
44: ; preds = %29
br label %45
45: ; preds = %44
%46 = load i32, ptr %5, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %5, align 4
%48 = load i32, ptr %5, align 4
%49 = load i32, ptr %4, align 4
%50 = sub nsw i32 %49, 1
%51 = icmp sle i32 %48, %50
br i1 %51, label %11, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %45
br label %52
52: ; preds = %._crit_edge, %2
ret void
}
declare i32 @swap(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp73p8ubc4.c'
source_filename = "/tmp/tmp73p8ubc4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [8 x i8] c"YES %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"NO\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i32 0, ptr %5, align 4
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
br label %10
10: ; preds = %94, %0
%11 = load i32, ptr %2, align 4
%12 = add nsw i32 %11, -1
store i32 %12, ptr %2, align 4
%13 = icmp ne i32 %11, 0
br i1 %13, label %14, label %96
14: ; preds = %10
store i32 0, ptr %5, align 4
%15 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%16 = load i32, ptr %3, align 4
%17 = zext i32 %16 to i64
%18 = call ptr @llvm.stacksave()
store ptr %18, ptr %7, align 8
%19 = alloca i32, i64 %17, align 16
store i64 %17, ptr %8, align 8
store i32 0, ptr %4, align 4
br label %20
20: ; preds = %29, %14
%21 = load i32, ptr %4, align 4
%22 = load i32, ptr %3, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %32
24: ; preds = %20
%25 = load i32, ptr %4, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i32, ptr %19, i64 %26
%28 = call i32 @scanf(ptr noundef @.str, ptr noundef %27)
br label %29
29: ; preds = %24
%30 = load i32, ptr %4, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %4, align 4
br label %20, !llvm.loop !6
32: ; preds = %20
%33 = getelementptr inbounds i32, ptr %19, i64 0
%34 = load i32, ptr %33, align 16
store i32 %34, ptr %6, align 4
store i32 1, ptr %5, align 4
store i32 1, ptr %4, align 4
br label %35
35: ; preds = %62, %32
%36 = load i32, ptr %4, align 4
%37 = load i32, ptr %3, align 4
%38 = icmp slt i32 %36, %37
br i1 %38, label %39, label %65
39: ; preds = %35
%40 = load i32, ptr %4, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i32, ptr %19, i64 %41
%43 = load i32, ptr %42, align 4
%44 = load i32, ptr %6, align 4
%45 = icmp eq i32 %43, %44
br i1 %45, label %46, label %49
46: ; preds = %39
%47 = load i32, ptr %5, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %5, align 4
br label %61
49: ; preds = %39
%50 = load i32, ptr %5, align 4
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %57
52: ; preds = %49
%53 = load i32, ptr %4, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i32, ptr %19, i64 %54
%56 = load i32, ptr %55, align 4
store i32 %56, ptr %6, align 4
store i32 1, ptr %5, align 4
br label %60
57: ; preds = %49
%58 = load i32, ptr %5, align 4
%59 = add nsw i32 %58, -1
store i32 %59, ptr %5, align 4
br label %60
60: ; preds = %57, %52
br label %61
61: ; preds = %60, %46
br label %62
62: ; preds = %61
%63 = load i32, ptr %4, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %4, align 4
br label %35, !llvm.loop !8
65: ; preds = %35
store i32 0, ptr %5, align 4
store i32 0, ptr %4, align 4
br label %66
66: ; preds = %81, %65
%67 = load i32, ptr %4, align 4
%68 = load i32, ptr %3, align 4
%69 = icmp slt i32 %67, %68
br i1 %69, label %70, label %84
70: ; preds = %66
%71 = load i32, ptr %4, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i32, ptr %19, i64 %72
%74 = load i32, ptr %73, align 4
%75 = load i32, ptr %6, align 4
%76 = icmp eq i32 %74, %75
br i1 %76, label %77, label %80
77: ; preds = %70
%78 = load i32, ptr %5, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %5, align 4
br label %80
80: ; preds = %77, %70
br label %81
81: ; preds = %80
%82 = load i32, ptr %4, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %4, align 4
br label %66, !llvm.loop !9
84: ; preds = %66
%85 = load i32, ptr %5, align 4
%86 = load i32, ptr %3, align 4
%87 = sdiv i32 %86, 2
%88 = icmp sgt i32 %85, %87
br i1 %88, label %89, label %92
89: ; preds = %84
%90 = load i32, ptr %6, align 4
%91 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %90)
br label %94
92: ; preds = %84
%93 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %94
94: ; preds = %92, %89
%95 = load ptr, ptr %7, align 8
call void @llvm.stackrestore(ptr %95)
br label %10, !llvm.loop !10
96: ; preds = %10
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @printf(ptr 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"}
!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/tmp73p8ubc4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [8 x i8] c"YES %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"NO\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i32 0, ptr %5, align 4
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%10 = load i32, ptr %2, align 4
%11 = add nsw i32 %10, -1
store i32 %11, ptr %2, align 4
%12 = icmp ne i32 %10, 0
br i1 %12, label %.lr.ph8, label %104
.lr.ph8: ; preds = %0
br label %13
13: ; preds = %.lr.ph8, %99
store i32 0, ptr %5, align 4
%14 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%15 = load i32, ptr %3, align 4
%16 = zext i32 %15 to i64
%17 = call ptr @llvm.stacksave()
store ptr %17, ptr %7, align 8
%18 = alloca i32, i64 %16, align 16
store i64 %16, ptr %8, align 8
store i32 0, ptr %4, align 4
%19 = load i32, ptr %4, align 4
%20 = load i32, ptr %3, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %.lr.ph, label %33
.lr.ph: ; preds = %13
br label %22
22: ; preds = %.lr.ph, %27
%23 = load i32, ptr %4, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i32, ptr %18, i64 %24
%26 = call i32 @scanf(ptr noundef @.str, ptr noundef %25)
br label %27
27: ; preds = %22
%28 = load i32, ptr %4, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %4, align 4
%30 = load i32, ptr %4, align 4
%31 = load i32, ptr %3, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %33
33: ; preds = %._crit_edge, %13
%34 = getelementptr inbounds i32, ptr %18, i64 0
%35 = load i32, ptr %34, align 16
store i32 %35, ptr %6, align 4
store i32 1, ptr %5, align 4
store i32 1, ptr %4, align 4
%36 = load i32, ptr %4, align 4
%37 = load i32, ptr %3, align 4
%38 = icmp slt i32 %36, %37
br i1 %38, label %.lr.ph2, label %68
.lr.ph2: ; preds = %33
br label %39
39: ; preds = %.lr.ph2, %62
%40 = load i32, ptr %4, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i32, ptr %18, i64 %41
%43 = load i32, ptr %42, align 4
%44 = load i32, ptr %6, align 4
%45 = icmp eq i32 %43, %44
br i1 %45, label %46, label %49
46: ; preds = %39
%47 = load i32, ptr %5, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %5, align 4
br label %61
49: ; preds = %39
%50 = load i32, ptr %5, align 4
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %57
52: ; preds = %49
%53 = load i32, ptr %4, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i32, ptr %18, i64 %54
%56 = load i32, ptr %55, align 4
store i32 %56, ptr %6, align 4
store i32 1, ptr %5, align 4
br label %60
57: ; preds = %49
%58 = load i32, ptr %5, align 4
%59 = add nsw i32 %58, -1
store i32 %59, ptr %5, align 4
br label %60
60: ; preds = %57, %52
br label %61
61: ; preds = %60, %46
br label %62
62: ; preds = %61
%63 = load i32, ptr %4, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %4, align 4
%65 = load i32, ptr %4, align 4
%66 = load i32, ptr %3, align 4
%67 = icmp slt i32 %65, %66
br i1 %67, label %39, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %62
br label %68
68: ; preds = %._crit_edge3, %33
store i32 0, ptr %5, align 4
store i32 0, ptr %4, align 4
%69 = load i32, ptr %4, align 4
%70 = load i32, ptr %3, align 4
%71 = icmp slt i32 %69, %70
br i1 %71, label %.lr.ph5, label %89
.lr.ph5: ; preds = %68
br label %72
72: ; preds = %.lr.ph5, %83
%73 = load i32, ptr %4, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i32, ptr %18, i64 %74
%76 = load i32, ptr %75, align 4
%77 = load i32, ptr %6, align 4
%78 = icmp eq i32 %76, %77
br i1 %78, label %79, label %82
79: ; preds = %72
%80 = load i32, ptr %5, align 4
%81 = add nsw i32 %80, 1
store i32 %81, ptr %5, align 4
br label %82
82: ; preds = %79, %72
br label %83
83: ; preds = %82
%84 = load i32, ptr %4, align 4
%85 = add nsw i32 %84, 1
store i32 %85, ptr %4, align 4
%86 = load i32, ptr %4, align 4
%87 = load i32, ptr %3, align 4
%88 = icmp slt i32 %86, %87
br i1 %88, label %72, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %83
br label %89
89: ; preds = %._crit_edge6, %68
%90 = load i32, ptr %5, align 4
%91 = load i32, ptr %3, align 4
%92 = sdiv i32 %91, 2
%93 = icmp sgt i32 %90, %92
br i1 %93, label %94, label %97
94: ; preds = %89
%95 = load i32, ptr %6, align 4
%96 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %95)
br label %99
97: ; preds = %89
%98 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %99
99: ; preds = %97, %94
%100 = load ptr, ptr %7, align 8
call void @llvm.stackrestore(ptr %100)
%101 = load i32, ptr %2, align 4
%102 = add nsw i32 %101, -1
store i32 %102, ptr %2, align 4
%103 = icmp ne i32 %101, 0
br i1 %103, label %13, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %99
br label %104
104: ; preds = %._crit_edge9, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @printf(ptr 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpjmh5wrtu.c'
source_filename = "/tmp/tmpjmh5wrtu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isprint.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isprint should be 1 for h\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isprint_0x68() #0 {
%1 = call i32 @isprint(i32 noundef 104) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 525, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isprint(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjmh5wrtu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isprint.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isprint should be 1 for h\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isprint_0x68() #0 {
%1 = call i32 @isprint(i32 noundef 104) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 525, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isprint(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6gi2kvff.c'
source_filename = "/tmp/tmp6gi2kvff.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%c: %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"none\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @show(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 1, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %9
9: ; preds = %31, %3
%10 = load i32, ptr %8, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %34
13: ; preds = %9
%14 = load ptr, ptr %4, align 8
%15 = load i32, ptr %8, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i32, ptr %14, i64 %16
%18 = load i32, ptr %17, align 4
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %30
20: ; preds = %13
store i32 0, ptr %7, align 4
%21 = load i32, ptr %8, align 4
%22 = load i32, ptr %6, align 4
%23 = add nsw i32 %21, %22
%24 = load ptr, ptr %4, align 8
%25 = load i32, ptr %8, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i32, ptr %24, i64 %26
%28 = load i32, ptr %27, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %23, i32 noundef %28)
br label %30
30: ; preds = %20, %13
br label %31
31: ; preds = %30
%32 = load i32, ptr %8, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %8, align 4
br label %9, !llvm.loop !6
34: ; preds = %9
%35 = load i32, ptr %7, align 4
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %34
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %39
39: ; preds = %37, %34
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6gi2kvff.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%c: %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"none\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @show(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 1, ptr %7, align 4
store i32 0, ptr %8, align 4
%9 = load i32, ptr %8, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %36
.lr.ph: ; preds = %3
br label %12
12: ; preds = %.lr.ph, %30
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %8, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i32, ptr %13, i64 %15
%17 = load i32, ptr %16, align 4
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %29
19: ; preds = %12
store i32 0, ptr %7, align 4
%20 = load i32, ptr %8, align 4
%21 = load i32, ptr %6, align 4
%22 = add nsw i32 %20, %21
%23 = load ptr, ptr %4, align 8
%24 = load i32, ptr %8, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %23, i64 %25
%27 = load i32, ptr %26, align 4
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %22, i32 noundef %27)
br label %29
29: ; preds = %19, %12
br label %30
30: ; preds = %29
%31 = load i32, ptr %8, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %8, align 4
%33 = load i32, ptr %8, align 4
%34 = load i32, ptr %5, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %36
36: ; preds = %._crit_edge, %3
%37 = load i32, ptr %7, align 4
%38 = icmp ne i32 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %36
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %41
41: ; preds = %39, %36
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpbddcqui6.c'
source_filename = "/tmp/tmpbddcqui6.c"
target datalayout = "e-m:e-p270: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/tmpbddcqui6.c"
target datalayout = "e-m:e-p270: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/tmpvbrca4vo.c'
source_filename = "/tmp/tmpvbrca4vo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"Arithmetic Progressions\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"\0AMenu: \0A\00", align 1
@.str.2 = private unnamed_addr constant [203 x i8] c"\0A [Operation] [Code]\0A\0A Find nth term (General term) 1\0A Find sum of 'n' terms (Sn) 2\0A Find 'a' (first term) 3\0A Enter your choice: \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%i\00", align 1
@.str.4 = private unnamed_addr constant [61 x i8] c"\0A Invalid Choice!\0A Please enter your choice properly again: \00", align 1
@.str.5 = private unnamed_addr constant [72 x i8] c"\0A\0A [*** Finding nth term (General term) ***]\0A\0A Enter the value of 'a': \00", align 1
@.str.6 = private unnamed_addr constant [27 x i8] c"\0A Enter the value of 'n': \00", align 1
@.str.7 = private unnamed_addr constant [27 x i8] c"\0A Enter the value of 'd': \00", align 1
@.str.8 = private unnamed_addr constant [21 x i8] c"\0A The nth term is %i\00", align 1
@.str.9 = private unnamed_addr constant [70 x i8] c"\0A\0A [*** Finding sum of 'n' terms (Sn) ***]\0A\0A Enter the value of 'a': \00", align 1
@.str.10 = private unnamed_addr constant [31 x i8] c"\0A The sum of 'n' terms is: %i \00", align 1
@.str.11 = private unnamed_addr constant [70 x i8] c"\0A\0A [*** Finding 'a' (first term) ***]\0A\0A Enter the value of nth term: \00", align 1
@.str.12 = private unnamed_addr constant [27 x i8] c"\0A First term ('a') is: %i \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 0, ptr %1, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%18 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %2)
br label %19
19: ; preds = %27, %0
%20 = load i32, ptr %2, align 4
%21 = icmp slt i32 %20, 1
br i1 %21, label %25, label %22
22: ; preds = %19
%23 = load i32, ptr %2, align 4
%24 = icmp sgt i32 %23, 3
br label %25
25: ; preds = %22, %19
%26 = phi i1 [ true, %19 ], [ %24, %22 ]
br i1 %26, label %27, label %30
27: ; preds = %25
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%29 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %2)
br label %19, !llvm.loop !6
30: ; preds = %25
%31 = load i32, ptr %2, align 4
switch i32 %31, label %81 [
i32 1, label %32
i32 2, label %47
i32 3, label %66
]
32: ; preds = %30
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%34 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %3)
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%36 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %4)
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%38 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %5)
%39 = load i32, ptr %3, align 4
%40 = load i32, ptr %4, align 4
%41 = sub nsw i32 %40, 1
%42 = load i32, ptr %5, align 4
%43 = mul nsw i32 %41, %42
%44 = add nsw i32 %39, %43
store i32 %44, ptr %6, align 4
%45 = load i32, ptr %6, align 4
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %45)
br label %81
47: ; preds = %30
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%49 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %7)
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%51 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %8)
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%53 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %9)
%54 = load i32, ptr %8, align 4
%55 = sdiv i32 %54, 2
%56 = load i32, ptr %7, align 4
%57 = mul nsw i32 2, %56
%58 = load i32, ptr %8, align 4
%59 = sub nsw i32 %58, 1
%60 = load i32, ptr %9, align 4
%61 = mul nsw i32 %59, %60
%62 = add nsw i32 %57, %61
%63 = mul nsw i32 %55, %62
store i32 %63, ptr %10, align 4
%64 = load i32, ptr %10, align 4
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %64)
br label %81
66: ; preds = %30
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%68 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %11)
%69 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%70 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %12)
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%72 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %13)
%73 = load i32, ptr %11, align 4
%74 = load i32, ptr %12, align 4
%75 = sub nsw i32 %74, 1
%76 = load i32, ptr %13, align 4
%77 = mul nsw i32 %75, %76
%78 = sub nsw i32 %73, %77
store i32 %78, ptr %14, align 4
%79 = load i32, ptr %14, align 4
%80 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %79)
br label %81
81: ; preds = %30, %66, %47, %32
%82 = call i32 (...) @getch()
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @getch(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpvbrca4vo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"Arithmetic Progressions\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"\0AMenu: \0A\00", align 1
@.str.2 = private unnamed_addr constant [203 x i8] c"\0A [Operation] [Code]\0A\0A Find nth term (General term) 1\0A Find sum of 'n' terms (Sn) 2\0A Find 'a' (first term) 3\0A Enter your choice: \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%i\00", align 1
@.str.4 = private unnamed_addr constant [61 x i8] c"\0A Invalid Choice!\0A Please enter your choice properly again: \00", align 1
@.str.5 = private unnamed_addr constant [72 x i8] c"\0A\0A [*** Finding nth term (General term) ***]\0A\0A Enter the value of 'a': \00", align 1
@.str.6 = private unnamed_addr constant [27 x i8] c"\0A Enter the value of 'n': \00", align 1
@.str.7 = private unnamed_addr constant [27 x i8] c"\0A Enter the value of 'd': \00", align 1
@.str.8 = private unnamed_addr constant [21 x i8] c"\0A The nth term is %i\00", align 1
@.str.9 = private unnamed_addr constant [70 x i8] c"\0A\0A [*** Finding sum of 'n' terms (Sn) ***]\0A\0A Enter the value of 'a': \00", align 1
@.str.10 = private unnamed_addr constant [31 x i8] c"\0A The sum of 'n' terms is: %i \00", align 1
@.str.11 = private unnamed_addr constant [70 x i8] c"\0A\0A [*** Finding 'a' (first term) ***]\0A\0A Enter the value of nth term: \00", align 1
@.str.12 = private unnamed_addr constant [27 x i8] c"\0A First term ('a') is: %i \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 0, ptr %1, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%18 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %2)
br label %19
19: ; preds = %27, %0
%20 = load i32, ptr %2, align 4
%21 = icmp slt i32 %20, 1
br i1 %21, label %25, label %22
22: ; preds = %19
%23 = load i32, ptr %2, align 4
%24 = icmp sgt i32 %23, 3
br label %25
25: ; preds = %22, %19
%26 = phi i1 [ true, %19 ], [ %24, %22 ]
br i1 %26, label %27, label %30
27: ; preds = %25
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%29 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %2)
br label %19, !llvm.loop !6
30: ; preds = %25
%31 = load i32, ptr %2, align 4
switch i32 %31, label %81 [
i32 1, label %32
i32 2, label %47
i32 3, label %66
]
32: ; preds = %30
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%34 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %3)
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%36 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %4)
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%38 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %5)
%39 = load i32, ptr %3, align 4
%40 = load i32, ptr %4, align 4
%41 = sub nsw i32 %40, 1
%42 = load i32, ptr %5, align 4
%43 = mul nsw i32 %41, %42
%44 = add nsw i32 %39, %43
store i32 %44, ptr %6, align 4
%45 = load i32, ptr %6, align 4
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %45)
br label %81
47: ; preds = %30
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%49 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %7)
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%51 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %8)
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%53 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %9)
%54 = load i32, ptr %8, align 4
%55 = sdiv i32 %54, 2
%56 = load i32, ptr %7, align 4
%57 = mul nsw i32 2, %56
%58 = load i32, ptr %8, align 4
%59 = sub nsw i32 %58, 1
%60 = load i32, ptr %9, align 4
%61 = mul nsw i32 %59, %60
%62 = add nsw i32 %57, %61
%63 = mul nsw i32 %55, %62
store i32 %63, ptr %10, align 4
%64 = load i32, ptr %10, align 4
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %64)
br label %81
66: ; preds = %30
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%68 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %11)
%69 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%70 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %12)
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%72 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %13)
%73 = load i32, ptr %11, align 4
%74 = load i32, ptr %12, align 4
%75 = sub nsw i32 %74, 1
%76 = load i32, ptr %13, align 4
%77 = mul nsw i32 %75, %76
%78 = sub nsw i32 %73, %77
store i32 %78, ptr %14, align 4
%79 = load i32, ptr %14, align 4
%80 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %79)
br label %81
81: ; preds = %66, %47, %32, %30
%82 = call i32 (...) @getch()
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @getch(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpxl_vzsgd.c'
source_filename = "/tmp/tmpxl_vzsgd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @end_of_sent(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i8, align 1
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @strlen(ptr noundef %6)
store i32 %7, ptr %4, align 4
%8 = load ptr, ptr %3, align 8
%9 = load i32, ptr %4, align 4
%10 = sub nsw i32 %9, 1
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, ptr %8, i64 %11
%13 = load i8, ptr %12, align 1
store i8 %13, ptr %5, align 1
%14 = load i8, ptr %5, align 1
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 46
br i1 %16, label %25, label %17
17: ; preds = %1
%18 = load i8, ptr %5, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 63
br i1 %20, label %25, label %21
21: ; preds = %17
%22 = load i8, ptr %5, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 33
br i1 %24, label %25, label %26
25: ; preds = %21, %17, %1
store i32 1, ptr %2, align 4
br label %27
26: ; preds = %21
store i32 0, ptr %2, align 4
br label %27
27: ; preds = %26, %25
%28 = load i32, ptr %2, align 4
ret i32 %28
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxl_vzsgd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @end_of_sent(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i8, align 1
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @strlen(ptr noundef %6)
store i32 %7, ptr %4, align 4
%8 = load ptr, ptr %3, align 8
%9 = load i32, ptr %4, align 4
%10 = sub nsw i32 %9, 1
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, ptr %8, i64 %11
%13 = load i8, ptr %12, align 1
store i8 %13, ptr %5, align 1
%14 = load i8, ptr %5, align 1
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 46
br i1 %16, label %25, label %17
17: ; preds = %1
%18 = load i8, ptr %5, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 63
br i1 %20, label %25, label %21
21: ; preds = %17
%22 = load i8, ptr %5, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 33
br i1 %24, label %25, label %26
25: ; preds = %21, %17, %1
store i32 1, ptr %2, align 4
br label %27
26: ; preds = %21
store i32 0, ptr %2, align 4
br label %27
27: ; preds = %26, %25
%28 = load i32, ptr %2, align 4
ret i32 %28
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjc0z7eb8.c'
source_filename = "/tmp/tmpjc0z7eb8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vpx_memory_tracker_add(i64 noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i64 %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%11 = load i64, ptr %6, align 8
%12 = load i32, ptr %7, align 4
%13 = load ptr, ptr %8, align 8
%14 = load i32, ptr %9, align 4
%15 = load i32, ptr %10, align 4
%16 = call i32 @memory_tracker_add(i64 noundef %11, i32 noundef %12, ptr noundef %13, i32 noundef %14, i32 noundef %15)
ret void
}
declare i32 @memory_tracker_add(i64 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjc0z7eb8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vpx_memory_tracker_add(i64 noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i64 %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%11 = load i64, ptr %6, align 8
%12 = load i32, ptr %7, align 4
%13 = load ptr, ptr %8, align 8
%14 = load i32, ptr %9, align 4
%15 = load i32, ptr %10, align 4
%16 = call i32 @memory_tracker_add(i64 noundef %11, i32 noundef %12, ptr noundef %13, i32 noundef %14, i32 noundef %15)
ret void
}
declare i32 @memory_tracker_add(i64 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwfk6wwku.c'
source_filename = "/tmp/tmpwfk6wwku.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @example7() #0 {
%1 = alloca [42 x i32], align 16
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %2, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %24
6: ; preds = %0
br label %7
7: ; preds = %10, %6
%8 = load i32, ptr %2, align 4
%9 = icmp slt i32 %8, 41
br i1 %9, label %10, label %23
10: ; preds = %7
%11 = load i32, ptr %2, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [42 x i32], ptr %1, i64 0, i64 %12
store i32 0, ptr %13, align 4
%14 = load i32, ptr %2, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [42 x i32], ptr %1, i64 0, i64 %15
%17 = load i32, ptr %16, align 4
%18 = icmp eq i32 %17, 0
%19 = zext i1 %18 to i32
%20 = call i32 @assert(i32 noundef %19)
%21 = load i32, ptr %2, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %2, align 4
br label %7, !llvm.loop !6
23: ; preds = %7
br label %24
24: ; preds = %23, %0
%25 = getelementptr inbounds [42 x i32], ptr %1, i64 0, i64 0
%26 = load i32, ptr %25, align 16
%27 = icmp eq i32 %26, 0
%28 = zext i1 %27 to i32
%29 = call i32 @assert(i32 noundef %28)
%30 = getelementptr inbounds [42 x i32], ptr %1, i64 0, i64 7
%31 = load i32, ptr %30, align 4
%32 = icmp eq i32 %31, 0
%33 = zext i1 %32 to i32
%34 = call i32 @assert(i32 noundef %33)
%35 = getelementptr inbounds [42 x i32], ptr %1, i64 0, i64 41
%36 = load i32, ptr %35, align 4
%37 = icmp eq i32 %36, 0
%38 = zext i1 %37 to i32
%39 = call i32 @assert(i32 noundef %38)
%40 = load i32, ptr %3, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [42 x i32], ptr %1, i64 0, i64 %41
%43 = load i32, ptr %42, align 4
%44 = icmp eq i32 %43, 0
%45 = zext i1 %44 to i32
%46 = call i32 @assert(i32 noundef %45)
ret void
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwfk6wwku.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @example7() #0 {
%1 = alloca [42 x i32], align 16
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %2, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %25
6: ; preds = %0
%7 = load i32, ptr %2, align 4
%8 = icmp slt i32 %7, 41
br i1 %8, label %.lr.ph, label %24
.lr.ph: ; preds = %6
br label %9
9: ; preds = %.lr.ph, %9
%10 = load i32, ptr %2, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [42 x i32], ptr %1, i64 0, i64 %11
store i32 0, ptr %12, align 4
%13 = load i32, ptr %2, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [42 x i32], ptr %1, i64 0, i64 %14
%16 = load i32, ptr %15, align 4
%17 = icmp eq i32 %16, 0
%18 = zext i1 %17 to i32
%19 = call i32 @assert(i32 noundef %18)
%20 = load i32, ptr %2, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %2, align 4
%22 = load i32, ptr %2, align 4
%23 = icmp slt i32 %22, 41
br i1 %23, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %24
24: ; preds = %._crit_edge, %6
br label %25
25: ; preds = %24, %0
%26 = getelementptr inbounds [42 x i32], ptr %1, i64 0, i64 0
%27 = load i32, ptr %26, align 16
%28 = icmp eq i32 %27, 0
%29 = zext i1 %28 to i32
%30 = call i32 @assert(i32 noundef %29)
%31 = getelementptr inbounds [42 x i32], ptr %1, i64 0, i64 7
%32 = load i32, ptr %31, align 4
%33 = icmp eq i32 %32, 0
%34 = zext i1 %33 to i32
%35 = call i32 @assert(i32 noundef %34)
%36 = getelementptr inbounds [42 x i32], ptr %1, i64 0, i64 41
%37 = load i32, ptr %36, align 4
%38 = icmp eq i32 %37, 0
%39 = zext i1 %38 to i32
%40 = call i32 @assert(i32 noundef %39)
%41 = load i32, ptr %3, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [42 x i32], ptr %1, i64 0, i64 %42
%44 = load i32, ptr %43, align 4
%45 = icmp eq i32 %44, 0
%46 = zext i1 %45 to i32
%47 = call i32 @assert(i32 noundef %46)
ret void
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpe0ouqhke.c'
source_filename = "/tmp/tmpe0ouqhke.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"# c::cephes::%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"betaincinv\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"ok %d benchmark finished\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @time(ptr noundef null)
%5 = call i32 @srand(i32 noundef %4)
%6 = call i32 (...) @print_version()
store i32 0, ptr %3, align 4
br label %7
7: ; preds = %18, %0
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 3
br i1 %9, label %10, label %21
10: ; preds = %7
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%12 = call double (...) @benchmark()
store double %12, ptr %2, align 8
%13 = load double, ptr %2, align 8
%14 = call i32 @print_results(double noundef %13)
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %16)
br label %18
18: ; preds = %10
%19 = load i32, ptr %3, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %3, align 4
br label %7, !llvm.loop !6
21: ; preds = %7
%22 = call i32 @print_summary(i32 noundef 3, i32 noundef 3)
%23 = load i32, ptr %1, align 4
ret i32 %23
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @print_version(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @benchmark(...) #1
declare i32 @print_results(double noundef) #1
declare i32 @print_summary(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe0ouqhke.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"# c::cephes::%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"betaincinv\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"ok %d benchmark finished\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @time(ptr noundef null)
%5 = call i32 @srand(i32 noundef %4)
%6 = call i32 (...) @print_version()
store i32 0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 3
br i1 %8, label %.lr.ph, label %22
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %17
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%11 = call double (...) @benchmark()
store double %11, ptr %2, align 8
%12 = load double, ptr %2, align 8
%13 = call i32 @print_results(double noundef %12)
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, 1
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %15)
br label %17
17: ; preds = %9
%18 = load i32, ptr %3, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %3, align 4
%20 = load i32, ptr %3, align 4
%21 = icmp slt i32 %20, 3
br i1 %21, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %22
22: ; preds = %._crit_edge, %0
%23 = call i32 @print_summary(i32 noundef 3, i32 noundef 3)
%24 = load i32, ptr %1, align 4
ret i32 %24
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @print_version(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @benchmark(...) #1
declare i32 @print_results(double noundef) #1
declare i32 @print_summary(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpaoaxof5b.c'
source_filename = "/tmp/tmpaoaxof5b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c" Hello from Blue10: one = %d, two = %d\0A \00", align 1
@.str.1 = private unnamed_addr constant [46 x i8] c" three = %d, four = %d, five = %d, six = %d\0A \00", align 1
@.str.2 = private unnamed_addr constant [48 x i8] c" seven = %d, eight = %d, nine = %d, zero = %d\0A \00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c" sum = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Blue10(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9) #0 {
%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
%21 = alloca i32, align 4
store i32 %0, ptr %11, align 4
store i32 %1, ptr %12, align 4
store i32 %2, ptr %13, align 4
store i32 %3, ptr %14, align 4
store i32 %4, ptr %15, align 4
store i32 %5, ptr %16, align 4
store i32 %6, ptr %17, align 4
store i32 %7, ptr %18, align 4
store i32 %8, ptr %19, align 4
store i32 %9, ptr %20, align 4
store i32 0, ptr %21, align 4
%22 = load i32, ptr %11, align 4
%23 = load i32, ptr %12, align 4
%24 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %22, i32 noundef %23)
%25 = load i32, ptr %13, align 4
%26 = load i32, ptr %14, align 4
%27 = load i32, ptr %15, align 4
%28 = load i32, ptr %16, align 4
%29 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %25, i32 noundef %26, i32 noundef %27, i32 noundef %28)
%30 = load i32, ptr %17, align 4
%31 = load i32, ptr %18, align 4
%32 = load i32, ptr %19, align 4
%33 = load i32, ptr %20, align 4
%34 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %30, i32 noundef %31, i32 noundef %32, i32 noundef %33)
%35 = load i32, ptr %11, align 4
%36 = load i32, ptr %12, align 4
%37 = add nsw i32 %35, %36
%38 = load i32, ptr %13, align 4
%39 = add nsw i32 %37, %38
%40 = load i32, ptr %14, align 4
%41 = add nsw i32 %39, %40
%42 = load i32, ptr %15, align 4
%43 = add nsw i32 %41, %42
%44 = load i32, ptr %16, align 4
%45 = add nsw i32 %43, %44
%46 = load i32, ptr %17, align 4
%47 = add nsw i32 %45, %46
%48 = load i32, ptr %18, align 4
%49 = add nsw i32 %47, %48
%50 = load i32, ptr %19, align 4
%51 = add nsw i32 %49, %50
%52 = load i32, ptr %20, align 4
%53 = add nsw i32 %51, %52
store i32 %53, ptr %21, align 4
%54 = load i32, ptr %21, align 4
%55 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.3, i32 noundef %54)
%56 = load i32, ptr %21, align 4
ret i32 %56
}
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaoaxof5b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c" Hello from Blue10: one = %d, two = %d\0A \00", align 1
@.str.1 = private unnamed_addr constant [46 x i8] c" three = %d, four = %d, five = %d, six = %d\0A \00", align 1
@.str.2 = private unnamed_addr constant [48 x i8] c" seven = %d, eight = %d, nine = %d, zero = %d\0A \00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c" sum = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Blue10(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9) #0 {
%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
%21 = alloca i32, align 4
store i32 %0, ptr %11, align 4
store i32 %1, ptr %12, align 4
store i32 %2, ptr %13, align 4
store i32 %3, ptr %14, align 4
store i32 %4, ptr %15, align 4
store i32 %5, ptr %16, align 4
store i32 %6, ptr %17, align 4
store i32 %7, ptr %18, align 4
store i32 %8, ptr %19, align 4
store i32 %9, ptr %20, align 4
store i32 0, ptr %21, align 4
%22 = load i32, ptr %11, align 4
%23 = load i32, ptr %12, align 4
%24 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %22, i32 noundef %23)
%25 = load i32, ptr %13, align 4
%26 = load i32, ptr %14, align 4
%27 = load i32, ptr %15, align 4
%28 = load i32, ptr %16, align 4
%29 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %25, i32 noundef %26, i32 noundef %27, i32 noundef %28)
%30 = load i32, ptr %17, align 4
%31 = load i32, ptr %18, align 4
%32 = load i32, ptr %19, align 4
%33 = load i32, ptr %20, align 4
%34 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %30, i32 noundef %31, i32 noundef %32, i32 noundef %33)
%35 = load i32, ptr %11, align 4
%36 = load i32, ptr %12, align 4
%37 = add nsw i32 %35, %36
%38 = load i32, ptr %13, align 4
%39 = add nsw i32 %37, %38
%40 = load i32, ptr %14, align 4
%41 = add nsw i32 %39, %40
%42 = load i32, ptr %15, align 4
%43 = add nsw i32 %41, %42
%44 = load i32, ptr %16, align 4
%45 = add nsw i32 %43, %44
%46 = load i32, ptr %17, align 4
%47 = add nsw i32 %45, %46
%48 = load i32, ptr %18, align 4
%49 = add nsw i32 %47, %48
%50 = load i32, ptr %19, align 4
%51 = add nsw i32 %49, %50
%52 = load i32, ptr %20, align 4
%53 = add nsw i32 %51, %52
store i32 %53, ptr %21, align 4
%54 = load i32, ptr %21, align 4
%55 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.3, i32 noundef %54)
%56 = load i32, ptr %21, align 4
ret i32 %56
}
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpov51_r5_.c'
source_filename = "/tmp/tmpov51_r5_.c"
target datalayout = "e-m:e-p270: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/tmpov51_r5_.c"
target datalayout = "e-m:e-p270: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/tmpbx6n2oj1.c'
source_filename = "/tmp/tmpbx6n2oj1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@IFF_NO_PI = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @iff_no_pi() #0 {
%1 = load i64, ptr @IFF_NO_PI, align 8
ret i64 %1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbx6n2oj1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@IFF_NO_PI = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @iff_no_pi() #0 {
%1 = load i64, ptr @IFF_NO_PI, align 8
ret i64 %1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpq6w4v8le.c'
source_filename = "/tmp/tmpq6w4v8le.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Cilk_arch_specific_init() #0 {
%1 = call i32 (...) @start_microaccounting()
ret void
}
declare i32 @start_microaccounting(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq6w4v8le.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Cilk_arch_specific_init() #0 {
%1 = call i32 (...) @start_microaccounting()
ret void
}
declare i32 @start_microaccounting(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp52rd0_6_.c'
source_filename = "/tmp/tmp52rd0_6_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @intercala(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 @comprimento(ptr noundef %6)
store i32 %7, ptr %3, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %4, align 4
br label %8
8: ; preds = %34, %1
%9 = load i32, ptr %4, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp ult i32 %9, %10
br i1 %11, label %12, label %39
12: ; preds = %8
%13 = load ptr, ptr %2, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp sgt i32 %15, 96
br i1 %16, label %17, label %33
17: ; preds = %12
%18 = load ptr, ptr %2, align 8
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp slt i32 %20, 123
br i1 %21, label %22, label %33
22: ; preds = %17
%23 = load i32, ptr %5, align 4
%24 = icmp ne i32 %23, 0
br i1 %24, label %31, label %25
25: ; preds = %22
%26 = load ptr, ptr %2, align 8
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = sub nsw i32 %28, 32
%30 = trunc i32 %29 to i8
store i8 %30, ptr %26, align 1
store i32 1, ptr %5, align 4
br label %32
31: ; preds = %22
store i32 0, ptr %5, align 4
br label %32
32: ; preds = %31, %25
br label %33
33: ; preds = %32, %17, %12
br label %34
34: ; preds = %33
%35 = load i32, ptr %4, align 4
%36 = add i32 %35, 1
store i32 %36, ptr %4, align 4
%37 = load ptr, ptr %2, align 8
%38 = getelementptr inbounds i8, ptr %37, i32 1
store ptr %38, ptr %2, align 8
br label %8, !llvm.loop !6
39: ; preds = %8
%40 = load ptr, ptr %2, align 8
ret ptr %40
}
declare i32 @comprimento(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp52rd0_6_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @intercala(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 @comprimento(ptr noundef %6)
store i32 %7, ptr %3, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = load i32, ptr %3, align 4
%10 = icmp ult i32 %8, %9
br i1 %10, label %.lr.ph, label %41
.lr.ph: ; preds = %1
br label %11
11: ; preds = %.lr.ph, %33
%12 = load ptr, ptr %2, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp sgt i32 %14, 96
br i1 %15, label %16, label %32
16: ; preds = %11
%17 = load ptr, ptr %2, align 8
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp slt i32 %19, 123
br i1 %20, label %21, label %32
21: ; preds = %16
%22 = load i32, ptr %5, align 4
%23 = icmp ne i32 %22, 0
br i1 %23, label %30, label %24
24: ; preds = %21
%25 = load ptr, ptr %2, align 8
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = sub nsw i32 %27, 32
%29 = trunc i32 %28 to i8
store i8 %29, ptr %25, align 1
store i32 1, ptr %5, align 4
br label %31
30: ; preds = %21
store i32 0, ptr %5, align 4
br label %31
31: ; preds = %30, %24
br label %32
32: ; preds = %31, %16, %11
br label %33
33: ; preds = %32
%34 = load i32, ptr %4, align 4
%35 = add i32 %34, 1
store i32 %35, ptr %4, align 4
%36 = load ptr, ptr %2, align 8
%37 = getelementptr inbounds i8, ptr %36, i32 1
store ptr %37, ptr %2, align 8
%38 = load i32, ptr %4, align 4
%39 = load i32, ptr %3, align 4
%40 = icmp ult i32 %38, %39
br i1 %40, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %33
br label %41
41: ; preds = %._crit_edge, %1
%42 = load ptr, ptr %2, align 8
ret ptr %42
}
declare i32 @comprimento(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpegoodb98.c'
source_filename = "/tmp/tmpegoodb98.c"
target datalayout = "e-m:e-p270: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/tmpegoodb98.c"
target datalayout = "e-m:e-p270: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/tmpj_ilzdpi.c'
source_filename = "/tmp/tmpj_ilzdpi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @random_range(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = call double (...) @rand_seed()
%6 = load i32, ptr %4, align 4
%7 = sitofp i32 %6 to double
%8 = load i32, ptr %3, align 4
%9 = sitofp i32 %8 to double
%10 = fsub double %7, %9
%11 = fadd double %10, 1.000000e+00
%12 = fmul double %5, %11
%13 = fptosi double %12 to i32
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %13, %14
ret i32 %15
}
declare double @rand_seed(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj_ilzdpi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @random_range(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = call double (...) @rand_seed()
%6 = load i32, ptr %4, align 4
%7 = sitofp i32 %6 to double
%8 = load i32, ptr %3, align 4
%9 = sitofp i32 %8 to double
%10 = fsub double %7, %9
%11 = fadd double %10, 1.000000e+00
%12 = fmul double %5, %11
%13 = fptosi double %12 to i32
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %13, %14
ret i32 %15
}
declare double @rand_seed(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0igyp_xk.c'
source_filename = "/tmp/tmp0igyp_xk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Aimed : %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"Got : %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 1, ptr %7, align 4
store ptr null, ptr %9, align 8
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 3
%15 = load ptr, ptr %14, align 8
%16 = call i32 @atoi(ptr noundef %15)
store i32 %16, ptr %10, align 4
store i32 0, ptr %11, align 4
store i32 0, ptr %12, align 4
br label %17
17: ; preds = %28, %2
%18 = load i32, ptr %12, align 4
%19 = load i32, ptr %10, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %31
21: ; preds = %17
%22 = load i32, ptr %8, align 4
%23 = call ptr @svcfd_create(i32 noundef %22, i32 noundef 0, i32 noundef 0)
store ptr %23, ptr %9, align 8
%24 = load ptr, ptr %9, align 8
%25 = call i32 @svc_destroy(ptr noundef %24)
%26 = load i32, ptr %11, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %11, align 4
br label %28
28: ; preds = %21
%29 = load i32, ptr %12, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %12, align 4
br label %17, !llvm.loop !6
31: ; preds = %17
%32 = load i32, ptr %6, align 4
%33 = icmp eq i32 %32, 1
br i1 %33, label %34, label %39
34: ; preds = %31
%35 = load i32, ptr %10, align 4
%36 = call i32 @printf(ptr noundef @.str, i32 noundef %35)
%37 = load i32, ptr %11, align 4
%38 = call i32 @printf(ptr noundef @.str.1, i32 noundef %37)
br label %39
39: ; preds = %34, %31
%40 = load i32, ptr %11, align 4
%41 = load i32, ptr %10, align 4
%42 = icmp eq i32 %40, %41
%43 = zext i1 %42 to i64
%44 = select i1 %42, i32 0, i32 1
store i32 %44, ptr %7, align 4
%45 = load i32, ptr %7, align 4
%46 = call i32 @printf(ptr noundef @.str.2, i32 noundef %45)
%47 = load i32, ptr %7, align 4
ret i32 %47
}
declare i32 @atoi(ptr noundef) #1
declare ptr @svcfd_create(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @svc_destroy(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0igyp_xk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Aimed : %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"Got : %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 1, ptr %7, align 4
store ptr null, ptr %9, align 8
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 3
%15 = load ptr, ptr %14, align 8
%16 = call i32 @atoi(ptr noundef %15)
store i32 %16, ptr %10, align 4
store i32 0, ptr %11, align 4
store i32 0, ptr %12, align 4
%17 = load i32, ptr %12, align 4
%18 = load i32, ptr %10, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %.lr.ph, label %33
.lr.ph: ; preds = %2
br label %20
20: ; preds = %.lr.ph, %27
%21 = load i32, ptr %8, align 4
%22 = call ptr @svcfd_create(i32 noundef %21, i32 noundef 0, i32 noundef 0)
store ptr %22, ptr %9, align 8
%23 = load ptr, ptr %9, align 8
%24 = call i32 @svc_destroy(ptr noundef %23)
%25 = load i32, ptr %11, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %11, align 4
br label %27
27: ; preds = %20
%28 = load i32, ptr %12, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %12, align 4
%30 = load i32, ptr %12, align 4
%31 = load i32, ptr %10, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %33
33: ; preds = %._crit_edge, %2
%34 = load i32, ptr %6, align 4
%35 = icmp eq i32 %34, 1
br i1 %35, label %36, label %41
36: ; preds = %33
%37 = load i32, ptr %10, align 4
%38 = call i32 @printf(ptr noundef @.str, i32 noundef %37)
%39 = load i32, ptr %11, align 4
%40 = call i32 @printf(ptr noundef @.str.1, i32 noundef %39)
br label %41
41: ; preds = %36, %33
%42 = load i32, ptr %11, align 4
%43 = load i32, ptr %10, align 4
%44 = icmp eq i32 %42, %43
%45 = zext i1 %44 to i64
%46 = select i1 %44, i32 0, i32 1
store i32 %46, ptr %7, align 4
%47 = load i32, ptr %7, align 4
%48 = call i32 @printf(ptr noundef @.str.2, i32 noundef %47)
%49 = load i32, ptr %7, align 4
ret i32 %49
}
declare i32 @atoi(ptr noundef) #1
declare ptr @svcfd_create(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @svc_destroy(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpq3ux524o.c'
source_filename = "/tmp/tmpq3ux524o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@tfunc.state = internal global i32 1, align 4
@GL_TEXTURE_2D = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @tfunc() #0 {
%1 = load i32, ptr @tfunc.state, align 4
%2 = xor i32 %1, 1
store i32 %2, ptr @tfunc.state, align 4
%3 = icmp ne i32 %2, 0
br i1 %3, label %4, label %7
4: ; preds = %0
%5 = load i32, ptr @GL_TEXTURE_2D, align 4
%6 = call i32 @glEnable(i32 noundef %5)
br label %10
7: ; preds = %0
%8 = load i32, ptr @GL_TEXTURE_2D, align 4
%9 = call i32 @glDisable(i32 noundef %8)
br label %10
10: ; preds = %7, %4
ret void
}
declare i32 @glEnable(i32 noundef) #1
declare i32 @glDisable(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/tmpq3ux524o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@tfunc.state = internal global i32 1, align 4
@GL_TEXTURE_2D = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @tfunc() #0 {
%1 = load i32, ptr @tfunc.state, align 4
%2 = xor i32 %1, 1
store i32 %2, ptr @tfunc.state, align 4
%3 = icmp ne i32 %2, 0
br i1 %3, label %4, label %7
4: ; preds = %0
%5 = load i32, ptr @GL_TEXTURE_2D, align 4
%6 = call i32 @glEnable(i32 noundef %5)
br label %10
7: ; preds = %0
%8 = load i32, ptr @GL_TEXTURE_2D, align 4
%9 = call i32 @glDisable(i32 noundef %8)
br label %10
10: ; preds = %7, %4
ret void
}
declare i32 @glEnable(i32 noundef) #1
declare i32 @glDisable(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/tmpzkwfwhbe.c'
source_filename = "/tmp/tmpzkwfwhbe.c"
target datalayout = "e-m:e-p270: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/tmpzkwfwhbe.c"
target datalayout = "e-m:e-p270: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/tmpzm3ekj7l.c'
source_filename = "/tmp/tmpzm3ekj7l.c"
target datalayout = "e-m:e-p270: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.usrArr = private unnamed_addr constant [13 x i32] [i32 -7, i32 0, i32 13, i32 -95, i32 200, i32 -8, i32 15, i32 23, i32 13, i32 -4, i32 80, i32 -48, i32 0], align 16
@.str = private unnamed_addr constant [10 x i8] c"Random: \00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"Sorted: \00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [13 x i32], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.usrArr, i64 52, i1 false)
%3 = call i32 @printf(ptr noundef @.str)
%4 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 0
%5 = call i32 @print_array(ptr noundef %4)
%6 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 0
%7 = call i32 @selection_sort(ptr noundef %6)
%8 = call i32 @printf(ptr noundef @.str.1)
%9 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 0
%10 = call i32 @print_array(ptr noundef %9)
%11 = call i32 @printf(ptr noundef @.str.2)
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 @print_array(ptr noundef) #2
declare i32 @selection_sort(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/tmpzm3ekj7l.c"
target datalayout = "e-m:e-p270: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.usrArr = private unnamed_addr constant [13 x i32] [i32 -7, i32 0, i32 13, i32 -95, i32 200, i32 -8, i32 15, i32 23, i32 13, i32 -4, i32 80, i32 -48, i32 0], align 16
@.str = private unnamed_addr constant [10 x i8] c"Random: \00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"Sorted: \00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [13 x i32], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.usrArr, i64 52, i1 false)
%3 = call i32 @printf(ptr noundef @.str)
%4 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 0
%5 = call i32 @print_array(ptr noundef %4)
%6 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 0
%7 = call i32 @selection_sort(ptr noundef %6)
%8 = call i32 @printf(ptr noundef @.str.1)
%9 = getelementptr inbounds [13 x i32], ptr %2, i64 0, i64 0
%10 = call i32 @print_array(ptr noundef %9)
%11 = call i32 @printf(ptr noundef @.str.2)
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 @print_array(ptr noundef) #2
declare i32 @selection_sort(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/tmp7x06k85v.c'
source_filename = "/tmp/tmp7x06k85v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"terminated by signal %d\0A\00", align 1
@SIGINT = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @interrupt_signal_handler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
%5 = load i32, ptr @SIGINT, align 4
%6 = call i32 @signal(i32 noundef %5, ptr noundef @interrupt_signal_handler)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @signal(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/tmp7x06k85v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"terminated by signal %d\0A\00", align 1
@SIGINT = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @interrupt_signal_handler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
%5 = load i32, ptr @SIGINT, align 4
%6 = call i32 @signal(i32 noundef %5, ptr noundef @interrupt_signal_handler)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @signal(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/tmpqq6mo692.c'
source_filename = "/tmp/tmpqq6mo692.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @ARCONTROLLER_TESTBENCH_NetworkControllerAutoTest()
ret i32 %6
}
declare i32 @ARCONTROLLER_TESTBENCH_NetworkControllerAutoTest(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqq6mo692.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @ARCONTROLLER_TESTBENCH_NetworkControllerAutoTest()
ret i32 %6
}
declare i32 @ARCONTROLLER_TESTBENCH_NetworkControllerAutoTest(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1e5p43zc.c'
source_filename = "/tmp/tmp1e5p43zc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.dirent = type { ptr }
@.str = private unnamed_addr constant [16 x i8] c"/sys/class/gpio\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"gpiochip\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"gpio@0x100005000\00", align 1
@PATH_MAX = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [30 x i8] c"could not open directory '%s'\00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c"reading directory '%s'\00", align 1
@.str.5 = private unnamed_addr constant [12 x i8] c"%s/%s/label\00", align 1
@.str.6 = private unnamed_addr constant [18 x i8] c"path output error\00", align 1
@.str.7 = private unnamed_addr constant [21 x i8] c"path length overflow\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@O_SYNC = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [25 x i8] c"could not open file '%s'\00", align 1
@.str.9 = private unnamed_addr constant [18 x i8] c"reading from '%s'\00", align 1
@.str.10 = private unnamed_addr constant [29 x i8] c"buffer overflow reading '%s'\00", align 1
@.str.11 = private unnamed_addr constant [26 x i8] c"could not close file '%s'\00", align 1
@.str.12 = private unnamed_addr constant [33 x i8] c"unable to locate gpio controller\00", align 1
@.str.13 = private unnamed_addr constant [11 x i8] c"%s/%s/base\00", align 1
@.str.14 = private unnamed_addr constant [10 x i8] c"%s/export\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@.str.15 = private unnamed_addr constant [16 x i8] c"%s/gpio%s/value\00", align 1
@.str.16 = private unnamed_addr constant [35 x i8] c"KEY0 push button is at state '%s'\0A\00", align 1
@.str.17 = private unnamed_addr constant [12 x i8] c"%s/unexport\00", align 1
@.str.18 = private unnamed_addr constant [16 x i8] c"writing to '%s'\00", align 1
@.str.19 = private unnamed_addr constant [30 x i8] c"buffer underflow writing '%s'\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 ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i64, align 8
%14 = alloca i64, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store ptr @.str, ptr %3, align 8
store ptr @.str.1, ptr %4, align 8
store ptr @.str.2, ptr %5, align 8
%17 = load ptr, ptr %4, align 8
%18 = call i64 @strlen(ptr noundef %17)
store i64 %18, ptr %6, align 8
%19 = load i32, ptr @PATH_MAX, align 4
%20 = zext i32 %19 to i64
%21 = call ptr @llvm.stacksave()
store ptr %21, ptr %9, align 8
%22 = alloca i8, i64 %20, align 16
store i64 %20, ptr %10, align 8
%23 = load i32, ptr @PATH_MAX, align 4
%24 = zext i32 %23 to i64
%25 = alloca i8, i64 %24, align 16
store i64 %24, ptr %13, align 8
%26 = load i32, ptr @PATH_MAX, align 4
%27 = zext i32 %26 to i64
%28 = alloca i8, i64 %27, align 16
store i64 %27, ptr %14, align 8
store ptr null, ptr %15, align 8
%29 = load ptr, ptr %3, align 8
%30 = call ptr @opendir(ptr noundef %29)
store ptr %30, ptr %2, align 8
%31 = load ptr, ptr %2, align 8
%32 = icmp eq ptr %31, null
br i1 %32, label %33, label %37
33: ; preds = %0
%34 = load i64, ptr @errno, align 8
%35 = load ptr, ptr %3, align 8
%36 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %34, ptr noundef @.str.3, ptr noundef %35)
br label %37
37: ; preds = %33, %0
br label %38
38: ; preds = %120, %62, %37
br label %39
39: ; preds = %38
store i64 0, ptr @errno, align 8
%40 = load ptr, ptr %2, align 8
%41 = call ptr @readdir(ptr noundef %40)
store ptr %41, ptr %8, align 8
%42 = load ptr, ptr %8, align 8
%43 = icmp eq ptr %42, null
br i1 %43, label %44, label %53
44: ; preds = %39
%45 = load i64, ptr @errno, align 8
%46 = icmp ne i64 %45, 0
br i1 %46, label %47, label %51
47: ; preds = %44
%48 = load i64, ptr @errno, align 8
%49 = load ptr, ptr %3, align 8
%50 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %48, ptr noundef @.str.4, ptr noundef %49)
br label %52
51: ; preds = %44
br label %121
52: ; preds = %47
br label %53
53: ; preds = %52, %39
%54 = load ptr, ptr %8, align 8
%55 = getelementptr inbounds %struct.dirent, ptr %54, i32 0, i32 0
%56 = load ptr, ptr %55, align 8
%57 = load ptr, ptr %4, align 8
%58 = load i64, ptr %6, align 8
%59 = call i32 @strncmp(ptr noundef %56, ptr noundef %57, i64 noundef %58)
store i32 %59, ptr %7, align 4
%60 = load i32, ptr %7, align 4
%61 = icmp ne i32 %60, 0
br i1 %61, label %62, label %63
62: ; preds = %53
br label %38
63: ; preds = %53
%64 = load i32, ptr @PATH_MAX, align 4
%65 = load ptr, ptr %3, align 8
%66 = load ptr, ptr %8, align 8
%67 = getelementptr inbounds %struct.dirent, ptr %66, i32 0, i32 0
%68 = load ptr, ptr %67, align 8
%69 = call i32 (ptr, i32, ptr, ptr, ...) @snprintf(ptr noundef %22, i32 noundef %64, ptr noundef @.str.5, ptr noundef %65, ptr noundef %68)
store i32 %69, ptr %11, align 4
%70 = load i32, ptr %11, align 4
%71 = icmp slt i32 %70, 0
br i1 %71, label %72, label %74
72: ; preds = %63
%73 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef 0, ptr noundef @.str.6)
br label %74
74: ; preds = %72, %63
%75 = load i32, ptr %11, align 4
%76 = load i32, ptr @PATH_MAX, align 4
%77 = icmp sge i32 %75, %76
br i1 %77, label %78, label %80
78: ; preds = %74
%79 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef 0, ptr noundef @.str.7)
br label %80
80: ; preds = %78, %74
%81 = load i32, ptr @O_RDONLY, align 4
%82 = load i32, ptr @O_SYNC, align 4
%83 = or i32 %81, %82
%84 = call i32 @open(ptr noundef %22, i32 noundef %83)
store i32 %84, ptr %12, align 4
%85 = load i32, ptr %12, align 4
%86 = icmp slt i32 %85, 0
br i1 %86, label %87, label %90
87: ; preds = %80
%88 = load i64, ptr @errno, align 8
%89 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %88, ptr noundef @.str.8, ptr noundef %22)
br label %90
90: ; preds = %87, %80
%91 = load i32, ptr %12, align 4
%92 = load i32, ptr @PATH_MAX, align 4
%93 = call i32 @read(i32 noundef %91, ptr noundef %25, i32 noundef %92)
store i32 %93, ptr %7, align 4
%94 = load i32, ptr %7, align 4
%95 = icmp slt i32 %94, 0
br i1 %95, label %96, label %99
96: ; preds = %90
%97 = load i64, ptr @errno, align 8
%98 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %97, ptr noundef @.str.9, ptr noundef %22)
br label %99
99: ; preds = %96, %90
%100 = load i32, ptr %7, align 4
%101 = load i32, ptr @PATH_MAX, align 4
%102 = icmp eq i32 %100, %101
br i1 %102, label %103, label %106
103: ; preds = %99
%104 = load i64, ptr @errno, align 8
%105 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %104, ptr noundef @.str.10, ptr noundef %22)
br label %106
106: ; preds = %103, %99
%107 = load i32, ptr %12, align 4
%108 = call i32 @close(i32 noundef %107)
store i32 %108, ptr %7, align 4
%109 = load i32, ptr %7, align 4
%110 = icmp slt i32 %109, 0
br i1 %110, label %111, label %114
111: ; preds = %106
%112 = load i64, ptr @errno, align 8
%113 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %112, ptr noundef @.str.11, ptr noundef %22)
br label %114
114: ; preds = %111, %106
%115 = load ptr, ptr %5, align 8
%116 = call ptr @strstr(ptr noundef %25, ptr noundef %115)
store ptr %116, ptr %15, align 8
%117 = load ptr, ptr %15, align 8
%118 = icmp ne ptr %117, null
br i1 %118, label %119, label %120
119: ; preds = %114
br label %121
120: ; preds = %114
br label %38
121: ; preds = %119, %51
%122 = load ptr, ptr %15, align 8
%123 = icmp eq ptr %122, null
br i1 %123, label %124, label %126
124: ; preds = %121
%125 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef 0, ptr noundef @.str.12)
br label %126
126: ; preds = %124, %121
%127 = load i32, ptr @PATH_MAX, align 4
%128 = load ptr, ptr %3, align 8
%129 = load ptr, ptr %8, align 8
%130 = getelementptr inbounds %struct.dirent, ptr %129, i32 0, i32 0
%131 = load ptr, ptr %130, align 8
%132 = call i32 (ptr, i32, ptr, ptr, ...) @snprintf(ptr noundef %22, i32 noundef %127, ptr noundef @.str.13, ptr noundef %128, ptr noundef %131)
store i32 %132, ptr %11, align 4
%133 = load i32, ptr %11, align 4
%134 = icmp slt i32 %133, 0
br i1 %134, label %135, label %137
135: ; preds = %126
%136 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef 0, ptr noundef @.str.6)
br label %137
137: ; preds = %135, %126
%138 = load i32, ptr %11, align 4
%139 = load i32, ptr @PATH_MAX, align 4
%140 = icmp sge i32 %138, %139
br i1 %140, label %141, label %143
141: ; preds = %137
%142 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef 0, ptr noundef @.str.7)
br label %143
143: ; preds = %141, %137
%144 = load i32, ptr @O_RDONLY, align 4
%145 = load i32, ptr @O_SYNC, align 4
%146 = or i32 %144, %145
%147 = call i32 @open(ptr noundef %22, i32 noundef %146)
store i32 %147, ptr %12, align 4
%148 = load i32, ptr %12, align 4
%149 = icmp slt i32 %148, 0
br i1 %149, label %150, label %153
150: ; preds = %143
%151 = load i64, ptr @errno, align 8
%152 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %151, ptr noundef @.str.8, ptr noundef %22)
br label %153
153: ; preds = %150, %143
%154 = load i32, ptr %12, align 4
%155 = load i32, ptr @PATH_MAX, align 4
%156 = call i32 @read(i32 noundef %154, ptr noundef %28, i32 noundef %155)
store i32 %156, ptr %7, align 4
%157 = load i32, ptr %7, align 4
%158 = icmp slt i32 %157, 0
br i1 %158, label %159, label %162
159: ; preds = %153
%160 = load i64, ptr @errno, align 8
%161 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %160, ptr noundef @.str.9, ptr noundef %22)
br label %162
162: ; preds = %159, %153
%163 = load i32, ptr %7, align 4
%164 = load i32, ptr @PATH_MAX, align 4
%165 = icmp eq i32 %163, %164
br i1 %165, label %166, label %169
166: ; preds = %162
%167 = load i64, ptr @errno, align 8
%168 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %167, ptr noundef @.str.10, ptr noundef %22)
br label %169
169: ; preds = %166, %162
%170 = load i32, ptr %12, align 4
%171 = call i32 @close(i32 noundef %170)
store i32 %171, ptr %7, align 4
%172 = load i32, ptr %7, align 4
%173 = icmp slt i32 %172, 0
br i1 %173, label %174, label %177
174: ; preds = %169
%175 = load i64, ptr @errno, align 8
%176 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %175, ptr noundef @.str.11, ptr noundef %22)
br label %177
177: ; preds = %174, %169
%178 = call ptr @strchr(ptr noundef %28, i8 noundef signext 10)
store ptr %178, ptr %16, align 8
%179 = load ptr, ptr %16, align 8
%180 = icmp ne ptr %179, null
br i1 %180, label %181, label %184
181: ; preds = %177
%182 = load ptr, ptr %16, align 8
%183 = call i32 @memset(ptr noundef %182, i8 noundef signext 0, i32 noundef 1)
br label %184
184: ; preds = %181, %177
%185 = load i32, ptr @PATH_MAX, align 4
%186 = load ptr, ptr %3, align 8
%187 = call i32 (ptr, i32, ptr, ptr, ...) @snprintf(ptr noundef %22, i32 noundef %185, ptr noundef @.str.14, ptr noundef %186)
store i32 %187, ptr %11, align 4
%188 = load i32, ptr %11, align 4
%189 = icmp slt i32 %188, 0
br i1 %189, label %190, label %192
190: ; preds = %184
%191 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef 0, ptr noundef @.str.6)
br label %192
192: ; preds = %190, %184
%193 = load i32, ptr %11, align 4
%194 = load i32, ptr @PATH_MAX, align 4
%195 = icmp sge i32 %193, %194
br i1 %195, label %196, label %198
196: ; preds = %192
%197 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef 0, ptr noundef @.str.7)
br label %198
198: ; preds = %196, %192
%199 = load i32, ptr @O_WRONLY, align 4
%200 = load i32, ptr @O_SYNC, align 4
%201 = or i32 %199, %200
%202 = call i32 @open(ptr noundef %22, i32 noundef %201)
store i32 %202, ptr %12, align 4
%203 = load i32, ptr %12, align 4
%204 = icmp slt i32 %203, 0
br i1 %204, label %205, label %208
205: ; preds = %198
%206 = load i64, ptr @errno, align 8
%207 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %206, ptr noundef @.str.8, ptr noundef %22)
br label %208
208: ; preds = %205, %198
%209 = load i32, ptr %12, align 4
%210 = call i64 @strlen(ptr noundef %28)
%211 = call i32 @write(i32 noundef %209, ptr noundef %28, i64 noundef %210)
store i32 %211, ptr %7, align 4
%212 = load i32, ptr %12, align 4
%213 = call i32 @close(i32 noundef %212)
store i32 %213, ptr %7, align 4
%214 = load i32, ptr %7, align 4
%215 = icmp slt i32 %214, 0
br i1 %215, label %216, label %219
216: ; preds = %208
%217 = load i64, ptr @errno, align 8
%218 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %217, ptr noundef @.str.11, ptr noundef %22)
br label %219
219: ; preds = %216, %208
%220 = load i32, ptr @PATH_MAX, align 4
%221 = load ptr, ptr %3, align 8
%222 = call i32 (ptr, i32, ptr, ptr, ...) @snprintf(ptr noundef %22, i32 noundef %220, ptr noundef @.str.15, ptr noundef %221, ptr noundef %28)
store i32 %222, ptr %11, align 4
%223 = load i32, ptr %11, align 4
%224 = icmp slt i32 %223, 0
br i1 %224, label %225, label %227
225: ; preds = %219
%226 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef 0, ptr noundef @.str.6)
br label %227
227: ; preds = %225, %219
%228 = load i32, ptr %11, align 4
%229 = load i32, ptr @PATH_MAX, align 4
%230 = icmp sge i32 %228, %229
br i1 %230, label %231, label %233
231: ; preds = %227
%232 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef 0, ptr noundef @.str.7)
br label %233
233: ; preds = %231, %227
%234 = load i32, ptr @O_RDONLY, align 4
%235 = load i32, ptr @O_SYNC, align 4
%236 = or i32 %234, %235
%237 = call i32 @open(ptr noundef %22, i32 noundef %236)
store i32 %237, ptr %12, align 4
%238 = load i32, ptr %12, align 4
%239 = icmp slt i32 %238, 0
br i1 %239, label %240, label %243
240: ; preds = %233
%241 = load i64, ptr @errno, align 8
%242 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %241, ptr noundef @.str.8, ptr noundef %22)
br label %243
243: ; preds = %240, %233
%244 = load i32, ptr %12, align 4
%245 = load i32, ptr @PATH_MAX, align 4
%246 = call i32 @read(i32 noundef %244, ptr noundef %25, i32 noundef %245)
store i32 %246, ptr %7, align 4
%247 = load i32, ptr %7, align 4
%248 = icmp slt i32 %247, 0
br i1 %248, label %249, label %252
249: ; preds = %243
%250 = load i64, ptr @errno, align 8
%251 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %250, ptr noundef @.str.9, ptr noundef %22)
br label %252
252: ; preds = %249, %243
%253 = load i32, ptr %7, align 4
%254 = load i32, ptr @PATH_MAX, align 4
%255 = icmp eq i32 %253, %254
br i1 %255, label %256, label %259
256: ; preds = %252
%257 = load i64, ptr @errno, align 8
%258 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %257, ptr noundef @.str.10, ptr noundef %22)
br label %259
259: ; preds = %256, %252
%260 = load i32, ptr %12, align 4
%261 = call i32 @close(i32 noundef %260)
store i32 %261, ptr %7, align 4
%262 = load i32, ptr %7, align 4
%263 = icmp slt i32 %262, 0
br i1 %263, label %264, label %267
264: ; preds = %259
%265 = load i64, ptr @errno, align 8
%266 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %265, ptr noundef @.str.11, ptr noundef %22)
br label %267
267: ; preds = %264, %259
%268 = call ptr @strchr(ptr noundef %25, i8 noundef signext 10)
store ptr %268, ptr %16, align 8
%269 = load ptr, ptr %16, align 8
%270 = icmp ne ptr %269, null
br i1 %270, label %271, label %274
271: ; preds = %267
%272 = load ptr, ptr %16, align 8
%273 = call i32 @memset(ptr noundef %272, i8 noundef signext 0, i32 noundef 1)
br label %274
274: ; preds = %271, %267
%275 = call i32 @printf(ptr noundef @.str.16, ptr noundef %25)
%276 = load i32, ptr @PATH_MAX, align 4
%277 = load ptr, ptr %3, align 8
%278 = call i32 (ptr, i32, ptr, ptr, ...) @snprintf(ptr noundef %22, i32 noundef %276, ptr noundef @.str.17, ptr noundef %277)
store i32 %278, ptr %11, align 4
%279 = load i32, ptr %11, align 4
%280 = icmp slt i32 %279, 0
br i1 %280, label %281, label %283
281: ; preds = %274
%282 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef 0, ptr noundef @.str.6)
br label %283
283: ; preds = %281, %274
%284 = load i32, ptr %11, align 4
%285 = load i32, ptr @PATH_MAX, align 4
%286 = icmp sge i32 %284, %285
br i1 %286, label %287, label %289
287: ; preds = %283
%288 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef 0, ptr noundef @.str.7)
br label %289
289: ; preds = %287, %283
%290 = load i32, ptr @O_WRONLY, align 4
%291 = load i32, ptr @O_SYNC, align 4
%292 = or i32 %290, %291
%293 = call i32 @open(ptr noundef %22, i32 noundef %292)
store i32 %293, ptr %12, align 4
%294 = load i32, ptr %12, align 4
%295 = icmp slt i32 %294, 0
br i1 %295, label %296, label %299
296: ; preds = %289
%297 = load i64, ptr @errno, align 8
%298 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %297, ptr noundef @.str.8, ptr noundef %22)
br label %299
299: ; preds = %296, %289
%300 = load i32, ptr %12, align 4
%301 = call i64 @strlen(ptr noundef %28)
%302 = call i32 @write(i32 noundef %300, ptr noundef %28, i64 noundef %301)
store i32 %302, ptr %7, align 4
%303 = load i32, ptr %7, align 4
%304 = icmp slt i32 %303, 0
br i1 %304, label %305, label %308
305: ; preds = %299
%306 = load i64, ptr @errno, align 8
%307 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %306, ptr noundef @.str.18, ptr noundef %22)
br label %308
308: ; preds = %305, %299
%309 = load i32, ptr %7, align 4
%310 = sext i32 %309 to i64
%311 = call i64 @strlen(ptr noundef %28)
%312 = icmp ne i64 %310, %311
br i1 %312, label %313, label %316
313: ; preds = %308
%314 = load i64, ptr @errno, align 8
%315 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %314, ptr noundef @.str.19, ptr noundef %22)
br label %316
316: ; preds = %313, %308
%317 = load i32, ptr %12, align 4
%318 = call i32 @close(i32 noundef %317)
store i32 %318, ptr %7, align 4
%319 = load i32, ptr %7, align 4
%320 = icmp slt i32 %319, 0
br i1 %320, label %321, label %324
321: ; preds = %316
%322 = load i64, ptr @errno, align 8
%323 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %322, ptr noundef @.str.11, ptr noundef %22)
br label %324
324: ; preds = %321, %316
%325 = load ptr, ptr %9, align 8
call void @llvm.stackrestore(ptr %325)
%326 = load i32, ptr %1, align 4
ret i32 %326
}
declare i64 @strlen(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare ptr @opendir(ptr noundef) #1
declare i32 @error(i32 noundef, i64 noundef, ptr noundef, ...) #1
declare ptr @readdir(ptr noundef) #1
declare i32 @strncmp(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @printf(ptr noundef, ptr 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/tmp1e5p43zc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.dirent = type { ptr }
@.str = private unnamed_addr constant [16 x i8] c"/sys/class/gpio\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"gpiochip\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"gpio@0x100005000\00", align 1
@PATH_MAX = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [30 x i8] c"could not open directory '%s'\00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c"reading directory '%s'\00", align 1
@.str.5 = private unnamed_addr constant [12 x i8] c"%s/%s/label\00", align 1
@.str.6 = private unnamed_addr constant [18 x i8] c"path output error\00", align 1
@.str.7 = private unnamed_addr constant [21 x i8] c"path length overflow\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@O_SYNC = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [25 x i8] c"could not open file '%s'\00", align 1
@.str.9 = private unnamed_addr constant [18 x i8] c"reading from '%s'\00", align 1
@.str.10 = private unnamed_addr constant [29 x i8] c"buffer overflow reading '%s'\00", align 1
@.str.11 = private unnamed_addr constant [26 x i8] c"could not close file '%s'\00", align 1
@.str.12 = private unnamed_addr constant [33 x i8] c"unable to locate gpio controller\00", align 1
@.str.13 = private unnamed_addr constant [11 x i8] c"%s/%s/base\00", align 1
@.str.14 = private unnamed_addr constant [10 x i8] c"%s/export\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@.str.15 = private unnamed_addr constant [16 x i8] c"%s/gpio%s/value\00", align 1
@.str.16 = private unnamed_addr constant [35 x i8] c"KEY0 push button is at state '%s'\0A\00", align 1
@.str.17 = private unnamed_addr constant [12 x i8] c"%s/unexport\00", align 1
@.str.18 = private unnamed_addr constant [16 x i8] c"writing to '%s'\00", align 1
@.str.19 = private unnamed_addr constant [30 x i8] c"buffer underflow writing '%s'\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 ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i64, align 8
%14 = alloca i64, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store ptr @.str, ptr %3, align 8
store ptr @.str.1, ptr %4, align 8
store ptr @.str.2, ptr %5, align 8
%17 = load ptr, ptr %4, align 8
%18 = call i64 @strlen(ptr noundef %17)
store i64 %18, ptr %6, align 8
%19 = load i32, ptr @PATH_MAX, align 4
%20 = zext i32 %19 to i64
%21 = call ptr @llvm.stacksave()
store ptr %21, ptr %9, align 8
%22 = alloca i8, i64 %20, align 16
store i64 %20, ptr %10, align 8
%23 = load i32, ptr @PATH_MAX, align 4
%24 = zext i32 %23 to i64
%25 = alloca i8, i64 %24, align 16
store i64 %24, ptr %13, align 8
%26 = load i32, ptr @PATH_MAX, align 4
%27 = zext i32 %26 to i64
%28 = alloca i8, i64 %27, align 16
store i64 %27, ptr %14, align 8
store ptr null, ptr %15, align 8
%29 = load ptr, ptr %3, align 8
%30 = call ptr @opendir(ptr noundef %29)
store ptr %30, ptr %2, align 8
%31 = load ptr, ptr %2, align 8
%32 = icmp eq ptr %31, null
br i1 %32, label %33, label %37
33: ; preds = %0
%34 = load i64, ptr @errno, align 8
%35 = load ptr, ptr %3, align 8
%36 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %34, ptr noundef @.str.3, ptr noundef %35)
br label %37
37: ; preds = %33, %0
br label %38
38: ; preds = %.backedge, %37
br label %39
39: ; preds = %38
store i64 0, ptr @errno, align 8
%40 = load ptr, ptr %2, align 8
%41 = call ptr @readdir(ptr noundef %40)
store ptr %41, ptr %8, align 8
%42 = load ptr, ptr %8, align 8
%43 = icmp eq ptr %42, null
br i1 %43, label %44, label %53
44: ; preds = %39
%45 = load i64, ptr @errno, align 8
%46 = icmp ne i64 %45, 0
br i1 %46, label %47, label %51
47: ; preds = %44
%48 = load i64, ptr @errno, align 8
%49 = load ptr, ptr %3, align 8
%50 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %48, ptr noundef @.str.4, ptr noundef %49)
br label %52
51: ; preds = %44
br label %121
52: ; preds = %47
br label %53
53: ; preds = %52, %39
%54 = load ptr, ptr %8, align 8
%55 = getelementptr inbounds %struct.dirent, ptr %54, i32 0, i32 0
%56 = load ptr, ptr %55, align 8
%57 = load ptr, ptr %4, align 8
%58 = load i64, ptr %6, align 8
%59 = call i32 @strncmp(ptr noundef %56, ptr noundef %57, i64 noundef %58)
store i32 %59, ptr %7, align 4
%60 = load i32, ptr %7, align 4
%61 = icmp ne i32 %60, 0
br i1 %61, label %62, label %63
62: ; preds = %53
br label %.backedge
.backedge: ; preds = %62, %120
br label %38
63: ; preds = %53
%64 = load i32, ptr @PATH_MAX, align 4
%65 = load ptr, ptr %3, align 8
%66 = load ptr, ptr %8, align 8
%67 = getelementptr inbounds %struct.dirent, ptr %66, i32 0, i32 0
%68 = load ptr, ptr %67, align 8
%69 = call i32 (ptr, i32, ptr, ptr, ...) @snprintf(ptr noundef %22, i32 noundef %64, ptr noundef @.str.5, ptr noundef %65, ptr noundef %68)
store i32 %69, ptr %11, align 4
%70 = load i32, ptr %11, align 4
%71 = icmp slt i32 %70, 0
br i1 %71, label %72, label %74
72: ; preds = %63
%73 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef 0, ptr noundef @.str.6)
br label %74
74: ; preds = %72, %63
%75 = load i32, ptr %11, align 4
%76 = load i32, ptr @PATH_MAX, align 4
%77 = icmp sge i32 %75, %76
br i1 %77, label %78, label %80
78: ; preds = %74
%79 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef 0, ptr noundef @.str.7)
br label %80
80: ; preds = %78, %74
%81 = load i32, ptr @O_RDONLY, align 4
%82 = load i32, ptr @O_SYNC, align 4
%83 = or i32 %81, %82
%84 = call i32 @open(ptr noundef %22, i32 noundef %83)
store i32 %84, ptr %12, align 4
%85 = load i32, ptr %12, align 4
%86 = icmp slt i32 %85, 0
br i1 %86, label %87, label %90
87: ; preds = %80
%88 = load i64, ptr @errno, align 8
%89 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %88, ptr noundef @.str.8, ptr noundef %22)
br label %90
90: ; preds = %87, %80
%91 = load i32, ptr %12, align 4
%92 = load i32, ptr @PATH_MAX, align 4
%93 = call i32 @read(i32 noundef %91, ptr noundef %25, i32 noundef %92)
store i32 %93, ptr %7, align 4
%94 = load i32, ptr %7, align 4
%95 = icmp slt i32 %94, 0
br i1 %95, label %96, label %99
96: ; preds = %90
%97 = load i64, ptr @errno, align 8
%98 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %97, ptr noundef @.str.9, ptr noundef %22)
br label %99
99: ; preds = %96, %90
%100 = load i32, ptr %7, align 4
%101 = load i32, ptr @PATH_MAX, align 4
%102 = icmp eq i32 %100, %101
br i1 %102, label %103, label %106
103: ; preds = %99
%104 = load i64, ptr @errno, align 8
%105 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %104, ptr noundef @.str.10, ptr noundef %22)
br label %106
106: ; preds = %103, %99
%107 = load i32, ptr %12, align 4
%108 = call i32 @close(i32 noundef %107)
store i32 %108, ptr %7, align 4
%109 = load i32, ptr %7, align 4
%110 = icmp slt i32 %109, 0
br i1 %110, label %111, label %114
111: ; preds = %106
%112 = load i64, ptr @errno, align 8
%113 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %112, ptr noundef @.str.11, ptr noundef %22)
br label %114
114: ; preds = %111, %106
%115 = load ptr, ptr %5, align 8
%116 = call ptr @strstr(ptr noundef %25, ptr noundef %115)
store ptr %116, ptr %15, align 8
%117 = load ptr, ptr %15, align 8
%118 = icmp ne ptr %117, null
br i1 %118, label %119, label %120
119: ; preds = %114
br label %121
120: ; preds = %114
br label %.backedge
121: ; preds = %119, %51
%122 = load ptr, ptr %15, align 8
%123 = icmp eq ptr %122, null
br i1 %123, label %124, label %126
124: ; preds = %121
%125 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef 0, ptr noundef @.str.12)
br label %126
126: ; preds = %124, %121
%127 = load i32, ptr @PATH_MAX, align 4
%128 = load ptr, ptr %3, align 8
%129 = load ptr, ptr %8, align 8
%130 = getelementptr inbounds %struct.dirent, ptr %129, i32 0, i32 0
%131 = load ptr, ptr %130, align 8
%132 = call i32 (ptr, i32, ptr, ptr, ...) @snprintf(ptr noundef %22, i32 noundef %127, ptr noundef @.str.13, ptr noundef %128, ptr noundef %131)
store i32 %132, ptr %11, align 4
%133 = load i32, ptr %11, align 4
%134 = icmp slt i32 %133, 0
br i1 %134, label %135, label %137
135: ; preds = %126
%136 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef 0, ptr noundef @.str.6)
br label %137
137: ; preds = %135, %126
%138 = load i32, ptr %11, align 4
%139 = load i32, ptr @PATH_MAX, align 4
%140 = icmp sge i32 %138, %139
br i1 %140, label %141, label %143
141: ; preds = %137
%142 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef 0, ptr noundef @.str.7)
br label %143
143: ; preds = %141, %137
%144 = load i32, ptr @O_RDONLY, align 4
%145 = load i32, ptr @O_SYNC, align 4
%146 = or i32 %144, %145
%147 = call i32 @open(ptr noundef %22, i32 noundef %146)
store i32 %147, ptr %12, align 4
%148 = load i32, ptr %12, align 4
%149 = icmp slt i32 %148, 0
br i1 %149, label %150, label %153
150: ; preds = %143
%151 = load i64, ptr @errno, align 8
%152 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %151, ptr noundef @.str.8, ptr noundef %22)
br label %153
153: ; preds = %150, %143
%154 = load i32, ptr %12, align 4
%155 = load i32, ptr @PATH_MAX, align 4
%156 = call i32 @read(i32 noundef %154, ptr noundef %28, i32 noundef %155)
store i32 %156, ptr %7, align 4
%157 = load i32, ptr %7, align 4
%158 = icmp slt i32 %157, 0
br i1 %158, label %159, label %162
159: ; preds = %153
%160 = load i64, ptr @errno, align 8
%161 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %160, ptr noundef @.str.9, ptr noundef %22)
br label %162
162: ; preds = %159, %153
%163 = load i32, ptr %7, align 4
%164 = load i32, ptr @PATH_MAX, align 4
%165 = icmp eq i32 %163, %164
br i1 %165, label %166, label %169
166: ; preds = %162
%167 = load i64, ptr @errno, align 8
%168 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %167, ptr noundef @.str.10, ptr noundef %22)
br label %169
169: ; preds = %166, %162
%170 = load i32, ptr %12, align 4
%171 = call i32 @close(i32 noundef %170)
store i32 %171, ptr %7, align 4
%172 = load i32, ptr %7, align 4
%173 = icmp slt i32 %172, 0
br i1 %173, label %174, label %177
174: ; preds = %169
%175 = load i64, ptr @errno, align 8
%176 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %175, ptr noundef @.str.11, ptr noundef %22)
br label %177
177: ; preds = %174, %169
%178 = call ptr @strchr(ptr noundef %28, i8 noundef signext 10)
store ptr %178, ptr %16, align 8
%179 = load ptr, ptr %16, align 8
%180 = icmp ne ptr %179, null
br i1 %180, label %181, label %184
181: ; preds = %177
%182 = load ptr, ptr %16, align 8
%183 = call i32 @memset(ptr noundef %182, i8 noundef signext 0, i32 noundef 1)
br label %184
184: ; preds = %181, %177
%185 = load i32, ptr @PATH_MAX, align 4
%186 = load ptr, ptr %3, align 8
%187 = call i32 (ptr, i32, ptr, ptr, ...) @snprintf(ptr noundef %22, i32 noundef %185, ptr noundef @.str.14, ptr noundef %186)
store i32 %187, ptr %11, align 4
%188 = load i32, ptr %11, align 4
%189 = icmp slt i32 %188, 0
br i1 %189, label %190, label %192
190: ; preds = %184
%191 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef 0, ptr noundef @.str.6)
br label %192
192: ; preds = %190, %184
%193 = load i32, ptr %11, align 4
%194 = load i32, ptr @PATH_MAX, align 4
%195 = icmp sge i32 %193, %194
br i1 %195, label %196, label %198
196: ; preds = %192
%197 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef 0, ptr noundef @.str.7)
br label %198
198: ; preds = %196, %192
%199 = load i32, ptr @O_WRONLY, align 4
%200 = load i32, ptr @O_SYNC, align 4
%201 = or i32 %199, %200
%202 = call i32 @open(ptr noundef %22, i32 noundef %201)
store i32 %202, ptr %12, align 4
%203 = load i32, ptr %12, align 4
%204 = icmp slt i32 %203, 0
br i1 %204, label %205, label %208
205: ; preds = %198
%206 = load i64, ptr @errno, align 8
%207 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %206, ptr noundef @.str.8, ptr noundef %22)
br label %208
208: ; preds = %205, %198
%209 = load i32, ptr %12, align 4
%210 = call i64 @strlen(ptr noundef %28)
%211 = call i32 @write(i32 noundef %209, ptr noundef %28, i64 noundef %210)
store i32 %211, ptr %7, align 4
%212 = load i32, ptr %12, align 4
%213 = call i32 @close(i32 noundef %212)
store i32 %213, ptr %7, align 4
%214 = load i32, ptr %7, align 4
%215 = icmp slt i32 %214, 0
br i1 %215, label %216, label %219
216: ; preds = %208
%217 = load i64, ptr @errno, align 8
%218 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %217, ptr noundef @.str.11, ptr noundef %22)
br label %219
219: ; preds = %216, %208
%220 = load i32, ptr @PATH_MAX, align 4
%221 = load ptr, ptr %3, align 8
%222 = call i32 (ptr, i32, ptr, ptr, ...) @snprintf(ptr noundef %22, i32 noundef %220, ptr noundef @.str.15, ptr noundef %221, ptr noundef %28)
store i32 %222, ptr %11, align 4
%223 = load i32, ptr %11, align 4
%224 = icmp slt i32 %223, 0
br i1 %224, label %225, label %227
225: ; preds = %219
%226 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef 0, ptr noundef @.str.6)
br label %227
227: ; preds = %225, %219
%228 = load i32, ptr %11, align 4
%229 = load i32, ptr @PATH_MAX, align 4
%230 = icmp sge i32 %228, %229
br i1 %230, label %231, label %233
231: ; preds = %227
%232 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef 0, ptr noundef @.str.7)
br label %233
233: ; preds = %231, %227
%234 = load i32, ptr @O_RDONLY, align 4
%235 = load i32, ptr @O_SYNC, align 4
%236 = or i32 %234, %235
%237 = call i32 @open(ptr noundef %22, i32 noundef %236)
store i32 %237, ptr %12, align 4
%238 = load i32, ptr %12, align 4
%239 = icmp slt i32 %238, 0
br i1 %239, label %240, label %243
240: ; preds = %233
%241 = load i64, ptr @errno, align 8
%242 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %241, ptr noundef @.str.8, ptr noundef %22)
br label %243
243: ; preds = %240, %233
%244 = load i32, ptr %12, align 4
%245 = load i32, ptr @PATH_MAX, align 4
%246 = call i32 @read(i32 noundef %244, ptr noundef %25, i32 noundef %245)
store i32 %246, ptr %7, align 4
%247 = load i32, ptr %7, align 4
%248 = icmp slt i32 %247, 0
br i1 %248, label %249, label %252
249: ; preds = %243
%250 = load i64, ptr @errno, align 8
%251 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %250, ptr noundef @.str.9, ptr noundef %22)
br label %252
252: ; preds = %249, %243
%253 = load i32, ptr %7, align 4
%254 = load i32, ptr @PATH_MAX, align 4
%255 = icmp eq i32 %253, %254
br i1 %255, label %256, label %259
256: ; preds = %252
%257 = load i64, ptr @errno, align 8
%258 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %257, ptr noundef @.str.10, ptr noundef %22)
br label %259
259: ; preds = %256, %252
%260 = load i32, ptr %12, align 4
%261 = call i32 @close(i32 noundef %260)
store i32 %261, ptr %7, align 4
%262 = load i32, ptr %7, align 4
%263 = icmp slt i32 %262, 0
br i1 %263, label %264, label %267
264: ; preds = %259
%265 = load i64, ptr @errno, align 8
%266 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %265, ptr noundef @.str.11, ptr noundef %22)
br label %267
267: ; preds = %264, %259
%268 = call ptr @strchr(ptr noundef %25, i8 noundef signext 10)
store ptr %268, ptr %16, align 8
%269 = load ptr, ptr %16, align 8
%270 = icmp ne ptr %269, null
br i1 %270, label %271, label %274
271: ; preds = %267
%272 = load ptr, ptr %16, align 8
%273 = call i32 @memset(ptr noundef %272, i8 noundef signext 0, i32 noundef 1)
br label %274
274: ; preds = %271, %267
%275 = call i32 @printf(ptr noundef @.str.16, ptr noundef %25)
%276 = load i32, ptr @PATH_MAX, align 4
%277 = load ptr, ptr %3, align 8
%278 = call i32 (ptr, i32, ptr, ptr, ...) @snprintf(ptr noundef %22, i32 noundef %276, ptr noundef @.str.17, ptr noundef %277)
store i32 %278, ptr %11, align 4
%279 = load i32, ptr %11, align 4
%280 = icmp slt i32 %279, 0
br i1 %280, label %281, label %283
281: ; preds = %274
%282 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef 0, ptr noundef @.str.6)
br label %283
283: ; preds = %281, %274
%284 = load i32, ptr %11, align 4
%285 = load i32, ptr @PATH_MAX, align 4
%286 = icmp sge i32 %284, %285
br i1 %286, label %287, label %289
287: ; preds = %283
%288 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef 0, ptr noundef @.str.7)
br label %289
289: ; preds = %287, %283
%290 = load i32, ptr @O_WRONLY, align 4
%291 = load i32, ptr @O_SYNC, align 4
%292 = or i32 %290, %291
%293 = call i32 @open(ptr noundef %22, i32 noundef %292)
store i32 %293, ptr %12, align 4
%294 = load i32, ptr %12, align 4
%295 = icmp slt i32 %294, 0
br i1 %295, label %296, label %299
296: ; preds = %289
%297 = load i64, ptr @errno, align 8
%298 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %297, ptr noundef @.str.8, ptr noundef %22)
br label %299
299: ; preds = %296, %289
%300 = load i32, ptr %12, align 4
%301 = call i64 @strlen(ptr noundef %28)
%302 = call i32 @write(i32 noundef %300, ptr noundef %28, i64 noundef %301)
store i32 %302, ptr %7, align 4
%303 = load i32, ptr %7, align 4
%304 = icmp slt i32 %303, 0
br i1 %304, label %305, label %308
305: ; preds = %299
%306 = load i64, ptr @errno, align 8
%307 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %306, ptr noundef @.str.18, ptr noundef %22)
br label %308
308: ; preds = %305, %299
%309 = load i32, ptr %7, align 4
%310 = sext i32 %309 to i64
%311 = call i64 @strlen(ptr noundef %28)
%312 = icmp ne i64 %310, %311
br i1 %312, label %313, label %316
313: ; preds = %308
%314 = load i64, ptr @errno, align 8
%315 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %314, ptr noundef @.str.19, ptr noundef %22)
br label %316
316: ; preds = %313, %308
%317 = load i32, ptr %12, align 4
%318 = call i32 @close(i32 noundef %317)
store i32 %318, ptr %7, align 4
%319 = load i32, ptr %7, align 4
%320 = icmp slt i32 %319, 0
br i1 %320, label %321, label %324
321: ; preds = %316
%322 = load i64, ptr @errno, align 8
%323 = call i32 (i32, i64, ptr, ...) @error(i32 noundef 1, i64 noundef %322, ptr noundef @.str.11, ptr noundef %22)
br label %324
324: ; preds = %321, %316
%325 = load ptr, ptr %9, align 8
call void @llvm.stackrestore(ptr %325)
%326 = load i32, ptr %1, align 4
ret i32 %326
}
declare i64 @strlen(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare ptr @opendir(ptr noundef) #1
declare i32 @error(i32 noundef, i64 noundef, ptr noundef, ...) #1
declare ptr @readdir(ptr noundef) #1
declare i32 @strncmp(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @printf(ptr noundef, ptr 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/tmp62vl_9je.c'
source_filename = "/tmp/tmp62vl_9je.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nextB(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%5 = load double, ptr %3, align 8
%6 = load double, ptr %4, align 8
%7 = fmul double %5, %6
%8 = call double @sqrt(double noundef %7) #2
ret double %8
}
; Function Attrs: nounwind
declare double @sqrt(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp62vl_9je.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nextB(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%5 = load double, ptr %3, align 8
%6 = load double, ptr %4, align 8
%7 = fmul double %5, %6
%8 = call double @sqrt(double noundef %7) #2
ret double %8
}
; Function Attrs: nounwind
declare double @sqrt(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbxks5fcr.c'
source_filename = "/tmp/tmpbxks5fcr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\1B[0;31mLook at here !!!\1B[0m\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @point() #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/tmpbxks5fcr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\1B[0;31mLook at here !!!\1B[0m\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @point() #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/tmp0npons33.c'
source_filename = "/tmp/tmp0npons33.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @INT_enable() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @__get_cpsr()
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = and i32 %3, -193
%5 = call i32 @__set_cpsr(i32 noundef %4)
%6 = load i32, ptr %1, align 4
ret i32 %6
}
declare i32 @__get_cpsr(...) #1
declare i32 @__set_cpsr(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/tmp0npons33.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @INT_enable() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @__get_cpsr()
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = and i32 %3, -193
%5 = call i32 @__set_cpsr(i32 noundef %4)
%6 = load i32, ptr %1, align 4
ret i32 %6
}
declare i32 @__get_cpsr(...) #1
declare i32 @__set_cpsr(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/tmpoogtr3rc.c'
source_filename = "/tmp/tmpoogtr3rc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 = call double @pow(double noundef %3, i32 noundef 4)
%5 = load double, ptr %2, align 8
%6 = call double @pow(double noundef %5, i32 noundef 3)
%7 = fsub double %4, %6
%8 = fsub double %7, 2.000000e+01
ret double %8
}
declare double @pow(double noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoogtr3rc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 = call double @pow(double noundef %3, i32 noundef 4)
%5 = load double, ptr %2, align 8
%6 = call double @pow(double noundef %5, i32 noundef 3)
%7 = fsub double %4, %6
%8 = fsub double %7, 2.000000e+01
ret double %8
}
declare double @pow(double noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpu26h3313.c'
source_filename = "/tmp/tmpu26h3313.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SendUBX(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call i32 @write(i32 noundef %7, ptr noundef %8, i32 noundef %9)
ret void
}
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/tmpu26h3313.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SendUBX(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call i32 @write(i32 noundef %7, ptr noundef %8, i32 noundef %9)
ret void
}
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/tmpw5gongsc.c'
source_filename = "/tmp/tmpw5gongsc.c"
target datalayout = "e-m:e-p270: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/tmpw5gongsc.c"
target datalayout = "e-m:e-p270: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/tmpiu9jrh3g.c'
source_filename = "/tmp/tmpiu9jrh3g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@MAXPATHLEN = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr @MAXPATHLEN, align 4
%9 = add nsw i32 %8, 1
%10 = zext i32 %9 to i64
%11 = call ptr @llvm.stacksave()
store ptr %11, ptr %6, align 8
%12 = alloca i8, i64 %10, align 16
store i64 %10, ptr %7, align 8
%13 = trunc i64 %10 to i32
%14 = call ptr @getcwd(ptr noundef %12, i32 noundef %13)
%15 = call i32 @printf(ptr noundef @.str, ptr noundef %14)
%16 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %16, ptr %3, align 4
%17 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %17)
%18 = load i32, ptr %3, align 4
ret i32 %18
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @printf(ptr noundef, ptr noundef) #2
declare ptr @getcwd(ptr noundef, i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpiu9jrh3g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@MAXPATHLEN = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr @MAXPATHLEN, align 4
%9 = add nsw i32 %8, 1
%10 = zext i32 %9 to i64
%11 = call ptr @llvm.stacksave()
store ptr %11, ptr %6, align 8
%12 = alloca i8, i64 %10, align 16
store i64 %10, ptr %7, align 8
%13 = trunc i64 %10 to i32
%14 = call ptr @getcwd(ptr noundef %12, i32 noundef %13)
%15 = call i32 @printf(ptr noundef @.str, ptr noundef %14)
%16 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %16, ptr %3, align 4
%17 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %17)
%18 = load i32, ptr %3, align 4
ret i32 %18
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @printf(ptr noundef, ptr noundef) #2
declare ptr @getcwd(ptr noundef, i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwpuz4zy9.c'
source_filename = "/tmp/tmpwpuz4zy9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [746 x i8] c"\0A\0A\09This program will use Markov Modeling to write sentences and paragraphs using probability analysis of words and their adjacent words from given input files. As such you must input at least one file (preferably a text file of decent size to give the most\0Aaccurate word predictions) for the Markov Babbler to read before it can begin constructing coherent-ish sentences. The babbler uses a pseudo-random process to grab next words, so every time you run the babbler on the same input file(s), it should produce new and unique outputs. Be warned though, there is a high probability that if your text file contains loops between next words (i.e. it says \22then I\22 and later says \22I then\22) the babbler might get caught in unwanted loops. Have fun!\0A\00", align 1
@.str.1 = private unnamed_addr constant [94 x i8] c"============================================================================================\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @msg_intro() #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/tmpwpuz4zy9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [746 x i8] c"\0A\0A\09This program will use Markov Modeling to write sentences and paragraphs using probability analysis of words and their adjacent words from given input files. As such you must input at least one file (preferably a text file of decent size to give the most\0Aaccurate word predictions) for the Markov Babbler to read before it can begin constructing coherent-ish sentences. The babbler uses a pseudo-random process to grab next words, so every time you run the babbler on the same input file(s), it should produce new and unique outputs. Be warned though, there is a high probability that if your text file contains loops between next words (i.e. it says \22then I\22 and later says \22I then\22) the babbler might get caught in unwanted loops. Have fun!\0A\00", align 1
@.str.1 = private unnamed_addr constant [94 x i8] c"============================================================================================\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @msg_intro() #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/tmpslev2btv.c'
source_filename = "/tmp/tmpslev2btv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"[\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%d, \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_array(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %31, %2
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %34
11: ; preds = %7
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %4, align 4
%14 = sub nsw i32 %13, 1
%15 = icmp eq i32 %12, %14
br i1 %15, label %16, label %23
16: ; preds = %11
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %5, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %17, i64 %19
%21 = load i32, ptr %20, align 4
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %21)
br label %30
23: ; preds = %11
%24 = load ptr, ptr %3, align 8
%25 = load i32, ptr %5, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i32, ptr %24, i64 %26
%28 = load i32, ptr %27, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %28)
br label %30
30: ; preds = %23, %16
br label %31
31: ; preds = %30
%32 = load i32, ptr %5, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %5, align 4
br label %7, !llvm.loop !6
34: ; preds = %7
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpslev2btv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"[\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%d, \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_array(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %.lr.ph, label %36
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %30
%11 = load i32, ptr %5, align 4
%12 = load i32, ptr %4, align 4
%13 = sub nsw i32 %12, 1
%14 = icmp eq i32 %11, %13
br i1 %14, label %15, label %22
15: ; preds = %10
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %5, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i32, ptr %16, i64 %18
%20 = load i32, ptr %19, align 4
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %20)
br label %29
22: ; preds = %10
%23 = load ptr, ptr %3, align 8
%24 = load i32, ptr %5, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %23, i64 %25
%27 = load i32, ptr %26, align 4
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %27)
br label %29
29: ; preds = %22, %15
br label %30
30: ; preds = %29
%31 = load i32, ptr %5, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %5, align 4
%33 = load i32, ptr %5, align 4
%34 = load i32, ptr %4, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %36
36: ; preds = %._crit_edge, %2
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpfoiyaak8.c'
source_filename = "/tmp/tmpfoiyaak8.c"
target datalayout = "e-m:e-p270: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/tmpfoiyaak8.c"
target datalayout = "e-m:e-p270: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/tmp8vt0w4u8.c'
source_filename = "/tmp/tmp8vt0w4u8.c"
target datalayout = "e-m:e-p270: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 [18 x i8] c"(%d : %s) :: %s \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @pd_debug(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 i32, ptr @stderr, align 4
%8 = load i32, ptr %6, align 4
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %4, align 8
%11 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str, i32 noundef %8, ptr noundef %9, ptr noundef %10)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8vt0w4u8.c"
target datalayout = "e-m:e-p270: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 [18 x i8] c"(%d : %s) :: %s \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @pd_debug(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 i32, ptr @stderr, align 4
%8 = load i32, ptr %6, align 4
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %4, align 8
%11 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str, i32 noundef %8, ptr noundef %9, ptr noundef %10)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp160yh_py.c'
source_filename = "/tmp/tmp160yh_py.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @free_convert_matrix(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds ptr, ptr %5, i64 %7
%9 = call i32 @free(ptr noundef %8)
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/tmp160yh_py.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @free_convert_matrix(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds ptr, ptr %5, i64 %7
%9 = call i32 @free(ptr noundef %8)
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/tmprlaej5hi.c'
source_filename = "/tmp/tmprlaej5hi.c"
target datalayout = "e-m:e-p270: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.gen_ROT.csum = private unnamed_addr constant [3 x i8] c"000", align 1
@__const.gen_ROT.s = private unnamed_addr constant [14 x i8] c"$GPROT,12.7,A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gen_ROT(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [3 x i8], align 1
%6 = alloca i32, align 4
%7 = alloca [14 x i8], align 1
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %5, ptr align 1 @__const.gen_ROT.csum, i64 3, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.gen_ROT.s, i64 14, i1 false)
%8 = load ptr, ptr %3, align 8
%9 = getelementptr inbounds i8, ptr %8, i64 2
%10 = getelementptr inbounds [14 x i8], ptr %7, i64 0, i64 0
%11 = call i32 @strcpy(ptr noundef %9, ptr noundef %10)
%12 = getelementptr inbounds [14 x i8], ptr %7, i64 0, i64 0
%13 = call i32 @strlen(ptr noundef %12)
%14 = add nsw i32 %13, 1
%15 = add nsw i32 %14, 2
store i32 %15, ptr %6, align 4
%16 = getelementptr inbounds [3 x i8], ptr %5, i64 0, i64 0
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %6, align 4
%19 = sub nsw i32 %18, 3
%20 = call i32 @checksum(ptr noundef %16, ptr noundef %17, i32 noundef %19)
%21 = load ptr, ptr %3, align 8
%22 = load i32, ptr %6, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %6, align 4
%24 = sext i32 %22 to i64
%25 = getelementptr inbounds i8, ptr %21, i64 %24
store i8 42, ptr %25, align 1
%26 = getelementptr inbounds [3 x i8], ptr %5, i64 0, i64 0
%27 = load i8, ptr %26, align 1
%28 = load ptr, ptr %3, align 8
%29 = load i32, ptr %6, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %6, align 4
%31 = sext i32 %29 to i64
%32 = getelementptr inbounds i8, ptr %28, i64 %31
store i8 %27, ptr %32, align 1
%33 = getelementptr inbounds [3 x i8], ptr %5, i64 0, i64 1
%34 = load i8, ptr %33, align 1
%35 = load ptr, ptr %3, align 8
%36 = load i32, ptr %6, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %6, align 4
%38 = sext i32 %36 to i64
%39 = getelementptr inbounds i8, ptr %35, i64 %38
store i8 %34, ptr %39, align 1
%40 = load ptr, ptr %3, align 8
%41 = load i32, ptr %6, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %6, align 4
%43 = sext i32 %41 to i64
%44 = getelementptr inbounds i8, ptr %40, i64 %43
store i8 13, ptr %44, align 1
%45 = load ptr, ptr %3, align 8
%46 = load i32, ptr %6, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %6, align 4
%48 = sext i32 %46 to i64
%49 = getelementptr inbounds i8, ptr %45, i64 %48
store i8 10, ptr %49, align 1
%50 = load ptr, ptr %3, align 8
%51 = load i32, ptr %6, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8, ptr %50, i64 %52
store i8 0, ptr %53, align 1
%54 = load i32, ptr %6, align 4
%55 = load ptr, ptr %4, align 8
store i32 %54, ptr %55, align 4
%56 = load i32, ptr %6, align 4
%57 = sub nsw i32 %56, 2
%58 = trunc i32 %57 to i8
%59 = load ptr, ptr %3, align 8
%60 = getelementptr inbounds i8, ptr %59, i64 1
store i8 %58, ptr %60, align 1
ret void
}
; 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 @strcpy(ptr noundef, ptr noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @checksum(ptr noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprlaej5hi.c"
target datalayout = "e-m:e-p270: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.gen_ROT.csum = private unnamed_addr constant [3 x i8] c"000", align 1
@__const.gen_ROT.s = private unnamed_addr constant [14 x i8] c"$GPROT,12.7,A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gen_ROT(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [3 x i8], align 1
%6 = alloca i32, align 4
%7 = alloca [14 x i8], align 1
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %5, ptr align 1 @__const.gen_ROT.csum, i64 3, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.gen_ROT.s, i64 14, i1 false)
%8 = load ptr, ptr %3, align 8
%9 = getelementptr inbounds i8, ptr %8, i64 2
%10 = getelementptr inbounds [14 x i8], ptr %7, i64 0, i64 0
%11 = call i32 @strcpy(ptr noundef %9, ptr noundef %10)
%12 = getelementptr inbounds [14 x i8], ptr %7, i64 0, i64 0
%13 = call i32 @strlen(ptr noundef %12)
%14 = add nsw i32 %13, 1
%15 = add nsw i32 %14, 2
store i32 %15, ptr %6, align 4
%16 = getelementptr inbounds [3 x i8], ptr %5, i64 0, i64 0
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %6, align 4
%19 = sub nsw i32 %18, 3
%20 = call i32 @checksum(ptr noundef %16, ptr noundef %17, i32 noundef %19)
%21 = load ptr, ptr %3, align 8
%22 = load i32, ptr %6, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %6, align 4
%24 = sext i32 %22 to i64
%25 = getelementptr inbounds i8, ptr %21, i64 %24
store i8 42, ptr %25, align 1
%26 = getelementptr inbounds [3 x i8], ptr %5, i64 0, i64 0
%27 = load i8, ptr %26, align 1
%28 = load ptr, ptr %3, align 8
%29 = load i32, ptr %6, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %6, align 4
%31 = sext i32 %29 to i64
%32 = getelementptr inbounds i8, ptr %28, i64 %31
store i8 %27, ptr %32, align 1
%33 = getelementptr inbounds [3 x i8], ptr %5, i64 0, i64 1
%34 = load i8, ptr %33, align 1
%35 = load ptr, ptr %3, align 8
%36 = load i32, ptr %6, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %6, align 4
%38 = sext i32 %36 to i64
%39 = getelementptr inbounds i8, ptr %35, i64 %38
store i8 %34, ptr %39, align 1
%40 = load ptr, ptr %3, align 8
%41 = load i32, ptr %6, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %6, align 4
%43 = sext i32 %41 to i64
%44 = getelementptr inbounds i8, ptr %40, i64 %43
store i8 13, ptr %44, align 1
%45 = load ptr, ptr %3, align 8
%46 = load i32, ptr %6, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %6, align 4
%48 = sext i32 %46 to i64
%49 = getelementptr inbounds i8, ptr %45, i64 %48
store i8 10, ptr %49, align 1
%50 = load ptr, ptr %3, align 8
%51 = load i32, ptr %6, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8, ptr %50, i64 %52
store i8 0, ptr %53, align 1
%54 = load i32, ptr %6, align 4
%55 = load ptr, ptr %4, align 8
store i32 %54, ptr %55, align 4
%56 = load i32, ptr %6, align 4
%57 = sub nsw i32 %56, 2
%58 = trunc i32 %57 to i8
%59 = load ptr, ptr %3, align 8
%60 = getelementptr inbounds i8, ptr %59, i64 1
store i8 %58, ptr %60, align 1
ret void
}
; 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 @strcpy(ptr noundef, ptr noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @checksum(ptr noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7bm0hxro.c'
source_filename = "/tmp/tmp7bm0hxro.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"Introduce a personal number!\0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"Algorithm control %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Real last digit %c\0A\00", align 1
@.str.3 = private unnamed_addr constant [34 x i8] c"The year of your birthday is: %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [35 x i8] c"The month of your birthday is: %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [33 x i8] c"The day of your birthday is: %d\0A\00", align 1
@stdin = dso_local global i32 0, align 4
@SEEK_END = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [11 x i8], align 1
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = getelementptr inbounds [11 x i8], ptr %2, i64 0, i64 0
store ptr %8, ptr %3, align 8
br label %9
9: ; preds = %46, %0
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = load ptr, ptr %3, align 8
%12 = call i32 @readPersnr(ptr noundef %11)
%13 = load ptr, ptr %3, align 8
%14 = call i32 @controlDigit(ptr noundef %13)
store i32 %14, ptr %4, align 4
%15 = load i32, ptr %4, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %15)
%17 = getelementptr inbounds [11 x i8], ptr %2, i64 0, i64 9
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %19)
%21 = load i32, ptr %4, align 4
%22 = getelementptr inbounds [11 x i8], ptr %2, i64 0, i64 9
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = sub nsw i32 %24, 48
%26 = icmp eq i32 %21, %25
br i1 %26, label %27, label %40
27: ; preds = %9
%28 = load ptr, ptr %3, align 8
%29 = call i32 @takeYear(ptr noundef %28)
store i32 %29, ptr %7, align 4
%30 = load i32, ptr %7, align 4
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %30)
%32 = load ptr, ptr %3, align 8
%33 = call i32 @takeMonth(ptr noundef %32)
store i32 %33, ptr %6, align 4
%34 = load i32, ptr %6, align 4
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %34)
%36 = load ptr, ptr %3, align 8
%37 = call i32 @takeDay(ptr noundef %36)
store i32 %37, ptr %5, align 4
%38 = load i32, ptr %5, align 4
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %38)
br label %40
40: ; preds = %27, %9
%41 = load i32, ptr @stdin, align 4
%42 = load i32, ptr @SEEK_END, align 4
%43 = call i32 @fseek(i32 noundef %41, i32 noundef 0, i32 noundef %42)
%44 = load i32, ptr @stdin, align 4
%45 = call i32 @fflush(i32 noundef %44)
br label %46
46: ; preds = %40
%47 = getelementptr inbounds [11 x i8], ptr %2, i64 0, i64 0
%48 = load i8, ptr %47, align 1
%49 = sext i8 %48 to i32
%50 = icmp ne i32 %49, 113
br i1 %50, label %9, label %51, !llvm.loop !6
51: ; preds = %46
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @readPersnr(ptr noundef) #1
declare i32 @controlDigit(ptr noundef) #1
declare i32 @takeYear(ptr noundef) #1
declare i32 @takeMonth(ptr noundef) #1
declare i32 @takeDay(ptr noundef) #1
declare i32 @fseek(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fflush(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7bm0hxro.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"Introduce a personal number!\0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"Algorithm control %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Real last digit %c\0A\00", align 1
@.str.3 = private unnamed_addr constant [34 x i8] c"The year of your birthday is: %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [35 x i8] c"The month of your birthday is: %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [33 x i8] c"The day of your birthday is: %d\0A\00", align 1
@stdin = dso_local global i32 0, align 4
@SEEK_END = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [11 x i8], align 1
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = getelementptr inbounds [11 x i8], ptr %2, i64 0, i64 0
store ptr %8, ptr %3, align 8
%9 = getelementptr inbounds [11 x i8], ptr %2, i64 0, i64 0
br label %10
10: ; preds = %47, %0
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%12 = load ptr, ptr %3, align 8
%13 = call i32 @readPersnr(ptr noundef %12)
%14 = load ptr, ptr %3, align 8
%15 = call i32 @controlDigit(ptr noundef %14)
store i32 %15, ptr %4, align 4
%16 = load i32, ptr %4, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %16)
%18 = getelementptr inbounds [11 x i8], ptr %2, i64 0, i64 9
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %20)
%22 = load i32, ptr %4, align 4
%23 = getelementptr inbounds [11 x i8], ptr %2, i64 0, i64 9
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = sub nsw i32 %25, 48
%27 = icmp eq i32 %22, %26
br i1 %27, label %28, label %41
28: ; preds = %10
%29 = load ptr, ptr %3, align 8
%30 = call i32 @takeYear(ptr noundef %29)
store i32 %30, ptr %7, align 4
%31 = load i32, ptr %7, align 4
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %31)
%33 = load ptr, ptr %3, align 8
%34 = call i32 @takeMonth(ptr noundef %33)
store i32 %34, ptr %6, align 4
%35 = load i32, ptr %6, align 4
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %35)
%37 = load ptr, ptr %3, align 8
%38 = call i32 @takeDay(ptr noundef %37)
store i32 %38, ptr %5, align 4
%39 = load i32, ptr %5, align 4
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %39)
br label %41
41: ; preds = %28, %10
%42 = load i32, ptr @stdin, align 4
%43 = load i32, ptr @SEEK_END, align 4
%44 = call i32 @fseek(i32 noundef %42, i32 noundef 0, i32 noundef %43)
%45 = load i32, ptr @stdin, align 4
%46 = call i32 @fflush(i32 noundef %45)
br label %47
47: ; preds = %41
%48 = load i8, ptr %9, align 1
%49 = sext i8 %48 to i32
%50 = icmp ne i32 %49, 113
br i1 %50, label %10, label %51, !llvm.loop !6
51: ; preds = %47
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @readPersnr(ptr noundef) #1
declare i32 @controlDigit(ptr noundef) #1
declare i32 @takeYear(ptr noundef) #1
declare i32 @takeMonth(ptr noundef) #1
declare i32 @takeDay(ptr noundef) #1
declare i32 @fseek(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fflush(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpni4f0x5d.c'
source_filename = "/tmp/tmpni4f0x5d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"\0AChoose please what you want to do:\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"1. Test getline function.\0A\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"2. Test atoi function.\0A\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"3. Test itoa function.\0A\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"4. Test reverse function.\0A\00", align 1
@.str.5 = private unnamed_addr constant [28 x i8] c"5. Test strindex function.\0A\00", align 1
@.str.6 = private unnamed_addr constant [25 x i8] c"6. Test getop function.\0A\00", align 1
@.str.7 = private unnamed_addr constant [39 x i8] c"Repeat. To repeat variants enter \22r\22.\0A\00", align 1
@.str.8 = private unnamed_addr constant [27 x i8] c"Exit. Fot quit enter \22q\22.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_variants() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
%7 = call i32 @printf(ptr noundef @.str.6)
%8 = call i32 @printf(ptr noundef @.str.7)
%9 = call i32 @printf(ptr noundef @.str.8)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpni4f0x5d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"\0AChoose please what you want to do:\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"1. Test getline function.\0A\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"2. Test atoi function.\0A\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"3. Test itoa function.\0A\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"4. Test reverse function.\0A\00", align 1
@.str.5 = private unnamed_addr constant [28 x i8] c"5. Test strindex function.\0A\00", align 1
@.str.6 = private unnamed_addr constant [25 x i8] c"6. Test getop function.\0A\00", align 1
@.str.7 = private unnamed_addr constant [39 x i8] c"Repeat. To repeat variants enter \22r\22.\0A\00", align 1
@.str.8 = private unnamed_addr constant [27 x i8] c"Exit. Fot quit enter \22q\22.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_variants() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
%7 = call i32 @printf(ptr noundef @.str.6)
%8 = call i32 @printf(ptr noundef @.str.7)
%9 = call i32 @printf(ptr noundef @.str.8)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbtrhba9m.c'
source_filename = "/tmp/tmpbtrhba9m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @CFree(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp ne ptr %3, null
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load ptr, ptr %2, align 8
%7 = call i32 @free(ptr noundef %6)
br label %8
8: ; preds = %5, %1
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/tmpbtrhba9m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @CFree(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp ne ptr %3, null
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load ptr, ptr %2, align 8
%7 = call i32 @free(ptr noundef %6)
br label %8
8: ; preds = %5, %1
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/tmp63g1gygu.c'
source_filename = "/tmp/tmp63g1gygu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [79 x i8] c"Usage: [-t <testname>] [-f <fixturename>] [-d] [help] [-v] [-m] [-k <marker>\0D\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"Flags:\0D\0A\00", align 1
@.str.2 = private unnamed_addr constant [32 x i8] c"\09help:\09will display this help\0D\0A\00", align 1
@.str.3 = private unnamed_addr constant [49 x i8] c"\09-t:\09will only run tests that match <testname>\0D\0A\00", align 1
@.str.4 = private unnamed_addr constant [55 x i8] c"\09-f:\09will only run fixtures that match <fixturename>\0D\0A\00", align 1
@.str.5 = private unnamed_addr constant [57 x i8] c"\09-d:\09will just display test names and fixtures without\0D\0A\00", align 1
@.str.6 = private unnamed_addr constant [24 x i8] c"\09-d:\09running the test\0D\0A\00", align 1
@.str.7 = private unnamed_addr constant [57 x i8] c"\09-v:\09will print a more verbose version of the test run\0D\0A\00", align 1
@.str.8 = private unnamed_addr constant [68 x i8] c"\09-m:\09will print a machine readable format of the test run, ie :- \0D\0A\00", align 1
@.str.9 = private unnamed_addr constant [63 x i8] c"\09 \09<textfixture>,<testname>,<linenumber>,<testresult><EOL>\0D\0A\00", align 1
@.str.10 = private unnamed_addr constant [61 x i8] c"\09-k:\09will prepend <marker> before machine readable output \0D\0A\00", align 1
@.str.11 = private unnamed_addr constant [40 x i8] c"\09 \09<marker> cannot start with a '-'\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @seatest_show_help() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
%7 = call i32 @printf(ptr noundef @.str.6)
%8 = call i32 @printf(ptr noundef @.str.7)
%9 = call i32 @printf(ptr noundef @.str.8)
%10 = call i32 @printf(ptr noundef @.str.9)
%11 = call i32 @printf(ptr noundef @.str.10)
%12 = call i32 @printf(ptr noundef @.str.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/tmp63g1gygu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [79 x i8] c"Usage: [-t <testname>] [-f <fixturename>] [-d] [help] [-v] [-m] [-k <marker>\0D\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"Flags:\0D\0A\00", align 1
@.str.2 = private unnamed_addr constant [32 x i8] c"\09help:\09will display this help\0D\0A\00", align 1
@.str.3 = private unnamed_addr constant [49 x i8] c"\09-t:\09will only run tests that match <testname>\0D\0A\00", align 1
@.str.4 = private unnamed_addr constant [55 x i8] c"\09-f:\09will only run fixtures that match <fixturename>\0D\0A\00", align 1
@.str.5 = private unnamed_addr constant [57 x i8] c"\09-d:\09will just display test names and fixtures without\0D\0A\00", align 1
@.str.6 = private unnamed_addr constant [24 x i8] c"\09-d:\09running the test\0D\0A\00", align 1
@.str.7 = private unnamed_addr constant [57 x i8] c"\09-v:\09will print a more verbose version of the test run\0D\0A\00", align 1
@.str.8 = private unnamed_addr constant [68 x i8] c"\09-m:\09will print a machine readable format of the test run, ie :- \0D\0A\00", align 1
@.str.9 = private unnamed_addr constant [63 x i8] c"\09 \09<textfixture>,<testname>,<linenumber>,<testresult><EOL>\0D\0A\00", align 1
@.str.10 = private unnamed_addr constant [61 x i8] c"\09-k:\09will prepend <marker> before machine readable output \0D\0A\00", align 1
@.str.11 = private unnamed_addr constant [40 x i8] c"\09 \09<marker> cannot start with a '-'\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @seatest_show_help() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
%7 = call i32 @printf(ptr noundef @.str.6)
%8 = call i32 @printf(ptr noundef @.str.7)
%9 = call i32 @printf(ptr noundef @.str.8)
%10 = call i32 @printf(ptr noundef @.str.9)
%11 = call i32 @printf(ptr noundef @.str.10)
%12 = call i32 @printf(ptr noundef @.str.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/tmpbq76la_y.c'
source_filename = "/tmp/tmpbq76la_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"
@__const.main.buffer = private unnamed_addr constant [20 x i8] c" \09hola guapo\0A\00", align 16
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"\0A\0A-----------------\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Tamanio cadena: %lu\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"\0A*** Memoria Liberada ***\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"\0A*** Memoria NO Liberada ***\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [20 x i8], align 16
%3 = alloca ptr, align 8
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.buffer, i64 20, i1 false)
%4 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
store ptr %4, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = call ptr @eliminaEspacios(ptr noundef %5)
store ptr %6, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %7)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%10 = load ptr, ptr %3, align 8
%11 = call i32 @strlen(ptr noundef %10)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %11)
%13 = load ptr, ptr %3, align 8
%14 = icmp ne ptr null, %13
br i1 %14, label %15, label %19
15: ; preds = %0
%16 = load ptr, ptr %3, align 8
%17 = call i32 @free(ptr noundef %16)
store ptr null, ptr %3, align 8
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %21
19: ; preds = %0
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %21
21: ; preds = %19, %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 ptr @eliminaEspacios(ptr noundef) #2
declare i32 @printf(ptr noundef, ...) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @free(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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/tmpbq76la_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"
@__const.main.buffer = private unnamed_addr constant [20 x i8] c" \09hola guapo\0A\00", align 16
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"\0A\0A-----------------\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Tamanio cadena: %lu\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"\0A*** Memoria Liberada ***\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"\0A*** Memoria NO Liberada ***\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [20 x i8], align 16
%3 = alloca ptr, align 8
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.buffer, i64 20, i1 false)
%4 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
store ptr %4, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = call ptr @eliminaEspacios(ptr noundef %5)
store ptr %6, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %7)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%10 = load ptr, ptr %3, align 8
%11 = call i32 @strlen(ptr noundef %10)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %11)
%13 = load ptr, ptr %3, align 8
%14 = icmp ne ptr null, %13
br i1 %14, label %15, label %19
15: ; preds = %0
%16 = load ptr, ptr %3, align 8
%17 = call i32 @free(ptr noundef %16)
store ptr null, ptr %3, align 8
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %21
19: ; preds = %0
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %21
21: ; preds = %19, %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 ptr @eliminaEspacios(ptr noundef) #2
declare i32 @printf(ptr noundef, ...) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @free(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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/tmpc3xlowp0.c'
source_filename = "/tmp/tmpc3xlowp0.c"
target datalayout = "e-m:e-p270: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 [52 x i8] c"Error. Usage: %s <string> -r <rating> -s <stlfile>\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @usageError(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load i32, ptr @stderr, align 4
%5 = load ptr, ptr %3, align 8
%6 = call i32 @fprintf(i32 noundef %4, ptr noundef @.str, ptr noundef %5)
%7 = load i32, ptr %2, align 4
ret i32 %7
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc3xlowp0.c"
target datalayout = "e-m:e-p270: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 [52 x i8] c"Error. Usage: %s <string> -r <rating> -s <stlfile>\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @usageError(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load i32, ptr @stderr, align 4
%5 = load ptr, ptr %3, align 8
%6 = call i32 @fprintf(i32 noundef %4, ptr noundef @.str, ptr noundef %5)
%7 = load i32, ptr %2, align 4
ret i32 %7
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpstm8l6sh.c'
source_filename = "/tmp/tmpstm8l6sh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mlMatrixTranslate(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [16 x float], align 16
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %4, align 8
%8 = getelementptr inbounds [16 x float], ptr %5, i64 0, i64 0
%9 = call i32 @mlMatrixTranslateTo(ptr noundef %6, ptr noundef %7, ptr noundef %8)
%10 = getelementptr inbounds [16 x float], ptr %5, i64 0, i64 0
%11 = load ptr, ptr %3, align 8
%12 = call i32 @mlMatrixCopy(ptr noundef %10, ptr noundef %11)
ret void
}
declare i32 @mlMatrixTranslateTo(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @mlMatrixCopy(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/tmpstm8l6sh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mlMatrixTranslate(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [16 x float], align 16
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %4, align 8
%8 = getelementptr inbounds [16 x float], ptr %5, i64 0, i64 0
%9 = call i32 @mlMatrixTranslateTo(ptr noundef %6, ptr noundef %7, ptr noundef %8)
%10 = getelementptr inbounds [16 x float], ptr %5, i64 0, i64 0
%11 = load ptr, ptr %3, align 8
%12 = call i32 @mlMatrixCopy(ptr noundef %10, ptr noundef %11)
ret void
}
declare i32 @mlMatrixTranslateTo(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @mlMatrixCopy(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/tmp1v9tnrik.c'
source_filename = "/tmp/tmp1v9tnrik.c"
target datalayout = "e-m:e-p270: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/tmp1v9tnrik.c"
target datalayout = "e-m:e-p270: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/tmpx4dkjdtd.c'
source_filename = "/tmp/tmpx4dkjdtd.c"
target datalayout = "e-m:e-p270: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 [13 x i8] c"test failed\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_fail_handler() #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/tmpx4dkjdtd.c"
target datalayout = "e-m:e-p270: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 [13 x i8] c"test failed\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_fail_handler() #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/tmp7sseaf8o.c'
source_filename = "/tmp/tmp7sseaf8o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @hash(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %18, %2
%7 = load ptr, ptr %3, align 8
%8 = load i8, ptr %7, align 1
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %21
11: ; preds = %6
%12 = load ptr, ptr %3, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = load i32, ptr %5, align 4
%16 = mul i32 31, %15
%17 = add i32 %14, %16
store i32 %17, ptr %5, align 4
br label %18
18: ; preds = %11
%19 = load ptr, ptr %3, align 8
%20 = getelementptr inbounds i8, ptr %19, i32 1
store ptr %20, ptr %3, align 8
br label %6, !llvm.loop !6
21: ; preds = %6
%22 = load i32, ptr %5, align 4
%23 = zext i32 %22 to i64
%24 = load i64, ptr %4, align 8
%25 = urem i64 %23, %24
%26 = trunc i64 %25 to i32
ret i32 %26
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7sseaf8o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @hash(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i32 0, ptr %5, align 4
%6 = load ptr, ptr %3, align 8
%7 = load i8, ptr %6, align 1
%8 = sext i8 %7 to i32
%9 = icmp ne i32 %8, 0
br i1 %9, label %.lr.ph, label %24
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %17
%11 = load ptr, ptr %3, align 8
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = load i32, ptr %5, align 4
%15 = mul i32 31, %14
%16 = add i32 %13, %15
store i32 %16, ptr %5, align 4
br label %17
17: ; preds = %10
%18 = load ptr, ptr %3, align 8
%19 = getelementptr inbounds i8, ptr %18, i32 1
store ptr %19, ptr %3, align 8
%20 = load ptr, ptr %3, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 0
br i1 %23, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %24
24: ; preds = %._crit_edge, %2
%25 = load i32, ptr %5, align 4
%26 = zext i32 %25 to i64
%27 = load i64, ptr %4, align 8
%28 = urem i64 %26, %27
%29 = trunc i64 %28 to i32
ret i32 %29
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpa6ijwnwg.c'
source_filename = "/tmp/tmpa6ijwnwg.c"
target datalayout = "e-m:e-p270: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.s1 = private unnamed_addr constant [7 x i8] c"first \00", align 1
@__const.main.s2 = private unnamed_addr constant [5 x i8] c"name\00", align 1
@.str = 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 [7 x i8], align 1
%3 = alloca [5 x i8], align 1
%4 = alloca ptr, align 8
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.main.s1, i64 7, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.s2, i64 5, i1 false)
%5 = getelementptr inbounds [7 x i8], ptr %2, i64 0, i64 0
%6 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 0
%7 = call ptr @concat(ptr noundef %5, ptr noundef %6)
store ptr %7, ptr %4, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 @printf(ptr noundef @.str, ptr noundef %8)
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 ptr @concat(ptr noundef, ptr noundef) #2
declare i32 @printf(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/tmpa6ijwnwg.c"
target datalayout = "e-m:e-p270: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.s1 = private unnamed_addr constant [7 x i8] c"first \00", align 1
@__const.main.s2 = private unnamed_addr constant [5 x i8] c"name\00", align 1
@.str = 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 [7 x i8], align 1
%3 = alloca [5 x i8], align 1
%4 = alloca ptr, align 8
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.main.s1, i64 7, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.s2, i64 5, i1 false)
%5 = getelementptr inbounds [7 x i8], ptr %2, i64 0, i64 0
%6 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 0
%7 = call ptr @concat(ptr noundef %5, ptr noundef %6)
store ptr %7, ptr %4, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 @printf(ptr noundef @.str, ptr noundef %8)
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 ptr @concat(ptr noundef, ptr noundef) #2
declare i32 @printf(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/tmpb1t47lig.c'
source_filename = "/tmp/tmpb1t47lig.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @atof(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 float @atod(ptr noundef %3)
ret float %4
}
declare float @atod(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb1t47lig.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @atof(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 float @atod(ptr noundef %3)
ret float %4
}
declare float @atod(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1admzodx.c'
source_filename = "/tmp/tmp1admzodx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stat(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 @__xstat(i32 noundef 1, ptr noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @__xstat(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1admzodx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stat(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 @__xstat(i32 noundef 1, ptr noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @__xstat(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpng3pj0_6.c'
source_filename = "/tmp/tmpng3pj0_6.c"
target datalayout = "e-m:e-p270: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_3__ = type { i32, i32, i32, i32 }
@get_text_extents.text = internal global ptr @.str, align 8
@.str = private unnamed_addr constant [16 x i8] c"1000x1000+50+50\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @get_text_extents(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
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca %struct.TYPE_3__, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%11 = load ptr, ptr %4, align 8
%12 = load ptr, ptr @get_text_extents.text, align 8
%13 = load ptr, ptr @get_text_extents.text, align 8
%14 = call i32 @strlen(ptr noundef %13)
%15 = call i32 @XTextExtents(ptr noundef %11, ptr noundef %12, i32 noundef %14, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10)
%16 = getelementptr inbounds %struct.TYPE_3__, ptr %10, i32 0, i32 0
%17 = load i32, ptr %16, align 4
%18 = getelementptr inbounds %struct.TYPE_3__, ptr %10, i32 0, i32 1
%19 = load i32, ptr %18, align 4
%20 = add nsw i32 %17, %19
%21 = add nsw i32 %20, 2
%22 = load ptr, ptr %6, align 8
store i32 %21, ptr %22, align 4
%23 = getelementptr inbounds %struct.TYPE_3__, ptr %10, i32 0, i32 2
%24 = load i32, ptr %23, align 4
%25 = getelementptr inbounds %struct.TYPE_3__, ptr %10, i32 0, i32 3
%26 = load i32, ptr %25, align 4
%27 = sub nsw i32 %24, %26
%28 = load ptr, ptr %5, align 8
store i32 %27, ptr %28, align 4
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %29, align 4
%31 = sitofp i32 %30 to double
%32 = fadd double %31, 1.500000e+01
%33 = fptosi double %32 to i32
store i32 %33, ptr %29, align 4
ret void
}
declare i32 @XTextExtents(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpng3pj0_6.c"
target datalayout = "e-m:e-p270: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_3__ = type { i32, i32, i32, i32 }
@get_text_extents.text = internal global ptr @.str, align 8
@.str = private unnamed_addr constant [16 x i8] c"1000x1000+50+50\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @get_text_extents(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
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca %struct.TYPE_3__, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%11 = load ptr, ptr %4, align 8
%12 = load ptr, ptr @get_text_extents.text, align 8
%13 = load ptr, ptr @get_text_extents.text, align 8
%14 = call i32 @strlen(ptr noundef %13)
%15 = call i32 @XTextExtents(ptr noundef %11, ptr noundef %12, i32 noundef %14, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10)
%16 = getelementptr inbounds %struct.TYPE_3__, ptr %10, i32 0, i32 0
%17 = load i32, ptr %16, align 4
%18 = getelementptr inbounds %struct.TYPE_3__, ptr %10, i32 0, i32 1
%19 = load i32, ptr %18, align 4
%20 = add nsw i32 %17, %19
%21 = add nsw i32 %20, 2
%22 = load ptr, ptr %6, align 8
store i32 %21, ptr %22, align 4
%23 = getelementptr inbounds %struct.TYPE_3__, ptr %10, i32 0, i32 2
%24 = load i32, ptr %23, align 4
%25 = getelementptr inbounds %struct.TYPE_3__, ptr %10, i32 0, i32 3
%26 = load i32, ptr %25, align 4
%27 = sub nsw i32 %24, %26
%28 = load ptr, ptr %5, align 8
store i32 %27, ptr %28, align 4
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %29, align 4
%31 = sitofp i32 %30 to double
%32 = fadd double %31, 1.500000e+01
%33 = fptosi double %32 to i32
store i32 %33, ptr %29, align 4
ret void
}
declare i32 @XTextExtents(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjlsbvvrl.c'
source_filename = "/tmp/tmpjlsbvvrl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @uart_init() #0 {
%1 = call i32 @outb(i32 noundef 0, i32 noundef 1017)
%2 = call i32 @outb(i32 noundef 1, i32 noundef 1018)
%3 = call i32 @outb(i32 noundef 131, i32 noundef 1019)
%4 = call i32 @outb(i32 noundef 1, i32 noundef 1016)
%5 = call i32 @outb(i32 noundef 0, i32 noundef 1017)
%6 = call i32 @outb(i32 noundef 3, i32 noundef 1019)
ret void
}
declare i32 @outb(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/tmpjlsbvvrl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @uart_init() #0 {
%1 = call i32 @outb(i32 noundef 0, i32 noundef 1017)
%2 = call i32 @outb(i32 noundef 1, i32 noundef 1018)
%3 = call i32 @outb(i32 noundef 131, i32 noundef 1019)
%4 = call i32 @outb(i32 noundef 1, i32 noundef 1016)
%5 = call i32 @outb(i32 noundef 0, i32 noundef 1017)
%6 = call i32 @outb(i32 noundef 3, i32 noundef 1019)
ret void
}
declare i32 @outb(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/tmpldj_i83t.c'
source_filename = "/tmp/tmpldj_i83t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"/\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"path\00", align 1
@.str.2 = private unnamed_addr constant [144 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/guicho271828/roswell/refs/heads/master/src/util_dir.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @pathname_directory(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @strlen(ptr noundef %5)
%7 = sub nsw i32 %6, 1
store i32 %7, ptr %3, align 4
br label %8
8: ; preds = %24, %1
%9 = load i32, ptr %3, align 4
%10 = icmp sge i32 %9, 0
br i1 %10, label %11, label %21
11: ; preds = %8
%12 = load ptr, ptr %2, align 8
%13 = load i32, ptr %3, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = load i8, ptr @.str, align 1
%19 = sext i8 %18 to i32
%20 = icmp ne i32 %17, %19
br label %21
21: ; preds = %11, %8
%22 = phi i1 [ false, %8 ], [ %20, %11 ]
br i1 %22, label %23, label %27
23: ; preds = %21
br label %24
24: ; preds = %23
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, -1
store i32 %26, ptr %3, align 4
br label %8, !llvm.loop !6
27: ; preds = %21
%28 = load ptr, ptr %2, align 8
%29 = load i32, ptr %3, align 4
%30 = call i32 @subseq(ptr noundef %28, i32 noundef 0, i32 noundef %29)
%31 = call ptr @append_trail_slash(i32 noundef %30)
store ptr %31, ptr %4, align 8
%32 = load ptr, ptr %2, align 8
%33 = call i32 @s_internal(ptr noundef %32, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 60)
%34 = load ptr, ptr %4, align 8
ret ptr %34
}
declare i32 @strlen(ptr noundef) #1
declare ptr @append_trail_slash(i32 noundef) #1
declare i32 @subseq(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @s_internal(ptr noundef, 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/tmpldj_i83t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"/\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"path\00", align 1
@.str.2 = private unnamed_addr constant [144 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/guicho271828/roswell/refs/heads/master/src/util_dir.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @pathname_directory(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @strlen(ptr noundef %5)
%7 = sub nsw i32 %6, 1
store i32 %7, ptr %3, align 4
br label %8
8: ; preds = %24, %1
%9 = load i32, ptr %3, align 4
%10 = icmp sge i32 %9, 0
br i1 %10, label %11, label %21
11: ; preds = %8
%12 = load ptr, ptr %2, align 8
%13 = load i32, ptr %3, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = load i8, ptr @.str, align 1
%19 = sext i8 %18 to i32
%20 = icmp ne i32 %17, %19
br label %21
21: ; preds = %11, %8
%22 = phi i1 [ false, %8 ], [ %20, %11 ]
br i1 %22, label %23, label %27
23: ; preds = %21
br label %24
24: ; preds = %23
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, -1
store i32 %26, ptr %3, align 4
br label %8, !llvm.loop !6
27: ; preds = %21
%28 = load ptr, ptr %2, align 8
%29 = load i32, ptr %3, align 4
%30 = call i32 @subseq(ptr noundef %28, i32 noundef 0, i32 noundef %29)
%31 = call ptr @append_trail_slash(i32 noundef %30)
store ptr %31, ptr %4, align 8
%32 = load ptr, ptr %2, align 8
%33 = call i32 @s_internal(ptr noundef %32, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 60)
%34 = load ptr, ptr %4, align 8
ret ptr %34
}
declare i32 @strlen(ptr noundef) #1
declare ptr @append_trail_slash(i32 noundef) #1
declare i32 @subseq(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @s_internal(ptr noundef, 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/tmp0mg6y8dk.c'
source_filename = "/tmp/tmp0mg6y8dk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"\0A%c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca i8, align 1
store i32 0, ptr %1, align 4
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%5 = load i8, ptr %2, align 1
%6 = sext i8 %5 to i32
%7 = sub nsw i32 %6, 97
%8 = sub nsw i32 122, %7
%9 = trunc i32 %8 to i8
store i8 %9, ptr %3, align 1
%10 = load i8, ptr %3, align 1
%11 = call i32 @printf(ptr noundef @.str.1, i8 noundef signext %10)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0mg6y8dk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"\0A%c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca i8, align 1
store i32 0, ptr %1, align 4
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%5 = load i8, ptr %2, align 1
%6 = sext i8 %5 to i32
%7 = sub nsw i32 %6, 97
%8 = sub nsw i32 122, %7
%9 = trunc i32 %8 to i8
store i8 %9, ptr %3, align 1
%10 = load i8, ptr %3, align 1
%11 = call i32 @printf(ptr noundef @.str.1, i8 noundef signext %10)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp11uboivf.c'
source_filename = "/tmp/tmp11uboivf.c"
target datalayout = "e-m:e-p270: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/tmp11uboivf.c"
target datalayout = "e-m:e-p270: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/tmpnf84oh_b.c'
source_filename = "/tmp/tmpnf84oh_b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_spew(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 @__console_tx_string(ptr noundef %3)
ret void
}
declare i32 @__console_tx_string(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnf84oh_b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_spew(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 @__console_tx_string(ptr noundef %3)
ret void
}
declare i32 @__console_tx_string(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplojvt9b8.c'
source_filename = "/tmp/tmplojvt9b8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.dirent = type { i32 }
@osal_search_dir_read_next.last_filename = internal constant [260 x i32] zeroinitializer, align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @osal_search_dir_read_next(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = call ptr @readdir(ptr noundef %7)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %12
11: ; preds = %1
store ptr null, ptr %2, align 8
br label %17
12: ; preds = %1
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds %struct.dirent, ptr %13, i32 0, i32 0
%15 = load i32, ptr %14, align 4
%16 = call i32 @mbstowcs(ptr noundef @osal_search_dir_read_next.last_filename, i32 noundef %15, i32 noundef 260)
store ptr @osal_search_dir_read_next.last_filename, ptr %2, align 8
br label %17
17: ; preds = %12, %11
%18 = load ptr, ptr %2, align 8
ret ptr %18
}
declare ptr @readdir(ptr noundef) #1
declare i32 @mbstowcs(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/tmplojvt9b8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.dirent = type { i32 }
@osal_search_dir_read_next.last_filename = internal constant [260 x i32] zeroinitializer, align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @osal_search_dir_read_next(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = call ptr @readdir(ptr noundef %7)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %12
11: ; preds = %1
store ptr null, ptr %2, align 8
br label %17
12: ; preds = %1
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds %struct.dirent, ptr %13, i32 0, i32 0
%15 = load i32, ptr %14, align 4
%16 = call i32 @mbstowcs(ptr noundef @osal_search_dir_read_next.last_filename, i32 noundef %15, i32 noundef 260)
store ptr @osal_search_dir_read_next.last_filename, ptr %2, align 8
br label %17
17: ; preds = %12, %11
%18 = load ptr, ptr %2, align 8
ret ptr %18
}
declare ptr @readdir(ptr noundef) #1
declare i32 @mbstowcs(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/tmpftldwd9p.c'
source_filename = "/tmp/tmpftldwd9p.c"
target datalayout = "e-m:e-p270: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/tmpftldwd9p.c"
target datalayout = "e-m:e-p270: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/tmp3exsrx2e.c'
source_filename = "/tmp/tmp3exsrx2e.c"
target datalayout = "e-m:e-p270: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/tmp3exsrx2e.c"
target datalayout = "e-m:e-p270: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/tmpm00dokul.c'
source_filename = "/tmp/tmpm00dokul.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @equal_string(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i64 @strcmp(ptr noundef %5, ptr noundef %6)
%8 = icmp eq i64 %7, 0
%9 = zext i1 %8 to i32
ret i32 %9
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm00dokul.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @equal_string(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i64 @strcmp(ptr noundef %5, ptr noundef %6)
%8 = icmp eq i64 %7, 0
%9 = zext i1 %8 to i32
ret i32 %9
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpopt8rllo.c'
source_filename = "/tmp/tmpopt8rllo.c"
target datalayout = "e-m:e-p270: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.ifaddrs = type { i32, ptr, ptr, i32, ptr }
%struct.TYPE_3__ = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sock_getifaddr(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
%13 = call i32 @getifaddrs(ptr noundef %10)
%14 = icmp eq i32 %13, -1
br i1 %14, label %15, label %16
15: ; preds = %4
store i32 0, ptr %5, align 4
br label %88
16: ; preds = %4
store i32 0, ptr %12, align 4
%17 = load ptr, ptr %10, align 8
store ptr %17, ptr %11, align 8
br label %18
18: ; preds = %80, %16
%19 = load ptr, ptr %11, align 8
%20 = icmp ne ptr %19, null
br i1 %20, label %21, label %84
21: ; preds = %18
%22 = load ptr, ptr %6, align 8
%23 = load ptr, ptr %11, align 8
%24 = getelementptr inbounds %struct.ifaddrs, ptr %23, i32 0, i32 3
%25 = load i32, ptr %24, align 8
%26 = call i64 @strcmp(ptr noundef %22, i32 noundef %25)
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %21
br label %80
29: ; preds = %21
%30 = load ptr, ptr %11, align 8
%31 = getelementptr inbounds %struct.ifaddrs, ptr %30, i32 0, i32 1
%32 = load ptr, ptr %31, align 8
%33 = icmp eq ptr %32, null
br i1 %33, label %34, label %35
34: ; preds = %29
br label %80
35: ; preds = %29
%36 = load ptr, ptr %11, align 8
%37 = getelementptr inbounds %struct.ifaddrs, ptr %36, i32 0, i32 1
%38 = load ptr, ptr %37, align 8
%39 = getelementptr inbounds %struct.TYPE_3__, ptr %38, i32 0, i32 0
%40 = load i32, ptr %39, align 4
%41 = load i32, ptr %7, align 4
%42 = icmp ne i32 %40, %41
br i1 %42, label %43, label %44
43: ; preds = %35
br label %80
44: ; preds = %35
%45 = load i32, ptr %8, align 4
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %56
47: ; preds = %44
%48 = load ptr, ptr %11, align 8
%49 = getelementptr inbounds %struct.ifaddrs, ptr %48, i32 0, i32 0
%50 = load i32, ptr %49, align 8
%51 = load i32, ptr %8, align 4
%52 = and i32 %50, %51
%53 = icmp ne i32 %52, 0
br i1 %53, label %55, label %54
54: ; preds = %47
br label %80
55: ; preds = %47
br label %56
56: ; preds = %55, %44
%57 = load i32, ptr %8, align 4
switch i32 %57, label %78 [
i32 0, label %58
i32 128, label %68
]
58: ; preds = %56
%59 = load ptr, ptr %9, align 8
%60 = load ptr, ptr %11, align 8
%61 = getelementptr inbounds %struct.ifaddrs, ptr %60, i32 0, i32 1
%62 = load ptr, ptr %61, align 8
%63 = load ptr, ptr %11, align 8
%64 = getelementptr inbounds %struct.ifaddrs, ptr %63, i32 0, i32 1
%65 = load ptr, ptr %64, align 8
%66 = call i32 @sock_addrlen(ptr noundef %65)
%67 = call i32 @memcpy(ptr noundef %59, ptr noundef %62, i32 noundef %66)
store i32 1, ptr %12, align 4
br label %79
68: ; preds = %56
%69 = load ptr, ptr %9, align 8
%70 = load ptr, ptr %11, align 8
%71 = getelementptr inbounds %struct.ifaddrs, ptr %70, i32 0, i32 2
%72 = load ptr, ptr %71, align 8
%73 = load ptr, ptr %11, align 8
%74 = getelementptr inbounds %struct.ifaddrs, ptr %73, i32 0, i32 1
%75 = load ptr, ptr %74, align 8
%76 = call i32 @sock_addrlen(ptr noundef %75)
%77 = call i32 @memcpy(ptr noundef %69, ptr noundef %72, i32 noundef %76)
store i32 1, ptr %12, align 4
br label %79
78: ; preds = %56
br label %79
79: ; preds = %78, %68, %58
br label %84
80: ; preds = %54, %43, %34, %28
%81 = load ptr, ptr %11, align 8
%82 = getelementptr inbounds %struct.ifaddrs, ptr %81, i32 0, i32 4
%83 = load ptr, ptr %82, align 8
store ptr %83, ptr %11, align 8
br label %18, !llvm.loop !6
84: ; preds = %79, %18
%85 = load ptr, ptr %10, align 8
%86 = call i32 @freeifaddrs(ptr noundef %85)
%87 = load i32, ptr %12, align 4
store i32 %87, ptr %5, align 4
br label %88
88: ; preds = %84, %15
%89 = load i32, ptr %5, align 4
ret i32 %89
}
declare i32 @getifaddrs(ptr noundef) #1
declare i64 @strcmp(ptr noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @sock_addrlen(ptr noundef) #1
declare i32 @freeifaddrs(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpopt8rllo.c"
target datalayout = "e-m:e-p270: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.ifaddrs = type { i32, ptr, ptr, i32, ptr }
%struct.TYPE_3__ = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sock_getifaddr(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
%13 = call i32 @getifaddrs(ptr noundef %10)
%14 = icmp eq i32 %13, -1
br i1 %14, label %15, label %16
15: ; preds = %4
store i32 0, ptr %5, align 4
br label %89
16: ; preds = %4
store i32 0, ptr %12, align 4
%17 = load ptr, ptr %10, align 8
store ptr %17, ptr %11, align 8
%18 = load ptr, ptr %11, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %16
br label %20
20: ; preds = %.lr.ph, %79
%21 = load ptr, ptr %6, align 8
%22 = load ptr, ptr %11, align 8
%23 = getelementptr inbounds %struct.ifaddrs, ptr %22, i32 0, i32 3
%24 = load i32, ptr %23, align 8
%25 = call i64 @strcmp(ptr noundef %21, i32 noundef %24)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %20
br label %79
28: ; preds = %20
%29 = load ptr, ptr %11, align 8
%30 = getelementptr inbounds %struct.ifaddrs, ptr %29, i32 0, i32 1
%31 = load ptr, ptr %30, align 8
%32 = icmp eq ptr %31, null
br i1 %32, label %33, label %34
33: ; preds = %28
br label %79
34: ; preds = %28
%35 = load ptr, ptr %11, align 8
%36 = getelementptr inbounds %struct.ifaddrs, ptr %35, i32 0, i32 1
%37 = load ptr, ptr %36, align 8
%38 = getelementptr inbounds %struct.TYPE_3__, ptr %37, i32 0, i32 0
%39 = load i32, ptr %38, align 4
%40 = load i32, ptr %7, align 4
%41 = icmp ne i32 %39, %40
br i1 %41, label %42, label %43
42: ; preds = %34
br label %79
43: ; preds = %34
%44 = load i32, ptr %8, align 4
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %.loopexit1
46: ; preds = %43
%47 = load ptr, ptr %11, align 8
%48 = getelementptr inbounds %struct.ifaddrs, ptr %47, i32 0, i32 0
%49 = load i32, ptr %48, align 8
%50 = load i32, ptr %8, align 4
%51 = and i32 %49, %50
%52 = icmp ne i32 %51, 0
br i1 %52, label %54, label %53
53: ; preds = %46
br label %79
54: ; preds = %46
br label %55
.loopexit1: ; preds = %43
br label %55
55: ; preds = %.loopexit1, %54
%56 = load i32, ptr %8, align 4
switch i32 %56, label %77 [
i32 0, label %57
i32 128, label %67
]
57: ; preds = %55
%58 = load ptr, ptr %9, align 8
%59 = load ptr, ptr %11, align 8
%60 = getelementptr inbounds %struct.ifaddrs, ptr %59, i32 0, i32 1
%61 = load ptr, ptr %60, align 8
%62 = load ptr, ptr %11, align 8
%63 = getelementptr inbounds %struct.ifaddrs, ptr %62, i32 0, i32 1
%64 = load ptr, ptr %63, align 8
%65 = call i32 @sock_addrlen(ptr noundef %64)
%66 = call i32 @memcpy(ptr noundef %58, ptr noundef %61, i32 noundef %65)
store i32 1, ptr %12, align 4
br label %78
67: ; preds = %55
%68 = load ptr, ptr %9, align 8
%69 = load ptr, ptr %11, align 8
%70 = getelementptr inbounds %struct.ifaddrs, ptr %69, i32 0, i32 2
%71 = load ptr, ptr %70, align 8
%72 = load ptr, ptr %11, align 8
%73 = getelementptr inbounds %struct.ifaddrs, ptr %72, i32 0, i32 1
%74 = load ptr, ptr %73, align 8
%75 = call i32 @sock_addrlen(ptr noundef %74)
%76 = call i32 @memcpy(ptr noundef %68, ptr noundef %71, i32 noundef %75)
store i32 1, ptr %12, align 4
br label %78
77: ; preds = %55
br label %78
78: ; preds = %77, %67, %57
br label %85
79: ; preds = %53, %42, %33, %27
%80 = load ptr, ptr %11, align 8
%81 = getelementptr inbounds %struct.ifaddrs, ptr %80, i32 0, i32 4
%82 = load ptr, ptr %81, align 8
store ptr %82, ptr %11, align 8
%83 = load ptr, ptr %11, align 8
%84 = icmp ne ptr %83, null
br i1 %84, label %20, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %79
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %16
br label %85
85: ; preds = %.loopexit, %78
%86 = load ptr, ptr %10, align 8
%87 = call i32 @freeifaddrs(ptr noundef %86)
%88 = load i32, ptr %12, align 4
store i32 %88, ptr %5, align 4
br label %89
89: ; preds = %85, %15
%90 = load i32, ptr %5, align 4
ret i32 %90
}
declare i32 @getifaddrs(ptr noundef) #1
declare i64 @strcmp(ptr noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @sock_addrlen(ptr noundef) #1
declare i32 @freeifaddrs(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpz1r7fq0z.c'
source_filename = "/tmp/tmpz1r7fq0z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%08p-%08p\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%08p \00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"%02x %02x %02x %02x \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @memory_dump(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = and i32 %6, 3
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %2
%10 = load i32, ptr %4, align 4
%11 = and i32 %10, -4
%12 = add nsw i32 %11, 4
store i32 %12, ptr %4, align 4
br label %13
13: ; preds = %9, %2
%14 = load ptr, ptr %3, align 8
%15 = ptrtoint ptr %14 to i32
%16 = and i32 %15, -4
%17 = sext i32 %16 to i64
%18 = inttoptr i64 %17 to ptr
store ptr %18, ptr %3, align 8
%19 = load ptr, ptr %3, align 8
%20 = load ptr, ptr %3, align 8
%21 = load i32, ptr %4, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %20, i64 %22
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %19, ptr noundef %23)
store i64 0, ptr %5, align 8
br label %25
25: ; preds = %60, %13
%26 = load i32, ptr %4, align 4
%27 = icmp sgt i32 %26, 0
br i1 %27, label %28, label %67
28: ; preds = %25
%29 = load i64, ptr %5, align 8
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %35
31: ; preds = %28
%32 = call i32 (...) @test_newline()
%33 = load ptr, ptr %3, align 8
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %33)
br label %46
35: ; preds = %28
%36 = load i64, ptr %5, align 8
%37 = icmp eq i64 %36, 2
br i1 %37, label %38, label %40
38: ; preds = %35
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %45
40: ; preds = %35
%41 = load i64, ptr %5, align 8
%42 = icmp eq i64 %41, 3
br i1 %42, label %43, label %44
43: ; preds = %40
store i64 -1, ptr %5, align 8
br label %44
44: ; preds = %43, %40
br label %45
45: ; preds = %44, %38
br label %46
46: ; preds = %45, %31
%47 = load ptr, ptr %3, align 8
%48 = getelementptr inbounds i32, ptr %47, i64 0
%49 = load i32, ptr %48, align 4
%50 = load ptr, ptr %3, align 8
%51 = getelementptr inbounds i32, ptr %50, i64 1
%52 = load i32, ptr %51, align 4
%53 = load ptr, ptr %3, align 8
%54 = getelementptr inbounds i32, ptr %53, i64 2
%55 = load i32, ptr %54, align 4
%56 = load ptr, ptr %3, align 8
%57 = getelementptr inbounds i32, ptr %56, i64 3
%58 = load i32, ptr %57, align 4
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %49, i32 noundef %52, i32 noundef %55, i32 noundef %58)
br label %60
60: ; preds = %46
%61 = load i32, ptr %4, align 4
%62 = sub nsw i32 %61, 4
store i32 %62, ptr %4, align 4
%63 = load ptr, ptr %3, align 8
%64 = getelementptr inbounds i32, ptr %63, i64 4
store ptr %64, ptr %3, align 8
%65 = load i64, ptr %5, align 8
%66 = add i64 %65, 1
store i64 %66, ptr %5, align 8
br label %25, !llvm.loop !6
67: ; preds = %25
%68 = call i32 (...) @test_newline()
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @test_newline(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpz1r7fq0z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%08p-%08p\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%08p \00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"%02x %02x %02x %02x \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @memory_dump(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = and i32 %6, 3
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %2
%10 = load i32, ptr %4, align 4
%11 = and i32 %10, -4
%12 = add nsw i32 %11, 4
store i32 %12, ptr %4, align 4
br label %13
13: ; preds = %9, %2
%14 = load ptr, ptr %3, align 8
%15 = ptrtoint ptr %14 to i32
%16 = and i32 %15, -4
%17 = sext i32 %16 to i64
%18 = inttoptr i64 %17 to ptr
store ptr %18, ptr %3, align 8
%19 = load ptr, ptr %3, align 8
%20 = load ptr, ptr %3, align 8
%21 = load i32, ptr %4, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %20, i64 %22
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %19, ptr noundef %23)
store i64 0, ptr %5, align 8
%25 = load i32, ptr %4, align 4
%26 = icmp sgt i32 %25, 0
br i1 %26, label %.lr.ph, label %68
.lr.ph: ; preds = %13
br label %27
27: ; preds = %.lr.ph, %59
%28 = load i64, ptr %5, align 8
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %34
30: ; preds = %27
%31 = call i32 (...) @test_newline()
%32 = load ptr, ptr %3, align 8
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %32)
br label %45
34: ; preds = %27
%35 = load i64, ptr %5, align 8
%36 = icmp eq i64 %35, 2
br i1 %36, label %37, label %39
37: ; preds = %34
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %44
39: ; preds = %34
%40 = load i64, ptr %5, align 8
%41 = icmp eq i64 %40, 3
br i1 %41, label %42, label %43
42: ; preds = %39
store i64 -1, ptr %5, align 8
br label %43
43: ; preds = %42, %39
br label %44
44: ; preds = %43, %37
br label %45
45: ; preds = %44, %30
%46 = load ptr, ptr %3, align 8
%47 = getelementptr inbounds i32, ptr %46, i64 0
%48 = load i32, ptr %47, align 4
%49 = load ptr, ptr %3, align 8
%50 = getelementptr inbounds i32, ptr %49, i64 1
%51 = load i32, ptr %50, align 4
%52 = load ptr, ptr %3, align 8
%53 = getelementptr inbounds i32, ptr %52, i64 2
%54 = load i32, ptr %53, align 4
%55 = load ptr, ptr %3, align 8
%56 = getelementptr inbounds i32, ptr %55, i64 3
%57 = load i32, ptr %56, align 4
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %48, i32 noundef %51, i32 noundef %54, i32 noundef %57)
br label %59
59: ; preds = %45
%60 = load i32, ptr %4, align 4
%61 = sub nsw i32 %60, 4
store i32 %61, ptr %4, align 4
%62 = load ptr, ptr %3, align 8
%63 = getelementptr inbounds i32, ptr %62, i64 4
store ptr %63, ptr %3, align 8
%64 = load i64, ptr %5, align 8
%65 = add i64 %64, 1
store i64 %65, ptr %5, align 8
%66 = load i32, ptr %4, align 4
%67 = icmp sgt i32 %66, 0
br i1 %67, label %27, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %59
br label %68
68: ; preds = %._crit_edge, %13
%69 = call i32 (...) @test_newline()
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @test_newline(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmple8kf6yj.c'
source_filename = "/tmp/tmple8kf6yj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"inet_pton error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Inet_pton(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @inet_pton(i32 noundef %7, ptr noundef %8, ptr noundef %9)
%11 = icmp ne i32 %10, 1
br i1 %11, label %12, label %14
12: ; preds = %3
%13 = call i32 @err_sys(ptr noundef @.str)
br label %14
14: ; preds = %12, %3
ret i32 1
}
declare i32 @inet_pton(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @err_sys(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmple8kf6yj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"inet_pton error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Inet_pton(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @inet_pton(i32 noundef %7, ptr noundef %8, ptr noundef %9)
%11 = icmp ne i32 %10, 1
br i1 %11, label %12, label %14
12: ; preds = %3
%13 = call i32 @err_sys(ptr noundef @.str)
br label %14
14: ; preds = %12, %3
ret i32 1
}
declare i32 @inet_pton(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @err_sys(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprpj4m0hz.c'
source_filename = "/tmp/tmprpj4m0hz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" %c\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"%f %f %f %f\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%f %f\00", align 1
@.str.3 = private unnamed_addr constant [40 x i8] c"Point %lld is contained in figure %lld\0A\00", align 1
@.str.4 = private unnamed_addr constant [43 x i8] c"Point %lld is not contained in any figure\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca [10 x i8], align 1
%9 = alloca [10 x [4 x float]], align 16
%10 = alloca float, align 4
%11 = alloca float, align 4
store i32 0, ptr %1, align 4
store i64 0, ptr %3, align 8
store i64 1, ptr %4, align 8
store i64 0, ptr %5, align 8
br label %12
12: ; preds = %0, %22
%13 = load i64, ptr %3, align 8
%14 = getelementptr inbounds [10 x i8], ptr %8, i64 0, i64 %13
%15 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %14)
%16 = load i64, ptr %3, align 8
%17 = getelementptr inbounds [10 x i8], ptr %8, i64 0, i64 %16
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 42
br i1 %20, label %21, label %22
21: ; preds = %12
br label %38
22: ; preds = %12
%23 = load i64, ptr %3, align 8
%24 = getelementptr inbounds [10 x [4 x float]], ptr %9, i64 0, i64 %23
%25 = getelementptr inbounds [4 x float], ptr %24, i64 0, i64 0
%26 = load i64, ptr %3, align 8
%27 = getelementptr inbounds [10 x [4 x float]], ptr %9, i64 0, i64 %26
%28 = getelementptr inbounds [4 x float], ptr %27, i64 0, i64 1
%29 = load i64, ptr %3, align 8
%30 = getelementptr inbounds [10 x [4 x float]], ptr %9, i64 0, i64 %29
%31 = getelementptr inbounds [4 x float], ptr %30, i64 0, i64 2
%32 = load i64, ptr %3, align 8
%33 = getelementptr inbounds [10 x [4 x float]], ptr %9, i64 0, i64 %32
%34 = getelementptr inbounds [4 x float], ptr %33, i64 0, i64 3
%35 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %25, ptr noundef %28, ptr noundef %31, ptr noundef %34)
%36 = load i64, ptr %3, align 8
%37 = add nsw i64 %36, 1
store i64 %37, ptr %3, align 8
br label %12
38: ; preds = %21
br label %39
39: ; preds = %38, %152
%40 = call i32 (ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %10, ptr noundef %11)
%41 = load float, ptr %10, align 4
%42 = fmul float %41, 1.000000e+01
%43 = fptosi float %42 to i64
store i64 %43, ptr %6, align 8
%44 = load float, ptr %11, align 4
%45 = fmul float %44, 1.000000e+01
%46 = fptosi float %45 to i64
store i64 %46, ptr %7, align 8
%47 = load i64, ptr %6, align 8
%48 = icmp eq i64 %47, 99999
br i1 %48, label %49, label %53
49: ; preds = %39
%50 = load i64, ptr %7, align 8
%51 = icmp eq i64 %50, 99999
br i1 %51, label %52, label %53
52: ; preds = %49
br label %155
53: ; preds = %49, %39
store i64 0, ptr %5, align 8
store i64 0, ptr %2, align 8
br label %54
54: ; preds = %143, %53
%55 = load i64, ptr %2, align 8
%56 = load i64, ptr %3, align 8
%57 = icmp slt i64 %55, %56
br i1 %57, label %58, label %146
58: ; preds = %54
%59 = load i64, ptr %2, align 8
%60 = getelementptr inbounds [10 x i8], ptr %8, i64 0, i64 %59
%61 = load i8, ptr %60, align 1
%62 = sext i8 %61 to i32
%63 = icmp eq i32 %62, 114
br i1 %63, label %64, label %99
64: ; preds = %58
%65 = load float, ptr %10, align 4
%66 = load i64, ptr %2, align 8
%67 = getelementptr inbounds [10 x [4 x float]], ptr %9, i64 0, i64 %66
%68 = getelementptr inbounds [4 x float], ptr %67, i64 0, i64 0
%69 = load float, ptr %68, align 16
%70 = fcmp ogt float %65, %69
br i1 %70, label %71, label %98
71: ; preds = %64
%72 = load float, ptr %10, align 4
%73 = load i64, ptr %2, align 8
%74 = getelementptr inbounds [10 x [4 x float]], ptr %9, i64 0, i64 %73
%75 = getelementptr inbounds [4 x float], ptr %74, i64 0, i64 2
%76 = load float, ptr %75, align 8
%77 = fcmp olt float %72, %76
br i1 %77, label %78, label %98
78: ; preds = %71
%79 = load float, ptr %11, align 4
%80 = load i64, ptr %2, align 8
%81 = getelementptr inbounds [10 x [4 x float]], ptr %9, i64 0, i64 %80
%82 = getelementptr inbounds [4 x float], ptr %81, i64 0, i64 1
%83 = load float, ptr %82, align 4
%84 = fcmp olt float %79, %83
br i1 %84, label %85, label %97
85: ; preds = %78
%86 = load float, ptr %11, align 4
%87 = load i64, ptr %2, align 8
%88 = getelementptr inbounds [10 x [4 x float]], ptr %9, i64 0, i64 %87
%89 = getelementptr inbounds [4 x float], ptr %88, i64 0, i64 3
%90 = load float, ptr %89, align 4
%91 = fcmp ogt float %86, %90
br i1 %91, label %92, label %97
92: ; preds = %85
store i64 1, ptr %5, align 8
%93 = load i64, ptr %4, align 8
%94 = load i64, ptr %2, align 8
%95 = add nsw i64 %94, 1
%96 = call i32 (ptr, i64, ...) @printf(ptr noundef @.str.3, i64 noundef %93, i64 noundef %95)
br label %97
97: ; preds = %92, %85, %78
br label %98
98: ; preds = %97, %71, %64
br label %142
99: ; preds = %58
%100 = load float, ptr %10, align 4
%101 = load i64, ptr %2, align 8
%102 = getelementptr inbounds [10 x [4 x float]], ptr %9, i64 0, i64 %101
%103 = getelementptr inbounds [4 x float], ptr %102, i64 0, i64 0
%104 = load float, ptr %103, align 16
%105 = fsub float %100, %104
%106 = load float, ptr %10, align 4
%107 = load i64, ptr %2, align 8
%108 = getelementptr inbounds [10 x [4 x float]], ptr %9, i64 0, i64 %107
%109 = getelementptr inbounds [4 x float], ptr %108, i64 0, i64 0
%110 = load float, ptr %109, align 16
%111 = fsub float %106, %110
%112 = load float, ptr %11, align 4
%113 = load i64, ptr %2, align 8
%114 = getelementptr inbounds [10 x [4 x float]], ptr %9, i64 0, i64 %113
%115 = getelementptr inbounds [4 x float], ptr %114, i64 0, i64 1
%116 = load float, ptr %115, align 4
%117 = fsub float %112, %116
%118 = load float, ptr %11, align 4
%119 = load i64, ptr %2, align 8
%120 = getelementptr inbounds [10 x [4 x float]], ptr %9, i64 0, i64 %119
%121 = getelementptr inbounds [4 x float], ptr %120, i64 0, i64 1
%122 = load float, ptr %121, align 4
%123 = fsub float %118, %122
%124 = fmul float %117, %123
%125 = call float @llvm.fmuladd.f32(float %105, float %111, float %124)
%126 = load i64, ptr %2, align 8
%127 = getelementptr inbounds [10 x [4 x float]], ptr %9, i64 0, i64 %126
%128 = getelementptr inbounds [4 x float], ptr %127, i64 0, i64 2
%129 = load float, ptr %128, align 8
%130 = load i64, ptr %2, align 8
%131 = getelementptr inbounds [10 x [4 x float]], ptr %9, i64 0, i64 %130
%132 = getelementptr inbounds [4 x float], ptr %131, i64 0, i64 2
%133 = load float, ptr %132, align 8
%134 = fmul float %129, %133
%135 = fcmp olt float %125, %134
br i1 %135, label %136, label %141
136: ; preds = %99
store i64 1, ptr %5, align 8
%137 = load i64, ptr %4, align 8
%138 = load i64, ptr %2, align 8
%139 = add nsw i64 %138, 1
%140 = call i32 (ptr, i64, ...) @printf(ptr noundef @.str.3, i64 noundef %137, i64 noundef %139)
br label %141
141: ; preds = %136, %99
br label %142
142: ; preds = %141, %98
br label %143
143: ; preds = %142
%144 = load i64, ptr %2, align 8
%145 = add nsw i64 %144, 1
store i64 %145, ptr %2, align 8
br label %54, !llvm.loop !6
146: ; preds = %54
%147 = load i64, ptr %5, align 8
%148 = icmp eq i64 %147, 0
br i1 %148, label %149, label %152
149: ; preds = %146
%150 = load i64, ptr %4, align 8
%151 = call i32 (ptr, i64, ...) @printf(ptr noundef @.str.4, i64 noundef %150)
br label %152
152: ; preds = %149, %146
%153 = load i64, ptr %4, align 8
%154 = add nsw i64 %153, 1
store i64 %154, ptr %4, align 8
br label %39
155: ; preds = %52
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @printf(ptr noundef, i64 noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprpj4m0hz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" %c\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"%f %f %f %f\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%f %f\00", align 1
@.str.3 = private unnamed_addr constant [40 x i8] c"Point %lld is contained in figure %lld\0A\00", align 1
@.str.4 = private unnamed_addr constant [43 x i8] c"Point %lld is not contained in any figure\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca [10 x i8], align 1
%9 = alloca [10 x [4 x float]], align 16
%10 = alloca float, align 4
%11 = alloca float, align 4
store i32 0, ptr %1, align 4
store i64 0, ptr %3, align 8
store i64 1, ptr %4, align 8
store i64 0, ptr %5, align 8
%12 = load i64, ptr %3, align 8
%13 = getelementptr inbounds [10 x i8], ptr %8, i64 0, i64 %12
%14 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %13)
%15 = load i64, ptr %3, align 8
%16 = getelementptr inbounds [10 x i8], ptr %8, i64 0, i64 %15
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 42
br i1 %19, label %20, label %.lr.ph
.lr.ph: ; preds = %0
br label %21
._crit_edge: ; preds = %21
br label %20
20: ; preds = %._crit_edge, %0
br label %45
21: ; preds = %.lr.ph, %21
%22 = load i64, ptr %3, align 8
%23 = getelementptr inbounds [10 x [4 x float]], ptr %9, i64 0, i64 %22
%24 = getelementptr inbounds [4 x float], ptr %23, i64 0, i64 0
%25 = load i64, ptr %3, align 8
%26 = getelementptr inbounds [10 x [4 x float]], ptr %9, i64 0, i64 %25
%27 = getelementptr inbounds [4 x float], ptr %26, i64 0, i64 1
%28 = load i64, ptr %3, align 8
%29 = getelementptr inbounds [10 x [4 x float]], ptr %9, i64 0, i64 %28
%30 = getelementptr inbounds [4 x float], ptr %29, i64 0, i64 2
%31 = load i64, ptr %3, align 8
%32 = getelementptr inbounds [10 x [4 x float]], ptr %9, i64 0, i64 %31
%33 = getelementptr inbounds [4 x float], ptr %32, i64 0, i64 3
%34 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %24, ptr noundef %27, ptr noundef %30, ptr noundef %33)
%35 = load i64, ptr %3, align 8
%36 = add nsw i64 %35, 1
store i64 %36, ptr %3, align 8
%37 = load i64, ptr %3, align 8
%38 = getelementptr inbounds [10 x i8], ptr %8, i64 0, i64 %37
%39 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %38)
%40 = load i64, ptr %3, align 8
%41 = getelementptr inbounds [10 x i8], ptr %8, i64 0, i64 %40
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
%44 = icmp eq i32 %43, 42
br i1 %44, label %._crit_edge, label %21
45: ; preds = %20
br label %46
46: ; preds = %161, %45
%47 = call i32 (ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %10, ptr noundef %11)
%48 = load float, ptr %10, align 4
%49 = fmul float %48, 1.000000e+01
%50 = fptosi float %49 to i64
store i64 %50, ptr %6, align 8
%51 = load float, ptr %11, align 4
%52 = fmul float %51, 1.000000e+01
%53 = fptosi float %52 to i64
store i64 %53, ptr %7, align 8
%54 = load i64, ptr %6, align 8
%55 = icmp eq i64 %54, 99999
br i1 %55, label %56, label %60
56: ; preds = %46
%57 = load i64, ptr %7, align 8
%58 = icmp eq i64 %57, 99999
br i1 %58, label %59, label %60
59: ; preds = %56
br label %164
60: ; preds = %56, %46
store i64 0, ptr %5, align 8
store i64 0, ptr %2, align 8
%61 = load i64, ptr %2, align 8
%62 = load i64, ptr %3, align 8
%63 = icmp slt i64 %61, %62
br i1 %63, label %.lr.ph2, label %155
.lr.ph2: ; preds = %60
br label %64
64: ; preds = %.lr.ph2, %149
%65 = load i64, ptr %2, align 8
%66 = getelementptr inbounds [10 x i8], ptr %8, i64 0, i64 %65
%67 = load i8, ptr %66, align 1
%68 = sext i8 %67 to i32
%69 = icmp eq i32 %68, 114
br i1 %69, label %70, label %105
70: ; preds = %64
%71 = load float, ptr %10, align 4
%72 = load i64, ptr %2, align 8
%73 = getelementptr inbounds [10 x [4 x float]], ptr %9, i64 0, i64 %72
%74 = getelementptr inbounds [4 x float], ptr %73, i64 0, i64 0
%75 = load float, ptr %74, align 16
%76 = fcmp ogt float %71, %75
br i1 %76, label %77, label %104
77: ; preds = %70
%78 = load float, ptr %10, align 4
%79 = load i64, ptr %2, align 8
%80 = getelementptr inbounds [10 x [4 x float]], ptr %9, i64 0, i64 %79
%81 = getelementptr inbounds [4 x float], ptr %80, i64 0, i64 2
%82 = load float, ptr %81, align 8
%83 = fcmp olt float %78, %82
br i1 %83, label %84, label %104
84: ; preds = %77
%85 = load float, ptr %11, align 4
%86 = load i64, ptr %2, align 8
%87 = getelementptr inbounds [10 x [4 x float]], ptr %9, i64 0, i64 %86
%88 = getelementptr inbounds [4 x float], ptr %87, i64 0, i64 1
%89 = load float, ptr %88, align 4
%90 = fcmp olt float %85, %89
br i1 %90, label %91, label %103
91: ; preds = %84
%92 = load float, ptr %11, align 4
%93 = load i64, ptr %2, align 8
%94 = getelementptr inbounds [10 x [4 x float]], ptr %9, i64 0, i64 %93
%95 = getelementptr inbounds [4 x float], ptr %94, i64 0, i64 3
%96 = load float, ptr %95, align 4
%97 = fcmp ogt float %92, %96
br i1 %97, label %98, label %103
98: ; preds = %91
store i64 1, ptr %5, align 8
%99 = load i64, ptr %4, align 8
%100 = load i64, ptr %2, align 8
%101 = add nsw i64 %100, 1
%102 = call i32 (ptr, i64, ...) @printf(ptr noundef @.str.3, i64 noundef %99, i64 noundef %101)
br label %103
103: ; preds = %98, %91, %84
br label %104
104: ; preds = %103, %77, %70
br label %148
105: ; preds = %64
%106 = load float, ptr %10, align 4
%107 = load i64, ptr %2, align 8
%108 = getelementptr inbounds [10 x [4 x float]], ptr %9, i64 0, i64 %107
%109 = getelementptr inbounds [4 x float], ptr %108, i64 0, i64 0
%110 = load float, ptr %109, align 16
%111 = fsub float %106, %110
%112 = load float, ptr %10, align 4
%113 = load i64, ptr %2, align 8
%114 = getelementptr inbounds [10 x [4 x float]], ptr %9, i64 0, i64 %113
%115 = getelementptr inbounds [4 x float], ptr %114, i64 0, i64 0
%116 = load float, ptr %115, align 16
%117 = fsub float %112, %116
%118 = load float, ptr %11, align 4
%119 = load i64, ptr %2, align 8
%120 = getelementptr inbounds [10 x [4 x float]], ptr %9, i64 0, i64 %119
%121 = getelementptr inbounds [4 x float], ptr %120, i64 0, i64 1
%122 = load float, ptr %121, align 4
%123 = fsub float %118, %122
%124 = load float, ptr %11, align 4
%125 = load i64, ptr %2, align 8
%126 = getelementptr inbounds [10 x [4 x float]], ptr %9, i64 0, i64 %125
%127 = getelementptr inbounds [4 x float], ptr %126, i64 0, i64 1
%128 = load float, ptr %127, align 4
%129 = fsub float %124, %128
%130 = fmul float %123, %129
%131 = call float @llvm.fmuladd.f32(float %111, float %117, float %130)
%132 = load i64, ptr %2, align 8
%133 = getelementptr inbounds [10 x [4 x float]], ptr %9, i64 0, i64 %132
%134 = getelementptr inbounds [4 x float], ptr %133, i64 0, i64 2
%135 = load float, ptr %134, align 8
%136 = load i64, ptr %2, align 8
%137 = getelementptr inbounds [10 x [4 x float]], ptr %9, i64 0, i64 %136
%138 = getelementptr inbounds [4 x float], ptr %137, i64 0, i64 2
%139 = load float, ptr %138, align 8
%140 = fmul float %135, %139
%141 = fcmp olt float %131, %140
br i1 %141, label %142, label %147
142: ; preds = %105
store i64 1, ptr %5, align 8
%143 = load i64, ptr %4, align 8
%144 = load i64, ptr %2, align 8
%145 = add nsw i64 %144, 1
%146 = call i32 (ptr, i64, ...) @printf(ptr noundef @.str.3, i64 noundef %143, i64 noundef %145)
br label %147
147: ; preds = %142, %105
br label %148
148: ; preds = %147, %104
br label %149
149: ; preds = %148
%150 = load i64, ptr %2, align 8
%151 = add nsw i64 %150, 1
store i64 %151, ptr %2, align 8
%152 = load i64, ptr %2, align 8
%153 = load i64, ptr %3, align 8
%154 = icmp slt i64 %152, %153
br i1 %154, label %64, label %._crit_edge3, !llvm.loop !6
._crit_edge3: ; preds = %149
br label %155
155: ; preds = %._crit_edge3, %60
%156 = load i64, ptr %5, align 8
%157 = icmp eq i64 %156, 0
br i1 %157, label %158, label %161
158: ; preds = %155
%159 = load i64, ptr %4, align 8
%160 = call i32 (ptr, i64, ...) @printf(ptr noundef @.str.4, i64 noundef %159)
br label %161
161: ; preds = %158, %155
%162 = load i64, ptr %4, align 8
%163 = add nsw i64 %162, 1
store i64 %163, ptr %4, align 8
br label %46
164: ; preds = %59
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @printf(ptr noundef, i64 noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp4qxtcpl7.c'
source_filename = "/tmp/tmp4qxtcpl7.c"
target datalayout = "e-m:e-p270: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/tmp4qxtcpl7.c"
target datalayout = "e-m:e-p270: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/tmpnjzltw5d.c'
source_filename = "/tmp/tmpnjzltw5d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
store i32 0, ptr %1, align 4
%2 = call i32 @Factorial(i32 noundef 3)
%3 = call i32 @printf(ptr noundef @.str, i32 noundef %2)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @Factorial(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnjzltw5d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
store i32 0, ptr %1, align 4
%2 = call i32 @Factorial(i32 noundef 3)
%3 = call i32 @printf(ptr noundef @.str, i32 noundef %2)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @Factorial(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfcwc4d9w.c'
source_filename = "/tmp/tmpfcwc4d9w.c"
target datalayout = "e-m:e-p270: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.test_preparse_packet.packet = private unnamed_addr constant [61 x i8] c"\FF\FF\AAU\C0\01\06\1A\E4\04\01V\CC\F3\F89\9C\F8\8C\C9\CF\E0\19\93\82'8\10f\22\22b\00\CF\9E\0F\8C\F3\03}\F2g@u\C6\F2\D3)\E1>\07\E1\B3\B1\00\E0\17j\88c\84", align 16
@.str = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"*************************\0A\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"PreParse Packet \0A\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"Nb of Soft Packets: %i:%i\0A\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"Soft Packets Start: %i:%i\0A\00", align 1
@.str.5 = private unnamed_addr constant [26 x i8] c"Soft Packets Type: %i:%i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_preparse_packet() #0 {
%1 = alloca i32, align 4
%2 = alloca [61 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca [10 x i32], align 16
%5 = alloca [10 x i32], align 16
%6 = alloca i32, align 4
%7 = alloca [10 x i32], align 16
%8 = alloca [10 x i32], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.test_preparse_packet.packet, i64 61, i1 false)
store i32 3, ptr %3, align 4
call void @llvm.memset.p0.i64(ptr align 16 %4, i8 0, i64 40, i1 false)
%9 = getelementptr inbounds [10 x i32], ptr %4, i32 0, i32 1
store i32 4, ptr %9, align 4
%10 = getelementptr inbounds [10 x i32], ptr %4, i32 0, i32 2
store i32 55, ptr %10, align 8
call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 40, i1 false)
%11 = getelementptr inbounds [10 x i32], ptr %5, i32 0, i32 0
store i32 15, ptr %11, align 16
%12 = getelementptr inbounds [10 x i32], ptr %5, i32 0, i32 1
store i32 12, ptr %12, align 4
%13 = getelementptr inbounds [10 x i32], ptr %5, i32 0, i32 2
store i32 14, ptr %13, align 8
%14 = getelementptr inbounds [61 x i8], ptr %2, i64 0, i64 0
%15 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 0
%16 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 0
%17 = call i32 @preparse_packet(ptr noundef %14, i32 noundef 61, ptr noundef %15, ptr noundef %16)
store i32 %17, ptr %6, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%22 = load i32, ptr %3, align 4
%23 = load i32, ptr %6, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %22, i32 noundef %23)
store i32 0, ptr %1, align 4
br label %25
25: ; preds = %48, %0
%26 = load i32, ptr %1, align 4
%27 = load i32, ptr %6, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %51
29: ; preds = %25
%30 = load i32, ptr %1, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [10 x i32], ptr %4, i64 0, i64 %31
%33 = load i32, ptr %32, align 4
%34 = load i32, ptr %1, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 %35
%37 = load i32, ptr %36, align 4
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %33, i32 noundef %37)
%39 = load i32, ptr %1, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 %40
%42 = load i32, ptr %41, align 4
%43 = load i32, ptr %1, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 %44
%46 = load i32, ptr %45, align 4
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %42, i32 noundef %46)
br label %48
48: ; preds = %29
%49 = load i32, ptr %1, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %1, align 4
br label %25, !llvm.loop !6
51: ; preds = %25
ret void
}
; 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
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @preparse_packet(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #3
declare i32 @printf(ptr noundef, ...) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfcwc4d9w.c"
target datalayout = "e-m:e-p270: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.test_preparse_packet.packet = private unnamed_addr constant [61 x i8] c"\FF\FF\AAU\C0\01\06\1A\E4\04\01V\CC\F3\F89\9C\F8\8C\C9\CF\E0\19\93\82'8\10f\22\22b\00\CF\9E\0F\8C\F3\03}\F2g@u\C6\F2\D3)\E1>\07\E1\B3\B1\00\E0\17j\88c\84", align 16
@.str = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"*************************\0A\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"PreParse Packet \0A\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"Nb of Soft Packets: %i:%i\0A\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"Soft Packets Start: %i:%i\0A\00", align 1
@.str.5 = private unnamed_addr constant [26 x i8] c"Soft Packets Type: %i:%i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_preparse_packet() #0 {
%1 = alloca i32, align 4
%2 = alloca [61 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca [10 x i32], align 16
%5 = alloca [10 x i32], align 16
%6 = alloca i32, align 4
%7 = alloca [10 x i32], align 16
%8 = alloca [10 x i32], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.test_preparse_packet.packet, i64 61, i1 false)
store i32 3, ptr %3, align 4
call void @llvm.memset.p0.i64(ptr align 16 %4, i8 0, i64 40, i1 false)
%9 = getelementptr inbounds [10 x i32], ptr %4, i32 0, i32 1
store i32 4, ptr %9, align 4
%10 = getelementptr inbounds [10 x i32], ptr %4, i32 0, i32 2
store i32 55, ptr %10, align 8
call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 40, i1 false)
%11 = getelementptr inbounds [10 x i32], ptr %5, i32 0, i32 0
store i32 15, ptr %11, align 16
%12 = getelementptr inbounds [10 x i32], ptr %5, i32 0, i32 1
store i32 12, ptr %12, align 4
%13 = getelementptr inbounds [10 x i32], ptr %5, i32 0, i32 2
store i32 14, ptr %13, align 8
%14 = getelementptr inbounds [61 x i8], ptr %2, i64 0, i64 0
%15 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 0
%16 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 0
%17 = call i32 @preparse_packet(ptr noundef %14, i32 noundef 61, ptr noundef %15, ptr noundef %16)
store i32 %17, ptr %6, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%22 = load i32, ptr %3, align 4
%23 = load i32, ptr %6, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %22, i32 noundef %23)
store i32 0, ptr %1, align 4
%25 = load i32, ptr %1, align 4
%26 = load i32, ptr %6, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %.lr.ph, label %53
.lr.ph: ; preds = %0
br label %28
28: ; preds = %.lr.ph, %47
%29 = load i32, ptr %1, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [10 x i32], ptr %4, i64 0, i64 %30
%32 = load i32, ptr %31, align 4
%33 = load i32, ptr %1, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [10 x i32], ptr %7, i64 0, i64 %34
%36 = load i32, ptr %35, align 4
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %32, i32 noundef %36)
%38 = load i32, ptr %1, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [10 x i32], ptr %5, i64 0, i64 %39
%41 = load i32, ptr %40, align 4
%42 = load i32, ptr %1, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 %43
%45 = load i32, ptr %44, align 4
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %41, i32 noundef %45)
br label %47
47: ; preds = %28
%48 = load i32, ptr %1, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %1, align 4
%50 = load i32, ptr %1, align 4
%51 = load i32, ptr %6, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %47
br label %53
53: ; preds = %._crit_edge, %0
ret void
}
; 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
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @preparse_packet(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #3
declare i32 @printf(ptr noundef, ...) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpch6x05p3.c'
source_filename = "/tmp/tmpch6x05p3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = call i32 (...) @pthread_testcancel()
%8 = load i32, ptr %4, align 4
%9 = load ptr, ptr %5, align 8
%10 = load i64, ptr %6, align 8
%11 = call i32 @__libc_read(i32 noundef %8, ptr noundef %9, i64 noundef %10)
ret i32 %11
}
declare i32 @pthread_testcancel(...) #1
declare i32 @__libc_read(i32 noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpch6x05p3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = call i32 (...) @pthread_testcancel()
%8 = load i32, ptr %4, align 4
%9 = load ptr, ptr %5, align 8
%10 = load i64, ptr %6, align 8
%11 = call i32 @__libc_read(i32 noundef %8, ptr noundef %9, i64 noundef %10)
ret i32 %11
}
declare i32 @pthread_testcancel(...) #1
declare i32 @__libc_read(i32 noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3c099a89.c'
source_filename = "/tmp/tmp3c099a89.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ssp_getcsr_SSE() #0 {
%1 = alloca i32, align 4
call void @llvm.x86.sse.stmxcsr(ptr %1)
%2 = load i32, ptr %1, align 4
ret i32 %2
}
; Function Attrs: nounwind memory(argmem: write)
declare void @llvm.x86.sse.stmxcsr(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3c099a89.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ssp_getcsr_SSE() #0 {
%1 = alloca i32, align 4
call void @llvm.x86.sse.stmxcsr(ptr %1)
%2 = load i32, ptr %1, align 4
ret i32 %2
}
; Function Attrs: nounwind memory(argmem: write)
declare void @llvm.x86.sse.stmxcsr(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3ogg77r7.c'
source_filename = "/tmp/tmp3ogg77r7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [15 x i8] c"info: %s:%d:\0A \00", align 1
@.str.2 = private unnamed_addr constant [149 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/NerdWalletOSS/Q/refs/heads/master/UTILS/test/test_bitops.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @print_bits(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca %struct.stat, align 4
%10 = alloca i32, align 4
%11 = alloca i8, align 1
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%14 = load i32, ptr %5, align 4
store i32 %14, ptr %6, align 4
%15 = load ptr, ptr %4, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %18
17: ; preds = %2
store i32 -1, ptr %3, align 4
br label %66
18: ; preds = %2
%19 = load ptr, ptr %4, align 8
%20 = call ptr @fopen(ptr noundef %19, ptr noundef @.str)
store ptr %20, ptr %7, align 8
%21 = load ptr, ptr %7, align 8
%22 = icmp eq ptr %21, null
br i1 %22, label %23, label %24
23: ; preds = %18
store i32 -1, ptr %3, align 4
br label %66
24: ; preds = %18
%25 = load i32, ptr %6, align 4
%26 = icmp eq i32 %25, -1
br i1 %26, label %27, label %44
27: ; preds = %24
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr @O_RDONLY, align 4
%30 = call i32 @open(ptr noundef %28, i32 noundef %29)
store i32 %30, ptr %8, align 4
%31 = load i32, ptr %8, align 4
%32 = call i32 @fstat(i32 noundef %31, ptr noundef %9)
store i32 %32, ptr %10, align 4
br label %33
33: ; preds = %27
%34 = load i32, ptr %10, align 4
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %40
36: ; preds = %33
%37 = load i32, ptr @stderr, align 4
%38 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %37, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 206)
%39 = load i32, ptr %10, align 4
store i32 %39, ptr %3, align 4
br label %66
40: ; preds = %33
br label %41
41: ; preds = %40
%42 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 0
%43 = load i32, ptr %42, align 4
store i32 %43, ptr %6, align 4
br label %44
44: ; preds = %41, %24
store i32 0, ptr %12, align 4
br label %45
45: ; preds = %62, %44
%46 = load i32, ptr %12, align 4
%47 = load i32, ptr %6, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %49, label %65
49: ; preds = %45
%50 = load ptr, ptr %7, align 8
%51 = call zeroext i8 @fgetc(ptr noundef %50)
store i8 %51, ptr %11, align 1
store i32 0, ptr %13, align 4
br label %52
52: ; preds = %58, %49
%53 = load i32, ptr %13, align 4
%54 = icmp slt i32 %53, 8
br i1 %54, label %55, label %61
55: ; preds = %52
br label %56
56: ; preds = %55
br label %57
57: ; preds = %56
br label %58
58: ; preds = %57
%59 = load i32, ptr %13, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %13, align 4
br label %52, !llvm.loop !6
61: ; preds = %52
br label %62
62: ; preds = %61
%63 = load i32, ptr %12, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %12, align 4
br label %45, !llvm.loop !8
65: ; preds = %45
store i32 0, ptr %3, align 4
br label %66
66: ; preds = %65, %36, %23, %17
%67 = load i32, ptr %3, align 4
ret i32 %67
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @fstat(i32 noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare zeroext i8 @fgetc(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3ogg77r7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [15 x i8] c"info: %s:%d:\0A \00", align 1
@.str.2 = private unnamed_addr constant [149 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/NerdWalletOSS/Q/refs/heads/master/UTILS/test/test_bitops.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @print_bits(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca %struct.stat, align 4
%10 = alloca i32, align 4
%11 = alloca i8, align 1
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%14 = load i32, ptr %5, align 4
store i32 %14, ptr %6, align 4
%15 = load ptr, ptr %4, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %18
17: ; preds = %2
store i32 -1, ptr %3, align 4
br label %69
18: ; preds = %2
%19 = load ptr, ptr %4, align 8
%20 = call ptr @fopen(ptr noundef %19, ptr noundef @.str)
store ptr %20, ptr %7, align 8
%21 = load ptr, ptr %7, align 8
%22 = icmp eq ptr %21, null
br i1 %22, label %23, label %24
23: ; preds = %18
store i32 -1, ptr %3, align 4
br label %69
24: ; preds = %18
%25 = load i32, ptr %6, align 4
%26 = icmp eq i32 %25, -1
br i1 %26, label %27, label %44
27: ; preds = %24
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr @O_RDONLY, align 4
%30 = call i32 @open(ptr noundef %28, i32 noundef %29)
store i32 %30, ptr %8, align 4
%31 = load i32, ptr %8, align 4
%32 = call i32 @fstat(i32 noundef %31, ptr noundef %9)
store i32 %32, ptr %10, align 4
br label %33
33: ; preds = %27
%34 = load i32, ptr %10, align 4
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %40
36: ; preds = %33
%37 = load i32, ptr @stderr, align 4
%38 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %37, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 206)
%39 = load i32, ptr %10, align 4
store i32 %39, ptr %3, align 4
br label %69
40: ; preds = %33
br label %41
41: ; preds = %40
%42 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 0
%43 = load i32, ptr %42, align 4
store i32 %43, ptr %6, align 4
br label %44
44: ; preds = %41, %24
store i32 0, ptr %12, align 4
%45 = load i32, ptr %12, align 4
%46 = load i32, ptr %6, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %.lr.ph2, label %68
.lr.ph2: ; preds = %44
br label %48
48: ; preds = %.lr.ph2, %62
%49 = load ptr, ptr %7, align 8
%50 = call zeroext i8 @fgetc(ptr noundef %49)
store i8 %50, ptr %11, align 1
store i32 0, ptr %13, align 4
%51 = load i32, ptr %13, align 4
%52 = icmp slt i32 %51, 8
br i1 %52, label %.lr.ph, label %61
.lr.ph: ; preds = %48
br label %53
53: ; preds = %.lr.ph, %56
br label %54
54: ; preds = %53
br label %55
55: ; preds = %54
br label %56
56: ; preds = %55
%57 = load i32, ptr %13, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %13, align 4
%59 = load i32, ptr %13, align 4
%60 = icmp slt i32 %59, 8
br i1 %60, label %53, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %56
br label %61
61: ; preds = %._crit_edge, %48
br label %62
62: ; preds = %61
%63 = load i32, ptr %12, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %12, align 4
%65 = load i32, ptr %12, align 4
%66 = load i32, ptr %6, align 4
%67 = icmp slt i32 %65, %66
br i1 %67, label %48, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %62
br label %68
68: ; preds = %._crit_edge3, %44
store i32 0, ptr %3, align 4
br label %69
69: ; preds = %68, %36, %23, %17
%70 = load i32, ptr %3, align 4
ret i32 %70
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @fstat(i32 noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare zeroext i8 @fgetc(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpeeptuoax.c'
source_filename = "/tmp/tmpeeptuoax.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_2__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_XFocusInEvent_window(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.TYPE_2__, ptr %6, i32 0, i32 0
store i64 %5, ptr %7, align 8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeeptuoax.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_2__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_XFocusInEvent_window(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.TYPE_2__, ptr %6, i32 0, i32 0
store i64 %5, ptr %7, align 8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpeasjw1hc.c'
source_filename = "/tmp/tmpeasjw1hc.c"
target datalayout = "e-m:e-p270: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/tmpeasjw1hc.c"
target datalayout = "e-m:e-p270: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/tmp9ude54nl.c'
source_filename = "/tmp/tmp9ude54nl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [32 x i8] c"/sys/devices/system/cpu/cpuidle\00", align 1
@ENODEV = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [45 x i8] c"/sys/devices/system/cpu/cpu%u/cpuidle/state0\00", align 1
@.str.2 = private unnamed_addr constant [46 x i8] c"/sys/devices/system/cpu/cpu%u/cpuidle/state%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sysfs_get_idlestate_count(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [255 x i8], align 16
%5 = alloca %struct.stat, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 1, ptr %6, align 4
%7 = getelementptr inbounds [255 x i8], ptr %4, i64 0, i64 0
%8 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %7, i32 noundef 255, ptr noundef @.str)
%9 = getelementptr inbounds [255 x i8], ptr %4, i64 0, i64 0
%10 = call i64 @stat(ptr noundef %9, ptr noundef %5)
%11 = icmp ne i64 %10, 0
br i1 %11, label %17, label %12
12: ; preds = %1
%13 = getelementptr inbounds %struct.stat, ptr %5, i32 0, i32 0
%14 = load i32, ptr %13, align 4
%15 = call i64 @S_ISDIR(i32 noundef %14)
%16 = icmp ne i64 %15, 0
br i1 %16, label %20, label %17
17: ; preds = %12, %1
%18 = load i32, ptr @ENODEV, align 4
%19 = sub nsw i32 0, %18
store i32 %19, ptr %2, align 4
br label %56
20: ; preds = %12
%21 = getelementptr inbounds [255 x i8], ptr %4, i64 0, i64 0
%22 = load i32, ptr %3, align 4
%23 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %21, i32 noundef 255, ptr noundef @.str.1, i32 noundef %22)
%24 = getelementptr inbounds [255 x i8], ptr %4, i64 0, i64 0
%25 = call i64 @stat(ptr noundef %24, ptr noundef %5)
%26 = icmp ne i64 %25, 0
br i1 %26, label %32, label %27
27: ; preds = %20
%28 = getelementptr inbounds %struct.stat, ptr %5, i32 0, i32 0
%29 = load i32, ptr %28, align 4
%30 = call i64 @S_ISDIR(i32 noundef %29)
%31 = icmp ne i64 %30, 0
br i1 %31, label %33, label %32
32: ; preds = %27, %20
store i32 0, ptr %2, align 4
br label %56
33: ; preds = %27
br label %34
34: ; preds = %45, %33
%35 = getelementptr inbounds [255 x i8], ptr %4, i64 0, i64 0
%36 = call i64 @stat(ptr noundef %35, ptr noundef %5)
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %43
38: ; preds = %34
%39 = getelementptr inbounds %struct.stat, ptr %5, i32 0, i32 0
%40 = load i32, ptr %39, align 4
%41 = call i64 @S_ISDIR(i32 noundef %40)
%42 = icmp ne i64 %41, 0
br label %43
43: ; preds = %38, %34
%44 = phi i1 [ false, %34 ], [ %42, %38 ]
br i1 %44, label %45, label %52
45: ; preds = %43
%46 = getelementptr inbounds [255 x i8], ptr %4, i64 0, i64 0
%47 = load i32, ptr %3, align 4
%48 = load i32, ptr %6, align 4
%49 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %46, i32 noundef 255, ptr noundef @.str.2, i32 noundef %47, i32 noundef %48)
%50 = load i32, ptr %6, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %6, align 4
br label %34, !llvm.loop !6
52: ; preds = %43
%53 = load i32, ptr %6, align 4
%54 = add nsw i32 %53, -1
store i32 %54, ptr %6, align 4
%55 = load i32, ptr %6, align 4
store i32 %55, ptr %2, align 4
br label %56
56: ; preds = %52, %32, %17
%57 = load i32, ptr %2, align 4
ret i32 %57
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ...) #1
declare i64 @stat(ptr noundef, ptr noundef) #1
declare i64 @S_ISDIR(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/tmp9ude54nl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [32 x i8] c"/sys/devices/system/cpu/cpuidle\00", align 1
@ENODEV = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [45 x i8] c"/sys/devices/system/cpu/cpu%u/cpuidle/state0\00", align 1
@.str.2 = private unnamed_addr constant [46 x i8] c"/sys/devices/system/cpu/cpu%u/cpuidle/state%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sysfs_get_idlestate_count(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [255 x i8], align 16
%5 = alloca %struct.stat, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 1, ptr %6, align 4
%7 = getelementptr inbounds [255 x i8], ptr %4, i64 0, i64 0
%8 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %7, i32 noundef 255, ptr noundef @.str)
%9 = getelementptr inbounds [255 x i8], ptr %4, i64 0, i64 0
%10 = call i64 @stat(ptr noundef %9, ptr noundef %5)
%11 = icmp ne i64 %10, 0
br i1 %11, label %17, label %12
12: ; preds = %1
%13 = getelementptr inbounds %struct.stat, ptr %5, i32 0, i32 0
%14 = load i32, ptr %13, align 4
%15 = call i64 @S_ISDIR(i32 noundef %14)
%16 = icmp ne i64 %15, 0
br i1 %16, label %20, label %17
17: ; preds = %12, %1
%18 = load i32, ptr @ENODEV, align 4
%19 = sub nsw i32 0, %18
store i32 %19, ptr %2, align 4
br label %56
20: ; preds = %12
%21 = getelementptr inbounds [255 x i8], ptr %4, i64 0, i64 0
%22 = load i32, ptr %3, align 4
%23 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %21, i32 noundef 255, ptr noundef @.str.1, i32 noundef %22)
%24 = getelementptr inbounds [255 x i8], ptr %4, i64 0, i64 0
%25 = call i64 @stat(ptr noundef %24, ptr noundef %5)
%26 = icmp ne i64 %25, 0
br i1 %26, label %32, label %27
27: ; preds = %20
%28 = getelementptr inbounds %struct.stat, ptr %5, i32 0, i32 0
%29 = load i32, ptr %28, align 4
%30 = call i64 @S_ISDIR(i32 noundef %29)
%31 = icmp ne i64 %30, 0
br i1 %31, label %33, label %32
32: ; preds = %27, %20
store i32 0, ptr %2, align 4
br label %56
33: ; preds = %27
br label %34
34: ; preds = %45, %33
%35 = getelementptr inbounds [255 x i8], ptr %4, i64 0, i64 0
%36 = call i64 @stat(ptr noundef %35, ptr noundef %5)
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %43
38: ; preds = %34
%39 = getelementptr inbounds %struct.stat, ptr %5, i32 0, i32 0
%40 = load i32, ptr %39, align 4
%41 = call i64 @S_ISDIR(i32 noundef %40)
%42 = icmp ne i64 %41, 0
br label %43
43: ; preds = %38, %34
%44 = phi i1 [ false, %34 ], [ %42, %38 ]
br i1 %44, label %45, label %52
45: ; preds = %43
%46 = getelementptr inbounds [255 x i8], ptr %4, i64 0, i64 0
%47 = load i32, ptr %3, align 4
%48 = load i32, ptr %6, align 4
%49 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %46, i32 noundef 255, ptr noundef @.str.2, i32 noundef %47, i32 noundef %48)
%50 = load i32, ptr %6, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %6, align 4
br label %34, !llvm.loop !6
52: ; preds = %43
%53 = load i32, ptr %6, align 4
%54 = add nsw i32 %53, -1
store i32 %54, ptr %6, align 4
%55 = load i32, ptr %6, align 4
store i32 %55, ptr %2, align 4
br label %56
56: ; preds = %52, %32, %17
%57 = load i32, ptr %2, align 4
ret i32 %57
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ...) #1
declare i64 @stat(ptr noundef, ptr noundef) #1
declare i64 @S_ISDIR(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/tmppz6zuior.c'
source_filename = "/tmp/tmppz6zuior.c"
target datalayout = "e-m:e-p270: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/tmppz6zuior.c"
target datalayout = "e-m:e-p270: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/tmp3ckuhlob.c'
source_filename = "/tmp/tmp3ckuhlob.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f2(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = udiv i32 4, %3
%5 = icmp eq i32 %4, 5
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 (...) @link_error()
br label %8
8: ; preds = %6, %1
ret void
}
declare i32 @link_error(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3ckuhlob.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f2(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = udiv i32 4, %3
%5 = icmp eq i32 %4, 5
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 (...) @link_error()
br label %8
8: ; preds = %6, %1
ret void
}
declare i32 @link_error(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpitclt0x6.c'
source_filename = "/tmp/tmpitclt0x6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @c_fabs(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call double @llvm.fabs.f64(double %3)
ret double %4
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpitclt0x6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @c_fabs(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call double @llvm.fabs.f64(double %3)
ret double %4
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpld1rwc1w.c'
source_filename = "/tmp/tmpld1rwc1w.c"
target datalayout = "e-m:e-p270: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, i64 }
@errno = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
@ERR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check_for_keystroke() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %struct.timeval, align 8
%5 = call i32 @FD_ZERO(ptr noundef %2)
%6 = call i32 @FD_SET(i32 noundef 0, ptr noundef %2)
%7 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 1
store i64 0, ptr %7, align 8
%8 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 0
store i32 5000, ptr %8, align 8
br label %9
9: ; preds = %18, %0
%10 = call i32 @select(i32 noundef 1, ptr noundef %2, ptr noundef null, ptr noundef null, ptr noundef %4)
store i32 %10, ptr %3, align 4
br label %11
11: ; preds = %9
%12 = load i32, ptr %3, align 4
%13 = icmp slt i32 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %11
%15 = load i64, ptr @errno, align 8
%16 = load i64, ptr @EINTR, align 8
%17 = icmp eq i64 %15, %16
br label %18
18: ; preds = %14, %11
%19 = phi i1 [ false, %11 ], [ %17, %14 ]
br i1 %19, label %9, label %20, !llvm.loop !6
20: ; preds = %18
%21 = call i64 @FD_ISSET(i32 noundef 0, ptr noundef %2)
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %20
store i32 1, ptr %1, align 4
br label %26
24: ; preds = %20
%25 = load i32, ptr @ERR, align 4
store i32 %25, ptr %1, align 4
br label %26
26: ; preds = %24, %23
%27 = load i32, ptr %1, align 4
ret i32 %27
}
declare i32 @FD_ZERO(ptr noundef) #1
declare i32 @FD_SET(i32 noundef, ptr noundef) #1
declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @FD_ISSET(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpld1rwc1w.c"
target datalayout = "e-m:e-p270: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, i64 }
@errno = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
@ERR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check_for_keystroke() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %struct.timeval, align 8
%5 = call i32 @FD_ZERO(ptr noundef %2)
%6 = call i32 @FD_SET(i32 noundef 0, ptr noundef %2)
%7 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 1
store i64 0, ptr %7, align 8
%8 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 0
store i32 5000, ptr %8, align 8
br label %9
9: ; preds = %18, %0
%10 = call i32 @select(i32 noundef 1, ptr noundef %2, ptr noundef null, ptr noundef null, ptr noundef %4)
store i32 %10, ptr %3, align 4
br label %11
11: ; preds = %9
%12 = load i32, ptr %3, align 4
%13 = icmp slt i32 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %11
%15 = load i64, ptr @errno, align 8
%16 = load i64, ptr @EINTR, align 8
%17 = icmp eq i64 %15, %16
br label %18
18: ; preds = %14, %11
%19 = phi i1 [ false, %11 ], [ %17, %14 ]
br i1 %19, label %9, label %20, !llvm.loop !6
20: ; preds = %18
%21 = call i64 @FD_ISSET(i32 noundef 0, ptr noundef %2)
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %20
store i32 1, ptr %1, align 4
br label %26
24: ; preds = %20
%25 = load i32, ptr @ERR, align 4
store i32 %25, ptr %1, align 4
br label %26
26: ; preds = %24, %23
%27 = load i32, ptr %1, align 4
ret i32 %27
}
declare i32 @FD_ZERO(ptr noundef) #1
declare i32 @FD_SET(i32 noundef, ptr noundef) #1
declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @FD_ISSET(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp31ut_60n.c'
source_filename = "/tmp/tmp31ut_60n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getInt(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = 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
%10 = call ptr @malloc(i32 noundef 6)
store ptr %10, ptr %9, align 8
%11 = load ptr, ptr %9, align 8
%12 = load ptr, ptr %5, align 8
%13 = call i32 @strncpy(ptr noundef %11, ptr noundef %12, i32 noundef 5)
%14 = load ptr, ptr %5, align 8
%15 = call i32 @strlen(ptr noundef %14)
%16 = icmp sgt i32 %15, 5
br i1 %16, label %17, label %20
17: ; preds = %3
%18 = load ptr, ptr %9, align 8
%19 = getelementptr inbounds i8, ptr %18, i64 5
store i8 0, ptr %19, align 1
br label %20
20: ; preds = %17, %3
%21 = load ptr, ptr %9, align 8
%22 = call i32 @atoi(ptr noundef %21)
store i32 %22, ptr %8, align 4
%23 = load ptr, ptr %9, align 8
%24 = call i32 @free(ptr noundef %23)
%25 = load i32, ptr %8, align 4
%26 = load i32, ptr %6, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %30
28: ; preds = %20
%29 = load i32, ptr %6, align 4
store i32 %29, ptr %4, align 4
br label %38
30: ; preds = %20
%31 = load i32, ptr %8, align 4
%32 = load i32, ptr %7, align 4
%33 = icmp sgt i32 %31, %32
br i1 %33, label %34, label %36
34: ; preds = %30
%35 = load i32, ptr %7, align 4
store i32 %35, ptr %4, align 4
br label %38
36: ; preds = %30
%37 = load i32, ptr %8, align 4
store i32 %37, ptr %4, align 4
br label %38
38: ; preds = %36, %34, %28
%39 = load i32, ptr %4, align 4
ret i32 %39
}
declare ptr @malloc(i32 noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp31ut_60n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getInt(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = 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
%10 = call ptr @malloc(i32 noundef 6)
store ptr %10, ptr %9, align 8
%11 = load ptr, ptr %9, align 8
%12 = load ptr, ptr %5, align 8
%13 = call i32 @strncpy(ptr noundef %11, ptr noundef %12, i32 noundef 5)
%14 = load ptr, ptr %5, align 8
%15 = call i32 @strlen(ptr noundef %14)
%16 = icmp sgt i32 %15, 5
br i1 %16, label %17, label %20
17: ; preds = %3
%18 = load ptr, ptr %9, align 8
%19 = getelementptr inbounds i8, ptr %18, i64 5
store i8 0, ptr %19, align 1
br label %20
20: ; preds = %17, %3
%21 = load ptr, ptr %9, align 8
%22 = call i32 @atoi(ptr noundef %21)
store i32 %22, ptr %8, align 4
%23 = load ptr, ptr %9, align 8
%24 = call i32 @free(ptr noundef %23)
%25 = load i32, ptr %8, align 4
%26 = load i32, ptr %6, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %30
28: ; preds = %20
%29 = load i32, ptr %6, align 4
store i32 %29, ptr %4, align 4
br label %38
30: ; preds = %20
%31 = load i32, ptr %8, align 4
%32 = load i32, ptr %7, align 4
%33 = icmp sgt i32 %31, %32
br i1 %33, label %34, label %36
34: ; preds = %30
%35 = load i32, ptr %7, align 4
store i32 %35, ptr %4, align 4
br label %38
36: ; preds = %30
%37 = load i32, ptr %8, align 4
store i32 %37, ptr %4, align 4
br label %38
38: ; preds = %36, %34, %28
%39 = load i32, ptr %4, align 4
ret i32 %39
}
declare ptr @malloc(i32 noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwq62ylaj.c'
source_filename = "/tmp/tmpwq62ylaj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @USBEndpointDataGet(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%13 = load i32, ptr %7, align 4
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %4
store i32 258, ptr %10, align 4
br label %20
16: ; preds = %4
%17 = load i32, ptr %7, align 4
%18 = sub nsw i32 %17, 16
%19 = add nsw i32 278, %18
store i32 %19, ptr %10, align 4
br label %20
20: ; preds = %16, %15
%21 = load i32, ptr %6, align 4
%22 = load i32, ptr %10, align 4
%23 = add nsw i32 %21, %22
%24 = sext i32 %23 to i64
%25 = inttoptr i64 %24 to ptr
%26 = load volatile i16, ptr %25, align 2
%27 = zext i16 %26 to i32
%28 = and i32 %27, 1
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %20
%31 = load ptr, ptr %9, align 8
store i32 0, ptr %31, align 4
store i32 -1, ptr %5, align 4
br label %74
32: ; preds = %20
%33 = load i32, ptr %6, align 4
%34 = add nsw i32 %33, 264
%35 = load i32, ptr %7, align 4
%36 = add nsw i32 %34, %35
%37 = sext i32 %36 to i64
%38 = inttoptr i64 %37 to ptr
%39 = load volatile i16, ptr %38, align 2
%40 = zext i16 %39 to i32
store i32 %40, ptr %11, align 4
%41 = load i32, ptr %11, align 4
%42 = load ptr, ptr %9, align 8
%43 = load i32, ptr %42, align 4
%44 = icmp slt i32 %41, %43
br i1 %44, label %45, label %47
45: ; preds = %32
%46 = load i32, ptr %11, align 4
br label %50
47: ; preds = %32
%48 = load ptr, ptr %9, align 8
%49 = load i32, ptr %48, align 4
br label %50
50: ; preds = %47, %45
%51 = phi i32 [ %46, %45 ], [ %49, %47 ]
store i32 %51, ptr %11, align 4
%52 = load i32, ptr %11, align 4
%53 = load ptr, ptr %9, align 8
store i32 %52, ptr %53, align 4
%54 = load i32, ptr %6, align 4
%55 = add nsw i32 %54, 32
%56 = load i32, ptr %7, align 4
%57 = ashr i32 %56, 2
%58 = add nsw i32 %55, %57
store i32 %58, ptr %12, align 4
br label %59
59: ; preds = %70, %50
%60 = load i32, ptr %11, align 4
%61 = icmp sgt i32 %60, 0
br i1 %61, label %62, label %73
62: ; preds = %59
%63 = load i32, ptr %12, align 4
%64 = sext i32 %63 to i64
%65 = inttoptr i64 %64 to ptr
%66 = load volatile i8, ptr %65, align 1
%67 = zext i8 %66 to i32
%68 = load ptr, ptr %8, align 8
%69 = getelementptr inbounds i32, ptr %68, i32 1
store ptr %69, ptr %8, align 8
store i32 %67, ptr %68, align 4
br label %70
70: ; preds = %62
%71 = load i32, ptr %11, align 4
%72 = add nsw i32 %71, -1
store i32 %72, ptr %11, align 4
br label %59, !llvm.loop !6
73: ; preds = %59
store i32 0, ptr %5, align 4
br label %74
74: ; preds = %73, %30
%75 = load i32, ptr %5, align 4
ret i32 %75
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpwq62ylaj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @USBEndpointDataGet(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%13 = load i32, ptr %7, align 4
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %4
store i32 258, ptr %10, align 4
br label %20
16: ; preds = %4
%17 = load i32, ptr %7, align 4
%18 = sub nsw i32 %17, 16
%19 = add nsw i32 278, %18
store i32 %19, ptr %10, align 4
br label %20
20: ; preds = %16, %15
%21 = load i32, ptr %6, align 4
%22 = load i32, ptr %10, align 4
%23 = add nsw i32 %21, %22
%24 = sext i32 %23 to i64
%25 = inttoptr i64 %24 to ptr
%26 = load volatile i16, ptr %25, align 2
%27 = zext i16 %26 to i32
%28 = and i32 %27, 1
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %20
%31 = load ptr, ptr %9, align 8
store i32 0, ptr %31, align 4
store i32 -1, ptr %5, align 4
br label %75
32: ; preds = %20
%33 = load i32, ptr %6, align 4
%34 = add nsw i32 %33, 264
%35 = load i32, ptr %7, align 4
%36 = add nsw i32 %34, %35
%37 = sext i32 %36 to i64
%38 = inttoptr i64 %37 to ptr
%39 = load volatile i16, ptr %38, align 2
%40 = zext i16 %39 to i32
store i32 %40, ptr %11, align 4
%41 = load i32, ptr %11, align 4
%42 = load ptr, ptr %9, align 8
%43 = load i32, ptr %42, align 4
%44 = icmp slt i32 %41, %43
br i1 %44, label %45, label %47
45: ; preds = %32
%46 = load i32, ptr %11, align 4
br label %50
47: ; preds = %32
%48 = load ptr, ptr %9, align 8
%49 = load i32, ptr %48, align 4
br label %50
50: ; preds = %47, %45
%51 = phi i32 [ %46, %45 ], [ %49, %47 ]
store i32 %51, ptr %11, align 4
%52 = load i32, ptr %11, align 4
%53 = load ptr, ptr %9, align 8
store i32 %52, ptr %53, align 4
%54 = load i32, ptr %6, align 4
%55 = add nsw i32 %54, 32
%56 = load i32, ptr %7, align 4
%57 = ashr i32 %56, 2
%58 = add nsw i32 %55, %57
store i32 %58, ptr %12, align 4
%59 = load i32, ptr %11, align 4
%60 = icmp sgt i32 %59, 0
br i1 %60, label %.lr.ph, label %74
.lr.ph: ; preds = %50
br label %61
61: ; preds = %.lr.ph, %69
%62 = load i32, ptr %12, align 4
%63 = sext i32 %62 to i64
%64 = inttoptr i64 %63 to ptr
%65 = load volatile i8, ptr %64, align 1
%66 = zext i8 %65 to i32
%67 = load ptr, ptr %8, align 8
%68 = getelementptr inbounds i32, ptr %67, i32 1
store ptr %68, ptr %8, align 8
store i32 %66, ptr %67, align 4
br label %69
69: ; preds = %61
%70 = load i32, ptr %11, align 4
%71 = add nsw i32 %70, -1
store i32 %71, ptr %11, align 4
%72 = load i32, ptr %11, align 4
%73 = icmp sgt i32 %72, 0
br i1 %73, label %61, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %69
br label %74
74: ; preds = %._crit_edge, %50
store i32 0, ptr %5, align 4
br label %75
75: ; preds = %74, %30
%76 = load i32, ptr %5, align 4
ret i32 %76
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpkbgg5z1o.c'
source_filename = "/tmp/tmpkbgg5z1o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"Hello, World!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_implicit() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @formatd(ptr noundef @.str)
ret void
}
declare i32 @formatd(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkbgg5z1o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"Hello, World!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_implicit() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @formatd(ptr noundef @.str)
ret void
}
declare i32 @formatd(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgph9h7hk.c'
source_filename = "/tmp/tmpgph9h7hk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @JacobiOmpLoopV3(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, double noundef %4, i32 noundef %5, i32 noundef %6, ptr noundef %7) #0 {
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca double, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca double, align 8
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store i32 %2, ptr %11, align 4
store i32 %3, ptr %12, align 4
store double %4, ptr %13, align 8
store i32 %5, ptr %14, align 4
store i32 %6, ptr %15, align 4
store ptr %7, ptr %16, align 8
%25 = load ptr, ptr %16, align 8
%26 = load i32, ptr %25, align 4
store i32 %26, ptr %23, align 4
%27 = load double, ptr %13, align 8
store double %27, ptr %24, align 8
%28 = call i32 (...) @omp_get_max_threads()
store i32 %28, ptr %22, align 4
%29 = load i32, ptr %22, align 4
%30 = sext i32 %29 to i64
%31 = mul i64 8, %30
%32 = trunc i64 %31 to i32
%33 = call ptr @malloc(i32 noundef %32)
store ptr %33, ptr %20, align 8
%34 = call i32 (...) @omp_get_thread_num()
store i32 %34, ptr %21, align 4
br label %35
35: ; preds = %199, %8
%36 = load double, ptr %13, align 8
%37 = load double, ptr %24, align 8
%38 = fcmp ole double %36, %37
br i1 %38, label %39, label %43
39: ; preds = %35
%40 = load i32, ptr %23, align 4
%41 = load i32, ptr %14, align 4
%42 = icmp slt i32 %40, %41
br label %43
43: ; preds = %39, %35
%44 = phi i1 [ false, %35 ], [ %42, %39 ]
br i1 %44, label %45, label %202
45: ; preds = %43
%46 = load ptr, ptr %20, align 8
%47 = load i32, ptr %21, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds double, ptr %46, i64 %48
store double 0.000000e+00, ptr %49, align 8
store i32 1, ptr %17, align 4
br label %50
50: ; preds = %170, %45
%51 = load i32, ptr %17, align 4
%52 = load i32, ptr %11, align 4
%53 = sub nsw i32 %52, 1
%54 = icmp slt i32 %51, %53
br i1 %54, label %55, label %173
55: ; preds = %50
store i32 1, ptr %18, align 4
br label %56
56: ; preds = %166, %55
%57 = load i32, ptr %18, align 4
%58 = load i32, ptr %12, align 4
%59 = sub nsw i32 %58, 1
%60 = icmp slt i32 %57, %59
br i1 %60, label %61, label %169
61: ; preds = %56
%62 = load ptr, ptr %9, align 8
%63 = load i32, ptr %17, align 4
%64 = sub nsw i32 %63, 1
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds ptr, ptr %62, i64 %65
%67 = load ptr, ptr %66, align 8
%68 = load i32, ptr %18, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds double, ptr %67, i64 %69
%71 = load double, ptr %70, align 8
%72 = load ptr, ptr %9, align 8
%73 = load i32, ptr %17, align 4
%74 = add nsw i32 %73, 1
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds ptr, ptr %72, i64 %75
%77 = load ptr, ptr %76, align 8
%78 = load i32, ptr %18, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds double, ptr %77, i64 %79
%81 = load double, ptr %80, align 8
%82 = fadd double %71, %81
%83 = load ptr, ptr %9, align 8
%84 = load i32, ptr %17, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds ptr, ptr %83, i64 %85
%87 = load ptr, ptr %86, align 8
%88 = load i32, ptr %18, align 4
%89 = sub nsw i32 %88, 1
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds double, ptr %87, i64 %90
%92 = load double, ptr %91, align 8
%93 = fadd double %82, %92
%94 = load ptr, ptr %9, align 8
%95 = load i32, ptr %17, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds ptr, ptr %94, i64 %96
%98 = load ptr, ptr %97, align 8
%99 = load i32, ptr %18, align 4
%100 = add nsw i32 %99, 1
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds double, ptr %98, i64 %101
%103 = load double, ptr %102, align 8
%104 = fadd double %93, %103
%105 = fmul double 2.500000e-01, %104
%106 = load ptr, ptr %10, align 8
%107 = load i32, ptr %17, align 4
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds ptr, ptr %106, i64 %108
%110 = load ptr, ptr %109, align 8
%111 = load i32, ptr %18, align 4
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds double, ptr %110, i64 %112
store double %105, ptr %113, align 8
%114 = load ptr, ptr %20, align 8
%115 = load i32, ptr %21, align 4
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds double, ptr %114, i64 %116
%118 = load double, ptr %117, align 8
%119 = load ptr, ptr %10, align 8
%120 = load i32, ptr %17, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds ptr, ptr %119, i64 %121
%123 = load ptr, ptr %122, align 8
%124 = load i32, ptr %18, align 4
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds double, ptr %123, i64 %125
%127 = load double, ptr %126, align 8
%128 = load ptr, ptr %9, align 8
%129 = load i32, ptr %17, align 4
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds ptr, ptr %128, i64 %130
%132 = load ptr, ptr %131, align 8
%133 = load i32, ptr %18, align 4
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds double, ptr %132, i64 %134
%136 = load double, ptr %135, align 8
%137 = fsub double %127, %136
%138 = call double @llvm.fabs.f64(double %137)
%139 = fcmp olt double %118, %138
br i1 %139, label %140, label %165
140: ; preds = %61
%141 = load ptr, ptr %10, align 8
%142 = load i32, ptr %17, align 4
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds ptr, ptr %141, i64 %143
%145 = load ptr, ptr %144, align 8
%146 = load i32, ptr %18, align 4
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds double, ptr %145, i64 %147
%149 = load double, ptr %148, align 8
%150 = load ptr, ptr %9, align 8
%151 = load i32, ptr %17, align 4
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds ptr, ptr %150, i64 %152
%154 = load ptr, ptr %153, align 8
%155 = load i32, ptr %18, align 4
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds double, ptr %154, i64 %156
%158 = load double, ptr %157, align 8
%159 = fsub double %149, %158
%160 = call double @llvm.fabs.f64(double %159)
%161 = load ptr, ptr %20, align 8
%162 = load i32, ptr %21, align 4
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds double, ptr %161, i64 %163
store double %160, ptr %164, align 8
br label %165
165: ; preds = %140, %61
br label %166
166: ; preds = %165
%167 = load i32, ptr %18, align 4
%168 = add nsw i32 %167, 1
store i32 %168, ptr %18, align 4
br label %56, !llvm.loop !6
169: ; preds = %56
br label %170
170: ; preds = %169
%171 = load i32, ptr %17, align 4
%172 = add nsw i32 %171, 1
store i32 %172, ptr %17, align 4
br label %50, !llvm.loop !8
173: ; preds = %50
%174 = load ptr, ptr %9, align 8
store ptr %174, ptr %19, align 8
%175 = load ptr, ptr %10, align 8
store ptr %175, ptr %9, align 8
%176 = load ptr, ptr %19, align 8
store ptr %176, ptr %10, align 8
store double 0.000000e+00, ptr %24, align 8
store i32 0, ptr %18, align 4
br label %177
177: ; preds = %196, %173
%178 = load i32, ptr %18, align 4
%179 = load i32, ptr %22, align 4
%180 = icmp slt i32 %178, %179
br i1 %180, label %181, label %199
181: ; preds = %177
%182 = load ptr, ptr %20, align 8
%183 = load i32, ptr %18, align 4
%184 = sext i32 %183 to i64
%185 = getelementptr inbounds double, ptr %182, i64 %184
%186 = load double, ptr %185, align 8
%187 = load double, ptr %24, align 8
%188 = fcmp ogt double %186, %187
br i1 %188, label %189, label %195
189: ; preds = %181
%190 = load ptr, ptr %20, align 8
%191 = load i32, ptr %18, align 4
%192 = sext i32 %191 to i64
%193 = getelementptr inbounds double, ptr %190, i64 %192
%194 = load double, ptr %193, align 8
store double %194, ptr %24, align 8
br label %195
195: ; preds = %189, %181
br label %196
196: ; preds = %195
%197 = load i32, ptr %18, align 4
%198 = add nsw i32 %197, 1
store i32 %198, ptr %18, align 4
br label %177, !llvm.loop !9
199: ; preds = %177
%200 = load i32, ptr %23, align 4
%201 = add nsw i32 %200, 1
store i32 %201, ptr %23, align 4
br label %35, !llvm.loop !10
202: ; preds = %43
%203 = load i32, ptr %23, align 4
%204 = load ptr, ptr %16, align 8
store i32 %203, ptr %204, align 4
%205 = load ptr, ptr %20, align 8
%206 = call i32 @free(ptr noundef %205)
%207 = load double, ptr %24, align 8
ret double %207
}
declare i32 @omp_get_max_threads(...) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @omp_get_thread_num(...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #2
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgph9h7hk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @JacobiOmpLoopV3(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, double noundef %4, i32 noundef %5, i32 noundef %6, ptr noundef %7) #0 {
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca double, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca double, align 8
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store i32 %2, ptr %11, align 4
store i32 %3, ptr %12, align 4
store double %4, ptr %13, align 8
store i32 %5, ptr %14, align 4
store i32 %6, ptr %15, align 4
store ptr %7, ptr %16, align 8
%25 = load ptr, ptr %16, align 8
%26 = load i32, ptr %25, align 4
store i32 %26, ptr %23, align 4
%27 = load double, ptr %13, align 8
store double %27, ptr %24, align 8
%28 = call i32 (...) @omp_get_max_threads()
store i32 %28, ptr %22, align 4
%29 = load i32, ptr %22, align 4
%30 = sext i32 %29 to i64
%31 = mul i64 8, %30
%32 = trunc i64 %31 to i32
%33 = call ptr @malloc(i32 noundef %32)
store ptr %33, ptr %20, align 8
%34 = call i32 (...) @omp_get_thread_num()
store i32 %34, ptr %21, align 4
br label %35
35: ; preds = %207, %8
%36 = load double, ptr %13, align 8
%37 = load double, ptr %24, align 8
%38 = fcmp ole double %36, %37
br i1 %38, label %39, label %43
39: ; preds = %35
%40 = load i32, ptr %23, align 4
%41 = load i32, ptr %14, align 4
%42 = icmp slt i32 %40, %41
br label %43
43: ; preds = %39, %35
%44 = phi i1 [ false, %35 ], [ %42, %39 ]
br i1 %44, label %45, label %210
45: ; preds = %43
%46 = load ptr, ptr %20, align 8
%47 = load i32, ptr %21, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds double, ptr %46, i64 %48
store double 0.000000e+00, ptr %49, align 8
store i32 1, ptr %17, align 4
%50 = load i32, ptr %17, align 4
%51 = load i32, ptr %11, align 4
%52 = sub nsw i32 %51, 1
%53 = icmp slt i32 %50, %52
br i1 %53, label %.lr.ph2, label %179
.lr.ph2: ; preds = %45
br label %54
54: ; preds = %.lr.ph2, %172
store i32 1, ptr %18, align 4
%55 = load i32, ptr %18, align 4
%56 = load i32, ptr %12, align 4
%57 = sub nsw i32 %56, 1
%58 = icmp slt i32 %55, %57
br i1 %58, label %.lr.ph, label %171
.lr.ph: ; preds = %54
br label %59
59: ; preds = %.lr.ph, %164
%60 = load ptr, ptr %9, align 8
%61 = load i32, ptr %17, align 4
%62 = sub nsw i32 %61, 1
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds ptr, ptr %60, i64 %63
%65 = load ptr, ptr %64, align 8
%66 = load i32, ptr %18, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds double, ptr %65, i64 %67
%69 = load double, ptr %68, align 8
%70 = load ptr, ptr %9, align 8
%71 = load i32, ptr %17, align 4
%72 = add nsw i32 %71, 1
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds ptr, ptr %70, i64 %73
%75 = load ptr, ptr %74, align 8
%76 = load i32, ptr %18, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds double, ptr %75, i64 %77
%79 = load double, ptr %78, align 8
%80 = fadd double %69, %79
%81 = load ptr, ptr %9, align 8
%82 = load i32, ptr %17, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds ptr, ptr %81, i64 %83
%85 = load ptr, ptr %84, align 8
%86 = load i32, ptr %18, align 4
%87 = sub nsw i32 %86, 1
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds double, ptr %85, i64 %88
%90 = load double, ptr %89, align 8
%91 = fadd double %80, %90
%92 = load ptr, ptr %9, align 8
%93 = load i32, ptr %17, align 4
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds ptr, ptr %92, i64 %94
%96 = load ptr, ptr %95, align 8
%97 = load i32, ptr %18, align 4
%98 = add nsw i32 %97, 1
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds double, ptr %96, i64 %99
%101 = load double, ptr %100, align 8
%102 = fadd double %91, %101
%103 = fmul double 2.500000e-01, %102
%104 = load ptr, ptr %10, align 8
%105 = load i32, ptr %17, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds ptr, ptr %104, i64 %106
%108 = load ptr, ptr %107, align 8
%109 = load i32, ptr %18, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds double, ptr %108, i64 %110
store double %103, ptr %111, align 8
%112 = load ptr, ptr %20, align 8
%113 = load i32, ptr %21, align 4
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds double, ptr %112, i64 %114
%116 = load double, ptr %115, align 8
%117 = load ptr, ptr %10, align 8
%118 = load i32, ptr %17, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds ptr, ptr %117, i64 %119
%121 = load ptr, ptr %120, align 8
%122 = load i32, ptr %18, align 4
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds double, ptr %121, i64 %123
%125 = load double, ptr %124, align 8
%126 = load ptr, ptr %9, align 8
%127 = load i32, ptr %17, align 4
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds ptr, ptr %126, i64 %128
%130 = load ptr, ptr %129, align 8
%131 = load i32, ptr %18, align 4
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds double, ptr %130, i64 %132
%134 = load double, ptr %133, align 8
%135 = fsub double %125, %134
%136 = call double @llvm.fabs.f64(double %135)
%137 = fcmp olt double %116, %136
br i1 %137, label %138, label %163
138: ; preds = %59
%139 = load ptr, ptr %10, align 8
%140 = load i32, ptr %17, align 4
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds ptr, ptr %139, i64 %141
%143 = load ptr, ptr %142, align 8
%144 = load i32, ptr %18, align 4
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds double, ptr %143, i64 %145
%147 = load double, ptr %146, align 8
%148 = load ptr, ptr %9, align 8
%149 = load i32, ptr %17, align 4
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds ptr, ptr %148, i64 %150
%152 = load ptr, ptr %151, align 8
%153 = load i32, ptr %18, align 4
%154 = sext i32 %153 to i64
%155 = getelementptr inbounds double, ptr %152, i64 %154
%156 = load double, ptr %155, align 8
%157 = fsub double %147, %156
%158 = call double @llvm.fabs.f64(double %157)
%159 = load ptr, ptr %20, align 8
%160 = load i32, ptr %21, align 4
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds double, ptr %159, i64 %161
store double %158, ptr %162, align 8
br label %163
163: ; preds = %138, %59
br label %164
164: ; preds = %163
%165 = load i32, ptr %18, align 4
%166 = add nsw i32 %165, 1
store i32 %166, ptr %18, align 4
%167 = load i32, ptr %18, align 4
%168 = load i32, ptr %12, align 4
%169 = sub nsw i32 %168, 1
%170 = icmp slt i32 %167, %169
br i1 %170, label %59, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %164
br label %171
171: ; preds = %._crit_edge, %54
br label %172
172: ; preds = %171
%173 = load i32, ptr %17, align 4
%174 = add nsw i32 %173, 1
store i32 %174, ptr %17, align 4
%175 = load i32, ptr %17, align 4
%176 = load i32, ptr %11, align 4
%177 = sub nsw i32 %176, 1
%178 = icmp slt i32 %175, %177
br i1 %178, label %54, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %172
br label %179
179: ; preds = %._crit_edge3, %45
%180 = load ptr, ptr %9, align 8
store ptr %180, ptr %19, align 8
%181 = load ptr, ptr %10, align 8
store ptr %181, ptr %9, align 8
%182 = load ptr, ptr %19, align 8
store ptr %182, ptr %10, align 8
store double 0.000000e+00, ptr %24, align 8
store i32 0, ptr %18, align 4
%183 = load i32, ptr %18, align 4
%184 = load i32, ptr %22, align 4
%185 = icmp slt i32 %183, %184
br i1 %185, label %.lr.ph5, label %207
.lr.ph5: ; preds = %179
br label %186
186: ; preds = %.lr.ph5, %201
%187 = load ptr, ptr %20, align 8
%188 = load i32, ptr %18, align 4
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds double, ptr %187, i64 %189
%191 = load double, ptr %190, align 8
%192 = load double, ptr %24, align 8
%193 = fcmp ogt double %191, %192
br i1 %193, label %194, label %200
194: ; preds = %186
%195 = load ptr, ptr %20, align 8
%196 = load i32, ptr %18, align 4
%197 = sext i32 %196 to i64
%198 = getelementptr inbounds double, ptr %195, i64 %197
%199 = load double, ptr %198, align 8
store double %199, ptr %24, align 8
br label %200
200: ; preds = %194, %186
br label %201
201: ; preds = %200
%202 = load i32, ptr %18, align 4
%203 = add nsw i32 %202, 1
store i32 %203, ptr %18, align 4
%204 = load i32, ptr %18, align 4
%205 = load i32, ptr %22, align 4
%206 = icmp slt i32 %204, %205
br i1 %206, label %186, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %201
br label %207
207: ; preds = %._crit_edge6, %179
%208 = load i32, ptr %23, align 4
%209 = add nsw i32 %208, 1
store i32 %209, ptr %23, align 4
br label %35, !llvm.loop !10
210: ; preds = %43
%211 = load i32, ptr %23, align 4
%212 = load ptr, ptr %16, align 8
store i32 %211, ptr %212, align 4
%213 = load ptr, ptr %20, align 8
%214 = call i32 @free(ptr noundef %213)
%215 = load double, ptr %24, align 8
ret double %215
}
declare i32 @omp_get_max_threads(...) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @omp_get_thread_num(...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #2
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpkg8_2f39.c'
source_filename = "/tmp/tmpkg8_2f39.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_OK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @file_exists(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i32, ptr @F_OK, align 4
%5 = call i32 @access(ptr noundef %3, i32 noundef %4)
%6 = icmp ne i32 %5, -1
%7 = zext i1 %6 to i32
ret i32 %7
}
declare i32 @access(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/tmpkg8_2f39.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_OK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @file_exists(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i32, ptr @F_OK, align 4
%5 = call i32 @access(ptr noundef %3, i32 noundef %4)
%6 = icmp ne i32 %5, -1
%7 = zext i1 %6 to i32
ret i32 %7
}
declare i32 @access(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/tmpqw2kxor1.c'
source_filename = "/tmp/tmpqw2kxor1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@betaln.e = internal global double 0x3FED67F1C864BEB7, align 8
@betaln.betaln = internal global double 0.000000e+00, align 8
@betaln.a = internal global double 0.000000e+00, align 8
@betaln.b = internal global double 0.000000e+00, align 8
@betaln.c = internal global double 0.000000e+00, align 8
@betaln.h = internal global double 0.000000e+00, align 8
@betaln.u = internal global double 0.000000e+00, align 8
@betaln.v = internal global double 0.000000e+00, align 8
@betaln.w = internal global double 0.000000e+00, align 8
@betaln.z = internal global double 0.000000e+00, align 8
@betaln.i = internal global i32 0, align 4
@betaln.n = internal global i32 0, align 4
@betaln.T1 = internal global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @betaln(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = load double, ptr %6, align 8
%8 = load ptr, ptr %5, align 8
%9 = load double, ptr %8, align 8
%10 = call double @fifdmin1(double noundef %7, double noundef %9)
store double %10, ptr @betaln.a, align 8
%11 = load ptr, ptr %4, align 8
%12 = load double, ptr %11, align 8
%13 = load ptr, ptr %5, align 8
%14 = load double, ptr %13, align 8
%15 = call double @fifdmax1(double noundef %12, double noundef %14)
store double %15, ptr @betaln.b, align 8
%16 = load double, ptr @betaln.a, align 8
%17 = fcmp oge double %16, 8.000000e+00
br i1 %17, label %18, label %19
18: ; preds = %2
br label %175
19: ; preds = %2
%20 = load double, ptr @betaln.a, align 8
%21 = fcmp oge double %20, 1.000000e+00
br i1 %21, label %22, label %23
22: ; preds = %19
br label %42
23: ; preds = %19
%24 = load double, ptr @betaln.b, align 8
%25 = fcmp oge double %24, 8.000000e+00
br i1 %25, label %26, label %27
26: ; preds = %23
br label %37
27: ; preds = %23
%28 = load double, ptr @betaln.a, align 8
%29 = load double, ptr @betaln.b, align 8
%30 = fadd double %28, %29
store double %30, ptr @betaln.T1, align 8
%31 = call double @gamln(ptr noundef @betaln.a)
%32 = call double @gamln(ptr noundef @betaln.b)
%33 = call double @gamln(ptr noundef @betaln.T1)
%34 = fsub double %32, %33
%35 = fadd double %31, %34
store double %35, ptr @betaln.betaln, align 8
%36 = load double, ptr @betaln.betaln, align 8
store double %36, ptr %3, align 8
br label %221
37: ; preds = %26
%38 = call double @gamln(ptr noundef @betaln.a)
%39 = call double @algdiv(ptr noundef @betaln.a, ptr noundef @betaln.b)
%40 = fadd double %38, %39
store double %40, ptr @betaln.betaln, align 8
%41 = load double, ptr @betaln.betaln, align 8
store double %41, ptr %3, align 8
br label %221
42: ; preds = %22
%43 = load double, ptr @betaln.a, align 8
%44 = fcmp ogt double %43, 2.000000e+00
br i1 %44, label %45, label %46
45: ; preds = %42
br label %66
46: ; preds = %42
%47 = load double, ptr @betaln.b, align 8
%48 = fcmp ogt double %47, 2.000000e+00
br i1 %48, label %49, label %50
49: ; preds = %46
br label %57
50: ; preds = %46
%51 = call double @gamln(ptr noundef @betaln.a)
%52 = call double @gamln(ptr noundef @betaln.b)
%53 = fadd double %51, %52
%54 = call double @gsumln(ptr noundef @betaln.a, ptr noundef @betaln.b)
%55 = fsub double %53, %54
store double %55, ptr @betaln.betaln, align 8
%56 = load double, ptr @betaln.betaln, align 8
store double %56, ptr %3, align 8
br label %221
57: ; preds = %49
store double 0.000000e+00, ptr @betaln.w, align 8
%58 = load double, ptr @betaln.b, align 8
%59 = fcmp olt double %58, 8.000000e+00
br i1 %59, label %60, label %61
60: ; preds = %57
br label %106
61: ; preds = %57
%62 = call double @gamln(ptr noundef @betaln.a)
%63 = call double @algdiv(ptr noundef @betaln.a, ptr noundef @betaln.b)
%64 = fadd double %62, %63
store double %64, ptr @betaln.betaln, align 8
%65 = load double, ptr @betaln.betaln, align 8
store double %65, ptr %3, align 8
br label %221
66: ; preds = %45
%67 = load double, ptr @betaln.b, align 8
%68 = fcmp ogt double %67, 1.000000e+03
br i1 %68, label %69, label %70
69: ; preds = %66
br label %139
70: ; preds = %66
%71 = load double, ptr @betaln.a, align 8
%72 = fsub double %71, 1.000000e+00
%73 = fptosi double %72 to i32
store i32 %73, ptr @betaln.n, align 4
store double 1.000000e+00, ptr @betaln.w, align 8
store i32 1, ptr @betaln.i, align 4
br label %74
74: ; preds = %90, %70
%75 = load i32, ptr @betaln.i, align 4
%76 = load i32, ptr @betaln.n, align 4
%77 = icmp sle i32 %75, %76
br i1 %77, label %78, label %93
78: ; preds = %74
%79 = load double, ptr @betaln.a, align 8
%80 = fsub double %79, 1.000000e+00
store double %80, ptr @betaln.a, align 8
%81 = load double, ptr @betaln.a, align 8
%82 = load double, ptr @betaln.b, align 8
%83 = fdiv double %81, %82
store double %83, ptr @betaln.h, align 8
%84 = load double, ptr @betaln.h, align 8
%85 = load double, ptr @betaln.h, align 8
%86 = fadd double 1.000000e+00, %85
%87 = fdiv double %84, %86
%88 = load double, ptr @betaln.w, align 8
%89 = fmul double %88, %87
store double %89, ptr @betaln.w, align 8
br label %90
90: ; preds = %78
%91 = load i32, ptr @betaln.i, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr @betaln.i, align 4
br label %74, !llvm.loop !6
93: ; preds = %74
%94 = load double, ptr @betaln.w, align 8
%95 = call double @log(double noundef %94) #4
store double %95, ptr @betaln.w, align 8
%96 = load double, ptr @betaln.b, align 8
%97 = fcmp olt double %96, 8.000000e+00
br i1 %97, label %98, label %99
98: ; preds = %93
br label %106
99: ; preds = %93
%100 = load double, ptr @betaln.w, align 8
%101 = call double @gamln(ptr noundef @betaln.a)
%102 = fadd double %100, %101
%103 = call double @algdiv(ptr noundef @betaln.a, ptr noundef @betaln.b)
%104 = fadd double %102, %103
store double %104, ptr @betaln.betaln, align 8
%105 = load double, ptr @betaln.betaln, align 8
store double %105, ptr %3, align 8
br label %221
106: ; preds = %98, %60
%107 = load double, ptr @betaln.b, align 8
%108 = fsub double %107, 1.000000e+00
%109 = fptosi double %108 to i32
store i32 %109, ptr @betaln.n, align 4
store double 1.000000e+00, ptr @betaln.z, align 8
store i32 1, ptr @betaln.i, align 4
br label %110
110: ; preds = %124, %106
%111 = load i32, ptr @betaln.i, align 4
%112 = load i32, ptr @betaln.n, align 4
%113 = icmp sle i32 %111, %112
br i1 %113, label %114, label %127
114: ; preds = %110
%115 = load double, ptr @betaln.b, align 8
%116 = fsub double %115, 1.000000e+00
store double %116, ptr @betaln.b, align 8
%117 = load double, ptr @betaln.b, align 8
%118 = load double, ptr @betaln.a, align 8
%119 = load double, ptr @betaln.b, align 8
%120 = fadd double %118, %119
%121 = fdiv double %117, %120
%122 = load double, ptr @betaln.z, align 8
%123 = fmul double %122, %121
store double %123, ptr @betaln.z, align 8
br label %124
124: ; preds = %114
%125 = load i32, ptr @betaln.i, align 4
%126 = add nsw i32 %125, 1
store i32 %126, ptr @betaln.i, align 4
br label %110, !llvm.loop !8
127: ; preds = %110
%128 = load double, ptr @betaln.w, align 8
%129 = load double, ptr @betaln.z, align 8
%130 = call double @log(double noundef %129) #4
%131 = fadd double %128, %130
%132 = call double @gamln(ptr noundef @betaln.a)
%133 = call double @gamln(ptr noundef @betaln.b)
%134 = call double @gsumln(ptr noundef @betaln.a, ptr noundef @betaln.b)
%135 = fsub double %133, %134
%136 = fadd double %132, %135
%137 = fadd double %131, %136
store double %137, ptr @betaln.betaln, align 8
%138 = load double, ptr @betaln.betaln, align 8
store double %138, ptr %3, align 8
br label %221
139: ; preds = %69
%140 = load double, ptr @betaln.a, align 8
%141 = fsub double %140, 1.000000e+00
%142 = fptosi double %141 to i32
store i32 %142, ptr @betaln.n, align 4
store double 1.000000e+00, ptr @betaln.w, align 8
store i32 1, ptr @betaln.i, align 4
br label %143
143: ; preds = %158, %139
%144 = load i32, ptr @betaln.i, align 4
%145 = load i32, ptr @betaln.n, align 4
%146 = icmp sle i32 %144, %145
br i1 %146, label %147, label %161
147: ; preds = %143
%148 = load double, ptr @betaln.a, align 8
%149 = fsub double %148, 1.000000e+00
store double %149, ptr @betaln.a, align 8
%150 = load double, ptr @betaln.a, align 8
%151 = load double, ptr @betaln.a, align 8
%152 = load double, ptr @betaln.b, align 8
%153 = fdiv double %151, %152
%154 = fadd double 1.000000e+00, %153
%155 = fdiv double %150, %154
%156 = load double, ptr @betaln.w, align 8
%157 = fmul double %156, %155
store double %157, ptr @betaln.w, align 8
br label %158
158: ; preds = %147
%159 = load i32, ptr @betaln.i, align 4
%160 = add nsw i32 %159, 1
store i32 %160, ptr @betaln.i, align 4
br label %143, !llvm.loop !9
161: ; preds = %143
%162 = load double, ptr @betaln.w, align 8
%163 = call double @log(double noundef %162) #4
%164 = load i32, ptr @betaln.n, align 4
%165 = sitofp i32 %164 to double
%166 = load double, ptr @betaln.b, align 8
%167 = call double @log(double noundef %166) #4
%168 = fneg double %165
%169 = call double @llvm.fmuladd.f64(double %168, double %167, double %163)
%170 = call double @gamln(ptr noundef @betaln.a)
%171 = call double @algdiv(ptr noundef @betaln.a, ptr noundef @betaln.b)
%172 = fadd double %170, %171
%173 = fadd double %169, %172
store double %173, ptr @betaln.betaln, align 8
%174 = load double, ptr @betaln.betaln, align 8
store double %174, ptr %3, align 8
br label %221
175: ; preds = %18
%176 = call double @bcorr(ptr noundef @betaln.a, ptr noundef @betaln.b)
store double %176, ptr @betaln.w, align 8
%177 = load double, ptr @betaln.a, align 8
%178 = load double, ptr @betaln.b, align 8
%179 = fdiv double %177, %178
store double %179, ptr @betaln.h, align 8
%180 = load double, ptr @betaln.h, align 8
%181 = load double, ptr @betaln.h, align 8
%182 = fadd double 1.000000e+00, %181
%183 = fdiv double %180, %182
store double %183, ptr @betaln.c, align 8
%184 = load double, ptr @betaln.a, align 8
%185 = fsub double %184, 5.000000e-01
%186 = load double, ptr @betaln.c, align 8
%187 = call double @log(double noundef %186) #4
%188 = fmul double %185, %187
%189 = fneg double %188
store double %189, ptr @betaln.u, align 8
%190 = load double, ptr @betaln.b, align 8
%191 = call double @alnrel(ptr noundef @betaln.h)
%192 = fmul double %190, %191
store double %192, ptr @betaln.v, align 8
%193 = load double, ptr @betaln.u, align 8
%194 = load double, ptr @betaln.v, align 8
%195 = fcmp ole double %193, %194
br i1 %195, label %196, label %197
196: ; preds = %175
br label %209
197: ; preds = %175
%198 = load double, ptr @betaln.b, align 8
%199 = call double @log(double noundef %198) #4
%200 = load double, ptr @betaln.e, align 8
%201 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %199, double %200)
%202 = load double, ptr @betaln.w, align 8
%203 = fadd double %201, %202
%204 = load double, ptr @betaln.v, align 8
%205 = fsub double %203, %204
%206 = load double, ptr @betaln.u, align 8
%207 = fsub double %205, %206
store double %207, ptr @betaln.betaln, align 8
%208 = load double, ptr @betaln.betaln, align 8
store double %208, ptr %3, align 8
br label %221
209: ; preds = %196
%210 = load double, ptr @betaln.b, align 8
%211 = call double @log(double noundef %210) #4
%212 = load double, ptr @betaln.e, align 8
%213 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %211, double %212)
%214 = load double, ptr @betaln.w, align 8
%215 = fadd double %213, %214
%216 = load double, ptr @betaln.u, align 8
%217 = fsub double %215, %216
%218 = load double, ptr @betaln.v, align 8
%219 = fsub double %217, %218
store double %219, ptr @betaln.betaln, align 8
%220 = load double, ptr @betaln.betaln, align 8
store double %220, ptr %3, align 8
br label %221
221: ; preds = %209, %197, %161, %127, %99, %61, %50, %37, %27
%222 = load double, ptr %3, align 8
ret double %222
}
declare double @fifdmin1(double noundef, double noundef) #1
declare double @fifdmax1(double noundef, double noundef) #1
declare double @gamln(ptr noundef) #1
declare double @algdiv(ptr noundef, ptr noundef) #1
declare double @gsumln(ptr noundef, ptr noundef) #1
; Function Attrs: nounwind
declare double @log(double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
declare double @bcorr(ptr noundef, ptr noundef) #1
declare double @alnrel(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqw2kxor1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@betaln.e = internal global double 0x3FED67F1C864BEB7, align 8
@betaln.betaln = internal global double 0.000000e+00, align 8
@betaln.a = internal global double 0.000000e+00, align 8
@betaln.b = internal global double 0.000000e+00, align 8
@betaln.c = internal global double 0.000000e+00, align 8
@betaln.h = internal global double 0.000000e+00, align 8
@betaln.u = internal global double 0.000000e+00, align 8
@betaln.v = internal global double 0.000000e+00, align 8
@betaln.w = internal global double 0.000000e+00, align 8
@betaln.z = internal global double 0.000000e+00, align 8
@betaln.i = internal global i32 0, align 4
@betaln.n = internal global i32 0, align 4
@betaln.T1 = internal global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @betaln(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = load double, ptr %6, align 8
%8 = load ptr, ptr %5, align 8
%9 = load double, ptr %8, align 8
%10 = call double @fifdmin1(double noundef %7, double noundef %9)
store double %10, ptr @betaln.a, align 8
%11 = load ptr, ptr %4, align 8
%12 = load double, ptr %11, align 8
%13 = load ptr, ptr %5, align 8
%14 = load double, ptr %13, align 8
%15 = call double @fifdmax1(double noundef %12, double noundef %14)
store double %15, ptr @betaln.b, align 8
%16 = load double, ptr @betaln.a, align 8
%17 = fcmp oge double %16, 8.000000e+00
br i1 %17, label %18, label %19
18: ; preds = %2
br label %181
19: ; preds = %2
%20 = load double, ptr @betaln.a, align 8
%21 = fcmp oge double %20, 1.000000e+00
br i1 %21, label %22, label %23
22: ; preds = %19
br label %42
23: ; preds = %19
%24 = load double, ptr @betaln.b, align 8
%25 = fcmp oge double %24, 8.000000e+00
br i1 %25, label %26, label %27
26: ; preds = %23
br label %37
27: ; preds = %23
%28 = load double, ptr @betaln.a, align 8
%29 = load double, ptr @betaln.b, align 8
%30 = fadd double %28, %29
store double %30, ptr @betaln.T1, align 8
%31 = call double @gamln(ptr noundef @betaln.a)
%32 = call double @gamln(ptr noundef @betaln.b)
%33 = call double @gamln(ptr noundef @betaln.T1)
%34 = fsub double %32, %33
%35 = fadd double %31, %34
store double %35, ptr @betaln.betaln, align 8
%36 = load double, ptr @betaln.betaln, align 8
store double %36, ptr %3, align 8
br label %227
37: ; preds = %26
%38 = call double @gamln(ptr noundef @betaln.a)
%39 = call double @algdiv(ptr noundef @betaln.a, ptr noundef @betaln.b)
%40 = fadd double %38, %39
store double %40, ptr @betaln.betaln, align 8
%41 = load double, ptr @betaln.betaln, align 8
store double %41, ptr %3, align 8
br label %227
42: ; preds = %22
%43 = load double, ptr @betaln.a, align 8
%44 = fcmp ogt double %43, 2.000000e+00
br i1 %44, label %45, label %46
45: ; preds = %42
br label %66
46: ; preds = %42
%47 = load double, ptr @betaln.b, align 8
%48 = fcmp ogt double %47, 2.000000e+00
br i1 %48, label %49, label %50
49: ; preds = %46
br label %57
50: ; preds = %46
%51 = call double @gamln(ptr noundef @betaln.a)
%52 = call double @gamln(ptr noundef @betaln.b)
%53 = fadd double %51, %52
%54 = call double @gsumln(ptr noundef @betaln.a, ptr noundef @betaln.b)
%55 = fsub double %53, %54
store double %55, ptr @betaln.betaln, align 8
%56 = load double, ptr @betaln.betaln, align 8
store double %56, ptr %3, align 8
br label %227
57: ; preds = %49
store double 0.000000e+00, ptr @betaln.w, align 8
%58 = load double, ptr @betaln.b, align 8
%59 = fcmp olt double %58, 8.000000e+00
br i1 %59, label %60, label %61
60: ; preds = %57
br label %108
61: ; preds = %57
%62 = call double @gamln(ptr noundef @betaln.a)
%63 = call double @algdiv(ptr noundef @betaln.a, ptr noundef @betaln.b)
%64 = fadd double %62, %63
store double %64, ptr @betaln.betaln, align 8
%65 = load double, ptr @betaln.betaln, align 8
store double %65, ptr %3, align 8
br label %227
66: ; preds = %45
%67 = load double, ptr @betaln.b, align 8
%68 = fcmp ogt double %67, 1.000000e+03
br i1 %68, label %69, label %70
69: ; preds = %66
br label %143
70: ; preds = %66
%71 = load double, ptr @betaln.a, align 8
%72 = fsub double %71, 1.000000e+00
%73 = fptosi double %72 to i32
store i32 %73, ptr @betaln.n, align 4
store double 1.000000e+00, ptr @betaln.w, align 8
store i32 1, ptr @betaln.i, align 4
%74 = load i32, ptr @betaln.i, align 4
%75 = load i32, ptr @betaln.n, align 4
%76 = icmp sle i32 %74, %75
br i1 %76, label %.lr.ph, label %95
.lr.ph: ; preds = %70
br label %77
77: ; preds = %.lr.ph, %89
%78 = load double, ptr @betaln.a, align 8
%79 = fsub double %78, 1.000000e+00
store double %79, ptr @betaln.a, align 8
%80 = load double, ptr @betaln.a, align 8
%81 = load double, ptr @betaln.b, align 8
%82 = fdiv double %80, %81
store double %82, ptr @betaln.h, align 8
%83 = load double, ptr @betaln.h, align 8
%84 = load double, ptr @betaln.h, align 8
%85 = fadd double 1.000000e+00, %84
%86 = fdiv double %83, %85
%87 = load double, ptr @betaln.w, align 8
%88 = fmul double %87, %86
store double %88, ptr @betaln.w, align 8
br label %89
89: ; preds = %77
%90 = load i32, ptr @betaln.i, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr @betaln.i, align 4
%92 = load i32, ptr @betaln.i, align 4
%93 = load i32, ptr @betaln.n, align 4
%94 = icmp sle i32 %92, %93
br i1 %94, label %77, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %89
br label %95
95: ; preds = %._crit_edge, %70
%96 = load double, ptr @betaln.w, align 8
%97 = call double @log(double noundef %96) #4
store double %97, ptr @betaln.w, align 8
%98 = load double, ptr @betaln.b, align 8
%99 = fcmp olt double %98, 8.000000e+00
br i1 %99, label %100, label %101
100: ; preds = %95
br label %108
101: ; preds = %95
%102 = load double, ptr @betaln.w, align 8
%103 = call double @gamln(ptr noundef @betaln.a)
%104 = fadd double %102, %103
%105 = call double @algdiv(ptr noundef @betaln.a, ptr noundef @betaln.b)
%106 = fadd double %104, %105
store double %106, ptr @betaln.betaln, align 8
%107 = load double, ptr @betaln.betaln, align 8
store double %107, ptr %3, align 8
br label %227
108: ; preds = %100, %60
%109 = load double, ptr @betaln.b, align 8
%110 = fsub double %109, 1.000000e+00
%111 = fptosi double %110 to i32
store i32 %111, ptr @betaln.n, align 4
store double 1.000000e+00, ptr @betaln.z, align 8
store i32 1, ptr @betaln.i, align 4
%112 = load i32, ptr @betaln.i, align 4
%113 = load i32, ptr @betaln.n, align 4
%114 = icmp sle i32 %112, %113
br i1 %114, label %.lr.ph2, label %131
.lr.ph2: ; preds = %108
br label %115
115: ; preds = %.lr.ph2, %125
%116 = load double, ptr @betaln.b, align 8
%117 = fsub double %116, 1.000000e+00
store double %117, ptr @betaln.b, align 8
%118 = load double, ptr @betaln.b, align 8
%119 = load double, ptr @betaln.a, align 8
%120 = load double, ptr @betaln.b, align 8
%121 = fadd double %119, %120
%122 = fdiv double %118, %121
%123 = load double, ptr @betaln.z, align 8
%124 = fmul double %123, %122
store double %124, ptr @betaln.z, align 8
br label %125
125: ; preds = %115
%126 = load i32, ptr @betaln.i, align 4
%127 = add nsw i32 %126, 1
store i32 %127, ptr @betaln.i, align 4
%128 = load i32, ptr @betaln.i, align 4
%129 = load i32, ptr @betaln.n, align 4
%130 = icmp sle i32 %128, %129
br i1 %130, label %115, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %125
br label %131
131: ; preds = %._crit_edge3, %108
%132 = load double, ptr @betaln.w, align 8
%133 = load double, ptr @betaln.z, align 8
%134 = call double @log(double noundef %133) #4
%135 = fadd double %132, %134
%136 = call double @gamln(ptr noundef @betaln.a)
%137 = call double @gamln(ptr noundef @betaln.b)
%138 = call double @gsumln(ptr noundef @betaln.a, ptr noundef @betaln.b)
%139 = fsub double %137, %138
%140 = fadd double %136, %139
%141 = fadd double %135, %140
store double %141, ptr @betaln.betaln, align 8
%142 = load double, ptr @betaln.betaln, align 8
store double %142, ptr %3, align 8
br label %227
143: ; preds = %69
%144 = load double, ptr @betaln.a, align 8
%145 = fsub double %144, 1.000000e+00
%146 = fptosi double %145 to i32
store i32 %146, ptr @betaln.n, align 4
store double 1.000000e+00, ptr @betaln.w, align 8
store i32 1, ptr @betaln.i, align 4
%147 = load i32, ptr @betaln.i, align 4
%148 = load i32, ptr @betaln.n, align 4
%149 = icmp sle i32 %147, %148
br i1 %149, label %.lr.ph5, label %167
.lr.ph5: ; preds = %143
br label %150
150: ; preds = %.lr.ph5, %161
%151 = load double, ptr @betaln.a, align 8
%152 = fsub double %151, 1.000000e+00
store double %152, ptr @betaln.a, align 8
%153 = load double, ptr @betaln.a, align 8
%154 = load double, ptr @betaln.a, align 8
%155 = load double, ptr @betaln.b, align 8
%156 = fdiv double %154, %155
%157 = fadd double 1.000000e+00, %156
%158 = fdiv double %153, %157
%159 = load double, ptr @betaln.w, align 8
%160 = fmul double %159, %158
store double %160, ptr @betaln.w, align 8
br label %161
161: ; preds = %150
%162 = load i32, ptr @betaln.i, align 4
%163 = add nsw i32 %162, 1
store i32 %163, ptr @betaln.i, align 4
%164 = load i32, ptr @betaln.i, align 4
%165 = load i32, ptr @betaln.n, align 4
%166 = icmp sle i32 %164, %165
br i1 %166, label %150, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %161
br label %167
167: ; preds = %._crit_edge6, %143
%168 = load double, ptr @betaln.w, align 8
%169 = call double @log(double noundef %168) #4
%170 = load i32, ptr @betaln.n, align 4
%171 = sitofp i32 %170 to double
%172 = load double, ptr @betaln.b, align 8
%173 = call double @log(double noundef %172) #4
%174 = fneg double %171
%175 = call double @llvm.fmuladd.f64(double %174, double %173, double %169)
%176 = call double @gamln(ptr noundef @betaln.a)
%177 = call double @algdiv(ptr noundef @betaln.a, ptr noundef @betaln.b)
%178 = fadd double %176, %177
%179 = fadd double %175, %178
store double %179, ptr @betaln.betaln, align 8
%180 = load double, ptr @betaln.betaln, align 8
store double %180, ptr %3, align 8
br label %227
181: ; preds = %18
%182 = call double @bcorr(ptr noundef @betaln.a, ptr noundef @betaln.b)
store double %182, ptr @betaln.w, align 8
%183 = load double, ptr @betaln.a, align 8
%184 = load double, ptr @betaln.b, align 8
%185 = fdiv double %183, %184
store double %185, ptr @betaln.h, align 8
%186 = load double, ptr @betaln.h, align 8
%187 = load double, ptr @betaln.h, align 8
%188 = fadd double 1.000000e+00, %187
%189 = fdiv double %186, %188
store double %189, ptr @betaln.c, align 8
%190 = load double, ptr @betaln.a, align 8
%191 = fsub double %190, 5.000000e-01
%192 = load double, ptr @betaln.c, align 8
%193 = call double @log(double noundef %192) #4
%194 = fmul double %191, %193
%195 = fneg double %194
store double %195, ptr @betaln.u, align 8
%196 = load double, ptr @betaln.b, align 8
%197 = call double @alnrel(ptr noundef @betaln.h)
%198 = fmul double %196, %197
store double %198, ptr @betaln.v, align 8
%199 = load double, ptr @betaln.u, align 8
%200 = load double, ptr @betaln.v, align 8
%201 = fcmp ole double %199, %200
br i1 %201, label %202, label %203
202: ; preds = %181
br label %215
203: ; preds = %181
%204 = load double, ptr @betaln.b, align 8
%205 = call double @log(double noundef %204) #4
%206 = load double, ptr @betaln.e, align 8
%207 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %205, double %206)
%208 = load double, ptr @betaln.w, align 8
%209 = fadd double %207, %208
%210 = load double, ptr @betaln.v, align 8
%211 = fsub double %209, %210
%212 = load double, ptr @betaln.u, align 8
%213 = fsub double %211, %212
store double %213, ptr @betaln.betaln, align 8
%214 = load double, ptr @betaln.betaln, align 8
store double %214, ptr %3, align 8
br label %227
215: ; preds = %202
%216 = load double, ptr @betaln.b, align 8
%217 = call double @log(double noundef %216) #4
%218 = load double, ptr @betaln.e, align 8
%219 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %217, double %218)
%220 = load double, ptr @betaln.w, align 8
%221 = fadd double %219, %220
%222 = load double, ptr @betaln.u, align 8
%223 = fsub double %221, %222
%224 = load double, ptr @betaln.v, align 8
%225 = fsub double %223, %224
store double %225, ptr @betaln.betaln, align 8
%226 = load double, ptr @betaln.betaln, align 8
store double %226, ptr %3, align 8
br label %227
227: ; preds = %215, %203, %167, %131, %101, %61, %50, %37, %27
%228 = load double, ptr %3, align 8
ret double %228
}
declare double @fifdmin1(double noundef, double noundef) #1
declare double @fifdmax1(double noundef, double noundef) #1
declare double @gamln(ptr noundef) #1
declare double @algdiv(ptr noundef, ptr noundef) #1
declare double @gsumln(ptr noundef, ptr noundef) #1
; Function Attrs: nounwind
declare double @log(double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
declare double @bcorr(ptr noundef, ptr noundef) #1
declare double @alnrel(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp70qrui67.c'
source_filename = "/tmp/tmp70qrui67.c"
target datalayout = "e-m:e-p270: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/tmp70qrui67.c"
target datalayout = "e-m:e-p270: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/tmp6dgx6qn5.c'
source_filename = "/tmp/tmp6dgx6qn5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"Podaj element tablic numer %d: \0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [5 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
br label %5
5: ; preds = %15, %0
%6 = load i32, ptr %3, align 4
%7 = icmp sle i32 %6, 4
br i1 %7, label %8, label %18
8: ; preds = %5
%9 = load i32, ptr %3, align 4
%10 = call i32 @printf(ptr noundef @.str, i32 noundef %9)
%11 = load i32, ptr %3, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %12
%14 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %13)
br label %15
15: ; preds = %8
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %3, align 4
br label %5, !llvm.loop !6
18: ; preds = %5
%19 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%20 = load i32, ptr %19, align 16
store i32 %20, ptr %4, align 4
%21 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 4
%22 = load i32, ptr %21, align 16
%23 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
store i32 %22, ptr %23, align 16
%24 = load i32, ptr %4, align 4
%25 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 4
store i32 %24, ptr %25, align 16
store i32 0, ptr %3, align 4
br label %26
26: ; preds = %35, %18
%27 = load i32, ptr %3, align 4
%28 = icmp sle i32 %27, 4
br i1 %28, label %29, label %38
29: ; preds = %26
%30 = load i32, ptr %3, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %31
%33 = load i32, ptr %32, align 4
%34 = call i32 @printf(ptr noundef @.str.2, i32 noundef %33)
br label %35
35: ; preds = %29
%36 = load i32, ptr %3, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %3, align 4
br label %26, !llvm.loop !8
38: ; preds = %26
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6dgx6qn5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"Podaj element tablic numer %d: \0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [5 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp sle i32 %5, 4
br i1 %6, label %.lr.ph, label %19
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %14
%8 = load i32, ptr %3, align 4
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %8)
%10 = load i32, ptr %3, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %11
%13 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %12)
br label %14
14: ; preds = %7
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %3, align 4
%17 = load i32, ptr %3, align 4
%18 = icmp sle i32 %17, 4
br i1 %18, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %19
19: ; preds = %._crit_edge, %0
%20 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%21 = load i32, ptr %20, align 16
store i32 %21, ptr %4, align 4
%22 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 4
%23 = load i32, ptr %22, align 16
%24 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
store i32 %23, ptr %24, align 16
%25 = load i32, ptr %4, align 4
%26 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 4
store i32 %25, ptr %26, align 16
store i32 0, ptr %3, align 4
%27 = load i32, ptr %3, align 4
%28 = icmp sle i32 %27, 4
br i1 %28, label %.lr.ph2, label %40
.lr.ph2: ; preds = %19
br label %29
29: ; preds = %.lr.ph2, %35
%30 = load i32, ptr %3, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %31
%33 = load i32, ptr %32, align 4
%34 = call i32 @printf(ptr noundef @.str.2, i32 noundef %33)
br label %35
35: ; preds = %29
%36 = load i32, ptr %3, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %3, align 4
%38 = load i32, ptr %3, align 4
%39 = icmp sle i32 %38, 4
br i1 %39, label %29, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %35
br label %40
40: ; preds = %._crit_edge3, %19
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.