llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmphm0y4vm8.c'
source_filename = "/tmp/tmphm0y4vm8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphm0y4vm8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsg4fqy3w.c'
source_filename = "/tmp/tmpsg4fqy3w.c"
target datalayout = "e-m:e-p270: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/tmpsg4fqy3w.c"
target datalayout = "e-m:e-p270: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/tmppgvet1wi.c'
source_filename = "/tmp/tmppgvet1wi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [3 x i8] c"%c\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
store i32 0, ptr %3, align 4
br label %6
6: ; preds = %24, %0
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp sle i32 %7, %8
br i1 %9, label %10, label %27
10: ; preds = %6
store i32 1, ptr %4, align 4
br label %11
11: ; preds = %19, %10
%12 = load i32, ptr %4, align 4
%13 = load i32, ptr %3, align 4
%14 = mul nsw i32 2, %13
%15 = sub nsw i32 %14, 1
%16 = icmp sle i32 %12, %15
br i1 %16, label %17, label %22
17: ; preds = %11
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef 35)
br label %19
19: ; preds = %17
%20 = load i32, ptr %4, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %4, align 4
br label %11, !llvm.loop !6
22: ; preds = %11
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %24
24: ; preds = %22
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %3, align 4
br label %6, !llvm.loop !8
27: ; preds = %6
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppgvet1wi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [3 x i8] c"%c\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
store i32 0, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = load i32, ptr %2, align 4
%8 = icmp sle i32 %6, %7
br i1 %8, label %.lr.ph2, label %33
.lr.ph2: ; preds = %0
br label %9
9: ; preds = %.lr.ph2, %27
store i32 1, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = load i32, ptr %3, align 4
%12 = mul nsw i32 2, %11
%13 = sub nsw i32 %12, 1
%14 = icmp sle i32 %10, %13
br i1 %14, label %.lr.ph, label %25
.lr.ph: ; preds = %9
br label %15
15: ; preds = %.lr.ph, %17
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef 35)
br label %17
17: ; preds = %15
%18 = load i32, ptr %4, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %4, align 4
%20 = load i32, ptr %4, align 4
%21 = load i32, ptr %3, align 4
%22 = mul nsw i32 2, %21
%23 = sub nsw i32 %22, 1
%24 = icmp sle i32 %20, %23
br i1 %24, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %25
25: ; preds = %._crit_edge, %9
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %27
27: ; preds = %25
%28 = load i32, ptr %3, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %3, align 4
%30 = load i32, ptr %3, align 4
%31 = load i32, ptr %2, align 4
%32 = icmp sle i32 %30, %31
br i1 %32, label %9, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %27
br label %33
33: ; preds = %._crit_edge3, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpaxjkwtz6.c'
source_filename = "/tmp/tmpaxjkwtz6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ny_str.string = internal global [30 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [3 x i8] c"-1\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%u\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ny_str(i32 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %1
store ptr @.str, ptr %2, align 8
br label %10
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = call i32 @sprintf(ptr noundef @ny_str.string, ptr noundef @.str.1, i32 noundef %8)
store ptr @ny_str.string, ptr %2, align 8
br label %10
10: ; preds = %7, %6
%11 = load ptr, ptr %2, align 8
ret ptr %11
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaxjkwtz6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ny_str.string = internal global [30 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [3 x i8] c"-1\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%u\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ny_str(i32 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %1
store ptr @.str, ptr %2, align 8
br label %10
7: ; preds = %1
%8 = load i32, ptr %3, align 4
%9 = call i32 @sprintf(ptr noundef @ny_str.string, ptr noundef @.str.1, i32 noundef %8)
store ptr @ny_str.string, ptr %2, align 8
br label %10
10: ; preds = %7, %6
%11 = load ptr, ptr %2, align 8
ret ptr %11
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0dw_dln6.c'
source_filename = "/tmp/tmp0dw_dln6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mqc_abort_() #0 {
%1 = load i32, ptr @stdout, align 4
%2 = call i32 @fflush(i32 noundef %1)
%3 = load i32, ptr @stderr, align 4
%4 = call i32 @fflush(i32 noundef %3)
%5 = call i32 (...) @abort() #3
unreachable
}
declare i32 @fflush(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #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/tmp0dw_dln6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mqc_abort_() #0 {
%1 = load i32, ptr @stdout, align 4
%2 = call i32 @fflush(i32 noundef %1)
%3 = load i32, ptr @stderr, align 4
%4 = call i32 @fflush(i32 noundef %3)
%5 = call i32 (...) @abort() #3
unreachable
}
declare i32 @fflush(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #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/tmp5hhulxuh.c'
source_filename = "/tmp/tmp5hhulxuh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"invalid file descriptor: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @uwsgi_opt_safe_fd(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %5, align 8
%9 = call i32 @atoi(ptr noundef %8)
store i32 %9, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %16
12: ; preds = %3
%13 = load i32, ptr %7, align 4
%14 = call i32 @uwsgi_log(ptr noundef @.str, i32 noundef %13)
%15 = call i32 @exit(i32 noundef 1) #3
unreachable
16: ; preds = %3
%17 = load i32, ptr %7, align 4
%18 = call i32 @uwsgi_add_safe_fd(i32 noundef %17)
ret void
}
declare i32 @atoi(ptr noundef) #1
declare i32 @uwsgi_log(ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @uwsgi_add_safe_fd(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5hhulxuh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"invalid file descriptor: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @uwsgi_opt_safe_fd(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %5, align 8
%9 = call i32 @atoi(ptr noundef %8)
store i32 %9, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %16
12: ; preds = %3
%13 = load i32, ptr %7, align 4
%14 = call i32 @uwsgi_log(ptr noundef @.str, i32 noundef %13)
%15 = call i32 @exit(i32 noundef 1) #3
unreachable
16: ; preds = %3
%17 = load i32, ptr %7, align 4
%18 = call i32 @uwsgi_add_safe_fd(i32 noundef %17)
ret void
}
declare i32 @atoi(ptr noundef) #1
declare i32 @uwsgi_log(ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @uwsgi_add_safe_fd(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpo5l_8iob.c'
source_filename = "/tmp/tmpo5l_8iob.c"
target datalayout = "e-m:e-p270: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/tmpo5l_8iob.c"
target datalayout = "e-m:e-p270: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/tmpgx0zgwos.c'
source_filename = "/tmp/tmpgx0zgwos.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"c:%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
store i32 2, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = load i32, ptr %3, align 4
%7 = call i32 @MIN(i32 noundef %5, i32 noundef %6)
store i32 %7, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %8)
ret i32 0
}
declare i32 @MIN(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgx0zgwos.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"c:%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
store i32 2, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = load i32, ptr %3, align 4
%7 = call i32 @MIN(i32 noundef %5, i32 noundef %6)
store i32 %7, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %8)
ret i32 0
}
declare i32 @MIN(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2ktxqnuv.c'
source_filename = "/tmp/tmp2ktxqnuv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [35 x i8] c"Number of possible triangles is %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
store i32 1, ptr %4, align 4
br label %8
8: ; preds = %52, %0
%9 = load i32, ptr %4, align 4
%10 = load i32, ptr %2, align 4
%11 = icmp sle i32 %9, %10
br i1 %11, label %12, label %55
12: ; preds = %8
store i32 1, ptr %5, align 4
br label %13
13: ; preds = %48, %12
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp sle i32 %14, %15
br i1 %16, label %17, label %51
17: ; preds = %13
store i32 1, ptr %6, align 4
br label %18
18: ; preds = %44, %17
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr %5, align 4
%21 = icmp sle i32 %19, %20
br i1 %21, label %22, label %47
22: ; preds = %18
%23 = load i32, ptr %4, align 4
%24 = load i32, ptr %5, align 4
%25 = add nsw i32 %23, %24
%26 = load i32, ptr %6, align 4
%27 = icmp sgt i32 %25, %26
br i1 %27, label %28, label %43
28: ; preds = %22
%29 = load i32, ptr %5, align 4
%30 = load i32, ptr %6, align 4
%31 = add nsw i32 %29, %30
%32 = load i32, ptr %4, align 4
%33 = icmp sgt i32 %31, %32
br i1 %33, label %34, label %43
34: ; preds = %28
%35 = load i32, ptr %6, align 4
%36 = load i32, ptr %4, align 4
%37 = add nsw i32 %35, %36
%38 = load i32, ptr %5, align 4
%39 = icmp sgt i32 %37, %38
br i1 %39, label %40, label %43
40: ; preds = %34
%41 = load i32, ptr %3, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %3, align 4
br label %43
43: ; preds = %40, %34, %28, %22
br label %44
44: ; preds = %43
%45 = load i32, ptr %6, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %6, align 4
br label %18, !llvm.loop !6
47: ; preds = %18
br label %48
48: ; preds = %47
%49 = load i32, ptr %5, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %5, align 4
br label %13, !llvm.loop !8
51: ; preds = %13
br label %52
52: ; preds = %51
%53 = load i32, ptr %4, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %4, align 4
br label %8, !llvm.loop !9
55: ; preds = %8
%56 = load i32, ptr %3, align 4
%57 = call i32 @printf(ptr noundef @.str.1, i32 noundef %56)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2ktxqnuv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [35 x i8] c"Number of possible triangles is %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
store i32 1, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp sle i32 %8, %9
br i1 %10, label %.lr.ph5, label %61
.lr.ph5: ; preds = %0
br label %11
11: ; preds = %.lr.ph5, %55
store i32 1, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %4, align 4
%14 = icmp sle i32 %12, %13
br i1 %14, label %.lr.ph2, label %54
.lr.ph2: ; preds = %11
br label %15
15: ; preds = %.lr.ph2, %48
store i32 1, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = load i32, ptr %5, align 4
%18 = icmp sle i32 %16, %17
br i1 %18, label %.lr.ph, label %47
.lr.ph: ; preds = %15
br label %19
19: ; preds = %.lr.ph, %41
%20 = load i32, ptr %4, align 4
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %20, %21
%23 = load i32, ptr %6, align 4
%24 = icmp sgt i32 %22, %23
br i1 %24, label %25, label %40
25: ; preds = %19
%26 = load i32, ptr %5, align 4
%27 = load i32, ptr %6, align 4
%28 = add nsw i32 %26, %27
%29 = load i32, ptr %4, align 4
%30 = icmp sgt i32 %28, %29
br i1 %30, label %31, label %40
31: ; preds = %25
%32 = load i32, ptr %6, align 4
%33 = load i32, ptr %4, align 4
%34 = add nsw i32 %32, %33
%35 = load i32, ptr %5, align 4
%36 = icmp sgt i32 %34, %35
br i1 %36, label %37, label %40
37: ; preds = %31
%38 = load i32, ptr %3, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %3, align 4
br label %40
40: ; preds = %37, %31, %25, %19
br label %41
41: ; preds = %40
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4
%44 = load i32, ptr %6, align 4
%45 = load i32, ptr %5, align 4
%46 = icmp sle i32 %44, %45
br i1 %46, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %41
br label %47
47: ; preds = %._crit_edge, %15
br label %48
48: ; preds = %47
%49 = load i32, ptr %5, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %5, align 4
%51 = load i32, ptr %5, align 4
%52 = load i32, ptr %4, align 4
%53 = icmp sle i32 %51, %52
br i1 %53, label %15, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %48
br label %54
54: ; preds = %._crit_edge3, %11
br label %55
55: ; preds = %54
%56 = load i32, ptr %4, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %4, align 4
%58 = load i32, ptr %4, align 4
%59 = load i32, ptr %2, align 4
%60 = icmp sle i32 %58, %59
br i1 %60, label %11, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %55
br label %61
61: ; preds = %._crit_edge6, %0
%62 = load i32, ptr %3, align 4
%63 = call i32 @printf(ptr noundef @.str.1, i32 noundef %62)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpna2pzjra.c'
source_filename = "/tmp/tmpna2pzjra.c"
target datalayout = "e-m:e-p270: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/tmpna2pzjra.c"
target datalayout = "e-m:e-p270: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/tmpnpsfzu39.c'
source_filename = "/tmp/tmpnpsfzu39.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"should not return NaN\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @benchmark(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca double, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = zext i32 %11 to i64
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %6, align 8
%14 = alloca double, i64 %12, align 16
store i64 %12, ptr %7, align 8
store i32 0, ptr %10, align 4
br label %15
15: ; preds = %33, %2
%16 = load i32, ptr %10, align 4
%17 = load i32, ptr %4, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %36
19: ; preds = %15
%20 = call double (...) @rand_double()
%21 = fcmp olt double %20, 2.000000e-01
br i1 %21, label %22, label %26
22: ; preds = %19
%23 = load i32, ptr %10, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds double, ptr %14, i64 %24
store double 0x7FF8000000000000, ptr %25, align 8
br label %32
26: ; preds = %19
%27 = call double (...) @rand_double()
%28 = call double @llvm.fmuladd.f64(double %27, double 2.000000e+04, double -1.000000e+04)
%29 = load i32, ptr %10, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds double, ptr %14, i64 %30
store double %28, ptr %31, align 8
br label %32
32: ; preds = %26, %22
br label %33
33: ; preds = %32
%34 = load i32, ptr %10, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %10, align 4
br label %15, !llvm.loop !6
36: ; preds = %15
store double 0.000000e+00, ptr %8, align 8
%37 = call double (...) @tic()
store double %37, ptr %9, align 8
store i32 0, ptr %10, align 4
br label %38
38: ; preds = %51, %36
%39 = load i32, ptr %10, align 4
%40 = load i32, ptr %3, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %42, label %54
42: ; preds = %38
%43 = load i32, ptr %4, align 4
%44 = call double @stdlib_strided_dnanminabs(i32 noundef %43, ptr noundef %14, i32 noundef 1)
store double %44, ptr %8, align 8
%45 = load double, ptr %8, align 8
%46 = load double, ptr %8, align 8
%47 = fcmp une double %45, %46
br i1 %47, label %48, label %50
48: ; preds = %42
%49 = call i32 @printf(ptr noundef @.str)
br label %54
50: ; preds = %42
br label %51
51: ; preds = %50
%52 = load i32, ptr %10, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %10, align 4
br label %38, !llvm.loop !8
54: ; preds = %48, %38
%55 = call double (...) @tic()
%56 = load double, ptr %9, align 8
%57 = fsub double %55, %56
store double %57, ptr %5, align 8
%58 = load double, ptr %8, align 8
%59 = load double, ptr %8, align 8
%60 = fcmp une double %58, %59
br i1 %60, label %61, label %63
61: ; preds = %54
%62 = call i32 @printf(ptr noundef @.str)
br label %63
63: ; preds = %61, %54
%64 = load double, ptr %5, align 8
%65 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %65)
ret double %64
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare double @rand_double(...) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
declare double @tic(...) #2
declare double @stdlib_strided_dnanminabs(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnpsfzu39.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"should not return NaN\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @benchmark(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca double, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = zext i32 %11 to i64
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %6, align 8
%14 = alloca double, i64 %12, align 16
store i64 %12, ptr %7, align 8
store i32 0, ptr %10, align 4
%15 = load i32, ptr %10, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph, label %38
.lr.ph: ; preds = %2
br label %18
18: ; preds = %.lr.ph, %32
%19 = call double (...) @rand_double()
%20 = fcmp olt double %19, 2.000000e-01
br i1 %20, label %21, label %25
21: ; preds = %18
%22 = load i32, ptr %10, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds double, ptr %14, i64 %23
store double 0x7FF8000000000000, ptr %24, align 8
br label %31
25: ; preds = %18
%26 = call double (...) @rand_double()
%27 = call double @llvm.fmuladd.f64(double %26, double 2.000000e+04, double -1.000000e+04)
%28 = load i32, ptr %10, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds double, ptr %14, i64 %29
store double %27, ptr %30, align 8
br label %31
31: ; preds = %25, %21
br label %32
32: ; preds = %31
%33 = load i32, ptr %10, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %10, align 4
%35 = load i32, ptr %10, align 4
%36 = load i32, ptr %4, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %38
38: ; preds = %._crit_edge, %2
store double 0.000000e+00, ptr %8, align 8
%39 = call double (...) @tic()
store double %39, ptr %9, align 8
store i32 0, ptr %10, align 4
%40 = load i32, ptr %10, align 4
%41 = load i32, ptr %3, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %38
br label %43
43: ; preds = %.lr.ph2, %52
%44 = load i32, ptr %4, align 4
%45 = call double @stdlib_strided_dnanminabs(i32 noundef %44, ptr noundef %14, i32 noundef 1)
store double %45, ptr %8, align 8
%46 = load double, ptr %8, align 8
%47 = load double, ptr %8, align 8
%48 = fcmp une double %46, %47
br i1 %48, label %49, label %51
49: ; preds = %43
%50 = call i32 @printf(ptr noundef @.str)
br label %58
51: ; preds = %43
br label %52
52: ; preds = %51
%53 = load i32, ptr %10, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %10, align 4
%55 = load i32, ptr %10, align 4
%56 = load i32, ptr %3, align 4
%57 = icmp slt i32 %55, %56
br i1 %57, label %43, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %52
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %38
br label %58
58: ; preds = %.loopexit, %49
%59 = call double (...) @tic()
%60 = load double, ptr %9, align 8
%61 = fsub double %59, %60
store double %61, ptr %5, align 8
%62 = load double, ptr %8, align 8
%63 = load double, ptr %8, align 8
%64 = fcmp une double %62, %63
br i1 %64, label %65, label %67
65: ; preds = %58
%66 = call i32 @printf(ptr noundef @.str)
br label %67
67: ; preds = %65, %58
%68 = load double, ptr %5, align 8
%69 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %69)
ret double %68
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare double @rand_double(...) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
declare double @tic(...) #2
declare double @stdlib_strided_dnanminabs(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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}
|
; ModuleID = '/tmp/tmph5jg8bo2.c'
source_filename = "/tmp/tmph5jg8bo2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"FIN\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sendfin(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = call i32 @write(i32 noundef %5, ptr noundef @.str, i32 noundef 4)
store i32 %6, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = sext i32 %7 to i64
%9 = icmp ult i64 %8, 4
br i1 %9, label %10, label %11
10: ; preds = %1
store i32 -1, ptr %2, align 4
br label %12
11: ; preds = %1
store i32 0, ptr %2, align 4
br label %12
12: ; preds = %11, %10
%13 = load i32, ptr %2, align 4
ret i32 %13
}
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/tmph5jg8bo2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"FIN\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sendfin(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = call i32 @write(i32 noundef %5, ptr noundef @.str, i32 noundef 4)
store i32 %6, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = sext i32 %7 to i64
%9 = icmp ult i64 %8, 4
br i1 %9, label %10, label %11
10: ; preds = %1
store i32 -1, ptr %2, align 4
br label %12
11: ; preds = %1
store i32 0, ptr %2, align 4
br label %12
12: ; preds = %11, %10
%13 = load i32, ptr %2, align 4
ret i32 %13
}
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/tmpvsiadkel.c'
source_filename = "/tmp/tmpvsiadkel.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ctime(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 @localtime(ptr noundef %3)
%5 = call ptr @asctime(i32 noundef %4)
ret ptr %5
}
declare ptr @asctime(i32 noundef) #1
declare i32 @localtime(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvsiadkel.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ctime(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 @localtime(ptr noundef %3)
%5 = call ptr @asctime(i32 noundef %4)
ret ptr %5
}
declare ptr @asctime(i32 noundef) #1
declare i32 @localtime(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjyqyjeil.c'
source_filename = "/tmp/tmpjyqyjeil.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"CarStep3\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @CarStep3() #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/tmpjyqyjeil.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"CarStep3\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @CarStep3() #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/tmpw6hys49h.c'
source_filename = "/tmp/tmpw6hys49h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [16 x i8] c"rgb(%d, %d, %d)\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c", \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"#\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i8, align 1
%5 = alloca [13 x i8], align 1
%6 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%8 = call i32 (...) @getchar()
%9 = load i8, ptr %4, align 1
%10 = sext i8 %9 to i32
%11 = icmp eq i32 %10, 104
br i1 %11, label %12, label %51
12: ; preds = %0
%13 = getelementptr inbounds [13 x i8], ptr %5, i64 0, i64 0
%14 = load i32, ptr @stdin, align 4
%15 = call i32 @fgets(ptr noundef %13, i32 noundef 14, i32 noundef %14)
%16 = getelementptr inbounds [13 x i8], ptr %5, i64 0, i64 0
%17 = call i32 @strlen(ptr noundef %16)
store i32 %17, ptr %3, align 4
%18 = load i32, ptr %3, align 4
%19 = sub nsw i32 %18, 1
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [13 x i8], ptr %5, i64 0, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 10
br i1 %24, label %25, label %28
25: ; preds = %12
%26 = load i32, ptr %3, align 4
%27 = sub nsw i32 %26, 1
br label %30
28: ; preds = %12
%29 = load i32, ptr %3, align 4
br label %30
30: ; preds = %28, %25
%31 = phi i32 [ %27, %25 ], [ %29, %28 ]
store i32 %31, ptr %3, align 4
%32 = getelementptr inbounds [13 x i8], ptr %5, i64 0, i64 0
%33 = load i32, ptr %3, align 4
%34 = call i32 @to_lower(ptr noundef %32, i32 noundef %33)
%35 = getelementptr inbounds [13 x i8], ptr %5, i64 0, i64 1
%36 = load i8, ptr %35, align 1
%37 = getelementptr inbounds [13 x i8], ptr %5, i64 0, i64 2
%38 = load i8, ptr %37, align 1
%39 = call i32 @to_decimal(i8 noundef signext %36, i8 noundef signext %38)
%40 = getelementptr inbounds [13 x i8], ptr %5, i64 0, i64 3
%41 = load i8, ptr %40, align 1
%42 = getelementptr inbounds [13 x i8], ptr %5, i64 0, i64 4
%43 = load i8, ptr %42, align 1
%44 = call i32 @to_decimal(i8 noundef signext %41, i8 noundef signext %43)
%45 = getelementptr inbounds [13 x i8], ptr %5, i64 0, i64 5
%46 = load i8, ptr %45, align 1
%47 = getelementptr inbounds [13 x i8], ptr %5, i64 0, i64 6
%48 = load i8, ptr %47, align 1
%49 = call i32 @to_decimal(i8 noundef signext %46, i8 noundef signext %48)
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %39, i32 noundef %44, i32 noundef %49)
br label %74
51: ; preds = %0
%52 = load i8, ptr %4, align 1
%53 = sext i8 %52 to i32
%54 = icmp eq i32 %53, 100
br i1 %54, label %55, label %73
55: ; preds = %51
%56 = getelementptr inbounds [13 x i8], ptr %5, i64 0, i64 0
%57 = load i32, ptr @stdin, align 4
%58 = call i32 @fgets(ptr noundef %56, i32 noundef 14, i32 noundef %57)
%59 = getelementptr inbounds [13 x i8], ptr %5, i64 0, i64 0
%60 = call ptr @strtok(ptr noundef %59, ptr noundef @.str.2)
store ptr %60, ptr %6, align 8
%61 = call i32 (...) @getchar()
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %63
63: ; preds = %66, %55
%64 = load ptr, ptr %6, align 8
%65 = icmp ne ptr %64, null
br i1 %65, label %66, label %72
66: ; preds = %63
%67 = load ptr, ptr %6, align 8
%68 = call i32 @sscanf(ptr noundef %67, ptr noundef @.str.4, ptr noundef %2)
%69 = load i32, ptr %2, align 4
%70 = call i32 @print_hex(i32 noundef %69)
%71 = call ptr @strtok(ptr noundef null, ptr noundef @.str.2)
store ptr %71, ptr %6, align 8
br label %63, !llvm.loop !6
72: ; preds = %63
br label %73
73: ; preds = %72, %51
br label %74
74: ; preds = %73, %30
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @getchar(...) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @to_lower(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @to_decimal(i8 noundef signext, i8 noundef signext) #1
declare ptr @strtok(ptr noundef, ptr noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @print_hex(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/tmpw6hys49h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [16 x i8] c"rgb(%d, %d, %d)\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c", \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"#\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i8, align 1
%5 = alloca [13 x i8], align 1
%6 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%8 = call i32 (...) @getchar()
%9 = load i8, ptr %4, align 1
%10 = sext i8 %9 to i32
%11 = icmp eq i32 %10, 104
br i1 %11, label %12, label %51
12: ; preds = %0
%13 = getelementptr inbounds [13 x i8], ptr %5, i64 0, i64 0
%14 = load i32, ptr @stdin, align 4
%15 = call i32 @fgets(ptr noundef %13, i32 noundef 14, i32 noundef %14)
%16 = getelementptr inbounds [13 x i8], ptr %5, i64 0, i64 0
%17 = call i32 @strlen(ptr noundef %16)
store i32 %17, ptr %3, align 4
%18 = load i32, ptr %3, align 4
%19 = sub nsw i32 %18, 1
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [13 x i8], ptr %5, i64 0, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 10
br i1 %24, label %25, label %28
25: ; preds = %12
%26 = load i32, ptr %3, align 4
%27 = sub nsw i32 %26, 1
br label %30
28: ; preds = %12
%29 = load i32, ptr %3, align 4
br label %30
30: ; preds = %28, %25
%31 = phi i32 [ %27, %25 ], [ %29, %28 ]
store i32 %31, ptr %3, align 4
%32 = getelementptr inbounds [13 x i8], ptr %5, i64 0, i64 0
%33 = load i32, ptr %3, align 4
%34 = call i32 @to_lower(ptr noundef %32, i32 noundef %33)
%35 = getelementptr inbounds [13 x i8], ptr %5, i64 0, i64 1
%36 = load i8, ptr %35, align 1
%37 = getelementptr inbounds [13 x i8], ptr %5, i64 0, i64 2
%38 = load i8, ptr %37, align 1
%39 = call i32 @to_decimal(i8 noundef signext %36, i8 noundef signext %38)
%40 = getelementptr inbounds [13 x i8], ptr %5, i64 0, i64 3
%41 = load i8, ptr %40, align 1
%42 = getelementptr inbounds [13 x i8], ptr %5, i64 0, i64 4
%43 = load i8, ptr %42, align 1
%44 = call i32 @to_decimal(i8 noundef signext %41, i8 noundef signext %43)
%45 = getelementptr inbounds [13 x i8], ptr %5, i64 0, i64 5
%46 = load i8, ptr %45, align 1
%47 = getelementptr inbounds [13 x i8], ptr %5, i64 0, i64 6
%48 = load i8, ptr %47, align 1
%49 = call i32 @to_decimal(i8 noundef signext %46, i8 noundef signext %48)
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %39, i32 noundef %44, i32 noundef %49)
br label %75
51: ; preds = %0
%52 = load i8, ptr %4, align 1
%53 = sext i8 %52 to i32
%54 = icmp eq i32 %53, 100
br i1 %54, label %55, label %74
55: ; preds = %51
%56 = getelementptr inbounds [13 x i8], ptr %5, i64 0, i64 0
%57 = load i32, ptr @stdin, align 4
%58 = call i32 @fgets(ptr noundef %56, i32 noundef 14, i32 noundef %57)
%59 = getelementptr inbounds [13 x i8], ptr %5, i64 0, i64 0
%60 = call ptr @strtok(ptr noundef %59, ptr noundef @.str.2)
store ptr %60, ptr %6, align 8
%61 = call i32 (...) @getchar()
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%63 = load ptr, ptr %6, align 8
%64 = icmp ne ptr %63, null
br i1 %64, label %.lr.ph, label %73
.lr.ph: ; preds = %55
br label %65
65: ; preds = %.lr.ph, %65
%66 = load ptr, ptr %6, align 8
%67 = call i32 @sscanf(ptr noundef %66, ptr noundef @.str.4, ptr noundef %2)
%68 = load i32, ptr %2, align 4
%69 = call i32 @print_hex(i32 noundef %68)
%70 = call ptr @strtok(ptr noundef null, ptr noundef @.str.2)
store ptr %70, ptr %6, align 8
%71 = load ptr, ptr %6, align 8
%72 = icmp ne ptr %71, null
br i1 %72, label %65, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %65
br label %73
73: ; preds = %._crit_edge, %55
br label %74
74: ; preds = %73, %51
br label %75
75: ; preds = %74, %30
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @getchar(...) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @to_lower(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @to_decimal(i8 noundef signext, i8 noundef signext) #1
declare ptr @strtok(ptr noundef, ptr noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @print_hex(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/tmp2t9fd4a6.c'
source_filename = "/tmp/tmp2t9fd4a6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @varint64(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %19, %2
%8 = load ptr, ptr %3, align 8
%9 = load i8, ptr %8, align 1
%10 = sext i8 %9 to i32
%11 = and i32 127, %10
%12 = load i32, ptr %6, align 4
%13 = mul nsw i32 %12, 7
%14 = shl i32 %11, %13
%15 = load i32, ptr %5, align 4
%16 = or i32 %15, %14
store i32 %16, ptr %5, align 4
%17 = load i32, ptr %6, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %6, align 4
br label %19
19: ; preds = %7
%20 = load ptr, ptr %3, align 8
%21 = getelementptr inbounds i8, ptr %20, i32 1
store ptr %21, ptr %3, align 8
%22 = load i8, ptr %20, align 1
%23 = sext i8 %22 to i32
%24 = and i32 %23, 128
%25 = icmp ne i32 %24, 0
br i1 %25, label %7, label %26, !llvm.loop !6
26: ; preds = %19
%27 = load i32, ptr %5, align 4
%28 = load ptr, ptr %4, align 8
store i32 %27, ptr %28, align 4
%29 = load i32, ptr %6, align 4
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 = '<stdin>'
source_filename = "/tmp/tmp2t9fd4a6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @varint64(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %19, %2
%8 = load ptr, ptr %3, align 8
%9 = load i8, ptr %8, align 1
%10 = sext i8 %9 to i32
%11 = and i32 127, %10
%12 = load i32, ptr %6, align 4
%13 = mul nsw i32 %12, 7
%14 = shl i32 %11, %13
%15 = load i32, ptr %5, align 4
%16 = or i32 %15, %14
store i32 %16, ptr %5, align 4
%17 = load i32, ptr %6, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %6, align 4
br label %19
19: ; preds = %7
%20 = load ptr, ptr %3, align 8
%21 = getelementptr inbounds i8, ptr %20, i32 1
store ptr %21, ptr %3, align 8
%22 = load i8, ptr %20, align 1
%23 = sext i8 %22 to i32
%24 = and i32 %23, 128
%25 = icmp ne i32 %24, 0
br i1 %25, label %7, label %26, !llvm.loop !6
26: ; preds = %19
%27 = load i32, ptr %5, align 4
%28 = load ptr, ptr %4, align 8
store i32 %27, ptr %28, align 4
%29 = load i32, ptr %6, align 4
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/tmpe9k4hr4h.c'
source_filename = "/tmp/tmpe9k4hr4h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"</BODY></HTML>\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @htmlFooter() #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/tmpe9k4hr4h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"</BODY></HTML>\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @htmlFooter() #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/tmp8vyl6ov9.c'
source_filename = "/tmp/tmp8vyl6ov9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [146 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/GaomingPan/wifidog-gateway/refs/heads/master/src/safe.c\00", align 1
@LOG_CRIT = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [64 x i8] c"Failed to realloc buffer to %d bytes of memory: %s. Bailing out\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @safe_realloc(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store ptr null, ptr %5, align 8
%6 = load ptr, ptr %3, align 8
%7 = load i64, ptr %4, align 8
%8 = call ptr @realloc(ptr noundef %6, i64 noundef %7) #4
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp eq ptr null, %9
br i1 %10, label %11, label %18
11: ; preds = %2
%12 = load i32, ptr @LOG_CRIT, align 4
%13 = load i64, ptr %4, align 8
%14 = load i32, ptr @errno, align 4
%15 = call i32 @strerror(i32 noundef %14)
%16 = call i32 @_debug(ptr noundef @.str, i32 noundef 111, i32 noundef %12, ptr noundef @.str.1, i64 noundef %13, i32 noundef %15)
%17 = call i32 @exit(i32 noundef 1) #5
unreachable
18: ; preds = %2
%19 = load ptr, ptr %5, align 8
ret ptr %19
}
; Function Attrs: allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #1
declare i32 @_debug(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i64 noundef, i32 noundef) #2
declare i32 @strerror(i32 noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { allocsize(1) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { allocsize(1) }
attributes #5 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8vyl6ov9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [146 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/GaomingPan/wifidog-gateway/refs/heads/master/src/safe.c\00", align 1
@LOG_CRIT = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [64 x i8] c"Failed to realloc buffer to %d bytes of memory: %s. Bailing out\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @safe_realloc(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store ptr null, ptr %5, align 8
%6 = load ptr, ptr %3, align 8
%7 = load i64, ptr %4, align 8
%8 = call ptr @realloc(ptr noundef %6, i64 noundef %7) #4
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp eq ptr null, %9
br i1 %10, label %11, label %18
11: ; preds = %2
%12 = load i32, ptr @LOG_CRIT, align 4
%13 = load i64, ptr %4, align 8
%14 = load i32, ptr @errno, align 4
%15 = call i32 @strerror(i32 noundef %14)
%16 = call i32 @_debug(ptr noundef @.str, i32 noundef 111, i32 noundef %12, ptr noundef @.str.1, i64 noundef %13, i32 noundef %15)
%17 = call i32 @exit(i32 noundef 1) #5
unreachable
18: ; preds = %2
%19 = load ptr, ptr %5, align 8
ret ptr %19
}
; Function Attrs: allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #1
declare i32 @_debug(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i64 noundef, i32 noundef) #2
declare i32 @strerror(i32 noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { allocsize(1) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { allocsize(1) }
attributes #5 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppe5qnk9z.c'
source_filename = "/tmp/tmppe5qnk9z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDONLY = dso_local global i32 0, align 4
@O_WRONLY = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pgheader_write(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i8, align 1
%13 = alloca [16 x i8], align 16
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%19 = load ptr, ptr %6, align 8
%20 = call i32 @pgheader_detect(ptr noundef %19)
store i32 %20, ptr %11, align 4
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %3
%23 = load i32, ptr %11, align 4
store i32 %23, ptr %4, align 4
br label %164
24: ; preds = %3
%25 = load ptr, ptr %6, align 8
%26 = load ptr, ptr %7, align 8
%27 = call i32 @strcmp(ptr noundef %25, ptr noundef %26)
%28 = icmp ne i32 %27, 0
br i1 %28, label %30, label %29
29: ; preds = %24
store i32 4, ptr %4, align 4
br label %164
30: ; preds = %24
%31 = load ptr, ptr %6, align 8
%32 = load i32, ptr @O_RDONLY, align 4
%33 = or i32 %32, 0
%34 = call i32 (ptr, i32, ...) @open(ptr noundef %31, i32 noundef %33)
store i32 %34, ptr %8, align 4
%35 = load i32, ptr %8, align 4
%36 = icmp eq i32 %35, -1
br i1 %36, label %37, label %38
37: ; preds = %30
store i32 1, ptr %4, align 4
br label %164
38: ; preds = %30
%39 = load ptr, ptr %7, align 8
%40 = load i32, ptr @O_WRONLY, align 4
%41 = load i32, ptr @O_CREAT, align 4
%42 = or i32 %40, %41
%43 = load i32, ptr @O_TRUNC, align 4
%44 = or i32 %42, %43
%45 = or i32 %44, 0
%46 = load i32, ptr @S_IRUSR, align 4
%47 = load i32, ptr @S_IWUSR, align 4
%48 = or i32 %46, %47
%49 = call i32 (ptr, i32, ...) @open(ptr noundef %39, i32 noundef %45, i32 noundef %48)
store i32 %49, ptr %9, align 4
%50 = load i32, ptr %9, align 4
%51 = icmp eq i32 %50, -1
br i1 %51, label %52, label %55
52: ; preds = %38
%53 = load i32, ptr %8, align 4
%54 = call i32 @close(i32 noundef %53)
store i32 1, ptr %4, align 4
br label %164
55: ; preds = %38
br label %56
56: ; preds = %55, %87
%57 = load i32, ptr %8, align 4
%58 = getelementptr inbounds [16 x i8], ptr %13, i64 0, i64 0
%59 = call i32 @read(i32 noundef %57, ptr noundef %58, i32 noundef 16)
store i32 %59, ptr %17, align 4
%60 = load i32, ptr %17, align 4
%61 = icmp slt i32 %60, 16
br i1 %61, label %62, label %67
62: ; preds = %56
%63 = load i32, ptr %8, align 4
%64 = call i32 @close(i32 noundef %63)
%65 = load i32, ptr %9, align 4
%66 = call i32 @close(i32 noundef %65)
store i32 2, ptr %4, align 4
br label %164
67: ; preds = %56
store i32 1, ptr %18, align 4
store i32 0, ptr %16, align 4
br label %68
68: ; preds = %80, %67
%69 = load i32, ptr %16, align 4
%70 = icmp slt i32 %69, 8
br i1 %70, label %71, label %83
71: ; preds = %68
%72 = load i32, ptr %16, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [16 x i8], ptr %13, i64 0, i64 %73
%75 = load i8, ptr %74, align 1
%76 = sext i8 %75 to i32
%77 = icmp ne i32 %76, 0
br i1 %77, label %78, label %79
78: ; preds = %71
store i32 0, ptr %18, align 4
br label %79
79: ; preds = %78, %71
br label %80
80: ; preds = %79
%81 = load i32, ptr %16, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %16, align 4
br label %68, !llvm.loop !6
83: ; preds = %68
%84 = load i32, ptr %18, align 4
%85 = icmp ne i32 %84, 0
br i1 %85, label %87, label %86
86: ; preds = %83
br label %88
87: ; preds = %83
br label %56
88: ; preds = %86
%89 = load ptr, ptr %5, align 8
%90 = call i32 @pgheader_create_raw(ptr noundef %14, ptr noundef %89, ptr noundef %15)
store i32 %90, ptr %11, align 4
%91 = icmp ne i32 %90, 0
br i1 %91, label %92, label %94
92: ; preds = %88
%93 = load i32, ptr %11, align 4
store i32 %93, ptr %4, align 4
br label %164
94: ; preds = %88
store i32 0, ptr %10, align 4
br label %95
95: ; preds = %114, %94
%96 = load i32, ptr %10, align 4
%97 = load i32, ptr %15, align 4
%98 = icmp ult i32 %96, %97
br i1 %98, label %99, label %117
99: ; preds = %95
%100 = load ptr, ptr %14, align 8
%101 = load i32, ptr %10, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i8, ptr %100, i64 %102
%104 = load i8, ptr %103, align 1
store i8 %104, ptr %12, align 1
%105 = load i32, ptr %9, align 4
%106 = call i32 @write(i32 noundef %105, ptr noundef %12, i32 noundef 1)
%107 = icmp ne i32 %106, 1
br i1 %107, label %108, label %113
108: ; preds = %99
%109 = load i32, ptr %8, align 4
%110 = call i32 @close(i32 noundef %109)
%111 = load i32, ptr %9, align 4
%112 = call i32 @close(i32 noundef %111)
store i32 1, ptr %4, align 4
br label %164
113: ; preds = %99
br label %114
114: ; preds = %113
%115 = load i32, ptr %10, align 4
%116 = add nsw i32 %115, 1
store i32 %116, ptr %10, align 4
br label %95, !llvm.loop !8
117: ; preds = %95
%118 = load ptr, ptr %14, align 8
%119 = call i32 @free(ptr noundef %118)
%120 = load i32, ptr %9, align 4
%121 = getelementptr inbounds [16 x i8], ptr %13, i64 0, i64 0
%122 = call i32 @write(i32 noundef %120, ptr noundef %121, i32 noundef 16)
%123 = icmp ne i32 %122, 16
br i1 %123, label %124, label %129
124: ; preds = %117
%125 = load i32, ptr %8, align 4
%126 = call i32 @close(i32 noundef %125)
%127 = load i32, ptr %9, align 4
%128 = call i32 @close(i32 noundef %127)
store i32 1, ptr %4, align 4
br label %164
129: ; preds = %117
br label %130
130: ; preds = %146, %129
%131 = load i32, ptr %8, align 4
%132 = getelementptr inbounds [16 x i8], ptr %13, i64 0, i64 0
%133 = call i32 @read(i32 noundef %131, ptr noundef %132, i32 noundef 16)
store i32 %133, ptr %11, align 4
%134 = icmp eq i32 %133, 16
br i1 %134, label %135, label %147
135: ; preds = %130
%136 = load i32, ptr %9, align 4
%137 = getelementptr inbounds [16 x i8], ptr %13, i64 0, i64 0
%138 = load i32, ptr %11, align 4
%139 = call i32 @write(i32 noundef %136, ptr noundef %137, i32 noundef %138)
%140 = icmp ne i32 %139, 16
br i1 %140, label %141, label %146
141: ; preds = %135
%142 = load i32, ptr %8, align 4
%143 = call i32 @close(i32 noundef %142)
%144 = load i32, ptr %9, align 4
%145 = call i32 @close(i32 noundef %144)
store i32 1, ptr %4, align 4
br label %164
146: ; preds = %135
br label %130, !llvm.loop !9
147: ; preds = %130
%148 = load i32, ptr %8, align 4
%149 = call i32 @close(i32 noundef %148)
%150 = load i32, ptr %9, align 4
%151 = call i32 @close(i32 noundef %150)
%152 = load i32, ptr %11, align 4
%153 = icmp slt i32 0, %152
br i1 %153, label %154, label %158
154: ; preds = %147
%155 = load i32, ptr %11, align 4
%156 = icmp slt i32 %155, 16
br i1 %156, label %157, label %158
157: ; preds = %154
store i32 2, ptr %4, align 4
br label %164
158: ; preds = %154, %147
%159 = load i32, ptr %11, align 4
%160 = icmp eq i32 %159, -1
br i1 %160, label %161, label %162
161: ; preds = %158
store i32 1, ptr %4, align 4
br label %164
162: ; preds = %158
br label %163
163: ; preds = %162
store i32 0, ptr %4, align 4
br label %164
164: ; preds = %163, %161, %157, %141, %124, %108, %92, %62, %52, %37, %29, %22
%165 = load i32, ptr %4, align 4
ret i32 %165
}
declare i32 @pgheader_detect(ptr noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef, ...) #1
declare i32 @close(i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @pgheader_create_raw(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppe5qnk9z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDONLY = dso_local global i32 0, align 4
@O_WRONLY = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pgheader_write(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i8, align 1
%13 = alloca [16 x i8], align 16
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%19 = load ptr, ptr %6, align 8
%20 = call i32 @pgheader_detect(ptr noundef %19)
store i32 %20, ptr %11, align 4
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %3
%23 = load i32, ptr %11, align 4
store i32 %23, ptr %4, align 4
br label %172
24: ; preds = %3
%25 = load ptr, ptr %6, align 8
%26 = load ptr, ptr %7, align 8
%27 = call i32 @strcmp(ptr noundef %25, ptr noundef %26)
%28 = icmp ne i32 %27, 0
br i1 %28, label %30, label %29
29: ; preds = %24
store i32 4, ptr %4, align 4
br label %172
30: ; preds = %24
%31 = load ptr, ptr %6, align 8
%32 = load i32, ptr @O_RDONLY, align 4
%33 = or i32 %32, 0
%34 = call i32 (ptr, i32, ...) @open(ptr noundef %31, i32 noundef %33)
store i32 %34, ptr %8, align 4
%35 = load i32, ptr %8, align 4
%36 = icmp eq i32 %35, -1
br i1 %36, label %37, label %38
37: ; preds = %30
store i32 1, ptr %4, align 4
br label %172
38: ; preds = %30
%39 = load ptr, ptr %7, align 8
%40 = load i32, ptr @O_WRONLY, align 4
%41 = load i32, ptr @O_CREAT, align 4
%42 = or i32 %40, %41
%43 = load i32, ptr @O_TRUNC, align 4
%44 = or i32 %42, %43
%45 = or i32 %44, 0
%46 = load i32, ptr @S_IRUSR, align 4
%47 = load i32, ptr @S_IWUSR, align 4
%48 = or i32 %46, %47
%49 = call i32 (ptr, i32, ...) @open(ptr noundef %39, i32 noundef %45, i32 noundef %48)
store i32 %49, ptr %9, align 4
%50 = load i32, ptr %9, align 4
%51 = icmp eq i32 %50, -1
br i1 %51, label %52, label %55
52: ; preds = %38
%53 = load i32, ptr %8, align 4
%54 = call i32 @close(i32 noundef %53)
store i32 1, ptr %4, align 4
br label %172
55: ; preds = %38
%56 = load i32, ptr %8, align 4
%57 = getelementptr inbounds [16 x i8], ptr %13, i64 0, i64 0
%58 = call i32 @read(i32 noundef %56, ptr noundef %57, i32 noundef 16)
store i32 %58, ptr %17, align 4
%59 = load i32, ptr %17, align 4
%60 = icmp slt i32 %59, 16
br i1 %60, label %66, label %.lr.ph2
.lr.ph2: ; preds = %55
br label %71
61: ; preds = %88
%62 = load i32, ptr %8, align 4
%63 = call i32 @read(i32 noundef %62, ptr noundef %57, i32 noundef 16)
store i32 %63, ptr %17, align 4
%64 = load i32, ptr %17, align 4
%65 = icmp slt i32 %64, 16
br i1 %65, label %._crit_edge3, label %71
._crit_edge3: ; preds = %61
br label %66
66: ; preds = %._crit_edge3, %55
%67 = load i32, ptr %8, align 4
%68 = call i32 @close(i32 noundef %67)
%69 = load i32, ptr %9, align 4
%70 = call i32 @close(i32 noundef %69)
store i32 2, ptr %4, align 4
br label %172
71: ; preds = %.lr.ph2, %61
store i32 1, ptr %18, align 4
store i32 0, ptr %16, align 4
%72 = load i32, ptr %16, align 4
%73 = icmp slt i32 %72, 8
br i1 %73, label %.lr.ph, label %88
.lr.ph: ; preds = %71
br label %74
74: ; preds = %.lr.ph, %83
%75 = load i32, ptr %16, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [16 x i8], ptr %13, i64 0, i64 %76
%78 = load i8, ptr %77, align 1
%79 = sext i8 %78 to i32
%80 = icmp ne i32 %79, 0
br i1 %80, label %81, label %82
81: ; preds = %74
store i32 0, ptr %18, align 4
br label %82
82: ; preds = %81, %74
br label %83
83: ; preds = %82
%84 = load i32, ptr %16, align 4
%85 = add nsw i32 %84, 1
store i32 %85, ptr %16, align 4
%86 = load i32, ptr %16, align 4
%87 = icmp slt i32 %86, 8
br i1 %87, label %74, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %83
br label %88
88: ; preds = %._crit_edge, %71
%89 = load i32, ptr %18, align 4
%90 = icmp ne i32 %89, 0
br i1 %90, label %61, label %91
91: ; preds = %88
br label %92
92: ; preds = %91
%93 = load ptr, ptr %5, align 8
%94 = call i32 @pgheader_create_raw(ptr noundef %14, ptr noundef %93, ptr noundef %15)
store i32 %94, ptr %11, align 4
%95 = icmp ne i32 %94, 0
br i1 %95, label %96, label %98
96: ; preds = %92
%97 = load i32, ptr %11, align 4
store i32 %97, ptr %4, align 4
br label %172
98: ; preds = %92
store i32 0, ptr %10, align 4
%99 = load i32, ptr %10, align 4
%100 = load i32, ptr %15, align 4
%101 = icmp ult i32 %99, %100
br i1 %101, label %.lr.ph5, label %123
.lr.ph5: ; preds = %98
br label %102
102: ; preds = %.lr.ph5, %117
%103 = load ptr, ptr %14, align 8
%104 = load i32, ptr %10, align 4
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds i8, ptr %103, i64 %105
%107 = load i8, ptr %106, align 1
store i8 %107, ptr %12, align 1
%108 = load i32, ptr %9, align 4
%109 = call i32 @write(i32 noundef %108, ptr noundef %12, i32 noundef 1)
%110 = icmp ne i32 %109, 1
br i1 %110, label %111, label %116
111: ; preds = %102
%112 = load i32, ptr %8, align 4
%113 = call i32 @close(i32 noundef %112)
%114 = load i32, ptr %9, align 4
%115 = call i32 @close(i32 noundef %114)
store i32 1, ptr %4, align 4
br label %172
116: ; preds = %102
br label %117
117: ; preds = %116
%118 = load i32, ptr %10, align 4
%119 = add nsw i32 %118, 1
store i32 %119, ptr %10, align 4
%120 = load i32, ptr %10, align 4
%121 = load i32, ptr %15, align 4
%122 = icmp ult i32 %120, %121
br i1 %122, label %102, label %._crit_edge6, !llvm.loop !8
._crit_edge6: ; preds = %117
br label %123
123: ; preds = %._crit_edge6, %98
%124 = load ptr, ptr %14, align 8
%125 = call i32 @free(ptr noundef %124)
%126 = load i32, ptr %9, align 4
%127 = getelementptr inbounds [16 x i8], ptr %13, i64 0, i64 0
%128 = call i32 @write(i32 noundef %126, ptr noundef %127, i32 noundef 16)
%129 = icmp ne i32 %128, 16
br i1 %129, label %130, label %135
130: ; preds = %123
%131 = load i32, ptr %8, align 4
%132 = call i32 @close(i32 noundef %131)
%133 = load i32, ptr %9, align 4
%134 = call i32 @close(i32 noundef %133)
store i32 1, ptr %4, align 4
br label %172
135: ; preds = %123
%136 = load i32, ptr %8, align 4
%137 = getelementptr inbounds [16 x i8], ptr %13, i64 0, i64 0
%138 = call i32 @read(i32 noundef %136, ptr noundef %137, i32 noundef 16)
store i32 %138, ptr %11, align 4
%139 = icmp eq i32 %138, 16
br i1 %139, label %.lr.ph8, label %155
.lr.ph8: ; preds = %135
br label %144
140: ; preds = %144
%141 = load i32, ptr %8, align 4
%142 = call i32 @read(i32 noundef %141, ptr noundef %137, i32 noundef 16)
store i32 %142, ptr %11, align 4
%143 = icmp eq i32 %142, 16
br i1 %143, label %144, label %._crit_edge9, !llvm.loop !9
144: ; preds = %.lr.ph8, %140
%145 = load i32, ptr %9, align 4
%146 = getelementptr inbounds [16 x i8], ptr %13, i64 0, i64 0
%147 = load i32, ptr %11, align 4
%148 = call i32 @write(i32 noundef %145, ptr noundef %146, i32 noundef %147)
%149 = icmp ne i32 %148, 16
br i1 %149, label %150, label %140
150: ; preds = %144
%151 = load i32, ptr %8, align 4
%152 = call i32 @close(i32 noundef %151)
%153 = load i32, ptr %9, align 4
%154 = call i32 @close(i32 noundef %153)
store i32 1, ptr %4, align 4
br label %172
._crit_edge9: ; preds = %140
br label %155
155: ; preds = %._crit_edge9, %135
%156 = load i32, ptr %8, align 4
%157 = call i32 @close(i32 noundef %156)
%158 = load i32, ptr %9, align 4
%159 = call i32 @close(i32 noundef %158)
%160 = load i32, ptr %11, align 4
%161 = icmp slt i32 0, %160
br i1 %161, label %162, label %166
162: ; preds = %155
%163 = load i32, ptr %11, align 4
%164 = icmp slt i32 %163, 16
br i1 %164, label %165, label %166
165: ; preds = %162
store i32 2, ptr %4, align 4
br label %172
166: ; preds = %162, %155
%167 = load i32, ptr %11, align 4
%168 = icmp eq i32 %167, -1
br i1 %168, label %169, label %170
169: ; preds = %166
store i32 1, ptr %4, align 4
br label %172
170: ; preds = %166
br label %171
171: ; preds = %170
store i32 0, ptr %4, align 4
br label %172
172: ; preds = %171, %169, %165, %150, %130, %111, %96, %66, %52, %37, %29, %22
%173 = load i32, ptr %4, align 4
ret i32 %173
}
declare i32 @pgheader_detect(ptr noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef, ...) #1
declare i32 @close(i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @pgheader_create_raw(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpt4dnntue.c'
source_filename = "/tmp/tmpt4dnntue.c"
target datalayout = "e-m:e-p270: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/tmpt4dnntue.c"
target datalayout = "e-m:e-p270: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/tmppw6d_wlr.c'
source_filename = "/tmp/tmppw6d_wlr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x i8], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%5 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %4)
%6 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %3)
%7 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%8 = load i32, ptr %3, align 4
%9 = call i32 @modify_string(ptr noundef %7, i32 noundef %8)
%10 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%11 = call i32 @print_string(ptr noundef %10)
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @modify_string(ptr noundef, i32 noundef) #1
declare i32 @print_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/tmppw6d_wlr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x i8], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%5 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %4)
%6 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %3)
%7 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%8 = load i32, ptr %3, align 4
%9 = call i32 @modify_string(ptr noundef %7, i32 noundef %8)
%10 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%11 = call i32 @print_string(ptr noundef %10)
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @modify_string(ptr noundef, i32 noundef) #1
declare i32 @print_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/tmp11a9972u.c'
source_filename = "/tmp/tmp11a9972u.c"
target datalayout = "e-m:e-p270: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/tmp11a9972u.c"
target datalayout = "e-m:e-p270: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/tmprqru4w47.c'
source_filename = "/tmp/tmprqru4w47.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_CUR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @IsIOFunction(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [7 x i8], align 1
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr @SEEK_CUR, align 4
%11 = call i32 @fseek(ptr noundef %9, i32 noundef -1, i32 noundef %10)
%12 = load ptr, ptr %4, align 8
%13 = call i32 @strlen(ptr noundef %12)
store i32 %13, ptr %6, align 4
call void @llvm.memset.p0.i64(ptr align 1 %8, i8 0, i64 7, i1 false)
store i32 0, ptr %7, align 4
br label %14
14: ; preds = %25, %2
%15 = load i32, ptr %7, align 4
%16 = load i32, ptr %6, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %28
18: ; preds = %14
%19 = load ptr, ptr %5, align 8
%20 = call i64 @fgetc(ptr noundef %19)
%21 = trunc i64 %20 to i8
%22 = load i32, ptr %7, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [7 x i8], ptr %8, i64 0, i64 %23
store i8 %21, ptr %24, align 1
br label %25
25: ; preds = %18
%26 = load i32, ptr %7, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %7, align 4
br label %14, !llvm.loop !6
28: ; preds = %14
%29 = load i32, ptr %7, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [7 x i8], ptr %8, i64 0, i64 %30
store i8 0, ptr %31, align 1
%32 = load ptr, ptr %5, align 8
%33 = load i32, ptr %6, align 4
%34 = sub nsw i32 0, %33
%35 = add nsw i32 %34, 1
%36 = load i32, ptr @SEEK_CUR, align 4
%37 = call i32 @fseek(ptr noundef %32, i32 noundef %35, i32 noundef %36)
%38 = load ptr, ptr %4, align 8
%39 = getelementptr inbounds [7 x i8], ptr %8, i64 0, i64 0
%40 = call i32 @strcmp(ptr noundef %38, ptr noundef %39)
%41 = icmp ne i32 %40, 0
br i1 %41, label %43, label %42
42: ; preds = %28
store i32 1, ptr %3, align 4
br label %44
43: ; preds = %28
store i32 0, ptr %3, align 4
br label %44
44: ; preds = %43, %42
%45 = load i32, ptr %3, align 4
ret i32 %45
}
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i64 @fgetc(ptr noundef) #1
declare i32 @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" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprqru4w47.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_CUR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @IsIOFunction(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [7 x i8], align 1
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr @SEEK_CUR, align 4
%11 = call i32 @fseek(ptr noundef %9, i32 noundef -1, i32 noundef %10)
%12 = load ptr, ptr %4, align 8
%13 = call i32 @strlen(ptr noundef %12)
store i32 %13, ptr %6, align 4
call void @llvm.memset.p0.i64(ptr align 1 %8, i8 0, i64 7, i1 false)
store i32 0, ptr %7, align 4
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %6, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %.lr.ph, label %30
.lr.ph: ; preds = %2
br label %17
17: ; preds = %.lr.ph, %24
%18 = load ptr, ptr %5, align 8
%19 = call i64 @fgetc(ptr noundef %18)
%20 = trunc i64 %19 to i8
%21 = load i32, ptr %7, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [7 x i8], ptr %8, i64 0, i64 %22
store i8 %20, ptr %23, align 1
br label %24
24: ; preds = %17
%25 = load i32, ptr %7, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %7, align 4
%27 = load i32, ptr %7, align 4
%28 = load i32, ptr %6, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %30
30: ; preds = %._crit_edge, %2
%31 = load i32, ptr %7, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [7 x i8], ptr %8, i64 0, i64 %32
store i8 0, ptr %33, align 1
%34 = load ptr, ptr %5, align 8
%35 = load i32, ptr %6, align 4
%36 = sub nsw i32 0, %35
%37 = add nsw i32 %36, 1
%38 = load i32, ptr @SEEK_CUR, align 4
%39 = call i32 @fseek(ptr noundef %34, i32 noundef %37, i32 noundef %38)
%40 = load ptr, ptr %4, align 8
%41 = getelementptr inbounds [7 x i8], ptr %8, i64 0, i64 0
%42 = call i32 @strcmp(ptr noundef %40, ptr noundef %41)
%43 = icmp ne i32 %42, 0
br i1 %43, label %45, label %44
44: ; preds = %30
store i32 1, ptr %3, align 4
br label %46
45: ; preds = %30
store i32 0, ptr %3, align 4
br label %46
46: ; preds = %45, %44
%47 = load i32, ptr %3, align 4
ret i32 %47
}
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i64 @fgetc(ptr noundef) #1
declare i32 @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" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmph6a1s8ce.c'
source_filename = "/tmp/tmph6a1s8ce.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"Galois addition failed\0A\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"Galois multiplication failed\0A\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"Galois division failed\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @galoisTest() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 1, ptr %4, align 4
store i32 1, ptr %1, align 4
store i32 10, ptr %2, align 4
store i32 11, ptr %3, align 4
%5 = load i32, ptr %1, align 4
%6 = load i32, ptr %2, align 4
%7 = call i32 @gadd(i32 noundef %5, i32 noundef %6)
%8 = load i32, ptr %3, align 4
%9 = icmp ne i32 %7, %8
br i1 %9, label %10, label %12
10: ; preds = %0
%11 = call i32 @printf(ptr noundef @.str)
store i32 0, ptr %4, align 4
br label %12
12: ; preds = %10, %0
%13 = load i32, ptr %1, align 4
%14 = load i32, ptr %2, align 4
%15 = call i32 @gmul(i32 noundef %13, i32 noundef %14)
%16 = load i32, ptr %2, align 4
%17 = icmp ne i32 %15, %16
br i1 %17, label %21, label %18
18: ; preds = %12
%19 = call i32 @gmul(i32 noundef 2, i32 noundef 2)
%20 = icmp ne i32 %19, 4
br i1 %20, label %21, label %23
21: ; preds = %18, %12
%22 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %4, align 4
br label %23
23: ; preds = %21, %18
%24 = load i32, ptr %2, align 4
%25 = load i32, ptr %1, align 4
%26 = call i32 @gdiv(i32 noundef %24, i32 noundef %25)
%27 = load i32, ptr %2, align 4
%28 = icmp ne i32 %26, %27
br i1 %28, label %32, label %29
29: ; preds = %23
%30 = call i32 @gdiv(i32 noundef 2, i32 noundef 2)
%31 = icmp ne i32 %30, 1
br i1 %31, label %32, label %34
32: ; preds = %29, %23
%33 = call i32 @printf(ptr noundef @.str.2)
store i32 0, ptr %4, align 4
br label %34
34: ; preds = %32, %29
%35 = load i32, ptr %4, align 4
ret i32 %35
}
declare i32 @gadd(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @gmul(i32 noundef, i32 noundef) #1
declare i32 @gdiv(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/tmph6a1s8ce.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"Galois addition failed\0A\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"Galois multiplication failed\0A\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"Galois division failed\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @galoisTest() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 1, ptr %4, align 4
store i32 1, ptr %1, align 4
store i32 10, ptr %2, align 4
store i32 11, ptr %3, align 4
%5 = load i32, ptr %1, align 4
%6 = load i32, ptr %2, align 4
%7 = call i32 @gadd(i32 noundef %5, i32 noundef %6)
%8 = load i32, ptr %3, align 4
%9 = icmp ne i32 %7, %8
br i1 %9, label %10, label %12
10: ; preds = %0
%11 = call i32 @printf(ptr noundef @.str)
store i32 0, ptr %4, align 4
br label %12
12: ; preds = %10, %0
%13 = load i32, ptr %1, align 4
%14 = load i32, ptr %2, align 4
%15 = call i32 @gmul(i32 noundef %13, i32 noundef %14)
%16 = load i32, ptr %2, align 4
%17 = icmp ne i32 %15, %16
br i1 %17, label %21, label %18
18: ; preds = %12
%19 = call i32 @gmul(i32 noundef 2, i32 noundef 2)
%20 = icmp ne i32 %19, 4
br i1 %20, label %21, label %23
21: ; preds = %18, %12
%22 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %4, align 4
br label %23
23: ; preds = %21, %18
%24 = load i32, ptr %2, align 4
%25 = load i32, ptr %1, align 4
%26 = call i32 @gdiv(i32 noundef %24, i32 noundef %25)
%27 = load i32, ptr %2, align 4
%28 = icmp ne i32 %26, %27
br i1 %28, label %32, label %29
29: ; preds = %23
%30 = call i32 @gdiv(i32 noundef 2, i32 noundef 2)
%31 = icmp ne i32 %30, 1
br i1 %31, label %32, label %34
32: ; preds = %29, %23
%33 = call i32 @printf(ptr noundef @.str.2)
store i32 0, ptr %4, align 4
br label %34
34: ; preds = %32, %29
%35 = load i32, ptr %4, align 4
ret i32 %35
}
declare i32 @gadd(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @gmul(i32 noundef, i32 noundef) #1
declare i32 @gdiv(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/tmp0yuc86_0.c'
source_filename = "/tmp/tmp0yuc86_0.c"
target datalayout = "e-m:e-p270: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/tmp0yuc86_0.c"
target datalayout = "e-m:e-p270: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/tmpnzlwv3i0.c'
source_filename = "/tmp/tmpnzlwv3i0.c"
target datalayout = "e-m:e-p270: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_GETFL = dso_local global i32 0, align 4
@F_SETFL = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnzlwv3i0.c"
target datalayout = "e-m:e-p270: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_GETFL = dso_local global i32 0, align 4
@F_SETFL = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp90xkwqwt.c'
source_filename = "/tmp/tmp90xkwqwt.c"
target datalayout = "e-m:e-p270: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/tmp90xkwqwt.c"
target datalayout = "e-m:e-p270: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/tmp7gynpc6l.c'
source_filename = "/tmp/tmp7gynpc6l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @CloseComport(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)
ret void
}
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7gynpc6l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @CloseComport(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)
ret void
}
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp63_52s46.c'
source_filename = "/tmp/tmp63_52s46.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CERTIFICATEPOLICIES_it = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @CERTIFICATEPOLICIES_new() #0 {
%1 = call i64 @ASN1_item_new(ptr noundef @CERTIFICATEPOLICIES_it)
%2 = inttoptr i64 %1 to ptr
ret ptr %2
}
declare i64 @ASN1_item_new(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp63_52s46.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CERTIFICATEPOLICIES_it = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @CERTIFICATEPOLICIES_new() #0 {
%1 = call i64 @ASN1_item_new(ptr noundef @CERTIFICATEPOLICIES_it)
%2 = inttoptr i64 %1 to ptr
ret ptr %2
}
declare i64 @ASN1_item_new(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvzrer_c1.c'
source_filename = "/tmp/tmpvzrer_c1.c"
target datalayout = "e-m:e-p270: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/tmpvzrer_c1.c"
target datalayout = "e-m:e-p270: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/tmpd49my81e.c'
source_filename = "/tmp/tmpd49my81e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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\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 i8, align 1
store i32 0, ptr %1, align 4
%4 = call signext i8 (...) @getchar()
store i8 %4, ptr %3, align 1
%5 = load i8, ptr %3, align 1
%6 = sext i8 %5 to i32
%7 = icmp sge i32 %6, 97
br i1 %7, label %8, label %19
8: ; preds = %0
%9 = load i8, ptr %3, align 1
%10 = sext i8 %9 to i32
%11 = icmp sle i32 %10, 122
br i1 %11, label %12, label %19
12: ; preds = %8
%13 = load i8, ptr %3, align 1
%14 = sext i8 %13 to i32
%15 = sub nsw i32 122, %14
store i32 %15, ptr %2, align 4
%16 = load i32, ptr %2, align 4
%17 = add nsw i32 97, %16
%18 = trunc i32 %17 to i8
store i8 %18, ptr %3, align 1
br label %19
19: ; preds = %12, %8, %0
%20 = load i8, ptr %3, align 1
%21 = call i32 @printf(ptr noundef @.str, i8 noundef signext %20)
ret i32 0
}
declare signext i8 @getchar(...) #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/tmpd49my81e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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\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 i8, align 1
store i32 0, ptr %1, align 4
%4 = call signext i8 (...) @getchar()
store i8 %4, ptr %3, align 1
%5 = load i8, ptr %3, align 1
%6 = sext i8 %5 to i32
%7 = icmp sge i32 %6, 97
br i1 %7, label %8, label %19
8: ; preds = %0
%9 = load i8, ptr %3, align 1
%10 = sext i8 %9 to i32
%11 = icmp sle i32 %10, 122
br i1 %11, label %12, label %19
12: ; preds = %8
%13 = load i8, ptr %3, align 1
%14 = sext i8 %13 to i32
%15 = sub nsw i32 122, %14
store i32 %15, ptr %2, align 4
%16 = load i32, ptr %2, align 4
%17 = add nsw i32 97, %16
%18 = trunc i32 %17 to i8
store i8 %18, ptr %3, align 1
br label %19
19: ; preds = %12, %8, %0
%20 = load i8, ptr %3, align 1
%21 = call i32 @printf(ptr noundef @.str, i8 noundef signext %20)
ret i32 0
}
declare signext i8 @getchar(...) #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/tmp8d268dbw.c'
source_filename = "/tmp/tmp8d268dbw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @U_WMR85_swap(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @U_WMRNOTIMPLEMENTED_swap(ptr noundef %5, i32 noundef %6)
ret void
}
declare i32 @U_WMRNOTIMPLEMENTED_swap(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/tmp8d268dbw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @U_WMR85_swap(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @U_WMRNOTIMPLEMENTED_swap(ptr noundef %5, i32 noundef %6)
ret void
}
declare i32 @U_WMRNOTIMPLEMENTED_swap(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/tmpkefaeqai.c'
source_filename = "/tmp/tmpkefaeqai.c"
target datalayout = "e-m:e-p270: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 [41 x i8] c"\0AUsage: sel_gscstars [infile] [outfile]\0A\00", align 1
@.str.1 = private unnamed_addr constant [54 x i8] c" where [infile] is a file containing a list of files \00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"to be processed\0A\00", align 1
@.str.3 = private unnamed_addr constant [55 x i8] c" and [outfile] is the name of the desired output file.\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.6 = private unnamed_addr constant [49 x i8] c"ERROR: %s does not exist. Enter new filename: \00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.8 = private unnamed_addr constant [32 x i8] c"\0AERROR: No lines in input file\0A\00", align 1
@.str.9 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.10 = private unnamed_addr constant [27 x i8] c"ERROR: Problem reading %s\0A\00", align 1
@.str.11 = private unnamed_addr constant [37 x i8] c"Warning: Found only %d stars for %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca [1000 x i8], align 16
%11 = alloca [1000 x i8], align 16
%12 = alloca ptr, align 8
%13 = 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
%14 = load i32, ptr %4, align 4
%15 = icmp ne i32 %14, 3
br i1 %15, label %16, label %27
16: ; preds = %2
%17 = load i32, ptr @stderr, align 4
%18 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %17, ptr noundef @.str)
%19 = load i32, ptr @stderr, align 4
%20 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %19, ptr noundef @.str.1)
%21 = load i32, ptr @stderr, align 4
%22 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %21, ptr noundef @.str.2)
%23 = load i32, ptr @stderr, align 4
%24 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %23, ptr noundef @.str.3)
%25 = load i32, ptr @stderr, align 4
%26 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %25, ptr noundef @.str.4)
store i32 1, ptr %3, align 4
br label %104
27: ; preds = %2
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i64 1
%30 = load ptr, ptr %29, align 8
store ptr %30, ptr %8, align 8
br label %31
31: ; preds = %35, %27
%32 = load ptr, ptr %8, align 8
%33 = call ptr @fopen(ptr noundef %32, ptr noundef @.str.5)
store ptr %33, ptr %12, align 8
%34 = icmp eq ptr %33, null
br i1 %34, label %35, label %41
35: ; preds = %31
%36 = load i32, ptr @stderr, align 4
%37 = load ptr, ptr %8, align 8
%38 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %36, ptr noundef @.str.6, ptr noundef %37)
%39 = load ptr, ptr %8, align 8
%40 = call i32 @gets(ptr noundef %39)
br label %31, !llvm.loop !6
41: ; preds = %31
%42 = load ptr, ptr %5, align 8
%43 = getelementptr inbounds ptr, ptr %42, i64 2
%44 = load ptr, ptr %43, align 8
store ptr %44, ptr %9, align 8
br label %45
45: ; preds = %49, %41
%46 = load ptr, ptr %9, align 8
%47 = call ptr @fopen(ptr noundef %46, ptr noundef @.str.7)
store ptr %47, ptr %13, align 8
%48 = icmp eq ptr %47, null
br i1 %48, label %49, label %55
49: ; preds = %45
%50 = load i32, ptr @stderr, align 4
%51 = load ptr, ptr %9, align 8
%52 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %50, ptr noundef @.str.6, ptr noundef %51)
%53 = load ptr, ptr %9, align 8
%54 = call i32 @gets(ptr noundef %53)
br label %45, !llvm.loop !8
55: ; preds = %45
%56 = load ptr, ptr %12, align 8
%57 = call i32 @n_lines(ptr noundef %56, i8 noundef signext 33)
store i32 %57, ptr %6, align 4
%58 = icmp eq i32 %57, 0
br i1 %58, label %59, label %62
59: ; preds = %55
%60 = load i32, ptr @stderr, align 4
%61 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %60, ptr noundef @.str.8)
store i32 1, ptr %3, align 4
br label %104
62: ; preds = %55
%63 = load ptr, ptr %12, align 8
%64 = call i32 @rewind(ptr noundef %63)
br label %65
65: ; preds = %62
br label %66
66: ; preds = %90, %65
%67 = getelementptr inbounds [1000 x i8], ptr %10, i64 0, i64 0
%68 = load ptr, ptr %12, align 8
%69 = call ptr @fgets(ptr noundef %67, i32 noundef 1000, ptr noundef %68)
%70 = icmp ne ptr %69, null
br i1 %70, label %71, label %91
71: ; preds = %66
%72 = getelementptr inbounds [1000 x i8], ptr %10, i64 0, i64 0
%73 = getelementptr inbounds [1000 x i8], ptr %11, i64 0, i64 0
%74 = call i32 @sscanf(ptr noundef %72, ptr noundef @.str.9, ptr noundef %73)
%75 = icmp ne i32 %74, 1
br i1 %75, label %76, label %80
76: ; preds = %71
%77 = load i32, ptr @stderr, align 4
%78 = load ptr, ptr %8, align 8
%79 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %77, ptr noundef @.str.10, ptr noundef %78)
store i32 1, ptr %3, align 4
br label %104
80: ; preds = %71
%81 = getelementptr inbounds [1000 x i8], ptr %11, i64 0, i64 0
%82 = load ptr, ptr %13, align 8
%83 = call i32 @read_gsc_file(ptr noundef %81, ptr noundef %82)
store i32 %83, ptr %7, align 4
%84 = icmp ne i32 %83, 3
br i1 %84, label %85, label %90
85: ; preds = %80
%86 = load i32, ptr @stderr, align 4
%87 = load i32, ptr %7, align 4
%88 = getelementptr inbounds [1000 x i8], ptr %11, i64 0, i64 0
%89 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %86, ptr noundef @.str.11, i32 noundef %87, ptr noundef %88)
br label %90
90: ; preds = %85, %80
br label %66, !llvm.loop !9
91: ; preds = %66
%92 = load ptr, ptr %12, align 8
%93 = icmp ne ptr %92, null
br i1 %93, label %94, label %97
94: ; preds = %91
%95 = load ptr, ptr %12, align 8
%96 = call i32 @fclose(ptr noundef %95)
br label %97
97: ; preds = %94, %91
%98 = load ptr, ptr %13, align 8
%99 = icmp ne ptr %98, null
br i1 %99, label %100, label %103
100: ; preds = %97
%101 = load ptr, ptr %13, align 8
%102 = call i32 @fclose(ptr noundef %101)
br label %103
103: ; preds = %100, %97
store i32 0, ptr %3, align 4
br label %104
104: ; preds = %103, %76, %59, %16
%105 = load i32, ptr %3, align 4
ret i32 %105
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @gets(ptr noundef) #1
declare i32 @n_lines(ptr noundef, i8 noundef signext) #1
declare i32 @rewind(ptr noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @read_gsc_file(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkefaeqai.c"
target datalayout = "e-m:e-p270: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 [41 x i8] c"\0AUsage: sel_gscstars [infile] [outfile]\0A\00", align 1
@.str.1 = private unnamed_addr constant [54 x i8] c" where [infile] is a file containing a list of files \00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"to be processed\0A\00", align 1
@.str.3 = private unnamed_addr constant [55 x i8] c" and [outfile] is the name of the desired output file.\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.6 = private unnamed_addr constant [49 x i8] c"ERROR: %s does not exist. Enter new filename: \00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.8 = private unnamed_addr constant [32 x i8] c"\0AERROR: No lines in input file\0A\00", align 1
@.str.9 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.10 = private unnamed_addr constant [27 x i8] c"ERROR: Problem reading %s\0A\00", align 1
@.str.11 = private unnamed_addr constant [37 x i8] c"Warning: Found only %d stars for %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca [1000 x i8], align 16
%11 = alloca [1000 x i8], align 16
%12 = alloca ptr, align 8
%13 = 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
%14 = load i32, ptr %4, align 4
%15 = icmp ne i32 %14, 3
br i1 %15, label %16, label %27
16: ; preds = %2
%17 = load i32, ptr @stderr, align 4
%18 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %17, ptr noundef @.str)
%19 = load i32, ptr @stderr, align 4
%20 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %19, ptr noundef @.str.1)
%21 = load i32, ptr @stderr, align 4
%22 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %21, ptr noundef @.str.2)
%23 = load i32, ptr @stderr, align 4
%24 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %23, ptr noundef @.str.3)
%25 = load i32, ptr @stderr, align 4
%26 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %25, ptr noundef @.str.4)
store i32 1, ptr %3, align 4
br label %110
27: ; preds = %2
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i64 1
%30 = load ptr, ptr %29, align 8
store ptr %30, ptr %8, align 8
%31 = load ptr, ptr %8, align 8
%32 = call ptr @fopen(ptr noundef %31, ptr noundef @.str.5)
store ptr %32, ptr %12, align 8
%33 = icmp eq ptr %32, null
br i1 %33, label %.lr.ph, label %43
.lr.ph: ; preds = %27
br label %34
34: ; preds = %.lr.ph, %34
%35 = load i32, ptr @stderr, align 4
%36 = load ptr, ptr %8, align 8
%37 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %35, ptr noundef @.str.6, ptr noundef %36)
%38 = load ptr, ptr %8, align 8
%39 = call i32 @gets(ptr noundef %38)
%40 = load ptr, ptr %8, align 8
%41 = call ptr @fopen(ptr noundef %40, ptr noundef @.str.5)
store ptr %41, ptr %12, align 8
%42 = icmp eq ptr %41, null
br i1 %42, label %34, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %34
br label %43
43: ; preds = %._crit_edge, %27
%44 = load ptr, ptr %5, align 8
%45 = getelementptr inbounds ptr, ptr %44, i64 2
%46 = load ptr, ptr %45, align 8
store ptr %46, ptr %9, align 8
%47 = load ptr, ptr %9, align 8
%48 = call ptr @fopen(ptr noundef %47, ptr noundef @.str.7)
store ptr %48, ptr %13, align 8
%49 = icmp eq ptr %48, null
br i1 %49, label %.lr.ph2, label %59
.lr.ph2: ; preds = %43
br label %50
50: ; preds = %.lr.ph2, %50
%51 = load i32, ptr @stderr, align 4
%52 = load ptr, ptr %9, align 8
%53 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %51, ptr noundef @.str.6, ptr noundef %52)
%54 = load ptr, ptr %9, align 8
%55 = call i32 @gets(ptr noundef %54)
%56 = load ptr, ptr %9, align 8
%57 = call ptr @fopen(ptr noundef %56, ptr noundef @.str.7)
store ptr %57, ptr %13, align 8
%58 = icmp eq ptr %57, null
br i1 %58, label %50, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %50
br label %59
59: ; preds = %._crit_edge3, %43
%60 = load ptr, ptr %12, align 8
%61 = call i32 @n_lines(ptr noundef %60, i8 noundef signext 33)
store i32 %61, ptr %6, align 4
%62 = icmp eq i32 %61, 0
br i1 %62, label %63, label %66
63: ; preds = %59
%64 = load i32, ptr @stderr, align 4
%65 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %64, ptr noundef @.str.8)
store i32 1, ptr %3, align 4
br label %110
66: ; preds = %59
%67 = load ptr, ptr %12, align 8
%68 = call i32 @rewind(ptr noundef %67)
br label %69
69: ; preds = %66
%70 = getelementptr inbounds [1000 x i8], ptr %10, i64 0, i64 0
%71 = load ptr, ptr %12, align 8
%72 = call ptr @fgets(ptr noundef %70, i32 noundef 1000, ptr noundef %71)
%73 = icmp ne ptr %72, null
br i1 %73, label %.lr.ph5, label %97
.lr.ph5: ; preds = %69
br label %74
74: ; preds = %.lr.ph5, %93
%75 = getelementptr inbounds [1000 x i8], ptr %10, i64 0, i64 0
%76 = getelementptr inbounds [1000 x i8], ptr %11, i64 0, i64 0
%77 = call i32 @sscanf(ptr noundef %75, ptr noundef @.str.9, ptr noundef %76)
%78 = icmp ne i32 %77, 1
br i1 %78, label %79, label %83
79: ; preds = %74
%80 = load i32, ptr @stderr, align 4
%81 = load ptr, ptr %8, align 8
%82 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %80, ptr noundef @.str.10, ptr noundef %81)
store i32 1, ptr %3, align 4
br label %110
83: ; preds = %74
%84 = getelementptr inbounds [1000 x i8], ptr %11, i64 0, i64 0
%85 = load ptr, ptr %13, align 8
%86 = call i32 @read_gsc_file(ptr noundef %84, ptr noundef %85)
store i32 %86, ptr %7, align 4
%87 = icmp ne i32 %86, 3
br i1 %87, label %88, label %93
88: ; preds = %83
%89 = load i32, ptr @stderr, align 4
%90 = load i32, ptr %7, align 4
%91 = getelementptr inbounds [1000 x i8], ptr %11, i64 0, i64 0
%92 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %89, ptr noundef @.str.11, i32 noundef %90, ptr noundef %91)
br label %93
93: ; preds = %88, %83
%94 = load ptr, ptr %12, align 8
%95 = call ptr @fgets(ptr noundef %70, i32 noundef 1000, ptr noundef %94)
%96 = icmp ne ptr %95, null
br i1 %96, label %74, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %93
br label %97
97: ; preds = %._crit_edge6, %69
%98 = load ptr, ptr %12, align 8
%99 = icmp ne ptr %98, null
br i1 %99, label %100, label %103
100: ; preds = %97
%101 = load ptr, ptr %12, align 8
%102 = call i32 @fclose(ptr noundef %101)
br label %103
103: ; preds = %100, %97
%104 = load ptr, ptr %13, align 8
%105 = icmp ne ptr %104, null
br i1 %105, label %106, label %109
106: ; preds = %103
%107 = load ptr, ptr %13, align 8
%108 = call i32 @fclose(ptr noundef %107)
br label %109
109: ; preds = %106, %103
store i32 0, ptr %3, align 4
br label %110
110: ; preds = %109, %79, %63, %16
%111 = load i32, ptr %3, align 4
ret i32 %111
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @gets(ptr noundef) #1
declare i32 @n_lines(ptr noundef, i8 noundef signext) #1
declare i32 @rewind(ptr noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @read_gsc_file(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpc_8s68ir.c'
source_filename = "/tmp/tmpc_8s68ir.c"
target datalayout = "e-m:e-p270: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 { i16 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_XIMStyles_count_styles(ptr noundef %0, i16 noundef zeroext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i16, align 2
store ptr %0, ptr %3, align 8
store i16 %1, ptr %4, align 2
%5 = load i16, ptr %4, align 2
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.TYPE_2__, ptr %6, i32 0, i32 0
store i16 %5, ptr %7, align 2
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc_8s68ir.c"
target datalayout = "e-m:e-p270: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 { i16 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_XIMStyles_count_styles(ptr noundef %0, i16 noundef zeroext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i16, align 2
store ptr %0, ptr %3, align 8
store i16 %1, ptr %4, align 2
%5 = load i16, ptr %4, align 2
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.TYPE_2__, ptr %6, i32 0, i32 0
store i16 %5, ptr %7, align 2
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpglkppgcn.c'
source_filename = "/tmp/tmpglkppgcn.c"
target datalayout = "e-m:e-p270: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/tmpglkppgcn.c"
target datalayout = "e-m:e-p270: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/tmp3wxqaihe.c'
source_filename = "/tmp/tmp3wxqaihe.c"
target datalayout = "e-m:e-p270: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.instring = private unnamed_addr constant [61 x i8] c"7b5a4215415d544115415d5015455447414c155c46155f4058455c5b523f\00", align 16
@.str = private unnamed_addr constant [8 x i8] c"input: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%x\00", align 1
@.str.2 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"output: \00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%c\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 [61 x i8], align 16
%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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.instring, i64 61, i1 false)
%12 = getelementptr inbounds [61 x i8], ptr %6, i64 0, i64 0
%13 = call i32 @strlen(ptr noundef %12)
store i32 %13, ptr %7, align 4
%14 = getelementptr inbounds [61 x i8], ptr %6, i64 0, i64 0
%15 = call ptr @asciihex2hexbytes(ptr noundef %7, ptr noundef %14)
store ptr %15, ptr %8, align 8
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %10, align 4
br label %17
17: ; preds = %29, %2
%18 = load i32, ptr %10, align 4
%19 = load i32, ptr %7, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %32
21: ; preds = %17
%22 = load ptr, ptr %8, align 8
%23 = load i32, ptr %10, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %22, i64 %24
%26 = load i8, ptr %25, align 1
%27 = zext i8 %26 to i32
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %27)
br label %29
29: ; preds = %21
%30 = load i32, ptr %10, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %10, align 4
br label %17, !llvm.loop !6
32: ; preds = %17
%33 = call i32 @puts(ptr noundef @.str.2)
%34 = load i32, ptr %7, align 4
%35 = load ptr, ptr %8, align 8
%36 = call ptr @break_shiftcipher(i32 noundef %34, ptr noundef %35)
store ptr %36, ptr %9, align 8
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %11, align 4
br label %38
38: ; preds = %50, %32
%39 = load i32, ptr %11, align 4
%40 = load i32, ptr %7, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %42, label %53
42: ; preds = %38
%43 = load ptr, ptr %9, align 8
%44 = load i32, ptr %11, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i8, ptr %43, i64 %45
%47 = load i8, ptr %46, align 1
%48 = zext i8 %47 to i32
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %48)
br label %50
50: ; preds = %42
%51 = load i32, ptr %11, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %11, align 4
br label %38, !llvm.loop !8
53: ; preds = %38
%54 = call i32 @puts(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 @strlen(ptr noundef) #2
declare ptr @asciihex2hexbytes(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ...) #2
declare i32 @puts(ptr noundef) #2
declare ptr @break_shiftcipher(i32 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3wxqaihe.c"
target datalayout = "e-m:e-p270: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.instring = private unnamed_addr constant [61 x i8] c"7b5a4215415d544115415d5015455447414c155c46155f4058455c5b523f\00", align 16
@.str = private unnamed_addr constant [8 x i8] c"input: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%x\00", align 1
@.str.2 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"output: \00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%c\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 [61 x i8], align 16
%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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.instring, i64 61, i1 false)
%12 = getelementptr inbounds [61 x i8], ptr %6, i64 0, i64 0
%13 = call i32 @strlen(ptr noundef %12)
store i32 %13, ptr %7, align 4
%14 = getelementptr inbounds [61 x i8], ptr %6, i64 0, i64 0
%15 = call ptr @asciihex2hexbytes(ptr noundef %7, ptr noundef %14)
store ptr %15, ptr %8, align 8
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %10, align 4
%17 = load i32, ptr %10, align 4
%18 = load i32, ptr %7, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %.lr.ph, label %34
.lr.ph: ; preds = %2
br label %20
20: ; preds = %.lr.ph, %28
%21 = load ptr, ptr %8, align 8
%22 = load i32, ptr %10, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %21, i64 %23
%25 = load i8, ptr %24, align 1
%26 = zext i8 %25 to i32
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %26)
br label %28
28: ; preds = %20
%29 = load i32, ptr %10, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %10, align 4
%31 = load i32, ptr %10, align 4
%32 = load i32, ptr %7, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %34
34: ; preds = %._crit_edge, %2
%35 = call i32 @puts(ptr noundef @.str.2)
%36 = load i32, ptr %7, align 4
%37 = load ptr, ptr %8, align 8
%38 = call ptr @break_shiftcipher(i32 noundef %36, ptr noundef %37)
store ptr %38, ptr %9, align 8
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %11, align 4
%40 = load i32, ptr %11, align 4
%41 = load i32, ptr %7, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %.lr.ph2, label %57
.lr.ph2: ; preds = %34
br label %43
43: ; preds = %.lr.ph2, %51
%44 = load ptr, ptr %9, align 8
%45 = load i32, ptr %11, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i8, ptr %44, i64 %46
%48 = load i8, ptr %47, align 1
%49 = zext i8 %48 to i32
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %49)
br label %51
51: ; preds = %43
%52 = load i32, ptr %11, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %11, align 4
%54 = load i32, ptr %11, align 4
%55 = load i32, ptr %7, align 4
%56 = icmp slt i32 %54, %55
br i1 %56, label %43, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %51
br label %57
57: ; preds = %._crit_edge3, %34
%58 = call i32 @puts(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 @strlen(ptr noundef) #2
declare ptr @asciihex2hexbytes(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ...) #2
declare i32 @puts(ptr noundef) #2
declare ptr @break_shiftcipher(i32 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpft4xquif.c'
source_filename = "/tmp/tmpft4xquif.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@cumfnc.eps = internal global double 1.000000e-04, align 8
@cumfnc.dsum = internal global double 0.000000e+00, align 8
@cumfnc.dummy = internal global double 0.000000e+00, align 8
@cumfnc.prod = internal global double 0.000000e+00, align 8
@cumfnc.xx = internal global double 0.000000e+00, align 8
@cumfnc.yy = internal global double 0.000000e+00, align 8
@cumfnc.adn = internal global double 0.000000e+00, align 8
@cumfnc.aup = internal global double 0.000000e+00, align 8
@cumfnc.b = internal global double 0.000000e+00, align 8
@cumfnc.betdn = internal global double 0.000000e+00, align 8
@cumfnc.betup = internal global double 0.000000e+00, align 8
@cumfnc.centwt = internal global double 0.000000e+00, align 8
@cumfnc.dnterm = internal global double 0.000000e+00, align 8
@cumfnc.sum = internal global double 0.000000e+00, align 8
@cumfnc.upterm = internal global double 0.000000e+00, align 8
@cumfnc.xmult = internal global double 0.000000e+00, align 8
@cumfnc.xnonc = internal global double 0.000000e+00, align 8
@cumfnc.i = internal global i32 0, align 4
@cumfnc.icent = internal global i32 0, align 4
@cumfnc.ierr = internal global i32 0, align 4
@cumfnc.T1 = internal global double 0.000000e+00, align 8
@cumfnc.T2 = internal global double 0.000000e+00, align 8
@cumfnc.T3 = internal global double 0.000000e+00, align 8
@cumfnc.T4 = internal global double 0.000000e+00, align 8
@cumfnc.T5 = internal global double 0.000000e+00, align 8
@cumfnc.T6 = internal global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cumfnc(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%13 = load ptr, ptr %7, align 8
%14 = load double, ptr %13, align 8
%15 = fcmp ole double %14, 0.000000e+00
br i1 %15, label %17, label %16
16: ; preds = %6
br label %20
17: ; preds = %6
%18 = load ptr, ptr %11, align 8
store double 0.000000e+00, ptr %18, align 8
%19 = load ptr, ptr %12, align 8
store double 1.000000e+00, ptr %19, align 8
br label %266
20: ; preds = %16
%21 = load ptr, ptr %10, align 8
%22 = load double, ptr %21, align 8
%23 = fcmp olt double %22, 1.000000e-10
br i1 %23, label %25, label %24
24: ; preds = %20
br label %32
25: ; preds = %20
%26 = load ptr, ptr %7, align 8
%27 = load ptr, ptr %8, align 8
%28 = load ptr, ptr %9, align 8
%29 = load ptr, ptr %11, align 8
%30 = load ptr, ptr %12, align 8
%31 = call i32 @cumf(ptr noundef %26, ptr noundef %27, ptr noundef %28, ptr noundef %29, ptr noundef %30)
br label %266
32: ; preds = %24
%33 = load ptr, ptr %10, align 8
%34 = load double, ptr %33, align 8
%35 = fdiv double %34, 2.000000e+00
store double %35, ptr @cumfnc.xnonc, align 8
%36 = load double, ptr @cumfnc.xnonc, align 8
%37 = fptosi double %36 to i32
store i32 %37, ptr @cumfnc.icent, align 4
%38 = load i32, ptr @cumfnc.icent, align 4
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %41
40: ; preds = %32
store i32 1, ptr @cumfnc.icent, align 4
br label %41
41: ; preds = %40, %32
%42 = load i32, ptr @cumfnc.icent, align 4
%43 = add nsw i32 %42, 1
%44 = sitofp i32 %43 to double
store double %44, ptr @cumfnc.T1, align 8
%45 = load double, ptr @cumfnc.xnonc, align 8
%46 = fneg double %45
%47 = load i32, ptr @cumfnc.icent, align 4
%48 = sitofp i32 %47 to double
%49 = load double, ptr @cumfnc.xnonc, align 8
%50 = call double @log(double noundef %49) #4
%51 = call double @llvm.fmuladd.f64(double %48, double %50, double %46)
%52 = call double @alngam(ptr noundef @cumfnc.T1)
%53 = fsub double %51, %52
%54 = call double @exp(double noundef %53) #4
store double %54, ptr @cumfnc.centwt, align 8
%55 = load ptr, ptr %8, align 8
%56 = load double, ptr %55, align 8
%57 = load ptr, ptr %7, align 8
%58 = load double, ptr %57, align 8
%59 = fmul double %56, %58
store double %59, ptr @cumfnc.prod, align 8
%60 = load ptr, ptr %9, align 8
%61 = load double, ptr %60, align 8
%62 = load double, ptr @cumfnc.prod, align 8
%63 = fadd double %61, %62
store double %63, ptr @cumfnc.dsum, align 8
%64 = load ptr, ptr %9, align 8
%65 = load double, ptr %64, align 8
%66 = load double, ptr @cumfnc.dsum, align 8
%67 = fdiv double %65, %66
store double %67, ptr @cumfnc.yy, align 8
%68 = load double, ptr @cumfnc.yy, align 8
%69 = fcmp ogt double %68, 5.000000e-01
br i1 %69, label %70, label %76
70: ; preds = %41
%71 = load double, ptr @cumfnc.prod, align 8
%72 = load double, ptr @cumfnc.dsum, align 8
%73 = fdiv double %71, %72
store double %73, ptr @cumfnc.xx, align 8
%74 = load double, ptr @cumfnc.xx, align 8
%75 = fsub double 1.000000e+00, %74
store double %75, ptr @cumfnc.yy, align 8
br label %79
76: ; preds = %41
%77 = load double, ptr @cumfnc.yy, align 8
%78 = fsub double 1.000000e+00, %77
store double %78, ptr @cumfnc.xx, align 8
br label %79
79: ; preds = %76, %70
%80 = load ptr, ptr %8, align 8
%81 = load double, ptr %80, align 8
%82 = load i32, ptr @cumfnc.icent, align 4
%83 = sitofp i32 %82 to double
%84 = call double @llvm.fmuladd.f64(double %81, double 5.000000e-01, double %83)
store double %84, ptr @cumfnc.T2, align 8
%85 = load ptr, ptr %9, align 8
%86 = load double, ptr %85, align 8
%87 = fmul double %86, 5.000000e-01
store double %87, ptr @cumfnc.T3, align 8
%88 = call i32 @bratio(ptr noundef @cumfnc.T2, ptr noundef @cumfnc.T3, ptr noundef @cumfnc.xx, ptr noundef @cumfnc.yy, ptr noundef @cumfnc.betdn, ptr noundef @cumfnc.dummy, ptr noundef @cumfnc.ierr)
%89 = load ptr, ptr %8, align 8
%90 = load double, ptr %89, align 8
%91 = fdiv double %90, 2.000000e+00
%92 = load i32, ptr @cumfnc.icent, align 4
%93 = sitofp i32 %92 to double
%94 = fadd double %91, %93
store double %94, ptr @cumfnc.adn, align 8
%95 = load double, ptr @cumfnc.adn, align 8
store double %95, ptr @cumfnc.aup, align 8
%96 = load ptr, ptr %9, align 8
%97 = load double, ptr %96, align 8
%98 = fdiv double %97, 2.000000e+00
store double %98, ptr @cumfnc.b, align 8
%99 = load double, ptr @cumfnc.betdn, align 8
store double %99, ptr @cumfnc.betup, align 8
%100 = load double, ptr @cumfnc.centwt, align 8
%101 = load double, ptr @cumfnc.betdn, align 8
%102 = fmul double %100, %101
store double %102, ptr @cumfnc.sum, align 8
%103 = load double, ptr @cumfnc.centwt, align 8
store double %103, ptr @cumfnc.xmult, align 8
%104 = load i32, ptr @cumfnc.icent, align 4
store i32 %104, ptr @cumfnc.i, align 4
%105 = load double, ptr @cumfnc.adn, align 8
%106 = load double, ptr @cumfnc.b, align 8
%107 = fadd double %105, %106
store double %107, ptr @cumfnc.T4, align 8
%108 = load double, ptr @cumfnc.adn, align 8
%109 = fadd double %108, 1.000000e+00
store double %109, ptr @cumfnc.T5, align 8
%110 = call double @alngam(ptr noundef @cumfnc.T4)
%111 = call double @alngam(ptr noundef @cumfnc.T5)
%112 = fsub double %110, %111
%113 = call double @alngam(ptr noundef @cumfnc.b)
%114 = fsub double %112, %113
%115 = load double, ptr @cumfnc.adn, align 8
%116 = load double, ptr @cumfnc.xx, align 8
%117 = call double @log(double noundef %116) #4
%118 = call double @llvm.fmuladd.f64(double %115, double %117, double %114)
%119 = load double, ptr @cumfnc.b, align 8
%120 = load double, ptr @cumfnc.yy, align 8
%121 = call double @log(double noundef %120) #4
%122 = call double @llvm.fmuladd.f64(double %119, double %121, double %118)
%123 = call double @exp(double noundef %122) #4
store double %123, ptr @cumfnc.dnterm, align 8
br label %124
124: ; preds = %141, %79
%125 = load double, ptr @cumfnc.sum, align 8
%126 = fcmp olt double %125, 0x3BC79CA10C924223
br i1 %126, label %135, label %127
127: ; preds = %124
%128 = load double, ptr @cumfnc.xmult, align 8
%129 = load double, ptr @cumfnc.betdn, align 8
%130 = fmul double %128, %129
%131 = load double, ptr @cumfnc.eps, align 8
%132 = load double, ptr @cumfnc.sum, align 8
%133 = fmul double %131, %132
%134 = fcmp olt double %130, %133
br label %135
135: ; preds = %127, %124
%136 = phi i1 [ true, %124 ], [ %134, %127 ]
br i1 %136, label %140, label %137
137: ; preds = %135
%138 = load i32, ptr @cumfnc.i, align 4
%139 = icmp sle i32 %138, 0
br i1 %139, label %140, label %141
140: ; preds = %137, %135
br label %169
141: ; preds = %137
%142 = load i32, ptr @cumfnc.i, align 4
%143 = sitofp i32 %142 to double
%144 = load double, ptr @cumfnc.xnonc, align 8
%145 = fdiv double %143, %144
%146 = load double, ptr @cumfnc.xmult, align 8
%147 = fmul double %146, %145
store double %147, ptr @cumfnc.xmult, align 8
%148 = load i32, ptr @cumfnc.i, align 4
%149 = sub nsw i32 %148, 1
store i32 %149, ptr @cumfnc.i, align 4
%150 = load double, ptr @cumfnc.adn, align 8
%151 = fsub double %150, 1.000000e+00
store double %151, ptr @cumfnc.adn, align 8
%152 = load double, ptr @cumfnc.adn, align 8
%153 = fadd double %152, 1.000000e+00
%154 = load double, ptr @cumfnc.adn, align 8
%155 = load double, ptr @cumfnc.b, align 8
%156 = fadd double %154, %155
%157 = load double, ptr @cumfnc.xx, align 8
%158 = fmul double %156, %157
%159 = fdiv double %153, %158
%160 = load double, ptr @cumfnc.dnterm, align 8
%161 = fmul double %159, %160
store double %161, ptr @cumfnc.dnterm, align 8
%162 = load double, ptr @cumfnc.dnterm, align 8
%163 = load double, ptr @cumfnc.betdn, align 8
%164 = fadd double %163, %162
store double %164, ptr @cumfnc.betdn, align 8
%165 = load double, ptr @cumfnc.xmult, align 8
%166 = load double, ptr @cumfnc.betdn, align 8
%167 = load double, ptr @cumfnc.sum, align 8
%168 = call double @llvm.fmuladd.f64(double %165, double %166, double %167)
store double %168, ptr @cumfnc.sum, align 8
br label %124
169: ; preds = %140
%170 = load i32, ptr @cumfnc.icent, align 4
%171 = add nsw i32 %170, 1
store i32 %171, ptr @cumfnc.i, align 4
%172 = load double, ptr @cumfnc.centwt, align 8
store double %172, ptr @cumfnc.xmult, align 8
%173 = load double, ptr @cumfnc.aup, align 8
%174 = fsub double %173, 1.000000e+00
%175 = load double, ptr @cumfnc.b, align 8
%176 = fadd double %174, %175
%177 = fcmp oeq double %176, 0.000000e+00
br i1 %177, label %178, label %193
178: ; preds = %169
%179 = call double @alngam(ptr noundef @cumfnc.aup)
%180 = fneg double %179
%181 = call double @alngam(ptr noundef @cumfnc.b)
%182 = fsub double %180, %181
%183 = load double, ptr @cumfnc.aup, align 8
%184 = fsub double %183, 1.000000e+00
%185 = load double, ptr @cumfnc.xx, align 8
%186 = call double @log(double noundef %185) #4
%187 = call double @llvm.fmuladd.f64(double %184, double %186, double %182)
%188 = load double, ptr @cumfnc.b, align 8
%189 = load double, ptr @cumfnc.yy, align 8
%190 = call double @log(double noundef %189) #4
%191 = call double @llvm.fmuladd.f64(double %188, double %190, double %187)
%192 = call double @exp(double noundef %191) #4
store double %192, ptr @cumfnc.upterm, align 8
br label %213
193: ; preds = %169
%194 = load double, ptr @cumfnc.aup, align 8
%195 = fsub double %194, 1.000000e+00
%196 = load double, ptr @cumfnc.b, align 8
%197 = fadd double %195, %196
store double %197, ptr @cumfnc.T6, align 8
%198 = call double @alngam(ptr noundef @cumfnc.T6)
%199 = call double @alngam(ptr noundef @cumfnc.aup)
%200 = fsub double %198, %199
%201 = call double @alngam(ptr noundef @cumfnc.b)
%202 = fsub double %200, %201
%203 = load double, ptr @cumfnc.aup, align 8
%204 = fsub double %203, 1.000000e+00
%205 = load double, ptr @cumfnc.xx, align 8
%206 = call double @log(double noundef %205) #4
%207 = call double @llvm.fmuladd.f64(double %204, double %206, double %202)
%208 = load double, ptr @cumfnc.b, align 8
%209 = load double, ptr @cumfnc.yy, align 8
%210 = call double @log(double noundef %209) #4
%211 = call double @llvm.fmuladd.f64(double %208, double %210, double %207)
%212 = call double @exp(double noundef %211) #4
store double %212, ptr @cumfnc.upterm, align 8
br label %213
213: ; preds = %193, %178
br label %229
214: ; preds = %229
%215 = load double, ptr @cumfnc.sum, align 8
%216 = fcmp olt double %215, 0x3BC79CA10C924223
br i1 %216, label %225, label %217
217: ; preds = %214
%218 = load double, ptr @cumfnc.xmult, align 8
%219 = load double, ptr @cumfnc.betup, align 8
%220 = fmul double %218, %219
%221 = load double, ptr @cumfnc.eps, align 8
%222 = load double, ptr @cumfnc.sum, align 8
%223 = fmul double %221, %222
%224 = fcmp olt double %220, %223
br label %225
225: ; preds = %217, %214
%226 = phi i1 [ true, %214 ], [ %224, %217 ]
br i1 %226, label %227, label %228
227: ; preds = %225
br label %258
228: ; preds = %225
br label %229
229: ; preds = %228, %213
%230 = load double, ptr @cumfnc.xnonc, align 8
%231 = load i32, ptr @cumfnc.i, align 4
%232 = sitofp i32 %231 to double
%233 = fdiv double %230, %232
%234 = load double, ptr @cumfnc.xmult, align 8
%235 = fmul double %234, %233
store double %235, ptr @cumfnc.xmult, align 8
%236 = load i32, ptr @cumfnc.i, align 4
%237 = add nsw i32 %236, 1
store i32 %237, ptr @cumfnc.i, align 4
%238 = load double, ptr @cumfnc.aup, align 8
%239 = fadd double %238, 1.000000e+00
store double %239, ptr @cumfnc.aup, align 8
%240 = load double, ptr @cumfnc.aup, align 8
%241 = load double, ptr @cumfnc.b, align 8
%242 = fadd double %240, %241
%243 = fsub double %242, 2.000000e+00
%244 = load double, ptr @cumfnc.xx, align 8
%245 = fmul double %243, %244
%246 = load double, ptr @cumfnc.aup, align 8
%247 = fsub double %246, 1.000000e+00
%248 = fdiv double %245, %247
%249 = load double, ptr @cumfnc.upterm, align 8
%250 = fmul double %248, %249
store double %250, ptr @cumfnc.upterm, align 8
%251 = load double, ptr @cumfnc.upterm, align 8
%252 = load double, ptr @cumfnc.betup, align 8
%253 = fsub double %252, %251
store double %253, ptr @cumfnc.betup, align 8
%254 = load double, ptr @cumfnc.xmult, align 8
%255 = load double, ptr @cumfnc.betup, align 8
%256 = load double, ptr @cumfnc.sum, align 8
%257 = call double @llvm.fmuladd.f64(double %254, double %255, double %256)
store double %257, ptr @cumfnc.sum, align 8
br label %214
258: ; preds = %227
%259 = load double, ptr @cumfnc.sum, align 8
%260 = load ptr, ptr %11, align 8
store double %259, ptr %260, align 8
%261 = load ptr, ptr %11, align 8
%262 = load double, ptr %261, align 8
%263 = fsub double 5.000000e-01, %262
%264 = fadd double 5.000000e-01, %263
%265 = load ptr, ptr %12, align 8
store double %264, ptr %265, align 8
br label %266
266: ; preds = %258, %25, %17
ret void
}
declare i32 @cumf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: nounwind
declare double @exp(double noundef) #2
; 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 @alngam(ptr noundef) #1
declare i32 @bratio(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpft4xquif.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@cumfnc.eps = internal global double 1.000000e-04, align 8
@cumfnc.dsum = internal global double 0.000000e+00, align 8
@cumfnc.dummy = internal global double 0.000000e+00, align 8
@cumfnc.prod = internal global double 0.000000e+00, align 8
@cumfnc.xx = internal global double 0.000000e+00, align 8
@cumfnc.yy = internal global double 0.000000e+00, align 8
@cumfnc.adn = internal global double 0.000000e+00, align 8
@cumfnc.aup = internal global double 0.000000e+00, align 8
@cumfnc.b = internal global double 0.000000e+00, align 8
@cumfnc.betdn = internal global double 0.000000e+00, align 8
@cumfnc.betup = internal global double 0.000000e+00, align 8
@cumfnc.centwt = internal global double 0.000000e+00, align 8
@cumfnc.dnterm = internal global double 0.000000e+00, align 8
@cumfnc.sum = internal global double 0.000000e+00, align 8
@cumfnc.upterm = internal global double 0.000000e+00, align 8
@cumfnc.xmult = internal global double 0.000000e+00, align 8
@cumfnc.xnonc = internal global double 0.000000e+00, align 8
@cumfnc.i = internal global i32 0, align 4
@cumfnc.icent = internal global i32 0, align 4
@cumfnc.ierr = internal global i32 0, align 4
@cumfnc.T1 = internal global double 0.000000e+00, align 8
@cumfnc.T2 = internal global double 0.000000e+00, align 8
@cumfnc.T3 = internal global double 0.000000e+00, align 8
@cumfnc.T4 = internal global double 0.000000e+00, align 8
@cumfnc.T5 = internal global double 0.000000e+00, align 8
@cumfnc.T6 = internal global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cumfnc(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%13 = load ptr, ptr %7, align 8
%14 = load double, ptr %13, align 8
%15 = fcmp ole double %14, 0.000000e+00
br i1 %15, label %17, label %16
16: ; preds = %6
br label %20
17: ; preds = %6
%18 = load ptr, ptr %11, align 8
store double 0.000000e+00, ptr %18, align 8
%19 = load ptr, ptr %12, align 8
store double 1.000000e+00, ptr %19, align 8
br label %265
20: ; preds = %16
%21 = load ptr, ptr %10, align 8
%22 = load double, ptr %21, align 8
%23 = fcmp olt double %22, 1.000000e-10
br i1 %23, label %25, label %24
24: ; preds = %20
br label %32
25: ; preds = %20
%26 = load ptr, ptr %7, align 8
%27 = load ptr, ptr %8, align 8
%28 = load ptr, ptr %9, align 8
%29 = load ptr, ptr %11, align 8
%30 = load ptr, ptr %12, align 8
%31 = call i32 @cumf(ptr noundef %26, ptr noundef %27, ptr noundef %28, ptr noundef %29, ptr noundef %30)
br label %265
32: ; preds = %24
%33 = load ptr, ptr %10, align 8
%34 = load double, ptr %33, align 8
%35 = fdiv double %34, 2.000000e+00
store double %35, ptr @cumfnc.xnonc, align 8
%36 = load double, ptr @cumfnc.xnonc, align 8
%37 = fptosi double %36 to i32
store i32 %37, ptr @cumfnc.icent, align 4
%38 = load i32, ptr @cumfnc.icent, align 4
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %41
40: ; preds = %32
store i32 1, ptr @cumfnc.icent, align 4
br label %41
41: ; preds = %40, %32
%42 = load i32, ptr @cumfnc.icent, align 4
%43 = add nsw i32 %42, 1
%44 = sitofp i32 %43 to double
store double %44, ptr @cumfnc.T1, align 8
%45 = load double, ptr @cumfnc.xnonc, align 8
%46 = fneg double %45
%47 = load i32, ptr @cumfnc.icent, align 4
%48 = sitofp i32 %47 to double
%49 = load double, ptr @cumfnc.xnonc, align 8
%50 = call double @log(double noundef %49) #4
%51 = call double @llvm.fmuladd.f64(double %48, double %50, double %46)
%52 = call double @alngam(ptr noundef @cumfnc.T1)
%53 = fsub double %51, %52
%54 = call double @exp(double noundef %53) #4
store double %54, ptr @cumfnc.centwt, align 8
%55 = load ptr, ptr %8, align 8
%56 = load double, ptr %55, align 8
%57 = load ptr, ptr %7, align 8
%58 = load double, ptr %57, align 8
%59 = fmul double %56, %58
store double %59, ptr @cumfnc.prod, align 8
%60 = load ptr, ptr %9, align 8
%61 = load double, ptr %60, align 8
%62 = load double, ptr @cumfnc.prod, align 8
%63 = fadd double %61, %62
store double %63, ptr @cumfnc.dsum, align 8
%64 = load ptr, ptr %9, align 8
%65 = load double, ptr %64, align 8
%66 = load double, ptr @cumfnc.dsum, align 8
%67 = fdiv double %65, %66
store double %67, ptr @cumfnc.yy, align 8
%68 = load double, ptr @cumfnc.yy, align 8
%69 = fcmp ogt double %68, 5.000000e-01
br i1 %69, label %70, label %76
70: ; preds = %41
%71 = load double, ptr @cumfnc.prod, align 8
%72 = load double, ptr @cumfnc.dsum, align 8
%73 = fdiv double %71, %72
store double %73, ptr @cumfnc.xx, align 8
%74 = load double, ptr @cumfnc.xx, align 8
%75 = fsub double 1.000000e+00, %74
store double %75, ptr @cumfnc.yy, align 8
br label %79
76: ; preds = %41
%77 = load double, ptr @cumfnc.yy, align 8
%78 = fsub double 1.000000e+00, %77
store double %78, ptr @cumfnc.xx, align 8
br label %79
79: ; preds = %76, %70
%80 = load ptr, ptr %8, align 8
%81 = load double, ptr %80, align 8
%82 = load i32, ptr @cumfnc.icent, align 4
%83 = sitofp i32 %82 to double
%84 = call double @llvm.fmuladd.f64(double %81, double 5.000000e-01, double %83)
store double %84, ptr @cumfnc.T2, align 8
%85 = load ptr, ptr %9, align 8
%86 = load double, ptr %85, align 8
%87 = fmul double %86, 5.000000e-01
store double %87, ptr @cumfnc.T3, align 8
%88 = call i32 @bratio(ptr noundef @cumfnc.T2, ptr noundef @cumfnc.T3, ptr noundef @cumfnc.xx, ptr noundef @cumfnc.yy, ptr noundef @cumfnc.betdn, ptr noundef @cumfnc.dummy, ptr noundef @cumfnc.ierr)
%89 = load ptr, ptr %8, align 8
%90 = load double, ptr %89, align 8
%91 = fdiv double %90, 2.000000e+00
%92 = load i32, ptr @cumfnc.icent, align 4
%93 = sitofp i32 %92 to double
%94 = fadd double %91, %93
store double %94, ptr @cumfnc.adn, align 8
%95 = load double, ptr @cumfnc.adn, align 8
store double %95, ptr @cumfnc.aup, align 8
%96 = load ptr, ptr %9, align 8
%97 = load double, ptr %96, align 8
%98 = fdiv double %97, 2.000000e+00
store double %98, ptr @cumfnc.b, align 8
%99 = load double, ptr @cumfnc.betdn, align 8
store double %99, ptr @cumfnc.betup, align 8
%100 = load double, ptr @cumfnc.centwt, align 8
%101 = load double, ptr @cumfnc.betdn, align 8
%102 = fmul double %100, %101
store double %102, ptr @cumfnc.sum, align 8
%103 = load double, ptr @cumfnc.centwt, align 8
store double %103, ptr @cumfnc.xmult, align 8
%104 = load i32, ptr @cumfnc.icent, align 4
store i32 %104, ptr @cumfnc.i, align 4
%105 = load double, ptr @cumfnc.adn, align 8
%106 = load double, ptr @cumfnc.b, align 8
%107 = fadd double %105, %106
store double %107, ptr @cumfnc.T4, align 8
%108 = load double, ptr @cumfnc.adn, align 8
%109 = fadd double %108, 1.000000e+00
store double %109, ptr @cumfnc.T5, align 8
%110 = call double @alngam(ptr noundef @cumfnc.T4)
%111 = call double @alngam(ptr noundef @cumfnc.T5)
%112 = fsub double %110, %111
%113 = call double @alngam(ptr noundef @cumfnc.b)
%114 = fsub double %112, %113
%115 = load double, ptr @cumfnc.adn, align 8
%116 = load double, ptr @cumfnc.xx, align 8
%117 = call double @log(double noundef %116) #4
%118 = call double @llvm.fmuladd.f64(double %115, double %117, double %114)
%119 = load double, ptr @cumfnc.b, align 8
%120 = load double, ptr @cumfnc.yy, align 8
%121 = call double @log(double noundef %120) #4
%122 = call double @llvm.fmuladd.f64(double %119, double %121, double %118)
%123 = call double @exp(double noundef %122) #4
store double %123, ptr @cumfnc.dnterm, align 8
br label %124
124: ; preds = %141, %79
%125 = load double, ptr @cumfnc.sum, align 8
%126 = fcmp olt double %125, 0x3BC79CA10C924223
br i1 %126, label %135, label %127
127: ; preds = %124
%128 = load double, ptr @cumfnc.xmult, align 8
%129 = load double, ptr @cumfnc.betdn, align 8
%130 = fmul double %128, %129
%131 = load double, ptr @cumfnc.eps, align 8
%132 = load double, ptr @cumfnc.sum, align 8
%133 = fmul double %131, %132
%134 = fcmp olt double %130, %133
br label %135
135: ; preds = %127, %124
%136 = phi i1 [ true, %124 ], [ %134, %127 ]
br i1 %136, label %140, label %137
137: ; preds = %135
%138 = load i32, ptr @cumfnc.i, align 4
%139 = icmp sle i32 %138, 0
br i1 %139, label %140, label %141
140: ; preds = %137, %135
br label %169
141: ; preds = %137
%142 = load i32, ptr @cumfnc.i, align 4
%143 = sitofp i32 %142 to double
%144 = load double, ptr @cumfnc.xnonc, align 8
%145 = fdiv double %143, %144
%146 = load double, ptr @cumfnc.xmult, align 8
%147 = fmul double %146, %145
store double %147, ptr @cumfnc.xmult, align 8
%148 = load i32, ptr @cumfnc.i, align 4
%149 = sub nsw i32 %148, 1
store i32 %149, ptr @cumfnc.i, align 4
%150 = load double, ptr @cumfnc.adn, align 8
%151 = fsub double %150, 1.000000e+00
store double %151, ptr @cumfnc.adn, align 8
%152 = load double, ptr @cumfnc.adn, align 8
%153 = fadd double %152, 1.000000e+00
%154 = load double, ptr @cumfnc.adn, align 8
%155 = load double, ptr @cumfnc.b, align 8
%156 = fadd double %154, %155
%157 = load double, ptr @cumfnc.xx, align 8
%158 = fmul double %156, %157
%159 = fdiv double %153, %158
%160 = load double, ptr @cumfnc.dnterm, align 8
%161 = fmul double %159, %160
store double %161, ptr @cumfnc.dnterm, align 8
%162 = load double, ptr @cumfnc.dnterm, align 8
%163 = load double, ptr @cumfnc.betdn, align 8
%164 = fadd double %163, %162
store double %164, ptr @cumfnc.betdn, align 8
%165 = load double, ptr @cumfnc.xmult, align 8
%166 = load double, ptr @cumfnc.betdn, align 8
%167 = load double, ptr @cumfnc.sum, align 8
%168 = call double @llvm.fmuladd.f64(double %165, double %166, double %167)
store double %168, ptr @cumfnc.sum, align 8
br label %124
169: ; preds = %140
%170 = load i32, ptr @cumfnc.icent, align 4
%171 = add nsw i32 %170, 1
store i32 %171, ptr @cumfnc.i, align 4
%172 = load double, ptr @cumfnc.centwt, align 8
store double %172, ptr @cumfnc.xmult, align 8
%173 = load double, ptr @cumfnc.aup, align 8
%174 = fsub double %173, 1.000000e+00
%175 = load double, ptr @cumfnc.b, align 8
%176 = fadd double %174, %175
%177 = fcmp oeq double %176, 0.000000e+00
br i1 %177, label %178, label %193
178: ; preds = %169
%179 = call double @alngam(ptr noundef @cumfnc.aup)
%180 = fneg double %179
%181 = call double @alngam(ptr noundef @cumfnc.b)
%182 = fsub double %180, %181
%183 = load double, ptr @cumfnc.aup, align 8
%184 = fsub double %183, 1.000000e+00
%185 = load double, ptr @cumfnc.xx, align 8
%186 = call double @log(double noundef %185) #4
%187 = call double @llvm.fmuladd.f64(double %184, double %186, double %182)
%188 = load double, ptr @cumfnc.b, align 8
%189 = load double, ptr @cumfnc.yy, align 8
%190 = call double @log(double noundef %189) #4
%191 = call double @llvm.fmuladd.f64(double %188, double %190, double %187)
%192 = call double @exp(double noundef %191) #4
store double %192, ptr @cumfnc.upterm, align 8
br label %213
193: ; preds = %169
%194 = load double, ptr @cumfnc.aup, align 8
%195 = fsub double %194, 1.000000e+00
%196 = load double, ptr @cumfnc.b, align 8
%197 = fadd double %195, %196
store double %197, ptr @cumfnc.T6, align 8
%198 = call double @alngam(ptr noundef @cumfnc.T6)
%199 = call double @alngam(ptr noundef @cumfnc.aup)
%200 = fsub double %198, %199
%201 = call double @alngam(ptr noundef @cumfnc.b)
%202 = fsub double %200, %201
%203 = load double, ptr @cumfnc.aup, align 8
%204 = fsub double %203, 1.000000e+00
%205 = load double, ptr @cumfnc.xx, align 8
%206 = call double @log(double noundef %205) #4
%207 = call double @llvm.fmuladd.f64(double %204, double %206, double %202)
%208 = load double, ptr @cumfnc.b, align 8
%209 = load double, ptr @cumfnc.yy, align 8
%210 = call double @log(double noundef %209) #4
%211 = call double @llvm.fmuladd.f64(double %208, double %210, double %207)
%212 = call double @exp(double noundef %211) #4
store double %212, ptr @cumfnc.upterm, align 8
br label %213
213: ; preds = %193, %178
br label %228
214: ; preds = %228
%215 = load double, ptr @cumfnc.sum, align 8
%216 = fcmp olt double %215, 0x3BC79CA10C924223
br i1 %216, label %225, label %217
217: ; preds = %214
%218 = load double, ptr @cumfnc.xmult, align 8
%219 = load double, ptr @cumfnc.betup, align 8
%220 = fmul double %218, %219
%221 = load double, ptr @cumfnc.eps, align 8
%222 = load double, ptr @cumfnc.sum, align 8
%223 = fmul double %221, %222
%224 = fcmp olt double %220, %223
br label %225
225: ; preds = %217, %214
%226 = phi i1 [ true, %214 ], [ %224, %217 ]
br i1 %226, label %227, label %228
227: ; preds = %225
br label %257
228: ; preds = %225, %213
%229 = load double, ptr @cumfnc.xnonc, align 8
%230 = load i32, ptr @cumfnc.i, align 4
%231 = sitofp i32 %230 to double
%232 = fdiv double %229, %231
%233 = load double, ptr @cumfnc.xmult, align 8
%234 = fmul double %233, %232
store double %234, ptr @cumfnc.xmult, align 8
%235 = load i32, ptr @cumfnc.i, align 4
%236 = add nsw i32 %235, 1
store i32 %236, ptr @cumfnc.i, align 4
%237 = load double, ptr @cumfnc.aup, align 8
%238 = fadd double %237, 1.000000e+00
store double %238, ptr @cumfnc.aup, align 8
%239 = load double, ptr @cumfnc.aup, align 8
%240 = load double, ptr @cumfnc.b, align 8
%241 = fadd double %239, %240
%242 = fsub double %241, 2.000000e+00
%243 = load double, ptr @cumfnc.xx, align 8
%244 = fmul double %242, %243
%245 = load double, ptr @cumfnc.aup, align 8
%246 = fsub double %245, 1.000000e+00
%247 = fdiv double %244, %246
%248 = load double, ptr @cumfnc.upterm, align 8
%249 = fmul double %247, %248
store double %249, ptr @cumfnc.upterm, align 8
%250 = load double, ptr @cumfnc.upterm, align 8
%251 = load double, ptr @cumfnc.betup, align 8
%252 = fsub double %251, %250
store double %252, ptr @cumfnc.betup, align 8
%253 = load double, ptr @cumfnc.xmult, align 8
%254 = load double, ptr @cumfnc.betup, align 8
%255 = load double, ptr @cumfnc.sum, align 8
%256 = call double @llvm.fmuladd.f64(double %253, double %254, double %255)
store double %256, ptr @cumfnc.sum, align 8
br label %214
257: ; preds = %227
%258 = load double, ptr @cumfnc.sum, align 8
%259 = load ptr, ptr %11, align 8
store double %258, ptr %259, align 8
%260 = load ptr, ptr %11, align 8
%261 = load double, ptr %260, align 8
%262 = fsub double 5.000000e-01, %261
%263 = fadd double 5.000000e-01, %262
%264 = load ptr, ptr %12, align 8
store double %263, ptr %264, align 8
br label %265
265: ; preds = %257, %25, %17
ret void
}
declare i32 @cumf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: nounwind
declare double @exp(double noundef) #2
; 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 @alngam(ptr noundef) #1
declare i32 @bratio(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpo9chzk_h.c'
source_filename = "/tmp/tmpo9chzk_h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"Yo!\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 @printf(ptr noundef @.str)
%3 = call i32 (...) @thingo()
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @thingo(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo9chzk_h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"Yo!\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 @printf(ptr noundef @.str)
%3 = call i32 (...) @thingo()
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @thingo(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcdf4f52l.c'
source_filename = "/tmp/tmpcdf4f52l.c"
target datalayout = "e-m:e-p270: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/tmpcdf4f52l.c"
target datalayout = "e-m:e-p270: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/tmp0_pn5wnn.c'
source_filename = "/tmp/tmp0_pn5wnn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%u\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 [1 x i16], align 2
%7 = alloca [1 x i16], align 2
%8 = alloca i32, align 4
%9 = alloca i16, align 2
%10 = 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
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
br label %19
19: ; preds = %22, %18
%20 = load i32, ptr %8, align 4
%21 = icmp slt i32 %20, 1
br i1 %21, label %22, label %37
22: ; preds = %19
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %23, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = call i64 @strtoul(ptr noundef %28, i32 noundef 0, i32 noundef 10)
%30 = trunc i64 %29 to i16
store i16 %30, ptr %9, align 2
%31 = load i16, ptr %9, align 2
%32 = load i32, ptr %8, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [1 x i16], ptr %6, i64 0, i64 %33
store i16 %31, ptr %34, align 2
%35 = load i32, ptr %8, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %8, align 4
br label %19, !llvm.loop !6
37: ; preds = %19
%38 = getelementptr inbounds [1 x i16], ptr %6, i64 0, i64 0
%39 = getelementptr inbounds [1 x i16], ptr %7, i64 0, i64 0
%40 = call i32 @RandomFunc(ptr noundef %38, ptr noundef %39)
%41 = getelementptr inbounds [1 x i16], ptr %7, i64 0, i64 0
%42 = load i16, ptr %41, align 2
%43 = zext i16 %42 to i32
%44 = icmp eq i32 %43, 16267
br i1 %44, label %45, label %47
45: ; preds = %37
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %48
47: ; preds = %37
br label %48
48: ; preds = %47, %45
store i32 0, ptr %10, align 4
br label %49
49: ; preds = %52, %48
%50 = load i32, ptr %10, align 4
%51 = icmp slt i32 %50, 1
br i1 %51, label %52, label %61
52: ; preds = %49
%53 = load i32, ptr %10, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [1 x i16], ptr %7, i64 0, i64 %54
%56 = load i16, ptr %55, align 2
%57 = zext i16 %56 to i32
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %57)
%59 = load i32, ptr %10, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %10, align 4
br label %49, !llvm.loop !8
61: ; preds = %49
%62 = load i32, ptr %3, align 4
ret i32 %62
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0_pn5wnn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%u\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 [1 x i16], align 2
%7 = alloca [1 x i16], align 2
%8 = alloca i32, align 4
%9 = alloca i16, align 2
%10 = 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
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp slt i32 %19, 1
br i1 %20, label %.lr.ph, label %38
.lr.ph: ; preds = %18
br label %21
21: ; preds = %.lr.ph, %21
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %22, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = call i64 @strtoul(ptr noundef %27, i32 noundef 0, i32 noundef 10)
%29 = trunc i64 %28 to i16
store i16 %29, ptr %9, align 2
%30 = load i16, ptr %9, align 2
%31 = load i32, ptr %8, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [1 x i16], ptr %6, i64 0, i64 %32
store i16 %30, ptr %33, align 2
%34 = load i32, ptr %8, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %8, align 4
%36 = load i32, ptr %8, align 4
%37 = icmp slt i32 %36, 1
br i1 %37, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %38
38: ; preds = %._crit_edge, %18
%39 = getelementptr inbounds [1 x i16], ptr %6, i64 0, i64 0
%40 = getelementptr inbounds [1 x i16], ptr %7, i64 0, i64 0
%41 = call i32 @RandomFunc(ptr noundef %39, ptr noundef %40)
%42 = getelementptr inbounds [1 x i16], ptr %7, i64 0, i64 0
%43 = load i16, ptr %42, align 2
%44 = zext i16 %43 to i32
%45 = icmp eq i32 %44, 16267
br i1 %45, label %46, label %48
46: ; preds = %38
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %49
48: ; preds = %38
br label %49
49: ; preds = %48, %46
store i32 0, ptr %10, align 4
%50 = load i32, ptr %10, align 4
%51 = icmp slt i32 %50, 1
br i1 %51, label %.lr.ph2, label %63
.lr.ph2: ; preds = %49
br label %52
52: ; preds = %.lr.ph2, %52
%53 = load i32, ptr %10, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [1 x i16], ptr %7, i64 0, i64 %54
%56 = load i16, ptr %55, align 2
%57 = zext i16 %56 to i32
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %57)
%59 = load i32, ptr %10, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %10, align 4
%61 = load i32, ptr %10, align 4
%62 = icmp slt i32 %61, 1
br i1 %62, label %52, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %52
br label %63
63: ; preds = %._crit_edge3, %49
%64 = load i32, ptr %3, align 4
ret i32 %64
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpkk2uubh_.c'
source_filename = "/tmp/tmpkk2uubh_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @log_backtrace(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [4000 x ptr], align 16
%4 = alloca i64, align 8
store ptr %0, ptr %2, align 8
%5 = getelementptr inbounds [4000 x ptr], ptr %3, i64 0, i64 0
%6 = call i64 @backtrace(ptr noundef %5, i32 noundef 4000)
store i64 %6, ptr %4, align 8
%7 = getelementptr inbounds [4000 x ptr], ptr %3, i64 0, i64 0
%8 = load i64, ptr %4, align 8
%9 = load ptr, ptr %2, align 8
%10 = call i32 @fileno(ptr noundef %9)
%11 = call i32 @backtrace_symbols_fd(ptr noundef %7, i64 noundef %8, i32 noundef %10)
ret void
}
declare i64 @backtrace(ptr noundef, i32 noundef) #1
declare i32 @backtrace_symbols_fd(ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @fileno(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkk2uubh_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @log_backtrace(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [4000 x ptr], align 16
%4 = alloca i64, align 8
store ptr %0, ptr %2, align 8
%5 = getelementptr inbounds [4000 x ptr], ptr %3, i64 0, i64 0
%6 = call i64 @backtrace(ptr noundef %5, i32 noundef 4000)
store i64 %6, ptr %4, align 8
%7 = getelementptr inbounds [4000 x ptr], ptr %3, i64 0, i64 0
%8 = load i64, ptr %4, align 8
%9 = load ptr, ptr %2, align 8
%10 = call i32 @fileno(ptr noundef %9)
%11 = call i32 @backtrace_symbols_fd(ptr noundef %7, i64 noundef %8, i32 noundef %10)
ret void
}
declare i64 @backtrace(ptr noundef, i32 noundef) #1
declare i32 @backtrace_symbols_fd(ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @fileno(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpck1_2qma.c'
source_filename = "/tmp/tmpck1_2qma.c"
target datalayout = "e-m:e-p270: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/tmpck1_2qma.c"
target datalayout = "e-m:e-p270: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/tmpiere_zo_.c'
source_filename = "/tmp/tmpiere_zo_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"Diameter of circle: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"Angle measure: \00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"Angle is not possible\0A\00", align 1
@M_PI = dso_local global float 0.000000e+00, align 4
@.str.4 = private unnamed_addr constant [18 x i8] c"length of arc: %f\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @arc_length() #0 {
%1 = alloca float, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %1)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%8 = load float, ptr %2, align 4
%9 = fcmp ogt float %8, 3.600000e+02
br i1 %9, label %13, label %10
10: ; preds = %0
%11 = load float, ptr %2, align 4
%12 = fcmp olt float %11, 0.000000e+00
br i1 %12, label %13, label %15
13: ; preds = %10, %0
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %26
15: ; preds = %10
%16 = load float, ptr @M_PI, align 4
%17 = load float, ptr %1, align 4
%18 = fmul float %16, %17
%19 = load float, ptr %2, align 4
%20 = fdiv float %19, 3.600000e+02
%21 = fmul float %18, %20
store float %21, ptr %3, align 4
%22 = load float, ptr %3, align 4
%23 = fpext float %22 to double
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %23)
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %26
26: ; preds = %15, %13
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpiere_zo_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"Diameter of circle: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"Angle measure: \00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"Angle is not possible\0A\00", align 1
@M_PI = dso_local global float 0.000000e+00, align 4
@.str.4 = private unnamed_addr constant [18 x i8] c"length of arc: %f\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @arc_length() #0 {
%1 = alloca float, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %1)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%8 = load float, ptr %2, align 4
%9 = fcmp ogt float %8, 3.600000e+02
br i1 %9, label %13, label %10
10: ; preds = %0
%11 = load float, ptr %2, align 4
%12 = fcmp olt float %11, 0.000000e+00
br i1 %12, label %13, label %15
13: ; preds = %10, %0
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %26
15: ; preds = %10
%16 = load float, ptr @M_PI, align 4
%17 = load float, ptr %1, align 4
%18 = fmul float %16, %17
%19 = load float, ptr %2, align 4
%20 = fdiv float %19, 3.600000e+02
%21 = fmul float %18, %20
store float %21, ptr %3, align 4
%22 = load float, ptr %3, align 4
%23 = fpext float %22 to double
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %23)
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %26
26: ; preds = %15, %13
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpi7my10ep.c'
source_filename = "/tmp/tmpi7my10ep.c"
target datalayout = "e-m:e-p270: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/tmpi7my10ep.c"
target datalayout = "e-m:e-p270: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/tmp3aamd2pk.c'
source_filename = "/tmp/tmp3aamd2pk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@setant.g = internal global i64 0, align 8
@setant.qrgnin = internal global i64 0, align 8
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [69 x i8] c" SETANT called before random number generator initialized -- abort!\00", align 1
@Xqanti = external global [0 x i64], align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @setant(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
call void @gsrgs(i64 noundef 0, ptr noundef @setant.qrgnin)
%3 = load i64, ptr @setant.qrgnin, align 8
%4 = icmp ne i64 %3, 0
br i1 %4, label %5, label %6
5: ; preds = %1
br label %10
6: ; preds = %1
%7 = load i32, ptr @stderr, align 4
%8 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str, ptr noundef @.str.1)
%9 = call i32 @exit(i32 noundef 1) #3
unreachable
10: ; preds = %5
call void @gscgn(i64 noundef 0, ptr noundef @setant.g)
%11 = load i64, ptr %2, align 8
%12 = load i64, ptr @setant.g, align 8
%13 = sub nsw i64 %12, 1
%14 = getelementptr inbounds [0 x i64], ptr @Xqanti, i64 0, i64 %13
store i64 %11, ptr %14, align 8
ret void
}
declare void @gsrgs(i64 noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare void @gscgn(i64 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3aamd2pk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@setant.g = internal global i64 0, align 8
@setant.qrgnin = internal global i64 0, align 8
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [69 x i8] c" SETANT called before random number generator initialized -- abort!\00", align 1
@Xqanti = external global [0 x i64], align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @setant(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
call void @gsrgs(i64 noundef 0, ptr noundef @setant.qrgnin)
%3 = load i64, ptr @setant.qrgnin, align 8
%4 = icmp ne i64 %3, 0
br i1 %4, label %5, label %6
5: ; preds = %1
br label %10
6: ; preds = %1
%7 = load i32, ptr @stderr, align 4
%8 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str, ptr noundef @.str.1)
%9 = call i32 @exit(i32 noundef 1) #3
unreachable
10: ; preds = %5
call void @gscgn(i64 noundef 0, ptr noundef @setant.g)
%11 = load i64, ptr %2, align 8
%12 = load i64, ptr @setant.g, align 8
%13 = sub nsw i64 %12, 1
%14 = getelementptr inbounds [0 x i64], ptr @Xqanti, i64 0, i64 %13
store i64 %11, ptr %14, align 8
ret void
}
declare void @gsrgs(i64 noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare void @gscgn(i64 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0359r4n3.c'
source_filename = "/tmp/tmp0359r4n3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter string\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call ptr @line_reading(i32 noundef 50)
store ptr %5, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call ptr @remove_repeating_chars(ptr noundef %6)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %8)
%10 = load ptr, ptr %2, align 8
%11 = call i32 @free(ptr noundef %10)
%12 = load ptr, ptr %3, align 8
%13 = call i32 @free(ptr noundef %12)
%14 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %14
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @line_reading(i32 noundef) #1
declare ptr @remove_repeating_chars(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/tmp0359r4n3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter string\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call ptr @line_reading(i32 noundef 50)
store ptr %5, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call ptr @remove_repeating_chars(ptr noundef %6)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %8)
%10 = load ptr, ptr %2, align 8
%11 = call i32 @free(ptr noundef %10)
%12 = load ptr, ptr %3, align 8
%13 = call i32 @free(ptr noundef %12)
%14 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %14
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @line_reading(i32 noundef) #1
declare ptr @remove_repeating_chars(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/tmpxk7a09_f.c'
source_filename = "/tmp/tmpxk7a09_f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [34 x i8] c"[main] Error: client not created.\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [5 x i8] c"\09%s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [9 x i8] c"./client\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"-m\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"-c\00", align 1
@.str.6 = private unnamed_addr constant [76 x i8] c"[client] Error: cannot start client process (Try running main from ./bin).\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @create_client(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [32 x i8], align 16
%7 = alloca [6 x i8], align 1
%8 = alloca i32, align 4
%9 = alloca [1 x ptr], align 8
%10 = alloca [6 x ptr], align 16
%11 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%12 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
%13 = load i32, ptr %4, align 4
%14 = call i32 @sprintf(ptr noundef %12, ptr noundef @.str, i32 noundef %13)
%15 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
%16 = load i32, ptr %5, align 4
%17 = call i32 @sprintf(ptr noundef %15, ptr noundef @.str, i32 noundef %16)
%18 = call i32 (...) @fork()
store i32 %18, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %29
21: ; preds = %2
%22 = call i32 @printf(ptr noundef @.str.1)
%23 = load i32, ptr @stderr, align 4
%24 = load i32, ptr @errno, align 4
%25 = call ptr @strerror(i32 noundef %24)
%26 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %23, ptr noundef @.str.2, ptr noundef %25)
%27 = load i32, ptr @EXIT_FAILURE, align 4
%28 = call i32 @exit(i32 noundef %27) #4
unreachable
29: ; preds = %2
%30 = load i32, ptr %8, align 4
%31 = icmp eq i32 %30, 0
br i1 %31, label %32, label %54
32: ; preds = %29
call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 8, i1 false)
%33 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 0
store ptr @.str.3, ptr %33, align 8
%34 = getelementptr inbounds ptr, ptr %33, i64 1
store ptr @.str.4, ptr %34, align 8
%35 = getelementptr inbounds ptr, ptr %34, i64 1
%36 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
store ptr %36, ptr %35, align 8
%37 = getelementptr inbounds ptr, ptr %35, i64 1
store ptr @.str.5, ptr %37, align 8
%38 = getelementptr inbounds ptr, ptr %37, i64 1
%39 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
store ptr %39, ptr %38, align 8
%40 = getelementptr inbounds ptr, ptr %38, i64 1
store ptr null, ptr %40, align 8
%41 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 0
%42 = getelementptr inbounds [1 x ptr], ptr %9, i64 0, i64 0
%43 = call i32 @execve(ptr noundef @.str.3, ptr noundef %41, ptr noundef %42)
store i32 %43, ptr %11, align 4
%44 = load i32, ptr %11, align 4
%45 = icmp eq i32 %44, -1
br i1 %45, label %46, label %53
46: ; preds = %32
%47 = load i32, ptr @stderr, align 4
%48 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %47, ptr noundef @.str.6)
%49 = load i32, ptr @stderr, align 4
%50 = load i32, ptr @errno, align 4
%51 = call ptr @strerror(i32 noundef %50)
%52 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %49, ptr noundef @.str.2, ptr noundef %51)
br label %53
53: ; preds = %46, %32
br label %56
54: ; preds = %29
%55 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %55, ptr %3, align 4
br label %56
56: ; preds = %54, %53
%57 = load i32, ptr %3, align 4
ret i32 %57
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fork(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare ptr @strerror(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3
declare i32 @execve(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxk7a09_f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [34 x i8] c"[main] Error: client not created.\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [5 x i8] c"\09%s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [9 x i8] c"./client\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"-m\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"-c\00", align 1
@.str.6 = private unnamed_addr constant [76 x i8] c"[client] Error: cannot start client process (Try running main from ./bin).\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @create_client(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [32 x i8], align 16
%7 = alloca [6 x i8], align 1
%8 = alloca i32, align 4
%9 = alloca [1 x ptr], align 8
%10 = alloca [6 x ptr], align 16
%11 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%12 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
%13 = load i32, ptr %4, align 4
%14 = call i32 @sprintf(ptr noundef %12, ptr noundef @.str, i32 noundef %13)
%15 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
%16 = load i32, ptr %5, align 4
%17 = call i32 @sprintf(ptr noundef %15, ptr noundef @.str, i32 noundef %16)
%18 = call i32 (...) @fork()
store i32 %18, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %29
21: ; preds = %2
%22 = call i32 @printf(ptr noundef @.str.1)
%23 = load i32, ptr @stderr, align 4
%24 = load i32, ptr @errno, align 4
%25 = call ptr @strerror(i32 noundef %24)
%26 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %23, ptr noundef @.str.2, ptr noundef %25)
%27 = load i32, ptr @EXIT_FAILURE, align 4
%28 = call i32 @exit(i32 noundef %27) #4
unreachable
29: ; preds = %2
%30 = load i32, ptr %8, align 4
%31 = icmp eq i32 %30, 0
br i1 %31, label %32, label %54
32: ; preds = %29
call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 8, i1 false)
%33 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 0
store ptr @.str.3, ptr %33, align 8
%34 = getelementptr inbounds ptr, ptr %33, i64 1
store ptr @.str.4, ptr %34, align 8
%35 = getelementptr inbounds ptr, ptr %34, i64 1
%36 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
store ptr %36, ptr %35, align 8
%37 = getelementptr inbounds ptr, ptr %35, i64 1
store ptr @.str.5, ptr %37, align 8
%38 = getelementptr inbounds ptr, ptr %37, i64 1
%39 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
store ptr %39, ptr %38, align 8
%40 = getelementptr inbounds ptr, ptr %38, i64 1
store ptr null, ptr %40, align 8
%41 = getelementptr inbounds [6 x ptr], ptr %10, i64 0, i64 0
%42 = getelementptr inbounds [1 x ptr], ptr %9, i64 0, i64 0
%43 = call i32 @execve(ptr noundef @.str.3, ptr noundef %41, ptr noundef %42)
store i32 %43, ptr %11, align 4
%44 = load i32, ptr %11, align 4
%45 = icmp eq i32 %44, -1
br i1 %45, label %46, label %53
46: ; preds = %32
%47 = load i32, ptr @stderr, align 4
%48 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %47, ptr noundef @.str.6)
%49 = load i32, ptr @stderr, align 4
%50 = load i32, ptr @errno, align 4
%51 = call ptr @strerror(i32 noundef %50)
%52 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %49, ptr noundef @.str.2, ptr noundef %51)
br label %53
53: ; preds = %46, %32
br label %56
54: ; preds = %29
%55 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %55, ptr %3, align 4
br label %56
56: ; preds = %54, %53
%57 = load i32, ptr %3, align 4
ret i32 %57
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fork(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare ptr @strerror(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3
declare i32 @execve(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1su2akbw.c'
source_filename = "/tmp/tmp1su2akbw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @pvGetBoardID(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = call i32 @notify_pvcall(ptr noundef @.str)
ret i64 0
}
declare i32 @notify_pvcall(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1su2akbw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @pvGetBoardID(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = call i32 @notify_pvcall(ptr noundef @.str)
ret i64 0
}
declare i32 @notify_pvcall(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0e132ene.c'
source_filename = "/tmp/tmp0e132ene.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wcsdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp ne ptr %6, null
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 noundef %8)
%10 = load ptr, ptr %3, align 8
%11 = call i32 @wcslen(ptr noundef %10)
%12 = add nsw i32 %11, 1
%13 = sext i32 %12 to i64
store i64 %13, ptr %5, align 8
%14 = load i64, ptr %5, align 8
%15 = mul i64 %14, 4
%16 = call ptr @malloc(i64 noundef %15)
store ptr %16, ptr %4, align 8
%17 = load ptr, ptr %4, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %20, label %19
19: ; preds = %1
store ptr null, ptr %2, align 8
br label %25
20: ; preds = %1
%21 = load ptr, ptr %4, align 8
%22 = load ptr, ptr %3, align 8
%23 = load i64, ptr %5, align 8
%24 = call ptr @wmemcpy(ptr noundef %21, ptr noundef %22, i64 noundef %23)
store ptr %24, ptr %2, align 8
br label %25
25: ; preds = %20, %19
%26 = load ptr, ptr %2, align 8
ret ptr %26
}
declare i32 @assert(i32 noundef) #1
declare i32 @wcslen(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare ptr @wmemcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0e132ene.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wcsdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp ne ptr %6, null
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 noundef %8)
%10 = load ptr, ptr %3, align 8
%11 = call i32 @wcslen(ptr noundef %10)
%12 = add nsw i32 %11, 1
%13 = sext i32 %12 to i64
store i64 %13, ptr %5, align 8
%14 = load i64, ptr %5, align 8
%15 = mul i64 %14, 4
%16 = call ptr @malloc(i64 noundef %15)
store ptr %16, ptr %4, align 8
%17 = load ptr, ptr %4, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %20, label %19
19: ; preds = %1
store ptr null, ptr %2, align 8
br label %25
20: ; preds = %1
%21 = load ptr, ptr %4, align 8
%22 = load ptr, ptr %3, align 8
%23 = load i64, ptr %5, align 8
%24 = call ptr @wmemcpy(ptr noundef %21, ptr noundef %22, i64 noundef %23)
store ptr %24, ptr %2, align 8
br label %25
25: ; preds = %20, %19
%26 = load ptr, ptr %2, align 8
ret ptr %26
}
declare i32 @assert(i32 noundef) #1
declare i32 @wcslen(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare ptr @wmemcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqpsyigsu.c'
source_filename = "/tmp/tmpqpsyigsu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @f2(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = call i64 @__builtin_wasm_grow_memory(i64 noundef %3)
ret i64 %4
}
declare i64 @__builtin_wasm_grow_memory(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/tmpqpsyigsu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @f2(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = call i64 @__builtin_wasm_grow_memory(i64 noundef %3)
ret i64 %4
}
declare i64 @__builtin_wasm_grow_memory(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/tmplgssh_tc.c'
source_filename = "/tmp/tmplgssh_tc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i8, align 1
%8 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp ne i32 %9, 2
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 @write(i32 noundef 1, ptr noundef @.str, i32 noundef 1)
store i32 0, ptr %3, align 4
br label %102
13: ; preds = %2
store i32 0, ptr %6, align 4
br label %14
14: ; preds = %99, %13
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
%18 = load i32, ptr %6, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %100
24: ; preds = %14
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 1
%27 = load ptr, ptr %26, align 8
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = icmp sgt i32 %32, 64
br i1 %33, label %34, label %56
34: ; preds = %24
%35 = load ptr, ptr %5, align 8
%36 = getelementptr inbounds ptr, ptr %35, i64 1
%37 = load ptr, ptr %36, align 8
%38 = load i32, ptr %6, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %37, i64 %39
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
%43 = icmp slt i32 %42, 91
br i1 %43, label %44, label %56
44: ; preds = %34
%45 = load ptr, ptr %5, align 8
%46 = getelementptr inbounds ptr, ptr %45, i64 1
%47 = load ptr, ptr %46, align 8
%48 = load i32, ptr %6, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8, ptr %47, i64 %49
%51 = load i8, ptr %50, align 1
%52 = call signext i8 @ft_tolower(i8 noundef signext %51)
store i8 %52, ptr %7, align 1
%53 = call i32 @write(i32 noundef 1, ptr noundef %7, i32 noundef 1)
%54 = load i32, ptr %6, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %6, align 4
br label %99
56: ; preds = %34, %24
%57 = load ptr, ptr %5, align 8
%58 = getelementptr inbounds ptr, ptr %57, i64 1
%59 = load ptr, ptr %58, align 8
%60 = load i32, ptr %6, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i8, ptr %59, i64 %61
%63 = load i8, ptr %62, align 1
%64 = sext i8 %63 to i32
%65 = icmp sgt i32 %64, 96
br i1 %65, label %66, label %88
66: ; preds = %56
%67 = load ptr, ptr %5, align 8
%68 = getelementptr inbounds ptr, ptr %67, i64 1
%69 = load ptr, ptr %68, align 8
%70 = load i32, ptr %6, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i8, ptr %69, i64 %71
%73 = load i8, ptr %72, align 1
%74 = sext i8 %73 to i32
%75 = icmp slt i32 %74, 123
br i1 %75, label %76, label %88
76: ; preds = %66
%77 = load ptr, ptr %5, align 8
%78 = getelementptr inbounds ptr, ptr %77, i64 1
%79 = load ptr, ptr %78, align 8
%80 = load i32, ptr %6, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds i8, ptr %79, i64 %81
%83 = load i8, ptr %82, align 1
%84 = call signext i8 @ft_toupper(i8 noundef signext %83)
store i8 %84, ptr %8, align 1
%85 = call i32 @write(i32 noundef 1, ptr noundef %8, i32 noundef 1)
%86 = load i32, ptr %6, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %6, align 4
br label %98
88: ; preds = %66, %56
%89 = load ptr, ptr %5, align 8
%90 = getelementptr inbounds ptr, ptr %89, i64 1
%91 = load ptr, ptr %90, align 8
%92 = load i32, ptr %6, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i8, ptr %91, i64 %93
%95 = call i32 @write(i32 noundef 1, ptr noundef %94, i32 noundef 1)
%96 = load i32, ptr %6, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %6, align 4
br label %98
98: ; preds = %88, %76
br label %99
99: ; preds = %98, %44
br label %14, !llvm.loop !6
100: ; preds = %14
%101 = call i32 @write(i32 noundef 1, ptr noundef @.str, i32 noundef 1)
store i32 0, ptr %3, align 4
br label %102
102: ; preds = %100, %11
%103 = load i32, ptr %3, align 4
ret i32 %103
}
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare signext i8 @ft_tolower(i8 noundef signext) #1
declare signext i8 @ft_toupper(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplgssh_tc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i8, align 1
%8 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp ne i32 %9, 2
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 @write(i32 noundef 1, ptr noundef @.str, i32 noundef 1)
store i32 0, ptr %3, align 4
br label %110
13: ; preds = %2
store i32 0, ptr %6, align 4
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
%17 = load i32, ptr %6, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp ne i32 %21, 0
br i1 %22, label %.lr.ph, label %108
.lr.ph: ; preds = %13
br label %23
23: ; preds = %.lr.ph, %98
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 1
%26 = load ptr, ptr %25, align 8
%27 = load i32, ptr %6, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp sgt i32 %31, 64
br i1 %32, label %33, label %55
33: ; preds = %23
%34 = load ptr, ptr %5, align 8
%35 = getelementptr inbounds ptr, ptr %34, i64 1
%36 = load ptr, ptr %35, align 8
%37 = load i32, ptr %6, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = icmp slt i32 %41, 91
br i1 %42, label %43, label %55
43: ; preds = %33
%44 = load ptr, ptr %5, align 8
%45 = getelementptr inbounds ptr, ptr %44, i64 1
%46 = load ptr, ptr %45, align 8
%47 = load i32, ptr %6, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8, ptr %46, i64 %48
%50 = load i8, ptr %49, align 1
%51 = call signext i8 @ft_tolower(i8 noundef signext %50)
store i8 %51, ptr %7, align 1
%52 = call i32 @write(i32 noundef 1, ptr noundef %7, i32 noundef 1)
%53 = load i32, ptr %6, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %6, align 4
br label %98
55: ; preds = %33, %23
%56 = load ptr, ptr %5, align 8
%57 = getelementptr inbounds ptr, ptr %56, i64 1
%58 = load ptr, ptr %57, align 8
%59 = load i32, ptr %6, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i8, ptr %58, i64 %60
%62 = load i8, ptr %61, align 1
%63 = sext i8 %62 to i32
%64 = icmp sgt i32 %63, 96
br i1 %64, label %65, label %87
65: ; preds = %55
%66 = load ptr, ptr %5, align 8
%67 = getelementptr inbounds ptr, ptr %66, i64 1
%68 = load ptr, ptr %67, align 8
%69 = load i32, ptr %6, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i8, ptr %68, i64 %70
%72 = load i8, ptr %71, align 1
%73 = sext i8 %72 to i32
%74 = icmp slt i32 %73, 123
br i1 %74, label %75, label %87
75: ; preds = %65
%76 = load ptr, ptr %5, align 8
%77 = getelementptr inbounds ptr, ptr %76, i64 1
%78 = load ptr, ptr %77, align 8
%79 = load i32, ptr %6, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i8, ptr %78, i64 %80
%82 = load i8, ptr %81, align 1
%83 = call signext i8 @ft_toupper(i8 noundef signext %82)
store i8 %83, ptr %8, align 1
%84 = call i32 @write(i32 noundef 1, ptr noundef %8, i32 noundef 1)
%85 = load i32, ptr %6, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %6, align 4
br label %97
87: ; preds = %65, %55
%88 = load ptr, ptr %5, align 8
%89 = getelementptr inbounds ptr, ptr %88, i64 1
%90 = load ptr, ptr %89, align 8
%91 = load i32, ptr %6, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i8, ptr %90, i64 %92
%94 = call i32 @write(i32 noundef 1, ptr noundef %93, i32 noundef 1)
%95 = load i32, ptr %6, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %6, align 4
br label %97
97: ; preds = %87, %75
br label %98
98: ; preds = %97, %43
%99 = load ptr, ptr %5, align 8
%100 = getelementptr inbounds ptr, ptr %99, i64 1
%101 = load ptr, ptr %100, align 8
%102 = load i32, ptr %6, align 4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i8, ptr %101, i64 %103
%105 = load i8, ptr %104, align 1
%106 = sext i8 %105 to i32
%107 = icmp ne i32 %106, 0
br i1 %107, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %98
br label %108
108: ; preds = %._crit_edge, %13
%109 = call i32 @write(i32 noundef 1, ptr noundef @.str, i32 noundef 1)
store i32 0, ptr %3, align 4
br label %110
110: ; preds = %108, %11
%111 = load i32, ptr %3, align 4
ret i32 %111
}
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare signext i8 @ft_tolower(i8 noundef signext) #1
declare signext i8 @ft_toupper(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpi16w5kph.c'
source_filename = "/tmp/tmpi16w5kph.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"wich test do you want to test?\0A\00", align 1
@.str.1 = private unnamed_addr constant [65 x i8] c"Choose the number of the test you want or '0' to stop the tests\0A\00", align 1
@.str.2 = private unnamed_addr constant [48 x i8] c"1- Test of the fonction that create the graph\0A\00", align 1
@.str.3 = private unnamed_addr constant [55 x i8] c"2- Test of the fonction that create the board's graph\0A\00", align 1
@.str.4 = private unnamed_addr constant [60 x i8] c"3- Test of the fonction that calculate an adjacent vertex\0A\00", align 1
@.str.5 = private unnamed_addr constant [64 x i8] c"4- Test of the fonction that calculate all adjacents vertexes\0A\00", align 1
@.str.6 = private unnamed_addr constant [58 x i8] c"5- Test of the fonction that calculate a side adjacents\0A\00", align 1
@.str.7 = private unnamed_addr constant [62 x i8] c"6- Test of the fonction that replace a vertex in the graph\0A\00", align 1
@.str.8 = private unnamed_addr constant [67 x i8] c"7- Test of the fonction that test if a Vertex belongs to a group\0A\00", align 1
@.str.9 = private unnamed_addr constant [64 x i8] c"8- Test of the fonction that test if two vertexes are adjacent\0A\00", align 1
@.str.10 = private unnamed_addr constant [77 x i8] c"9- Test of the fonction that test if two Vertexes belongs to the same group\0A\00", align 1
@.str.11 = private unnamed_addr constant [75 x i8] c"10- Test of all the fonctions that calculate different things in a vertex\0A\00", align 1
@.str.12 = private unnamed_addr constant [39 x i8] c"11- Test of all the Getters fonctions\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printMenu() #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)
%13 = call i32 @printf(ptr noundef @.str.12)
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/tmpi16w5kph.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"wich test do you want to test?\0A\00", align 1
@.str.1 = private unnamed_addr constant [65 x i8] c"Choose the number of the test you want or '0' to stop the tests\0A\00", align 1
@.str.2 = private unnamed_addr constant [48 x i8] c"1- Test of the fonction that create the graph\0A\00", align 1
@.str.3 = private unnamed_addr constant [55 x i8] c"2- Test of the fonction that create the board's graph\0A\00", align 1
@.str.4 = private unnamed_addr constant [60 x i8] c"3- Test of the fonction that calculate an adjacent vertex\0A\00", align 1
@.str.5 = private unnamed_addr constant [64 x i8] c"4- Test of the fonction that calculate all adjacents vertexes\0A\00", align 1
@.str.6 = private unnamed_addr constant [58 x i8] c"5- Test of the fonction that calculate a side adjacents\0A\00", align 1
@.str.7 = private unnamed_addr constant [62 x i8] c"6- Test of the fonction that replace a vertex in the graph\0A\00", align 1
@.str.8 = private unnamed_addr constant [67 x i8] c"7- Test of the fonction that test if a Vertex belongs to a group\0A\00", align 1
@.str.9 = private unnamed_addr constant [64 x i8] c"8- Test of the fonction that test if two vertexes are adjacent\0A\00", align 1
@.str.10 = private unnamed_addr constant [77 x i8] c"9- Test of the fonction that test if two Vertexes belongs to the same group\0A\00", align 1
@.str.11 = private unnamed_addr constant [75 x i8] c"10- Test of all the fonctions that calculate different things in a vertex\0A\00", align 1
@.str.12 = private unnamed_addr constant [39 x i8] c"11- Test of all the Getters fonctions\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printMenu() #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)
%13 = call i32 @printf(ptr noundef @.str.12)
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/tmpwqmu44_f.c'
source_filename = "/tmp/tmpwqmu44_f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @func_blsic64(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = call i64 @__blsic_u64(i64 noundef %3)
ret i64 %4
}
declare i64 @__blsic_u64(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/tmpwqmu44_f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @func_blsic64(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = call i64 @__blsic_u64(i64 noundef %3)
ret i64 %4
}
declare i64 @__blsic_u64(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/tmp9no7xd75.c'
source_filename = "/tmp/tmp9no7xd75.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @clear_3d_facets() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = load ptr, ptr %2, align 8
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @_ada_use_c2phc(i32 noundef 584, ptr noundef %5, ptr noundef %6, ptr noundef %7)
store i32 %8, ptr %1, align 4
%9 = load i32, ptr %1, align 4
ret i32 %9
}
declare i32 @_ada_use_c2phc(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9no7xd75.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @clear_3d_facets() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = load ptr, ptr %2, align 8
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @_ada_use_c2phc(i32 noundef 584, ptr noundef %5, ptr noundef %6, ptr noundef %7)
store i32 %8, ptr %1, align 4
%9 = load i32, ptr %1, align 4
ret i32 %9
}
declare i32 @_ada_use_c2phc(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpadqnghrc.c'
source_filename = "/tmp/tmpadqnghrc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Hello Thread!!! id = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @thread_func(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = load i32, ptr %4, align 4
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = call i32 @printf(ptr noundef @.str, i32 noundef %6)
ret ptr null
}
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/tmpadqnghrc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Hello Thread!!! id = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @thread_func(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = load i32, ptr %4, align 4
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = call i32 @printf(ptr noundef @.str, i32 noundef %6)
ret ptr null
}
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/tmp31ecz8zu.c'
source_filename = "/tmp/tmp31ecz8zu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0A\0A\1B[35m%s\1B[0m\0A\00", align 1
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ask(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %6, align 8
%9 = call i32 @printf(ptr noundef @.str, ptr noundef %8)
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %5, align 4
%12 = load i32, ptr @stdin, align 4
%13 = call i32 @fgets(ptr noundef %10, i32 noundef %11, i32 noundef %12)
%14 = load ptr, ptr %4, align 8
%15 = call i32 @strlen(ptr noundef %14)
%16 = sub nsw i32 %15, 1
%17 = sext i32 %16 to i64
store i64 %17, ptr %7, align 8
%18 = load ptr, ptr %4, align 8
%19 = load i64, ptr %7, align 8
%20 = getelementptr inbounds i8, ptr %18, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 10
br i1 %23, label %24, label %28
24: ; preds = %3
%25 = load ptr, ptr %4, align 8
%26 = load i64, ptr %7, align 8
%27 = getelementptr inbounds i8, ptr %25, i64 %26
store i8 0, ptr %27, align 1
br label %28
28: ; preds = %24, %3
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 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/tmp31ecz8zu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0A\0A\1B[35m%s\1B[0m\0A\00", align 1
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ask(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %6, align 8
%9 = call i32 @printf(ptr noundef @.str, ptr noundef %8)
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %5, align 4
%12 = load i32, ptr @stdin, align 4
%13 = call i32 @fgets(ptr noundef %10, i32 noundef %11, i32 noundef %12)
%14 = load ptr, ptr %4, align 8
%15 = call i32 @strlen(ptr noundef %14)
%16 = sub nsw i32 %15, 1
%17 = sext i32 %16 to i64
store i64 %17, ptr %7, align 8
%18 = load ptr, ptr %4, align 8
%19 = load i64, ptr %7, align 8
%20 = getelementptr inbounds i8, ptr %18, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 10
br i1 %23, label %24, label %28
24: ; preds = %3
%25 = load ptr, ptr %4, align 8
%26 = load i64, ptr %7, align 8
%27 = getelementptr inbounds i8, ptr %25, i64 %26
store i8 0, ptr %27, align 1
br label %28
28: ; preds = %24, %3
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 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/tmpqthapqdn.c'
source_filename = "/tmp/tmpqthapqdn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SSIDataPut(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
br label %5
5: ; preds = %13, %2
%6 = load i64, ptr %3, align 8
%7 = add i64 %6, 12
%8 = inttoptr i64 %7 to ptr
%9 = load volatile i64, ptr %8, align 8
%10 = and i64 %9, 2
%11 = icmp ne i64 %10, 0
%12 = xor i1 %11, true
br i1 %12, label %13, label %14
13: ; preds = %5
br label %5, !llvm.loop !6
14: ; preds = %5
%15 = load i64, ptr %4, align 8
%16 = load i64, ptr %3, align 8
%17 = add i64 %16, 8
%18 = inttoptr i64 %17 to ptr
store volatile i64 %15, ptr %18, 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqthapqdn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SSIDataPut(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
br label %5
5: ; preds = %5, %2
%6 = load i64, ptr %3, align 8
%7 = add i64 %6, 12
%8 = inttoptr i64 %7 to ptr
%9 = load volatile i64, ptr %8, align 8
%10 = and i64 %9, 2
%11 = icmp ne i64 %10, 0
%12 = xor i1 %11, true
br i1 %12, label %5, label %13, !llvm.loop !6
13: ; preds = %5
%14 = load i64, ptr %4, align 8
%15 = load i64, ptr %3, align 8
%16 = add i64 %15, 8
%17 = inttoptr i64 %16 to ptr
store volatile i64 %14, ptr %17, 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpn_ew8xd0.c'
source_filename = "/tmp/tmpn_ew8xd0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [48 x i8] c"Rilevatore di numeri negativi in matrice 10x10\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"[%d/%d] Inserisci numero: \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [44 x i8] c"Nella riga %d tutti i valori sono negativi!\00", align 1
@.str.4 = private unnamed_addr constant [47 x i8] c"Nella colonna %d tutti i valori sono negativi!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [10 x [10 x i32]], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
br label %7
7: ; preds = %29, %0
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 10
br i1 %9, label %10, label %32
10: ; preds = %7
store i32 0, ptr %4, align 4
br label %11
11: ; preds = %25, %10
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %12, 10
br i1 %13, label %14, label %28
14: ; preds = %11
%15 = load i32, ptr %3, align 4
%16 = load i32, ptr %4, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %15, i32 noundef %16)
%18 = load i32, ptr %3, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [10 x [10 x i32]], ptr %2, i64 0, i64 %19
%21 = load i32, ptr %4, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [10 x i32], ptr %20, i64 0, i64 %22
%24 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %23)
br label %25
25: ; preds = %14
%26 = load i32, ptr %4, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %4, align 4
br label %11, !llvm.loop !6
28: ; preds = %11
br label %29
29: ; preds = %28
%30 = load i32, ptr %3, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %3, align 4
br label %7, !llvm.loop !8
32: ; preds = %7
store i32 0, ptr %3, align 4
br label %33
33: ; preds = %64, %32
%34 = load i32, ptr %3, align 4
%35 = icmp slt i32 %34, 10
br i1 %35, label %36, label %67
36: ; preds = %33
store i32 0, ptr %4, align 4
store i32 1, ptr %5, align 4
br label %37
37: ; preds = %54, %36
%38 = load i32, ptr %4, align 4
%39 = icmp slt i32 %38, 10
br i1 %39, label %40, label %57
40: ; preds = %37
%41 = load i32, ptr %3, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [10 x [10 x i32]], ptr %2, i64 0, i64 %42
%44 = load i32, ptr %4, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [10 x i32], ptr %43, i64 0, i64 %45
%47 = load i32, ptr %46, align 4
%48 = icmp sgt i32 %47, 0
br i1 %48, label %49, label %53
49: ; preds = %40
%50 = load i32, ptr %5, align 4
%51 = icmp ne i32 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %49
store i32 0, ptr %5, align 4
br label %53
53: ; preds = %52, %49, %40
br label %54
54: ; preds = %53
%55 = load i32, ptr %4, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %4, align 4
br label %37, !llvm.loop !9
57: ; preds = %37
%58 = load i32, ptr %5, align 4
%59 = icmp ne i32 %58, 0
br i1 %59, label %60, label %63
60: ; preds = %57
%61 = load i32, ptr %3, align 4
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %61)
br label %63
63: ; preds = %60, %57
br label %64
64: ; preds = %63
%65 = load i32, ptr %3, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %3, align 4
br label %33, !llvm.loop !10
67: ; preds = %33
store i32 0, ptr %3, align 4
br label %68
68: ; preds = %99, %67
%69 = load i32, ptr %3, align 4
%70 = icmp slt i32 %69, 10
br i1 %70, label %71, label %102
71: ; preds = %68
store i32 0, ptr %4, align 4
store i32 1, ptr %5, align 4
br label %72
72: ; preds = %89, %71
%73 = load i32, ptr %4, align 4
%74 = icmp slt i32 %73, 10
br i1 %74, label %75, label %92
75: ; preds = %72
%76 = load i32, ptr %4, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [10 x [10 x i32]], ptr %2, i64 0, i64 %77
%79 = load i32, ptr %3, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [10 x i32], ptr %78, i64 0, i64 %80
%82 = load i32, ptr %81, align 4
%83 = icmp sgt i32 %82, 0
br i1 %83, label %84, label %88
84: ; preds = %75
%85 = load i32, ptr %5, align 4
%86 = icmp ne i32 %85, 0
br i1 %86, label %87, label %88
87: ; preds = %84
store i32 0, ptr %5, align 4
br label %88
88: ; preds = %87, %84, %75
br label %89
89: ; preds = %88
%90 = load i32, ptr %4, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %4, align 4
br label %72, !llvm.loop !11
92: ; preds = %72
%93 = load i32, ptr %5, align 4
%94 = icmp ne i32 %93, 0
br i1 %94, label %95, label %98
95: ; preds = %92
%96 = load i32, ptr %3, align 4
%97 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %96)
br label %98
98: ; preds = %95, %92
br label %99
99: ; preds = %98
%100 = load i32, ptr %3, align 4
%101 = add nsw i32 %100, 1
store i32 %101, ptr %3, align 4
br label %68, !llvm.loop !12
102: ; preds = %68
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn_ew8xd0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [48 x i8] c"Rilevatore di numeri negativi in matrice 10x10\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"[%d/%d] Inserisci numero: \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [44 x i8] c"Nella riga %d tutti i valori sono negativi!\00", align 1
@.str.4 = private unnamed_addr constant [47 x i8] c"Nella colonna %d tutti i valori sono negativi!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [10 x [10 x i32]], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 10
br i1 %8, label %.lr.ph2, label %34
.lr.ph2: ; preds = %0
br label %9
9: ; preds = %.lr.ph2, %29
store i32 0, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 10
br i1 %11, label %.lr.ph, label %28
.lr.ph: ; preds = %9
br label %12
12: ; preds = %.lr.ph, %23
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %4, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %13, i32 noundef %14)
%16 = load i32, ptr %3, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [10 x [10 x i32]], ptr %2, i64 0, i64 %17
%19 = load i32, ptr %4, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [10 x i32], ptr %18, i64 0, i64 %20
%22 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %21)
br label %23
23: ; preds = %12
%24 = load i32, ptr %4, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %4, align 4
%26 = load i32, ptr %4, align 4
%27 = icmp slt i32 %26, 10
br i1 %27, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %28
28: ; preds = %._crit_edge, %9
br label %29
29: ; preds = %28
%30 = load i32, ptr %3, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %3, align 4
%32 = load i32, ptr %3, align 4
%33 = icmp slt i32 %32, 10
br i1 %33, label %9, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %29
br label %34
34: ; preds = %._crit_edge3, %0
store i32 0, ptr %3, align 4
%35 = load i32, ptr %3, align 4
%36 = icmp slt i32 %35, 10
br i1 %36, label %.lr.ph8, label %71
.lr.ph8: ; preds = %34
br label %37
37: ; preds = %.lr.ph8, %66
store i32 0, ptr %4, align 4
store i32 1, ptr %5, align 4
%38 = load i32, ptr %4, align 4
%39 = icmp slt i32 %38, 10
br i1 %39, label %.lr.ph5, label %59
.lr.ph5: ; preds = %37
br label %40
40: ; preds = %.lr.ph5, %54
%41 = load i32, ptr %3, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [10 x [10 x i32]], ptr %2, i64 0, i64 %42
%44 = load i32, ptr %4, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [10 x i32], ptr %43, i64 0, i64 %45
%47 = load i32, ptr %46, align 4
%48 = icmp sgt i32 %47, 0
br i1 %48, label %49, label %53
49: ; preds = %40
%50 = load i32, ptr %5, align 4
%51 = icmp ne i32 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %49
store i32 0, ptr %5, align 4
br label %53
53: ; preds = %52, %49, %40
br label %54
54: ; preds = %53
%55 = load i32, ptr %4, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %4, align 4
%57 = load i32, ptr %4, align 4
%58 = icmp slt i32 %57, 10
br i1 %58, label %40, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %54
br label %59
59: ; preds = %._crit_edge6, %37
%60 = load i32, ptr %5, align 4
%61 = icmp ne i32 %60, 0
br i1 %61, label %62, label %65
62: ; preds = %59
%63 = load i32, ptr %3, align 4
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %63)
br label %65
65: ; preds = %62, %59
br label %66
66: ; preds = %65
%67 = load i32, ptr %3, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %3, align 4
%69 = load i32, ptr %3, align 4
%70 = icmp slt i32 %69, 10
br i1 %70, label %37, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %66
br label %71
71: ; preds = %._crit_edge9, %34
store i32 0, ptr %3, align 4
%72 = load i32, ptr %3, align 4
%73 = icmp slt i32 %72, 10
br i1 %73, label %.lr.ph14, label %108
.lr.ph14: ; preds = %71
br label %74
74: ; preds = %.lr.ph14, %103
store i32 0, ptr %4, align 4
store i32 1, ptr %5, align 4
%75 = load i32, ptr %4, align 4
%76 = icmp slt i32 %75, 10
br i1 %76, label %.lr.ph11, label %96
.lr.ph11: ; preds = %74
br label %77
77: ; preds = %.lr.ph11, %91
%78 = load i32, ptr %4, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [10 x [10 x i32]], ptr %2, i64 0, i64 %79
%81 = load i32, ptr %3, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [10 x i32], ptr %80, i64 0, i64 %82
%84 = load i32, ptr %83, align 4
%85 = icmp sgt i32 %84, 0
br i1 %85, label %86, label %90
86: ; preds = %77
%87 = load i32, ptr %5, align 4
%88 = icmp ne i32 %87, 0
br i1 %88, label %89, label %90
89: ; preds = %86
store i32 0, ptr %5, align 4
br label %90
90: ; preds = %89, %86, %77
br label %91
91: ; preds = %90
%92 = load i32, ptr %4, align 4
%93 = add nsw i32 %92, 1
store i32 %93, ptr %4, align 4
%94 = load i32, ptr %4, align 4
%95 = icmp slt i32 %94, 10
br i1 %95, label %77, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %91
br label %96
96: ; preds = %._crit_edge12, %74
%97 = load i32, ptr %5, align 4
%98 = icmp ne i32 %97, 0
br i1 %98, label %99, label %102
99: ; preds = %96
%100 = load i32, ptr %3, align 4
%101 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %100)
br label %102
102: ; preds = %99, %96
br label %103
103: ; preds = %102
%104 = load i32, ptr %3, align 4
%105 = add nsw i32 %104, 1
store i32 %105, ptr %3, align 4
%106 = load i32, ptr %3, align 4
%107 = icmp slt i32 %106, 10
br i1 %107, label %74, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %103
br label %108
108: ; preds = %._crit_edge15, %71
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmp6a8p8jod.c'
source_filename = "/tmp/tmp6a8p8jod.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GetString.s = internal global [200 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [6 x i8] c"\0A%s%s\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c" (Type ? for Help)\00", align 1
@.str.2 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @GetString(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
br label %7
7: ; preds = %3, %30
%8 = load ptr, ptr %4, align 8
%9 = load ptr, ptr %6, align 8
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 0
%13 = zext i1 %12 to i64
%14 = select i1 %12, ptr @.str.1, ptr @.str.2
%15 = call i32 @sprintf(ptr noundef @GetString.s, ptr noundef @.str, ptr noundef %8, ptr noundef %14)
%16 = load ptr, ptr %5, align 8
%17 = call i32 @getstr(ptr noundef @GetString.s, ptr noundef %16, ptr noundef @GetString.s)
%18 = load i8, ptr @GetString.s, align 16
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 63
br i1 %20, label %21, label %29
21: ; preds = %7
%22 = load ptr, ptr %6, align 8
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %21
%27 = load ptr, ptr %6, align 8
%28 = call i32 @printf(ptr noundef %27)
br label %30
29: ; preds = %21, %7
ret ptr @GetString.s
30: ; preds = %26
br label %7
}
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @getstr(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6a8p8jod.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GetString.s = internal global [200 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [6 x i8] c"\0A%s%s\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c" (Type ? for Help)\00", align 1
@.str.2 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @GetString(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
br label %7
7: ; preds = %30, %3
%8 = load ptr, ptr %4, align 8
%9 = load ptr, ptr %6, align 8
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 0
%13 = zext i1 %12 to i64
%14 = select i1 %12, ptr @.str.1, ptr @.str.2
%15 = call i32 @sprintf(ptr noundef @GetString.s, ptr noundef @.str, ptr noundef %8, ptr noundef %14)
%16 = load ptr, ptr %5, align 8
%17 = call i32 @getstr(ptr noundef @GetString.s, ptr noundef %16, ptr noundef @GetString.s)
%18 = load i8, ptr @GetString.s, align 16
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 63
br i1 %20, label %21, label %29
21: ; preds = %7
%22 = load ptr, ptr %6, align 8
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %21
%27 = load ptr, ptr %6, align 8
%28 = call i32 @printf(ptr noundef %27)
br label %30
29: ; preds = %21, %7
ret ptr @GetString.s
30: ; preds = %26
br label %7
}
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @getstr(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5ssz8xl_.c'
source_filename = "/tmp/tmp5ssz8xl_.c"
target datalayout = "e-m:e-p270: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/tmp5ssz8xl_.c"
target datalayout = "e-m:e-p270: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/tmpi8jtoumx.c'
source_filename = "/tmp/tmpi8jtoumx.c"
target datalayout = "e-m:e-p270: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.lconv = type { ptr }
@ffc2dd.decimalpt = internal global i8 0, align 1
@errno = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [46 x i8] c"Error in ffc2dd converting string to double: \00", align 1
@ERANGE = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ffc2dd(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca [81 x i8], align 16
%10 = alloca [73 x i8], align 16
%11 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr null, ptr %11, align 8
%12 = load ptr, ptr %7, align 8
%13 = load i32, ptr %12, align 4
%14 = icmp sgt i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %3
%16 = load ptr, ptr %7, align 8
%17 = load i32, ptr %16, align 4
store i32 %17, ptr %4, align 4
br label %99
18: ; preds = %3
%19 = load i8, ptr @ffc2dd.decimalpt, align 1
%20 = icmp ne i8 %19, 0
br i1 %20, label %27, label %21
21: ; preds = %18
%22 = call ptr (...) @localeconv()
store ptr %22, ptr %11, align 8
%23 = load ptr, ptr %11, align 8
%24 = getelementptr inbounds %struct.lconv, ptr %23, i32 0, i32 0
%25 = load ptr, ptr %24, align 8
%26 = load i8, ptr %25, align 1
store i8 %26, ptr @ffc2dd.decimalpt, align 1
br label %27
27: ; preds = %21, %18
store i64 0, ptr @errno, align 8
%28 = load ptr, ptr %6, align 8
store double 0.000000e+00, ptr %28, align 8
%29 = load ptr, ptr %5, align 8
%30 = call ptr @strchr(ptr noundef %29, i8 noundef signext 68)
%31 = icmp ne ptr %30, null
br i1 %31, label %36, label %32
32: ; preds = %27
%33 = load i8, ptr @ffc2dd.decimalpt, align 1
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 44
br i1 %35, label %36, label %60
36: ; preds = %32, %27
%37 = getelementptr inbounds [73 x i8], ptr %10, i64 0, i64 0
%38 = load ptr, ptr %5, align 8
%39 = call i32 @strcpy(ptr noundef %37, ptr noundef %38)
%40 = getelementptr inbounds [73 x i8], ptr %10, i64 0, i64 0
%41 = call ptr @strchr(ptr noundef %40, i8 noundef signext 68)
store ptr %41, ptr %8, align 8
%42 = icmp ne ptr %41, null
br i1 %42, label %43, label %45
43: ; preds = %36
%44 = load ptr, ptr %8, align 8
store i8 69, ptr %44, align 1
br label %45
45: ; preds = %43, %36
%46 = load i8, ptr @ffc2dd.decimalpt, align 1
%47 = sext i8 %46 to i32
%48 = icmp eq i32 %47, 44
br i1 %48, label %49, label %56
49: ; preds = %45
%50 = getelementptr inbounds [73 x i8], ptr %10, i64 0, i64 0
%51 = call ptr @strchr(ptr noundef %50, i8 noundef signext 46)
store ptr %51, ptr %8, align 8
%52 = icmp ne ptr %51, null
br i1 %52, label %53, label %55
53: ; preds = %49
%54 = load ptr, ptr %8, align 8
store i8 44, ptr %54, align 1
br label %55
55: ; preds = %53, %49
br label %56
56: ; preds = %55, %45
%57 = getelementptr inbounds [73 x i8], ptr %10, i64 0, i64 0
%58 = call double @strtod(ptr noundef %57, ptr noundef %8)
%59 = load ptr, ptr %6, align 8
store double %58, ptr %59, align 8
br label %64
60: ; preds = %32
%61 = load ptr, ptr %5, align 8
%62 = call double @strtod(ptr noundef %61, ptr noundef %8)
%63 = load ptr, ptr %6, align 8
store double %62, ptr %63, align 8
br label %64
64: ; preds = %60, %56
%65 = load ptr, ptr %8, align 8
%66 = load i8, ptr %65, align 1
%67 = sext i8 %66 to i32
%68 = icmp ne i32 %67, 0
br i1 %68, label %69, label %83
69: ; preds = %64
%70 = load ptr, ptr %8, align 8
%71 = load i8, ptr %70, align 1
%72 = sext i8 %71 to i32
%73 = icmp ne i32 %72, 32
br i1 %73, label %74, label %83
74: ; preds = %69
%75 = getelementptr inbounds [81 x i8], ptr %9, i64 0, i64 0
%76 = call i32 @strcpy(ptr noundef %75, ptr noundef @.str)
%77 = getelementptr inbounds [81 x i8], ptr %9, i64 0, i64 0
%78 = load ptr, ptr %5, align 8
%79 = call i32 @strncat(ptr noundef %77, ptr noundef %78, i32 noundef 30)
%80 = getelementptr inbounds [81 x i8], ptr %9, i64 0, i64 0
%81 = call i32 @ffpmsg(ptr noundef %80)
%82 = load ptr, ptr %7, align 8
store i32 409, ptr %82, align 4
br label %83
83: ; preds = %74, %69, %64
%84 = load i64, ptr @errno, align 8
%85 = load i64, ptr @ERANGE, align 8
%86 = icmp eq i64 %84, %85
br i1 %86, label %87, label %96
87: ; preds = %83
%88 = getelementptr inbounds [81 x i8], ptr %9, i64 0, i64 0
%89 = call i32 @strcpy(ptr noundef %88, ptr noundef @.str)
%90 = getelementptr inbounds [81 x i8], ptr %9, i64 0, i64 0
%91 = load ptr, ptr %5, align 8
%92 = call i32 @strncat(ptr noundef %90, ptr noundef %91, i32 noundef 30)
%93 = getelementptr inbounds [81 x i8], ptr %9, i64 0, i64 0
%94 = call i32 @ffpmsg(ptr noundef %93)
%95 = load ptr, ptr %7, align 8
store i32 412, ptr %95, align 4
store i64 0, ptr @errno, align 8
br label %96
96: ; preds = %87, %83
%97 = load ptr, ptr %7, align 8
%98 = load i32, ptr %97, align 4
store i32 %98, ptr %4, align 4
br label %99
99: ; preds = %96, %15
%100 = load i32, ptr %4, align 4
ret i32 %100
}
declare ptr @localeconv(...) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare double @strtod(ptr noundef, ptr noundef) #1
declare i32 @strncat(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @ffpmsg(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi8jtoumx.c"
target datalayout = "e-m:e-p270: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.lconv = type { ptr }
@ffc2dd.decimalpt = internal global i8 0, align 1
@errno = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [46 x i8] c"Error in ffc2dd converting string to double: \00", align 1
@ERANGE = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ffc2dd(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca [81 x i8], align 16
%10 = alloca [73 x i8], align 16
%11 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr null, ptr %11, align 8
%12 = load ptr, ptr %7, align 8
%13 = load i32, ptr %12, align 4
%14 = icmp sgt i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %3
%16 = load ptr, ptr %7, align 8
%17 = load i32, ptr %16, align 4
store i32 %17, ptr %4, align 4
br label %99
18: ; preds = %3
%19 = load i8, ptr @ffc2dd.decimalpt, align 1
%20 = icmp ne i8 %19, 0
br i1 %20, label %27, label %21
21: ; preds = %18
%22 = call ptr (...) @localeconv()
store ptr %22, ptr %11, align 8
%23 = load ptr, ptr %11, align 8
%24 = getelementptr inbounds %struct.lconv, ptr %23, i32 0, i32 0
%25 = load ptr, ptr %24, align 8
%26 = load i8, ptr %25, align 1
store i8 %26, ptr @ffc2dd.decimalpt, align 1
br label %27
27: ; preds = %21, %18
store i64 0, ptr @errno, align 8
%28 = load ptr, ptr %6, align 8
store double 0.000000e+00, ptr %28, align 8
%29 = load ptr, ptr %5, align 8
%30 = call ptr @strchr(ptr noundef %29, i8 noundef signext 68)
%31 = icmp ne ptr %30, null
br i1 %31, label %36, label %32
32: ; preds = %27
%33 = load i8, ptr @ffc2dd.decimalpt, align 1
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 44
br i1 %35, label %36, label %60
36: ; preds = %32, %27
%37 = getelementptr inbounds [73 x i8], ptr %10, i64 0, i64 0
%38 = load ptr, ptr %5, align 8
%39 = call i32 @strcpy(ptr noundef %37, ptr noundef %38)
%40 = getelementptr inbounds [73 x i8], ptr %10, i64 0, i64 0
%41 = call ptr @strchr(ptr noundef %40, i8 noundef signext 68)
store ptr %41, ptr %8, align 8
%42 = icmp ne ptr %41, null
br i1 %42, label %43, label %45
43: ; preds = %36
%44 = load ptr, ptr %8, align 8
store i8 69, ptr %44, align 1
br label %45
45: ; preds = %43, %36
%46 = load i8, ptr @ffc2dd.decimalpt, align 1
%47 = sext i8 %46 to i32
%48 = icmp eq i32 %47, 44
br i1 %48, label %49, label %56
49: ; preds = %45
%50 = getelementptr inbounds [73 x i8], ptr %10, i64 0, i64 0
%51 = call ptr @strchr(ptr noundef %50, i8 noundef signext 46)
store ptr %51, ptr %8, align 8
%52 = icmp ne ptr %51, null
br i1 %52, label %53, label %55
53: ; preds = %49
%54 = load ptr, ptr %8, align 8
store i8 44, ptr %54, align 1
br label %55
55: ; preds = %53, %49
br label %56
56: ; preds = %55, %45
%57 = getelementptr inbounds [73 x i8], ptr %10, i64 0, i64 0
%58 = call double @strtod(ptr noundef %57, ptr noundef %8)
%59 = load ptr, ptr %6, align 8
store double %58, ptr %59, align 8
br label %64
60: ; preds = %32
%61 = load ptr, ptr %5, align 8
%62 = call double @strtod(ptr noundef %61, ptr noundef %8)
%63 = load ptr, ptr %6, align 8
store double %62, ptr %63, align 8
br label %64
64: ; preds = %60, %56
%65 = load ptr, ptr %8, align 8
%66 = load i8, ptr %65, align 1
%67 = sext i8 %66 to i32
%68 = icmp ne i32 %67, 0
br i1 %68, label %69, label %83
69: ; preds = %64
%70 = load ptr, ptr %8, align 8
%71 = load i8, ptr %70, align 1
%72 = sext i8 %71 to i32
%73 = icmp ne i32 %72, 32
br i1 %73, label %74, label %83
74: ; preds = %69
%75 = getelementptr inbounds [81 x i8], ptr %9, i64 0, i64 0
%76 = call i32 @strcpy(ptr noundef %75, ptr noundef @.str)
%77 = getelementptr inbounds [81 x i8], ptr %9, i64 0, i64 0
%78 = load ptr, ptr %5, align 8
%79 = call i32 @strncat(ptr noundef %77, ptr noundef %78, i32 noundef 30)
%80 = getelementptr inbounds [81 x i8], ptr %9, i64 0, i64 0
%81 = call i32 @ffpmsg(ptr noundef %80)
%82 = load ptr, ptr %7, align 8
store i32 409, ptr %82, align 4
br label %83
83: ; preds = %74, %69, %64
%84 = load i64, ptr @errno, align 8
%85 = load i64, ptr @ERANGE, align 8
%86 = icmp eq i64 %84, %85
br i1 %86, label %87, label %96
87: ; preds = %83
%88 = getelementptr inbounds [81 x i8], ptr %9, i64 0, i64 0
%89 = call i32 @strcpy(ptr noundef %88, ptr noundef @.str)
%90 = getelementptr inbounds [81 x i8], ptr %9, i64 0, i64 0
%91 = load ptr, ptr %5, align 8
%92 = call i32 @strncat(ptr noundef %90, ptr noundef %91, i32 noundef 30)
%93 = getelementptr inbounds [81 x i8], ptr %9, i64 0, i64 0
%94 = call i32 @ffpmsg(ptr noundef %93)
%95 = load ptr, ptr %7, align 8
store i32 412, ptr %95, align 4
store i64 0, ptr @errno, align 8
br label %96
96: ; preds = %87, %83
%97 = load ptr, ptr %7, align 8
%98 = load i32, ptr %97, align 4
store i32 %98, ptr %4, align 4
br label %99
99: ; preds = %96, %15
%100 = load i32, ptr %4, align 4
ret i32 %100
}
declare ptr @localeconv(...) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare double @strtod(ptr noundef, ptr noundef) #1
declare i32 @strncat(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @ffpmsg(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE 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_yfkqs7y.c'
source_filename = "/tmp/tmp_yfkqs7y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_yfkqs7y.c"
target datalayout = "e-m:e-p270: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/tmpypga8g1v.c'
source_filename = "/tmp/tmpypga8g1v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @nextrand(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
%5 = load i64, ptr %3, align 8
%6 = icmp ult i64 %5, 2
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = load i64, ptr %3, align 8
store i64 %8, ptr %2, align 8
br label %21
9: ; preds = %1
%10 = call i32 (...) @rand()
%11 = sext i32 %10 to i64
store i64 %11, ptr %4, align 8
%12 = load i64, ptr %4, align 8
%13 = load i64, ptr %3, align 8
%14 = icmp ugt i64 %12, %13
br i1 %14, label %15, label %19
15: ; preds = %9
%16 = load i64, ptr %4, align 8
%17 = load i64, ptr %3, align 8
%18 = urem i64 %16, %17
store i64 %18, ptr %2, align 8
br label %21
19: ; preds = %9
%20 = load i64, ptr %4, align 8
store i64 %20, ptr %2, align 8
br label %21
21: ; preds = %19, %15, %7
%22 = load i64, ptr %2, align 8
ret i64 %22
}
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpypga8g1v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @nextrand(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
%5 = load i64, ptr %3, align 8
%6 = icmp ult i64 %5, 2
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = load i64, ptr %3, align 8
store i64 %8, ptr %2, align 8
br label %21
9: ; preds = %1
%10 = call i32 (...) @rand()
%11 = sext i32 %10 to i64
store i64 %11, ptr %4, align 8
%12 = load i64, ptr %4, align 8
%13 = load i64, ptr %3, align 8
%14 = icmp ugt i64 %12, %13
br i1 %14, label %15, label %19
15: ; preds = %9
%16 = load i64, ptr %4, align 8
%17 = load i64, ptr %3, align 8
%18 = urem i64 %16, %17
store i64 %18, ptr %2, align 8
br label %21
19: ; preds = %9
%20 = load i64, ptr %4, align 8
store i64 %20, ptr %2, align 8
br label %21
21: ; preds = %19, %15, %7
%22 = load i64, ptr %2, align 8
ret i64 %22
}
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpu_0awfjy.c'
source_filename = "/tmp/tmpu_0awfjy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stmt = dso_local global ptr null, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu_0awfjy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stmt = dso_local global ptr null, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzsw0qage.c'
source_filename = "/tmp/tmpzsw0qage.c"
target datalayout = "e-m:e-p270: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/tmpzsw0qage.c"
target datalayout = "e-m:e-p270: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/tmprjqrks4r.c'
source_filename = "/tmp/tmprjqrks4r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Saved locations\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @search_menu_my_saved_places() #0 {
%1 = call i32 @roadmap_search_history(i8 noundef signext 83, ptr noundef @.str)
ret void
}
declare i32 @roadmap_search_history(i8 noundef signext, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprjqrks4r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Saved locations\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @search_menu_my_saved_places() #0 {
%1 = call i32 @roadmap_search_history(i8 noundef signext 83, ptr noundef @.str)
ret void
}
declare i32 @roadmap_search_history(i8 noundef signext, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE 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_calf19w.c'
source_filename = "/tmp/tmp_calf19w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@DSA_F_DSA_PRINT_FP = dso_local global i32 0, align 4
@ERR_R_BUF_LIB = dso_local global i32 0, align 4
@BIO_NOCLOSE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @DSA_print_fp(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%10 = call i32 (...) @BIO_s_file()
%11 = call ptr @BIO_new(i32 noundef %10)
store ptr %11, ptr %8, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %17
13: ; preds = %3
%14 = load i32, ptr @DSA_F_DSA_PRINT_FP, align 4
%15 = load i32, ptr @ERR_R_BUF_LIB, align 4
%16 = call i32 @DSAerr(i32 noundef %14, i32 noundef %15)
store i32 0, ptr %4, align 4
br label %29
17: ; preds = %3
%18 = load ptr, ptr %8, align 8
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr @BIO_NOCLOSE, align 4
%21 = call i32 @BIO_set_fp(ptr noundef %18, ptr noundef %19, i32 noundef %20)
%22 = load ptr, ptr %8, align 8
%23 = load ptr, ptr %6, align 8
%24 = load i32, ptr %7, align 4
%25 = call i32 @DSA_print(ptr noundef %22, ptr noundef %23, i32 noundef %24)
store i32 %25, ptr %9, align 4
%26 = load ptr, ptr %8, align 8
%27 = call i32 @BIO_free(ptr noundef %26)
%28 = load i32, ptr %9, align 4
store i32 %28, ptr %4, align 4
br label %29
29: ; preds = %17, %13
%30 = load i32, ptr %4, align 4
ret i32 %30
}
declare ptr @BIO_new(i32 noundef) #1
declare i32 @BIO_s_file(...) #1
declare i32 @DSAerr(i32 noundef, i32 noundef) #1
declare i32 @BIO_set_fp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @DSA_print(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @BIO_free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_calf19w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@DSA_F_DSA_PRINT_FP = dso_local global i32 0, align 4
@ERR_R_BUF_LIB = dso_local global i32 0, align 4
@BIO_NOCLOSE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @DSA_print_fp(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%10 = call i32 (...) @BIO_s_file()
%11 = call ptr @BIO_new(i32 noundef %10)
store ptr %11, ptr %8, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %17
13: ; preds = %3
%14 = load i32, ptr @DSA_F_DSA_PRINT_FP, align 4
%15 = load i32, ptr @ERR_R_BUF_LIB, align 4
%16 = call i32 @DSAerr(i32 noundef %14, i32 noundef %15)
store i32 0, ptr %4, align 4
br label %29
17: ; preds = %3
%18 = load ptr, ptr %8, align 8
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr @BIO_NOCLOSE, align 4
%21 = call i32 @BIO_set_fp(ptr noundef %18, ptr noundef %19, i32 noundef %20)
%22 = load ptr, ptr %8, align 8
%23 = load ptr, ptr %6, align 8
%24 = load i32, ptr %7, align 4
%25 = call i32 @DSA_print(ptr noundef %22, ptr noundef %23, i32 noundef %24)
store i32 %25, ptr %9, align 4
%26 = load ptr, ptr %8, align 8
%27 = call i32 @BIO_free(ptr noundef %26)
%28 = load i32, ptr %9, align 4
store i32 %28, ptr %4, align 4
br label %29
29: ; preds = %17, %13
%30 = load i32, ptr %4, align 4
ret i32 %30
}
declare ptr @BIO_new(i32 noundef) #1
declare i32 @BIO_s_file(...) #1
declare i32 @DSAerr(i32 noundef, i32 noundef) #1
declare i32 @BIO_set_fp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @DSA_print(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @BIO_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/tmp6dtp0o6j.c'
source_filename = "/tmp/tmp6dtp0o6j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @get_current_dir_name()
%3 = call i32 @free(i32 noundef %2)
ret i32 0
}
declare i32 @free(i32 noundef) #1
declare i32 @get_current_dir_name(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6dtp0o6j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @get_current_dir_name()
%3 = call i32 @free(i32 noundef %2)
ret i32 0
}
declare i32 @free(i32 noundef) #1
declare i32 @get_current_dir_name(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplciljflq.c'
source_filename = "/tmp/tmplciljflq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"Before: mypid is %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"fork\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (...) @getpid()
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
%5 = call i32 (...) @fork()
store i32 %5, ptr %2, align 4
%6 = icmp eq i32 %5, -1
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @perror(ptr noundef @.str.1)
br label %18
9: ; preds = %0
%10 = load i32, ptr %2, align 4
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = call i32 @child_code(i32 noundef 2)
br label %17
14: ; preds = %9
%15 = load i32, ptr %2, align 4
%16 = call i32 @parent_code(i32 noundef %15)
br label %17
17: ; preds = %14, %12
br label %18
18: ; preds = %17, %7
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @getpid(...) #1
declare i32 @fork(...) #1
declare i32 @perror(ptr noundef) #1
declare i32 @child_code(i32 noundef) #1
declare i32 @parent_code(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/tmplciljflq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"Before: mypid is %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"fork\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (...) @getpid()
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
%5 = call i32 (...) @fork()
store i32 %5, ptr %2, align 4
%6 = icmp eq i32 %5, -1
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @perror(ptr noundef @.str.1)
br label %18
9: ; preds = %0
%10 = load i32, ptr %2, align 4
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = call i32 @child_code(i32 noundef 2)
br label %17
14: ; preds = %9
%15 = load i32, ptr %2, align 4
%16 = call i32 @parent_code(i32 noundef %15)
br label %17
17: ; preds = %14, %12
br label %18
18: ; preds = %17, %7
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @getpid(...) #1
declare i32 @fork(...) #1
declare i32 @perror(ptr noundef) #1
declare i32 @child_code(i32 noundef) #1
declare i32 @parent_code(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/tmpwrar5qk2.c'
source_filename = "/tmp/tmpwrar5qk2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isctrl(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 @isalt(ptr noundef %3)
%5 = icmp ne i32 %4, 0
br i1 %5, label %30, label %6
6: ; preds = %1
%7 = load ptr, ptr %2, align 8
%8 = getelementptr inbounds i8, ptr %7, i64 0
%9 = load i8, ptr %8, align 1
%10 = sext i8 %9 to i32
%11 = icmp slt i32 %10, 32
br i1 %11, label %12, label %30
12: ; preds = %6
%13 = load ptr, ptr %2, align 8
%14 = getelementptr inbounds i8, ptr %13, i64 0
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %16, 27
br i1 %17, label %18, label %30
18: ; preds = %12
%19 = load ptr, ptr %2, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 0
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 9
br i1 %23, label %24, label %30
24: ; preds = %18
%25 = load ptr, ptr %2, align 8
%26 = getelementptr inbounds i8, ptr %25, i64 0
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp ne i32 %28, 13
br label %30
30: ; preds = %24, %18, %12, %6, %1
%31 = phi i1 [ false, %18 ], [ false, %12 ], [ false, %6 ], [ false, %1 ], [ %29, %24 ]
%32 = zext i1 %31 to i32
ret i32 %32
}
declare i32 @isalt(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwrar5qk2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isctrl(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 @isalt(ptr noundef %3)
%5 = icmp ne i32 %4, 0
br i1 %5, label %30, label %6
6: ; preds = %1
%7 = load ptr, ptr %2, align 8
%8 = getelementptr inbounds i8, ptr %7, i64 0
%9 = load i8, ptr %8, align 1
%10 = sext i8 %9 to i32
%11 = icmp slt i32 %10, 32
br i1 %11, label %12, label %30
12: ; preds = %6
%13 = load ptr, ptr %2, align 8
%14 = getelementptr inbounds i8, ptr %13, i64 0
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %16, 27
br i1 %17, label %18, label %30
18: ; preds = %12
%19 = load ptr, ptr %2, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 0
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 9
br i1 %23, label %24, label %30
24: ; preds = %18
%25 = load ptr, ptr %2, align 8
%26 = getelementptr inbounds i8, ptr %25, i64 0
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp ne i32 %28, 13
br label %30
30: ; preds = %24, %18, %12, %6, %1
%31 = phi i1 [ false, %18 ], [ false, %12 ], [ false, %6 ], [ false, %1 ], [ %29, %24 ]
%32 = zext i1 %31 to i32
ret i32 %32
}
declare i32 @isalt(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0wz_yshf.c'
source_filename = "/tmp/tmp0wz_yshf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp ne i32 %8, 3
br i1 %9, label %10, label %11
10: ; preds = %2
store i32 1, ptr %3, align 4
br label %23
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = call i32 @atoi(ptr noundef %14)
store i32 %15, ptr %6, align 4
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 2
%18 = load ptr, ptr %17, align 8
%19 = call i32 @atoi(ptr noundef %18)
store i32 %19, ptr %7, align 4
%20 = load i32, ptr %6, align 4
%21 = load i32, ptr %7, align 4
%22 = add nsw i32 %20, %21
store i32 %22, ptr %3, align 4
br label %23
23: ; preds = %11, %10
%24 = load i32, ptr %3, align 4
ret i32 %24
}
declare i32 @atoi(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0wz_yshf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp ne i32 %8, 3
br i1 %9, label %10, label %11
10: ; preds = %2
store i32 1, ptr %3, align 4
br label %23
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = call i32 @atoi(ptr noundef %14)
store i32 %15, ptr %6, align 4
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 2
%18 = load ptr, ptr %17, align 8
%19 = call i32 @atoi(ptr noundef %18)
store i32 %19, ptr %7, align 4
%20 = load i32, ptr %6, align 4
%21 = load i32, ptr %7, align 4
%22 = add nsw i32 %20, %21
store i32 %22, ptr %3, align 4
br label %23
23: ; preds = %11, %10
%24 = load i32, ptr %3, align 4
ret i32 %24
}
declare i32 @atoi(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgmr9ngul.c'
source_filename = "/tmp/tmpgmr9ngul.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strncmp(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %9
9: ; preds = %44, %3
%10 = load i32, ptr %8, align 4
%11 = icmp slt i32 %10, 256
br i1 %11, label %12, label %16
12: ; preds = %9
%13 = load i32, ptr %8, align 4
%14 = load i32, ptr %7, align 4
%15 = icmp slt i32 %13, %14
br label %16
16: ; preds = %12, %9
%17 = phi i1 [ false, %9 ], [ %15, %12 ]
br i1 %17, label %18, label %47
18: ; preds = %16
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %8, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
%23 = load i8, ptr %22, align 1
%24 = zext i8 %23 to i32
%25 = load ptr, ptr %6, align 8
%26 = load i32, ptr %8, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
%29 = load i8, ptr %28, align 1
%30 = zext i8 %29 to i32
%31 = icmp ne i32 %24, %30
br i1 %31, label %32, label %33
32: ; preds = %18
store i32 0, ptr %4, align 4
br label %48
33: ; preds = %18
%34 = load ptr, ptr %5, align 8
%35 = load i32, ptr %8, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
%38 = load i8, ptr %37, align 1
%39 = zext i8 %38 to i32
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %42
41: ; preds = %33
store i32 1, ptr %4, align 4
br label %48
42: ; preds = %33
br label %43
43: ; preds = %42
br label %44
44: ; preds = %43
%45 = load i32, ptr %8, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %8, align 4
br label %9, !llvm.loop !6
47: ; preds = %16
store i32 1, ptr %4, align 4
br label %48
48: ; preds = %47, %41, %32
%49 = load i32, ptr %4, align 4
ret i32 %49
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpgmr9ngul.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strncmp(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %9
9: ; preds = %44, %3
%10 = load i32, ptr %8, align 4
%11 = icmp slt i32 %10, 256
br i1 %11, label %12, label %16
12: ; preds = %9
%13 = load i32, ptr %8, align 4
%14 = load i32, ptr %7, align 4
%15 = icmp slt i32 %13, %14
br label %16
16: ; preds = %12, %9
%17 = phi i1 [ false, %9 ], [ %15, %12 ]
br i1 %17, label %18, label %47
18: ; preds = %16
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %8, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
%23 = load i8, ptr %22, align 1
%24 = zext i8 %23 to i32
%25 = load ptr, ptr %6, align 8
%26 = load i32, ptr %8, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
%29 = load i8, ptr %28, align 1
%30 = zext i8 %29 to i32
%31 = icmp ne i32 %24, %30
br i1 %31, label %32, label %33
32: ; preds = %18
store i32 0, ptr %4, align 4
br label %48
33: ; preds = %18
%34 = load ptr, ptr %5, align 8
%35 = load i32, ptr %8, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
%38 = load i8, ptr %37, align 1
%39 = zext i8 %38 to i32
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %42
41: ; preds = %33
store i32 1, ptr %4, align 4
br label %48
42: ; preds = %33
br label %43
43: ; preds = %42
br label %44
44: ; preds = %43
%45 = load i32, ptr %8, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %8, align 4
br label %9, !llvm.loop !6
47: ; preds = %16
store i32 1, ptr %4, align 4
br label %48
48: ; preds = %47, %41, %32
%49 = load i32, ptr %4, align 4
ret i32 %49
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpwgbxojc2.c'
source_filename = "/tmp/tmpwgbxojc2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@gen_iface_msg.if_msg = internal global [20 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [15 x i8] c"all interfaces\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @gen_iface_msg(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = call i32 @strcpy(ptr noundef @gen_iface_msg.if_msg, ptr noundef @.str)
br label %10
7: ; preds = %1
%8 = load ptr, ptr %2, align 8
%9 = call i32 @strncpy(ptr noundef @gen_iface_msg.if_msg, ptr noundef %8, i32 noundef 20)
br label %10
10: ; preds = %7, %5
ret ptr @gen_iface_msg.if_msg
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwgbxojc2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@gen_iface_msg.if_msg = internal global [20 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [15 x i8] c"all interfaces\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @gen_iface_msg(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = call i32 @strcpy(ptr noundef @gen_iface_msg.if_msg, ptr noundef @.str)
br label %10
7: ; preds = %1
%8 = load ptr, ptr %2, align 8
%9 = call i32 @strncpy(ptr noundef @gen_iface_msg.if_msg, ptr noundef %8, i32 noundef 20)
br label %10
10: ; preds = %7, %5
ret ptr @gen_iface_msg.if_msg
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsh7_db1i.c'
source_filename = "/tmp/tmpsh7_db1i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsh7_db1i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpaz_of9k1.c'
source_filename = "/tmp/tmpaz_of9k1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaz_of9k1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpubn3_bdx.c'
source_filename = "/tmp/tmpubn3_bdx.c"
target datalayout = "e-m:e-p270: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/tmpubn3_bdx.c"
target datalayout = "e-m:e-p270: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/tmpp7eh0ouo.c'
source_filename = "/tmp/tmpp7eh0ouo.c"
target datalayout = "e-m:e-p270: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/tmpp7eh0ouo.c"
target datalayout = "e-m:e-p270: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/tmpplghypv9.c'
source_filename = "/tmp/tmpplghypv9.c"
target datalayout = "e-m:e-p270: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 [54 x i8] c"pthread_mutex_lock error [%d]! Aborting immediately!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @safe_mutex_lock(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @pthread_mutex_lock(ptr noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %13
8: ; preds = %1
%9 = load i32, ptr @stderr, align 4
%10 = load i32, ptr %3, 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 @pthread_mutex_lock(ptr 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/tmpplghypv9.c"
target datalayout = "e-m:e-p270: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 [54 x i8] c"pthread_mutex_lock error [%d]! Aborting immediately!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @safe_mutex_lock(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @pthread_mutex_lock(ptr noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %13
8: ; preds = %1
%9 = load i32, ptr @stderr, align 4
%10 = load i32, ptr %3, 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 @pthread_mutex_lock(ptr 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/tmpe8mnther.c'
source_filename = "/tmp/tmpe8mnther.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ptr_list_append(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @ptr_list_append_check(ptr noundef %7, ptr noundef %8, ptr noundef %9)
ret void
}
declare i32 @ptr_list_append_check(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe8mnther.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ptr_list_append(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @ptr_list_append_check(ptr noundef %7, ptr noundef %8, ptr noundef %9)
ret void
}
declare i32 @ptr_list_append_check(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpejao5pcl.c'
source_filename = "/tmp/tmpejao5pcl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wcc_Cigebs2d(i32 noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5, i32 noundef %6) #0 {
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
store i32 %0, ptr %8, align 4
store ptr %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store i32 %3, ptr %11, align 4
store i32 %4, ptr %12, align 4
store ptr %5, ptr %13, align 8
store i32 %6, ptr %14, align 4
%15 = load i32, ptr %8, align 4
%16 = load ptr, ptr %9, align 8
%17 = load ptr, ptr %10, align 8
%18 = load i32, ptr %11, align 4
%19 = load i32, ptr %12, align 4
%20 = load ptr, ptr %13, align 8
%21 = load i32, ptr %14, align 4
%22 = call i32 @Cigebs2d(i32 noundef %15, ptr noundef %16, ptr noundef %17, i32 noundef %18, i32 noundef %19, ptr noundef %20, i32 noundef %21)
ret void
}
declare i32 @Cigebs2d(i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpejao5pcl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wcc_Cigebs2d(i32 noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5, i32 noundef %6) #0 {
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
store i32 %0, ptr %8, align 4
store ptr %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store i32 %3, ptr %11, align 4
store i32 %4, ptr %12, align 4
store ptr %5, ptr %13, align 8
store i32 %6, ptr %14, align 4
%15 = load i32, ptr %8, align 4
%16 = load ptr, ptr %9, align 8
%17 = load ptr, ptr %10, align 8
%18 = load i32, ptr %11, align 4
%19 = load i32, ptr %12, align 4
%20 = load ptr, ptr %13, align 8
%21 = load i32, ptr %14, align 4
%22 = call i32 @Cigebs2d(i32 noundef %15, ptr noundef %16, ptr noundef %17, i32 noundef %18, i32 noundef %19, ptr noundef %20, i32 noundef %21)
ret void
}
declare i32 @Cigebs2d(i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvbv6my6a.c'
source_filename = "/tmp/tmpvbv6my6a.c"
target datalayout = "e-m:e-p270: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/tmpvbv6my6a.c"
target datalayout = "e-m:e-p270: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/tmpua1l_egr.c'
source_filename = "/tmp/tmpua1l_egr.c"
target datalayout = "e-m:e-p270: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/tmpua1l_egr.c"
target datalayout = "e-m:e-p270: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/tmpebqjdqtr.c'
source_filename = "/tmp/tmpebqjdqtr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @aes_main() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @do_testsuite()
store i32 %2, ptr %1, align 4
%3 = call i64 @AES128_set_hw(i32 noundef 1)
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %11
5: ; preds = %0
%6 = call i64 @AES128_set_hw(i32 noundef 0)
%7 = call i32 @AES_CBC_set_hw(i32 noundef 0)
%8 = call i32 (...) @do_testsuite()
%9 = load i32, ptr %1, align 4
%10 = or i32 %9, %8
store i32 %10, ptr %1, align 4
br label %11
11: ; preds = %5, %0
%12 = call i64 @AES128_set_hw(i32 noundef -1)
%13 = call i32 @AES_CBC_set_hw(i32 noundef -1)
%14 = load i32, ptr %1, align 4
ret i32 %14
}
declare i32 @do_testsuite(...) #1
declare i64 @AES128_set_hw(i32 noundef) #1
declare i32 @AES_CBC_set_hw(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/tmpebqjdqtr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @aes_main() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @do_testsuite()
store i32 %2, ptr %1, align 4
%3 = call i64 @AES128_set_hw(i32 noundef 1)
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %11
5: ; preds = %0
%6 = call i64 @AES128_set_hw(i32 noundef 0)
%7 = call i32 @AES_CBC_set_hw(i32 noundef 0)
%8 = call i32 (...) @do_testsuite()
%9 = load i32, ptr %1, align 4
%10 = or i32 %9, %8
store i32 %10, ptr %1, align 4
br label %11
11: ; preds = %5, %0
%12 = call i64 @AES128_set_hw(i32 noundef -1)
%13 = call i32 @AES_CBC_set_hw(i32 noundef -1)
%14 = load i32, ptr %1, align 4
ret i32 %14
}
declare i32 @do_testsuite(...) #1
declare i64 @AES128_set_hw(i32 noundef) #1
declare i32 @AES_CBC_set_hw(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/tmpcfa60lll.c'
source_filename = "/tmp/tmpcfa60lll.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @MAG_PcupLow(ptr noundef %0, ptr noundef %1, double noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca double, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store double %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
%19 = load ptr, ptr %6, align 8
%20 = getelementptr inbounds double, ptr %19, i64 0
store double 1.000000e+00, ptr %20, align 8
%21 = load ptr, ptr %7, align 8
%22 = getelementptr inbounds double, ptr %21, i64 0
store double 0.000000e+00, ptr %22, align 8
%23 = load double, ptr %8, align 8
%24 = fsub double 1.000000e+00, %23
%25 = load double, ptr %8, align 8
%26 = fadd double 1.000000e+00, %25
%27 = fmul double %24, %26
%28 = call double @sqrt(double noundef %27) #4
store double %28, ptr %17, align 8
%29 = load i32, ptr %9, align 4
%30 = add nsw i32 %29, 1
%31 = load i32, ptr %9, align 4
%32 = add nsw i32 %31, 2
%33 = mul nsw i32 %30, %32
%34 = sdiv i32 %33, 2
store i32 %34, ptr %15, align 4
%35 = load i32, ptr %15, align 4
%36 = add nsw i32 %35, 1
%37 = sext i32 %36 to i64
%38 = mul i64 %37, 8
%39 = trunc i64 %38 to i32
%40 = call i64 @malloc(i32 noundef %39)
%41 = inttoptr i64 %40 to ptr
store ptr %41, ptr %18, align 8
%42 = load ptr, ptr %18, align 8
%43 = icmp eq ptr %42, null
br i1 %43, label %44, label %46
44: ; preds = %4
%45 = call i32 @MAG_Error(i32 noundef 19)
store i32 0, ptr %5, align 4
br label %435
46: ; preds = %4
store i32 1, ptr %10, align 4
br label %47
47: ; preds = %281, %46
%48 = load i32, ptr %10, align 4
%49 = load i32, ptr %9, align 4
%50 = icmp sle i32 %48, %49
br i1 %50, label %51, label %284
51: ; preds = %47
store i32 0, ptr %11, align 4
br label %52
52: ; preds = %277, %51
%53 = load i32, ptr %11, align 4
%54 = load i32, ptr %10, align 4
%55 = icmp sle i32 %53, %54
br i1 %55, label %56, label %280
56: ; preds = %52
%57 = load i32, ptr %10, align 4
%58 = load i32, ptr %10, align 4
%59 = add nsw i32 %58, 1
%60 = mul nsw i32 %57, %59
%61 = sdiv i32 %60, 2
%62 = load i32, ptr %11, align 4
%63 = add nsw i32 %61, %62
store i32 %63, ptr %12, align 4
%64 = load i32, ptr %10, align 4
%65 = load i32, ptr %11, align 4
%66 = icmp eq i32 %64, %65
br i1 %66, label %67, label %105
67: ; preds = %56
%68 = load i32, ptr %10, align 4
%69 = sub nsw i32 %68, 1
%70 = load i32, ptr %10, align 4
%71 = mul nsw i32 %69, %70
%72 = sdiv i32 %71, 2
%73 = load i32, ptr %11, align 4
%74 = add nsw i32 %72, %73
%75 = sub nsw i32 %74, 1
store i32 %75, ptr %13, align 4
%76 = load double, ptr %17, align 8
%77 = load ptr, ptr %6, align 8
%78 = load i32, ptr %13, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds double, ptr %77, i64 %79
%81 = load double, ptr %80, align 8
%82 = fmul double %76, %81
%83 = load ptr, ptr %6, align 8
%84 = load i32, ptr %12, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds double, ptr %83, i64 %85
store double %82, ptr %86, align 8
%87 = load double, ptr %17, align 8
%88 = load ptr, ptr %7, align 8
%89 = load i32, ptr %13, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds double, ptr %88, i64 %90
%92 = load double, ptr %91, align 8
%93 = load double, ptr %8, align 8
%94 = load ptr, ptr %6, align 8
%95 = load i32, ptr %13, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds double, ptr %94, i64 %96
%98 = load double, ptr %97, align 8
%99 = fmul double %93, %98
%100 = call double @llvm.fmuladd.f64(double %87, double %92, double %99)
%101 = load ptr, ptr %7, align 8
%102 = load i32, ptr %12, align 4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds double, ptr %101, i64 %103
store double %100, ptr %104, align 8
br label %276
105: ; preds = %56
%106 = load i32, ptr %10, align 4
%107 = icmp eq i32 %106, 1
br i1 %107, label %108, label %149
108: ; preds = %105
%109 = load i32, ptr %11, align 4
%110 = icmp eq i32 %109, 0
br i1 %110, label %111, label %149
111: ; preds = %108
%112 = load i32, ptr %10, align 4
%113 = sub nsw i32 %112, 1
%114 = load i32, ptr %10, align 4
%115 = mul nsw i32 %113, %114
%116 = sdiv i32 %115, 2
%117 = load i32, ptr %11, align 4
%118 = add nsw i32 %116, %117
store i32 %118, ptr %13, align 4
%119 = load double, ptr %8, align 8
%120 = load ptr, ptr %6, align 8
%121 = load i32, ptr %13, align 4
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds double, ptr %120, i64 %122
%124 = load double, ptr %123, align 8
%125 = fmul double %119, %124
%126 = load ptr, ptr %6, align 8
%127 = load i32, ptr %12, align 4
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds double, ptr %126, i64 %128
store double %125, ptr %129, align 8
%130 = load double, ptr %8, align 8
%131 = load ptr, ptr %7, align 8
%132 = load i32, ptr %13, align 4
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds double, ptr %131, i64 %133
%135 = load double, ptr %134, align 8
%136 = load double, ptr %17, align 8
%137 = load ptr, ptr %6, align 8
%138 = load i32, ptr %13, align 4
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds double, ptr %137, i64 %139
%141 = load double, ptr %140, align 8
%142 = fmul double %136, %141
%143 = fneg double %142
%144 = call double @llvm.fmuladd.f64(double %130, double %135, double %143)
%145 = load ptr, ptr %7, align 8
%146 = load i32, ptr %12, align 4
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds double, ptr %145, i64 %147
store double %144, ptr %148, align 8
br label %275
149: ; preds = %108, %105
%150 = load i32, ptr %10, align 4
%151 = icmp sgt i32 %150, 1
br i1 %151, label %152, label %274
152: ; preds = %149
%153 = load i32, ptr %10, align 4
%154 = load i32, ptr %11, align 4
%155 = icmp ne i32 %153, %154
br i1 %155, label %156, label %274
156: ; preds = %152
%157 = load i32, ptr %10, align 4
%158 = sub nsw i32 %157, 2
%159 = load i32, ptr %10, align 4
%160 = sub nsw i32 %159, 1
%161 = mul nsw i32 %158, %160
%162 = sdiv i32 %161, 2
%163 = load i32, ptr %11, align 4
%164 = add nsw i32 %162, %163
store i32 %164, ptr %13, align 4
%165 = load i32, ptr %10, align 4
%166 = sub nsw i32 %165, 1
%167 = load i32, ptr %10, align 4
%168 = mul nsw i32 %166, %167
%169 = sdiv i32 %168, 2
%170 = load i32, ptr %11, align 4
%171 = add nsw i32 %169, %170
store i32 %171, ptr %14, align 4
%172 = load i32, ptr %11, align 4
%173 = load i32, ptr %10, align 4
%174 = sub nsw i32 %173, 2
%175 = icmp sgt i32 %172, %174
br i1 %175, label %176, label %207
176: ; preds = %156
%177 = load double, ptr %8, align 8
%178 = load ptr, ptr %6, align 8
%179 = load i32, ptr %14, align 4
%180 = sext i32 %179 to i64
%181 = getelementptr inbounds double, ptr %178, i64 %180
%182 = load double, ptr %181, align 8
%183 = fmul double %177, %182
%184 = load ptr, ptr %6, align 8
%185 = load i32, ptr %12, align 4
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds double, ptr %184, i64 %186
store double %183, ptr %187, align 8
%188 = load double, ptr %8, align 8
%189 = load ptr, ptr %7, align 8
%190 = load i32, ptr %14, align 4
%191 = sext i32 %190 to i64
%192 = getelementptr inbounds double, ptr %189, i64 %191
%193 = load double, ptr %192, align 8
%194 = load double, ptr %17, align 8
%195 = load ptr, ptr %6, align 8
%196 = load i32, ptr %14, align 4
%197 = sext i32 %196 to i64
%198 = getelementptr inbounds double, ptr %195, i64 %197
%199 = load double, ptr %198, align 8
%200 = fmul double %194, %199
%201 = fneg double %200
%202 = call double @llvm.fmuladd.f64(double %188, double %193, double %201)
%203 = load ptr, ptr %7, align 8
%204 = load i32, ptr %12, align 4
%205 = sext i32 %204 to i64
%206 = getelementptr inbounds double, ptr %203, i64 %205
store double %202, ptr %206, align 8
br label %273
207: ; preds = %156
%208 = load i32, ptr %10, align 4
%209 = sub nsw i32 %208, 1
%210 = load i32, ptr %10, align 4
%211 = sub nsw i32 %210, 1
%212 = mul nsw i32 %209, %211
%213 = load i32, ptr %11, align 4
%214 = load i32, ptr %11, align 4
%215 = mul nsw i32 %213, %214
%216 = sub nsw i32 %212, %215
%217 = sitofp i32 %216 to double
%218 = load i32, ptr %10, align 4
%219 = mul nsw i32 2, %218
%220 = sub nsw i32 %219, 1
%221 = load i32, ptr %10, align 4
%222 = mul nsw i32 2, %221
%223 = sub nsw i32 %222, 3
%224 = mul nsw i32 %220, %223
%225 = sitofp i32 %224 to double
%226 = fdiv double %217, %225
store double %226, ptr %16, align 8
%227 = load double, ptr %8, align 8
%228 = load ptr, ptr %6, align 8
%229 = load i32, ptr %14, align 4
%230 = sext i32 %229 to i64
%231 = getelementptr inbounds double, ptr %228, i64 %230
%232 = load double, ptr %231, align 8
%233 = load double, ptr %16, align 8
%234 = load ptr, ptr %6, align 8
%235 = load i32, ptr %13, align 4
%236 = sext i32 %235 to i64
%237 = getelementptr inbounds double, ptr %234, i64 %236
%238 = load double, ptr %237, align 8
%239 = fmul double %233, %238
%240 = fneg double %239
%241 = call double @llvm.fmuladd.f64(double %227, double %232, double %240)
%242 = load ptr, ptr %6, align 8
%243 = load i32, ptr %12, align 4
%244 = sext i32 %243 to i64
%245 = getelementptr inbounds double, ptr %242, i64 %244
store double %241, ptr %245, align 8
%246 = load double, ptr %8, align 8
%247 = load ptr, ptr %7, align 8
%248 = load i32, ptr %14, align 4
%249 = sext i32 %248 to i64
%250 = getelementptr inbounds double, ptr %247, i64 %249
%251 = load double, ptr %250, align 8
%252 = load double, ptr %17, align 8
%253 = load ptr, ptr %6, align 8
%254 = load i32, ptr %14, align 4
%255 = sext i32 %254 to i64
%256 = getelementptr inbounds double, ptr %253, i64 %255
%257 = load double, ptr %256, align 8
%258 = fmul double %252, %257
%259 = fneg double %258
%260 = call double @llvm.fmuladd.f64(double %246, double %251, double %259)
%261 = load double, ptr %16, align 8
%262 = load ptr, ptr %7, align 8
%263 = load i32, ptr %13, align 4
%264 = sext i32 %263 to i64
%265 = getelementptr inbounds double, ptr %262, i64 %264
%266 = load double, ptr %265, align 8
%267 = fneg double %261
%268 = call double @llvm.fmuladd.f64(double %267, double %266, double %260)
%269 = load ptr, ptr %7, align 8
%270 = load i32, ptr %12, align 4
%271 = sext i32 %270 to i64
%272 = getelementptr inbounds double, ptr %269, i64 %271
store double %268, ptr %272, align 8
br label %273
273: ; preds = %207, %176
br label %274
274: ; preds = %273, %152, %149
br label %275
275: ; preds = %274, %111
br label %276
276: ; preds = %275, %67
br label %277
277: ; preds = %276
%278 = load i32, ptr %11, align 4
%279 = add nsw i32 %278, 1
store i32 %279, ptr %11, align 4
br label %52, !llvm.loop !6
280: ; preds = %52
br label %281
281: ; preds = %280
%282 = load i32, ptr %10, align 4
%283 = add nsw i32 %282, 1
store i32 %283, ptr %10, align 4
br label %47, !llvm.loop !8
284: ; preds = %47
%285 = load ptr, ptr %18, align 8
%286 = getelementptr inbounds double, ptr %285, i64 0
store double 1.000000e+00, ptr %286, align 8
store i32 1, ptr %10, align 4
br label %287
287: ; preds = %369, %284
%288 = load i32, ptr %10, align 4
%289 = load i32, ptr %9, align 4
%290 = icmp sle i32 %288, %289
br i1 %290, label %291, label %372
291: ; preds = %287
%292 = load i32, ptr %10, align 4
%293 = load i32, ptr %10, align 4
%294 = add nsw i32 %293, 1
%295 = mul nsw i32 %292, %294
%296 = sdiv i32 %295, 2
store i32 %296, ptr %12, align 4
%297 = load i32, ptr %10, align 4
%298 = sub nsw i32 %297, 1
%299 = load i32, ptr %10, align 4
%300 = mul nsw i32 %298, %299
%301 = sdiv i32 %300, 2
store i32 %301, ptr %13, align 4
%302 = load ptr, ptr %18, align 8
%303 = load i32, ptr %13, align 4
%304 = sext i32 %303 to i64
%305 = getelementptr inbounds double, ptr %302, i64 %304
%306 = load double, ptr %305, align 8
%307 = load i32, ptr %10, align 4
%308 = mul nsw i32 2, %307
%309 = sub nsw i32 %308, 1
%310 = sitofp i32 %309 to double
%311 = fmul double %306, %310
%312 = load i32, ptr %10, align 4
%313 = sitofp i32 %312 to double
%314 = fdiv double %311, %313
%315 = load ptr, ptr %18, align 8
%316 = load i32, ptr %12, align 4
%317 = sext i32 %316 to i64
%318 = getelementptr inbounds double, ptr %315, i64 %317
store double %314, ptr %318, align 8
store i32 1, ptr %11, align 4
br label %319
319: ; preds = %365, %291
%320 = load i32, ptr %11, align 4
%321 = load i32, ptr %10, align 4
%322 = icmp sle i32 %320, %321
br i1 %322, label %323, label %368
323: ; preds = %319
%324 = load i32, ptr %10, align 4
%325 = load i32, ptr %10, align 4
%326 = add nsw i32 %325, 1
%327 = mul nsw i32 %324, %326
%328 = sdiv i32 %327, 2
%329 = load i32, ptr %11, align 4
%330 = add nsw i32 %328, %329
store i32 %330, ptr %12, align 4
%331 = load i32, ptr %10, align 4
%332 = load i32, ptr %10, align 4
%333 = add nsw i32 %332, 1
%334 = mul nsw i32 %331, %333
%335 = sdiv i32 %334, 2
%336 = load i32, ptr %11, align 4
%337 = add nsw i32 %335, %336
%338 = sub nsw i32 %337, 1
store i32 %338, ptr %13, align 4
%339 = load ptr, ptr %18, align 8
%340 = load i32, ptr %13, align 4
%341 = sext i32 %340 to i64
%342 = getelementptr inbounds double, ptr %339, i64 %341
%343 = load double, ptr %342, align 8
%344 = load i32, ptr %10, align 4
%345 = load i32, ptr %11, align 4
%346 = sub nsw i32 %344, %345
%347 = add nsw i32 %346, 1
%348 = load i32, ptr %11, align 4
%349 = icmp eq i32 %348, 1
%350 = zext i1 %349 to i64
%351 = select i1 %349, i32 2, i32 1
%352 = mul nsw i32 %347, %351
%353 = sitofp i32 %352 to double
%354 = load i32, ptr %10, align 4
%355 = load i32, ptr %11, align 4
%356 = add nsw i32 %354, %355
%357 = sitofp i32 %356 to double
%358 = fdiv double %353, %357
%359 = call double @sqrt(double noundef %358) #4
%360 = fmul double %343, %359
%361 = load ptr, ptr %18, align 8
%362 = load i32, ptr %12, align 4
%363 = sext i32 %362 to i64
%364 = getelementptr inbounds double, ptr %361, i64 %363
store double %360, ptr %364, align 8
br label %365
365: ; preds = %323
%366 = load i32, ptr %11, align 4
%367 = add nsw i32 %366, 1
store i32 %367, ptr %11, align 4
br label %319, !llvm.loop !9
368: ; preds = %319
br label %369
369: ; preds = %368
%370 = load i32, ptr %10, align 4
%371 = add nsw i32 %370, 1
store i32 %371, ptr %10, align 4
br label %287, !llvm.loop !10
372: ; preds = %287
store i32 1, ptr %10, align 4
br label %373
373: ; preds = %425, %372
%374 = load i32, ptr %10, align 4
%375 = load i32, ptr %9, align 4
%376 = icmp sle i32 %374, %375
br i1 %376, label %377, label %428
377: ; preds = %373
store i32 0, ptr %11, align 4
br label %378
378: ; preds = %421, %377
%379 = load i32, ptr %11, align 4
%380 = load i32, ptr %10, align 4
%381 = icmp sle i32 %379, %380
br i1 %381, label %382, label %424
382: ; preds = %378
%383 = load i32, ptr %10, align 4
%384 = load i32, ptr %10, align 4
%385 = add nsw i32 %384, 1
%386 = mul nsw i32 %383, %385
%387 = sdiv i32 %386, 2
%388 = load i32, ptr %11, align 4
%389 = add nsw i32 %387, %388
store i32 %389, ptr %12, align 4
%390 = load ptr, ptr %6, align 8
%391 = load i32, ptr %12, align 4
%392 = sext i32 %391 to i64
%393 = getelementptr inbounds double, ptr %390, i64 %392
%394 = load double, ptr %393, align 8
%395 = load ptr, ptr %18, align 8
%396 = load i32, ptr %12, align 4
%397 = sext i32 %396 to i64
%398 = getelementptr inbounds double, ptr %395, i64 %397
%399 = load double, ptr %398, align 8
%400 = fmul double %394, %399
%401 = load ptr, ptr %6, align 8
%402 = load i32, ptr %12, align 4
%403 = sext i32 %402 to i64
%404 = getelementptr inbounds double, ptr %401, i64 %403
store double %400, ptr %404, align 8
%405 = load ptr, ptr %7, align 8
%406 = load i32, ptr %12, align 4
%407 = sext i32 %406 to i64
%408 = getelementptr inbounds double, ptr %405, i64 %407
%409 = load double, ptr %408, align 8
%410 = fneg double %409
%411 = load ptr, ptr %18, align 8
%412 = load i32, ptr %12, align 4
%413 = sext i32 %412 to i64
%414 = getelementptr inbounds double, ptr %411, i64 %413
%415 = load double, ptr %414, align 8
%416 = fmul double %410, %415
%417 = load ptr, ptr %7, align 8
%418 = load i32, ptr %12, align 4
%419 = sext i32 %418 to i64
%420 = getelementptr inbounds double, ptr %417, i64 %419
store double %416, ptr %420, align 8
br label %421
421: ; preds = %382
%422 = load i32, ptr %11, align 4
%423 = add nsw i32 %422, 1
store i32 %423, ptr %11, align 4
br label %378, !llvm.loop !11
424: ; preds = %378
br label %425
425: ; preds = %424
%426 = load i32, ptr %10, align 4
%427 = add nsw i32 %426, 1
store i32 %427, ptr %10, align 4
br label %373, !llvm.loop !12
428: ; preds = %373
%429 = load ptr, ptr %18, align 8
%430 = icmp ne ptr %429, null
br i1 %430, label %431, label %434
431: ; preds = %428
%432 = load ptr, ptr %18, align 8
%433 = call i32 @free(ptr noundef %432)
br label %434
434: ; preds = %431, %428
store i32 1, ptr %5, align 4
br label %435
435: ; preds = %434, %44
%436 = load i32, ptr %5, align 4
ret i32 %436
}
; Function Attrs: nounwind
declare double @sqrt(double noundef) #1
declare i64 @malloc(i32 noundef) #2
declare i32 @MAG_Error(i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
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 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcfa60lll.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @MAG_PcupLow(ptr noundef %0, ptr noundef %1, double noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca double, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store double %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
%19 = load ptr, ptr %6, align 8
%20 = getelementptr inbounds double, ptr %19, i64 0
store double 1.000000e+00, ptr %20, align 8
%21 = load ptr, ptr %7, align 8
%22 = getelementptr inbounds double, ptr %21, i64 0
store double 0.000000e+00, ptr %22, align 8
%23 = load double, ptr %8, align 8
%24 = fsub double 1.000000e+00, %23
%25 = load double, ptr %8, align 8
%26 = fadd double 1.000000e+00, %25
%27 = fmul double %24, %26
%28 = call double @sqrt(double noundef %27) #4
store double %28, ptr %17, align 8
%29 = load i32, ptr %9, align 4
%30 = add nsw i32 %29, 1
%31 = load i32, ptr %9, align 4
%32 = add nsw i32 %31, 2
%33 = mul nsw i32 %30, %32
%34 = sdiv i32 %33, 2
store i32 %34, ptr %15, align 4
%35 = load i32, ptr %15, align 4
%36 = add nsw i32 %35, 1
%37 = sext i32 %36 to i64
%38 = mul i64 %37, 8
%39 = trunc i64 %38 to i32
%40 = call i64 @malloc(i32 noundef %39)
%41 = inttoptr i64 %40 to ptr
store ptr %41, ptr %18, align 8
%42 = load ptr, ptr %18, align 8
%43 = icmp eq ptr %42, null
br i1 %43, label %44, label %46
44: ; preds = %4
%45 = call i32 @MAG_Error(i32 noundef 19)
store i32 0, ptr %5, align 4
br label %447
46: ; preds = %4
store i32 1, ptr %10, align 4
%47 = load i32, ptr %10, align 4
%48 = load i32, ptr %9, align 4
%49 = icmp sle i32 %47, %48
br i1 %49, label %.lr.ph2, label %288
.lr.ph2: ; preds = %46
br label %50
50: ; preds = %.lr.ph2, %282
store i32 0, ptr %11, align 4
%51 = load i32, ptr %11, align 4
%52 = load i32, ptr %10, align 4
%53 = icmp sle i32 %51, %52
br i1 %53, label %.lr.ph, label %281
.lr.ph: ; preds = %50
br label %54
54: ; preds = %.lr.ph, %275
%55 = load i32, ptr %10, align 4
%56 = load i32, ptr %10, align 4
%57 = add nsw i32 %56, 1
%58 = mul nsw i32 %55, %57
%59 = sdiv i32 %58, 2
%60 = load i32, ptr %11, align 4
%61 = add nsw i32 %59, %60
store i32 %61, ptr %12, align 4
%62 = load i32, ptr %10, align 4
%63 = load i32, ptr %11, align 4
%64 = icmp eq i32 %62, %63
br i1 %64, label %65, label %103
65: ; preds = %54
%66 = load i32, ptr %10, align 4
%67 = sub nsw i32 %66, 1
%68 = load i32, ptr %10, align 4
%69 = mul nsw i32 %67, %68
%70 = sdiv i32 %69, 2
%71 = load i32, ptr %11, align 4
%72 = add nsw i32 %70, %71
%73 = sub nsw i32 %72, 1
store i32 %73, ptr %13, align 4
%74 = load double, ptr %17, align 8
%75 = load ptr, ptr %6, align 8
%76 = load i32, ptr %13, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds double, ptr %75, i64 %77
%79 = load double, ptr %78, align 8
%80 = fmul double %74, %79
%81 = load ptr, ptr %6, align 8
%82 = load i32, ptr %12, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds double, ptr %81, i64 %83
store double %80, ptr %84, align 8
%85 = load double, ptr %17, align 8
%86 = load ptr, ptr %7, align 8
%87 = load i32, ptr %13, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds double, ptr %86, i64 %88
%90 = load double, ptr %89, align 8
%91 = load double, ptr %8, align 8
%92 = load ptr, ptr %6, align 8
%93 = load i32, ptr %13, align 4
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds double, ptr %92, i64 %94
%96 = load double, ptr %95, align 8
%97 = fmul double %91, %96
%98 = call double @llvm.fmuladd.f64(double %85, double %90, double %97)
%99 = load ptr, ptr %7, align 8
%100 = load i32, ptr %12, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds double, ptr %99, i64 %101
store double %98, ptr %102, align 8
br label %274
103: ; preds = %54
%104 = load i32, ptr %10, align 4
%105 = icmp eq i32 %104, 1
br i1 %105, label %106, label %147
106: ; preds = %103
%107 = load i32, ptr %11, align 4
%108 = icmp eq i32 %107, 0
br i1 %108, label %109, label %147
109: ; preds = %106
%110 = load i32, ptr %10, align 4
%111 = sub nsw i32 %110, 1
%112 = load i32, ptr %10, align 4
%113 = mul nsw i32 %111, %112
%114 = sdiv i32 %113, 2
%115 = load i32, ptr %11, align 4
%116 = add nsw i32 %114, %115
store i32 %116, ptr %13, align 4
%117 = load double, ptr %8, align 8
%118 = load ptr, ptr %6, align 8
%119 = load i32, ptr %13, align 4
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds double, ptr %118, i64 %120
%122 = load double, ptr %121, align 8
%123 = fmul double %117, %122
%124 = load ptr, ptr %6, align 8
%125 = load i32, ptr %12, align 4
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds double, ptr %124, i64 %126
store double %123, ptr %127, align 8
%128 = load double, ptr %8, align 8
%129 = load ptr, ptr %7, align 8
%130 = load i32, ptr %13, align 4
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds double, ptr %129, i64 %131
%133 = load double, ptr %132, align 8
%134 = load double, ptr %17, align 8
%135 = load ptr, ptr %6, align 8
%136 = load i32, ptr %13, align 4
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds double, ptr %135, i64 %137
%139 = load double, ptr %138, align 8
%140 = fmul double %134, %139
%141 = fneg double %140
%142 = call double @llvm.fmuladd.f64(double %128, double %133, double %141)
%143 = load ptr, ptr %7, align 8
%144 = load i32, ptr %12, align 4
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds double, ptr %143, i64 %145
store double %142, ptr %146, align 8
br label %273
147: ; preds = %106, %103
%148 = load i32, ptr %10, align 4
%149 = icmp sgt i32 %148, 1
br i1 %149, label %150, label %272
150: ; preds = %147
%151 = load i32, ptr %10, align 4
%152 = load i32, ptr %11, align 4
%153 = icmp ne i32 %151, %152
br i1 %153, label %154, label %272
154: ; preds = %150
%155 = load i32, ptr %10, align 4
%156 = sub nsw i32 %155, 2
%157 = load i32, ptr %10, align 4
%158 = sub nsw i32 %157, 1
%159 = mul nsw i32 %156, %158
%160 = sdiv i32 %159, 2
%161 = load i32, ptr %11, align 4
%162 = add nsw i32 %160, %161
store i32 %162, ptr %13, align 4
%163 = load i32, ptr %10, align 4
%164 = sub nsw i32 %163, 1
%165 = load i32, ptr %10, align 4
%166 = mul nsw i32 %164, %165
%167 = sdiv i32 %166, 2
%168 = load i32, ptr %11, align 4
%169 = add nsw i32 %167, %168
store i32 %169, ptr %14, align 4
%170 = load i32, ptr %11, align 4
%171 = load i32, ptr %10, align 4
%172 = sub nsw i32 %171, 2
%173 = icmp sgt i32 %170, %172
br i1 %173, label %174, label %205
174: ; preds = %154
%175 = load double, ptr %8, align 8
%176 = load ptr, ptr %6, align 8
%177 = load i32, ptr %14, align 4
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds double, ptr %176, i64 %178
%180 = load double, ptr %179, align 8
%181 = fmul double %175, %180
%182 = load ptr, ptr %6, align 8
%183 = load i32, ptr %12, align 4
%184 = sext i32 %183 to i64
%185 = getelementptr inbounds double, ptr %182, i64 %184
store double %181, ptr %185, align 8
%186 = load double, ptr %8, align 8
%187 = load ptr, ptr %7, align 8
%188 = load i32, ptr %14, 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 %17, align 8
%193 = load ptr, ptr %6, align 8
%194 = load i32, ptr %14, align 4
%195 = sext i32 %194 to i64
%196 = getelementptr inbounds double, ptr %193, i64 %195
%197 = load double, ptr %196, align 8
%198 = fmul double %192, %197
%199 = fneg double %198
%200 = call double @llvm.fmuladd.f64(double %186, double %191, double %199)
%201 = load ptr, ptr %7, align 8
%202 = load i32, ptr %12, align 4
%203 = sext i32 %202 to i64
%204 = getelementptr inbounds double, ptr %201, i64 %203
store double %200, ptr %204, align 8
br label %271
205: ; preds = %154
%206 = load i32, ptr %10, align 4
%207 = sub nsw i32 %206, 1
%208 = load i32, ptr %10, align 4
%209 = sub nsw i32 %208, 1
%210 = mul nsw i32 %207, %209
%211 = load i32, ptr %11, align 4
%212 = load i32, ptr %11, align 4
%213 = mul nsw i32 %211, %212
%214 = sub nsw i32 %210, %213
%215 = sitofp i32 %214 to double
%216 = load i32, ptr %10, align 4
%217 = mul nsw i32 2, %216
%218 = sub nsw i32 %217, 1
%219 = load i32, ptr %10, align 4
%220 = mul nsw i32 2, %219
%221 = sub nsw i32 %220, 3
%222 = mul nsw i32 %218, %221
%223 = sitofp i32 %222 to double
%224 = fdiv double %215, %223
store double %224, ptr %16, align 8
%225 = load double, ptr %8, align 8
%226 = load ptr, ptr %6, align 8
%227 = load i32, ptr %14, align 4
%228 = sext i32 %227 to i64
%229 = getelementptr inbounds double, ptr %226, i64 %228
%230 = load double, ptr %229, align 8
%231 = load double, ptr %16, align 8
%232 = load ptr, ptr %6, align 8
%233 = load i32, ptr %13, align 4
%234 = sext i32 %233 to i64
%235 = getelementptr inbounds double, ptr %232, i64 %234
%236 = load double, ptr %235, align 8
%237 = fmul double %231, %236
%238 = fneg double %237
%239 = call double @llvm.fmuladd.f64(double %225, double %230, double %238)
%240 = load ptr, ptr %6, align 8
%241 = load i32, ptr %12, align 4
%242 = sext i32 %241 to i64
%243 = getelementptr inbounds double, ptr %240, i64 %242
store double %239, ptr %243, align 8
%244 = load double, ptr %8, align 8
%245 = load ptr, ptr %7, align 8
%246 = load i32, ptr %14, align 4
%247 = sext i32 %246 to i64
%248 = getelementptr inbounds double, ptr %245, i64 %247
%249 = load double, ptr %248, align 8
%250 = load double, ptr %17, align 8
%251 = load ptr, ptr %6, align 8
%252 = load i32, ptr %14, align 4
%253 = sext i32 %252 to i64
%254 = getelementptr inbounds double, ptr %251, i64 %253
%255 = load double, ptr %254, align 8
%256 = fmul double %250, %255
%257 = fneg double %256
%258 = call double @llvm.fmuladd.f64(double %244, double %249, double %257)
%259 = load double, ptr %16, align 8
%260 = load ptr, ptr %7, align 8
%261 = load i32, ptr %13, align 4
%262 = sext i32 %261 to i64
%263 = getelementptr inbounds double, ptr %260, i64 %262
%264 = load double, ptr %263, align 8
%265 = fneg double %259
%266 = call double @llvm.fmuladd.f64(double %265, double %264, double %258)
%267 = load ptr, ptr %7, align 8
%268 = load i32, ptr %12, align 4
%269 = sext i32 %268 to i64
%270 = getelementptr inbounds double, ptr %267, i64 %269
store double %266, ptr %270, align 8
br label %271
271: ; preds = %205, %174
br label %272
272: ; preds = %271, %150, %147
br label %273
273: ; preds = %272, %109
br label %274
274: ; preds = %273, %65
br label %275
275: ; preds = %274
%276 = load i32, ptr %11, align 4
%277 = add nsw i32 %276, 1
store i32 %277, ptr %11, align 4
%278 = load i32, ptr %11, align 4
%279 = load i32, ptr %10, align 4
%280 = icmp sle i32 %278, %279
br i1 %280, label %54, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %275
br label %281
281: ; preds = %._crit_edge, %50
br label %282
282: ; preds = %281
%283 = load i32, ptr %10, align 4
%284 = add nsw i32 %283, 1
store i32 %284, ptr %10, align 4
%285 = load i32, ptr %10, align 4
%286 = load i32, ptr %9, align 4
%287 = icmp sle i32 %285, %286
br i1 %287, label %50, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %282
br label %288
288: ; preds = %._crit_edge3, %46
%289 = load ptr, ptr %18, align 8
%290 = getelementptr inbounds double, ptr %289, i64 0
store double 1.000000e+00, ptr %290, align 8
store i32 1, ptr %10, align 4
%291 = load i32, ptr %10, align 4
%292 = load i32, ptr %9, align 4
%293 = icmp sle i32 %291, %292
br i1 %293, label %.lr.ph8, label %380
.lr.ph8: ; preds = %288
br label %294
294: ; preds = %.lr.ph8, %374
%295 = load i32, ptr %10, align 4
%296 = load i32, ptr %10, align 4
%297 = add nsw i32 %296, 1
%298 = mul nsw i32 %295, %297
%299 = sdiv i32 %298, 2
store i32 %299, ptr %12, align 4
%300 = load i32, ptr %10, align 4
%301 = sub nsw i32 %300, 1
%302 = load i32, ptr %10, align 4
%303 = mul nsw i32 %301, %302
%304 = sdiv i32 %303, 2
store i32 %304, ptr %13, align 4
%305 = load ptr, ptr %18, align 8
%306 = load i32, ptr %13, align 4
%307 = sext i32 %306 to i64
%308 = getelementptr inbounds double, ptr %305, i64 %307
%309 = load double, ptr %308, align 8
%310 = load i32, ptr %10, align 4
%311 = mul nsw i32 2, %310
%312 = sub nsw i32 %311, 1
%313 = sitofp i32 %312 to double
%314 = fmul double %309, %313
%315 = load i32, ptr %10, align 4
%316 = sitofp i32 %315 to double
%317 = fdiv double %314, %316
%318 = load ptr, ptr %18, align 8
%319 = load i32, ptr %12, align 4
%320 = sext i32 %319 to i64
%321 = getelementptr inbounds double, ptr %318, i64 %320
store double %317, ptr %321, align 8
store i32 1, ptr %11, align 4
%322 = load i32, ptr %11, align 4
%323 = load i32, ptr %10, align 4
%324 = icmp sle i32 %322, %323
br i1 %324, label %.lr.ph5, label %373
.lr.ph5: ; preds = %294
br label %325
325: ; preds = %.lr.ph5, %367
%326 = load i32, ptr %10, align 4
%327 = load i32, ptr %10, align 4
%328 = add nsw i32 %327, 1
%329 = mul nsw i32 %326, %328
%330 = sdiv i32 %329, 2
%331 = load i32, ptr %11, align 4
%332 = add nsw i32 %330, %331
store i32 %332, ptr %12, align 4
%333 = load i32, ptr %10, align 4
%334 = load i32, ptr %10, align 4
%335 = add nsw i32 %334, 1
%336 = mul nsw i32 %333, %335
%337 = sdiv i32 %336, 2
%338 = load i32, ptr %11, align 4
%339 = add nsw i32 %337, %338
%340 = sub nsw i32 %339, 1
store i32 %340, ptr %13, align 4
%341 = load ptr, ptr %18, align 8
%342 = load i32, ptr %13, align 4
%343 = sext i32 %342 to i64
%344 = getelementptr inbounds double, ptr %341, i64 %343
%345 = load double, ptr %344, align 8
%346 = load i32, ptr %10, align 4
%347 = load i32, ptr %11, align 4
%348 = sub nsw i32 %346, %347
%349 = add nsw i32 %348, 1
%350 = load i32, ptr %11, align 4
%351 = icmp eq i32 %350, 1
%352 = zext i1 %351 to i64
%353 = select i1 %351, i32 2, i32 1
%354 = mul nsw i32 %349, %353
%355 = sitofp i32 %354 to double
%356 = load i32, ptr %10, align 4
%357 = load i32, ptr %11, align 4
%358 = add nsw i32 %356, %357
%359 = sitofp i32 %358 to double
%360 = fdiv double %355, %359
%361 = call double @sqrt(double noundef %360) #4
%362 = fmul double %345, %361
%363 = load ptr, ptr %18, align 8
%364 = load i32, ptr %12, align 4
%365 = sext i32 %364 to i64
%366 = getelementptr inbounds double, ptr %363, i64 %365
store double %362, ptr %366, align 8
br label %367
367: ; preds = %325
%368 = load i32, ptr %11, align 4
%369 = add nsw i32 %368, 1
store i32 %369, ptr %11, align 4
%370 = load i32, ptr %11, align 4
%371 = load i32, ptr %10, align 4
%372 = icmp sle i32 %370, %371
br i1 %372, label %325, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %367
br label %373
373: ; preds = %._crit_edge6, %294
br label %374
374: ; preds = %373
%375 = load i32, ptr %10, align 4
%376 = add nsw i32 %375, 1
store i32 %376, ptr %10, align 4
%377 = load i32, ptr %10, align 4
%378 = load i32, ptr %9, align 4
%379 = icmp sle i32 %377, %378
br i1 %379, label %294, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %374
br label %380
380: ; preds = %._crit_edge9, %288
store i32 1, ptr %10, align 4
%381 = load i32, ptr %10, align 4
%382 = load i32, ptr %9, align 4
%383 = icmp sle i32 %381, %382
br i1 %383, label %.lr.ph14, label %440
.lr.ph14: ; preds = %380
br label %384
384: ; preds = %.lr.ph14, %434
store i32 0, ptr %11, align 4
%385 = load i32, ptr %11, align 4
%386 = load i32, ptr %10, align 4
%387 = icmp sle i32 %385, %386
br i1 %387, label %.lr.ph11, label %433
.lr.ph11: ; preds = %384
br label %388
388: ; preds = %.lr.ph11, %427
%389 = load i32, ptr %10, align 4
%390 = load i32, ptr %10, align 4
%391 = add nsw i32 %390, 1
%392 = mul nsw i32 %389, %391
%393 = sdiv i32 %392, 2
%394 = load i32, ptr %11, align 4
%395 = add nsw i32 %393, %394
store i32 %395, ptr %12, align 4
%396 = load ptr, ptr %6, align 8
%397 = load i32, ptr %12, align 4
%398 = sext i32 %397 to i64
%399 = getelementptr inbounds double, ptr %396, i64 %398
%400 = load double, ptr %399, align 8
%401 = load ptr, ptr %18, align 8
%402 = load i32, ptr %12, align 4
%403 = sext i32 %402 to i64
%404 = getelementptr inbounds double, ptr %401, i64 %403
%405 = load double, ptr %404, align 8
%406 = fmul double %400, %405
%407 = load ptr, ptr %6, align 8
%408 = load i32, ptr %12, align 4
%409 = sext i32 %408 to i64
%410 = getelementptr inbounds double, ptr %407, i64 %409
store double %406, ptr %410, align 8
%411 = load ptr, ptr %7, align 8
%412 = load i32, ptr %12, align 4
%413 = sext i32 %412 to i64
%414 = getelementptr inbounds double, ptr %411, i64 %413
%415 = load double, ptr %414, align 8
%416 = fneg double %415
%417 = load ptr, ptr %18, align 8
%418 = load i32, ptr %12, align 4
%419 = sext i32 %418 to i64
%420 = getelementptr inbounds double, ptr %417, i64 %419
%421 = load double, ptr %420, align 8
%422 = fmul double %416, %421
%423 = load ptr, ptr %7, align 8
%424 = load i32, ptr %12, align 4
%425 = sext i32 %424 to i64
%426 = getelementptr inbounds double, ptr %423, i64 %425
store double %422, ptr %426, align 8
br label %427
427: ; preds = %388
%428 = load i32, ptr %11, align 4
%429 = add nsw i32 %428, 1
store i32 %429, ptr %11, align 4
%430 = load i32, ptr %11, align 4
%431 = load i32, ptr %10, align 4
%432 = icmp sle i32 %430, %431
br i1 %432, label %388, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %427
br label %433
433: ; preds = %._crit_edge12, %384
br label %434
434: ; preds = %433
%435 = load i32, ptr %10, align 4
%436 = add nsw i32 %435, 1
store i32 %436, ptr %10, align 4
%437 = load i32, ptr %10, align 4
%438 = load i32, ptr %9, align 4
%439 = icmp sle i32 %437, %438
br i1 %439, label %384, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %434
br label %440
440: ; preds = %._crit_edge15, %380
%441 = load ptr, ptr %18, align 8
%442 = icmp ne ptr %441, null
br i1 %442, label %443, label %446
443: ; preds = %440
%444 = load ptr, ptr %18, align 8
%445 = call i32 @free(ptr noundef %444)
br label %446
446: ; preds = %443, %440
store i32 1, ptr %5, align 4
br label %447
447: ; preds = %446, %44
%448 = load i32, ptr %5, align 4
ret i32 %448
}
; Function Attrs: nounwind
declare double @sqrt(double noundef) #1
declare i64 @malloc(i32 noundef) #2
declare i32 @MAG_Error(i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
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 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmpyje51rbv.c'
source_filename = "/tmp/tmpyje51rbv.c"
target datalayout = "e-m:e-p270: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/tmpyje51rbv.c"
target datalayout = "e-m:e-p270: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/tmp1bfaf8go.c'
source_filename = "/tmp/tmp1bfaf8go.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stdlib_strided_sdssum(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 float @stdlib_strided_sdssumpw(i32 noundef %7, ptr noundef %8, i32 noundef %9)
ret float %10
}
declare float @stdlib_strided_sdssumpw(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/tmp1bfaf8go.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stdlib_strided_sdssum(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 float @stdlib_strided_sdssumpw(i32 noundef %7, ptr noundef %8, i32 noundef %9)
ret float %10
}
declare float @stdlib_strided_sdssumpw(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/tmpn7t040x3.c'
source_filename = "/tmp/tmpn7t040x3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"Usage: compiler-arm <inputfile>\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"Unable to read file\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 2
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 @err(ptr noundef @.str)
br label %11
11: ; preds = %9, %2
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = call ptr @read_file(ptr noundef %14)
store ptr %15, ptr %6, align 8
%16 = load ptr, ptr %6, align 8
%17 = icmp eq ptr %16, null
br i1 %17, label %18, label %20
18: ; preds = %11
%19 = call i32 @err(ptr noundef @.str.1)
br label %20
20: ; preds = %18, %11
%21 = load ptr, ptr %6, align 8
%22 = call i32 @compile(ptr noundef %21)
%23 = load ptr, ptr %6, align 8
%24 = call i32 @free(ptr noundef %23)
%25 = load i32, ptr %3, align 4
ret i32 %25
}
declare i32 @err(ptr noundef) #1
declare ptr @read_file(ptr noundef) #1
declare i32 @compile(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/tmpn7t040x3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"Usage: compiler-arm <inputfile>\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"Unable to read file\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 2
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 @err(ptr noundef @.str)
br label %11
11: ; preds = %9, %2
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = call ptr @read_file(ptr noundef %14)
store ptr %15, ptr %6, align 8
%16 = load ptr, ptr %6, align 8
%17 = icmp eq ptr %16, null
br i1 %17, label %18, label %20
18: ; preds = %11
%19 = call i32 @err(ptr noundef @.str.1)
br label %20
20: ; preds = %18, %11
%21 = load ptr, ptr %6, align 8
%22 = call i32 @compile(ptr noundef %21)
%23 = load ptr, ptr %6, align 8
%24 = call i32 @free(ptr noundef %23)
%25 = load i32, ptr %3, align 4
ret i32 %25
}
declare i32 @err(ptr noundef) #1
declare ptr @read_file(ptr noundef) #1
declare i32 @compile(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/tmp3r5iptir.c'
source_filename = "/tmp/tmp3r5iptir.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @myExit(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @wait(ptr noundef null)
ret void
}
declare i32 @wait(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3r5iptir.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @myExit(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @wait(ptr noundef null)
ret void
}
declare i32 @wait(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6eou0y6c.c'
source_filename = "/tmp/tmp6eou0y6c.c"
target datalayout = "e-m:e-p270: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/tmp6eou0y6c.c"
target datalayout = "e-m:e-p270: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/tmpc4sz807_.c'
source_filename = "/tmp/tmpc4sz807_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"Failed to allocate memory\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @random_string(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = add nsw i32 %5, 1
%7 = zext i32 %6 to i64
%8 = trunc i64 %7 to i32
%9 = call ptr @malloc(i32 noundef %8)
store ptr %9, ptr %4, align 8
%10 = load ptr, ptr %4, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %15, label %12
12: ; preds = %1
%13 = call i32 @printf(ptr noundef @.str)
%14 = call i32 @exit(i32 noundef 1) #3
unreachable
15: ; preds = %1
store i32 0, ptr %3, align 4
br label %16
16: ; preds = %26, %15
%17 = load i32, ptr %3, align 4
%18 = load i32, ptr %2, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %29
20: ; preds = %16
%21 = call signext i8 (...) @random_char()
%22 = load ptr, ptr %4, align 8
%23 = load i32, ptr %3, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %22, i64 %24
store i8 %21, ptr %25, align 1
br label %26
26: ; preds = %20
%27 = load i32, ptr %3, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %3, align 4
br label %16, !llvm.loop !6
29: ; preds = %16
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %2, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %30, i64 %32
store i8 0, ptr %33, align 1
%34 = load ptr, ptr %4, align 8
ret ptr %34
}
declare ptr @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare signext i8 @random_char(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc4sz807_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"Failed to allocate memory\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @random_string(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = add nsw i32 %5, 1
%7 = zext i32 %6 to i64
%8 = trunc i64 %7 to i32
%9 = call ptr @malloc(i32 noundef %8)
store ptr %9, ptr %4, align 8
%10 = load ptr, ptr %4, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %15, label %12
12: ; preds = %1
%13 = call i32 @printf(ptr noundef @.str)
%14 = call i32 @exit(i32 noundef 1) #3
unreachable
15: ; preds = %1
store i32 0, ptr %3, align 4
%16 = load i32, ptr %3, align 4
%17 = load i32, ptr %2, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %.lr.ph, label %31
.lr.ph: ; preds = %15
br label %19
19: ; preds = %.lr.ph, %25
%20 = call signext i8 (...) @random_char()
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %3, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %21, i64 %23
store i8 %20, ptr %24, align 1
br label %25
25: ; preds = %19
%26 = load i32, ptr %3, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %3, align 4
%28 = load i32, ptr %3, align 4
%29 = load i32, ptr %2, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %31
31: ; preds = %._crit_edge, %15
%32 = load ptr, ptr %4, align 8
%33 = load i32, ptr %2, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
store i8 0, ptr %35, align 1
%36 = load ptr, ptr %4, align 8
ret ptr %36
}
declare ptr @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare signext i8 @random_char(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmps50reunb.c'
source_filename = "/tmp/tmps50reunb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @t1_init_ctxno_sc(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %2, align 4
%7 = and i32 %6, 544
%8 = icmp eq i32 %7, 32
%9 = zext i1 %8 to i32
%10 = load i32, ptr %2, align 4
%11 = and i32 %10, 2176
%12 = icmp eq i32 %11, 128
%13 = zext i1 %12 to i32
%14 = add nsw i32 %9, %13
%15 = call i32 @int_min(i32 noundef %14, i32 noundef 1)
%16 = load i32, ptr %2, align 4
%17 = and i32 %16, 544
%18 = icmp eq i32 %17, 544
%19 = zext i1 %18 to i32
%20 = load i32, ptr %2, align 4
%21 = and i32 %20, 2176
%22 = icmp eq i32 %21, 2176
%23 = zext i1 %22 to i32
%24 = add nsw i32 %19, %23
%25 = call i32 @int_min(i32 noundef %24, i32 noundef 1)
%26 = sub nsw i32 %15, %25
store i32 %26, ptr %3, align 4
%27 = load i32, ptr %2, align 4
%28 = and i32 %27, 272
%29 = icmp eq i32 %28, 16
%30 = zext i1 %29 to i32
%31 = load i32, ptr %2, align 4
%32 = and i32 %31, 1088
%33 = icmp eq i32 %32, 64
%34 = zext i1 %33 to i32
%35 = add nsw i32 %30, %34
%36 = call i32 @int_min(i32 noundef %35, i32 noundef 1)
%37 = load i32, ptr %2, align 4
%38 = and i32 %37, 272
%39 = icmp eq i32 %38, 272
%40 = zext i1 %39 to i32
%41 = load i32, ptr %2, align 4
%42 = and i32 %41, 1088
%43 = icmp eq i32 %42, 1088
%44 = zext i1 %43 to i32
%45 = add nsw i32 %40, %44
%46 = call i32 @int_min(i32 noundef %45, i32 noundef 1)
%47 = sub nsw i32 %36, %46
store i32 %47, ptr %4, align 4
%48 = load i32, ptr %3, align 4
%49 = icmp slt i32 %48, 0
br i1 %49, label %50, label %55
50: ; preds = %1
%51 = load i32, ptr %3, align 4
%52 = sub nsw i32 0, %51
store i32 %52, ptr %3, align 4
%53 = load i32, ptr %4, align 4
%54 = sub nsw i32 0, %53
store i32 %54, ptr %4, align 4
br label %55
55: ; preds = %50, %1
%56 = load i32, ptr %3, align 4
%57 = icmp ne i32 %56, 0
br i1 %57, label %69, label %58
58: ; preds = %55
%59 = load i32, ptr %4, align 4
%60 = icmp eq i32 %59, -1
br i1 %60, label %61, label %62
61: ; preds = %58
store i32 1, ptr %5, align 4
br label %68
62: ; preds = %58
%63 = load i32, ptr %4, align 4
%64 = icmp ne i32 %63, 0
br i1 %64, label %66, label %65
65: ; preds = %62
store i32 0, ptr %5, align 4
br label %67
66: ; preds = %62
store i32 1, ptr %5, align 4
br label %67
67: ; preds = %66, %65
br label %68
68: ; preds = %67, %61
br label %84
69: ; preds = %55
%70 = load i32, ptr %3, align 4
%71 = icmp eq i32 %70, 1
br i1 %71, label %72, label %83
72: ; preds = %69
%73 = load i32, ptr %4, align 4
%74 = icmp eq i32 %73, -1
br i1 %74, label %75, label %76
75: ; preds = %72
store i32 2, ptr %5, align 4
br label %82
76: ; preds = %72
%77 = load i32, ptr %4, align 4
%78 = icmp ne i32 %77, 0
br i1 %78, label %80, label %79
79: ; preds = %76
store i32 3, ptr %5, align 4
br label %81
80: ; preds = %76
store i32 4, ptr %5, align 4
br label %81
81: ; preds = %80, %79
br label %82
82: ; preds = %81, %75
br label %83
83: ; preds = %82, %69
br label %84
84: ; preds = %83, %68
%85 = load i32, ptr %5, align 4
%86 = add nsw i32 13, %85
ret i32 %86
}
declare i32 @int_min(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/tmps50reunb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @t1_init_ctxno_sc(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %2, align 4
%7 = and i32 %6, 544
%8 = icmp eq i32 %7, 32
%9 = zext i1 %8 to i32
%10 = load i32, ptr %2, align 4
%11 = and i32 %10, 2176
%12 = icmp eq i32 %11, 128
%13 = zext i1 %12 to i32
%14 = add nsw i32 %9, %13
%15 = call i32 @int_min(i32 noundef %14, i32 noundef 1)
%16 = load i32, ptr %2, align 4
%17 = and i32 %16, 544
%18 = icmp eq i32 %17, 544
%19 = zext i1 %18 to i32
%20 = load i32, ptr %2, align 4
%21 = and i32 %20, 2176
%22 = icmp eq i32 %21, 2176
%23 = zext i1 %22 to i32
%24 = add nsw i32 %19, %23
%25 = call i32 @int_min(i32 noundef %24, i32 noundef 1)
%26 = sub nsw i32 %15, %25
store i32 %26, ptr %3, align 4
%27 = load i32, ptr %2, align 4
%28 = and i32 %27, 272
%29 = icmp eq i32 %28, 16
%30 = zext i1 %29 to i32
%31 = load i32, ptr %2, align 4
%32 = and i32 %31, 1088
%33 = icmp eq i32 %32, 64
%34 = zext i1 %33 to i32
%35 = add nsw i32 %30, %34
%36 = call i32 @int_min(i32 noundef %35, i32 noundef 1)
%37 = load i32, ptr %2, align 4
%38 = and i32 %37, 272
%39 = icmp eq i32 %38, 272
%40 = zext i1 %39 to i32
%41 = load i32, ptr %2, align 4
%42 = and i32 %41, 1088
%43 = icmp eq i32 %42, 1088
%44 = zext i1 %43 to i32
%45 = add nsw i32 %40, %44
%46 = call i32 @int_min(i32 noundef %45, i32 noundef 1)
%47 = sub nsw i32 %36, %46
store i32 %47, ptr %4, align 4
%48 = load i32, ptr %3, align 4
%49 = icmp slt i32 %48, 0
br i1 %49, label %50, label %55
50: ; preds = %1
%51 = load i32, ptr %3, align 4
%52 = sub nsw i32 0, %51
store i32 %52, ptr %3, align 4
%53 = load i32, ptr %4, align 4
%54 = sub nsw i32 0, %53
store i32 %54, ptr %4, align 4
br label %55
55: ; preds = %50, %1
%56 = load i32, ptr %3, align 4
%57 = icmp ne i32 %56, 0
br i1 %57, label %69, label %58
58: ; preds = %55
%59 = load i32, ptr %4, align 4
%60 = icmp eq i32 %59, -1
br i1 %60, label %61, label %62
61: ; preds = %58
store i32 1, ptr %5, align 4
br label %68
62: ; preds = %58
%63 = load i32, ptr %4, align 4
%64 = icmp ne i32 %63, 0
br i1 %64, label %66, label %65
65: ; preds = %62
store i32 0, ptr %5, align 4
br label %67
66: ; preds = %62
store i32 1, ptr %5, align 4
br label %67
67: ; preds = %66, %65
br label %68
68: ; preds = %67, %61
br label %84
69: ; preds = %55
%70 = load i32, ptr %3, align 4
%71 = icmp eq i32 %70, 1
br i1 %71, label %72, label %83
72: ; preds = %69
%73 = load i32, ptr %4, align 4
%74 = icmp eq i32 %73, -1
br i1 %74, label %75, label %76
75: ; preds = %72
store i32 2, ptr %5, align 4
br label %82
76: ; preds = %72
%77 = load i32, ptr %4, align 4
%78 = icmp ne i32 %77, 0
br i1 %78, label %80, label %79
79: ; preds = %76
store i32 3, ptr %5, align 4
br label %81
80: ; preds = %76
store i32 4, ptr %5, align 4
br label %81
81: ; preds = %80, %79
br label %82
82: ; preds = %81, %75
br label %83
83: ; preds = %82, %69
br label %84
84: ; preds = %83, %68
%85 = load i32, ptr %5, align 4
%86 = add nsw i32 13, %85
ret i32 %86
}
declare i32 @int_min(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/tmpnxqcgulx.c'
source_filename = "/tmp/tmpnxqcgulx.c"
target datalayout = "e-m:e-p270: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/tmpnxqcgulx.c"
target datalayout = "e-m:e-p270: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/tmpadq49xez.c'
source_filename = "/tmp/tmpadq49xez.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @kmalloc(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 ptr @malloc(i32 noundef %3)
ret ptr %4
}
declare ptr @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpadq49xez.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @kmalloc(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 ptr @malloc(i32 noundef %3)
ret ptr %4
}
declare ptr @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7e68adeq.c'
source_filename = "/tmp/tmp7e68adeq.c"
target datalayout = "e-m:e-p270: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.specsurf.kl = private unnamed_addr constant [13 x [2 x i32]] [[2 x i32] [i32 1, i32 2], [2 x i32] [i32 1, i32 4], [2 x i32] [i32 1, i32 16], [2 x i32] [i32 1, i32 8], [2 x i32] [i32 2, i32 4], [2 x i32] [i32 1, i32 32], [2 x i32] [i32 2, i32 16], [2 x i32] [i32 1, i32 64], [2 x i32] [i32 4, i32 16], [2 x i32] [i32 1, i32 128], [2 x i32] [i32 2, i32 64], [2 x i32] [i32 4, i32 32], [2 x i32] [i32 8, i32 16]], align 16
@__const.specsurf.c = private unnamed_addr constant [13 x double] [double 4.577800e-02, double 4.577800e-02, double 4.577800e-02, double 3.698100e-02, double 3.698100e-02, double 3.698100e-02, double 3.698100e-02, double 3.698100e-02, double 3.698100e-02, double 3.519600e-02, double 3.519600e-02, double 3.519600e-02, double 3.519600e-02], align 16
@UCHAR_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @specsurf(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [13 x [2 x i32]], align 16
%6 = alloca [13 x double], align 16
%7 = alloca double, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca double, align 8
%11 = alloca [13 x double], align 16
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.specsurf.kl, i64 104, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.specsurf.c, i64 104, i1 false)
store double 0.000000e+00, ptr %7, align 8
store double 0.000000e+00, ptr %10, align 8
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds double, ptr %12, i64 0
%14 = load double, ptr %13, align 8
%15 = getelementptr inbounds [13 x double], ptr %11, i64 0, i64 0
store double %14, ptr %15, align 16
%16 = load ptr, ptr %4, align 8
%17 = getelementptr inbounds double, ptr %16, i64 1
%18 = load double, ptr %17, align 8
%19 = getelementptr inbounds [13 x double], ptr %11, i64 0, i64 1
store double %18, ptr %19, align 8
%20 = load ptr, ptr %4, align 8
%21 = getelementptr inbounds double, ptr %20, i64 2
%22 = load double, ptr %21, align 8
%23 = getelementptr inbounds [13 x double], ptr %11, i64 0, i64 2
store double %22, ptr %23, align 16
%24 = load ptr, ptr %4, align 8
%25 = getelementptr inbounds double, ptr %24, i64 0
%26 = load double, ptr %25, align 8
%27 = load ptr, ptr %4, align 8
%28 = getelementptr inbounds double, ptr %27, i64 0
%29 = load double, ptr %28, align 8
%30 = load ptr, ptr %4, align 8
%31 = getelementptr inbounds double, ptr %30, i64 1
%32 = load double, ptr %31, align 8
%33 = load ptr, ptr %4, align 8
%34 = getelementptr inbounds double, ptr %33, i64 1
%35 = load double, ptr %34, align 8
%36 = fmul double %32, %35
%37 = call double @llvm.fmuladd.f64(double %26, double %29, double %36)
%38 = call double @sqrt(double noundef %37) #4
%39 = getelementptr inbounds [13 x double], ptr %11, i64 0, i64 4
store double %38, ptr %39, align 16
%40 = getelementptr inbounds [13 x double], ptr %11, i64 0, i64 3
store double %38, ptr %40, align 8
%41 = load ptr, ptr %4, align 8
%42 = getelementptr inbounds double, ptr %41, i64 0
%43 = load double, ptr %42, align 8
%44 = load ptr, ptr %4, align 8
%45 = getelementptr inbounds double, ptr %44, i64 0
%46 = load double, ptr %45, align 8
%47 = load ptr, ptr %4, align 8
%48 = getelementptr inbounds double, ptr %47, i64 2
%49 = load double, ptr %48, align 8
%50 = load ptr, ptr %4, align 8
%51 = getelementptr inbounds double, ptr %50, i64 2
%52 = load double, ptr %51, align 8
%53 = fmul double %49, %52
%54 = call double @llvm.fmuladd.f64(double %43, double %46, double %53)
%55 = call double @sqrt(double noundef %54) #4
%56 = getelementptr inbounds [13 x double], ptr %11, i64 0, i64 6
store double %55, ptr %56, align 16
%57 = getelementptr inbounds [13 x double], ptr %11, i64 0, i64 5
store double %55, ptr %57, align 8
%58 = load ptr, ptr %4, align 8
%59 = getelementptr inbounds double, ptr %58, i64 1
%60 = load double, ptr %59, align 8
%61 = load ptr, ptr %4, align 8
%62 = getelementptr inbounds double, ptr %61, i64 1
%63 = load double, ptr %62, align 8
%64 = load ptr, ptr %4, align 8
%65 = getelementptr inbounds double, ptr %64, i64 2
%66 = load double, ptr %65, align 8
%67 = load ptr, ptr %4, align 8
%68 = getelementptr inbounds double, ptr %67, i64 2
%69 = load double, ptr %68, align 8
%70 = fmul double %66, %69
%71 = call double @llvm.fmuladd.f64(double %60, double %63, double %70)
%72 = call double @sqrt(double noundef %71) #4
%73 = getelementptr inbounds [13 x double], ptr %11, i64 0, i64 8
store double %72, ptr %73, align 16
%74 = getelementptr inbounds [13 x double], ptr %11, i64 0, i64 7
store double %72, ptr %74, align 8
%75 = load ptr, ptr %4, align 8
%76 = getelementptr inbounds double, ptr %75, i64 0
%77 = load double, ptr %76, align 8
%78 = load ptr, ptr %4, align 8
%79 = getelementptr inbounds double, ptr %78, i64 0
%80 = load double, ptr %79, align 8
%81 = load ptr, ptr %4, align 8
%82 = getelementptr inbounds double, ptr %81, i64 1
%83 = load double, ptr %82, align 8
%84 = load ptr, ptr %4, align 8
%85 = getelementptr inbounds double, ptr %84, i64 1
%86 = load double, ptr %85, align 8
%87 = fmul double %83, %86
%88 = call double @llvm.fmuladd.f64(double %77, double %80, double %87)
%89 = load ptr, ptr %4, align 8
%90 = getelementptr inbounds double, ptr %89, i64 2
%91 = load double, ptr %90, align 8
%92 = load ptr, ptr %4, align 8
%93 = getelementptr inbounds double, ptr %92, i64 2
%94 = load double, ptr %93, align 8
%95 = call double @llvm.fmuladd.f64(double %91, double %94, double %88)
%96 = call double @sqrt(double noundef %95) #4
%97 = getelementptr inbounds [13 x double], ptr %11, i64 0, i64 12
store double %96, ptr %97, align 16
%98 = getelementptr inbounds [13 x double], ptr %11, i64 0, i64 11
store double %96, ptr %98, align 8
%99 = getelementptr inbounds [13 x double], ptr %11, i64 0, i64 10
store double %96, ptr %99, align 16
%100 = getelementptr inbounds [13 x double], ptr %11, i64 0, i64 9
store double %96, ptr %100, align 8
store i32 0, ptr %8, align 4
br label %101
101: ; preds = %180, %2
%102 = load i32, ptr %8, align 4
%103 = load i32, ptr @UCHAR_MAX, align 4
%104 = icmp sle i32 %102, %103
br i1 %104, label %105, label %183
105: ; preds = %101
%106 = load ptr, ptr %3, align 8
%107 = load i32, ptr %8, align 4
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds double, ptr %106, i64 %108
%110 = load double, ptr %109, align 8
%111 = load double, ptr %10, align 8
%112 = fadd double %111, %110
store double %112, ptr %10, align 8
store i32 0, ptr %9, align 4
br label %113
113: ; preds = %176, %105
%114 = load i32, ptr %9, align 4
%115 = icmp slt i32 %114, 13
br i1 %115, label %116, label %179
116: ; preds = %113
%117 = load ptr, ptr %3, align 8
%118 = load i32, ptr %8, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds double, ptr %117, i64 %119
%121 = load double, ptr %120, align 8
%122 = load i32, ptr %9, align 4
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds [13 x double], ptr %6, i64 0, i64 %123
%125 = load double, ptr %124, align 8
%126 = fmul double %121, %125
%127 = load i32, ptr %9, align 4
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds [13 x double], ptr %11, i64 0, i64 %128
%130 = load double, ptr %129, align 8
%131 = fdiv double %126, %130
%132 = load i32, ptr %8, align 4
%133 = load i32, ptr %8, align 4
%134 = load i32, ptr %9, align 4
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds [13 x [2 x i32]], ptr %5, i64 0, i64 %135
%137 = getelementptr inbounds [2 x i32], ptr %136, i64 0, i64 0
%138 = load i32, ptr %137, align 8
%139 = or i32 %133, %138
%140 = icmp eq i32 %132, %139
%141 = zext i1 %140 to i32
%142 = load i32, ptr %8, align 4
%143 = load i32, ptr %9, align 4
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds [13 x [2 x i32]], ptr %5, i64 0, i64 %144
%146 = getelementptr inbounds [2 x i32], ptr %145, i64 0, i64 1
%147 = load i32, ptr %146, align 4
%148 = and i32 %142, %147
%149 = icmp eq i32 0, %148
%150 = zext i1 %149 to i32
%151 = mul nsw i32 %141, %150
%152 = load i32, ptr %8, align 4
%153 = load i32, ptr %8, align 4
%154 = load i32, ptr %9, align 4
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds [13 x [2 x i32]], ptr %5, i64 0, i64 %155
%157 = getelementptr inbounds [2 x i32], ptr %156, i64 0, i64 1
%158 = load i32, ptr %157, align 4
%159 = or i32 %153, %158
%160 = icmp eq i32 %152, %159
%161 = zext i1 %160 to i32
%162 = load i32, ptr %8, align 4
%163 = load i32, ptr %9, align 4
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds [13 x [2 x i32]], ptr %5, i64 0, i64 %164
%166 = getelementptr inbounds [2 x i32], ptr %165, i64 0, i64 0
%167 = load i32, ptr %166, align 8
%168 = and i32 %162, %167
%169 = icmp eq i32 0, %168
%170 = zext i1 %169 to i32
%171 = mul nsw i32 %161, %170
%172 = add nsw i32 %151, %171
%173 = sitofp i32 %172 to double
%174 = load double, ptr %7, align 8
%175 = call double @llvm.fmuladd.f64(double %131, double %173, double %174)
store double %175, ptr %7, align 8
br label %176
176: ; preds = %116
%177 = load i32, ptr %9, align 4
%178 = add nsw i32 %177, 1
store i32 %178, ptr %9, align 4
br label %113, !llvm.loop !6
179: ; preds = %113
br label %180
180: ; preds = %179
%181 = load i32, ptr %8, align 4
%182 = add nsw i32 %181, 1
store i32 %182, ptr %8, align 4
br label %101, !llvm.loop !8
183: ; preds = %101
%184 = load double, ptr %7, align 8
%185 = fmul double 4.000000e+00, %184
%186 = load double, ptr %10, align 8
%187 = fdiv double %185, %186
ret double %187
}
; 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: nounwind
declare double @sqrt(double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7e68adeq.c"
target datalayout = "e-m:e-p270: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.specsurf.kl = private unnamed_addr constant [13 x [2 x i32]] [[2 x i32] [i32 1, i32 2], [2 x i32] [i32 1, i32 4], [2 x i32] [i32 1, i32 16], [2 x i32] [i32 1, i32 8], [2 x i32] [i32 2, i32 4], [2 x i32] [i32 1, i32 32], [2 x i32] [i32 2, i32 16], [2 x i32] [i32 1, i32 64], [2 x i32] [i32 4, i32 16], [2 x i32] [i32 1, i32 128], [2 x i32] [i32 2, i32 64], [2 x i32] [i32 4, i32 32], [2 x i32] [i32 8, i32 16]], align 16
@__const.specsurf.c = private unnamed_addr constant [13 x double] [double 4.577800e-02, double 4.577800e-02, double 4.577800e-02, double 3.698100e-02, double 3.698100e-02, double 3.698100e-02, double 3.698100e-02, double 3.698100e-02, double 3.698100e-02, double 3.519600e-02, double 3.519600e-02, double 3.519600e-02, double 3.519600e-02], align 16
@UCHAR_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @specsurf(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [13 x [2 x i32]], align 16
%6 = alloca [13 x double], align 16
%7 = alloca double, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca double, align 8
%11 = alloca [13 x double], align 16
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.specsurf.kl, i64 104, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.specsurf.c, i64 104, i1 false)
store double 0.000000e+00, ptr %7, align 8
store double 0.000000e+00, ptr %10, align 8
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds double, ptr %12, i64 0
%14 = load double, ptr %13, align 8
%15 = getelementptr inbounds [13 x double], ptr %11, i64 0, i64 0
store double %14, ptr %15, align 16
%16 = load ptr, ptr %4, align 8
%17 = getelementptr inbounds double, ptr %16, i64 1
%18 = load double, ptr %17, align 8
%19 = getelementptr inbounds [13 x double], ptr %11, i64 0, i64 1
store double %18, ptr %19, align 8
%20 = load ptr, ptr %4, align 8
%21 = getelementptr inbounds double, ptr %20, i64 2
%22 = load double, ptr %21, align 8
%23 = getelementptr inbounds [13 x double], ptr %11, i64 0, i64 2
store double %22, ptr %23, align 16
%24 = load ptr, ptr %4, align 8
%25 = getelementptr inbounds double, ptr %24, i64 0
%26 = load double, ptr %25, align 8
%27 = load ptr, ptr %4, align 8
%28 = getelementptr inbounds double, ptr %27, i64 0
%29 = load double, ptr %28, align 8
%30 = load ptr, ptr %4, align 8
%31 = getelementptr inbounds double, ptr %30, i64 1
%32 = load double, ptr %31, align 8
%33 = load ptr, ptr %4, align 8
%34 = getelementptr inbounds double, ptr %33, i64 1
%35 = load double, ptr %34, align 8
%36 = fmul double %32, %35
%37 = call double @llvm.fmuladd.f64(double %26, double %29, double %36)
%38 = call double @sqrt(double noundef %37) #4
%39 = getelementptr inbounds [13 x double], ptr %11, i64 0, i64 4
store double %38, ptr %39, align 16
%40 = getelementptr inbounds [13 x double], ptr %11, i64 0, i64 3
store double %38, ptr %40, align 8
%41 = load ptr, ptr %4, align 8
%42 = getelementptr inbounds double, ptr %41, i64 0
%43 = load double, ptr %42, align 8
%44 = load ptr, ptr %4, align 8
%45 = getelementptr inbounds double, ptr %44, i64 0
%46 = load double, ptr %45, align 8
%47 = load ptr, ptr %4, align 8
%48 = getelementptr inbounds double, ptr %47, i64 2
%49 = load double, ptr %48, align 8
%50 = load ptr, ptr %4, align 8
%51 = getelementptr inbounds double, ptr %50, i64 2
%52 = load double, ptr %51, align 8
%53 = fmul double %49, %52
%54 = call double @llvm.fmuladd.f64(double %43, double %46, double %53)
%55 = call double @sqrt(double noundef %54) #4
%56 = getelementptr inbounds [13 x double], ptr %11, i64 0, i64 6
store double %55, ptr %56, align 16
%57 = getelementptr inbounds [13 x double], ptr %11, i64 0, i64 5
store double %55, ptr %57, align 8
%58 = load ptr, ptr %4, align 8
%59 = getelementptr inbounds double, ptr %58, i64 1
%60 = load double, ptr %59, align 8
%61 = load ptr, ptr %4, align 8
%62 = getelementptr inbounds double, ptr %61, i64 1
%63 = load double, ptr %62, align 8
%64 = load ptr, ptr %4, align 8
%65 = getelementptr inbounds double, ptr %64, i64 2
%66 = load double, ptr %65, align 8
%67 = load ptr, ptr %4, align 8
%68 = getelementptr inbounds double, ptr %67, i64 2
%69 = load double, ptr %68, align 8
%70 = fmul double %66, %69
%71 = call double @llvm.fmuladd.f64(double %60, double %63, double %70)
%72 = call double @sqrt(double noundef %71) #4
%73 = getelementptr inbounds [13 x double], ptr %11, i64 0, i64 8
store double %72, ptr %73, align 16
%74 = getelementptr inbounds [13 x double], ptr %11, i64 0, i64 7
store double %72, ptr %74, align 8
%75 = load ptr, ptr %4, align 8
%76 = getelementptr inbounds double, ptr %75, i64 0
%77 = load double, ptr %76, align 8
%78 = load ptr, ptr %4, align 8
%79 = getelementptr inbounds double, ptr %78, i64 0
%80 = load double, ptr %79, align 8
%81 = load ptr, ptr %4, align 8
%82 = getelementptr inbounds double, ptr %81, i64 1
%83 = load double, ptr %82, align 8
%84 = load ptr, ptr %4, align 8
%85 = getelementptr inbounds double, ptr %84, i64 1
%86 = load double, ptr %85, align 8
%87 = fmul double %83, %86
%88 = call double @llvm.fmuladd.f64(double %77, double %80, double %87)
%89 = load ptr, ptr %4, align 8
%90 = getelementptr inbounds double, ptr %89, i64 2
%91 = load double, ptr %90, align 8
%92 = load ptr, ptr %4, align 8
%93 = getelementptr inbounds double, ptr %92, i64 2
%94 = load double, ptr %93, align 8
%95 = call double @llvm.fmuladd.f64(double %91, double %94, double %88)
%96 = call double @sqrt(double noundef %95) #4
%97 = getelementptr inbounds [13 x double], ptr %11, i64 0, i64 12
store double %96, ptr %97, align 16
%98 = getelementptr inbounds [13 x double], ptr %11, i64 0, i64 11
store double %96, ptr %98, align 8
%99 = getelementptr inbounds [13 x double], ptr %11, i64 0, i64 10
store double %96, ptr %99, align 16
%100 = getelementptr inbounds [13 x double], ptr %11, i64 0, i64 9
store double %96, ptr %100, align 8
store i32 0, ptr %8, align 4
%101 = load i32, ptr %8, align 4
%102 = load i32, ptr @UCHAR_MAX, align 4
%103 = icmp sle i32 %101, %102
br i1 %103, label %.lr.ph2, label %186
.lr.ph2: ; preds = %2
br label %104
104: ; preds = %.lr.ph2, %180
%105 = load ptr, ptr %3, align 8
%106 = load i32, ptr %8, align 4
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds double, ptr %105, i64 %107
%109 = load double, ptr %108, align 8
%110 = load double, ptr %10, align 8
%111 = fadd double %110, %109
store double %111, ptr %10, align 8
store i32 0, ptr %9, align 4
%112 = load i32, ptr %9, align 4
%113 = icmp slt i32 %112, 13
br i1 %113, label %.lr.ph, label %179
.lr.ph: ; preds = %104
br label %114
114: ; preds = %.lr.ph, %174
%115 = load ptr, ptr %3, align 8
%116 = load i32, ptr %8, align 4
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds double, ptr %115, i64 %117
%119 = load double, ptr %118, align 8
%120 = load i32, ptr %9, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds [13 x double], ptr %6, i64 0, i64 %121
%123 = load double, ptr %122, align 8
%124 = fmul double %119, %123
%125 = load i32, ptr %9, align 4
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds [13 x double], ptr %11, i64 0, i64 %126
%128 = load double, ptr %127, align 8
%129 = fdiv double %124, %128
%130 = load i32, ptr %8, align 4
%131 = load i32, ptr %8, align 4
%132 = load i32, ptr %9, align 4
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds [13 x [2 x i32]], ptr %5, i64 0, i64 %133
%135 = getelementptr inbounds [2 x i32], ptr %134, i64 0, i64 0
%136 = load i32, ptr %135, align 8
%137 = or i32 %131, %136
%138 = icmp eq i32 %130, %137
%139 = zext i1 %138 to i32
%140 = load i32, ptr %8, align 4
%141 = load i32, ptr %9, align 4
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds [13 x [2 x i32]], ptr %5, i64 0, i64 %142
%144 = getelementptr inbounds [2 x i32], ptr %143, i64 0, i64 1
%145 = load i32, ptr %144, align 4
%146 = and i32 %140, %145
%147 = icmp eq i32 0, %146
%148 = zext i1 %147 to i32
%149 = mul nsw i32 %139, %148
%150 = load i32, ptr %8, align 4
%151 = load i32, ptr %8, align 4
%152 = load i32, ptr %9, align 4
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds [13 x [2 x i32]], ptr %5, i64 0, i64 %153
%155 = getelementptr inbounds [2 x i32], ptr %154, i64 0, i64 1
%156 = load i32, ptr %155, align 4
%157 = or i32 %151, %156
%158 = icmp eq i32 %150, %157
%159 = zext i1 %158 to i32
%160 = load i32, ptr %8, align 4
%161 = load i32, ptr %9, align 4
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds [13 x [2 x i32]], ptr %5, i64 0, i64 %162
%164 = getelementptr inbounds [2 x i32], ptr %163, i64 0, i64 0
%165 = load i32, ptr %164, align 8
%166 = and i32 %160, %165
%167 = icmp eq i32 0, %166
%168 = zext i1 %167 to i32
%169 = mul nsw i32 %159, %168
%170 = add nsw i32 %149, %169
%171 = sitofp i32 %170 to double
%172 = load double, ptr %7, align 8
%173 = call double @llvm.fmuladd.f64(double %129, double %171, double %172)
store double %173, ptr %7, align 8
br label %174
174: ; preds = %114
%175 = load i32, ptr %9, align 4
%176 = add nsw i32 %175, 1
store i32 %176, ptr %9, align 4
%177 = load i32, ptr %9, align 4
%178 = icmp slt i32 %177, 13
br i1 %178, label %114, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %174
br label %179
179: ; preds = %._crit_edge, %104
br label %180
180: ; preds = %179
%181 = load i32, ptr %8, align 4
%182 = add nsw i32 %181, 1
store i32 %182, ptr %8, align 4
%183 = load i32, ptr %8, align 4
%184 = load i32, ptr @UCHAR_MAX, align 4
%185 = icmp sle i32 %183, %184
br i1 %185, label %104, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %180
br label %186
186: ; preds = %._crit_edge3, %2
%187 = load double, ptr %7, align 8
%188 = fmul double 4.000000e+00, %187
%189 = load double, ptr %10, align 8
%190 = fdiv double %188, %189
ret double %190
}
; 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: nounwind
declare double @sqrt(double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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}
|
; ModuleID = '/tmp/tmplvflch8p.c'
source_filename = "/tmp/tmplvflch8p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.s = private unnamed_addr constant [18 x i8] c"(x+1)/(x-1)*(x-1)\00", align 16
@.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 [18 x i8], align 16
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = 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.s, i64 18, i1 false)
%6 = getelementptr inbounds [18 x i8], ptr %2, i64 0, i64 0
%7 = call ptr @pretreatment(ptr noundef %6)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = call i32 @printf(ptr noundef @.str, ptr noundef %8)
%10 = load ptr, ptr %3, align 8
%11 = call ptr @s_to_infix(ptr noundef %10)
store ptr %11, ptr %4, align 8
%12 = load ptr, ptr %4, align 8
%13 = call i32 @print_infix(ptr noundef %12)
%14 = load ptr, ptr %4, align 8
%15 = call ptr @infix_to_RPN(ptr noundef %14)
store ptr %15, ptr %5, align 8
%16 = load ptr, ptr %5, align 8
%17 = call i32 @print_infix(ptr noundef %16)
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 @pretreatment(ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
declare ptr @s_to_infix(ptr noundef) #2
declare i32 @print_infix(ptr noundef) #2
declare ptr @infix_to_RPN(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/tmplvflch8p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.s = private unnamed_addr constant [18 x i8] c"(x+1)/(x-1)*(x-1)\00", align 16
@.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 [18 x i8], align 16
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = 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.s, i64 18, i1 false)
%6 = getelementptr inbounds [18 x i8], ptr %2, i64 0, i64 0
%7 = call ptr @pretreatment(ptr noundef %6)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = call i32 @printf(ptr noundef @.str, ptr noundef %8)
%10 = load ptr, ptr %3, align 8
%11 = call ptr @s_to_infix(ptr noundef %10)
store ptr %11, ptr %4, align 8
%12 = load ptr, ptr %4, align 8
%13 = call i32 @print_infix(ptr noundef %12)
%14 = load ptr, ptr %4, align 8
%15 = call ptr @infix_to_RPN(ptr noundef %14)
store ptr %15, ptr %5, align 8
%16 = load ptr, ptr %5, align 8
%17 = call i32 @print_infix(ptr noundef %16)
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 @pretreatment(ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
declare ptr @s_to_infix(ptr noundef) #2
declare i32 @print_infix(ptr noundef) #2
declare ptr @infix_to_RPN(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/tmp39xamv6z.c'
source_filename = "/tmp/tmp39xamv6z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"%s %s\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 ptr (...) @hello()
%3 = call ptr (...) @world()
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
ret i32 %4
}
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @hello(...) #1
declare ptr @world(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp39xamv6z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"%s %s\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 ptr (...) @hello()
%3 = call ptr (...) @world()
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
ret i32 %4
}
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @hello(...) #1
declare ptr @world(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp34w2zrk6.c'
source_filename = "/tmp/tmp34w2zrk6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@EAGAIN = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [28 x i8] c"## _fPollIns(%d) pop_fd %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"## _fPollIns(%d) fpop_fd %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @_fPollIns(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 ptr, align 8
%12 = alloca i32, align 4
%13 = alloca [256 x i32], align 16
%14 = alloca i32, align 4
%15 = 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
store i32 0, ptr %12, align 4
store i32 0, ptr %10, align 4
br label %16
16: ; preds = %51, %4
%17 = load i32, ptr %10, align 4
%18 = load i32, ptr %7, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %54
20: ; preds = %16
%21 = load ptr, ptr %8, align 8
%22 = load i32, ptr %10, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds ptr, ptr %21, i64 %23
%25 = load ptr, ptr %24, align 8
store ptr %25, ptr %11, align 8
%26 = load ptr, ptr %11, align 8
%27 = call i32 @fileno(ptr noundef %26)
%28 = load i32, ptr %10, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [256 x i32], ptr %13, i64 0, i64 %29
store i32 %27, ptr %30, align 4
%31 = load ptr, ptr %11, align 8
%32 = call i64 @feof(ptr noundef %31)
%33 = icmp ne i64 %32, 0
br i1 %33, label %38, label %34
34: ; preds = %20
%35 = load ptr, ptr %11, align 8
%36 = call i64 @ready_cc(ptr noundef %35)
%37 = icmp slt i64 0, %36
br i1 %37, label %38, label %45
38: ; preds = %34, %20
%39 = load i32, ptr %12, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %12, align 4
%41 = load ptr, ptr %9, align 8
%42 = load i32, ptr %10, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %41, i64 %43
store i32 1, ptr %44, align 4
br label %50
45: ; preds = %34
%46 = load ptr, ptr %9, align 8
%47 = load i32, ptr %10, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i32, ptr %46, i64 %48
store i32 0, ptr %49, align 4
br label %50
50: ; preds = %45, %38
br label %51
51: ; preds = %50
%52 = load i32, ptr %10, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %10, align 4
br label %16, !llvm.loop !6
54: ; preds = %16
%55 = load i32, ptr %12, align 4
%56 = icmp ne i32 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %54
%58 = load i32, ptr %12, align 4
store i32 %58, ptr %5, align 4
br label %153
59: ; preds = %54
%60 = load i32, ptr %6, align 4
%61 = load i32, ptr %7, align 4
%62 = getelementptr inbounds [256 x i32], ptr %13, i64 0, i64 0
%63 = load ptr, ptr %9, align 8
%64 = call i32 @PollIns(i32 noundef %60, i32 noundef %61, ptr noundef %62, ptr noundef %63)
store i32 %64, ptr %12, align 4
%65 = load i32, ptr %12, align 4
%66 = icmp slt i32 0, %65
br i1 %66, label %67, label %151
67: ; preds = %59
store i32 0, ptr %10, align 4
br label %68
68: ; preds = %138, %67
%69 = load i32, ptr %10, align 4
%70 = load i32, ptr %7, align 4
%71 = icmp slt i32 %69, %70
br i1 %71, label %72, label %141
72: ; preds = %68
%73 = load i32, ptr %10, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [256 x i32], ptr %13, i64 0, i64 %74
%76 = load i32, ptr %75, align 4
store i32 %76, ptr %14, align 4
%77 = load ptr, ptr %9, align 8
%78 = load i32, ptr %10, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i32, ptr %77, i64 %79
%81 = load i32, ptr %80, align 4
%82 = icmp slt i32 0, %81
br i1 %82, label %83, label %137
83: ; preds = %72
%84 = load i32, ptr %14, align 4
%85 = call i64 @top_fd(i32 noundef %84, i32 noundef 0)
%86 = icmp sle i64 0, %85
br i1 %86, label %87, label %137
87: ; preds = %83
%88 = load ptr, ptr %8, align 8
%89 = load i32, ptr %10, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds ptr, ptr %88, i64 %90
%92 = load ptr, ptr %91, align 8
%93 = call i32 @getc(ptr noundef %92)
store i32 %93, ptr %15, align 4
%94 = load i32, ptr %15, align 4
%95 = load i32, ptr @EOF, align 4
%96 = icmp ne i32 %94, %95
br i1 %96, label %97, label %105
97: ; preds = %87
%98 = load i32, ptr %15, align 4
%99 = load ptr, ptr %8, align 8
%100 = load i32, ptr %10, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds ptr, ptr %99, i64 %101
%103 = load ptr, ptr %102, align 8
%104 = call i32 @ungetc(i32 noundef %98, ptr noundef %103)
br label %136
105: ; preds = %87
%106 = load i64, ptr @errno, align 8
%107 = load i64, ptr @EAGAIN, align 8
%108 = icmp eq i64 %106, %107
br i1 %108, label %109, label %121
109: ; preds = %105
%110 = load i32, ptr %14, align 4
%111 = load i32, ptr %12, align 4
%112 = call i32 @syslog_ERROR(ptr noundef @.str, i32 noundef %110, i32 noundef %111)
%113 = load ptr, ptr %11, align 8
%114 = call i32 @clearerr(ptr noundef %113)
%115 = load ptr, ptr %9, align 8
%116 = load i32, ptr %10, align 4
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds i32, ptr %115, i64 %117
store i32 0, ptr %118, align 4
%119 = load i32, ptr %12, align 4
%120 = add nsw i32 %119, -1
store i32 %120, ptr %12, align 4
br label %135
121: ; preds = %105
%122 = load ptr, ptr %11, align 8
%123 = call i64 @fpop_fd(ptr noundef %122)
%124 = icmp ne i64 %123, 0
br i1 %124, label %125, label %134
125: ; preds = %121
%126 = load i32, ptr %14, align 4
%127 = load i32, ptr %12, align 4
%128 = call i32 @syslog_ERROR(ptr noundef @.str.1, i32 noundef %126, i32 noundef %127)
%129 = load i32, ptr %6, align 4
%130 = load i32, ptr %7, align 4
%131 = load ptr, ptr %8, align 8
%132 = load ptr, ptr %9, align 8
%133 = call i32 @_fPollIns(i32 noundef %129, i32 noundef %130, ptr noundef %131, ptr noundef %132)
store i32 %133, ptr %5, align 4
br label %153
134: ; preds = %121
br label %135
135: ; preds = %134, %109
br label %136
136: ; preds = %135, %97
br label %137
137: ; preds = %136, %83, %72
br label %138
138: ; preds = %137
%139 = load i32, ptr %10, align 4
%140 = add nsw i32 %139, 1
store i32 %140, ptr %10, align 4
br label %68, !llvm.loop !8
141: ; preds = %68
%142 = load i32, ptr %12, align 4
%143 = icmp eq i32 %142, 0
br i1 %143, label %144, label %150
144: ; preds = %141
%145 = load i32, ptr %6, align 4
%146 = load i32, ptr %7, align 4
%147 = load ptr, ptr %8, align 8
%148 = load ptr, ptr %9, align 8
%149 = call i32 @_fPollIns(i32 noundef %145, i32 noundef %146, ptr noundef %147, ptr noundef %148)
store i32 %149, ptr %5, align 4
br label %153
150: ; preds = %141
br label %151
151: ; preds = %150, %59
%152 = load i32, ptr %12, align 4
store i32 %152, ptr %5, align 4
br label %153
153: ; preds = %151, %144, %125, %57
%154 = load i32, ptr %5, align 4
ret i32 %154
}
declare i32 @fileno(ptr noundef) #1
declare i64 @feof(ptr noundef) #1
declare i64 @ready_cc(ptr noundef) #1
declare i32 @PollIns(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @top_fd(i32 noundef, i32 noundef) #1
declare i32 @getc(ptr noundef) #1
declare i32 @ungetc(i32 noundef, ptr noundef) #1
declare i32 @syslog_ERROR(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @clearerr(ptr noundef) #1
declare i64 @fpop_fd(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp34w2zrk6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@EAGAIN = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [28 x i8] c"## _fPollIns(%d) pop_fd %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"## _fPollIns(%d) fpop_fd %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @_fPollIns(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 ptr, align 8
%12 = alloca i32, align 4
%13 = alloca [256 x i32], align 16
%14 = alloca i32, align 4
%15 = 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
store i32 0, ptr %12, align 4
store i32 0, ptr %10, align 4
%16 = load i32, ptr %10, align 4
%17 = load i32, ptr %7, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %.lr.ph, label %56
.lr.ph: ; preds = %4
br label %19
19: ; preds = %.lr.ph, %50
%20 = load ptr, ptr %8, align 8
%21 = load i32, ptr %10, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds ptr, ptr %20, i64 %22
%24 = load ptr, ptr %23, align 8
store ptr %24, ptr %11, align 8
%25 = load ptr, ptr %11, align 8
%26 = call i32 @fileno(ptr noundef %25)
%27 = load i32, ptr %10, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [256 x i32], ptr %13, i64 0, i64 %28
store i32 %26, ptr %29, align 4
%30 = load ptr, ptr %11, align 8
%31 = call i64 @feof(ptr noundef %30)
%32 = icmp ne i64 %31, 0
br i1 %32, label %37, label %33
33: ; preds = %19
%34 = load ptr, ptr %11, align 8
%35 = call i64 @ready_cc(ptr noundef %34)
%36 = icmp slt i64 0, %35
br i1 %36, label %37, label %44
37: ; preds = %33, %19
%38 = load i32, ptr %12, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %12, align 4
%40 = load ptr, ptr %9, align 8
%41 = load i32, ptr %10, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %40, i64 %42
store i32 1, ptr %43, align 4
br label %49
44: ; preds = %33
%45 = load ptr, ptr %9, align 8
%46 = load i32, ptr %10, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i32, ptr %45, i64 %47
store i32 0, ptr %48, align 4
br label %49
49: ; preds = %44, %37
br label %50
50: ; preds = %49
%51 = load i32, ptr %10, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %10, align 4
%53 = load i32, ptr %10, align 4
%54 = load i32, ptr %7, align 4
%55 = icmp slt i32 %53, %54
br i1 %55, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %50
br label %56
56: ; preds = %._crit_edge, %4
%57 = load i32, ptr %12, align 4
%58 = icmp ne i32 %57, 0
br i1 %58, label %59, label %61
59: ; preds = %56
%60 = load i32, ptr %12, align 4
store i32 %60, ptr %5, align 4
br label %157
61: ; preds = %56
%62 = load i32, ptr %6, align 4
%63 = load i32, ptr %7, align 4
%64 = getelementptr inbounds [256 x i32], ptr %13, i64 0, i64 0
%65 = load ptr, ptr %9, align 8
%66 = call i32 @PollIns(i32 noundef %62, i32 noundef %63, ptr noundef %64, ptr noundef %65)
store i32 %66, ptr %12, align 4
%67 = load i32, ptr %12, align 4
%68 = icmp slt i32 0, %67
br i1 %68, label %69, label %155
69: ; preds = %61
store i32 0, ptr %10, align 4
%70 = load i32, ptr %10, align 4
%71 = load i32, ptr %7, align 4
%72 = icmp slt i32 %70, %71
br i1 %72, label %.lr.ph2, label %145
.lr.ph2: ; preds = %69
br label %73
73: ; preds = %.lr.ph2, %139
%74 = load i32, ptr %10, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [256 x i32], ptr %13, i64 0, i64 %75
%77 = load i32, ptr %76, align 4
store i32 %77, ptr %14, align 4
%78 = load ptr, ptr %9, align 8
%79 = load i32, ptr %10, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i32, ptr %78, i64 %80
%82 = load i32, ptr %81, align 4
%83 = icmp slt i32 0, %82
br i1 %83, label %84, label %138
84: ; preds = %73
%85 = load i32, ptr %14, align 4
%86 = call i64 @top_fd(i32 noundef %85, i32 noundef 0)
%87 = icmp sle i64 0, %86
br i1 %87, label %88, label %138
88: ; preds = %84
%89 = load ptr, ptr %8, align 8
%90 = load i32, ptr %10, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds ptr, ptr %89, i64 %91
%93 = load ptr, ptr %92, align 8
%94 = call i32 @getc(ptr noundef %93)
store i32 %94, ptr %15, align 4
%95 = load i32, ptr %15, align 4
%96 = load i32, ptr @EOF, align 4
%97 = icmp ne i32 %95, %96
br i1 %97, label %98, label %106
98: ; preds = %88
%99 = load i32, ptr %15, align 4
%100 = load ptr, ptr %8, align 8
%101 = load i32, ptr %10, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds ptr, ptr %100, i64 %102
%104 = load ptr, ptr %103, align 8
%105 = call i32 @ungetc(i32 noundef %99, ptr noundef %104)
br label %137
106: ; preds = %88
%107 = load i64, ptr @errno, align 8
%108 = load i64, ptr @EAGAIN, align 8
%109 = icmp eq i64 %107, %108
br i1 %109, label %110, label %122
110: ; preds = %106
%111 = load i32, ptr %14, align 4
%112 = load i32, ptr %12, align 4
%113 = call i32 @syslog_ERROR(ptr noundef @.str, i32 noundef %111, i32 noundef %112)
%114 = load ptr, ptr %11, align 8
%115 = call i32 @clearerr(ptr noundef %114)
%116 = load ptr, ptr %9, align 8
%117 = load i32, ptr %10, align 4
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds i32, ptr %116, i64 %118
store i32 0, ptr %119, align 4
%120 = load i32, ptr %12, align 4
%121 = add nsw i32 %120, -1
store i32 %121, ptr %12, align 4
br label %136
122: ; preds = %106
%123 = load ptr, ptr %11, align 8
%124 = call i64 @fpop_fd(ptr noundef %123)
%125 = icmp ne i64 %124, 0
br i1 %125, label %126, label %135
126: ; preds = %122
%127 = load i32, ptr %14, align 4
%128 = load i32, ptr %12, align 4
%129 = call i32 @syslog_ERROR(ptr noundef @.str.1, i32 noundef %127, i32 noundef %128)
%130 = load i32, ptr %6, align 4
%131 = load i32, ptr %7, align 4
%132 = load ptr, ptr %8, align 8
%133 = load ptr, ptr %9, align 8
%134 = call i32 @_fPollIns(i32 noundef %130, i32 noundef %131, ptr noundef %132, ptr noundef %133)
store i32 %134, ptr %5, align 4
br label %157
135: ; preds = %122
br label %136
136: ; preds = %135, %110
br label %137
137: ; preds = %136, %98
br label %138
138: ; preds = %137, %84, %73
br label %139
139: ; preds = %138
%140 = load i32, ptr %10, align 4
%141 = add nsw i32 %140, 1
store i32 %141, ptr %10, align 4
%142 = load i32, ptr %10, align 4
%143 = load i32, ptr %7, align 4
%144 = icmp slt i32 %142, %143
br i1 %144, label %73, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %139
br label %145
145: ; preds = %._crit_edge3, %69
%146 = load i32, ptr %12, align 4
%147 = icmp eq i32 %146, 0
br i1 %147, label %148, label %154
148: ; preds = %145
%149 = load i32, ptr %6, align 4
%150 = load i32, ptr %7, align 4
%151 = load ptr, ptr %8, align 8
%152 = load ptr, ptr %9, align 8
%153 = call i32 @_fPollIns(i32 noundef %149, i32 noundef %150, ptr noundef %151, ptr noundef %152)
store i32 %153, ptr %5, align 4
br label %157
154: ; preds = %145
br label %155
155: ; preds = %154, %61
%156 = load i32, ptr %12, align 4
store i32 %156, ptr %5, align 4
br label %157
157: ; preds = %155, %148, %126, %59
%158 = load i32, ptr %5, align 4
ret i32 %158
}
declare i32 @fileno(ptr noundef) #1
declare i64 @feof(ptr noundef) #1
declare i64 @ready_cc(ptr noundef) #1
declare i32 @PollIns(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @top_fd(i32 noundef, i32 noundef) #1
declare i32 @getc(ptr noundef) #1
declare i32 @ungetc(i32 noundef, ptr noundef) #1
declare i32 @syslog_ERROR(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @clearerr(ptr noundef) #1
declare i64 @fpop_fd(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp1ikzshtl.c'
source_filename = "/tmp/tmp1ikzshtl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"FAIL!\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"SUCCESS %x\0A\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"Switches= %x\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (...) @open_devbox_io()
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %31
9: ; preds = %0
%10 = load i32, ptr %2, align 4
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %10)
%12 = load i32, ptr %2, align 4
%13 = call i32 @devbox_get_sw(i32 noundef %12)
store i32 %13, ptr %3, align 4
%14 = load i32, ptr %3, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %14)
%16 = load i32, ptr %2, align 4
%17 = load i32, ptr %3, align 4
%18 = call i32 @devbox_set_led(i32 noundef %16, i32 noundef %17)
%19 = load i32, ptr %2, align 4
%20 = call i32 @devbox_set_7seg(i32 noundef %19, i32 noundef 0, i32 noundef 123)
%21 = load i32, ptr %2, align 4
%22 = call i32 @devbox_set_7seg(i32 noundef %21, i32 noundef 1, i32 noundef 21)
%23 = load i32, ptr %2, align 4
%24 = call i32 @devbox_set_7seg(i32 noundef %23, i32 noundef 2, i32 noundef 123)
%25 = load i32, ptr %2, align 4
%26 = call i32 @devbox_set_7seg(i32 noundef %25, i32 noundef 3, i32 noundef 123)
%27 = load i32, ptr %2, align 4
%28 = call i32 @devbox_7seg_write(i32 noundef %27, i32 noundef 11499265)
%29 = load i32, ptr %2, align 4
%30 = call i32 @close_devbox_io(i32 noundef %29)
br label %31
31: ; preds = %9, %7
ret i32 0
}
declare i32 @open_devbox_io(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @devbox_get_sw(i32 noundef) #1
declare i32 @devbox_set_led(i32 noundef, i32 noundef) #1
declare i32 @devbox_set_7seg(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @devbox_7seg_write(i32 noundef, i32 noundef) #1
declare i32 @close_devbox_io(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/tmp1ikzshtl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"FAIL!\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"SUCCESS %x\0A\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"Switches= %x\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (...) @open_devbox_io()
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %31
9: ; preds = %0
%10 = load i32, ptr %2, align 4
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %10)
%12 = load i32, ptr %2, align 4
%13 = call i32 @devbox_get_sw(i32 noundef %12)
store i32 %13, ptr %3, align 4
%14 = load i32, ptr %3, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %14)
%16 = load i32, ptr %2, align 4
%17 = load i32, ptr %3, align 4
%18 = call i32 @devbox_set_led(i32 noundef %16, i32 noundef %17)
%19 = load i32, ptr %2, align 4
%20 = call i32 @devbox_set_7seg(i32 noundef %19, i32 noundef 0, i32 noundef 123)
%21 = load i32, ptr %2, align 4
%22 = call i32 @devbox_set_7seg(i32 noundef %21, i32 noundef 1, i32 noundef 21)
%23 = load i32, ptr %2, align 4
%24 = call i32 @devbox_set_7seg(i32 noundef %23, i32 noundef 2, i32 noundef 123)
%25 = load i32, ptr %2, align 4
%26 = call i32 @devbox_set_7seg(i32 noundef %25, i32 noundef 3, i32 noundef 123)
%27 = load i32, ptr %2, align 4
%28 = call i32 @devbox_7seg_write(i32 noundef %27, i32 noundef 11499265)
%29 = load i32, ptr %2, align 4
%30 = call i32 @close_devbox_io(i32 noundef %29)
br label %31
31: ; preds = %9, %7
ret i32 0
}
declare i32 @open_devbox_io(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @devbox_get_sw(i32 noundef) #1
declare i32 @devbox_set_led(i32 noundef, i32 noundef) #1
declare i32 @devbox_set_7seg(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @devbox_7seg_write(i32 noundef, i32 noundef) #1
declare i32 @close_devbox_io(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/tmplz596191.c'
source_filename = "/tmp/tmplz596191.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"HEADER JUNK:\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"lcs.mit.edu\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Calling dn_comp..\0A\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"uncomp_size = %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"comp_size = %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"exp_dn = %s, comp_dn = %s\0A\00", align 1
@C_IN = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [17 x i8] c"Signing at = %d\0A\00", align 1
@.str.7 = private unnamed_addr constant [16 x i8] c"sls.lcs.mit.edu\00", align 1
@.str.8 = private unnamed_addr constant [29 x i8] c"exp_dn2 = %s, comp_dn2 = %s\0A\00", align 1
@.str.9 = private unnamed_addr constant [9 x i8] c"testcase\00", align 1
@.str.10 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.11 = private unnamed_addr constant [10 x i8] c"len = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca [1000 x i8], align 16
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca [200 x i8], align 16
%10 = alloca [200 x i8], align 16
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %15, align 4
%18 = call i64 @malloc(i32 noundef 16)
%19 = inttoptr i64 %18 to ptr
store ptr %19, ptr %11, align 8
%20 = call i64 @malloc(i32 noundef 16)
%21 = inttoptr i64 %20 to ptr
store ptr %21, ptr %13, align 8
%22 = call i64 @malloc(i32 noundef 200)
%23 = inttoptr i64 %22 to ptr
store ptr %23, ptr %7, align 8
%24 = call i64 @malloc(i32 noundef 200)
%25 = inttoptr i64 %24 to ptr
store ptr %25, ptr %8, align 8
%26 = call i64 @malloc(i32 noundef 400)
%27 = inttoptr i64 %26 to ptr
store ptr %27, ptr %6, align 8
%28 = load ptr, ptr %6, align 8
store ptr %28, ptr %5, align 8
%29 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
store ptr %29, ptr %4, align 8
%30 = load ptr, ptr %5, align 8
%31 = call i32 @strcpy(ptr noundef %30, ptr noundef @.str)
%32 = load ptr, ptr %5, align 8
%33 = call i32 @strlen(ptr noundef %32)
%34 = load i32, ptr %15, align 4
%35 = add nsw i32 %34, %33
store i32 %35, ptr %15, align 4
br label %36
36: ; preds = %41, %0
%37 = load ptr, ptr %5, align 8
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %47
41: ; preds = %36
%42 = load ptr, ptr %5, align 8
%43 = getelementptr inbounds i8, ptr %42, i32 1
store ptr %43, ptr %5, align 8
%44 = load i8, ptr %42, align 1
%45 = load ptr, ptr %4, align 8
%46 = getelementptr inbounds i8, ptr %45, i32 1
store ptr %46, ptr %4, align 8
store i8 %44, ptr %45, align 1
br label %36, !llvm.loop !6
47: ; preds = %36
%48 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%49 = call i32 @strcpy(ptr noundef %48, ptr noundef @.str.1)
%50 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%51 = load ptr, ptr %11, align 8
%52 = getelementptr inbounds ptr, ptr %51, i32 1
store ptr %52, ptr %11, align 8
store ptr %50, ptr %51, align 8
%53 = load ptr, ptr %11, align 8
%54 = getelementptr inbounds ptr, ptr %53, i32 -1
store ptr %54, ptr %11, align 8
store ptr null, ptr %53, align 8
store ptr null, ptr %12, align 8
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%56 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%57 = load ptr, ptr %7, align 8
%58 = load ptr, ptr %11, align 8
%59 = load ptr, ptr %12, align 8
%60 = call i32 @dn_comp(ptr noundef %56, ptr noundef %57, i32 noundef 200, ptr noundef %58, ptr noundef %59)
store i32 %60, ptr %16, align 4
%61 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%62 = call i32 @strlen(ptr noundef %61)
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %62)
%64 = load i32, ptr %16, align 4
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %64)
%66 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%67 = load ptr, ptr %7, align 8
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %66, ptr noundef %67)
store i32 0, ptr %14, align 4
br label %69
69: ; preds = %79, %47
%70 = load i32, ptr %14, align 4
%71 = load i32, ptr %16, align 4
%72 = icmp slt i32 %70, %71
br i1 %72, label %73, label %82
73: ; preds = %69
%74 = load ptr, ptr %7, align 8
%75 = getelementptr inbounds i8, ptr %74, i32 1
store ptr %75, ptr %7, align 8
%76 = load i8, ptr %74, align 1
%77 = load ptr, ptr %4, align 8
%78 = getelementptr inbounds i8, ptr %77, i32 1
store ptr %78, ptr %4, align 8
store i8 %76, ptr %77, align 1
br label %79
79: ; preds = %73
%80 = load i32, ptr %14, align 4
%81 = add nsw i32 %80, 1
store i32 %81, ptr %14, align 4
br label %69, !llvm.loop !8
82: ; preds = %69
%83 = load i32, ptr %16, align 4
%84 = load i32, ptr %15, align 4
%85 = add nsw i32 %84, %83
store i32 %85, ptr %15, align 4
%86 = load ptr, ptr %4, align 8
%87 = call i32 @PUTSHORT(i32 noundef 24, ptr noundef %86)
%88 = load ptr, ptr %4, align 8
%89 = getelementptr inbounds i8, ptr %88, i64 2
store ptr %89, ptr %4, align 8
%90 = load i32, ptr @C_IN, align 4
%91 = load ptr, ptr %4, align 8
%92 = call i32 @PUTSHORT(i32 noundef %90, ptr noundef %91)
%93 = load ptr, ptr %4, align 8
%94 = getelementptr inbounds i8, ptr %93, i64 2
store ptr %94, ptr %4, align 8
%95 = load ptr, ptr %4, align 8
%96 = call i32 @PUTLONG(i32 noundef 255, ptr noundef %95)
%97 = load ptr, ptr %4, align 8
%98 = getelementptr inbounds i8, ptr %97, i64 4
store ptr %98, ptr %4, align 8
%99 = load ptr, ptr %4, align 8
%100 = call i32 @PUTSHORT(i32 noundef 30, ptr noundef %99)
%101 = load ptr, ptr %4, align 8
%102 = getelementptr inbounds i8, ptr %101, i64 2
store ptr %102, ptr %4, align 8
%103 = load i32, ptr %15, align 4
%104 = add nsw i32 %103, 10
store i32 %104, ptr %15, align 4
%105 = load ptr, ptr %4, align 8
%106 = call i32 @PUTSHORT(i32 noundef 15, ptr noundef %105)
%107 = load ptr, ptr %4, align 8
%108 = getelementptr inbounds i8, ptr %107, i64 2
store ptr %108, ptr %4, align 8
%109 = load ptr, ptr %4, align 8
%110 = call i32 @PUTSHORT(i32 noundef 512, ptr noundef %109)
%111 = load ptr, ptr %4, align 8
%112 = getelementptr inbounds i8, ptr %111, i64 2
store ptr %112, ptr %4, align 8
%113 = load ptr, ptr %4, align 8
%114 = call i32 @PUTLONG(i32 noundef 255, ptr noundef %113)
%115 = load ptr, ptr %4, align 8
%116 = getelementptr inbounds i8, ptr %115, i64 4
store ptr %116, ptr %4, align 8
%117 = call i32 @time(ptr noundef null)
store i32 %117, ptr %17, align 4
%118 = load i32, ptr %17, align 4
%119 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %118)
%120 = load i32, ptr %17, align 4
%121 = add nsw i32 %120, 1872000
%122 = load ptr, ptr %4, align 8
%123 = call i32 @PUTLONG(i32 noundef %121, ptr noundef %122)
%124 = load ptr, ptr %4, align 8
%125 = getelementptr inbounds i8, ptr %124, i64 4
store ptr %125, ptr %4, align 8
%126 = load i32, ptr %17, align 4
%127 = load ptr, ptr %4, align 8
%128 = call i32 @PUTLONG(i32 noundef %126, ptr noundef %127)
%129 = load ptr, ptr %4, align 8
%130 = getelementptr inbounds i8, ptr %129, i64 4
store ptr %130, ptr %4, align 8
%131 = load ptr, ptr %4, align 8
%132 = call i32 @PUTSHORT(i32 noundef 100, ptr noundef %131)
%133 = load ptr, ptr %4, align 8
%134 = getelementptr inbounds i8, ptr %133, i64 2
store ptr %134, ptr %4, align 8
%135 = load i32, ptr %15, align 4
%136 = add nsw i32 %135, 18
store i32 %136, ptr %15, align 4
%137 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 0
%138 = call i32 @strcpy(ptr noundef %137, ptr noundef @.str.7)
%139 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 0
%140 = load ptr, ptr %13, align 8
%141 = getelementptr inbounds ptr, ptr %140, i32 1
store ptr %141, ptr %13, align 8
store ptr %139, ptr %140, align 8
%142 = load ptr, ptr %13, align 8
%143 = getelementptr inbounds ptr, ptr %142, i32 -1
store ptr %143, ptr %13, align 8
store ptr null, ptr %142, align 8
store ptr null, ptr %12, align 8
%144 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%145 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 0
%146 = load ptr, ptr %8, align 8
%147 = load ptr, ptr %13, align 8
%148 = load ptr, ptr %12, align 8
%149 = call i32 @dn_comp(ptr noundef %145, ptr noundef %146, i32 noundef 200, ptr noundef %147, ptr noundef %148)
store i32 %149, ptr %16, align 4
%150 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 0
%151 = call i32 @strlen(ptr noundef %150)
%152 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %151)
%153 = load i32, ptr %16, align 4
%154 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %153)
%155 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 0
%156 = load ptr, ptr %8, align 8
%157 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %155, ptr noundef %156)
%158 = load i32, ptr %16, align 4
%159 = load i32, ptr %15, align 4
%160 = add nsw i32 %159, %158
store i32 %160, ptr %15, align 4
store i32 0, ptr %14, align 4
br label %161
161: ; preds = %171, %82
%162 = load i32, ptr %14, align 4
%163 = load i32, ptr %16, align 4
%164 = icmp slt i32 %162, %163
br i1 %164, label %165, label %174
165: ; preds = %161
%166 = load ptr, ptr %8, align 8
%167 = getelementptr inbounds i8, ptr %166, i32 1
store ptr %167, ptr %8, align 8
%168 = load i8, ptr %166, align 1
%169 = load ptr, ptr %4, align 8
%170 = getelementptr inbounds i8, ptr %169, i32 1
store ptr %170, ptr %4, align 8
store i8 %168, ptr %169, align 1
br label %171
171: ; preds = %165
%172 = load i32, ptr %14, align 4
%173 = add nsw i32 %172, 1
store i32 %173, ptr %14, align 4
br label %161, !llvm.loop !9
174: ; preds = %161
store i32 0, ptr %14, align 4
br label %175
175: ; preds = %185, %174
%176 = load i32, ptr %14, align 4
%177 = icmp slt i32 %176, 11
br i1 %177, label %178, label %188
178: ; preds = %175
%179 = load ptr, ptr %4, align 8
%180 = call i32 @PUTLONG(i32 noundef 123, ptr noundef %179)
%181 = load ptr, ptr %4, align 8
%182 = getelementptr inbounds i8, ptr %181, i64 4
store ptr %182, ptr %4, align 8
%183 = load i32, ptr %15, align 4
%184 = add nsw i32 %183, 4
store i32 %184, ptr %15, align 4
br label %185
185: ; preds = %178
%186 = load i32, ptr %14, align 4
%187 = add nsw i32 %186, 1
store i32 %187, ptr %14, align 4
br label %175, !llvm.loop !10
188: ; preds = %175
%189 = call ptr @fopen(ptr noundef @.str.9, ptr noundef @.str.10)
store ptr %189, ptr %2, align 8
%190 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
store ptr %190, ptr %4, align 8
%191 = load i32, ptr %15, align 4
%192 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %191)
store i32 0, ptr %14, align 4
br label %193
193: ; preds = %202, %188
%194 = load i32, ptr %14, align 4
%195 = load i32, ptr %15, align 4
%196 = icmp slt i32 %194, %195
br i1 %196, label %197, label %207
197: ; preds = %193
%198 = load ptr, ptr %4, align 8
%199 = load i8, ptr %198, align 1
%200 = load ptr, ptr %2, align 8
%201 = call i32 @fputc(i8 noundef zeroext %199, ptr noundef %200)
br label %202
202: ; preds = %197
%203 = load i32, ptr %14, align 4
%204 = add nsw i32 %203, 1
store i32 %204, ptr %14, align 4
%205 = load ptr, ptr %4, align 8
%206 = getelementptr inbounds i8, ptr %205, i32 1
store ptr %206, ptr %4, align 8
br label %193, !llvm.loop !11
207: ; preds = %193
%208 = load ptr, ptr %2, align 8
%209 = call i32 @fclose(ptr noundef %208)
%210 = load i32, ptr %1, align 4
ret i32 %210
}
declare i64 @malloc(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @dn_comp(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @PUTSHORT(i32 noundef, ptr noundef) #1
declare i32 @PUTLONG(i32 noundef, ptr noundef) #1
declare i32 @time(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fputc(i8 noundef zeroext, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplz596191.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"HEADER JUNK:\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"lcs.mit.edu\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Calling dn_comp..\0A\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"uncomp_size = %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"comp_size = %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"exp_dn = %s, comp_dn = %s\0A\00", align 1
@C_IN = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [17 x i8] c"Signing at = %d\0A\00", align 1
@.str.7 = private unnamed_addr constant [16 x i8] c"sls.lcs.mit.edu\00", align 1
@.str.8 = private unnamed_addr constant [29 x i8] c"exp_dn2 = %s, comp_dn2 = %s\0A\00", align 1
@.str.9 = private unnamed_addr constant [9 x i8] c"testcase\00", align 1
@.str.10 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.11 = private unnamed_addr constant [10 x i8] c"len = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca [1000 x i8], align 16
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca [200 x i8], align 16
%10 = alloca [200 x i8], align 16
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %15, align 4
%18 = call i64 @malloc(i32 noundef 16)
%19 = inttoptr i64 %18 to ptr
store ptr %19, ptr %11, align 8
%20 = call i64 @malloc(i32 noundef 16)
%21 = inttoptr i64 %20 to ptr
store ptr %21, ptr %13, align 8
%22 = call i64 @malloc(i32 noundef 200)
%23 = inttoptr i64 %22 to ptr
store ptr %23, ptr %7, align 8
%24 = call i64 @malloc(i32 noundef 200)
%25 = inttoptr i64 %24 to ptr
store ptr %25, ptr %8, align 8
%26 = call i64 @malloc(i32 noundef 400)
%27 = inttoptr i64 %26 to ptr
store ptr %27, ptr %6, align 8
%28 = load ptr, ptr %6, align 8
store ptr %28, ptr %5, align 8
%29 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
store ptr %29, ptr %4, align 8
%30 = load ptr, ptr %5, align 8
%31 = call i32 @strcpy(ptr noundef %30, ptr noundef @.str)
%32 = load ptr, ptr %5, align 8
%33 = call i32 @strlen(ptr noundef %32)
%34 = load i32, ptr %15, align 4
%35 = add nsw i32 %34, %33
store i32 %35, ptr %15, align 4
%36 = load ptr, ptr %5, align 8
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = icmp ne i32 %38, 0
br i1 %39, label %.lr.ph, label %50
.lr.ph: ; preds = %0
br label %40
40: ; preds = %.lr.ph, %40
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds i8, ptr %41, i32 1
store ptr %42, ptr %5, align 8
%43 = load i8, ptr %41, align 1
%44 = load ptr, ptr %4, align 8
%45 = getelementptr inbounds i8, ptr %44, i32 1
store ptr %45, ptr %4, align 8
store i8 %43, ptr %44, align 1
%46 = load ptr, ptr %5, align 8
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = icmp ne i32 %48, 0
br i1 %49, label %40, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %40
br label %50
50: ; preds = %._crit_edge, %0
%51 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%52 = call i32 @strcpy(ptr noundef %51, ptr noundef @.str.1)
%53 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%54 = load ptr, ptr %11, align 8
%55 = getelementptr inbounds ptr, ptr %54, i32 1
store ptr %55, ptr %11, align 8
store ptr %53, ptr %54, align 8
%56 = load ptr, ptr %11, align 8
%57 = getelementptr inbounds ptr, ptr %56, i32 -1
store ptr %57, ptr %11, align 8
store ptr null, ptr %56, align 8
store ptr null, ptr %12, align 8
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%59 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%60 = load ptr, ptr %7, align 8
%61 = load ptr, ptr %11, align 8
%62 = load ptr, ptr %12, align 8
%63 = call i32 @dn_comp(ptr noundef %59, ptr noundef %60, i32 noundef 200, ptr noundef %61, ptr noundef %62)
store i32 %63, ptr %16, align 4
%64 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%65 = call i32 @strlen(ptr noundef %64)
%66 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %65)
%67 = load i32, ptr %16, align 4
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %67)
%69 = getelementptr inbounds [200 x i8], ptr %9, i64 0, i64 0
%70 = load ptr, ptr %7, align 8
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %69, ptr noundef %70)
store i32 0, ptr %14, align 4
%72 = load i32, ptr %14, align 4
%73 = load i32, ptr %16, align 4
%74 = icmp slt i32 %72, %73
br i1 %74, label %.lr.ph2, label %87
.lr.ph2: ; preds = %50
br label %75
75: ; preds = %.lr.ph2, %81
%76 = load ptr, ptr %7, align 8
%77 = getelementptr inbounds i8, ptr %76, i32 1
store ptr %77, ptr %7, align 8
%78 = load i8, ptr %76, align 1
%79 = load ptr, ptr %4, align 8
%80 = getelementptr inbounds i8, ptr %79, i32 1
store ptr %80, ptr %4, align 8
store i8 %78, ptr %79, align 1
br label %81
81: ; preds = %75
%82 = load i32, ptr %14, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %14, align 4
%84 = load i32, ptr %14, align 4
%85 = load i32, ptr %16, align 4
%86 = icmp slt i32 %84, %85
br i1 %86, label %75, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %81
br label %87
87: ; preds = %._crit_edge3, %50
%88 = load i32, ptr %16, align 4
%89 = load i32, ptr %15, align 4
%90 = add nsw i32 %89, %88
store i32 %90, ptr %15, align 4
%91 = load ptr, ptr %4, align 8
%92 = call i32 @PUTSHORT(i32 noundef 24, ptr noundef %91)
%93 = load ptr, ptr %4, align 8
%94 = getelementptr inbounds i8, ptr %93, i64 2
store ptr %94, ptr %4, align 8
%95 = load i32, ptr @C_IN, align 4
%96 = load ptr, ptr %4, align 8
%97 = call i32 @PUTSHORT(i32 noundef %95, ptr noundef %96)
%98 = load ptr, ptr %4, align 8
%99 = getelementptr inbounds i8, ptr %98, i64 2
store ptr %99, ptr %4, align 8
%100 = load ptr, ptr %4, align 8
%101 = call i32 @PUTLONG(i32 noundef 255, ptr noundef %100)
%102 = load ptr, ptr %4, align 8
%103 = getelementptr inbounds i8, ptr %102, i64 4
store ptr %103, ptr %4, align 8
%104 = load ptr, ptr %4, align 8
%105 = call i32 @PUTSHORT(i32 noundef 30, ptr noundef %104)
%106 = load ptr, ptr %4, align 8
%107 = getelementptr inbounds i8, ptr %106, i64 2
store ptr %107, ptr %4, align 8
%108 = load i32, ptr %15, align 4
%109 = add nsw i32 %108, 10
store i32 %109, ptr %15, align 4
%110 = load ptr, ptr %4, align 8
%111 = call i32 @PUTSHORT(i32 noundef 15, ptr noundef %110)
%112 = load ptr, ptr %4, align 8
%113 = getelementptr inbounds i8, ptr %112, i64 2
store ptr %113, ptr %4, align 8
%114 = load ptr, ptr %4, align 8
%115 = call i32 @PUTSHORT(i32 noundef 512, ptr noundef %114)
%116 = load ptr, ptr %4, align 8
%117 = getelementptr inbounds i8, ptr %116, i64 2
store ptr %117, ptr %4, align 8
%118 = load ptr, ptr %4, align 8
%119 = call i32 @PUTLONG(i32 noundef 255, ptr noundef %118)
%120 = load ptr, ptr %4, align 8
%121 = getelementptr inbounds i8, ptr %120, i64 4
store ptr %121, ptr %4, align 8
%122 = call i32 @time(ptr noundef null)
store i32 %122, ptr %17, align 4
%123 = load i32, ptr %17, align 4
%124 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %123)
%125 = load i32, ptr %17, align 4
%126 = add nsw i32 %125, 1872000
%127 = load ptr, ptr %4, align 8
%128 = call i32 @PUTLONG(i32 noundef %126, ptr noundef %127)
%129 = load ptr, ptr %4, align 8
%130 = getelementptr inbounds i8, ptr %129, i64 4
store ptr %130, ptr %4, align 8
%131 = load i32, ptr %17, align 4
%132 = load ptr, ptr %4, align 8
%133 = call i32 @PUTLONG(i32 noundef %131, ptr noundef %132)
%134 = load ptr, ptr %4, align 8
%135 = getelementptr inbounds i8, ptr %134, i64 4
store ptr %135, ptr %4, align 8
%136 = load ptr, ptr %4, align 8
%137 = call i32 @PUTSHORT(i32 noundef 100, ptr noundef %136)
%138 = load ptr, ptr %4, align 8
%139 = getelementptr inbounds i8, ptr %138, i64 2
store ptr %139, ptr %4, align 8
%140 = load i32, ptr %15, align 4
%141 = add nsw i32 %140, 18
store i32 %141, ptr %15, align 4
%142 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 0
%143 = call i32 @strcpy(ptr noundef %142, ptr noundef @.str.7)
%144 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 0
%145 = load ptr, ptr %13, align 8
%146 = getelementptr inbounds ptr, ptr %145, i32 1
store ptr %146, ptr %13, align 8
store ptr %144, ptr %145, align 8
%147 = load ptr, ptr %13, align 8
%148 = getelementptr inbounds ptr, ptr %147, i32 -1
store ptr %148, ptr %13, align 8
store ptr null, ptr %147, align 8
store ptr null, ptr %12, align 8
%149 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%150 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 0
%151 = load ptr, ptr %8, align 8
%152 = load ptr, ptr %13, align 8
%153 = load ptr, ptr %12, align 8
%154 = call i32 @dn_comp(ptr noundef %150, ptr noundef %151, i32 noundef 200, ptr noundef %152, ptr noundef %153)
store i32 %154, ptr %16, align 4
%155 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 0
%156 = call i32 @strlen(ptr noundef %155)
%157 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %156)
%158 = load i32, ptr %16, align 4
%159 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %158)
%160 = getelementptr inbounds [200 x i8], ptr %10, i64 0, i64 0
%161 = load ptr, ptr %8, align 8
%162 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %160, ptr noundef %161)
%163 = load i32, ptr %16, align 4
%164 = load i32, ptr %15, align 4
%165 = add nsw i32 %164, %163
store i32 %165, ptr %15, align 4
store i32 0, ptr %14, align 4
%166 = load i32, ptr %14, align 4
%167 = load i32, ptr %16, align 4
%168 = icmp slt i32 %166, %167
br i1 %168, label %.lr.ph5, label %181
.lr.ph5: ; preds = %87
br label %169
169: ; preds = %.lr.ph5, %175
%170 = load ptr, ptr %8, align 8
%171 = getelementptr inbounds i8, ptr %170, i32 1
store ptr %171, ptr %8, align 8
%172 = load i8, ptr %170, align 1
%173 = load ptr, ptr %4, align 8
%174 = getelementptr inbounds i8, ptr %173, i32 1
store ptr %174, ptr %4, align 8
store i8 %172, ptr %173, align 1
br label %175
175: ; preds = %169
%176 = load i32, ptr %14, align 4
%177 = add nsw i32 %176, 1
store i32 %177, ptr %14, align 4
%178 = load i32, ptr %14, align 4
%179 = load i32, ptr %16, align 4
%180 = icmp slt i32 %178, %179
br i1 %180, label %169, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %175
br label %181
181: ; preds = %._crit_edge6, %87
store i32 0, ptr %14, align 4
%182 = load i32, ptr %14, align 4
%183 = icmp slt i32 %182, 11
br i1 %183, label %.lr.ph8, label %196
.lr.ph8: ; preds = %181
br label %184
184: ; preds = %.lr.ph8, %191
%185 = load ptr, ptr %4, align 8
%186 = call i32 @PUTLONG(i32 noundef 123, ptr noundef %185)
%187 = load ptr, ptr %4, align 8
%188 = getelementptr inbounds i8, ptr %187, i64 4
store ptr %188, ptr %4, align 8
%189 = load i32, ptr %15, align 4
%190 = add nsw i32 %189, 4
store i32 %190, ptr %15, align 4
br label %191
191: ; preds = %184
%192 = load i32, ptr %14, align 4
%193 = add nsw i32 %192, 1
store i32 %193, ptr %14, align 4
%194 = load i32, ptr %14, align 4
%195 = icmp slt i32 %194, 11
br i1 %195, label %184, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %191
br label %196
196: ; preds = %._crit_edge9, %181
%197 = call ptr @fopen(ptr noundef @.str.9, ptr noundef @.str.10)
store ptr %197, ptr %2, align 8
%198 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
store ptr %198, ptr %4, align 8
%199 = load i32, ptr %15, align 4
%200 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %199)
store i32 0, ptr %14, align 4
%201 = load i32, ptr %14, align 4
%202 = load i32, ptr %15, align 4
%203 = icmp slt i32 %201, %202
br i1 %203, label %.lr.ph11, label %217
.lr.ph11: ; preds = %196
br label %204
204: ; preds = %.lr.ph11, %209
%205 = load ptr, ptr %4, align 8
%206 = load i8, ptr %205, align 1
%207 = load ptr, ptr %2, align 8
%208 = call i32 @fputc(i8 noundef zeroext %206, ptr noundef %207)
br label %209
209: ; preds = %204
%210 = load i32, ptr %14, align 4
%211 = add nsw i32 %210, 1
store i32 %211, ptr %14, align 4
%212 = load ptr, ptr %4, align 8
%213 = getelementptr inbounds i8, ptr %212, i32 1
store ptr %213, ptr %4, align 8
%214 = load i32, ptr %14, align 4
%215 = load i32, ptr %15, align 4
%216 = icmp slt i32 %214, %215
br i1 %216, label %204, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %209
br label %217
217: ; preds = %._crit_edge12, %196
%218 = load ptr, ptr %2, align 8
%219 = call i32 @fclose(ptr noundef %218)
%220 = load i32, ptr %1, align 4
ret i32 %220
}
declare i64 @malloc(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @dn_comp(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @PUTSHORT(i32 noundef, ptr noundef) #1
declare i32 @PUTLONG(i32 noundef, ptr noundef) #1
declare i32 @time(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fputc(i8 noundef zeroext, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmp6njb_4li.c'
source_filename = "/tmp/tmp6njb_4li.c"
target datalayout = "e-m:e-p270: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/tmp6njb_4li.c"
target datalayout = "e-m:e-p270: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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.