llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
|---|---|
; ModuleID = '/tmp/tmpzjmdohha.c'
source_filename = "/tmp/tmpzjmdohha.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"q = %lf, qNT(q) = %lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
store i32 0, ptr %1, align 4
store double 0.000000e+00, ptr %2, align 8
br label %3
3: ; preds = %11, %0
%4 = load double, ptr %2, align 8
%5 = fcmp ole double %4, 1.000000e+02
br i1 %5, label %6, label %14
6: ; preds = %3
%7 = load double, ptr %2, align 8
%8 = load double, ptr %2, align 8
%9 = call i32 @qNT(double noundef %8)
%10 = call i32 @printf(ptr noundef @.str, double noundef %7, i32 noundef %9)
br label %11
11: ; preds = %6
%12 = load double, ptr %2, align 8
%13 = fadd double %12, 5.000000e+00
store double %13, ptr %2, align 8
br label %3, !llvm.loop !6
14: ; preds = %3
ret i32 0
}
declare i32 @printf(ptr noundef, double noundef, i32 noundef) #1
declare i32 @qNT(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzjmdohha.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"q = %lf, qNT(q) = %lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
store i32 0, ptr %1, align 4
store double 0.000000e+00, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = fcmp ole double %3, 1.000000e+02
br i1 %4, label %.lr.ph, label %15
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %10
%6 = load double, ptr %2, align 8
%7 = load double, ptr %2, align 8
%8 = call i32 @qNT(double noundef %7)
%9 = call i32 @printf(ptr noundef @.str, double noundef %6, i32 noundef %8)
br label %10
10: ; preds = %5
%11 = load double, ptr %2, align 8
%12 = fadd double %11, 5.000000e+00
store double %12, ptr %2, align 8
%13 = load double, ptr %2, align 8
%14 = fcmp ole double %13, 1.000000e+02
br i1 %14, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %15
15: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @printf(ptr noundef, double noundef, i32 noundef) #1
declare i32 @qNT(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpe1x3m7mr.c'
source_filename = "/tmp/tmpe1x3m7mr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%s \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
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 i32, ptr %4, align 4
%8 = sub nsw i32 %7, 1
store i32 %8, ptr %6, align 4
br label %9
9: ; preds = %19, %2
%10 = load i32, ptr %6, align 4
%11 = icmp sgt i32 %10, 0
br i1 %11, label %12, label %22
12: ; preds = %9
%13 = load ptr, ptr %5, align 8
%14 = load i32, ptr %6, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds ptr, ptr %13, i64 %15
%17 = load ptr, ptr %16, align 8
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %17)
br label %19
19: ; preds = %12
%20 = load i32, ptr %6, align 4
%21 = add nsw i32 %20, -1
store i32 %21, ptr %6, align 4
br label %9, !llvm.loop !6
22: ; preds = %9
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe1x3m7mr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%s \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
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 i32, ptr %4, align 4
%8 = sub nsw i32 %7, 1
store i32 %8, ptr %6, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp sgt i32 %9, 0
br i1 %10, label %.lr.ph, label %23
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %18
%12 = load ptr, ptr %5, align 8
%13 = load i32, ptr %6, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds ptr, ptr %12, i64 %14
%16 = load ptr, ptr %15, align 8
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %16)
br label %18
18: ; preds = %11
%19 = load i32, ptr %6, align 4
%20 = add nsw i32 %19, -1
store i32 %20, ptr %6, align 4
%21 = load i32, ptr %6, align 4
%22 = icmp sgt i32 %21, 0
br i1 %22, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %23
23: ; preds = %._crit_edge, %2
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpl5pgdn69.c'
source_filename = "/tmp/tmpl5pgdn69.c"
target datalayout = "e-m:e-p270: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.message = private unnamed_addr constant [76 x i8] c"Sp S rkn kcuon zoyzvo grkd droi gkxdon, droi gyevn rkfo cksn pkcdob rybcoc.\00", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [76 x i8], align 16
%3 = 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.message, i64 76, i1 false)
store i32 1, ptr %3, align 4
br label %4
4: ; preds = %11, %0
%5 = load i32, ptr %3, align 4
%6 = icmp slt i32 %5, 26
br i1 %6, label %7, label %14
7: ; preds = %4
%8 = getelementptr inbounds [76 x i8], ptr %2, i64 0, i64 0
%9 = load i32, ptr %3, align 4
%10 = call i32 @caesar(ptr noundef %8, i32 noundef %9)
br label %11
11: ; preds = %7
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %3, align 4
br label %4, !llvm.loop !6
14: ; preds = %4
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 @caesar(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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl5pgdn69.c"
target datalayout = "e-m:e-p270: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.message = private unnamed_addr constant [76 x i8] c"Sp S rkn kcuon zoyzvo grkd droi gkxdon, droi gyevn rkfo cksn pkcdob rybcoc.\00", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [76 x i8], align 16
%3 = 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.message, i64 76, i1 false)
store i32 1, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp slt i32 %4, 26
br i1 %5, label %.lr.ph, label %15
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %10
%7 = getelementptr inbounds [76 x i8], ptr %2, i64 0, i64 0
%8 = load i32, ptr %3, align 4
%9 = call i32 @caesar(ptr noundef %7, i32 noundef %8)
br label %10
10: ; preds = %6
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %3, align 4
%13 = load i32, ptr %3, align 4
%14 = icmp slt i32 %13, 26
br i1 %14, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %15
15: ; preds = %._crit_edge, %0
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @caesar(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"}
|
; ModuleID = '/tmp/tmpb8t54sua.c'
source_filename = "/tmp/tmpb8t54sua.c"
target datalayout = "e-m:e-p270: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/tmpb8t54sua.c"
target datalayout = "e-m:e-p270: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/tmpjtgo2fgi.c'
source_filename = "/tmp/tmpjtgo2fgi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EPOLLERR = dso_local global i32 0, align 4
@EPOLLHUP = dso_local global i32 0, align 4
@LOG_WARNING = 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/tmpjtgo2fgi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EPOLLERR = dso_local global i32 0, align 4
@EPOLLHUP = dso_local global i32 0, align 4
@LOG_WARNING = 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/tmpk1qq6bzo.c'
source_filename = "/tmp/tmpk1qq6bzo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOENT = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @casechdir(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @strlen(ptr noundef %4)
%6 = add nsw i64 %5, 2
%7 = call ptr @alloca(i64 noundef %6)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %2, align 8
%9 = load ptr, ptr %3, align 8
%10 = call i64 @casepath(ptr noundef %8, ptr noundef %9)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %1
%13 = load ptr, ptr %3, align 8
%14 = call i32 @chdir(ptr noundef %13)
br label %17
15: ; preds = %1
%16 = load i32, ptr @ENOENT, align 4
store i32 %16, ptr @errno, align 4
br label %17
17: ; preds = %15, %12
ret void
}
declare ptr @alloca(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i64 @casepath(ptr noundef, ptr noundef) #1
declare i32 @chdir(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk1qq6bzo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOENT = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @casechdir(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @strlen(ptr noundef %4)
%6 = add nsw i64 %5, 2
%7 = call ptr @alloca(i64 noundef %6)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %2, align 8
%9 = load ptr, ptr %3, align 8
%10 = call i64 @casepath(ptr noundef %8, ptr noundef %9)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %1
%13 = load ptr, ptr %3, align 8
%14 = call i32 @chdir(ptr noundef %13)
br label %17
15: ; preds = %1
%16 = load i32, ptr @ENOENT, align 4
store i32 %16, ptr @errno, align 4
br label %17
17: ; preds = %15, %12
ret void
}
declare ptr @alloca(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i64 @casepath(ptr noundef, ptr noundef) #1
declare i32 @chdir(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0pzgzinp.c'
source_filename = "/tmp/tmp0pzgzinp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [80 x i8] c"Diagonals (C) 2004 Panayotis Katsaloulis http://www.panayotis.com under GNU GPL\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getInfo() #0 {
%1 = alloca ptr, align 8
%2 = alloca i64, align 8
%3 = call i64 @strlen(ptr noundef @.str)
store i64 %3, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = add i64 %4, 1
%6 = call ptr @malloc(i64 noundef %5)
store ptr %6, ptr %1, align 8
%7 = load ptr, ptr %1, align 8
%8 = load i64, ptr %2, align 8
%9 = add i64 %8, 1
%10 = call i32 @strncpy(ptr noundef %7, ptr noundef @.str, i64 noundef %9)
%11 = load ptr, ptr %1, align 8
ret ptr %11
}
declare i64 @strlen(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0pzgzinp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [80 x i8] c"Diagonals (C) 2004 Panayotis Katsaloulis http://www.panayotis.com under GNU GPL\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getInfo() #0 {
%1 = alloca ptr, align 8
%2 = alloca i64, align 8
%3 = call i64 @strlen(ptr noundef @.str)
store i64 %3, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = add i64 %4, 1
%6 = call ptr @malloc(i64 noundef %5)
store ptr %6, ptr %1, align 8
%7 = load ptr, ptr %1, align 8
%8 = load i64, ptr %2, align 8
%9 = add i64 %8, 1
%10 = call i32 @strncpy(ptr noundef %7, ptr noundef @.str, i64 noundef %9)
%11 = load ptr, ptr %1, align 8
ret ptr %11
}
declare i64 @strlen(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpri6ccob0.c'
source_filename = "/tmp/tmpri6ccob0.c"
target datalayout = "e-m:e-p270: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/tmpri6ccob0.c"
target datalayout = "e-m:e-p270: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/tmpzjlibr5c.c'
source_filename = "/tmp/tmpzjlibr5c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__globinit_heapSort() #0 {
%1 = call i32 (...) @__CrestInit()
ret void
}
declare i32 @__CrestInit(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzjlibr5c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__globinit_heapSort() #0 {
%1 = call i32 (...) @__CrestInit()
ret void
}
declare i32 @__CrestInit(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcptbztt3.c'
source_filename = "/tmp/tmpcptbztt3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getSize(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i8, align 1
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = load i32, ptr @SEEK_SET, align 4
%7 = call i32 @fseek(ptr noundef %5, i32 noundef 2, i32 noundef %6)
store i32 0, ptr %3, align 4
store i8 0, ptr %4, align 1
br label %8
8: ; preds = %22, %1
%9 = load i8, ptr %4, align 1
%10 = sext i8 %9 to i32
%11 = icmp sle i32 %10, 3
br i1 %11, label %12, label %25
12: ; preds = %8
%13 = load ptr, ptr %2, align 8
%14 = call i64 @fgetc(ptr noundef %13)
%15 = trunc i64 %14 to i32
%16 = load i8, ptr %4, align 1
%17 = sext i8 %16 to i32
%18 = mul nsw i32 %17, 8
%19 = shl i32 %15, %18
%20 = load i32, ptr %3, align 4
%21 = add i32 %20, %19
store i32 %21, ptr %3, align 4
br label %22
22: ; preds = %12
%23 = load i8, ptr %4, align 1
%24 = add i8 %23, 1
store i8 %24, ptr %4, align 1
br label %8, !llvm.loop !6
25: ; preds = %8
%26 = load ptr, ptr %2, align 8
%27 = call i32 @rewind(ptr noundef %26)
%28 = load i32, ptr %3, align 4
ret i32 %28
}
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @fgetc(ptr noundef) #1
declare i32 @rewind(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpcptbztt3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getSize(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i8, align 1
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = load i32, ptr @SEEK_SET, align 4
%7 = call i32 @fseek(ptr noundef %5, i32 noundef 2, i32 noundef %6)
store i32 0, ptr %3, align 4
store i8 0, ptr %4, align 1
%8 = load i8, ptr %4, align 1
%9 = sext i8 %8 to i32
%10 = icmp sle i32 %9, 3
br i1 %10, label %.lr.ph, label %27
.lr.ph: ; preds = %1
br label %11
11: ; preds = %.lr.ph, %21
%12 = load ptr, ptr %2, align 8
%13 = call i64 @fgetc(ptr noundef %12)
%14 = trunc i64 %13 to i32
%15 = load i8, ptr %4, align 1
%16 = sext i8 %15 to i32
%17 = mul nsw i32 %16, 8
%18 = shl i32 %14, %17
%19 = load i32, ptr %3, align 4
%20 = add i32 %19, %18
store i32 %20, ptr %3, align 4
br label %21
21: ; preds = %11
%22 = load i8, ptr %4, align 1
%23 = add i8 %22, 1
store i8 %23, ptr %4, align 1
%24 = load i8, ptr %4, align 1
%25 = sext i8 %24 to i32
%26 = icmp sle i32 %25, 3
br i1 %26, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %27
27: ; preds = %._crit_edge, %1
%28 = load ptr, ptr %2, align 8
%29 = call i32 @rewind(ptr noundef %28)
%30 = load i32, ptr %3, align 4
ret i32 %30
}
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @fgetc(ptr noundef) #1
declare i32 @rewind(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpzpr5hfo9.c'
source_filename = "/tmp/tmpzpr5hfo9.c"
target datalayout = "e-m:e-p270: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/tmpzpr5hfo9.c"
target datalayout = "e-m:e-p270: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/tmpk03o33no.c'
source_filename = "/tmp/tmpk03o33no.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @uDMAIntUnregister(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = call i32 @IntDisable(i64 noundef %3)
%5 = load i64, ptr %2, align 8
%6 = call i32 @IntUnregister(i64 noundef %5)
ret void
}
declare i32 @IntDisable(i64 noundef) #1
declare i32 @IntUnregister(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk03o33no.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @uDMAIntUnregister(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = call i32 @IntDisable(i64 noundef %3)
%5 = load i64, ptr %2, align 8
%6 = call i32 @IntUnregister(i64 noundef %5)
ret void
}
declare i32 @IntDisable(i64 noundef) #1
declare i32 @IntUnregister(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmps8q2wk6w.c'
source_filename = "/tmp/tmps8q2wk6w.c"
target datalayout = "e-m:e-p270: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/tmps8q2wk6w.c"
target datalayout = "e-m:e-p270: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/tmpvz3z9bk3.c'
source_filename = "/tmp/tmpvz3z9bk3.c"
target datalayout = "e-m:e-p270: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/tmpvz3z9bk3.c"
target datalayout = "e-m:e-p270: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/tmpl4dfq0j_.c'
source_filename = "/tmp/tmpl4dfq0j_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @redirectTrap() #0 {
%1 = alloca i64, align 8
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = call i32 (...) @stopSim()
%14 = call i64 asm sideeffect "csrr $0, mbadaddr", "=r,~{dirflag},~{fpsr},~{flags}"() #2, !srcloc !6
store i64 %14, ptr %2, align 8
%15 = load i64, ptr %2, align 8
store i64 %15, ptr %3, align 8
%16 = load i64, ptr %3, align 8
store i64 %16, ptr %1, align 8
%17 = load i64, ptr %1, align 8
call void asm sideeffect "csrw sbadaddr, $0", "rK,~{dirflag},~{fpsr},~{flags}"(i64 %17) #2, !srcloc !7
%18 = call i64 asm sideeffect "csrr $0, mepc", "=r,~{dirflag},~{fpsr},~{flags}"() #2, !srcloc !8
store i64 %18, ptr %5, align 8
%19 = load i64, ptr %5, align 8
store i64 %19, ptr %6, align 8
%20 = load i64, ptr %6, align 8
store i64 %20, ptr %4, align 8
%21 = load i64, ptr %4, align 8
call void asm sideeffect "csrw sepc, $0", "rK,~{dirflag},~{fpsr},~{flags}"(i64 %21) #2, !srcloc !9
%22 = call i64 asm sideeffect "csrr $0, mcause", "=r,~{dirflag},~{fpsr},~{flags}"() #2, !srcloc !10
store i64 %22, ptr %8, align 8
%23 = load i64, ptr %8, align 8
store i64 %23, ptr %9, align 8
%24 = load i64, ptr %9, align 8
store i64 %24, ptr %7, align 8
%25 = load i64, ptr %7, align 8
call void asm sideeffect "csrw scause, $0", "rK,~{dirflag},~{fpsr},~{flags}"(i64 %25) #2, !srcloc !11
%26 = call i64 asm sideeffect "csrr $0, stvec", "=r,~{dirflag},~{fpsr},~{flags}"() #2, !srcloc !12
store i64 %26, ptr %11, align 8
%27 = load i64, ptr %11, align 8
store i64 %27, ptr %12, align 8
%28 = load i64, ptr %12, align 8
store i64 %28, ptr %10, align 8
%29 = load i64, ptr %10, align 8
call void asm sideeffect "csrw mepc, $0", "rK,~{dirflag},~{fpsr},~{flags}"(i64 %29) #2, !srcloc !13
ret void
}
declare i32 @stopSim(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = !{i64 555}
!7 = !{i64 625}
!8 = !{i64 765}
!9 = !{i64 831}
!10 = !{i64 967}
!11 = !{i64 1035}
!12 = !{i64 1173}
!13 = !{i64 1240}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl4dfq0j_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @redirectTrap() #0 {
%1 = alloca i64, align 8
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = call i32 (...) @stopSim()
%14 = call i64 asm sideeffect "csrr $0, mbadaddr", "=r,~{dirflag},~{fpsr},~{flags}"() #2, !srcloc !6
store i64 %14, ptr %2, align 8
%15 = load i64, ptr %2, align 8
store i64 %15, ptr %3, align 8
%16 = load i64, ptr %3, align 8
store i64 %16, ptr %1, align 8
%17 = load i64, ptr %1, align 8
call void asm sideeffect "csrw sbadaddr, $0", "rK,~{dirflag},~{fpsr},~{flags}"(i64 %17) #2, !srcloc !7
%18 = call i64 asm sideeffect "csrr $0, mepc", "=r,~{dirflag},~{fpsr},~{flags}"() #2, !srcloc !8
store i64 %18, ptr %5, align 8
%19 = load i64, ptr %5, align 8
store i64 %19, ptr %6, align 8
%20 = load i64, ptr %6, align 8
store i64 %20, ptr %4, align 8
%21 = load i64, ptr %4, align 8
call void asm sideeffect "csrw sepc, $0", "rK,~{dirflag},~{fpsr},~{flags}"(i64 %21) #2, !srcloc !9
%22 = call i64 asm sideeffect "csrr $0, mcause", "=r,~{dirflag},~{fpsr},~{flags}"() #2, !srcloc !10
store i64 %22, ptr %8, align 8
%23 = load i64, ptr %8, align 8
store i64 %23, ptr %9, align 8
%24 = load i64, ptr %9, align 8
store i64 %24, ptr %7, align 8
%25 = load i64, ptr %7, align 8
call void asm sideeffect "csrw scause, $0", "rK,~{dirflag},~{fpsr},~{flags}"(i64 %25) #2, !srcloc !11
%26 = call i64 asm sideeffect "csrr $0, stvec", "=r,~{dirflag},~{fpsr},~{flags}"() #2, !srcloc !12
store i64 %26, ptr %11, align 8
%27 = load i64, ptr %11, align 8
store i64 %27, ptr %12, align 8
%28 = load i64, ptr %12, align 8
store i64 %28, ptr %10, align 8
%29 = load i64, ptr %10, align 8
call void asm sideeffect "csrw mepc, $0", "rK,~{dirflag},~{fpsr},~{flags}"(i64 %29) #2, !srcloc !13
ret void
}
declare i32 @stopSim(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = !{i64 555}
!7 = !{i64 625}
!8 = !{i64 765}
!9 = !{i64 831}
!10 = !{i64 967}
!11 = !{i64 1035}
!12 = !{i64 1173}
!13 = !{i64 1240}
|
; ModuleID = '/tmp/tmp2r5tlexk.c'
source_filename = "/tmp/tmp2r5tlexk.c"
target datalayout = "e-m:e-p270: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/tmp2r5tlexk.c"
target datalayout = "e-m:e-p270: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/tmpoyco03gw.c'
source_filename = "/tmp/tmpoyco03gw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Not developed yet\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @tapPop(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = 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/tmpoyco03gw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Not developed yet\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @tapPop(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = 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/tmpc0laodgv.c'
source_filename = "/tmp/tmpc0laodgv.c"
target datalayout = "e-m:e-p270: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/tmpc0laodgv.c"
target datalayout = "e-m:e-p270: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/tmp8aps86ie.c'
source_filename = "/tmp/tmp8aps86ie.c"
target datalayout = "e-m:e-p270: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/tmp8aps86ie.c"
target datalayout = "e-m:e-p270: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/tmp7vkudh38.c'
source_filename = "/tmp/tmp7vkudh38.c"
target datalayout = "e-m:e-p270: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/tmp7vkudh38.c"
target datalayout = "e-m:e-p270: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/tmp77uwl1om.c'
source_filename = "/tmp/tmp77uwl1om.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"%s%s%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @str_replace(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%13 = load ptr, ptr %8, align 8
%14 = load ptr, ptr %7, align 8
%15 = ptrtoint ptr %13 to i64
%16 = ptrtoint ptr %14 to i64
%17 = sub i64 %15, %16
%18 = trunc i64 %17 to i32
store i32 %18, ptr %10, align 4
%19 = load ptr, ptr %9, align 8
%20 = call i32 @strlen(ptr noundef %19)
store i32 %20, ptr %11, align 4
%21 = load i32, ptr %11, align 4
%22 = load i32, ptr %10, align 4
%23 = icmp ult i32 %21, %22
br i1 %23, label %24, label %39
24: ; preds = %4
%25 = load ptr, ptr %7, align 8
%26 = load ptr, ptr %9, align 8
%27 = load i32, ptr %11, align 4
%28 = call i32 @memcpy(ptr noundef %25, ptr noundef %26, i32 noundef %27)
%29 = load ptr, ptr %7, align 8
%30 = load i32, ptr %11, align 4
%31 = zext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = load ptr, ptr %8, align 8
%34 = load ptr, ptr %8, align 8
%35 = call i32 @strlen(ptr noundef %34)
%36 = add nsw i32 %35, 1
%37 = call i32 @memmove(ptr noundef %32, ptr noundef %33, i32 noundef %36)
%38 = load ptr, ptr %6, align 8
store ptr %38, ptr %5, align 8
br label %49
39: ; preds = %4
%40 = load ptr, ptr %6, align 8
store ptr %40, ptr %12, align 8
%41 = load ptr, ptr %7, align 8
store i8 0, ptr %41, align 1
%42 = load ptr, ptr %6, align 8
%43 = load ptr, ptr %9, align 8
%44 = load ptr, ptr %8, align 8
%45 = call ptr @ustrprintf(ptr noundef @.str, ptr noundef %42, ptr noundef %43, ptr noundef %44)
store ptr %45, ptr %6, align 8
%46 = load ptr, ptr %12, align 8
%47 = call i32 @free(ptr noundef %46)
%48 = load ptr, ptr %6, align 8
store ptr %48, ptr %5, align 8
br label %49
49: ; preds = %39, %24
%50 = load ptr, ptr %5, align 8
ret ptr %50
}
declare i32 @strlen(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @ustrprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp77uwl1om.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"%s%s%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @str_replace(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%13 = load ptr, ptr %8, align 8
%14 = load ptr, ptr %7, align 8
%15 = ptrtoint ptr %13 to i64
%16 = ptrtoint ptr %14 to i64
%17 = sub i64 %15, %16
%18 = trunc i64 %17 to i32
store i32 %18, ptr %10, align 4
%19 = load ptr, ptr %9, align 8
%20 = call i32 @strlen(ptr noundef %19)
store i32 %20, ptr %11, align 4
%21 = load i32, ptr %11, align 4
%22 = load i32, ptr %10, align 4
%23 = icmp ult i32 %21, %22
br i1 %23, label %24, label %39
24: ; preds = %4
%25 = load ptr, ptr %7, align 8
%26 = load ptr, ptr %9, align 8
%27 = load i32, ptr %11, align 4
%28 = call i32 @memcpy(ptr noundef %25, ptr noundef %26, i32 noundef %27)
%29 = load ptr, ptr %7, align 8
%30 = load i32, ptr %11, align 4
%31 = zext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = load ptr, ptr %8, align 8
%34 = load ptr, ptr %8, align 8
%35 = call i32 @strlen(ptr noundef %34)
%36 = add nsw i32 %35, 1
%37 = call i32 @memmove(ptr noundef %32, ptr noundef %33, i32 noundef %36)
%38 = load ptr, ptr %6, align 8
store ptr %38, ptr %5, align 8
br label %49
39: ; preds = %4
%40 = load ptr, ptr %6, align 8
store ptr %40, ptr %12, align 8
%41 = load ptr, ptr %7, align 8
store i8 0, ptr %41, align 1
%42 = load ptr, ptr %6, align 8
%43 = load ptr, ptr %9, align 8
%44 = load ptr, ptr %8, align 8
%45 = call ptr @ustrprintf(ptr noundef @.str, ptr noundef %42, ptr noundef %43, ptr noundef %44)
store ptr %45, ptr %6, align 8
%46 = load ptr, ptr %12, align 8
%47 = call i32 @free(ptr noundef %46)
%48 = load ptr, ptr %6, align 8
store ptr %48, ptr %5, align 8
br label %49
49: ; preds = %39, %24
%50 = load ptr, ptr %5, align 8
ret ptr %50
}
declare i32 @strlen(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @ustrprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbaegbx6h.c'
source_filename = "/tmp/tmpbaegbx6h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @mq_last_error() #0 {
%1 = alloca i32, align 4
%2 = load i32, ptr @errno, align 4
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = icmp sge i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = load i32, ptr %1, align 4
br label %10
7: ; preds = %0
%8 = load i32, ptr %1, align 4
%9 = sub nsw i32 0, %8
br label %10
10: ; preds = %7, %5
%11 = phi i32 [ %6, %5 ], [ %9, %7 ]
%12 = call ptr @strerror(i32 noundef %11)
ret ptr %12
}
declare ptr @strerror(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbaegbx6h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @mq_last_error() #0 {
%1 = alloca i32, align 4
%2 = load i32, ptr @errno, align 4
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = icmp sge i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = load i32, ptr %1, align 4
br label %10
7: ; preds = %0
%8 = load i32, ptr %1, align 4
%9 = sub nsw i32 0, %8
br label %10
10: ; preds = %7, %5
%11 = phi i32 [ %6, %5 ], [ %9, %7 ]
%12 = call ptr @strerror(i32 noundef %11)
ret ptr %12
}
declare ptr @strerror(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsck5ez49.c'
source_filename = "/tmp/tmpsck5ez49.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c" client broadcast failed!\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 i64 (...) @ClientBroadcast()
%3 = icmp ne i64 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 @printf(ptr noundef @.str)
store i32 -1, ptr %1, align 4
br label %7
6: ; preds = %0
store i32 0, ptr %1, align 4
br label %7
7: ; preds = %6, %4
%8 = load i32, ptr %1, align 4
ret i32 %8
}
declare i64 @ClientBroadcast(...) #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/tmpsck5ez49.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c" client broadcast failed!\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 i64 (...) @ClientBroadcast()
%3 = icmp ne i64 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 @printf(ptr noundef @.str)
store i32 -1, ptr %1, align 4
br label %7
6: ; preds = %0
store i32 0, ptr %1, align 4
br label %7
7: ; preds = %6, %4
%8 = load i32, ptr %1, align 4
ret i32 %8
}
declare i64 @ClientBroadcast(...) #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/tmp80s3x0_t.c'
source_filename = "/tmp/tmp80s3x0_t.c"
target datalayout = "e-m:e-p270: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
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [44 x i8] c"Cannot open loop device %s (error code %d)\0A\00", align 1
@errno = dso_local global i32 0, align 4
@LOOP_CLR_FD = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [56 x i8] c"Cannot detach file from loop device %s (error code %d)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @detach_loop_device(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr @O_RDWR, align 4
%7 = call i32 @open(ptr noundef %5, i32 noundef %6)
store i32 %7, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %15
10: ; preds = %1
%11 = load i32, ptr @stderr, align 4
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr @errno, align 4
%14 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str, ptr noundef %12, i32 noundef %13)
store i32 -1, ptr %2, align 4
br label %30
15: ; preds = %1
%16 = load i32, ptr %4, align 4
%17 = load i32, ptr @LOOP_CLR_FD, align 4
%18 = call i64 @ioctl(i32 noundef %16, i32 noundef %17)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %27
20: ; preds = %15
%21 = load i32, ptr @stderr, align 4
%22 = load ptr, ptr %3, align 8
%23 = load i32, ptr @errno, align 4
%24 = call i32 @fprintf(i32 noundef %21, ptr noundef @.str.1, ptr noundef %22, i32 noundef %23)
%25 = load i32, ptr %4, align 4
%26 = call i32 @close(i32 noundef %25)
store i32 -1, ptr %2, align 4
br label %30
27: ; preds = %15
%28 = load i32, ptr %4, align 4
%29 = call i32 @close(i32 noundef %28)
store i32 0, ptr %2, align 4
br label %30
30: ; preds = %27, %20, %10
%31 = load i32, ptr %2, align 4
ret i32 %31
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @ioctl(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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp80s3x0_t.c"
target datalayout = "e-m:e-p270: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
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [44 x i8] c"Cannot open loop device %s (error code %d)\0A\00", align 1
@errno = dso_local global i32 0, align 4
@LOOP_CLR_FD = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [56 x i8] c"Cannot detach file from loop device %s (error code %d)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @detach_loop_device(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr @O_RDWR, align 4
%7 = call i32 @open(ptr noundef %5, i32 noundef %6)
store i32 %7, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %15
10: ; preds = %1
%11 = load i32, ptr @stderr, align 4
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr @errno, align 4
%14 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str, ptr noundef %12, i32 noundef %13)
store i32 -1, ptr %2, align 4
br label %30
15: ; preds = %1
%16 = load i32, ptr %4, align 4
%17 = load i32, ptr @LOOP_CLR_FD, align 4
%18 = call i64 @ioctl(i32 noundef %16, i32 noundef %17)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %27
20: ; preds = %15
%21 = load i32, ptr @stderr, align 4
%22 = load ptr, ptr %3, align 8
%23 = load i32, ptr @errno, align 4
%24 = call i32 @fprintf(i32 noundef %21, ptr noundef @.str.1, ptr noundef %22, i32 noundef %23)
%25 = load i32, ptr %4, align 4
%26 = call i32 @close(i32 noundef %25)
store i32 -1, ptr %2, align 4
br label %30
27: ; preds = %15
%28 = load i32, ptr %4, align 4
%29 = call i32 @close(i32 noundef %28)
store i32 0, ptr %2, align 4
br label %30
30: ; preds = %27, %20, %10
%31 = load i32, ptr %2, align 4
ret i32 %31
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @ioctl(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"}
|
; ModuleID = '/tmp/tmpcsgj75ab.c'
source_filename = "/tmp/tmpcsgj75ab.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @escape_json_ext(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr null, ptr %7, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 @escape_json(ptr noundef %8, ptr noundef null)
store i32 %9, ptr %6, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %30
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %13, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %16, label %20
16: ; preds = %12
%17 = load ptr, ptr %5, align 8
%18 = load ptr, ptr %17, align 8
%19 = call i32 @free(ptr noundef %18)
br label %20
20: ; preds = %16, %12
%21 = load i32, ptr %6, align 4
%22 = call i64 @malloc(i32 noundef %21)
%23 = inttoptr i64 %22 to ptr
store ptr %23, ptr %7, align 8
%24 = load ptr, ptr %4, align 8
%25 = load ptr, ptr %7, align 8
%26 = call i32 @escape_json(ptr noundef %24, ptr noundef %25)
%27 = load ptr, ptr %7, align 8
%28 = load ptr, ptr %5, align 8
store ptr %27, ptr %28, align 8
%29 = load ptr, ptr %7, align 8
store ptr %29, ptr %3, align 8
br label %32
30: ; preds = %2
%31 = load ptr, ptr %4, align 8
store ptr %31, ptr %3, align 8
br label %32
32: ; preds = %30, %20
%33 = load ptr, ptr %3, align 8
ret ptr %33
}
declare i32 @escape_json(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcsgj75ab.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @escape_json_ext(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr null, ptr %7, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 @escape_json(ptr noundef %8, ptr noundef null)
store i32 %9, ptr %6, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %30
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = load ptr, ptr %13, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %16, label %20
16: ; preds = %12
%17 = load ptr, ptr %5, align 8
%18 = load ptr, ptr %17, align 8
%19 = call i32 @free(ptr noundef %18)
br label %20
20: ; preds = %16, %12
%21 = load i32, ptr %6, align 4
%22 = call i64 @malloc(i32 noundef %21)
%23 = inttoptr i64 %22 to ptr
store ptr %23, ptr %7, align 8
%24 = load ptr, ptr %4, align 8
%25 = load ptr, ptr %7, align 8
%26 = call i32 @escape_json(ptr noundef %24, ptr noundef %25)
%27 = load ptr, ptr %7, align 8
%28 = load ptr, ptr %5, align 8
store ptr %27, ptr %28, align 8
%29 = load ptr, ptr %7, align 8
store ptr %29, ptr %3, align 8
br label %32
30: ; preds = %2
%31 = load ptr, ptr %4, align 8
store ptr %31, ptr %3, align 8
br label %32
32: ; preds = %30, %20
%33 = load ptr, ptr %3, align 8
ret ptr %33
}
declare i32 @escape_json(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5mzgced5.c'
source_filename = "/tmp/tmp5mzgced5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter the value of x:\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"The factorial of x is :%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = call i32 @fact(i32 noundef %5)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %6)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @fact(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/tmp5mzgced5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter the value of x:\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"The factorial of x is :%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = call i32 @fact(i32 noundef %5)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %6)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @fact(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/tmpic47164l.c'
source_filename = "/tmp/tmpic47164l.c"
target datalayout = "e-m:e-p270: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/tmpic47164l.c"
target datalayout = "e-m:e-p270: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/tmp5riu9h9y.c'
source_filename = "/tmp/tmp5riu9h9y.c"
target datalayout = "e-m:e-p270: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/tmp5riu9h9y.c"
target datalayout = "e-m:e-p270: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/tmp2yb03per.c'
source_filename = "/tmp/tmp2yb03per.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nxta(float noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca float, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store float %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%9 = load i32, ptr %6, align 4
%10 = sext i32 %9 to i64
%11 = mul i64 %10, 4
%12 = trunc i64 %11 to i32
%13 = call ptr @malloc(i32 noundef %12)
store ptr %13, ptr %8, align 8
store i32 0, ptr %7, align 4
br label %14
14: ; preds = %33, %3
%15 = load i32, ptr %7, align 4
%16 = load i32, ptr %6, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %36
18: ; preds = %14
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %7, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds float, ptr %19, i64 %21
%23 = load float, ptr %22, align 4
%24 = fneg float %23
%25 = call float @log1p(float noundef %24)
%26 = fneg float %25
%27 = load float, ptr %4, align 4
%28 = fdiv float %26, %27
%29 = load ptr, ptr %8, align 8
%30 = load i32, ptr %7, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds float, ptr %29, i64 %31
store float %28, ptr %32, align 4
br label %33
33: ; preds = %18
%34 = load i32, ptr %7, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %7, align 4
br label %14, !llvm.loop !6
36: ; preds = %14
%37 = load ptr, ptr %8, align 8
ret ptr %37
}
declare ptr @malloc(i32 noundef) #1
declare float @log1p(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2yb03per.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nxta(float noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca float, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store float %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%9 = load i32, ptr %6, align 4
%10 = sext i32 %9 to i64
%11 = mul i64 %10, 4
%12 = trunc i64 %11 to i32
%13 = call ptr @malloc(i32 noundef %12)
store ptr %13, ptr %8, align 8
store i32 0, ptr %7, align 4
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %6, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %.lr.ph, label %38
.lr.ph: ; preds = %3
br label %17
17: ; preds = %.lr.ph, %32
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds float, ptr %18, i64 %20
%22 = load float, ptr %21, align 4
%23 = fneg float %22
%24 = call float @log1p(float noundef %23)
%25 = fneg float %24
%26 = load float, ptr %4, align 4
%27 = fdiv float %25, %26
%28 = load ptr, ptr %8, align 8
%29 = load i32, ptr %7, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds float, ptr %28, i64 %30
store float %27, ptr %31, align 4
br label %32
32: ; preds = %17
%33 = load i32, ptr %7, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %7, align 4
%35 = load i32, ptr %7, align 4
%36 = load i32, ptr %6, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %38
38: ; preds = %._crit_edge, %3
%39 = load ptr, ptr %8, align 8
ret ptr %39
}
declare ptr @malloc(i32 noundef) #1
declare float @log1p(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpffcd883f.c'
source_filename = "/tmp/tmpffcd883f.c"
target datalayout = "e-m:e-p270: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/tmpffcd883f.c"
target datalayout = "e-m:e-p270: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/tmpn0x6sxfc.c'
source_filename = "/tmp/tmpn0x6sxfc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGKILL = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"process 3530 was killed\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = load i32, ptr @SIGKILL, align 4
%3 = call i32 @kill(i32 noundef 3509, i32 noundef %2)
%4 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @kill(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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn0x6sxfc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGKILL = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"process 3530 was killed\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = load i32, ptr @SIGKILL, align 4
%3 = call i32 @kill(i32 noundef 3509, i32 noundef %2)
%4 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @kill(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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpoudgnv9s.c'
source_filename = "/tmp/tmpoudgnv9s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [169 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_isxdigit.c\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"isxdigit should be 0 for 0x96\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isxdigit_0x96() #0 {
%1 = call i64 @isxdigit(i32 noundef 150)
%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 755, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isxdigit(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/tmpoudgnv9s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [169 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_isxdigit.c\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"isxdigit should be 0 for 0x96\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isxdigit_0x96() #0 {
%1 = call i64 @isxdigit(i32 noundef 150)
%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 755, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isxdigit(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/tmpls1qeegw.c'
source_filename = "/tmp/tmpls1qeegw.c"
target datalayout = "e-m:e-p270: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/tmpls1qeegw.c"
target datalayout = "e-m:e-p270: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/tmplxo8xm5y.c'
source_filename = "/tmp/tmplxo8xm5y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@STDIN_FILENO = 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/tmplxo8xm5y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@STDIN_FILENO = 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/tmp01vd4m6v.c'
source_filename = "/tmp/tmp01vd4m6v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c" Dos numeros para Multiplicar\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"multiplicacion: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @multiplicacion() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %1, ptr noundef %2)
%5 = load i32, ptr %1, align 4
%6 = load i32, ptr %2, align 4
%7 = mul nsw i32 %5, %6
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %7)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(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/tmp01vd4m6v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c" Dos numeros para Multiplicar\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"multiplicacion: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @multiplicacion() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %1, ptr noundef %2)
%5 = load i32, ptr %1, align 4
%6 = load i32, ptr %2, align 4
%7 = mul nsw i32 %5, %6
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %7)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(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/tmpuwq3hj78.c'
source_filename = "/tmp/tmpuwq3hj78.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ocuriencode(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca [2 x i8], align 1
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%14 = load ptr, ptr %4, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %17
16: ; preds = %2
store ptr null, ptr %3, align 8
br label %83
17: ; preds = %2
%18 = load ptr, ptr %4, align 8
%19 = call i64 @strlen(ptr noundef %18)
store i64 %19, ptr %6, align 8
%20 = load i64, ptr %6, align 8
%21 = mul i64 3, %20
%22 = add i64 %21, 1
%23 = trunc i64 %22 to i32
%24 = call i64 @malloc(i32 noundef %23)
%25 = inttoptr i64 %24 to ptr
store ptr %25, ptr %7, align 8
%26 = load ptr, ptr %4, align 8
store ptr %26, ptr %8, align 8
%27 = load ptr, ptr %7, align 8
store ptr %27, ptr %9, align 8
br label %28
28: ; preds = %79, %17
%29 = load ptr, ptr %8, align 8
%30 = load i8, ptr %29, align 1
%31 = icmp ne i8 %30, 0
br i1 %31, label %32, label %80
32: ; preds = %28
%33 = load ptr, ptr %8, align 8
%34 = getelementptr inbounds i8, ptr %33, i32 1
store ptr %34, ptr %8, align 8
%35 = load i8, ptr %33, align 1
%36 = sext i8 %35 to i32
store i32 %36, ptr %10, align 4
%37 = load i32, ptr %10, align 4
%38 = icmp eq i32 %37, 32
br i1 %38, label %39, label %42
39: ; preds = %32
%40 = load ptr, ptr %9, align 8
%41 = getelementptr inbounds i8, ptr %40, i32 1
store ptr %41, ptr %9, align 8
store i8 43, ptr %40, align 1
br label %79
42: ; preds = %32
%43 = load ptr, ptr %5, align 8
store ptr %43, ptr %12, align 8
br label %44
44: ; preds = %55, %42
%45 = load ptr, ptr %12, align 8
%46 = getelementptr inbounds i8, ptr %45, i32 1
store ptr %46, ptr %12, align 8
%47 = load i8, ptr %45, align 1
%48 = sext i8 %47 to i32
store i32 %48, ptr %11, align 4
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %56
50: ; preds = %44
%51 = load i32, ptr %10, align 4
%52 = load i32, ptr %11, align 4
%53 = icmp eq i32 %51, %52
br i1 %53, label %54, label %55
54: ; preds = %50
br label %56
55: ; preds = %50
br label %44, !llvm.loop !6
56: ; preds = %54, %44
%57 = load i32, ptr %11, align 4
%58 = icmp ne i32 %57, 0
br i1 %58, label %59, label %64
59: ; preds = %56
%60 = load i32, ptr %10, align 4
%61 = trunc i32 %60 to i8
%62 = load ptr, ptr %9, align 8
%63 = getelementptr inbounds i8, ptr %62, i32 1
store ptr %63, ptr %9, align 8
store i8 %61, ptr %62, align 1
br label %78
64: ; preds = %56
%65 = load i32, ptr %10, align 4
%66 = getelementptr inbounds [2 x i8], ptr %13, i64 0, i64 0
%67 = call i32 @toHex(i32 noundef %65, ptr noundef %66)
%68 = load ptr, ptr %9, align 8
%69 = getelementptr inbounds i8, ptr %68, i32 1
store ptr %69, ptr %9, align 8
store i8 37, ptr %68, align 1
%70 = getelementptr inbounds [2 x i8], ptr %13, i64 0, i64 0
%71 = load i8, ptr %70, align 1
%72 = load ptr, ptr %9, align 8
%73 = getelementptr inbounds i8, ptr %72, i32 1
store ptr %73, ptr %9, align 8
store i8 %71, ptr %72, align 1
%74 = getelementptr inbounds [2 x i8], ptr %13, i64 0, i64 1
%75 = load i8, ptr %74, align 1
%76 = load ptr, ptr %9, align 8
%77 = getelementptr inbounds i8, ptr %76, i32 1
store ptr %77, ptr %9, align 8
store i8 %75, ptr %76, align 1
br label %78
78: ; preds = %64, %59
br label %79
79: ; preds = %78, %39
br label %28, !llvm.loop !8
80: ; preds = %28
%81 = load ptr, ptr %9, align 8
store i8 0, ptr %81, align 1
%82 = load ptr, ptr %7, align 8
store ptr %82, ptr %3, align 8
br label %83
83: ; preds = %80, %16
%84 = load ptr, ptr %3, align 8
ret ptr %84
}
declare i64 @strlen(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @toHex(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuwq3hj78.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ocuriencode(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca [2 x i8], align 1
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%14 = load ptr, ptr %4, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %17
16: ; preds = %2
store ptr null, ptr %3, align 8
br label %89
17: ; preds = %2
%18 = load ptr, ptr %4, align 8
%19 = call i64 @strlen(ptr noundef %18)
store i64 %19, ptr %6, align 8
%20 = load i64, ptr %6, align 8
%21 = mul i64 3, %20
%22 = add i64 %21, 1
%23 = trunc i64 %22 to i32
%24 = call i64 @malloc(i32 noundef %23)
%25 = inttoptr i64 %24 to ptr
store ptr %25, ptr %7, align 8
%26 = load ptr, ptr %4, align 8
store ptr %26, ptr %8, align 8
%27 = load ptr, ptr %7, align 8
store ptr %27, ptr %9, align 8
%28 = load ptr, ptr %8, align 8
%29 = load i8, ptr %28, align 1
%30 = icmp ne i8 %29, 0
br i1 %30, label %.lr.ph1, label %86
.lr.ph1: ; preds = %17
br label %31
31: ; preds = %.lr.ph1, %82
%32 = load ptr, ptr %8, align 8
%33 = getelementptr inbounds i8, ptr %32, i32 1
store ptr %33, ptr %8, align 8
%34 = load i8, ptr %32, align 1
%35 = sext i8 %34 to i32
store i32 %35, ptr %10, align 4
%36 = load i32, ptr %10, align 4
%37 = icmp eq i32 %36, 32
br i1 %37, label %38, label %41
38: ; preds = %31
%39 = load ptr, ptr %9, align 8
%40 = getelementptr inbounds i8, ptr %39, i32 1
store ptr %40, ptr %9, align 8
store i8 43, ptr %39, align 1
br label %82
41: ; preds = %31
%42 = load ptr, ptr %5, align 8
store ptr %42, ptr %12, align 8
%43 = load ptr, ptr %12, align 8
%44 = getelementptr inbounds i8, ptr %43, i32 1
store ptr %44, ptr %12, align 8
%45 = load i8, ptr %43, align 1
%46 = sext i8 %45 to i32
store i32 %46, ptr %11, align 4
%47 = icmp ne i32 %46, 0
br i1 %47, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %41
br label %54
48: ; preds = %54
%49 = load ptr, ptr %12, align 8
%50 = getelementptr inbounds i8, ptr %49, i32 1
store ptr %50, ptr %12, align 8
%51 = load i8, ptr %49, align 1
%52 = sext i8 %51 to i32
store i32 %52, ptr %11, align 4
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %..loopexit_crit_edge, !llvm.loop !6
54: ; preds = %.lr.ph, %48
%55 = load i32, ptr %10, align 4
%56 = load i32, ptr %11, align 4
%57 = icmp eq i32 %55, %56
br i1 %57, label %58, label %48
58: ; preds = %54
br label %59
..loopexit_crit_edge: ; preds = %48
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %41
br label %59
59: ; preds = %.loopexit, %58
%60 = load i32, ptr %11, align 4
%61 = icmp ne i32 %60, 0
br i1 %61, label %62, label %67
62: ; preds = %59
%63 = load i32, ptr %10, align 4
%64 = trunc i32 %63 to i8
%65 = load ptr, ptr %9, align 8
%66 = getelementptr inbounds i8, ptr %65, i32 1
store ptr %66, ptr %9, align 8
store i8 %64, ptr %65, align 1
br label %81
67: ; preds = %59
%68 = load i32, ptr %10, align 4
%69 = getelementptr inbounds [2 x i8], ptr %13, i64 0, i64 0
%70 = call i32 @toHex(i32 noundef %68, ptr noundef %69)
%71 = load ptr, ptr %9, align 8
%72 = getelementptr inbounds i8, ptr %71, i32 1
store ptr %72, ptr %9, align 8
store i8 37, ptr %71, align 1
%73 = getelementptr inbounds [2 x i8], ptr %13, i64 0, i64 0
%74 = load i8, ptr %73, align 1
%75 = load ptr, ptr %9, align 8
%76 = getelementptr inbounds i8, ptr %75, i32 1
store ptr %76, ptr %9, align 8
store i8 %74, ptr %75, align 1
%77 = getelementptr inbounds [2 x i8], ptr %13, i64 0, i64 1
%78 = load i8, ptr %77, align 1
%79 = load ptr, ptr %9, align 8
%80 = getelementptr inbounds i8, ptr %79, i32 1
store ptr %80, ptr %9, align 8
store i8 %78, ptr %79, align 1
br label %81
81: ; preds = %67, %62
br label %82
82: ; preds = %81, %38
%83 = load ptr, ptr %8, align 8
%84 = load i8, ptr %83, align 1
%85 = icmp ne i8 %84, 0
br i1 %85, label %31, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %82
br label %86
86: ; preds = %._crit_edge, %17
%87 = load ptr, ptr %9, align 8
store i8 0, ptr %87, align 1
%88 = load ptr, ptr %7, align 8
store ptr %88, ptr %3, align 8
br label %89
89: ; preds = %86, %16
%90 = load ptr, ptr %3, align 8
ret ptr %90
}
declare i64 @strlen(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @toHex(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp7yye3u4o.c'
source_filename = "/tmp/tmp7yye3u4o.c"
target datalayout = "e-m:e-p270: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/tmp7yye3u4o.c"
target datalayout = "e-m:e-p270: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/tmpplzxpq5p.c'
source_filename = "/tmp/tmpplzxpq5p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"(null)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ft_getnull() #0 {
%1 = call ptr @ft_strdup(ptr noundef @.str)
ret ptr %1
}
declare ptr @ft_strdup(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpplzxpq5p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"(null)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ft_getnull() #0 {
%1 = call ptr @ft_strdup(ptr noundef @.str)
ret ptr %1
}
declare ptr @ft_strdup(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6d63cu5g.c'
source_filename = "/tmp/tmp6d63cu5g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"results.txt\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"./pierwsza_zad2\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"pierwsza_zad2\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"error\00", align 1
@.str.5 = private unnamed_addr constant [26 x i8] c"process stopped [pid=%d]\0A\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [17 x i8] c"file1 open error\00", align 1
@.str.7 = private unnamed_addr constant [17 x i8] c"pierwszych = %d\0A\00", align 1
@.str.8 = private unnamed_addr constant [23 x i8] c"czas wykonywania = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [50 x i8], align 16
%7 = alloca [50 x i8], align 16
%8 = alloca [12 x i8], align 1
%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
%26 = load i32, ptr %4, align 4
%27 = icmp slt i32 %26, 4
br i1 %27, label %28, label %29
28: ; preds = %2
store i32 1, ptr %3, align 4
br label %147
29: ; preds = %2
%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 @atoi(ptr noundef %32)
%34 = sub nsw i32 %33, 1
store i32 %34, ptr %10, align 4
%35 = load ptr, ptr %5, align 8
%36 = getelementptr inbounds ptr, ptr %35, i64 2
%37 = load ptr, ptr %36, align 8
%38 = call i32 @atoi(ptr noundef %37)
store i32 %38, ptr %11, align 4
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds ptr, ptr %39, i64 3
%41 = load ptr, ptr %40, align 8
%42 = call i32 @atoi(ptr noundef %41)
store i32 %42, ptr %12, align 4
%43 = load i32, ptr %11, align 4
%44 = load i32, ptr %10, align 4
%45 = sub nsw i32 %43, %44
store i32 %45, ptr %13, align 4
%46 = load i32, ptr %13, align 4
%47 = load i32, ptr %12, align 4
%48 = sdiv i32 %46, %47
store i32 %48, ptr %14, align 4
%49 = load i32, ptr %13, align 4
%50 = load i32, ptr %14, align 4
%51 = load i32, ptr %12, align 4
%52 = mul nsw i32 %50, %51
%53 = sub nsw i32 %49, %52
store i32 %53, ptr %15, align 4
store i32 0, ptr %16, align 4
%54 = call i32 @time(ptr noundef null)
store i32 %54, ptr %24, align 4
%55 = call i32 @remove(ptr noundef @.str)
store i32 0, ptr %17, align 4
br label %56
56: ; preds = %96, %29
%57 = load i32, ptr %17, align 4
%58 = load i32, ptr %12, align 4
%59 = icmp slt i32 %57, %58
br i1 %59, label %60, label %99
60: ; preds = %56
%61 = call i64 (...) @fork()
%62 = icmp eq i64 %61, 0
br i1 %62, label %63, label %95
63: ; preds = %60
%64 = load i32, ptr %10, align 4
%65 = load i32, ptr %17, align 4
%66 = load i32, ptr %14, align 4
%67 = mul nsw i32 %65, %66
%68 = add nsw i32 %64, %67
%69 = add nsw i32 %68, 1
store i32 %69, ptr %20, align 4
%70 = load i32, ptr %10, align 4
%71 = load i32, ptr %17, align 4
%72 = add nsw i32 %71, 1
%73 = load i32, ptr %14, align 4
%74 = mul nsw i32 %72, %73
%75 = add nsw i32 %70, %74
store i32 %75, ptr %21, align 4
%76 = load i32, ptr %17, align 4
%77 = add nsw i32 %76, 1
%78 = load i32, ptr %12, align 4
%79 = icmp eq i32 %77, %78
br i1 %79, label %80, label %84
80: ; preds = %63
%81 = load i32, ptr %15, align 4
%82 = load i32, ptr %21, align 4
%83 = add nsw i32 %82, %81
store i32 %83, ptr %21, align 4
br label %84
84: ; preds = %80, %63
%85 = getelementptr inbounds [50 x i8], ptr %6, i64 0, i64 0
%86 = load i32, ptr %20, align 4
%87 = call i32 @sprintf(ptr noundef %85, ptr noundef @.str.1, i32 noundef %86)
%88 = getelementptr inbounds [50 x i8], ptr %7, i64 0, i64 0
%89 = load i32, ptr %21, align 4
%90 = call i32 @sprintf(ptr noundef %88, ptr noundef @.str.1, i32 noundef %89)
%91 = getelementptr inbounds [50 x i8], ptr %6, i64 0, i64 0
%92 = getelementptr inbounds [50 x i8], ptr %7, i64 0, i64 0
%93 = call i32 @execl(ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef %91, ptr noundef %92, ptr noundef null)
%94 = call i32 @perror(ptr noundef @.str.4)
br label %95
95: ; preds = %84, %60
br label %96
96: ; preds = %95
%97 = load i32, ptr %17, align 4
%98 = add nsw i32 %97, 1
store i32 %98, ptr %17, align 4
br label %56, !llvm.loop !6
99: ; preds = %56
store i32 0, ptr %17, align 4
br label %100
100: ; preds = %108, %99
%101 = load i32, ptr %17, align 4
%102 = load i32, ptr %12, align 4
%103 = icmp slt i32 %101, %102
br i1 %103, label %104, label %111
104: ; preds = %100
%105 = call i32 @wait(ptr noundef %18)
store i32 %105, ptr %9, align 4
%106 = load i32, ptr %9, align 4
%107 = call i32 @printf(ptr noundef @.str.5, i32 noundef %106)
br label %108
108: ; preds = %104
%109 = load i32, ptr %17, align 4
%110 = add nsw i32 %109, 1
store i32 %110, ptr %17, align 4
br label %100, !llvm.loop !8
111: ; preds = %100
%112 = load i32, ptr @O_RDONLY, align 4
%113 = call i32 @open(ptr noundef @.str, i32 noundef %112)
store i32 %113, ptr %19, align 4
%114 = load i32, ptr %19, align 4
%115 = icmp slt i32 %114, 0
br i1 %115, label %116, label %119
116: ; preds = %111
%117 = call i32 @perror(ptr noundef @.str.6)
%118 = call i32 @exit(i32 noundef 0) #3
unreachable
119: ; preds = %111
br label %120
120: ; preds = %134, %119
%121 = load i32, ptr %19, align 4
%122 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%123 = call i32 @read(i32 noundef %121, ptr noundef %122, i32 noundef 12)
store i32 %123, ptr %22, align 4
%124 = load i32, ptr %22, align 4
%125 = icmp eq i32 %124, 0
br i1 %125, label %126, label %127
126: ; preds = %120
br label %134
127: ; preds = %120
%128 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%129 = getelementptr inbounds i8, ptr %128, i64 8
%130 = call i32 @memcpy(ptr noundef %23, ptr noundef %129, i32 noundef 4)
%131 = load i32, ptr %23, align 4
%132 = load i32, ptr %16, align 4
%133 = add nsw i32 %132, %131
store i32 %133, ptr %16, align 4
br label %134
134: ; preds = %127, %126
%135 = load i32, ptr %22, align 4
%136 = icmp eq i32 %135, 12
br i1 %136, label %120, label %137, !llvm.loop !9
137: ; preds = %134
%138 = load i32, ptr %19, align 4
%139 = call i32 @close(i32 noundef %138)
%140 = call i32 @time(ptr noundef null)
store i32 %140, ptr %25, align 4
%141 = load i32, ptr %16, align 4
%142 = call i32 @printf(ptr noundef @.str.7, i32 noundef %141)
%143 = load i32, ptr %25, align 4
%144 = load i32, ptr %24, align 4
%145 = sub nsw i32 %143, %144
%146 = call i32 @printf(ptr noundef @.str.8, i32 noundef %145)
store i32 0, ptr %3, align 4
br label %147
147: ; preds = %137, %28
%148 = load i32, ptr %3, align 4
ret i32 %148
}
declare i32 @atoi(ptr noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @remove(ptr noundef) #1
declare i64 @fork(...) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @execl(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @wait(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6d63cu5g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"results.txt\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"./pierwsza_zad2\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"pierwsza_zad2\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"error\00", align 1
@.str.5 = private unnamed_addr constant [26 x i8] c"process stopped [pid=%d]\0A\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [17 x i8] c"file1 open error\00", align 1
@.str.7 = private unnamed_addr constant [17 x i8] c"pierwszych = %d\0A\00", align 1
@.str.8 = private unnamed_addr constant [23 x i8] c"czas wykonywania = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [50 x i8], align 16
%7 = alloca [50 x i8], align 16
%8 = alloca [12 x i8], align 1
%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
%26 = load i32, ptr %4, align 4
%27 = icmp slt i32 %26, 4
br i1 %27, label %28, label %29
28: ; preds = %2
store i32 1, ptr %3, align 4
br label %151
29: ; preds = %2
%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 @atoi(ptr noundef %32)
%34 = sub nsw i32 %33, 1
store i32 %34, ptr %10, align 4
%35 = load ptr, ptr %5, align 8
%36 = getelementptr inbounds ptr, ptr %35, i64 2
%37 = load ptr, ptr %36, align 8
%38 = call i32 @atoi(ptr noundef %37)
store i32 %38, ptr %11, align 4
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds ptr, ptr %39, i64 3
%41 = load ptr, ptr %40, align 8
%42 = call i32 @atoi(ptr noundef %41)
store i32 %42, ptr %12, align 4
%43 = load i32, ptr %11, align 4
%44 = load i32, ptr %10, align 4
%45 = sub nsw i32 %43, %44
store i32 %45, ptr %13, align 4
%46 = load i32, ptr %13, align 4
%47 = load i32, ptr %12, align 4
%48 = sdiv i32 %46, %47
store i32 %48, ptr %14, align 4
%49 = load i32, ptr %13, align 4
%50 = load i32, ptr %14, align 4
%51 = load i32, ptr %12, align 4
%52 = mul nsw i32 %50, %51
%53 = sub nsw i32 %49, %52
store i32 %53, ptr %15, align 4
store i32 0, ptr %16, align 4
%54 = call i32 @time(ptr noundef null)
store i32 %54, ptr %24, align 4
%55 = call i32 @remove(ptr noundef @.str)
store i32 0, ptr %17, align 4
%56 = load i32, ptr %17, align 4
%57 = load i32, ptr %12, align 4
%58 = icmp slt i32 %56, %57
br i1 %58, label %.lr.ph, label %101
.lr.ph: ; preds = %29
br label %59
59: ; preds = %.lr.ph, %95
%60 = call i64 (...) @fork()
%61 = icmp eq i64 %60, 0
br i1 %61, label %62, label %94
62: ; preds = %59
%63 = load i32, ptr %10, align 4
%64 = load i32, ptr %17, align 4
%65 = load i32, ptr %14, align 4
%66 = mul nsw i32 %64, %65
%67 = add nsw i32 %63, %66
%68 = add nsw i32 %67, 1
store i32 %68, ptr %20, align 4
%69 = load i32, ptr %10, align 4
%70 = load i32, ptr %17, align 4
%71 = add nsw i32 %70, 1
%72 = load i32, ptr %14, align 4
%73 = mul nsw i32 %71, %72
%74 = add nsw i32 %69, %73
store i32 %74, ptr %21, align 4
%75 = load i32, ptr %17, align 4
%76 = add nsw i32 %75, 1
%77 = load i32, ptr %12, align 4
%78 = icmp eq i32 %76, %77
br i1 %78, label %79, label %83
79: ; preds = %62
%80 = load i32, ptr %15, align 4
%81 = load i32, ptr %21, align 4
%82 = add nsw i32 %81, %80
store i32 %82, ptr %21, align 4
br label %83
83: ; preds = %79, %62
%84 = getelementptr inbounds [50 x i8], ptr %6, i64 0, i64 0
%85 = load i32, ptr %20, align 4
%86 = call i32 @sprintf(ptr noundef %84, ptr noundef @.str.1, i32 noundef %85)
%87 = getelementptr inbounds [50 x i8], ptr %7, i64 0, i64 0
%88 = load i32, ptr %21, align 4
%89 = call i32 @sprintf(ptr noundef %87, ptr noundef @.str.1, i32 noundef %88)
%90 = getelementptr inbounds [50 x i8], ptr %6, i64 0, i64 0
%91 = getelementptr inbounds [50 x i8], ptr %7, i64 0, i64 0
%92 = call i32 @execl(ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef %90, ptr noundef %91, ptr noundef null)
%93 = call i32 @perror(ptr noundef @.str.4)
br label %94
94: ; preds = %83, %59
br label %95
95: ; preds = %94
%96 = load i32, ptr %17, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %17, align 4
%98 = load i32, ptr %17, align 4
%99 = load i32, ptr %12, align 4
%100 = icmp slt i32 %98, %99
br i1 %100, label %59, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %95
br label %101
101: ; preds = %._crit_edge, %29
store i32 0, ptr %17, align 4
%102 = load i32, ptr %17, align 4
%103 = load i32, ptr %12, align 4
%104 = icmp slt i32 %102, %103
br i1 %104, label %.lr.ph2, label %115
.lr.ph2: ; preds = %101
br label %105
105: ; preds = %.lr.ph2, %109
%106 = call i32 @wait(ptr noundef %18)
store i32 %106, ptr %9, align 4
%107 = load i32, ptr %9, align 4
%108 = call i32 @printf(ptr noundef @.str.5, i32 noundef %107)
br label %109
109: ; preds = %105
%110 = load i32, ptr %17, align 4
%111 = add nsw i32 %110, 1
store i32 %111, ptr %17, align 4
%112 = load i32, ptr %17, align 4
%113 = load i32, ptr %12, align 4
%114 = icmp slt i32 %112, %113
br i1 %114, label %105, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %109
br label %115
115: ; preds = %._crit_edge3, %101
%116 = load i32, ptr @O_RDONLY, align 4
%117 = call i32 @open(ptr noundef @.str, i32 noundef %116)
store i32 %117, ptr %19, align 4
%118 = load i32, ptr %19, align 4
%119 = icmp slt i32 %118, 0
br i1 %119, label %120, label %123
120: ; preds = %115
%121 = call i32 @perror(ptr noundef @.str.6)
%122 = call i32 @exit(i32 noundef 0) #3
unreachable
123: ; preds = %115
br label %124
124: ; preds = %138, %123
%125 = load i32, ptr %19, align 4
%126 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%127 = call i32 @read(i32 noundef %125, ptr noundef %126, i32 noundef 12)
store i32 %127, ptr %22, align 4
%128 = load i32, ptr %22, align 4
%129 = icmp eq i32 %128, 0
br i1 %129, label %130, label %131
130: ; preds = %124
br label %138
131: ; preds = %124
%132 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%133 = getelementptr inbounds i8, ptr %132, i64 8
%134 = call i32 @memcpy(ptr noundef %23, ptr noundef %133, i32 noundef 4)
%135 = load i32, ptr %23, align 4
%136 = load i32, ptr %16, align 4
%137 = add nsw i32 %136, %135
store i32 %137, ptr %16, align 4
br label %138
138: ; preds = %131, %130
%139 = load i32, ptr %22, align 4
%140 = icmp eq i32 %139, 12
br i1 %140, label %124, label %141, !llvm.loop !9
141: ; preds = %138
%142 = load i32, ptr %19, align 4
%143 = call i32 @close(i32 noundef %142)
%144 = call i32 @time(ptr noundef null)
store i32 %144, ptr %25, align 4
%145 = load i32, ptr %16, align 4
%146 = call i32 @printf(ptr noundef @.str.7, i32 noundef %145)
%147 = load i32, ptr %25, align 4
%148 = load i32, ptr %24, align 4
%149 = sub nsw i32 %147, %148
%150 = call i32 @printf(ptr noundef @.str.8, i32 noundef %149)
store i32 0, ptr %3, align 4
br label %151
151: ; preds = %141, %28
%152 = load i32, ptr %3, align 4
ret i32 %152
}
declare i32 @atoi(ptr noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @remove(ptr noundef) #1
declare i64 @fork(...) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @execl(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @wait(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpntnk17xt.c'
source_filename = "/tmp/tmpntnk17xt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cma_invalidate_cache(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %6, align 4
%9 = call i32 @xlnkInvalidateCache(i32 noundef %7, i32 noundef %8)
ret void
}
declare i32 @xlnkInvalidateCache(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/tmpntnk17xt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cma_invalidate_cache(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %6, align 4
%9 = call i32 @xlnkInvalidateCache(i32 noundef %7, i32 noundef %8)
ret void
}
declare i32 @xlnkInvalidateCache(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/tmpnfua61l1.c'
source_filename = "/tmp/tmpnfua61l1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SQLITE_OK = dso_local global i32 0, align 4
@SQLITE_ROW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @query_int(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i32 @sql_prepare(ptr noundef %8, ptr noundef %9, ptr noundef %5, i32 noundef -1)
store i32 %10, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr @SQLITE_OK, align 4
%13 = icmp ne i32 %11, %12
br i1 %13, label %21, label %14
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %21, label %17
17: ; preds = %14
%18 = load ptr, ptr %5, align 8
%19 = call i64 @sqlite3_column_count(ptr noundef %18)
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %17, %14, %2
%22 = load ptr, ptr %3, align 8
%23 = call i32 @sql_error(ptr noundef %22)
store i32 0, ptr %7, align 4
br label %35
24: ; preds = %17
%25 = load ptr, ptr %5, align 8
%26 = call i32 @sql_step(ptr noundef %25, i32 noundef -1)
store i32 %26, ptr %6, align 4
%27 = load i32, ptr %6, align 4
%28 = load i32, ptr @SQLITE_ROW, align 4
%29 = icmp eq i32 %27, %28
br i1 %29, label %30, label %33
30: ; preds = %24
%31 = load ptr, ptr %5, align 8
%32 = call i32 @sqlite3_column_int(ptr noundef %31, i32 noundef 0)
store i32 %32, ptr %7, align 4
br label %34
33: ; preds = %24
store i32 0, ptr %7, align 4
br label %34
34: ; preds = %33, %30
br label %35
35: ; preds = %34, %21
%36 = load ptr, ptr %5, align 8
%37 = call i32 @sqlite3_finalize(ptr noundef %36)
%38 = load i32, ptr %7, align 4
ret i32 %38
}
declare i32 @sql_prepare(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @sqlite3_column_count(ptr noundef) #1
declare i32 @sql_error(ptr noundef) #1
declare i32 @sql_step(ptr noundef, i32 noundef) #1
declare i32 @sqlite3_column_int(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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnfua61l1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SQLITE_OK = dso_local global i32 0, align 4
@SQLITE_ROW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @query_int(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i32 @sql_prepare(ptr noundef %8, ptr noundef %9, ptr noundef %5, i32 noundef -1)
store i32 %10, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr @SQLITE_OK, align 4
%13 = icmp ne i32 %11, %12
br i1 %13, label %21, label %14
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %21, label %17
17: ; preds = %14
%18 = load ptr, ptr %5, align 8
%19 = call i64 @sqlite3_column_count(ptr noundef %18)
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %17, %14, %2
%22 = load ptr, ptr %3, align 8
%23 = call i32 @sql_error(ptr noundef %22)
store i32 0, ptr %7, align 4
br label %35
24: ; preds = %17
%25 = load ptr, ptr %5, align 8
%26 = call i32 @sql_step(ptr noundef %25, i32 noundef -1)
store i32 %26, ptr %6, align 4
%27 = load i32, ptr %6, align 4
%28 = load i32, ptr @SQLITE_ROW, align 4
%29 = icmp eq i32 %27, %28
br i1 %29, label %30, label %33
30: ; preds = %24
%31 = load ptr, ptr %5, align 8
%32 = call i32 @sqlite3_column_int(ptr noundef %31, i32 noundef 0)
store i32 %32, ptr %7, align 4
br label %34
33: ; preds = %24
store i32 0, ptr %7, align 4
br label %34
34: ; preds = %33, %30
br label %35
35: ; preds = %34, %21
%36 = load ptr, ptr %5, align 8
%37 = call i32 @sqlite3_finalize(ptr noundef %36)
%38 = load i32, ptr %7, align 4
ret i32 %38
}
declare i32 @sql_prepare(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @sqlite3_column_count(ptr noundef) #1
declare i32 @sql_error(ptr noundef) #1
declare i32 @sql_step(ptr noundef, i32 noundef) #1
declare i32 @sqlite3_column_int(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"}
|
; ModuleID = '/tmp/tmps8wdmn0l.c'
source_filename = "/tmp/tmps8wdmn0l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getsizeBox(i32 noundef %0, i8 noundef signext %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i8, align 1
store i32 %0, ptr %3, align 4
store i8 %1, ptr %4, align 1
%5 = load i32, ptr %3, align 4
%6 = load i8, ptr %4, align 1
%7 = call i32 @getSize(i32 noundef %5, i32 noundef 1, i8 noundef signext %6)
ret i32 %7
}
declare i32 @getSize(i32 noundef, i32 noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmps8wdmn0l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getsizeBox(i32 noundef %0, i8 noundef signext %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i8, align 1
store i32 %0, ptr %3, align 4
store i8 %1, ptr %4, align 1
%5 = load i32, ptr %3, align 4
%6 = load i8, ptr %4, align 1
%7 = call i32 @getSize(i32 noundef %5, i32 noundef 1, i8 noundef signext %6)
ret i32 %7
}
declare i32 @getSize(i32 noundef, i32 noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpuyn1zxwf.c'
source_filename = "/tmp/tmpuyn1zxwf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dcd_delpid() #0 {
%1 = call i32 (...) @fname()
%2 = call i32 @unlink(i32 noundef %1)
ret i32 0
}
declare i32 @unlink(i32 noundef) #1
declare i32 @fname(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuyn1zxwf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dcd_delpid() #0 {
%1 = call i32 (...) @fname()
%2 = call i32 @unlink(i32 noundef %1)
ret i32 0
}
declare i32 @unlink(i32 noundef) #1
declare i32 @fname(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpe_qr8qu_.c'
source_filename = "/tmp/tmpe_qr8qu_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@NID_sha256 = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @jksengine_sha256_update(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i64, ptr %6, align 8
%10 = load i32, ptr @NID_sha256, align 4
%11 = call i32 @jksengine_digests_update(ptr noundef %7, ptr noundef %8, i64 noundef %9, i32 noundef %10)
ret i32 %11
}
declare i32 @jksengine_digests_update(ptr noundef, ptr noundef, i64 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/tmpe_qr8qu_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@NID_sha256 = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @jksengine_sha256_update(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i64, ptr %6, align 8
%10 = load i32, ptr @NID_sha256, align 4
%11 = call i32 @jksengine_digests_update(ptr noundef %7, ptr noundef %8, i64 noundef %9, i32 noundef %10)
ret i32 %11
}
declare i32 @jksengine_digests_update(ptr noundef, ptr noundef, i64 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/tmp7hoa2h7r.c'
source_filename = "/tmp/tmp7hoa2h7r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"after one shift operation: %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"after two shift operation: %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i16, align 2
store i32 0, ptr %1, align 4
store i16 128, ptr %2, align 2
%3 = load i16, ptr %2, align 2
%4 = sext i16 %3 to i32
%5 = shl i32 %4, 1
%6 = trunc i32 %5 to i16
store i16 %6, ptr %2, align 2
%7 = load i16, ptr %2, align 2
%8 = call i32 @printf(ptr noundef @.str, i16 noundef signext %7)
%9 = load i16, ptr %2, align 2
%10 = sext i16 %9 to i32
%11 = shl i32 %10, 3
%12 = trunc i32 %11 to i16
store i16 %12, ptr %2, align 2
%13 = load i16, ptr %2, align 2
%14 = call i32 @printf(ptr noundef @.str.1, i16 noundef signext %13)
ret i32 0
}
declare i32 @printf(ptr noundef, i16 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7hoa2h7r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"after one shift operation: %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"after two shift operation: %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i16, align 2
store i32 0, ptr %1, align 4
store i16 128, ptr %2, align 2
%3 = load i16, ptr %2, align 2
%4 = sext i16 %3 to i32
%5 = shl i32 %4, 1
%6 = trunc i32 %5 to i16
store i16 %6, ptr %2, align 2
%7 = load i16, ptr %2, align 2
%8 = call i32 @printf(ptr noundef @.str, i16 noundef signext %7)
%9 = load i16, ptr %2, align 2
%10 = sext i16 %9 to i32
%11 = shl i32 %10, 3
%12 = trunc i32 %11 to i16
store i16 %12, ptr %2, align 2
%13 = load i16, ptr %2, align 2
%14 = call i32 @printf(ptr noundef @.str.1, i16 noundef signext %13)
ret i32 0
}
declare i32 @printf(ptr noundef, i16 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmps6w4_ypu.c'
source_filename = "/tmp/tmps6w4_ypu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gf_invert_matrix(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
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i8, align 1
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 %12
12: ; preds = %23, %3
%13 = load i32, ptr %8, align 4
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %7, align 4
%16 = mul nsw i32 %14, %15
%17 = icmp slt i32 %13, %16
br i1 %17, label %18, label %26
18: ; preds = %12
%19 = load ptr, ptr %6, align 8
%20 = load i32, ptr %8, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
store i8 0, ptr %22, align 1
br label %23
23: ; preds = %18
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %8, align 4
br label %12, !llvm.loop !6
26: ; preds = %12
store i32 0, ptr %8, align 4
br label %27
27: ; preds = %40, %26
%28 = load i32, ptr %8, align 4
%29 = load i32, ptr %7, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %31, label %43
31: ; preds = %27
%32 = load ptr, ptr %6, align 8
%33 = load i32, ptr %8, align 4
%34 = load i32, ptr %7, align 4
%35 = mul nsw i32 %33, %34
%36 = load i32, ptr %8, align 4
%37 = add nsw i32 %35, %36
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %32, i64 %38
store i8 1, ptr %39, align 1
br label %40
40: ; preds = %31
%41 = load i32, ptr %8, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %8, align 4
br label %27, !llvm.loop !8
43: ; preds = %27
store i32 0, ptr %8, align 4
br label %44
44: ; preds = %306, %43
%45 = load i32, ptr %8, align 4
%46 = load i32, ptr %7, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %48, label %309
48: ; preds = %44
%49 = load ptr, ptr %5, align 8
%50 = load i32, ptr %8, align 4
%51 = load i32, ptr %7, align 4
%52 = mul nsw i32 %50, %51
%53 = load i32, ptr %8, align 4
%54 = add nsw i32 %52, %53
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, ptr %49, i64 %55
%57 = load i8, ptr %56, align 1
%58 = zext i8 %57 to i32
%59 = icmp eq i32 %58, 0
br i1 %59, label %60, label %168
60: ; preds = %48
%61 = load i32, ptr %8, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %9, align 4
br label %63
63: ; preds = %80, %60
%64 = load i32, ptr %9, align 4
%65 = load i32, ptr %7, align 4
%66 = icmp slt i32 %64, %65
br i1 %66, label %67, label %83
67: ; preds = %63
%68 = load ptr, ptr %5, align 8
%69 = load i32, ptr %9, align 4
%70 = load i32, ptr %7, align 4
%71 = mul nsw i32 %69, %70
%72 = load i32, ptr %8, align 4
%73 = add nsw i32 %71, %72
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i8, ptr %68, i64 %74
%76 = load i8, ptr %75, align 1
%77 = icmp ne i8 %76, 0
br i1 %77, label %78, label %79
78: ; preds = %67
br label %83
79: ; preds = %67
br label %80
80: ; preds = %79
%81 = load i32, ptr %9, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %9, align 4
br label %63, !llvm.loop !9
83: ; preds = %78, %63
%84 = load i32, ptr %9, align 4
%85 = load i32, ptr %7, align 4
%86 = icmp eq i32 %84, %85
br i1 %86, label %87, label %88
87: ; preds = %83
store i32 -1, ptr %4, align 4
br label %310
88: ; preds = %83
store i32 0, ptr %10, align 4
br label %89
89: ; preds = %164, %88
%90 = load i32, ptr %10, align 4
%91 = load i32, ptr %7, align 4
%92 = icmp slt i32 %90, %91
br i1 %92, label %93, label %167
93: ; preds = %89
%94 = load ptr, ptr %5, align 8
%95 = load i32, ptr %8, align 4
%96 = load i32, ptr %7, align 4
%97 = mul nsw i32 %95, %96
%98 = load i32, ptr %10, align 4
%99 = add nsw i32 %97, %98
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i8, ptr %94, i64 %100
%102 = load i8, ptr %101, align 1
store i8 %102, ptr %11, align 1
%103 = load ptr, ptr %5, align 8
%104 = load i32, ptr %9, align 4
%105 = load i32, ptr %7, align 4
%106 = mul nsw i32 %104, %105
%107 = load i32, ptr %10, align 4
%108 = add nsw i32 %106, %107
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds i8, ptr %103, i64 %109
%111 = load i8, ptr %110, align 1
%112 = load ptr, ptr %5, align 8
%113 = load i32, ptr %8, align 4
%114 = load i32, ptr %7, align 4
%115 = mul nsw i32 %113, %114
%116 = load i32, ptr %10, align 4
%117 = add nsw i32 %115, %116
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds i8, ptr %112, i64 %118
store i8 %111, ptr %119, align 1
%120 = load i8, ptr %11, align 1
%121 = load ptr, ptr %5, align 8
%122 = load i32, ptr %9, align 4
%123 = load i32, ptr %7, align 4
%124 = mul nsw i32 %122, %123
%125 = load i32, ptr %10, align 4
%126 = add nsw i32 %124, %125
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds i8, ptr %121, i64 %127
store i8 %120, ptr %128, align 1
%129 = load ptr, ptr %6, align 8
%130 = load i32, ptr %8, align 4
%131 = load i32, ptr %7, align 4
%132 = mul nsw i32 %130, %131
%133 = load i32, ptr %10, align 4
%134 = add nsw i32 %132, %133
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds i8, ptr %129, i64 %135
%137 = load i8, ptr %136, align 1
store i8 %137, ptr %11, align 1
%138 = load ptr, ptr %6, align 8
%139 = load i32, ptr %9, align 4
%140 = load i32, ptr %7, align 4
%141 = mul nsw i32 %139, %140
%142 = load i32, ptr %10, align 4
%143 = add nsw i32 %141, %142
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds i8, ptr %138, i64 %144
%146 = load i8, ptr %145, align 1
%147 = load ptr, ptr %6, align 8
%148 = load i32, ptr %8, align 4
%149 = load i32, ptr %7, align 4
%150 = mul nsw i32 %148, %149
%151 = load i32, ptr %10, align 4
%152 = add nsw i32 %150, %151
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds i8, ptr %147, i64 %153
store i8 %146, ptr %154, align 1
%155 = load i8, ptr %11, align 1
%156 = load ptr, ptr %6, align 8
%157 = load i32, ptr %9, align 4
%158 = load i32, ptr %7, align 4
%159 = mul nsw i32 %157, %158
%160 = load i32, ptr %10, align 4
%161 = add nsw i32 %159, %160
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds i8, ptr %156, i64 %162
store i8 %155, ptr %163, align 1
br label %164
164: ; preds = %93
%165 = load i32, ptr %10, align 4
%166 = add nsw i32 %165, 1
store i32 %166, ptr %10, align 4
br label %89, !llvm.loop !10
167: ; preds = %89
br label %168
168: ; preds = %167, %48
%169 = load ptr, ptr %5, align 8
%170 = load i32, ptr %8, align 4
%171 = load i32, ptr %7, align 4
%172 = mul nsw i32 %170, %171
%173 = load i32, ptr %8, align 4
%174 = add nsw i32 %172, %173
%175 = sext i32 %174 to i64
%176 = getelementptr inbounds i8, ptr %169, i64 %175
%177 = load i8, ptr %176, align 1
%178 = call zeroext i8 @gf_inv(i8 noundef zeroext %177)
store i8 %178, ptr %11, align 1
store i32 0, ptr %9, align 4
br label %179
179: ; preds = %222, %168
%180 = load i32, ptr %9, align 4
%181 = load i32, ptr %7, align 4
%182 = icmp slt i32 %180, %181
br i1 %182, label %183, label %225
183: ; preds = %179
%184 = load ptr, ptr %5, align 8
%185 = load i32, ptr %8, align 4
%186 = load i32, ptr %7, align 4
%187 = mul nsw i32 %185, %186
%188 = load i32, ptr %9, align 4
%189 = add nsw i32 %187, %188
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds i8, ptr %184, i64 %190
%192 = load i8, ptr %191, align 1
%193 = load i8, ptr %11, align 1
%194 = call zeroext i8 @gf_mul(i8 noundef zeroext %192, i8 noundef zeroext %193)
%195 = load ptr, ptr %5, align 8
%196 = load i32, ptr %8, align 4
%197 = load i32, ptr %7, align 4
%198 = mul nsw i32 %196, %197
%199 = load i32, ptr %9, align 4
%200 = add nsw i32 %198, %199
%201 = sext i32 %200 to i64
%202 = getelementptr inbounds i8, ptr %195, i64 %201
store i8 %194, ptr %202, align 1
%203 = load ptr, ptr %6, align 8
%204 = load i32, ptr %8, align 4
%205 = load i32, ptr %7, align 4
%206 = mul nsw i32 %204, %205
%207 = load i32, ptr %9, align 4
%208 = add nsw i32 %206, %207
%209 = sext i32 %208 to i64
%210 = getelementptr inbounds i8, ptr %203, i64 %209
%211 = load i8, ptr %210, align 1
%212 = load i8, ptr %11, align 1
%213 = call zeroext i8 @gf_mul(i8 noundef zeroext %211, i8 noundef zeroext %212)
%214 = load ptr, ptr %6, align 8
%215 = load i32, ptr %8, align 4
%216 = load i32, ptr %7, align 4
%217 = mul nsw i32 %215, %216
%218 = load i32, ptr %9, align 4
%219 = add nsw i32 %217, %218
%220 = sext i32 %219 to i64
%221 = getelementptr inbounds i8, ptr %214, i64 %220
store i8 %213, ptr %221, align 1
br label %222
222: ; preds = %183
%223 = load i32, ptr %9, align 4
%224 = add nsw i32 %223, 1
store i32 %224, ptr %9, align 4
br label %179, !llvm.loop !11
225: ; preds = %179
store i32 0, ptr %9, align 4
br label %226
226: ; preds = %302, %225
%227 = load i32, ptr %9, align 4
%228 = load i32, ptr %7, align 4
%229 = icmp slt i32 %227, %228
br i1 %229, label %230, label %305
230: ; preds = %226
%231 = load i32, ptr %9, align 4
%232 = load i32, ptr %8, align 4
%233 = icmp eq i32 %231, %232
br i1 %233, label %234, label %235
234: ; preds = %230
br label %302
235: ; preds = %230
%236 = load ptr, ptr %5, align 8
%237 = load i32, ptr %9, align 4
%238 = load i32, ptr %7, align 4
%239 = mul nsw i32 %237, %238
%240 = load i32, ptr %8, align 4
%241 = add nsw i32 %239, %240
%242 = sext i32 %241 to i64
%243 = getelementptr inbounds i8, ptr %236, i64 %242
%244 = load i8, ptr %243, align 1
store i8 %244, ptr %11, align 1
store i32 0, ptr %10, align 4
br label %245
245: ; preds = %298, %235
%246 = load i32, ptr %10, align 4
%247 = load i32, ptr %7, align 4
%248 = icmp slt i32 %246, %247
br i1 %248, label %249, label %301
249: ; preds = %245
%250 = load i8, ptr %11, align 1
%251 = load ptr, ptr %6, align 8
%252 = load i32, ptr %8, align 4
%253 = load i32, ptr %7, align 4
%254 = mul nsw i32 %252, %253
%255 = load i32, ptr %10, align 4
%256 = add nsw i32 %254, %255
%257 = sext i32 %256 to i64
%258 = getelementptr inbounds i8, ptr %251, i64 %257
%259 = load i8, ptr %258, align 1
%260 = call zeroext i8 @gf_mul(i8 noundef zeroext %250, i8 noundef zeroext %259)
%261 = zext i8 %260 to i32
%262 = load ptr, ptr %6, align 8
%263 = load i32, ptr %9, align 4
%264 = load i32, ptr %7, align 4
%265 = mul nsw i32 %263, %264
%266 = load i32, ptr %10, align 4
%267 = add nsw i32 %265, %266
%268 = sext i32 %267 to i64
%269 = getelementptr inbounds i8, ptr %262, i64 %268
%270 = load i8, ptr %269, align 1
%271 = zext i8 %270 to i32
%272 = xor i32 %271, %261
%273 = trunc i32 %272 to i8
store i8 %273, ptr %269, align 1
%274 = load i8, ptr %11, align 1
%275 = load ptr, ptr %5, align 8
%276 = load i32, ptr %8, align 4
%277 = load i32, ptr %7, align 4
%278 = mul nsw i32 %276, %277
%279 = load i32, ptr %10, align 4
%280 = add nsw i32 %278, %279
%281 = sext i32 %280 to i64
%282 = getelementptr inbounds i8, ptr %275, i64 %281
%283 = load i8, ptr %282, align 1
%284 = call zeroext i8 @gf_mul(i8 noundef zeroext %274, i8 noundef zeroext %283)
%285 = zext i8 %284 to i32
%286 = load ptr, ptr %5, align 8
%287 = load i32, ptr %9, align 4
%288 = load i32, ptr %7, align 4
%289 = mul nsw i32 %287, %288
%290 = load i32, ptr %10, align 4
%291 = add nsw i32 %289, %290
%292 = sext i32 %291 to i64
%293 = getelementptr inbounds i8, ptr %286, i64 %292
%294 = load i8, ptr %293, align 1
%295 = zext i8 %294 to i32
%296 = xor i32 %295, %285
%297 = trunc i32 %296 to i8
store i8 %297, ptr %293, align 1
br label %298
298: ; preds = %249
%299 = load i32, ptr %10, align 4
%300 = add nsw i32 %299, 1
store i32 %300, ptr %10, align 4
br label %245, !llvm.loop !12
301: ; preds = %245
br label %302
302: ; preds = %301, %234
%303 = load i32, ptr %9, align 4
%304 = add nsw i32 %303, 1
store i32 %304, ptr %9, align 4
br label %226, !llvm.loop !13
305: ; preds = %226
br label %306
306: ; preds = %305
%307 = load i32, ptr %8, align 4
%308 = add nsw i32 %307, 1
store i32 %308, ptr %8, align 4
br label %44, !llvm.loop !14
309: ; preds = %44
store i32 0, ptr %4, align 4
br label %310
310: ; preds = %309, %87
%311 = load i32, ptr %4, align 4
ret i32 %311
}
declare zeroext i8 @gf_inv(i8 noundef zeroext) #1
declare zeroext i8 @gf_mul(i8 noundef zeroext, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmps6w4_ypu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gf_invert_matrix(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
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i8, align 1
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
%12 = load i32, ptr %8, align 4
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %7, align 4
%15 = mul nsw i32 %13, %14
%16 = icmp slt i32 %12, %15
br i1 %16, label %.lr.ph, label %30
.lr.ph: ; preds = %3
br label %17
17: ; preds = %.lr.ph, %22
%18 = load ptr, ptr %6, align 8
%19 = load i32, ptr %8, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
store i8 0, ptr %21, align 1
br label %22
22: ; preds = %17
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %8, align 4
%25 = load i32, ptr %8, align 4
%26 = load i32, ptr %7, align 4
%27 = load i32, ptr %7, align 4
%28 = mul nsw i32 %26, %27
%29 = icmp slt i32 %25, %28
br i1 %29, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %30
30: ; preds = %._crit_edge, %3
store i32 0, ptr %8, align 4
%31 = load i32, ptr %8, align 4
%32 = load i32, ptr %7, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %.lr.ph2, label %49
.lr.ph2: ; preds = %30
br label %34
34: ; preds = %.lr.ph2, %43
%35 = load ptr, ptr %6, align 8
%36 = load i32, ptr %8, align 4
%37 = load i32, ptr %7, align 4
%38 = mul nsw i32 %36, %37
%39 = load i32, ptr %8, align 4
%40 = add nsw i32 %38, %39
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8, ptr %35, i64 %41
store i8 1, ptr %42, align 1
br label %43
43: ; preds = %34
%44 = load i32, ptr %8, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %8, align 4
%46 = load i32, ptr %8, align 4
%47 = load i32, ptr %7, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %34, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %43
br label %49
49: ; preds = %._crit_edge3, %30
store i32 0, ptr %8, align 4
%50 = load i32, ptr %8, align 4
%51 = load i32, ptr %7, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %.lr.ph19, label %327
.lr.ph19: ; preds = %49
br label %53
53: ; preds = %.lr.ph19, %321
%54 = load ptr, ptr %5, align 8
%55 = load i32, ptr %8, align 4
%56 = load i32, ptr %7, align 4
%57 = mul nsw i32 %55, %56
%58 = load i32, ptr %8, align 4
%59 = add nsw i32 %57, %58
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i8, ptr %54, i64 %60
%62 = load i8, ptr %61, align 1
%63 = zext i8 %62 to i32
%64 = icmp eq i32 %63, 0
br i1 %64, label %65, label %177
65: ; preds = %53
%66 = load i32, ptr %8, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %9, align 4
%68 = load i32, ptr %9, align 4
%69 = load i32, ptr %7, align 4
%70 = icmp slt i32 %68, %69
br i1 %70, label %.lr.ph5, label %.loopexit
.lr.ph5: ; preds = %65
br label %71
71: ; preds = %.lr.ph5, %84
%72 = load ptr, ptr %5, align 8
%73 = load i32, ptr %9, align 4
%74 = load i32, ptr %7, align 4
%75 = mul nsw i32 %73, %74
%76 = load i32, ptr %8, align 4
%77 = add nsw i32 %75, %76
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i8, ptr %72, i64 %78
%80 = load i8, ptr %79, align 1
%81 = icmp ne i8 %80, 0
br i1 %81, label %82, label %83
82: ; preds = %71
br label %90
83: ; preds = %71
br label %84
84: ; preds = %83
%85 = load i32, ptr %9, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %9, align 4
%87 = load i32, ptr %9, align 4
%88 = load i32, ptr %7, align 4
%89 = icmp slt i32 %87, %88
br i1 %89, label %71, label %..loopexit_crit_edge, !llvm.loop !9
..loopexit_crit_edge: ; preds = %84
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %65
br label %90
90: ; preds = %.loopexit, %82
%91 = load i32, ptr %9, align 4
%92 = load i32, ptr %7, align 4
%93 = icmp eq i32 %91, %92
br i1 %93, label %94, label %95
94: ; preds = %90
store i32 -1, ptr %4, align 4
br label %328
95: ; preds = %90
store i32 0, ptr %10, align 4
%96 = load i32, ptr %10, align 4
%97 = load i32, ptr %7, align 4
%98 = icmp slt i32 %96, %97
br i1 %98, label %.lr.ph7, label %176
.lr.ph7: ; preds = %95
br label %99
99: ; preds = %.lr.ph7, %170
%100 = load ptr, ptr %5, align 8
%101 = load i32, ptr %8, align 4
%102 = load i32, ptr %7, align 4
%103 = mul nsw i32 %101, %102
%104 = load i32, ptr %10, align 4
%105 = add nsw i32 %103, %104
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i8, ptr %100, i64 %106
%108 = load i8, ptr %107, align 1
store i8 %108, ptr %11, align 1
%109 = load ptr, ptr %5, align 8
%110 = load i32, ptr %9, align 4
%111 = load i32, ptr %7, align 4
%112 = mul nsw i32 %110, %111
%113 = load i32, ptr %10, align 4
%114 = add nsw i32 %112, %113
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds i8, ptr %109, i64 %115
%117 = load i8, ptr %116, align 1
%118 = load ptr, ptr %5, align 8
%119 = load i32, ptr %8, align 4
%120 = load i32, ptr %7, align 4
%121 = mul nsw i32 %119, %120
%122 = load i32, ptr %10, align 4
%123 = add nsw i32 %121, %122
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds i8, ptr %118, i64 %124
store i8 %117, ptr %125, align 1
%126 = load i8, ptr %11, align 1
%127 = load ptr, ptr %5, align 8
%128 = load i32, ptr %9, align 4
%129 = load i32, ptr %7, align 4
%130 = mul nsw i32 %128, %129
%131 = load i32, ptr %10, align 4
%132 = add nsw i32 %130, %131
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds i8, ptr %127, i64 %133
store i8 %126, ptr %134, align 1
%135 = load ptr, ptr %6, align 8
%136 = load i32, ptr %8, align 4
%137 = load i32, ptr %7, align 4
%138 = mul nsw i32 %136, %137
%139 = load i32, ptr %10, align 4
%140 = add nsw i32 %138, %139
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds i8, ptr %135, i64 %141
%143 = load i8, ptr %142, align 1
store i8 %143, ptr %11, align 1
%144 = load ptr, ptr %6, align 8
%145 = load i32, ptr %9, align 4
%146 = load i32, ptr %7, align 4
%147 = mul nsw i32 %145, %146
%148 = load i32, ptr %10, align 4
%149 = add nsw i32 %147, %148
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds i8, ptr %144, i64 %150
%152 = load i8, ptr %151, align 1
%153 = load ptr, ptr %6, align 8
%154 = load i32, ptr %8, align 4
%155 = load i32, ptr %7, align 4
%156 = mul nsw i32 %154, %155
%157 = load i32, ptr %10, align 4
%158 = add nsw i32 %156, %157
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds i8, ptr %153, i64 %159
store i8 %152, ptr %160, align 1
%161 = load i8, ptr %11, align 1
%162 = load ptr, ptr %6, align 8
%163 = load i32, ptr %9, align 4
%164 = load i32, ptr %7, align 4
%165 = mul nsw i32 %163, %164
%166 = load i32, ptr %10, align 4
%167 = add nsw i32 %165, %166
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds i8, ptr %162, i64 %168
store i8 %161, ptr %169, align 1
br label %170
170: ; preds = %99
%171 = load i32, ptr %10, align 4
%172 = add nsw i32 %171, 1
store i32 %172, ptr %10, align 4
%173 = load i32, ptr %10, align 4
%174 = load i32, ptr %7, align 4
%175 = icmp slt i32 %173, %174
br i1 %175, label %99, label %._crit_edge8, !llvm.loop !10
._crit_edge8: ; preds = %170
br label %176
176: ; preds = %._crit_edge8, %95
br label %177
177: ; preds = %176, %53
%178 = load ptr, ptr %5, align 8
%179 = load i32, ptr %8, align 4
%180 = load i32, ptr %7, align 4
%181 = mul nsw i32 %179, %180
%182 = load i32, ptr %8, align 4
%183 = add nsw i32 %181, %182
%184 = sext i32 %183 to i64
%185 = getelementptr inbounds i8, ptr %178, i64 %184
%186 = load i8, ptr %185, align 1
%187 = call zeroext i8 @gf_inv(i8 noundef zeroext %186)
store i8 %187, ptr %11, align 1
store i32 0, ptr %9, align 4
%188 = load i32, ptr %9, align 4
%189 = load i32, ptr %7, align 4
%190 = icmp slt i32 %188, %189
br i1 %190, label %.lr.ph10, label %236
.lr.ph10: ; preds = %177
br label %191
191: ; preds = %.lr.ph10, %230
%192 = load ptr, ptr %5, align 8
%193 = load i32, ptr %8, align 4
%194 = load i32, ptr %7, align 4
%195 = mul nsw i32 %193, %194
%196 = load i32, ptr %9, align 4
%197 = add nsw i32 %195, %196
%198 = sext i32 %197 to i64
%199 = getelementptr inbounds i8, ptr %192, i64 %198
%200 = load i8, ptr %199, align 1
%201 = load i8, ptr %11, align 1
%202 = call zeroext i8 @gf_mul(i8 noundef zeroext %200, i8 noundef zeroext %201)
%203 = load ptr, ptr %5, align 8
%204 = load i32, ptr %8, align 4
%205 = load i32, ptr %7, align 4
%206 = mul nsw i32 %204, %205
%207 = load i32, ptr %9, align 4
%208 = add nsw i32 %206, %207
%209 = sext i32 %208 to i64
%210 = getelementptr inbounds i8, ptr %203, i64 %209
store i8 %202, ptr %210, align 1
%211 = load ptr, ptr %6, align 8
%212 = load i32, ptr %8, align 4
%213 = load i32, ptr %7, align 4
%214 = mul nsw i32 %212, %213
%215 = load i32, ptr %9, align 4
%216 = add nsw i32 %214, %215
%217 = sext i32 %216 to i64
%218 = getelementptr inbounds i8, ptr %211, i64 %217
%219 = load i8, ptr %218, align 1
%220 = load i8, ptr %11, align 1
%221 = call zeroext i8 @gf_mul(i8 noundef zeroext %219, i8 noundef zeroext %220)
%222 = load ptr, ptr %6, align 8
%223 = load i32, ptr %8, align 4
%224 = load i32, ptr %7, align 4
%225 = mul nsw i32 %223, %224
%226 = load i32, ptr %9, align 4
%227 = add nsw i32 %225, %226
%228 = sext i32 %227 to i64
%229 = getelementptr inbounds i8, ptr %222, i64 %228
store i8 %221, ptr %229, align 1
br label %230
230: ; preds = %191
%231 = load i32, ptr %9, align 4
%232 = add nsw i32 %231, 1
store i32 %232, ptr %9, align 4
%233 = load i32, ptr %9, align 4
%234 = load i32, ptr %7, align 4
%235 = icmp slt i32 %233, %234
br i1 %235, label %191, label %._crit_edge11, !llvm.loop !11
._crit_edge11: ; preds = %230
br label %236
236: ; preds = %._crit_edge11, %177
store i32 0, ptr %9, align 4
%237 = load i32, ptr %9, align 4
%238 = load i32, ptr %7, align 4
%239 = icmp slt i32 %237, %238
br i1 %239, label %.lr.ph16, label %320
.lr.ph16: ; preds = %236
br label %240
240: ; preds = %.lr.ph16, %314
%241 = load i32, ptr %9, align 4
%242 = load i32, ptr %8, align 4
%243 = icmp eq i32 %241, %242
br i1 %243, label %244, label %245
244: ; preds = %240
br label %314
245: ; preds = %240
%246 = load ptr, ptr %5, align 8
%247 = load i32, ptr %9, align 4
%248 = load i32, ptr %7, align 4
%249 = mul nsw i32 %247, %248
%250 = load i32, ptr %8, align 4
%251 = add nsw i32 %249, %250
%252 = sext i32 %251 to i64
%253 = getelementptr inbounds i8, ptr %246, i64 %252
%254 = load i8, ptr %253, align 1
store i8 %254, ptr %11, align 1
store i32 0, ptr %10, align 4
%255 = load i32, ptr %10, align 4
%256 = load i32, ptr %7, align 4
%257 = icmp slt i32 %255, %256
br i1 %257, label %.lr.ph13, label %313
.lr.ph13: ; preds = %245
br label %258
258: ; preds = %.lr.ph13, %307
%259 = load i8, ptr %11, align 1
%260 = load ptr, ptr %6, align 8
%261 = load i32, ptr %8, align 4
%262 = load i32, ptr %7, align 4
%263 = mul nsw i32 %261, %262
%264 = load i32, ptr %10, align 4
%265 = add nsw i32 %263, %264
%266 = sext i32 %265 to i64
%267 = getelementptr inbounds i8, ptr %260, i64 %266
%268 = load i8, ptr %267, align 1
%269 = call zeroext i8 @gf_mul(i8 noundef zeroext %259, i8 noundef zeroext %268)
%270 = zext i8 %269 to i32
%271 = load ptr, ptr %6, align 8
%272 = load i32, ptr %9, align 4
%273 = load i32, ptr %7, align 4
%274 = mul nsw i32 %272, %273
%275 = load i32, ptr %10, align 4
%276 = add nsw i32 %274, %275
%277 = sext i32 %276 to i64
%278 = getelementptr inbounds i8, ptr %271, i64 %277
%279 = load i8, ptr %278, align 1
%280 = zext i8 %279 to i32
%281 = xor i32 %280, %270
%282 = trunc i32 %281 to i8
store i8 %282, ptr %278, align 1
%283 = load i8, ptr %11, align 1
%284 = load ptr, ptr %5, align 8
%285 = load i32, ptr %8, align 4
%286 = load i32, ptr %7, align 4
%287 = mul nsw i32 %285, %286
%288 = load i32, ptr %10, align 4
%289 = add nsw i32 %287, %288
%290 = sext i32 %289 to i64
%291 = getelementptr inbounds i8, ptr %284, i64 %290
%292 = load i8, ptr %291, align 1
%293 = call zeroext i8 @gf_mul(i8 noundef zeroext %283, i8 noundef zeroext %292)
%294 = zext i8 %293 to i32
%295 = load ptr, ptr %5, align 8
%296 = load i32, ptr %9, align 4
%297 = load i32, ptr %7, align 4
%298 = mul nsw i32 %296, %297
%299 = load i32, ptr %10, align 4
%300 = add nsw i32 %298, %299
%301 = sext i32 %300 to i64
%302 = getelementptr inbounds i8, ptr %295, i64 %301
%303 = load i8, ptr %302, align 1
%304 = zext i8 %303 to i32
%305 = xor i32 %304, %294
%306 = trunc i32 %305 to i8
store i8 %306, ptr %302, align 1
br label %307
307: ; preds = %258
%308 = load i32, ptr %10, align 4
%309 = add nsw i32 %308, 1
store i32 %309, ptr %10, align 4
%310 = load i32, ptr %10, align 4
%311 = load i32, ptr %7, align 4
%312 = icmp slt i32 %310, %311
br i1 %312, label %258, label %._crit_edge14, !llvm.loop !12
._crit_edge14: ; preds = %307
br label %313
313: ; preds = %._crit_edge14, %245
br label %314
314: ; preds = %313, %244
%315 = load i32, ptr %9, align 4
%316 = add nsw i32 %315, 1
store i32 %316, ptr %9, align 4
%317 = load i32, ptr %9, align 4
%318 = load i32, ptr %7, align 4
%319 = icmp slt i32 %317, %318
br i1 %319, label %240, label %._crit_edge17, !llvm.loop !13
._crit_edge17: ; preds = %314
br label %320
320: ; preds = %._crit_edge17, %236
br label %321
321: ; preds = %320
%322 = load i32, ptr %8, align 4
%323 = add nsw i32 %322, 1
store i32 %323, ptr %8, align 4
%324 = load i32, ptr %8, align 4
%325 = load i32, ptr %7, align 4
%326 = icmp slt i32 %324, %325
br i1 %326, label %53, label %._crit_edge20, !llvm.loop !14
._crit_edge20: ; preds = %321
br label %327
327: ; preds = %._crit_edge20, %49
store i32 0, ptr %4, align 4
br label %328
328: ; preds = %327, %94
%329 = load i32, ptr %4, align 4
ret i32 %329
}
declare zeroext i8 @gf_inv(i8 noundef zeroext) #1
declare zeroext i8 @gf_mul(i8 noundef zeroext, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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 = '/tmp/tmpuh_rlowy.c'
source_filename = "/tmp/tmpuh_rlowy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i8 0, align 1
@.str = private unnamed_addr constant [9 x i8] c"-- Data\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @extractHeader(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%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
%11 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
store i32 0, ptr %10, align 4
br label %12
12: ; preds = %53, %4
%13 = load i32, ptr %10, align 4
%14 = load i32, ptr %8, align 4
%15 = sub nsw i32 %14, 1
%16 = icmp slt i32 %13, %15
br i1 %16, label %17, label %56
17: ; preds = %12
%18 = load ptr, ptr %6, align 8
%19 = call signext i8 @fgetc(ptr noundef %18)
%20 = load ptr, ptr %7, align 8
%21 = load i32, ptr %10, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
store i8 %19, ptr %23, align 1
%24 = load ptr, ptr %7, align 8
%25 = load i32, ptr %10, align 4
%26 = add nsw i32 %25, 1
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %24, i64 %27
store i8 0, ptr %28, align 1
%29 = load ptr, ptr %7, align 8
%30 = load i32, ptr %10, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = load i8, ptr @EOF, align 1
%36 = sext i8 %35 to i32
%37 = icmp ne i32 %34, %36
%38 = zext i1 %37 to i32
%39 = call i32 @assert(i32 noundef %38)
%40 = load ptr, ptr %7, align 8
%41 = call ptr @strstr(ptr noundef %40, ptr noundef @.str)
store ptr %41, ptr %11, align 8
%42 = load ptr, ptr %11, align 8
%43 = icmp ne ptr %42, null
br i1 %43, label %44, label %52
44: ; preds = %17
%45 = load ptr, ptr %11, align 8
%46 = load ptr, ptr %7, align 8
%47 = ptrtoint ptr %45 to i64
%48 = ptrtoint ptr %46 to i64
%49 = sub i64 %47, %48
%50 = trunc i64 %49 to i32
%51 = load ptr, ptr %9, align 8
store i32 %50, ptr %51, align 4
store i32 0, ptr %5, align 4
br label %57
52: ; preds = %17
br label %53
53: ; preds = %52
%54 = load i32, ptr %10, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %10, align 4
br label %12, !llvm.loop !6
56: ; preds = %12
store i32 1, ptr %5, align 4
br label %57
57: ; preds = %56, %44
%58 = load i32, ptr %5, align 4
ret i32 %58
}
declare signext i8 @fgetc(ptr noundef) #1
declare i32 @assert(i32 noundef) #1
declare ptr @strstr(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/tmpuh_rlowy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i8 0, align 1
@.str = private unnamed_addr constant [9 x i8] c"-- Data\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @extractHeader(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%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
%11 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
store i32 0, ptr %10, align 4
%12 = load i32, ptr %10, align 4
%13 = load i32, ptr %8, align 4
%14 = sub nsw i32 %13, 1
%15 = icmp slt i32 %12, %14
br i1 %15, label %.lr.ph, label %59
.lr.ph: ; preds = %4
br label %16
16: ; preds = %.lr.ph, %52
%17 = load ptr, ptr %6, align 8
%18 = call signext i8 @fgetc(ptr noundef %17)
%19 = load ptr, ptr %7, align 8
%20 = load i32, ptr %10, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
store i8 %18, ptr %22, align 1
%23 = load ptr, ptr %7, align 8
%24 = load i32, ptr %10, align 4
%25 = add nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %23, i64 %26
store i8 0, ptr %27, align 1
%28 = load ptr, ptr %7, align 8
%29 = load i32, ptr %10, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %28, i64 %30
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = load i8, ptr @EOF, align 1
%35 = sext i8 %34 to i32
%36 = icmp ne i32 %33, %35
%37 = zext i1 %36 to i32
%38 = call i32 @assert(i32 noundef %37)
%39 = load ptr, ptr %7, align 8
%40 = call ptr @strstr(ptr noundef %39, ptr noundef @.str)
store ptr %40, ptr %11, align 8
%41 = load ptr, ptr %11, align 8
%42 = icmp ne ptr %41, null
br i1 %42, label %43, label %51
43: ; preds = %16
%44 = load ptr, ptr %11, align 8
%45 = load ptr, ptr %7, align 8
%46 = ptrtoint ptr %44 to i64
%47 = ptrtoint ptr %45 to i64
%48 = sub i64 %46, %47
%49 = trunc i64 %48 to i32
%50 = load ptr, ptr %9, align 8
store i32 %49, ptr %50, align 4
store i32 0, ptr %5, align 4
br label %60
51: ; preds = %16
br label %52
52: ; preds = %51
%53 = load i32, ptr %10, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %10, align 4
%55 = load i32, ptr %10, align 4
%56 = load i32, ptr %8, align 4
%57 = sub nsw i32 %56, 1
%58 = icmp slt i32 %55, %57
br i1 %58, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %52
br label %59
59: ; preds = %._crit_edge, %4
store i32 1, ptr %5, align 4
br label %60
60: ; preds = %59, %43
%61 = load i32, ptr %5, align 4
ret i32 %61
}
declare signext i8 @fgetc(ptr noundef) #1
declare i32 @assert(i32 noundef) #1
declare ptr @strstr(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/tmpymw_00f1.c'
source_filename = "/tmp/tmpymw_00f1.c"
target datalayout = "e-m:e-p270: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/tmpymw_00f1.c"
target datalayout = "e-m:e-p270: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/tmpuue1wwby.c'
source_filename = "/tmp/tmpuue1wwby.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @zax_uncompress(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca ptr, align 8
%22 = alloca ptr, align 8
%23 = alloca ptr, align 8
%24 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%25 = load ptr, ptr %7, align 8
store ptr %25, ptr %9, align 8
store i32 0, ptr %10, align 4
store i32 0, ptr %11, align 4
store i32 0, ptr %18, align 4
%26 = call i64 @calloc(i32 noundef 1, i32 noundef 3072)
%27 = inttoptr i64 %26 to ptr
store ptr %27, ptr %21, align 8
%28 = call i64 @calloc(i32 noundef 1, i32 noundef 3072)
%29 = inttoptr i64 %28 to ptr
store ptr %29, ptr %22, align 8
%30 = call i64 @calloc(i32 noundef 1, i32 noundef 102400)
%31 = inttoptr i64 %30 to ptr
store ptr %31, ptr %23, align 8
%32 = load ptr, ptr %21, align 8
store ptr %32, ptr %19, align 8
%33 = load ptr, ptr %23, align 8
%34 = getelementptr inbounds i8, ptr %33, i64 -1
store ptr %34, ptr %24, align 8
br label %35
35: ; preds = %308, %4
%36 = load i32, ptr %6, align 4
%37 = icmp sgt i32 %36, 0
br i1 %37, label %38, label %309
38: ; preds = %35
%39 = load i32, ptr %11, align 4
%40 = sub nsw i32 1024, %39
%41 = mul nsw i32 3, %40
store i32 %41, ptr %18, align 4
%42 = load i32, ptr %18, align 4
%43 = icmp sle i32 %42, 0
br i1 %43, label %44, label %45
44: ; preds = %38
br label %309
45: ; preds = %38
%46 = load i32, ptr %18, align 4
%47 = load i32, ptr %6, align 4
%48 = icmp sgt i32 %46, %47
br i1 %48, label %49, label %51
49: ; preds = %45
%50 = load i32, ptr %6, align 4
store i32 %50, ptr %18, align 4
br label %51
51: ; preds = %49, %45
%52 = load ptr, ptr %22, align 8
%53 = load i32, ptr %11, align 4
%54 = mul nsw i32 %53, 3
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, ptr %52, i64 %55
%57 = load ptr, ptr %5, align 8
%58 = load i32, ptr %18, align 4
%59 = call i32 (ptr, ...) @memcpy(ptr noundef %56, ptr noundef %57, i32 noundef %58)
%60 = load i32, ptr %18, align 4
%61 = load ptr, ptr %5, align 8
%62 = sext i32 %60 to i64
%63 = getelementptr inbounds i8, ptr %61, i64 %62
store ptr %63, ptr %5, align 8
%64 = load i32, ptr %18, align 4
%65 = load i32, ptr %6, align 4
%66 = sub nsw i32 %65, %64
store i32 %66, ptr %6, align 4
%67 = load i32, ptr %11, align 4
%68 = load i32, ptr %18, align 4
%69 = add nsw i32 %68, %67
store i32 %69, ptr %18, align 4
%70 = load i32, ptr %18, align 4
%71 = icmp sle i32 %70, 0
br i1 %71, label %72, label %73
72: ; preds = %51
br label %309
73: ; preds = %51
%74 = load i32, ptr %11, align 4
%75 = icmp ne i32 %74, 0
br i1 %75, label %76, label %82
76: ; preds = %73
%77 = load ptr, ptr %22, align 8
%78 = load ptr, ptr %19, align 8
%79 = load i32, ptr %11, align 4
%80 = mul nsw i32 %79, 3
%81 = call i32 (ptr, ...) @memcpy(ptr noundef %77, ptr noundef %78, i32 noundef %80)
br label %82
82: ; preds = %76, %73
%83 = load ptr, ptr %21, align 8
store ptr %83, ptr %20, align 8
%84 = load ptr, ptr %22, align 8
store ptr %84, ptr %21, align 8
%85 = load ptr, ptr %20, align 8
store ptr %85, ptr %22, align 8
%86 = load ptr, ptr %21, align 8
store ptr %86, ptr %19, align 8
store i32 1, ptr %10, align 4
br label %87
87: ; preds = %305, %82
%88 = load i32, ptr %10, align 4
%89 = load i32, ptr %18, align 4
%90 = icmp sle i32 %88, %89
br i1 %90, label %91, label %308
91: ; preds = %87
%92 = load ptr, ptr %19, align 8
%93 = getelementptr inbounds [3 x i8], ptr %92, i64 0, i64 0
%94 = load i8, ptr %93, align 1
%95 = zext i8 %94 to i32
%96 = and i32 %95, 128
%97 = icmp ne i32 %96, 0
br i1 %97, label %98, label %105
98: ; preds = %91
store i32 1, ptr %13, align 4
%99 = load ptr, ptr %19, align 8
%100 = getelementptr inbounds [3 x i8], ptr %99, i64 0, i64 0
%101 = load i8, ptr %100, align 1
%102 = zext i8 %101 to i32
%103 = and i32 %102, 127
%104 = add nsw i32 %103, 1
store i32 %104, ptr %17, align 4
store i32 %104, ptr %12, align 4
br label %153
105: ; preds = %91
%106 = load ptr, ptr %19, align 8
%107 = getelementptr inbounds [3 x i8], ptr %106, i64 0, i64 1
%108 = load i8, ptr %107, align 1
%109 = zext i8 %108 to i32
%110 = and i32 %109, 31
store i32 %110, ptr %15, align 4
%111 = icmp ne i32 %110, 0
br i1 %111, label %124, label %112
112: ; preds = %105
%113 = load ptr, ptr %19, align 8
%114 = getelementptr inbounds [3 x i8], ptr %113, i64 0, i64 0
%115 = load i8, ptr %114, align 1
%116 = zext i8 %115 to i32
%117 = icmp eq i32 %116, 0
br i1 %117, label %118, label %138
118: ; preds = %112
%119 = load ptr, ptr %19, align 8
%120 = getelementptr inbounds [3 x i8], ptr %119, i64 0, i64 1
%121 = load i8, ptr %120, align 1
%122 = zext i8 %121 to i32
%123 = icmp eq i32 %122, 0
br i1 %123, label %124, label %138
124: ; preds = %118, %105
store i32 0, ptr %13, align 4
%125 = load ptr, ptr %19, align 8
%126 = getelementptr inbounds [3 x i8], ptr %125, i64 0, i64 0
%127 = load i8, ptr %126, align 1
%128 = zext i8 %127 to i32
%129 = and i32 %128, 127
%130 = shl i32 %129, 3
%131 = load ptr, ptr %19, align 8
%132 = getelementptr inbounds [3 x i8], ptr %131, i64 0, i64 1
%133 = load i8, ptr %132, align 1
%134 = zext i8 %133 to i32
%135 = and i32 %134, 224
%136 = ashr i32 %135, 5
%137 = add nsw i32 %130, %136
store i32 %137, ptr %14, align 4
br label %152
138: ; preds = %118, %112
store i32 2, ptr %13, align 4
%139 = load ptr, ptr %19, align 8
%140 = getelementptr inbounds [3 x i8], ptr %139, i64 0, i64 0
%141 = load i8, ptr %140, align 1
%142 = zext i8 %141 to i32
%143 = and i32 %142, 127
%144 = shl i32 %143, 3
%145 = load ptr, ptr %19, align 8
%146 = getelementptr inbounds [3 x i8], ptr %145, i64 0, i64 1
%147 = load i8, ptr %146, align 1
%148 = zext i8 %147 to i32
%149 = and i32 %148, 224
%150 = ashr i32 %149, 5
%151 = add nsw i32 %144, %150
store i32 %151, ptr %16, align 4
br label %152
152: ; preds = %138, %124
br label %153
153: ; preds = %152, %98
%154 = load i32, ptr %13, align 4
switch i32 %154, label %248 [
i32 0, label %155
i32 1, label %177
i32 2, label %198
]
155: ; preds = %153
%156 = load ptr, ptr %24, align 8
%157 = getelementptr inbounds i8, ptr %156, i64 1
%158 = load ptr, ptr %24, align 8
%159 = getelementptr inbounds i8, ptr %158, i64 -1024
%160 = load i32, ptr %14, align 4
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds i8, ptr %159, i64 %161
%163 = getelementptr inbounds i8, ptr %162, i64 1
%164 = load i32, ptr %15, align 4
%165 = call i32 (ptr, ...) @memcpy(ptr noundef %157, ptr noundef %163, i32 noundef %164)
%166 = load i32, ptr %15, align 4
%167 = load ptr, ptr %24, align 8
%168 = sext i32 %166 to i64
%169 = getelementptr inbounds i8, ptr %167, i64 %168
store ptr %169, ptr %24, align 8
%170 = load ptr, ptr %19, align 8
%171 = getelementptr inbounds [3 x i8], ptr %170, i64 0, i64 2
%172 = load i8, ptr %171, align 1
%173 = load ptr, ptr %24, align 8
%174 = getelementptr inbounds i8, ptr %173, i32 1
store ptr %174, ptr %24, align 8
store i8 %172, ptr %174, align 1
%175 = load ptr, ptr %19, align 8
%176 = getelementptr inbounds [3 x i8], ptr %175, i32 1
store ptr %176, ptr %19, align 8
br label %248
177: ; preds = %153
br label %178
178: ; preds = %192, %177
%179 = load i32, ptr %12, align 4
%180 = icmp sgt i32 %179, 0
br i1 %180, label %181, label %195
181: ; preds = %178
%182 = load ptr, ptr %19, align 8
%183 = getelementptr inbounds [3 x i8], ptr %182, i64 0, i64 1
%184 = load i8, ptr %183, align 1
%185 = load ptr, ptr %24, align 8
%186 = getelementptr inbounds i8, ptr %185, i32 1
store ptr %186, ptr %24, align 8
store i8 %184, ptr %186, align 1
%187 = load ptr, ptr %19, align 8
%188 = getelementptr inbounds [3 x i8], ptr %187, i64 0, i64 2
%189 = load i8, ptr %188, align 1
%190 = load ptr, ptr %24, align 8
%191 = getelementptr inbounds i8, ptr %190, i32 1
store ptr %191, ptr %24, align 8
store i8 %189, ptr %191, align 1
br label %192
192: ; preds = %181
%193 = load i32, ptr %12, align 4
%194 = add nsw i32 %193, -1
store i32 %194, ptr %12, align 4
br label %178, !llvm.loop !6
195: ; preds = %178
%196 = load ptr, ptr %19, align 8
%197 = getelementptr inbounds [3 x i8], ptr %196, i32 1
store ptr %197, ptr %19, align 8
br label %248
198: ; preds = %153
%199 = load i32, ptr %16, align 4
%200 = icmp eq i32 %199, 1
br i1 %200, label %201, label %206
201: ; preds = %198
%202 = load ptr, ptr %24, align 8
%203 = getelementptr inbounds i8, ptr %202, i32 -1
store ptr %203, ptr %24, align 8
%204 = load ptr, ptr %19, align 8
%205 = getelementptr inbounds [3 x i8], ptr %204, i32 1
store ptr %205, ptr %19, align 8
br label %247
206: ; preds = %198
%207 = load ptr, ptr %24, align 8
%208 = getelementptr inbounds i8, ptr %207, i64 1
%209 = load ptr, ptr %19, align 8
%210 = getelementptr inbounds [3 x i8], ptr %209, i64 1
%211 = load i32, ptr %16, align 4
%212 = call i32 (ptr, ...) @memcpy(ptr noundef %208, ptr noundef %210, i32 noundef %211)
%213 = load i32, ptr %16, align 4
%214 = srem i32 %213, 3
%215 = icmp ne i32 %214, 0
br i1 %215, label %216, label %220
216: ; preds = %206
%217 = load i32, ptr %16, align 4
%218 = sdiv i32 %217, 3
%219 = add nsw i32 %218, 2
br label %224
220: ; preds = %206
%221 = load i32, ptr %16, align 4
%222 = sdiv i32 %221, 3
%223 = add nsw i32 %222, 1
br label %224
224: ; preds = %220, %216
%225 = phi i32 [ %219, %216 ], [ %223, %220 ]
%226 = load ptr, ptr %19, align 8
%227 = sext i32 %225 to i64
%228 = getelementptr inbounds [3 x i8], ptr %226, i64 %227
store ptr %228, ptr %19, align 8
%229 = load i32, ptr %16, align 4
%230 = load ptr, ptr %24, align 8
%231 = sext i32 %229 to i64
%232 = getelementptr inbounds i8, ptr %230, i64 %231
store ptr %232, ptr %24, align 8
%233 = load i32, ptr %16, align 4
%234 = srem i32 %233, 3
%235 = icmp ne i32 %234, 0
br i1 %235, label %236, label %240
236: ; preds = %224
%237 = load i32, ptr %16, align 4
%238 = sdiv i32 %237, 3
%239 = add nsw i32 %238, 1
br label %243
240: ; preds = %224
%241 = load i32, ptr %16, align 4
%242 = sdiv i32 %241, 3
br label %243
243: ; preds = %240, %236
%244 = phi i32 [ %239, %236 ], [ %242, %240 ]
%245 = load i32, ptr %10, align 4
%246 = add nsw i32 %245, %244
store i32 %246, ptr %10, align 4
br label %247
247: ; preds = %243, %201
br label %248
248: ; preds = %153, %247, %195, %155
%249 = load ptr, ptr %23, align 8
%250 = getelementptr inbounds i8, ptr %249, i64 102400
%251 = load ptr, ptr %24, align 8
%252 = ptrtoint ptr %250 to i64
%253 = ptrtoint ptr %251 to i64
%254 = sub i64 %252, %253
%255 = sub nsw i64 %254, 1
%256 = icmp slt i64 %255, 1024
br i1 %256, label %257, label %295
257: ; preds = %248
%258 = load ptr, ptr %24, align 8
%259 = getelementptr inbounds i8, ptr %258, i64 -1024
%260 = load ptr, ptr %23, align 8
%261 = ptrtoint ptr %259 to i64
%262 = ptrtoint ptr %260 to i64
%263 = sub i64 %261, %262
%264 = add nsw i64 %263, 1
%265 = trunc i64 %264 to i32
store i32 %265, ptr %12, align 4
%266 = load i32, ptr %12, align 4
%267 = load i32, ptr %8, align 4
%268 = icmp sgt i32 %266, %267
br i1 %268, label %269, label %271
269: ; preds = %257
%270 = load i32, ptr %8, align 4
store i32 %270, ptr %12, align 4
br label %271
271: ; preds = %269, %257
%272 = load i32, ptr %12, align 4
%273 = icmp sgt i32 %272, 0
br i1 %273, label %274, label %286
274: ; preds = %271
%275 = load ptr, ptr %9, align 8
%276 = load ptr, ptr %23, align 8
%277 = load i32, ptr %12, align 4
%278 = call i32 (ptr, ...) @memcpy(ptr noundef %275, ptr noundef %276, i32 noundef %277)
%279 = load i32, ptr %12, align 4
%280 = load ptr, ptr %9, align 8
%281 = sext i32 %279 to i64
%282 = getelementptr inbounds i8, ptr %280, i64 %281
store ptr %282, ptr %9, align 8
%283 = load i32, ptr %12, align 4
%284 = load i32, ptr %8, align 4
%285 = sub nsw i32 %284, %283
store i32 %285, ptr %8, align 4
br label %286
286: ; preds = %274, %271
%287 = load ptr, ptr %23, align 8
%288 = load ptr, ptr %24, align 8
%289 = getelementptr inbounds i8, ptr %288, i64 -1024
%290 = getelementptr inbounds i8, ptr %289, i64 1
%291 = call i32 (ptr, ...) @memcpy(ptr noundef %287, ptr noundef %290, i32 noundef 1024)
%292 = load ptr, ptr %23, align 8
%293 = getelementptr inbounds i8, ptr %292, i64 1024
%294 = getelementptr inbounds i8, ptr %293, i64 -1
store ptr %294, ptr %24, align 8
br label %295
295: ; preds = %286, %248
%296 = load i32, ptr %18, align 4
%297 = load i32, ptr %10, align 4
%298 = sub nsw i32 %296, %297
store i32 %298, ptr %11, align 4
%299 = icmp slt i32 %298, 342
br i1 %299, label %300, label %304
300: ; preds = %295
%301 = load i32, ptr %18, align 4
%302 = icmp eq i32 %301, 1024
br i1 %302, label %303, label %304
303: ; preds = %300
br label %308
304: ; preds = %300, %295
br label %305
305: ; preds = %304
%306 = load i32, ptr %10, align 4
%307 = add nsw i32 %306, 1
store i32 %307, ptr %10, align 4
br label %87, !llvm.loop !8
308: ; preds = %303, %87
br label %35, !llvm.loop !9
309: ; preds = %72, %44, %35
%310 = load ptr, ptr %24, align 8
%311 = load ptr, ptr %23, align 8
%312 = ptrtoint ptr %310 to i64
%313 = ptrtoint ptr %311 to i64
%314 = sub i64 %312, %313
%315 = add nsw i64 %314, 1
%316 = trunc i64 %315 to i32
store i32 %316, ptr %12, align 4
%317 = load i32, ptr %12, align 4
%318 = load i32, ptr %8, align 4
%319 = icmp sgt i32 %317, %318
br i1 %319, label %320, label %322
320: ; preds = %309
%321 = load i32, ptr %8, align 4
store i32 %321, ptr %12, align 4
br label %322
322: ; preds = %320, %309
%323 = load i32, ptr %12, align 4
%324 = icmp sgt i32 %323, 0
br i1 %324, label %325, label %337
325: ; preds = %322
%326 = load ptr, ptr %9, align 8
%327 = load ptr, ptr %23, align 8
%328 = load i32, ptr %12, align 4
%329 = call i32 (ptr, ...) @memcpy(ptr noundef %326, ptr noundef %327, i32 noundef %328)
%330 = load i32, ptr %12, align 4
%331 = load ptr, ptr %9, align 8
%332 = sext i32 %330 to i64
%333 = getelementptr inbounds i8, ptr %331, i64 %332
store ptr %333, ptr %9, align 8
%334 = load i32, ptr %12, align 4
%335 = load i32, ptr %8, align 4
%336 = sub nsw i32 %335, %334
store i32 %336, ptr %8, align 4
br label %337
337: ; preds = %325, %322
%338 = load ptr, ptr %21, align 8
%339 = call i32 @free(ptr noundef %338)
%340 = load ptr, ptr %22, align 8
%341 = call i32 @free(ptr noundef %340)
%342 = load ptr, ptr %23, align 8
%343 = call i32 @free(ptr noundef %342)
%344 = load ptr, ptr %9, align 8
%345 = load ptr, ptr %7, align 8
%346 = ptrtoint ptr %344 to i64
%347 = ptrtoint ptr %345 to i64
%348 = sub i64 %346, %347
%349 = trunc i64 %348 to i32
ret i32 %349
}
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ...) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuue1wwby.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @zax_uncompress(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca ptr, align 8
%22 = alloca ptr, align 8
%23 = alloca ptr, align 8
%24 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%25 = load ptr, ptr %7, align 8
store ptr %25, ptr %9, align 8
store i32 0, ptr %10, align 4
store i32 0, ptr %11, align 4
store i32 0, ptr %18, align 4
%26 = call i64 @calloc(i32 noundef 1, i32 noundef 3072)
%27 = inttoptr i64 %26 to ptr
store ptr %27, ptr %21, align 8
%28 = call i64 @calloc(i32 noundef 1, i32 noundef 3072)
%29 = inttoptr i64 %28 to ptr
store ptr %29, ptr %22, align 8
%30 = call i64 @calloc(i32 noundef 1, i32 noundef 102400)
%31 = inttoptr i64 %30 to ptr
store ptr %31, ptr %23, align 8
%32 = load ptr, ptr %21, align 8
store ptr %32, ptr %19, align 8
%33 = load ptr, ptr %23, align 8
%34 = getelementptr inbounds i8, ptr %33, i64 -1
store ptr %34, ptr %24, align 8
%35 = load i32, ptr %6, align 4
%36 = icmp sgt i32 %35, 0
br i1 %36, label %.lr.ph5, label %.loopexit1
.lr.ph5: ; preds = %4
br label %37
37: ; preds = %.lr.ph5, %310
%38 = load i32, ptr %11, align 4
%39 = sub nsw i32 1024, %38
%40 = mul nsw i32 3, %39
store i32 %40, ptr %18, align 4
%41 = load i32, ptr %18, align 4
%42 = icmp sle i32 %41, 0
br i1 %42, label %43, label %44
43: ; preds = %37
br label %313
44: ; preds = %37
%45 = load i32, ptr %18, align 4
%46 = load i32, ptr %6, align 4
%47 = icmp sgt i32 %45, %46
br i1 %47, label %48, label %50
48: ; preds = %44
%49 = load i32, ptr %6, align 4
store i32 %49, ptr %18, align 4
br label %50
50: ; preds = %48, %44
%51 = load ptr, ptr %22, align 8
%52 = load i32, ptr %11, align 4
%53 = mul nsw i32 %52, 3
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %51, i64 %54
%56 = load ptr, ptr %5, align 8
%57 = load i32, ptr %18, align 4
%58 = call i32 (ptr, ...) @memcpy(ptr noundef %55, ptr noundef %56, i32 noundef %57)
%59 = load i32, ptr %18, align 4
%60 = load ptr, ptr %5, align 8
%61 = sext i32 %59 to i64
%62 = getelementptr inbounds i8, ptr %60, i64 %61
store ptr %62, ptr %5, align 8
%63 = load i32, ptr %18, align 4
%64 = load i32, ptr %6, align 4
%65 = sub nsw i32 %64, %63
store i32 %65, ptr %6, align 4
%66 = load i32, ptr %11, align 4
%67 = load i32, ptr %18, align 4
%68 = add nsw i32 %67, %66
store i32 %68, ptr %18, align 4
%69 = load i32, ptr %18, align 4
%70 = icmp sle i32 %69, 0
br i1 %70, label %71, label %72
71: ; preds = %50
br label %313
72: ; preds = %50
%73 = load i32, ptr %11, align 4
%74 = icmp ne i32 %73, 0
br i1 %74, label %75, label %81
75: ; preds = %72
%76 = load ptr, ptr %22, align 8
%77 = load ptr, ptr %19, align 8
%78 = load i32, ptr %11, align 4
%79 = mul nsw i32 %78, 3
%80 = call i32 (ptr, ...) @memcpy(ptr noundef %76, ptr noundef %77, i32 noundef %79)
br label %81
81: ; preds = %75, %72
%82 = load ptr, ptr %21, align 8
store ptr %82, ptr %20, align 8
%83 = load ptr, ptr %22, align 8
store ptr %83, ptr %21, align 8
%84 = load ptr, ptr %20, align 8
store ptr %84, ptr %22, align 8
%85 = load ptr, ptr %21, align 8
store ptr %85, ptr %19, align 8
store i32 1, ptr %10, align 4
%86 = load i32, ptr %10, align 4
%87 = load i32, ptr %18, align 4
%88 = icmp sle i32 %86, %87
br i1 %88, label %.lr.ph3, label %.loopexit
.lr.ph3: ; preds = %81
br label %89
89: ; preds = %.lr.ph3, %304
%90 = load ptr, ptr %19, align 8
%91 = getelementptr inbounds [3 x i8], ptr %90, i64 0, i64 0
%92 = load i8, ptr %91, align 1
%93 = zext i8 %92 to i32
%94 = and i32 %93, 128
%95 = icmp ne i32 %94, 0
br i1 %95, label %96, label %103
96: ; preds = %89
store i32 1, ptr %13, align 4
%97 = load ptr, ptr %19, align 8
%98 = getelementptr inbounds [3 x i8], ptr %97, i64 0, i64 0
%99 = load i8, ptr %98, align 1
%100 = zext i8 %99 to i32
%101 = and i32 %100, 127
%102 = add nsw i32 %101, 1
store i32 %102, ptr %17, align 4
store i32 %102, ptr %12, align 4
br label %151
103: ; preds = %89
%104 = load ptr, ptr %19, align 8
%105 = getelementptr inbounds [3 x i8], ptr %104, i64 0, i64 1
%106 = load i8, ptr %105, align 1
%107 = zext i8 %106 to i32
%108 = and i32 %107, 31
store i32 %108, ptr %15, align 4
%109 = icmp ne i32 %108, 0
br i1 %109, label %122, label %110
110: ; preds = %103
%111 = load ptr, ptr %19, align 8
%112 = getelementptr inbounds [3 x i8], ptr %111, i64 0, i64 0
%113 = load i8, ptr %112, align 1
%114 = zext i8 %113 to i32
%115 = icmp eq i32 %114, 0
br i1 %115, label %116, label %136
116: ; preds = %110
%117 = load ptr, ptr %19, align 8
%118 = getelementptr inbounds [3 x i8], ptr %117, i64 0, i64 1
%119 = load i8, ptr %118, align 1
%120 = zext i8 %119 to i32
%121 = icmp eq i32 %120, 0
br i1 %121, label %122, label %136
122: ; preds = %116, %103
store i32 0, ptr %13, align 4
%123 = load ptr, ptr %19, align 8
%124 = getelementptr inbounds [3 x i8], ptr %123, i64 0, i64 0
%125 = load i8, ptr %124, align 1
%126 = zext i8 %125 to i32
%127 = and i32 %126, 127
%128 = shl i32 %127, 3
%129 = load ptr, ptr %19, align 8
%130 = getelementptr inbounds [3 x i8], ptr %129, i64 0, i64 1
%131 = load i8, ptr %130, align 1
%132 = zext i8 %131 to i32
%133 = and i32 %132, 224
%134 = ashr i32 %133, 5
%135 = add nsw i32 %128, %134
store i32 %135, ptr %14, align 4
br label %150
136: ; preds = %116, %110
store i32 2, ptr %13, align 4
%137 = load ptr, ptr %19, align 8
%138 = getelementptr inbounds [3 x i8], ptr %137, i64 0, i64 0
%139 = load i8, ptr %138, align 1
%140 = zext i8 %139 to i32
%141 = and i32 %140, 127
%142 = shl i32 %141, 3
%143 = load ptr, ptr %19, align 8
%144 = getelementptr inbounds [3 x i8], ptr %143, i64 0, i64 1
%145 = load i8, ptr %144, align 1
%146 = zext i8 %145 to i32
%147 = and i32 %146, 224
%148 = ashr i32 %147, 5
%149 = add nsw i32 %142, %148
store i32 %149, ptr %16, align 4
br label %150
150: ; preds = %136, %122
br label %151
151: ; preds = %150, %96
%152 = load i32, ptr %13, align 4
switch i32 %152, label %247 [
i32 0, label %153
i32 1, label %175
i32 2, label %197
]
153: ; preds = %151
%154 = load ptr, ptr %24, align 8
%155 = getelementptr inbounds i8, ptr %154, i64 1
%156 = load ptr, ptr %24, align 8
%157 = getelementptr inbounds i8, ptr %156, i64 -1024
%158 = load i32, ptr %14, align 4
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds i8, ptr %157, i64 %159
%161 = getelementptr inbounds i8, ptr %160, i64 1
%162 = load i32, ptr %15, align 4
%163 = call i32 (ptr, ...) @memcpy(ptr noundef %155, ptr noundef %161, i32 noundef %162)
%164 = load i32, ptr %15, align 4
%165 = load ptr, ptr %24, align 8
%166 = sext i32 %164 to i64
%167 = getelementptr inbounds i8, ptr %165, i64 %166
store ptr %167, ptr %24, align 8
%168 = load ptr, ptr %19, align 8
%169 = getelementptr inbounds [3 x i8], ptr %168, i64 0, i64 2
%170 = load i8, ptr %169, align 1
%171 = load ptr, ptr %24, align 8
%172 = getelementptr inbounds i8, ptr %171, i32 1
store ptr %172, ptr %24, align 8
store i8 %170, ptr %172, align 1
%173 = load ptr, ptr %19, align 8
%174 = getelementptr inbounds [3 x i8], ptr %173, i32 1
store ptr %174, ptr %19, align 8
br label %247
175: ; preds = %151
%176 = load i32, ptr %12, align 4
%177 = icmp sgt i32 %176, 0
br i1 %177, label %.lr.ph, label %194
.lr.ph: ; preds = %175
br label %178
178: ; preds = %.lr.ph, %189
%179 = load ptr, ptr %19, align 8
%180 = getelementptr inbounds [3 x i8], ptr %179, i64 0, i64 1
%181 = load i8, ptr %180, align 1
%182 = load ptr, ptr %24, align 8
%183 = getelementptr inbounds i8, ptr %182, i32 1
store ptr %183, ptr %24, align 8
store i8 %181, ptr %183, align 1
%184 = load ptr, ptr %19, align 8
%185 = getelementptr inbounds [3 x i8], ptr %184, i64 0, i64 2
%186 = load i8, ptr %185, align 1
%187 = load ptr, ptr %24, align 8
%188 = getelementptr inbounds i8, ptr %187, i32 1
store ptr %188, ptr %24, align 8
store i8 %186, ptr %188, align 1
br label %189
189: ; preds = %178
%190 = load i32, ptr %12, align 4
%191 = add nsw i32 %190, -1
store i32 %191, ptr %12, align 4
%192 = load i32, ptr %12, align 4
%193 = icmp sgt i32 %192, 0
br i1 %193, label %178, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %189
br label %194
194: ; preds = %._crit_edge, %175
%195 = load ptr, ptr %19, align 8
%196 = getelementptr inbounds [3 x i8], ptr %195, i32 1
store ptr %196, ptr %19, align 8
br label %247
197: ; preds = %151
%198 = load i32, ptr %16, align 4
%199 = icmp eq i32 %198, 1
br i1 %199, label %200, label %205
200: ; preds = %197
%201 = load ptr, ptr %24, align 8
%202 = getelementptr inbounds i8, ptr %201, i32 -1
store ptr %202, ptr %24, align 8
%203 = load ptr, ptr %19, align 8
%204 = getelementptr inbounds [3 x i8], ptr %203, i32 1
store ptr %204, ptr %19, align 8
br label %246
205: ; preds = %197
%206 = load ptr, ptr %24, align 8
%207 = getelementptr inbounds i8, ptr %206, i64 1
%208 = load ptr, ptr %19, align 8
%209 = getelementptr inbounds [3 x i8], ptr %208, i64 1
%210 = load i32, ptr %16, align 4
%211 = call i32 (ptr, ...) @memcpy(ptr noundef %207, ptr noundef %209, i32 noundef %210)
%212 = load i32, ptr %16, align 4
%213 = srem i32 %212, 3
%214 = icmp ne i32 %213, 0
br i1 %214, label %215, label %219
215: ; preds = %205
%216 = load i32, ptr %16, align 4
%217 = sdiv i32 %216, 3
%218 = add nsw i32 %217, 2
br label %223
219: ; preds = %205
%220 = load i32, ptr %16, align 4
%221 = sdiv i32 %220, 3
%222 = add nsw i32 %221, 1
br label %223
223: ; preds = %219, %215
%224 = phi i32 [ %218, %215 ], [ %222, %219 ]
%225 = load ptr, ptr %19, align 8
%226 = sext i32 %224 to i64
%227 = getelementptr inbounds [3 x i8], ptr %225, i64 %226
store ptr %227, ptr %19, align 8
%228 = load i32, ptr %16, align 4
%229 = load ptr, ptr %24, align 8
%230 = sext i32 %228 to i64
%231 = getelementptr inbounds i8, ptr %229, i64 %230
store ptr %231, ptr %24, align 8
%232 = load i32, ptr %16, align 4
%233 = srem i32 %232, 3
%234 = icmp ne i32 %233, 0
br i1 %234, label %235, label %239
235: ; preds = %223
%236 = load i32, ptr %16, align 4
%237 = sdiv i32 %236, 3
%238 = add nsw i32 %237, 1
br label %242
239: ; preds = %223
%240 = load i32, ptr %16, align 4
%241 = sdiv i32 %240, 3
br label %242
242: ; preds = %239, %235
%243 = phi i32 [ %238, %235 ], [ %241, %239 ]
%244 = load i32, ptr %10, align 4
%245 = add nsw i32 %244, %243
store i32 %245, ptr %10, align 4
br label %246
246: ; preds = %242, %200
br label %247
247: ; preds = %246, %194, %153, %151
%248 = load ptr, ptr %23, align 8
%249 = getelementptr inbounds i8, ptr %248, i64 102400
%250 = load ptr, ptr %24, align 8
%251 = ptrtoint ptr %249 to i64
%252 = ptrtoint ptr %250 to i64
%253 = sub i64 %251, %252
%254 = sub nsw i64 %253, 1
%255 = icmp slt i64 %254, 1024
br i1 %255, label %256, label %294
256: ; preds = %247
%257 = load ptr, ptr %24, align 8
%258 = getelementptr inbounds i8, ptr %257, i64 -1024
%259 = load ptr, ptr %23, align 8
%260 = ptrtoint ptr %258 to i64
%261 = ptrtoint ptr %259 to i64
%262 = sub i64 %260, %261
%263 = add nsw i64 %262, 1
%264 = trunc i64 %263 to i32
store i32 %264, ptr %12, align 4
%265 = load i32, ptr %12, align 4
%266 = load i32, ptr %8, align 4
%267 = icmp sgt i32 %265, %266
br i1 %267, label %268, label %270
268: ; preds = %256
%269 = load i32, ptr %8, align 4
store i32 %269, ptr %12, align 4
br label %270
270: ; preds = %268, %256
%271 = load i32, ptr %12, align 4
%272 = icmp sgt i32 %271, 0
br i1 %272, label %273, label %285
273: ; preds = %270
%274 = load ptr, ptr %9, align 8
%275 = load ptr, ptr %23, align 8
%276 = load i32, ptr %12, align 4
%277 = call i32 (ptr, ...) @memcpy(ptr noundef %274, ptr noundef %275, i32 noundef %276)
%278 = load i32, ptr %12, align 4
%279 = load ptr, ptr %9, align 8
%280 = sext i32 %278 to i64
%281 = getelementptr inbounds i8, ptr %279, i64 %280
store ptr %281, ptr %9, align 8
%282 = load i32, ptr %12, align 4
%283 = load i32, ptr %8, align 4
%284 = sub nsw i32 %283, %282
store i32 %284, ptr %8, align 4
br label %285
285: ; preds = %273, %270
%286 = load ptr, ptr %23, align 8
%287 = load ptr, ptr %24, align 8
%288 = getelementptr inbounds i8, ptr %287, i64 -1024
%289 = getelementptr inbounds i8, ptr %288, i64 1
%290 = call i32 (ptr, ...) @memcpy(ptr noundef %286, ptr noundef %289, i32 noundef 1024)
%291 = load ptr, ptr %23, align 8
%292 = getelementptr inbounds i8, ptr %291, i64 1024
%293 = getelementptr inbounds i8, ptr %292, i64 -1
store ptr %293, ptr %24, align 8
br label %294
294: ; preds = %285, %247
%295 = load i32, ptr %18, align 4
%296 = load i32, ptr %10, align 4
%297 = sub nsw i32 %295, %296
store i32 %297, ptr %11, align 4
%298 = icmp slt i32 %297, 342
br i1 %298, label %299, label %303
299: ; preds = %294
%300 = load i32, ptr %18, align 4
%301 = icmp eq i32 %300, 1024
br i1 %301, label %302, label %303
302: ; preds = %299
br label %310
303: ; preds = %299, %294
br label %304
304: ; preds = %303
%305 = load i32, ptr %10, align 4
%306 = add nsw i32 %305, 1
store i32 %306, ptr %10, align 4
%307 = load i32, ptr %10, align 4
%308 = load i32, ptr %18, align 4
%309 = icmp sle i32 %307, %308
br i1 %309, label %89, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %304
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %81
br label %310
310: ; preds = %.loopexit, %302
%311 = load i32, ptr %6, align 4
%312 = icmp sgt i32 %311, 0
br i1 %312, label %37, label %..loopexit1_crit_edge, !llvm.loop !9
..loopexit1_crit_edge: ; preds = %310
br label %.loopexit1
.loopexit1: ; preds = %..loopexit1_crit_edge, %4
br label %313
313: ; preds = %.loopexit1, %71, %43
%314 = load ptr, ptr %24, align 8
%315 = load ptr, ptr %23, align 8
%316 = ptrtoint ptr %314 to i64
%317 = ptrtoint ptr %315 to i64
%318 = sub i64 %316, %317
%319 = add nsw i64 %318, 1
%320 = trunc i64 %319 to i32
store i32 %320, ptr %12, align 4
%321 = load i32, ptr %12, align 4
%322 = load i32, ptr %8, align 4
%323 = icmp sgt i32 %321, %322
br i1 %323, label %324, label %326
324: ; preds = %313
%325 = load i32, ptr %8, align 4
store i32 %325, ptr %12, align 4
br label %326
326: ; preds = %324, %313
%327 = load i32, ptr %12, align 4
%328 = icmp sgt i32 %327, 0
br i1 %328, label %329, label %341
329: ; preds = %326
%330 = load ptr, ptr %9, align 8
%331 = load ptr, ptr %23, align 8
%332 = load i32, ptr %12, align 4
%333 = call i32 (ptr, ...) @memcpy(ptr noundef %330, ptr noundef %331, i32 noundef %332)
%334 = load i32, ptr %12, align 4
%335 = load ptr, ptr %9, align 8
%336 = sext i32 %334 to i64
%337 = getelementptr inbounds i8, ptr %335, i64 %336
store ptr %337, ptr %9, align 8
%338 = load i32, ptr %12, align 4
%339 = load i32, ptr %8, align 4
%340 = sub nsw i32 %339, %338
store i32 %340, ptr %8, align 4
br label %341
341: ; preds = %329, %326
%342 = load ptr, ptr %21, align 8
%343 = call i32 @free(ptr noundef %342)
%344 = load ptr, ptr %22, align 8
%345 = call i32 @free(ptr noundef %344)
%346 = load ptr, ptr %23, align 8
%347 = call i32 @free(ptr noundef %346)
%348 = load ptr, ptr %9, align 8
%349 = load ptr, ptr %7, align 8
%350 = ptrtoint ptr %348 to i64
%351 = ptrtoint ptr %349 to i64
%352 = sub i64 %350, %351
%353 = trunc i64 %352 to i32
ret i32 %353
}
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @memcpy(ptr noundef, ...) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpl1z_mdo9.c'
source_filename = "/tmp/tmpl1z_mdo9.c"
target datalayout = "e-m:e-p270: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 [23 x i8] c"Usage: %s [options] s\0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c" %s [-n/-p/-r]\0A\00", align 1
@.str.2 = private unnamed_addr constant [36 x i8] c"For more information type: %s -h \0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @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 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = load i32, ptr @stderr, align 4
%7 = load ptr, ptr %2, align 8
%8 = call i32 @fprintf(i32 noundef %6, ptr noundef @.str.1, ptr noundef %7)
%9 = load i32, ptr @stderr, align 4
%10 = load ptr, ptr %2, align 8
%11 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str.2, ptr noundef %10)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl1z_mdo9.c"
target datalayout = "e-m:e-p270: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 [23 x i8] c"Usage: %s [options] s\0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c" %s [-n/-p/-r]\0A\00", align 1
@.str.2 = private unnamed_addr constant [36 x i8] c"For more information type: %s -h \0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @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 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = load i32, ptr @stderr, align 4
%7 = load ptr, ptr %2, align 8
%8 = call i32 @fprintf(i32 noundef %6, ptr noundef @.str.1, ptr noundef %7)
%9 = load i32, ptr @stderr, align 4
%10 = load ptr, ptr %2, align 8
%11 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str.2, ptr noundef %10)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpi9zgj6g8.c'
source_filename = "/tmp/tmpi9zgj6g8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"ERROR na inicia_engine()\0A\00", align 1
@stdscr = dso_local global i32 0, align 4
@TRUE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @inicia_engine() #0 {
%1 = call ptr (...) @initscr()
%2 = icmp eq ptr %1, null
br i1 %2, label %3, label %6
3: ; preds = %0
%4 = call i32 @printf(ptr noundef @.str)
%5 = call i32 @exit(i32 noundef 0) #3
unreachable
6: ; preds = %0
%7 = call i32 (...) @raw()
%8 = load i32, ptr @stdscr, align 4
%9 = load i32, ptr @TRUE, align 4
%10 = call i32 @keypad(i32 noundef %8, i32 noundef %9)
%11 = call i32 (...) @noecho()
ret void
}
declare ptr @initscr(...) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @raw(...) #1
declare i32 @keypad(i32 noundef, i32 noundef) #1
declare i32 @noecho(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpi9zgj6g8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"ERROR na inicia_engine()\0A\00", align 1
@stdscr = dso_local global i32 0, align 4
@TRUE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @inicia_engine() #0 {
%1 = call ptr (...) @initscr()
%2 = icmp eq ptr %1, null
br i1 %2, label %3, label %6
3: ; preds = %0
%4 = call i32 @printf(ptr noundef @.str)
%5 = call i32 @exit(i32 noundef 0) #3
unreachable
6: ; preds = %0
%7 = call i32 (...) @raw()
%8 = load i32, ptr @stdscr, align 4
%9 = load i32, ptr @TRUE, align 4
%10 = call i32 @keypad(i32 noundef %8, i32 noundef %9)
%11 = call i32 (...) @noecho()
ret void
}
declare ptr @initscr(...) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @raw(...) #1
declare i32 @keypad(i32 noundef, i32 noundef) #1
declare i32 @noecho(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmp1ddejue3.c'
source_filename = "/tmp/tmp1ddejue3.c"
target datalayout = "e-m:e-p270: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/tmp1ddejue3.c"
target datalayout = "e-m:e-p270: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/tmptsefmq59.c'
source_filename = "/tmp/tmptsefmq59.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @two_pointers_unregistered_before_call() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = call ptr @malloc(i32 noundef 96)
store ptr %3, ptr %1, align 8
%4 = call ptr @malloc(i32 noundef 184)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %1, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 @my_task(ptr noundef %5, ptr noundef %6)
ret void
}
declare ptr @malloc(i32 noundef) #1
declare i32 @my_task(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/tmptsefmq59.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @two_pointers_unregistered_before_call() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = call ptr @malloc(i32 noundef 96)
store ptr %3, ptr %1, align 8
%4 = call ptr @malloc(i32 noundef 184)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %1, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 @my_task(ptr noundef %5, ptr noundef %6)
ret void
}
declare ptr @malloc(i32 noundef) #1
declare i32 @my_task(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/tmpn6flxrkl.c'
source_filename = "/tmp/tmpn6flxrkl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stravltree_add(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %5, align 8
%8 = call ptr @strdup(ptr noundef %7)
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %12, label %11
11: ; preds = %2
store ptr null, ptr %3, align 8
br label %16
12: ; preds = %2
%13 = load ptr, ptr %4, align 8
%14 = load ptr, ptr %6, align 8
%15 = call ptr @mavl_add(ptr noundef %13, ptr noundef %14)
store ptr %15, ptr %3, align 8
br label %16
16: ; preds = %12, %11
%17 = load ptr, ptr %3, align 8
ret ptr %17
}
declare ptr @strdup(ptr noundef) #1
declare ptr @mavl_add(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/tmpn6flxrkl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stravltree_add(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %5, align 8
%8 = call ptr @strdup(ptr noundef %7)
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %12, label %11
11: ; preds = %2
store ptr null, ptr %3, align 8
br label %16
12: ; preds = %2
%13 = load ptr, ptr %4, align 8
%14 = load ptr, ptr %6, align 8
%15 = call ptr @mavl_add(ptr noundef %13, ptr noundef %14)
store ptr %15, ptr %3, align 8
br label %16
16: ; preds = %12, %11
%17 = load ptr, ptr %3, align 8
ret ptr %17
}
declare ptr @strdup(ptr noundef) #1
declare ptr @mavl_add(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/tmpue9waddw.c'
source_filename = "/tmp/tmpue9waddw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"sin\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"cos\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"tan\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"exp\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"pow\00", align 1
@.str.5 = private unnamed_addr constant [30 x i8] c"error: trying to get '%f^%f'\0A\00", align 1
@.str.6 = private unnamed_addr constant [29 x i8] c"error: unknown command '%s'\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @process_function_or_variable(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i64 @strcmp(ptr noundef %5, ptr noundef @.str)
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %12
8: ; preds = %1
%9 = call double (...) @pop()
%10 = call i32 @sin(double noundef %9)
%11 = call i32 @push(i32 noundef %10)
br label %73
12: ; preds = %1
%13 = load ptr, ptr %2, align 8
%14 = call i64 @strcmp(ptr noundef %13, ptr noundef @.str.1)
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %20
16: ; preds = %12
%17 = call double (...) @pop()
%18 = call i32 @cos(double noundef %17)
%19 = call i32 @push(i32 noundef %18)
br label %72
20: ; preds = %12
%21 = load ptr, ptr %2, align 8
%22 = call i64 @strcmp(ptr noundef %21, ptr noundef @.str.2)
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %28
24: ; preds = %20
%25 = call double (...) @pop()
%26 = call i32 @tan(double noundef %25)
%27 = call i32 @push(i32 noundef %26)
br label %71
28: ; preds = %20
%29 = load ptr, ptr %2, align 8
%30 = call i64 @strcmp(ptr noundef %29, ptr noundef @.str.3)
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %36
32: ; preds = %28
%33 = call double (...) @pop()
%34 = call i32 @exp(double noundef %33)
%35 = call i32 @push(i32 noundef %34)
br label %70
36: ; preds = %28
%37 = load ptr, ptr %2, align 8
%38 = call i64 @strcmp(ptr noundef %37, ptr noundef @.str.4)
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %58
40: ; preds = %36
%41 = call double (...) @pop()
store double %41, ptr %3, align 8
%42 = call double (...) @pop()
store double %42, ptr %4, align 8
%43 = load double, ptr %4, align 8
%44 = fcmp oeq double %43, 0.000000e+00
br i1 %44, label %45, label %52
45: ; preds = %40
%46 = load double, ptr %3, align 8
%47 = fcmp ole double %46, 0.000000e+00
br i1 %47, label %48, label %52
48: ; preds = %45
%49 = load double, ptr %4, align 8
%50 = load double, ptr %3, align 8
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %49, double noundef %50)
br label %57
52: ; preds = %45, %40
%53 = load double, ptr %4, align 8
%54 = load double, ptr %3, align 8
%55 = call i32 @pow(double noundef %53, double noundef %54)
%56 = call i32 @push(i32 noundef %55)
br label %57
57: ; preds = %52, %48
br label %69
58: ; preds = %36
%59 = load ptr, ptr %2, align 8
%60 = call i32 @strlen(ptr noundef %59)
%61 = icmp eq i32 %60, 1
br i1 %61, label %62, label %65
62: ; preds = %58
%63 = load ptr, ptr %2, align 8
%64 = call i32 @process_variable(ptr noundef %63)
br label %68
65: ; preds = %58
%66 = load ptr, ptr %2, align 8
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %66)
br label %68
68: ; preds = %65, %62
br label %69
69: ; preds = %68, %57
br label %70
70: ; preds = %69, %32
br label %71
71: ; preds = %70, %24
br label %72
72: ; preds = %71, %16
br label %73
73: ; preds = %72, %8
ret void
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @push(i32 noundef) #1
declare i32 @sin(double noundef) #1
declare double @pop(...) #1
declare i32 @cos(double noundef) #1
declare i32 @tan(double noundef) #1
declare i32 @exp(double noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @pow(double noundef, double noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @process_variable(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpue9waddw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"sin\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"cos\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"tan\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"exp\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"pow\00", align 1
@.str.5 = private unnamed_addr constant [30 x i8] c"error: trying to get '%f^%f'\0A\00", align 1
@.str.6 = private unnamed_addr constant [29 x i8] c"error: unknown command '%s'\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @process_function_or_variable(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i64 @strcmp(ptr noundef %5, ptr noundef @.str)
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %12
8: ; preds = %1
%9 = call double (...) @pop()
%10 = call i32 @sin(double noundef %9)
%11 = call i32 @push(i32 noundef %10)
br label %73
12: ; preds = %1
%13 = load ptr, ptr %2, align 8
%14 = call i64 @strcmp(ptr noundef %13, ptr noundef @.str.1)
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %20
16: ; preds = %12
%17 = call double (...) @pop()
%18 = call i32 @cos(double noundef %17)
%19 = call i32 @push(i32 noundef %18)
br label %72
20: ; preds = %12
%21 = load ptr, ptr %2, align 8
%22 = call i64 @strcmp(ptr noundef %21, ptr noundef @.str.2)
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %28
24: ; preds = %20
%25 = call double (...) @pop()
%26 = call i32 @tan(double noundef %25)
%27 = call i32 @push(i32 noundef %26)
br label %71
28: ; preds = %20
%29 = load ptr, ptr %2, align 8
%30 = call i64 @strcmp(ptr noundef %29, ptr noundef @.str.3)
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %36
32: ; preds = %28
%33 = call double (...) @pop()
%34 = call i32 @exp(double noundef %33)
%35 = call i32 @push(i32 noundef %34)
br label %70
36: ; preds = %28
%37 = load ptr, ptr %2, align 8
%38 = call i64 @strcmp(ptr noundef %37, ptr noundef @.str.4)
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %58
40: ; preds = %36
%41 = call double (...) @pop()
store double %41, ptr %3, align 8
%42 = call double (...) @pop()
store double %42, ptr %4, align 8
%43 = load double, ptr %4, align 8
%44 = fcmp oeq double %43, 0.000000e+00
br i1 %44, label %45, label %52
45: ; preds = %40
%46 = load double, ptr %3, align 8
%47 = fcmp ole double %46, 0.000000e+00
br i1 %47, label %48, label %52
48: ; preds = %45
%49 = load double, ptr %4, align 8
%50 = load double, ptr %3, align 8
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %49, double noundef %50)
br label %57
52: ; preds = %45, %40
%53 = load double, ptr %4, align 8
%54 = load double, ptr %3, align 8
%55 = call i32 @pow(double noundef %53, double noundef %54)
%56 = call i32 @push(i32 noundef %55)
br label %57
57: ; preds = %52, %48
br label %69
58: ; preds = %36
%59 = load ptr, ptr %2, align 8
%60 = call i32 @strlen(ptr noundef %59)
%61 = icmp eq i32 %60, 1
br i1 %61, label %62, label %65
62: ; preds = %58
%63 = load ptr, ptr %2, align 8
%64 = call i32 @process_variable(ptr noundef %63)
br label %68
65: ; preds = %58
%66 = load ptr, ptr %2, align 8
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %66)
br label %68
68: ; preds = %65, %62
br label %69
69: ; preds = %68, %57
br label %70
70: ; preds = %69, %32
br label %71
71: ; preds = %70, %24
br label %72
72: ; preds = %71, %16
br label %73
73: ; preds = %72, %8
ret void
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @push(i32 noundef) #1
declare i32 @sin(double noundef) #1
declare double @pop(...) #1
declare i32 @cos(double noundef) #1
declare i32 @tan(double noundef) #1
declare i32 @exp(double noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @pow(double noundef, double noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @process_variable(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9tm86ian.c'
source_filename = "/tmp/tmp9tm86ian.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"Before test:\0A\09cc = [%c]\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"After test:\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"\0A\09EOF cc = [%c]\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [22 x i8] c"\0A\09NOT EOF cc = [%c]\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %4
4: ; preds = %32, %0
%5 = call i32 (...) @getchar()
store i32 %5, ptr %2, align 4
%6 = load i32, ptr @EOF, align 4
%7 = icmp ne i32 %5, %6
br i1 %7, label %8, label %33
8: ; preds = %4
%9 = load i32, ptr %2, align 4
%10 = icmp ne i32 %9, 10
br i1 %10, label %11, label %32
11: ; preds = %8
%12 = load i32, ptr %2, align 4
store i32 %12, ptr %3, align 4
%13 = load i32, ptr %3, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %13)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%16 = call i32 (...) @getchar()
store i32 %16, ptr %2, align 4
%17 = load i32, ptr @EOF, align 4
%18 = icmp eq i32 %16, %17
br i1 %18, label %19, label %23
19: ; preds = %11
%20 = load i32, ptr %2, align 4
store i32 %20, ptr %3, align 4
%21 = load i32, ptr %3, align 4
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %21)
br label %33
23: ; preds = %11
%24 = load i32, ptr %2, align 4
%25 = icmp ne i32 %24, 10
br i1 %25, label %26, label %30
26: ; preds = %23
%27 = load i32, ptr %2, align 4
store i32 %27, ptr %3, align 4
%28 = load i32, ptr %3, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %28)
br label %30
30: ; preds = %26, %23
br label %31
31: ; preds = %30
br label %32
32: ; preds = %31, %8
br label %4, !llvm.loop !6
33: ; preds = %19, %4
ret i32 0
}
declare i32 @getchar(...) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9tm86ian.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"Before test:\0A\09cc = [%c]\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"After test:\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"\0A\09EOF cc = [%c]\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [22 x i8] c"\0A\09NOT EOF cc = [%c]\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (...) @getchar()
store i32 %4, ptr %2, align 4
%5 = load i32, ptr @EOF, align 4
%6 = icmp ne i32 %4, %5
br i1 %6, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %31
%8 = load i32, ptr %2, align 4
%9 = icmp ne i32 %8, 10
br i1 %9, label %10, label %31
10: ; preds = %7
%11 = load i32, ptr %2, align 4
store i32 %11, ptr %3, align 4
%12 = load i32, ptr %3, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %12)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%15 = call i32 (...) @getchar()
store i32 %15, ptr %2, align 4
%16 = load i32, ptr @EOF, align 4
%17 = icmp eq i32 %15, %16
br i1 %17, label %18, label %22
18: ; preds = %10
%19 = load i32, ptr %2, align 4
store i32 %19, ptr %3, align 4
%20 = load i32, ptr %3, align 4
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %20)
br label %35
22: ; preds = %10
%23 = load i32, ptr %2, align 4
%24 = icmp ne i32 %23, 10
br i1 %24, label %25, label %29
25: ; preds = %22
%26 = load i32, ptr %2, align 4
store i32 %26, ptr %3, align 4
%27 = load i32, ptr %3, align 4
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %27)
br label %29
29: ; preds = %25, %22
br label %30
30: ; preds = %29
br label %31
31: ; preds = %30, %7
%32 = call i32 (...) @getchar()
store i32 %32, ptr %2, align 4
%33 = load i32, ptr @EOF, align 4
%34 = icmp ne i32 %32, %33
br i1 %34, label %7, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %31
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %0
br label %35
35: ; preds = %.loopexit, %18
ret i32 0
}
declare i32 @getchar(...) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpfvvn3poq.c'
source_filename = "/tmp/tmpfvvn3poq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @create_path(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca %struct.stat, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %10, label %9
9: ; preds = %1
store i32 -1, ptr %2, align 4
br label %55
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = call ptr @strrchr(ptr noundef %11, i8 noundef signext 47)
store ptr %12, ptr %4, align 8
%13 = load ptr, ptr %4, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %16, label %15
15: ; preds = %10
store i32 -1, ptr %2, align 4
br label %55
16: ; preds = %10
%17 = load ptr, ptr %4, align 8
store i8 0, ptr %17, align 1
%18 = load ptr, ptr %3, align 8
%19 = call i32 @real_xstat(i32 noundef 1, ptr noundef %18, ptr noundef %5)
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %42
21: ; preds = %16
%22 = getelementptr inbounds %struct.stat, ptr %5, i32 0, i32 0
%23 = load i32, ptr %22, align 4
%24 = call i64 @S_ISREG(i32 noundef %23)
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %21
%27 = load ptr, ptr %3, align 8
%28 = call i32 @real_unlink(ptr noundef %27)
br label %29
29: ; preds = %26, %21
%30 = load ptr, ptr %3, align 8
%31 = call i32 @create_path(ptr noundef %30)
store i32 %31, ptr %6, align 4
%32 = load i32, ptr %6, align 4
%33 = icmp eq i32 %32, -1
br i1 %33, label %38, label %34
34: ; preds = %29
%35 = load ptr, ptr %3, align 8
%36 = call i64 @real_mkdir(ptr noundef %35, i32 noundef 493)
%37 = icmp ne i64 %36, 0
br i1 %37, label %38, label %39
38: ; preds = %34, %29
store i32 -1, ptr %2, align 4
br label %55
39: ; preds = %34
%40 = load ptr, ptr %4, align 8
store i8 47, ptr %40, align 1
%41 = load i32, ptr %6, align 4
store i32 %41, ptr %2, align 4
br label %55
42: ; preds = %16
%43 = getelementptr inbounds %struct.stat, ptr %5, i32 0, i32 0
%44 = load i32, ptr %43, align 4
%45 = call i64 @S_ISREG(i32 noundef %44)
%46 = icmp ne i64 %45, 0
br i1 %46, label %47, label %52
47: ; preds = %42
%48 = load ptr, ptr %3, align 8
%49 = call i32 @real_unlink(ptr noundef %48)
%50 = load ptr, ptr %3, align 8
%51 = call i64 @real_mkdir(ptr noundef %50, i32 noundef 493)
br label %52
52: ; preds = %47, %42
br label %53
53: ; preds = %52
%54 = load ptr, ptr %4, align 8
store i8 47, ptr %54, align 1
store i32 0, ptr %2, align 4
br label %55
55: ; preds = %53, %39, %38, %15, %9
%56 = load i32, ptr %2, align 4
ret i32 %56
}
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare i32 @real_xstat(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @S_ISREG(i32 noundef) #1
declare i32 @real_unlink(ptr noundef) #1
declare i64 @real_mkdir(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/tmpfvvn3poq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @create_path(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca %struct.stat, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %10, label %9
9: ; preds = %1
store i32 -1, ptr %2, align 4
br label %55
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = call ptr @strrchr(ptr noundef %11, i8 noundef signext 47)
store ptr %12, ptr %4, align 8
%13 = load ptr, ptr %4, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %16, label %15
15: ; preds = %10
store i32 -1, ptr %2, align 4
br label %55
16: ; preds = %10
%17 = load ptr, ptr %4, align 8
store i8 0, ptr %17, align 1
%18 = load ptr, ptr %3, align 8
%19 = call i32 @real_xstat(i32 noundef 1, ptr noundef %18, ptr noundef %5)
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %42
21: ; preds = %16
%22 = getelementptr inbounds %struct.stat, ptr %5, i32 0, i32 0
%23 = load i32, ptr %22, align 4
%24 = call i64 @S_ISREG(i32 noundef %23)
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %21
%27 = load ptr, ptr %3, align 8
%28 = call i32 @real_unlink(ptr noundef %27)
br label %29
29: ; preds = %26, %21
%30 = load ptr, ptr %3, align 8
%31 = call i32 @create_path(ptr noundef %30)
store i32 %31, ptr %6, align 4
%32 = load i32, ptr %6, align 4
%33 = icmp eq i32 %32, -1
br i1 %33, label %38, label %34
34: ; preds = %29
%35 = load ptr, ptr %3, align 8
%36 = call i64 @real_mkdir(ptr noundef %35, i32 noundef 493)
%37 = icmp ne i64 %36, 0
br i1 %37, label %38, label %39
38: ; preds = %34, %29
store i32 -1, ptr %2, align 4
br label %55
39: ; preds = %34
%40 = load ptr, ptr %4, align 8
store i8 47, ptr %40, align 1
%41 = load i32, ptr %6, align 4
store i32 %41, ptr %2, align 4
br label %55
42: ; preds = %16
%43 = getelementptr inbounds %struct.stat, ptr %5, i32 0, i32 0
%44 = load i32, ptr %43, align 4
%45 = call i64 @S_ISREG(i32 noundef %44)
%46 = icmp ne i64 %45, 0
br i1 %46, label %47, label %52
47: ; preds = %42
%48 = load ptr, ptr %3, align 8
%49 = call i32 @real_unlink(ptr noundef %48)
%50 = load ptr, ptr %3, align 8
%51 = call i64 @real_mkdir(ptr noundef %50, i32 noundef 493)
br label %52
52: ; preds = %47, %42
br label %53
53: ; preds = %52
%54 = load ptr, ptr %4, align 8
store i8 47, ptr %54, align 1
store i32 0, ptr %2, align 4
br label %55
55: ; preds = %53, %39, %38, %15, %9
%56 = load i32, ptr %2, align 4
ret i32 %56
}
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare i32 @real_xstat(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @S_ISREG(i32 noundef) #1
declare i32 @real_unlink(ptr noundef) #1
declare i64 @real_mkdir(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/tmpqrlddtfc.c'
source_filename = "/tmp/tmpqrlddtfc.c"
target datalayout = "e-m:e-p270: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/tmpqrlddtfc.c"
target datalayout = "e-m:e-p270: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/tmpr32s4ywj.c'
source_filename = "/tmp/tmpr32s4ywj.c"
target datalayout = "e-m:e-p270: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/tmpr32s4ywj.c"
target datalayout = "e-m:e-p270: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/tmpbjhxyy5x.c'
source_filename = "/tmp/tmpbjhxyy5x.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 @catrw(i32 noundef 0)
br label %31
11: ; preds = %2
br label %12
12: ; preds = %25, %11
%13 = load i32, ptr %4, align 4
%14 = add nsw i32 %13, -1
store i32 %14, ptr %4, align 4
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %23
16: ; preds = %12
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i32 1
store ptr %18, ptr %5, align 8
%19 = load ptr, ptr %18, align 8
%20 = load i32, ptr @O_RDWR, align 4
%21 = call i32 @open(ptr noundef %19, i32 noundef %20)
store i32 %21, ptr %6, align 4
%22 = icmp ne i32 %21, 0
br label %23
23: ; preds = %16, %12
%24 = phi i1 [ false, %12 ], [ %22, %16 ]
br i1 %24, label %25, label %30
25: ; preds = %23
%26 = load i32, ptr %6, align 4
%27 = call i32 @catrw(i32 noundef %26)
%28 = load i32, ptr %6, align 4
%29 = call i32 @close(i32 noundef %28)
br label %12, !llvm.loop !6
30: ; preds = %23
br label %31
31: ; preds = %30, %9
ret i32 0
}
declare i32 @catrw(i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpbjhxyy5x.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 @catrw(i32 noundef 0)
br label %31
11: ; preds = %2
br label %12
12: ; preds = %25, %11
%13 = load i32, ptr %4, align 4
%14 = add nsw i32 %13, -1
store i32 %14, ptr %4, align 4
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %23
16: ; preds = %12
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i32 1
store ptr %18, ptr %5, align 8
%19 = load ptr, ptr %18, align 8
%20 = load i32, ptr @O_RDWR, align 4
%21 = call i32 @open(ptr noundef %19, i32 noundef %20)
store i32 %21, ptr %6, align 4
%22 = icmp ne i32 %21, 0
br label %23
23: ; preds = %16, %12
%24 = phi i1 [ false, %12 ], [ %22, %16 ]
br i1 %24, label %25, label %30
25: ; preds = %23
%26 = load i32, ptr %6, align 4
%27 = call i32 @catrw(i32 noundef %26)
%28 = load i32, ptr %6, align 4
%29 = call i32 @close(i32 noundef %28)
br label %12, !llvm.loop !6
30: ; preds = %23
br label %31
31: ; preds = %30, %9
ret i32 0
}
declare i32 @catrw(i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmppd13xbr7.c'
source_filename = "/tmp/tmppd13xbr7.c"
target datalayout = "e-m:e-p270: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/tmppd13xbr7.c"
target datalayout = "e-m:e-p270: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/tmpuroyzdef.c'
source_filename = "/tmp/tmpuroyzdef.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @f(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp eq i32 %5, 2
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 noundef %7)
%9 = load i32, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = mul nsw i32 %9, %10
%12 = icmp eq i32 %11, 9
%13 = zext i1 %12 to i32
%14 = call i32 @assert(i32 noundef %13)
ret void
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuroyzdef.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @f(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp eq i32 %5, 2
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 noundef %7)
%9 = load i32, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = mul nsw i32 %9, %10
%12 = icmp eq i32 %11, 9
%13 = zext i1 %12 to i32
%14 = call i32 @assert(i32 noundef %13)
ret void
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6_mj_r0r.c'
source_filename = "/tmp/tmp6_mj_r0r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ssl_wrapper_serve(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
store ptr %6, ptr %5, align 8
br label %7
7: ; preds = %11, %2
%8 = load ptr, ptr %4, align 8
%9 = load volatile i32, ptr %8, align 4
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %7
%12 = load ptr, ptr %5, align 8
%13 = call i32 @ns_mgr_poll(ptr noundef %12, i32 noundef 1000)
br label %7, !llvm.loop !6
14: ; preds = %7
%15 = load ptr, ptr %5, align 8
%16 = call i32 @ns_mgr_free(ptr noundef %15)
%17 = load ptr, ptr %5, align 8
%18 = call i32 @free(ptr noundef %17)
ret void
}
declare i32 @ns_mgr_poll(ptr noundef, i32 noundef) #1
declare i32 @ns_mgr_free(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6_mj_r0r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ssl_wrapper_serve(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
store ptr %6, ptr %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = load volatile i32, ptr %7, align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label %.lr.ph, label %16
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %10
%11 = load ptr, ptr %5, align 8
%12 = call i32 @ns_mgr_poll(ptr noundef %11, i32 noundef 1000)
%13 = load ptr, ptr %4, align 8
%14 = load volatile i32, ptr %13, align 4
%15 = icmp eq i32 %14, 0
br i1 %15, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %16
16: ; preds = %._crit_edge, %2
%17 = load ptr, ptr %5, align 8
%18 = call i32 @ns_mgr_free(ptr noundef %17)
%19 = load ptr, ptr %5, align 8
%20 = call i32 @free(ptr noundef %19)
ret void
}
declare i32 @ns_mgr_poll(ptr noundef, i32 noundef) #1
declare i32 @ns_mgr_free(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpcvsp12ss.c'
source_filename = "/tmp/tmpcvsp12ss.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"Enter the length of the series: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"%d/%d \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"+ \00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"= %.4f\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 float, align 4
store i32 0, ptr %1, align 4
store float 0.000000e+00, ptr %4, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
store i32 1, ptr %3, align 4
br label %7
7: ; preds = %30, %0
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp sle i32 %8, %9
br i1 %10, label %11, label %33
11: ; preds = %7
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %3, align 4
%14 = add nsw i32 %13, 1
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %12, i32 noundef %14)
%16 = load i32, ptr %3, align 4
%17 = load i32, ptr %2, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %21
19: ; preds = %11
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %21
21: ; preds = %19, %11
%22 = load i32, ptr %3, align 4
%23 = sitofp i32 %22 to float
%24 = load i32, ptr %3, align 4
%25 = add nsw i32 %24, 1
%26 = sitofp i32 %25 to float
%27 = fdiv float %23, %26
%28 = load float, ptr %4, align 4
%29 = fadd float %28, %27
store float %29, ptr %4, align 4
br label %30
30: ; preds = %21
%31 = load i32, ptr %3, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %3, align 4
br label %7, !llvm.loop !6
33: ; preds = %7
%34 = load float, ptr %4, align 4
%35 = fpext float %34 to double
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %35)
%37 = load i32, ptr %1, align 4
ret i32 %37
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcvsp12ss.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"Enter the length of the series: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"%d/%d \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"+ \00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"= %.4f\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 float, align 4
store i32 0, ptr %1, align 4
store float 0.000000e+00, ptr %4, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
store i32 1, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp sle i32 %7, %8
br i1 %9, label %.lr.ph, label %35
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %29
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %12, 1
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %11, i32 noundef %13)
%15 = load i32, ptr %3, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %20
18: ; preds = %10
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %20
20: ; preds = %18, %10
%21 = load i32, ptr %3, align 4
%22 = sitofp i32 %21 to float
%23 = load i32, ptr %3, align 4
%24 = add nsw i32 %23, 1
%25 = sitofp i32 %24 to float
%26 = fdiv float %22, %25
%27 = load float, ptr %4, align 4
%28 = fadd float %27, %26
store float %28, ptr %4, align 4
br label %29
29: ; preds = %20
%30 = load i32, ptr %3, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %3, align 4
%32 = load i32, ptr %3, align 4
%33 = load i32, ptr %2, align 4
%34 = icmp sle i32 %32, %33
br i1 %34, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %35
35: ; preds = %._crit_edge, %0
%36 = load float, ptr %4, align 4
%37 = fpext float %36 to double
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %37)
%39 = load i32, ptr %1, align 4
ret i32 %39
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpg4vcp6ps.c'
source_filename = "/tmp/tmpg4vcp6ps.c"
target datalayout = "e-m:e-p270: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.vowels = private unnamed_addr constant [6 x i8] c"aeiouy", align 1
@.str = private unnamed_addr constant [25 x i8] c"Please enter a string > \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [34 x i8] c"The number of syllables is %.0d.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [20 x i8], align 16
%3 = alloca [6 x i8], align 1
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.vowels, i64 6, i1 false)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%9 = load i32, ptr @stdin, align 4
%10 = call i32 @fgets(ptr noundef %8, i32 noundef 20, i32 noundef %9)
store i32 0, ptr %4, align 4
br label %11
11: ; preds = %41, %0
%12 = load i32, ptr %4, align 4
%13 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%14 = call i32 @strlen(ptr noundef %13)
%15 = sub nsw i32 %14, 1
%16 = icmp slt i32 %12, %15
br i1 %16, label %17, label %44
17: ; preds = %11
store i32 0, ptr %6, align 4
br label %18
18: ; preds = %37, %17
%19 = load i32, ptr %6, align 4
%20 = icmp sle i32 %19, 5
br i1 %20, label %21, label %40
21: ; preds = %18
%22 = load i32, ptr %4, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %23
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = load i32, ptr %6, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [6 x i8], ptr %3, i64 0, i64 %28
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %26, %31
br i1 %32, label %33, label %36
33: ; preds = %21
%34 = load i32, ptr %5, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %5, align 4
br label %40
36: ; preds = %21
br label %37
37: ; preds = %36
%38 = load i32, ptr %6, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %6, align 4
br label %18, !llvm.loop !6
40: ; preds = %33, %18
br label %41
41: ; preds = %40
%42 = load i32, ptr %4, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %4, align 4
br label %11, !llvm.loop !8
44: ; preds = %11
%45 = load i32, ptr %5, align 4
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %45)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @strlen(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/tmpg4vcp6ps.c"
target datalayout = "e-m:e-p270: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.vowels = private unnamed_addr constant [6 x i8] c"aeiouy", align 1
@.str = private unnamed_addr constant [25 x i8] c"Please enter a string > \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [34 x i8] c"The number of syllables is %.0d.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [20 x i8], align 16
%3 = alloca [6 x i8], align 1
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.vowels, i64 6, i1 false)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%9 = load i32, ptr @stdin, align 4
%10 = call i32 @fgets(ptr noundef %8, i32 noundef 20, i32 noundef %9)
store i32 0, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 0
%13 = call i32 @strlen(ptr noundef %12)
%14 = sub nsw i32 %13, 1
%15 = icmp slt i32 %11, %14
br i1 %15, label %.lr.ph1, label %48
.lr.ph1: ; preds = %0
br label %16
16: ; preds = %.lr.ph1, %41
store i32 0, ptr %6, align 4
%17 = load i32, ptr %6, align 4
%18 = icmp sle i32 %17, 5
br i1 %18, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %16
br label %19
19: ; preds = %.lr.ph, %35
%20 = load i32, ptr %4, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [20 x i8], ptr %2, i64 0, i64 %21
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = load i32, ptr %6, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [6 x i8], ptr %3, i64 0, i64 %26
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %24, %29
br i1 %30, label %31, label %34
31: ; preds = %19
%32 = load i32, ptr %5, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %5, align 4
br label %40
34: ; preds = %19
br label %35
35: ; preds = %34
%36 = load i32, ptr %6, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %6, align 4
%38 = load i32, ptr %6, align 4
%39 = icmp sle i32 %38, 5
br i1 %39, label %19, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %35
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %16
br label %40
40: ; preds = %.loopexit, %31
br label %41
41: ; preds = %40
%42 = load i32, ptr %4, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %4, align 4
%44 = load i32, ptr %4, align 4
%45 = call i32 @strlen(ptr noundef %12)
%46 = sub nsw i32 %45, 1
%47 = icmp slt i32 %44, %46
br i1 %47, label %16, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %41
br label %48
48: ; preds = %._crit_edge, %0
%49 = load i32, ptr %5, align 4
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %49)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @strlen(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/tmp_pfr84n2.c'
source_filename = "/tmp/tmp_pfr84n2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_pfr84n2.c"
target datalayout = "e-m:e-p270: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/tmpn4pj75d0.c'
source_filename = "/tmp/tmpn4pj75d0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"lda\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"$16,%s%d\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"$LC\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"$17,%s%d\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"$18,%s%d\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"$19,%s%d\00", align 1
@.str.6 = private unnamed_addr constant [9 x i8] c"$20,%s%d\00", align 1
@.str.7 = private unnamed_addr constant [9 x i8] c"$21,%s%d\00", align 1
@.str.8 = private unnamed_addr constant [8 x i8] c"$1,%s%d\00", align 1
@.str.9 = private unnamed_addr constant [4 x i8] c"stq\00", align 1
@.str.10 = private unnamed_addr constant [11 x i8] c"$1,%d($30)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Call_C_Arg_String(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
switch i32 %5, label %24 [
i32 0, label %6
i32 1, label %9
i32 2, label %12
i32 3, label %15
i32 4, label %18
i32 5, label %21
]
6: ; preds = %2
%7 = load i32, ptr %4, align 4
%8 = call i32 (ptr, ptr, ...) @Inst_Printf(ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef %7)
br label %31
9: ; preds = %2
%10 = load i32, ptr %4, align 4
%11 = call i32 (ptr, ptr, ...) @Inst_Printf(ptr noundef @.str, ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef %10)
br label %31
12: ; preds = %2
%13 = load i32, ptr %4, align 4
%14 = call i32 (ptr, ptr, ...) @Inst_Printf(ptr noundef @.str, ptr noundef @.str.4, ptr noundef @.str.2, i32 noundef %13)
br label %31
15: ; preds = %2
%16 = load i32, ptr %4, align 4
%17 = call i32 (ptr, ptr, ...) @Inst_Printf(ptr noundef @.str, ptr noundef @.str.5, ptr noundef @.str.2, i32 noundef %16)
br label %31
18: ; preds = %2
%19 = load i32, ptr %4, align 4
%20 = call i32 (ptr, ptr, ...) @Inst_Printf(ptr noundef @.str, ptr noundef @.str.6, ptr noundef @.str.2, i32 noundef %19)
br label %31
21: ; preds = %2
%22 = load i32, ptr %4, align 4
%23 = call i32 (ptr, ptr, ...) @Inst_Printf(ptr noundef @.str, ptr noundef @.str.7, ptr noundef @.str.2, i32 noundef %22)
br label %31
24: ; preds = %2
%25 = load i32, ptr %4, align 4
%26 = call i32 (ptr, ptr, ...) @Inst_Printf(ptr noundef @.str, ptr noundef @.str.8, ptr noundef @.str.2, i32 noundef %25)
%27 = load i32, ptr %3, align 4
%28 = sub nsw i32 %27, 6
%29 = mul nsw i32 %28, 8
%30 = call i32 (ptr, ptr, ...) @Inst_Printf(ptr noundef @.str.9, ptr noundef @.str.10, i32 noundef %29)
br label %31
31: ; preds = %24, %21, %18, %15, %12, %9, %6
ret i32 1
}
declare i32 @Inst_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/tmpn4pj75d0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"lda\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"$16,%s%d\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"$LC\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"$17,%s%d\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"$18,%s%d\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"$19,%s%d\00", align 1
@.str.6 = private unnamed_addr constant [9 x i8] c"$20,%s%d\00", align 1
@.str.7 = private unnamed_addr constant [9 x i8] c"$21,%s%d\00", align 1
@.str.8 = private unnamed_addr constant [8 x i8] c"$1,%s%d\00", align 1
@.str.9 = private unnamed_addr constant [4 x i8] c"stq\00", align 1
@.str.10 = private unnamed_addr constant [11 x i8] c"$1,%d($30)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Call_C_Arg_String(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
switch i32 %5, label %24 [
i32 0, label %6
i32 1, label %9
i32 2, label %12
i32 3, label %15
i32 4, label %18
i32 5, label %21
]
6: ; preds = %2
%7 = load i32, ptr %4, align 4
%8 = call i32 (ptr, ptr, ...) @Inst_Printf(ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef %7)
br label %31
9: ; preds = %2
%10 = load i32, ptr %4, align 4
%11 = call i32 (ptr, ptr, ...) @Inst_Printf(ptr noundef @.str, ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef %10)
br label %31
12: ; preds = %2
%13 = load i32, ptr %4, align 4
%14 = call i32 (ptr, ptr, ...) @Inst_Printf(ptr noundef @.str, ptr noundef @.str.4, ptr noundef @.str.2, i32 noundef %13)
br label %31
15: ; preds = %2
%16 = load i32, ptr %4, align 4
%17 = call i32 (ptr, ptr, ...) @Inst_Printf(ptr noundef @.str, ptr noundef @.str.5, ptr noundef @.str.2, i32 noundef %16)
br label %31
18: ; preds = %2
%19 = load i32, ptr %4, align 4
%20 = call i32 (ptr, ptr, ...) @Inst_Printf(ptr noundef @.str, ptr noundef @.str.6, ptr noundef @.str.2, i32 noundef %19)
br label %31
21: ; preds = %2
%22 = load i32, ptr %4, align 4
%23 = call i32 (ptr, ptr, ...) @Inst_Printf(ptr noundef @.str, ptr noundef @.str.7, ptr noundef @.str.2, i32 noundef %22)
br label %31
24: ; preds = %2
%25 = load i32, ptr %4, align 4
%26 = call i32 (ptr, ptr, ...) @Inst_Printf(ptr noundef @.str, ptr noundef @.str.8, ptr noundef @.str.2, i32 noundef %25)
%27 = load i32, ptr %3, align 4
%28 = sub nsw i32 %27, 6
%29 = mul nsw i32 %28, 8
%30 = call i32 (ptr, ptr, ...) @Inst_Printf(ptr noundef @.str.9, ptr noundef @.str.10, i32 noundef %29)
br label %31
31: ; preds = %24, %21, %18, %15, %12, %9, %6
ret i32 1
}
declare i32 @Inst_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/tmpbixhi3c7.c'
source_filename = "/tmp/tmpbixhi3c7.c"
target datalayout = "e-m:e-p270: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 [34 x i8] c"Failure in %s. Error backtrace:\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @log_error_and_exit(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 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = load i32, ptr @stderr, align 4
%7 = call i32 @libadjust_error_print(i32 noundef %6)
%8 = load i32, ptr @EXIT_FAILURE, align 4
%9 = call i32 @exit(i32 noundef %8) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @libadjust_error_print(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbixhi3c7.c"
target datalayout = "e-m:e-p270: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 [34 x i8] c"Failure in %s. Error backtrace:\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @log_error_and_exit(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 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = load i32, ptr @stderr, align 4
%7 = call i32 @libadjust_error_print(i32 noundef %6)
%8 = load i32, ptr @EXIT_FAILURE, align 4
%9 = call i32 @exit(i32 noundef %8) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @libadjust_error_print(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8fut96tp.c'
source_filename = "/tmp/tmp8fut96tp.c"
target datalayout = "e-m:e-p270: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.termios = type { ptr, i32 }
@__const.main.UART_DEVICE = private unnamed_addr constant [15 x i8] c"/dev/ttyUSB10\00\00", align 1
@.str = private unnamed_addr constant [36 x i8] c"Petit Ichigo Term for Raspberry Pi\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"ttyS%1d\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"rfcomm%1d\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"ttyUSB%1d\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"ttyAMA0\00", align 1
@.str.5 = private unnamed_addr constant [18 x i8] c"ERROR @ UART OPEN\00", align 1
@ICANON = dso_local global i32 0, align 4
@VMIN = dso_local global i64 0, align 8
@VTIME = dso_local global i64 0, align 8
@TCSANOW = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [10 x i8] c"CONNECTED\00", align 1
@.str.7 = private unnamed_addr constant [20 x i8] c"Type '---' to exit.\00", align 1
@.str.8 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.9 = private unnamed_addr constant [4 x i8] c"\08\08\08\00", align 1
@.str.10 = private unnamed_addr constant [19 x i8] c"ERROR @ UART CLOSE\00", align 1
@.str.11 = private unnamed_addr constant [7 x i8] c"CLOSED\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 i8, align 1
%11 = alloca %struct.termios, align 8
%12 = alloca %struct.termios, align 8
%13 = alloca %struct.termios, align 8
%14 = alloca [15 x i8], align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 -1, ptr %7, align 4
store i32 1, ptr %8, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %14, ptr align 1 @__const.main.UART_DEVICE, i64 15, i1 false)
%15 = call i32 @printf(ptr noundef @.str)
%16 = load i32, ptr %4, align 4
%17 = icmp eq i32 %16, 2
br i1 %17, label %18, label %36
18: ; preds = %2
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 1
%21 = load ptr, ptr %20, align 8
%22 = call i32 @atoi(ptr noundef %21)
store i32 %22, ptr %9, align 4
%23 = load i32, ptr %9, align 4
%24 = icmp sgt i32 %23, 0
br i1 %24, label %25, label %35
25: ; preds = %18
%26 = load i32, ptr %9, align 4
%27 = icmp sle i32 %26, 64
br i1 %27, label %28, label %35
28: ; preds = %25
%29 = getelementptr inbounds [15 x i8], ptr %14, i64 0, i64 5
%30 = load i32, ptr %9, align 4
%31 = sub nsw i32 %30, 1
%32 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %29, i32 noundef 8, ptr noundef @.str.1, i32 noundef %31)
%33 = getelementptr inbounds [15 x i8], ptr %14, i64 0, i64 0
%34 = call i32 @uart_open(ptr noundef %33, i32 noundef 115200, ptr noundef %13)
store i32 %34, ptr %7, align 4
br label %35
35: ; preds = %28, %25, %18
br label %79
36: ; preds = %2
store i32 22, ptr %9, align 4
br label %37
37: ; preds = %75, %36
%38 = load i32, ptr %9, align 4
%39 = icmp sge i32 %38, 0
br i1 %39, label %40, label %78
40: ; preds = %37
%41 = load i32, ptr %9, align 4
%42 = icmp sge i32 %41, 20
br i1 %42, label %43, label %48
43: ; preds = %40
%44 = getelementptr inbounds [15 x i8], ptr %14, i64 0, i64 5
%45 = load i32, ptr %9, align 4
%46 = sub nsw i32 %45, 20
%47 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %44, i32 noundef 8, ptr noundef @.str.2, i32 noundef %46)
br label %68
48: ; preds = %40
%49 = load i32, ptr %9, align 4
%50 = icmp sge i32 %49, 10
br i1 %50, label %51, label %56
51: ; preds = %48
%52 = getelementptr inbounds [15 x i8], ptr %14, i64 0, i64 5
%53 = load i32, ptr %9, align 4
%54 = sub nsw i32 %53, 10
%55 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %52, i32 noundef 8, ptr noundef @.str.3, i32 noundef %54)
br label %67
56: ; preds = %48
%57 = load i32, ptr %9, align 4
%58 = icmp eq i32 %57, 9
br i1 %58, label %59, label %62
59: ; preds = %56
%60 = getelementptr inbounds [15 x i8], ptr %14, i64 0, i64 5
%61 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %60, i32 noundef 8, ptr noundef @.str.4)
br label %66
62: ; preds = %56
%63 = getelementptr inbounds [15 x i8], ptr %14, i64 0, i64 5
%64 = load i32, ptr %9, align 4
%65 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %63, i32 noundef 8, ptr noundef @.str.1, i32 noundef %64)
br label %66
66: ; preds = %62, %59
br label %67
67: ; preds = %66, %51
br label %68
68: ; preds = %67, %43
%69 = getelementptr inbounds [15 x i8], ptr %14, i64 0, i64 0
%70 = call i32 @uart_open(ptr noundef %69, i32 noundef 115200, ptr noundef %13)
store i32 %70, ptr %7, align 4
%71 = load i32, ptr %7, align 4
%72 = icmp sge i32 %71, 0
br i1 %72, label %73, label %74
73: ; preds = %68
br label %78
74: ; preds = %68
br label %75
75: ; preds = %74
%76 = load i32, ptr %9, align 4
%77 = add nsw i32 %76, -1
store i32 %77, ptr %9, align 4
br label %37, !llvm.loop !6
78: ; preds = %73, %37
br label %79
79: ; preds = %78, %35
%80 = load i32, ptr %7, align 4
%81 = icmp slt i32 %80, 0
br i1 %81, label %82, label %84
82: ; preds = %79
%83 = call i32 @log_date(ptr noundef @.str.5)
store i32 1, ptr %3, align 4
br label %184
84: ; preds = %79
%85 = getelementptr inbounds [15 x i8], ptr %14, i64 0, i64 0
%86 = call i32 @log_date(ptr noundef %85)
br label %87
87: ; preds = %84
%88 = call i32 @tcgetattr(i32 noundef 0, ptr noundef %11)
%89 = call i32 @tcgetattr(i32 noundef 0, ptr noundef %12)
%90 = load i32, ptr @ICANON, align 4
%91 = xor i32 %90, -1
%92 = getelementptr inbounds %struct.termios, ptr %11, i32 0, i32 1
%93 = load i32, ptr %92, align 8
%94 = and i32 %93, %91
store i32 %94, ptr %92, align 8
%95 = getelementptr inbounds %struct.termios, ptr %11, i32 0, i32 0
%96 = load ptr, ptr %95, align 8
%97 = load i64, ptr @VMIN, align 8
%98 = getelementptr inbounds i64, ptr %96, i64 %97
store i64 0, ptr %98, align 8
%99 = getelementptr inbounds %struct.termios, ptr %11, i32 0, i32 0
%100 = load ptr, ptr %99, align 8
%101 = load i64, ptr @VTIME, align 8
%102 = getelementptr inbounds i64, ptr %100, i64 %101
store i64 0, ptr %102, align 8
%103 = load i32, ptr @TCSANOW, align 4
%104 = call i32 @tcsetattr(i32 noundef 0, i32 noundef %103, ptr noundef %11)
%105 = call i32 @log_date(ptr noundef @.str.6)
%106 = call i32 @log_date(ptr noundef @.str.7)
store i8 16, ptr %10, align 1
%107 = load i32, ptr %7, align 4
%108 = call i32 @write(i32 noundef %107, ptr noundef %10, i32 noundef 1)
br label %109
109: ; preds = %173, %87
%110 = load i32, ptr %8, align 4
%111 = icmp ne i32 %110, 0
br i1 %111, label %112, label %174
112: ; preds = %109
%113 = call i32 @FD_ZERO(ptr noundef %6)
%114 = call i32 @FD_SET(i32 noundef 0, ptr noundef %6)
%115 = load i32, ptr %7, align 4
%116 = call i32 @FD_SET(i32 noundef %115, ptr noundef %6)
%117 = load i32, ptr %7, align 4
%118 = add nsw i32 %117, 1
%119 = call i64 @select(i32 noundef %118, ptr noundef %6, i32 noundef 0, i32 noundef 0, i32 noundef 0)
%120 = icmp ne i64 %119, 0
br i1 %120, label %121, label %173
121: ; preds = %112
%122 = call i64 @FD_ISSET(i32 noundef 0, ptr noundef %6)
%123 = icmp ne i64 %122, 0
br i1 %123, label %124, label %154
124: ; preds = %121
%125 = call i32 @read(i32 noundef 0, ptr noundef %10, i32 noundef 1)
%126 = icmp eq i32 %125, 1
br i1 %126, label %127, label %153
127: ; preds = %124
%128 = load i8, ptr %10, align 1
%129 = sext i8 %128 to i32
%130 = icmp eq i32 %129, 10
br i1 %130, label %131, label %134
131: ; preds = %127
%132 = load i32, ptr %7, align 4
%133 = call i32 @write(i32 noundef %132, ptr noundef @.str.8, i32 noundef 1)
br label %137
134: ; preds = %127
%135 = load i32, ptr %7, align 4
%136 = call i32 @write(i32 noundef %135, ptr noundef %10, i32 noundef 1)
br label %137
137: ; preds = %134, %131
%138 = load i8, ptr %10, align 1
%139 = sext i8 %138 to i32
%140 = icmp eq i32 %139, 45
br i1 %140, label %141, label %151
141: ; preds = %137
%142 = load i32, ptr %8, align 4
%143 = add nsw i32 %142, 1
store i32 %143, ptr %8, align 4
%144 = load i32, ptr %8, align 4
%145 = icmp sgt i32 %144, 3
br i1 %145, label %146, label %150
146: ; preds = %141
store i32 0, ptr %8, align 4
%147 = load i32, ptr %7, align 4
%148 = call i32 @write(i32 noundef %147, ptr noundef @.str.9, i32 noundef 3)
%149 = call i32 @printf(ptr noundef @.str.8)
br label %150
150: ; preds = %146, %141
br label %152
151: ; preds = %137
store i32 1, ptr %8, align 4
br label %152
152: ; preds = %151, %150
br label %153
153: ; preds = %152, %124
br label %154
154: ; preds = %153, %121
%155 = load i32, ptr %7, align 4
%156 = call i64 @FD_ISSET(i32 noundef %155, ptr noundef %6)
%157 = icmp ne i64 %156, 0
br i1 %157, label %158, label %172
158: ; preds = %154
%159 = load i32, ptr %7, align 4
%160 = call i32 @read(i32 noundef %159, ptr noundef %10, i32 noundef 1)
%161 = icmp eq i32 %160, 1
br i1 %161, label %162, label %171
162: ; preds = %158
%163 = load i8, ptr %10, align 1
%164 = sext i8 %163 to i32
%165 = icmp eq i32 %164, 10
br i1 %165, label %166, label %168
166: ; preds = %162
%167 = call i32 @write(i32 noundef 1, ptr noundef @.str.8, i32 noundef 1)
br label %170
168: ; preds = %162
%169 = call i32 @write(i32 noundef 1, ptr noundef %10, i32 noundef 1)
br label %170
170: ; preds = %168, %166
br label %171
171: ; preds = %170, %158
br label %172
172: ; preds = %171, %154
br label %173
173: ; preds = %172, %112
br label %109, !llvm.loop !8
174: ; preds = %109
%175 = load i32, ptr @TCSANOW, align 4
%176 = call i32 @tcsetattr(i32 noundef 0, i32 noundef %175, ptr noundef %12)
%177 = load i32, ptr %7, align 4
%178 = call i64 @uart_close(i32 noundef %177, ptr noundef %13)
%179 = icmp ne i64 %178, 0
br i1 %179, label %180, label %182
180: ; preds = %174
%181 = call i32 @log_date(ptr noundef @.str.10)
store i32 1, ptr %3, align 4
br label %184
182: ; preds = %174
%183 = call i32 @log_date(ptr noundef @.str.11)
store i32 0, ptr %3, align 4
br label %184
184: ; preds = %182, %180, %82
%185 = load i32, ptr %3, align 4
ret i32 %185
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef) #2
declare i32 @atoi(ptr noundef) #2
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ...) #2
declare i32 @uart_open(ptr noundef, i32 noundef, ptr noundef) #2
declare i32 @log_date(ptr noundef) #2
declare i32 @tcgetattr(i32 noundef, ptr noundef) #2
declare i32 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) #2
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @FD_ZERO(ptr noundef) #2
declare i32 @FD_SET(i32 noundef, ptr noundef) #2
declare i64 @select(i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2
declare i64 @FD_ISSET(i32 noundef, ptr noundef) #2
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #2
declare i64 @uart_close(i32 noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8fut96tp.c"
target datalayout = "e-m:e-p270: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.termios = type { ptr, i32 }
@__const.main.UART_DEVICE = private unnamed_addr constant [15 x i8] c"/dev/ttyUSB10\00\00", align 1
@.str = private unnamed_addr constant [36 x i8] c"Petit Ichigo Term for Raspberry Pi\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"ttyS%1d\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"rfcomm%1d\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"ttyUSB%1d\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"ttyAMA0\00", align 1
@.str.5 = private unnamed_addr constant [18 x i8] c"ERROR @ UART OPEN\00", align 1
@ICANON = dso_local global i32 0, align 4
@VMIN = dso_local global i64 0, align 8
@VTIME = dso_local global i64 0, align 8
@TCSANOW = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [10 x i8] c"CONNECTED\00", align 1
@.str.7 = private unnamed_addr constant [20 x i8] c"Type '---' to exit.\00", align 1
@.str.8 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.9 = private unnamed_addr constant [4 x i8] c"\08\08\08\00", align 1
@.str.10 = private unnamed_addr constant [19 x i8] c"ERROR @ UART CLOSE\00", align 1
@.str.11 = private unnamed_addr constant [7 x i8] c"CLOSED\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 i8, align 1
%11 = alloca %struct.termios, align 8
%12 = alloca %struct.termios, align 8
%13 = alloca %struct.termios, align 8
%14 = alloca [15 x i8], align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 -1, ptr %7, align 4
store i32 1, ptr %8, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %14, ptr align 1 @__const.main.UART_DEVICE, i64 15, i1 false)
%15 = call i32 @printf(ptr noundef @.str)
%16 = load i32, ptr %4, align 4
%17 = icmp eq i32 %16, 2
br i1 %17, label %18, label %36
18: ; preds = %2
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 1
%21 = load ptr, ptr %20, align 8
%22 = call i32 @atoi(ptr noundef %21)
store i32 %22, ptr %9, align 4
%23 = load i32, ptr %9, align 4
%24 = icmp sgt i32 %23, 0
br i1 %24, label %25, label %35
25: ; preds = %18
%26 = load i32, ptr %9, align 4
%27 = icmp sle i32 %26, 64
br i1 %27, label %28, label %35
28: ; preds = %25
%29 = getelementptr inbounds [15 x i8], ptr %14, i64 0, i64 5
%30 = load i32, ptr %9, align 4
%31 = sub nsw i32 %30, 1
%32 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %29, i32 noundef 8, ptr noundef @.str.1, i32 noundef %31)
%33 = getelementptr inbounds [15 x i8], ptr %14, i64 0, i64 0
%34 = call i32 @uart_open(ptr noundef %33, i32 noundef 115200, ptr noundef %13)
store i32 %34, ptr %7, align 4
br label %35
35: ; preds = %28, %25, %18
br label %80
36: ; preds = %2
store i32 22, ptr %9, align 4
%37 = load i32, ptr %9, align 4
%38 = icmp sge i32 %37, 0
br i1 %38, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %36
br label %39
39: ; preds = %.lr.ph, %74
%40 = load i32, ptr %9, align 4
%41 = icmp sge i32 %40, 20
br i1 %41, label %42, label %47
42: ; preds = %39
%43 = getelementptr inbounds [15 x i8], ptr %14, i64 0, i64 5
%44 = load i32, ptr %9, align 4
%45 = sub nsw i32 %44, 20
%46 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %43, i32 noundef 8, ptr noundef @.str.2, i32 noundef %45)
br label %67
47: ; preds = %39
%48 = load i32, ptr %9, align 4
%49 = icmp sge i32 %48, 10
br i1 %49, label %50, label %55
50: ; preds = %47
%51 = getelementptr inbounds [15 x i8], ptr %14, i64 0, i64 5
%52 = load i32, ptr %9, align 4
%53 = sub nsw i32 %52, 10
%54 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %51, i32 noundef 8, ptr noundef @.str.3, i32 noundef %53)
br label %66
55: ; preds = %47
%56 = load i32, ptr %9, align 4
%57 = icmp eq i32 %56, 9
br i1 %57, label %58, label %61
58: ; preds = %55
%59 = getelementptr inbounds [15 x i8], ptr %14, i64 0, i64 5
%60 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %59, i32 noundef 8, ptr noundef @.str.4)
br label %65
61: ; preds = %55
%62 = getelementptr inbounds [15 x i8], ptr %14, i64 0, i64 5
%63 = load i32, ptr %9, align 4
%64 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %62, i32 noundef 8, ptr noundef @.str.1, i32 noundef %63)
br label %65
65: ; preds = %61, %58
br label %66
66: ; preds = %65, %50
br label %67
67: ; preds = %66, %42
%68 = getelementptr inbounds [15 x i8], ptr %14, i64 0, i64 0
%69 = call i32 @uart_open(ptr noundef %68, i32 noundef 115200, ptr noundef %13)
store i32 %69, ptr %7, align 4
%70 = load i32, ptr %7, align 4
%71 = icmp sge i32 %70, 0
br i1 %71, label %72, label %73
72: ; preds = %67
br label %79
73: ; preds = %67
br label %74
74: ; preds = %73
%75 = load i32, ptr %9, align 4
%76 = add nsw i32 %75, -1
store i32 %76, ptr %9, align 4
%77 = load i32, ptr %9, align 4
%78 = icmp sge i32 %77, 0
br i1 %78, label %39, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %74
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %36
br label %79
79: ; preds = %.loopexit, %72
br label %80
80: ; preds = %79, %35
%81 = load i32, ptr %7, align 4
%82 = icmp slt i32 %81, 0
br i1 %82, label %83, label %85
83: ; preds = %80
%84 = call i32 @log_date(ptr noundef @.str.5)
store i32 1, ptr %3, align 4
br label %186
85: ; preds = %80
%86 = getelementptr inbounds [15 x i8], ptr %14, i64 0, i64 0
%87 = call i32 @log_date(ptr noundef %86)
br label %88
88: ; preds = %85
%89 = call i32 @tcgetattr(i32 noundef 0, ptr noundef %11)
%90 = call i32 @tcgetattr(i32 noundef 0, ptr noundef %12)
%91 = load i32, ptr @ICANON, align 4
%92 = xor i32 %91, -1
%93 = getelementptr inbounds %struct.termios, ptr %11, i32 0, i32 1
%94 = load i32, ptr %93, align 8
%95 = and i32 %94, %92
store i32 %95, ptr %93, align 8
%96 = getelementptr inbounds %struct.termios, ptr %11, i32 0, i32 0
%97 = load ptr, ptr %96, align 8
%98 = load i64, ptr @VMIN, align 8
%99 = getelementptr inbounds i64, ptr %97, i64 %98
store i64 0, ptr %99, align 8
%100 = getelementptr inbounds %struct.termios, ptr %11, i32 0, i32 0
%101 = load ptr, ptr %100, align 8
%102 = load i64, ptr @VTIME, align 8
%103 = getelementptr inbounds i64, ptr %101, i64 %102
store i64 0, ptr %103, align 8
%104 = load i32, ptr @TCSANOW, align 4
%105 = call i32 @tcsetattr(i32 noundef 0, i32 noundef %104, ptr noundef %11)
%106 = call i32 @log_date(ptr noundef @.str.6)
%107 = call i32 @log_date(ptr noundef @.str.7)
store i8 16, ptr %10, align 1
%108 = load i32, ptr %7, align 4
%109 = call i32 @write(i32 noundef %108, ptr noundef %10, i32 noundef 1)
%110 = load i32, ptr %8, align 4
%111 = icmp ne i32 %110, 0
br i1 %111, label %.lr.ph1, label %176
.lr.ph1: ; preds = %88
br label %112
112: ; preds = %.lr.ph1, %173
%113 = call i32 @FD_ZERO(ptr noundef %6)
%114 = call i32 @FD_SET(i32 noundef 0, ptr noundef %6)
%115 = load i32, ptr %7, align 4
%116 = call i32 @FD_SET(i32 noundef %115, ptr noundef %6)
%117 = load i32, ptr %7, align 4
%118 = add nsw i32 %117, 1
%119 = call i64 @select(i32 noundef %118, ptr noundef %6, i32 noundef 0, i32 noundef 0, i32 noundef 0)
%120 = icmp ne i64 %119, 0
br i1 %120, label %121, label %173
121: ; preds = %112
%122 = call i64 @FD_ISSET(i32 noundef 0, ptr noundef %6)
%123 = icmp ne i64 %122, 0
br i1 %123, label %124, label %154
124: ; preds = %121
%125 = call i32 @read(i32 noundef 0, ptr noundef %10, i32 noundef 1)
%126 = icmp eq i32 %125, 1
br i1 %126, label %127, label %153
127: ; preds = %124
%128 = load i8, ptr %10, align 1
%129 = sext i8 %128 to i32
%130 = icmp eq i32 %129, 10
br i1 %130, label %131, label %134
131: ; preds = %127
%132 = load i32, ptr %7, align 4
%133 = call i32 @write(i32 noundef %132, ptr noundef @.str.8, i32 noundef 1)
br label %137
134: ; preds = %127
%135 = load i32, ptr %7, align 4
%136 = call i32 @write(i32 noundef %135, ptr noundef %10, i32 noundef 1)
br label %137
137: ; preds = %134, %131
%138 = load i8, ptr %10, align 1
%139 = sext i8 %138 to i32
%140 = icmp eq i32 %139, 45
br i1 %140, label %141, label %151
141: ; preds = %137
%142 = load i32, ptr %8, align 4
%143 = add nsw i32 %142, 1
store i32 %143, ptr %8, align 4
%144 = load i32, ptr %8, align 4
%145 = icmp sgt i32 %144, 3
br i1 %145, label %146, label %150
146: ; preds = %141
store i32 0, ptr %8, align 4
%147 = load i32, ptr %7, align 4
%148 = call i32 @write(i32 noundef %147, ptr noundef @.str.9, i32 noundef 3)
%149 = call i32 @printf(ptr noundef @.str.8)
br label %150
150: ; preds = %146, %141
br label %152
151: ; preds = %137
store i32 1, ptr %8, align 4
br label %152
152: ; preds = %151, %150
br label %153
153: ; preds = %152, %124
br label %154
154: ; preds = %153, %121
%155 = load i32, ptr %7, align 4
%156 = call i64 @FD_ISSET(i32 noundef %155, ptr noundef %6)
%157 = icmp ne i64 %156, 0
br i1 %157, label %158, label %172
158: ; preds = %154
%159 = load i32, ptr %7, align 4
%160 = call i32 @read(i32 noundef %159, ptr noundef %10, i32 noundef 1)
%161 = icmp eq i32 %160, 1
br i1 %161, label %162, label %171
162: ; preds = %158
%163 = load i8, ptr %10, align 1
%164 = sext i8 %163 to i32
%165 = icmp eq i32 %164, 10
br i1 %165, label %166, label %168
166: ; preds = %162
%167 = call i32 @write(i32 noundef 1, ptr noundef @.str.8, i32 noundef 1)
br label %170
168: ; preds = %162
%169 = call i32 @write(i32 noundef 1, ptr noundef %10, i32 noundef 1)
br label %170
170: ; preds = %168, %166
br label %171
171: ; preds = %170, %158
br label %172
172: ; preds = %171, %154
br label %173
173: ; preds = %172, %112
%174 = load i32, ptr %8, align 4
%175 = icmp ne i32 %174, 0
br i1 %175, label %112, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %173
br label %176
176: ; preds = %._crit_edge, %88
%177 = load i32, ptr @TCSANOW, align 4
%178 = call i32 @tcsetattr(i32 noundef 0, i32 noundef %177, ptr noundef %12)
%179 = load i32, ptr %7, align 4
%180 = call i64 @uart_close(i32 noundef %179, ptr noundef %13)
%181 = icmp ne i64 %180, 0
br i1 %181, label %182, label %184
182: ; preds = %176
%183 = call i32 @log_date(ptr noundef @.str.10)
store i32 1, ptr %3, align 4
br label %186
184: ; preds = %176
%185 = call i32 @log_date(ptr noundef @.str.11)
store i32 0, ptr %3, align 4
br label %186
186: ; preds = %184, %182, %83
%187 = load i32, ptr %3, align 4
ret i32 %187
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef) #2
declare i32 @atoi(ptr noundef) #2
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ...) #2
declare i32 @uart_open(ptr noundef, i32 noundef, ptr noundef) #2
declare i32 @log_date(ptr noundef) #2
declare i32 @tcgetattr(i32 noundef, ptr noundef) #2
declare i32 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) #2
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @FD_ZERO(ptr noundef) #2
declare i32 @FD_SET(i32 noundef, ptr noundef) #2
declare i64 @select(i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2
declare i64 @FD_ISSET(i32 noundef, ptr noundef) #2
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #2
declare i64 @uart_close(i32 noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpdtyqryyu.c'
source_filename = "/tmp/tmpdtyqryyu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_port(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
br label %5
5: ; preds = %24, %1
%6 = load ptr, ptr %2, align 8
%7 = load i32, ptr %4, align 4
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds i8, ptr %6, i64 %8
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %27
13: ; preds = %5
%14 = load i32, ptr %3, align 4
%15 = mul nsw i32 %14, 10
%16 = load ptr, ptr %2, align 8
%17 = load i32, ptr %4, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = add nsw i32 %15, %21
%23 = sub nsw i32 %22, 48
store i32 %23, ptr %3, align 4
br label %24
24: ; preds = %13
%25 = load i32, ptr %4, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %4, align 4
br label %5, !llvm.loop !6
27: ; preds = %5
%28 = load i32, ptr %3, align 4
ret i32 %28
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpdtyqryyu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_port(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%5 = load ptr, ptr %2, align 8
%6 = load i32, ptr %4, align 4
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, ptr %5, i64 %7
%9 = load i8, ptr %8, align 1
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 0
br i1 %11, label %.lr.ph, label %33
.lr.ph: ; preds = %1
br label %12
12: ; preds = %.lr.ph, %23
%13 = load i32, ptr %3, align 4
%14 = mul nsw i32 %13, 10
%15 = load ptr, ptr %2, align 8
%16 = load i32, ptr %4, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = add nsw i32 %14, %20
%22 = sub nsw i32 %21, 48
store i32 %22, ptr %3, align 4
br label %23
23: ; preds = %12
%24 = load i32, ptr %4, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %4, align 4
%26 = load ptr, ptr %2, align 8
%27 = load i32, ptr %4, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp ne i32 %31, 0
br i1 %32, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %33
33: ; preds = %._crit_edge, %1
%34 = load i32, ptr %3, align 4
ret i32 %34
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp7lv3xhqp.c'
source_filename = "/tmp/tmp7lv3xhqp.c"
target datalayout = "e-m:e-p270: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/tmp7lv3xhqp.c"
target datalayout = "e-m:e-p270: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/tmp0d93uf8o.c'
source_filename = "/tmp/tmp0d93uf8o.c"
target datalayout = "e-m:e-p270: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/tmp0d93uf8o.c"
target datalayout = "e-m:e-p270: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/tmplcp585k9.c'
source_filename = "/tmp/tmplcp585k9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"main pid %d thread_id %lx\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 ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 (...) @getpid()
%9 = call i32 (...) @pthread_self()
%10 = call i32 @printf(ptr noundef @.str, i32 noundef %8, i32 noundef %9)
%11 = call i32 (...) @pthread_create1()
%12 = call i32 (...) @pthread_create2()
store i32 %12, ptr %6, align 4
%13 = load i32, ptr %6, align 4
%14 = call i32 @pthread_join(i32 noundef %13, ptr noundef %7)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getpid(...) #1
declare i32 @pthread_self(...) #1
declare i32 @pthread_create1(...) #1
declare i32 @pthread_create2(...) #1
declare i32 @pthread_join(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/tmplcp585k9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"main pid %d thread_id %lx\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 ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 (...) @getpid()
%9 = call i32 (...) @pthread_self()
%10 = call i32 @printf(ptr noundef @.str, i32 noundef %8, i32 noundef %9)
%11 = call i32 (...) @pthread_create1()
%12 = call i32 (...) @pthread_create2()
store i32 %12, ptr %6, align 4
%13 = load i32, ptr %6, align 4
%14 = call i32 @pthread_join(i32 noundef %13, ptr noundef %7)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getpid(...) #1
declare i32 @pthread_self(...) #1
declare i32 @pthread_create1(...) #1
declare i32 @pthread_create2(...) #1
declare i32 @pthread_join(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/tmporvtnb0w.c'
source_filename = "/tmp/tmporvtnb0w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_str_str_nl(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 = call i32 @print_str(ptr noundef %5)
%7 = load ptr, ptr %4, align 8
%8 = call i32 @print_str(ptr noundef %7)
%9 = call i32 (...) @print_nl()
ret void
}
declare i32 @print_str(ptr noundef) #1
declare i32 @print_nl(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmporvtnb0w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_str_str_nl(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 = call i32 @print_str(ptr noundef %5)
%7 = load ptr, ptr %4, align 8
%8 = call i32 @print_str(ptr noundef %7)
%9 = call i32 (...) @print_nl()
ret void
}
declare i32 @print_str(ptr noundef) #1
declare i32 @print_nl(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdsp7nwqg.c'
source_filename = "/tmp/tmpdsp7nwqg.c"
target datalayout = "e-m:e-p270: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/tmpdsp7nwqg.c"
target datalayout = "e-m:e-p270: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/tmptxil8e1j.c'
source_filename = "/tmp/tmptxil8e1j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 ptr @plainnum(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = load i32, ptr %7, align 4
store i32 %8, ptr %5, align 4
store i64 1, ptr %4, align 8
br label %9
9: ; preds = %13, %1
%10 = load i32, ptr %5, align 4
%11 = sdiv i32 %10, 10
store i32 %11, ptr %5, align 4
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %16
13: ; preds = %9
%14 = load i64, ptr %4, align 8
%15 = add i64 %14, 1
store i64 %15, ptr %4, align 8
br label %9, !llvm.loop !6
16: ; preds = %9
%17 = load i64, ptr %4, align 8
%18 = add i64 %17, 1
%19 = call ptr @malloc(i64 noundef %18)
store ptr %19, ptr %6, align 8
%20 = icmp ne ptr %19, null
br i1 %20, label %22, label %21
21: ; preds = %16
store ptr null, ptr %2, align 8
br label %28
22: ; preds = %16
%23 = load ptr, ptr %6, align 8
%24 = load ptr, ptr %3, align 8
%25 = load i32, ptr %24, align 4
%26 = call i32 @sprintf(ptr noundef %23, ptr noundef @.str, i32 noundef %25)
%27 = load ptr, ptr %6, align 8
store ptr %27, ptr %2, align 8
br label %28
28: ; preds = %22, %21
%29 = load ptr, ptr %2, align 8
ret ptr %29
}
declare ptr @malloc(i64 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmptxil8e1j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 ptr @plainnum(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = load i32, ptr %7, align 4
store i32 %8, ptr %5, align 4
store i64 1, ptr %4, align 8
%9 = load i32, ptr %5, align 4
%10 = sdiv i32 %9, 10
store i32 %10, ptr %5, align 4
%11 = icmp ne i32 %10, 0
br i1 %11, label %.lr.ph, label %18
.lr.ph: ; preds = %1
br label %12
12: ; preds = %.lr.ph, %12
%13 = load i64, ptr %4, align 8
%14 = add i64 %13, 1
store i64 %14, ptr %4, align 8
%15 = load i32, ptr %5, align 4
%16 = sdiv i32 %15, 10
store i32 %16, ptr %5, align 4
%17 = icmp ne i32 %16, 0
br i1 %17, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %18
18: ; preds = %._crit_edge, %1
%19 = load i64, ptr %4, align 8
%20 = add i64 %19, 1
%21 = call ptr @malloc(i64 noundef %20)
store ptr %21, ptr %6, align 8
%22 = icmp ne ptr %21, null
br i1 %22, label %24, label %23
23: ; preds = %18
store ptr null, ptr %2, align 8
br label %30
24: ; preds = %18
%25 = load ptr, ptr %6, align 8
%26 = load ptr, ptr %3, align 8
%27 = load i32, ptr %26, align 4
%28 = call i32 @sprintf(ptr noundef %25, ptr noundef @.str, i32 noundef %27)
%29 = load ptr, ptr %6, align 8
store ptr %29, ptr %2, align 8
br label %30
30: ; preds = %24, %23
%31 = load ptr, ptr %2, align 8
ret ptr %31
}
declare ptr @malloc(i64 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpw_znw6aw.c'
source_filename = "/tmp/tmpw_znw6aw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ts_itoa(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 1, ptr %7, align 4
br label %9
9: ; preds = %15, %3
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr %7, align 4
%12 = sdiv i32 %10, %11
%13 = load i32, ptr %6, align 4
%14 = icmp sge i32 %12, %13
br i1 %14, label %15, label %19
15: ; preds = %9
%16 = load i32, ptr %6, align 4
%17 = load i32, ptr %7, align 4
%18 = mul nsw i32 %17, %16
store i32 %18, ptr %7, align 4
br label %9, !llvm.loop !6
19: ; preds = %9
br label %20
20: ; preds = %50, %19
%21 = load i32, ptr %7, align 4
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %51
23: ; preds = %20
%24 = load i32, ptr %5, align 4
%25 = load i32, ptr %7, align 4
%26 = sdiv i32 %24, %25
store i32 %26, ptr %8, align 4
%27 = load i32, ptr %5, align 4
%28 = load i32, ptr %7, align 4
%29 = srem i32 %27, %28
store i32 %29, ptr %5, align 4
%30 = load i32, ptr %6, align 4
%31 = load i32, ptr %7, align 4
%32 = sdiv i32 %31, %30
store i32 %32, ptr %7, align 4
%33 = load i32, ptr %8, align 4
%34 = icmp sgt i32 %33, 9
br i1 %34, label %35, label %43
35: ; preds = %23
%36 = load i32, ptr %8, align 4
%37 = sub nsw i32 %36, 10
%38 = add nsw i32 %37, 65
%39 = trunc i32 %38 to i8
%40 = load ptr, ptr %4, align 8
%41 = load ptr, ptr %40, align 8
%42 = getelementptr inbounds i8, ptr %41, i32 1
store ptr %42, ptr %40, align 8
store i8 %39, ptr %41, align 1
br label %50
43: ; preds = %23
%44 = load i32, ptr %8, align 4
%45 = add nsw i32 %44, 48
%46 = trunc i32 %45 to i8
%47 = load ptr, ptr %4, align 8
%48 = load ptr, ptr %47, align 8
%49 = getelementptr inbounds i8, ptr %48, i32 1
store ptr %49, ptr %47, align 8
store i8 %46, ptr %48, align 1
br label %50
50: ; preds = %43, %35
br label %20, !llvm.loop !8
51: ; preds = %20
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw_znw6aw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ts_itoa(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 1, ptr %7, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %7, align 4
%11 = sdiv i32 %9, %10
%12 = load i32, ptr %6, align 4
%13 = icmp sge i32 %11, %12
br i1 %13, label %.lr.ph, label %23
.lr.ph: ; preds = %3
br label %14
14: ; preds = %.lr.ph, %14
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %7, align 4
%17 = mul nsw i32 %16, %15
store i32 %17, ptr %7, align 4
%18 = load i32, ptr %5, align 4
%19 = load i32, ptr %7, align 4
%20 = sdiv i32 %18, %19
%21 = load i32, ptr %6, align 4
%22 = icmp sge i32 %20, %21
br i1 %22, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %23
23: ; preds = %._crit_edge, %3
%24 = load i32, ptr %7, align 4
%25 = icmp ne i32 %24, 0
br i1 %25, label %.lr.ph2, label %56
.lr.ph2: ; preds = %23
br label %26
26: ; preds = %.lr.ph2, %53
%27 = load i32, ptr %5, align 4
%28 = load i32, ptr %7, align 4
%29 = sdiv i32 %27, %28
store i32 %29, ptr %8, align 4
%30 = load i32, ptr %5, align 4
%31 = load i32, ptr %7, align 4
%32 = srem i32 %30, %31
store i32 %32, ptr %5, align 4
%33 = load i32, ptr %6, align 4
%34 = load i32, ptr %7, align 4
%35 = sdiv i32 %34, %33
store i32 %35, ptr %7, align 4
%36 = load i32, ptr %8, align 4
%37 = icmp sgt i32 %36, 9
br i1 %37, label %38, label %46
38: ; preds = %26
%39 = load i32, ptr %8, align 4
%40 = sub nsw i32 %39, 10
%41 = add nsw i32 %40, 65
%42 = trunc i32 %41 to i8
%43 = load ptr, ptr %4, align 8
%44 = load ptr, ptr %43, align 8
%45 = getelementptr inbounds i8, ptr %44, i32 1
store ptr %45, ptr %43, align 8
store i8 %42, ptr %44, align 1
br label %53
46: ; preds = %26
%47 = load i32, ptr %8, align 4
%48 = add nsw i32 %47, 48
%49 = trunc i32 %48 to i8
%50 = load ptr, ptr %4, align 8
%51 = load ptr, ptr %50, align 8
%52 = getelementptr inbounds i8, ptr %51, i32 1
store ptr %52, ptr %50, align 8
store i8 %49, ptr %51, align 1
br label %53
53: ; preds = %46, %38
%54 = load i32, ptr %7, align 4
%55 = icmp ne i32 %54, 0
br i1 %55, label %26, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %53
br label %56
56: ; preds = %._crit_edge3, %23
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp9neov1f0.c'
source_filename = "/tmp/tmp9neov1f0.c"
target datalayout = "e-m:e-p270: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/tmp9neov1f0.c"
target datalayout = "e-m:e-p270: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/tmpn2jh6kon.c'
source_filename = "/tmp/tmpn2jh6kon.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"The solution is: %li\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 @primesum(i32 noundef 2000000)
%2 = call i32 @printf(ptr noundef @.str, i32 noundef %1)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @primesum(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/tmpn2jh6kon.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"The solution is: %li\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 @primesum(i32 noundef 2000000)
%2 = call i32 @printf(ptr noundef @.str, i32 noundef %1)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @primesum(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/tmp5p9yfhn9.c'
source_filename = "/tmp/tmp5p9yfhn9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AF_LOCAL = dso_local global i32 0, align 4
@PF_LOCAL = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5p9yfhn9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AF_LOCAL = dso_local global i32 0, align 4
@PF_LOCAL = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6ve_bvfh.c'
source_filename = "/tmp/tmp6ve_bvfh.c"
target datalayout = "e-m:e-p270: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/tmp6ve_bvfh.c"
target datalayout = "e-m:e-p270: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/tmpojfj7383.c'
source_filename = "/tmp/tmpojfj7383.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [103 x i8] c"\0ADNS Query Performance Testing Tool\0AVersion: $Id: queryperf.c,v 1.12 2007/09/05 07:36:04 marka Exp $\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @show_startup_info() #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/tmpojfj7383.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [103 x i8] c"\0ADNS Query Performance Testing Tool\0AVersion: $Id: queryperf.c,v 1.12 2007/09/05 07:36:04 marka Exp $\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @show_startup_info() #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/tmpqnn0nmh1.c'
source_filename = "/tmp/tmpqnn0nmh1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"Case %d: %d %d %.3f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %5, align 4
br label %9
9: ; preds = %47, %0
%10 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %15
12: ; preds = %9
%13 = load i32, ptr %2, align 4
%14 = icmp ne i32 %13, 0
br label %15
15: ; preds = %12, %9
%16 = phi i1 [ false, %9 ], [ %14, %12 ]
br i1 %16, label %17, label %58
17: ; preds = %15
store i32 0, ptr %7, align 4
store i32 1000000000, ptr %3, align 4
store i32 -1000000000, ptr %4, align 4
store i32 0, ptr %8, align 4
br label %18
18: ; preds = %39, %17
%19 = load i32, ptr %8, align 4
%20 = load i32, ptr %2, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %42
22: ; preds = %18
%23 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
%24 = load i32, ptr %6, align 4
%25 = load i32, ptr %7, align 4
%26 = add nsw i32 %25, %24
store i32 %26, ptr %7, align 4
%27 = load i32, ptr %6, align 4
%28 = load i32, ptr %4, align 4
%29 = icmp sgt i32 %27, %28
br i1 %29, label %30, label %32
30: ; preds = %22
%31 = load i32, ptr %6, align 4
store i32 %31, ptr %4, align 4
br label %32
32: ; preds = %30, %22
%33 = load i32, ptr %6, align 4
%34 = load i32, ptr %3, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %36, label %38
36: ; preds = %32
%37 = load i32, ptr %6, align 4
store i32 %37, ptr %3, align 4
br label %38
38: ; preds = %36, %32
br label %39
39: ; preds = %38
%40 = load i32, ptr %8, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %8, align 4
br label %18, !llvm.loop !6
42: ; preds = %18
%43 = load i32, ptr %5, align 4
%44 = icmp ne i32 %43, 0
br i1 %44, label %45, label %47
45: ; preds = %42
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %47
47: ; preds = %45, %42
%48 = load i32, ptr %5, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %5, align 4
%50 = load i32, ptr %3, align 4
%51 = load i32, ptr %4, align 4
%52 = load i32, ptr %7, align 4
%53 = sitofp i32 %52 to double
%54 = load i32, ptr %2, align 4
%55 = sitofp i32 %54 to double
%56 = fdiv double %53, %55
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %49, i32 noundef %50, i32 noundef %51, double noundef %56)
br label %9, !llvm.loop !8
58: ; preds = %15
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqnn0nmh1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"Case %d: %d %d %.3f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %5, align 4
br label %9
9: ; preds = %49, %0
%10 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %15
12: ; preds = %9
%13 = load i32, ptr %2, align 4
%14 = icmp ne i32 %13, 0
br label %15
15: ; preds = %12, %9
%16 = phi i1 [ false, %9 ], [ %14, %12 ]
br i1 %16, label %17, label %60
17: ; preds = %15
store i32 0, ptr %7, align 4
store i32 1000000000, ptr %3, align 4
store i32 -1000000000, ptr %4, align 4
store i32 0, ptr %8, align 4
%18 = load i32, ptr %8, align 4
%19 = load i32, ptr %2, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %.lr.ph, label %44
.lr.ph: ; preds = %17
br label %21
21: ; preds = %.lr.ph, %38
%22 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
%23 = load i32, ptr %6, align 4
%24 = load i32, ptr %7, align 4
%25 = add nsw i32 %24, %23
store i32 %25, ptr %7, align 4
%26 = load i32, ptr %6, align 4
%27 = load i32, ptr %4, align 4
%28 = icmp sgt i32 %26, %27
br i1 %28, label %29, label %31
29: ; preds = %21
%30 = load i32, ptr %6, align 4
store i32 %30, ptr %4, align 4
br label %31
31: ; preds = %29, %21
%32 = load i32, ptr %6, align 4
%33 = load i32, ptr %3, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %35, label %37
35: ; preds = %31
%36 = load i32, ptr %6, align 4
store i32 %36, ptr %3, align 4
br label %37
37: ; preds = %35, %31
br label %38
38: ; preds = %37
%39 = load i32, ptr %8, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %8, align 4
%41 = load i32, ptr %8, align 4
%42 = load i32, ptr %2, align 4
%43 = icmp slt i32 %41, %42
br i1 %43, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %38
br label %44
44: ; preds = %._crit_edge, %17
%45 = load i32, ptr %5, align 4
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %49
47: ; preds = %44
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %49
49: ; preds = %47, %44
%50 = load i32, ptr %5, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %5, align 4
%52 = load i32, ptr %3, align 4
%53 = load i32, ptr %4, align 4
%54 = load i32, ptr %7, align 4
%55 = sitofp i32 %54 to double
%56 = load i32, ptr %2, align 4
%57 = sitofp i32 %56 to double
%58 = fdiv double %55, %57
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %51, i32 noundef %52, i32 noundef %53, double noundef %58)
br label %9, !llvm.loop !8
60: ; preds = %15
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpo5n2jfq1.c'
source_filename = "/tmp/tmpo5n2jfq1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"dcload-ip 1.0.3\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @error_bb(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @setup_video(i32 noundef 0, i32 noundef 0)
%4 = call i32 (i32, i32, ...) @draw_string(i32 noundef 0, i32 noundef 24, ptr noundef @.str, i32 noundef 65535)
%5 = load ptr, ptr %2, align 8
%6 = call i32 (i32, i32, ...) @draw_string(i32 noundef 0, i32 noundef 48, ptr noundef %5, i32 noundef 65535)
br label %7
7: ; preds = %1, %7
br label %7
}
declare i32 @setup_video(i32 noundef, i32 noundef) #1
declare i32 @draw_string(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/tmpo5n2jfq1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"dcload-ip 1.0.3\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @error_bb(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @setup_video(i32 noundef 0, i32 noundef 0)
%4 = call i32 (i32, i32, ...) @draw_string(i32 noundef 0, i32 noundef 24, ptr noundef @.str, i32 noundef 65535)
%5 = load ptr, ptr %2, align 8
%6 = call i32 (i32, i32, ...) @draw_string(i32 noundef 0, i32 noundef 48, ptr noundef %5, i32 noundef 65535)
br label %7
7: ; preds = %7, %1
br label %7
}
declare i32 @setup_video(i32 noundef, i32 noundef) #1
declare i32 @draw_string(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/tmpgj136bfb.c'
source_filename = "/tmp/tmpgj136bfb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read_serial_long(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i8, align 1
%10 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %10, align 4
br label %11
11: ; preds = %27, %3
%12 = load i32, ptr %10, align 4
%13 = icmp slt i32 %12, 4
br i1 %13, label %14, label %30
14: ; preds = %11
%15 = load i32, ptr %5, align 4
%16 = load i32, ptr %7, align 4
%17 = call i32 @read_serial_byte(i32 noundef %15, ptr noundef %9, i32 noundef %16)
%18 = icmp ne i32 %17, 0
br i1 %18, label %20, label %19
19: ; preds = %14
store i32 0, ptr %4, align 4
br label %33
20: ; preds = %14
%21 = load i32, ptr %8, align 4
%22 = lshr i32 %21, 8
%23 = load i8, ptr %9, align 1
%24 = zext i8 %23 to i32
%25 = shl i32 %24, 24
%26 = or i32 %22, %25
store i32 %26, ptr %8, align 4
br label %27
27: ; preds = %20
%28 = load i32, ptr %10, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %10, align 4
br label %11, !llvm.loop !6
30: ; preds = %11
%31 = load i32, ptr %8, align 4
%32 = load ptr, ptr %6, align 8
store i32 %31, ptr %32, align 4
store i32 1, ptr %4, align 4
br label %33
33: ; preds = %30, %19
%34 = load i32, ptr %4, align 4
ret i32 %34
}
declare i32 @read_serial_byte(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgj136bfb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read_serial_long(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i8, align 1
%10 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %10, align 4
%11 = load i32, ptr %10, align 4
%12 = icmp slt i32 %11, 4
br i1 %12, label %.lr.ph, label %31
.lr.ph: ; preds = %3
br label %13
13: ; preds = %.lr.ph, %26
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %7, align 4
%16 = call i32 @read_serial_byte(i32 noundef %14, ptr noundef %9, i32 noundef %15)
%17 = icmp ne i32 %16, 0
br i1 %17, label %19, label %18
18: ; preds = %13
store i32 0, ptr %4, align 4
br label %34
19: ; preds = %13
%20 = load i32, ptr %8, align 4
%21 = lshr i32 %20, 8
%22 = load i8, ptr %9, align 1
%23 = zext i8 %22 to i32
%24 = shl i32 %23, 24
%25 = or i32 %21, %24
store i32 %25, ptr %8, align 4
br label %26
26: ; preds = %19
%27 = load i32, ptr %10, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %10, align 4
%29 = load i32, ptr %10, align 4
%30 = icmp slt i32 %29, 4
br i1 %30, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %31
31: ; preds = %._crit_edge, %3
%32 = load i32, ptr %8, align 4
%33 = load ptr, ptr %6, align 8
store i32 %32, ptr %33, align 4
store i32 1, ptr %4, align 4
br label %34
34: ; preds = %31, %18
%35 = load i32, ptr %4, align 4
ret i32 %35
}
declare i32 @read_serial_byte(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp774wr7s8.c'
source_filename = "/tmp/tmp774wr7s8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @constructor_empty_const_IL(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = load ptr, ptr %4, align 8
%7 = call i64 @constructor_empty_IL(i32 noundef %5, ptr noundef %6)
%8 = inttoptr i64 %7 to ptr
ret ptr %8
}
declare i64 @constructor_empty_IL(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/tmp774wr7s8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @constructor_empty_const_IL(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = load ptr, ptr %4, align 8
%7 = call i64 @constructor_empty_IL(i32 noundef %5, ptr noundef %6)
%8 = inttoptr i64 %7 to ptr
ret ptr %8
}
declare i64 @constructor_empty_IL(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/tmpt18ta0zu.c'
source_filename = "/tmp/tmpt18ta0zu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"help\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @setup_parent(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %5, align 4
%8 = load ptr, ptr %6, align 8
%9 = call i64 @check_flag(ptr noundef @.str, i32 noundef %7, ptr noundef %8)
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %3
%12 = call i32 (...) @print_usage()
br label %13
13: ; preds = %11, %3
%14 = call i32 (...) @setup_parent_signals()
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %5, align 4
%17 = load ptr, ptr %6, align 8
%18 = call i32 @start_children(ptr noundef %15, i32 noundef %16, ptr noundef %17)
ret void
}
declare i64 @check_flag(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @print_usage(...) #1
declare i32 @setup_parent_signals(...) #1
declare i32 @start_children(ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt18ta0zu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"help\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @setup_parent(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %5, align 4
%8 = load ptr, ptr %6, align 8
%9 = call i64 @check_flag(ptr noundef @.str, i32 noundef %7, ptr noundef %8)
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %3
%12 = call i32 (...) @print_usage()
br label %13
13: ; preds = %11, %3
%14 = call i32 (...) @setup_parent_signals()
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %5, align 4
%17 = load ptr, ptr %6, align 8
%18 = call i32 @start_children(ptr noundef %15, i32 noundef %16, ptr noundef %17)
ret void
}
declare i64 @check_flag(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @print_usage(...) #1
declare i32 @setup_parent_signals(...) #1
declare i32 @start_children(ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_nwu4ocn.c'
source_filename = "/tmp/tmp_nwu4ocn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, 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 (...) @print_usage()
store i32 0, ptr %3, align 4
br label %23
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = call i64 @atoll(ptr noundef %14)
store i64 %15, ptr %6, align 8
%16 = load i64, ptr %6, align 8
%17 = icmp slt i64 %16, 2
br i1 %17, label %18, label %20
18: ; preds = %11
%19 = call i32 (...) @print_usage()
store i32 1, ptr %3, align 4
br label %23
20: ; preds = %11
%21 = load i64, ptr %6, align 8
%22 = call i32 @print_primes(i64 noundef %21)
store i32 0, ptr %3, align 4
br label %23
23: ; preds = %20, %18, %9
%24 = load i32, ptr %3, align 4
ret i32 %24
}
declare i32 @print_usage(...) #1
declare i64 @atoll(ptr noundef) #1
declare i32 @print_primes(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_nwu4ocn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, 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 (...) @print_usage()
store i32 0, ptr %3, align 4
br label %23
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = call i64 @atoll(ptr noundef %14)
store i64 %15, ptr %6, align 8
%16 = load i64, ptr %6, align 8
%17 = icmp slt i64 %16, 2
br i1 %17, label %18, label %20
18: ; preds = %11
%19 = call i32 (...) @print_usage()
store i32 1, ptr %3, align 4
br label %23
20: ; preds = %11
%21 = load i64, ptr %6, align 8
%22 = call i32 @print_primes(i64 noundef %21)
store i32 0, ptr %3, align 4
br label %23
23: ; preds = %20, %18, %9
%24 = load i32, ptr %3, align 4
ret i32 %24
}
declare i32 @print_usage(...) #1
declare i64 @atoll(ptr noundef) #1
declare i32 @print_primes(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpz7yh2w89.c'
source_filename = "/tmp/tmpz7yh2w89.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lgammaf(float noundef %0) #0 {
%2 = alloca float, align 4
%3 = alloca i32, align 4
store float %0, ptr %2, align 4
%4 = load float, ptr %2, align 4
%5 = call float @__ieee754_lgammaf_r(float noundef %4, ptr noundef %3)
ret float %5
}
declare float @__ieee754_lgammaf_r(float 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/tmpz7yh2w89.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lgammaf(float noundef %0) #0 {
%2 = alloca float, align 4
%3 = alloca i32, align 4
store float %0, ptr %2, align 4
%4 = load float, ptr %2, align 4
%5 = call float @__ieee754_lgammaf_r(float noundef %4, ptr noundef %3)
ret float %5
}
declare float @__ieee754_lgammaf_r(float 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/tmppmg3hwyc.c'
source_filename = "/tmp/tmppmg3hwyc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tracecmd_copy_headers(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = call i32 @copy_header_files(ptr noundef %7, i32 noundef %8)
store i32 %9, ptr %6, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %2
store i32 -1, ptr %3, align 4
br label %49
13: ; preds = %2
%14 = load ptr, ptr %4, align 8
%15 = load i32, ptr %5, align 4
%16 = call i32 @copy_ftrace_files(ptr noundef %14, i32 noundef %15)
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %6, align 4
%18 = icmp slt i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %13
store i32 -1, ptr %3, align 4
br label %49
20: ; preds = %13
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %5, align 4
%23 = call i32 @copy_event_files(ptr noundef %21, i32 noundef %22)
store i32 %23, ptr %6, align 4
%24 = load i32, ptr %6, align 4
%25 = icmp slt i32 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %20
store i32 -1, ptr %3, align 4
br label %49
27: ; preds = %20
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %5, align 4
%30 = call i32 @copy_proc_kallsyms(ptr noundef %28, i32 noundef %29)
store i32 %30, ptr %6, align 4
%31 = load i32, ptr %6, align 4
%32 = icmp slt i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %27
store i32 -1, ptr %3, align 4
br label %49
34: ; preds = %27
%35 = load ptr, ptr %4, align 8
%36 = load i32, ptr %5, align 4
%37 = call i32 @copy_ftrace_printk(ptr noundef %35, i32 noundef %36)
store i32 %37, ptr %6, align 4
%38 = load i32, ptr %6, align 4
%39 = icmp slt i32 %38, 0
br i1 %39, label %40, label %41
40: ; preds = %34
store i32 -1, ptr %3, align 4
br label %49
41: ; preds = %34
%42 = load ptr, ptr %4, align 8
%43 = load i32, ptr %5, align 4
%44 = call i32 @copy_command_lines(ptr noundef %42, i32 noundef %43)
store i32 %44, ptr %6, align 4
%45 = load i32, ptr %6, align 4
%46 = icmp slt i32 %45, 0
br i1 %46, label %47, label %48
47: ; preds = %41
store i32 -1, ptr %3, align 4
br label %49
48: ; preds = %41
store i32 0, ptr %3, align 4
br label %49
49: ; preds = %48, %47, %40, %33, %26, %19, %12
%50 = load i32, ptr %3, align 4
ret i32 %50
}
declare i32 @copy_header_files(ptr noundef, i32 noundef) #1
declare i32 @copy_ftrace_files(ptr noundef, i32 noundef) #1
declare i32 @copy_event_files(ptr noundef, i32 noundef) #1
declare i32 @copy_proc_kallsyms(ptr noundef, i32 noundef) #1
declare i32 @copy_ftrace_printk(ptr noundef, i32 noundef) #1
declare i32 @copy_command_lines(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/tmppmg3hwyc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tracecmd_copy_headers(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = call i32 @copy_header_files(ptr noundef %7, i32 noundef %8)
store i32 %9, ptr %6, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %2
store i32 -1, ptr %3, align 4
br label %49
13: ; preds = %2
%14 = load ptr, ptr %4, align 8
%15 = load i32, ptr %5, align 4
%16 = call i32 @copy_ftrace_files(ptr noundef %14, i32 noundef %15)
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %6, align 4
%18 = icmp slt i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %13
store i32 -1, ptr %3, align 4
br label %49
20: ; preds = %13
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %5, align 4
%23 = call i32 @copy_event_files(ptr noundef %21, i32 noundef %22)
store i32 %23, ptr %6, align 4
%24 = load i32, ptr %6, align 4
%25 = icmp slt i32 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %20
store i32 -1, ptr %3, align 4
br label %49
27: ; preds = %20
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %5, align 4
%30 = call i32 @copy_proc_kallsyms(ptr noundef %28, i32 noundef %29)
store i32 %30, ptr %6, align 4
%31 = load i32, ptr %6, align 4
%32 = icmp slt i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %27
store i32 -1, ptr %3, align 4
br label %49
34: ; preds = %27
%35 = load ptr, ptr %4, align 8
%36 = load i32, ptr %5, align 4
%37 = call i32 @copy_ftrace_printk(ptr noundef %35, i32 noundef %36)
store i32 %37, ptr %6, align 4
%38 = load i32, ptr %6, align 4
%39 = icmp slt i32 %38, 0
br i1 %39, label %40, label %41
40: ; preds = %34
store i32 -1, ptr %3, align 4
br label %49
41: ; preds = %34
%42 = load ptr, ptr %4, align 8
%43 = load i32, ptr %5, align 4
%44 = call i32 @copy_command_lines(ptr noundef %42, i32 noundef %43)
store i32 %44, ptr %6, align 4
%45 = load i32, ptr %6, align 4
%46 = icmp slt i32 %45, 0
br i1 %46, label %47, label %48
47: ; preds = %41
store i32 -1, ptr %3, align 4
br label %49
48: ; preds = %41
store i32 0, ptr %3, align 4
br label %49
49: ; preds = %48, %47, %40, %33, %26, %19, %12
%50 = load i32, ptr %3, align 4
ret i32 %50
}
declare i32 @copy_header_files(ptr noundef, i32 noundef) #1
declare i32 @copy_ftrace_files(ptr noundef, i32 noundef) #1
declare i32 @copy_event_files(ptr noundef, i32 noundef) #1
declare i32 @copy_proc_kallsyms(ptr noundef, i32 noundef) #1
declare i32 @copy_ftrace_printk(ptr noundef, i32 noundef) #1
declare i32 @copy_command_lines(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/tmpp3a2venw.c'
source_filename = "/tmp/tmpp3a2venw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp3a2venw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpy3n700mo.c'
source_filename = "/tmp/tmpy3n700mo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"\0A the infix expression entered is :%s\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"\0A The postfix rxpression is :%s\00", align 1
@.str.2 = private unnamed_addr constant [46 x i8] c"\0A The postfix rxpression after valuing is :%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @toprefix(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [100 x i8], align 16
%4 = alloca [100 x i8], align 16
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%9 = load ptr, ptr %2, align 8
%10 = call i32 @printf(ptr noundef @.str, ptr noundef %9)
store i32 -1, ptr %5, align 4
store i32 -1, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %11
11: ; preds = %228, %1
%12 = load ptr, ptr %2, align 8
%13 = load i32, ptr %7, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %229
19: ; preds = %11
%20 = load ptr, ptr %2, align 8
%21 = load i32, ptr %7, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 41
br i1 %26, label %27, label %40
27: ; preds = %19
%28 = load i32, ptr %6, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %6, align 4
%30 = load ptr, ptr %2, align 8
%31 = load i32, ptr %7, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %30, i64 %32
%34 = load i8, ptr %33, align 1
%35 = load i32, ptr %6, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %36
store i8 %34, ptr %37, align 1
%38 = load i32, ptr %7, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %7, align 4
br label %228
40: ; preds = %19
%41 = load ptr, ptr %2, align 8
%42 = load i32, ptr %7, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %41, i64 %43
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = icmp eq i32 %46, 40
br i1 %47, label %48, label %82
48: ; preds = %40
%49 = load i32, ptr %7, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %7, align 4
br label %51
51: ; preds = %67, %48
%52 = load i32, ptr %6, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %53
%55 = load i8, ptr %54, align 1
%56 = sext i8 %55 to i32
%57 = icmp ne i32 %56, 40
br i1 %57, label %58, label %65
58: ; preds = %51
%59 = load i32, ptr %6, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %60
%62 = load i8, ptr %61, align 1
%63 = sext i8 %62 to i32
%64 = icmp ne i32 %63, 41
br label %65
65: ; preds = %58, %51
%66 = phi i1 [ false, %51 ], [ %64, %58 ]
br i1 %66, label %67, label %79
67: ; preds = %65
%68 = load i32, ptr %5, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %5, align 4
%70 = load i32, ptr %6, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %71
%73 = load i8, ptr %72, align 1
%74 = load i32, ptr %5, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 %75
store i8 %73, ptr %76, align 1
%77 = load i32, ptr %6, align 4
%78 = add nsw i32 %77, -1
store i32 %78, ptr %6, align 4
br label %51, !llvm.loop !6
79: ; preds = %65
%80 = load i32, ptr %6, align 4
%81 = add nsw i32 %80, -1
store i32 %81, ptr %6, align 4
br label %227
82: ; preds = %40
%83 = load ptr, ptr %2, align 8
%84 = load i32, ptr %7, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i8, ptr %83, i64 %85
%87 = load i8, ptr %86, align 1
%88 = call signext i8 @prec(i8 noundef signext %87)
%89 = sext i8 %88 to i32
%90 = icmp eq i32 %89, 0
br i1 %90, label %91, label %104
91: ; preds = %82
%92 = load i32, ptr %5, align 4
%93 = add nsw i32 %92, 1
store i32 %93, ptr %5, align 4
%94 = load ptr, ptr %2, align 8
%95 = load i32, ptr %7, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds i8, ptr %94, i64 %96
%98 = load i8, ptr %97, align 1
%99 = load i32, ptr %5, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 %100
store i8 %98, ptr %101, align 1
%102 = load i32, ptr %7, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %7, align 4
br label %226
104: ; preds = %82
%105 = load i32, ptr %6, align 4
%106 = icmp ne i32 %105, -1
br i1 %106, label %107, label %212
107: ; preds = %104
%108 = load ptr, ptr %2, align 8
%109 = load i32, ptr %7, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i8, ptr %108, i64 %110
%112 = load i8, ptr %111, align 1
%113 = call signext i8 @prec(i8 noundef signext %112)
%114 = sext i8 %113 to i32
%115 = load i32, ptr %6, align 4
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %116
%118 = load i8, ptr %117, align 1
%119 = call signext i8 @prec(i8 noundef signext %118)
%120 = sext i8 %119 to i32
%121 = icmp sge i32 %114, %120
br i1 %121, label %122, label %135
122: ; preds = %107
%123 = load i32, ptr %6, align 4
%124 = add nsw i32 %123, 1
store i32 %124, ptr %6, align 4
%125 = load ptr, ptr %2, align 8
%126 = load i32, ptr %7, align 4
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds i8, ptr %125, i64 %127
%129 = load i8, ptr %128, align 1
%130 = load i32, ptr %6, align 4
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %131
store i8 %129, ptr %132, align 1
%133 = load i32, ptr %7, align 4
%134 = add nsw i32 %133, 1
store i32 %134, ptr %7, align 4
br label %211
135: ; preds = %107
%136 = load ptr, ptr %2, align 8
%137 = load i32, ptr %7, align 4
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds i8, ptr %136, i64 %138
%140 = load i8, ptr %139, align 1
%141 = call signext i8 @prec(i8 noundef signext %140)
%142 = sext i8 %141 to i32
%143 = load i32, ptr %6, align 4
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %144
%146 = load i8, ptr %145, align 1
%147 = sext i8 %146 to i32
%148 = icmp slt i32 %142, %147
br i1 %148, label %149, label %210
149: ; preds = %135
%150 = load i32, ptr %6, align 4
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %151
%153 = load i8, ptr %152, align 1
%154 = sext i8 %153 to i32
%155 = icmp ne i32 %154, 41
br i1 %155, label %156, label %210
156: ; preds = %149
store i32 0, ptr %8, align 4
br label %157
157: ; preds = %183, %156
%158 = load ptr, ptr %2, align 8
%159 = load i32, ptr %7, align 4
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds i8, ptr %158, i64 %160
%162 = load i8, ptr %161, align 1
%163 = call signext i8 @prec(i8 noundef signext %162)
%164 = sext i8 %163 to i32
%165 = load i32, ptr %6, align 4
%166 = sext i32 %165 to i64
%167 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %166
%168 = load i8, ptr %167, align 1
%169 = sext i8 %168 to i32
%170 = icmp sle i32 %164, %169
br i1 %170, label %171, label %181
171: ; preds = %157
%172 = load i32, ptr %6, align 4
%173 = icmp ne i32 %172, -1
br i1 %173, label %174, label %181
174: ; preds = %171
%175 = load i32, ptr %6, align 4
%176 = sext i32 %175 to i64
%177 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %176
%178 = load i8, ptr %177, align 1
%179 = sext i8 %178 to i32
%180 = icmp ne i32 %179, 41
br label %181
181: ; preds = %174, %171, %157
%182 = phi i1 [ false, %171 ], [ false, %157 ], [ %180, %174 ]
br i1 %182, label %183, label %197
183: ; preds = %181
%184 = load i32, ptr %5, align 4
%185 = add nsw i32 %184, 1
store i32 %185, ptr %5, align 4
%186 = load i32, ptr %8, align 4
%187 = add nsw i32 %186, 1
store i32 %187, ptr %8, align 4
%188 = load i32, ptr %6, align 4
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %189
%191 = load i8, ptr %190, align 1
%192 = load i32, ptr %5, align 4
%193 = sext i32 %192 to i64
%194 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 %193
store i8 %191, ptr %194, align 1
%195 = load i32, ptr %6, align 4
%196 = add nsw i32 %195, -1
store i32 %196, ptr %6, align 4
br label %157, !llvm.loop !8
197: ; preds = %181
%198 = load i32, ptr %6, align 4
%199 = add nsw i32 %198, 1
store i32 %199, ptr %6, align 4
%200 = load ptr, ptr %2, align 8
%201 = load i32, ptr %7, align 4
%202 = sext i32 %201 to i64
%203 = getelementptr inbounds i8, ptr %200, i64 %202
%204 = load i8, ptr %203, align 1
%205 = load i32, ptr %6, align 4
%206 = sext i32 %205 to i64
%207 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %206
store i8 %204, ptr %207, align 1
%208 = load i32, ptr %7, align 4
%209 = add nsw i32 %208, 1
store i32 %209, ptr %7, align 4
br label %210
210: ; preds = %197, %149, %135
br label %211
211: ; preds = %210, %122
br label %225
212: ; preds = %104
%213 = load i32, ptr %6, align 4
%214 = add nsw i32 %213, 1
store i32 %214, ptr %6, align 4
%215 = load ptr, ptr %2, align 8
%216 = load i32, ptr %7, align 4
%217 = sext i32 %216 to i64
%218 = getelementptr inbounds i8, ptr %215, i64 %217
%219 = load i8, ptr %218, align 1
%220 = load i32, ptr %6, align 4
%221 = sext i32 %220 to i64
%222 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %221
store i8 %219, ptr %222, align 1
%223 = load i32, ptr %7, align 4
%224 = add nsw i32 %223, 1
store i32 %224, ptr %7, align 4
br label %225
225: ; preds = %212, %211
br label %226
226: ; preds = %225, %91
br label %227
227: ; preds = %226, %79
br label %228
228: ; preds = %227, %27
br label %11, !llvm.loop !9
229: ; preds = %11
br label %230
230: ; preds = %233, %229
%231 = load i32, ptr %6, align 4
%232 = icmp sge i32 %231, 0
br i1 %232, label %233, label %245
233: ; preds = %230
%234 = load i32, ptr %5, align 4
%235 = add nsw i32 %234, 1
store i32 %235, ptr %5, align 4
%236 = load i32, ptr %6, align 4
%237 = sext i32 %236 to i64
%238 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %237
%239 = load i8, ptr %238, align 1
%240 = load i32, ptr %5, align 4
%241 = sext i32 %240 to i64
%242 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 %241
store i8 %239, ptr %242, align 1
%243 = load i32, ptr %6, align 4
%244 = add nsw i32 %243, -1
store i32 %244, ptr %6, align 4
br label %230, !llvm.loop !10
245: ; preds = %230
%246 = load i32, ptr %5, align 4
%247 = add nsw i32 %246, 1
store i32 %247, ptr %5, align 4
%248 = load i32, ptr %5, align 4
%249 = sext i32 %248 to i64
%250 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 %249
store i8 0, ptr %250, align 1
%251 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 0
%252 = call i32 @printf(ptr noundef @.str.1, ptr noundef %251)
%253 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 0
%254 = call i32 @values(ptr noundef %253)
%255 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 0
%256 = call i32 @printf(ptr noundef @.str.2, ptr noundef %255)
%257 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 0
%258 = call i32 @evapo(ptr noundef %257)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare signext i8 @prec(i8 noundef signext) #1
declare i32 @values(ptr noundef) #1
declare i32 @evapo(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy3n700mo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"\0A the infix expression entered is :%s\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"\0A The postfix rxpression is :%s\00", align 1
@.str.2 = private unnamed_addr constant [46 x i8] c"\0A The postfix rxpression after valuing is :%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @toprefix(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [100 x i8], align 16
%4 = alloca [100 x i8], align 16
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%9 = load ptr, ptr %2, align 8
%10 = call i32 @printf(ptr noundef @.str, ptr noundef %9)
store i32 -1, ptr %5, align 4
store i32 -1, ptr %6, align 4
store i32 0, ptr %7, align 4
%11 = load ptr, ptr %2, align 8
%12 = load i32, ptr %7, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %11, i64 %13
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %16, 0
br i1 %17, label %.lr.ph, label %235
.lr.ph: ; preds = %1
br label %18
18: ; preds = %.lr.ph, %227
%19 = load ptr, ptr %2, align 8
%20 = load i32, ptr %7, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 41
br i1 %25, label %26, label %39
26: ; preds = %18
%27 = load i32, ptr %6, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %6, align 4
%29 = load ptr, ptr %2, align 8
%30 = load i32, ptr %7, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = load i8, ptr %32, align 1
%34 = load i32, ptr %6, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %35
store i8 %33, ptr %36, align 1
%37 = load i32, ptr %7, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %7, align 4
br label %227
39: ; preds = %18
%40 = load ptr, ptr %2, align 8
%41 = load i32, ptr %7, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %40, i64 %42
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = icmp eq i32 %45, 40
br i1 %46, label %47, label %81
47: ; preds = %39
%48 = load i32, ptr %7, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %7, align 4
br label %50
50: ; preds = %66, %47
%51 = load i32, ptr %6, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %52
%54 = load i8, ptr %53, align 1
%55 = sext i8 %54 to i32
%56 = icmp ne i32 %55, 40
br i1 %56, label %57, label %64
57: ; preds = %50
%58 = load i32, ptr %6, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %59
%61 = load i8, ptr %60, align 1
%62 = sext i8 %61 to i32
%63 = icmp ne i32 %62, 41
br label %64
64: ; preds = %57, %50
%65 = phi i1 [ false, %50 ], [ %63, %57 ]
br i1 %65, label %66, label %78
66: ; preds = %64
%67 = load i32, ptr %5, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %5, align 4
%69 = load i32, ptr %6, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %70
%72 = load i8, ptr %71, align 1
%73 = load i32, ptr %5, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 %74
store i8 %72, ptr %75, align 1
%76 = load i32, ptr %6, align 4
%77 = add nsw i32 %76, -1
store i32 %77, ptr %6, align 4
br label %50, !llvm.loop !6
78: ; preds = %64
%79 = load i32, ptr %6, align 4
%80 = add nsw i32 %79, -1
store i32 %80, ptr %6, align 4
br label %226
81: ; preds = %39
%82 = load ptr, ptr %2, align 8
%83 = load i32, ptr %7, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i8, ptr %82, i64 %84
%86 = load i8, ptr %85, align 1
%87 = call signext i8 @prec(i8 noundef signext %86)
%88 = sext i8 %87 to i32
%89 = icmp eq i32 %88, 0
br i1 %89, label %90, label %103
90: ; preds = %81
%91 = load i32, ptr %5, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr %5, align 4
%93 = load ptr, ptr %2, align 8
%94 = load i32, ptr %7, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds i8, ptr %93, i64 %95
%97 = load i8, ptr %96, align 1
%98 = load i32, ptr %5, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 %99
store i8 %97, ptr %100, align 1
%101 = load i32, ptr %7, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %7, align 4
br label %225
103: ; preds = %81
%104 = load i32, ptr %6, align 4
%105 = icmp ne i32 %104, -1
br i1 %105, label %106, label %211
106: ; preds = %103
%107 = load ptr, ptr %2, align 8
%108 = load i32, ptr %7, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds i8, ptr %107, i64 %109
%111 = load i8, ptr %110, align 1
%112 = call signext i8 @prec(i8 noundef signext %111)
%113 = sext i8 %112 to i32
%114 = load i32, ptr %6, align 4
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %115
%117 = load i8, ptr %116, align 1
%118 = call signext i8 @prec(i8 noundef signext %117)
%119 = sext i8 %118 to i32
%120 = icmp sge i32 %113, %119
br i1 %120, label %121, label %134
121: ; preds = %106
%122 = load i32, ptr %6, align 4
%123 = add nsw i32 %122, 1
store i32 %123, ptr %6, align 4
%124 = load ptr, ptr %2, align 8
%125 = load i32, ptr %7, align 4
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds i8, ptr %124, i64 %126
%128 = load i8, ptr %127, align 1
%129 = load i32, ptr %6, align 4
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %130
store i8 %128, ptr %131, align 1
%132 = load i32, ptr %7, align 4
%133 = add nsw i32 %132, 1
store i32 %133, ptr %7, align 4
br label %210
134: ; preds = %106
%135 = load ptr, ptr %2, align 8
%136 = load i32, ptr %7, align 4
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds i8, ptr %135, i64 %137
%139 = load i8, ptr %138, align 1
%140 = call signext i8 @prec(i8 noundef signext %139)
%141 = sext i8 %140 to i32
%142 = load i32, ptr %6, align 4
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %143
%145 = load i8, ptr %144, align 1
%146 = sext i8 %145 to i32
%147 = icmp slt i32 %141, %146
br i1 %147, label %148, label %209
148: ; preds = %134
%149 = load i32, ptr %6, align 4
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %150
%152 = load i8, ptr %151, align 1
%153 = sext i8 %152 to i32
%154 = icmp ne i32 %153, 41
br i1 %154, label %155, label %209
155: ; preds = %148
store i32 0, ptr %8, align 4
br label %156
156: ; preds = %182, %155
%157 = load ptr, ptr %2, align 8
%158 = load i32, ptr %7, align 4
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds i8, ptr %157, i64 %159
%161 = load i8, ptr %160, align 1
%162 = call signext i8 @prec(i8 noundef signext %161)
%163 = sext i8 %162 to i32
%164 = load i32, ptr %6, align 4
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %165
%167 = load i8, ptr %166, align 1
%168 = sext i8 %167 to i32
%169 = icmp sle i32 %163, %168
br i1 %169, label %170, label %180
170: ; preds = %156
%171 = load i32, ptr %6, align 4
%172 = icmp ne i32 %171, -1
br i1 %172, label %173, label %180
173: ; preds = %170
%174 = load i32, ptr %6, align 4
%175 = sext i32 %174 to i64
%176 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %175
%177 = load i8, ptr %176, align 1
%178 = sext i8 %177 to i32
%179 = icmp ne i32 %178, 41
br label %180
180: ; preds = %173, %170, %156
%181 = phi i1 [ false, %170 ], [ false, %156 ], [ %179, %173 ]
br i1 %181, label %182, label %196
182: ; preds = %180
%183 = load i32, ptr %5, align 4
%184 = add nsw i32 %183, 1
store i32 %184, ptr %5, align 4
%185 = load i32, ptr %8, align 4
%186 = add nsw i32 %185, 1
store i32 %186, ptr %8, align 4
%187 = load i32, ptr %6, align 4
%188 = sext i32 %187 to i64
%189 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %188
%190 = load i8, ptr %189, align 1
%191 = load i32, ptr %5, align 4
%192 = sext i32 %191 to i64
%193 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 %192
store i8 %190, ptr %193, align 1
%194 = load i32, ptr %6, align 4
%195 = add nsw i32 %194, -1
store i32 %195, ptr %6, align 4
br label %156, !llvm.loop !8
196: ; preds = %180
%197 = load i32, ptr %6, align 4
%198 = add nsw i32 %197, 1
store i32 %198, ptr %6, align 4
%199 = load ptr, ptr %2, align 8
%200 = load i32, ptr %7, align 4
%201 = sext i32 %200 to i64
%202 = getelementptr inbounds i8, ptr %199, i64 %201
%203 = load i8, ptr %202, align 1
%204 = load i32, ptr %6, align 4
%205 = sext i32 %204 to i64
%206 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %205
store i8 %203, ptr %206, align 1
%207 = load i32, ptr %7, align 4
%208 = add nsw i32 %207, 1
store i32 %208, ptr %7, align 4
br label %209
209: ; preds = %196, %148, %134
br label %210
210: ; preds = %209, %121
br label %224
211: ; preds = %103
%212 = load i32, ptr %6, align 4
%213 = add nsw i32 %212, 1
store i32 %213, ptr %6, align 4
%214 = load ptr, ptr %2, align 8
%215 = load i32, ptr %7, align 4
%216 = sext i32 %215 to i64
%217 = getelementptr inbounds i8, ptr %214, i64 %216
%218 = load i8, ptr %217, align 1
%219 = load i32, ptr %6, align 4
%220 = sext i32 %219 to i64
%221 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %220
store i8 %218, ptr %221, align 1
%222 = load i32, ptr %7, align 4
%223 = add nsw i32 %222, 1
store i32 %223, ptr %7, align 4
br label %224
224: ; preds = %211, %210
br label %225
225: ; preds = %224, %90
br label %226
226: ; preds = %225, %78
br label %227
227: ; preds = %226, %26
%228 = load ptr, ptr %2, align 8
%229 = load i32, ptr %7, align 4
%230 = sext i32 %229 to i64
%231 = getelementptr inbounds i8, ptr %228, i64 %230
%232 = load i8, ptr %231, align 1
%233 = sext i8 %232 to i32
%234 = icmp ne i32 %233, 0
br i1 %234, label %18, label %._crit_edge, !llvm.loop !9
._crit_edge: ; preds = %227
br label %235
235: ; preds = %._crit_edge, %1
%236 = load i32, ptr %6, align 4
%237 = icmp sge i32 %236, 0
br i1 %237, label %.lr.ph2, label %252
.lr.ph2: ; preds = %235
br label %238
238: ; preds = %.lr.ph2, %238
%239 = load i32, ptr %5, align 4
%240 = add nsw i32 %239, 1
store i32 %240, ptr %5, align 4
%241 = load i32, ptr %6, align 4
%242 = sext i32 %241 to i64
%243 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %242
%244 = load i8, ptr %243, align 1
%245 = load i32, ptr %5, align 4
%246 = sext i32 %245 to i64
%247 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 %246
store i8 %244, ptr %247, align 1
%248 = load i32, ptr %6, align 4
%249 = add nsw i32 %248, -1
store i32 %249, ptr %6, align 4
%250 = load i32, ptr %6, align 4
%251 = icmp sge i32 %250, 0
br i1 %251, label %238, label %._crit_edge3, !llvm.loop !10
._crit_edge3: ; preds = %238
br label %252
252: ; preds = %._crit_edge3, %235
%253 = load i32, ptr %5, align 4
%254 = add nsw i32 %253, 1
store i32 %254, ptr %5, align 4
%255 = load i32, ptr %5, align 4
%256 = sext i32 %255 to i64
%257 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 %256
store i8 0, ptr %257, align 1
%258 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 0
%259 = call i32 @printf(ptr noundef @.str.1, ptr noundef %258)
%260 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 0
%261 = call i32 @values(ptr noundef %260)
%262 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 0
%263 = call i32 @printf(ptr noundef @.str.2, ptr noundef %262)
%264 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 0
%265 = call i32 @evapo(ptr noundef %264)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare signext i8 @prec(i8 noundef signext) #1
declare i32 @values(ptr noundef) #1
declare i32 @evapo(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpfyv6lk5e.c'
source_filename = "/tmp/tmpfyv6lk5e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print(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 = load ptr, ptr %3, align 8
%7 = icmp ne ptr %6, null
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 noundef %8)
%10 = load i32, ptr %4, align 4
%11 = icmp sgt i32 %10, 0
%12 = zext i1 %11 to i32
%13 = call i32 @assert(i32 noundef %12)
store i32 0, ptr %5, align 4
br label %14
14: ; preds = %25, %2
%15 = load i32, ptr %5, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %28
18: ; preds = %14
%19 = load ptr, ptr %3, align 8
%20 = load i32, ptr %5, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, ptr %19, i64 %21
%23 = load i32, ptr %22, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %23)
br label %25
25: ; preds = %18
%26 = load i32, ptr %5, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %5, align 4
br label %14, !llvm.loop !6
28: ; preds = %14
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @assert(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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpfyv6lk5e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print(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 = load ptr, ptr %3, align 8
%7 = icmp ne ptr %6, null
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 noundef %8)
%10 = load i32, ptr %4, align 4
%11 = icmp sgt i32 %10, 0
%12 = zext i1 %11 to i32
%13 = call i32 @assert(i32 noundef %12)
store i32 0, ptr %5, align 4
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %.lr.ph, label %30
.lr.ph: ; preds = %2
br label %17
17: ; preds = %.lr.ph, %24
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %5, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i32, ptr %18, i64 %20
%22 = load i32, ptr %21, align 4
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %22)
br label %24
24: ; preds = %17
%25 = load i32, ptr %5, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %5, align 4
%27 = load i32, ptr %5, align 4
%28 = load i32, ptr %4, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %30
30: ; preds = %._crit_edge, %2
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @assert(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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpe1h6_ikd.c'
source_filename = "/tmp/tmpe1h6_ikd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @primeFactorization()
ret i32 0
}
declare i32 @primeFactorization(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe1h6_ikd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @primeFactorization()
ret i32 0
}
declare i32 @primeFactorization(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpu24o3bqr.c'
source_filename = "/tmp/tmpu24o3bqr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wordCap(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 = call signext i8 @toupper(i8 noundef signext %5)
%7 = load ptr, ptr %2, align 8
store i8 %6, ptr %7, align 1
ret void
}
declare signext i8 @toupper(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu24o3bqr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wordCap(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 = call signext i8 @toupper(i8 noundef signext %5)
%7 = load ptr, ptr %2, align 8
store i8 %6, ptr %7, align 1
ret void
}
declare signext i8 @toupper(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpty410a6v.c'
source_filename = "/tmp/tmpty410a6v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @compileCondition() #0 {
%1 = call i32 (...) @compileExpression()
%2 = call i32 (...) @compileCondition2()
ret void
}
declare i32 @compileExpression(...) #1
declare i32 @compileCondition2(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpty410a6v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @compileCondition() #0 {
%1 = call i32 (...) @compileExpression()
%2 = call i32 (...) @compileCondition2()
ret void
}
declare i32 @compileExpression(...) #1
declare i32 @compileCondition2(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7kjefb6n.c'
source_filename = "/tmp/tmp7kjefb6n.c"
target datalayout = "e-m:e-p270: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.my_array = private unnamed_addr constant [11 x i32] [i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10], align 16
@.str = private unnamed_addr constant [33 x i8] c"Enter a number between 0 and 10\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"You are awesome!\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 [11 x i32], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%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
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.my_array, i64 44, i1 false)
store i32 10, ptr %7, align 4
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%12 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %8)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%14 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %9)
%15 = load i32, ptr %9, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [11 x i32], ptr %6, i64 0, i64 %16
%18 = load i32, ptr %17, align 4
store i32 %18, ptr %10, align 4
%19 = load i32, ptr %10, align 4
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %19)
%21 = load i32, ptr %8, align 4
%22 = load i32, ptr %7, align 4
%23 = icmp eq i32 %21, %22
br i1 %23, label %24, label %26
24: ; preds = %2
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %26
26: ; preds = %24, %2
%27 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %27
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
declare i32 @scanf(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7kjefb6n.c"
target datalayout = "e-m:e-p270: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.my_array = private unnamed_addr constant [11 x i32] [i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10], align 16
@.str = private unnamed_addr constant [33 x i8] c"Enter a number between 0 and 10\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"You are awesome!\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 [11 x i32], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%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
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.my_array, i64 44, i1 false)
store i32 10, ptr %7, align 4
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%12 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %8)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%14 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %9)
%15 = load i32, ptr %9, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [11 x i32], ptr %6, i64 0, i64 %16
%18 = load i32, ptr %17, align 4
store i32 %18, ptr %10, align 4
%19 = load i32, ptr %10, align 4
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %19)
%21 = load i32, ptr %8, align 4
%22 = load i32, ptr %7, align 4
%23 = icmp eq i32 %21, %22
br i1 %23, label %24, label %26
24: ; preds = %2
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %26
26: ; preds = %24, %2
%27 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %27
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
declare i32 @scanf(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpi7_s_4h0.c'
source_filename = "/tmp/tmpi7_s_4h0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mesh_2d_aft_check_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10) #0 {
%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 ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca ptr, align 8
%22 = alloca ptr, align 8
store ptr %0, ptr %12, align 8
store ptr %1, ptr %13, align 8
store ptr %2, ptr %14, align 8
store ptr %3, ptr %15, align 8
store ptr %4, ptr %16, align 8
store ptr %5, ptr %17, align 8
store ptr %6, ptr %18, align 8
store ptr %7, ptr %19, align 8
store ptr %8, ptr %20, align 8
store ptr %9, ptr %21, align 8
store ptr %10, ptr %22, align 8
%23 = load ptr, ptr %12, align 8
%24 = load ptr, ptr %13, align 8
%25 = load ptr, ptr %14, align 8
%26 = load ptr, ptr %15, align 8
%27 = load ptr, ptr %16, align 8
%28 = load ptr, ptr %17, align 8
%29 = load ptr, ptr %18, align 8
%30 = load ptr, ptr %19, align 8
%31 = load ptr, ptr %20, align 8
%32 = load i32, ptr %31, align 4
%33 = load ptr, ptr %21, align 8
%34 = load i32, ptr %33, align 4
%35 = load ptr, ptr %22, align 8
%36 = load i32, ptr %35, align 4
%37 = call i32 @mesh_2d_aft_opts(ptr noundef %23, ptr noundef %24, ptr noundef %25, ptr noundef %26, ptr noundef %27, ptr noundef %28, ptr noundef %29, ptr noundef %30, i32 noundef %32, i32 noundef %34, i32 noundef %36, i32 noundef 0, i32 noundef -1, i32 noundef 0, i32 noundef 1, i32 noundef 1)
ret i32 %37
}
declare i32 @mesh_2d_aft_opts(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi7_s_4h0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mesh_2d_aft_check_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10) #0 {
%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 ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca ptr, align 8
%22 = alloca ptr, align 8
store ptr %0, ptr %12, align 8
store ptr %1, ptr %13, align 8
store ptr %2, ptr %14, align 8
store ptr %3, ptr %15, align 8
store ptr %4, ptr %16, align 8
store ptr %5, ptr %17, align 8
store ptr %6, ptr %18, align 8
store ptr %7, ptr %19, align 8
store ptr %8, ptr %20, align 8
store ptr %9, ptr %21, align 8
store ptr %10, ptr %22, align 8
%23 = load ptr, ptr %12, align 8
%24 = load ptr, ptr %13, align 8
%25 = load ptr, ptr %14, align 8
%26 = load ptr, ptr %15, align 8
%27 = load ptr, ptr %16, align 8
%28 = load ptr, ptr %17, align 8
%29 = load ptr, ptr %18, align 8
%30 = load ptr, ptr %19, align 8
%31 = load ptr, ptr %20, align 8
%32 = load i32, ptr %31, align 4
%33 = load ptr, ptr %21, align 8
%34 = load i32, ptr %33, align 4
%35 = load ptr, ptr %22, align 8
%36 = load i32, ptr %35, align 4
%37 = call i32 @mesh_2d_aft_opts(ptr noundef %23, ptr noundef %24, ptr noundef %25, ptr noundef %26, ptr noundef %27, ptr noundef %28, ptr noundef %29, ptr noundef %30, i32 noundef %32, i32 noundef %34, i32 noundef %36, i32 noundef 0, i32 noundef -1, i32 noundef 0, i32 noundef 1, i32 noundef 1)
ret i32 %37
}
declare i32 @mesh_2d_aft_opts(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpc6x6vzf7.c'
source_filename = "/tmp/tmpc6x6vzf7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"Shoe size (men's) foot length\0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"%10.1f %15.2f inches\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
store i32 0, ptr %1, align 4
store double 9.000000e+00, ptr %2, align 8
%4 = load double, ptr %2, align 8
%5 = call double @llvm.fmuladd.f64(double 3.250000e-01, double %4, double 0x401E8F5C28F5C28F)
store double %5, ptr %3, align 8
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = load double, ptr %2, align 8
%8 = load double, ptr %3, align 8
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %7, double noundef %8)
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare i32 @printf(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 nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc6x6vzf7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"Shoe size (men's) foot length\0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"%10.1f %15.2f inches\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
store i32 0, ptr %1, align 4
store double 9.000000e+00, ptr %2, align 8
%4 = load double, ptr %2, align 8
%5 = call double @llvm.fmuladd.f64(double 3.250000e-01, double %4, double 0x401E8F5C28F5C28F)
store double %5, ptr %3, align 8
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = load double, ptr %2, align 8
%8 = load double, ptr %3, align 8
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %7, double noundef %8)
ret i32 0
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare i32 @printf(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 nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpq9yv0aa7.c'
source_filename = "/tmp/tmpq9yv0aa7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"HOME\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c".hh_favorites\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"/\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @favorites_get_filename() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = call ptr @getenv(ptr noundef @.str)
store ptr %3, ptr %1, align 8
%4 = load ptr, ptr %1, align 8
%5 = call i64 @strlen(ptr noundef %4)
%6 = add nsw i64 %5, 1
%7 = call i64 @strlen(ptr noundef @.str.1)
%8 = add nsw i64 %6, %7
%9 = add nsw i64 %8, 1
%10 = call i64 @malloc(i64 noundef %9)
%11 = inttoptr i64 %10 to ptr
store ptr %11, ptr %2, align 8
%12 = load ptr, ptr %2, align 8
%13 = load ptr, ptr %1, align 8
%14 = call i32 @strcpy(ptr noundef %12, ptr noundef %13)
%15 = load ptr, ptr %2, align 8
%16 = call i32 @strcat(ptr noundef %15, ptr noundef @.str.2)
%17 = load ptr, ptr %2, align 8
%18 = call i32 @strcat(ptr noundef %17, ptr noundef @.str.1)
%19 = load ptr, ptr %2, align 8
ret ptr %19
}
declare ptr @getenv(ptr noundef) #1
declare i64 @malloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(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/tmpq9yv0aa7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"HOME\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c".hh_favorites\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"/\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @favorites_get_filename() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = call ptr @getenv(ptr noundef @.str)
store ptr %3, ptr %1, align 8
%4 = load ptr, ptr %1, align 8
%5 = call i64 @strlen(ptr noundef %4)
%6 = add nsw i64 %5, 1
%7 = call i64 @strlen(ptr noundef @.str.1)
%8 = add nsw i64 %6, %7
%9 = add nsw i64 %8, 1
%10 = call i64 @malloc(i64 noundef %9)
%11 = inttoptr i64 %10 to ptr
store ptr %11, ptr %2, align 8
%12 = load ptr, ptr %2, align 8
%13 = load ptr, ptr %1, align 8
%14 = call i32 @strcpy(ptr noundef %12, ptr noundef %13)
%15 = load ptr, ptr %2, align 8
%16 = call i32 @strcat(ptr noundef %15, ptr noundef @.str.2)
%17 = load ptr, ptr %2, align 8
%18 = call i32 @strcat(ptr noundef %17, ptr noundef @.str.1)
%19 = load ptr, ptr %2, align 8
ret ptr %19
}
declare ptr @getenv(ptr noundef) #1
declare i64 @malloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.