llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmp2uv3oqre.c'
source_filename = "/tmp/tmp2uv3oqre.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getline(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = call ptr @gets(ptr noundef %6)
store ptr %7, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i8, ptr %8, i64 %10
store i8 0, ptr %11, align 1
%12 = load ptr, ptr %5, align 8
%13 = call i32 @strlen(ptr noundef %12)
ret i32 %13
}
declare ptr @gets(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2uv3oqre.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getline(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = call ptr @gets(ptr noundef %6)
store ptr %7, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i8, ptr %8, i64 %10
store i8 0, ptr %11, align 1
%12 = load ptr, ptr %5, align 8
%13 = call i32 @strlen(ptr noundef %12)
ret i32 %13
}
declare ptr @gets(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpiggyyydi.c'
source_filename = "/tmp/tmpiggyyydi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @memcpy(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
store i64 0, ptr %7, align 8
br label %8
8: ; preds = %20, %3
%9 = load i64, ptr %7, align 8
%10 = load i64, ptr %6, align 8
%11 = icmp ult i64 %9, %10
br i1 %11, label %12, label %23
12: ; preds = %8
%13 = load ptr, ptr %5, align 8
%14 = load i64, ptr %7, align 8
%15 = getelementptr inbounds i8, ptr %13, i64 %14
%16 = load i8, ptr %15, align 1
%17 = load ptr, ptr %4, align 8
%18 = load i64, ptr %7, align 8
%19 = getelementptr inbounds i8, ptr %17, i64 %18
store i8 %16, ptr %19, align 1
br label %20
20: ; preds = %12
%21 = load i64, ptr %7, align 8
%22 = add i64 %21, 1
store i64 %22, ptr %7, align 8
br label %8, !llvm.loop !6
23: ; preds = %8
%24 = load ptr, ptr %4, align 8
ret ptr %24
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpiggyyydi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @memcpy(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
store i64 0, ptr %7, align 8
%8 = load i64, ptr %7, align 8
%9 = load i64, ptr %6, align 8
%10 = icmp ult i64 %8, %9
br i1 %10, label %.lr.ph, label %25
.lr.ph: ; preds = %3
br label %11
11: ; preds = %.lr.ph, %19
%12 = load ptr, ptr %5, align 8
%13 = load i64, ptr %7, align 8
%14 = getelementptr inbounds i8, ptr %12, i64 %13
%15 = load i8, ptr %14, align 1
%16 = load ptr, ptr %4, align 8
%17 = load i64, ptr %7, align 8
%18 = getelementptr inbounds i8, ptr %16, i64 %17
store i8 %15, ptr %18, align 1
br label %19
19: ; preds = %11
%20 = load i64, ptr %7, align 8
%21 = add i64 %20, 1
store i64 %21, ptr %7, align 8
%22 = load i64, ptr %7, align 8
%23 = load i64, ptr %6, align 8
%24 = icmp ult i64 %22, %23
br i1 %24, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %25
25: ; preds = %._crit_edge, %3
%26 = load ptr, ptr %4, align 8
ret ptr %26
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_25mrsoh.c'
source_filename = "/tmp/tmp_25mrsoh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"foo()\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @foo() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret i32 2
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_25mrsoh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"foo()\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @foo() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret i32 2
}
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/tmp6kmn79jh.c'
source_filename = "/tmp/tmp6kmn79jh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @uwsgi_opt_pidfile_signal(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 ptr, align 8
%8 = 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
%9 = load ptr, ptr %6, align 8
store ptr %9, ptr %7, align 8
%10 = load ptr, ptr %7, align 8
%11 = ptrtoint ptr %10 to i64
%12 = trunc i64 %11 to i32
store i32 %12, ptr %8, align 4
%13 = load i32, ptr %8, align 4
%14 = load ptr, ptr %5, align 8
%15 = call i32 @signal_pidfile(i32 noundef %13, ptr noundef %14)
%16 = call i32 @uwsgi_exit(i32 noundef %15)
ret void
}
declare i32 @uwsgi_exit(i32 noundef) #1
declare i32 @signal_pidfile(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6kmn79jh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @uwsgi_opt_pidfile_signal(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 ptr, align 8
%8 = 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
%9 = load ptr, ptr %6, align 8
store ptr %9, ptr %7, align 8
%10 = load ptr, ptr %7, align 8
%11 = ptrtoint ptr %10 to i64
%12 = trunc i64 %11 to i32
store i32 %12, ptr %8, align 4
%13 = load i32, ptr %8, align 4
%14 = load ptr, ptr %5, align 8
%15 = call i32 @signal_pidfile(i32 noundef %13, ptr noundef %14)
%16 = call i32 @uwsgi_exit(i32 noundef %15)
ret void
}
declare i32 @uwsgi_exit(i32 noundef) #1
declare i32 @signal_pidfile(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9am7clx1.c'
source_filename = "/tmp/tmp9am7clx1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @setwaveletlength0(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = 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 %3, ptr %8, align 4
store i32 0, ptr %10, align 4
store i32 0, ptr %9, align 4
br label %12
12: ; preds = %44, %4
%13 = load i32, ptr %9, align 4
%14 = load i32, ptr %7, align 4
%15 = icmp ult i32 %13, %14
br i1 %15, label %16, label %47
16: ; preds = %12
%17 = load ptr, ptr %6, align 8
%18 = load i32, ptr %9, align 4
%19 = zext i32 %18 to i64
%20 = getelementptr inbounds double, ptr %17, i64 %19
%21 = load double, ptr %20, align 8
%22 = fmul double 5.000000e+00, %21
%23 = fptosi double %22 to i32
%24 = call i64 @ceil(i32 noundef %23)
%25 = trunc i64 %24 to i32
%26 = mul i32 2, %25
%27 = add i32 %26, 1
store i32 %27, ptr %11, align 4
%28 = load i32, ptr %11, align 4
%29 = load i32, ptr %8, align 4
%30 = icmp ugt i32 %28, %29
br i1 %30, label %31, label %33
31: ; preds = %16
%32 = load i32, ptr %8, align 4
br label %35
33: ; preds = %16
%34 = load i32, ptr %11, align 4
br label %35
35: ; preds = %33, %31
%36 = phi i32 [ %32, %31 ], [ %34, %33 ]
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %9, align 4
%39 = zext i32 %38 to i64
%40 = getelementptr inbounds i32, ptr %37, i64 %39
store i32 %36, ptr %40, align 4
%41 = load i32, ptr %11, align 4
%42 = load i32, ptr %10, align 4
%43 = add i32 %42, %41
store i32 %43, ptr %10, align 4
br label %44
44: ; preds = %35
%45 = load i32, ptr %9, align 4
%46 = add i32 %45, 1
store i32 %46, ptr %9, align 4
br label %12, !llvm.loop !6
47: ; preds = %12
%48 = load i32, ptr %10, align 4
ret i32 %48
}
declare i64 @ceil(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/tmp9am7clx1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @setwaveletlength0(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = 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 %3, ptr %8, align 4
store i32 0, ptr %10, align 4
store i32 0, ptr %9, align 4
%12 = load i32, ptr %9, align 4
%13 = load i32, ptr %7, align 4
%14 = icmp ult i32 %12, %13
br i1 %14, label %.lr.ph, label %49
.lr.ph: ; preds = %4
br label %15
15: ; preds = %.lr.ph, %43
%16 = load ptr, ptr %6, align 8
%17 = load i32, ptr %9, align 4
%18 = zext i32 %17 to i64
%19 = getelementptr inbounds double, ptr %16, i64 %18
%20 = load double, ptr %19, align 8
%21 = fmul double 5.000000e+00, %20
%22 = fptosi double %21 to i32
%23 = call i64 @ceil(i32 noundef %22)
%24 = trunc i64 %23 to i32
%25 = mul i32 2, %24
%26 = add i32 %25, 1
store i32 %26, ptr %11, align 4
%27 = load i32, ptr %11, align 4
%28 = load i32, ptr %8, align 4
%29 = icmp ugt i32 %27, %28
br i1 %29, label %30, label %32
30: ; preds = %15
%31 = load i32, ptr %8, align 4
br label %34
32: ; preds = %15
%33 = load i32, ptr %11, align 4
br label %34
34: ; preds = %32, %30
%35 = phi i32 [ %31, %30 ], [ %33, %32 ]
%36 = load ptr, ptr %5, align 8
%37 = load i32, ptr %9, align 4
%38 = zext i32 %37 to i64
%39 = getelementptr inbounds i32, ptr %36, i64 %38
store i32 %35, ptr %39, align 4
%40 = load i32, ptr %11, align 4
%41 = load i32, ptr %10, align 4
%42 = add i32 %41, %40
store i32 %42, ptr %10, align 4
br label %43
43: ; preds = %34
%44 = load i32, ptr %9, align 4
%45 = add i32 %44, 1
store i32 %45, ptr %9, align 4
%46 = load i32, ptr %9, align 4
%47 = load i32, ptr %7, align 4
%48 = icmp ult i32 %46, %47
br i1 %48, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %43
br label %49
49: ; preds = %._crit_edge, %4
%50 = load i32, ptr %10, align 4
ret i32 %50
}
declare i64 @ceil(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/tmpqotmelve.c'
source_filename = "/tmp/tmpqotmelve.c"
target datalayout = "e-m:e-p270: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/tmpqotmelve.c"
target datalayout = "e-m:e-p270: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/tmpdnvojn35.c'
source_filename = "/tmp/tmpdnvojn35.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@TIOCMGET = dso_local global i32 0, align 4
@TIOCM_CTS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @tty_cts() #0 {
%1 = load i32, ptr @TIOCMGET, align 4
%2 = call i32 @modem_ioctl(i32 noundef %1, i32 noundef 0)
%3 = load i32, ptr @TIOCM_CTS, align 4
%4 = and i32 %2, %3
%5 = icmp ne i32 %4, 0
%6 = xor i1 %5, true
%7 = xor i1 %6, true
%8 = zext i1 %7 to i32
ret i32 %8
}
declare i32 @modem_ioctl(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/tmpdnvojn35.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@TIOCMGET = dso_local global i32 0, align 4
@TIOCM_CTS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @tty_cts() #0 {
%1 = load i32, ptr @TIOCMGET, align 4
%2 = call i32 @modem_ioctl(i32 noundef %1, i32 noundef 0)
%3 = load i32, ptr @TIOCM_CTS, align 4
%4 = and i32 %2, %3
%5 = icmp ne i32 %4, 0
%6 = xor i1 %5, true
%7 = xor i1 %6, true
%8 = zext i1 %7 to i32
ret i32 %8
}
declare i32 @modem_ioctl(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/tmpuzb5vi5l.c'
source_filename = "/tmp/tmpuzb5vi5l.c"
target datalayout = "e-m:e-p270: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/tmpuzb5vi5l.c"
target datalayout = "e-m:e-p270: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/tmpg6omq_8m.c'
source_filename = "/tmp/tmpg6omq_8m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"end of the program...\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @test1()
%7 = call i32 (...) @test2()
%8 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @test1(...) #1
declare i32 @test2(...) #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/tmpg6omq_8m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"end of the program...\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @test1()
%7 = call i32 (...) @test2()
%8 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @test1(...) #1
declare i32 @test2(...) #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/tmphfiwtdn3.c'
source_filename = "/tmp/tmphfiwtdn3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@func_in_stat.stat_buf = internal global [128 x i8] zeroinitializer, align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @func_in_stat(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %10, label %7
7: ; preds = %2
%8 = load ptr, ptr %3, align 8
%9 = call ptr @_func_in_stat(ptr noundef %8)
br label %14
10: ; preds = %2
%11 = load ptr, ptr %3, align 8
%12 = load ptr, ptr %4, align 8
%13 = call ptr @__func_in_stat(ptr noundef %11, ptr noundef %12, ptr noundef @func_in_stat.stat_buf)
br label %14
14: ; preds = %10, %7
%15 = phi ptr [ %9, %7 ], [ %13, %10 ]
ret ptr %15
}
declare ptr @_func_in_stat(ptr noundef) #1
declare ptr @__func_in_stat(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/tmphfiwtdn3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@func_in_stat.stat_buf = internal global [128 x i8] zeroinitializer, align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @func_in_stat(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %10, label %7
7: ; preds = %2
%8 = load ptr, ptr %3, align 8
%9 = call ptr @_func_in_stat(ptr noundef %8)
br label %14
10: ; preds = %2
%11 = load ptr, ptr %3, align 8
%12 = load ptr, ptr %4, align 8
%13 = call ptr @__func_in_stat(ptr noundef %11, ptr noundef %12, ptr noundef @func_in_stat.stat_buf)
br label %14
14: ; preds = %10, %7
%15 = phi ptr [ %9, %7 ], [ %13, %10 ]
ret ptr %15
}
declare ptr @_func_in_stat(ptr noundef) #1
declare ptr @__func_in_stat(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/tmpjwhxjwr0.c'
source_filename = "/tmp/tmpjwhxjwr0.c"
target datalayout = "e-m:e-p270: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/tmpjwhxjwr0.c"
target datalayout = "e-m:e-p270: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/tmpq2nun7_b.c'
source_filename = "/tmp/tmpq2nun7_b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq2nun7_b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6cp6dsfc.c'
source_filename = "/tmp/tmp6cp6dsfc.c"
target datalayout = "e-m:e-p270: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/tmp6cp6dsfc.c"
target datalayout = "e-m:e-p270: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/tmprhvu13df.c'
source_filename = "/tmp/tmprhvu13df.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_ispunct.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"ispunct should be 0 for 0x1b\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_ispunct_0x1b() #0 {
%1 = call i64 @ispunct(i32 noundef 27)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 140, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @ispunct(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/tmprhvu13df.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_ispunct.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"ispunct should be 0 for 0x1b\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_ispunct_0x1b() #0 {
%1 = call i64 @ispunct(i32 noundef 27)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 140, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @ispunct(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/tmp6v9d3el7.c'
source_filename = "/tmp/tmp6v9d3el7.c"
target datalayout = "e-m:e-p270: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.arreglo = private unnamed_addr constant [10 x i32] [i32 1, i32 4, i32 20, i32 10, i32 3, i32 8, i32 9, i32 14, i32 21, i32 6], align 16
@.str = private unnamed_addr constant [17 x i8] c"Iteracion #%03d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [10 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.arreglo, i64 40, i1 false)
store i32 10, ptr %3, align 4
store i32 1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = add nsw i32 %5, 1
store i32 %6, ptr %4, align 4
%7 = call i32 @printf(ptr noundef @.str, i32 noundef %5)
%8 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%9 = call i32 @imprimir_arreglo(ptr noundef %8)
%10 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%11 = load i32, ptr %3, align 4
%12 = call i32 @quicksort(ptr noundef %10, i32 noundef %11, ptr noundef %4)
%13 = load i32, ptr %4, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %4, align 4
%15 = call i32 @printf(ptr noundef @.str, i32 noundef %13)
%16 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%17 = call i32 @imprimir_arreglo(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 i32 @printf(ptr noundef, i32 noundef) #2
declare i32 @imprimir_arreglo(ptr noundef) #2
declare i32 @quicksort(ptr noundef, 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6v9d3el7.c"
target datalayout = "e-m:e-p270: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.arreglo = private unnamed_addr constant [10 x i32] [i32 1, i32 4, i32 20, i32 10, i32 3, i32 8, i32 9, i32 14, i32 21, i32 6], align 16
@.str = private unnamed_addr constant [17 x i8] c"Iteracion #%03d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [10 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.arreglo, i64 40, i1 false)
store i32 10, ptr %3, align 4
store i32 1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = add nsw i32 %5, 1
store i32 %6, ptr %4, align 4
%7 = call i32 @printf(ptr noundef @.str, i32 noundef %5)
%8 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%9 = call i32 @imprimir_arreglo(ptr noundef %8)
%10 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%11 = load i32, ptr %3, align 4
%12 = call i32 @quicksort(ptr noundef %10, i32 noundef %11, ptr noundef %4)
%13 = load i32, ptr %4, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %4, align 4
%15 = call i32 @printf(ptr noundef @.str, i32 noundef %13)
%16 = getelementptr inbounds [10 x i32], ptr %2, i64 0, i64 0
%17 = call i32 @imprimir_arreglo(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 i32 @printf(ptr noundef, i32 noundef) #2
declare i32 @imprimir_arreglo(ptr noundef) #2
declare i32 @quicksort(ptr noundef, 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"}
|
; ModuleID = '/tmp/tmp580j4g2k.c'
source_filename = "/tmp/tmp580j4g2k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CLOCK_MONOTONIC = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp580j4g2k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CLOCK_MONOTONIC = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnvsgpmxq.c'
source_filename = "/tmp/tmpnvsgpmxq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @llz_psychomodel1_rom_init() #0 {
%1 = call i32 (...) @psy_dbtable_init()
ret void
}
declare i32 @psy_dbtable_init(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnvsgpmxq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @llz_psychomodel1_rom_init() #0 {
%1 = call i32 (...) @psy_dbtable_init()
ret void
}
declare i32 @psy_dbtable_init(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5uym6k15.c'
source_filename = "/tmp/tmp5uym6k15.c"
target datalayout = "e-m:e-p270: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/tmp5uym6k15.c"
target datalayout = "e-m:e-p270: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/tmpny5145hl.c'
source_filename = "/tmp/tmpny5145hl.c"
target datalayout = "e-m:e-p270: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/tmpny5145hl.c"
target datalayout = "e-m:e-p270: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/tmprt5cjtdn.c'
source_filename = "/tmp/tmprt5cjtdn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isEmpty(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = call i64 @length(ptr noundef %4)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 1, ptr %2, align 4
br label %9
8: ; preds = %1
store i32 0, ptr %2, align 4
br label %9
9: ; preds = %8, %7
%10 = load i32, ptr %2, align 4
ret i32 %10
}
declare i64 @length(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprt5cjtdn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isEmpty(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = call i64 @length(ptr noundef %4)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 1, ptr %2, align 4
br label %9
8: ; preds = %1
store i32 0, ptr %2, align 4
br label %9
9: ; preds = %8, %7
%10 = load i32, ptr %2, align 4
ret i32 %10
}
declare i64 @length(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpupwe7pnt.c'
source_filename = "/tmp/tmpupwe7pnt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"main\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 (...) @func()
%3 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @func(...) #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/tmpupwe7pnt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"main\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 (...) @func()
%3 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @func(...) #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/tmpixz2qz_0.c'
source_filename = "/tmp/tmpixz2qz_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"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @calc_with_pow(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call double @pow(double noundef %3, i32 noundef 5)
ret double %4
}
declare double @pow(double noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpixz2qz_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"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @calc_with_pow(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call double @pow(double noundef %3, i32 noundef 5)
ret double %4
}
declare double @pow(double noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_83xpcx4.c'
source_filename = "/tmp/tmp_83xpcx4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @extra()
ret i32 0
}
declare i32 @extra(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!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_83xpcx4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @extra()
ret i32 0
}
declare i32 @extra(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpp9dzgeyl.c'
source_filename = "/tmp/tmpp9dzgeyl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @main() #0 {
%1 = call i32 (...) @hello()
ret void
}
declare i32 @hello(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp9dzgeyl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @main() #0 {
%1 = call i32 (...) @hello()
ret void
}
declare i32 @hello(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpz9zm0r4q.c'
source_filename = "/tmp/tmpz9zm0r4q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter ISBN (x-x-x-x-x): \00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"%d-%d-%d-%d-%d\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"GS1 prefix: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"Group Identifier %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"Publisher code: %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"Item number: %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [17 x i8] c"Check digit: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6)
%9 = load i32, ptr %2, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %9)
%11 = load i32, ptr %3, align 4
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %11)
%13 = load i32, ptr %4, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %13)
%15 = load i32, ptr %5, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %15)
%17 = load i32, ptr %6, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %17)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz9zm0r4q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter ISBN (x-x-x-x-x): \00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"%d-%d-%d-%d-%d\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"GS1 prefix: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"Group Identifier %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"Publisher code: %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"Item number: %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [17 x i8] c"Check digit: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6)
%9 = load i32, ptr %2, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %9)
%11 = load i32, ptr %3, align 4
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %11)
%13 = load i32, ptr %4, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %13)
%15 = load i32, ptr %5, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %15)
%17 = load i32, ptr %6, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %17)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0b0325lf.c'
source_filename = "/tmp/tmp0b0325lf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"him:s:\00", align 1
@EOF = dso_local global i32 0, align 4
@optarg = dso_local global ptr null, align 8
@.str.1 = private unnamed_addr constant [4 x i8] c"md5\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"sha256\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"sha512\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [34 x i8] c"ERROR: invalid value of -m (%s)\0A\0A\00", align 1
@optind = dso_local constant i32 0, align 4
@.str.5 = private unnamed_addr constant [5 x i8] c"$%c$\00", align 1
@.str.6 = private unnamed_addr constant [28 x i8] c"The given salt is invalid. \00", align 1
@.str.7 = private unnamed_addr constant [37 x i8] c"The salt of %s is started by '$%c$'\0A\00", align 1
@STDIN_FILENO = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [37 x i8] c"Error: error reading from stdin: %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.9 = private unnamed_addr constant [41 x i8] c"Error: password too long, maximum is %u\0A\00", align 1
@.str.10 = private unnamed_addr constant [11 x i8] c"Password: \00", align 1
@.str.11 = private unnamed_addr constant [18 x i8] c"Retype Password: \00", align 1
@.str.12 = private unnamed_addr constant [40 x i8] c"Error: Sorry, passwords are not match.\0A\00", align 1
@.str.13 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [64 x i8], align 16
%9 = alloca [32 x i8], align 16
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca [4 x i8], align 1
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca i32, align 4
%19 = alloca [256 x i8], align 16
%20 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 54, ptr %7, align 4
call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 64, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 32, i1 false)
store ptr null, ptr %10, align 8
store ptr null, ptr %11, align 8
store ptr null, ptr %12, align 8
store i32 0, ptr %13, align 4
br label %21
21: ; preds = %70, %2
%22 = load i32, ptr %4, align 4
%23 = load ptr, ptr %5, align 8
%24 = call i32 @getopt(i32 noundef %22, ptr noundef %23, ptr noundef @.str)
store i32 %24, ptr %6, align 4
%25 = load i32, ptr @EOF, align 4
%26 = icmp ne i32 %24, %25
br i1 %26, label %27, label %71
27: ; preds = %21
%28 = load i32, ptr %6, align 4
switch i32 %28, label %68 [
i32 105, label %29
i32 109, label %30
i32 115, label %53
]
29: ; preds = %27
store i32 1, ptr %13, align 4
br label %70
30: ; preds = %27
%31 = load ptr, ptr @optarg, align 8
%32 = call i32 @strcasecmp(ptr noundef %31, ptr noundef @.str.1)
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %35
34: ; preds = %30
store i32 49, ptr %7, align 4
br label %52
35: ; preds = %30
%36 = load ptr, ptr @optarg, align 8
%37 = call i32 @strcasecmp(ptr noundef %36, ptr noundef @.str.2)
%38 = icmp eq i32 %37, 0
br i1 %38, label %39, label %40
39: ; preds = %35
store i32 53, ptr %7, align 4
br label %51
40: ; preds = %35
%41 = load ptr, ptr @optarg, align 8
%42 = call i32 @strcasecmp(ptr noundef %41, ptr noundef @.str.3)
%43 = icmp eq i32 %42, 0
br i1 %43, label %44, label %45
44: ; preds = %40
store i32 54, ptr %7, align 4
br label %50
45: ; preds = %40
%46 = load i32, ptr @stderr, align 4
%47 = load ptr, ptr @optarg, align 8
%48 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %46, ptr noundef @.str.4, ptr noundef %47)
%49 = call i32 (...) @usage()
br label %50
50: ; preds = %45, %44
br label %51
51: ; preds = %50, %39
br label %52
52: ; preds = %51, %34
br label %70
53: ; preds = %27
%54 = load ptr, ptr @optarg, align 8
%55 = call i32 @strlen(ptr noundef %54)
%56 = sext i32 %55 to i64
%57 = icmp uge i64 %56, 64
br i1 %57, label %58, label %62
58: ; preds = %53
%59 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%60 = load ptr, ptr @optarg, align 8
%61 = call i32 @strncpy(ptr noundef %59, ptr noundef %60, i32 noundef 63)
br label %66
62: ; preds = %53
%63 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%64 = load ptr, ptr @optarg, align 8
%65 = call i32 @strcpy(ptr noundef %63, ptr noundef %64)
br label %66
66: ; preds = %62, %58
%67 = phi i32 [ %61, %58 ], [ %65, %62 ]
br label %70
68: ; preds = %27
%69 = call i32 (...) @usage()
br label %70
70: ; preds = %68, %66, %52, %29
br label %21, !llvm.loop !6
71: ; preds = %21
%72 = load i32, ptr %4, align 4
%73 = load i32, ptr @optind, align 4
%74 = sub nsw i32 %72, %73
%75 = icmp sgt i32 %74, 0
br i1 %75, label %76, label %78
76: ; preds = %71
%77 = call i32 (...) @usage()
br label %78
78: ; preds = %76, %71
%79 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%80 = call i32 @strlen(ptr noundef %79)
%81 = icmp sgt i32 %80, 0
br i1 %81, label %82, label %164
82: ; preds = %78
call void @llvm.memset.p0.i64(ptr align 1 %14, i8 0, i64 4, i1 false)
%83 = getelementptr inbounds [4 x i8], ptr %14, i64 0, i64 0
%84 = load i32, ptr %7, align 4
%85 = call i32 @sprintf(ptr noundef %83, ptr noundef @.str.5, i32 noundef %84)
%86 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%87 = load i8, ptr %86, align 16
%88 = sext i8 %87 to i32
%89 = icmp eq i32 %88, 36
br i1 %89, label %90, label %141
90: ; preds = %82
%91 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 2
%92 = load i8, ptr %91, align 2
%93 = sext i8 %92 to i32
%94 = icmp eq i32 %93, 36
br i1 %94, label %95, label %141
95: ; preds = %90
%96 = getelementptr inbounds [4 x i8], ptr %14, i64 0, i64 0
%97 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%98 = call i64 @strncmp(ptr noundef %96, ptr noundef %97, i32 noundef 3)
%99 = icmp ne i64 %98, 0
br i1 %99, label %100, label %118
100: ; preds = %95
%101 = load i32, ptr @stderr, align 4
%102 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %101, ptr noundef @.str.6)
%103 = load i32, ptr %7, align 4
%104 = icmp eq i32 %103, 49
br i1 %104, label %105, label %106
105: ; preds = %100
store ptr @.str.1, ptr %15, align 8
br label %112
106: ; preds = %100
%107 = load i32, ptr %7, align 4
%108 = icmp eq i32 %107, 53
br i1 %108, label %109, label %110
109: ; preds = %106
store ptr @.str.2, ptr %15, align 8
br label %111
110: ; preds = %106
store ptr @.str.3, ptr %15, align 8
br label %111
111: ; preds = %110, %109
br label %112
112: ; preds = %111, %105
%113 = load i32, ptr @stderr, align 4
%114 = load ptr, ptr %15, align 8
%115 = load i32, ptr %7, align 4
%116 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %113, ptr noundef @.str.7, ptr noundef %114, i32 noundef %115)
%117 = call i32 @exit(i32 noundef 1) #4
unreachable
118: ; preds = %95
%119 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%120 = getelementptr inbounds i8, ptr %119, i64 3
%121 = call ptr @strchr(ptr noundef %120, i8 noundef signext 36)
store ptr %121, ptr %16, align 8
%122 = load ptr, ptr %16, align 8
%123 = icmp ne ptr %122, null
br i1 %123, label %124, label %126
124: ; preds = %118
%125 = load ptr, ptr %16, align 8
store i8 0, ptr %125, align 1
br label %126
126: ; preds = %124, %118
%127 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%128 = call i32 @strlen(ptr noundef %127)
%129 = sext i32 %128 to i64
%130 = icmp uge i64 %129, 32
br i1 %130, label %131, label %135
131: ; preds = %126
%132 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
%133 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%134 = call i32 @strncpy(ptr noundef %132, ptr noundef %133, i32 noundef 31)
br label %139
135: ; preds = %126
%136 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
%137 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%138 = call i32 @strcpy(ptr noundef %136, ptr noundef %137)
br label %139
139: ; preds = %135, %131
%140 = phi i32 [ %134, %131 ], [ %138, %135 ]
br label %163
141: ; preds = %90, %82
%142 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
%143 = getelementptr inbounds [4 x i8], ptr %14, i64 0, i64 0
%144 = call i32 @strcpy(ptr noundef %142, ptr noundef %143)
%145 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%146 = call i32 @strlen(ptr noundef %145)
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
%149 = call i32 @strlen(ptr noundef %148)
%150 = sext i32 %149 to i64
%151 = sub i64 32, %150
%152 = icmp uge i64 %147, %151
br i1 %152, label %153, label %157
153: ; preds = %141
%154 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
%155 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%156 = call i32 @strncat(ptr noundef %154, ptr noundef %155, i32 noundef 31)
br label %161
157: ; preds = %141
%158 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
%159 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%160 = call i32 @strcat(ptr noundef %158, ptr noundef %159)
br label %161
161: ; preds = %157, %153
%162 = phi i32 [ %156, %153 ], [ %160, %157 ]
br label %163
163: ; preds = %161, %139
br label %178
164: ; preds = %78
%165 = load i32, ptr %7, align 4
%166 = call ptr @generate_salt(i32 noundef %165)
store ptr %166, ptr %17, align 8
%167 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
%168 = load ptr, ptr %17, align 8
%169 = call i32 @strcpy(ptr noundef %167, ptr noundef %168)
br label %170
170: ; preds = %164
%171 = load ptr, ptr %17, align 8
%172 = icmp ne ptr %171, null
br i1 %172, label %173, label %176
173: ; preds = %170
%174 = load ptr, ptr %17, align 8
%175 = call i32 @free(ptr noundef %174)
store ptr null, ptr %17, align 8
br label %176
176: ; preds = %173, %170
br label %177
177: ; preds = %176
br label %178
178: ; preds = %177, %163
%179 = load i32, ptr %13, align 4
%180 = icmp ne i32 %179, 0
br i1 %180, label %181, label %231
181: ; preds = %178
call void @llvm.memset.p0.i64(ptr align 16 %19, i8 0, i64 256, i1 false)
%182 = load i32, ptr @STDIN_FILENO, align 4
%183 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 0
%184 = call i32 @read(i32 noundef %182, ptr noundef %183, i32 noundef 256)
store i32 %184, ptr %18, align 4
%185 = load i32, ptr %18, align 4
%186 = icmp slt i32 %185, 0
br i1 %186, label %187, label %193
187: ; preds = %181
%188 = load i32, ptr @stderr, align 4
%189 = load i32, ptr @errno, align 4
%190 = call ptr @strerror(i32 noundef %189)
%191 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %188, ptr noundef @.str.8, ptr noundef %190)
%192 = call i32 @exit(i32 noundef 1) #4
unreachable
193: ; preds = %181
%194 = load i32, ptr %18, align 4
%195 = sext i32 %194 to i64
%196 = icmp eq i64 %195, 256
br i1 %196, label %197, label %212
197: ; preds = %193
%198 = load i32, ptr %18, align 4
%199 = sub nsw i32 %198, 1
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 %200
%202 = load i8, ptr %201, align 1
%203 = sext i8 %202 to i32
%204 = icmp ne i32 %203, 10
br i1 %204, label %205, label %209
205: ; preds = %197
%206 = load i32, ptr @stderr, align 4
%207 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %206, ptr noundef @.str.9, i32 noundef 255)
%208 = call i32 @exit(i32 noundef 1) #4
unreachable
209: ; preds = %197
%210 = load i32, ptr %18, align 4
%211 = add nsw i32 %210, -1
store i32 %211, ptr %18, align 4
br label %212
212: ; preds = %209, %193
%213 = load i32, ptr %18, align 4
%214 = sext i32 %213 to i64
%215 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 %214
store i8 0, ptr %215, align 1
%216 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 0
%217 = call ptr @strchr(ptr noundef %216, i8 noundef signext 10)
store ptr %217, ptr %20, align 8
%218 = load ptr, ptr %20, align 8
%219 = icmp ne ptr %218, null
br i1 %219, label %220, label %222
220: ; preds = %212
%221 = load ptr, ptr %20, align 8
store i8 0, ptr %221, align 1
br label %222
222: ; preds = %220, %212
%223 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 0
%224 = call i64 @validate_password(ptr noundef %223)
%225 = icmp ne i64 %224, 0
br i1 %225, label %226, label %228
226: ; preds = %222
%227 = call i32 @exit(i32 noundef 1) #4
unreachable
228: ; preds = %222
%229 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 0
%230 = call ptr @strdup(ptr noundef %229)
store ptr %230, ptr %10, align 8
br label %277
231: ; preds = %178
%232 = call ptr @getpass(ptr noundef @.str.10)
store ptr %232, ptr %12, align 8
%233 = load ptr, ptr %12, align 8
%234 = call i64 @validate_password(ptr noundef %233)
%235 = icmp ne i64 %234, 0
br i1 %235, label %236, label %238
236: ; preds = %231
%237 = call i32 @exit(i32 noundef 1) #4
unreachable
238: ; preds = %231
%239 = load ptr, ptr %12, align 8
%240 = call ptr @strdup(ptr noundef %239)
store ptr %240, ptr %10, align 8
%241 = call ptr @getpass(ptr noundef @.str.11)
store ptr %241, ptr %12, align 8
%242 = load ptr, ptr %12, align 8
%243 = call ptr @strdup(ptr noundef %242)
store ptr %243, ptr %11, align 8
%244 = load ptr, ptr %10, align 8
%245 = load ptr, ptr %11, align 8
%246 = call i64 @strcmp(ptr noundef %244, ptr noundef %245)
%247 = icmp ne i64 %246, 0
br i1 %247, label %248, label %268
248: ; preds = %238
%249 = load i32, ptr @stderr, align 4
%250 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %249, ptr noundef @.str.12)
br label %251
251: ; preds = %248
%252 = load ptr, ptr %10, align 8
%253 = icmp ne ptr %252, null
br i1 %253, label %254, label %257
254: ; preds = %251
%255 = load ptr, ptr %10, align 8
%256 = call i32 @free(ptr noundef %255)
store ptr null, ptr %10, align 8
br label %257
257: ; preds = %254, %251
br label %258
258: ; preds = %257
br label %259
259: ; preds = %258
%260 = load ptr, ptr %11, align 8
%261 = icmp ne ptr %260, null
br i1 %261, label %262, label %265
262: ; preds = %259
%263 = load ptr, ptr %11, align 8
%264 = call i32 @free(ptr noundef %263)
store ptr null, ptr %11, align 8
br label %265
265: ; preds = %262, %259
br label %266
266: ; preds = %265
%267 = call i32 @exit(i32 noundef 1) #4
unreachable
268: ; preds = %238
br label %269
269: ; preds = %268
%270 = load ptr, ptr %11, align 8
%271 = icmp ne ptr %270, null
br i1 %271, label %272, label %275
272: ; preds = %269
%273 = load ptr, ptr %11, align 8
%274 = call i32 @free(ptr noundef %273)
store ptr null, ptr %11, align 8
br label %275
275: ; preds = %272, %269
br label %276
276: ; preds = %275
br label %277
277: ; preds = %276, %228
%278 = load ptr, ptr %10, align 8
%279 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
%280 = call ptr @crypt(ptr noundef %278, ptr noundef %279)
%281 = call i32 @printf(ptr noundef @.str.13, ptr noundef %280)
br label %282
282: ; preds = %277
%283 = load ptr, ptr %10, align 8
%284 = icmp ne ptr %283, null
br i1 %284, label %285, label %288
285: ; preds = %282
%286 = load ptr, ptr %10, align 8
%287 = call i32 @free(ptr noundef %286)
store ptr null, ptr %10, align 8
br label %288
288: ; preds = %285, %282
br label %289
289: ; preds = %288
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @strcasecmp(ptr noundef, ptr noundef) #2
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #2
declare i32 @usage(...) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @strcpy(ptr noundef, ptr noundef) #2
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #2
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare ptr @strchr(ptr noundef, i8 noundef signext) #2
declare i32 @strncat(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @strcat(ptr noundef, ptr noundef) #2
declare ptr @generate_salt(i32 noundef) #2
declare i32 @free(ptr noundef) #2
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #2
declare ptr @strerror(i32 noundef) #2
declare i64 @validate_password(ptr noundef) #2
declare ptr @strdup(ptr noundef) #2
declare ptr @getpass(ptr noundef) #2
declare i64 @strcmp(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
declare ptr @crypt(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0b0325lf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"him:s:\00", align 1
@EOF = dso_local global i32 0, align 4
@optarg = dso_local global ptr null, align 8
@.str.1 = private unnamed_addr constant [4 x i8] c"md5\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"sha256\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"sha512\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [34 x i8] c"ERROR: invalid value of -m (%s)\0A\0A\00", align 1
@optind = dso_local constant i32 0, align 4
@.str.5 = private unnamed_addr constant [5 x i8] c"$%c$\00", align 1
@.str.6 = private unnamed_addr constant [28 x i8] c"The given salt is invalid. \00", align 1
@.str.7 = private unnamed_addr constant [37 x i8] c"The salt of %s is started by '$%c$'\0A\00", align 1
@STDIN_FILENO = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [37 x i8] c"Error: error reading from stdin: %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.9 = private unnamed_addr constant [41 x i8] c"Error: password too long, maximum is %u\0A\00", align 1
@.str.10 = private unnamed_addr constant [11 x i8] c"Password: \00", align 1
@.str.11 = private unnamed_addr constant [18 x i8] c"Retype Password: \00", align 1
@.str.12 = private unnamed_addr constant [40 x i8] c"Error: Sorry, passwords are not match.\0A\00", align 1
@.str.13 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [64 x i8], align 16
%9 = alloca [32 x i8], align 16
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca [4 x i8], align 1
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca i32, align 4
%19 = alloca [256 x i8], align 16
%20 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 54, ptr %7, align 4
call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 64, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 32, i1 false)
store ptr null, ptr %10, align 8
store ptr null, ptr %11, align 8
store ptr null, ptr %12, align 8
store i32 0, ptr %13, align 4
%21 = load i32, ptr %4, align 4
%22 = load ptr, ptr %5, align 8
%23 = call i32 @getopt(i32 noundef %21, ptr noundef %22, ptr noundef @.str)
store i32 %23, ptr %6, align 4
%24 = load i32, ptr @EOF, align 4
%25 = icmp ne i32 %23, %24
br i1 %25, label %.lr.ph, label %75
.lr.ph: ; preds = %2
br label %26
26: ; preds = %.lr.ph, %69
%27 = load i32, ptr %6, align 4
switch i32 %27, label %67 [
i32 105, label %28
i32 109, label %29
i32 115, label %52
]
28: ; preds = %26
store i32 1, ptr %13, align 4
br label %69
29: ; preds = %26
%30 = load ptr, ptr @optarg, align 8
%31 = call i32 @strcasecmp(ptr noundef %30, ptr noundef @.str.1)
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %29
store i32 49, ptr %7, align 4
br label %51
34: ; preds = %29
%35 = load ptr, ptr @optarg, align 8
%36 = call i32 @strcasecmp(ptr noundef %35, ptr noundef @.str.2)
%37 = icmp eq i32 %36, 0
br i1 %37, label %38, label %39
38: ; preds = %34
store i32 53, ptr %7, align 4
br label %50
39: ; preds = %34
%40 = load ptr, ptr @optarg, align 8
%41 = call i32 @strcasecmp(ptr noundef %40, ptr noundef @.str.3)
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %44
43: ; preds = %39
store i32 54, ptr %7, align 4
br label %49
44: ; preds = %39
%45 = load i32, ptr @stderr, align 4
%46 = load ptr, ptr @optarg, align 8
%47 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %45, ptr noundef @.str.4, ptr noundef %46)
%48 = call i32 (...) @usage()
br label %49
49: ; preds = %44, %43
br label %50
50: ; preds = %49, %38
br label %51
51: ; preds = %50, %33
br label %69
52: ; preds = %26
%53 = load ptr, ptr @optarg, align 8
%54 = call i32 @strlen(ptr noundef %53)
%55 = sext i32 %54 to i64
%56 = icmp uge i64 %55, 64
br i1 %56, label %57, label %61
57: ; preds = %52
%58 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%59 = load ptr, ptr @optarg, align 8
%60 = call i32 @strncpy(ptr noundef %58, ptr noundef %59, i32 noundef 63)
br label %65
61: ; preds = %52
%62 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%63 = load ptr, ptr @optarg, align 8
%64 = call i32 @strcpy(ptr noundef %62, ptr noundef %63)
br label %65
65: ; preds = %61, %57
%66 = phi i32 [ %60, %57 ], [ %64, %61 ]
br label %69
67: ; preds = %26
%68 = call i32 (...) @usage()
br label %69
69: ; preds = %67, %65, %51, %28
%70 = load i32, ptr %4, align 4
%71 = load ptr, ptr %5, align 8
%72 = call i32 @getopt(i32 noundef %70, ptr noundef %71, ptr noundef @.str)
store i32 %72, ptr %6, align 4
%73 = load i32, ptr @EOF, align 4
%74 = icmp ne i32 %72, %73
br i1 %74, label %26, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %69
br label %75
75: ; preds = %._crit_edge, %2
%76 = load i32, ptr %4, align 4
%77 = load i32, ptr @optind, align 4
%78 = sub nsw i32 %76, %77
%79 = icmp sgt i32 %78, 0
br i1 %79, label %80, label %82
80: ; preds = %75
%81 = call i32 (...) @usage()
br label %82
82: ; preds = %80, %75
%83 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%84 = call i32 @strlen(ptr noundef %83)
%85 = icmp sgt i32 %84, 0
br i1 %85, label %86, label %168
86: ; preds = %82
call void @llvm.memset.p0.i64(ptr align 1 %14, i8 0, i64 4, i1 false)
%87 = getelementptr inbounds [4 x i8], ptr %14, i64 0, i64 0
%88 = load i32, ptr %7, align 4
%89 = call i32 @sprintf(ptr noundef %87, ptr noundef @.str.5, i32 noundef %88)
%90 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%91 = load i8, ptr %90, align 16
%92 = sext i8 %91 to i32
%93 = icmp eq i32 %92, 36
br i1 %93, label %94, label %145
94: ; preds = %86
%95 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 2
%96 = load i8, ptr %95, align 2
%97 = sext i8 %96 to i32
%98 = icmp eq i32 %97, 36
br i1 %98, label %99, label %145
99: ; preds = %94
%100 = getelementptr inbounds [4 x i8], ptr %14, i64 0, i64 0
%101 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%102 = call i64 @strncmp(ptr noundef %100, ptr noundef %101, i32 noundef 3)
%103 = icmp ne i64 %102, 0
br i1 %103, label %104, label %122
104: ; preds = %99
%105 = load i32, ptr @stderr, align 4
%106 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %105, ptr noundef @.str.6)
%107 = load i32, ptr %7, align 4
%108 = icmp eq i32 %107, 49
br i1 %108, label %109, label %110
109: ; preds = %104
store ptr @.str.1, ptr %15, align 8
br label %116
110: ; preds = %104
%111 = load i32, ptr %7, align 4
%112 = icmp eq i32 %111, 53
br i1 %112, label %113, label %114
113: ; preds = %110
store ptr @.str.2, ptr %15, align 8
br label %115
114: ; preds = %110
store ptr @.str.3, ptr %15, align 8
br label %115
115: ; preds = %114, %113
br label %116
116: ; preds = %115, %109
%117 = load i32, ptr @stderr, align 4
%118 = load ptr, ptr %15, align 8
%119 = load i32, ptr %7, align 4
%120 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %117, ptr noundef @.str.7, ptr noundef %118, i32 noundef %119)
%121 = call i32 @exit(i32 noundef 1) #4
unreachable
122: ; preds = %99
%123 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%124 = getelementptr inbounds i8, ptr %123, i64 3
%125 = call ptr @strchr(ptr noundef %124, i8 noundef signext 36)
store ptr %125, ptr %16, align 8
%126 = load ptr, ptr %16, align 8
%127 = icmp ne ptr %126, null
br i1 %127, label %128, label %130
128: ; preds = %122
%129 = load ptr, ptr %16, align 8
store i8 0, ptr %129, align 1
br label %130
130: ; preds = %128, %122
%131 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%132 = call i32 @strlen(ptr noundef %131)
%133 = sext i32 %132 to i64
%134 = icmp uge i64 %133, 32
br i1 %134, label %135, label %139
135: ; preds = %130
%136 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
%137 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%138 = call i32 @strncpy(ptr noundef %136, ptr noundef %137, i32 noundef 31)
br label %143
139: ; preds = %130
%140 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
%141 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%142 = call i32 @strcpy(ptr noundef %140, ptr noundef %141)
br label %143
143: ; preds = %139, %135
%144 = phi i32 [ %138, %135 ], [ %142, %139 ]
br label %167
145: ; preds = %94, %86
%146 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
%147 = getelementptr inbounds [4 x i8], ptr %14, i64 0, i64 0
%148 = call i32 @strcpy(ptr noundef %146, ptr noundef %147)
%149 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%150 = call i32 @strlen(ptr noundef %149)
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
%153 = call i32 @strlen(ptr noundef %152)
%154 = sext i32 %153 to i64
%155 = sub i64 32, %154
%156 = icmp uge i64 %151, %155
br i1 %156, label %157, label %161
157: ; preds = %145
%158 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
%159 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%160 = call i32 @strncat(ptr noundef %158, ptr noundef %159, i32 noundef 31)
br label %165
161: ; preds = %145
%162 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
%163 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%164 = call i32 @strcat(ptr noundef %162, ptr noundef %163)
br label %165
165: ; preds = %161, %157
%166 = phi i32 [ %160, %157 ], [ %164, %161 ]
br label %167
167: ; preds = %165, %143
br label %182
168: ; preds = %82
%169 = load i32, ptr %7, align 4
%170 = call ptr @generate_salt(i32 noundef %169)
store ptr %170, ptr %17, align 8
%171 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
%172 = load ptr, ptr %17, align 8
%173 = call i32 @strcpy(ptr noundef %171, ptr noundef %172)
br label %174
174: ; preds = %168
%175 = load ptr, ptr %17, align 8
%176 = icmp ne ptr %175, null
br i1 %176, label %177, label %180
177: ; preds = %174
%178 = load ptr, ptr %17, align 8
%179 = call i32 @free(ptr noundef %178)
store ptr null, ptr %17, align 8
br label %180
180: ; preds = %177, %174
br label %181
181: ; preds = %180
br label %182
182: ; preds = %181, %167
%183 = load i32, ptr %13, align 4
%184 = icmp ne i32 %183, 0
br i1 %184, label %185, label %235
185: ; preds = %182
call void @llvm.memset.p0.i64(ptr align 16 %19, i8 0, i64 256, i1 false)
%186 = load i32, ptr @STDIN_FILENO, align 4
%187 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 0
%188 = call i32 @read(i32 noundef %186, ptr noundef %187, i32 noundef 256)
store i32 %188, ptr %18, align 4
%189 = load i32, ptr %18, align 4
%190 = icmp slt i32 %189, 0
br i1 %190, label %191, label %197
191: ; preds = %185
%192 = load i32, ptr @stderr, align 4
%193 = load i32, ptr @errno, align 4
%194 = call ptr @strerror(i32 noundef %193)
%195 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %192, ptr noundef @.str.8, ptr noundef %194)
%196 = call i32 @exit(i32 noundef 1) #4
unreachable
197: ; preds = %185
%198 = load i32, ptr %18, align 4
%199 = sext i32 %198 to i64
%200 = icmp eq i64 %199, 256
br i1 %200, label %201, label %216
201: ; preds = %197
%202 = load i32, ptr %18, align 4
%203 = sub nsw i32 %202, 1
%204 = sext i32 %203 to i64
%205 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 %204
%206 = load i8, ptr %205, align 1
%207 = sext i8 %206 to i32
%208 = icmp ne i32 %207, 10
br i1 %208, label %209, label %213
209: ; preds = %201
%210 = load i32, ptr @stderr, align 4
%211 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %210, ptr noundef @.str.9, i32 noundef 255)
%212 = call i32 @exit(i32 noundef 1) #4
unreachable
213: ; preds = %201
%214 = load i32, ptr %18, align 4
%215 = add nsw i32 %214, -1
store i32 %215, ptr %18, align 4
br label %216
216: ; preds = %213, %197
%217 = load i32, ptr %18, align 4
%218 = sext i32 %217 to i64
%219 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 %218
store i8 0, ptr %219, align 1
%220 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 0
%221 = call ptr @strchr(ptr noundef %220, i8 noundef signext 10)
store ptr %221, ptr %20, align 8
%222 = load ptr, ptr %20, align 8
%223 = icmp ne ptr %222, null
br i1 %223, label %224, label %226
224: ; preds = %216
%225 = load ptr, ptr %20, align 8
store i8 0, ptr %225, align 1
br label %226
226: ; preds = %224, %216
%227 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 0
%228 = call i64 @validate_password(ptr noundef %227)
%229 = icmp ne i64 %228, 0
br i1 %229, label %230, label %232
230: ; preds = %226
%231 = call i32 @exit(i32 noundef 1) #4
unreachable
232: ; preds = %226
%233 = getelementptr inbounds [256 x i8], ptr %19, i64 0, i64 0
%234 = call ptr @strdup(ptr noundef %233)
store ptr %234, ptr %10, align 8
br label %281
235: ; preds = %182
%236 = call ptr @getpass(ptr noundef @.str.10)
store ptr %236, ptr %12, align 8
%237 = load ptr, ptr %12, align 8
%238 = call i64 @validate_password(ptr noundef %237)
%239 = icmp ne i64 %238, 0
br i1 %239, label %240, label %242
240: ; preds = %235
%241 = call i32 @exit(i32 noundef 1) #4
unreachable
242: ; preds = %235
%243 = load ptr, ptr %12, align 8
%244 = call ptr @strdup(ptr noundef %243)
store ptr %244, ptr %10, align 8
%245 = call ptr @getpass(ptr noundef @.str.11)
store ptr %245, ptr %12, align 8
%246 = load ptr, ptr %12, align 8
%247 = call ptr @strdup(ptr noundef %246)
store ptr %247, ptr %11, align 8
%248 = load ptr, ptr %10, align 8
%249 = load ptr, ptr %11, align 8
%250 = call i64 @strcmp(ptr noundef %248, ptr noundef %249)
%251 = icmp ne i64 %250, 0
br i1 %251, label %252, label %272
252: ; preds = %242
%253 = load i32, ptr @stderr, align 4
%254 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %253, ptr noundef @.str.12)
br label %255
255: ; preds = %252
%256 = load ptr, ptr %10, align 8
%257 = icmp ne ptr %256, null
br i1 %257, label %258, label %261
258: ; preds = %255
%259 = load ptr, ptr %10, align 8
%260 = call i32 @free(ptr noundef %259)
store ptr null, ptr %10, align 8
br label %261
261: ; preds = %258, %255
br label %262
262: ; preds = %261
br label %263
263: ; preds = %262
%264 = load ptr, ptr %11, align 8
%265 = icmp ne ptr %264, null
br i1 %265, label %266, label %269
266: ; preds = %263
%267 = load ptr, ptr %11, align 8
%268 = call i32 @free(ptr noundef %267)
store ptr null, ptr %11, align 8
br label %269
269: ; preds = %266, %263
br label %270
270: ; preds = %269
%271 = call i32 @exit(i32 noundef 1) #4
unreachable
272: ; preds = %242
br label %273
273: ; preds = %272
%274 = load ptr, ptr %11, align 8
%275 = icmp ne ptr %274, null
br i1 %275, label %276, label %279
276: ; preds = %273
%277 = load ptr, ptr %11, align 8
%278 = call i32 @free(ptr noundef %277)
store ptr null, ptr %11, align 8
br label %279
279: ; preds = %276, %273
br label %280
280: ; preds = %279
br label %281
281: ; preds = %280, %232
%282 = load ptr, ptr %10, align 8
%283 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
%284 = call ptr @crypt(ptr noundef %282, ptr noundef %283)
%285 = call i32 @printf(ptr noundef @.str.13, ptr noundef %284)
br label %286
286: ; preds = %281
%287 = load ptr, ptr %10, align 8
%288 = icmp ne ptr %287, null
br i1 %288, label %289, label %292
289: ; preds = %286
%290 = load ptr, ptr %10, align 8
%291 = call i32 @free(ptr noundef %290)
store ptr null, ptr %10, align 8
br label %292
292: ; preds = %289, %286
br label %293
293: ; preds = %292
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #2
declare i32 @strcasecmp(ptr noundef, ptr noundef) #2
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #2
declare i32 @usage(...) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @strcpy(ptr noundef, ptr noundef) #2
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #2
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare ptr @strchr(ptr noundef, i8 noundef signext) #2
declare i32 @strncat(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @strcat(ptr noundef, ptr noundef) #2
declare ptr @generate_salt(i32 noundef) #2
declare i32 @free(ptr noundef) #2
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #2
declare ptr @strerror(i32 noundef) #2
declare i64 @validate_password(ptr noundef) #2
declare ptr @strdup(ptr noundef) #2
declare ptr @getpass(ptr noundef) #2
declare i64 @strcmp(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
declare ptr @crypt(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp89qcgmfb.c'
source_filename = "/tmp/tmp89qcgmfb.c"
target datalayout = "e-m:e-p270: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/tmp89qcgmfb.c"
target datalayout = "e-m:e-p270: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/tmpn3slo6d2.c'
source_filename = "/tmp/tmpn3slo6d2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @checkTemp(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store float 0.000000e+00, ptr %3, align 4
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %25, %1
%8 = load i32, ptr %6, align 4
%9 = icmp slt i32 %8, 6
br i1 %9, label %10, label %28
10: ; preds = %7
%11 = load i32, ptr %2, align 4
%12 = call float @analogRead(i32 noundef %11)
store float %12, ptr %5, align 4
%13 = load float, ptr %5, align 4
%14 = fpext float %13 to double
%15 = fmul double %14, 0x40128E0000000000
%16 = fptrunc double %15 to float
store float %16, ptr %4, align 4
%17 = load float, ptr %3, align 4
%18 = fpext float %17 to double
%19 = load float, ptr %4, align 4
%20 = fsub float %19, 1.375000e+03
%21 = fpext float %20 to double
%22 = fdiv double %21, 2.250000e+01
%23 = fadd double %18, %22
%24 = fptrunc double %23 to float
store float %24, ptr %3, align 4
br label %25
25: ; preds = %10
%26 = load i32, ptr %6, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %6, align 4
br label %7, !llvm.loop !6
28: ; preds = %7
%29 = load float, ptr %3, align 4
%30 = fpext float %29 to double
%31 = fdiv double %30, 5.000000e+00
%32 = fptrunc double %31 to float
store float %32, ptr %3, align 4
%33 = load float, ptr %3, align 4
ret float %33
}
declare float @analogRead(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/tmpn3slo6d2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @checkTemp(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store float 0.000000e+00, ptr %3, align 4
store i32 0, ptr %6, align 4
%7 = load i32, ptr %6, align 4
%8 = icmp slt i32 %7, 6
br i1 %8, label %.lr.ph, label %29
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %24
%10 = load i32, ptr %2, align 4
%11 = call float @analogRead(i32 noundef %10)
store float %11, ptr %5, align 4
%12 = load float, ptr %5, align 4
%13 = fpext float %12 to double
%14 = fmul double %13, 0x40128E0000000000
%15 = fptrunc double %14 to float
store float %15, ptr %4, align 4
%16 = load float, ptr %3, align 4
%17 = fpext float %16 to double
%18 = load float, ptr %4, align 4
%19 = fsub float %18, 1.375000e+03
%20 = fpext float %19 to double
%21 = fdiv double %20, 2.250000e+01
%22 = fadd double %17, %21
%23 = fptrunc double %22 to float
store float %23, ptr %3, align 4
br label %24
24: ; preds = %9
%25 = load i32, ptr %6, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %6, align 4
%27 = load i32, ptr %6, align 4
%28 = icmp slt i32 %27, 6
br i1 %28, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %29
29: ; preds = %._crit_edge, %1
%30 = load float, ptr %3, align 4
%31 = fpext float %30 to double
%32 = fdiv double %31, 5.000000e+00
%33 = fptrunc double %32 to float
store float %33, ptr %3, align 4
%34 = load float, ptr %3, align 4
ret float %34
}
declare float @analogRead(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/tmpu54ebheq.c'
source_filename = "/tmp/tmpu54ebheq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sort_insert(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %38, %2
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %41
11: ; preds = %7
store i32 0, ptr %6, align 4
br label %12
12: ; preds = %34, %11
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %5, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %37
16: ; preds = %12
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %5, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %17, i64 %19
%21 = load i32, ptr %20, align 4
%22 = load ptr, ptr %3, align 8
%23 = load i32, ptr %6, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i32, ptr %22, i64 %24
%26 = load i32, ptr %25, align 4
%27 = icmp slt i32 %21, %26
br i1 %27, label %28, label %33
28: ; preds = %16
%29 = load ptr, ptr %3, align 8
%30 = load i32, ptr %5, align 4
%31 = load i32, ptr %6, align 4
%32 = call i32 @exchange(ptr noundef %29, i32 noundef %30, i32 noundef %31)
br label %33
33: ; preds = %28, %16
br label %34
34: ; preds = %33
%35 = load i32, ptr %6, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %6, align 4
br label %12, !llvm.loop !6
37: ; preds = %12
br label %38
38: ; preds = %37
%39 = load i32, ptr %5, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %5, align 4
br label %7, !llvm.loop !8
41: ; preds = %7
ret void
}
declare i32 @exchange(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu54ebheq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sort_insert(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %.lr.ph2, label %45
.lr.ph2: ; preds = %2
br label %10
10: ; preds = %.lr.ph2, %39
store i32 0, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %.lr.ph, label %38
.lr.ph: ; preds = %10
br label %14
14: ; preds = %.lr.ph, %32
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i32, ptr %15, i64 %17
%19 = load i32, ptr %18, align 4
%20 = load ptr, ptr %3, align 8
%21 = load i32, ptr %6, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %20, i64 %22
%24 = load i32, ptr %23, align 4
%25 = icmp slt i32 %19, %24
br i1 %25, label %26, label %31
26: ; preds = %14
%27 = load ptr, ptr %3, align 8
%28 = load i32, ptr %5, align 4
%29 = load i32, ptr %6, align 4
%30 = call i32 @exchange(ptr noundef %27, i32 noundef %28, i32 noundef %29)
br label %31
31: ; preds = %26, %14
br label %32
32: ; preds = %31
%33 = load i32, ptr %6, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %6, align 4
%35 = load i32, ptr %6, align 4
%36 = load i32, ptr %5, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %38
38: ; preds = %._crit_edge, %10
br label %39
39: ; preds = %38
%40 = load i32, ptr %5, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %5, align 4
%42 = load i32, ptr %5, align 4
%43 = load i32, ptr %4, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %10, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %39
br label %45
45: ; preds = %._crit_edge3, %2
ret void
}
declare i32 @exchange(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmprzd1bio_.c'
source_filename = "/tmp/tmprzd1bio_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i8 @get_uint24_be(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds i8, ptr %3, i64 0
%5 = load i8, ptr %4, align 1
%6 = zext i8 %5 to i32
%7 = shl i32 %6, 16
%8 = load ptr, ptr %2, align 8
%9 = getelementptr inbounds i8, ptr %8, i64 1
%10 = load i8, ptr %9, align 1
%11 = zext i8 %10 to i32
%12 = shl i32 %11, 8
%13 = or i32 %7, %12
%14 = load ptr, ptr %2, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 2
%16 = load i8, ptr %15, align 1
%17 = zext i8 %16 to i32
%18 = or i32 %13, %17
%19 = trunc i32 %18 to i8
ret i8 %19
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprzd1bio_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i8 @get_uint24_be(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds i8, ptr %3, i64 0
%5 = load i8, ptr %4, align 1
%6 = zext i8 %5 to i32
%7 = shl i32 %6, 16
%8 = load ptr, ptr %2, align 8
%9 = getelementptr inbounds i8, ptr %8, i64 1
%10 = load i8, ptr %9, align 1
%11 = zext i8 %10 to i32
%12 = shl i32 %11, 8
%13 = or i32 %7, %12
%14 = load ptr, ptr %2, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 2
%16 = load i8, ptr %15, align 1
%17 = zext i8 %16 to i32
%18 = or i32 %13, %17
%19 = trunc i32 %18 to i8
ret i8 %19
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE 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_w57mokk.c'
source_filename = "/tmp/tmp_w57mokk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"%i has produced the longest chain (%i items)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i64 0, ptr %4, align 8
store i64 1000000, ptr %2, align 8
br label %6
6: ; preds = %19, %0
%7 = load i64, ptr %2, align 8
%8 = icmp sgt i64 %7, 0
br i1 %8, label %9, label %22
9: ; preds = %6
%10 = load i64, ptr %2, align 8
%11 = call i64 @seriesLen(i64 noundef %10)
store i64 %11, ptr %5, align 8
%12 = load i64, ptr %5, align 8
%13 = load i64, ptr %4, align 8
%14 = icmp sgt i64 %12, %13
br i1 %14, label %15, label %18
15: ; preds = %9
%16 = load i64, ptr %2, align 8
store i64 %16, ptr %3, align 8
%17 = load i64, ptr %5, align 8
store i64 %17, ptr %4, align 8
br label %18
18: ; preds = %15, %9
br label %19
19: ; preds = %18
%20 = load i64, ptr %2, align 8
%21 = add nsw i64 %20, -1
store i64 %21, ptr %2, align 8
br label %6, !llvm.loop !6
22: ; preds = %6
%23 = load i64, ptr %3, align 8
%24 = load i64, ptr %4, align 8
%25 = call i32 @printf(ptr noundef @.str, i64 noundef %23, i64 noundef %24)
%26 = load i32, ptr %1, align 4
ret i32 %26
}
declare i64 @seriesLen(i64 noundef) #1
declare i32 @printf(ptr noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_w57mokk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"%i has produced the longest chain (%i items)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i64 0, ptr %4, align 8
store i64 1000000, ptr %2, align 8
%6 = load i64, ptr %2, align 8
%7 = icmp sgt i64 %6, 0
br i1 %7, label %.lr.ph, label %23
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %18
%9 = load i64, ptr %2, align 8
%10 = call i64 @seriesLen(i64 noundef %9)
store i64 %10, ptr %5, align 8
%11 = load i64, ptr %5, align 8
%12 = load i64, ptr %4, align 8
%13 = icmp sgt i64 %11, %12
br i1 %13, label %14, label %17
14: ; preds = %8
%15 = load i64, ptr %2, align 8
store i64 %15, ptr %3, align 8
%16 = load i64, ptr %5, align 8
store i64 %16, ptr %4, align 8
br label %17
17: ; preds = %14, %8
br label %18
18: ; preds = %17
%19 = load i64, ptr %2, align 8
%20 = add nsw i64 %19, -1
store i64 %20, ptr %2, align 8
%21 = load i64, ptr %2, align 8
%22 = icmp sgt i64 %21, 0
br i1 %22, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %23
23: ; preds = %._crit_edge, %0
%24 = load i64, ptr %3, align 8
%25 = load i64, ptr %4, align 8
%26 = call i32 @printf(ptr noundef @.str, i64 noundef %24, i64 noundef %25)
%27 = load i32, ptr %1, align 4
ret i32 %27
}
declare i64 @seriesLen(i64 noundef) #1
declare i32 @printf(ptr noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmptj9l4cav.c'
source_filename = "/tmp/tmptj9l4cav.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"give the dimension : \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"Give the number of threads : \00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"computed %d iterations\0A\00", align 1
@.str.4 = private unnamed_addr constant [14 x i8] c"error : %.3e\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca double, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca double, align 8
%16 = alloca double, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%17 = load i32, ptr %4, align 4
%18 = icmp sgt i32 %17, 1
br i1 %18, label %19, label %34
19: ; preds = %2
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = call i32 @atoi(ptr noundef %22)
store i32 %23, ptr %6, align 4
%24 = load i32, ptr %4, align 4
%25 = icmp sgt i32 %24, 2
br i1 %25, label %26, label %31
26: ; preds = %19
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds ptr, ptr %27, i64 2
%29 = load ptr, ptr %28, align 8
%30 = call i32 @atoi(ptr noundef %29)
br label %32
31: ; preds = %19
br label %32
32: ; preds = %31, %26
%33 = phi i32 [ %30, %26 ], [ 1, %31 ]
store i32 %33, ptr %7, align 4
br label %39
34: ; preds = %2
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%36 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %6)
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%38 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %7)
br label %39
39: ; preds = %34, %32
%40 = load i32, ptr %7, align 4
%41 = call i32 @omp_set_num_threads(i32 noundef %40)
%42 = load i32, ptr %6, align 4
%43 = call i64 @calloc(i32 noundef %42, i32 noundef 8)
%44 = inttoptr i64 %43 to ptr
store ptr %44, ptr %9, align 8
%45 = load i32, ptr %6, align 4
%46 = call i64 @calloc(i32 noundef %45, i32 noundef 8)
%47 = inttoptr i64 %46 to ptr
store ptr %47, ptr %10, align 8
store i32 0, ptr %8, align 4
br label %48
48: ; preds = %60, %39
%49 = load i32, ptr %8, align 4
%50 = load i32, ptr %6, align 4
%51 = icmp slt i32 %49, %50
br i1 %51, label %52, label %63
52: ; preds = %48
%53 = load i32, ptr %6, align 4
%54 = call i64 @calloc(i32 noundef %53, i32 noundef 8)
%55 = inttoptr i64 %54 to ptr
%56 = load ptr, ptr %10, align 8
%57 = load i32, ptr %8, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds ptr, ptr %56, i64 %58
store ptr %55, ptr %59, align 8
br label %60
60: ; preds = %52
%61 = load i32, ptr %8, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %8, align 4
br label %48, !llvm.loop !6
63: ; preds = %48
%64 = load i32, ptr %6, align 4
%65 = load ptr, ptr %10, align 8
%66 = load ptr, ptr %9, align 8
%67 = call i32 @test_system(i32 noundef %64, ptr noundef %65, ptr noundef %66)
%68 = load i32, ptr %6, align 4
%69 = call i64 @calloc(i32 noundef %68, i32 noundef 8)
%70 = inttoptr i64 %69 to ptr
store ptr %70, ptr %11, align 8
store i32 0, ptr %8, align 4
br label %71
71: ; preds = %80, %63
%72 = load i32, ptr %8, align 4
%73 = load i32, ptr %6, align 4
%74 = icmp slt i32 %72, %73
br i1 %74, label %75, label %83
75: ; preds = %71
%76 = load ptr, ptr %11, align 8
%77 = load i32, ptr %8, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds double, ptr %76, i64 %78
store double 0.000000e+00, ptr %79, align 8
br label %80
80: ; preds = %75
%81 = load i32, ptr %8, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %8, align 4
br label %71, !llvm.loop !8
83: ; preds = %71
store double 1.000000e-04, ptr %12, align 8
%84 = load i32, ptr %6, align 4
%85 = mul nsw i32 2, %84
%86 = load i32, ptr %6, align 4
%87 = mul nsw i32 %85, %86
store i32 %87, ptr %13, align 4
store i32 0, ptr %14, align 4
%88 = load i32, ptr %7, align 4
%89 = load i32, ptr %6, align 4
%90 = load ptr, ptr %10, align 8
%91 = load ptr, ptr %9, align 8
%92 = load double, ptr %12, align 8
%93 = load i32, ptr %13, align 4
%94 = load ptr, ptr %11, align 8
%95 = call i32 @run_gauss_seidel_method(i32 noundef %88, i32 noundef %89, ptr noundef %90, ptr noundef %91, double noundef %92, i32 noundef %93, ptr noundef %14, ptr noundef %94)
%96 = load i32, ptr %14, align 4
%97 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %96)
store double 0.000000e+00, ptr %15, align 8
store i32 0, ptr %8, align 4
br label %98
98: ; preds = %120, %83
%99 = load i32, ptr %8, align 4
%100 = load i32, ptr %6, align 4
%101 = icmp slt i32 %99, %100
br i1 %101, label %102, label %123
102: ; preds = %98
%103 = load ptr, ptr %11, align 8
%104 = load i32, ptr %8, align 4
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds double, ptr %103, i64 %105
%107 = load double, ptr %106, align 8
%108 = fsub double %107, 1.000000e+00
store double %108, ptr %16, align 8
%109 = load double, ptr %16, align 8
%110 = fcmp oge double %109, 0.000000e+00
br i1 %110, label %111, label %113
111: ; preds = %102
%112 = load double, ptr %16, align 8
br label %116
113: ; preds = %102
%114 = load double, ptr %16, align 8
%115 = fneg double %114
br label %116
116: ; preds = %113, %111
%117 = phi double [ %112, %111 ], [ %115, %113 ]
%118 = load double, ptr %15, align 8
%119 = fadd double %118, %117
store double %119, ptr %15, align 8
br label %120
120: ; preds = %116
%121 = load i32, ptr %8, align 4
%122 = add nsw i32 %121, 1
store i32 %122, ptr %8, align 4
br label %98, !llvm.loop !9
123: ; preds = %98
%124 = load double, ptr %15, align 8
%125 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %124)
ret i32 0
}
declare i32 @atoi(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @omp_set_num_threads(i32 noundef) #1
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @test_system(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @run_gauss_seidel_method(i32 noundef, i32 noundef, ptr noundef, ptr noundef, double noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptj9l4cav.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"give the dimension : \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"Give the number of threads : \00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"computed %d iterations\0A\00", align 1
@.str.4 = private unnamed_addr constant [14 x i8] c"error : %.3e\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca double, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca double, align 8
%16 = alloca double, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%17 = load i32, ptr %4, align 4
%18 = icmp sgt i32 %17, 1
br i1 %18, label %19, label %34
19: ; preds = %2
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = call i32 @atoi(ptr noundef %22)
store i32 %23, ptr %6, align 4
%24 = load i32, ptr %4, align 4
%25 = icmp sgt i32 %24, 2
br i1 %25, label %26, label %31
26: ; preds = %19
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds ptr, ptr %27, i64 2
%29 = load ptr, ptr %28, align 8
%30 = call i32 @atoi(ptr noundef %29)
br label %32
31: ; preds = %19
br label %32
32: ; preds = %31, %26
%33 = phi i32 [ %30, %26 ], [ 1, %31 ]
store i32 %33, ptr %7, align 4
br label %39
34: ; preds = %2
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%36 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %6)
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%38 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %7)
br label %39
39: ; preds = %34, %32
%40 = load i32, ptr %7, align 4
%41 = call i32 @omp_set_num_threads(i32 noundef %40)
%42 = load i32, ptr %6, align 4
%43 = call i64 @calloc(i32 noundef %42, i32 noundef 8)
%44 = inttoptr i64 %43 to ptr
store ptr %44, ptr %9, align 8
%45 = load i32, ptr %6, align 4
%46 = call i64 @calloc(i32 noundef %45, i32 noundef 8)
%47 = inttoptr i64 %46 to ptr
store ptr %47, ptr %10, align 8
store i32 0, ptr %8, align 4
%48 = load i32, ptr %8, align 4
%49 = load i32, ptr %6, align 4
%50 = icmp slt i32 %48, %49
br i1 %50, label %.lr.ph, label %65
.lr.ph: ; preds = %39
br label %51
51: ; preds = %.lr.ph, %59
%52 = load i32, ptr %6, align 4
%53 = call i64 @calloc(i32 noundef %52, i32 noundef 8)
%54 = inttoptr i64 %53 to ptr
%55 = load ptr, ptr %10, align 8
%56 = load i32, ptr %8, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds ptr, ptr %55, i64 %57
store ptr %54, ptr %58, align 8
br label %59
59: ; preds = %51
%60 = load i32, ptr %8, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %8, align 4
%62 = load i32, ptr %8, align 4
%63 = load i32, ptr %6, align 4
%64 = icmp slt i32 %62, %63
br i1 %64, label %51, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %59
br label %65
65: ; preds = %._crit_edge, %39
%66 = load i32, ptr %6, align 4
%67 = load ptr, ptr %10, align 8
%68 = load ptr, ptr %9, align 8
%69 = call i32 @test_system(i32 noundef %66, ptr noundef %67, ptr noundef %68)
%70 = load i32, ptr %6, align 4
%71 = call i64 @calloc(i32 noundef %70, i32 noundef 8)
%72 = inttoptr i64 %71 to ptr
store ptr %72, ptr %11, align 8
store i32 0, ptr %8, align 4
%73 = load i32, ptr %8, align 4
%74 = load i32, ptr %6, align 4
%75 = icmp slt i32 %73, %74
br i1 %75, label %.lr.ph2, label %87
.lr.ph2: ; preds = %65
br label %76
76: ; preds = %.lr.ph2, %81
%77 = load ptr, ptr %11, align 8
%78 = load i32, ptr %8, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds double, ptr %77, i64 %79
store double 0.000000e+00, ptr %80, align 8
br label %81
81: ; preds = %76
%82 = load i32, ptr %8, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %8, align 4
%84 = load i32, ptr %8, align 4
%85 = load i32, ptr %6, align 4
%86 = icmp slt i32 %84, %85
br i1 %86, label %76, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %81
br label %87
87: ; preds = %._crit_edge3, %65
store double 1.000000e-04, ptr %12, align 8
%88 = load i32, ptr %6, align 4
%89 = mul nsw i32 2, %88
%90 = load i32, ptr %6, align 4
%91 = mul nsw i32 %89, %90
store i32 %91, ptr %13, align 4
store i32 0, ptr %14, align 4
%92 = load i32, ptr %7, align 4
%93 = load i32, ptr %6, align 4
%94 = load ptr, ptr %10, align 8
%95 = load ptr, ptr %9, align 8
%96 = load double, ptr %12, align 8
%97 = load i32, ptr %13, align 4
%98 = load ptr, ptr %11, align 8
%99 = call i32 @run_gauss_seidel_method(i32 noundef %92, i32 noundef %93, ptr noundef %94, ptr noundef %95, double noundef %96, i32 noundef %97, ptr noundef %14, ptr noundef %98)
%100 = load i32, ptr %14, align 4
%101 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %100)
store double 0.000000e+00, ptr %15, align 8
store i32 0, ptr %8, align 4
%102 = load i32, ptr %8, align 4
%103 = load i32, ptr %6, align 4
%104 = icmp slt i32 %102, %103
br i1 %104, label %.lr.ph5, label %129
.lr.ph5: ; preds = %87
br label %105
105: ; preds = %.lr.ph5, %123
%106 = load ptr, ptr %11, 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 = fsub double %110, 1.000000e+00
store double %111, ptr %16, align 8
%112 = load double, ptr %16, align 8
%113 = fcmp oge double %112, 0.000000e+00
br i1 %113, label %114, label %116
114: ; preds = %105
%115 = load double, ptr %16, align 8
br label %119
116: ; preds = %105
%117 = load double, ptr %16, align 8
%118 = fneg double %117
br label %119
119: ; preds = %116, %114
%120 = phi double [ %115, %114 ], [ %118, %116 ]
%121 = load double, ptr %15, align 8
%122 = fadd double %121, %120
store double %122, ptr %15, align 8
br label %123
123: ; preds = %119
%124 = load i32, ptr %8, align 4
%125 = add nsw i32 %124, 1
store i32 %125, ptr %8, align 4
%126 = load i32, ptr %8, align 4
%127 = load i32, ptr %6, align 4
%128 = icmp slt i32 %126, %127
br i1 %128, label %105, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %123
br label %129
129: ; preds = %._crit_edge6, %87
%130 = load double, ptr %15, align 8
%131 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %130)
ret i32 0
}
declare i32 @atoi(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @omp_set_num_threads(i32 noundef) #1
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @test_system(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @run_gauss_seidel_method(i32 noundef, i32 noundef, ptr noundef, ptr noundef, double noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpuq_lqyod.c'
source_filename = "/tmp/tmpuq_lqyod.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c"Please enter <num_of_nodes> in the sll.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
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 @printf(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %19
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)
%16 = call ptr @create_sll(i32 noundef %15)
store ptr %16, ptr %6, align 8
%17 = load ptr, ptr %6, align 8
%18 = call i32 @print_sll(ptr noundef %17)
br label %19
19: ; preds = %11, %9
%20 = load i32, ptr %3, align 4
ret i32 %20
}
declare i32 @printf(ptr noundef) #1
declare ptr @create_sll(i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @print_sll(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuq_lqyod.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c"Please enter <num_of_nodes> in the sll.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
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 @printf(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %19
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)
%16 = call ptr @create_sll(i32 noundef %15)
store ptr %16, ptr %6, align 8
%17 = load ptr, ptr %6, align 8
%18 = call i32 @print_sll(ptr noundef %17)
br label %19
19: ; preds = %11, %9
%20 = load i32, ptr %3, align 4
ret i32 %20
}
declare i32 @printf(ptr noundef) #1
declare ptr @create_sll(i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @print_sll(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpn15hdi55.c'
source_filename = "/tmp/tmpn15hdi55.c"
target datalayout = "e-m:e-p270: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.password = private unnamed_addr constant [9 x i8] c"________\00", align 1
@__const.main.spinners = private unnamed_addr constant [4 x i8] c"|/-\\", align 1
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [30 x i8] c"Usage:\0A\09Day5 <input string>\0A\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"DECRYPTING %c \00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%x\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c" %c\0D\00", align 1
@.str.7 = private unnamed_addr constant [19 x i8] c"DECRYPTED ! %s !\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [32 x i8], align 16
%7 = alloca [32 x i8], align 16
%8 = alloca [9 x i8], align 1
%9 = alloca [4 x i8], align 1
%10 = alloca [16 x i32], align 16
%11 = alloca i64, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 @__const.main.password, i64 9, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %9, ptr align 1 @__const.main.spinners, i64 4, i1 false)
store i64 0, ptr %11, align 8
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp ne i32 %16, 2
br i1 %17, label %18, label %22
18: ; preds = %2
%19 = load i32, ptr @stderr, align 4
%20 = call i32 @fprintf(i32 noundef %19, ptr noundef @.str)
%21 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %21, ptr %3, align 4
br label %148
22: ; preds = %2
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %24
24: ; preds = %139, %22
%25 = load i32, ptr %13, align 4
%26 = icmp slt i32 %25, 8
br i1 %26, label %27, label %144
27: ; preds = %24
%28 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
%29 = call i32 @memset(ptr noundef %28, i8 noundef signext 0, i32 noundef 32)
%30 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 1
%33 = load ptr, ptr %32, align 8
%34 = call i32 @strncpy(ptr noundef %30, ptr noundef %33, i32 noundef 31)
%35 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
%36 = load i32, ptr %12, align 4
%37 = call i32 @sprintf(ptr noundef %35, ptr noundef @.str.2, i32 noundef %36)
%38 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
%39 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
%40 = call i32 @strcat(ptr noundef %38, ptr noundef %39)
%41 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
%42 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 0
%43 = call i32 @MD5(ptr noundef %41, ptr noundef %42)
%44 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 0
%45 = load i32, ptr %44, align 16
%46 = icmp eq i32 %45, 0
br i1 %46, label %47, label %89
47: ; preds = %27
%48 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 1
%49 = load i32, ptr %48, align 4
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %89
51: ; preds = %47
%52 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 2
%53 = load i32, ptr %52, align 8
%54 = icmp slt i32 %53, 16
br i1 %54, label %55, label %89
55: ; preds = %51
%56 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 2
%57 = load i32, ptr %56, align 8
store i32 %57, ptr %14, align 4
%58 = load i32, ptr %14, align 4
%59 = icmp slt i32 %58, 8
br i1 %59, label %60, label %88
60: ; preds = %55
%61 = load i32, ptr %14, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [9 x i8], ptr %8, i64 0, i64 %62
%64 = load i8, ptr %63, align 1
%65 = sext i8 %64 to i32
%66 = icmp eq i32 %65, 95
br i1 %66, label %67, label %88
67: ; preds = %60
%68 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 3
%69 = load i32, ptr %68, align 4
%70 = ashr i32 %69, 4
store i32 %70, ptr %15, align 4
%71 = load i32, ptr %15, align 4
%72 = icmp slt i32 %71, 10
br i1 %72, label %73, label %76
73: ; preds = %67
%74 = load i32, ptr %15, align 4
%75 = add nsw i32 48, %74
br label %80
76: ; preds = %67
%77 = load i32, ptr %15, align 4
%78 = sub nsw i32 %77, 10
%79 = add nsw i32 97, %78
br label %80
80: ; preds = %76, %73
%81 = phi i32 [ %75, %73 ], [ %79, %76 ]
%82 = trunc i32 %81 to i8
%83 = load i32, ptr %14, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [9 x i8], ptr %8, i64 0, i64 %84
store i8 %82, ptr %85, align 1
%86 = load i32, ptr %13, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %13, align 4
br label %88
88: ; preds = %80, %60, %55
br label %89
89: ; preds = %88, %51, %47, %27
%90 = load i64, ptr %11, align 8
%91 = srem i64 %90, 1000
%92 = icmp eq i64 %91, 0
br i1 %92, label %93, label %139
93: ; preds = %89
%94 = load i64, ptr %11, align 8
%95 = sdiv i64 %94, 1000
%96 = srem i64 %95, 4
%97 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 %96
%98 = load i8, ptr %97, align 1
%99 = sext i8 %98 to i32
%100 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %99)
store i32 0, ptr %14, align 4
br label %101
101: ; preds = %128, %93
%102 = load i32, ptr %14, align 4
%103 = icmp slt i32 %102, 8
br i1 %103, label %104, label %131
104: ; preds = %101
%105 = load i32, ptr %14, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [9 x i8], ptr %8, i64 0, i64 %106
%108 = load i8, ptr %107, align 1
%109 = sext i8 %108 to i32
%110 = icmp ne i32 %109, 95
br i1 %110, label %111, label %118
111: ; preds = %104
%112 = load i32, ptr %14, align 4
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds [9 x i8], ptr %8, i64 0, i64 %113
%115 = load i8, ptr %114, align 1
%116 = sext i8 %115 to i32
%117 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %116)
br label %127
118: ; preds = %104
%119 = load i64, ptr %11, align 8
%120 = sdiv i64 %119, 1000
%121 = load i32, ptr %14, align 4
%122 = sext i32 %121 to i64
%123 = add nsw i64 %120, %122
%124 = srem i64 %123, 16
%125 = trunc i64 %124 to i32
%126 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %125)
br label %127
127: ; preds = %118, %111
br label %128
128: ; preds = %127
%129 = load i32, ptr %14, align 4
%130 = add nsw i32 %129, 1
store i32 %130, ptr %14, align 4
br label %101, !llvm.loop !6
131: ; preds = %101
%132 = load i64, ptr %11, align 8
%133 = sdiv i64 %132, 1000
%134 = srem i64 %133, 4
%135 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 %134
%136 = load i8, ptr %135, align 1
%137 = sext i8 %136 to i32
%138 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %137)
br label %139
139: ; preds = %131, %89
%140 = load i64, ptr %11, align 8
%141 = add nsw i64 %140, 1
store i64 %141, ptr %11, align 8
%142 = load i32, ptr %12, align 4
%143 = add nsw i32 %142, 1
store i32 %143, ptr %12, align 4
br label %24, !llvm.loop !8
144: ; preds = %24
%145 = getelementptr inbounds [9 x i8], ptr %8, i64 0, i64 0
%146 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %145)
%147 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %147, ptr %3, align 4
br label %148
148: ; preds = %144, %18
%149 = load i32, ptr %3, align 4
ret i32 %149
}
; 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 @fprintf(i32 noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ...) #2
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #2
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @strcat(ptr noundef, ptr noundef) #2
declare i32 @MD5(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn15hdi55.c"
target datalayout = "e-m:e-p270: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.password = private unnamed_addr constant [9 x i8] c"________\00", align 1
@__const.main.spinners = private unnamed_addr constant [4 x i8] c"|/-\\", align 1
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [30 x i8] c"Usage:\0A\09Day5 <input string>\0A\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"DECRYPTING %c \00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%x\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c" %c\0D\00", align 1
@.str.7 = private unnamed_addr constant [19 x i8] c"DECRYPTED ! %s !\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [32 x i8], align 16
%7 = alloca [32 x i8], align 16
%8 = alloca [9 x i8], align 1
%9 = alloca [4 x i8], align 1
%10 = alloca [16 x i32], align 16
%11 = alloca i64, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 @__const.main.password, i64 9, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %9, ptr align 1 @__const.main.spinners, i64 4, i1 false)
store i64 0, ptr %11, align 8
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp ne i32 %16, 2
br i1 %17, label %18, label %22
18: ; preds = %2
%19 = load i32, ptr @stderr, align 4
%20 = call i32 @fprintf(i32 noundef %19, ptr noundef @.str)
%21 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %21, ptr %3, align 4
br label %150
22: ; preds = %2
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%24 = load i32, ptr %13, align 4
%25 = icmp slt i32 %24, 8
br i1 %25, label %.lr.ph2, label %146
.lr.ph2: ; preds = %22
br label %26
26: ; preds = %.lr.ph2, %139
%27 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
%28 = call i32 @memset(ptr noundef %27, i8 noundef signext 0, i32 noundef 32)
%29 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds ptr, ptr %30, i64 1
%32 = load ptr, ptr %31, align 8
%33 = call i32 @strncpy(ptr noundef %29, ptr noundef %32, i32 noundef 31)
%34 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
%35 = load i32, ptr %12, align 4
%36 = call i32 @sprintf(ptr noundef %34, ptr noundef @.str.2, i32 noundef %35)
%37 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
%38 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
%39 = call i32 @strcat(ptr noundef %37, ptr noundef %38)
%40 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
%41 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 0
%42 = call i32 @MD5(ptr noundef %40, ptr noundef %41)
%43 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 0
%44 = load i32, ptr %43, align 16
%45 = icmp eq i32 %44, 0
br i1 %45, label %46, label %88
46: ; preds = %26
%47 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 1
%48 = load i32, ptr %47, align 4
%49 = icmp eq i32 %48, 0
br i1 %49, label %50, label %88
50: ; preds = %46
%51 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 2
%52 = load i32, ptr %51, align 8
%53 = icmp slt i32 %52, 16
br i1 %53, label %54, label %88
54: ; preds = %50
%55 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 2
%56 = load i32, ptr %55, align 8
store i32 %56, ptr %14, align 4
%57 = load i32, ptr %14, align 4
%58 = icmp slt i32 %57, 8
br i1 %58, label %59, label %87
59: ; preds = %54
%60 = load i32, ptr %14, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [9 x i8], ptr %8, i64 0, i64 %61
%63 = load i8, ptr %62, align 1
%64 = sext i8 %63 to i32
%65 = icmp eq i32 %64, 95
br i1 %65, label %66, label %87
66: ; preds = %59
%67 = getelementptr inbounds [16 x i32], ptr %10, i64 0, i64 3
%68 = load i32, ptr %67, align 4
%69 = ashr i32 %68, 4
store i32 %69, ptr %15, align 4
%70 = load i32, ptr %15, align 4
%71 = icmp slt i32 %70, 10
br i1 %71, label %72, label %75
72: ; preds = %66
%73 = load i32, ptr %15, align 4
%74 = add nsw i32 48, %73
br label %79
75: ; preds = %66
%76 = load i32, ptr %15, align 4
%77 = sub nsw i32 %76, 10
%78 = add nsw i32 97, %77
br label %79
79: ; preds = %75, %72
%80 = phi i32 [ %74, %72 ], [ %78, %75 ]
%81 = trunc i32 %80 to i8
%82 = load i32, ptr %14, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [9 x i8], ptr %8, i64 0, i64 %83
store i8 %81, ptr %84, align 1
%85 = load i32, ptr %13, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %13, align 4
br label %87
87: ; preds = %79, %59, %54
br label %88
88: ; preds = %87, %50, %46, %26
%89 = load i64, ptr %11, align 8
%90 = srem i64 %89, 1000
%91 = icmp eq i64 %90, 0
br i1 %91, label %92, label %139
92: ; preds = %88
%93 = load i64, ptr %11, align 8
%94 = sdiv i64 %93, 1000
%95 = srem i64 %94, 4
%96 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 %95
%97 = load i8, ptr %96, align 1
%98 = sext i8 %97 to i32
%99 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %98)
store i32 0, ptr %14, align 4
%100 = load i32, ptr %14, align 4
%101 = icmp slt i32 %100, 8
br i1 %101, label %.lr.ph, label %131
.lr.ph: ; preds = %92
br label %102
102: ; preds = %.lr.ph, %126
%103 = load i32, ptr %14, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds [9 x i8], ptr %8, i64 0, i64 %104
%106 = load i8, ptr %105, align 1
%107 = sext i8 %106 to i32
%108 = icmp ne i32 %107, 95
br i1 %108, label %109, label %116
109: ; preds = %102
%110 = load i32, ptr %14, align 4
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds [9 x i8], ptr %8, i64 0, i64 %111
%113 = load i8, ptr %112, align 1
%114 = sext i8 %113 to i32
%115 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %114)
br label %125
116: ; preds = %102
%117 = load i64, ptr %11, align 8
%118 = sdiv i64 %117, 1000
%119 = load i32, ptr %14, align 4
%120 = sext i32 %119 to i64
%121 = add nsw i64 %118, %120
%122 = srem i64 %121, 16
%123 = trunc i64 %122 to i32
%124 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %123)
br label %125
125: ; preds = %116, %109
br label %126
126: ; preds = %125
%127 = load i32, ptr %14, align 4
%128 = add nsw i32 %127, 1
store i32 %128, ptr %14, align 4
%129 = load i32, ptr %14, align 4
%130 = icmp slt i32 %129, 8
br i1 %130, label %102, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %126
br label %131
131: ; preds = %._crit_edge, %92
%132 = load i64, ptr %11, align 8
%133 = sdiv i64 %132, 1000
%134 = srem i64 %133, 4
%135 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 %134
%136 = load i8, ptr %135, align 1
%137 = sext i8 %136 to i32
%138 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %137)
br label %139
139: ; preds = %131, %88
%140 = load i64, ptr %11, align 8
%141 = add nsw i64 %140, 1
store i64 %141, ptr %11, align 8
%142 = load i32, ptr %12, align 4
%143 = add nsw i32 %142, 1
store i32 %143, ptr %12, align 4
%144 = load i32, ptr %13, align 4
%145 = icmp slt i32 %144, 8
br i1 %145, label %26, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %139
br label %146
146: ; preds = %._crit_edge3, %22
%147 = getelementptr inbounds [9 x i8], ptr %8, i64 0, i64 0
%148 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %147)
%149 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %149, ptr %3, align 4
br label %150
150: ; preds = %146, %18
%151 = load i32, ptr %3, align 4
ret i32 %151
}
; 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 @fprintf(i32 noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ...) #2
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #2
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @strcat(ptr noundef, ptr noundef) #2
declare i32 @MD5(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpemsy2yqx.c'
source_filename = "/tmp/tmpemsy2yqx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOSYS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sethostid(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i32, ptr @ENOSYS, align 4
%4 = call i32 @__set_errno(i32 noundef %3)
ret i32 -1
}
declare i32 @__set_errno(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpemsy2yqx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOSYS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sethostid(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i32, ptr @ENOSYS, align 4
%4 = call i32 @__set_errno(i32 noundef %3)
ret i32 -1
}
declare i32 @__set_errno(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg4q7y3_g.c'
source_filename = "/tmp/tmpg4q7y3_g.c"
target datalayout = "e-m:e-p270: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.bpf_sysctl = type { i64 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @sysctl_tcp_mem], section "llvm.metadata"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sysctl_tcp_mem(ptr noundef %0) #0 section "cgroup/sysctl" {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca [28 x i64], align 16
%5 = alloca [196 x i8], align 16
%6 = alloca i8, align 1
%7 = alloca i8, align 1
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
call void @llvm.memset.p0.i64(ptr align 16 %4, i8 0, i64 224, i1 false)
store i8 0, ptr %7, align 1
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds %struct.bpf_sysctl, ptr %9, i32 0, i32 0
%11 = load i64, ptr %10, align 8
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %1
store i32 0, ptr %2, align 4
br label %77
14: ; preds = %1
%15 = load ptr, ptr %3, align 8
%16 = call i32 @is_tcp_mem(ptr noundef %15)
%17 = icmp ne i32 %16, 0
br i1 %17, label %19, label %18
18: ; preds = %14
store i32 0, ptr %2, align 4
br label %77
19: ; preds = %14
%20 = load ptr, ptr %3, align 8
%21 = getelementptr inbounds [196 x i8], ptr %5, i64 0, i64 0
%22 = call i32 @bpf_sysctl_get_current_value(ptr noundef %20, ptr noundef %21, i32 noundef 196)
store i32 %22, ptr %8, align 4
%23 = load i32, ptr %8, align 4
%24 = icmp slt i32 %23, 0
br i1 %24, label %28, label %25
25: ; preds = %19
%26 = load i32, ptr %8, align 4
%27 = icmp sge i32 %26, 196
br i1 %27, label %28, label %29
28: ; preds = %25, %19
store i32 0, ptr %2, align 4
br label %77
29: ; preds = %25
store i8 0, ptr %6, align 1
br label %30
30: ; preds = %59, %29
%31 = load i8, ptr %6, align 1
%32 = zext i8 %31 to i64
%33 = icmp ult i64 %32, 28
br i1 %33, label %34, label %62
34: ; preds = %30
%35 = getelementptr inbounds [196 x i8], ptr %5, i64 0, i64 0
%36 = load i8, ptr %7, align 1
%37 = zext i8 %36 to i32
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %35, i64 %38
%40 = getelementptr inbounds [28 x i64], ptr %4, i64 0, i64 0
%41 = load i8, ptr %6, align 1
%42 = zext i8 %41 to i32
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i64, ptr %40, i64 %43
%45 = call i32 @bpf_strtoul(ptr noundef %39, i32 noundef 7, i32 noundef 0, ptr noundef %44)
store i32 %45, ptr %8, align 4
%46 = load i32, ptr %8, align 4
%47 = icmp sle i32 %46, 0
br i1 %47, label %51, label %48
48: ; preds = %34
%49 = load i32, ptr %8, align 4
%50 = icmp sgt i32 %49, 7
br i1 %50, label %51, label %52
51: ; preds = %48, %34
store i32 0, ptr %2, align 4
br label %77
52: ; preds = %48
%53 = load i32, ptr %8, align 4
%54 = and i32 %53, 7
%55 = load i8, ptr %7, align 1
%56 = zext i8 %55 to i32
%57 = add nsw i32 %56, %54
%58 = trunc i32 %57 to i8
store i8 %58, ptr %7, align 1
br label %59
59: ; preds = %52
%60 = load i8, ptr %6, align 1
%61 = add i8 %60, 1
store i8 %61, ptr %6, align 1
br label %30, !llvm.loop !6
62: ; preds = %30
%63 = getelementptr inbounds [28 x i64], ptr %4, i64 0, i64 0
%64 = load i64, ptr %63, align 16
%65 = getelementptr inbounds [28 x i64], ptr %4, i64 0, i64 1
%66 = load i64, ptr %65, align 8
%67 = icmp ult i64 %64, %66
br i1 %67, label %68, label %74
68: ; preds = %62
%69 = getelementptr inbounds [28 x i64], ptr %4, i64 0, i64 1
%70 = load i64, ptr %69, align 8
%71 = getelementptr inbounds [28 x i64], ptr %4, i64 0, i64 2
%72 = load i64, ptr %71, align 16
%73 = icmp ult i64 %70, %72
br label %74
74: ; preds = %68, %62
%75 = phi i1 [ false, %62 ], [ %73, %68 ]
%76 = zext i1 %75 to i32
store i32 %76, ptr %2, align 4
br label %77
77: ; preds = %74, %51, %28, %18, %13
%78 = load i32, ptr %2, align 4
ret i32 %78
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @is_tcp_mem(ptr noundef) #2
declare i32 @bpf_sysctl_get_current_value(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @bpf_strtoul(ptr noundef, i32 noundef, 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: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7, !8}
!7 = !{!"llvm.loop.mustprogress"}
!8 = !{!"llvm.loop.unroll.disable"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg4q7y3_g.c"
target datalayout = "e-m:e-p270: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.bpf_sysctl = type { i64 }
@llvm.compiler.used = appending global [1 x ptr] [ptr @sysctl_tcp_mem], section "llvm.metadata"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sysctl_tcp_mem(ptr noundef %0) #0 section "cgroup/sysctl" {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca [28 x i64], align 16
%5 = alloca [196 x i8], align 16
%6 = alloca i8, align 1
%7 = alloca i8, align 1
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
call void @llvm.memset.p0.i64(ptr align 16 %4, i8 0, i64 224, i1 false)
store i8 0, ptr %7, align 1
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds %struct.bpf_sysctl, ptr %9, i32 0, i32 0
%11 = load i64, ptr %10, align 8
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %1
store i32 0, ptr %2, align 4
br label %79
14: ; preds = %1
%15 = load ptr, ptr %3, align 8
%16 = call i32 @is_tcp_mem(ptr noundef %15)
%17 = icmp ne i32 %16, 0
br i1 %17, label %19, label %18
18: ; preds = %14
store i32 0, ptr %2, align 4
br label %79
19: ; preds = %14
%20 = load ptr, ptr %3, align 8
%21 = getelementptr inbounds [196 x i8], ptr %5, i64 0, i64 0
%22 = call i32 @bpf_sysctl_get_current_value(ptr noundef %20, ptr noundef %21, i32 noundef 196)
store i32 %22, ptr %8, align 4
%23 = load i32, ptr %8, align 4
%24 = icmp slt i32 %23, 0
br i1 %24, label %28, label %25
25: ; preds = %19
%26 = load i32, ptr %8, align 4
%27 = icmp sge i32 %26, 196
br i1 %27, label %28, label %29
28: ; preds = %25, %19
store i32 0, ptr %2, align 4
br label %79
29: ; preds = %25
store i8 0, ptr %6, align 1
%30 = load i8, ptr %6, align 1
%31 = zext i8 %30 to i64
%32 = icmp ult i64 %31, 28
br i1 %32, label %.lr.ph, label %64
.lr.ph: ; preds = %29
br label %33
33: ; preds = %.lr.ph, %58
%34 = getelementptr inbounds [196 x i8], ptr %5, i64 0, i64 0
%35 = load i8, ptr %7, align 1
%36 = zext i8 %35 to i32
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %34, i64 %37
%39 = getelementptr inbounds [28 x i64], ptr %4, i64 0, i64 0
%40 = load i8, ptr %6, align 1
%41 = zext i8 %40 to i32
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i64, ptr %39, i64 %42
%44 = call i32 @bpf_strtoul(ptr noundef %38, i32 noundef 7, i32 noundef 0, ptr noundef %43)
store i32 %44, ptr %8, align 4
%45 = load i32, ptr %8, align 4
%46 = icmp sle i32 %45, 0
br i1 %46, label %50, label %47
47: ; preds = %33
%48 = load i32, ptr %8, align 4
%49 = icmp sgt i32 %48, 7
br i1 %49, label %50, label %51
50: ; preds = %47, %33
store i32 0, ptr %2, align 4
br label %79
51: ; preds = %47
%52 = load i32, ptr %8, align 4
%53 = and i32 %52, 7
%54 = load i8, ptr %7, align 1
%55 = zext i8 %54 to i32
%56 = add nsw i32 %55, %53
%57 = trunc i32 %56 to i8
store i8 %57, ptr %7, align 1
br label %58
58: ; preds = %51
%59 = load i8, ptr %6, align 1
%60 = add i8 %59, 1
store i8 %60, ptr %6, align 1
%61 = load i8, ptr %6, align 1
%62 = zext i8 %61 to i64
%63 = icmp ult i64 %62, 28
br i1 %63, label %33, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %58
br label %64
64: ; preds = %._crit_edge, %29
%65 = getelementptr inbounds [28 x i64], ptr %4, i64 0, i64 0
%66 = load i64, ptr %65, align 16
%67 = getelementptr inbounds [28 x i64], ptr %4, i64 0, i64 1
%68 = load i64, ptr %67, align 8
%69 = icmp ult i64 %66, %68
br i1 %69, label %70, label %76
70: ; preds = %64
%71 = getelementptr inbounds [28 x i64], ptr %4, i64 0, i64 1
%72 = load i64, ptr %71, align 8
%73 = getelementptr inbounds [28 x i64], ptr %4, i64 0, i64 2
%74 = load i64, ptr %73, align 16
%75 = icmp ult i64 %72, %74
br label %76
76: ; preds = %70, %64
%77 = phi i1 [ false, %64 ], [ %75, %70 ]
%78 = zext i1 %77 to i32
store i32 %78, ptr %2, align 4
br label %79
79: ; preds = %76, %50, %28, %18, %13
%80 = load i32, ptr %2, align 4
ret i32 %80
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @is_tcp_mem(ptr noundef) #2
declare i32 @bpf_sysctl_get_current_value(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @bpf_strtoul(ptr noundef, i32 noundef, 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: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7, !8}
!7 = !{!"llvm.loop.mustprogress"}
!8 = !{!"llvm.loop.unroll.disable"}
|
; ModuleID = '/tmp/tmp219q_01t.c'
source_filename = "/tmp/tmp219q_01t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [42 x i8] c"Intermediate Results - Harris Poll = %lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @display_intermediate_harris_results(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = fdiv double %3, 2.850000e+03
store double %4, ptr %2, align 8
%5 = load double, ptr %2, align 8
%6 = call i32 @printf(ptr noundef @.str, double noundef %5)
ret double 0.000000e+00
}
declare i32 @printf(ptr noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp219q_01t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [42 x i8] c"Intermediate Results - Harris Poll = %lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @display_intermediate_harris_results(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = fdiv double %3, 2.850000e+03
store double %4, ptr %2, align 8
%5 = load double, ptr %2, align 8
%6 = call i32 @printf(ptr noundef @.str, double noundef %5)
ret double 0.000000e+00
}
declare i32 @printf(ptr noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv2a1zky1.c'
source_filename = "/tmp/tmpv2a1zky1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"MEM:\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"0x%x, 0x%x, 0x%x, 0x%x\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ppMem0(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %36, %2
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %39
11: ; preds = %7
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %5, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i32, ptr %12, i64 %14
%16 = load i32, ptr %15, align 4
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i32, ptr %17, i64 %20
%22 = load i32, ptr %21, align 4
%23 = load ptr, ptr %3, align 8
%24 = load i32, ptr %5, align 4
%25 = add nsw i32 %24, 2
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i32, ptr %23, i64 %26
%28 = load i32, ptr %27, align 4
%29 = load ptr, ptr %3, align 8
%30 = load i32, ptr %5, align 4
%31 = add nsw i32 %30, 3
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %29, i64 %32
%34 = load i32, ptr %33, align 4
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %16, i32 noundef %22, i32 noundef %28, i32 noundef %34)
br label %36
36: ; preds = %11
%37 = load i32, ptr %5, align 4
%38 = add nsw i32 %37, 4
store i32 %38, ptr %5, align 4
br label %7, !llvm.loop !6
39: ; preds = %7
%40 = load ptr, ptr %3, align 8
%41 = getelementptr inbounds i32, ptr %40, i64 0
store i32 59008, ptr %41, align 4
%42 = load ptr, ptr %3, align 8
%43 = getelementptr inbounds i32, ptr %42, i64 1
store i32 67328, ptr %43, align 4
%44 = load ptr, ptr %3, align 8
%45 = getelementptr inbounds i32, ptr %44, i64 2
store i32 59356, ptr %45, align 4
%46 = load ptr, ptr %3, align 8
%47 = getelementptr inbounds i32, ptr %46, i64 3
store i32 45264, ptr %47, align 4
%48 = load ptr, ptr %3, align 8
%49 = getelementptr inbounds i32, ptr %48, i64 4
store i32 716201936, ptr %49, align 4
%50 = load ptr, ptr %3, align 8
%51 = getelementptr inbounds i32, ptr %50, i64 5
store i32 46752, ptr %51, align 4
%52 = load ptr, ptr %3, align 8
%53 = getelementptr inbounds i32, ptr %52, i64 6
store i32 48768, ptr %53, align 4
%54 = load ptr, ptr %3, align 8
%55 = getelementptr inbounds i32, ptr %54, i64 7
store i32 56848, ptr %55, align 4
%56 = load ptr, ptr %3, align 8
%57 = getelementptr inbounds i32, ptr %56, i64 8
store i32 57120, ptr %57, align 4
%58 = load ptr, ptr %3, align 8
%59 = getelementptr inbounds i32, ptr %58, i64 9
store i32 716201952, ptr %59, align 4
%60 = load ptr, ptr %3, align 8
%61 = getelementptr inbounds i32, ptr %60, i64 10
store i32 57296, ptr %61, align 4
%62 = load ptr, ptr %3, align 8
%63 = getelementptr inbounds i32, ptr %62, i64 11
store i32 66304, ptr %63, align 4
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv2a1zky1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"MEM:\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"0x%x, 0x%x, 0x%x, 0x%x\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ppMem0(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %.lr.ph, label %41
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %35
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i32, ptr %11, i64 %13
%15 = load i32, ptr %14, align 4
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, 1
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %16, i64 %19
%21 = load i32, ptr %20, align 4
%22 = load ptr, ptr %3, align 8
%23 = load i32, ptr %5, align 4
%24 = add nsw i32 %23, 2
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %22, i64 %25
%27 = load i32, ptr %26, align 4
%28 = load ptr, ptr %3, align 8
%29 = load i32, ptr %5, align 4
%30 = add nsw i32 %29, 3
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %28, i64 %31
%33 = load i32, ptr %32, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %15, i32 noundef %21, i32 noundef %27, i32 noundef %33)
br label %35
35: ; preds = %10
%36 = load i32, ptr %5, align 4
%37 = add nsw i32 %36, 4
store i32 %37, ptr %5, align 4
%38 = load i32, ptr %5, align 4
%39 = load i32, ptr %4, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %35
br label %41
41: ; preds = %._crit_edge, %2
%42 = load ptr, ptr %3, align 8
%43 = getelementptr inbounds i32, ptr %42, i64 0
store i32 59008, ptr %43, align 4
%44 = load ptr, ptr %3, align 8
%45 = getelementptr inbounds i32, ptr %44, i64 1
store i32 67328, ptr %45, align 4
%46 = load ptr, ptr %3, align 8
%47 = getelementptr inbounds i32, ptr %46, i64 2
store i32 59356, ptr %47, align 4
%48 = load ptr, ptr %3, align 8
%49 = getelementptr inbounds i32, ptr %48, i64 3
store i32 45264, ptr %49, align 4
%50 = load ptr, ptr %3, align 8
%51 = getelementptr inbounds i32, ptr %50, i64 4
store i32 716201936, ptr %51, align 4
%52 = load ptr, ptr %3, align 8
%53 = getelementptr inbounds i32, ptr %52, i64 5
store i32 46752, ptr %53, align 4
%54 = load ptr, ptr %3, align 8
%55 = getelementptr inbounds i32, ptr %54, i64 6
store i32 48768, ptr %55, align 4
%56 = load ptr, ptr %3, align 8
%57 = getelementptr inbounds i32, ptr %56, i64 7
store i32 56848, ptr %57, align 4
%58 = load ptr, ptr %3, align 8
%59 = getelementptr inbounds i32, ptr %58, i64 8
store i32 57120, ptr %59, align 4
%60 = load ptr, ptr %3, align 8
%61 = getelementptr inbounds i32, ptr %60, i64 9
store i32 716201952, ptr %61, align 4
%62 = load ptr, ptr %3, align 8
%63 = getelementptr inbounds i32, ptr %62, i64 10
store i32 57296, ptr %63, align 4
%64 = load ptr, ptr %3, align 8
%65 = getelementptr inbounds i32, ptr %64, i64 11
store i32 66304, ptr %65, align 4
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpwkmnar8l.c'
source_filename = "/tmp/tmpwkmnar8l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@RB_AUTOBOOT = dso_local global i32 0, align 4
@stdout = 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/tmpwkmnar8l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@RB_AUTOBOOT = dso_local global i32 0, align 4
@stdout = 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/tmpkz1tp3si.c'
source_filename = "/tmp/tmpkz1tp3si.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i8, align 1
%8 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %9
9: ; preds = %20, %0
%10 = call i64 @scanf(ptr noundef @.str, ptr noundef %2)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %21
12: ; preds = %9
%13 = load i32, ptr %2, align 4
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %12
br label %21
16: ; preds = %12
%17 = load i32, ptr %2, align 4
%18 = load i32, ptr %4, align 4
%19 = add nsw i32 %18, %17
store i32 %19, ptr %4, align 4
br label %20
20: ; preds = %16
br label %9, !llvm.loop !6
21: ; preds = %15, %9
%22 = call signext i8 (...) @getchar()
store i8 %22, ptr %8, align 1
%23 = call signext i8 (...) @getchar()
store i8 %23, ptr %7, align 1
br label %24
24: ; preds = %35, %21
%25 = call i64 @scanf(ptr noundef @.str, ptr noundef %3)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %36
27: ; preds = %24
%28 = load i32, ptr %3, align 4
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %31
30: ; preds = %27
br label %36
31: ; preds = %27
%32 = load i32, ptr %3, align 4
%33 = load i32, ptr %5, align 4
%34 = add nsw i32 %33, %32
store i32 %34, ptr %5, align 4
br label %35
35: ; preds = %31
br label %24, !llvm.loop !8
36: ; preds = %30, %24
%37 = load i8, ptr %7, align 1
%38 = sext i8 %37 to i32
%39 = icmp eq i32 %38, 43
br i1 %39, label %40, label %44
40: ; preds = %36
%41 = load i32, ptr %4, align 4
%42 = load i32, ptr %5, align 4
%43 = add nsw i32 %41, %42
store i32 %43, ptr %6, align 4
br label %53
44: ; preds = %36
%45 = load i8, ptr %7, align 1
%46 = sext i8 %45 to i32
%47 = icmp eq i32 %46, 45
br i1 %47, label %48, label %52
48: ; preds = %44
%49 = load i32, ptr %4, align 4
%50 = load i32, ptr %5, align 4
%51 = sub nsw i32 %49, %50
store i32 %51, ptr %6, align 4
br label %52
52: ; preds = %48, %44
br label %53
53: ; preds = %52, %40
%54 = load i32, ptr %6, align 4
%55 = call i32 @printf(ptr noundef @.str, i32 noundef %54)
ret i32 0
}
declare i64 @scanf(ptr noundef, ptr noundef) #1
declare signext i8 @getchar(...) #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}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkz1tp3si.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i8, align 1
%8 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%9 = call i64 @scanf(ptr noundef @.str, ptr noundef %2)
%10 = icmp ne i64 %9, 0
br i1 %10, label %.lr.ph, label %.loopexit1
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %19
%12 = load i32, ptr %2, align 4
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %11
br label %22
15: ; preds = %11
%16 = load i32, ptr %2, align 4
%17 = load i32, ptr %4, align 4
%18 = add nsw i32 %17, %16
store i32 %18, ptr %4, align 4
br label %19
19: ; preds = %15
%20 = call i64 @scanf(ptr noundef @.str, ptr noundef %2)
%21 = icmp ne i64 %20, 0
br i1 %21, label %11, label %..loopexit1_crit_edge, !llvm.loop !6
..loopexit1_crit_edge: ; preds = %19
br label %.loopexit1
.loopexit1: ; preds = %..loopexit1_crit_edge, %0
br label %22
22: ; preds = %.loopexit1, %14
%23 = call signext i8 (...) @getchar()
store i8 %23, ptr %8, align 1
%24 = call signext i8 (...) @getchar()
store i8 %24, ptr %7, align 1
%25 = call i64 @scanf(ptr noundef @.str, ptr noundef %3)
%26 = icmp ne i64 %25, 0
br i1 %26, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %22
br label %27
27: ; preds = %.lr.ph2, %35
%28 = load i32, ptr %3, align 4
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %31
30: ; preds = %27
br label %38
31: ; preds = %27
%32 = load i32, ptr %3, align 4
%33 = load i32, ptr %5, align 4
%34 = add nsw i32 %33, %32
store i32 %34, ptr %5, align 4
br label %35
35: ; preds = %31
%36 = call i64 @scanf(ptr noundef @.str, ptr noundef %3)
%37 = icmp ne i64 %36, 0
br i1 %37, label %27, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %35
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %22
br label %38
38: ; preds = %.loopexit, %30
%39 = load i8, ptr %7, align 1
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %40, 43
br i1 %41, label %42, label %46
42: ; preds = %38
%43 = load i32, ptr %4, align 4
%44 = load i32, ptr %5, align 4
%45 = add nsw i32 %43, %44
store i32 %45, ptr %6, align 4
br label %55
46: ; preds = %38
%47 = load i8, ptr %7, align 1
%48 = sext i8 %47 to i32
%49 = icmp eq i32 %48, 45
br i1 %49, label %50, label %54
50: ; preds = %46
%51 = load i32, ptr %4, align 4
%52 = load i32, ptr %5, align 4
%53 = sub nsw i32 %51, %52
store i32 %53, ptr %6, align 4
br label %54
54: ; preds = %50, %46
br label %55
55: ; preds = %54, %42
%56 = load i32, ptr %6, align 4
%57 = call i32 @printf(ptr noundef @.str, i32 noundef %56)
ret i32 0
}
declare i64 @scanf(ptr noundef, ptr noundef) #1
declare signext i8 @getchar(...) #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}
|
; ModuleID = '/tmp/tmpgwy7uslm.c'
source_filename = "/tmp/tmpgwy7uslm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @abort() #2
unreachable
}
; Function Attrs: noreturn
declare i32 @abort(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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/tmpgwy7uslm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @abort() #2
unreachable
}
; Function Attrs: noreturn
declare i32 @abort(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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/tmpgzcs1l9b.c'
source_filename = "/tmp/tmpgzcs1l9b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [65 x i8] c"Error, running out of buffer space while adding int32 to buffer\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"length=%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Shifting %d steps\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @insertStructEntry(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
%12 = load ptr, ptr %10, align 8
%13 = call i32 @strlen(ptr noundef %12)
store i32 %13, ptr %11, align 4
%14 = load ptr, ptr %6, align 8
%15 = load ptr, ptr %14, align 8
%16 = load i32, ptr %11, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i32, ptr %15, i64 %17
%19 = getelementptr inbounds i32, ptr %18, i64 3
%20 = load ptr, ptr %7, align 8
%21 = icmp uge ptr %19, %20
br i1 %21, label %22, label %25
22: ; preds = %5
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%24 = call i32 @exit(i32 noundef 0) #3
unreachable
25: ; preds = %5
%26 = load i32, ptr %8, align 4
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %26)
%28 = load i32, ptr %11, align 4
%29 = add nsw i32 %28, 3
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %29)
%31 = load ptr, ptr %6, align 8
%32 = load ptr, ptr %31, align 8
%33 = load i32, ptr %11, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i32, ptr %32, i64 %34
%36 = getelementptr inbounds i32, ptr %35, i64 3
%37 = load ptr, ptr %6, align 8
%38 = load ptr, ptr %37, align 8
%39 = load i32, ptr %8, align 4
%40 = call i32 @memmove(ptr noundef %36, ptr noundef %38, i32 noundef %39)
%41 = load i32, ptr %9, align 4
%42 = load ptr, ptr %6, align 8
%43 = load ptr, ptr %42, align 8
store i32 %41, ptr %43, align 4
%44 = load ptr, ptr %6, align 8
%45 = load ptr, ptr %44, align 8
%46 = getelementptr inbounds i32, ptr %45, i64 1
store ptr %46, ptr %44, align 8
%47 = load i32, ptr %11, align 4
%48 = load ptr, ptr %6, align 8
%49 = load ptr, ptr %48, align 8
%50 = call i32 @int16ToBuf(i32 noundef %47, ptr noundef %49)
%51 = load ptr, ptr %6, align 8
%52 = load ptr, ptr %51, align 8
%53 = getelementptr inbounds i32, ptr %52, i64 2
store ptr %53, ptr %51, align 8
%54 = load ptr, ptr %6, align 8
%55 = load ptr, ptr %54, align 8
%56 = load ptr, ptr %10, align 8
%57 = load i32, ptr %11, align 4
%58 = call i32 @memcpy(ptr noundef %55, ptr noundef %56, i32 noundef %57)
%59 = load i32, ptr %11, align 4
%60 = load ptr, ptr %6, align 8
%61 = load ptr, ptr %60, align 8
%62 = sext i32 %59 to i64
%63 = getelementptr inbounds i32, ptr %61, i64 %62
store ptr %63, ptr %60, align 8
%64 = load i32, ptr %11, align 4
%65 = add nsw i32 %64, 3
ret i32 %65
}
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @int16ToBuf(i32 noundef, ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpgzcs1l9b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [65 x i8] c"Error, running out of buffer space while adding int32 to buffer\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"length=%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Shifting %d steps\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @insertStructEntry(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
%12 = load ptr, ptr %10, align 8
%13 = call i32 @strlen(ptr noundef %12)
store i32 %13, ptr %11, align 4
%14 = load ptr, ptr %6, align 8
%15 = load ptr, ptr %14, align 8
%16 = load i32, ptr %11, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i32, ptr %15, i64 %17
%19 = getelementptr inbounds i32, ptr %18, i64 3
%20 = load ptr, ptr %7, align 8
%21 = icmp uge ptr %19, %20
br i1 %21, label %22, label %25
22: ; preds = %5
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%24 = call i32 @exit(i32 noundef 0) #3
unreachable
25: ; preds = %5
%26 = load i32, ptr %8, align 4
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %26)
%28 = load i32, ptr %11, align 4
%29 = add nsw i32 %28, 3
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %29)
%31 = load ptr, ptr %6, align 8
%32 = load ptr, ptr %31, align 8
%33 = load i32, ptr %11, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i32, ptr %32, i64 %34
%36 = getelementptr inbounds i32, ptr %35, i64 3
%37 = load ptr, ptr %6, align 8
%38 = load ptr, ptr %37, align 8
%39 = load i32, ptr %8, align 4
%40 = call i32 @memmove(ptr noundef %36, ptr noundef %38, i32 noundef %39)
%41 = load i32, ptr %9, align 4
%42 = load ptr, ptr %6, align 8
%43 = load ptr, ptr %42, align 8
store i32 %41, ptr %43, align 4
%44 = load ptr, ptr %6, align 8
%45 = load ptr, ptr %44, align 8
%46 = getelementptr inbounds i32, ptr %45, i64 1
store ptr %46, ptr %44, align 8
%47 = load i32, ptr %11, align 4
%48 = load ptr, ptr %6, align 8
%49 = load ptr, ptr %48, align 8
%50 = call i32 @int16ToBuf(i32 noundef %47, ptr noundef %49)
%51 = load ptr, ptr %6, align 8
%52 = load ptr, ptr %51, align 8
%53 = getelementptr inbounds i32, ptr %52, i64 2
store ptr %53, ptr %51, align 8
%54 = load ptr, ptr %6, align 8
%55 = load ptr, ptr %54, align 8
%56 = load ptr, ptr %10, align 8
%57 = load i32, ptr %11, align 4
%58 = call i32 @memcpy(ptr noundef %55, ptr noundef %56, i32 noundef %57)
%59 = load i32, ptr %11, align 4
%60 = load ptr, ptr %6, align 8
%61 = load ptr, ptr %60, align 8
%62 = sext i32 %59 to i64
%63 = getelementptr inbounds i32, ptr %61, i64 %62
store ptr %63, ptr %60, align 8
%64 = load i32, ptr %11, align 4
%65 = add nsw i32 %64, 3
ret i32 %65
}
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @int16ToBuf(i32 noundef, ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpk1jfu_0v.c'
source_filename = "/tmp/tmpk1jfu_0v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"isp-extram-at91sam9263\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"isp-extram-at91sam9g45\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"invalid response from applet init\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"invalid response from applet status\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ddr_init(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp eq i32 %3, 2
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = call i32 @samba_load_applet(ptr noundef @.str, i32 noundef 3145728)
br label %13
7: ; preds = %1
%8 = load i32, ptr %2, align 4
%9 = icmp eq i32 %8, 3
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = call i32 @samba_load_applet(ptr noundef @.str.1, i32 noundef 3145728)
br label %12
12: ; preds = %10, %7
br label %13
13: ; preds = %12, %5
%14 = call i32 @mbox_write(i32 noundef 3145728, i32 noundef 4, i32 noundef 0)
%15 = call i32 @mbox_write(i32 noundef 3145728, i32 noundef 16, i32 noundef 0)
%16 = call i32 @mbox_write(i32 noundef 3145728, i32 noundef 24, i32 noundef 1)
%17 = call i32 @mbox_write(i32 noundef 3145728, i32 noundef 20, i32 noundef 0)
%18 = call i32 @mbox_write(i32 noundef 3145728, i32 noundef 28, i32 noundef 16)
%19 = call i32 @mbox_write(i32 noundef 3145728, i32 noundef 32, i32 noundef 0)
%20 = call i32 @samba_run(i32 noundef 3145728, i32 noundef 100000000)
%21 = call i32 @samba_read(i32 noundef 3145732, i32 noundef 4, i32 noundef 10000000)
%22 = icmp ne i32 %21, -1
br i1 %22, label %23, label %25
23: ; preds = %13
%24 = call i32 @die(ptr noundef @.str.2)
br label %25
25: ; preds = %23, %13
%26 = call i32 @samba_read(i32 noundef 3145736, i32 noundef 4, i32 noundef 10000000)
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %25
%29 = call i32 @die(ptr noundef @.str.3)
br label %30
30: ; preds = %28, %25
ret i32 0
}
declare i32 @samba_load_applet(ptr noundef, i32 noundef) #1
declare i32 @mbox_write(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @samba_run(i32 noundef, i32 noundef) #1
declare i32 @samba_read(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @die(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk1jfu_0v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"isp-extram-at91sam9263\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"isp-extram-at91sam9g45\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"invalid response from applet init\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"invalid response from applet status\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ddr_init(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp eq i32 %3, 2
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = call i32 @samba_load_applet(ptr noundef @.str, i32 noundef 3145728)
br label %13
7: ; preds = %1
%8 = load i32, ptr %2, align 4
%9 = icmp eq i32 %8, 3
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = call i32 @samba_load_applet(ptr noundef @.str.1, i32 noundef 3145728)
br label %12
12: ; preds = %10, %7
br label %13
13: ; preds = %12, %5
%14 = call i32 @mbox_write(i32 noundef 3145728, i32 noundef 4, i32 noundef 0)
%15 = call i32 @mbox_write(i32 noundef 3145728, i32 noundef 16, i32 noundef 0)
%16 = call i32 @mbox_write(i32 noundef 3145728, i32 noundef 24, i32 noundef 1)
%17 = call i32 @mbox_write(i32 noundef 3145728, i32 noundef 20, i32 noundef 0)
%18 = call i32 @mbox_write(i32 noundef 3145728, i32 noundef 28, i32 noundef 16)
%19 = call i32 @mbox_write(i32 noundef 3145728, i32 noundef 32, i32 noundef 0)
%20 = call i32 @samba_run(i32 noundef 3145728, i32 noundef 100000000)
%21 = call i32 @samba_read(i32 noundef 3145732, i32 noundef 4, i32 noundef 10000000)
%22 = icmp ne i32 %21, -1
br i1 %22, label %23, label %25
23: ; preds = %13
%24 = call i32 @die(ptr noundef @.str.2)
br label %25
25: ; preds = %23, %13
%26 = call i32 @samba_read(i32 noundef 3145736, i32 noundef 4, i32 noundef 10000000)
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %25
%29 = call i32 @die(ptr noundef @.str.3)
br label %30
30: ; preds = %28, %25
ret i32 0
}
declare i32 @samba_load_applet(ptr noundef, i32 noundef) #1
declare i32 @mbox_write(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @samba_run(i32 noundef, i32 noundef) #1
declare i32 @samba_read(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @die(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp41k_fizp.c'
source_filename = "/tmp/tmp41k_fizp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [101 x i8] c"\0A\0A\0A\0A\0A\0AThis program will copy your text file to another file\0APress ENTER to continue or 'q' to quit:\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"\0A\0A\0A\0A\0A\0A\0A\0A\0AGoodbye\0A\0A\0A\0A\0A\0A\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [49 x i8] c"Enter Name of file you would like to copy from:\0A\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.4 = private unnamed_addr constant [52 x i8] c"Error Opening the file you would like to copy from\0A\00", align 1
@.str.5 = private unnamed_addr constant [100 x i8] c"\0AEnter Name of file you would like to copy to:\0A!!!CAUTION: CONTENTS OF FILE WILL BE OVERWRITTEN!!!\0A\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.7 = private unnamed_addr constant [50 x i8] c"Error Opening the file you would like to copy to\0A\00", align 1
@EOF = dso_local global i8 0, align 1
@.str.8 = private unnamed_addr constant [27 x i8] c"\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0ACopy Completed\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 ptr, align 8
%4 = alloca [100 x i8], align 16
%5 = alloca [100 x i8], align 16
%6 = alloca i32, align 4
%7 = alloca i8, align 1
store i32 0, ptr %1, align 4
%8 = call i32 @printf(ptr noundef @.str)
%9 = call signext i8 (...) @getchar()
%10 = sext i8 %9 to i32
%11 = icmp eq i32 %10, 113
br i1 %11, label %12, label %15
12: ; preds = %0
%13 = call i32 @printf(ptr noundef @.str.1)
%14 = call i32 @exit(i32 noundef 2) #3
unreachable
15: ; preds = %0
%16 = call i32 @printf(ptr noundef @.str.2)
%17 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 0
%18 = load i32, ptr @stdin, align 4
%19 = call i32 @fgets(ptr noundef %17, i32 noundef 100, i32 noundef %18)
%20 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 0
%21 = call i32 @strlen(ptr noundef %20)
store i32 %21, ptr %6, align 4
%22 = load i32, ptr %6, align 4
%23 = sub nsw i32 %22, 1
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 %24
store i8 0, ptr %25, align 1
%26 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 0
%27 = call ptr @fopen(ptr noundef %26, ptr noundef @.str.3)
store ptr %27, ptr %2, align 8
%28 = load ptr, ptr %2, align 8
%29 = icmp eq ptr %28, null
br i1 %29, label %30, label %33
30: ; preds = %15
%31 = call i32 @printf(ptr noundef @.str.4)
%32 = call i32 @exit(i32 noundef 0) #3
unreachable
33: ; preds = %15
%34 = call i32 @printf(ptr noundef @.str.5)
%35 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%36 = load i32, ptr @stdin, align 4
%37 = call i32 @fgets(ptr noundef %35, i32 noundef 100, i32 noundef %36)
%38 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%39 = call i32 @strlen(ptr noundef %38)
store i32 %39, ptr %6, align 4
%40 = load i32, ptr %6, align 4
%41 = sub nsw i32 %40, 1
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 %42
store i8 0, ptr %43, align 1
%44 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%45 = call ptr @fopen(ptr noundef %44, ptr noundef @.str.6)
store ptr %45, ptr %3, align 8
%46 = load ptr, ptr %3, align 8
%47 = icmp eq ptr %46, null
br i1 %47, label %48, label %51
48: ; preds = %33
%49 = call i32 @printf(ptr noundef @.str.7)
%50 = call i32 @exit(i32 noundef 0) #3
unreachable
51: ; preds = %33
br label %52
52: ; preds = %59, %51
%53 = load ptr, ptr %2, align 8
%54 = call signext i8 @getc(ptr noundef %53)
store i8 %54, ptr %7, align 1
%55 = sext i8 %54 to i32
%56 = load i8, ptr @EOF, align 1
%57 = sext i8 %56 to i32
%58 = icmp ne i32 %55, %57
br i1 %58, label %59, label %63
59: ; preds = %52
%60 = load i8, ptr %7, align 1
%61 = load ptr, ptr %3, align 8
%62 = call i32 @putc(i8 noundef signext %60, ptr noundef %61)
br label %52, !llvm.loop !6
63: ; preds = %52
%64 = load ptr, ptr %2, align 8
%65 = call i32 @fclose(ptr noundef %64)
%66 = load ptr, ptr %3, align 8
%67 = call i32 @fclose(ptr noundef %66)
%68 = call i32 @printf(ptr noundef @.str.8)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare signext i8 @getchar(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare signext i8 @getc(ptr noundef) #1
declare i32 @putc(i8 noundef signext, 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" }
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/tmp41k_fizp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [101 x i8] c"\0A\0A\0A\0A\0A\0AThis program will copy your text file to another file\0APress ENTER to continue or 'q' to quit:\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"\0A\0A\0A\0A\0A\0A\0A\0A\0AGoodbye\0A\0A\0A\0A\0A\0A\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [49 x i8] c"Enter Name of file you would like to copy from:\0A\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.4 = private unnamed_addr constant [52 x i8] c"Error Opening the file you would like to copy from\0A\00", align 1
@.str.5 = private unnamed_addr constant [100 x i8] c"\0AEnter Name of file you would like to copy to:\0A!!!CAUTION: CONTENTS OF FILE WILL BE OVERWRITTEN!!!\0A\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.7 = private unnamed_addr constant [50 x i8] c"Error Opening the file you would like to copy to\0A\00", align 1
@EOF = dso_local global i8 0, align 1
@.str.8 = private unnamed_addr constant [27 x i8] c"\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0ACopy Completed\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 ptr, align 8
%4 = alloca [100 x i8], align 16
%5 = alloca [100 x i8], align 16
%6 = alloca i32, align 4
%7 = alloca i8, align 1
store i32 0, ptr %1, align 4
%8 = call i32 @printf(ptr noundef @.str)
%9 = call signext i8 (...) @getchar()
%10 = sext i8 %9 to i32
%11 = icmp eq i32 %10, 113
br i1 %11, label %12, label %15
12: ; preds = %0
%13 = call i32 @printf(ptr noundef @.str.1)
%14 = call i32 @exit(i32 noundef 2) #3
unreachable
15: ; preds = %0
%16 = call i32 @printf(ptr noundef @.str.2)
%17 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 0
%18 = load i32, ptr @stdin, align 4
%19 = call i32 @fgets(ptr noundef %17, i32 noundef 100, i32 noundef %18)
%20 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 0
%21 = call i32 @strlen(ptr noundef %20)
store i32 %21, ptr %6, align 4
%22 = load i32, ptr %6, align 4
%23 = sub nsw i32 %22, 1
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 %24
store i8 0, ptr %25, align 1
%26 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 0
%27 = call ptr @fopen(ptr noundef %26, ptr noundef @.str.3)
store ptr %27, ptr %2, align 8
%28 = load ptr, ptr %2, align 8
%29 = icmp eq ptr %28, null
br i1 %29, label %30, label %33
30: ; preds = %15
%31 = call i32 @printf(ptr noundef @.str.4)
%32 = call i32 @exit(i32 noundef 0) #3
unreachable
33: ; preds = %15
%34 = call i32 @printf(ptr noundef @.str.5)
%35 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%36 = load i32, ptr @stdin, align 4
%37 = call i32 @fgets(ptr noundef %35, i32 noundef 100, i32 noundef %36)
%38 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%39 = call i32 @strlen(ptr noundef %38)
store i32 %39, ptr %6, align 4
%40 = load i32, ptr %6, align 4
%41 = sub nsw i32 %40, 1
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 %42
store i8 0, ptr %43, align 1
%44 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%45 = call ptr @fopen(ptr noundef %44, ptr noundef @.str.6)
store ptr %45, ptr %3, align 8
%46 = load ptr, ptr %3, align 8
%47 = icmp eq ptr %46, null
br i1 %47, label %48, label %51
48: ; preds = %33
%49 = call i32 @printf(ptr noundef @.str.7)
%50 = call i32 @exit(i32 noundef 0) #3
unreachable
51: ; preds = %33
%52 = load ptr, ptr %2, align 8
%53 = call signext i8 @getc(ptr noundef %52)
store i8 %53, ptr %7, align 1
%54 = sext i8 %53 to i32
%55 = load i8, ptr @EOF, align 1
%56 = sext i8 %55 to i32
%57 = icmp ne i32 %54, %56
br i1 %57, label %.lr.ph, label %68
.lr.ph: ; preds = %51
br label %58
58: ; preds = %.lr.ph, %58
%59 = load i8, ptr %7, align 1
%60 = load ptr, ptr %3, align 8
%61 = call i32 @putc(i8 noundef signext %59, ptr noundef %60)
%62 = load ptr, ptr %2, align 8
%63 = call signext i8 @getc(ptr noundef %62)
store i8 %63, ptr %7, align 1
%64 = sext i8 %63 to i32
%65 = load i8, ptr @EOF, align 1
%66 = sext i8 %65 to i32
%67 = icmp ne i32 %64, %66
br i1 %67, label %58, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %58
br label %68
68: ; preds = %._crit_edge, %51
%69 = load ptr, ptr %2, align 8
%70 = call i32 @fclose(ptr noundef %69)
%71 = load ptr, ptr %3, align 8
%72 = call i32 @fclose(ptr noundef %71)
%73 = call i32 @printf(ptr noundef @.str.8)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare signext i8 @getchar(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare signext i8 @getc(ptr noundef) #1
declare i32 @putc(i8 noundef signext, 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" }
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/tmp2j9360m6.c'
source_filename = "/tmp/tmp2j9360m6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ls_command(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 @ls(ptr noundef %3)
ret void
}
declare i32 @ls(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2j9360m6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ls_command(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 @ls(ptr noundef %3)
ret void
}
declare i32 @ls(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppwxrke91.c'
source_filename = "/tmp/tmppwxrke91.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @connection_handler(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca [256 x i8], align 16
%10 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%11 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%12 = load ptr, ptr %5, align 8
%13 = load i64, ptr %6, align 8
%14 = call i32 @memcpy(ptr noundef %11, ptr noundef %12, i64 noundef %13)
%15 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%16 = call ptr @strchr(ptr noundef %15, i8 noundef signext 58)
store ptr %16, ptr %8, align 8
%17 = load ptr, ptr %8, align 8
%18 = getelementptr inbounds i8, ptr %17, i32 1
store ptr %18, ptr %8, align 8
store i8 0, ptr %17, align 1
%19 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%20 = load ptr, ptr %8, align 8
%21 = call i32 @tcp_client(ptr noundef %19, ptr noundef %20)
store i32 %21, ptr %7, align 4
br label %22
22: ; preds = %27, %3
%23 = load i32, ptr %4, align 4
%24 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%25 = call i32 @recv(i32 noundef %23, ptr noundef %24, i32 noundef 256, i32 noundef 0)
store i32 %25, ptr %10, align 4
%26 = icmp sgt i32 %25, 0
br i1 %26, label %27, label %32
27: ; preds = %22
%28 = load i32, ptr %7, align 4
%29 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%30 = load i32, ptr %10, align 4
%31 = call i32 @send(i32 noundef %28, ptr noundef %29, i32 noundef %30, i32 noundef 0)
br label %22, !llvm.loop !6
32: ; preds = %22
%33 = load i32, ptr %7, align 4
%34 = call i32 @close(i32 noundef %33)
%35 = load i32, ptr %4, align 4
%36 = call i32 @close(i32 noundef %35)
ret void
}
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @tcp_client(ptr noundef, ptr noundef) #1
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppwxrke91.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @connection_handler(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca [256 x i8], align 16
%10 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%11 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%12 = load ptr, ptr %5, align 8
%13 = load i64, ptr %6, align 8
%14 = call i32 @memcpy(ptr noundef %11, ptr noundef %12, i64 noundef %13)
%15 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%16 = call ptr @strchr(ptr noundef %15, i8 noundef signext 58)
store ptr %16, ptr %8, align 8
%17 = load ptr, ptr %8, align 8
%18 = getelementptr inbounds i8, ptr %17, i32 1
store ptr %18, ptr %8, align 8
store i8 0, ptr %17, align 1
%19 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%20 = load ptr, ptr %8, align 8
%21 = call i32 @tcp_client(ptr noundef %19, ptr noundef %20)
store i32 %21, ptr %7, align 4
%22 = load i32, ptr %4, align 4
%23 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%24 = call i32 @recv(i32 noundef %22, ptr noundef %23, i32 noundef 256, i32 noundef 0)
store i32 %24, ptr %10, align 4
%25 = icmp sgt i32 %24, 0
br i1 %25, label %.lr.ph, label %34
.lr.ph: ; preds = %3
br label %26
26: ; preds = %.lr.ph, %26
%27 = load i32, ptr %7, align 4
%28 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%29 = load i32, ptr %10, align 4
%30 = call i32 @send(i32 noundef %27, ptr noundef %28, i32 noundef %29, i32 noundef 0)
%31 = load i32, ptr %4, align 4
%32 = call i32 @recv(i32 noundef %31, ptr noundef %23, i32 noundef 256, i32 noundef 0)
store i32 %32, ptr %10, align 4
%33 = icmp sgt i32 %32, 0
br i1 %33, label %26, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %34
34: ; preds = %._crit_edge, %3
%35 = load i32, ptr %7, align 4
%36 = call i32 @close(i32 noundef %35)
%37 = load i32, ptr %4, align 4
%38 = call i32 @close(i32 noundef %37)
ret void
}
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @tcp_client(ptr noundef, ptr noundef) #1
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpmfsu837m.c'
source_filename = "/tmp/tmpmfsu837m.c"
target datalayout = "e-m:e-p270: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/tmpmfsu837m.c"
target datalayout = "e-m:e-p270: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/tmpkrvkt8go.c'
source_filename = "/tmp/tmpkrvkt8go.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
@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/tmpkrvkt8go.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
@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/tmpiokdu2_l.c'
source_filename = "/tmp/tmpiokdu2_l.c"
target datalayout = "e-m:e-p270: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_RDWR = 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
@.str = private unnamed_addr constant [5 x i8] c"open\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"Donde lo imprimo?\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %5, align 8
%8 = getelementptr inbounds ptr, ptr %7, i64 1
%9 = load ptr, ptr %8, align 8
%10 = load i32, ptr @O_RDWR, align 4
%11 = load i32, ptr @O_CREAT, align 4
%12 = or i32 %10, %11
%13 = load i32, ptr @O_TRUNC, align 4
%14 = or i32 %12, %13
%15 = call i32 @open(ptr noundef %9, i32 noundef %14, i32 noundef 700)
store i32 %15, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %21
18: ; preds = %2
%19 = call i32 @perror(ptr noundef @.str)
%20 = call i32 @exit(i32 noundef -1) #3
unreachable
21: ; preds = %2
%22 = load i32, ptr %6, align 4
%23 = call i32 @dup2(i32 noundef %22, i32 noundef 1)
%24 = call i32 @printf(ptr noundef @.str.1)
ret i32 0
}
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @dup2(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpiokdu2_l.c"
target datalayout = "e-m:e-p270: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_RDWR = 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
@.str = private unnamed_addr constant [5 x i8] c"open\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"Donde lo imprimo?\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %5, align 8
%8 = getelementptr inbounds ptr, ptr %7, i64 1
%9 = load ptr, ptr %8, align 8
%10 = load i32, ptr @O_RDWR, align 4
%11 = load i32, ptr @O_CREAT, align 4
%12 = or i32 %10, %11
%13 = load i32, ptr @O_TRUNC, align 4
%14 = or i32 %12, %13
%15 = call i32 @open(ptr noundef %9, i32 noundef %14, i32 noundef 700)
store i32 %15, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %21
18: ; preds = %2
%19 = call i32 @perror(ptr noundef @.str)
%20 = call i32 @exit(i32 noundef -1) #3
unreachable
21: ; preds = %2
%22 = load i32, ptr %6, align 4
%23 = call i32 @dup2(i32 noundef %22, i32 noundef 1)
%24 = call i32 @printf(ptr noundef @.str.1)
ret i32 0
}
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @dup2(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpdv1eb4k6.c'
source_filename = "/tmp/tmpdv1eb4k6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SYS_clock_gettime = 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/tmpdv1eb4k6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SYS_clock_gettime = 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/tmpoxz38y78.c'
source_filename = "/tmp/tmpoxz38y78.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @in_array(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 = %24, %3
%10 = load i32, ptr %8, align 4
%11 = load i32, ptr %7, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %27
13: ; preds = %9
%14 = load ptr, ptr %6, align 8
%15 = load i32, ptr %8, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds ptr, ptr %14, i64 %16
%18 = load ptr, ptr %17, align 8
%19 = load ptr, ptr %5, align 8
%20 = call i32 @strcmp(ptr noundef %18, ptr noundef %19)
%21 = icmp ne i32 %20, 0
br i1 %21, label %23, label %22
22: ; preds = %13
store i32 1, ptr %4, align 4
br label %28
23: ; preds = %13
br label %24
24: ; preds = %23
%25 = load i32, ptr %8, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %8, align 4
br label %9, !llvm.loop !6
27: ; preds = %9
store i32 0, ptr %4, align 4
br label %28
28: ; preds = %27, %22
%29 = load i32, ptr %4, align 4
ret i32 %29
}
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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpoxz38y78.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @in_array(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
%9 = load i32, ptr %8, align 4
%10 = load i32, ptr %7, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %29
.lr.ph: ; preds = %3
br label %12
12: ; preds = %.lr.ph, %23
%13 = load ptr, ptr %6, align 8
%14 = load i32, ptr %8, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds ptr, ptr %13, i64 %15
%17 = load ptr, ptr %16, align 8
%18 = load ptr, ptr %5, align 8
%19 = call i32 @strcmp(ptr noundef %17, ptr noundef %18)
%20 = icmp ne i32 %19, 0
br i1 %20, label %22, label %21
21: ; preds = %12
store i32 1, ptr %4, align 4
br label %30
22: ; preds = %12
br label %23
23: ; preds = %22
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %8, align 4
%26 = load i32, ptr %8, align 4
%27 = load i32, ptr %7, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %29
29: ; preds = %._crit_edge, %3
store i32 0, ptr %4, align 4
br label %30
30: ; preds = %29, %21
%31 = load i32, ptr %4, align 4
ret i32 %31
}
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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpx6cwk5hk.c'
source_filename = "/tmp/tmpx6cwk5hk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @definiteIntegral(ptr noundef %0, i32 noundef %1, double noundef %2, double noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store double %2, ptr %7, align 8
store double %3, ptr %8, align 8
store double 0.000000e+00, ptr %9, align 8
store i32 0, ptr %10, align 4
br label %11
11: ; preds = %38, %4
%12 = load i32, ptr %10, align 4
%13 = load i32, ptr %6, align 4
%14 = icmp sle i32 %12, %13
br i1 %14, label %15, label %41
15: ; preds = %11
%16 = load i32, ptr %10, align 4
%17 = add nsw i32 %16, 1
%18 = sitofp i32 %17 to double
%19 = fdiv double 1.000000e+00, %18
%20 = load ptr, ptr %5, align 8
%21 = load i32, ptr %10, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds double, ptr %20, i64 %22
%24 = load double, ptr %23, align 8
%25 = fmul double %19, %24
%26 = load double, ptr %8, align 8
%27 = load i32, ptr %10, align 4
%28 = add nsw i32 %27, 1
%29 = call i32 @power(double noundef %26, i32 noundef %28)
%30 = load double, ptr %7, align 8
%31 = load i32, ptr %10, align 4
%32 = add nsw i32 %31, 1
%33 = call i32 @power(double noundef %30, i32 noundef %32)
%34 = sub nsw i32 %29, %33
%35 = sitofp i32 %34 to double
%36 = load double, ptr %9, align 8
%37 = call double @llvm.fmuladd.f64(double %25, double %35, double %36)
store double %37, ptr %9, align 8
br label %38
38: ; preds = %15
%39 = load i32, ptr %10, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %10, align 4
br label %11, !llvm.loop !6
41: ; preds = %11
%42 = load double, ptr %9, align 8
ret double %42
}
declare i32 @power(double noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx6cwk5hk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @definiteIntegral(ptr noundef %0, i32 noundef %1, double noundef %2, double noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store double %2, ptr %7, align 8
store double %3, ptr %8, align 8
store double 0.000000e+00, ptr %9, align 8
store i32 0, ptr %10, align 4
%11 = load i32, ptr %10, align 4
%12 = load i32, ptr %6, align 4
%13 = icmp sle i32 %11, %12
br i1 %13, label %.lr.ph, label %43
.lr.ph: ; preds = %4
br label %14
14: ; preds = %.lr.ph, %37
%15 = load i32, ptr %10, align 4
%16 = add nsw i32 %15, 1
%17 = sitofp i32 %16 to double
%18 = fdiv double 1.000000e+00, %17
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %10, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds double, ptr %19, i64 %21
%23 = load double, ptr %22, align 8
%24 = fmul double %18, %23
%25 = load double, ptr %8, align 8
%26 = load i32, ptr %10, align 4
%27 = add nsw i32 %26, 1
%28 = call i32 @power(double noundef %25, i32 noundef %27)
%29 = load double, ptr %7, align 8
%30 = load i32, ptr %10, align 4
%31 = add nsw i32 %30, 1
%32 = call i32 @power(double noundef %29, i32 noundef %31)
%33 = sub nsw i32 %28, %32
%34 = sitofp i32 %33 to double
%35 = load double, ptr %9, align 8
%36 = call double @llvm.fmuladd.f64(double %24, double %34, double %35)
store double %36, ptr %9, align 8
br label %37
37: ; preds = %14
%38 = load i32, ptr %10, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %10, align 4
%40 = load i32, ptr %10, align 4
%41 = load i32, ptr %6, align 4
%42 = icmp sle i32 %40, %41
br i1 %42, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %37
br label %43
43: ; preds = %._crit_edge, %4
%44 = load double, ptr %9, align 8
ret double %44
}
declare i32 @power(double noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpekok8g9l.c'
source_filename = "/tmp/tmpekok8g9l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"Hooray!\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
store i32 0, ptr %1, align 4
%3 = call ptr (...) @createChessBoard()
store ptr %3, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = getelementptr inbounds ptr, ptr %4, i64 1
%6 = load ptr, ptr %5, align 8
%7 = call i32 @free(ptr noundef %6)
%8 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare ptr @createChessBoard(...) #1
declare i32 @free(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/tmpekok8g9l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"Hooray!\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
store i32 0, ptr %1, align 4
%3 = call ptr (...) @createChessBoard()
store ptr %3, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = getelementptr inbounds ptr, ptr %4, i64 1
%6 = load ptr, ptr %5, align 8
%7 = call i32 @free(ptr noundef %6)
%8 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare ptr @createChessBoard(...) #1
declare i32 @free(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/tmp3f4tbfv_.c'
source_filename = "/tmp/tmp3f4tbfv_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"-ERR %s\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @err(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 (...) @flusha()
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @flusha(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3f4tbfv_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"-ERR %s\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @err(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 (...) @flusha()
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @flusha(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdhv12vkt.c'
source_filename = "/tmp/tmpdhv12vkt.c"
target datalayout = "e-m:e-p270: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.tx_Handshake.tx_handshake = private unnamed_addr constant [10 x i8] c"transmit\0A\00", align 1
@__const.tx_Handshake.rx_handshake = private unnamed_addr constant [7 x i8] c"receive", align 1
@.str = private unnamed_addr constant [14 x i8] c"data_reg: %h\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"character: %c\0A\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"parity: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @tx_Handshake() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [10 x i8], align 1
%7 = alloca [7 x i8], align 1
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %5, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %6, ptr align 1 @__const.tx_Handshake.tx_handshake, i64 10, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.tx_Handshake.rx_handshake, i64 7, i1 false)
store i32 0, ptr %8, align 4
%9 = getelementptr inbounds [10 x i8], ptr %6, i64 0, i64 0
store ptr %9, ptr %2, align 8
br label %10
10: ; preds = %26, %0
%11 = load ptr, ptr %2, align 8
%12 = load i8, ptr %11, align 1
%13 = icmp ne i8 %12, 0
br i1 %13, label %14, label %27
14: ; preds = %10
%15 = load ptr, ptr %2, align 8
%16 = load i8, ptr %15, align 1
%17 = call i32 @__builtin_stwio(ptr noundef inttoptr (i64 268439568 to ptr), i8 noundef zeroext %16)
%18 = load ptr, ptr %2, align 8
%19 = getelementptr inbounds i8, ptr %18, i32 1
store ptr %19, ptr %2, align 8
%20 = load i8, ptr %18, align 1
%21 = load i32, ptr %8, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %8, align 4
%23 = load i32, ptr %8, align 4
%24 = icmp sge i32 %23, 9
br i1 %24, label %25, label %26
25: ; preds = %14
br label %27
26: ; preds = %14
br label %10, !llvm.loop !6
27: ; preds = %25, %10
store i32 0, ptr %8, align 4
br label %28
28: ; preds = %72, %27
%29 = load i32, ptr %5, align 4
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %73
31: ; preds = %28
%32 = call i32 @__builtin_ldwio(ptr noundef inttoptr (i64 268439568 to ptr))
store i32 %32, ptr %1, align 4
%33 = load i32, ptr %1, align 4
%34 = and i32 %33, 511
%35 = trunc i32 %34 to i8
%36 = load ptr, ptr %2, align 8
store i8 %35, ptr %36, align 1
%37 = load i32, ptr %1, align 4
%38 = and i32 %37, 32768
%39 = lshr i32 %38, 15
%40 = sub i32 %39, 1
store i32 %40, ptr %4, align 4
%41 = load i32, ptr %1, align 4
%42 = call i32 @alt_up_rs232_check_parity(i32 noundef %41)
store i32 %42, ptr %3, align 4
%43 = load i32, ptr %4, align 4
%44 = icmp ne i32 %43, -1
br i1 %44, label %45, label %72
45: ; preds = %31
%46 = load i32, ptr %8, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [7 x i8], ptr %7, i64 0, i64 %47
%49 = load i8, ptr %48, align 1
%50 = sext i8 %49 to i32
%51 = load ptr, ptr %2, align 8
%52 = load i8, ptr %51, align 1
%53 = sext i8 %52 to i32
%54 = icmp eq i32 %50, %53
br i1 %54, label %55, label %62
55: ; preds = %45
%56 = load i32, ptr %8, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %8, align 4
%58 = load i32, ptr %8, align 4
%59 = icmp eq i32 %58, 7
br i1 %59, label %60, label %61
60: ; preds = %55
store i32 1, ptr %5, align 4
br label %61
61: ; preds = %60, %55
br label %63
62: ; preds = %45
store i32 0, ptr %8, align 4
br label %63
63: ; preds = %62, %61
%64 = load i32, ptr %1, align 4
%65 = call i32 @printf(ptr noundef @.str, i32 noundef %64)
%66 = load ptr, ptr %2, align 8
%67 = load i8, ptr %66, align 1
%68 = sext i8 %67 to i32
%69 = call i32 @printf(ptr noundef @.str.1, i32 noundef %68)
%70 = load i32, ptr %3, align 4
%71 = call i32 @printf(ptr noundef @.str.2, i32 noundef %70)
br label %72
72: ; preds = %63, %31
br label %28, !llvm.loop !8
73: ; preds = %28
ret i32 1
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @__builtin_stwio(ptr noundef, i8 noundef zeroext) #2
declare i32 @__builtin_ldwio(ptr noundef) #2
declare i32 @alt_up_rs232_check_parity(i32 noundef) #2
declare i32 @printf(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdhv12vkt.c"
target datalayout = "e-m:e-p270: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.tx_Handshake.tx_handshake = private unnamed_addr constant [10 x i8] c"transmit\0A\00", align 1
@__const.tx_Handshake.rx_handshake = private unnamed_addr constant [7 x i8] c"receive", align 1
@.str = private unnamed_addr constant [14 x i8] c"data_reg: %h\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"character: %c\0A\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"parity: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @tx_Handshake() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [10 x i8], align 1
%7 = alloca [7 x i8], align 1
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %5, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %6, ptr align 1 @__const.tx_Handshake.tx_handshake, i64 10, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.tx_Handshake.rx_handshake, i64 7, i1 false)
store i32 0, ptr %8, align 4
%9 = getelementptr inbounds [10 x i8], ptr %6, i64 0, i64 0
store ptr %9, ptr %2, align 8
%10 = load ptr, ptr %2, align 8
%11 = load i8, ptr %10, align 1
%12 = icmp ne i8 %11, 0
br i1 %12, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %0
br label %17
13: ; preds = %17
%14 = load ptr, ptr %2, align 8
%15 = load i8, ptr %14, align 1
%16 = icmp ne i8 %15, 0
br i1 %16, label %17, label %..loopexit_crit_edge, !llvm.loop !6
17: ; preds = %.lr.ph, %13
%18 = load ptr, ptr %2, align 8
%19 = load i8, ptr %18, align 1
%20 = call i32 @__builtin_stwio(ptr noundef inttoptr (i64 268439568 to ptr), i8 noundef zeroext %19)
%21 = load ptr, ptr %2, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %2, align 8
%23 = load i8, ptr %21, align 1
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %8, align 4
%26 = load i32, ptr %8, align 4
%27 = icmp sge i32 %26, 9
br i1 %27, label %28, label %13
28: ; preds = %17
br label %29
..loopexit_crit_edge: ; preds = %13
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %0
br label %29
29: ; preds = %.loopexit, %28
store i32 0, ptr %8, align 4
%30 = load i32, ptr %5, align 4
%31 = icmp eq i32 %30, 0
br i1 %31, label %.lr.ph1, label %76
.lr.ph1: ; preds = %29
br label %32
32: ; preds = %.lr.ph1, %73
%33 = call i32 @__builtin_ldwio(ptr noundef inttoptr (i64 268439568 to ptr))
store i32 %33, ptr %1, align 4
%34 = load i32, ptr %1, align 4
%35 = and i32 %34, 511
%36 = trunc i32 %35 to i8
%37 = load ptr, ptr %2, align 8
store i8 %36, ptr %37, align 1
%38 = load i32, ptr %1, align 4
%39 = and i32 %38, 32768
%40 = lshr i32 %39, 15
%41 = sub i32 %40, 1
store i32 %41, ptr %4, align 4
%42 = load i32, ptr %1, align 4
%43 = call i32 @alt_up_rs232_check_parity(i32 noundef %42)
store i32 %43, ptr %3, align 4
%44 = load i32, ptr %4, align 4
%45 = icmp ne i32 %44, -1
br i1 %45, label %46, label %73
46: ; preds = %32
%47 = load i32, ptr %8, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [7 x i8], ptr %7, i64 0, i64 %48
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = load ptr, ptr %2, align 8
%53 = load i8, ptr %52, align 1
%54 = sext i8 %53 to i32
%55 = icmp eq i32 %51, %54
br i1 %55, label %56, label %63
56: ; preds = %46
%57 = load i32, ptr %8, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %8, align 4
%59 = load i32, ptr %8, align 4
%60 = icmp eq i32 %59, 7
br i1 %60, label %61, label %62
61: ; preds = %56
store i32 1, ptr %5, align 4
br label %62
62: ; preds = %61, %56
br label %64
63: ; preds = %46
store i32 0, ptr %8, align 4
br label %64
64: ; preds = %63, %62
%65 = load i32, ptr %1, align 4
%66 = call i32 @printf(ptr noundef @.str, i32 noundef %65)
%67 = load ptr, ptr %2, align 8
%68 = load i8, ptr %67, align 1
%69 = sext i8 %68 to i32
%70 = call i32 @printf(ptr noundef @.str.1, i32 noundef %69)
%71 = load i32, ptr %3, align 4
%72 = call i32 @printf(ptr noundef @.str.2, i32 noundef %71)
br label %73
73: ; preds = %64, %32
%74 = load i32, ptr %5, align 4
%75 = icmp eq i32 %74, 0
br i1 %75, label %32, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %73
br label %76
76: ; preds = %._crit_edge, %29
ret i32 1
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @__builtin_stwio(ptr noundef, i8 noundef zeroext) #2
declare i32 @__builtin_ldwio(ptr noundef) #2
declare i32 @alt_up_rs232_check_parity(i32 noundef) #2
declare i32 @printf(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpwt8ud9so.c'
source_filename = "/tmp/tmpwt8ud9so.c"
target datalayout = "e-m:e-p270: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 [42 x i8] c"Usage: %s <database file> <select query>\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"Can't open database: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [425 x i8] c"select r.Airline_ID, r.source_airport, r.destination_airport from routes r, airlines a \09where r.airline_ID = a.airline_ID and a.Active = 'Y'\09except\09select r1.Airline_ID,r1.source_airport, r1.destination_airport\09from routes r1, routes r2, airlines a\09where r1.Airline_ID = r2.Airline_ID and r1.airline_ID = a.airline_ID and r1.Destination_airport_ID = r2.Source_airport_ID and r1.Source_airport_ID = r2.Destination_airport_ID;\00", align 1
@SQLITE_OK = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [24 x i8] c"Preparation failed: %s\0A\00", align 1
@SQLITE_ROW = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [4 x i8] c"%s|\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.6 = 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 ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%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 = load i32, ptr %4, align 4
%12 = icmp ne i32 %11, 2
br i1 %12, label %13, label %19
13: ; preds = %2
%14 = load i32, ptr @stderr, align 4
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 0
%17 = load ptr, ptr %16, align 8
%18 = call i32 @fprintf(i32 noundef %14, ptr noundef @.str, ptr noundef %17)
store i32 1, ptr %3, align 4
br label %77
19: ; preds = %2
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = call i32 @sqlite3_open(ptr noundef %22, ptr noundef %6)
store i32 %23, ptr %8, align 4
%24 = load i32, ptr %8, align 4
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %33
26: ; preds = %19
%27 = load i32, ptr @stderr, align 4
%28 = load ptr, ptr %6, align 8
%29 = call ptr @sqlite3_errmsg(ptr noundef %28)
%30 = call i32 @fprintf(i32 noundef %27, ptr noundef @.str.1, ptr noundef %29)
%31 = load ptr, ptr %6, align 8
%32 = call i32 @sqlite3_close(ptr noundef %31)
store i32 1, ptr %3, align 4
br label %77
33: ; preds = %19
store ptr @.str.2, ptr %9, align 8
%34 = load ptr, ptr %6, align 8
%35 = load ptr, ptr %9, align 8
%36 = call i32 @sqlite3_prepare_v2(ptr noundef %34, ptr noundef %35, i32 noundef -1, ptr noundef %7, i32 noundef 0)
store i32 %36, ptr %8, align 4
%37 = load i32, ptr %8, align 4
%38 = load i32, ptr @SQLITE_OK, align 4
%39 = icmp ne i32 %37, %38
br i1 %39, label %40, label %47
40: ; preds = %33
%41 = load i32, ptr @stderr, align 4
%42 = load ptr, ptr %6, align 8
%43 = call ptr @sqlite3_errmsg(ptr noundef %42)
%44 = call i32 @fprintf(i32 noundef %41, ptr noundef @.str.3, ptr noundef %43)
%45 = load ptr, ptr %6, align 8
%46 = call i32 @sqlite3_close(ptr noundef %45)
store i32 1, ptr %3, align 4
br label %77
47: ; preds = %33
br label %48
48: ; preds = %68, %47
%49 = load ptr, ptr %7, align 8
%50 = call i32 @sqlite3_step(ptr noundef %49)
store i32 %50, ptr %8, align 4
%51 = load i32, ptr @SQLITE_ROW, align 4
%52 = icmp eq i32 %50, %51
br i1 %52, label %53, label %74
53: ; preds = %48
store i32 0, ptr %10, align 4
br label %54
54: ; preds = %65, %53
%55 = load i32, ptr %10, align 4
%56 = load ptr, ptr %7, align 8
%57 = call i32 @sqlite3_column_count(ptr noundef %56)
%58 = sub nsw i32 %57, 1
%59 = icmp slt i32 %55, %58
br i1 %59, label %60, label %68
60: ; preds = %54
%61 = load ptr, ptr %7, align 8
%62 = load i32, ptr %10, align 4
%63 = call ptr @sqlite3_column_text(ptr noundef %61, i32 noundef %62)
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %63)
br label %65
65: ; preds = %60
%66 = load i32, ptr %10, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %10, align 4
br label %54, !llvm.loop !6
68: ; preds = %54
%69 = load ptr, ptr %7, align 8
%70 = load i32, ptr %10, align 4
%71 = call ptr @sqlite3_column_text(ptr noundef %69, i32 noundef %70)
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %71)
%73 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %48, !llvm.loop !8
74: ; preds = %48
%75 = load ptr, ptr %7, align 8
%76 = call i32 @sqlite3_finalize(ptr noundef %75)
br label %77
77: ; preds = %74, %40, %26, %13
%78 = load i32, ptr %3, align 4
ret i32 %78
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @sqlite3_open(ptr noundef, ptr noundef) #1
declare ptr @sqlite3_errmsg(ptr noundef) #1
declare i32 @sqlite3_close(ptr noundef) #1
declare i32 @sqlite3_prepare_v2(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @sqlite3_step(ptr noundef) #1
declare i32 @sqlite3_column_count(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @sqlite3_column_text(ptr noundef, i32 noundef) #1
declare i32 @sqlite3_finalize(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpwt8ud9so.c"
target datalayout = "e-m:e-p270: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 [42 x i8] c"Usage: %s <database file> <select query>\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"Can't open database: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [425 x i8] c"select r.Airline_ID, r.source_airport, r.destination_airport from routes r, airlines a \09where r.airline_ID = a.airline_ID and a.Active = 'Y'\09except\09select r1.Airline_ID,r1.source_airport, r1.destination_airport\09from routes r1, routes r2, airlines a\09where r1.Airline_ID = r2.Airline_ID and r1.airline_ID = a.airline_ID and r1.Destination_airport_ID = r2.Source_airport_ID and r1.Source_airport_ID = r2.Destination_airport_ID;\00", align 1
@SQLITE_OK = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [24 x i8] c"Preparation failed: %s\0A\00", align 1
@SQLITE_ROW = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [4 x i8] c"%s|\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.6 = 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 ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%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 = load i32, ptr %4, align 4
%12 = icmp ne i32 %11, 2
br i1 %12, label %13, label %19
13: ; preds = %2
%14 = load i32, ptr @stderr, align 4
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 0
%17 = load ptr, ptr %16, align 8
%18 = call i32 @fprintf(i32 noundef %14, ptr noundef @.str, ptr noundef %17)
store i32 1, ptr %3, align 4
br label %84
19: ; preds = %2
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = call i32 @sqlite3_open(ptr noundef %22, ptr noundef %6)
store i32 %23, ptr %8, align 4
%24 = load i32, ptr %8, align 4
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %33
26: ; preds = %19
%27 = load i32, ptr @stderr, align 4
%28 = load ptr, ptr %6, align 8
%29 = call ptr @sqlite3_errmsg(ptr noundef %28)
%30 = call i32 @fprintf(i32 noundef %27, ptr noundef @.str.1, ptr noundef %29)
%31 = load ptr, ptr %6, align 8
%32 = call i32 @sqlite3_close(ptr noundef %31)
store i32 1, ptr %3, align 4
br label %84
33: ; preds = %19
store ptr @.str.2, ptr %9, align 8
%34 = load ptr, ptr %6, align 8
%35 = load ptr, ptr %9, align 8
%36 = call i32 @sqlite3_prepare_v2(ptr noundef %34, ptr noundef %35, i32 noundef -1, ptr noundef %7, i32 noundef 0)
store i32 %36, ptr %8, align 4
%37 = load i32, ptr %8, align 4
%38 = load i32, ptr @SQLITE_OK, align 4
%39 = icmp ne i32 %37, %38
br i1 %39, label %40, label %47
40: ; preds = %33
%41 = load i32, ptr @stderr, align 4
%42 = load ptr, ptr %6, align 8
%43 = call ptr @sqlite3_errmsg(ptr noundef %42)
%44 = call i32 @fprintf(i32 noundef %41, ptr noundef @.str.3, ptr noundef %43)
%45 = load ptr, ptr %6, align 8
%46 = call i32 @sqlite3_close(ptr noundef %45)
store i32 1, ptr %3, align 4
br label %84
47: ; preds = %33
%48 = load ptr, ptr %7, align 8
%49 = call i32 @sqlite3_step(ptr noundef %48)
store i32 %49, ptr %8, align 4
%50 = load i32, ptr @SQLITE_ROW, align 4
%51 = icmp eq i32 %49, %50
br i1 %51, label %.lr.ph2, label %81
.lr.ph2: ; preds = %47
br label %52
52: ; preds = %.lr.ph2, %71
store i32 0, ptr %10, align 4
%53 = load i32, ptr %10, align 4
%54 = load ptr, ptr %7, align 8
%55 = call i32 @sqlite3_column_count(ptr noundef %54)
%56 = sub nsw i32 %55, 1
%57 = icmp slt i32 %53, %56
br i1 %57, label %.lr.ph, label %71
.lr.ph: ; preds = %52
br label %58
58: ; preds = %.lr.ph, %63
%59 = load ptr, ptr %7, align 8
%60 = load i32, ptr %10, align 4
%61 = call ptr @sqlite3_column_text(ptr noundef %59, i32 noundef %60)
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %61)
br label %63
63: ; preds = %58
%64 = load i32, ptr %10, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %10, align 4
%66 = load i32, ptr %10, align 4
%67 = load ptr, ptr %7, align 8
%68 = call i32 @sqlite3_column_count(ptr noundef %67)
%69 = sub nsw i32 %68, 1
%70 = icmp slt i32 %66, %69
br i1 %70, label %58, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %63
br label %71
71: ; preds = %._crit_edge, %52
%72 = load ptr, ptr %7, align 8
%73 = load i32, ptr %10, align 4
%74 = call ptr @sqlite3_column_text(ptr noundef %72, i32 noundef %73)
%75 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %74)
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%77 = load ptr, ptr %7, align 8
%78 = call i32 @sqlite3_step(ptr noundef %77)
store i32 %78, ptr %8, align 4
%79 = load i32, ptr @SQLITE_ROW, align 4
%80 = icmp eq i32 %78, %79
br i1 %80, label %52, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %71
br label %81
81: ; preds = %._crit_edge3, %47
%82 = load ptr, ptr %7, align 8
%83 = call i32 @sqlite3_finalize(ptr noundef %82)
br label %84
84: ; preds = %81, %40, %26, %13
%85 = load i32, ptr %3, align 4
ret i32 %85
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @sqlite3_open(ptr noundef, ptr noundef) #1
declare ptr @sqlite3_errmsg(ptr noundef) #1
declare i32 @sqlite3_close(ptr noundef) #1
declare i32 @sqlite3_prepare_v2(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @sqlite3_step(ptr noundef) #1
declare i32 @sqlite3_column_count(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @sqlite3_column_text(ptr noundef, i32 noundef) #1
declare i32 @sqlite3_finalize(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp06ixvkro.c'
source_filename = "/tmp/tmp06ixvkro.c"
target datalayout = "e-m:e-p270: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/tmp06ixvkro.c"
target datalayout = "e-m:e-p270: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/tmp0693wvgz.c'
source_filename = "/tmp/tmp0693wvgz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @socket_handler_get_connection(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 @accept(i32 noundef %5, ptr noundef null, ptr noundef null)
store i32 %6, ptr %4, align 4
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 -1, ptr %2, align 4
br label %11
9: ; preds = %1
%10 = load i32, ptr %4, align 4
store i32 %10, ptr %2, align 4
br label %11
11: ; preds = %9, %8
%12 = load i32, ptr %2, align 4
ret i32 %12
}
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0693wvgz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @socket_handler_get_connection(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 @accept(i32 noundef %5, ptr noundef null, ptr noundef null)
store i32 %6, ptr %4, align 4
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 -1, ptr %2, align 4
br label %11
9: ; preds = %1
%10 = load i32, ptr %4, align 4
store i32 %10, ptr %2, align 4
br label %11
11: ; preds = %9, %8
%12 = load i32, ptr %2, align 4
ret i32 %12
}
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbyio8ndj.c'
source_filename = "/tmp/tmpbyio8ndj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test_36(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp eq i32 %3, 42
%5 = zext i1 %4 to i32
%6 = call i32 @__analyzer_eval(i32 noundef %5)
%7 = call i32 @write_through_ptr(ptr noundef %2, i32 noundef 42)
%8 = load i32, ptr %2, align 4
%9 = icmp eq i32 %8, 42
%10 = zext i1 %9 to i32
%11 = call i32 @__analyzer_eval(i32 noundef %10)
ret void
}
declare i32 @__analyzer_eval(i32 noundef) #1
declare i32 @write_through_ptr(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/tmpbyio8ndj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test_36(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp eq i32 %3, 42
%5 = zext i1 %4 to i32
%6 = call i32 @__analyzer_eval(i32 noundef %5)
%7 = call i32 @write_through_ptr(ptr noundef %2, i32 noundef 42)
%8 = load i32, ptr %2, align 4
%9 = icmp eq i32 %8, 42
%10 = zext i1 %9 to i32
%11 = call i32 @__analyzer_eval(i32 noundef %10)
ret void
}
declare i32 @__analyzer_eval(i32 noundef) #1
declare i32 @write_through_ptr(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/tmplc_aqqg2.c'
source_filename = "/tmp/tmplc_aqqg2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"wb\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"Cannot open output file %s.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @__p3dTmpWriteRaw8(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
%13 = load ptr, ptr %8, align 8
%14 = call ptr @fopen(ptr noundef %13, ptr noundef @.str)
store ptr %14, ptr %12, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %19
16: ; preds = %5
%17 = load ptr, ptr %8, align 8
%18 = call i32 @printf(ptr noundef @.str.1, ptr noundef %17)
store ptr null, ptr %7, align 8
store i32 0, ptr %6, align 4
br label %30
19: ; preds = %5
%20 = load ptr, ptr %7, align 8
%21 = load i32, ptr %9, align 4
%22 = load i32, ptr %10, align 4
%23 = mul nsw i32 %21, %22
%24 = load i32, ptr %11, align 4
%25 = mul nsw i32 %23, %24
%26 = load ptr, ptr %12, align 8
%27 = call i32 @fwrite(ptr noundef %20, i32 noundef 1, i32 noundef %25, ptr noundef %26)
%28 = load ptr, ptr %12, align 8
%29 = call i32 @fclose(ptr noundef %28)
store i32 2, ptr %6, align 4
br label %30
30: ; preds = %19, %16
%31 = load i32, ptr %6, align 4
ret i32 %31
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplc_aqqg2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"wb\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"Cannot open output file %s.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @__p3dTmpWriteRaw8(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
%13 = load ptr, ptr %8, align 8
%14 = call ptr @fopen(ptr noundef %13, ptr noundef @.str)
store ptr %14, ptr %12, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %19
16: ; preds = %5
%17 = load ptr, ptr %8, align 8
%18 = call i32 @printf(ptr noundef @.str.1, ptr noundef %17)
store ptr null, ptr %7, align 8
store i32 0, ptr %6, align 4
br label %30
19: ; preds = %5
%20 = load ptr, ptr %7, align 8
%21 = load i32, ptr %9, align 4
%22 = load i32, ptr %10, align 4
%23 = mul nsw i32 %21, %22
%24 = load i32, ptr %11, align 4
%25 = mul nsw i32 %23, %24
%26 = load ptr, ptr %12, align 8
%27 = call i32 @fwrite(ptr noundef %20, i32 noundef 1, i32 noundef %25, ptr noundef %26)
%28 = load ptr, ptr %12, align 8
%29 = call i32 @fclose(ptr noundef %28)
store i32 2, ptr %6, align 4
br label %30
30: ; preds = %19, %16
%31 = load i32, ptr %6, align 4
ret i32 %31
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppo1yx9ty.c'
source_filename = "/tmp/tmppo1yx9ty.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @quoted(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%8 = load ptr, ptr %2, align 8
%9 = call i32 @strlen(ptr noundef %8)
store i32 %9, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = mul nsw i32 %10, 2
%12 = add nsw i32 %11, 3
%13 = call ptr @calloc(i32 noundef %12, i32 noundef 1)
store ptr %13, ptr %6, align 8
%14 = load ptr, ptr %6, align 8
store ptr %14, ptr %7, align 8
%15 = load ptr, ptr %7, align 8
%16 = getelementptr inbounds i8, ptr %15, i32 1
store ptr %16, ptr %7, align 8
store i8 34, ptr %15, align 1
store i32 0, ptr %5, align 4
store i32 0, ptr %3, align 4
br label %17
17: ; preds = %63, %1
%18 = load i32, ptr %3, align 4
%19 = load i32, ptr %4, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %66
21: ; preds = %17
%22 = load ptr, ptr %2, align 8
%23 = load i32, ptr %3, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %22, i64 %24
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 92
br i1 %28, label %29, label %32
29: ; preds = %21
%30 = load i32, ptr %5, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %5, align 4
br label %55
32: ; preds = %21
%33 = load ptr, ptr %2, align 8
%34 = load i32, ptr %3, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = icmp eq i32 %38, 34
br i1 %39, label %40, label %53
40: ; preds = %32
br label %41
41: ; preds = %47, %40
%42 = load i32, ptr %5, align 4
%43 = icmp sgt i32 %42, 0
br i1 %43, label %44, label %50
44: ; preds = %41
%45 = load ptr, ptr %7, align 8
%46 = getelementptr inbounds i8, ptr %45, i32 1
store ptr %46, ptr %7, align 8
store i8 92, ptr %45, align 1
br label %47
47: ; preds = %44
%48 = load i32, ptr %5, align 4
%49 = add nsw i32 %48, -1
store i32 %49, ptr %5, align 4
br label %41, !llvm.loop !6
50: ; preds = %41
%51 = load ptr, ptr %7, align 8
%52 = getelementptr inbounds i8, ptr %51, i32 1
store ptr %52, ptr %7, align 8
store i8 92, ptr %51, align 1
br label %54
53: ; preds = %32
store i32 0, ptr %5, align 4
br label %54
54: ; preds = %53, %50
br label %55
55: ; preds = %54, %29
%56 = load ptr, ptr %2, align 8
%57 = load i32, ptr %3, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i8, ptr %56, i64 %58
%60 = load i8, ptr %59, align 1
%61 = load ptr, ptr %7, align 8
%62 = getelementptr inbounds i8, ptr %61, i32 1
store ptr %62, ptr %7, align 8
store i8 %60, ptr %61, align 1
br label %63
63: ; preds = %55
%64 = load i32, ptr %3, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %3, align 4
br label %17, !llvm.loop !8
66: ; preds = %17
br label %67
67: ; preds = %73, %66
%68 = load i32, ptr %5, align 4
%69 = icmp sgt i32 %68, 0
br i1 %69, label %70, label %76
70: ; preds = %67
%71 = load ptr, ptr %7, align 8
%72 = getelementptr inbounds i8, ptr %71, i32 1
store ptr %72, ptr %7, align 8
store i8 92, ptr %71, align 1
br label %73
73: ; preds = %70
%74 = load i32, ptr %5, align 4
%75 = add nsw i32 %74, -1
store i32 %75, ptr %5, align 4
br label %67, !llvm.loop !9
76: ; preds = %67
%77 = load ptr, ptr %7, align 8
%78 = getelementptr inbounds i8, ptr %77, i32 1
store ptr %78, ptr %7, align 8
store i8 34, ptr %77, align 1
%79 = load ptr, ptr %7, align 8
%80 = getelementptr inbounds i8, ptr %79, i32 1
store ptr %80, ptr %7, align 8
store i8 0, ptr %79, align 1
%81 = load ptr, ptr %6, align 8
ret ptr %81
}
declare i32 @strlen(ptr noundef) #1
declare ptr @calloc(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppo1yx9ty.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @quoted(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%8 = load ptr, ptr %2, align 8
%9 = call i32 @strlen(ptr noundef %8)
store i32 %9, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = mul nsw i32 %10, 2
%12 = add nsw i32 %11, 3
%13 = call ptr @calloc(i32 noundef %12, i32 noundef 1)
store ptr %13, ptr %6, align 8
%14 = load ptr, ptr %6, align 8
store ptr %14, ptr %7, align 8
%15 = load ptr, ptr %7, align 8
%16 = getelementptr inbounds i8, ptr %15, i32 1
store ptr %16, ptr %7, align 8
store i8 34, ptr %15, align 1
store i32 0, ptr %5, align 4
store i32 0, ptr %3, align 4
%17 = load i32, ptr %3, align 4
%18 = load i32, ptr %4, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %.lr.ph2, label %69
.lr.ph2: ; preds = %1
br label %20
20: ; preds = %.lr.ph2, %63
%21 = load ptr, ptr %2, align 8
%22 = load i32, ptr %3, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %21, i64 %23
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 92
br i1 %27, label %28, label %31
28: ; preds = %20
%29 = load i32, ptr %5, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %5, align 4
br label %55
31: ; preds = %20
%32 = load ptr, ptr %2, align 8
%33 = load i32, ptr %3, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 34
br i1 %38, label %39, label %53
39: ; preds = %31
%40 = load i32, ptr %5, align 4
%41 = icmp sgt i32 %40, 0
br i1 %41, label %.lr.ph, label %50
.lr.ph: ; preds = %39
br label %42
42: ; preds = %.lr.ph, %45
%43 = load ptr, ptr %7, align 8
%44 = getelementptr inbounds i8, ptr %43, i32 1
store ptr %44, ptr %7, align 8
store i8 92, ptr %43, align 1
br label %45
45: ; preds = %42
%46 = load i32, ptr %5, align 4
%47 = add nsw i32 %46, -1
store i32 %47, ptr %5, align 4
%48 = load i32, ptr %5, align 4
%49 = icmp sgt i32 %48, 0
br i1 %49, label %42, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %45
br label %50
50: ; preds = %._crit_edge, %39
%51 = load ptr, ptr %7, align 8
%52 = getelementptr inbounds i8, ptr %51, i32 1
store ptr %52, ptr %7, align 8
store i8 92, ptr %51, align 1
br label %54
53: ; preds = %31
store i32 0, ptr %5, align 4
br label %54
54: ; preds = %53, %50
br label %55
55: ; preds = %54, %28
%56 = load ptr, ptr %2, align 8
%57 = load i32, ptr %3, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i8, ptr %56, i64 %58
%60 = load i8, ptr %59, align 1
%61 = load ptr, ptr %7, align 8
%62 = getelementptr inbounds i8, ptr %61, i32 1
store ptr %62, ptr %7, align 8
store i8 %60, ptr %61, align 1
br label %63
63: ; preds = %55
%64 = load i32, ptr %3, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %3, align 4
%66 = load i32, ptr %3, align 4
%67 = load i32, ptr %4, align 4
%68 = icmp slt i32 %66, %67
br i1 %68, label %20, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %63
br label %69
69: ; preds = %._crit_edge3, %1
%70 = load i32, ptr %5, align 4
%71 = icmp sgt i32 %70, 0
br i1 %71, label %.lr.ph5, label %80
.lr.ph5: ; preds = %69
br label %72
72: ; preds = %.lr.ph5, %75
%73 = load ptr, ptr %7, align 8
%74 = getelementptr inbounds i8, ptr %73, i32 1
store ptr %74, ptr %7, align 8
store i8 92, ptr %73, align 1
br label %75
75: ; preds = %72
%76 = load i32, ptr %5, align 4
%77 = add nsw i32 %76, -1
store i32 %77, ptr %5, align 4
%78 = load i32, ptr %5, align 4
%79 = icmp sgt i32 %78, 0
br i1 %79, label %72, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %75
br label %80
80: ; preds = %._crit_edge6, %69
%81 = load ptr, ptr %7, align 8
%82 = getelementptr inbounds i8, ptr %81, i32 1
store ptr %82, ptr %7, align 8
store i8 34, ptr %81, align 1
%83 = load ptr, ptr %7, align 8
%84 = getelementptr inbounds i8, ptr %83, i32 1
store ptr %84, ptr %7, align 8
store i8 0, ptr %83, align 1
%85 = load ptr, ptr %6, align 8
ret ptr %85
}
declare i32 @strlen(ptr noundef) #1
declare ptr @calloc(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp0oczkzx1.c'
source_filename = "/tmp/tmp0oczkzx1.c"
target datalayout = "e-m:e-p270: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/tmp0oczkzx1.c"
target datalayout = "e-m:e-p270: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/tmp7cbed836.c'
source_filename = "/tmp/tmp7cbed836.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"\\\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\22\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"\\%s\\%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Info_SetValueForStarKey(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca [1024 x i8], align 16
%10 = alloca ptr, align 8
%11 = 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
store i32 %3, ptr %8, align 4
%12 = load ptr, ptr %6, align 8
%13 = call i64 @strstr(ptr noundef %12, ptr noundef @.str)
%14 = icmp ne i64 %13, 0
br i1 %14, label %19, label %15
15: ; preds = %4
%16 = load ptr, ptr %7, align 8
%17 = call i64 @strstr(ptr noundef %16, ptr noundef @.str)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %15, %4
br label %110
20: ; preds = %15
%21 = load ptr, ptr %6, align 8
%22 = call i64 @strstr(ptr noundef %21, ptr noundef @.str.1)
%23 = icmp ne i64 %22, 0
br i1 %23, label %28, label %24
24: ; preds = %20
%25 = load ptr, ptr %7, align 8
%26 = call i64 @strstr(ptr noundef %25, ptr noundef @.str.1)
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %24, %20
br label %110
29: ; preds = %24
%30 = load ptr, ptr %6, align 8
%31 = call i32 @strlen(ptr noundef %30)
%32 = icmp sge i32 %31, 64
br i1 %32, label %37, label %33
33: ; preds = %29
%34 = load ptr, ptr %7, align 8
%35 = call i32 @strlen(ptr noundef %34)
%36 = icmp sge i32 %35, 64
br i1 %36, label %37, label %38
37: ; preds = %33, %29
br label %110
38: ; preds = %33
%39 = load ptr, ptr %5, align 8
%40 = load ptr, ptr %6, align 8
%41 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%42 = call ptr @Info_ValueForKey(ptr noundef %39, ptr noundef %40, ptr noundef %41, i32 noundef 1024)
store ptr %42, ptr %10, align 8
%43 = load i8, ptr %42, align 1
%44 = icmp ne i8 %43, 0
br i1 %44, label %45, label %59
45: ; preds = %38
%46 = load ptr, ptr %7, align 8
%47 = call i32 @strlen(ptr noundef %46)
%48 = load ptr, ptr %10, align 8
%49 = call i32 @strlen(ptr noundef %48)
%50 = sub nsw i32 %47, %49
%51 = load ptr, ptr %5, align 8
%52 = call i32 @strlen(ptr noundef %51)
%53 = add nsw i32 %50, %52
%54 = add nsw i32 %53, 1
%55 = load i32, ptr %8, align 4
%56 = icmp sgt i32 %54, %55
br i1 %56, label %57, label %58
57: ; preds = %45
br label %110
58: ; preds = %45
br label %59
59: ; preds = %58, %38
%60 = load ptr, ptr %5, align 8
%61 = load ptr, ptr %6, align 8
%62 = call i32 @Info_RemoveKey(ptr noundef %60, ptr noundef %61)
%63 = load ptr, ptr %7, align 8
%64 = icmp ne ptr %63, null
br i1 %64, label %65, label %69
65: ; preds = %59
%66 = load ptr, ptr %7, align 8
%67 = call i32 @strlen(ptr noundef %66)
%68 = icmp ne i32 %67, 0
br i1 %68, label %70, label %69
69: ; preds = %65, %59
br label %110
70: ; preds = %65
%71 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%72 = load ptr, ptr %6, align 8
%73 = load ptr, ptr %7, align 8
%74 = call i32 @snprintf(ptr noundef %71, i32 noundef 1024, ptr noundef @.str.2, ptr noundef %72, ptr noundef %73)
%75 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%76 = call i32 @strlen(ptr noundef %75)
%77 = load ptr, ptr %5, align 8
%78 = call i32 @strlen(ptr noundef %77)
%79 = add nsw i32 %76, %78
%80 = add nsw i32 %79, 1
%81 = load i32, ptr %8, align 4
%82 = icmp sgt i32 %80, %81
br i1 %82, label %83, label %84
83: ; preds = %70
br label %110
84: ; preds = %70
%85 = load ptr, ptr %5, align 8
%86 = call i32 @strlen(ptr noundef %85)
%87 = load ptr, ptr %5, align 8
%88 = sext i32 %86 to i64
%89 = getelementptr inbounds i8, ptr %87, i64 %88
store ptr %89, ptr %5, align 8
%90 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
store ptr %90, ptr %10, align 8
br label %91
91: ; preds = %107, %84
%92 = load ptr, ptr %10, align 8
%93 = load i8, ptr %92, align 1
%94 = icmp ne i8 %93, 0
br i1 %94, label %95, label %108
95: ; preds = %91
%96 = load ptr, ptr %10, align 8
%97 = getelementptr inbounds i8, ptr %96, i32 1
store ptr %97, ptr %10, align 8
%98 = load i8, ptr %96, align 1
%99 = zext i8 %98 to i32
store i32 %99, ptr %11, align 4
%100 = load i32, ptr %11, align 4
%101 = icmp sgt i32 %100, 13
br i1 %101, label %102, label %107
102: ; preds = %95
%103 = load i32, ptr %11, align 4
%104 = trunc i32 %103 to i8
%105 = load ptr, ptr %5, align 8
%106 = getelementptr inbounds i8, ptr %105, i32 1
store ptr %106, ptr %5, align 8
store i8 %104, ptr %105, align 1
br label %107
107: ; preds = %102, %95
br label %91, !llvm.loop !6
108: ; preds = %91
%109 = load ptr, ptr %5, align 8
store i8 0, ptr %109, align 1
br label %110
110: ; preds = %108, %83, %69, %57, %37, %28, %19
ret void
}
declare i64 @strstr(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @Info_ValueForKey(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @Info_RemoveKey(ptr noundef, ptr noundef) #1
declare i32 @snprintf(ptr noundef, 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7cbed836.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"\\\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\22\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"\\%s\\%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Info_SetValueForStarKey(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca [1024 x i8], align 16
%10 = alloca ptr, align 8
%11 = 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
store i32 %3, ptr %8, align 4
%12 = load ptr, ptr %6, align 8
%13 = call i64 @strstr(ptr noundef %12, ptr noundef @.str)
%14 = icmp ne i64 %13, 0
br i1 %14, label %19, label %15
15: ; preds = %4
%16 = load ptr, ptr %7, align 8
%17 = call i64 @strstr(ptr noundef %16, ptr noundef @.str)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %15, %4
br label %112
20: ; preds = %15
%21 = load ptr, ptr %6, align 8
%22 = call i64 @strstr(ptr noundef %21, ptr noundef @.str.1)
%23 = icmp ne i64 %22, 0
br i1 %23, label %28, label %24
24: ; preds = %20
%25 = load ptr, ptr %7, align 8
%26 = call i64 @strstr(ptr noundef %25, ptr noundef @.str.1)
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %24, %20
br label %112
29: ; preds = %24
%30 = load ptr, ptr %6, align 8
%31 = call i32 @strlen(ptr noundef %30)
%32 = icmp sge i32 %31, 64
br i1 %32, label %37, label %33
33: ; preds = %29
%34 = load ptr, ptr %7, align 8
%35 = call i32 @strlen(ptr noundef %34)
%36 = icmp sge i32 %35, 64
br i1 %36, label %37, label %38
37: ; preds = %33, %29
br label %112
38: ; preds = %33
%39 = load ptr, ptr %5, align 8
%40 = load ptr, ptr %6, align 8
%41 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%42 = call ptr @Info_ValueForKey(ptr noundef %39, ptr noundef %40, ptr noundef %41, i32 noundef 1024)
store ptr %42, ptr %10, align 8
%43 = load i8, ptr %42, align 1
%44 = icmp ne i8 %43, 0
br i1 %44, label %45, label %59
45: ; preds = %38
%46 = load ptr, ptr %7, align 8
%47 = call i32 @strlen(ptr noundef %46)
%48 = load ptr, ptr %10, align 8
%49 = call i32 @strlen(ptr noundef %48)
%50 = sub nsw i32 %47, %49
%51 = load ptr, ptr %5, align 8
%52 = call i32 @strlen(ptr noundef %51)
%53 = add nsw i32 %50, %52
%54 = add nsw i32 %53, 1
%55 = load i32, ptr %8, align 4
%56 = icmp sgt i32 %54, %55
br i1 %56, label %57, label %58
57: ; preds = %45
br label %112
58: ; preds = %45
br label %59
59: ; preds = %58, %38
%60 = load ptr, ptr %5, align 8
%61 = load ptr, ptr %6, align 8
%62 = call i32 @Info_RemoveKey(ptr noundef %60, ptr noundef %61)
%63 = load ptr, ptr %7, align 8
%64 = icmp ne ptr %63, null
br i1 %64, label %65, label %69
65: ; preds = %59
%66 = load ptr, ptr %7, align 8
%67 = call i32 @strlen(ptr noundef %66)
%68 = icmp ne i32 %67, 0
br i1 %68, label %70, label %69
69: ; preds = %65, %59
br label %112
70: ; preds = %65
%71 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%72 = load ptr, ptr %6, align 8
%73 = load ptr, ptr %7, align 8
%74 = call i32 @snprintf(ptr noundef %71, i32 noundef 1024, ptr noundef @.str.2, ptr noundef %72, ptr noundef %73)
%75 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%76 = call i32 @strlen(ptr noundef %75)
%77 = load ptr, ptr %5, align 8
%78 = call i32 @strlen(ptr noundef %77)
%79 = add nsw i32 %76, %78
%80 = add nsw i32 %79, 1
%81 = load i32, ptr %8, align 4
%82 = icmp sgt i32 %80, %81
br i1 %82, label %83, label %84
83: ; preds = %70
br label %112
84: ; preds = %70
%85 = load ptr, ptr %5, align 8
%86 = call i32 @strlen(ptr noundef %85)
%87 = load ptr, ptr %5, align 8
%88 = sext i32 %86 to i64
%89 = getelementptr inbounds i8, ptr %87, i64 %88
store ptr %89, ptr %5, align 8
%90 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
store ptr %90, ptr %10, align 8
%91 = load ptr, ptr %10, align 8
%92 = load i8, ptr %91, align 1
%93 = icmp ne i8 %92, 0
br i1 %93, label %.lr.ph, label %110
.lr.ph: ; preds = %84
br label %94
94: ; preds = %.lr.ph, %106
%95 = load ptr, ptr %10, align 8
%96 = getelementptr inbounds i8, ptr %95, i32 1
store ptr %96, ptr %10, align 8
%97 = load i8, ptr %95, align 1
%98 = zext i8 %97 to i32
store i32 %98, ptr %11, align 4
%99 = load i32, ptr %11, align 4
%100 = icmp sgt i32 %99, 13
br i1 %100, label %101, label %106
101: ; preds = %94
%102 = load i32, ptr %11, align 4
%103 = trunc i32 %102 to i8
%104 = load ptr, ptr %5, align 8
%105 = getelementptr inbounds i8, ptr %104, i32 1
store ptr %105, ptr %5, align 8
store i8 %103, ptr %104, align 1
br label %106
106: ; preds = %101, %94
%107 = load ptr, ptr %10, align 8
%108 = load i8, ptr %107, align 1
%109 = icmp ne i8 %108, 0
br i1 %109, label %94, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %106
br label %110
110: ; preds = %._crit_edge, %84
%111 = load ptr, ptr %5, align 8
store i8 0, ptr %111, align 1
br label %112
112: ; preds = %110, %83, %69, %57, %37, %28, %19
ret void
}
declare i64 @strstr(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @Info_ValueForKey(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @Info_RemoveKey(ptr noundef, ptr noundef) #1
declare i32 @snprintf(ptr noundef, 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp43miynem.c'
source_filename = "/tmp/tmp43miynem.c"
target datalayout = "e-m:e-p270: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/tmp43miynem.c"
target datalayout = "e-m:e-p270: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/tmp93xl01dl.c'
source_filename = "/tmp/tmp93xl01dl.c"
target datalayout = "e-m:e-p270: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/tmp93xl01dl.c"
target datalayout = "e-m:e-p270: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/tmp0h_58m2_.c'
source_filename = "/tmp/tmp0h_58m2_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @emit_rmw_orimm(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %5, align 4
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %14
9: ; preds = %3
%10 = load i32, ptr %5, align 4
%11 = icmp sge i32 %10, 0
%12 = zext i1 %11 to i32
%13 = call i32 @assert(i32 noundef %12)
br label %23
14: ; preds = %3
%15 = load i32, ptr %4, align 4
%16 = load i32, ptr %5, align 4
%17 = call i32 @emit_movzbl_dualindexedx4(i32 noundef %15, i32 noundef %16, i32 noundef 14)
%18 = load i32, ptr %6, align 4
%19 = call i32 @emit_orimm(i32 noundef 14, i32 noundef %18, i32 noundef 14)
%20 = load i32, ptr %4, align 4
%21 = load i32, ptr %5, align 4
%22 = call i32 @emit_writebyte_dualindexedx4(i32 noundef 14, i32 noundef %20, i32 noundef %21)
br label %23
23: ; preds = %14, %9
ret void
}
declare i32 @assert(i32 noundef) #1
declare i32 @emit_movzbl_dualindexedx4(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @emit_orimm(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @emit_writebyte_dualindexedx4(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0h_58m2_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @emit_rmw_orimm(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %5, align 4
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %14
9: ; preds = %3
%10 = load i32, ptr %5, align 4
%11 = icmp sge i32 %10, 0
%12 = zext i1 %11 to i32
%13 = call i32 @assert(i32 noundef %12)
br label %23
14: ; preds = %3
%15 = load i32, ptr %4, align 4
%16 = load i32, ptr %5, align 4
%17 = call i32 @emit_movzbl_dualindexedx4(i32 noundef %15, i32 noundef %16, i32 noundef 14)
%18 = load i32, ptr %6, align 4
%19 = call i32 @emit_orimm(i32 noundef 14, i32 noundef %18, i32 noundef 14)
%20 = load i32, ptr %4, align 4
%21 = load i32, ptr %5, align 4
%22 = call i32 @emit_writebyte_dualindexedx4(i32 noundef 14, i32 noundef %20, i32 noundef %21)
br label %23
23: ; preds = %14, %9
ret void
}
declare i32 @assert(i32 noundef) #1
declare i32 @emit_movzbl_dualindexedx4(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @emit_orimm(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @emit_writebyte_dualindexedx4(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpde1ef2h6.c'
source_filename = "/tmp/tmpde1ef2h6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @baseline_region(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca [33 x i32], align 16
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca float, align 4
%17 = alloca float, align 4
%18 = alloca [33 x float], align 16
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = 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 %3, ptr %8, align 4
store float 0x46C8A6E320000000, ptr %16, align 4
store float 0.000000e+00, ptr %17, align 4
%23 = load i32, ptr %7, align 4
%24 = sdiv i32 %23, 200
store i32 %24, ptr %11, align 4
%25 = load i32, ptr %11, align 4
%26 = icmp sgt i32 4, %25
br i1 %26, label %27, label %28
27: ; preds = %4
br label %30
28: ; preds = %4
%29 = load i32, ptr %11, align 4
br label %30
30: ; preds = %28, %27
%31 = phi i32 [ 4, %27 ], [ %29, %28 ]
store i32 %31, ptr %11, align 4
%32 = load i32, ptr %11, align 4
%33 = icmp slt i32 %32, 8
br i1 %33, label %34, label %36
34: ; preds = %30
%35 = load i32, ptr %11, align 4
br label %37
36: ; preds = %30
br label %37
37: ; preds = %36, %34
%38 = phi i32 [ %35, %34 ], [ 8, %36 ]
store i32 %38, ptr %11, align 4
%39 = load i32, ptr %11, align 4
%40 = load i32, ptr %7, align 4
%41 = sub nsw i32 %40, 1
%42 = icmp slt i32 %39, %41
br i1 %42, label %43, label %45
43: ; preds = %37
%44 = load i32, ptr %11, align 4
br label %48
45: ; preds = %37
%46 = load i32, ptr %7, align 4
%47 = sub nsw i32 %46, 1
br label %48
48: ; preds = %45, %43
%49 = phi i32 [ %44, %43 ], [ %47, %45 ]
store i32 %49, ptr %11, align 4
store i32 1, ptr %9, align 4
br label %50
50: ; preds = %188, %48
%51 = load i32, ptr %9, align 4
%52 = load i32, ptr %7, align 4
%53 = icmp sle i32 %51, %52
br i1 %53, label %54, label %191
54: ; preds = %50
store i32 0, ptr %21, align 4
%55 = load ptr, ptr %6, align 8
%56 = load i32, ptr %9, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds float, ptr %55, i64 %57
store float 0.000000e+00, ptr %58, align 4
%59 = load i32, ptr %9, align 4
%60 = load i32, ptr %11, align 4
%61 = sub nsw i32 %59, %60
%62 = icmp sgt i32 1, %61
br i1 %62, label %63, label %64
63: ; preds = %54
br label %68
64: ; preds = %54
%65 = load i32, ptr %9, align 4
%66 = load i32, ptr %11, align 4
%67 = sub nsw i32 %65, %66
br label %68
68: ; preds = %64, %63
%69 = phi i32 [ 1, %63 ], [ %67, %64 ]
store i32 %69, ptr %19, align 4
%70 = load i32, ptr %9, align 4
%71 = load i32, ptr %19, align 4
%72 = sub nsw i32 %70, %71
%73 = load i32, ptr %21, align 4
%74 = add nsw i32 %73, %72
store i32 %74, ptr %21, align 4
%75 = load i32, ptr %19, align 4
store i32 %75, ptr %10, align 4
br label %76
76: ; preds = %100, %68
%77 = load i32, ptr %10, align 4
%78 = load i32, ptr %9, align 4
%79 = icmp slt i32 %77, %78
br i1 %79, label %80, label %103
80: ; preds = %76
%81 = load ptr, ptr %5, align 8
%82 = load i32, ptr %9, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds float, ptr %81, i64 %83
%85 = load float, ptr %84, align 4
%86 = load ptr, ptr %5, align 8
%87 = load i32, ptr %10, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds float, ptr %86, i64 %88
%90 = load float, ptr %89, align 4
%91 = fsub float %85, %90
%92 = call i64 @fabs(float noundef %91)
%93 = sitofp i64 %92 to float
%94 = load ptr, ptr %6, align 8
%95 = load i32, ptr %9, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds float, ptr %94, i64 %96
%98 = load float, ptr %97, align 4
%99 = fadd float %98, %93
store float %99, ptr %97, align 4
br label %100
100: ; preds = %80
%101 = load i32, ptr %10, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %10, align 4
br label %76, !llvm.loop !6
103: ; preds = %76
%104 = load i32, ptr %7, align 4
%105 = load i32, ptr %9, align 4
%106 = load i32, ptr %11, align 4
%107 = add nsw i32 %105, %106
%108 = icmp slt i32 %104, %107
br i1 %108, label %109, label %111
109: ; preds = %103
%110 = load i32, ptr %7, align 4
br label %115
111: ; preds = %103
%112 = load i32, ptr %9, align 4
%113 = load i32, ptr %11, align 4
%114 = add nsw i32 %112, %113
br label %115
115: ; preds = %111, %109
%116 = phi i32 [ %110, %109 ], [ %114, %111 ]
store i32 %116, ptr %20, align 4
%117 = load i32, ptr %20, align 4
%118 = load i32, ptr %9, align 4
%119 = sub nsw i32 %117, %118
%120 = load i32, ptr %21, align 4
%121 = add nsw i32 %120, %119
store i32 %121, ptr %21, align 4
%122 = load i32, ptr %9, align 4
%123 = add nsw i32 %122, 1
store i32 %123, ptr %10, align 4
br label %124
124: ; preds = %148, %115
%125 = load i32, ptr %10, align 4
%126 = load i32, ptr %20, align 4
%127 = icmp sle i32 %125, %126
br i1 %127, label %128, label %151
128: ; preds = %124
%129 = load ptr, ptr %5, align 8
%130 = load i32, ptr %9, align 4
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds float, ptr %129, i64 %131
%133 = load float, ptr %132, align 4
%134 = load ptr, ptr %5, align 8
%135 = load i32, ptr %10, align 4
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds float, ptr %134, i64 %136
%138 = load float, ptr %137, align 4
%139 = fsub float %133, %138
%140 = call i64 @fabs(float noundef %139)
%141 = sitofp i64 %140 to float
%142 = load ptr, ptr %6, align 8
%143 = load i32, ptr %9, align 4
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds float, ptr %142, i64 %144
%146 = load float, ptr %145, align 4
%147 = fadd float %146, %141
store float %147, ptr %145, align 4
br label %148
148: ; preds = %128
%149 = load i32, ptr %10, align 4
%150 = add nsw i32 %149, 1
store i32 %150, ptr %10, align 4
br label %124, !llvm.loop !8
151: ; preds = %124
%152 = load i32, ptr %21, align 4
%153 = sitofp i32 %152 to float
%154 = load ptr, ptr %6, align 8
%155 = load i32, ptr %9, align 4
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds float, ptr %154, i64 %156
%158 = load float, ptr %157, align 4
%159 = fdiv float %158, %153
store float %159, ptr %157, align 4
%160 = load ptr, ptr %6, align 8
%161 = load i32, ptr %9, align 4
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds float, ptr %160, i64 %162
%164 = load float, ptr %163, align 4
%165 = load float, ptr %17, align 4
%166 = fcmp ogt float %164, %165
br i1 %166, label %167, label %173
167: ; preds = %151
%168 = load ptr, ptr %6, align 8
%169 = load i32, ptr %9, align 4
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds float, ptr %168, i64 %170
%172 = load float, ptr %171, align 4
store float %172, ptr %17, align 4
br label %173
173: ; preds = %167, %151
%174 = load ptr, ptr %6, align 8
%175 = load i32, ptr %9, align 4
%176 = sext i32 %175 to i64
%177 = getelementptr inbounds float, ptr %174, i64 %176
%178 = load float, ptr %177, align 4
%179 = load float, ptr %16, align 4
%180 = fcmp olt float %178, %179
br i1 %180, label %181, label %187
181: ; preds = %173
%182 = load ptr, ptr %6, align 8
%183 = load i32, ptr %9, align 4
%184 = sext i32 %183 to i64
%185 = getelementptr inbounds float, ptr %182, i64 %184
%186 = load float, ptr %185, align 4
store float %186, ptr %16, align 4
br label %187
187: ; preds = %181, %173
br label %188
188: ; preds = %187
%189 = load i32, ptr %9, align 4
%190 = add nsw i32 %189, 1
store i32 %190, ptr %9, align 4
br label %50, !llvm.loop !9
191: ; preds = %50
%192 = getelementptr inbounds [33 x i32], ptr %12, i64 0, i64 0
store i32 0, ptr %192, align 16
%193 = load float, ptr %17, align 4
%194 = fdiv float %193, 2.000000e+00
%195 = getelementptr inbounds [33 x float], ptr %18, i64 0, i64 0
store float %194, ptr %195, align 16
store i32 1, ptr %14, align 4
br label %196
196: ; preds = %224, %191
%197 = load i32, ptr %14, align 4
%198 = icmp slt i32 %197, 32
br i1 %198, label %199, label %207
199: ; preds = %196
%200 = load i32, ptr %14, align 4
%201 = sub nsw i32 %200, 1
%202 = sext i32 %201 to i64
%203 = getelementptr inbounds [33 x float], ptr %18, i64 0, i64 %202
%204 = load float, ptr %203, align 4
%205 = load float, ptr %16, align 4
%206 = fcmp ogt float %204, %205
br label %207
207: ; preds = %199, %196
%208 = phi i1 [ false, %196 ], [ %206, %199 ]
br i1 %208, label %209, label %227
209: ; preds = %207
%210 = load i32, ptr %14, align 4
%211 = sext i32 %210 to i64
%212 = getelementptr inbounds [33 x i32], ptr %12, i64 0, i64 %211
store i32 0, ptr %212, align 4
%213 = load i32, ptr %14, align 4
%214 = sub nsw i32 %213, 1
%215 = sext i32 %214 to i64
%216 = getelementptr inbounds [33 x float], ptr %18, i64 0, i64 %215
%217 = load float, ptr %216, align 4
%218 = fpext float %217 to double
%219 = fmul double %218, 5.000000e-01
%220 = fptrunc double %219 to float
%221 = load i32, ptr %14, align 4
%222 = sext i32 %221 to i64
%223 = getelementptr inbounds [33 x float], ptr %18, i64 0, i64 %222
store float %220, ptr %223, align 4
br label %224
224: ; preds = %209
%225 = load i32, ptr %14, align 4
%226 = add nsw i32 %225, 1
store i32 %226, ptr %14, align 4
br label %196, !llvm.loop !10
227: ; preds = %207
%228 = load i32, ptr %14, align 4
%229 = sext i32 %228 to i64
%230 = getelementptr inbounds [33 x float], ptr %18, i64 0, i64 %229
store float 0.000000e+00, ptr %230, align 4
store i32 1, ptr %9, align 4
br label %231
231: ; preds = %262, %227
%232 = load i32, ptr %9, align 4
%233 = load i32, ptr %7, align 4
%234 = icmp sle i32 %232, %233
br i1 %234, label %235, label %265
235: ; preds = %231
store i32 0, ptr %10, align 4
br label %236
236: ; preds = %258, %235
%237 = load i32, ptr %10, align 4
%238 = load i32, ptr %14, align 4
%239 = icmp sle i32 %237, %238
br i1 %239, label %240, label %261
240: ; preds = %236
%241 = load ptr, ptr %6, align 8
%242 = load i32, ptr %9, align 4
%243 = sext i32 %242 to i64
%244 = getelementptr inbounds float, ptr %241, i64 %243
%245 = load float, ptr %244, align 4
%246 = load i32, ptr %10, align 4
%247 = sext i32 %246 to i64
%248 = getelementptr inbounds [33 x float], ptr %18, i64 0, i64 %247
%249 = load float, ptr %248, align 4
%250 = fcmp ogt float %245, %249
br i1 %250, label %251, label %257
251: ; preds = %240
%252 = load i32, ptr %10, align 4
%253 = sext i32 %252 to i64
%254 = getelementptr inbounds [33 x i32], ptr %12, i64 0, i64 %253
%255 = load i32, ptr %254, align 4
%256 = add nsw i32 %255, 1
store i32 %256, ptr %254, align 4
br label %261
257: ; preds = %240
br label %258
258: ; preds = %257
%259 = load i32, ptr %10, align 4
%260 = add nsw i32 %259, 1
store i32 %260, ptr %10, align 4
br label %236, !llvm.loop !11
261: ; preds = %251, %236
br label %262
262: ; preds = %261
%263 = load i32, ptr %9, align 4
%264 = add nsw i32 %263, 1
store i32 %264, ptr %9, align 4
br label %231, !llvm.loop !12
265: ; preds = %231
store i32 0, ptr %13, align 4
store i32 0, ptr %15, align 4
store i32 0, ptr %9, align 4
br label %266
266: ; preds = %284, %265
%267 = load i32, ptr %9, align 4
%268 = load i32, ptr %14, align 4
%269 = icmp slt i32 %267, %268
br i1 %269, label %270, label %287
270: ; preds = %266
%271 = load i32, ptr %9, align 4
%272 = sext i32 %271 to i64
%273 = getelementptr inbounds [33 x i32], ptr %12, i64 0, i64 %272
%274 = load i32, ptr %273, align 4
%275 = load i32, ptr %13, align 4
%276 = icmp sgt i32 %274, %275
br i1 %276, label %277, label %283
277: ; preds = %270
%278 = load i32, ptr %9, align 4
%279 = sext i32 %278 to i64
%280 = getelementptr inbounds [33 x i32], ptr %12, i64 0, i64 %279
%281 = load i32, ptr %280, align 4
store i32 %281, ptr %13, align 4
%282 = load i32, ptr %9, align 4
store i32 %282, ptr %15, align 4
br label %283
283: ; preds = %277, %270
br label %284
284: ; preds = %283
%285 = load i32, ptr %9, align 4
%286 = add nsw i32 %285, 1
store i32 %286, ptr %9, align 4
br label %266, !llvm.loop !13
287: ; preds = %266
%288 = load i32, ptr %15, align 4
%289 = sub nsw i32 %288, 1
%290 = icmp sgt i32 0, %289
br i1 %290, label %291, label %292
291: ; preds = %287
br label %295
292: ; preds = %287
%293 = load i32, ptr %15, align 4
%294 = sub nsw i32 %293, 1
br label %295
295: ; preds = %292, %291
%296 = phi i32 [ 0, %291 ], [ %294, %292 ]
store i32 %296, ptr %15, align 4
%297 = load i32, ptr %8, align 4
%298 = icmp ne i32 %297, 0
br i1 %298, label %299, label %346
299: ; preds = %295
store i32 1, ptr %9, align 4
br label %300
300: ; preds = %342, %299
%301 = load i32, ptr %9, align 4
%302 = load i32, ptr %7, align 4
%303 = icmp sle i32 %301, %302
br i1 %303, label %304, label %345
304: ; preds = %300
store i32 0, ptr %22, align 4
store i32 0, ptr %10, align 4
br label %305
305: ; preds = %330, %304
%306 = load i32, ptr %10, align 4
%307 = load i32, ptr %15, align 4
%308 = icmp slt i32 %306, %307
br i1 %308, label %309, label %333
309: ; preds = %305
%310 = load ptr, ptr %6, align 8
%311 = load i32, ptr %9, align 4
%312 = sext i32 %311 to i64
%313 = getelementptr inbounds float, ptr %310, i64 %312
%314 = load float, ptr %313, align 4
%315 = load i32, ptr %10, align 4
%316 = sext i32 %315 to i64
%317 = getelementptr inbounds [33 x float], ptr %18, i64 0, i64 %316
%318 = load float, ptr %317, align 4
%319 = fcmp oge float %314, %318
br i1 %319, label %320, label %329
320: ; preds = %309
%321 = load i32, ptr %10, align 4
%322 = sext i32 %321 to i64
%323 = getelementptr inbounds [33 x float], ptr %18, i64 0, i64 %322
%324 = load float, ptr %323, align 4
%325 = load ptr, ptr %6, align 8
%326 = load i32, ptr %9, align 4
%327 = sext i32 %326 to i64
%328 = getelementptr inbounds float, ptr %325, i64 %327
store float %324, ptr %328, align 4
store i32 1, ptr %22, align 4
br label %333
329: ; preds = %309
br label %330
330: ; preds = %329
%331 = load i32, ptr %10, align 4
%332 = add nsw i32 %331, 1
store i32 %332, ptr %10, align 4
br label %305, !llvm.loop !14
333: ; preds = %320, %305
%334 = load i32, ptr %22, align 4
%335 = icmp ne i32 %334, 0
br i1 %335, label %341, label %336
336: ; preds = %333
%337 = load ptr, ptr %6, align 8
%338 = load i32, ptr %9, align 4
%339 = sext i32 %338 to i64
%340 = getelementptr inbounds float, ptr %337, i64 %339
store float 0.000000e+00, ptr %340, align 4
br label %341
341: ; preds = %336, %333
br label %342
342: ; preds = %341
%343 = load i32, ptr %9, align 4
%344 = add nsw i32 %343, 1
store i32 %344, ptr %9, align 4
br label %300, !llvm.loop !15
345: ; preds = %300
br label %346
346: ; preds = %345, %295
%347 = load i32, ptr %15, align 4
%348 = sext i32 %347 to i64
%349 = getelementptr inbounds [33 x float], ptr %18, i64 0, i64 %348
%350 = load float, ptr %349, align 4
ret float %350
}
declare i64 @fabs(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpde1ef2h6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @baseline_region(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca [33 x i32], align 16
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca float, align 4
%17 = alloca float, align 4
%18 = alloca [33 x float], align 16
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = 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 %3, ptr %8, align 4
store float 0x46C8A6E320000000, ptr %16, align 4
store float 0.000000e+00, ptr %17, align 4
%23 = load i32, ptr %7, align 4
%24 = sdiv i32 %23, 200
store i32 %24, ptr %11, align 4
%25 = load i32, ptr %11, align 4
%26 = icmp sgt i32 4, %25
br i1 %26, label %27, label %28
27: ; preds = %4
br label %30
28: ; preds = %4
%29 = load i32, ptr %11, align 4
br label %30
30: ; preds = %28, %27
%31 = phi i32 [ 4, %27 ], [ %29, %28 ]
store i32 %31, ptr %11, align 4
%32 = load i32, ptr %11, align 4
%33 = icmp slt i32 %32, 8
br i1 %33, label %34, label %36
34: ; preds = %30
%35 = load i32, ptr %11, align 4
br label %37
36: ; preds = %30
br label %37
37: ; preds = %36, %34
%38 = phi i32 [ %35, %34 ], [ 8, %36 ]
store i32 %38, ptr %11, align 4
%39 = load i32, ptr %11, align 4
%40 = load i32, ptr %7, align 4
%41 = sub nsw i32 %40, 1
%42 = icmp slt i32 %39, %41
br i1 %42, label %43, label %45
43: ; preds = %37
%44 = load i32, ptr %11, align 4
br label %48
45: ; preds = %37
%46 = load i32, ptr %7, align 4
%47 = sub nsw i32 %46, 1
br label %48
48: ; preds = %45, %43
%49 = phi i32 [ %44, %43 ], [ %47, %45 ]
store i32 %49, ptr %11, align 4
store i32 1, ptr %9, align 4
%50 = load i32, ptr %9, align 4
%51 = load i32, ptr %7, align 4
%52 = icmp sle i32 %50, %51
br i1 %52, label %.lr.ph6, label %197
.lr.ph6: ; preds = %48
br label %53
53: ; preds = %.lr.ph6, %191
store i32 0, ptr %21, align 4
%54 = load ptr, ptr %6, align 8
%55 = load i32, ptr %9, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds float, ptr %54, i64 %56
store float 0.000000e+00, ptr %57, align 4
%58 = load i32, ptr %9, align 4
%59 = load i32, ptr %11, align 4
%60 = sub nsw i32 %58, %59
%61 = icmp sgt i32 1, %60
br i1 %61, label %62, label %63
62: ; preds = %53
br label %67
63: ; preds = %53
%64 = load i32, ptr %9, align 4
%65 = load i32, ptr %11, align 4
%66 = sub nsw i32 %64, %65
br label %67
67: ; preds = %63, %62
%68 = phi i32 [ 1, %62 ], [ %66, %63 ]
store i32 %68, ptr %19, align 4
%69 = load i32, ptr %9, align 4
%70 = load i32, ptr %19, align 4
%71 = sub nsw i32 %69, %70
%72 = load i32, ptr %21, align 4
%73 = add nsw i32 %72, %71
store i32 %73, ptr %21, align 4
%74 = load i32, ptr %19, align 4
store i32 %74, ptr %10, align 4
%75 = load i32, ptr %10, align 4
%76 = load i32, ptr %9, align 4
%77 = icmp slt i32 %75, %76
br i1 %77, label %.lr.ph, label %104
.lr.ph: ; preds = %67
br label %78
78: ; preds = %.lr.ph, %98
%79 = load ptr, ptr %5, align 8
%80 = load i32, ptr %9, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds float, ptr %79, i64 %81
%83 = load float, ptr %82, align 4
%84 = load ptr, ptr %5, align 8
%85 = load i32, ptr %10, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds float, ptr %84, i64 %86
%88 = load float, ptr %87, align 4
%89 = fsub float %83, %88
%90 = call i64 @fabs(float noundef %89)
%91 = sitofp i64 %90 to float
%92 = load ptr, ptr %6, align 8
%93 = load i32, ptr %9, align 4
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds float, ptr %92, i64 %94
%96 = load float, ptr %95, align 4
%97 = fadd float %96, %91
store float %97, ptr %95, align 4
br label %98
98: ; preds = %78
%99 = load i32, ptr %10, align 4
%100 = add nsw i32 %99, 1
store i32 %100, ptr %10, align 4
%101 = load i32, ptr %10, align 4
%102 = load i32, ptr %9, align 4
%103 = icmp slt i32 %101, %102
br i1 %103, label %78, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %98
br label %104
104: ; preds = %._crit_edge, %67
%105 = load i32, ptr %7, align 4
%106 = load i32, ptr %9, align 4
%107 = load i32, ptr %11, align 4
%108 = add nsw i32 %106, %107
%109 = icmp slt i32 %105, %108
br i1 %109, label %110, label %112
110: ; preds = %104
%111 = load i32, ptr %7, align 4
br label %116
112: ; preds = %104
%113 = load i32, ptr %9, align 4
%114 = load i32, ptr %11, align 4
%115 = add nsw i32 %113, %114
br label %116
116: ; preds = %112, %110
%117 = phi i32 [ %111, %110 ], [ %115, %112 ]
store i32 %117, ptr %20, align 4
%118 = load i32, ptr %20, align 4
%119 = load i32, ptr %9, align 4
%120 = sub nsw i32 %118, %119
%121 = load i32, ptr %21, align 4
%122 = add nsw i32 %121, %120
store i32 %122, ptr %21, align 4
%123 = load i32, ptr %9, align 4
%124 = add nsw i32 %123, 1
store i32 %124, ptr %10, align 4
%125 = load i32, ptr %10, align 4
%126 = load i32, ptr %20, align 4
%127 = icmp sle i32 %125, %126
br i1 %127, label %.lr.ph3, label %154
.lr.ph3: ; preds = %116
br label %128
128: ; preds = %.lr.ph3, %148
%129 = load ptr, ptr %5, align 8
%130 = load i32, ptr %9, align 4
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds float, ptr %129, i64 %131
%133 = load float, ptr %132, align 4
%134 = load ptr, ptr %5, align 8
%135 = load i32, ptr %10, align 4
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds float, ptr %134, i64 %136
%138 = load float, ptr %137, align 4
%139 = fsub float %133, %138
%140 = call i64 @fabs(float noundef %139)
%141 = sitofp i64 %140 to float
%142 = load ptr, ptr %6, align 8
%143 = load i32, ptr %9, align 4
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds float, ptr %142, i64 %144
%146 = load float, ptr %145, align 4
%147 = fadd float %146, %141
store float %147, ptr %145, align 4
br label %148
148: ; preds = %128
%149 = load i32, ptr %10, align 4
%150 = add nsw i32 %149, 1
store i32 %150, ptr %10, align 4
%151 = load i32, ptr %10, align 4
%152 = load i32, ptr %20, align 4
%153 = icmp sle i32 %151, %152
br i1 %153, label %128, label %._crit_edge4, !llvm.loop !8
._crit_edge4: ; preds = %148
br label %154
154: ; preds = %._crit_edge4, %116
%155 = load i32, ptr %21, align 4
%156 = sitofp i32 %155 to float
%157 = load ptr, ptr %6, align 8
%158 = load i32, ptr %9, align 4
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds float, ptr %157, i64 %159
%161 = load float, ptr %160, align 4
%162 = fdiv float %161, %156
store float %162, ptr %160, align 4
%163 = load ptr, ptr %6, align 8
%164 = load i32, ptr %9, align 4
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds float, ptr %163, i64 %165
%167 = load float, ptr %166, align 4
%168 = load float, ptr %17, align 4
%169 = fcmp ogt float %167, %168
br i1 %169, label %170, label %176
170: ; preds = %154
%171 = load ptr, ptr %6, align 8
%172 = load i32, ptr %9, align 4
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds float, ptr %171, i64 %173
%175 = load float, ptr %174, align 4
store float %175, ptr %17, align 4
br label %176
176: ; preds = %170, %154
%177 = load ptr, ptr %6, align 8
%178 = load i32, ptr %9, align 4
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds float, ptr %177, i64 %179
%181 = load float, ptr %180, align 4
%182 = load float, ptr %16, align 4
%183 = fcmp olt float %181, %182
br i1 %183, label %184, label %190
184: ; preds = %176
%185 = load ptr, ptr %6, align 8
%186 = load i32, ptr %9, align 4
%187 = sext i32 %186 to i64
%188 = getelementptr inbounds float, ptr %185, i64 %187
%189 = load float, ptr %188, align 4
store float %189, ptr %16, align 4
br label %190
190: ; preds = %184, %176
br label %191
191: ; preds = %190
%192 = load i32, ptr %9, align 4
%193 = add nsw i32 %192, 1
store i32 %193, ptr %9, align 4
%194 = load i32, ptr %9, align 4
%195 = load i32, ptr %7, align 4
%196 = icmp sle i32 %194, %195
br i1 %196, label %53, label %._crit_edge7, !llvm.loop !9
._crit_edge7: ; preds = %191
br label %197
197: ; preds = %._crit_edge7, %48
%198 = getelementptr inbounds [33 x i32], ptr %12, i64 0, i64 0
store i32 0, ptr %198, align 16
%199 = load float, ptr %17, align 4
%200 = fdiv float %199, 2.000000e+00
%201 = getelementptr inbounds [33 x float], ptr %18, i64 0, i64 0
store float %200, ptr %201, align 16
store i32 1, ptr %14, align 4
br label %202
202: ; preds = %230, %197
%203 = load i32, ptr %14, align 4
%204 = icmp slt i32 %203, 32
br i1 %204, label %205, label %213
205: ; preds = %202
%206 = load i32, ptr %14, align 4
%207 = sub nsw i32 %206, 1
%208 = sext i32 %207 to i64
%209 = getelementptr inbounds [33 x float], ptr %18, i64 0, i64 %208
%210 = load float, ptr %209, align 4
%211 = load float, ptr %16, align 4
%212 = fcmp ogt float %210, %211
br label %213
213: ; preds = %205, %202
%214 = phi i1 [ false, %202 ], [ %212, %205 ]
br i1 %214, label %215, label %233
215: ; preds = %213
%216 = load i32, ptr %14, align 4
%217 = sext i32 %216 to i64
%218 = getelementptr inbounds [33 x i32], ptr %12, i64 0, i64 %217
store i32 0, ptr %218, align 4
%219 = load i32, ptr %14, align 4
%220 = sub nsw i32 %219, 1
%221 = sext i32 %220 to i64
%222 = getelementptr inbounds [33 x float], ptr %18, i64 0, i64 %221
%223 = load float, ptr %222, align 4
%224 = fpext float %223 to double
%225 = fmul double %224, 5.000000e-01
%226 = fptrunc double %225 to float
%227 = load i32, ptr %14, align 4
%228 = sext i32 %227 to i64
%229 = getelementptr inbounds [33 x float], ptr %18, i64 0, i64 %228
store float %226, ptr %229, align 4
br label %230
230: ; preds = %215
%231 = load i32, ptr %14, align 4
%232 = add nsw i32 %231, 1
store i32 %232, ptr %14, align 4
br label %202, !llvm.loop !10
233: ; preds = %213
%234 = load i32, ptr %14, align 4
%235 = sext i32 %234 to i64
%236 = getelementptr inbounds [33 x float], ptr %18, i64 0, i64 %235
store float 0.000000e+00, ptr %236, align 4
store i32 1, ptr %9, align 4
%237 = load i32, ptr %9, align 4
%238 = load i32, ptr %7, align 4
%239 = icmp sle i32 %237, %238
br i1 %239, label %.lr.ph11, label %275
.lr.ph11: ; preds = %233
br label %240
240: ; preds = %.lr.ph11, %269
store i32 0, ptr %10, align 4
%241 = load i32, ptr %10, align 4
%242 = load i32, ptr %14, align 4
%243 = icmp sle i32 %241, %242
br i1 %243, label %.lr.ph9, label %.loopexit1
.lr.ph9: ; preds = %240
br label %244
244: ; preds = %.lr.ph9, %262
%245 = load ptr, ptr %6, align 8
%246 = load i32, ptr %9, align 4
%247 = sext i32 %246 to i64
%248 = getelementptr inbounds float, ptr %245, i64 %247
%249 = load float, ptr %248, align 4
%250 = load i32, ptr %10, align 4
%251 = sext i32 %250 to i64
%252 = getelementptr inbounds [33 x float], ptr %18, i64 0, i64 %251
%253 = load float, ptr %252, align 4
%254 = fcmp ogt float %249, %253
br i1 %254, label %255, label %261
255: ; preds = %244
%256 = load i32, ptr %10, align 4
%257 = sext i32 %256 to i64
%258 = getelementptr inbounds [33 x i32], ptr %12, i64 0, i64 %257
%259 = load i32, ptr %258, align 4
%260 = add nsw i32 %259, 1
store i32 %260, ptr %258, align 4
br label %268
261: ; preds = %244
br label %262
262: ; preds = %261
%263 = load i32, ptr %10, align 4
%264 = add nsw i32 %263, 1
store i32 %264, ptr %10, align 4
%265 = load i32, ptr %10, align 4
%266 = load i32, ptr %14, align 4
%267 = icmp sle i32 %265, %266
br i1 %267, label %244, label %..loopexit1_crit_edge, !llvm.loop !11
..loopexit1_crit_edge: ; preds = %262
br label %.loopexit1
.loopexit1: ; preds = %..loopexit1_crit_edge, %240
br label %268
268: ; preds = %.loopexit1, %255
br label %269
269: ; preds = %268
%270 = load i32, ptr %9, align 4
%271 = add nsw i32 %270, 1
store i32 %271, ptr %9, align 4
%272 = load i32, ptr %9, align 4
%273 = load i32, ptr %7, align 4
%274 = icmp sle i32 %272, %273
br i1 %274, label %240, label %._crit_edge12, !llvm.loop !12
._crit_edge12: ; preds = %269
br label %275
275: ; preds = %._crit_edge12, %233
store i32 0, ptr %13, align 4
store i32 0, ptr %15, align 4
store i32 0, ptr %9, align 4
%276 = load i32, ptr %9, align 4
%277 = load i32, ptr %14, align 4
%278 = icmp slt i32 %276, %277
br i1 %278, label %.lr.ph14, label %299
.lr.ph14: ; preds = %275
br label %279
279: ; preds = %.lr.ph14, %293
%280 = load i32, ptr %9, align 4
%281 = sext i32 %280 to i64
%282 = getelementptr inbounds [33 x i32], ptr %12, i64 0, i64 %281
%283 = load i32, ptr %282, align 4
%284 = load i32, ptr %13, align 4
%285 = icmp sgt i32 %283, %284
br i1 %285, label %286, label %292
286: ; preds = %279
%287 = load i32, ptr %9, align 4
%288 = sext i32 %287 to i64
%289 = getelementptr inbounds [33 x i32], ptr %12, i64 0, i64 %288
%290 = load i32, ptr %289, align 4
store i32 %290, ptr %13, align 4
%291 = load i32, ptr %9, align 4
store i32 %291, ptr %15, align 4
br label %292
292: ; preds = %286, %279
br label %293
293: ; preds = %292
%294 = load i32, ptr %9, align 4
%295 = add nsw i32 %294, 1
store i32 %295, ptr %9, align 4
%296 = load i32, ptr %9, align 4
%297 = load i32, ptr %14, align 4
%298 = icmp slt i32 %296, %297
br i1 %298, label %279, label %._crit_edge15, !llvm.loop !13
._crit_edge15: ; preds = %293
br label %299
299: ; preds = %._crit_edge15, %275
%300 = load i32, ptr %15, align 4
%301 = sub nsw i32 %300, 1
%302 = icmp sgt i32 0, %301
br i1 %302, label %303, label %304
303: ; preds = %299
br label %307
304: ; preds = %299
%305 = load i32, ptr %15, align 4
%306 = sub nsw i32 %305, 1
br label %307
307: ; preds = %304, %303
%308 = phi i32 [ 0, %303 ], [ %306, %304 ]
store i32 %308, ptr %15, align 4
%309 = load i32, ptr %8, align 4
%310 = icmp ne i32 %309, 0
br i1 %310, label %311, label %362
311: ; preds = %307
store i32 1, ptr %9, align 4
%312 = load i32, ptr %9, align 4
%313 = load i32, ptr %7, align 4
%314 = icmp sle i32 %312, %313
br i1 %314, label %.lr.ph19, label %361
.lr.ph19: ; preds = %311
br label %315
315: ; preds = %.lr.ph19, %355
store i32 0, ptr %22, align 4
store i32 0, ptr %10, align 4
%316 = load i32, ptr %10, align 4
%317 = load i32, ptr %15, align 4
%318 = icmp slt i32 %316, %317
br i1 %318, label %.lr.ph17, label %.loopexit
.lr.ph17: ; preds = %315
br label %319
319: ; preds = %.lr.ph17, %340
%320 = load ptr, ptr %6, align 8
%321 = load i32, ptr %9, align 4
%322 = sext i32 %321 to i64
%323 = getelementptr inbounds float, ptr %320, i64 %322
%324 = load float, ptr %323, align 4
%325 = load i32, ptr %10, align 4
%326 = sext i32 %325 to i64
%327 = getelementptr inbounds [33 x float], ptr %18, i64 0, i64 %326
%328 = load float, ptr %327, align 4
%329 = fcmp oge float %324, %328
br i1 %329, label %330, label %339
330: ; preds = %319
%331 = load i32, ptr %10, align 4
%332 = sext i32 %331 to i64
%333 = getelementptr inbounds [33 x float], ptr %18, i64 0, i64 %332
%334 = load float, ptr %333, align 4
%335 = load ptr, ptr %6, align 8
%336 = load i32, ptr %9, align 4
%337 = sext i32 %336 to i64
%338 = getelementptr inbounds float, ptr %335, i64 %337
store float %334, ptr %338, align 4
store i32 1, ptr %22, align 4
br label %346
339: ; preds = %319
br label %340
340: ; preds = %339
%341 = load i32, ptr %10, align 4
%342 = add nsw i32 %341, 1
store i32 %342, ptr %10, align 4
%343 = load i32, ptr %10, align 4
%344 = load i32, ptr %15, align 4
%345 = icmp slt i32 %343, %344
br i1 %345, label %319, label %..loopexit_crit_edge, !llvm.loop !14
..loopexit_crit_edge: ; preds = %340
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %315
br label %346
346: ; preds = %.loopexit, %330
%347 = load i32, ptr %22, align 4
%348 = icmp ne i32 %347, 0
br i1 %348, label %354, label %349
349: ; preds = %346
%350 = load ptr, ptr %6, align 8
%351 = load i32, ptr %9, align 4
%352 = sext i32 %351 to i64
%353 = getelementptr inbounds float, ptr %350, i64 %352
store float 0.000000e+00, ptr %353, align 4
br label %354
354: ; preds = %349, %346
br label %355
355: ; preds = %354
%356 = load i32, ptr %9, align 4
%357 = add nsw i32 %356, 1
store i32 %357, ptr %9, align 4
%358 = load i32, ptr %9, align 4
%359 = load i32, ptr %7, align 4
%360 = icmp sle i32 %358, %359
br i1 %360, label %315, label %._crit_edge20, !llvm.loop !15
._crit_edge20: ; preds = %355
br label %361
361: ; preds = %._crit_edge20, %311
br label %362
362: ; preds = %361, %307
%363 = load i32, ptr %15, align 4
%364 = sext i32 %363 to i64
%365 = getelementptr inbounds [33 x float], ptr %18, i64 0, i64 %364
%366 = load float, ptr %365, align 4
ret float %366
}
declare i64 @fabs(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
|
; ModuleID = '/tmp/tmpsnf88wod.c'
source_filename = "/tmp/tmpsnf88wod.c"
target datalayout = "e-m:e-p270: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/tmpsnf88wod.c"
target datalayout = "e-m:e-p270: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/tmpz2snmbqm.c'
source_filename = "/tmp/tmpz2snmbqm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" * [r]%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"Red\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c" * [g]%s\0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"Green\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c" * [y]%s\0A\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"Yellow\00", align 1
@.str.6 = private unnamed_addr constant [10 x i8] c" * [b]%s\0A\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"Blue\00", align 1
@.str.8 = private unnamed_addr constant [10 x i8] c" * [m]%s\0A\00", align 1
@.str.9 = private unnamed_addr constant [8 x i8] c"Magenta\00", align 1
@.str.10 = private unnamed_addr constant [10 x i8] c" * [c]%s\0A\00", align 1
@.str.11 = private unnamed_addr constant [5 x i8] c"Cyan\00", align 1
@.str.12 = private unnamed_addr constant [10 x i8] c" * [n]%s\0A\00", align 1
@.str.13 = private unnamed_addr constant [7 x i8] c"Normal\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @c_printf(ptr noundef @.str, ptr noundef @.str.1)
%7 = call i32 @c_printf(ptr noundef @.str.2, ptr noundef @.str.3)
%8 = call i32 @c_printf(ptr noundef @.str.4, ptr noundef @.str.5)
%9 = call i32 @c_printf(ptr noundef @.str.6, ptr noundef @.str.7)
%10 = call i32 @c_printf(ptr noundef @.str.8, ptr noundef @.str.9)
%11 = call i32 @c_printf(ptr noundef @.str.10, ptr noundef @.str.11)
%12 = call i32 @c_printf(ptr noundef @.str.12, ptr noundef @.str.13)
ret i32 0
}
declare i32 @c_printf(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/tmpz2snmbqm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" * [r]%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"Red\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c" * [g]%s\0A\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"Green\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c" * [y]%s\0A\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"Yellow\00", align 1
@.str.6 = private unnamed_addr constant [10 x i8] c" * [b]%s\0A\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"Blue\00", align 1
@.str.8 = private unnamed_addr constant [10 x i8] c" * [m]%s\0A\00", align 1
@.str.9 = private unnamed_addr constant [8 x i8] c"Magenta\00", align 1
@.str.10 = private unnamed_addr constant [10 x i8] c" * [c]%s\0A\00", align 1
@.str.11 = private unnamed_addr constant [5 x i8] c"Cyan\00", align 1
@.str.12 = private unnamed_addr constant [10 x i8] c" * [n]%s\0A\00", align 1
@.str.13 = private unnamed_addr constant [7 x i8] c"Normal\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @c_printf(ptr noundef @.str, ptr noundef @.str.1)
%7 = call i32 @c_printf(ptr noundef @.str.2, ptr noundef @.str.3)
%8 = call i32 @c_printf(ptr noundef @.str.4, ptr noundef @.str.5)
%9 = call i32 @c_printf(ptr noundef @.str.6, ptr noundef @.str.7)
%10 = call i32 @c_printf(ptr noundef @.str.8, ptr noundef @.str.9)
%11 = call i32 @c_printf(ptr noundef @.str.10, ptr noundef @.str.11)
%12 = call i32 @c_printf(ptr noundef @.str.12, ptr noundef @.str.13)
ret i32 0
}
declare i32 @c_printf(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/tmpqwmt974e.c'
source_filename = "/tmp/tmpqwmt974e.c"
target datalayout = "e-m:e-p270: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/tmpqwmt974e.c"
target datalayout = "e-m:e-p270: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/tmp50q9iwo8.c'
source_filename = "/tmp/tmp50q9iwo8.c"
target datalayout = "e-m:e-p270: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.option = type { ptr, i8, i32, i32 }
@.str = private unnamed_addr constant [18 x i8] c"transformed_layer\00", align 1
@main.long_options = internal global [13 x %struct.option] [%struct.option { ptr @.str.1, i8 -127, i32 0, i32 104 }, %struct.option { ptr @.str.2, i8 -128, i32 0, i32 105 }, %struct.option { ptr @.str.3, i8 -128, i32 0, i32 109 }, %struct.option { ptr @.str.4, i8 -128, i32 0, i32 111 }, %struct.option { ptr @.str.5, i8 -128, i32 0, i32 102 }, %struct.option { ptr @.str.6, i8 -127, i32 0, i32 114 }, %struct.option { ptr @.str.7, i8 -128, i32 0, i32 49 }, %struct.option { ptr @.str.8, i8 -128, i32 0, i32 115 }, %struct.option { ptr @.str.9, i8 -128, i32 0, i32 119 }, %struct.option { ptr @.str.10, i8 -128, i32 0, i32 50 }, %struct.option { ptr @.str.11, i8 -128, i32 0, i32 97 }, %struct.option { ptr @.str.12, i8 -127, i32 0, i32 98 }, %struct.option zeroinitializer], align 16
@.str.1 = private unnamed_addr constant [5 x i8] c"help\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"input\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"morphfile\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"output\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"format\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c"raster\00", align 1
@.str.7 = private unnamed_addr constant [12 x i8] c"input_layer\00", align 1
@.str.8 = private unnamed_addr constant [15 x i8] c"spatial_filter\00", align 1
@.str.9 = private unnamed_addr constant [12 x i8] c"attr_filter\00", align 1
@.str.10 = private unnamed_addr constant [13 x i8] c"output_layer\00", align 1
@.str.11 = private unnamed_addr constant [6 x i8] c"attrs\00", align 1
@.str.12 = private unnamed_addr constant [5 x i8] c"back\00", align 1
@.str.13 = private unnamed_addr constant [22 x i8] c"hi:m:o:f:r1:s:w:a:2:b\00", align 1
@optarg = external global ptr, align 8
@stderr = dso_local global i32 0, align 4
@.str.14 = private unnamed_addr constant [38 x i8] c"Error. You must supply a morph file.\0A\00", align 1
@.str.15 = private unnamed_addr constant [45 x i8] c"Error. Specify an input and an output file.\0A\00", align 1
@.str.16 = private unnamed_addr constant [28 x i8] c"r.morph.transform starting\0A\00", align 1
@.str.17 = private unnamed_addr constant [24 x i8] c"r.morph.transform done\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 ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = 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
%19 = load i32, ptr %4, align 4
%20 = icmp slt i32 %19, 2
br i1 %20, label %21, label %23
21: ; preds = %2
%22 = call i32 (...) @printUsage()
store i32 0, ptr %3, align 4
br label %120
23: ; preds = %2
store ptr null, ptr %12, align 8
store ptr null, ptr %10, align 8
store ptr null, ptr %9, align 8
store ptr null, ptr %8, align 8
store ptr null, ptr %16, align 8
store ptr null, ptr %15, align 8
store ptr null, ptr %14, align 8
store ptr null, ptr %11, align 8
store i32 0, ptr %17, align 4
store ptr @.str, ptr %13, align 8
store i32 0, ptr %18, align 4
br label %24
24: ; preds = %23, %59
%25 = load i32, ptr %4, align 4
%26 = load ptr, ptr %5, align 8
%27 = call i32 @getopt_long(i32 noundef %25, ptr noundef %26, ptr noundef @.str.13, ptr noundef @main.long_options, ptr noundef null)
store i32 %27, ptr %6, align 4
%28 = load i32, ptr %6, align 4
%29 = icmp eq i32 %28, -1
br i1 %29, label %30, label %31
30: ; preds = %24
br label %60
31: ; preds = %24
%32 = load i32, ptr %6, align 4
switch i32 %32, label %56 [
i32 104, label %33
i32 105, label %35
i32 111, label %37
i32 109, label %39
i32 102, label %41
i32 49, label %43
i32 115, label %45
i32 97, label %47
i32 119, label %49
i32 50, label %51
i32 114, label %53
i32 98, label %54
i32 63, label %55
]
33: ; preds = %31
%34 = call i32 (...) @printUsage()
store i32 0, ptr %3, align 4
br label %120
35: ; preds = %31
%36 = load ptr, ptr @optarg, align 8
store ptr %36, ptr %8, align 8
br label %59
37: ; preds = %31
%38 = load ptr, ptr @optarg, align 8
store ptr %38, ptr %10, align 8
br label %59
39: ; preds = %31
%40 = load ptr, ptr @optarg, align 8
store ptr %40, ptr %9, align 8
br label %59
41: ; preds = %31
%42 = load ptr, ptr @optarg, align 8
store ptr %42, ptr %11, align 8
br label %59
43: ; preds = %31
%44 = load ptr, ptr @optarg, align 8
store ptr %44, ptr %12, align 8
br label %59
45: ; preds = %31
%46 = load ptr, ptr @optarg, align 8
store ptr %46, ptr %15, align 8
br label %59
47: ; preds = %31
%48 = load ptr, ptr @optarg, align 8
store ptr %48, ptr %14, align 8
br label %59
49: ; preds = %31
%50 = load ptr, ptr @optarg, align 8
store ptr %50, ptr %16, align 8
br label %59
51: ; preds = %31
%52 = load ptr, ptr @optarg, align 8
store ptr %52, ptr %13, align 8
br label %59
53: ; preds = %31
store i32 1, ptr %17, align 4
br label %59
54: ; preds = %31
store i32 1, ptr %18, align 4
br label %59
55: ; preds = %31
store i32 1, ptr %3, align 4
br label %120
56: ; preds = %31
%57 = call i32 (...) @printUsage()
%58 = call i32 (...) @abort() #3
unreachable
59: ; preds = %54, %53, %51, %49, %47, %45, %43, %41, %39, %37, %35
br label %24
60: ; preds = %30
%61 = load ptr, ptr %9, align 8
%62 = icmp eq ptr %61, null
br i1 %62, label %63, label %67
63: ; preds = %60
%64 = load i32, ptr @stderr, align 4
%65 = call i32 @fprintf(i32 noundef %64, ptr noundef @.str.14)
%66 = call i32 @exit(i32 noundef 1) #3
unreachable
67: ; preds = %60
%68 = load ptr, ptr %8, align 8
%69 = icmp eq ptr %68, null
br i1 %69, label %70, label %73
70: ; preds = %67
%71 = load ptr, ptr %10, align 8
%72 = icmp ne ptr %71, null
br i1 %72, label %79, label %73
73: ; preds = %70, %67
%74 = load ptr, ptr %8, align 8
%75 = icmp ne ptr %74, null
br i1 %75, label %76, label %83
76: ; preds = %73
%77 = load ptr, ptr %10, align 8
%78 = icmp eq ptr %77, null
br i1 %78, label %79, label %83
79: ; preds = %76, %70
%80 = load i32, ptr @stderr, align 4
%81 = call i32 @fprintf(i32 noundef %80, ptr noundef @.str.15)
%82 = call i32 @exit(i32 noundef 1) #3
unreachable
83: ; preds = %76, %73
%84 = load ptr, ptr %8, align 8
%85 = icmp eq ptr %84, null
br i1 %85, label %86, label %94
86: ; preds = %83
%87 = load ptr, ptr %10, align 8
%88 = icmp eq ptr %87, null
br i1 %88, label %89, label %94
89: ; preds = %86
%90 = load ptr, ptr %9, align 8
%91 = load i32, ptr %18, align 4
%92 = call i32 @coord_transform(ptr noundef %90, i32 noundef %91)
store i32 %92, ptr %7, align 4
%93 = load i32, ptr %7, align 4
store i32 %93, ptr %3, align 4
br label %120
94: ; preds = %86, %83
%95 = call i32 @printf(ptr noundef @.str.16)
%96 = load i32, ptr %17, align 4
%97 = icmp ne i32 %96, 0
br i1 %97, label %98, label %105
98: ; preds = %94
%99 = load ptr, ptr %8, align 8
%100 = load ptr, ptr %9, align 8
%101 = load ptr, ptr %10, align 8
%102 = load ptr, ptr %11, align 8
%103 = load i32, ptr %18, align 4
%104 = call i32 @raster_transform(ptr noundef %99, ptr noundef %100, ptr noundef %101, ptr noundef %102, i32 noundef %103)
store i32 %104, ptr %7, align 4
br label %117
105: ; preds = %94
%106 = load ptr, ptr %8, align 8
%107 = load ptr, ptr %12, align 8
%108 = load ptr, ptr %15, align 8
%109 = load ptr, ptr %16, align 8
%110 = load ptr, ptr %9, align 8
%111 = load ptr, ptr %10, align 8
%112 = load ptr, ptr %14, align 8
%113 = load ptr, ptr %11, align 8
%114 = load ptr, ptr %13, align 8
%115 = load i32, ptr %18, align 4
%116 = call i32 @vector_transform(ptr noundef %106, ptr noundef %107, ptr noundef %108, ptr noundef %109, ptr noundef %110, ptr noundef %111, ptr noundef %112, ptr noundef %113, ptr noundef %114, i32 noundef %115)
store i32 %116, ptr %7, align 4
br label %117
117: ; preds = %105, %98
%118 = call i32 @printf(ptr noundef @.str.17)
%119 = load i32, ptr %7, align 4
store i32 %119, ptr %3, align 4
br label %120
120: ; preds = %117, %89, %55, %33, %21
%121 = load i32, ptr %3, align 4
ret i32 %121
}
declare i32 @printUsage(...) #1
declare i32 @getopt_long(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @coord_transform(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @raster_transform(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @vector_transform(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmp50q9iwo8.c"
target datalayout = "e-m:e-p270: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.option = type { ptr, i8, i32, i32 }
@.str = private unnamed_addr constant [18 x i8] c"transformed_layer\00", align 1
@main.long_options = internal global [13 x %struct.option] [%struct.option { ptr @.str.1, i8 -127, i32 0, i32 104 }, %struct.option { ptr @.str.2, i8 -128, i32 0, i32 105 }, %struct.option { ptr @.str.3, i8 -128, i32 0, i32 109 }, %struct.option { ptr @.str.4, i8 -128, i32 0, i32 111 }, %struct.option { ptr @.str.5, i8 -128, i32 0, i32 102 }, %struct.option { ptr @.str.6, i8 -127, i32 0, i32 114 }, %struct.option { ptr @.str.7, i8 -128, i32 0, i32 49 }, %struct.option { ptr @.str.8, i8 -128, i32 0, i32 115 }, %struct.option { ptr @.str.9, i8 -128, i32 0, i32 119 }, %struct.option { ptr @.str.10, i8 -128, i32 0, i32 50 }, %struct.option { ptr @.str.11, i8 -128, i32 0, i32 97 }, %struct.option { ptr @.str.12, i8 -127, i32 0, i32 98 }, %struct.option zeroinitializer], align 16
@.str.1 = private unnamed_addr constant [5 x i8] c"help\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"input\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"morphfile\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"output\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"format\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c"raster\00", align 1
@.str.7 = private unnamed_addr constant [12 x i8] c"input_layer\00", align 1
@.str.8 = private unnamed_addr constant [15 x i8] c"spatial_filter\00", align 1
@.str.9 = private unnamed_addr constant [12 x i8] c"attr_filter\00", align 1
@.str.10 = private unnamed_addr constant [13 x i8] c"output_layer\00", align 1
@.str.11 = private unnamed_addr constant [6 x i8] c"attrs\00", align 1
@.str.12 = private unnamed_addr constant [5 x i8] c"back\00", align 1
@.str.13 = private unnamed_addr constant [22 x i8] c"hi:m:o:f:r1:s:w:a:2:b\00", align 1
@optarg = external global ptr, align 8
@stderr = dso_local global i32 0, align 4
@.str.14 = private unnamed_addr constant [38 x i8] c"Error. You must supply a morph file.\0A\00", align 1
@.str.15 = private unnamed_addr constant [45 x i8] c"Error. Specify an input and an output file.\0A\00", align 1
@.str.16 = private unnamed_addr constant [28 x i8] c"r.morph.transform starting\0A\00", align 1
@.str.17 = private unnamed_addr constant [24 x i8] c"r.morph.transform done\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 ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = 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
%19 = load i32, ptr %4, align 4
%20 = icmp slt i32 %19, 2
br i1 %20, label %21, label %23
21: ; preds = %2
%22 = call i32 (...) @printUsage()
store i32 0, ptr %3, align 4
br label %124
23: ; preds = %2
store ptr null, ptr %12, align 8
store ptr null, ptr %10, align 8
store ptr null, ptr %9, align 8
store ptr null, ptr %8, align 8
store ptr null, ptr %16, align 8
store ptr null, ptr %15, align 8
store ptr null, ptr %14, align 8
store ptr null, ptr %11, align 8
store i32 0, ptr %17, align 4
store ptr @.str, ptr %13, align 8
store i32 0, ptr %18, align 4
%24 = load i32, ptr %4, align 4
%25 = load ptr, ptr %5, align 8
%26 = call i32 @getopt_long(i32 noundef %24, ptr noundef %25, ptr noundef @.str.13, ptr noundef @main.long_options, ptr noundef null)
store i32 %26, ptr %6, align 4
%27 = load i32, ptr %6, align 4
%28 = icmp eq i32 %27, -1
br i1 %28, label %29, label %.lr.ph
.lr.ph: ; preds = %23
br label %30
._crit_edge: ; preds = %58
br label %29
29: ; preds = %._crit_edge, %23
br label %64
30: ; preds = %.lr.ph, %58
%31 = load i32, ptr %6, align 4
switch i32 %31, label %55 [
i32 104, label %32
i32 105, label %34
i32 111, label %36
i32 109, label %38
i32 102, label %40
i32 49, label %42
i32 115, label %44
i32 97, label %46
i32 119, label %48
i32 50, label %50
i32 114, label %52
i32 98, label %53
i32 63, label %54
]
32: ; preds = %30
%33 = call i32 (...) @printUsage()
store i32 0, ptr %3, align 4
br label %124
34: ; preds = %30
%35 = load ptr, ptr @optarg, align 8
store ptr %35, ptr %8, align 8
br label %58
36: ; preds = %30
%37 = load ptr, ptr @optarg, align 8
store ptr %37, ptr %10, align 8
br label %58
38: ; preds = %30
%39 = load ptr, ptr @optarg, align 8
store ptr %39, ptr %9, align 8
br label %58
40: ; preds = %30
%41 = load ptr, ptr @optarg, align 8
store ptr %41, ptr %11, align 8
br label %58
42: ; preds = %30
%43 = load ptr, ptr @optarg, align 8
store ptr %43, ptr %12, align 8
br label %58
44: ; preds = %30
%45 = load ptr, ptr @optarg, align 8
store ptr %45, ptr %15, align 8
br label %58
46: ; preds = %30
%47 = load ptr, ptr @optarg, align 8
store ptr %47, ptr %14, align 8
br label %58
48: ; preds = %30
%49 = load ptr, ptr @optarg, align 8
store ptr %49, ptr %16, align 8
br label %58
50: ; preds = %30
%51 = load ptr, ptr @optarg, align 8
store ptr %51, ptr %13, align 8
br label %58
52: ; preds = %30
store i32 1, ptr %17, align 4
br label %58
53: ; preds = %30
store i32 1, ptr %18, align 4
br label %58
54: ; preds = %30
store i32 1, ptr %3, align 4
br label %124
55: ; preds = %30
%56 = call i32 (...) @printUsage()
%57 = call i32 (...) @abort() #3
unreachable
58: ; preds = %53, %52, %50, %48, %46, %44, %42, %40, %38, %36, %34
%59 = load i32, ptr %4, align 4
%60 = load ptr, ptr %5, align 8
%61 = call i32 @getopt_long(i32 noundef %59, ptr noundef %60, ptr noundef @.str.13, ptr noundef @main.long_options, ptr noundef null)
store i32 %61, ptr %6, align 4
%62 = load i32, ptr %6, align 4
%63 = icmp eq i32 %62, -1
br i1 %63, label %._crit_edge, label %30
64: ; preds = %29
%65 = load ptr, ptr %9, align 8
%66 = icmp eq ptr %65, null
br i1 %66, label %67, label %71
67: ; preds = %64
%68 = load i32, ptr @stderr, align 4
%69 = call i32 @fprintf(i32 noundef %68, ptr noundef @.str.14)
%70 = call i32 @exit(i32 noundef 1) #3
unreachable
71: ; preds = %64
%72 = load ptr, ptr %8, align 8
%73 = icmp eq ptr %72, null
br i1 %73, label %74, label %77
74: ; preds = %71
%75 = load ptr, ptr %10, align 8
%76 = icmp ne ptr %75, null
br i1 %76, label %83, label %77
77: ; preds = %74, %71
%78 = load ptr, ptr %8, align 8
%79 = icmp ne ptr %78, null
br i1 %79, label %80, label %87
80: ; preds = %77
%81 = load ptr, ptr %10, align 8
%82 = icmp eq ptr %81, null
br i1 %82, label %83, label %87
83: ; preds = %80, %74
%84 = load i32, ptr @stderr, align 4
%85 = call i32 @fprintf(i32 noundef %84, ptr noundef @.str.15)
%86 = call i32 @exit(i32 noundef 1) #3
unreachable
87: ; preds = %80, %77
%88 = load ptr, ptr %8, align 8
%89 = icmp eq ptr %88, null
br i1 %89, label %90, label %98
90: ; preds = %87
%91 = load ptr, ptr %10, align 8
%92 = icmp eq ptr %91, null
br i1 %92, label %93, label %98
93: ; preds = %90
%94 = load ptr, ptr %9, align 8
%95 = load i32, ptr %18, align 4
%96 = call i32 @coord_transform(ptr noundef %94, i32 noundef %95)
store i32 %96, ptr %7, align 4
%97 = load i32, ptr %7, align 4
store i32 %97, ptr %3, align 4
br label %124
98: ; preds = %90, %87
%99 = call i32 @printf(ptr noundef @.str.16)
%100 = load i32, ptr %17, align 4
%101 = icmp ne i32 %100, 0
br i1 %101, label %102, label %109
102: ; preds = %98
%103 = load ptr, ptr %8, align 8
%104 = load ptr, ptr %9, align 8
%105 = load ptr, ptr %10, align 8
%106 = load ptr, ptr %11, align 8
%107 = load i32, ptr %18, align 4
%108 = call i32 @raster_transform(ptr noundef %103, ptr noundef %104, ptr noundef %105, ptr noundef %106, i32 noundef %107)
store i32 %108, ptr %7, align 4
br label %121
109: ; preds = %98
%110 = load ptr, ptr %8, align 8
%111 = load ptr, ptr %12, align 8
%112 = load ptr, ptr %15, align 8
%113 = load ptr, ptr %16, align 8
%114 = load ptr, ptr %9, align 8
%115 = load ptr, ptr %10, align 8
%116 = load ptr, ptr %14, align 8
%117 = load ptr, ptr %11, align 8
%118 = load ptr, ptr %13, align 8
%119 = load i32, ptr %18, align 4
%120 = call i32 @vector_transform(ptr noundef %110, ptr noundef %111, ptr noundef %112, ptr noundef %113, ptr noundef %114, ptr noundef %115, ptr noundef %116, ptr noundef %117, ptr noundef %118, i32 noundef %119)
store i32 %120, ptr %7, align 4
br label %121
121: ; preds = %109, %102
%122 = call i32 @printf(ptr noundef @.str.17)
%123 = load i32, ptr %7, align 4
store i32 %123, ptr %3, align 4
br label %124
124: ; preds = %121, %93, %54, %32, %21
%125 = load i32, ptr %3, align 4
ret i32 %125
}
declare i32 @printUsage(...) #1
declare i32 @getopt_long(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @coord_transform(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @raster_transform(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @vector_transform(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmp5xp8gy92.c'
source_filename = "/tmp/tmp5xp8gy92.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @vpx_lpf_vertical_16_sse2(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca [128 x i8], align 8
%12 = alloca [2 x ptr], align 16
%13 = alloca [2 x ptr], align 16
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%14 = load ptr, ptr %6, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 -8
%16 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 0
store ptr %15, ptr %16, align 16
%17 = load ptr, ptr %6, align 8
%18 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 1
store ptr %17, ptr %18, align 8
%19 = getelementptr inbounds [128 x i8], ptr %11, i64 0, i64 0
%20 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 0
store ptr %19, ptr %20, align 16
%21 = getelementptr inbounds [128 x i8], ptr %11, i64 0, i64 0
%22 = getelementptr inbounds i8, ptr %21, i64 64
%23 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 1
store ptr %22, ptr %23, align 8
%24 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 0
%25 = load i32, ptr %7, align 4
%26 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 0
%27 = call i32 @transpose(ptr noundef %24, i32 noundef %25, ptr noundef %26, i32 noundef 8, i32 noundef 2)
%28 = getelementptr inbounds [128 x i8], ptr %11, i64 0, i64 0
%29 = getelementptr inbounds i8, ptr %28, i64 64
%30 = load ptr, ptr %8, align 8
%31 = load ptr, ptr %9, align 8
%32 = load ptr, ptr %10, align 8
%33 = call i32 @vpx_lpf_horizontal_16(ptr noundef %29, i32 noundef 8, ptr noundef %30, ptr noundef %31, ptr noundef %32)
%34 = getelementptr inbounds [128 x i8], ptr %11, i64 0, i64 0
%35 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 0
store ptr %34, ptr %35, align 16
%36 = getelementptr inbounds [128 x i8], ptr %11, i64 0, i64 0
%37 = getelementptr inbounds i8, ptr %36, i64 64
%38 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 1
store ptr %37, ptr %38, align 8
%39 = load ptr, ptr %6, align 8
%40 = getelementptr inbounds i8, ptr %39, i64 -8
%41 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 0
store ptr %40, ptr %41, align 16
%42 = load ptr, ptr %6, align 8
%43 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 1
store ptr %42, ptr %43, align 8
%44 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 0
%45 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 0
%46 = load i32, ptr %7, align 4
%47 = call i32 @transpose(ptr noundef %44, i32 noundef 8, ptr noundef %45, i32 noundef %46, i32 noundef 2)
ret void
}
declare i32 @transpose(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @vpx_lpf_horizontal_16(ptr noundef, 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/tmp5xp8gy92.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @vpx_lpf_vertical_16_sse2(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca [128 x i8], align 8
%12 = alloca [2 x ptr], align 16
%13 = alloca [2 x ptr], align 16
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%14 = load ptr, ptr %6, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 -8
%16 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 0
store ptr %15, ptr %16, align 16
%17 = load ptr, ptr %6, align 8
%18 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 1
store ptr %17, ptr %18, align 8
%19 = getelementptr inbounds [128 x i8], ptr %11, i64 0, i64 0
%20 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 0
store ptr %19, ptr %20, align 16
%21 = getelementptr inbounds [128 x i8], ptr %11, i64 0, i64 0
%22 = getelementptr inbounds i8, ptr %21, i64 64
%23 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 1
store ptr %22, ptr %23, align 8
%24 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 0
%25 = load i32, ptr %7, align 4
%26 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 0
%27 = call i32 @transpose(ptr noundef %24, i32 noundef %25, ptr noundef %26, i32 noundef 8, i32 noundef 2)
%28 = getelementptr inbounds [128 x i8], ptr %11, i64 0, i64 0
%29 = getelementptr inbounds i8, ptr %28, i64 64
%30 = load ptr, ptr %8, align 8
%31 = load ptr, ptr %9, align 8
%32 = load ptr, ptr %10, align 8
%33 = call i32 @vpx_lpf_horizontal_16(ptr noundef %29, i32 noundef 8, ptr noundef %30, ptr noundef %31, ptr noundef %32)
%34 = getelementptr inbounds [128 x i8], ptr %11, i64 0, i64 0
%35 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 0
store ptr %34, ptr %35, align 16
%36 = getelementptr inbounds [128 x i8], ptr %11, i64 0, i64 0
%37 = getelementptr inbounds i8, ptr %36, i64 64
%38 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 1
store ptr %37, ptr %38, align 8
%39 = load ptr, ptr %6, align 8
%40 = getelementptr inbounds i8, ptr %39, i64 -8
%41 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 0
store ptr %40, ptr %41, align 16
%42 = load ptr, ptr %6, align 8
%43 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 1
store ptr %42, ptr %43, align 8
%44 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 0
%45 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 0
%46 = load i32, ptr %7, align 4
%47 = call i32 @transpose(ptr noundef %44, i32 noundef 8, ptr noundef %45, i32 noundef %46, i32 noundef 2)
ret void
}
declare i32 @transpose(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @vpx_lpf_horizontal_16(ptr noundef, 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/tmpexps4aqh.c'
source_filename = "/tmp/tmpexps4aqh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"Isto eh um teste!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @error() #0 {
%1 = alloca ptr, align 8
%2 = call ptr @malloc(i32 noundef 20)
store ptr %2, ptr %1, align 8
%3 = load ptr, ptr %1, align 8
%4 = call i32 @strcpy(ptr noundef %3, ptr noundef @.str)
%5 = load ptr, ptr %1, align 8
ret ptr %5
}
declare ptr @malloc(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpexps4aqh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"Isto eh um teste!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @error() #0 {
%1 = alloca ptr, align 8
%2 = call ptr @malloc(i32 noundef 20)
store ptr %2, ptr %1, align 8
%3 = load ptr, ptr %1, align 8
%4 = call i32 @strcpy(ptr noundef %3, ptr noundef @.str)
%5 = load ptr, ptr %1, align 8
ret ptr %5
}
declare ptr @malloc(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5t04vsqn.c'
source_filename = "/tmp/tmp5t04vsqn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @primitive_bignum_log2() #0 {
%1 = call i32 (...) @dpeek()
%2 = call i32 @untag_object(i32 noundef %1)
%3 = call i32 @bignum_integer_length(i32 noundef %2)
%4 = call i32 @tag_bignum(i32 noundef %3)
%5 = call i32 @drepl(i32 noundef %4)
ret void
}
declare i32 @drepl(i32 noundef) #1
declare i32 @tag_bignum(i32 noundef) #1
declare i32 @bignum_integer_length(i32 noundef) #1
declare i32 @untag_object(i32 noundef) #1
declare i32 @dpeek(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5t04vsqn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @primitive_bignum_log2() #0 {
%1 = call i32 (...) @dpeek()
%2 = call i32 @untag_object(i32 noundef %1)
%3 = call i32 @bignum_integer_length(i32 noundef %2)
%4 = call i32 @tag_bignum(i32 noundef %3)
%5 = call i32 @drepl(i32 noundef %4)
ret void
}
declare i32 @drepl(i32 noundef) #1
declare i32 @tag_bignum(i32 noundef) #1
declare i32 @bignum_integer_length(i32 noundef) #1
declare i32 @untag_object(i32 noundef) #1
declare i32 @dpeek(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpi28lfb1n.c'
source_filename = "/tmp/tmpi28lfb1n.c"
target datalayout = "e-m:e-p270: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/tmpi28lfb1n.c"
target datalayout = "e-m:e-p270: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/tmpxkw58f5t.c'
source_filename = "/tmp/tmpxkw58f5t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fetchGet(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call ptr @fetchXGet(ptr noundef %5, ptr noundef null, ptr noundef %6)
ret ptr %7
}
declare ptr @fetchXGet(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/tmpxkw58f5t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fetchGet(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call ptr @fetchXGet(ptr noundef %5, ptr noundef null, ptr noundef %6)
ret ptr %7
}
declare ptr @fetchXGet(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/tmp69_hmf_q.c'
source_filename = "/tmp/tmp69_hmf_q.c"
target datalayout = "e-m:e-p270: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/tmp69_hmf_q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_78lwew2.c'
source_filename = "/tmp/tmp_78lwew2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"P5\0A%d %d\0A255\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"test_%010d.pgm\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"wb\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"a\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @write_pgm(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca [50 x i8], align 16
%8 = alloca [50 x i8], align 16
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 4
store ptr %12, ptr %9, align 8
%13 = load ptr, ptr %3, align 8
%14 = getelementptr inbounds i8, ptr %13, i64 8
store ptr %14, ptr %10, align 8
%15 = load ptr, ptr %9, align 8
%16 = load i32, ptr %15, align 4
%17 = load ptr, ptr %10, align 8
%18 = load i32, ptr %17, align 4
%19 = mul nsw i32 %16, %18
store i32 %19, ptr %5, align 4
%20 = load ptr, ptr %3, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 12
store ptr %21, ptr %3, align 8
%22 = getelementptr inbounds [50 x i8], ptr %7, i64 0, i64 0
%23 = load ptr, ptr %9, align 8
%24 = load i32, ptr %23, align 4
%25 = load ptr, ptr %10, align 8
%26 = load i32, ptr %25, align 4
%27 = call i32 (ptr, ptr, i32, ...) @sprintf(ptr noundef %22, ptr noundef @.str, i32 noundef %24, i32 noundef %26)
%28 = getelementptr inbounds [50 x i8], ptr %8, i64 0, i64 0
%29 = load i32, ptr %4, align 4
%30 = call i32 (ptr, ptr, i32, ...) @sprintf(ptr noundef %28, ptr noundef @.str.1, i32 noundef %29)
%31 = getelementptr inbounds [50 x i8], ptr %8, i64 0, i64 0
%32 = call ptr @fopen(ptr noundef %31, ptr noundef @.str.2)
store ptr %32, ptr %6, align 8
%33 = load ptr, ptr %6, align 8
%34 = load ptr, ptr %9, align 8
%35 = load i32, ptr %34, align 4
%36 = load ptr, ptr %10, align 8
%37 = load i32, ptr %36, align 4
%38 = call i32 @fprintf(ptr noundef %33, ptr noundef @.str, i32 noundef %35, i32 noundef %37)
%39 = load ptr, ptr %6, align 8
%40 = call i32 @fclose(ptr noundef %39)
%41 = getelementptr inbounds [50 x i8], ptr %8, i64 0, i64 0
%42 = call ptr @fopen(ptr noundef %41, ptr noundef @.str.3)
store ptr %42, ptr %6, align 8
%43 = load ptr, ptr %3, align 8
%44 = load i32, ptr %5, align 4
%45 = load ptr, ptr %6, align 8
%46 = call i32 @fwrite(ptr noundef %43, i32 noundef 1, i32 noundef %44, ptr noundef %45)
%47 = load ptr, ptr %6, align 8
%48 = call i32 @fclose(ptr noundef %47)
%49 = load ptr, ptr %3, align 8
%50 = load i32, ptr %5, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i8, ptr %49, i64 %51
ret ptr %52
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!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_78lwew2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"P5\0A%d %d\0A255\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"test_%010d.pgm\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"wb\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"a\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @write_pgm(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca [50 x i8], align 16
%8 = alloca [50 x i8], align 16
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 4
store ptr %12, ptr %9, align 8
%13 = load ptr, ptr %3, align 8
%14 = getelementptr inbounds i8, ptr %13, i64 8
store ptr %14, ptr %10, align 8
%15 = load ptr, ptr %9, align 8
%16 = load i32, ptr %15, align 4
%17 = load ptr, ptr %10, align 8
%18 = load i32, ptr %17, align 4
%19 = mul nsw i32 %16, %18
store i32 %19, ptr %5, align 4
%20 = load ptr, ptr %3, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 12
store ptr %21, ptr %3, align 8
%22 = getelementptr inbounds [50 x i8], ptr %7, i64 0, i64 0
%23 = load ptr, ptr %9, align 8
%24 = load i32, ptr %23, align 4
%25 = load ptr, ptr %10, align 8
%26 = load i32, ptr %25, align 4
%27 = call i32 (ptr, ptr, i32, ...) @sprintf(ptr noundef %22, ptr noundef @.str, i32 noundef %24, i32 noundef %26)
%28 = getelementptr inbounds [50 x i8], ptr %8, i64 0, i64 0
%29 = load i32, ptr %4, align 4
%30 = call i32 (ptr, ptr, i32, ...) @sprintf(ptr noundef %28, ptr noundef @.str.1, i32 noundef %29)
%31 = getelementptr inbounds [50 x i8], ptr %8, i64 0, i64 0
%32 = call ptr @fopen(ptr noundef %31, ptr noundef @.str.2)
store ptr %32, ptr %6, align 8
%33 = load ptr, ptr %6, align 8
%34 = load ptr, ptr %9, align 8
%35 = load i32, ptr %34, align 4
%36 = load ptr, ptr %10, align 8
%37 = load i32, ptr %36, align 4
%38 = call i32 @fprintf(ptr noundef %33, ptr noundef @.str, i32 noundef %35, i32 noundef %37)
%39 = load ptr, ptr %6, align 8
%40 = call i32 @fclose(ptr noundef %39)
%41 = getelementptr inbounds [50 x i8], ptr %8, i64 0, i64 0
%42 = call ptr @fopen(ptr noundef %41, ptr noundef @.str.3)
store ptr %42, ptr %6, align 8
%43 = load ptr, ptr %3, align 8
%44 = load i32, ptr %5, align 4
%45 = load ptr, ptr %6, align 8
%46 = call i32 @fwrite(ptr noundef %43, i32 noundef 1, i32 noundef %44, ptr noundef %45)
%47 = load ptr, ptr %6, align 8
%48 = call i32 @fclose(ptr noundef %47)
%49 = load ptr, ptr %3, align 8
%50 = load i32, ptr %5, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i8, ptr %49, i64 %51
ret ptr %52
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9jofq7g3.c'
source_filename = "/tmp/tmp9jofq7g3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"Unsorted:\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"Sorted:\0A\00", align 1
@.str.4 = private unnamed_addr constant [21 x i8] c"Array is sorted: %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"TRUE\00", align 1
@.str.6 = private unnamed_addr constant [6 x i8] c"FALSE\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 [100 x i32], align 16
store i32 0, ptr %1, align 4
%4 = call i64 @time(ptr noundef null)
%5 = trunc i64 %4 to i32
%6 = call i32 @srand(i32 noundef %5)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %2, align 4
br label %8
8: ; preds = %21, %0
%9 = load i32, ptr %2, align 4
%10 = icmp slt i32 %9, 100
br i1 %10, label %11, label %24
11: ; preds = %8
%12 = call i32 @randInt(i32 noundef 1, i32 noundef 10)
%13 = load i32, ptr %2, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 %14
store i32 %12, ptr %15, align 4
%16 = load i32, ptr %2, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 %17
%19 = load i32, ptr %18, align 4
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %19)
br label %21
21: ; preds = %11
%22 = load i32, ptr %2, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %2, align 4
br label %8, !llvm.loop !6
24: ; preds = %8
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%27 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 0
%28 = call i32 @sortAsc(ptr noundef %27)
store i32 0, ptr %2, align 4
br label %29
29: ; preds = %38, %24
%30 = load i32, ptr %2, align 4
%31 = icmp slt i32 %30, 100
br i1 %31, label %32, label %41
32: ; preds = %29
%33 = load i32, ptr %2, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 %34
%36 = load i32, ptr %35, align 4
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %36)
br label %38
38: ; preds = %32
%39 = load i32, ptr %2, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %2, align 4
br label %29, !llvm.loop !8
41: ; preds = %29
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%43 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 0
%44 = call i64 @verifyOrder(ptr noundef %43)
%45 = icmp ne i64 %44, 0
%46 = zext i1 %45 to i64
%47 = select i1 %45, ptr @.str.5, ptr @.str.6
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %47)
ret i32 0
}
declare i32 @srand(i32 noundef) #1
declare i64 @time(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @randInt(i32 noundef, i32 noundef) #1
declare i32 @sortAsc(ptr noundef) #1
declare i64 @verifyOrder(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp9jofq7g3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"Unsorted:\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"Sorted:\0A\00", align 1
@.str.4 = private unnamed_addr constant [21 x i8] c"Array is sorted: %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"TRUE\00", align 1
@.str.6 = private unnamed_addr constant [6 x i8] c"FALSE\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 [100 x i32], align 16
store i32 0, ptr %1, align 4
%4 = call i64 @time(ptr noundef null)
%5 = trunc i64 %4 to i32
%6 = call i32 @srand(i32 noundef %5)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp slt i32 %8, 100
br i1 %9, label %.lr.ph, label %25
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %20
%11 = call i32 @randInt(i32 noundef 1, i32 noundef 10)
%12 = load i32, ptr %2, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 %13
store i32 %11, ptr %14, align 4
%15 = load i32, ptr %2, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 %16
%18 = load i32, ptr %17, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %18)
br label %20
20: ; preds = %10
%21 = load i32, ptr %2, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %2, align 4
%23 = load i32, ptr %2, align 4
%24 = icmp slt i32 %23, 100
br i1 %24, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %25
25: ; preds = %._crit_edge, %0
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%28 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 0
%29 = call i32 @sortAsc(ptr noundef %28)
store i32 0, ptr %2, align 4
%30 = load i32, ptr %2, align 4
%31 = icmp slt i32 %30, 100
br i1 %31, label %.lr.ph2, label %43
.lr.ph2: ; preds = %25
br label %32
32: ; preds = %.lr.ph2, %38
%33 = load i32, ptr %2, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 %34
%36 = load i32, ptr %35, align 4
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %36)
br label %38
38: ; preds = %32
%39 = load i32, ptr %2, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %2, align 4
%41 = load i32, ptr %2, align 4
%42 = icmp slt i32 %41, 100
br i1 %42, label %32, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %38
br label %43
43: ; preds = %._crit_edge3, %25
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%45 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 0
%46 = call i64 @verifyOrder(ptr noundef %45)
%47 = icmp ne i64 %46, 0
%48 = zext i1 %47 to i64
%49 = select i1 %47, ptr @.str.5, ptr @.str.6
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %49)
ret i32 0
}
declare i32 @srand(i32 noundef) #1
declare i64 @time(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @randInt(i32 noundef, i32 noundef) #1
declare i32 @sortAsc(ptr noundef) #1
declare i64 @verifyOrder(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp597dj7xo.c'
source_filename = "/tmp/tmp597dj7xo.c"
target datalayout = "e-m:e-p270: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/tmp597dj7xo.c"
target datalayout = "e-m:e-p270: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/tmpmu0g2br5.c'
source_filename = "/tmp/tmpmu0g2br5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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": \00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [8 x i8] c"%s%s%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @psignal(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store ptr @.str, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %8, label %13
8: ; preds = %2
%9 = load ptr, ptr %4, align 8
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 0
br i1 %12, label %16, label %13
13: ; preds = %8, %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 2
store ptr %15, ptr %5, align 8
store ptr %15, ptr %4, align 8
br label %16
16: ; preds = %13, %8
%17 = load i32, ptr @stderr, align 4
%18 = load ptr, ptr %4, align 8
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %3, align 4
%21 = call i32 @strsignal(i32 noundef %20)
%22 = call i32 @fprintf(i32 noundef %17, ptr noundef @.str.1, ptr noundef %18, ptr noundef %19, i32 noundef %21)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strsignal(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/tmpmu0g2br5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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": \00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [8 x i8] c"%s%s%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @psignal(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store ptr @.str, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %8, label %13
8: ; preds = %2
%9 = load ptr, ptr %4, align 8
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 0
br i1 %12, label %16, label %13
13: ; preds = %8, %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 2
store ptr %15, ptr %5, align 8
store ptr %15, ptr %4, align 8
br label %16
16: ; preds = %13, %8
%17 = load i32, ptr @stderr, align 4
%18 = load ptr, ptr %4, align 8
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %3, align 4
%21 = call i32 @strsignal(i32 noundef %20)
%22 = call i32 @fprintf(i32 noundef %17, ptr noundef @.str.1, ptr noundef %18, ptr noundef %19, i32 noundef %21)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strsignal(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/tmppjprppaz.c'
source_filename = "/tmp/tmppjprppaz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [58 x i8] c"Tek sayi mi cift sayimi anlamak icin bir tamsayi giriniz:\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"Girdiginiz sayi bir tek sayidir.\00", align 1
@.str.3 = private unnamed_addr constant [34 x i8] c"Girdiginiz sayi bir cift sayidir.\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 @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%6 = load i32, ptr %2, align 4
%7 = srem i32 %6, 2
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %12
10: ; preds = %0
%11 = call i32 @printf(ptr noundef @.str.2)
br label %12
12: ; preds = %10, %0
%13 = load i32, ptr %3, align 4
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call i32 @printf(ptr noundef @.str.3)
br label %17
17: ; preds = %15, %12
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppjprppaz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [58 x i8] c"Tek sayi mi cift sayimi anlamak icin bir tamsayi giriniz:\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"Girdiginiz sayi bir tek sayidir.\00", align 1
@.str.3 = private unnamed_addr constant [34 x i8] c"Girdiginiz sayi bir cift sayidir.\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 @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%6 = load i32, ptr %2, align 4
%7 = srem i32 %6, 2
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %12
10: ; preds = %0
%11 = call i32 @printf(ptr noundef @.str.2)
br label %12
12: ; preds = %10, %0
%13 = load i32, ptr %3, align 4
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call i32 @printf(ptr noundef @.str.3)
br label %17
17: ; preds = %15, %12
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"}
|
; ModuleID = '/tmp/tmpegux3cg2.c'
source_filename = "/tmp/tmpegux3cg2.c"
target datalayout = "e-m:e-p270: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/tmpegux3cg2.c"
target datalayout = "e-m:e-p270: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/tmpitp34ote.c'
source_filename = "/tmp/tmpitp34ote.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @serial_fifo_empty(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = add i32 %3, 5
%5 = call i32 @inb(i32 noundef %4)
%6 = and i32 %5, 32
ret i32 %6
}
declare i32 @inb(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/tmpitp34ote.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @serial_fifo_empty(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = add i32 %3, 5
%5 = call i32 @inb(i32 noundef %4)
%6 = and i32 %5, 32
ret i32 %6
}
declare i32 @inb(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/tmpejw0khgk.c'
source_filename = "/tmp/tmpejw0khgk.c"
target datalayout = "e-m:e-p270: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/tmpejw0khgk.c"
target datalayout = "e-m:e-p270: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/tmpi71eezcx.c'
source_filename = "/tmp/tmpi71eezcx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PerturbLambda(ptr noundef %0, double noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca double, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store double %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store i32 %4, ptr %11, align 4
store i32 %5, ptr %12, align 4
%17 = load i32, ptr %12, align 4
%18 = sext i32 %17 to i64
%19 = mul i64 %18, 8
%20 = trunc i64 %19 to i32
%21 = call i64 @malloc(i32 noundef %20)
%22 = inttoptr i64 %21 to ptr
store ptr %22, ptr %14, align 8
%23 = load i32, ptr %11, align 4
%24 = sext i32 %23 to i64
%25 = mul i64 %24, 8
%26 = trunc i64 %25 to i32
%27 = call i64 @malloc(i32 noundef %26)
%28 = inttoptr i64 %27 to ptr
store ptr %28, ptr %15, align 8
store i32 0, ptr %16, align 4
br label %29
29: ; preds = %55, %6
%30 = load i32, ptr %16, align 4
%31 = icmp eq i32 %30, 0
br i1 %31, label %32, label %65
32: ; preds = %29
store i32 0, ptr %13, align 4
br label %33
33: ; preds = %52, %32
%34 = load i32, ptr %13, align 4
%35 = load i32, ptr %11, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %55
37: ; preds = %33
%38 = load ptr, ptr %7, align 8
%39 = load i32, ptr %13, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds double, ptr %38, i64 %40
%42 = load double, ptr %41, align 8
%43 = load double, ptr %8, align 8
%44 = fmul double %43, 2.000000e+00
%45 = call double (...) @genrand_real1()
%46 = fsub double %45, 5.000000e-01
%47 = call double @llvm.fmuladd.f64(double %44, double %46, double %42)
%48 = load ptr, ptr %15, align 8
%49 = load i32, ptr %13, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds double, ptr %48, i64 %50
store double %47, ptr %51, align 8
br label %52
52: ; preds = %37
%53 = load i32, ptr %13, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %13, align 4
br label %33, !llvm.loop !6
55: ; preds = %33
%56 = load ptr, ptr %14, align 8
%57 = load ptr, ptr %15, align 8
%58 = load ptr, ptr %9, align 8
%59 = load ptr, ptr %10, align 8
%60 = load i32, ptr %11, align 4
%61 = load i32, ptr %12, align 4
%62 = call i32 @getx(ptr noundef %56, ptr noundef %57, ptr noundef %58, ptr noundef %59, i32 noundef %60, i32 noundef %61)
store i32 %62, ptr %16, align 4
%63 = load double, ptr %8, align 8
%64 = fdiv double %63, 2.000000e+00
store double %64, ptr %8, align 8
br label %29, !llvm.loop !8
65: ; preds = %29
store i32 0, ptr %13, align 4
br label %66
66: ; preds = %80, %65
%67 = load i32, ptr %13, align 4
%68 = load i32, ptr %11, align 4
%69 = icmp slt i32 %67, %68
br i1 %69, label %70, label %83
70: ; preds = %66
%71 = load ptr, ptr %15, align 8
%72 = load i32, ptr %13, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds double, ptr %71, i64 %73
%75 = load double, ptr %74, align 8
%76 = load ptr, ptr %7, align 8
%77 = load i32, ptr %13, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds double, ptr %76, i64 %78
store double %75, ptr %79, align 8
br label %80
80: ; preds = %70
%81 = load i32, ptr %13, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %13, align 4
br label %66, !llvm.loop !9
83: ; preds = %66
%84 = load ptr, ptr %14, align 8
%85 = call i32 @free(ptr noundef %84)
%86 = load ptr, ptr %15, align 8
%87 = call i32 @free(ptr noundef %86)
ret void
}
declare i64 @malloc(i32 noundef) #1
declare double @genrand_real1(...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare i32 @getx(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 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" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi71eezcx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PerturbLambda(ptr noundef %0, double noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca double, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store double %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store i32 %4, ptr %11, align 4
store i32 %5, ptr %12, align 4
%17 = load i32, ptr %12, align 4
%18 = sext i32 %17 to i64
%19 = mul i64 %18, 8
%20 = trunc i64 %19 to i32
%21 = call i64 @malloc(i32 noundef %20)
%22 = inttoptr i64 %21 to ptr
store ptr %22, ptr %14, align 8
%23 = load i32, ptr %11, align 4
%24 = sext i32 %23 to i64
%25 = mul i64 %24, 8
%26 = trunc i64 %25 to i32
%27 = call i64 @malloc(i32 noundef %26)
%28 = inttoptr i64 %27 to ptr
store ptr %28, ptr %15, align 8
store i32 0, ptr %16, align 4
%29 = load i32, ptr %16, align 4
%30 = icmp eq i32 %29, 0
br i1 %30, label %.lr.ph2, label %68
.lr.ph2: ; preds = %6
br label %31
31: ; preds = %.lr.ph2, %56
store i32 0, ptr %13, align 4
%32 = load i32, ptr %13, align 4
%33 = load i32, ptr %11, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %.lr.ph, label %56
.lr.ph: ; preds = %31
br label %35
35: ; preds = %.lr.ph, %50
%36 = load ptr, ptr %7, align 8
%37 = load i32, ptr %13, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds double, ptr %36, i64 %38
%40 = load double, ptr %39, align 8
%41 = load double, ptr %8, align 8
%42 = fmul double %41, 2.000000e+00
%43 = call double (...) @genrand_real1()
%44 = fsub double %43, 5.000000e-01
%45 = call double @llvm.fmuladd.f64(double %42, double %44, double %40)
%46 = load ptr, ptr %15, align 8
%47 = load i32, ptr %13, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds double, ptr %46, i64 %48
store double %45, ptr %49, align 8
br label %50
50: ; preds = %35
%51 = load i32, ptr %13, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %13, align 4
%53 = load i32, ptr %13, align 4
%54 = load i32, ptr %11, align 4
%55 = icmp slt i32 %53, %54
br i1 %55, label %35, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %50
br label %56
56: ; preds = %._crit_edge, %31
%57 = load ptr, ptr %14, align 8
%58 = load ptr, ptr %15, align 8
%59 = load ptr, ptr %9, align 8
%60 = load ptr, ptr %10, align 8
%61 = load i32, ptr %11, align 4
%62 = load i32, ptr %12, align 4
%63 = call i32 @getx(ptr noundef %57, ptr noundef %58, ptr noundef %59, ptr noundef %60, i32 noundef %61, i32 noundef %62)
store i32 %63, ptr %16, align 4
%64 = load double, ptr %8, align 8
%65 = fdiv double %64, 2.000000e+00
store double %65, ptr %8, align 8
%66 = load i32, ptr %16, align 4
%67 = icmp eq i32 %66, 0
br i1 %67, label %31, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %56
br label %68
68: ; preds = %._crit_edge3, %6
store i32 0, ptr %13, align 4
%69 = load i32, ptr %13, align 4
%70 = load i32, ptr %11, align 4
%71 = icmp slt i32 %69, %70
br i1 %71, label %.lr.ph5, label %88
.lr.ph5: ; preds = %68
br label %72
72: ; preds = %.lr.ph5, %82
%73 = load ptr, ptr %15, align 8
%74 = load i32, ptr %13, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds double, ptr %73, i64 %75
%77 = load double, ptr %76, align 8
%78 = load ptr, ptr %7, align 8
%79 = load i32, ptr %13, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds double, ptr %78, i64 %80
store double %77, ptr %81, align 8
br label %82
82: ; preds = %72
%83 = load i32, ptr %13, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %13, align 4
%85 = load i32, ptr %13, align 4
%86 = load i32, ptr %11, align 4
%87 = icmp slt i32 %85, %86
br i1 %87, label %72, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %82
br label %88
88: ; preds = %._crit_edge6, %68
%89 = load ptr, ptr %14, align 8
%90 = call i32 @free(ptr noundef %89)
%91 = load ptr, ptr %15, align 8
%92 = call i32 @free(ptr noundef %91)
ret void
}
declare i64 @malloc(i32 noundef) #1
declare double @genrand_real1(...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare i32 @getx(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 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" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpugm7in93.c'
source_filename = "/tmp/tmpugm7in93.c"
target datalayout = "e-m:e-p270: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/tmpugm7in93.c"
target datalayout = "e-m:e-p270: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/tmprcsnt92y.c'
source_filename = "/tmp/tmprcsnt92y.c"
target datalayout = "e-m:e-p270: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/tmprcsnt92y.c"
target datalayout = "e-m:e-p270: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/tmpsou5ia4o.c'
source_filename = "/tmp/tmpsou5ia4o.c"
target datalayout = "e-m:e-p270: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/tmpsou5ia4o.c"
target datalayout = "e-m:e-p270: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/tmpbust5_l8.c'
source_filename = "/tmp/tmpbust5_l8.c"
target datalayout = "e-m:e-p270: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/tmpbust5_l8.c"
target datalayout = "e-m:e-p270: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/tmpwgfxr44w.c'
source_filename = "/tmp/tmpwgfxr44w.c"
target datalayout = "e-m:e-p270: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/tmpwgfxr44w.c"
target datalayout = "e-m:e-p270: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/tmpuoj6_90v.c'
source_filename = "/tmp/tmpuoj6_90v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @text_importfree(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuoj6_90v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @text_importfree(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp84056xnt.c'
source_filename = "/tmp/tmp84056xnt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PlaySound(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 @PlaySoundExt(i32 noundef %3, i32 noundef 128, i32 noundef 127, i32 noundef 0)
ret void
}
declare i32 @PlaySoundExt(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp84056xnt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PlaySound(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 @PlaySoundExt(i32 noundef %3, i32 noundef 128, i32 noundef 127, i32 noundef 0)
ret void
}
declare i32 @PlaySoundExt(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsvjoyusp.c'
source_filename = "/tmp/tmpsvjoyusp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"a\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @f0() #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/tmpsvjoyusp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"a\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @f0() #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/tmp5at583xk.c'
source_filename = "/tmp/tmp5at583xk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mars_init() #0 {
%1 = call i32 @Hw32xInit(i32 noundef 1, i32 noundef 0)
ret void
}
declare i32 @Hw32xInit(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/tmp5at583xk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mars_init() #0 {
%1 = call i32 @Hw32xInit(i32 noundef 1, i32 noundef 0)
ret void
}
declare i32 @Hw32xInit(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/tmp8y7smh5e.c'
source_filename = "/tmp/tmp8y7smh5e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"Library not found\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = load ptr, ptr %5, align 8
%8 = call i64 @init_library(ptr noundef %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %18
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 3
%13 = load ptr, ptr %12, align 8
%14 = call i32 @atoi(ptr noundef %13)
%15 = call i32 @someSecretFunctionPrototype(i32 noundef %14)
store i32 %15, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %16)
br label %20
18: ; preds = %2
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %20
20: ; preds = %18, %10
ret i32 0
}
declare i64 @init_library(ptr noundef) #1
declare i32 @someSecretFunctionPrototype(i32 noundef) #1
declare i32 @atoi(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/tmp8y7smh5e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"Library not found\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = load ptr, ptr %5, align 8
%8 = call i64 @init_library(ptr noundef %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %18
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 3
%13 = load ptr, ptr %12, align 8
%14 = call i32 @atoi(ptr noundef %13)
%15 = call i32 @someSecretFunctionPrototype(i32 noundef %14)
store i32 %15, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %16)
br label %20
18: ; preds = %2
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %20
20: ; preds = %18, %10
ret i32 0
}
declare i64 @init_library(ptr noundef) #1
declare i32 @someSecretFunctionPrototype(i32 noundef) #1
declare i32 @atoi(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/tmpjdwxjjpc.c'
source_filename = "/tmp/tmpjdwxjjpc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EAGAIN = dso_local global i64 0, align 8
@errno = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjdwxjjpc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EAGAIN = dso_local global i64 0, align 8
@errno = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpeky2zpt3.c'
source_filename = "/tmp/tmpeky2zpt3.c"
target datalayout = "e-m:e-p270: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 [101 x i8] c"Usage:\0A %s [opts] <source>\0A %s [opts] <source> <layout>\0A %s [opts] <source> <rows> <cols>\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [604 x i8] c"Options:\0A -c cycle limit; prevent the emulator from running\0A for more than this many cycles\0A -h help; show this text\0A -l layout string; layout is given as a string\0A instead of a file name\0A -n numeric; change the default layout to use\0A numeric io instead of ascii, only\0A relevant when not using a custom layout\0A -q quiet; decrease verbosity by one level,\0A may be provided multiple times\0A -v verbose; increase verbosity by one level,\0A may be provided multiple times\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4, ptr noundef %5, ptr noundef %6)
%8 = load i32, ptr @stderr, align 4
%9 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %8, ptr noundef @.str.1)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeky2zpt3.c"
target datalayout = "e-m:e-p270: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 [101 x i8] c"Usage:\0A %s [opts] <source>\0A %s [opts] <source> <layout>\0A %s [opts] <source> <rows> <cols>\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [604 x i8] c"Options:\0A -c cycle limit; prevent the emulator from running\0A for more than this many cycles\0A -h help; show this text\0A -l layout string; layout is given as a string\0A instead of a file name\0A -n numeric; change the default layout to use\0A numeric io instead of ascii, only\0A relevant when not using a custom layout\0A -q quiet; decrease verbosity by one level,\0A may be provided multiple times\0A -v verbose; increase verbosity by one level,\0A may be provided multiple times\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4, ptr noundef %5, ptr noundef %6)
%8 = load i32, ptr @stderr, align 4
%9 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %8, ptr noundef @.str.1)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4ffic_iv.c'
source_filename = "/tmp/tmp4ffic_iv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%i\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%26 = load i32, ptr %7, align 4
%27 = call i32 @mpz_init_set_ui(i32 noundef %26, i32 noundef 0)
%28 = load i32, ptr %8, align 4
%29 = call i32 @mpz_init_set_ui(i32 noundef %28, i32 noundef 0)
%30 = load i32, ptr %9, align 4
%31 = call i32 @mpz_init_set_ui(i32 noundef %30, i32 noundef 0)
%32 = load i32, ptr %10, align 4
%33 = call i32 @mpz_init_set_ui(i32 noundef %32, i32 noundef 0)
%34 = load i32, ptr %11, align 4
%35 = call i32 @mpz_init_set_ui(i32 noundef %34, i32 noundef 0)
%36 = load i32, ptr %12, align 4
%37 = call i32 @mpz_init_set_ui(i32 noundef %36, i32 noundef 0)
%38 = load i32, ptr %13, align 4
%39 = call i32 @mpz_init(i32 noundef %38)
%40 = load i32, ptr %14, align 4
%41 = call i32 @mpz_init_set_ui(i32 noundef %40, i32 noundef 1)
store i32 2, ptr %15, align 4
br label %42
42: ; preds = %169, %2
%43 = load i32, ptr %15, align 4
%44 = icmp sle i32 %43, 1000
br i1 %44, label %45, label %172
45: ; preds = %42
%46 = load i32, ptr %13, align 4
%47 = load i32, ptr %15, align 4
%48 = call i32 @mpz_set_ui(i32 noundef %46, i32 noundef %47)
%49 = load i32, ptr %13, align 4
%50 = call i64 @mpz_perfect_square_p(i32 noundef %49)
%51 = icmp ne i64 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %45
br label %169
53: ; preds = %45
%54 = load i32, ptr %16, align 4
%55 = call i32 @mpz_init(i32 noundef %54)
%56 = load i32, ptr %16, align 4
%57 = load i32, ptr %13, align 4
%58 = call i32 @mpz_sqrt(i32 noundef %56, i32 noundef %57)
%59 = load i32, ptr %17, align 4
%60 = call i32 @mpz_init_set_ui(i32 noundef %59, i32 noundef 0)
%61 = load i32, ptr %18, align 4
%62 = call i32 @mpz_init_set_ui(i32 noundef %61, i32 noundef 1)
%63 = load i32, ptr %19, align 4
%64 = load i32, ptr %16, align 4
%65 = call i32 @mpz_init_set(i32 noundef %63, i32 noundef %64)
%66 = load i32, ptr %20, align 4
%67 = load i32, ptr %19, align 4
%68 = call i32 @mpz_init_set(i32 noundef %66, i32 noundef %67)
%69 = load i32, ptr %21, align 4
%70 = call i32 @mpz_init_set_ui(i32 noundef %69, i32 noundef 1)
%71 = load i32, ptr %22, align 4
%72 = call i32 @mpz_init(i32 noundef %71)
%73 = load i32, ptr %23, align 4
%74 = call i32 @mpz_init_set_ui(i32 noundef %73, i32 noundef 1)
%75 = load i32, ptr %24, align 4
%76 = call i32 @mpz_init_set_ui(i32 noundef %75, i32 noundef 0)
%77 = load i32, ptr %25, align 4
%78 = call i32 @mpz_init(i32 noundef %77)
br label %79
79: ; preds = %53, %101
%80 = load i32, ptr %8, align 4
%81 = load i32, ptr %20, align 4
%82 = load i32, ptr %20, align 4
%83 = call i32 @mpz_mul(i32 noundef %80, i32 noundef %81, i32 noundef %82)
%84 = load i32, ptr %9, align 4
%85 = load i32, ptr %23, align 4
%86 = load i32, ptr %23, align 4
%87 = call i32 @mpz_mul(i32 noundef %84, i32 noundef %85, i32 noundef %86)
%88 = load i32, ptr %10, align 4
%89 = load i32, ptr %9, align 4
%90 = load i32, ptr %15, align 4
%91 = call i32 @mpz_mul_ui(i32 noundef %88, i32 noundef %89, i32 noundef %90)
%92 = load i32, ptr %11, align 4
%93 = load i32, ptr %8, align 4
%94 = load i32, ptr %10, align 4
%95 = call i32 @mpz_sub(i32 noundef %92, i32 noundef %93, i32 noundef %94)
%96 = load i32, ptr %11, align 4
%97 = load i32, ptr %14, align 4
%98 = call i64 @mpz_cmp(i32 noundef %96, i32 noundef %97)
%99 = icmp ne i64 %98, 0
br i1 %99, label %101, label %100
100: ; preds = %79
br label %158
101: ; preds = %79
%102 = load i32, ptr %8, align 4
%103 = load i32, ptr %18, align 4
%104 = load i32, ptr %19, align 4
%105 = call i32 @mpz_mul(i32 noundef %102, i32 noundef %103, i32 noundef %104)
%106 = load i32, ptr %17, align 4
%107 = load i32, ptr %8, align 4
%108 = load i32, ptr %17, align 4
%109 = call i32 @mpz_sub(i32 noundef %106, i32 noundef %107, i32 noundef %108)
%110 = load i32, ptr %8, align 4
%111 = load i32, ptr %17, align 4
%112 = load i32, ptr %17, align 4
%113 = call i32 @mpz_mul(i32 noundef %110, i32 noundef %111, i32 noundef %112)
%114 = load i32, ptr %11, align 4
%115 = load i32, ptr %15, align 4
%116 = load i32, ptr %8, align 4
%117 = call i32 @mpz_ui_sub(i32 noundef %114, i32 noundef %115, i32 noundef %116)
%118 = load i32, ptr %18, align 4
%119 = load i32, ptr %11, align 4
%120 = load i32, ptr %18, align 4
%121 = call i32 @mpz_div(i32 noundef %118, i32 noundef %119, i32 noundef %120)
%122 = load i32, ptr %12, align 4
%123 = load i32, ptr %16, align 4
%124 = load i32, ptr %17, align 4
%125 = call i32 @mpz_add(i32 noundef %122, i32 noundef %123, i32 noundef %124)
%126 = load i32, ptr %19, align 4
%127 = load i32, ptr %12, align 4
%128 = load i32, ptr %18, align 4
%129 = call i32 @mpz_div(i32 noundef %126, i32 noundef %127, i32 noundef %128)
%130 = load i32, ptr %22, align 4
%131 = load i32, ptr %21, align 4
%132 = call i32 @mpz_set(i32 noundef %130, i32 noundef %131)
%133 = load i32, ptr %21, align 4
%134 = load i32, ptr %20, align 4
%135 = call i32 @mpz_set(i32 noundef %133, i32 noundef %134)
%136 = load i32, ptr %25, align 4
%137 = load i32, ptr %24, align 4
%138 = call i32 @mpz_set(i32 noundef %136, i32 noundef %137)
%139 = load i32, ptr %24, align 4
%140 = load i32, ptr %23, align 4
%141 = call i32 @mpz_set(i32 noundef %139, i32 noundef %140)
%142 = load i32, ptr %8, align 4
%143 = load i32, ptr %19, align 4
%144 = load i32, ptr %21, align 4
%145 = call i32 @mpz_mul(i32 noundef %142, i32 noundef %143, i32 noundef %144)
%146 = load i32, ptr %20, align 4
%147 = load i32, ptr %8, align 4
%148 = load i32, ptr %22, align 4
%149 = call i32 @mpz_add(i32 noundef %146, i32 noundef %147, i32 noundef %148)
%150 = load i32, ptr %8, align 4
%151 = load i32, ptr %19, align 4
%152 = load i32, ptr %24, align 4
%153 = call i32 @mpz_mul(i32 noundef %150, i32 noundef %151, i32 noundef %152)
%154 = load i32, ptr %23, align 4
%155 = load i32, ptr %8, align 4
%156 = load i32, ptr %25, align 4
%157 = call i32 @mpz_add(i32 noundef %154, i32 noundef %155, i32 noundef %156)
br label %79
158: ; preds = %100
%159 = load i32, ptr %20, align 4
%160 = load i32, ptr %7, align 4
%161 = call i64 @mpz_cmp(i32 noundef %159, i32 noundef %160)
%162 = icmp sgt i64 %161, 0
br i1 %162, label %163, label %168
163: ; preds = %158
%164 = load i32, ptr %7, align 4
%165 = load i32, ptr %20, align 4
%166 = call i32 @mpz_set(i32 noundef %164, i32 noundef %165)
%167 = load i32, ptr %15, align 4
store i32 %167, ptr %6, align 4
br label %168
168: ; preds = %163, %158
br label %169
169: ; preds = %168, %52
%170 = load i32, ptr %15, align 4
%171 = add nsw i32 %170, 1
store i32 %171, ptr %15, align 4
br label %42, !llvm.loop !6
172: ; preds = %42
%173 = load i32, ptr %6, align 4
%174 = call i32 @printf(ptr noundef @.str, i32 noundef %173)
ret i32 0
}
declare i32 @mpz_init_set_ui(i32 noundef, i32 noundef) #1
declare i32 @mpz_init(i32 noundef) #1
declare i32 @mpz_set_ui(i32 noundef, i32 noundef) #1
declare i64 @mpz_perfect_square_p(i32 noundef) #1
declare i32 @mpz_sqrt(i32 noundef, i32 noundef) #1
declare i32 @mpz_init_set(i32 noundef, i32 noundef) #1
declare i32 @mpz_mul(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpz_mul_ui(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpz_sub(i32 noundef, i32 noundef, i32 noundef) #1
declare i64 @mpz_cmp(i32 noundef, i32 noundef) #1
declare i32 @mpz_ui_sub(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpz_div(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpz_add(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpz_set(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4ffic_iv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%i\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%26 = load i32, ptr %7, align 4
%27 = call i32 @mpz_init_set_ui(i32 noundef %26, i32 noundef 0)
%28 = load i32, ptr %8, align 4
%29 = call i32 @mpz_init_set_ui(i32 noundef %28, i32 noundef 0)
%30 = load i32, ptr %9, align 4
%31 = call i32 @mpz_init_set_ui(i32 noundef %30, i32 noundef 0)
%32 = load i32, ptr %10, align 4
%33 = call i32 @mpz_init_set_ui(i32 noundef %32, i32 noundef 0)
%34 = load i32, ptr %11, align 4
%35 = call i32 @mpz_init_set_ui(i32 noundef %34, i32 noundef 0)
%36 = load i32, ptr %12, align 4
%37 = call i32 @mpz_init_set_ui(i32 noundef %36, i32 noundef 0)
%38 = load i32, ptr %13, align 4
%39 = call i32 @mpz_init(i32 noundef %38)
%40 = load i32, ptr %14, align 4
%41 = call i32 @mpz_init_set_ui(i32 noundef %40, i32 noundef 1)
store i32 2, ptr %15, align 4
%42 = load i32, ptr %15, align 4
%43 = icmp sle i32 %42, 1000
br i1 %43, label %.lr.ph, label %173
.lr.ph: ; preds = %2
br label %44
44: ; preds = %.lr.ph, %168
%45 = load i32, ptr %13, align 4
%46 = load i32, ptr %15, align 4
%47 = call i32 @mpz_set_ui(i32 noundef %45, i32 noundef %46)
%48 = load i32, ptr %13, align 4
%49 = call i64 @mpz_perfect_square_p(i32 noundef %48)
%50 = icmp ne i64 %49, 0
br i1 %50, label %51, label %52
51: ; preds = %44
br label %168
52: ; preds = %44
%53 = load i32, ptr %16, align 4
%54 = call i32 @mpz_init(i32 noundef %53)
%55 = load i32, ptr %16, align 4
%56 = load i32, ptr %13, align 4
%57 = call i32 @mpz_sqrt(i32 noundef %55, i32 noundef %56)
%58 = load i32, ptr %17, align 4
%59 = call i32 @mpz_init_set_ui(i32 noundef %58, i32 noundef 0)
%60 = load i32, ptr %18, align 4
%61 = call i32 @mpz_init_set_ui(i32 noundef %60, i32 noundef 1)
%62 = load i32, ptr %19, align 4
%63 = load i32, ptr %16, align 4
%64 = call i32 @mpz_init_set(i32 noundef %62, i32 noundef %63)
%65 = load i32, ptr %20, align 4
%66 = load i32, ptr %19, align 4
%67 = call i32 @mpz_init_set(i32 noundef %65, i32 noundef %66)
%68 = load i32, ptr %21, align 4
%69 = call i32 @mpz_init_set_ui(i32 noundef %68, i32 noundef 1)
%70 = load i32, ptr %22, align 4
%71 = call i32 @mpz_init(i32 noundef %70)
%72 = load i32, ptr %23, align 4
%73 = call i32 @mpz_init_set_ui(i32 noundef %72, i32 noundef 1)
%74 = load i32, ptr %24, align 4
%75 = call i32 @mpz_init_set_ui(i32 noundef %74, i32 noundef 0)
%76 = load i32, ptr %25, align 4
%77 = call i32 @mpz_init(i32 noundef %76)
br label %78
78: ; preds = %100, %52
%79 = load i32, ptr %8, align 4
%80 = load i32, ptr %20, align 4
%81 = load i32, ptr %20, align 4
%82 = call i32 @mpz_mul(i32 noundef %79, i32 noundef %80, i32 noundef %81)
%83 = load i32, ptr %9, align 4
%84 = load i32, ptr %23, align 4
%85 = load i32, ptr %23, align 4
%86 = call i32 @mpz_mul(i32 noundef %83, i32 noundef %84, i32 noundef %85)
%87 = load i32, ptr %10, align 4
%88 = load i32, ptr %9, align 4
%89 = load i32, ptr %15, align 4
%90 = call i32 @mpz_mul_ui(i32 noundef %87, i32 noundef %88, i32 noundef %89)
%91 = load i32, ptr %11, align 4
%92 = load i32, ptr %8, align 4
%93 = load i32, ptr %10, align 4
%94 = call i32 @mpz_sub(i32 noundef %91, i32 noundef %92, i32 noundef %93)
%95 = load i32, ptr %11, align 4
%96 = load i32, ptr %14, align 4
%97 = call i64 @mpz_cmp(i32 noundef %95, i32 noundef %96)
%98 = icmp ne i64 %97, 0
br i1 %98, label %100, label %99
99: ; preds = %78
br label %157
100: ; preds = %78
%101 = load i32, ptr %8, align 4
%102 = load i32, ptr %18, align 4
%103 = load i32, ptr %19, align 4
%104 = call i32 @mpz_mul(i32 noundef %101, i32 noundef %102, i32 noundef %103)
%105 = load i32, ptr %17, align 4
%106 = load i32, ptr %8, align 4
%107 = load i32, ptr %17, align 4
%108 = call i32 @mpz_sub(i32 noundef %105, i32 noundef %106, i32 noundef %107)
%109 = load i32, ptr %8, align 4
%110 = load i32, ptr %17, align 4
%111 = load i32, ptr %17, align 4
%112 = call i32 @mpz_mul(i32 noundef %109, i32 noundef %110, i32 noundef %111)
%113 = load i32, ptr %11, align 4
%114 = load i32, ptr %15, align 4
%115 = load i32, ptr %8, align 4
%116 = call i32 @mpz_ui_sub(i32 noundef %113, i32 noundef %114, i32 noundef %115)
%117 = load i32, ptr %18, align 4
%118 = load i32, ptr %11, align 4
%119 = load i32, ptr %18, align 4
%120 = call i32 @mpz_div(i32 noundef %117, i32 noundef %118, i32 noundef %119)
%121 = load i32, ptr %12, align 4
%122 = load i32, ptr %16, align 4
%123 = load i32, ptr %17, align 4
%124 = call i32 @mpz_add(i32 noundef %121, i32 noundef %122, i32 noundef %123)
%125 = load i32, ptr %19, align 4
%126 = load i32, ptr %12, align 4
%127 = load i32, ptr %18, align 4
%128 = call i32 @mpz_div(i32 noundef %125, i32 noundef %126, i32 noundef %127)
%129 = load i32, ptr %22, align 4
%130 = load i32, ptr %21, align 4
%131 = call i32 @mpz_set(i32 noundef %129, i32 noundef %130)
%132 = load i32, ptr %21, align 4
%133 = load i32, ptr %20, align 4
%134 = call i32 @mpz_set(i32 noundef %132, i32 noundef %133)
%135 = load i32, ptr %25, align 4
%136 = load i32, ptr %24, align 4
%137 = call i32 @mpz_set(i32 noundef %135, i32 noundef %136)
%138 = load i32, ptr %24, align 4
%139 = load i32, ptr %23, align 4
%140 = call i32 @mpz_set(i32 noundef %138, i32 noundef %139)
%141 = load i32, ptr %8, align 4
%142 = load i32, ptr %19, align 4
%143 = load i32, ptr %21, align 4
%144 = call i32 @mpz_mul(i32 noundef %141, i32 noundef %142, i32 noundef %143)
%145 = load i32, ptr %20, align 4
%146 = load i32, ptr %8, align 4
%147 = load i32, ptr %22, align 4
%148 = call i32 @mpz_add(i32 noundef %145, i32 noundef %146, i32 noundef %147)
%149 = load i32, ptr %8, align 4
%150 = load i32, ptr %19, align 4
%151 = load i32, ptr %24, align 4
%152 = call i32 @mpz_mul(i32 noundef %149, i32 noundef %150, i32 noundef %151)
%153 = load i32, ptr %23, align 4
%154 = load i32, ptr %8, align 4
%155 = load i32, ptr %25, align 4
%156 = call i32 @mpz_add(i32 noundef %153, i32 noundef %154, i32 noundef %155)
br label %78
157: ; preds = %99
%158 = load i32, ptr %20, align 4
%159 = load i32, ptr %7, align 4
%160 = call i64 @mpz_cmp(i32 noundef %158, i32 noundef %159)
%161 = icmp sgt i64 %160, 0
br i1 %161, label %162, label %167
162: ; preds = %157
%163 = load i32, ptr %7, align 4
%164 = load i32, ptr %20, align 4
%165 = call i32 @mpz_set(i32 noundef %163, i32 noundef %164)
%166 = load i32, ptr %15, align 4
store i32 %166, ptr %6, align 4
br label %167
167: ; preds = %162, %157
br label %168
168: ; preds = %167, %51
%169 = load i32, ptr %15, align 4
%170 = add nsw i32 %169, 1
store i32 %170, ptr %15, align 4
%171 = load i32, ptr %15, align 4
%172 = icmp sle i32 %171, 1000
br i1 %172, label %44, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %168
br label %173
173: ; preds = %._crit_edge, %2
%174 = load i32, ptr %6, align 4
%175 = call i32 @printf(ptr noundef @.str, i32 noundef %174)
ret i32 0
}
declare i32 @mpz_init_set_ui(i32 noundef, i32 noundef) #1
declare i32 @mpz_init(i32 noundef) #1
declare i32 @mpz_set_ui(i32 noundef, i32 noundef) #1
declare i64 @mpz_perfect_square_p(i32 noundef) #1
declare i32 @mpz_sqrt(i32 noundef, i32 noundef) #1
declare i32 @mpz_init_set(i32 noundef, i32 noundef) #1
declare i32 @mpz_mul(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpz_mul_ui(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpz_sub(i32 noundef, i32 noundef, i32 noundef) #1
declare i64 @mpz_cmp(i32 noundef, i32 noundef) #1
declare i32 @mpz_ui_sub(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpz_div(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpz_add(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpz_set(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpms77x50n.c'
source_filename = "/tmp/tmpms77x50n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [64 x i8] c"\0AUpper triangular Coefficient matrix and augmented matrix is :\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c" | %f \00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%f \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.4 = private unnamed_addr constant [42 x i8] c"\0ASolutions of the Given Equations are :-\0A\00", align 1
@.str.5 = private unnamed_addr constant [12 x i8] c"x[%d] = %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @solve(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca ptr, align 8
%13 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%14 = load i32, ptr %5, align 4
%15 = zext i32 %14 to i64
%16 = call ptr @llvm.stacksave()
store ptr %16, ptr %12, align 8
%17 = alloca float, i64 %15, align 16
store i64 %15, ptr %13, align 8
store i32 0, ptr %9, align 4
br label %18
18: ; preds = %93, %3
%19 = load i32, ptr %9, align 4
%20 = load i32, ptr %5, align 4
%21 = sub nsw i32 %20, 1
%22 = icmp slt i32 %19, %21
br i1 %22, label %23, label %96
23: ; preds = %18
%24 = load i32, ptr %6, align 4
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %31
26: ; preds = %23
%27 = load ptr, ptr %4, align 8
%28 = load i32, ptr %9, align 4
%29 = load i32, ptr %5, align 4
%30 = call i32 @pivoting(ptr noundef %27, i32 noundef %28, i32 noundef %29)
br label %31
31: ; preds = %26, %23
%32 = load i32, ptr %9, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %7, align 4
br label %34
34: ; preds = %89, %31
%35 = load i32, ptr %7, align 4
%36 = load i32, ptr %5, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %38, label %92
38: ; preds = %34
%39 = load ptr, ptr %4, align 8
%40 = load i32, ptr %7, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds ptr, ptr %39, i64 %41
%43 = load ptr, ptr %42, align 8
%44 = load i32, ptr %9, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds float, ptr %43, i64 %45
%47 = load float, ptr %46, align 4
%48 = load ptr, ptr %4, align 8
%49 = load i32, ptr %9, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds ptr, ptr %48, i64 %50
%52 = load ptr, ptr %51, align 8
%53 = load i32, ptr %9, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds float, ptr %52, i64 %54
%56 = load float, ptr %55, align 4
%57 = fdiv float %47, %56
store float %57, ptr %10, align 4
%58 = load i32, ptr %9, align 4
store i32 %58, ptr %8, align 4
br label %59
59: ; preds = %85, %38
%60 = load i32, ptr %8, align 4
%61 = load i32, ptr %5, align 4
%62 = icmp sle i32 %60, %61
br i1 %62, label %63, label %88
63: ; preds = %59
%64 = load float, ptr %10, align 4
%65 = load ptr, ptr %4, align 8
%66 = load i32, ptr %9, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds ptr, ptr %65, i64 %67
%69 = load ptr, ptr %68, align 8
%70 = load i32, ptr %8, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds float, ptr %69, i64 %71
%73 = load float, ptr %72, align 4
%74 = load ptr, ptr %4, align 8
%75 = load i32, ptr %7, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds ptr, ptr %74, i64 %76
%78 = load ptr, ptr %77, align 8
%79 = load i32, ptr %8, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds float, ptr %78, i64 %80
%82 = load float, ptr %81, align 4
%83 = fneg float %64
%84 = call float @llvm.fmuladd.f32(float %83, float %73, float %82)
store float %84, ptr %81, align 4
br label %85
85: ; preds = %63
%86 = load i32, ptr %8, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %8, align 4
br label %59, !llvm.loop !6
88: ; preds = %59
br label %89
89: ; preds = %88
%90 = load i32, ptr %7, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %7, align 4
br label %34, !llvm.loop !8
92: ; preds = %34
br label %93
93: ; preds = %92
%94 = load i32, ptr %9, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %9, align 4
br label %18, !llvm.loop !9
96: ; preds = %18
%97 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %8, align 4
br label %98
98: ; preds = %141, %96
%99 = load i32, ptr %8, align 4
%100 = load i32, ptr %5, align 4
%101 = icmp slt i32 %99, %100
br i1 %101, label %102, label %144
102: ; preds = %98
store i32 0, ptr %7, align 4
br label %103
103: ; preds = %136, %102
%104 = load i32, ptr %7, align 4
%105 = load i32, ptr %5, align 4
%106 = icmp sle i32 %104, %105
br i1 %106, label %107, label %139
107: ; preds = %103
%108 = load i32, ptr %7, align 4
%109 = load i32, ptr %5, align 4
%110 = icmp eq i32 %108, %109
br i1 %110, label %111, label %123
111: ; preds = %107
%112 = load ptr, ptr %4, align 8
%113 = load i32, ptr %8, align 4
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds ptr, ptr %112, i64 %114
%116 = load ptr, ptr %115, align 8
%117 = load i32, ptr %7, align 4
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds float, ptr %116, i64 %118
%120 = load float, ptr %119, align 4
%121 = fpext float %120 to double
%122 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %121)
br label %135
123: ; preds = %107
%124 = load ptr, ptr %4, align 8
%125 = load i32, ptr %8, align 4
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds ptr, ptr %124, i64 %126
%128 = load ptr, ptr %127, align 8
%129 = load i32, ptr %7, align 4
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds float, ptr %128, i64 %130
%132 = load float, ptr %131, align 4
%133 = fpext float %132 to double
%134 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %133)
br label %135
135: ; preds = %123, %111
br label %136
136: ; preds = %135
%137 = load i32, ptr %7, align 4
%138 = add nsw i32 %137, 1
store i32 %138, ptr %7, align 4
br label %103, !llvm.loop !10
139: ; preds = %103
%140 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %141
141: ; preds = %139
%142 = load i32, ptr %8, align 4
%143 = add nsw i32 %142, 1
store i32 %143, ptr %8, align 4
br label %98, !llvm.loop !11
144: ; preds = %98
%145 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%146 = load i32, ptr %5, align 4
%147 = sub nsw i32 %146, 1
store i32 %147, ptr %7, align 4
br label %148
148: ; preds = %202, %144
%149 = load i32, ptr %7, align 4
%150 = icmp sge i32 %149, 0
br i1 %150, label %151, label %205
151: ; preds = %148
store float 0.000000e+00, ptr %11, align 4
%152 = load i32, ptr %7, align 4
%153 = add nsw i32 %152, 1
store i32 %153, ptr %8, align 4
br label %154
154: ; preds = %174, %151
%155 = load i32, ptr %8, align 4
%156 = load i32, ptr %5, align 4
%157 = icmp slt i32 %155, %156
br i1 %157, label %158, label %177
158: ; preds = %154
%159 = load ptr, ptr %4, align 8
%160 = load i32, ptr %7, align 4
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds ptr, ptr %159, i64 %161
%163 = load ptr, ptr %162, align 8
%164 = load i32, ptr %8, align 4
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds float, ptr %163, i64 %165
%167 = load float, ptr %166, align 4
%168 = load i32, ptr %8, align 4
%169 = sext i32 %168 to i64
%170 = getelementptr inbounds float, ptr %17, i64 %169
%171 = load float, ptr %170, align 4
%172 = load float, ptr %11, align 4
%173 = call float @llvm.fmuladd.f32(float %167, float %171, float %172)
store float %173, ptr %11, align 4
br label %174
174: ; preds = %158
%175 = load i32, ptr %8, align 4
%176 = add nsw i32 %175, 1
store i32 %176, ptr %8, align 4
br label %154, !llvm.loop !12
177: ; preds = %154
%178 = load ptr, ptr %4, align 8
%179 = load i32, ptr %7, align 4
%180 = sext i32 %179 to i64
%181 = getelementptr inbounds ptr, ptr %178, i64 %180
%182 = load ptr, ptr %181, align 8
%183 = load i32, ptr %5, align 4
%184 = sext i32 %183 to i64
%185 = getelementptr inbounds float, ptr %182, i64 %184
%186 = load float, ptr %185, align 4
%187 = load float, ptr %11, align 4
%188 = fsub float %186, %187
%189 = load ptr, ptr %4, align 8
%190 = load i32, ptr %7, align 4
%191 = sext i32 %190 to i64
%192 = getelementptr inbounds ptr, ptr %189, i64 %191
%193 = load ptr, ptr %192, align 8
%194 = load i32, ptr %7, align 4
%195 = sext i32 %194 to i64
%196 = getelementptr inbounds float, ptr %193, i64 %195
%197 = load float, ptr %196, align 4
%198 = fdiv float %188, %197
%199 = load i32, ptr %7, align 4
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds float, ptr %17, i64 %200
store float %198, ptr %201, align 4
br label %202
202: ; preds = %177
%203 = load i32, ptr %7, align 4
%204 = add nsw i32 %203, -1
store i32 %204, ptr %7, align 4
br label %148, !llvm.loop !13
205: ; preds = %148
store i32 0, ptr %7, align 4
br label %206
206: ; preds = %218, %205
%207 = load i32, ptr %7, align 4
%208 = load i32, ptr %5, align 4
%209 = icmp slt i32 %207, %208
br i1 %209, label %210, label %221
210: ; preds = %206
%211 = load i32, ptr %7, align 4
%212 = load i32, ptr %7, align 4
%213 = sext i32 %212 to i64
%214 = getelementptr inbounds float, ptr %17, i64 %213
%215 = load float, ptr %214, align 4
%216 = fpext float %215 to double
%217 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %211, double noundef %216)
br label %218
218: ; preds = %210
%219 = load i32, ptr %7, align 4
%220 = add nsw i32 %219, 1
store i32 %220, ptr %7, align 4
br label %206, !llvm.loop !14
221: ; preds = %206
%222 = load ptr, ptr %12, align 8
call void @llvm.stackrestore(ptr %222)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @pivoting(ptr noundef, i32 noundef, i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3
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}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpms77x50n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [64 x i8] c"\0AUpper triangular Coefficient matrix and augmented matrix is :\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c" | %f \00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%f \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.4 = private unnamed_addr constant [42 x i8] c"\0ASolutions of the Given Equations are :-\0A\00", align 1
@.str.5 = private unnamed_addr constant [12 x i8] c"x[%d] = %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @solve(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca ptr, align 8
%13 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%14 = load i32, ptr %5, align 4
%15 = zext i32 %14 to i64
%16 = call ptr @llvm.stacksave()
store ptr %16, ptr %12, align 8
%17 = alloca float, i64 %15, align 16
store i64 %15, ptr %13, align 8
store i32 0, ptr %9, align 4
%18 = load i32, ptr %9, align 4
%19 = load i32, ptr %5, align 4
%20 = sub nsw i32 %19, 1
%21 = icmp slt i32 %18, %20
br i1 %21, label %.lr.ph5, label %103
.lr.ph5: ; preds = %3
br label %22
22: ; preds = %.lr.ph5, %96
%23 = load i32, ptr %6, align 4
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %30
25: ; preds = %22
%26 = load ptr, ptr %4, align 8
%27 = load i32, ptr %9, align 4
%28 = load i32, ptr %5, align 4
%29 = call i32 @pivoting(ptr noundef %26, i32 noundef %27, i32 noundef %28)
br label %30
30: ; preds = %25, %22
%31 = load i32, ptr %9, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %7, align 4
%33 = load i32, ptr %7, align 4
%34 = load i32, ptr %5, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %.lr.ph2, label %95
.lr.ph2: ; preds = %30
br label %36
36: ; preds = %.lr.ph2, %89
%37 = load ptr, ptr %4, align 8
%38 = load i32, ptr %7, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds ptr, ptr %37, i64 %39
%41 = load ptr, ptr %40, align 8
%42 = load i32, ptr %9, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds float, ptr %41, i64 %43
%45 = load float, ptr %44, align 4
%46 = load ptr, ptr %4, align 8
%47 = load i32, ptr %9, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds ptr, ptr %46, i64 %48
%50 = load ptr, ptr %49, align 8
%51 = load i32, ptr %9, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds float, ptr %50, i64 %52
%54 = load float, ptr %53, align 4
%55 = fdiv float %45, %54
store float %55, ptr %10, align 4
%56 = load i32, ptr %9, align 4
store i32 %56, ptr %8, align 4
%57 = load i32, ptr %8, align 4
%58 = load i32, ptr %5, align 4
%59 = icmp sle i32 %57, %58
br i1 %59, label %.lr.ph, label %88
.lr.ph: ; preds = %36
br label %60
60: ; preds = %.lr.ph, %82
%61 = load float, ptr %10, align 4
%62 = load ptr, ptr %4, align 8
%63 = load i32, ptr %9, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds ptr, ptr %62, i64 %64
%66 = load ptr, ptr %65, align 8
%67 = load i32, ptr %8, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds float, ptr %66, i64 %68
%70 = load float, ptr %69, align 4
%71 = load ptr, ptr %4, align 8
%72 = load i32, ptr %7, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds ptr, ptr %71, i64 %73
%75 = load ptr, ptr %74, align 8
%76 = load i32, ptr %8, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds float, ptr %75, i64 %77
%79 = load float, ptr %78, align 4
%80 = fneg float %61
%81 = call float @llvm.fmuladd.f32(float %80, float %70, float %79)
store float %81, ptr %78, align 4
br label %82
82: ; preds = %60
%83 = load i32, ptr %8, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %8, align 4
%85 = load i32, ptr %8, align 4
%86 = load i32, ptr %5, align 4
%87 = icmp sle i32 %85, %86
br i1 %87, label %60, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %82
br label %88
88: ; preds = %._crit_edge, %36
br label %89
89: ; preds = %88
%90 = load i32, ptr %7, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %7, align 4
%92 = load i32, ptr %7, align 4
%93 = load i32, ptr %5, align 4
%94 = icmp slt i32 %92, %93
br i1 %94, label %36, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %89
br label %95
95: ; preds = %._crit_edge3, %30
br label %96
96: ; preds = %95
%97 = load i32, ptr %9, align 4
%98 = add nsw i32 %97, 1
store i32 %98, ptr %9, align 4
%99 = load i32, ptr %9, align 4
%100 = load i32, ptr %5, align 4
%101 = sub nsw i32 %100, 1
%102 = icmp slt i32 %99, %101
br i1 %102, label %22, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %96
br label %103
103: ; preds = %._crit_edge6, %3
%104 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %8, align 4
%105 = load i32, ptr %8, align 4
%106 = load i32, ptr %5, align 4
%107 = icmp slt i32 %105, %106
br i1 %107, label %.lr.ph11, label %155
.lr.ph11: ; preds = %103
br label %108
108: ; preds = %.lr.ph11, %149
store i32 0, ptr %7, align 4
%109 = load i32, ptr %7, align 4
%110 = load i32, ptr %5, align 4
%111 = icmp sle i32 %109, %110
br i1 %111, label %.lr.ph8, label %147
.lr.ph8: ; preds = %108
br label %112
112: ; preds = %.lr.ph8, %141
%113 = load i32, ptr %7, align 4
%114 = load i32, ptr %5, align 4
%115 = icmp eq i32 %113, %114
br i1 %115, label %116, label %128
116: ; preds = %112
%117 = load ptr, ptr %4, align 8
%118 = load i32, ptr %8, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds ptr, ptr %117, i64 %119
%121 = load ptr, ptr %120, align 8
%122 = load i32, ptr %7, align 4
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds float, ptr %121, i64 %123
%125 = load float, ptr %124, align 4
%126 = fpext float %125 to double
%127 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %126)
br label %140
128: ; preds = %112
%129 = load ptr, ptr %4, align 8
%130 = load i32, ptr %8, align 4
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds ptr, ptr %129, i64 %131
%133 = load ptr, ptr %132, align 8
%134 = load i32, ptr %7, align 4
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds float, ptr %133, i64 %135
%137 = load float, ptr %136, align 4
%138 = fpext float %137 to double
%139 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %138)
br label %140
140: ; preds = %128, %116
br label %141
141: ; preds = %140
%142 = load i32, ptr %7, align 4
%143 = add nsw i32 %142, 1
store i32 %143, ptr %7, align 4
%144 = load i32, ptr %7, align 4
%145 = load i32, ptr %5, align 4
%146 = icmp sle i32 %144, %145
br i1 %146, label %112, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %141
br label %147
147: ; preds = %._crit_edge9, %108
%148 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %149
149: ; preds = %147
%150 = load i32, ptr %8, align 4
%151 = add nsw i32 %150, 1
store i32 %151, ptr %8, align 4
%152 = load i32, ptr %8, align 4
%153 = load i32, ptr %5, align 4
%154 = icmp slt i32 %152, %153
br i1 %154, label %108, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %149
br label %155
155: ; preds = %._crit_edge12, %103
%156 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%157 = load i32, ptr %5, align 4
%158 = sub nsw i32 %157, 1
store i32 %158, ptr %7, align 4
%159 = load i32, ptr %7, align 4
%160 = icmp sge i32 %159, 0
br i1 %160, label %.lr.ph17, label %219
.lr.ph17: ; preds = %155
br label %161
161: ; preds = %.lr.ph17, %214
store float 0.000000e+00, ptr %11, align 4
%162 = load i32, ptr %7, align 4
%163 = add nsw i32 %162, 1
store i32 %163, ptr %8, align 4
%164 = load i32, ptr %8, align 4
%165 = load i32, ptr %5, align 4
%166 = icmp slt i32 %164, %165
br i1 %166, label %.lr.ph14, label %189
.lr.ph14: ; preds = %161
br label %167
167: ; preds = %.lr.ph14, %183
%168 = load ptr, ptr %4, align 8
%169 = load i32, ptr %7, align 4
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds ptr, ptr %168, i64 %170
%172 = load ptr, ptr %171, align 8
%173 = load i32, ptr %8, align 4
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds float, ptr %172, i64 %174
%176 = load float, ptr %175, align 4
%177 = load i32, ptr %8, align 4
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds float, ptr %17, i64 %178
%180 = load float, ptr %179, align 4
%181 = load float, ptr %11, align 4
%182 = call float @llvm.fmuladd.f32(float %176, float %180, float %181)
store float %182, ptr %11, align 4
br label %183
183: ; preds = %167
%184 = load i32, ptr %8, align 4
%185 = add nsw i32 %184, 1
store i32 %185, ptr %8, align 4
%186 = load i32, ptr %8, align 4
%187 = load i32, ptr %5, align 4
%188 = icmp slt i32 %186, %187
br i1 %188, label %167, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %183
br label %189
189: ; preds = %._crit_edge15, %161
%190 = load ptr, ptr %4, align 8
%191 = load i32, ptr %7, align 4
%192 = sext i32 %191 to i64
%193 = getelementptr inbounds ptr, ptr %190, i64 %192
%194 = load ptr, ptr %193, align 8
%195 = load i32, ptr %5, align 4
%196 = sext i32 %195 to i64
%197 = getelementptr inbounds float, ptr %194, i64 %196
%198 = load float, ptr %197, align 4
%199 = load float, ptr %11, align 4
%200 = fsub float %198, %199
%201 = load ptr, ptr %4, align 8
%202 = load i32, ptr %7, align 4
%203 = sext i32 %202 to i64
%204 = getelementptr inbounds ptr, ptr %201, i64 %203
%205 = load ptr, ptr %204, align 8
%206 = load i32, ptr %7, align 4
%207 = sext i32 %206 to i64
%208 = getelementptr inbounds float, ptr %205, i64 %207
%209 = load float, ptr %208, align 4
%210 = fdiv float %200, %209
%211 = load i32, ptr %7, align 4
%212 = sext i32 %211 to i64
%213 = getelementptr inbounds float, ptr %17, i64 %212
store float %210, ptr %213, align 4
br label %214
214: ; preds = %189
%215 = load i32, ptr %7, align 4
%216 = add nsw i32 %215, -1
store i32 %216, ptr %7, align 4
%217 = load i32, ptr %7, align 4
%218 = icmp sge i32 %217, 0
br i1 %218, label %161, label %._crit_edge18, !llvm.loop !13
._crit_edge18: ; preds = %214
br label %219
219: ; preds = %._crit_edge18, %155
store i32 0, ptr %7, align 4
%220 = load i32, ptr %7, align 4
%221 = load i32, ptr %5, align 4
%222 = icmp slt i32 %220, %221
br i1 %222, label %.lr.ph20, label %237
.lr.ph20: ; preds = %219
br label %223
223: ; preds = %.lr.ph20, %231
%224 = load i32, ptr %7, align 4
%225 = load i32, ptr %7, align 4
%226 = sext i32 %225 to i64
%227 = getelementptr inbounds float, ptr %17, i64 %226
%228 = load float, ptr %227, align 4
%229 = fpext float %228 to double
%230 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %224, double noundef %229)
br label %231
231: ; preds = %223
%232 = load i32, ptr %7, align 4
%233 = add nsw i32 %232, 1
store i32 %233, ptr %7, align 4
%234 = load i32, ptr %7, align 4
%235 = load i32, ptr %5, align 4
%236 = icmp slt i32 %234, %235
br i1 %236, label %223, label %._crit_edge21, !llvm.loop !14
._crit_edge21: ; preds = %231
br label %237
237: ; preds = %._crit_edge21, %219
%238 = load ptr, ptr %12, align 8
call void @llvm.stackrestore(ptr %238)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @pivoting(ptr noundef, i32 noundef, i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3
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}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
|
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.