llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmpq6m6bj4c.c'
source_filename = "/tmp/tmpq6m6bj4c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%ld\0A\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%lld\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%c\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%f\0A\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"%lf\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 i64, align 8
%4 = alloca i64, align 8
%5 = alloca i8, align 1
%6 = alloca float, align 4
%7 = alloca double, align 8
store i32 0, ptr %1, align 4
store i32 3, ptr %2, align 4
store i64 450, ptr %3, align 8
store i64 12345678912345, ptr %4, align 8
store i8 97, ptr %5, align 1
store float 0x406D51EB80000000, ptr %6, align 4
store double 0x40C81CD6E87D2C7C, ptr %7, align 8
%8 = load i32, ptr %2, align 4
%9 = sitofp i32 %8 to double
%10 = call i32 @printf(ptr noundef @.str, double noundef %9)
%11 = load i64, ptr %3, align 8
%12 = sitofp i64 %11 to double
%13 = call i32 @printf(ptr noundef @.str.1, double noundef %12)
%14 = load i64, ptr %4, align 8
%15 = sitofp i64 %14 to double
%16 = call i32 @printf(ptr noundef @.str.2, double noundef %15)
%17 = load i8, ptr %5, align 1
%18 = sitofp i8 %17 to double
%19 = call i32 @printf(ptr noundef @.str.3, double noundef %18)
%20 = load float, ptr %6, align 4
%21 = fpext float %20 to double
%22 = call i32 @printf(ptr noundef @.str.4, double noundef %21)
%23 = load double, ptr %7, align 8
%24 = call i32 @printf(ptr noundef @.str.5, double noundef %23)
ret i32 0
}
declare i32 @printf(ptr noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq6m6bj4c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%ld\0A\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%lld\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%c\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%f\0A\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"%lf\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 i64, align 8
%4 = alloca i64, align 8
%5 = alloca i8, align 1
%6 = alloca float, align 4
%7 = alloca double, align 8
store i32 0, ptr %1, align 4
store i32 3, ptr %2, align 4
store i64 450, ptr %3, align 8
store i64 12345678912345, ptr %4, align 8
store i8 97, ptr %5, align 1
store float 0x406D51EB80000000, ptr %6, align 4
store double 0x40C81CD6E87D2C7C, ptr %7, align 8
%8 = load i32, ptr %2, align 4
%9 = sitofp i32 %8 to double
%10 = call i32 @printf(ptr noundef @.str, double noundef %9)
%11 = load i64, ptr %3, align 8
%12 = sitofp i64 %11 to double
%13 = call i32 @printf(ptr noundef @.str.1, double noundef %12)
%14 = load i64, ptr %4, align 8
%15 = sitofp i64 %14 to double
%16 = call i32 @printf(ptr noundef @.str.2, double noundef %15)
%17 = load i8, ptr %5, align 1
%18 = sitofp i8 %17 to double
%19 = call i32 @printf(ptr noundef @.str.3, double noundef %18)
%20 = load float, ptr %6, align 4
%21 = fpext float %20 to double
%22 = call i32 @printf(ptr noundef @.str.4, double noundef %21)
%23 = load double, ptr %7, align 8
%24 = call i32 @printf(ptr noundef @.str.5, double noundef %23)
ret i32 0
}
declare i32 @printf(ptr noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpn0a_1p2a.c'
source_filename = "/tmp/tmpn0a_1p2a.c"
target datalayout = "e-m:e-p270: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/tmpn0a_1p2a.c"
target datalayout = "e-m:e-p270: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/tmp6x0mfta9.c'
source_filename = "/tmp/tmp6x0mfta9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%u\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"/sys/class/gpio/unexport\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @gpio_unexport(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [4 x i8], align 1
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%6 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 0
%7 = load i32, ptr %3, align 4
%8 = call i32 @snprintf(ptr noundef %6, i32 noundef 4, ptr noundef @.str, i32 noundef %7)
%9 = load i32, ptr @O_WRONLY, align 4
%10 = call i32 @open(ptr noundef @.str.1, i32 noundef %9)
store i32 %10, ptr %5, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %14
13: ; preds = %1
store i32 -1, ptr %2, align 4
br label %25
14: ; preds = %1
%15 = load i32, ptr %5, align 4
%16 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 0
%17 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 0
%18 = call i32 @strlen(ptr noundef %17)
%19 = call i32 @write(i32 noundef %15, ptr noundef %16, i32 noundef %18)
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %22
21: ; preds = %14
store i32 -1, ptr %2, align 4
br label %25
22: ; preds = %14
%23 = load i32, ptr %5, align 4
%24 = call i32 @close(i32 noundef %23)
store i32 0, ptr %2, align 4
br label %25
25: ; preds = %22, %21, %13
%26 = load i32, ptr %2, align 4
ret i32 %26
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr 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/tmp6x0mfta9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%u\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"/sys/class/gpio/unexport\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @gpio_unexport(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [4 x i8], align 1
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%6 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 0
%7 = load i32, ptr %3, align 4
%8 = call i32 @snprintf(ptr noundef %6, i32 noundef 4, ptr noundef @.str, i32 noundef %7)
%9 = load i32, ptr @O_WRONLY, align 4
%10 = call i32 @open(ptr noundef @.str.1, i32 noundef %9)
store i32 %10, ptr %5, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %14
13: ; preds = %1
store i32 -1, ptr %2, align 4
br label %25
14: ; preds = %1
%15 = load i32, ptr %5, align 4
%16 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 0
%17 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 0
%18 = call i32 @strlen(ptr noundef %17)
%19 = call i32 @write(i32 noundef %15, ptr noundef %16, i32 noundef %18)
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %22
21: ; preds = %14
store i32 -1, ptr %2, align 4
br label %25
22: ; preds = %14
%23 = load i32, ptr %5, align 4
%24 = call i32 @close(i32 noundef %23)
store i32 0, ptr %2, align 4
br label %25
25: ; preds = %22, %21, %13
%26 = load i32, ptr %2, align 4
ret i32 %26
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr 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/tmpm_an28rh.c'
source_filename = "/tmp/tmpm_an28rh.c"
target datalayout = "e-m:e-p270: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/tmpm_an28rh.c"
target datalayout = "e-m:e-p270: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/tmpsf2nu6ub.c'
source_filename = "/tmp/tmpsf2nu6ub.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @utf32_isalpha(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i64 @isascii(i32 noundef %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load i32, ptr %2, align 4
%8 = call i64 @isalpha(i32 noundef %7)
%9 = icmp ne i64 %8, 0
br label %10
10: ; preds = %6, %1
%11 = phi i1 [ false, %1 ], [ %9, %6 ]
%12 = zext i1 %11 to i32
ret i32 %12
}
declare i64 @isascii(i32 noundef) #1
declare i64 @isalpha(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/tmpsf2nu6ub.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @utf32_isalpha(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i64 @isascii(i32 noundef %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load i32, ptr %2, align 4
%8 = call i64 @isalpha(i32 noundef %7)
%9 = icmp ne i64 %8, 0
br label %10
10: ; preds = %6, %1
%11 = phi i1 [ false, %1 ], [ %9, %6 ]
%12 = zext i1 %11 to i32
ret i32 %12
}
declare i64 @isascii(i32 noundef) #1
declare i64 @isalpha(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/tmpuag3_eah.c'
source_filename = "/tmp/tmpuag3_eah.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c" \00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"0123456789abcdef\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @hexa_trad(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%4 = call i32 @ft_putstr(ptr noundef @.str)
br label %5
5: ; preds = %44, %1
%6 = load ptr, ptr %2, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %8, label %16
8: ; preds = %5
%9 = load ptr, ptr %2, align 8
%10 = load i32, ptr %3, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, ptr %9, i64 %11
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 0
br label %16
16: ; preds = %8, %5
%17 = phi i1 [ false, %5 ], [ %15, %8 ]
br i1 %17, label %18, label %54
18: ; preds = %16
%19 = load i32, ptr %3, align 4
%20 = icmp eq i32 %19, 8
br i1 %20, label %24, label %21
21: ; preds = %18
%22 = load i32, ptr %3, align 4
%23 = icmp eq i32 %22, 16
br i1 %23, label %24, label %26
24: ; preds = %21, %18
%25 = call i32 @ft_putchar(i8 noundef signext 32)
br label %26
26: ; preds = %24, %21
%27 = load ptr, ptr %2, align 8
%28 = load i32, ptr %3, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = icmp sge i32 %32, 0
br i1 %33, label %34, label %44
34: ; preds = %26
%35 = load ptr, ptr %2, align 8
%36 = load i32, ptr %3, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %35, i64 %37
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp sle i32 %40, 15
br i1 %41, label %42, label %44
42: ; preds = %34
%43 = call i32 @ft_putchar(i8 noundef signext 48)
br label %44
44: ; preds = %42, %34, %26
%45 = load ptr, ptr %2, align 8
%46 = load i32, ptr %3, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8, ptr %45, i64 %47
%49 = load i8, ptr %48, align 1
%50 = call i32 @ft_putnbr_base(i8 noundef signext %49, ptr noundef @.str.1)
%51 = call i32 @ft_putchar(i8 noundef signext 32)
%52 = load i32, ptr %3, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %3, align 4
br label %5, !llvm.loop !6
54: ; preds = %16
%55 = load ptr, ptr %2, align 8
%56 = call i32 @ft_strlen(ptr noundef %55)
%57 = icmp slt i32 %56, 16
br i1 %57, label %58, label %82
58: ; preds = %54
%59 = load i32, ptr %3, align 4
%60 = icmp sle i32 %59, 8
br i1 %60, label %61, label %66
61: ; preds = %58
%62 = load ptr, ptr %2, align 8
%63 = call i32 @ft_strlen(ptr noundef %62)
%64 = mul nsw i32 %63, 3
%65 = sub nsw i32 %64, 1
store i32 %65, ptr %3, align 4
br label %74
66: ; preds = %58
%67 = load i32, ptr %3, align 4
%68 = icmp sgt i32 %67, 8
br i1 %68, label %69, label %73
69: ; preds = %66
%70 = load ptr, ptr %2, align 8
%71 = call i32 @ft_strlen(ptr noundef %70)
%72 = mul nsw i32 %71, 3
store i32 %72, ptr %3, align 4
br label %73
73: ; preds = %69, %66
br label %74
74: ; preds = %73, %61
br label %75
75: ; preds = %79, %74
%76 = load i32, ptr %3, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %3, align 4
%78 = icmp ne i32 %77, 49
br i1 %78, label %79, label %81
79: ; preds = %75
%80 = call i32 @ft_putchar(i8 noundef signext 32)
br label %75, !llvm.loop !8
81: ; preds = %75
br label %82
82: ; preds = %81, %54
ret void
}
declare i32 @ft_putstr(ptr noundef) #1
declare i32 @ft_putchar(i8 noundef signext) #1
declare i32 @ft_putnbr_base(i8 noundef signext, ptr noundef) #1
declare i32 @ft_strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuag3_eah.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c" \00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"0123456789abcdef\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @hexa_trad(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%4 = call i32 @ft_putstr(ptr noundef @.str)
br label %5
5: ; preds = %44, %1
%6 = load ptr, ptr %2, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %8, label %16
8: ; preds = %5
%9 = load ptr, ptr %2, align 8
%10 = load i32, ptr %3, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, ptr %9, i64 %11
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 0
br label %16
16: ; preds = %8, %5
%17 = phi i1 [ false, %5 ], [ %15, %8 ]
br i1 %17, label %18, label %54
18: ; preds = %16
%19 = load i32, ptr %3, align 4
%20 = icmp eq i32 %19, 8
br i1 %20, label %24, label %21
21: ; preds = %18
%22 = load i32, ptr %3, align 4
%23 = icmp eq i32 %22, 16
br i1 %23, label %24, label %26
24: ; preds = %21, %18
%25 = call i32 @ft_putchar(i8 noundef signext 32)
br label %26
26: ; preds = %24, %21
%27 = load ptr, ptr %2, align 8
%28 = load i32, ptr %3, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = icmp sge i32 %32, 0
br i1 %33, label %34, label %44
34: ; preds = %26
%35 = load ptr, ptr %2, align 8
%36 = load i32, ptr %3, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %35, i64 %37
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp sle i32 %40, 15
br i1 %41, label %42, label %44
42: ; preds = %34
%43 = call i32 @ft_putchar(i8 noundef signext 48)
br label %44
44: ; preds = %42, %34, %26
%45 = load ptr, ptr %2, align 8
%46 = load i32, ptr %3, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8, ptr %45, i64 %47
%49 = load i8, ptr %48, align 1
%50 = call i32 @ft_putnbr_base(i8 noundef signext %49, ptr noundef @.str.1)
%51 = call i32 @ft_putchar(i8 noundef signext 32)
%52 = load i32, ptr %3, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %3, align 4
br label %5, !llvm.loop !6
54: ; preds = %16
%55 = load ptr, ptr %2, align 8
%56 = call i32 @ft_strlen(ptr noundef %55)
%57 = icmp slt i32 %56, 16
br i1 %57, label %58, label %84
58: ; preds = %54
%59 = load i32, ptr %3, align 4
%60 = icmp sle i32 %59, 8
br i1 %60, label %61, label %66
61: ; preds = %58
%62 = load ptr, ptr %2, align 8
%63 = call i32 @ft_strlen(ptr noundef %62)
%64 = mul nsw i32 %63, 3
%65 = sub nsw i32 %64, 1
store i32 %65, ptr %3, align 4
br label %74
66: ; preds = %58
%67 = load i32, ptr %3, align 4
%68 = icmp sgt i32 %67, 8
br i1 %68, label %69, label %73
69: ; preds = %66
%70 = load ptr, ptr %2, align 8
%71 = call i32 @ft_strlen(ptr noundef %70)
%72 = mul nsw i32 %71, 3
store i32 %72, ptr %3, align 4
br label %73
73: ; preds = %69, %66
br label %74
74: ; preds = %73, %61
%75 = load i32, ptr %3, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %3, align 4
%77 = icmp ne i32 %76, 49
br i1 %77, label %.lr.ph, label %83
.lr.ph: ; preds = %74
br label %78
78: ; preds = %.lr.ph, %78
%79 = call i32 @ft_putchar(i8 noundef signext 32)
%80 = load i32, ptr %3, align 4
%81 = add nsw i32 %80, 1
store i32 %81, ptr %3, align 4
%82 = icmp ne i32 %81, 49
br i1 %82, label %78, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %78
br label %83
83: ; preds = %._crit_edge, %74
br label %84
84: ; preds = %83, %54
ret void
}
declare i32 @ft_putstr(ptr noundef) #1
declare i32 @ft_putchar(i8 noundef signext) #1
declare i32 @ft_putnbr_base(i8 noundef signext, ptr noundef) #1
declare i32 @ft_strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpvf6m6wdr.c'
source_filename = "/tmp/tmpvf6m6wdr.c"
target datalayout = "e-m:e-p270: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/tmpvf6m6wdr.c"
target datalayout = "e-m:e-p270: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/tmph46ofbu_.c'
source_filename = "/tmp/tmph46ofbu_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @f(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = fmul double 4.000000e+00, %3
%5 = load double, ptr %2, align 8
%6 = fptosi double %5 to i32
%7 = call i32 @cos(i32 noundef %6)
%8 = sitofp i32 %7 to double
%9 = fneg double %4
%10 = call double @llvm.fmuladd.f64(double %9, double %8, double 1.000000e+00)
%11 = load double, ptr %2, align 8
%12 = fmul double 2.000000e+00, %11
%13 = load double, ptr %2, align 8
%14 = call double @llvm.fmuladd.f64(double %12, double %13, double %10)
%15 = load double, ptr %2, align 8
%16 = fmul double 2.000000e+00, %15
%17 = fptosi double %16 to i32
%18 = call i32 @cos(i32 noundef %17)
%19 = sitofp i32 %18 to double
%20 = fadd double %14, %19
ret double %20
}
declare i32 @cos(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmph46ofbu_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @f(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = fmul double 4.000000e+00, %3
%5 = load double, ptr %2, align 8
%6 = fptosi double %5 to i32
%7 = call i32 @cos(i32 noundef %6)
%8 = sitofp i32 %7 to double
%9 = fneg double %4
%10 = call double @llvm.fmuladd.f64(double %9, double %8, double 1.000000e+00)
%11 = load double, ptr %2, align 8
%12 = fmul double 2.000000e+00, %11
%13 = load double, ptr %2, align 8
%14 = call double @llvm.fmuladd.f64(double %12, double %13, double %10)
%15 = load double, ptr %2, align 8
%16 = fmul double 2.000000e+00, %15
%17 = fptosi double %16 to i32
%18 = call i32 @cos(i32 noundef %17)
%19 = sitofp i32 %18 to double
%20 = fadd double %14, %19
ret double %20
}
declare i32 @cos(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpz4jlftm8.c'
source_filename = "/tmp/tmpz4jlftm8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @sqrt(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call double @__ocml_sqrt_f64(double noundef %3)
ret double %4
}
declare double @__ocml_sqrt_f64(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz4jlftm8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @sqrt(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call double @__ocml_sqrt_f64(double noundef %3)
ret double %4
}
declare double @__ocml_sqrt_f64(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgoybk0fn.c'
source_filename = "/tmp/tmpgoybk0fn.c"
target datalayout = "e-m:e-p270: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/tmpgoybk0fn.c"
target datalayout = "e-m:e-p270: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/tmpl4lb1zca.c'
source_filename = "/tmp/tmpl4lb1zca.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { double, double }
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [105 x i8] c"Usage: %s <bytes2send/file2send> <ip> <port> <[optional] bandwidth (bps)> <[optional] sendsize (bytes)>\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"/data/local/tmp/bigfile\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [43 x i8] c"! Unable to open /data/local/tmp/bigfile.\0A\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"! Unable to open file %s.\0A\00", align 1
@.str.4 = private unnamed_addr constant [15 x i8] c"bytes2send:%d\0A\00", align 1
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [33 x i8] c"! Unable to connect the server.\0A\00", align 1
@.str.6 = private unnamed_addr constant [50 x i8] c"! Fail to send: ret:%d, err:%d; wait for 100us..\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [52 x i8] c"sent(bytes):%d\0Aduration(s):%lf\0Athroughput(bps):%lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca double, align 8
%12 = alloca %struct.timeval, align 8
%13 = alloca %struct.timeval, align 8
%14 = alloca %struct.timeval, align 8
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca %struct.sockaddr_in, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca %struct.stat, 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 10000, ptr %6, align 4
store i32 1000000000, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 1, ptr %9, align 4
store i32 0, ptr %10, align 4
store i32 1460, ptr %19, align 4
store i32 0, ptr %20, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp slt i32 %22, 4
br i1 %23, label %24, label %30
24: ; preds = %2
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 0
%27 = load ptr, ptr %26, align 8
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %27)
%29 = call i32 @exit(i32 noundef 0) #4
unreachable
30: ; preds = %2
%31 = load i32, ptr %4, align 4
%32 = icmp sgt i32 %31, 4
br i1 %32, label %33, label %42
33: ; preds = %30
%34 = load ptr, ptr %5, align 8
%35 = getelementptr inbounds ptr, ptr %34, i64 4
%36 = load ptr, ptr %35, align 8
%37 = call i32 @atoi(ptr noundef %36)
%38 = sdiv i32 %37, 8
%39 = load i32, ptr %6, align 4
%40 = sdiv i32 1000000, %39
%41 = sdiv i32 %38, %40
store i32 %41, ptr %7, align 4
br label %42
42: ; preds = %33, %30
%43 = load i32, ptr %4, align 4
%44 = icmp sgt i32 %43, 5
br i1 %44, label %45, label %50
45: ; preds = %42
%46 = load ptr, ptr %5, align 8
%47 = getelementptr inbounds ptr, ptr %46, i64 5
%48 = load ptr, ptr %47, align 8
%49 = call i32 @atoi(ptr noundef %48)
store i32 %49, ptr %19, align 4
br label %50
50: ; preds = %45, %42
%51 = load i32, ptr %7, align 4
%52 = load i32, ptr %19, align 4
%53 = srem i32 %51, %52
%54 = icmp sgt i32 %53, 0
br i1 %54, label %55, label %77
55: ; preds = %50
%56 = load i32, ptr %7, align 4
%57 = load i32, ptr %19, align 4
%58 = sdiv i32 %56, %57
%59 = add nsw i32 %58, 1
%60 = sitofp i32 %59 to double
%61 = load i32, ptr %19, align 4
%62 = sitofp i32 %61 to double
%63 = fmul double %60, %62
%64 = load i32, ptr %7, align 4
%65 = sitofp i32 %64 to double
%66 = fdiv double %63, %65
%67 = load i32, ptr %6, align 4
%68 = sitofp i32 %67 to double
%69 = fmul double %66, %68
%70 = fptosi double %69 to i32
store i32 %70, ptr %6, align 4
%71 = load i32, ptr %7, align 4
%72 = load i32, ptr %19, align 4
%73 = sdiv i32 %71, %72
%74 = add nsw i32 %73, 1
%75 = load i32, ptr %19, align 4
%76 = mul nsw i32 %74, %75
store i32 %76, ptr %7, align 4
br label %77
77: ; preds = %55, %50
%78 = load ptr, ptr %5, align 8
%79 = getelementptr inbounds ptr, ptr %78, i64 1
%80 = load ptr, ptr %79, align 8
%81 = call i64 @isNumber(ptr noundef %80)
%82 = icmp ne i64 %81, 0
br i1 %82, label %83, label %97
83: ; preds = %77
%84 = load ptr, ptr %5, align 8
%85 = getelementptr inbounds ptr, ptr %84, i64 1
%86 = load ptr, ptr %85, align 8
%87 = call i32 @atoi(ptr noundef %86)
store i32 %87, ptr %20, align 4
%88 = load i32, ptr @O_RDONLY, align 4
%89 = call i32 @open(ptr noundef @.str.1, i32 noundef %88)
store i32 %89, ptr %15, align 4
%90 = load i32, ptr %15, align 4
%91 = icmp eq i32 %90, -1
br i1 %91, label %92, label %96
92: ; preds = %83
%93 = load i32, ptr @stderr, align 4
%94 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %93, ptr noundef @.str.2)
%95 = call i32 @exit(i32 noundef 1) #4
unreachable
96: ; preds = %83
br label %119
97: ; preds = %77
%98 = load ptr, ptr %5, align 8
%99 = getelementptr inbounds ptr, ptr %98, i64 1
%100 = load ptr, ptr %99, align 8
%101 = load i32, ptr @O_RDONLY, align 4
%102 = call i32 @open(ptr noundef %100, i32 noundef %101)
store i32 %102, ptr %15, align 4
%103 = load i32, ptr %15, align 4
%104 = icmp eq i32 %103, -1
br i1 %104, label %105, label %112
105: ; preds = %97
%106 = load i32, ptr @stderr, align 4
%107 = load ptr, ptr %5, align 8
%108 = getelementptr inbounds ptr, ptr %107, i64 1
%109 = load ptr, ptr %108, align 8
%110 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %106, ptr noundef @.str.3, ptr noundef %109)
%111 = call i32 @exit(i32 noundef 1) #4
unreachable
112: ; preds = %97
%113 = load i32, ptr %15, align 4
%114 = call i32 @fstat(i32 noundef %113, ptr noundef %21)
%115 = getelementptr inbounds %struct.stat, ptr %21, i32 0, i32 0
%116 = load i32, ptr %115, align 4
store i32 %116, ptr %20, align 4
%117 = load i32, ptr %20, align 4
%118 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %117)
br label %119
119: ; preds = %112, %96
%120 = load i32, ptr @AF_INET, align 4
%121 = load i32, ptr @SOCK_STREAM, align 4
%122 = call i32 @socket(i32 noundef %120, i32 noundef %121, i32 noundef 0)
store i32 %122, ptr %16, align 4
%123 = call i32 @bzero(ptr noundef %17, i32 noundef 12)
%124 = load i32, ptr @AF_INET, align 4
%125 = getelementptr inbounds %struct.sockaddr_in, ptr %17, i32 0, i32 2
store i32 %124, ptr %125, align 4
%126 = load ptr, ptr %5, align 8
%127 = getelementptr inbounds ptr, ptr %126, i64 2
%128 = load ptr, ptr %127, align 8
%129 = call i32 @inet_addr(ptr noundef %128)
%130 = getelementptr inbounds %struct.sockaddr_in, ptr %17, i32 0, i32 1
%131 = getelementptr inbounds %struct.TYPE_2__, ptr %130, i32 0, i32 0
store i32 %129, ptr %131, align 4
%132 = load ptr, ptr %5, align 8
%133 = getelementptr inbounds ptr, ptr %132, i64 3
%134 = load ptr, ptr %133, align 8
%135 = call i32 @atoi(ptr noundef %134)
%136 = call i32 @htons(i32 noundef %135)
%137 = getelementptr inbounds %struct.sockaddr_in, ptr %17, i32 0, i32 0
store i32 %136, ptr %137, align 4
%138 = load i32, ptr %16, align 4
%139 = call i64 @connect(i32 noundef %138, ptr noundef %17, i32 noundef 12)
%140 = icmp slt i64 %139, 0
br i1 %140, label %141, label %145
141: ; preds = %119
%142 = load i32, ptr @stderr, align 4
%143 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %142, ptr noundef @.str.5)
%144 = call i32 @exit(i32 noundef 1) #4
unreachable
145: ; preds = %119
%146 = call i32 @gettimeofday(ptr noundef %12, ptr noundef null)
br label %147
147: ; preds = %213, %145
%148 = load i32, ptr %10, align 4
%149 = load i32, ptr %20, align 4
%150 = icmp slt i32 %148, %149
br i1 %150, label %151, label %216
151: ; preds = %147
%152 = load i32, ptr %20, align 4
%153 = load i32, ptr %10, align 4
%154 = sub nsw i32 %152, %153
%155 = load i32, ptr %7, align 4
%156 = icmp slt i32 %154, %155
br i1 %156, label %157, label %161
157: ; preds = %151
%158 = load i32, ptr %20, align 4
%159 = load i32, ptr %10, align 4
%160 = sub nsw i32 %158, %159
store i32 %160, ptr %7, align 4
br label %161
161: ; preds = %157, %151
br label %162
162: ; preds = %181, %175, %161
%163 = load i32, ptr %8, align 4
%164 = load i32, ptr %7, align 4
%165 = icmp slt i32 %163, %164
br i1 %165, label %166, label %185
166: ; preds = %162
%167 = load i32, ptr %16, align 4
%168 = load i32, ptr %15, align 4
%169 = load i32, ptr %7, align 4
%170 = load i32, ptr %8, align 4
%171 = sub nsw i32 %169, %170
%172 = call i32 @sendfile(i32 noundef %167, i32 noundef %168, ptr noundef %10, i32 noundef %171)
store i32 %172, ptr %18, align 4
%173 = load i32, ptr %18, align 4
%174 = icmp sle i32 %173, 0
br i1 %174, label %175, label %181
175: ; preds = %166
%176 = load i32, ptr @stderr, align 4
%177 = load i32, ptr %18, align 4
%178 = load i32, ptr @errno, align 4
%179 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %176, ptr noundef @.str.6, i32 noundef %177, i32 noundef %178)
%180 = call i32 @usleep(i32 noundef 100)
br label %162, !llvm.loop !6
181: ; preds = %166
%182 = load i32, ptr %18, align 4
%183 = load i32, ptr %8, align 4
%184 = add nsw i32 %183, %182
store i32 %184, ptr %8, align 4
br label %162, !llvm.loop !6
185: ; preds = %162
%186 = call i32 @gettimeofday(ptr noundef %14, ptr noundef null)
%187 = getelementptr inbounds %struct.timeval, ptr %14, i32 0, i32 0
%188 = load double, ptr %187, align 8
%189 = getelementptr inbounds %struct.timeval, ptr %12, i32 0, i32 0
%190 = load double, ptr %189, align 8
%191 = fsub double %188, %190
%192 = getelementptr inbounds %struct.timeval, ptr %14, i32 0, i32 1
%193 = load double, ptr %192, align 8
%194 = getelementptr inbounds %struct.timeval, ptr %12, i32 0, i32 1
%195 = load double, ptr %194, align 8
%196 = fsub double %193, %195
%197 = call double @llvm.fmuladd.f64(double %191, double 1.000000e+06, double %196)
store double %197, ptr %11, align 8
%198 = load double, ptr %11, align 8
%199 = load i32, ptr %6, align 4
%200 = load i32, ptr %9, align 4
%201 = mul nsw i32 %199, %200
%202 = sitofp i32 %201 to double
%203 = fcmp olt double %198, %202
br i1 %203, label %204, label %213
204: ; preds = %185
%205 = load i32, ptr %6, align 4
%206 = load i32, ptr %9, align 4
%207 = mul nsw i32 %205, %206
%208 = sitofp i32 %207 to double
%209 = load double, ptr %11, align 8
%210 = fsub double %208, %209
%211 = fptosi double %210 to i32
%212 = call i32 @usleep(i32 noundef %211)
br label %213
213: ; preds = %204, %185
store i32 0, ptr %8, align 4
%214 = load i32, ptr %9, align 4
%215 = add nsw i32 %214, 1
store i32 %215, ptr %9, align 4
br label %147, !llvm.loop !8
216: ; preds = %147
%217 = call i32 @gettimeofday(ptr noundef %13, ptr noundef null)
%218 = getelementptr inbounds %struct.timeval, ptr %13, i32 0, i32 0
%219 = load double, ptr %218, align 8
%220 = getelementptr inbounds %struct.timeval, ptr %12, i32 0, i32 0
%221 = load double, ptr %220, align 8
%222 = fsub double %219, %221
%223 = getelementptr inbounds %struct.timeval, ptr %13, i32 0, i32 1
%224 = load double, ptr %223, align 8
%225 = getelementptr inbounds %struct.timeval, ptr %12, i32 0, i32 1
%226 = load double, ptr %225, align 8
%227 = fsub double %224, %226
%228 = fdiv double %227, 1.000000e+06
%229 = fadd double %222, %228
store double %229, ptr %11, align 8
%230 = load i32, ptr %10, align 4
%231 = load double, ptr %11, align 8
%232 = load i32, ptr %10, align 4
%233 = mul nsw i32 %232, 8
%234 = sitofp i32 %233 to double
%235 = load double, ptr %11, align 8
%236 = fdiv double %234, %235
%237 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %230, double noundef %231, double noundef %236)
%238 = load i32, ptr %16, align 4
%239 = call i32 @close(i32 noundef %238)
%240 = load i32, ptr %15, align 4
%241 = call i32 @close(i32 noundef %240)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @atoi(ptr noundef) #1
declare i64 @isNumber(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @fstat(i32 noundef, ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @inet_addr(ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @gettimeofday(ptr noundef, ptr noundef) #1
declare i32 @sendfile(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @usleep(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl4lb1zca.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { double, double }
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [105 x i8] c"Usage: %s <bytes2send/file2send> <ip> <port> <[optional] bandwidth (bps)> <[optional] sendsize (bytes)>\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"/data/local/tmp/bigfile\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [43 x i8] c"! Unable to open /data/local/tmp/bigfile.\0A\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"! Unable to open file %s.\0A\00", align 1
@.str.4 = private unnamed_addr constant [15 x i8] c"bytes2send:%d\0A\00", align 1
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [33 x i8] c"! Unable to connect the server.\0A\00", align 1
@.str.6 = private unnamed_addr constant [50 x i8] c"! Fail to send: ret:%d, err:%d; wait for 100us..\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [52 x i8] c"sent(bytes):%d\0Aduration(s):%lf\0Athroughput(bps):%lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca double, align 8
%12 = alloca %struct.timeval, align 8
%13 = alloca %struct.timeval, align 8
%14 = alloca %struct.timeval, align 8
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca %struct.sockaddr_in, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca %struct.stat, 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 10000, ptr %6, align 4
store i32 1000000000, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 1, ptr %9, align 4
store i32 0, ptr %10, align 4
store i32 1460, ptr %19, align 4
store i32 0, ptr %20, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp slt i32 %22, 4
br i1 %23, label %24, label %30
24: ; preds = %2
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 0
%27 = load ptr, ptr %26, align 8
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %27)
%29 = call i32 @exit(i32 noundef 0) #4
unreachable
30: ; preds = %2
%31 = load i32, ptr %4, align 4
%32 = icmp sgt i32 %31, 4
br i1 %32, label %33, label %42
33: ; preds = %30
%34 = load ptr, ptr %5, align 8
%35 = getelementptr inbounds ptr, ptr %34, i64 4
%36 = load ptr, ptr %35, align 8
%37 = call i32 @atoi(ptr noundef %36)
%38 = sdiv i32 %37, 8
%39 = load i32, ptr %6, align 4
%40 = sdiv i32 1000000, %39
%41 = sdiv i32 %38, %40
store i32 %41, ptr %7, align 4
br label %42
42: ; preds = %33, %30
%43 = load i32, ptr %4, align 4
%44 = icmp sgt i32 %43, 5
br i1 %44, label %45, label %50
45: ; preds = %42
%46 = load ptr, ptr %5, align 8
%47 = getelementptr inbounds ptr, ptr %46, i64 5
%48 = load ptr, ptr %47, align 8
%49 = call i32 @atoi(ptr noundef %48)
store i32 %49, ptr %19, align 4
br label %50
50: ; preds = %45, %42
%51 = load i32, ptr %7, align 4
%52 = load i32, ptr %19, align 4
%53 = srem i32 %51, %52
%54 = icmp sgt i32 %53, 0
br i1 %54, label %55, label %77
55: ; preds = %50
%56 = load i32, ptr %7, align 4
%57 = load i32, ptr %19, align 4
%58 = sdiv i32 %56, %57
%59 = add nsw i32 %58, 1
%60 = sitofp i32 %59 to double
%61 = load i32, ptr %19, align 4
%62 = sitofp i32 %61 to double
%63 = fmul double %60, %62
%64 = load i32, ptr %7, align 4
%65 = sitofp i32 %64 to double
%66 = fdiv double %63, %65
%67 = load i32, ptr %6, align 4
%68 = sitofp i32 %67 to double
%69 = fmul double %66, %68
%70 = fptosi double %69 to i32
store i32 %70, ptr %6, align 4
%71 = load i32, ptr %7, align 4
%72 = load i32, ptr %19, align 4
%73 = sdiv i32 %71, %72
%74 = add nsw i32 %73, 1
%75 = load i32, ptr %19, align 4
%76 = mul nsw i32 %74, %75
store i32 %76, ptr %7, align 4
br label %77
77: ; preds = %55, %50
%78 = load ptr, ptr %5, align 8
%79 = getelementptr inbounds ptr, ptr %78, i64 1
%80 = load ptr, ptr %79, align 8
%81 = call i64 @isNumber(ptr noundef %80)
%82 = icmp ne i64 %81, 0
br i1 %82, label %83, label %97
83: ; preds = %77
%84 = load ptr, ptr %5, align 8
%85 = getelementptr inbounds ptr, ptr %84, i64 1
%86 = load ptr, ptr %85, align 8
%87 = call i32 @atoi(ptr noundef %86)
store i32 %87, ptr %20, align 4
%88 = load i32, ptr @O_RDONLY, align 4
%89 = call i32 @open(ptr noundef @.str.1, i32 noundef %88)
store i32 %89, ptr %15, align 4
%90 = load i32, ptr %15, align 4
%91 = icmp eq i32 %90, -1
br i1 %91, label %92, label %96
92: ; preds = %83
%93 = load i32, ptr @stderr, align 4
%94 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %93, ptr noundef @.str.2)
%95 = call i32 @exit(i32 noundef 1) #4
unreachable
96: ; preds = %83
br label %119
97: ; preds = %77
%98 = load ptr, ptr %5, align 8
%99 = getelementptr inbounds ptr, ptr %98, i64 1
%100 = load ptr, ptr %99, align 8
%101 = load i32, ptr @O_RDONLY, align 4
%102 = call i32 @open(ptr noundef %100, i32 noundef %101)
store i32 %102, ptr %15, align 4
%103 = load i32, ptr %15, align 4
%104 = icmp eq i32 %103, -1
br i1 %104, label %105, label %112
105: ; preds = %97
%106 = load i32, ptr @stderr, align 4
%107 = load ptr, ptr %5, align 8
%108 = getelementptr inbounds ptr, ptr %107, i64 1
%109 = load ptr, ptr %108, align 8
%110 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %106, ptr noundef @.str.3, ptr noundef %109)
%111 = call i32 @exit(i32 noundef 1) #4
unreachable
112: ; preds = %97
%113 = load i32, ptr %15, align 4
%114 = call i32 @fstat(i32 noundef %113, ptr noundef %21)
%115 = getelementptr inbounds %struct.stat, ptr %21, i32 0, i32 0
%116 = load i32, ptr %115, align 4
store i32 %116, ptr %20, align 4
%117 = load i32, ptr %20, align 4
%118 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %117)
br label %119
119: ; preds = %112, %96
%120 = load i32, ptr @AF_INET, align 4
%121 = load i32, ptr @SOCK_STREAM, align 4
%122 = call i32 @socket(i32 noundef %120, i32 noundef %121, i32 noundef 0)
store i32 %122, ptr %16, align 4
%123 = call i32 @bzero(ptr noundef %17, i32 noundef 12)
%124 = load i32, ptr @AF_INET, align 4
%125 = getelementptr inbounds %struct.sockaddr_in, ptr %17, i32 0, i32 2
store i32 %124, ptr %125, align 4
%126 = load ptr, ptr %5, align 8
%127 = getelementptr inbounds ptr, ptr %126, i64 2
%128 = load ptr, ptr %127, align 8
%129 = call i32 @inet_addr(ptr noundef %128)
%130 = getelementptr inbounds %struct.sockaddr_in, ptr %17, i32 0, i32 1
%131 = getelementptr inbounds %struct.TYPE_2__, ptr %130, i32 0, i32 0
store i32 %129, ptr %131, align 4
%132 = load ptr, ptr %5, align 8
%133 = getelementptr inbounds ptr, ptr %132, i64 3
%134 = load ptr, ptr %133, align 8
%135 = call i32 @atoi(ptr noundef %134)
%136 = call i32 @htons(i32 noundef %135)
%137 = getelementptr inbounds %struct.sockaddr_in, ptr %17, i32 0, i32 0
store i32 %136, ptr %137, align 4
%138 = load i32, ptr %16, align 4
%139 = call i64 @connect(i32 noundef %138, ptr noundef %17, i32 noundef 12)
%140 = icmp slt i64 %139, 0
br i1 %140, label %141, label %145
141: ; preds = %119
%142 = load i32, ptr @stderr, align 4
%143 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %142, ptr noundef @.str.5)
%144 = call i32 @exit(i32 noundef 1) #4
unreachable
145: ; preds = %119
%146 = call i32 @gettimeofday(ptr noundef %12, ptr noundef null)
%147 = load i32, ptr %10, align 4
%148 = load i32, ptr %20, align 4
%149 = icmp slt i32 %147, %148
br i1 %149, label %.lr.ph2, label %220
.lr.ph2: ; preds = %145
br label %150
150: ; preds = %.lr.ph2, %214
%151 = load i32, ptr %20, align 4
%152 = load i32, ptr %10, align 4
%153 = sub nsw i32 %151, %152
%154 = load i32, ptr %7, align 4
%155 = icmp slt i32 %153, %154
br i1 %155, label %156, label %160
156: ; preds = %150
%157 = load i32, ptr %20, align 4
%158 = load i32, ptr %10, align 4
%159 = sub nsw i32 %157, %158
store i32 %159, ptr %7, align 4
br label %160
160: ; preds = %156, %150
%161 = load i32, ptr %8, align 4
%162 = load i32, ptr %7, align 4
%163 = icmp slt i32 %161, %162
br i1 %163, label %.lr.ph, label %186
.lr.ph: ; preds = %160
br label %164
164: ; preds = %.lr.ph, %.backedge
%165 = load i32, ptr %16, align 4
%166 = load i32, ptr %15, align 4
%167 = load i32, ptr %7, align 4
%168 = load i32, ptr %8, align 4
%169 = sub nsw i32 %167, %168
%170 = call i32 @sendfile(i32 noundef %165, i32 noundef %166, ptr noundef %10, i32 noundef %169)
store i32 %170, ptr %18, align 4
%171 = load i32, ptr %18, align 4
%172 = icmp sle i32 %171, 0
br i1 %172, label %173, label %182
173: ; preds = %164
%174 = load i32, ptr @stderr, align 4
%175 = load i32, ptr %18, align 4
%176 = load i32, ptr @errno, align 4
%177 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %174, ptr noundef @.str.6, i32 noundef %175, i32 noundef %176)
%178 = call i32 @usleep(i32 noundef 100)
br label %.backedge
.backedge: ; preds = %173, %182
%179 = load i32, ptr %8, align 4
%180 = load i32, ptr %7, align 4
%181 = icmp slt i32 %179, %180
br i1 %181, label %164, label %._crit_edge, !llvm.loop !6
182: ; preds = %164
%183 = load i32, ptr %18, align 4
%184 = load i32, ptr %8, align 4
%185 = add nsw i32 %184, %183
store i32 %185, ptr %8, align 4
br label %.backedge
._crit_edge: ; preds = %.backedge
br label %186
186: ; preds = %._crit_edge, %160
%187 = call i32 @gettimeofday(ptr noundef %14, ptr noundef null)
%188 = getelementptr inbounds %struct.timeval, ptr %14, i32 0, i32 0
%189 = load double, ptr %188, align 8
%190 = getelementptr inbounds %struct.timeval, ptr %12, i32 0, i32 0
%191 = load double, ptr %190, align 8
%192 = fsub double %189, %191
%193 = getelementptr inbounds %struct.timeval, ptr %14, i32 0, i32 1
%194 = load double, ptr %193, align 8
%195 = getelementptr inbounds %struct.timeval, ptr %12, i32 0, i32 1
%196 = load double, ptr %195, align 8
%197 = fsub double %194, %196
%198 = call double @llvm.fmuladd.f64(double %192, double 1.000000e+06, double %197)
store double %198, ptr %11, align 8
%199 = load double, ptr %11, align 8
%200 = load i32, ptr %6, align 4
%201 = load i32, ptr %9, align 4
%202 = mul nsw i32 %200, %201
%203 = sitofp i32 %202 to double
%204 = fcmp olt double %199, %203
br i1 %204, label %205, label %214
205: ; preds = %186
%206 = load i32, ptr %6, align 4
%207 = load i32, ptr %9, align 4
%208 = mul nsw i32 %206, %207
%209 = sitofp i32 %208 to double
%210 = load double, ptr %11, align 8
%211 = fsub double %209, %210
%212 = fptosi double %211 to i32
%213 = call i32 @usleep(i32 noundef %212)
br label %214
214: ; preds = %205, %186
store i32 0, ptr %8, align 4
%215 = load i32, ptr %9, align 4
%216 = add nsw i32 %215, 1
store i32 %216, ptr %9, align 4
%217 = load i32, ptr %10, align 4
%218 = load i32, ptr %20, align 4
%219 = icmp slt i32 %217, %218
br i1 %219, label %150, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %214
br label %220
220: ; preds = %._crit_edge3, %145
%221 = call i32 @gettimeofday(ptr noundef %13, ptr noundef null)
%222 = getelementptr inbounds %struct.timeval, ptr %13, i32 0, i32 0
%223 = load double, ptr %222, align 8
%224 = getelementptr inbounds %struct.timeval, ptr %12, i32 0, i32 0
%225 = load double, ptr %224, align 8
%226 = fsub double %223, %225
%227 = getelementptr inbounds %struct.timeval, ptr %13, i32 0, i32 1
%228 = load double, ptr %227, align 8
%229 = getelementptr inbounds %struct.timeval, ptr %12, i32 0, i32 1
%230 = load double, ptr %229, align 8
%231 = fsub double %228, %230
%232 = fdiv double %231, 1.000000e+06
%233 = fadd double %226, %232
store double %233, ptr %11, align 8
%234 = load i32, ptr %10, align 4
%235 = load double, ptr %11, align 8
%236 = load i32, ptr %10, align 4
%237 = mul nsw i32 %236, 8
%238 = sitofp i32 %237 to double
%239 = load double, ptr %11, align 8
%240 = fdiv double %238, %239
%241 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %234, double noundef %235, double noundef %240)
%242 = load i32, ptr %16, align 4
%243 = call i32 @close(i32 noundef %242)
%244 = load i32, ptr %15, align 4
%245 = call i32 @close(i32 noundef %244)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @atoi(ptr noundef) #1
declare i64 @isNumber(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @fstat(i32 noundef, ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @inet_addr(ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @gettimeofday(ptr noundef, ptr noundef) #1
declare i32 @sendfile(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @usleep(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpzbh4ny2c.c'
source_filename = "/tmp/tmpzbh4ny2c.c"
target datalayout = "e-m:e-p270: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/tmpzbh4ny2c.c"
target datalayout = "e-m:e-p270: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/tmp74an1iaq.c'
source_filename = "/tmp/tmp74an1iaq.c"
target datalayout = "e-m:e-p270: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/tmp74an1iaq.c"
target datalayout = "e-m:e-p270: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/tmpeuu1nxfo.c'
source_filename = "/tmp/tmpeuu1nxfo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @create_cmdline_parser_ext(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%10 = load i32, ptr %5, align 4
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %8, align 8
%14 = call i32 @create_cmdline_parser_internal(i32 noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, i32 noundef 0)
store i32 %14, ptr %9, align 4
%15 = load i32, ptr %9, align 4
ret i32 %15
}
declare i32 @create_cmdline_parser_internal(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeuu1nxfo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @create_cmdline_parser_ext(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%10 = load i32, ptr %5, align 4
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %8, align 8
%14 = call i32 @create_cmdline_parser_internal(i32 noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, i32 noundef 0)
store i32 %14, ptr %9, align 4
%15 = load i32, ptr %9, align 4
ret i32 %15
}
declare i32 @create_cmdline_parser_internal(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpihjog6y9.c'
source_filename = "/tmp/tmpihjog6y9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"X = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%5 = load i32, ptr %2, align 4
%6 = load i32, ptr %3, align 4
%7 = add nsw i32 %5, %6
%8 = call i32 @printf(ptr noundef @.str.1, i32 noundef %7)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpihjog6y9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"X = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%5 = load i32, ptr %2, align 4
%6 = load i32, ptr %3, align 4
%7 = add nsw i32 %5, %6
%8 = call i32 @printf(ptr noundef @.str.1, i32 noundef %7)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmrl9hhk9.c'
source_filename = "/tmp/tmpmrl9hhk9.c"
target datalayout = "e-m:e-p270: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/tmpmrl9hhk9.c"
target datalayout = "e-m:e-p270: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/tmp55c_s9dm.c'
source_filename = "/tmp/tmp55c_s9dm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @kd_insert3f(ptr noundef %0, float noundef %1, float noundef %2, float noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca ptr, align 8
%11 = alloca [3 x double], align 16
store ptr %0, ptr %6, align 8
store float %1, ptr %7, align 4
store float %2, ptr %8, align 4
store float %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
%12 = load float, ptr %7, align 4
%13 = fpext float %12 to double
%14 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 0
store double %13, ptr %14, align 16
%15 = load float, ptr %8, align 4
%16 = fpext float %15 to double
%17 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 1
store double %16, ptr %17, align 8
%18 = load float, ptr %9, align 4
%19 = fpext float %18 to double
%20 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 2
store double %19, ptr %20, align 16
%21 = load ptr, ptr %6, align 8
%22 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 0
%23 = load ptr, ptr %10, align 8
%24 = call i32 @kd_insert(ptr noundef %21, ptr noundef %22, ptr noundef %23)
ret i32 %24
}
declare i32 @kd_insert(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/tmp55c_s9dm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @kd_insert3f(ptr noundef %0, float noundef %1, float noundef %2, float noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca ptr, align 8
%11 = alloca [3 x double], align 16
store ptr %0, ptr %6, align 8
store float %1, ptr %7, align 4
store float %2, ptr %8, align 4
store float %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
%12 = load float, ptr %7, align 4
%13 = fpext float %12 to double
%14 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 0
store double %13, ptr %14, align 16
%15 = load float, ptr %8, align 4
%16 = fpext float %15 to double
%17 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 1
store double %16, ptr %17, align 8
%18 = load float, ptr %9, align 4
%19 = fpext float %18 to double
%20 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 2
store double %19, ptr %20, align 16
%21 = load ptr, ptr %6, align 8
%22 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 0
%23 = load ptr, ptr %10, align 8
%24 = call i32 @kd_insert(ptr noundef %21, ptr noundef %22, ptr noundef %23)
ret i32 %24
}
declare i32 @kd_insert(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/tmpgic_zfiv.c'
source_filename = "/tmp/tmpgic_zfiv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @err_sys(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgic_zfiv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @err_sys(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpq6ly777k.c'
source_filename = "/tmp/tmpq6ly777k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ResetISR() #0 {
%1 = load volatile i32, ptr inttoptr (i64 3758157192 to ptr), align 4
%2 = and i32 %1, -15728641
%3 = or i32 %2, 3145728
%4 = or i32 %3, 12582912
store volatile i32 %4, ptr inttoptr (i64 3758157192 to ptr), align 4
%5 = call i32 (...) @__iar_program_start()
ret void
}
declare i32 @__iar_program_start(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq6ly777k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ResetISR() #0 {
%1 = load volatile i32, ptr inttoptr (i64 3758157192 to ptr), align 4
%2 = and i32 %1, -15728641
%3 = or i32 %2, 3145728
%4 = or i32 %3, 12582912
store volatile i32 %4, ptr inttoptr (i64 3758157192 to ptr), align 4
%5 = call i32 (...) @__iar_program_start()
ret void
}
declare i32 @__iar_program_start(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpj5wfbv0s.c'
source_filename = "/tmp/tmpj5wfbv0s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"Enter two integral numbers: \00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"%d / % d is %d\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c" with a remainder of: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3)
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = sdiv i32 %7, %8
store i32 %9, ptr %4, align 4
%10 = load i32, ptr %2, align 4
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %4, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %10, i32 noundef %11, i32 noundef %12)
%14 = load i32, ptr %2, align 4
%15 = load i32, ptr %3, align 4
%16 = srem i32 %14, %15
store i32 %16, ptr %4, align 4
%17 = load i32, ptr %4, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %17)
ret i32 0
}
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/tmpj5wfbv0s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"Enter two integral numbers: \00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"%d / % d is %d\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c" with a remainder of: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3)
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = sdiv i32 %7, %8
store i32 %9, ptr %4, align 4
%10 = load i32, ptr %2, align 4
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %4, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %10, i32 noundef %11, i32 noundef %12)
%14 = load i32, ptr %2, align 4
%15 = load i32, ptr %3, align 4
%16 = srem i32 %14, %15
store i32 %16, ptr %4, align 4
%17 = load i32, ptr %4, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %17)
ret i32 0
}
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/tmpala36zp5.c'
source_filename = "/tmp/tmpala36zp5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@dmax = external global i32, align 4
@nc = external global i32, align 4
@ncl = external global i32, align 4
@dvec = external global ptr, align 8
@dstart = external global ptr, align 8
@x = external global ptr, align 8
@y = external global ptr, align 8
@.str = private unnamed_addr constant [28 x i8] c"pa[%d]=%6.3f, pb[%d]=%6.3f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @nllkar1(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [20 x [20 x double]], align 16
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca ptr, align 8
%16 = alloca double, align 8
%17 = alloca ptr, align 8
%18 = alloca double, align 8
%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
%26 = alloca i32, align 4
%27 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%28 = load i32, ptr @dmax, align 4
%29 = add nsw i32 %28, 1
%30 = sext i32 %29 to i64
%31 = mul i64 %30, 8
%32 = trunc i64 %31 to i32
%33 = call i64 @malloc(i32 noundef %32)
%34 = inttoptr i64 %33 to ptr
store ptr %34, ptr %8, align 8
%35 = load i32, ptr @dmax, align 4
%36 = add nsw i32 %35, 1
%37 = sext i32 %36 to i64
%38 = mul i64 %37, 8
%39 = trunc i64 %38 to i32
%40 = call i64 @malloc(i32 noundef %39)
%41 = inttoptr i64 %40 to ptr
store ptr %41, ptr %9, align 8
%42 = load i32, ptr @nc, align 4
%43 = add nsw i32 %42, 1
%44 = sext i32 %43 to i64
%45 = mul i64 %44, 8
%46 = trunc i64 %45 to i32
%47 = call i64 @malloc(i32 noundef %46)
%48 = inttoptr i64 %47 to ptr
store ptr %48, ptr %15, align 8
%49 = load i32, ptr @dmax, align 4
%50 = add nsw i32 %49, 1
%51 = sext i32 %50 to i64
%52 = mul i64 %51, 8
%53 = trunc i64 %52 to i32
%54 = call i64 @malloc(i32 noundef %53)
%55 = inttoptr i64 %54 to ptr
store ptr %55, ptr %17, align 8
store double 0.000000e+00, ptr %11, align 8
store double 0x3EB0C6F7A0B5ED8D, ptr %12, align 8
%56 = load ptr, ptr %5, align 8
%57 = getelementptr inbounds double, ptr %56, i64 1
%58 = load double, ptr %57, align 8
store double %58, ptr %14, align 8
store i32 1, ptr %20, align 4
br label %59
59: ; preds = %74, %3
%60 = load i32, ptr %20, align 4
%61 = load i32, ptr @nc, align 4
%62 = icmp sle i32 %60, %61
br i1 %62, label %63, label %77
63: ; preds = %59
%64 = load ptr, ptr %5, align 8
%65 = load i32, ptr %20, align 4
%66 = add nsw i32 %65, 1
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds double, ptr %64, i64 %67
%69 = load double, ptr %68, align 8
%70 = load ptr, ptr %15, align 8
%71 = load i32, ptr %20, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds double, ptr %70, i64 %72
store double %69, ptr %73, align 8
br label %74
74: ; preds = %63
%75 = load i32, ptr %20, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %20, align 4
br label %59, !llvm.loop !6
77: ; preds = %59
%78 = load ptr, ptr %5, align 8
%79 = load i32, ptr %4, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds double, ptr %78, i64 %80
%82 = load double, ptr %81, align 8
store double %82, ptr %16, align 8
store i32 1, ptr %22, align 4
%83 = load ptr, ptr %17, align 8
%84 = getelementptr inbounds double, ptr %83, i64 0
store double 1.000000e+00, ptr %84, align 8
br label %85
85: ; preds = %102, %77
%86 = load i32, ptr %22, align 4
%87 = load i32, ptr @dmax, align 4
%88 = icmp slt i32 %86, %87
br i1 %88, label %89, label %105
89: ; preds = %85
%90 = load ptr, ptr %17, align 8
%91 = load i32, ptr %22, align 4
%92 = sub nsw i32 %91, 1
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds double, ptr %90, i64 %93
%95 = load double, ptr %94, align 8
%96 = load double, ptr %16, align 8
%97 = fmul double %95, %96
%98 = load ptr, ptr %17, align 8
%99 = load i32, ptr %22, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds double, ptr %98, i64 %100
store double %97, ptr %101, align 8
br label %102
102: ; preds = %89
%103 = load i32, ptr %22, align 4
%104 = add nsw i32 %103, 1
store i32 %104, ptr %22, align 4
br label %85, !llvm.loop !8
105: ; preds = %85
store i32 1, ptr %20, align 4
br label %106
106: ; preds = %133, %105
%107 = load i32, ptr %20, align 4
%108 = load i32, ptr @dmax, align 4
%109 = icmp sle i32 %107, %108
br i1 %109, label %110, label %136
110: ; preds = %106
store i32 1, ptr %21, align 4
br label %111
111: ; preds = %129, %110
%112 = load i32, ptr %21, align 4
%113 = load i32, ptr @dmax, align 4
%114 = icmp sle i32 %112, %113
br i1 %114, label %115, label %132
115: ; preds = %111
%116 = load ptr, ptr %17, align 8
%117 = load i32, ptr %21, align 4
%118 = load i32, ptr %20, align 4
%119 = sub nsw i32 %117, %118
%120 = call i64 @abs(i32 noundef %119)
%121 = getelementptr inbounds double, ptr %116, i64 %120
%122 = load double, ptr %121, align 8
%123 = load i32, ptr %20, align 4
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds [20 x [20 x double]], ptr %7, i64 0, i64 %124
%126 = load i32, ptr %21, align 4
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds [20 x double], ptr %125, i64 0, i64 %127
store double %122, ptr %128, align 8
br label %129
129: ; preds = %115
%130 = load i32, ptr %21, align 4
%131 = add nsw i32 %130, 1
store i32 %131, ptr %21, align 4
br label %111, !llvm.loop !9
132: ; preds = %111
br label %133
133: ; preds = %132
%134 = load i32, ptr %20, align 4
%135 = add nsw i32 %134, 1
store i32 %135, ptr %20, align 4
br label %106, !llvm.loop !10
136: ; preds = %106
store i32 1, ptr %19, align 4
br label %137
137: ; preds = %294, %136
%138 = load i32, ptr %19, align 4
%139 = load i32, ptr @ncl, align 4
%140 = icmp sle i32 %138, %139
br i1 %140, label %141, label %297
141: ; preds = %137
%142 = load ptr, ptr @dvec, align 8
%143 = load i32, ptr %19, align 4
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds i32, ptr %142, i64 %144
%146 = load i32, ptr %145, align 4
store i32 %146, ptr %26, align 4
%147 = load ptr, ptr @dstart, align 8
%148 = load i32, ptr %19, align 4
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds i32, ptr %147, i64 %149
%151 = load i32, ptr %150, align 4
store i32 %151, ptr %27, align 4
%152 = load i32, ptr %26, align 4
%153 = icmp sle i32 %152, 7
br i1 %153, label %154, label %155
154: ; preds = %141
store i32 0, ptr %24, align 4
br label %156
155: ; preds = %141
store i32 2000, ptr %24, align 4
br label %156
156: ; preds = %155, %154
store i32 1, ptr %20, align 4
br label %157
157: ; preds = %221, %156
%158 = load i32, ptr %20, align 4
%159 = load i32, ptr %26, align 4
%160 = icmp sle i32 %158, %159
br i1 %160, label %161, label %224
161: ; preds = %157
store i32 1, ptr %23, align 4
%162 = load double, ptr %14, align 8
store double %162, ptr %18, align 8
br label %163
163: ; preds = %187, %161
%164 = load i32, ptr %23, align 4
%165 = load i32, ptr @nc, align 4
%166 = icmp sle i32 %164, %165
br i1 %166, label %167, label %190
167: ; preds = %163
%168 = load ptr, ptr %15, align 8
%169 = load i32, ptr %23, align 4
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds double, ptr %168, i64 %170
%172 = load double, ptr %171, align 8
%173 = load ptr, ptr @x, align 8
%174 = load i32, ptr %27, align 4
%175 = load i32, ptr %20, align 4
%176 = sub nsw i32 %175, 1
%177 = add nsw i32 %174, %176
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds ptr, ptr %173, i64 %178
%180 = load ptr, ptr %179, align 8
%181 = load i32, ptr %23, align 4
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds double, ptr %180, i64 %182
%184 = load double, ptr %183, align 8
%185 = load double, ptr %18, align 8
%186 = call double @llvm.fmuladd.f64(double %172, double %184, double %185)
store double %186, ptr %18, align 8
br label %187
187: ; preds = %167
%188 = load i32, ptr %23, align 4
%189 = add nsw i32 %188, 1
store i32 %189, ptr %23, align 4
br label %163, !llvm.loop !11
190: ; preds = %163
%191 = load ptr, ptr @y, align 8
%192 = load i32, ptr %27, align 4
%193 = load i32, ptr %20, align 4
%194 = add nsw i32 %192, %193
%195 = sub nsw i32 %194, 1
%196 = sext i32 %195 to i64
%197 = getelementptr inbounds i32, ptr %191, i64 %196
%198 = load i32, ptr %197, align 4
%199 = icmp eq i32 %198, 1
br i1 %199, label %200, label %210
200: ; preds = %190
%201 = load ptr, ptr %8, align 8
%202 = load i32, ptr %20, align 4
%203 = sext i32 %202 to i64
%204 = getelementptr inbounds double, ptr %201, i64 %203
store double -6.000000e+00, ptr %204, align 8
%205 = load double, ptr %18, align 8
%206 = load ptr, ptr %9, align 8
%207 = load i32, ptr %20, align 4
%208 = sext i32 %207 to i64
%209 = getelementptr inbounds double, ptr %206, i64 %208
store double %205, ptr %209, align 8
br label %220
210: ; preds = %190
%211 = load double, ptr %18, align 8
%212 = load ptr, ptr %8, align 8
%213 = load i32, ptr %20, align 4
%214 = sext i32 %213 to i64
%215 = getelementptr inbounds double, ptr %212, i64 %214
store double %211, ptr %215, align 8
%216 = load ptr, ptr %9, align 8
%217 = load i32, ptr %20, align 4
%218 = sext i32 %217 to i64
%219 = getelementptr inbounds double, ptr %216, i64 %218
store double 6.000000e+00, ptr %219, align 8
br label %220
220: ; preds = %210, %200
br label %221
221: ; preds = %220
%222 = load i32, ptr %20, align 4
%223 = add nsw i32 %222, 1
store i32 %223, ptr %20, align 4
br label %157, !llvm.loop !12
224: ; preds = %157
%225 = load i32, ptr %26, align 4
%226 = icmp sge i32 %225, 2
br i1 %226, label %227, label %247
227: ; preds = %224
%228 = load i32, ptr %26, align 4
%229 = load ptr, ptr %8, align 8
%230 = load ptr, ptr %9, align 8
%231 = getelementptr inbounds [20 x [20 x double]], ptr %7, i64 0, i64 0
%232 = load i32, ptr %24, align 4
%233 = load double, ptr %12, align 8
call void @mvn1(i32 noundef %228, ptr noundef %229, ptr noundef %230, ptr noundef %231, i32 noundef %232, double noundef %233, ptr noundef %10, ptr noundef %13, ptr noundef %25)
%234 = load i32, ptr %25, align 4
%235 = icmp sgt i32 %234, 0
br i1 %235, label %236, label %246
236: ; preds = %227
%237 = load ptr, ptr %6, align 8
store double 1.000000e+09, ptr %237, align 8
%238 = load ptr, ptr %15, align 8
%239 = call i32 @free(ptr noundef %238)
%240 = load ptr, ptr %8, align 8
%241 = call i32 @free(ptr noundef %240)
%242 = load ptr, ptr %9, align 8
%243 = call i32 @free(ptr noundef %242)
%244 = load ptr, ptr %17, align 8
%245 = call i32 @free(ptr noundef %244)
br label %308
246: ; preds = %227
br label %257
247: ; preds = %224
%248 = load ptr, ptr %9, align 8
%249 = getelementptr inbounds double, ptr %248, i64 1
%250 = load double, ptr %249, align 8
%251 = call double @pnorms(double noundef %250)
%252 = load ptr, ptr %8, align 8
%253 = getelementptr inbounds double, ptr %252, i64 1
%254 = load double, ptr %253, align 8
%255 = call double @pnorms(double noundef %254)
%256 = fsub double %251, %255
store double %256, ptr %10, align 8
br label %257
257: ; preds = %247, %246
%258 = load double, ptr %10, align 8
%259 = fcmp ole double %258, -1.000000e-01
br i1 %259, label %260, label %284
260: ; preds = %257
%261 = load ptr, ptr %6, align 8
store double 1.000000e+09, ptr %261, align 8
store i32 1, ptr %20, align 4
br label %262
262: ; preds = %280, %260
%263 = load i32, ptr %20, align 4
%264 = load i32, ptr %26, align 4
%265 = icmp sle i32 %263, %264
br i1 %265, label %266, label %283
266: ; preds = %262
%267 = load i32, ptr %20, align 4
%268 = load ptr, ptr %8, align 8
%269 = load i32, ptr %20, align 4
%270 = sext i32 %269 to i64
%271 = getelementptr inbounds double, ptr %268, i64 %270
%272 = load double, ptr %271, align 8
%273 = load i32, ptr %20, align 4
%274 = load ptr, ptr %9, align 8
%275 = load i32, ptr %20, align 4
%276 = sext i32 %275 to i64
%277 = getelementptr inbounds double, ptr %274, i64 %276
%278 = load double, ptr %277, align 8
%279 = call i32 @printf(ptr noundef @.str, i32 noundef %267, double noundef %272, i32 noundef %273, double noundef %278)
br label %280
280: ; preds = %266
%281 = load i32, ptr %20, align 4
%282 = add nsw i32 %281, 1
store i32 %282, ptr %20, align 4
br label %262, !llvm.loop !13
283: ; preds = %262
br label %308
284: ; preds = %257
%285 = load double, ptr %10, align 8
%286 = fcmp ole double %285, 0.000000e+00
br i1 %286, label %287, label %288
287: ; preds = %284
store double 1.000000e-15, ptr %10, align 8
br label %288
288: ; preds = %287, %284
%289 = load double, ptr %10, align 8
%290 = call i64 @log(double noundef %289)
%291 = sitofp i64 %290 to double
%292 = load double, ptr %11, align 8
%293 = fsub double %292, %291
store double %293, ptr %11, align 8
br label %294
294: ; preds = %288
%295 = load i32, ptr %19, align 4
%296 = add nsw i32 %295, 1
store i32 %296, ptr %19, align 4
br label %137, !llvm.loop !14
297: ; preds = %137
%298 = load double, ptr %11, align 8
%299 = load ptr, ptr %6, align 8
store double %298, ptr %299, align 8
%300 = load ptr, ptr %15, align 8
%301 = call i32 @free(ptr noundef %300)
%302 = load ptr, ptr %8, align 8
%303 = call i32 @free(ptr noundef %302)
%304 = load ptr, ptr %9, align 8
%305 = call i32 @free(ptr noundef %304)
%306 = load ptr, ptr %17, align 8
%307 = call i32 @free(ptr noundef %306)
br label %308
308: ; preds = %297, %283, %236
ret void
}
declare i64 @malloc(i32 noundef) #1
declare i64 @abs(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare void @mvn1(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, double noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare double @pnorms(double noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, double noundef, i32 noundef, double noundef) #1
declare i64 @log(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" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpala36zp5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@dmax = external global i32, align 4
@nc = external global i32, align 4
@ncl = external global i32, align 4
@dvec = external global ptr, align 8
@dstart = external global ptr, align 8
@x = external global ptr, align 8
@y = external global ptr, align 8
@.str = private unnamed_addr constant [28 x i8] c"pa[%d]=%6.3f, pb[%d]=%6.3f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @nllkar1(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [20 x [20 x double]], align 16
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca ptr, align 8
%16 = alloca double, align 8
%17 = alloca ptr, align 8
%18 = alloca double, align 8
%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
%26 = alloca i32, align 4
%27 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%28 = load i32, ptr @dmax, align 4
%29 = add nsw i32 %28, 1
%30 = sext i32 %29 to i64
%31 = mul i64 %30, 8
%32 = trunc i64 %31 to i32
%33 = call i64 @malloc(i32 noundef %32)
%34 = inttoptr i64 %33 to ptr
store ptr %34, ptr %8, align 8
%35 = load i32, ptr @dmax, align 4
%36 = add nsw i32 %35, 1
%37 = sext i32 %36 to i64
%38 = mul i64 %37, 8
%39 = trunc i64 %38 to i32
%40 = call i64 @malloc(i32 noundef %39)
%41 = inttoptr i64 %40 to ptr
store ptr %41, ptr %9, align 8
%42 = load i32, ptr @nc, align 4
%43 = add nsw i32 %42, 1
%44 = sext i32 %43 to i64
%45 = mul i64 %44, 8
%46 = trunc i64 %45 to i32
%47 = call i64 @malloc(i32 noundef %46)
%48 = inttoptr i64 %47 to ptr
store ptr %48, ptr %15, align 8
%49 = load i32, ptr @dmax, align 4
%50 = add nsw i32 %49, 1
%51 = sext i32 %50 to i64
%52 = mul i64 %51, 8
%53 = trunc i64 %52 to i32
%54 = call i64 @malloc(i32 noundef %53)
%55 = inttoptr i64 %54 to ptr
store ptr %55, ptr %17, align 8
store double 0.000000e+00, ptr %11, align 8
store double 0x3EB0C6F7A0B5ED8D, ptr %12, align 8
%56 = load ptr, ptr %5, align 8
%57 = getelementptr inbounds double, ptr %56, i64 1
%58 = load double, ptr %57, align 8
store double %58, ptr %14, align 8
store i32 1, ptr %20, align 4
%59 = load i32, ptr %20, align 4
%60 = load i32, ptr @nc, align 4
%61 = icmp sle i32 %59, %60
br i1 %61, label %.lr.ph, label %79
.lr.ph: ; preds = %3
br label %62
62: ; preds = %.lr.ph, %73
%63 = load ptr, ptr %5, align 8
%64 = load i32, ptr %20, align 4
%65 = add nsw i32 %64, 1
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds double, ptr %63, i64 %66
%68 = load double, ptr %67, align 8
%69 = load ptr, ptr %15, align 8
%70 = load i32, ptr %20, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds double, ptr %69, i64 %71
store double %68, ptr %72, align 8
br label %73
73: ; preds = %62
%74 = load i32, ptr %20, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %20, align 4
%76 = load i32, ptr %20, align 4
%77 = load i32, ptr @nc, align 4
%78 = icmp sle i32 %76, %77
br i1 %78, label %62, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %73
br label %79
79: ; preds = %._crit_edge, %3
%80 = load ptr, ptr %5, align 8
%81 = load i32, ptr %4, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds double, ptr %80, i64 %82
%84 = load double, ptr %83, align 8
store double %84, ptr %16, align 8
store i32 1, ptr %22, align 4
%85 = load ptr, ptr %17, align 8
%86 = getelementptr inbounds double, ptr %85, i64 0
store double 1.000000e+00, ptr %86, align 8
%87 = load i32, ptr %22, align 4
%88 = load i32, ptr @dmax, align 4
%89 = icmp slt i32 %87, %88
br i1 %89, label %.lr.ph2, label %109
.lr.ph2: ; preds = %79
br label %90
90: ; preds = %.lr.ph2, %103
%91 = load ptr, ptr %17, align 8
%92 = load i32, ptr %22, align 4
%93 = sub nsw i32 %92, 1
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds double, ptr %91, i64 %94
%96 = load double, ptr %95, align 8
%97 = load double, ptr %16, align 8
%98 = fmul double %96, %97
%99 = load ptr, ptr %17, align 8
%100 = load i32, ptr %22, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds double, ptr %99, i64 %101
store double %98, ptr %102, align 8
br label %103
103: ; preds = %90
%104 = load i32, ptr %22, align 4
%105 = add nsw i32 %104, 1
store i32 %105, ptr %22, align 4
%106 = load i32, ptr %22, align 4
%107 = load i32, ptr @dmax, align 4
%108 = icmp slt i32 %106, %107
br i1 %108, label %90, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %103
br label %109
109: ; preds = %._crit_edge3, %79
store i32 1, ptr %20, align 4
%110 = load i32, ptr %20, align 4
%111 = load i32, ptr @dmax, align 4
%112 = icmp sle i32 %110, %111
br i1 %112, label %.lr.ph8, label %144
.lr.ph8: ; preds = %109
br label %113
113: ; preds = %.lr.ph8, %138
store i32 1, ptr %21, align 4
%114 = load i32, ptr %21, align 4
%115 = load i32, ptr @dmax, align 4
%116 = icmp sle i32 %114, %115
br i1 %116, label %.lr.ph5, label %137
.lr.ph5: ; preds = %113
br label %117
117: ; preds = %.lr.ph5, %131
%118 = load ptr, ptr %17, align 8
%119 = load i32, ptr %21, align 4
%120 = load i32, ptr %20, align 4
%121 = sub nsw i32 %119, %120
%122 = call i64 @abs(i32 noundef %121)
%123 = getelementptr inbounds double, ptr %118, i64 %122
%124 = load double, ptr %123, align 8
%125 = load i32, ptr %20, align 4
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds [20 x [20 x double]], ptr %7, i64 0, i64 %126
%128 = load i32, ptr %21, align 4
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds [20 x double], ptr %127, i64 0, i64 %129
store double %124, ptr %130, align 8
br label %131
131: ; preds = %117
%132 = load i32, ptr %21, align 4
%133 = add nsw i32 %132, 1
store i32 %133, ptr %21, align 4
%134 = load i32, ptr %21, align 4
%135 = load i32, ptr @dmax, align 4
%136 = icmp sle i32 %134, %135
br i1 %136, label %117, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %131
br label %137
137: ; preds = %._crit_edge6, %113
br label %138
138: ; preds = %137
%139 = load i32, ptr %20, align 4
%140 = add nsw i32 %139, 1
store i32 %140, ptr %20, align 4
%141 = load i32, ptr %20, align 4
%142 = load i32, ptr @dmax, align 4
%143 = icmp sle i32 %141, %142
br i1 %143, label %113, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %138
br label %144
144: ; preds = %._crit_edge9, %109
store i32 1, ptr %19, align 4
%145 = load i32, ptr %19, align 4
%146 = load i32, ptr @ncl, align 4
%147 = icmp sle i32 %145, %146
br i1 %147, label %.lr.ph17, label %313
.lr.ph17: ; preds = %144
br label %148
148: ; preds = %.lr.ph17, %307
%149 = load ptr, ptr @dvec, align 8
%150 = load i32, ptr %19, align 4
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds i32, ptr %149, i64 %151
%153 = load i32, ptr %152, align 4
store i32 %153, ptr %26, align 4
%154 = load ptr, ptr @dstart, align 8
%155 = load i32, ptr %19, align 4
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds i32, ptr %154, i64 %156
%158 = load i32, ptr %157, align 4
store i32 %158, ptr %27, align 4
%159 = load i32, ptr %26, align 4
%160 = icmp sle i32 %159, 7
br i1 %160, label %161, label %162
161: ; preds = %148
store i32 0, ptr %24, align 4
br label %163
162: ; preds = %148
store i32 2000, ptr %24, align 4
br label %163
163: ; preds = %162, %161
store i32 1, ptr %20, align 4
%164 = load i32, ptr %20, align 4
%165 = load i32, ptr %26, align 4
%166 = icmp sle i32 %164, %165
br i1 %166, label %.lr.ph14, label %235
.lr.ph14: ; preds = %163
br label %167
167: ; preds = %.lr.ph14, %229
store i32 1, ptr %23, align 4
%168 = load double, ptr %14, align 8
store double %168, ptr %18, align 8
%169 = load i32, ptr %23, align 4
%170 = load i32, ptr @nc, align 4
%171 = icmp sle i32 %169, %170
br i1 %171, label %.lr.ph11, label %198
.lr.ph11: ; preds = %167
br label %172
172: ; preds = %.lr.ph11, %192
%173 = load ptr, ptr %15, align 8
%174 = load i32, ptr %23, align 4
%175 = sext i32 %174 to i64
%176 = getelementptr inbounds double, ptr %173, i64 %175
%177 = load double, ptr %176, align 8
%178 = load ptr, ptr @x, align 8
%179 = load i32, ptr %27, align 4
%180 = load i32, ptr %20, align 4
%181 = sub nsw i32 %180, 1
%182 = add nsw i32 %179, %181
%183 = sext i32 %182 to i64
%184 = getelementptr inbounds ptr, ptr %178, i64 %183
%185 = load ptr, ptr %184, align 8
%186 = load i32, ptr %23, align 4
%187 = sext i32 %186 to i64
%188 = getelementptr inbounds double, ptr %185, i64 %187
%189 = load double, ptr %188, align 8
%190 = load double, ptr %18, align 8
%191 = call double @llvm.fmuladd.f64(double %177, double %189, double %190)
store double %191, ptr %18, align 8
br label %192
192: ; preds = %172
%193 = load i32, ptr %23, align 4
%194 = add nsw i32 %193, 1
store i32 %194, ptr %23, align 4
%195 = load i32, ptr %23, align 4
%196 = load i32, ptr @nc, align 4
%197 = icmp sle i32 %195, %196
br i1 %197, label %172, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %192
br label %198
198: ; preds = %._crit_edge12, %167
%199 = load ptr, ptr @y, align 8
%200 = load i32, ptr %27, align 4
%201 = load i32, ptr %20, align 4
%202 = add nsw i32 %200, %201
%203 = sub nsw i32 %202, 1
%204 = sext i32 %203 to i64
%205 = getelementptr inbounds i32, ptr %199, i64 %204
%206 = load i32, ptr %205, align 4
%207 = icmp eq i32 %206, 1
br i1 %207, label %208, label %218
208: ; preds = %198
%209 = load ptr, ptr %8, align 8
%210 = load i32, ptr %20, align 4
%211 = sext i32 %210 to i64
%212 = getelementptr inbounds double, ptr %209, i64 %211
store double -6.000000e+00, ptr %212, align 8
%213 = load double, ptr %18, align 8
%214 = load ptr, ptr %9, align 8
%215 = load i32, ptr %20, align 4
%216 = sext i32 %215 to i64
%217 = getelementptr inbounds double, ptr %214, i64 %216
store double %213, ptr %217, align 8
br label %228
218: ; preds = %198
%219 = load double, ptr %18, align 8
%220 = load ptr, ptr %8, align 8
%221 = load i32, ptr %20, align 4
%222 = sext i32 %221 to i64
%223 = getelementptr inbounds double, ptr %220, i64 %222
store double %219, ptr %223, align 8
%224 = load ptr, ptr %9, align 8
%225 = load i32, ptr %20, align 4
%226 = sext i32 %225 to i64
%227 = getelementptr inbounds double, ptr %224, i64 %226
store double 6.000000e+00, ptr %227, align 8
br label %228
228: ; preds = %218, %208
br label %229
229: ; preds = %228
%230 = load i32, ptr %20, align 4
%231 = add nsw i32 %230, 1
store i32 %231, ptr %20, align 4
%232 = load i32, ptr %20, align 4
%233 = load i32, ptr %26, align 4
%234 = icmp sle i32 %232, %233
br i1 %234, label %167, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %229
br label %235
235: ; preds = %._crit_edge15, %163
%236 = load i32, ptr %26, align 4
%237 = icmp sge i32 %236, 2
br i1 %237, label %238, label %258
238: ; preds = %235
%239 = load i32, ptr %26, align 4
%240 = load ptr, ptr %8, align 8
%241 = load ptr, ptr %9, align 8
%242 = getelementptr inbounds [20 x [20 x double]], ptr %7, i64 0, i64 0
%243 = load i32, ptr %24, align 4
%244 = load double, ptr %12, align 8
call void @mvn1(i32 noundef %239, ptr noundef %240, ptr noundef %241, ptr noundef %242, i32 noundef %243, double noundef %244, ptr noundef %10, ptr noundef %13, ptr noundef %25)
%245 = load i32, ptr %25, align 4
%246 = icmp sgt i32 %245, 0
br i1 %246, label %247, label %257
247: ; preds = %238
%248 = load ptr, ptr %6, align 8
store double 1.000000e+09, ptr %248, align 8
%249 = load ptr, ptr %15, align 8
%250 = call i32 @free(ptr noundef %249)
%251 = load ptr, ptr %8, align 8
%252 = call i32 @free(ptr noundef %251)
%253 = load ptr, ptr %9, align 8
%254 = call i32 @free(ptr noundef %253)
%255 = load ptr, ptr %17, align 8
%256 = call i32 @free(ptr noundef %255)
br label %324
257: ; preds = %238
br label %268
258: ; preds = %235
%259 = load ptr, ptr %9, align 8
%260 = getelementptr inbounds double, ptr %259, i64 1
%261 = load double, ptr %260, align 8
%262 = call double @pnorms(double noundef %261)
%263 = load ptr, ptr %8, align 8
%264 = getelementptr inbounds double, ptr %263, i64 1
%265 = load double, ptr %264, align 8
%266 = call double @pnorms(double noundef %265)
%267 = fsub double %262, %266
store double %267, ptr %10, align 8
br label %268
268: ; preds = %258, %257
%269 = load double, ptr %10, align 8
%270 = fcmp ole double %269, -1.000000e-01
br i1 %270, label %271, label %297
271: ; preds = %268
%272 = load ptr, ptr %6, align 8
store double 1.000000e+09, ptr %272, align 8
store i32 1, ptr %20, align 4
%273 = load i32, ptr %20, align 4
%274 = load i32, ptr %26, align 4
%275 = icmp sle i32 %273, %274
br i1 %275, label %.lr.ph20, label %296
.lr.ph20: ; preds = %271
br label %276
276: ; preds = %.lr.ph20, %290
%277 = load i32, ptr %20, align 4
%278 = load ptr, ptr %8, align 8
%279 = load i32, ptr %20, align 4
%280 = sext i32 %279 to i64
%281 = getelementptr inbounds double, ptr %278, i64 %280
%282 = load double, ptr %281, align 8
%283 = load i32, ptr %20, align 4
%284 = load ptr, ptr %9, align 8
%285 = load i32, ptr %20, align 4
%286 = sext i32 %285 to i64
%287 = getelementptr inbounds double, ptr %284, i64 %286
%288 = load double, ptr %287, align 8
%289 = call i32 @printf(ptr noundef @.str, i32 noundef %277, double noundef %282, i32 noundef %283, double noundef %288)
br label %290
290: ; preds = %276
%291 = load i32, ptr %20, align 4
%292 = add nsw i32 %291, 1
store i32 %292, ptr %20, align 4
%293 = load i32, ptr %20, align 4
%294 = load i32, ptr %26, align 4
%295 = icmp sle i32 %293, %294
br i1 %295, label %276, label %._crit_edge21, !llvm.loop !13
._crit_edge21: ; preds = %290
br label %296
296: ; preds = %._crit_edge21, %271
br label %324
297: ; preds = %268
%298 = load double, ptr %10, align 8
%299 = fcmp ole double %298, 0.000000e+00
br i1 %299, label %300, label %301
300: ; preds = %297
store double 1.000000e-15, ptr %10, align 8
br label %301
301: ; preds = %300, %297
%302 = load double, ptr %10, align 8
%303 = call i64 @log(double noundef %302)
%304 = sitofp i64 %303 to double
%305 = load double, ptr %11, align 8
%306 = fsub double %305, %304
store double %306, ptr %11, align 8
br label %307
307: ; preds = %301
%308 = load i32, ptr %19, align 4
%309 = add nsw i32 %308, 1
store i32 %309, ptr %19, align 4
%310 = load i32, ptr %19, align 4
%311 = load i32, ptr @ncl, align 4
%312 = icmp sle i32 %310, %311
br i1 %312, label %148, label %._crit_edge18, !llvm.loop !14
._crit_edge18: ; preds = %307
br label %313
313: ; preds = %._crit_edge18, %144
%314 = load double, ptr %11, align 8
%315 = load ptr, ptr %6, align 8
store double %314, ptr %315, align 8
%316 = load ptr, ptr %15, align 8
%317 = call i32 @free(ptr noundef %316)
%318 = load ptr, ptr %8, align 8
%319 = call i32 @free(ptr noundef %318)
%320 = load ptr, ptr %9, align 8
%321 = call i32 @free(ptr noundef %320)
%322 = load ptr, ptr %17, align 8
%323 = call i32 @free(ptr noundef %322)
br label %324
324: ; preds = %313, %296, %247
ret void
}
declare i64 @malloc(i32 noundef) #1
declare i64 @abs(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare void @mvn1(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, double noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare double @pnorms(double noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, double noundef, i32 noundef, double noundef) #1
declare i64 @log(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" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
|
; ModuleID = '/tmp/tmp1938w5lh.c'
source_filename = "/tmp/tmp1938w5lh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strcpyn(ptr noundef %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i64 0, ptr %7, align 8
%9 = load ptr, ptr %4, align 8
store ptr %9, ptr %8, align 8
br label %10
10: ; preds = %22, %3
%11 = load i64, ptr %7, align 8
%12 = add i64 %11, 1
store i64 %12, ptr %7, align 8
%13 = load i64, ptr %5, align 8
%14 = icmp ult i64 %12, %13
br i1 %14, label %15, label %20
15: ; preds = %10
%16 = load ptr, ptr %6, align 8
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp ne i32 %18, 0
br label %20
20: ; preds = %15, %10
%21 = phi i1 [ false, %10 ], [ %19, %15 ]
br i1 %21, label %22, label %28
22: ; preds = %20
%23 = load ptr, ptr %6, align 8
%24 = getelementptr inbounds i8, ptr %23, i32 1
store ptr %24, ptr %6, align 8
%25 = load i8, ptr %23, align 1
%26 = load ptr, ptr %8, align 8
%27 = getelementptr inbounds i8, ptr %26, i32 1
store ptr %27, ptr %8, align 8
store i8 %25, ptr %26, align 1
br label %10, !llvm.loop !6
28: ; preds = %20
%29 = load ptr, ptr %8, align 8
store i8 0, ptr %29, align 1
%30 = load ptr, ptr %4, align 8
ret ptr %30
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp1938w5lh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strcpyn(ptr noundef %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i64 0, ptr %7, align 8
%9 = load ptr, ptr %4, align 8
store ptr %9, ptr %8, align 8
br label %10
10: ; preds = %22, %3
%11 = load i64, ptr %7, align 8
%12 = add i64 %11, 1
store i64 %12, ptr %7, align 8
%13 = load i64, ptr %5, align 8
%14 = icmp ult i64 %12, %13
br i1 %14, label %15, label %20
15: ; preds = %10
%16 = load ptr, ptr %6, align 8
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp ne i32 %18, 0
br label %20
20: ; preds = %15, %10
%21 = phi i1 [ false, %10 ], [ %19, %15 ]
br i1 %21, label %22, label %28
22: ; preds = %20
%23 = load ptr, ptr %6, align 8
%24 = getelementptr inbounds i8, ptr %23, i32 1
store ptr %24, ptr %6, align 8
%25 = load i8, ptr %23, align 1
%26 = load ptr, ptr %8, align 8
%27 = getelementptr inbounds i8, ptr %26, i32 1
store ptr %27, ptr %8, align 8
store i8 %25, ptr %26, align 1
br label %10, !llvm.loop !6
28: ; preds = %20
%29 = load ptr, ptr %8, align 8
store i8 0, ptr %29, align 1
%30 = load ptr, ptr %4, align 8
ret ptr %30
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp7qhgr71t.c'
source_filename = "/tmp/tmp7qhgr71t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [39 x i8] c"Number of trailing zeros of %d is %d \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = call i32 @findTrailingZeros(i32 noundef %5)
store i32 %6, ptr %3, align 4
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = call i32 @printf(ptr noundef @.str.1, i32 noundef %7, i32 noundef %8)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @findTrailingZeros(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7qhgr71t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [39 x i8] c"Number of trailing zeros of %d is %d \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = call i32 @findTrailingZeros(i32 noundef %5)
store i32 %6, ptr %3, align 4
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = call i32 @printf(ptr noundef @.str.1, i32 noundef %7, i32 noundef %8)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @findTrailingZeros(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_6a_jv80.c'
source_filename = "/tmp/tmp_6a_jv80.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [43 x i8] c"KEYFORMAT=\22com.apple.streamingkeydelivery\22\00", align 1
@.str.1 = private unnamed_addr constant [46 x i8] c"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"com.microsoft.playready\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_playlist_FPS(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i64 @strstr(ptr noundef %3, ptr noundef @.str)
%5 = icmp ne i64 %4, 0
br i1 %5, label %14, label %6
6: ; preds = %1
%7 = load ptr, ptr %2, align 8
%8 = call i64 @strstr(ptr noundef %7, ptr noundef @.str.1)
%9 = icmp ne i64 %8, 0
br i1 %9, label %14, label %10
10: ; preds = %6
%11 = load ptr, ptr %2, align 8
%12 = call i64 @strstr(ptr noundef %11, ptr noundef @.str.2)
%13 = icmp ne i64 %12, 0
br label %14
14: ; preds = %10, %6, %1
%15 = phi i1 [ true, %6 ], [ true, %1 ], [ %13, %10 ]
%16 = zext i1 %15 to i32
ret i32 %16
}
declare i64 @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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_6a_jv80.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [43 x i8] c"KEYFORMAT=\22com.apple.streamingkeydelivery\22\00", align 1
@.str.1 = private unnamed_addr constant [46 x i8] c"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"com.microsoft.playready\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_playlist_FPS(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i64 @strstr(ptr noundef %3, ptr noundef @.str)
%5 = icmp ne i64 %4, 0
br i1 %5, label %14, label %6
6: ; preds = %1
%7 = load ptr, ptr %2, align 8
%8 = call i64 @strstr(ptr noundef %7, ptr noundef @.str.1)
%9 = icmp ne i64 %8, 0
br i1 %9, label %14, label %10
10: ; preds = %6
%11 = load ptr, ptr %2, align 8
%12 = call i64 @strstr(ptr noundef %11, ptr noundef @.str.2)
%13 = icmp ne i64 %12, 0
br label %14
14: ; preds = %10, %6, %1
%15 = phi i1 [ true, %6 ], [ true, %1 ], [ %13, %10 ]
%16 = zext i1 %15 to i32
ret i32 %16
}
declare i64 @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"}
|
; ModuleID = '/tmp/tmpi559xv8l.c'
source_filename = "/tmp/tmpi559xv8l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"-\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @draw_line(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %10, %1
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp ult i32 %5, %6
br i1 %7, label %8, label %13
8: ; preds = %4
%9 = call i32 @printf(ptr noundef @.str)
br label %10
10: ; preds = %8
%11 = load i32, ptr %3, align 4
%12 = add i32 %11, 1
store i32 %12, ptr %3, align 4
br label %4, !llvm.loop !6
13: ; preds = %4
%14 = call i32 @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi559xv8l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"-\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @draw_line(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp ult i32 %4, %5
br i1 %6, label %.lr.ph, label %15
.lr.ph: ; preds = %1
br label %7
7: ; preds = %.lr.ph, %9
%8 = call i32 @printf(ptr noundef @.str)
br label %9
9: ; preds = %7
%10 = load i32, ptr %3, align 4
%11 = add i32 %10, 1
store i32 %11, ptr %3, align 4
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %2, align 4
%14 = icmp ult i32 %12, %13
br i1 %14, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %15
15: ; preds = %._crit_edge, %1
%16 = call i32 @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmptuw6yn2p.c'
source_filename = "/tmp/tmptuw6yn2p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [44 x i8] c"Usage: %s [-d] <command> <arg1> ... <argn>\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
ret i32 252
}
declare i32 @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/tmptuw6yn2p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [44 x i8] c"Usage: %s [-d] <command> <arg1> ... <argn>\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
ret i32 252
}
declare i32 @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/tmpk4r0_zq1.c'
source_filename = "/tmp/tmpk4r0_zq1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@INADDR_ANY = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [14 x i8] c"socket4 error\00", align 1
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_REUSEADDR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [19 x i8] c"set socket4 failed\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"bind socket4 error\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"listen socket4 error\00", align 1
@.str.4 = private unnamed_addr constant [33 x i8] c"Can not set SO_REUSEADDR option4\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @create_socket4(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca %struct.sockaddr_in, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 1, ptr %6, align 4
%8 = load i32, ptr @AF_INET, align 4
%9 = getelementptr inbounds %struct.sockaddr_in, ptr %5, i32 0, i32 2
store i32 %8, ptr %9, align 4
%10 = load i32, ptr @INADDR_ANY, align 4
%11 = call i32 @htonl(i32 noundef %10)
%12 = getelementptr inbounds %struct.sockaddr_in, ptr %5, i32 0, i32 1
%13 = getelementptr inbounds %struct.TYPE_2__, ptr %12, i32 0, i32 0
store i32 %11, ptr %13, align 4
%14 = load i32, ptr %3, align 4
%15 = call i32 @htons(i32 noundef %14)
%16 = getelementptr inbounds %struct.sockaddr_in, ptr %5, i32 0, i32 0
store i32 %15, ptr %16, align 4
%17 = load i32, ptr @AF_INET, align 4
%18 = load i32, ptr @SOCK_STREAM, align 4
%19 = call i32 @socket(i32 noundef %17, i32 noundef %18, i32 noundef 0)
store i32 %19, ptr %4, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp eq i32 %20, -1
br i1 %21, label %22, label %24
22: ; preds = %1
%23 = call i32 @perror(ptr noundef @.str)
store i32 -1, ptr %2, align 4
br label %54
24: ; preds = %1
%25 = load i32, ptr %4, align 4
%26 = load i32, ptr @SOL_SOCKET, align 4
%27 = load i32, ptr @SO_REUSEADDR, align 4
%28 = call i32 (i32, i32, i32, ...) @setsockopt(i32 noundef %25, i32 noundef %26, i32 noundef %27, ptr noundef %6, i64 noundef 4)
%29 = icmp slt i32 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %24
%31 = call i32 @perror(ptr noundef @.str.1)
store i32 -1, ptr %2, align 4
br label %54
32: ; preds = %24
%33 = load i32, ptr %4, align 4
%34 = call i32 @bind(i32 noundef %33, ptr noundef %5, i32 noundef 12)
%35 = icmp eq i32 %34, -1
br i1 %35, label %36, label %38
36: ; preds = %32
%37 = call i32 @perror(ptr noundef @.str.2)
store i32 -1, ptr %2, align 4
br label %54
38: ; preds = %32
%39 = load i32, ptr %4, align 4
%40 = call i32 @listen(i32 noundef %39, i32 noundef 10)
%41 = icmp eq i32 %40, -1
br i1 %41, label %42, label %44
42: ; preds = %38
%43 = call i32 @perror(ptr noundef @.str.3)
store i32 -1, ptr %2, align 4
br label %54
44: ; preds = %38
store i32 1, ptr %7, align 4
%45 = load i32, ptr %4, align 4
%46 = load i32, ptr @SOL_SOCKET, align 4
%47 = load i32, ptr @SO_REUSEADDR, align 4
%48 = call i32 (i32, i32, i32, ...) @setsockopt(i32 noundef %45, i32 noundef %46, i32 noundef %47, ptr noundef %7, i64 noundef 4)
%49 = icmp eq i32 %48, -1
br i1 %49, label %50, label %52
50: ; preds = %44
%51 = call i32 @perror(ptr noundef @.str.4)
store i32 -1, ptr %2, align 4
br label %54
52: ; preds = %44
%53 = load i32, ptr %4, align 4
store i32 %53, ptr %2, align 4
br label %54
54: ; preds = %52, %50, %42, %36, %30, %22
%55 = load i32, ptr %2, align 4
ret i32 %55
}
declare i32 @htonl(i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ...) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @listen(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/tmpk4r0_zq1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@INADDR_ANY = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [14 x i8] c"socket4 error\00", align 1
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_REUSEADDR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [19 x i8] c"set socket4 failed\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"bind socket4 error\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"listen socket4 error\00", align 1
@.str.4 = private unnamed_addr constant [33 x i8] c"Can not set SO_REUSEADDR option4\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @create_socket4(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca %struct.sockaddr_in, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 1, ptr %6, align 4
%8 = load i32, ptr @AF_INET, align 4
%9 = getelementptr inbounds %struct.sockaddr_in, ptr %5, i32 0, i32 2
store i32 %8, ptr %9, align 4
%10 = load i32, ptr @INADDR_ANY, align 4
%11 = call i32 @htonl(i32 noundef %10)
%12 = getelementptr inbounds %struct.sockaddr_in, ptr %5, i32 0, i32 1
%13 = getelementptr inbounds %struct.TYPE_2__, ptr %12, i32 0, i32 0
store i32 %11, ptr %13, align 4
%14 = load i32, ptr %3, align 4
%15 = call i32 @htons(i32 noundef %14)
%16 = getelementptr inbounds %struct.sockaddr_in, ptr %5, i32 0, i32 0
store i32 %15, ptr %16, align 4
%17 = load i32, ptr @AF_INET, align 4
%18 = load i32, ptr @SOCK_STREAM, align 4
%19 = call i32 @socket(i32 noundef %17, i32 noundef %18, i32 noundef 0)
store i32 %19, ptr %4, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp eq i32 %20, -1
br i1 %21, label %22, label %24
22: ; preds = %1
%23 = call i32 @perror(ptr noundef @.str)
store i32 -1, ptr %2, align 4
br label %54
24: ; preds = %1
%25 = load i32, ptr %4, align 4
%26 = load i32, ptr @SOL_SOCKET, align 4
%27 = load i32, ptr @SO_REUSEADDR, align 4
%28 = call i32 (i32, i32, i32, ...) @setsockopt(i32 noundef %25, i32 noundef %26, i32 noundef %27, ptr noundef %6, i64 noundef 4)
%29 = icmp slt i32 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %24
%31 = call i32 @perror(ptr noundef @.str.1)
store i32 -1, ptr %2, align 4
br label %54
32: ; preds = %24
%33 = load i32, ptr %4, align 4
%34 = call i32 @bind(i32 noundef %33, ptr noundef %5, i32 noundef 12)
%35 = icmp eq i32 %34, -1
br i1 %35, label %36, label %38
36: ; preds = %32
%37 = call i32 @perror(ptr noundef @.str.2)
store i32 -1, ptr %2, align 4
br label %54
38: ; preds = %32
%39 = load i32, ptr %4, align 4
%40 = call i32 @listen(i32 noundef %39, i32 noundef 10)
%41 = icmp eq i32 %40, -1
br i1 %41, label %42, label %44
42: ; preds = %38
%43 = call i32 @perror(ptr noundef @.str.3)
store i32 -1, ptr %2, align 4
br label %54
44: ; preds = %38
store i32 1, ptr %7, align 4
%45 = load i32, ptr %4, align 4
%46 = load i32, ptr @SOL_SOCKET, align 4
%47 = load i32, ptr @SO_REUSEADDR, align 4
%48 = call i32 (i32, i32, i32, ...) @setsockopt(i32 noundef %45, i32 noundef %46, i32 noundef %47, ptr noundef %7, i64 noundef 4)
%49 = icmp eq i32 %48, -1
br i1 %49, label %50, label %52
50: ; preds = %44
%51 = call i32 @perror(ptr noundef @.str.4)
store i32 -1, ptr %2, align 4
br label %54
52: ; preds = %44
%53 = load i32, ptr %4, align 4
store i32 %53, ptr %2, align 4
br label %54
54: ; preds = %52, %50, %42, %36, %30, %22
%55 = load i32, ptr %2, align 4
ret i32 %55
}
declare i32 @htonl(i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ...) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @listen(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/tmpfd4xp7qq.c'
source_filename = "/tmp/tmpfd4xp7qq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@IPPROTO_TCP = dso_local global i32 0, align 4
@TCP_NODELAY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @disable_tcp_nagle(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 1, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = load i32, ptr @IPPROTO_TCP, align 4
%6 = load i32, ptr @TCP_NODELAY, align 4
%7 = call i32 @xsetsockopt(i32 noundef %4, i32 noundef %5, i32 noundef %6, ptr noundef %3, i32 noundef 4)
ret void
}
declare i32 @xsetsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfd4xp7qq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@IPPROTO_TCP = dso_local global i32 0, align 4
@TCP_NODELAY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @disable_tcp_nagle(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 1, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = load i32, ptr @IPPROTO_TCP, align 4
%6 = load i32, ptr @TCP_NODELAY, align 4
%7 = call i32 @xsetsockopt(i32 noundef %4, i32 noundef %5, i32 noundef %6, ptr noundef %3, i32 noundef 4)
ret void
}
declare i32 @xsetsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmiaforc8.c'
source_filename = "/tmp/tmpmiaforc8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @emit_text(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = load ptr, ptr %3, align 8
%9 = call i32 @fwrite(ptr noundef %5, i32 noundef 1, i32 noundef %7, ptr noundef %8)
ret void
}
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmiaforc8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @emit_text(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = load ptr, ptr %3, align 8
%9 = call i32 @fwrite(ptr noundef %5, i32 noundef 1, i32 noundef %7, ptr noundef %8)
ret void
}
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpd5slt_ax.c'
source_filename = "/tmp/tmpd5slt_ax.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @varithimm_141_int32_t(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %30, %2
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %33
10: ; preds = %6
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i64, ptr %11, i64 %13
%15 = load i64, ptr %14, align 8
%16 = icmp slt i64 %15, 141
br i1 %16, label %17, label %23
17: ; preds = %10
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %5, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i64, ptr %18, i64 %20
%22 = load i64, ptr %21, align 8
br label %24
23: ; preds = %10
br label %24
24: ; preds = %23, %17
%25 = phi i64 [ %22, %17 ], [ 141, %23 ]
%26 = load ptr, ptr %3, align 8
%27 = load i32, ptr %5, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i64, ptr %26, i64 %28
store i64 %25, ptr %29, align 8
br label %30
30: ; preds = %24
%31 = load i32, ptr %5, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %5, align 4
br label %6, !llvm.loop !6
33: ; preds = %6
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpd5slt_ax.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @varithimm_141_int32_t(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %35
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %29
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i64, ptr %10, i64 %12
%14 = load i64, ptr %13, align 8
%15 = icmp slt i64 %14, 141
br i1 %15, label %16, label %22
16: ; preds = %9
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %5, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i64, ptr %17, i64 %19
%21 = load i64, ptr %20, align 8
br label %23
22: ; preds = %9
br label %23
23: ; preds = %22, %16
%24 = phi i64 [ %21, %16 ], [ 141, %22 ]
%25 = load ptr, ptr %3, align 8
%26 = load i32, ptr %5, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i64, ptr %25, i64 %27
store i64 %24, ptr %28, align 8
br label %29
29: ; preds = %23
%30 = load i32, ptr %5, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %5, align 4
%32 = load i32, ptr %5, align 4
%33 = load i32, ptr %4, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %35
35: ; preds = %._crit_edge, %2
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmppydfkgl3.c'
source_filename = "/tmp/tmppydfkgl3.c"
target datalayout = "e-m:e-p270: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 [12 x i8] c"Error: %s.\0A\00", align 1
@errno = dso_local global i32 0, align 4
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @assert_descriptor(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp slt i32 %3, 0
br i1 %4, label %5, label %12
5: ; preds = %1
%6 = load i32, ptr @stderr, align 4
%7 = load i32, ptr @errno, align 4
%8 = call ptr @strerror(i32 noundef %7)
%9 = call i32 @fprintf(i32 noundef %6, ptr noundef @.str, ptr noundef %8)
%10 = load i32, ptr @EXIT_FAILURE, align 4
%11 = call i32 @exit(i32 noundef %10) #3
unreachable
12: ; preds = %1
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(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/tmppydfkgl3.c"
target datalayout = "e-m:e-p270: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 [12 x i8] c"Error: %s.\0A\00", align 1
@errno = dso_local global i32 0, align 4
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @assert_descriptor(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp slt i32 %3, 0
br i1 %4, label %5, label %12
5: ; preds = %1
%6 = load i32, ptr @stderr, align 4
%7 = load i32, ptr @errno, align 4
%8 = call ptr @strerror(i32 noundef %7)
%9 = call i32 @fprintf(i32 noundef %6, ptr noundef @.str, ptr noundef %8)
%10 = load i32, ptr @EXIT_FAILURE, align 4
%11 = call i32 @exit(i32 noundef %10) #3
unreachable
12: ; preds = %1
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(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/tmpq92s1n9i.c'
source_filename = "/tmp/tmpq92s1n9i.c"
target datalayout = "e-m:e-p270: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/tmpq92s1n9i.c"
target datalayout = "e-m:e-p270: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/tmp8s7u1ppe.c'
source_filename = "/tmp/tmp8s7u1ppe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"malloc error\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @compare16(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%12 = load i32, ptr %6, align 4
%13 = mul nsw i32 %12, 3
store i32 %13, ptr %9, align 4
%14 = load i32, ptr %6, align 4
%15 = sext i32 %14 to i64
%16 = mul i64 2, %15
%17 = mul i64 %16, 3
%18 = trunc i64 %17 to i32
%19 = call i64 @malloc(i32 noundef %18)
%20 = inttoptr i64 %19 to ptr
store ptr %20, ptr %10, align 8
%21 = load ptr, ptr %10, align 8
%22 = icmp eq ptr %21, null
br i1 %22, label %23, label %26
23: ; preds = %3
%24 = call i32 @printf(ptr noundef @.str)
%25 = call i32 @exit(i32 noundef 1) #3
unreachable
26: ; preds = %3
store i32 0, ptr %11, align 4
store i32 0, ptr %7, align 4
br label %27
27: ; preds = %41, %26
%28 = load i32, ptr %7, align 4
%29 = load i32, ptr %9, align 4
%30 = sdiv i32 %29, 8
%31 = icmp slt i32 %28, %30
br i1 %31, label %32, label %44
32: ; preds = %27
%33 = load ptr, ptr %10, align 8
%34 = load i32, ptr %11, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i16, ptr %33, i64 %35
%37 = load ptr, ptr %5, align 8
%38 = call i32 @fread(ptr noundef %36, i32 noundef 2, i32 noundef 8, ptr noundef %37)
%39 = load i32, ptr %11, align 4
%40 = add nsw i32 %39, 8
store i32 %40, ptr %11, align 4
br label %41
41: ; preds = %32
%42 = load i32, ptr %7, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %7, align 4
br label %27, !llvm.loop !6
44: ; preds = %27
%45 = load i32, ptr %11, align 4
store i32 %45, ptr %7, align 4
br label %46
46: ; preds = %57, %44
%47 = load i32, ptr %7, align 4
%48 = load i32, ptr %9, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %50, label %60
50: ; preds = %46
%51 = load ptr, ptr %10, align 8
%52 = load i32, ptr %7, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i16, ptr %51, i64 %53
%55 = load ptr, ptr %5, align 8
%56 = call i32 @fread(ptr noundef %54, i32 noundef 2, i32 noundef 1, ptr noundef %55)
br label %57
57: ; preds = %50
%58 = load i32, ptr %7, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %7, align 4
br label %46, !llvm.loop !8
60: ; preds = %46
store i32 0, ptr %7, align 4
br label %61
61: ; preds = %147, %60
%62 = load i32, ptr %7, align 4
%63 = load i32, ptr %6, align 4
%64 = icmp slt i32 %62, %63
br i1 %64, label %65, label %150
65: ; preds = %61
%66 = load ptr, ptr %4, align 8
%67 = load i32, ptr %7, align 4
%68 = mul nsw i32 %67, 3
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i16, ptr %66, i64 %69
%71 = load i16, ptr %70, align 2
%72 = zext i16 %71 to i32
%73 = mul nsw i32 306, %72
%74 = load ptr, ptr %4, align 8
%75 = load i32, ptr %7, align 4
%76 = mul nsw i32 %75, 3
%77 = add nsw i32 %76, 1
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i16, ptr %74, i64 %78
%80 = load i16, ptr %79, align 2
%81 = zext i16 %80 to i32
%82 = mul nsw i32 601, %81
%83 = add nsw i32 %73, %82
%84 = load ptr, ptr %4, align 8
%85 = load i32, ptr %7, align 4
%86 = mul nsw i32 %85, 3
%87 = add nsw i32 %86, 2
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i16, ptr %84, i64 %88
%90 = load i16, ptr %89, align 2
%91 = zext i16 %90 to i32
%92 = mul nsw i32 117, %91
%93 = add nsw i32 %83, %92
%94 = load ptr, ptr %10, align 8
%95 = load i32, ptr %7, align 4
%96 = mul nsw i32 %95, 3
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i16, ptr %94, i64 %97
%99 = load i16, ptr %98, align 2
%100 = zext i16 %99 to i32
%101 = mul nsw i32 306, %100
%102 = load ptr, ptr %10, align 8
%103 = load i32, ptr %7, align 4
%104 = mul nsw i32 %103, 3
%105 = add nsw i32 %104, 1
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i16, ptr %102, i64 %106
%108 = load i16, ptr %107, align 2
%109 = zext i16 %108 to i32
%110 = mul nsw i32 601, %109
%111 = add nsw i32 %101, %110
%112 = load ptr, ptr %10, align 8
%113 = load i32, ptr %7, align 4
%114 = mul nsw i32 %113, 3
%115 = add nsw i32 %114, 2
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds i16, ptr %112, i64 %116
%118 = load i16, ptr %117, align 2
%119 = zext i16 %118 to i32
%120 = mul nsw i32 117, %119
%121 = add nsw i32 %111, %120
%122 = icmp slt i32 %93, %121
br i1 %122, label %123, label %146
123: ; preds = %65
%124 = load i32, ptr %7, align 4
%125 = mul nsw i32 %124, 3
store i32 %125, ptr %8, align 4
br label %126
126: ; preds = %142, %123
%127 = load i32, ptr %8, align 4
%128 = load i32, ptr %7, align 4
%129 = mul nsw i32 %128, 3
%130 = add nsw i32 %129, 3
%131 = icmp slt i32 %127, %130
br i1 %131, label %132, label %145
132: ; preds = %126
%133 = load ptr, ptr %10, align 8
%134 = load i32, ptr %8, align 4
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds i16, ptr %133, i64 %135
%137 = load i16, ptr %136, align 2
%138 = load ptr, ptr %4, align 8
%139 = load i32, ptr %8, align 4
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds i16, ptr %138, i64 %140
store i16 %137, ptr %141, align 2
br label %142
142: ; preds = %132
%143 = load i32, ptr %8, align 4
%144 = add nsw i32 %143, 1
store i32 %144, ptr %8, align 4
br label %126, !llvm.loop !9
145: ; preds = %126
br label %146
146: ; preds = %145, %65
br label %147
147: ; preds = %146
%148 = load i32, ptr %7, align 4
%149 = add nsw i32 %148, 1
store i32 %149, ptr %7, align 4
br label %61, !llvm.loop !10
150: ; preds = %61
%151 = load ptr, ptr %10, align 8
%152 = call i32 @free(ptr noundef %151)
ret void
}
declare i64 @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fread(ptr noundef, i32 noundef, i32 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" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8s7u1ppe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"malloc error\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @compare16(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%12 = load i32, ptr %6, align 4
%13 = mul nsw i32 %12, 3
store i32 %13, ptr %9, align 4
%14 = load i32, ptr %6, align 4
%15 = sext i32 %14 to i64
%16 = mul i64 2, %15
%17 = mul i64 %16, 3
%18 = trunc i64 %17 to i32
%19 = call i64 @malloc(i32 noundef %18)
%20 = inttoptr i64 %19 to ptr
store ptr %20, ptr %10, align 8
%21 = load ptr, ptr %10, align 8
%22 = icmp eq ptr %21, null
br i1 %22, label %23, label %26
23: ; preds = %3
%24 = call i32 @printf(ptr noundef @.str)
%25 = call i32 @exit(i32 noundef 1) #3
unreachable
26: ; preds = %3
store i32 0, ptr %11, align 4
store i32 0, ptr %7, align 4
%27 = load i32, ptr %7, align 4
%28 = load i32, ptr %9, align 4
%29 = sdiv i32 %28, 8
%30 = icmp slt i32 %27, %29
br i1 %30, label %.lr.ph, label %47
.lr.ph: ; preds = %26
br label %31
31: ; preds = %.lr.ph, %40
%32 = load ptr, ptr %10, align 8
%33 = load i32, ptr %11, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i16, ptr %32, i64 %34
%36 = load ptr, ptr %5, align 8
%37 = call i32 @fread(ptr noundef %35, i32 noundef 2, i32 noundef 8, ptr noundef %36)
%38 = load i32, ptr %11, align 4
%39 = add nsw i32 %38, 8
store i32 %39, ptr %11, align 4
br label %40
40: ; preds = %31
%41 = load i32, ptr %7, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %7, align 4
%43 = load i32, ptr %7, align 4
%44 = load i32, ptr %9, align 4
%45 = sdiv i32 %44, 8
%46 = icmp slt i32 %43, %45
br i1 %46, label %31, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %40
br label %47
47: ; preds = %._crit_edge, %26
%48 = load i32, ptr %11, align 4
store i32 %48, ptr %7, align 4
%49 = load i32, ptr %7, align 4
%50 = load i32, ptr %9, align 4
%51 = icmp slt i32 %49, %50
br i1 %51, label %.lr.ph2, label %65
.lr.ph2: ; preds = %47
br label %52
52: ; preds = %.lr.ph2, %59
%53 = load ptr, ptr %10, align 8
%54 = load i32, ptr %7, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i16, ptr %53, i64 %55
%57 = load ptr, ptr %5, align 8
%58 = call i32 @fread(ptr noundef %56, i32 noundef 2, i32 noundef 1, ptr noundef %57)
br label %59
59: ; preds = %52
%60 = load i32, ptr %7, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %7, align 4
%62 = load i32, ptr %7, align 4
%63 = load i32, ptr %9, align 4
%64 = icmp slt i32 %62, %63
br i1 %64, label %52, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %59
br label %65
65: ; preds = %._crit_edge3, %47
store i32 0, ptr %7, align 4
%66 = load i32, ptr %7, align 4
%67 = load i32, ptr %6, align 4
%68 = icmp slt i32 %66, %67
br i1 %68, label %.lr.ph8, label %161
.lr.ph8: ; preds = %65
br label %69
69: ; preds = %.lr.ph8, %155
%70 = load ptr, ptr %4, align 8
%71 = load i32, ptr %7, align 4
%72 = mul nsw i32 %71, 3
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i16, ptr %70, i64 %73
%75 = load i16, ptr %74, align 2
%76 = zext i16 %75 to i32
%77 = mul nsw i32 306, %76
%78 = load ptr, ptr %4, align 8
%79 = load i32, ptr %7, align 4
%80 = mul nsw i32 %79, 3
%81 = add nsw i32 %80, 1
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i16, ptr %78, i64 %82
%84 = load i16, ptr %83, align 2
%85 = zext i16 %84 to i32
%86 = mul nsw i32 601, %85
%87 = add nsw i32 %77, %86
%88 = load ptr, ptr %4, align 8
%89 = load i32, ptr %7, align 4
%90 = mul nsw i32 %89, 3
%91 = add nsw i32 %90, 2
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i16, ptr %88, i64 %92
%94 = load i16, ptr %93, align 2
%95 = zext i16 %94 to i32
%96 = mul nsw i32 117, %95
%97 = add nsw i32 %87, %96
%98 = load ptr, ptr %10, align 8
%99 = load i32, ptr %7, align 4
%100 = mul nsw i32 %99, 3
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds i16, ptr %98, i64 %101
%103 = load i16, ptr %102, align 2
%104 = zext i16 %103 to i32
%105 = mul nsw i32 306, %104
%106 = load ptr, ptr %10, align 8
%107 = load i32, ptr %7, align 4
%108 = mul nsw i32 %107, 3
%109 = add nsw i32 %108, 1
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i16, ptr %106, i64 %110
%112 = load i16, ptr %111, align 2
%113 = zext i16 %112 to i32
%114 = mul nsw i32 601, %113
%115 = add nsw i32 %105, %114
%116 = load ptr, ptr %10, align 8
%117 = load i32, ptr %7, align 4
%118 = mul nsw i32 %117, 3
%119 = add nsw i32 %118, 2
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds i16, ptr %116, i64 %120
%122 = load i16, ptr %121, align 2
%123 = zext i16 %122 to i32
%124 = mul nsw i32 117, %123
%125 = add nsw i32 %115, %124
%126 = icmp slt i32 %97, %125
br i1 %126, label %127, label %154
127: ; preds = %69
%128 = load i32, ptr %7, align 4
%129 = mul nsw i32 %128, 3
store i32 %129, ptr %8, align 4
%130 = load i32, ptr %8, align 4
%131 = load i32, ptr %7, align 4
%132 = mul nsw i32 %131, 3
%133 = add nsw i32 %132, 3
%134 = icmp slt i32 %130, %133
br i1 %134, label %.lr.ph5, label %153
.lr.ph5: ; preds = %127
br label %135
135: ; preds = %.lr.ph5, %145
%136 = load ptr, ptr %10, align 8
%137 = load i32, ptr %8, align 4
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds i16, ptr %136, i64 %138
%140 = load i16, ptr %139, align 2
%141 = load ptr, ptr %4, align 8
%142 = load i32, ptr %8, align 4
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds i16, ptr %141, i64 %143
store i16 %140, ptr %144, align 2
br label %145
145: ; preds = %135
%146 = load i32, ptr %8, align 4
%147 = add nsw i32 %146, 1
store i32 %147, ptr %8, align 4
%148 = load i32, ptr %8, align 4
%149 = load i32, ptr %7, align 4
%150 = mul nsw i32 %149, 3
%151 = add nsw i32 %150, 3
%152 = icmp slt i32 %148, %151
br i1 %152, label %135, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %145
br label %153
153: ; preds = %._crit_edge6, %127
br label %154
154: ; preds = %153, %69
br label %155
155: ; preds = %154
%156 = load i32, ptr %7, align 4
%157 = add nsw i32 %156, 1
store i32 %157, ptr %7, align 4
%158 = load i32, ptr %7, align 4
%159 = load i32, ptr %6, align 4
%160 = icmp slt i32 %158, %159
br i1 %160, label %69, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %155
br label %161
161: ; preds = %._crit_edge9, %65
%162 = load ptr, ptr %10, align 8
%163 = call i32 @free(ptr noundef %162)
ret void
}
declare i64 @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fread(ptr noundef, i32 noundef, i32 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" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpcddeblih.c'
source_filename = "/tmp/tmpcddeblih.c"
target datalayout = "e-m:e-p270: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/tmpcddeblih.c"
target datalayout = "e-m:e-p270: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/tmpw4_qblb_.c'
source_filename = "/tmp/tmpw4_qblb_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Random pos\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"No random pos\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @pet_c_discovery_idtopos(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5, ptr noundef %6, i32 noundef %7, ptr noundef %8, i32 noundef %9, ptr noundef %10, i32 noundef %11, ptr noundef %12, i32 noundef %13, ptr noundef %14, i32 noundef %15, ptr noundef %16, i32 noundef %17, ptr noundef %18, i32 noundef %19, float noundef %20, i32 noundef %21, i32 noundef %22, i32 noundef %23) #0 {
%25 = alloca ptr, align 8
%26 = alloca i32, align 4
%27 = alloca ptr, align 8
%28 = alloca i32, align 4
%29 = alloca ptr, align 8
%30 = alloca i32, align 4
%31 = alloca ptr, align 8
%32 = alloca i32, align 4
%33 = alloca ptr, align 8
%34 = alloca i32, align 4
%35 = alloca ptr, align 8
%36 = alloca i32, align 4
%37 = alloca ptr, align 8
%38 = alloca i32, align 4
%39 = alloca ptr, align 8
%40 = alloca i32, align 4
%41 = alloca ptr, align 8
%42 = alloca i32, align 4
%43 = alloca ptr, align 8
%44 = alloca i32, align 4
%45 = alloca float, align 4
%46 = alloca i32, align 4
%47 = alloca i32, align 4
%48 = alloca i32, align 4
%49 = alloca i32, align 4
%50 = alloca i32, align 4
%51 = alloca i32, align 4
%52 = alloca float, align 4
%53 = alloca float, align 4
%54 = alloca float, align 4
%55 = alloca float, align 4
%56 = alloca float, align 4
%57 = alloca float, align 4
%58 = alloca float, align 4
%59 = alloca float, align 4
%60 = alloca float, align 4
%61 = alloca float, align 4
%62 = alloca float, align 4
%63 = alloca float, align 4
%64 = alloca float, align 4
%65 = alloca float, align 4
%66 = alloca float, align 4
%67 = alloca float, align 4
%68 = alloca float, align 4
%69 = alloca float, align 4
%70 = alloca i32, align 4
%71 = alloca i32, align 4
store ptr %0, ptr %25, align 8
store i32 %1, ptr %26, align 4
store ptr %2, ptr %27, align 8
store i32 %3, ptr %28, align 4
store ptr %4, ptr %29, align 8
store i32 %5, ptr %30, align 4
store ptr %6, ptr %31, align 8
store i32 %7, ptr %32, align 4
store ptr %8, ptr %33, align 8
store i32 %9, ptr %34, align 4
store ptr %10, ptr %35, align 8
store i32 %11, ptr %36, align 4
store ptr %12, ptr %37, align 8
store i32 %13, ptr %38, align 4
store ptr %14, ptr %39, align 8
store i32 %15, ptr %40, align 4
store ptr %16, ptr %41, align 8
store i32 %17, ptr %42, align 4
store ptr %18, ptr %43, align 8
store i32 %19, ptr %44, align 4
store float %20, ptr %45, align 4
store i32 %21, ptr %46, align 4
store i32 %22, ptr %47, align 4
store i32 %23, ptr %48, align 4
store i32 16, ptr %49, align 4
store i32 24, ptr %50, align 4
store i32 35, ptr %51, align 4
store float 0x401A147AE0000000, ptr %52, align 4
store float 0x40139999A0000000, ptr %53, align 4
store float 0x40538F5C20000000, ptr %54, align 4
store float 0x40439999A0000000, ptr %55, align 4
store float 4.405000e+02, ptr %56, align 4
%72 = load i32, ptr %46, align 4
%73 = sitofp i32 %72 to float
%74 = fdiv float %73, 2.000000e+00
store float %74, ptr %57, align 4
%75 = load i32, ptr %47, align 4
%76 = sitofp i32 %75 to float
%77 = fdiv float %76, 2.000000e+00
store float %77, ptr %58, align 4
%78 = load i32, ptr %48, align 4
%79 = icmp ne i32 %78, 0
br i1 %79, label %80, label %82
80: ; preds = %24
%81 = call i32 @printf(ptr noundef @.str)
br label %84
82: ; preds = %24
%83 = call i32 @printf(ptr noundef @.str.1)
br label %84
84: ; preds = %82, %80
%85 = load i32, ptr %48, align 4
%86 = icmp ne i32 %85, 0
br i1 %86, label %87, label %90
87: ; preds = %84
%88 = load i32, ptr %48, align 4
%89 = call i32 @srand(i32 noundef %88)
br label %90
90: ; preds = %87, %84
store i32 0, ptr %70, align 4
br label %91
91: ; preds = %296, %90
%92 = load i32, ptr %70, align 4
%93 = load i32, ptr %26, align 4
%94 = icmp slt i32 %92, %93
br i1 %94, label %95, label %299
95: ; preds = %91
%96 = load ptr, ptr %25, align 8
%97 = load i32, ptr %70, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds i32, ptr %96, i64 %98
%100 = load i32, ptr %99, align 4
store i32 %100, ptr %71, align 4
%101 = load i32, ptr %71, align 4
%102 = load i32, ptr %49, align 4
%103 = sdiv i32 %101, %102
%104 = sitofp i32 %103 to float
%105 = load float, ptr %52, align 4
%106 = load float, ptr %54, align 4
%107 = fneg float %106
%108 = call float @llvm.fmuladd.f32(float %104, float %105, float %107)
store float %108, ptr %61, align 4
%109 = load i32, ptr %71, align 4
%110 = load i32, ptr %49, align 4
%111 = srem i32 %109, %110
%112 = sitofp i32 %111 to float
%113 = load float, ptr %53, align 4
%114 = load float, ptr %55, align 4
%115 = fneg float %114
%116 = call float @llvm.fmuladd.f32(float %112, float %113, float %115)
store float %116, ptr %59, align 4
%117 = load float, ptr %56, align 4
store float %117, ptr %60, align 4
%118 = load i32, ptr %48, align 4
%119 = icmp ne i32 %118, 0
br i1 %119, label %120, label %131
120: ; preds = %95
%121 = call float (...) @inkernel_randf()
%122 = call float @llvm.fmuladd.f32(float 4.000000e+00, float %121, float -2.000000e+00)
store float %122, ptr %68, align 4
%123 = call float (...) @inkernel_randf()
%124 = call float @llvm.fmuladd.f32(float 4.000000e+00, float %123, float -2.000000e+00)
store float %124, ptr %69, align 4
%125 = load float, ptr %68, align 4
%126 = load float, ptr %59, align 4
%127 = fadd float %126, %125
store float %127, ptr %59, align 4
%128 = load float, ptr %69, align 4
%129 = load float, ptr %61, align 4
%130 = fadd float %129, %128
store float %130, ptr %61, align 4
br label %131
131: ; preds = %120, %95
%132 = load ptr, ptr %27, align 8
%133 = load i32, ptr %70, align 4
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds i32, ptr %132, i64 %134
%136 = load i32, ptr %135, align 4
%137 = sitofp i32 %136 to float
%138 = fpext float %137 to double
%139 = load i32, ptr %51, align 4
%140 = sitofp i32 %139 to float
%141 = fpext float %140 to double
%142 = fdiv double 0xC01921FB54442A84, %141
%143 = fmul double %138, %142
%144 = fptrunc double %143 to float
store float %144, ptr %62, align 4
%145 = load float, ptr %62, align 4
%146 = call float @cos(float noundef %145)
store float %146, ptr %66, align 4
%147 = load float, ptr %62, align 4
%148 = call float @sin(float noundef %147)
store float %148, ptr %67, align 4
%149 = load float, ptr %59, align 4
%150 = load float, ptr %66, align 4
%151 = load float, ptr %60, align 4
%152 = load float, ptr %67, align 4
%153 = fmul float %151, %152
%154 = fneg float %153
%155 = call float @llvm.fmuladd.f32(float %149, float %150, float %154)
store float %155, ptr %63, align 4
%156 = load float, ptr %59, align 4
%157 = load float, ptr %67, align 4
%158 = load float, ptr %60, align 4
%159 = load float, ptr %66, align 4
%160 = fmul float %158, %159
%161 = call float @llvm.fmuladd.f32(float %156, float %157, float %160)
store float %161, ptr %64, align 4
%162 = load float, ptr %57, align 4
%163 = load float, ptr %63, align 4
%164 = fadd float %163, %162
store float %164, ptr %63, align 4
%165 = load float, ptr %64, align 4
%166 = fneg float %165
%167 = load float, ptr %57, align 4
%168 = fadd float %166, %167
store float %168, ptr %64, align 4
%169 = load float, ptr %61, align 4
%170 = load float, ptr %58, align 4
%171 = fadd float %169, %170
store float %171, ptr %65, align 4
%172 = load float, ptr %45, align 4
%173 = load float, ptr %63, align 4
%174 = fdiv float %173, %172
store float %174, ptr %63, align 4
%175 = load float, ptr %45, align 4
%176 = load float, ptr %64, align 4
%177 = fdiv float %176, %175
store float %177, ptr %64, align 4
%178 = load float, ptr %45, align 4
%179 = load float, ptr %65, align 4
%180 = fdiv float %179, %178
store float %180, ptr %65, align 4
%181 = load float, ptr %63, align 4
%182 = load ptr, ptr %29, align 8
%183 = load i32, ptr %70, align 4
%184 = sext i32 %183 to i64
%185 = getelementptr inbounds float, ptr %182, i64 %184
store float %181, ptr %185, align 4
%186 = load float, ptr %64, align 4
%187 = load ptr, ptr %31, align 8
%188 = load i32, ptr %70, align 4
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds float, ptr %187, i64 %189
store float %186, ptr %190, align 4
%191 = load float, ptr %65, align 4
%192 = load ptr, ptr %33, align 8
%193 = load i32, ptr %70, align 4
%194 = sext i32 %193 to i64
%195 = getelementptr inbounds float, ptr %192, i64 %194
store float %191, ptr %195, align 4
%196 = load ptr, ptr %35, align 8
%197 = load i32, ptr %70, align 4
%198 = sext i32 %197 to i64
%199 = getelementptr inbounds i32, ptr %196, i64 %198
%200 = load i32, ptr %199, align 4
store i32 %200, ptr %71, align 4
%201 = load i32, ptr %71, align 4
%202 = load i32, ptr %49, align 4
%203 = sdiv i32 %201, %202
%204 = sitofp i32 %203 to float
%205 = load float, ptr %52, align 4
%206 = load float, ptr %54, align 4
%207 = fneg float %206
%208 = call float @llvm.fmuladd.f32(float %204, float %205, float %207)
store float %208, ptr %61, align 4
%209 = load i32, ptr %71, align 4
%210 = load i32, ptr %49, align 4
%211 = srem i32 %209, %210
%212 = sitofp i32 %211 to float
%213 = load float, ptr %53, align 4
%214 = load float, ptr %55, align 4
%215 = fneg float %214
%216 = call float @llvm.fmuladd.f32(float %212, float %213, float %215)
store float %216, ptr %59, align 4
%217 = load float, ptr %56, align 4
store float %217, ptr %60, align 4
%218 = load i32, ptr %48, align 4
%219 = icmp ne i32 %218, 0
br i1 %219, label %220, label %231
220: ; preds = %131
%221 = call float (...) @inkernel_randf()
%222 = call float @llvm.fmuladd.f32(float 4.000000e+00, float %221, float -2.000000e+00)
store float %222, ptr %68, align 4
%223 = call float (...) @inkernel_randf()
%224 = call float @llvm.fmuladd.f32(float 4.000000e+00, float %223, float -2.000000e+00)
store float %224, ptr %69, align 4
%225 = load float, ptr %68, align 4
%226 = load float, ptr %59, align 4
%227 = fadd float %226, %225
store float %227, ptr %59, align 4
%228 = load float, ptr %69, align 4
%229 = load float, ptr %61, align 4
%230 = fadd float %229, %228
store float %230, ptr %61, align 4
br label %231
231: ; preds = %220, %131
%232 = load ptr, ptr %37, align 8
%233 = load i32, ptr %70, align 4
%234 = sext i32 %233 to i64
%235 = getelementptr inbounds i32, ptr %232, i64 %234
%236 = load i32, ptr %235, align 4
%237 = sitofp i32 %236 to float
%238 = fpext float %237 to double
%239 = load i32, ptr %51, align 4
%240 = sitofp i32 %239 to float
%241 = fpext float %240 to double
%242 = fdiv double 0xC01921FB54442A84, %241
%243 = fmul double %238, %242
%244 = fptrunc double %243 to float
store float %244, ptr %62, align 4
%245 = load float, ptr %62, align 4
%246 = call float @cos(float noundef %245)
store float %246, ptr %66, align 4
%247 = load float, ptr %62, align 4
%248 = call float @sin(float noundef %247)
store float %248, ptr %67, align 4
%249 = load float, ptr %59, align 4
%250 = load float, ptr %66, align 4
%251 = load float, ptr %60, align 4
%252 = load float, ptr %67, align 4
%253 = fmul float %251, %252
%254 = fneg float %253
%255 = call float @llvm.fmuladd.f32(float %249, float %250, float %254)
store float %255, ptr %63, align 4
%256 = load float, ptr %59, align 4
%257 = load float, ptr %67, align 4
%258 = load float, ptr %60, align 4
%259 = load float, ptr %66, align 4
%260 = fmul float %258, %259
%261 = call float @llvm.fmuladd.f32(float %256, float %257, float %260)
store float %261, ptr %64, align 4
%262 = load float, ptr %57, align 4
%263 = load float, ptr %63, align 4
%264 = fadd float %263, %262
store float %264, ptr %63, align 4
%265 = load float, ptr %64, align 4
%266 = fneg float %265
%267 = load float, ptr %57, align 4
%268 = fadd float %266, %267
store float %268, ptr %64, align 4
%269 = load float, ptr %61, align 4
%270 = load float, ptr %58, align 4
%271 = fadd float %269, %270
store float %271, ptr %65, align 4
%272 = load float, ptr %45, align 4
%273 = load float, ptr %63, align 4
%274 = fdiv float %273, %272
store float %274, ptr %63, align 4
%275 = load float, ptr %45, align 4
%276 = load float, ptr %64, align 4
%277 = fdiv float %276, %275
store float %277, ptr %64, align 4
%278 = load float, ptr %45, align 4
%279 = load float, ptr %65, align 4
%280 = fdiv float %279, %278
store float %280, ptr %65, align 4
%281 = load float, ptr %63, align 4
%282 = load ptr, ptr %39, align 8
%283 = load i32, ptr %70, align 4
%284 = sext i32 %283 to i64
%285 = getelementptr inbounds float, ptr %282, i64 %284
store float %281, ptr %285, align 4
%286 = load float, ptr %64, align 4
%287 = load ptr, ptr %41, align 8
%288 = load i32, ptr %70, align 4
%289 = sext i32 %288 to i64
%290 = getelementptr inbounds float, ptr %287, i64 %289
store float %286, ptr %290, align 4
%291 = load float, ptr %65, align 4
%292 = load ptr, ptr %43, align 8
%293 = load i32, ptr %70, align 4
%294 = sext i32 %293 to i64
%295 = getelementptr inbounds float, ptr %292, i64 %294
store float %291, ptr %295, align 4
br label %296
296: ; preds = %231
%297 = load i32, ptr %70, align 4
%298 = add nsw i32 %297, 1
store i32 %298, ptr %70, align 4
br label %91, !llvm.loop !6
299: ; preds = %91
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @srand(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
declare float @inkernel_randf(...) #1
declare float @cos(float noundef) #1
declare float @sin(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" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw4_qblb_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Random pos\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"No random pos\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @pet_c_discovery_idtopos(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5, ptr noundef %6, i32 noundef %7, ptr noundef %8, i32 noundef %9, ptr noundef %10, i32 noundef %11, ptr noundef %12, i32 noundef %13, ptr noundef %14, i32 noundef %15, ptr noundef %16, i32 noundef %17, ptr noundef %18, i32 noundef %19, float noundef %20, i32 noundef %21, i32 noundef %22, i32 noundef %23) #0 {
%25 = alloca ptr, align 8
%26 = alloca i32, align 4
%27 = alloca ptr, align 8
%28 = alloca i32, align 4
%29 = alloca ptr, align 8
%30 = alloca i32, align 4
%31 = alloca ptr, align 8
%32 = alloca i32, align 4
%33 = alloca ptr, align 8
%34 = alloca i32, align 4
%35 = alloca ptr, align 8
%36 = alloca i32, align 4
%37 = alloca ptr, align 8
%38 = alloca i32, align 4
%39 = alloca ptr, align 8
%40 = alloca i32, align 4
%41 = alloca ptr, align 8
%42 = alloca i32, align 4
%43 = alloca ptr, align 8
%44 = alloca i32, align 4
%45 = alloca float, align 4
%46 = alloca i32, align 4
%47 = alloca i32, align 4
%48 = alloca i32, align 4
%49 = alloca i32, align 4
%50 = alloca i32, align 4
%51 = alloca i32, align 4
%52 = alloca float, align 4
%53 = alloca float, align 4
%54 = alloca float, align 4
%55 = alloca float, align 4
%56 = alloca float, align 4
%57 = alloca float, align 4
%58 = alloca float, align 4
%59 = alloca float, align 4
%60 = alloca float, align 4
%61 = alloca float, align 4
%62 = alloca float, align 4
%63 = alloca float, align 4
%64 = alloca float, align 4
%65 = alloca float, align 4
%66 = alloca float, align 4
%67 = alloca float, align 4
%68 = alloca float, align 4
%69 = alloca float, align 4
%70 = alloca i32, align 4
%71 = alloca i32, align 4
store ptr %0, ptr %25, align 8
store i32 %1, ptr %26, align 4
store ptr %2, ptr %27, align 8
store i32 %3, ptr %28, align 4
store ptr %4, ptr %29, align 8
store i32 %5, ptr %30, align 4
store ptr %6, ptr %31, align 8
store i32 %7, ptr %32, align 4
store ptr %8, ptr %33, align 8
store i32 %9, ptr %34, align 4
store ptr %10, ptr %35, align 8
store i32 %11, ptr %36, align 4
store ptr %12, ptr %37, align 8
store i32 %13, ptr %38, align 4
store ptr %14, ptr %39, align 8
store i32 %15, ptr %40, align 4
store ptr %16, ptr %41, align 8
store i32 %17, ptr %42, align 4
store ptr %18, ptr %43, align 8
store i32 %19, ptr %44, align 4
store float %20, ptr %45, align 4
store i32 %21, ptr %46, align 4
store i32 %22, ptr %47, align 4
store i32 %23, ptr %48, align 4
store i32 16, ptr %49, align 4
store i32 24, ptr %50, align 4
store i32 35, ptr %51, align 4
store float 0x401A147AE0000000, ptr %52, align 4
store float 0x40139999A0000000, ptr %53, align 4
store float 0x40538F5C20000000, ptr %54, align 4
store float 0x40439999A0000000, ptr %55, align 4
store float 4.405000e+02, ptr %56, align 4
%72 = load i32, ptr %46, align 4
%73 = sitofp i32 %72 to float
%74 = fdiv float %73, 2.000000e+00
store float %74, ptr %57, align 4
%75 = load i32, ptr %47, align 4
%76 = sitofp i32 %75 to float
%77 = fdiv float %76, 2.000000e+00
store float %77, ptr %58, align 4
%78 = load i32, ptr %48, align 4
%79 = icmp ne i32 %78, 0
br i1 %79, label %80, label %82
80: ; preds = %24
%81 = call i32 @printf(ptr noundef @.str)
br label %84
82: ; preds = %24
%83 = call i32 @printf(ptr noundef @.str.1)
br label %84
84: ; preds = %82, %80
%85 = load i32, ptr %48, align 4
%86 = icmp ne i32 %85, 0
br i1 %86, label %87, label %90
87: ; preds = %84
%88 = load i32, ptr %48, align 4
%89 = call i32 @srand(i32 noundef %88)
br label %90
90: ; preds = %87, %84
store i32 0, ptr %70, align 4
%91 = load i32, ptr %70, align 4
%92 = load i32, ptr %26, align 4
%93 = icmp slt i32 %91, %92
br i1 %93, label %.lr.ph, label %301
.lr.ph: ; preds = %90
br label %94
94: ; preds = %.lr.ph, %295
%95 = load ptr, ptr %25, align 8
%96 = load i32, ptr %70, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i32, ptr %95, i64 %97
%99 = load i32, ptr %98, align 4
store i32 %99, ptr %71, align 4
%100 = load i32, ptr %71, align 4
%101 = load i32, ptr %49, align 4
%102 = sdiv i32 %100, %101
%103 = sitofp i32 %102 to float
%104 = load float, ptr %52, align 4
%105 = load float, ptr %54, align 4
%106 = fneg float %105
%107 = call float @llvm.fmuladd.f32(float %103, float %104, float %106)
store float %107, ptr %61, align 4
%108 = load i32, ptr %71, align 4
%109 = load i32, ptr %49, align 4
%110 = srem i32 %108, %109
%111 = sitofp i32 %110 to float
%112 = load float, ptr %53, align 4
%113 = load float, ptr %55, align 4
%114 = fneg float %113
%115 = call float @llvm.fmuladd.f32(float %111, float %112, float %114)
store float %115, ptr %59, align 4
%116 = load float, ptr %56, align 4
store float %116, ptr %60, align 4
%117 = load i32, ptr %48, align 4
%118 = icmp ne i32 %117, 0
br i1 %118, label %119, label %130
119: ; preds = %94
%120 = call float (...) @inkernel_randf()
%121 = call float @llvm.fmuladd.f32(float 4.000000e+00, float %120, float -2.000000e+00)
store float %121, ptr %68, align 4
%122 = call float (...) @inkernel_randf()
%123 = call float @llvm.fmuladd.f32(float 4.000000e+00, float %122, float -2.000000e+00)
store float %123, ptr %69, align 4
%124 = load float, ptr %68, align 4
%125 = load float, ptr %59, align 4
%126 = fadd float %125, %124
store float %126, ptr %59, align 4
%127 = load float, ptr %69, align 4
%128 = load float, ptr %61, align 4
%129 = fadd float %128, %127
store float %129, ptr %61, align 4
br label %130
130: ; preds = %119, %94
%131 = load ptr, ptr %27, align 8
%132 = load i32, ptr %70, align 4
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds i32, ptr %131, i64 %133
%135 = load i32, ptr %134, align 4
%136 = sitofp i32 %135 to float
%137 = fpext float %136 to double
%138 = load i32, ptr %51, align 4
%139 = sitofp i32 %138 to float
%140 = fpext float %139 to double
%141 = fdiv double 0xC01921FB54442A84, %140
%142 = fmul double %137, %141
%143 = fptrunc double %142 to float
store float %143, ptr %62, align 4
%144 = load float, ptr %62, align 4
%145 = call float @cos(float noundef %144)
store float %145, ptr %66, align 4
%146 = load float, ptr %62, align 4
%147 = call float @sin(float noundef %146)
store float %147, ptr %67, align 4
%148 = load float, ptr %59, align 4
%149 = load float, ptr %66, align 4
%150 = load float, ptr %60, align 4
%151 = load float, ptr %67, align 4
%152 = fmul float %150, %151
%153 = fneg float %152
%154 = call float @llvm.fmuladd.f32(float %148, float %149, float %153)
store float %154, ptr %63, align 4
%155 = load float, ptr %59, align 4
%156 = load float, ptr %67, align 4
%157 = load float, ptr %60, align 4
%158 = load float, ptr %66, align 4
%159 = fmul float %157, %158
%160 = call float @llvm.fmuladd.f32(float %155, float %156, float %159)
store float %160, ptr %64, align 4
%161 = load float, ptr %57, align 4
%162 = load float, ptr %63, align 4
%163 = fadd float %162, %161
store float %163, ptr %63, align 4
%164 = load float, ptr %64, align 4
%165 = fneg float %164
%166 = load float, ptr %57, align 4
%167 = fadd float %165, %166
store float %167, ptr %64, align 4
%168 = load float, ptr %61, align 4
%169 = load float, ptr %58, align 4
%170 = fadd float %168, %169
store float %170, ptr %65, align 4
%171 = load float, ptr %45, align 4
%172 = load float, ptr %63, align 4
%173 = fdiv float %172, %171
store float %173, ptr %63, align 4
%174 = load float, ptr %45, align 4
%175 = load float, ptr %64, align 4
%176 = fdiv float %175, %174
store float %176, ptr %64, align 4
%177 = load float, ptr %45, align 4
%178 = load float, ptr %65, align 4
%179 = fdiv float %178, %177
store float %179, ptr %65, align 4
%180 = load float, ptr %63, align 4
%181 = load ptr, ptr %29, align 8
%182 = load i32, ptr %70, align 4
%183 = sext i32 %182 to i64
%184 = getelementptr inbounds float, ptr %181, i64 %183
store float %180, ptr %184, align 4
%185 = load float, ptr %64, align 4
%186 = load ptr, ptr %31, align 8
%187 = load i32, ptr %70, align 4
%188 = sext i32 %187 to i64
%189 = getelementptr inbounds float, ptr %186, i64 %188
store float %185, ptr %189, align 4
%190 = load float, ptr %65, align 4
%191 = load ptr, ptr %33, align 8
%192 = load i32, ptr %70, align 4
%193 = sext i32 %192 to i64
%194 = getelementptr inbounds float, ptr %191, i64 %193
store float %190, ptr %194, align 4
%195 = load ptr, ptr %35, align 8
%196 = load i32, ptr %70, align 4
%197 = sext i32 %196 to i64
%198 = getelementptr inbounds i32, ptr %195, i64 %197
%199 = load i32, ptr %198, align 4
store i32 %199, ptr %71, align 4
%200 = load i32, ptr %71, align 4
%201 = load i32, ptr %49, align 4
%202 = sdiv i32 %200, %201
%203 = sitofp i32 %202 to float
%204 = load float, ptr %52, align 4
%205 = load float, ptr %54, align 4
%206 = fneg float %205
%207 = call float @llvm.fmuladd.f32(float %203, float %204, float %206)
store float %207, ptr %61, align 4
%208 = load i32, ptr %71, align 4
%209 = load i32, ptr %49, align 4
%210 = srem i32 %208, %209
%211 = sitofp i32 %210 to float
%212 = load float, ptr %53, align 4
%213 = load float, ptr %55, align 4
%214 = fneg float %213
%215 = call float @llvm.fmuladd.f32(float %211, float %212, float %214)
store float %215, ptr %59, align 4
%216 = load float, ptr %56, align 4
store float %216, ptr %60, align 4
%217 = load i32, ptr %48, align 4
%218 = icmp ne i32 %217, 0
br i1 %218, label %219, label %230
219: ; preds = %130
%220 = call float (...) @inkernel_randf()
%221 = call float @llvm.fmuladd.f32(float 4.000000e+00, float %220, float -2.000000e+00)
store float %221, ptr %68, align 4
%222 = call float (...) @inkernel_randf()
%223 = call float @llvm.fmuladd.f32(float 4.000000e+00, float %222, float -2.000000e+00)
store float %223, ptr %69, align 4
%224 = load float, ptr %68, align 4
%225 = load float, ptr %59, align 4
%226 = fadd float %225, %224
store float %226, ptr %59, align 4
%227 = load float, ptr %69, align 4
%228 = load float, ptr %61, align 4
%229 = fadd float %228, %227
store float %229, ptr %61, align 4
br label %230
230: ; preds = %219, %130
%231 = load ptr, ptr %37, align 8
%232 = load i32, ptr %70, align 4
%233 = sext i32 %232 to i64
%234 = getelementptr inbounds i32, ptr %231, i64 %233
%235 = load i32, ptr %234, align 4
%236 = sitofp i32 %235 to float
%237 = fpext float %236 to double
%238 = load i32, ptr %51, align 4
%239 = sitofp i32 %238 to float
%240 = fpext float %239 to double
%241 = fdiv double 0xC01921FB54442A84, %240
%242 = fmul double %237, %241
%243 = fptrunc double %242 to float
store float %243, ptr %62, align 4
%244 = load float, ptr %62, align 4
%245 = call float @cos(float noundef %244)
store float %245, ptr %66, align 4
%246 = load float, ptr %62, align 4
%247 = call float @sin(float noundef %246)
store float %247, ptr %67, align 4
%248 = load float, ptr %59, align 4
%249 = load float, ptr %66, align 4
%250 = load float, ptr %60, align 4
%251 = load float, ptr %67, align 4
%252 = fmul float %250, %251
%253 = fneg float %252
%254 = call float @llvm.fmuladd.f32(float %248, float %249, float %253)
store float %254, ptr %63, align 4
%255 = load float, ptr %59, align 4
%256 = load float, ptr %67, align 4
%257 = load float, ptr %60, align 4
%258 = load float, ptr %66, align 4
%259 = fmul float %257, %258
%260 = call float @llvm.fmuladd.f32(float %255, float %256, float %259)
store float %260, ptr %64, align 4
%261 = load float, ptr %57, align 4
%262 = load float, ptr %63, align 4
%263 = fadd float %262, %261
store float %263, ptr %63, align 4
%264 = load float, ptr %64, align 4
%265 = fneg float %264
%266 = load float, ptr %57, align 4
%267 = fadd float %265, %266
store float %267, ptr %64, align 4
%268 = load float, ptr %61, align 4
%269 = load float, ptr %58, align 4
%270 = fadd float %268, %269
store float %270, ptr %65, align 4
%271 = load float, ptr %45, align 4
%272 = load float, ptr %63, align 4
%273 = fdiv float %272, %271
store float %273, ptr %63, align 4
%274 = load float, ptr %45, align 4
%275 = load float, ptr %64, align 4
%276 = fdiv float %275, %274
store float %276, ptr %64, align 4
%277 = load float, ptr %45, align 4
%278 = load float, ptr %65, align 4
%279 = fdiv float %278, %277
store float %279, ptr %65, align 4
%280 = load float, ptr %63, align 4
%281 = load ptr, ptr %39, align 8
%282 = load i32, ptr %70, align 4
%283 = sext i32 %282 to i64
%284 = getelementptr inbounds float, ptr %281, i64 %283
store float %280, ptr %284, align 4
%285 = load float, ptr %64, align 4
%286 = load ptr, ptr %41, align 8
%287 = load i32, ptr %70, align 4
%288 = sext i32 %287 to i64
%289 = getelementptr inbounds float, ptr %286, i64 %288
store float %285, ptr %289, align 4
%290 = load float, ptr %65, align 4
%291 = load ptr, ptr %43, align 8
%292 = load i32, ptr %70, align 4
%293 = sext i32 %292 to i64
%294 = getelementptr inbounds float, ptr %291, i64 %293
store float %290, ptr %294, align 4
br label %295
295: ; preds = %230
%296 = load i32, ptr %70, align 4
%297 = add nsw i32 %296, 1
store i32 %297, ptr %70, align 4
%298 = load i32, ptr %70, align 4
%299 = load i32, ptr %26, align 4
%300 = icmp slt i32 %298, %299
br i1 %300, label %94, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %295
br label %301
301: ; preds = %._crit_edge, %90
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @srand(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
declare float @inkernel_randf(...) #1
declare float @cos(float noundef) #1
declare float @sin(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" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpdydmq_sz.c'
source_filename = "/tmp/tmpdydmq_sz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [59 x i8] c"Welcome to the Fat Dragon. Type 'help' if you are lost.\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @resh_init() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 (...) @initsigs()
%3 = call i32 (...) @initfds()
%4 = call i32 (...) @initdir()
%5 = call i32 (...) @initenv()
%6 = call i32 (...) @initpasswd()
%7 = call i32 (...) @initnav()
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @initsigs(...) #1
declare i32 @initfds(...) #1
declare i32 @initdir(...) #1
declare i32 @initenv(...) #1
declare i32 @initpasswd(...) #1
declare i32 @initnav(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdydmq_sz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [59 x i8] c"Welcome to the Fat Dragon. Type 'help' if you are lost.\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @resh_init() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 (...) @initsigs()
%3 = call i32 (...) @initfds()
%4 = call i32 (...) @initdir()
%5 = call i32 (...) @initenv()
%6 = call i32 (...) @initpasswd()
%7 = call i32 (...) @initnav()
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @initsigs(...) #1
declare i32 @initfds(...) #1
declare i32 @initdir(...) #1
declare i32 @initenv(...) #1
declare i32 @initpasswd(...) #1
declare i32 @initnav(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzxfs1bxc.c'
source_filename = "/tmp/tmpzxfs1bxc.c"
target datalayout = "e-m:e-p270: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/tmpzxfs1bxc.c"
target datalayout = "e-m:e-p270: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/tmpjh2i8hzi.c'
source_filename = "/tmp/tmpjh2i8hzi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s: \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"Cannot open file\0A\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"Cannot open temporary file\0A\00", align 1
@EOF = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.6 = private unnamed_addr constant [23 x i8] c"No write access to %s\0A\00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c"OK\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %11, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp sle i32 %12, 1
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = call i32 (...) @usage()
br label %16
16: ; preds = %14, %2
store i32 1, ptr %10, align 4
br label %17
17: ; preds = %93, %16
%18 = load i32, ptr %10, align 4
%19 = load i32, ptr %4, align 4
%20 = icmp ult i32 %18, %19
br i1 %20, label %21, label %96
21: ; preds = %17
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %10, align 4
%24 = zext i32 %23 to i64
%25 = getelementptr inbounds ptr, ptr %22, i64 %24
%26 = load ptr, ptr %25, align 8
store ptr %26, ptr %8, align 8
%27 = load ptr, ptr %8, align 8
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %27)
%29 = load ptr, ptr %8, align 8
%30 = call ptr @fopen(ptr noundef %29, ptr noundef @.str.1)
store ptr %30, ptr %6, align 8
%31 = icmp ne ptr %30, null
br i1 %31, label %34, label %32
32: ; preds = %21
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 1, ptr %11, align 4
br label %92
34: ; preds = %21
%35 = call ptr (...) @tmpfile()
store ptr %35, ptr %7, align 8
%36 = icmp ne ptr %35, null
br i1 %36, label %41, label %37
37: ; preds = %34
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%39 = load ptr, ptr %6, align 8
%40 = call i32 @fclose(ptr noundef %39)
store i32 1, ptr %11, align 4
br label %91
41: ; preds = %34
br label %42
42: ; preds = %54, %41
%43 = load ptr, ptr %6, align 8
%44 = call i32 @getc(ptr noundef %43)
store i32 %44, ptr %9, align 4
%45 = load i32, ptr @EOF, align 4
%46 = icmp ne i32 %44, %45
br i1 %46, label %47, label %55
47: ; preds = %42
%48 = load i32, ptr %9, align 4
%49 = icmp ne i32 %48, 13
br i1 %49, label %50, label %54
50: ; preds = %47
%51 = load ptr, ptr %7, align 8
%52 = load i32, ptr %9, align 4
%53 = call i32 @fprintf(ptr noundef %51, ptr noundef @.str.4, i32 noundef %52)
br label %54
54: ; preds = %50, %47
br label %42, !llvm.loop !6
55: ; preds = %42
%56 = load ptr, ptr %7, align 8
%57 = call i32 @fflush(ptr noundef %56)
%58 = load ptr, ptr %7, align 8
%59 = call i32 @rewind(ptr noundef %58)
%60 = load ptr, ptr %6, align 8
%61 = call i32 @fclose(ptr noundef %60)
%62 = load ptr, ptr %8, align 8
%63 = call ptr @fopen(ptr noundef %62, ptr noundef @.str.5)
store ptr %63, ptr %6, align 8
%64 = icmp ne ptr %63, null
br i1 %64, label %70, label %65
65: ; preds = %55
%66 = load ptr, ptr %8, align 8
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %66)
%68 = load ptr, ptr %7, align 8
%69 = call i32 @fclose(ptr noundef %68)
store i32 1, ptr %11, align 4
br label %90
70: ; preds = %55
br label %71
71: ; preds = %83, %70
%72 = load ptr, ptr %7, align 8
%73 = call i32 @getc(ptr noundef %72)
store i32 %73, ptr %9, align 4
%74 = load i32, ptr @EOF, align 4
%75 = icmp ne i32 %73, %74
br i1 %75, label %76, label %84
76: ; preds = %71
%77 = load i32, ptr %9, align 4
%78 = icmp ne i32 %77, 13
br i1 %78, label %79, label %83
79: ; preds = %76
%80 = load ptr, ptr %6, align 8
%81 = load i32, ptr %9, align 4
%82 = call i32 @fprintf(ptr noundef %80, ptr noundef @.str.4, i32 noundef %81)
br label %83
83: ; preds = %79, %76
br label %71, !llvm.loop !8
84: ; preds = %71
%85 = load ptr, ptr %6, align 8
%86 = call i32 @fclose(ptr noundef %85)
%87 = load ptr, ptr %7, align 8
%88 = call i32 @fclose(ptr noundef %87)
%89 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %90
90: ; preds = %84, %65
br label %91
91: ; preds = %90, %37
br label %92
92: ; preds = %91, %32
br label %93
93: ; preds = %92
%94 = load i32, ptr %10, align 4
%95 = add i32 %94, 1
store i32 %95, ptr %10, align 4
br label %17, !llvm.loop !9
96: ; preds = %17
%97 = load i32, ptr %11, align 4
%98 = call i32 @exit(i32 noundef %97) #3
unreachable
}
declare i32 @usage(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare ptr @tmpfile(...) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @getc(ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fflush(ptr noundef) #1
declare i32 @rewind(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjh2i8hzi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s: \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"Cannot open file\0A\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"Cannot open temporary file\0A\00", align 1
@EOF = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.6 = private unnamed_addr constant [23 x i8] c"No write access to %s\0A\00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c"OK\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %11, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp sle i32 %12, 1
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = call i32 (...) @usage()
br label %16
16: ; preds = %14, %2
store i32 1, ptr %10, align 4
%17 = load i32, ptr %10, align 4
%18 = load i32, ptr %4, align 4
%19 = icmp ult i32 %17, %18
br i1 %19, label %.lr.ph5, label %104
.lr.ph5: ; preds = %16
br label %20
20: ; preds = %.lr.ph5, %98
%21 = load ptr, ptr %5, align 8
%22 = load i32, ptr %10, align 4
%23 = zext i32 %22 to i64
%24 = getelementptr inbounds ptr, ptr %21, i64 %23
%25 = load ptr, ptr %24, align 8
store ptr %25, ptr %8, align 8
%26 = load ptr, ptr %8, align 8
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %26)
%28 = load ptr, ptr %8, align 8
%29 = call ptr @fopen(ptr noundef %28, ptr noundef @.str.1)
store ptr %29, ptr %6, align 8
%30 = icmp ne ptr %29, null
br i1 %30, label %33, label %31
31: ; preds = %20
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 1, ptr %11, align 4
br label %97
33: ; preds = %20
%34 = call ptr (...) @tmpfile()
store ptr %34, ptr %7, align 8
%35 = icmp ne ptr %34, null
br i1 %35, label %40, label %36
36: ; preds = %33
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%38 = load ptr, ptr %6, align 8
%39 = call i32 @fclose(ptr noundef %38)
store i32 1, ptr %11, align 4
br label %96
40: ; preds = %33
%41 = load ptr, ptr %6, align 8
%42 = call i32 @getc(ptr noundef %41)
store i32 %42, ptr %9, align 4
%43 = load i32, ptr @EOF, align 4
%44 = icmp ne i32 %42, %43
br i1 %44, label %.lr.ph, label %57
.lr.ph: ; preds = %40
br label %45
45: ; preds = %.lr.ph, %52
%46 = load i32, ptr %9, align 4
%47 = icmp ne i32 %46, 13
br i1 %47, label %48, label %52
48: ; preds = %45
%49 = load ptr, ptr %7, align 8
%50 = load i32, ptr %9, align 4
%51 = call i32 @fprintf(ptr noundef %49, ptr noundef @.str.4, i32 noundef %50)
br label %52
52: ; preds = %48, %45
%53 = load ptr, ptr %6, align 8
%54 = call i32 @getc(ptr noundef %53)
store i32 %54, ptr %9, align 4
%55 = load i32, ptr @EOF, align 4
%56 = icmp ne i32 %54, %55
br i1 %56, label %45, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %52
br label %57
57: ; preds = %._crit_edge, %40
%58 = load ptr, ptr %7, align 8
%59 = call i32 @fflush(ptr noundef %58)
%60 = load ptr, ptr %7, align 8
%61 = call i32 @rewind(ptr noundef %60)
%62 = load ptr, ptr %6, align 8
%63 = call i32 @fclose(ptr noundef %62)
%64 = load ptr, ptr %8, align 8
%65 = call ptr @fopen(ptr noundef %64, ptr noundef @.str.5)
store ptr %65, ptr %6, align 8
%66 = icmp ne ptr %65, null
br i1 %66, label %72, label %67
67: ; preds = %57
%68 = load ptr, ptr %8, align 8
%69 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %68)
%70 = load ptr, ptr %7, align 8
%71 = call i32 @fclose(ptr noundef %70)
store i32 1, ptr %11, align 4
br label %95
72: ; preds = %57
%73 = load ptr, ptr %7, align 8
%74 = call i32 @getc(ptr noundef %73)
store i32 %74, ptr %9, align 4
%75 = load i32, ptr @EOF, align 4
%76 = icmp ne i32 %74, %75
br i1 %76, label %.lr.ph2, label %89
.lr.ph2: ; preds = %72
br label %77
77: ; preds = %.lr.ph2, %84
%78 = load i32, ptr %9, align 4
%79 = icmp ne i32 %78, 13
br i1 %79, label %80, label %84
80: ; preds = %77
%81 = load ptr, ptr %6, align 8
%82 = load i32, ptr %9, align 4
%83 = call i32 @fprintf(ptr noundef %81, ptr noundef @.str.4, i32 noundef %82)
br label %84
84: ; preds = %80, %77
%85 = load ptr, ptr %7, align 8
%86 = call i32 @getc(ptr noundef %85)
store i32 %86, ptr %9, align 4
%87 = load i32, ptr @EOF, align 4
%88 = icmp ne i32 %86, %87
br i1 %88, label %77, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %84
br label %89
89: ; preds = %._crit_edge3, %72
%90 = load ptr, ptr %6, align 8
%91 = call i32 @fclose(ptr noundef %90)
%92 = load ptr, ptr %7, align 8
%93 = call i32 @fclose(ptr noundef %92)
%94 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %95
95: ; preds = %89, %67
br label %96
96: ; preds = %95, %36
br label %97
97: ; preds = %96, %31
br label %98
98: ; preds = %97
%99 = load i32, ptr %10, align 4
%100 = add i32 %99, 1
store i32 %100, ptr %10, align 4
%101 = load i32, ptr %10, align 4
%102 = load i32, ptr %4, align 4
%103 = icmp ult i32 %101, %102
br i1 %103, label %20, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %98
br label %104
104: ; preds = %._crit_edge6, %16
%105 = load i32, ptr %11, align 4
%106 = call i32 @exit(i32 noundef %105) #3
unreachable
}
declare i32 @usage(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare ptr @tmpfile(...) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @getc(ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @fflush(ptr noundef) #1
declare i32 @rewind(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpyc1l8a19.c'
source_filename = "/tmp/tmpyc1l8a19.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"/var/lib/update-notifier/user.d\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"chdir\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"chroot\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call i64 @chdir(ptr noundef @.str)
%8 = icmp slt i64 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = call i32 @perror(ptr noundef @.str.1)
%11 = call i32 @exit(i32 noundef 1) #3
unreachable
12: ; preds = %2
%13 = call i64 @chroot(ptr noundef @.str)
%14 = icmp slt i64 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %12
%16 = call i32 @perror(ptr noundef @.str.2)
%17 = call i32 @exit(i32 noundef 1) #3
unreachable
18: ; preds = %12
store i32 1, ptr %6, align 4
br label %19
19: ; preds = %30, %18
%20 = load i32, ptr %6, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %33
23: ; preds = %19
%24 = load ptr, ptr %5, align 8
%25 = load i32, ptr %6, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %24, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = call i32 @unlink(ptr noundef %28)
br label %30
30: ; preds = %23
%31 = load i32, ptr %6, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %6, align 4
br label %19, !llvm.loop !6
33: ; preds = %19
%34 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i64 @chdir(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @chroot(ptr noundef) #1
declare i32 @unlink(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyc1l8a19.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"/var/lib/update-notifier/user.d\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"chdir\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"chroot\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call i64 @chdir(ptr noundef @.str)
%8 = icmp slt i64 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = call i32 @perror(ptr noundef @.str.1)
%11 = call i32 @exit(i32 noundef 1) #3
unreachable
12: ; preds = %2
%13 = call i64 @chroot(ptr noundef @.str)
%14 = icmp slt i64 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %12
%16 = call i32 @perror(ptr noundef @.str.2)
%17 = call i32 @exit(i32 noundef 1) #3
unreachable
18: ; preds = %12
store i32 1, ptr %6, align 4
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %.lr.ph, label %35
.lr.ph: ; preds = %18
br label %22
22: ; preds = %.lr.ph, %29
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %6, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %23, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = call i32 @unlink(ptr noundef %27)
br label %29
29: ; preds = %22
%30 = load i32, ptr %6, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %6, align 4
%32 = load i32, ptr %6, align 4
%33 = load i32, ptr %4, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %35
35: ; preds = %._crit_edge, %18
%36 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i64 @chdir(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @chroot(ptr noundef) #1
declare i32 @unlink(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpq0wba2wu.c'
source_filename = "/tmp/tmpq0wba2wu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @count_shift(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%7 = load i32, ptr %3, align 4
%8 = sub nsw i32 %7, 2
store i32 %8, ptr %3, align 4
store i32 7, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %9
9: ; preds = %31, %2
%10 = load i32, ptr %3, align 4
%11 = icmp sge i32 %10, 0
br i1 %11, label %12, label %36
12: ; preds = %9
%13 = load i32, ptr %6, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %4, align 4
%16 = load i32, ptr %3, align 4
%17 = ashr i32 %15, %16
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %31
19: ; preds = %12
%20 = load i32, ptr %5, align 4
%21 = sub nsw i32 %20, 1
%22 = shl i32 1, %21
%23 = sub nsw i32 %22, 1
%24 = load i32, ptr %6, align 4
%25 = add nsw i32 %24, %23
store i32 %25, ptr %6, align 4
%26 = load i32, ptr %3, align 4
%27 = shl i32 1, %26
%28 = xor i32 %27, -1
%29 = load i32, ptr %4, align 4
%30 = and i32 %29, %28
store i32 %30, ptr %4, align 4
br label %31
31: ; preds = %19, %12
%32 = load i32, ptr %3, align 4
%33 = add nsw i32 %32, -1
store i32 %33, ptr %3, align 4
%34 = load i32, ptr %5, align 4
%35 = add nsw i32 %34, -1
store i32 %35, ptr %5, align 4
br label %9, !llvm.loop !6
36: ; preds = %9
%37 = load i32, ptr %6, align 4
ret i32 %37
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpq0wba2wu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @count_shift(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%7 = load i32, ptr %3, align 4
%8 = sub nsw i32 %7, 2
store i32 %8, ptr %3, align 4
store i32 7, ptr %5, align 4
store i32 0, ptr %6, align 4
%9 = load i32, ptr %3, align 4
%10 = icmp sge i32 %9, 0
br i1 %10, label %.lr.ph, label %37
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %30
%12 = load i32, ptr %6, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %6, align 4
%14 = load i32, ptr %4, align 4
%15 = load i32, ptr %3, align 4
%16 = ashr i32 %14, %15
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %30
18: ; preds = %11
%19 = load i32, ptr %5, align 4
%20 = sub nsw i32 %19, 1
%21 = shl i32 1, %20
%22 = sub nsw i32 %21, 1
%23 = load i32, ptr %6, align 4
%24 = add nsw i32 %23, %22
store i32 %24, ptr %6, align 4
%25 = load i32, ptr %3, align 4
%26 = shl i32 1, %25
%27 = xor i32 %26, -1
%28 = load i32, ptr %4, align 4
%29 = and i32 %28, %27
store i32 %29, ptr %4, align 4
br label %30
30: ; preds = %18, %11
%31 = load i32, ptr %3, align 4
%32 = add nsw i32 %31, -1
store i32 %32, ptr %3, align 4
%33 = load i32, ptr %5, align 4
%34 = add nsw i32 %33, -1
store i32 %34, ptr %5, align 4
%35 = load i32, ptr %3, align 4
%36 = icmp sge i32 %35, 0
br i1 %36, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %37
37: ; preds = %._crit_edge, %2
%38 = load i32, ptr %6, align 4
ret i32 %38
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_y0yyyaj.c'
source_filename = "/tmp/tmp_y0yyyaj.c"
target datalayout = "e-m:e-p270: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/tmp_y0yyyaj.c"
target datalayout = "e-m:e-p270: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/tmp8flhuiad.c'
source_filename = "/tmp/tmp8flhuiad.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"\0AVirtual Host checking system by Warren Rees\0A\00", align 1
@.str.1 = private unnamed_addr constant [58 x i8] c"Support for reverse dns and dns matching by Matt Watson\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Usage: %s [-amri]\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"\09-a : Show all ips\0A\00", align 1
@.str.4 = private unnamed_addr constant [71 x i8] c"\09-m : Show only ips & hostname with matching forward and reverse dns\0A\00", align 1
@.str.5 = private unnamed_addr constant [63 x i8] c"\09-r : Show only ips that have reverse dns but no forward dns\0A\00", align 1
@.str.6 = private unnamed_addr constant [64 x i8] c"\09-i : Show only non-resolving ips no forward or reverse dns\0A\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 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%5 = load ptr, ptr %2, align 8
%6 = getelementptr inbounds ptr, ptr %5, i64 0
%7 = load ptr, ptr %6, align 8
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %7)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
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/tmp8flhuiad.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"\0AVirtual Host checking system by Warren Rees\0A\00", align 1
@.str.1 = private unnamed_addr constant [58 x i8] c"Support for reverse dns and dns matching by Matt Watson\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Usage: %s [-amri]\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"\09-a : Show all ips\0A\00", align 1
@.str.4 = private unnamed_addr constant [71 x i8] c"\09-m : Show only ips & hostname with matching forward and reverse dns\0A\00", align 1
@.str.5 = private unnamed_addr constant [63 x i8] c"\09-r : Show only ips that have reverse dns but no forward dns\0A\00", align 1
@.str.6 = private unnamed_addr constant [64 x i8] c"\09-i : Show only non-resolving ips no forward or reverse dns\0A\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 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%5 = load ptr, ptr %2, align 8
%6 = getelementptr inbounds ptr, ptr %5, i64 0
%7 = load ptr, ptr %6, align 8
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %7)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
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/tmp_0j6fafi.c'
source_filename = "/tmp/tmp_0j6fafi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"data\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"time_text: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"w\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%11 = call i32 @time(ptr noundef null)
store i32 %11, ptr %3, align 4
%12 = call ptr @ctime(ptr noundef %3)
store ptr %12, ptr %4, align 8
%13 = load ptr, ptr %4, align 8
%14 = call i32 @strlen(ptr noundef %13)
%15 = sext i32 %14 to i64
%16 = mul i64 %15, 1
%17 = trunc i64 %16 to i32
store i32 %17, ptr %5, align 4
%18 = call i32 (...) @fork()
store i32 %18, ptr %6, align 4
%19 = load i32, ptr %6, align 4
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %38
21: ; preds = %0
%22 = load i32, ptr %5, align 4
%23 = call i64 @malloc(i32 noundef %22)
%24 = inttoptr i64 %23 to ptr
store ptr %24, ptr %7, align 8
%25 = call i32 @wait(ptr noundef null)
%26 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %26, ptr %2, align 8
%27 = load ptr, ptr %7, align 8
%28 = load i32, ptr %5, align 4
%29 = load ptr, ptr %2, align 8
%30 = call i32 @fread(ptr noundef %27, i32 noundef %28, i32 noundef 1, ptr noundef %29)
store i32 %30, ptr %8, align 4
%31 = load ptr, ptr %7, align 8
%32 = call i32 @printf(ptr noundef @.str.2, ptr noundef %31)
%33 = load ptr, ptr %2, align 8
%34 = call i32 @close(ptr noundef %33)
%35 = call i32 @remove(ptr noundef @.str)
%36 = load ptr, ptr %7, align 8
%37 = call i32 @free(ptr noundef %36)
store i32 0, ptr %1, align 4
br label %48
38: ; preds = %0
%39 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.3)
store ptr %39, ptr %2, align 8
%40 = call i32 @time(ptr noundef null)
store i32 %40, ptr %9, align 4
%41 = call ptr @ctime(ptr noundef %9)
store ptr %41, ptr %10, align 8
%42 = load ptr, ptr %10, align 8
%43 = load i32, ptr %5, align 4
%44 = load ptr, ptr %2, align 8
%45 = call i32 @fwrite(ptr noundef %42, i32 noundef %43, i32 noundef 1, ptr noundef %44)
%46 = load ptr, ptr %2, align 8
%47 = call i32 @close(ptr noundef %46)
store i32 0, ptr %1, align 4
br label %48
48: ; preds = %38, %21
%49 = load i32, ptr %1, align 4
ret i32 %49
}
declare i32 @time(ptr noundef) #1
declare ptr @ctime(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @fork(...) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @wait(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @close(ptr noundef) #1
declare i32 @remove(ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_0j6fafi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"data\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"time_text: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"w\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%11 = call i32 @time(ptr noundef null)
store i32 %11, ptr %3, align 4
%12 = call ptr @ctime(ptr noundef %3)
store ptr %12, ptr %4, align 8
%13 = load ptr, ptr %4, align 8
%14 = call i32 @strlen(ptr noundef %13)
%15 = sext i32 %14 to i64
%16 = mul i64 %15, 1
%17 = trunc i64 %16 to i32
store i32 %17, ptr %5, align 4
%18 = call i32 (...) @fork()
store i32 %18, ptr %6, align 4
%19 = load i32, ptr %6, align 4
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %38
21: ; preds = %0
%22 = load i32, ptr %5, align 4
%23 = call i64 @malloc(i32 noundef %22)
%24 = inttoptr i64 %23 to ptr
store ptr %24, ptr %7, align 8
%25 = call i32 @wait(ptr noundef null)
%26 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %26, ptr %2, align 8
%27 = load ptr, ptr %7, align 8
%28 = load i32, ptr %5, align 4
%29 = load ptr, ptr %2, align 8
%30 = call i32 @fread(ptr noundef %27, i32 noundef %28, i32 noundef 1, ptr noundef %29)
store i32 %30, ptr %8, align 4
%31 = load ptr, ptr %7, align 8
%32 = call i32 @printf(ptr noundef @.str.2, ptr noundef %31)
%33 = load ptr, ptr %2, align 8
%34 = call i32 @close(ptr noundef %33)
%35 = call i32 @remove(ptr noundef @.str)
%36 = load ptr, ptr %7, align 8
%37 = call i32 @free(ptr noundef %36)
store i32 0, ptr %1, align 4
br label %48
38: ; preds = %0
%39 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.3)
store ptr %39, ptr %2, align 8
%40 = call i32 @time(ptr noundef null)
store i32 %40, ptr %9, align 4
%41 = call ptr @ctime(ptr noundef %9)
store ptr %41, ptr %10, align 8
%42 = load ptr, ptr %10, align 8
%43 = load i32, ptr %5, align 4
%44 = load ptr, ptr %2, align 8
%45 = call i32 @fwrite(ptr noundef %42, i32 noundef %43, i32 noundef 1, ptr noundef %44)
%46 = load ptr, ptr %2, align 8
%47 = call i32 @close(ptr noundef %46)
store i32 0, ptr %1, align 4
br label %48
48: ; preds = %38, %21
%49 = load i32, ptr %1, align 4
ret i32 %49
}
declare i32 @time(ptr noundef) #1
declare ptr @ctime(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @fork(...) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @wait(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @close(ptr noundef) #1
declare i32 @remove(ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsmk__uqa.c'
source_filename = "/tmp/tmpsmk__uqa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @LCD_init() #0 {
%1 = call i32 @delay_ms(i32 noundef 100)
%2 = call i32 @LCD_WriteCommand(i32 noundef 56)
%3 = call i32 @LCD_WriteCommand(i32 noundef 6)
%4 = call i32 @LCD_WriteCommand(i32 noundef 15)
%5 = call i32 @LCD_WriteCommand(i32 noundef 1)
%6 = call i32 @delay_ms(i32 noundef 10)
ret void
}
declare i32 @delay_ms(i32 noundef) #1
declare i32 @LCD_WriteCommand(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/tmpsmk__uqa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @LCD_init() #0 {
%1 = call i32 @delay_ms(i32 noundef 100)
%2 = call i32 @LCD_WriteCommand(i32 noundef 56)
%3 = call i32 @LCD_WriteCommand(i32 noundef 6)
%4 = call i32 @LCD_WriteCommand(i32 noundef 15)
%5 = call i32 @LCD_WriteCommand(i32 noundef 1)
%6 = call i32 @delay_ms(i32 noundef 10)
ret void
}
declare i32 @delay_ms(i32 noundef) #1
declare i32 @LCD_WriteCommand(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/tmpl2fos1gi.c'
source_filename = "/tmp/tmpl2fos1gi.c"
target datalayout = "e-m:e-p270: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/tmpl2fos1gi.c"
target datalayout = "e-m:e-p270: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/tmpta_sb073.c'
source_filename = "/tmp/tmpta_sb073.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"h50%\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @hsplit_window() #0 {
%1 = call i32 @open_window(ptr noundef @.str)
ret void
}
declare i32 @open_window(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpta_sb073.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"h50%\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @hsplit_window() #0 {
%1 = call i32 @open_window(ptr noundef @.str)
ret void
}
declare i32 @open_window(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqiiokrbt.c'
source_filename = "/tmp/tmpqiiokrbt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pad_str(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca [100 x i8], align 16
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
store i32 0, ptr %9, align 4
store i32 0, ptr %8, align 4
br label %10
10: ; preds = %51, %3
%11 = load i32, ptr %8, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp sle i32 %11, %12
br i1 %13, label %14, label %54
14: ; preds = %10
%15 = load i32, ptr %9, align 4
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %29
17: ; preds = %14
%18 = load ptr, ptr %4, align 8
%19 = load i32, ptr %8, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 48
br i1 %24, label %25, label %29
25: ; preds = %17
%26 = load i32, ptr %8, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 %27
store i8 32, ptr %28, align 1
br label %50
29: ; preds = %17, %14
%30 = load i32, ptr %9, align 4
%31 = icmp eq i32 %30, 1
br i1 %31, label %40, label %32
32: ; preds = %29
%33 = load ptr, ptr %4, align 8
%34 = load i32, ptr %8, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = icmp ne i32 %38, 48
br i1 %39, label %40, label %49
40: ; preds = %32, %29
store i32 1, ptr %9, align 4
%41 = load ptr, ptr %4, align 8
%42 = load i32, ptr %8, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %41, i64 %43
%45 = load i8, ptr %44, align 1
%46 = load i32, ptr %8, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 %47
store i8 %45, ptr %48, align 1
br label %49
49: ; preds = %40, %32
br label %50
50: ; preds = %49, %25
br label %51
51: ; preds = %50
%52 = load i32, ptr %8, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %8, align 4
br label %10, !llvm.loop !6
54: ; preds = %10
%55 = load i32, ptr %5, align 4
%56 = sub nsw i32 %55, 1
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 %57
%59 = load i8, ptr %58, align 1
%60 = sext i8 %59 to i32
%61 = icmp eq i32 %60, 32
br i1 %61, label %62, label %66
62: ; preds = %54
%63 = load i32, ptr %5, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 %64
store i8 48, ptr %65, align 1
br label %66
66: ; preds = %62, %54
%67 = load ptr, ptr %6, align 8
%68 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 0
%69 = call i32 @strcpy(ptr noundef %67, ptr noundef %68)
ret void
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqiiokrbt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pad_str(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca [100 x i8], align 16
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
store i32 0, ptr %9, align 4
store i32 0, ptr %8, align 4
%10 = load i32, ptr %8, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp sle i32 %10, %11
br i1 %12, label %.lr.ph, label %56
.lr.ph: ; preds = %3
br label %13
13: ; preds = %.lr.ph, %50
%14 = load i32, ptr %9, align 4
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %28
16: ; preds = %13
%17 = load ptr, ptr %4, align 8
%18 = load i32, ptr %8, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 48
br i1 %23, label %24, label %28
24: ; preds = %16
%25 = load i32, ptr %8, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 %26
store i8 32, ptr %27, align 1
br label %49
28: ; preds = %16, %13
%29 = load i32, ptr %9, align 4
%30 = icmp eq i32 %29, 1
br i1 %30, label %39, label %31
31: ; preds = %28
%32 = load ptr, ptr %4, align 8
%33 = load i32, ptr %8, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp ne i32 %37, 48
br i1 %38, label %39, label %48
39: ; preds = %31, %28
store i32 1, ptr %9, align 4
%40 = load ptr, ptr %4, align 8
%41 = load i32, ptr %8, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %40, i64 %42
%44 = load i8, ptr %43, align 1
%45 = load i32, ptr %8, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 %46
store i8 %44, ptr %47, align 1
br label %48
48: ; preds = %39, %31
br label %49
49: ; preds = %48, %24
br label %50
50: ; preds = %49
%51 = load i32, ptr %8, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %8, align 4
%53 = load i32, ptr %8, align 4
%54 = load i32, ptr %5, align 4
%55 = icmp sle i32 %53, %54
br i1 %55, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %50
br label %56
56: ; preds = %._crit_edge, %3
%57 = load i32, ptr %5, align 4
%58 = sub nsw i32 %57, 1
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 %59
%61 = load i8, ptr %60, align 1
%62 = sext i8 %61 to i32
%63 = icmp eq i32 %62, 32
br i1 %63, label %64, label %68
64: ; preds = %56
%65 = load i32, ptr %5, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 %66
store i8 48, ptr %67, align 1
br label %68
68: ; preds = %64, %56
%69 = load ptr, ptr %6, align 8
%70 = getelementptr inbounds [100 x i8], ptr %7, i64 0, i64 0
%71 = call i32 @strcpy(ptr noundef %69, ptr noundef %70)
ret void
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmppfh_hk60.c'
source_filename = "/tmp/tmppfh_hk60.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"true\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"false\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp ne i32 %3, 0
%5 = zext i1 %4 to i64
%6 = select i1 %4, ptr @.str.1, ptr @.str.2
%7 = call i32 @printf(ptr noundef @.str, ptr noundef %6)
ret i32 0
}
declare i32 @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/tmppfh_hk60.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"true\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"false\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp ne i32 %3, 0
%5 = zext i1 %4 to i64
%6 = select i1 %4, ptr @.str.1, ptr @.str.2
%7 = call i32 @printf(ptr noundef @.str, ptr noundef %6)
ret i32 0
}
declare i32 @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/tmpbwjgmutl.c'
source_filename = "/tmp/tmpbwjgmutl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_2__ = type { i32, i32 }
%struct.pollfd = type { i64, i32, i32 }
@errno = dso_local global i32 0, align 4
@EINTR = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [23 x i8] c"svc_run: - poll failed\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @svc_run() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
br label %3
3: ; preds = %81, %72, %68, %0
%4 = call ptr (...) @__rpc_thread_svc_max_pollfd()
%5 = load i32, ptr %4, align 4
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %12
7: ; preds = %3
%8 = call ptr (...) @__rpc_thread_svc_pollfd()
%9 = load ptr, ptr %8, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %12
11: ; preds = %7
br label %82
12: ; preds = %7, %3
%13 = call ptr (...) @__rpc_thread_svc_max_pollfd()
%14 = load i32, ptr %13, align 4
%15 = sext i32 %14 to i64
%16 = mul i64 16, %15
%17 = trunc i64 %16 to i32
%18 = call ptr @malloc(i32 noundef %17)
store ptr %18, ptr %2, align 8
store i32 0, ptr %1, align 4
br label %19
19: ; preds = %54, %12
%20 = load i32, ptr %1, align 4
%21 = call ptr (...) @__rpc_thread_svc_max_pollfd()
%22 = load i32, ptr %21, align 4
%23 = icmp slt i32 %20, %22
br i1 %23, label %24, label %57
24: ; preds = %19
%25 = call ptr (...) @__rpc_thread_svc_pollfd()
%26 = load ptr, ptr %25, align 8
%27 = load i32, ptr %1, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds %struct.TYPE_2__, ptr %26, i64 %28
%30 = getelementptr inbounds %struct.TYPE_2__, ptr %29, i32 0, i32 1
%31 = load i32, ptr %30, align 4
%32 = load ptr, ptr %2, align 8
%33 = load i32, ptr %1, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds %struct.pollfd, ptr %32, i64 %34
%36 = getelementptr inbounds %struct.pollfd, ptr %35, i32 0, i32 2
store i32 %31, ptr %36, align 4
%37 = call ptr (...) @__rpc_thread_svc_pollfd()
%38 = load ptr, ptr %37, align 8
%39 = load i32, ptr %1, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds %struct.TYPE_2__, ptr %38, i64 %40
%42 = getelementptr inbounds %struct.TYPE_2__, ptr %41, i32 0, i32 0
%43 = load i32, ptr %42, align 4
%44 = load ptr, ptr %2, align 8
%45 = load i32, ptr %1, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds %struct.pollfd, ptr %44, i64 %46
%48 = getelementptr inbounds %struct.pollfd, ptr %47, i32 0, i32 1
store i32 %43, ptr %48, align 8
%49 = load ptr, ptr %2, align 8
%50 = load i32, ptr %1, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds %struct.pollfd, ptr %49, i64 %51
%53 = getelementptr inbounds %struct.pollfd, ptr %52, i32 0, i32 0
store i64 0, ptr %53, align 8
br label %54
54: ; preds = %24
%55 = load i32, ptr %1, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %1, align 4
br label %19, !llvm.loop !6
57: ; preds = %19
%58 = load ptr, ptr %2, align 8
%59 = call ptr (...) @__rpc_thread_svc_max_pollfd()
%60 = load i32, ptr %59, align 4
%61 = call i32 @poll(ptr noundef %58, i32 noundef %60, i32 noundef -1)
store i32 %61, ptr %1, align 4
switch i32 %61, label %75 [
i32 -1, label %62
i32 0, label %72
]
62: ; preds = %57
%63 = load ptr, ptr %2, align 8
%64 = call i32 @free(ptr noundef %63)
%65 = load i32, ptr @errno, align 4
%66 = load i32, ptr @EINTR, align 4
%67 = icmp eq i32 %65, %66
br i1 %67, label %68, label %69
68: ; preds = %62
br label %3
69: ; preds = %62
%70 = call i32 @_(ptr noundef @.str)
%71 = call i32 @perror(i32 noundef %70)
br label %82
72: ; preds = %57
%73 = load ptr, ptr %2, align 8
%74 = call i32 @free(ptr noundef %73)
br label %3
75: ; preds = %57
%76 = load ptr, ptr %2, align 8
%77 = load i32, ptr %1, align 4
%78 = call i32 @svc_getreq_poll(ptr noundef %76, i32 noundef %77)
%79 = load ptr, ptr %2, align 8
%80 = call i32 @free(ptr noundef %79)
br label %81
81: ; preds = %75
br label %3
82: ; preds = %69, %11
ret void
}
declare ptr @__rpc_thread_svc_max_pollfd(...) #1
declare ptr @__rpc_thread_svc_pollfd(...) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @poll(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @perror(i32 noundef) #1
declare i32 @_(ptr noundef) #1
declare i32 @svc_getreq_poll(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/tmpbwjgmutl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_2__ = type { i32, i32 }
%struct.pollfd = type { i64, i32, i32 }
@errno = dso_local global i32 0, align 4
@EINTR = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [23 x i8] c"svc_run: - poll failed\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @svc_run() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
br label %3
3: ; preds = %.backedge, %0
%4 = call ptr (...) @__rpc_thread_svc_max_pollfd()
%5 = load i32, ptr %4, align 4
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %12
7: ; preds = %3
%8 = call ptr (...) @__rpc_thread_svc_pollfd()
%9 = load ptr, ptr %8, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %12
11: ; preds = %7
br label %85
12: ; preds = %7, %3
%13 = call ptr (...) @__rpc_thread_svc_max_pollfd()
%14 = load i32, ptr %13, align 4
%15 = sext i32 %14 to i64
%16 = mul i64 16, %15
%17 = trunc i64 %16 to i32
%18 = call ptr @malloc(i32 noundef %17)
store ptr %18, ptr %2, align 8
store i32 0, ptr %1, align 4
%19 = load i32, ptr %1, align 4
%20 = call ptr (...) @__rpc_thread_svc_max_pollfd()
%21 = load i32, ptr %20, align 4
%22 = icmp slt i32 %19, %21
br i1 %22, label %.lr.ph, label %60
.lr.ph: ; preds = %12
br label %23
23: ; preds = %.lr.ph, %53
%24 = call ptr (...) @__rpc_thread_svc_pollfd()
%25 = load ptr, ptr %24, align 8
%26 = load i32, ptr %1, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds %struct.TYPE_2__, ptr %25, i64 %27
%29 = getelementptr inbounds %struct.TYPE_2__, ptr %28, i32 0, i32 1
%30 = load i32, ptr %29, align 4
%31 = load ptr, ptr %2, align 8
%32 = load i32, ptr %1, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds %struct.pollfd, ptr %31, i64 %33
%35 = getelementptr inbounds %struct.pollfd, ptr %34, i32 0, i32 2
store i32 %30, ptr %35, align 4
%36 = call ptr (...) @__rpc_thread_svc_pollfd()
%37 = load ptr, ptr %36, align 8
%38 = load i32, ptr %1, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds %struct.TYPE_2__, ptr %37, i64 %39
%41 = getelementptr inbounds %struct.TYPE_2__, ptr %40, i32 0, i32 0
%42 = load i32, ptr %41, align 4
%43 = load ptr, ptr %2, align 8
%44 = load i32, ptr %1, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds %struct.pollfd, ptr %43, i64 %45
%47 = getelementptr inbounds %struct.pollfd, ptr %46, i32 0, i32 1
store i32 %42, ptr %47, align 8
%48 = load ptr, ptr %2, align 8
%49 = load i32, ptr %1, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds %struct.pollfd, ptr %48, i64 %50
%52 = getelementptr inbounds %struct.pollfd, ptr %51, i32 0, i32 0
store i64 0, ptr %52, align 8
br label %53
53: ; preds = %23
%54 = load i32, ptr %1, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %1, align 4
%56 = load i32, ptr %1, align 4
%57 = call ptr (...) @__rpc_thread_svc_max_pollfd()
%58 = load i32, ptr %57, align 4
%59 = icmp slt i32 %56, %58
br i1 %59, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %53
br label %60
60: ; preds = %._crit_edge, %12
%61 = load ptr, ptr %2, align 8
%62 = call ptr (...) @__rpc_thread_svc_max_pollfd()
%63 = load i32, ptr %62, align 4
%64 = call i32 @poll(ptr noundef %61, i32 noundef %63, i32 noundef -1)
store i32 %64, ptr %1, align 4
switch i32 %64, label %78 [
i32 -1, label %65
i32 0, label %75
]
65: ; preds = %60
%66 = load ptr, ptr %2, align 8
%67 = call i32 @free(ptr noundef %66)
%68 = load i32, ptr @errno, align 4
%69 = load i32, ptr @EINTR, align 4
%70 = icmp eq i32 %68, %69
br i1 %70, label %71, label %72
71: ; preds = %65
br label %.backedge
.backedge: ; preds = %71, %75, %84
br label %3
72: ; preds = %65
%73 = call i32 @_(ptr noundef @.str)
%74 = call i32 @perror(i32 noundef %73)
br label %85
75: ; preds = %60
%76 = load ptr, ptr %2, align 8
%77 = call i32 @free(ptr noundef %76)
br label %.backedge
78: ; preds = %60
%79 = load ptr, ptr %2, align 8
%80 = load i32, ptr %1, align 4
%81 = call i32 @svc_getreq_poll(ptr noundef %79, i32 noundef %80)
%82 = load ptr, ptr %2, align 8
%83 = call i32 @free(ptr noundef %82)
br label %84
84: ; preds = %78
br label %.backedge
85: ; preds = %72, %11
ret void
}
declare ptr @__rpc_thread_svc_max_pollfd(...) #1
declare ptr @__rpc_thread_svc_pollfd(...) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @poll(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @perror(i32 noundef) #1
declare i32 @_(ptr noundef) #1
declare i32 @svc_getreq_poll(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/tmp23asbnwo.c'
source_filename = "/tmp/tmp23asbnwo.c"
target datalayout = "e-m:e-p270: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/tmp23asbnwo.c"
target datalayout = "e-m:e-p270: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/tmpzmmvvj8h.c'
source_filename = "/tmp/tmpzmmvvj8h.c"
target datalayout = "e-m:e-p270: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/tmpzmmvvj8h.c"
target datalayout = "e-m:e-p270: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/tmp8j0lmv8n.c'
source_filename = "/tmp/tmp8j0lmv8n.c"
target datalayout = "e-m:e-p270: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_INET = dso_local global i32 0, align 4
@EAI_NONAME = dso_local global i32 0, align 4
@EAI_OVERFLOW = dso_local global i32 0, align 4
@NI_NAMEREQD = dso_local global i32 0, align 4
@NI_NUMERICHOST = 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/tmp8j0lmv8n.c"
target datalayout = "e-m:e-p270: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_INET = dso_local global i32 0, align 4
@EAI_NONAME = dso_local global i32 0, align 4
@EAI_OVERFLOW = dso_local global i32 0, align 4
@NI_NAMEREQD = dso_local global i32 0, align 4
@NI_NUMERICHOST = 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/tmptn5218f1.c'
source_filename = "/tmp/tmptn5218f1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @srand(i32 noundef 2017)
store i32 10, ptr %2, align 4
br label %5
5: ; preds = %26, %0
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %6, 1000
br i1 %7, label %8, label %31
8: ; preds = %5
store i32 0, ptr %3, align 4
br label %9
9: ; preds = %22, %8
%10 = load i32, ptr %3, align 4
%11 = icmp slt i32 %10, 13
br i1 %11, label %12, label %25
12: ; preds = %9
%13 = load i32, ptr %2, align 4
%14 = load i32, ptr %2, align 4
%15 = mul nsw i32 10, %14
%16 = add nsw i32 2000, %15
%17 = load i32, ptr %3, align 4
%18 = load i32, ptr %2, align 4
%19 = mul nsw i32 %17, %18
%20 = add nsw i32 500, %19
%21 = call i32 @verifica02(i32 noundef %13, i32 noundef %16, i32 noundef %20)
br label %22
22: ; preds = %12
%23 = load i32, ptr %3, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %3, align 4
br label %9, !llvm.loop !6
25: ; preds = %9
br label %26
26: ; preds = %25
%27 = load i32, ptr %2, align 4
%28 = sdiv i32 %27, 2
%29 = load i32, ptr %2, align 4
%30 = add nsw i32 %29, %28
store i32 %30, ptr %2, align 4
br label %5, !llvm.loop !8
31: ; preds = %5
ret i32 0
}
declare i32 @srand(i32 noundef) #1
declare i32 @verifica02(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptn5218f1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @srand(i32 noundef 2017)
store i32 10, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %5, 1000
br i1 %6, label %.lr.ph2, label %33
.lr.ph2: ; preds = %0
br label %7
7: ; preds = %.lr.ph2, %26
store i32 0, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 13
br i1 %9, label %.lr.ph, label %25
.lr.ph: ; preds = %7
br label %10
10: ; preds = %.lr.ph, %20
%11 = load i32, ptr %2, align 4
%12 = load i32, ptr %2, align 4
%13 = mul nsw i32 10, %12
%14 = add nsw i32 2000, %13
%15 = load i32, ptr %3, align 4
%16 = load i32, ptr %2, align 4
%17 = mul nsw i32 %15, %16
%18 = add nsw i32 500, %17
%19 = call i32 @verifica02(i32 noundef %11, i32 noundef %14, i32 noundef %18)
br label %20
20: ; preds = %10
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %3, align 4
%23 = load i32, ptr %3, align 4
%24 = icmp slt i32 %23, 13
br i1 %24, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %25
25: ; preds = %._crit_edge, %7
br label %26
26: ; preds = %25
%27 = load i32, ptr %2, align 4
%28 = sdiv i32 %27, 2
%29 = load i32, ptr %2, align 4
%30 = add nsw i32 %29, %28
store i32 %30, ptr %2, align 4
%31 = load i32, ptr %2, align 4
%32 = icmp slt i32 %31, 1000
br i1 %32, label %7, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %26
br label %33
33: ; preds = %._crit_edge3, %0
ret i32 0
}
declare i32 @srand(i32 noundef) #1
declare i32 @verifica02(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpoggiihkd.c'
source_filename = "/tmp/tmpoggiihkd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i32 }
@.str = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@EPIPE = dso_local global i64 0, align 8
@ECONNRESET = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [28 x i8] c"pixel %x at %.3f took %.3f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @send_packet(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 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 i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca %struct.timeval, align 4
%16 = alloca %struct.timeval, align 4
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i8, align 1
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i32 32768, ptr %10, align 4
%28 = call ptr @llvm.stacksave()
store ptr %28, ptr %11, align 8
%29 = alloca i8, i64 32768, align 16
%30 = alloca i8, i64 32768, align 16
store i32 0, ptr %14, align 4
store i32 0, ptr %20, align 4
store i32 0, ptr %21, align 4
store i32 0, ptr %22, align 4
store i8 -1, ptr %23, align 1
store i32 -1, ptr %24, align 4
store i32 0, ptr %25, align 4
store i32 1, ptr %26, align 4
%31 = load i32, ptr %9, align 4
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %4
store i32 32768, ptr %21, align 4
br label %34
34: ; preds = %33, %4
%35 = call i32 @gettimeofday(ptr noundef %15, ptr noundef null)
%36 = load ptr, ptr %6, align 8
%37 = call ptr @fopen(ptr noundef %36, ptr noundef @.str)
store ptr %37, ptr %12, align 8
%38 = load ptr, ptr %12, align 8
%39 = load i32, ptr %21, align 4
%40 = load i32, ptr @SEEK_SET, align 4
%41 = call i32 @fseek(ptr noundef %38, i32 noundef %39, i32 noundef %40)
%42 = load ptr, ptr %12, align 8
%43 = call i32 @fread(ptr noundef %29, i32 noundef 1, i32 noundef 32768, ptr noundef %42)
%44 = load ptr, ptr %12, align 8
%45 = call i32 @fclose(ptr noundef %44)
%46 = load i32, ptr %8, align 4
%47 = call i32 @write(i32 noundef %46, ptr noundef %29, i32 noundef 32768)
store i32 %47, ptr %14, align 4
%48 = load i32, ptr %14, align 4
%49 = icmp ne i32 %48, 32768
br i1 %49, label %50, label %52
50: ; preds = %34
%51 = load i32, ptr %14, align 4
store i32 %51, ptr %5, align 4
store i32 1, ptr %27, align 4
br label %121
52: ; preds = %34
%53 = load ptr, ptr %7, align 8
%54 = call ptr @fopen(ptr noundef %53, ptr noundef @.str)
store ptr %54, ptr %13, align 8
%55 = load ptr, ptr %13, align 8
%56 = load i32, ptr %21, align 4
%57 = load i32, ptr @SEEK_SET, align 4
%58 = call i32 @fseek(ptr noundef %55, i32 noundef %56, i32 noundef %57)
%59 = load ptr, ptr %13, align 8
%60 = call i32 @fread(ptr noundef %30, i32 noundef 1, i32 noundef 32768, ptr noundef %59)
%61 = load ptr, ptr %13, align 8
%62 = call i32 @fclose(ptr noundef %61)
%63 = load i32, ptr %8, align 4
%64 = call i32 @write(i32 noundef %63, ptr noundef %30, i32 noundef 32768)
store i32 %64, ptr %14, align 4
%65 = load i64, ptr @errno, align 8
%66 = load i64, ptr @EPIPE, align 8
%67 = icmp eq i64 %65, %66
br i1 %67, label %68, label %70
68: ; preds = %52
%69 = load i64, ptr @ECONNRESET, align 8
store i64 %69, ptr @errno, align 8
store i32 -1, ptr %5, align 4
store i32 1, ptr %27, align 4
br label %121
70: ; preds = %52
%71 = load i32, ptr %14, align 4
%72 = icmp ne i32 %71, 32768
br i1 %72, label %73, label %75
73: ; preds = %70
%74 = load i32, ptr %14, align 4
store i32 %74, ptr %5, align 4
store i32 1, ptr %27, align 4
br label %121
75: ; preds = %70
store i32 0, ptr %20, align 4
br label %76
76: ; preds = %94, %75
%77 = load i32, ptr %20, align 4
%78 = icmp slt i32 %77, 32768
br i1 %78, label %79, label %97
79: ; preds = %76
%80 = load i32, ptr %20, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds i8, ptr %30, i64 %81
%83 = load i8, ptr %82, align 1
%84 = sext i8 %83 to i32
%85 = icmp eq i32 %84, 0
br i1 %85, label %86, label %89
86: ; preds = %79
%87 = load i32, ptr %22, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %22, align 4
br label %89
89: ; preds = %86, %79
%90 = load i32, ptr %20, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i8, ptr %30, i64 %91
%93 = load i8, ptr %92, align 1
store i8 %93, ptr %23, align 1
br label %94
94: ; preds = %89
%95 = load i32, ptr %20, align 4
%96 = add nsw i32 %95, 4
store i32 %96, ptr %20, align 4
br label %76, !llvm.loop !6
97: ; preds = %76
%98 = call i32 @gettimeofday(ptr noundef %16, ptr noundef null)
%99 = getelementptr inbounds %struct.timeval, ptr %15, i32 0, i32 0
%100 = load i32, ptr %99, align 4
%101 = sitofp i32 %100 to double
%102 = getelementptr inbounds %struct.timeval, ptr %15, i32 0, i32 1
%103 = load i32, ptr %102, align 4
%104 = sitofp i32 %103 to double
%105 = call double @llvm.fmuladd.f64(double %104, double 0x3EB0C6F7A0B5ED8D, double %101)
store double %105, ptr %17, align 8
%106 = getelementptr inbounds %struct.timeval, ptr %16, i32 0, i32 0
%107 = load i32, ptr %106, align 4
%108 = sitofp i32 %107 to double
%109 = getelementptr inbounds %struct.timeval, ptr %16, i32 0, i32 1
%110 = load i32, ptr %109, align 4
%111 = sitofp i32 %110 to double
%112 = call double @llvm.fmuladd.f64(double %111, double 0x3EB0C6F7A0B5ED8D, double %108)
store double %112, ptr %18, align 8
%113 = getelementptr inbounds i8, ptr %30, i64 0
%114 = load i8, ptr %113, align 16
%115 = load double, ptr %17, align 8
%116 = load double, ptr %18, align 8
%117 = load double, ptr %17, align 8
%118 = fsub double %116, %117
%119 = call i32 (ptr, i8, double, ...) @printf(ptr noundef @.str.1, i8 noundef signext %114, double noundef %115, double noundef %118)
%120 = load i32, ptr %14, align 4
store i32 %120, ptr %5, align 4
store i32 1, ptr %27, align 4
br label %121
121: ; preds = %97, %73, %68, %50
%122 = load ptr, ptr %11, align 8
call void @llvm.stackrestore(ptr %122)
%123 = load i32, ptr %5, align 4
ret i32 %123
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @gettimeofday(ptr noundef, ptr noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2
declare i32 @fclose(ptr noundef) #2
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
declare i32 @printf(ptr noundef, i8 noundef signext, double noundef, ...) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoggiihkd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i32 }
@.str = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@EPIPE = dso_local global i64 0, align 8
@ECONNRESET = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [28 x i8] c"pixel %x at %.3f took %.3f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @send_packet(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 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 i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca %struct.timeval, align 4
%16 = alloca %struct.timeval, align 4
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i8, align 1
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i32 32768, ptr %10, align 4
%28 = call ptr @llvm.stacksave()
store ptr %28, ptr %11, align 8
%29 = alloca i8, i64 32768, align 16
%30 = alloca i8, i64 32768, align 16
store i32 0, ptr %14, align 4
store i32 0, ptr %20, align 4
store i32 0, ptr %21, align 4
store i32 0, ptr %22, align 4
store i8 -1, ptr %23, align 1
store i32 -1, ptr %24, align 4
store i32 0, ptr %25, align 4
store i32 1, ptr %26, align 4
%31 = load i32, ptr %9, align 4
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %4
store i32 32768, ptr %21, align 4
br label %34
34: ; preds = %33, %4
%35 = call i32 @gettimeofday(ptr noundef %15, ptr noundef null)
%36 = load ptr, ptr %6, align 8
%37 = call ptr @fopen(ptr noundef %36, ptr noundef @.str)
store ptr %37, ptr %12, align 8
%38 = load ptr, ptr %12, align 8
%39 = load i32, ptr %21, align 4
%40 = load i32, ptr @SEEK_SET, align 4
%41 = call i32 @fseek(ptr noundef %38, i32 noundef %39, i32 noundef %40)
%42 = load ptr, ptr %12, align 8
%43 = call i32 @fread(ptr noundef %29, i32 noundef 1, i32 noundef 32768, ptr noundef %42)
%44 = load ptr, ptr %12, align 8
%45 = call i32 @fclose(ptr noundef %44)
%46 = load i32, ptr %8, align 4
%47 = call i32 @write(i32 noundef %46, ptr noundef %29, i32 noundef 32768)
store i32 %47, ptr %14, align 4
%48 = load i32, ptr %14, align 4
%49 = icmp ne i32 %48, 32768
br i1 %49, label %50, label %52
50: ; preds = %34
%51 = load i32, ptr %14, align 4
store i32 %51, ptr %5, align 4
store i32 1, ptr %27, align 4
br label %122
52: ; preds = %34
%53 = load ptr, ptr %7, align 8
%54 = call ptr @fopen(ptr noundef %53, ptr noundef @.str)
store ptr %54, ptr %13, align 8
%55 = load ptr, ptr %13, align 8
%56 = load i32, ptr %21, align 4
%57 = load i32, ptr @SEEK_SET, align 4
%58 = call i32 @fseek(ptr noundef %55, i32 noundef %56, i32 noundef %57)
%59 = load ptr, ptr %13, align 8
%60 = call i32 @fread(ptr noundef %30, i32 noundef 1, i32 noundef 32768, ptr noundef %59)
%61 = load ptr, ptr %13, align 8
%62 = call i32 @fclose(ptr noundef %61)
%63 = load i32, ptr %8, align 4
%64 = call i32 @write(i32 noundef %63, ptr noundef %30, i32 noundef 32768)
store i32 %64, ptr %14, align 4
%65 = load i64, ptr @errno, align 8
%66 = load i64, ptr @EPIPE, align 8
%67 = icmp eq i64 %65, %66
br i1 %67, label %68, label %70
68: ; preds = %52
%69 = load i64, ptr @ECONNRESET, align 8
store i64 %69, ptr @errno, align 8
store i32 -1, ptr %5, align 4
store i32 1, ptr %27, align 4
br label %122
70: ; preds = %52
%71 = load i32, ptr %14, align 4
%72 = icmp ne i32 %71, 32768
br i1 %72, label %73, label %75
73: ; preds = %70
%74 = load i32, ptr %14, align 4
store i32 %74, ptr %5, align 4
store i32 1, ptr %27, align 4
br label %122
75: ; preds = %70
store i32 0, ptr %20, align 4
%76 = load i32, ptr %20, align 4
%77 = icmp slt i32 %76, 32768
br i1 %77, label %.lr.ph, label %98
.lr.ph: ; preds = %75
br label %78
78: ; preds = %.lr.ph, %93
%79 = load i32, ptr %20, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i8, ptr %30, i64 %80
%82 = load i8, ptr %81, align 1
%83 = sext i8 %82 to i32
%84 = icmp eq i32 %83, 0
br i1 %84, label %85, label %88
85: ; preds = %78
%86 = load i32, ptr %22, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %22, align 4
br label %88
88: ; preds = %85, %78
%89 = load i32, ptr %20, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i8, ptr %30, i64 %90
%92 = load i8, ptr %91, align 1
store i8 %92, ptr %23, align 1
br label %93
93: ; preds = %88
%94 = load i32, ptr %20, align 4
%95 = add nsw i32 %94, 4
store i32 %95, ptr %20, align 4
%96 = load i32, ptr %20, align 4
%97 = icmp slt i32 %96, 32768
br i1 %97, label %78, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %93
br label %98
98: ; preds = %._crit_edge, %75
%99 = call i32 @gettimeofday(ptr noundef %16, ptr noundef null)
%100 = getelementptr inbounds %struct.timeval, ptr %15, i32 0, i32 0
%101 = load i32, ptr %100, align 4
%102 = sitofp i32 %101 to double
%103 = getelementptr inbounds %struct.timeval, ptr %15, i32 0, i32 1
%104 = load i32, ptr %103, align 4
%105 = sitofp i32 %104 to double
%106 = call double @llvm.fmuladd.f64(double %105, double 0x3EB0C6F7A0B5ED8D, double %102)
store double %106, ptr %17, align 8
%107 = getelementptr inbounds %struct.timeval, ptr %16, i32 0, i32 0
%108 = load i32, ptr %107, align 4
%109 = sitofp i32 %108 to double
%110 = getelementptr inbounds %struct.timeval, ptr %16, i32 0, i32 1
%111 = load i32, ptr %110, align 4
%112 = sitofp i32 %111 to double
%113 = call double @llvm.fmuladd.f64(double %112, double 0x3EB0C6F7A0B5ED8D, double %109)
store double %113, ptr %18, align 8
%114 = getelementptr inbounds i8, ptr %30, i64 0
%115 = load i8, ptr %114, align 16
%116 = load double, ptr %17, align 8
%117 = load double, ptr %18, align 8
%118 = load double, ptr %17, align 8
%119 = fsub double %117, %118
%120 = call i32 (ptr, i8, double, ...) @printf(ptr noundef @.str.1, i8 noundef signext %115, double noundef %116, double noundef %119)
%121 = load i32, ptr %14, align 4
store i32 %121, ptr %5, align 4
store i32 1, ptr %27, align 4
br label %122
122: ; preds = %98, %73, %68, %50
%123 = load ptr, ptr %11, align 8
call void @llvm.stackrestore(ptr %123)
%124 = load i32, ptr %5, align 4
ret i32 %124
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @gettimeofday(ptr noundef, ptr noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2
declare i32 @fclose(ptr noundef) #2
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
declare i32 @printf(ptr noundef, i8 noundef signext, double noundef, ...) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpk18or0pb.c'
source_filename = "/tmp/tmpk18or0pb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"M40_f(const char *s) is not yet implemented!\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @M40_f(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 (ptr, ...) @debug(ptr noundef @.str)
%4 = load ptr, ptr %2, align 8
%5 = call i32 (ptr, ...) @debug(ptr noundef @.str.1, ptr noundef %4)
ret i32 1
}
declare i32 @debug(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk18or0pb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"M40_f(const char *s) is not yet implemented!\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @M40_f(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 (ptr, ...) @debug(ptr noundef @.str)
%4 = load ptr, ptr %2, align 8
%5 = call i32 (ptr, ...) @debug(ptr noundef @.str.1, ptr noundef %4)
ret i32 1
}
declare i32 @debug(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwceobu5x.c'
source_filename = "/tmp/tmpwceobu5x.c"
target datalayout = "e-m:e-p270: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/tmpwceobu5x.c"
target datalayout = "e-m:e-p270: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/tmpz3k6dtw2.c'
source_filename = "/tmp/tmpz3k6dtw2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isbdigit.c\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"isbdigit should be 0 for 0x98\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isbdigit_0x98() #0 {
%1 = call i64 @isbdigit(i32 noundef 152)
%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 765, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isbdigit(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/tmpz3k6dtw2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isbdigit.c\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"isbdigit should be 0 for 0x98\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isbdigit_0x98() #0 {
%1 = call i64 @isbdigit(i32 noundef 152)
%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 765, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isbdigit(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/tmpcnjywtam.c'
source_filename = "/tmp/tmpcnjywtam.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memmove(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%9 = load ptr, ptr %5, align 8
%10 = load i64, ptr %6, align 8
%11 = getelementptr inbounds i32, ptr %9, i64 %10
store ptr %11, ptr %7, align 8
%12 = load ptr, ptr %4, align 8
%13 = load i64, ptr %6, align 8
%14 = getelementptr inbounds i32, ptr %12, i64 %13
store ptr %14, ptr %8, align 8
br label %15
15: ; preds = %19, %3
%16 = load i64, ptr %6, align 8
%17 = add i64 %16, -1
store i64 %17, ptr %6, align 8
%18 = icmp ugt i64 %16, 0
br i1 %18, label %19, label %25
19: ; preds = %15
%20 = load ptr, ptr %7, align 8
%21 = getelementptr inbounds i32, ptr %20, i32 -1
store ptr %21, ptr %7, align 8
%22 = load i32, ptr %20, align 4
%23 = load ptr, ptr %8, align 8
%24 = getelementptr inbounds i32, ptr %23, i32 -1
store ptr %24, ptr %8, align 8
store i32 %22, ptr %23, align 4
br label %15, !llvm.loop !6
25: ; preds = %15
%26 = load ptr, ptr %4, align 8
ret ptr %26
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcnjywtam.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memmove(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%9 = load ptr, ptr %5, align 8
%10 = load i64, ptr %6, align 8
%11 = getelementptr inbounds i32, ptr %9, i64 %10
store ptr %11, ptr %7, align 8
%12 = load ptr, ptr %4, align 8
%13 = load i64, ptr %6, align 8
%14 = getelementptr inbounds i32, ptr %12, i64 %13
store ptr %14, ptr %8, align 8
%15 = load i64, ptr %6, align 8
%16 = add i64 %15, -1
store i64 %16, ptr %6, align 8
%17 = icmp ugt i64 %15, 0
br i1 %17, label %.lr.ph, label %27
.lr.ph: ; preds = %3
br label %18
18: ; preds = %.lr.ph, %18
%19 = load ptr, ptr %7, align 8
%20 = getelementptr inbounds i32, ptr %19, i32 -1
store ptr %20, ptr %7, align 8
%21 = load i32, ptr %19, align 4
%22 = load ptr, ptr %8, align 8
%23 = getelementptr inbounds i32, ptr %22, i32 -1
store ptr %23, ptr %8, align 8
store i32 %21, ptr %22, align 4
%24 = load i64, ptr %6, align 8
%25 = add i64 %24, -1
store i64 %25, ptr %6, align 8
%26 = icmp ugt i64 %24, 0
br i1 %26, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %27
27: ; preds = %._crit_edge, %3
%28 = load ptr, ptr %4, align 8
ret ptr %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 = '/tmp/tmpmjso53aa.c'
source_filename = "/tmp/tmpmjso53aa.c"
target datalayout = "e-m:e-p270: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.x = private unnamed_addr constant [8 x float] [float 1.000000e+00, float -2.000000e+00, float 3.000000e+00, float -4.000000e+00, float 5.000000e+00, float -6.000000e+00, float 7.000000e+00, float -8.000000e+00], align 16
@.str = private unnamed_addr constant [14 x i8] c"x[ %i ] = %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [8 x float], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = 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.x, i64 32, i1 false)
store i32 8, ptr %3, align 4
store i32 1, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = getelementptr inbounds [8 x float], ptr %2, i64 0, i64 0
%8 = load i32, ptr %4, align 4
%9 = call i32 @c_sscal(i32 noundef %6, float noundef 5.000000e+00, ptr noundef %7, i32 noundef %8)
store i32 0, ptr %5, align 4
br label %10
10: ; preds = %20, %0
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %11, 8
br i1 %12, label %13, label %23
13: ; preds = %10
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [8 x float], ptr %2, i64 0, i64 %16
%18 = load float, ptr %17, align 4
%19 = call i32 @printf(ptr noundef @.str, i32 noundef %14, float noundef %18)
br label %20
20: ; preds = %13
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %5, align 4
br label %10, !llvm.loop !6
23: ; preds = %10
%24 = load i32, ptr %1, align 4
ret i32 %24
}
; 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 @c_sscal(i32 noundef, float noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, i32 noundef, float 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/tmpmjso53aa.c"
target datalayout = "e-m:e-p270: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.x = private unnamed_addr constant [8 x float] [float 1.000000e+00, float -2.000000e+00, float 3.000000e+00, float -4.000000e+00, float 5.000000e+00, float -6.000000e+00, float 7.000000e+00, float -8.000000e+00], align 16
@.str = private unnamed_addr constant [14 x i8] c"x[ %i ] = %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [8 x float], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = 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.x, i64 32, i1 false)
store i32 8, ptr %3, align 4
store i32 1, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = getelementptr inbounds [8 x float], ptr %2, i64 0, i64 0
%8 = load i32, ptr %4, align 4
%9 = call i32 @c_sscal(i32 noundef %6, float noundef 5.000000e+00, ptr noundef %7, i32 noundef %8)
store i32 0, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp slt i32 %10, 8
br i1 %11, label %.lr.ph, label %24
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %19
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %5, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [8 x float], ptr %2, i64 0, i64 %15
%17 = load float, ptr %16, align 4
%18 = call i32 @printf(ptr noundef @.str, i32 noundef %13, float noundef %17)
br label %19
19: ; preds = %12
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %5, align 4
%22 = load i32, ptr %5, align 4
%23 = icmp slt i32 %22, 8
br i1 %23, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %24
24: ; preds = %._crit_edge, %0
%25 = load i32, ptr %1, align 4
ret i32 %25
}
; 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 @c_sscal(i32 noundef, float noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, i32 noundef, float 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/tmpx20b6328.c'
source_filename = "/tmp/tmpx20b6328.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Escalate permission from %d to root\0A\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c"modprobe v4l2loopback with uid: %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"modprobe -r v4l2loopback\00", align 1
@.str.3 = private unnamed_addr constant [71 x i8] c"modprobe v4l2loopback card_label=\22V4L2Loopback Video\22 exclusive_caps=1\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"Done\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @getuid()
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %2)
%4 = call i32 @setuid(i32 noundef 0)
%5 = call i32 (...) @getuid()
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %5)
%7 = call i32 @system(ptr noundef @.str.2)
%8 = call i32 @system(ptr noundef @.str.3)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @getuid(...) #1
declare i32 @setuid(i32 noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx20b6328.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Escalate permission from %d to root\0A\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c"modprobe v4l2loopback with uid: %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"modprobe -r v4l2loopback\00", align 1
@.str.3 = private unnamed_addr constant [71 x i8] c"modprobe v4l2loopback card_label=\22V4L2Loopback Video\22 exclusive_caps=1\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"Done\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @getuid()
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %2)
%4 = call i32 @setuid(i32 noundef 0)
%5 = call i32 (...) @getuid()
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %5)
%7 = call i32 @system(ptr noundef @.str.2)
%8 = call i32 @system(ptr noundef @.str.3)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @getuid(...) #1
declare i32 @setuid(i32 noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprwrsphwb.c'
source_filename = "/tmp/tmprwrsphwb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"BFLR\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check_bumpers(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @two_sensor_read(ptr noundef @.str, ptr noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @two_sensor_read(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/tmprwrsphwb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"BFLR\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check_bumpers(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @two_sensor_read(ptr noundef @.str, ptr noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @two_sensor_read(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/tmp6gfq33yz.c'
source_filename = "/tmp/tmp6gfq33yz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"\1B[35m\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @colorMag() #0 {
%1 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1)
ret void
}
declare i32 @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/tmp6gfq33yz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"\1B[35m\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @colorMag() #0 {
%1 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1)
ret void
}
declare i32 @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/tmpmhckk6be.c'
source_filename = "/tmp/tmpmhckk6be.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" \09\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"Watch point added at %d.\0A\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"Watch points cleared.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @debug_command(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr @.str, ptr %8, align 8
%9 = load ptr, ptr %3, align 8
%10 = load ptr, ptr %8, align 8
%11 = call ptr @strtok(ptr noundef %9, ptr noundef %10)
store ptr %11, ptr %6, align 8
%12 = load ptr, ptr %6, align 8
%13 = call i32 @debug_command_code(ptr noundef %12)
store i32 %13, ptr %4, align 4
%14 = load i32, ptr %4, align 4
switch i32 %14, label %217 [
i32 0, label %15
i32 1, label %25
i32 2, label %36
i32 3, label %57
i32 4, label %84
i32 5, label %96
i32 8, label %108
i32 9, label %110
i32 11, label %112
i32 12, label %114
i32 13, label %116
i32 14, label %118
i32 15, label %120
i32 6, label %122
i32 19, label %134
i32 7, label %136
i32 10, label %148
i32 18, label %150
i32 16, label %152
i32 17, label %154
i32 20, label %156
i32 21, label %169
i32 22, label %181
i32 23, label %197
i32 24, label %200
i32 25, label %202
i32 27, label %215
]
15: ; preds = %1
%16 = load ptr, ptr %8, align 8
%17 = call ptr @strtok(ptr noundef null, ptr noundef %16)
store ptr %17, ptr %5, align 8
%18 = load ptr, ptr %5, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %20, label %24
20: ; preds = %15
%21 = load ptr, ptr %5, align 8
%22 = call i32 @atoi(ptr noundef %21)
%23 = call i32 @debug_skip_n(i32 noundef %22, i32 noundef 0)
br label %24
24: ; preds = %20, %15
store i32 1, ptr %2, align 4
br label %221
25: ; preds = %1
%26 = load ptr, ptr %8, align 8
%27 = call ptr @strtok(ptr noundef null, ptr noundef %26)
store ptr %27, ptr %5, align 8
%28 = load ptr, ptr %5, align 8
%29 = icmp ne ptr %28, null
br i1 %29, label %30, label %34
30: ; preds = %25
%31 = load ptr, ptr %5, align 8
%32 = call i32 @atoi(ptr noundef %31)
%33 = call i32 @debug_skip_n(i32 noundef %32, i32 noundef 1)
br label %34
34: ; preds = %30, %25
%35 = call i32 (...) @debug_deactivate()
store i32 1, ptr %2, align 4
br label %221
36: ; preds = %1
%37 = load ptr, ptr %8, align 8
%38 = call ptr @strtok(ptr noundef null, ptr noundef %37)
store ptr %38, ptr %5, align 8
%39 = load ptr, ptr %5, align 8
%40 = icmp ne ptr %39, null
br i1 %40, label %43, label %41
41: ; preds = %36
%42 = call i32 (...) @debug_display_all_registers()
br label %56
43: ; preds = %36
%44 = load ptr, ptr %8, align 8
%45 = call ptr @strtok(ptr noundef null, ptr noundef %44)
store ptr %45, ptr %7, align 8
%46 = load ptr, ptr %7, align 8
%47 = icmp ne ptr %46, null
br i1 %47, label %51, label %48
48: ; preds = %43
%49 = load ptr, ptr %5, align 8
%50 = call i32 @debug_display_register(ptr noundef %49)
br label %55
51: ; preds = %43
%52 = load ptr, ptr %5, align 8
%53 = load ptr, ptr %7, align 8
%54 = call i32 @debug_display_range_reg(ptr noundef %52, ptr noundef %53)
br label %55
55: ; preds = %51, %48
br label %56
56: ; preds = %55, %41
br label %220
57: ; preds = %1
%58 = load ptr, ptr %8, align 8
%59 = call ptr @strtok(ptr noundef null, ptr noundef %58)
store ptr %59, ptr %5, align 8
%60 = load ptr, ptr %5, align 8
%61 = icmp ne ptr %60, null
br i1 %61, label %65, label %62
62: ; preds = %57
%63 = load ptr, ptr %3, align 8
%64 = call i32 @debug_invalid_cmd(ptr noundef %63)
br label %83
65: ; preds = %57
%66 = load ptr, ptr %8, align 8
%67 = call ptr @strtok(ptr noundef null, ptr noundef %66)
store ptr %67, ptr %7, align 8
%68 = load ptr, ptr %7, align 8
%69 = icmp ne ptr %68, null
br i1 %69, label %76, label %70
70: ; preds = %65
%71 = load ptr, ptr %5, align 8
%72 = call i32 @atoi(ptr noundef %71)
%73 = load ptr, ptr %5, align 8
%74 = call i32 @atoi(ptr noundef %73)
%75 = call i32 @debug_display_mem_range(i32 noundef %72, i32 noundef %74)
br label %82
76: ; preds = %65
%77 = load ptr, ptr %5, align 8
%78 = call i32 @atoi(ptr noundef %77)
%79 = load ptr, ptr %7, align 8
%80 = call i32 @atoi(ptr noundef %79)
%81 = call i32 @debug_display_mem_range(i32 noundef %78, i32 noundef %80)
br label %82
82: ; preds = %76, %70
br label %83
83: ; preds = %82, %62
br label %220
84: ; preds = %1
%85 = load ptr, ptr %8, align 8
%86 = call ptr @strtok(ptr noundef null, ptr noundef %85)
store ptr %86, ptr %5, align 8
%87 = load ptr, ptr %5, align 8
%88 = icmp ne ptr %87, null
br i1 %88, label %91, label %89
89: ; preds = %84
%90 = call i32 (...) @debug_display_pcb()
br label %95
91: ; preds = %84
%92 = load ptr, ptr %5, align 8
%93 = call i32 @atoi(ptr noundef %92)
%94 = call i32 @debug_display_pcb_pid(i32 noundef %93)
br label %95
95: ; preds = %91, %89
br label %220
96: ; preds = %1
%97 = load ptr, ptr %8, align 8
%98 = call ptr @strtok(ptr noundef null, ptr noundef %97)
store ptr %98, ptr %5, align 8
%99 = load ptr, ptr %5, align 8
%100 = icmp ne ptr %99, null
br i1 %100, label %103, label %101
101: ; preds = %96
%102 = call i32 (...) @debug_display_pt_ptbr()
br label %107
103: ; preds = %96
%104 = load ptr, ptr %5, align 8
%105 = call i32 @atoi(ptr noundef %104)
%106 = call i32 @debug_display_pt_pid(i32 noundef %105)
br label %107
107: ; preds = %103, %101
br label %220
108: ; preds = %1
%109 = call i32 (...) @debug_display_ft()
br label %220
110: ; preds = %1
%111 = call i32 (...) @debug_display_st()
br label %220
112: ; preds = %1
%113 = call i32 (...) @debug_display_fst()
br label %220
114: ; preds = %1
%115 = call i32 (...) @debug_display_dst()
br label %220
116: ; preds = %1
%117 = call i32 (...) @debug_display_sst()
br label %220
118: ; preds = %1
%119 = call i32 (...) @debug_display_tst()
br label %220
120: ; preds = %1
%121 = call i32 (...) @debug_display_bt()
br label %220
122: ; preds = %1
%123 = load ptr, ptr %8, align 8
%124 = call ptr @strtok(ptr noundef null, ptr noundef %123)
store ptr %124, ptr %5, align 8
%125 = load ptr, ptr %5, align 8
%126 = icmp ne ptr %125, null
br i1 %126, label %129, label %127
127: ; preds = %122
%128 = call i32 (...) @debug_display_dmt()
br label %133
129: ; preds = %122
%130 = load ptr, ptr %5, align 8
%131 = call i32 @atoi(ptr noundef %130)
%132 = call i32 @debug_dmt_pid(i32 noundef %131)
br label %133
133: ; preds = %129, %127
br label %220
134: ; preds = %1
%135 = call i32 (...) @debug_display_rf()
br label %220
136: ; preds = %1
%137 = load ptr, ptr %8, align 8
%138 = call ptr @strtok(ptr noundef null, ptr noundef %137)
store ptr %138, ptr %5, align 8
%139 = load ptr, ptr %5, align 8
%140 = icmp ne ptr %139, null
br i1 %140, label %143, label %141
141: ; preds = %136
%142 = call i32 (...) @debug_display_rt()
br label %147
143: ; preds = %136
%144 = load ptr, ptr %5, align 8
%145 = call i32 @atoi(ptr noundef %144)
%146 = call i32 @debug_rt_pid(i32 noundef %145)
br label %147
147: ; preds = %143, %141
br label %220
148: ; preds = %1
%149 = call i32 (...) @debug_display_memlist()
br label %220
150: ; preds = %1
%151 = call i32 (...) @debug_display_dfl()
br label %220
152: ; preds = %1
%153 = call i32 (...) @debug_display_inodetable()
br label %220
154: ; preds = %1
%155 = call i32 (...) @debug_display_usertable()
br label %220
156: ; preds = %1
%157 = load ptr, ptr %8, align 8
%158 = call ptr @strtok(ptr noundef null, ptr noundef %157)
store ptr %158, ptr %5, align 8
%159 = load ptr, ptr %5, align 8
%160 = icmp ne ptr %159, null
br i1 %160, label %164, label %161
161: ; preds = %156
%162 = load ptr, ptr %3, align 8
%163 = call i32 @debug_invalid_cmd(ptr noundef %162)
br label %168
164: ; preds = %156
%165 = load ptr, ptr %5, align 8
%166 = call i32 @atoi(ptr noundef %165)
%167 = call i32 @debug_display_location(i32 noundef %166)
br label %168
168: ; preds = %164, %161
br label %220
169: ; preds = %1
%170 = load ptr, ptr %8, align 8
%171 = call ptr @strtok(ptr noundef null, ptr noundef %170)
store ptr %171, ptr %5, align 8
%172 = load ptr, ptr %5, align 8
%173 = icmp ne ptr %172, null
br i1 %173, label %177, label %174
174: ; preds = %169
%175 = load ptr, ptr %3, align 8
%176 = call i32 @debug_invalid_cmd(ptr noundef %175)
br label %180
177: ; preds = %169
%178 = load ptr, ptr %5, align 8
%179 = call i32 @debug_display_val(ptr noundef %178)
br label %180
180: ; preds = %177, %174
br label %220
181: ; preds = %1
%182 = load ptr, ptr %8, align 8
%183 = call ptr @strtok(ptr noundef null, ptr noundef %182)
store ptr %183, ptr %5, align 8
%184 = load ptr, ptr %5, align 8
%185 = icmp ne ptr %184, null
br i1 %185, label %189, label %186
186: ; preds = %181
%187 = load ptr, ptr %3, align 8
%188 = call i32 @debug_invalid_cmd(ptr noundef %187)
br label %196
189: ; preds = %181
%190 = load ptr, ptr %5, align 8
%191 = call i32 @atoi(ptr noundef %190)
%192 = call i32 @debug_watch_add(i32 noundef %191)
%193 = load ptr, ptr %5, align 8
%194 = call i32 @atoi(ptr noundef %193)
%195 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %194)
br label %196
196: ; preds = %189, %186
br label %220
197: ; preds = %1
%198 = call i32 (...) @debug_watch_clear()
%199 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %220
200: ; preds = %1
%201 = call i32 (...) @debug_display_list()
br label %220
202: ; preds = %1
%203 = load ptr, ptr %8, align 8
%204 = call ptr @strtok(ptr noundef null, ptr noundef %203)
store ptr %204, ptr %5, align 8
%205 = load ptr, ptr %5, align 8
%206 = icmp ne ptr %205, null
br i1 %206, label %210, label %207
207: ; preds = %202
%208 = load ptr, ptr %3, align 8
%209 = call i32 @debug_invalid_cmd(ptr noundef %208)
br label %214
210: ; preds = %202
%211 = load ptr, ptr %5, align 8
%212 = call i32 @atoi(ptr noundef %211)
%213 = call i32 @debug_display_page(i32 noundef %212)
br label %214
214: ; preds = %210, %207
br label %220
215: ; preds = %1
%216 = call i32 (...) @debug_display_help()
br label %220
217: ; preds = %1
%218 = load ptr, ptr %3, align 8
%219 = call i32 @debug_invalid_cmd(ptr noundef %218)
br label %220
220: ; preds = %217, %215, %214, %200, %197, %196, %180, %168, %154, %152, %150, %148, %147, %134, %133, %120, %118, %116, %114, %112, %110, %108, %107, %95, %83, %56
store i32 0, ptr %2, align 4
br label %221
221: ; preds = %220, %34, %24
%222 = load i32, ptr %2, align 4
ret i32 %222
}
declare ptr @strtok(ptr noundef, ptr noundef) #1
declare i32 @debug_command_code(ptr noundef) #1
declare i32 @debug_skip_n(i32 noundef, i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @debug_deactivate(...) #1
declare i32 @debug_display_all_registers(...) #1
declare i32 @debug_display_register(ptr noundef) #1
declare i32 @debug_display_range_reg(ptr noundef, ptr noundef) #1
declare i32 @debug_invalid_cmd(ptr noundef) #1
declare i32 @debug_display_mem_range(i32 noundef, i32 noundef) #1
declare i32 @debug_display_pcb(...) #1
declare i32 @debug_display_pcb_pid(i32 noundef) #1
declare i32 @debug_display_pt_ptbr(...) #1
declare i32 @debug_display_pt_pid(i32 noundef) #1
declare i32 @debug_display_ft(...) #1
declare i32 @debug_display_st(...) #1
declare i32 @debug_display_fst(...) #1
declare i32 @debug_display_dst(...) #1
declare i32 @debug_display_sst(...) #1
declare i32 @debug_display_tst(...) #1
declare i32 @debug_display_bt(...) #1
declare i32 @debug_display_dmt(...) #1
declare i32 @debug_dmt_pid(i32 noundef) #1
declare i32 @debug_display_rf(...) #1
declare i32 @debug_display_rt(...) #1
declare i32 @debug_rt_pid(i32 noundef) #1
declare i32 @debug_display_memlist(...) #1
declare i32 @debug_display_dfl(...) #1
declare i32 @debug_display_inodetable(...) #1
declare i32 @debug_display_usertable(...) #1
declare i32 @debug_display_location(i32 noundef) #1
declare i32 @debug_display_val(ptr noundef) #1
declare i32 @debug_watch_add(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @debug_watch_clear(...) #1
declare i32 @debug_display_list(...) #1
declare i32 @debug_display_page(i32 noundef) #1
declare i32 @debug_display_help(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmhckk6be.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" \09\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"Watch point added at %d.\0A\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"Watch points cleared.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @debug_command(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr @.str, ptr %8, align 8
%9 = load ptr, ptr %3, align 8
%10 = load ptr, ptr %8, align 8
%11 = call ptr @strtok(ptr noundef %9, ptr noundef %10)
store ptr %11, ptr %6, align 8
%12 = load ptr, ptr %6, align 8
%13 = call i32 @debug_command_code(ptr noundef %12)
store i32 %13, ptr %4, align 4
%14 = load i32, ptr %4, align 4
switch i32 %14, label %217 [
i32 0, label %15
i32 1, label %25
i32 2, label %36
i32 3, label %57
i32 4, label %84
i32 5, label %96
i32 8, label %108
i32 9, label %110
i32 11, label %112
i32 12, label %114
i32 13, label %116
i32 14, label %118
i32 15, label %120
i32 6, label %122
i32 19, label %134
i32 7, label %136
i32 10, label %148
i32 18, label %150
i32 16, label %152
i32 17, label %154
i32 20, label %156
i32 21, label %169
i32 22, label %181
i32 23, label %197
i32 24, label %200
i32 25, label %202
i32 27, label %215
]
15: ; preds = %1
%16 = load ptr, ptr %8, align 8
%17 = call ptr @strtok(ptr noundef null, ptr noundef %16)
store ptr %17, ptr %5, align 8
%18 = load ptr, ptr %5, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %20, label %24
20: ; preds = %15
%21 = load ptr, ptr %5, align 8
%22 = call i32 @atoi(ptr noundef %21)
%23 = call i32 @debug_skip_n(i32 noundef %22, i32 noundef 0)
br label %24
24: ; preds = %20, %15
store i32 1, ptr %2, align 4
br label %221
25: ; preds = %1
%26 = load ptr, ptr %8, align 8
%27 = call ptr @strtok(ptr noundef null, ptr noundef %26)
store ptr %27, ptr %5, align 8
%28 = load ptr, ptr %5, align 8
%29 = icmp ne ptr %28, null
br i1 %29, label %30, label %34
30: ; preds = %25
%31 = load ptr, ptr %5, align 8
%32 = call i32 @atoi(ptr noundef %31)
%33 = call i32 @debug_skip_n(i32 noundef %32, i32 noundef 1)
br label %34
34: ; preds = %30, %25
%35 = call i32 (...) @debug_deactivate()
store i32 1, ptr %2, align 4
br label %221
36: ; preds = %1
%37 = load ptr, ptr %8, align 8
%38 = call ptr @strtok(ptr noundef null, ptr noundef %37)
store ptr %38, ptr %5, align 8
%39 = load ptr, ptr %5, align 8
%40 = icmp ne ptr %39, null
br i1 %40, label %43, label %41
41: ; preds = %36
%42 = call i32 (...) @debug_display_all_registers()
br label %56
43: ; preds = %36
%44 = load ptr, ptr %8, align 8
%45 = call ptr @strtok(ptr noundef null, ptr noundef %44)
store ptr %45, ptr %7, align 8
%46 = load ptr, ptr %7, align 8
%47 = icmp ne ptr %46, null
br i1 %47, label %51, label %48
48: ; preds = %43
%49 = load ptr, ptr %5, align 8
%50 = call i32 @debug_display_register(ptr noundef %49)
br label %55
51: ; preds = %43
%52 = load ptr, ptr %5, align 8
%53 = load ptr, ptr %7, align 8
%54 = call i32 @debug_display_range_reg(ptr noundef %52, ptr noundef %53)
br label %55
55: ; preds = %51, %48
br label %56
56: ; preds = %55, %41
br label %220
57: ; preds = %1
%58 = load ptr, ptr %8, align 8
%59 = call ptr @strtok(ptr noundef null, ptr noundef %58)
store ptr %59, ptr %5, align 8
%60 = load ptr, ptr %5, align 8
%61 = icmp ne ptr %60, null
br i1 %61, label %65, label %62
62: ; preds = %57
%63 = load ptr, ptr %3, align 8
%64 = call i32 @debug_invalid_cmd(ptr noundef %63)
br label %83
65: ; preds = %57
%66 = load ptr, ptr %8, align 8
%67 = call ptr @strtok(ptr noundef null, ptr noundef %66)
store ptr %67, ptr %7, align 8
%68 = load ptr, ptr %7, align 8
%69 = icmp ne ptr %68, null
br i1 %69, label %76, label %70
70: ; preds = %65
%71 = load ptr, ptr %5, align 8
%72 = call i32 @atoi(ptr noundef %71)
%73 = load ptr, ptr %5, align 8
%74 = call i32 @atoi(ptr noundef %73)
%75 = call i32 @debug_display_mem_range(i32 noundef %72, i32 noundef %74)
br label %82
76: ; preds = %65
%77 = load ptr, ptr %5, align 8
%78 = call i32 @atoi(ptr noundef %77)
%79 = load ptr, ptr %7, align 8
%80 = call i32 @atoi(ptr noundef %79)
%81 = call i32 @debug_display_mem_range(i32 noundef %78, i32 noundef %80)
br label %82
82: ; preds = %76, %70
br label %83
83: ; preds = %82, %62
br label %220
84: ; preds = %1
%85 = load ptr, ptr %8, align 8
%86 = call ptr @strtok(ptr noundef null, ptr noundef %85)
store ptr %86, ptr %5, align 8
%87 = load ptr, ptr %5, align 8
%88 = icmp ne ptr %87, null
br i1 %88, label %91, label %89
89: ; preds = %84
%90 = call i32 (...) @debug_display_pcb()
br label %95
91: ; preds = %84
%92 = load ptr, ptr %5, align 8
%93 = call i32 @atoi(ptr noundef %92)
%94 = call i32 @debug_display_pcb_pid(i32 noundef %93)
br label %95
95: ; preds = %91, %89
br label %220
96: ; preds = %1
%97 = load ptr, ptr %8, align 8
%98 = call ptr @strtok(ptr noundef null, ptr noundef %97)
store ptr %98, ptr %5, align 8
%99 = load ptr, ptr %5, align 8
%100 = icmp ne ptr %99, null
br i1 %100, label %103, label %101
101: ; preds = %96
%102 = call i32 (...) @debug_display_pt_ptbr()
br label %107
103: ; preds = %96
%104 = load ptr, ptr %5, align 8
%105 = call i32 @atoi(ptr noundef %104)
%106 = call i32 @debug_display_pt_pid(i32 noundef %105)
br label %107
107: ; preds = %103, %101
br label %220
108: ; preds = %1
%109 = call i32 (...) @debug_display_ft()
br label %220
110: ; preds = %1
%111 = call i32 (...) @debug_display_st()
br label %220
112: ; preds = %1
%113 = call i32 (...) @debug_display_fst()
br label %220
114: ; preds = %1
%115 = call i32 (...) @debug_display_dst()
br label %220
116: ; preds = %1
%117 = call i32 (...) @debug_display_sst()
br label %220
118: ; preds = %1
%119 = call i32 (...) @debug_display_tst()
br label %220
120: ; preds = %1
%121 = call i32 (...) @debug_display_bt()
br label %220
122: ; preds = %1
%123 = load ptr, ptr %8, align 8
%124 = call ptr @strtok(ptr noundef null, ptr noundef %123)
store ptr %124, ptr %5, align 8
%125 = load ptr, ptr %5, align 8
%126 = icmp ne ptr %125, null
br i1 %126, label %129, label %127
127: ; preds = %122
%128 = call i32 (...) @debug_display_dmt()
br label %133
129: ; preds = %122
%130 = load ptr, ptr %5, align 8
%131 = call i32 @atoi(ptr noundef %130)
%132 = call i32 @debug_dmt_pid(i32 noundef %131)
br label %133
133: ; preds = %129, %127
br label %220
134: ; preds = %1
%135 = call i32 (...) @debug_display_rf()
br label %220
136: ; preds = %1
%137 = load ptr, ptr %8, align 8
%138 = call ptr @strtok(ptr noundef null, ptr noundef %137)
store ptr %138, ptr %5, align 8
%139 = load ptr, ptr %5, align 8
%140 = icmp ne ptr %139, null
br i1 %140, label %143, label %141
141: ; preds = %136
%142 = call i32 (...) @debug_display_rt()
br label %147
143: ; preds = %136
%144 = load ptr, ptr %5, align 8
%145 = call i32 @atoi(ptr noundef %144)
%146 = call i32 @debug_rt_pid(i32 noundef %145)
br label %147
147: ; preds = %143, %141
br label %220
148: ; preds = %1
%149 = call i32 (...) @debug_display_memlist()
br label %220
150: ; preds = %1
%151 = call i32 (...) @debug_display_dfl()
br label %220
152: ; preds = %1
%153 = call i32 (...) @debug_display_inodetable()
br label %220
154: ; preds = %1
%155 = call i32 (...) @debug_display_usertable()
br label %220
156: ; preds = %1
%157 = load ptr, ptr %8, align 8
%158 = call ptr @strtok(ptr noundef null, ptr noundef %157)
store ptr %158, ptr %5, align 8
%159 = load ptr, ptr %5, align 8
%160 = icmp ne ptr %159, null
br i1 %160, label %164, label %161
161: ; preds = %156
%162 = load ptr, ptr %3, align 8
%163 = call i32 @debug_invalid_cmd(ptr noundef %162)
br label %168
164: ; preds = %156
%165 = load ptr, ptr %5, align 8
%166 = call i32 @atoi(ptr noundef %165)
%167 = call i32 @debug_display_location(i32 noundef %166)
br label %168
168: ; preds = %164, %161
br label %220
169: ; preds = %1
%170 = load ptr, ptr %8, align 8
%171 = call ptr @strtok(ptr noundef null, ptr noundef %170)
store ptr %171, ptr %5, align 8
%172 = load ptr, ptr %5, align 8
%173 = icmp ne ptr %172, null
br i1 %173, label %177, label %174
174: ; preds = %169
%175 = load ptr, ptr %3, align 8
%176 = call i32 @debug_invalid_cmd(ptr noundef %175)
br label %180
177: ; preds = %169
%178 = load ptr, ptr %5, align 8
%179 = call i32 @debug_display_val(ptr noundef %178)
br label %180
180: ; preds = %177, %174
br label %220
181: ; preds = %1
%182 = load ptr, ptr %8, align 8
%183 = call ptr @strtok(ptr noundef null, ptr noundef %182)
store ptr %183, ptr %5, align 8
%184 = load ptr, ptr %5, align 8
%185 = icmp ne ptr %184, null
br i1 %185, label %189, label %186
186: ; preds = %181
%187 = load ptr, ptr %3, align 8
%188 = call i32 @debug_invalid_cmd(ptr noundef %187)
br label %196
189: ; preds = %181
%190 = load ptr, ptr %5, align 8
%191 = call i32 @atoi(ptr noundef %190)
%192 = call i32 @debug_watch_add(i32 noundef %191)
%193 = load ptr, ptr %5, align 8
%194 = call i32 @atoi(ptr noundef %193)
%195 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %194)
br label %196
196: ; preds = %189, %186
br label %220
197: ; preds = %1
%198 = call i32 (...) @debug_watch_clear()
%199 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %220
200: ; preds = %1
%201 = call i32 (...) @debug_display_list()
br label %220
202: ; preds = %1
%203 = load ptr, ptr %8, align 8
%204 = call ptr @strtok(ptr noundef null, ptr noundef %203)
store ptr %204, ptr %5, align 8
%205 = load ptr, ptr %5, align 8
%206 = icmp ne ptr %205, null
br i1 %206, label %210, label %207
207: ; preds = %202
%208 = load ptr, ptr %3, align 8
%209 = call i32 @debug_invalid_cmd(ptr noundef %208)
br label %214
210: ; preds = %202
%211 = load ptr, ptr %5, align 8
%212 = call i32 @atoi(ptr noundef %211)
%213 = call i32 @debug_display_page(i32 noundef %212)
br label %214
214: ; preds = %210, %207
br label %220
215: ; preds = %1
%216 = call i32 (...) @debug_display_help()
br label %220
217: ; preds = %1
%218 = load ptr, ptr %3, align 8
%219 = call i32 @debug_invalid_cmd(ptr noundef %218)
br label %220
220: ; preds = %217, %215, %214, %200, %197, %196, %180, %168, %154, %152, %150, %148, %147, %134, %133, %120, %118, %116, %114, %112, %110, %108, %107, %95, %83, %56
store i32 0, ptr %2, align 4
br label %221
221: ; preds = %220, %34, %24
%222 = load i32, ptr %2, align 4
ret i32 %222
}
declare ptr @strtok(ptr noundef, ptr noundef) #1
declare i32 @debug_command_code(ptr noundef) #1
declare i32 @debug_skip_n(i32 noundef, i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @debug_deactivate(...) #1
declare i32 @debug_display_all_registers(...) #1
declare i32 @debug_display_register(ptr noundef) #1
declare i32 @debug_display_range_reg(ptr noundef, ptr noundef) #1
declare i32 @debug_invalid_cmd(ptr noundef) #1
declare i32 @debug_display_mem_range(i32 noundef, i32 noundef) #1
declare i32 @debug_display_pcb(...) #1
declare i32 @debug_display_pcb_pid(i32 noundef) #1
declare i32 @debug_display_pt_ptbr(...) #1
declare i32 @debug_display_pt_pid(i32 noundef) #1
declare i32 @debug_display_ft(...) #1
declare i32 @debug_display_st(...) #1
declare i32 @debug_display_fst(...) #1
declare i32 @debug_display_dst(...) #1
declare i32 @debug_display_sst(...) #1
declare i32 @debug_display_tst(...) #1
declare i32 @debug_display_bt(...) #1
declare i32 @debug_display_dmt(...) #1
declare i32 @debug_dmt_pid(i32 noundef) #1
declare i32 @debug_display_rf(...) #1
declare i32 @debug_display_rt(...) #1
declare i32 @debug_rt_pid(i32 noundef) #1
declare i32 @debug_display_memlist(...) #1
declare i32 @debug_display_dfl(...) #1
declare i32 @debug_display_inodetable(...) #1
declare i32 @debug_display_usertable(...) #1
declare i32 @debug_display_location(i32 noundef) #1
declare i32 @debug_display_val(ptr noundef) #1
declare i32 @debug_watch_add(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @debug_watch_clear(...) #1
declare i32 @debug_display_list(...) #1
declare i32 @debug_display_page(i32 noundef) #1
declare i32 @debug_display_help(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpckyajma6.c'
source_filename = "/tmp/tmpckyajma6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fopen_utf8(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call ptr @fopen(ptr noundef %5, ptr noundef %6)
ret ptr %7
}
declare ptr @fopen(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/tmpckyajma6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fopen_utf8(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call ptr @fopen(ptr noundef %5, ptr noundef %6)
ret ptr %7
}
declare ptr @fopen(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/tmpy7xszes3.c'
source_filename = "/tmp/tmpy7xszes3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"abc\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"\07 Can not open the file \22abc\22. \0A\00", align 1
@.str.3 = private unnamed_addr constant [38 x i8] c"\07 Open the file successfully \22abc\22. \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%3 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %3, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @printf(ptr noundef @.str.2)
br label %12
8: ; preds = %0
%9 = call i32 @printf(ptr noundef @.str.3)
%10 = load ptr, ptr %2, align 8
%11 = call i32 @fclose(ptr noundef %10)
br label %12
12: ; preds = %8, %6
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy7xszes3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"abc\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"\07 Can not open the file \22abc\22. \0A\00", align 1
@.str.3 = private unnamed_addr constant [38 x i8] c"\07 Open the file successfully \22abc\22. \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%3 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %3, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @printf(ptr noundef @.str.2)
br label %12
8: ; preds = %0
%9 = call i32 @printf(ptr noundef @.str.3)
%10 = load ptr, ptr %2, align 8
%11 = call i32 @fclose(ptr noundef %10)
br label %12
12: ; preds = %8, %6
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppd8kb8xh.c'
source_filename = "/tmp/tmppd8kb8xh.c"
target datalayout = "e-m:e-p270: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/tmppd8kb8xh.c"
target datalayout = "e-m:e-p270: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/tmplyyqr4__.c'
source_filename = "/tmp/tmplyyqr4__.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [51 x i8] c"\0A*************************\0ATesting PUSH - POP :\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [53 x i8] c"\0A*************************\0ATesting LOOKUP - POP :\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [59 x i8] c"\0A*************************\0ATesting MERGE (after PUSHes):\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [62 x i8] c"\0A*************************\0ATesting MERGE (after UPDATEs) :\0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [45 x i8] c"\0A*************************\0ATesting SPLIT :\0A\0A\00", align 1
@.str.5 = private unnamed_addr constant [45 x i8] c"\0A*************************\0ATesting UNREF :\0A\0A\00", align 1
@.str.6 = private unnamed_addr constant [54 x i8] c"\0A*************************\0ATesting the genericity :\0A\0A\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @srand(i32 noundef 10)
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @test_push_pop(i32 noundef 10)
%5 = call i32 @printf(ptr noundef @.str.1)
%6 = call i32 @test_lookup_pop(i32 noundef 10)
%7 = call i32 @printf(ptr noundef @.str.2)
%8 = call i32 @test_merge_with_push(i32 noundef 10)
%9 = call i32 @printf(ptr noundef @.str.3)
%10 = call i32 @test_merge_with_update(i32 noundef 10)
%11 = call i32 @printf(ptr noundef @.str.4)
%12 = call i32 @test_split(i32 noundef 10)
%13 = call i32 @printf(ptr noundef @.str.5)
%14 = call i32 @test_unref(i32 noundef 10)
%15 = call i32 @printf(ptr noundef @.str.6)
%16 = call i32 (...) @test_genericity()
%17 = call i32 @printf(ptr noundef @.str.7)
ret i32 0
}
declare i32 @srand(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @test_push_pop(i32 noundef) #1
declare i32 @test_lookup_pop(i32 noundef) #1
declare i32 @test_merge_with_push(i32 noundef) #1
declare i32 @test_merge_with_update(i32 noundef) #1
declare i32 @test_split(i32 noundef) #1
declare i32 @test_unref(i32 noundef) #1
declare i32 @test_genericity(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplyyqr4__.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [51 x i8] c"\0A*************************\0ATesting PUSH - POP :\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [53 x i8] c"\0A*************************\0ATesting LOOKUP - POP :\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [59 x i8] c"\0A*************************\0ATesting MERGE (after PUSHes):\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [62 x i8] c"\0A*************************\0ATesting MERGE (after UPDATEs) :\0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [45 x i8] c"\0A*************************\0ATesting SPLIT :\0A\0A\00", align 1
@.str.5 = private unnamed_addr constant [45 x i8] c"\0A*************************\0ATesting UNREF :\0A\0A\00", align 1
@.str.6 = private unnamed_addr constant [54 x i8] c"\0A*************************\0ATesting the genericity :\0A\0A\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @srand(i32 noundef 10)
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @test_push_pop(i32 noundef 10)
%5 = call i32 @printf(ptr noundef @.str.1)
%6 = call i32 @test_lookup_pop(i32 noundef 10)
%7 = call i32 @printf(ptr noundef @.str.2)
%8 = call i32 @test_merge_with_push(i32 noundef 10)
%9 = call i32 @printf(ptr noundef @.str.3)
%10 = call i32 @test_merge_with_update(i32 noundef 10)
%11 = call i32 @printf(ptr noundef @.str.4)
%12 = call i32 @test_split(i32 noundef 10)
%13 = call i32 @printf(ptr noundef @.str.5)
%14 = call i32 @test_unref(i32 noundef 10)
%15 = call i32 @printf(ptr noundef @.str.6)
%16 = call i32 (...) @test_genericity()
%17 = call i32 @printf(ptr noundef @.str.7)
ret i32 0
}
declare i32 @srand(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @test_push_pop(i32 noundef) #1
declare i32 @test_lookup_pop(i32 noundef) #1
declare i32 @test_merge_with_push(i32 noundef) #1
declare i32 @test_merge_with_update(i32 noundef) #1
declare i32 @test_split(i32 noundef) #1
declare i32 @test_unref(i32 noundef) #1
declare i32 @test_genericity(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpiha56e6b.c'
source_filename = "/tmp/tmpiha56e6b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @picolToLower(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
store ptr %4, ptr %3, align 8
br label %5
5: ; preds = %14, %1
%6 = load ptr, ptr %3, align 8
%7 = load i8, ptr %6, align 1
%8 = icmp ne i8 %7, 0
br i1 %8, label %9, label %17
9: ; preds = %5
%10 = load ptr, ptr %3, align 8
%11 = load i8, ptr %10, align 1
%12 = call signext i8 @tolower(i8 noundef signext %11)
%13 = load ptr, ptr %3, align 8
store i8 %12, ptr %13, align 1
br label %14
14: ; preds = %9
%15 = load ptr, ptr %3, align 8
%16 = getelementptr inbounds i8, ptr %15, i32 1
store ptr %16, ptr %3, align 8
br label %5, !llvm.loop !6
17: ; preds = %5
%18 = load ptr, ptr %2, align 8
ret ptr %18
}
declare signext i8 @tolower(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpiha56e6b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @picolToLower(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
store ptr %4, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = load i8, ptr %5, align 1
%7 = icmp ne i8 %6, 0
br i1 %7, label %.lr.ph, label %19
.lr.ph: ; preds = %1
br label %8
8: ; preds = %.lr.ph, %13
%9 = load ptr, ptr %3, align 8
%10 = load i8, ptr %9, align 1
%11 = call signext i8 @tolower(i8 noundef signext %10)
%12 = load ptr, ptr %3, align 8
store i8 %11, ptr %12, align 1
br label %13
13: ; preds = %8
%14 = load ptr, ptr %3, align 8
%15 = getelementptr inbounds i8, ptr %14, i32 1
store ptr %15, ptr %3, align 8
%16 = load ptr, ptr %3, align 8
%17 = load i8, ptr %16, align 1
%18 = icmp ne i8 %17, 0
br i1 %18, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %19
19: ; preds = %._crit_edge, %1
%20 = load ptr, ptr %2, align 8
ret ptr %20
}
declare signext i8 @tolower(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpbo215qih.c'
source_filename = "/tmp/tmpbo215qih.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @at_neat_init() #0 {
%1 = call i32 (...) @at_init()
%2 = call i32 (...) @ide_init()
%3 = call i32 (...) @neat_init()
ret void
}
declare i32 @at_init(...) #1
declare i32 @ide_init(...) #1
declare i32 @neat_init(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbo215qih.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @at_neat_init() #0 {
%1 = call i32 (...) @at_init()
%2 = call i32 (...) @ide_init()
%3 = call i32 (...) @neat_init()
ret void
}
declare i32 @at_init(...) #1
declare i32 @ide_init(...) #1
declare i32 @neat_init(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjiz0gmwu.c'
source_filename = "/tmp/tmpjiz0gmwu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"l = \00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"after inserting at pos 2, l = \00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"head(l) = %ld\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"l = tail(l) = \00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"removed l[2]; l = \00", align 1
@.str.5 = private unnamed_addr constant [19 x i8] c"removed l[0]; l = \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%3 = call ptr (...) @linkedlist_new()
store ptr %3, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call ptr @linkedlist_cons(i32 noundef 3, ptr noundef %4)
%6 = call ptr @linkedlist_cons(i32 noundef 2, ptr noundef %5)
%7 = call ptr @linkedlist_cons(i32 noundef 1, ptr noundef %6)
store ptr %7, ptr %2, align 8
%8 = load ptr, ptr %2, align 8
%9 = call ptr @linkedlist_cons(i32 noundef 4, ptr noundef %8)
store ptr %9, ptr %2, align 8
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = load ptr, ptr %2, align 8
%12 = call i32 @linkedlist_print(ptr noundef %11)
%13 = load ptr, ptr %2, align 8
%14 = call ptr @linkedlist_insert(i32 noundef 5, i32 noundef 2, ptr noundef %13)
store ptr %14, ptr %2, align 8
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%16 = load ptr, ptr %2, align 8
%17 = call i32 @linkedlist_print(ptr noundef %16)
%18 = load ptr, ptr %2, align 8
%19 = call i32 @linkedlist_head(ptr noundef %18)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %19)
%21 = load ptr, ptr %2, align 8
%22 = call ptr @linkedlist_tail(ptr noundef %21)
store ptr %22, ptr %2, align 8
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%24 = load ptr, ptr %2, align 8
%25 = call i32 @linkedlist_print(ptr noundef %24)
%26 = load ptr, ptr %2, align 8
%27 = call ptr @linkedlist_remove(i32 noundef 2, ptr noundef %26)
store ptr %27, ptr %2, align 8
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%29 = load ptr, ptr %2, align 8
%30 = call i32 @linkedlist_print(ptr noundef %29)
%31 = load ptr, ptr %2, align 8
%32 = call ptr @linkedlist_remove(i32 noundef 0, ptr noundef %31)
store ptr %32, ptr %2, align 8
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%34 = load ptr, ptr %2, align 8
%35 = call i32 @linkedlist_print(ptr noundef %34)
%36 = load ptr, ptr %2, align 8
%37 = call i32 @free(ptr noundef %36)
ret i32 0
}
declare ptr @linkedlist_new(...) #1
declare ptr @linkedlist_cons(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @linkedlist_print(ptr noundef) #1
declare ptr @linkedlist_insert(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @linkedlist_head(ptr noundef) #1
declare ptr @linkedlist_tail(ptr noundef) #1
declare ptr @linkedlist_remove(i32 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/tmpjiz0gmwu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"l = \00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"after inserting at pos 2, l = \00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"head(l) = %ld\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"l = tail(l) = \00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"removed l[2]; l = \00", align 1
@.str.5 = private unnamed_addr constant [19 x i8] c"removed l[0]; l = \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%3 = call ptr (...) @linkedlist_new()
store ptr %3, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call ptr @linkedlist_cons(i32 noundef 3, ptr noundef %4)
%6 = call ptr @linkedlist_cons(i32 noundef 2, ptr noundef %5)
%7 = call ptr @linkedlist_cons(i32 noundef 1, ptr noundef %6)
store ptr %7, ptr %2, align 8
%8 = load ptr, ptr %2, align 8
%9 = call ptr @linkedlist_cons(i32 noundef 4, ptr noundef %8)
store ptr %9, ptr %2, align 8
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = load ptr, ptr %2, align 8
%12 = call i32 @linkedlist_print(ptr noundef %11)
%13 = load ptr, ptr %2, align 8
%14 = call ptr @linkedlist_insert(i32 noundef 5, i32 noundef 2, ptr noundef %13)
store ptr %14, ptr %2, align 8
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%16 = load ptr, ptr %2, align 8
%17 = call i32 @linkedlist_print(ptr noundef %16)
%18 = load ptr, ptr %2, align 8
%19 = call i32 @linkedlist_head(ptr noundef %18)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %19)
%21 = load ptr, ptr %2, align 8
%22 = call ptr @linkedlist_tail(ptr noundef %21)
store ptr %22, ptr %2, align 8
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%24 = load ptr, ptr %2, align 8
%25 = call i32 @linkedlist_print(ptr noundef %24)
%26 = load ptr, ptr %2, align 8
%27 = call ptr @linkedlist_remove(i32 noundef 2, ptr noundef %26)
store ptr %27, ptr %2, align 8
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%29 = load ptr, ptr %2, align 8
%30 = call i32 @linkedlist_print(ptr noundef %29)
%31 = load ptr, ptr %2, align 8
%32 = call ptr @linkedlist_remove(i32 noundef 0, ptr noundef %31)
store ptr %32, ptr %2, align 8
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%34 = load ptr, ptr %2, align 8
%35 = call i32 @linkedlist_print(ptr noundef %34)
%36 = load ptr, ptr %2, align 8
%37 = call i32 @free(ptr noundef %36)
ret i32 0
}
declare ptr @linkedlist_new(...) #1
declare ptr @linkedlist_cons(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @linkedlist_print(ptr noundef) #1
declare ptr @linkedlist_insert(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @linkedlist_head(ptr noundef) #1
declare ptr @linkedlist_tail(ptr noundef) #1
declare ptr @linkedlist_remove(i32 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/tmpy8udgvc9.c'
source_filename = "/tmp/tmpy8udgvc9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%2d \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 ptr, align 8
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i64 @malloc(i32 noundef 180)
%9 = inttoptr i64 %8 to ptr
store ptr %9, ptr %6, align 8
store i32 0, ptr %7, align 4
%10 = call i32 @time(ptr noundef null)
%11 = call i32 @srand(i32 noundef %10)
br label %12
12: ; preds = %15, %2
%13 = load i32, ptr %7, align 4
%14 = icmp slt i32 %13, 45
br i1 %14, label %15, label %23
15: ; preds = %12
%16 = call i32 (...) @rand()
%17 = srem i32 %16, 99
%18 = load ptr, ptr %6, align 8
%19 = load i32, ptr %7, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %7, align 4
%21 = sext i32 %19 to i64
%22 = getelementptr inbounds i32, ptr %18, i64 %21
store i32 %17, ptr %22, align 4
br label %12, !llvm.loop !6
23: ; preds = %12
store i32 0, ptr %7, align 4
br label %24
24: ; preds = %27, %23
%25 = load i32, ptr %7, align 4
%26 = icmp slt i32 %25, 45
br i1 %26, label %27, label %35
27: ; preds = %24
%28 = load ptr, ptr %6, align 8
%29 = load i32, ptr %7, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %7, align 4
%31 = sext i32 %29 to i64
%32 = getelementptr inbounds i32, ptr %28, i64 %31
%33 = load i32, ptr %32, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %33)
br label %24, !llvm.loop !8
35: ; preds = %24
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%37 = load ptr, ptr %6, align 8
%38 = call i32 @merge_sort(ptr noundef %37, i32 noundef 0, i32 noundef 45)
store i32 0, ptr %7, align 4
br label %39
39: ; preds = %42, %35
%40 = load i32, ptr %7, align 4
%41 = icmp slt i32 %40, 45
br i1 %41, label %42, label %50
42: ; preds = %39
%43 = load ptr, ptr %6, align 8
%44 = load i32, ptr %7, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %7, align 4
%46 = sext i32 %44 to i64
%47 = getelementptr inbounds i32, ptr %43, i64 %46
%48 = load i32, ptr %47, align 4
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %48)
br label %39, !llvm.loop !9
50: ; preds = %39
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret i32 0
}
declare i64 @malloc(i32 noundef) #1
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @rand(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @merge_sort(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy8udgvc9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%2d \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 ptr, align 8
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i64 @malloc(i32 noundef 180)
%9 = inttoptr i64 %8 to ptr
store ptr %9, ptr %6, align 8
store i32 0, ptr %7, align 4
%10 = call i32 @time(ptr noundef null)
%11 = call i32 @srand(i32 noundef %10)
%12 = load i32, ptr %7, align 4
%13 = icmp slt i32 %12, 45
br i1 %13, label %.lr.ph, label %24
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %14
%15 = call i32 (...) @rand()
%16 = srem i32 %15, 99
%17 = load ptr, ptr %6, align 8
%18 = load i32, ptr %7, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %7, align 4
%20 = sext i32 %18 to i64
%21 = getelementptr inbounds i32, ptr %17, i64 %20
store i32 %16, ptr %21, align 4
%22 = load i32, ptr %7, align 4
%23 = icmp slt i32 %22, 45
br i1 %23, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %24
24: ; preds = %._crit_edge, %2
store i32 0, ptr %7, align 4
%25 = load i32, ptr %7, align 4
%26 = icmp slt i32 %25, 45
br i1 %26, label %.lr.ph2, label %37
.lr.ph2: ; preds = %24
br label %27
27: ; preds = %.lr.ph2, %27
%28 = load ptr, ptr %6, align 8
%29 = load i32, ptr %7, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %7, align 4
%31 = sext i32 %29 to i64
%32 = getelementptr inbounds i32, ptr %28, i64 %31
%33 = load i32, ptr %32, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %33)
%35 = load i32, ptr %7, align 4
%36 = icmp slt i32 %35, 45
br i1 %36, label %27, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %27
br label %37
37: ; preds = %._crit_edge3, %24
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%39 = load ptr, ptr %6, align 8
%40 = call i32 @merge_sort(ptr noundef %39, i32 noundef 0, i32 noundef 45)
store i32 0, ptr %7, align 4
%41 = load i32, ptr %7, align 4
%42 = icmp slt i32 %41, 45
br i1 %42, label %.lr.ph5, label %53
.lr.ph5: ; preds = %37
br label %43
43: ; preds = %.lr.ph5, %43
%44 = load ptr, ptr %6, align 8
%45 = load i32, ptr %7, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %7, align 4
%47 = sext i32 %45 to i64
%48 = getelementptr inbounds i32, ptr %44, i64 %47
%49 = load i32, ptr %48, align 4
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %49)
%51 = load i32, ptr %7, align 4
%52 = icmp slt i32 %51, 45
br i1 %52, label %43, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %43
br label %53
53: ; preds = %._crit_edge6, %37
%54 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret i32 0
}
declare i64 @malloc(i32 noundef) #1
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @rand(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @merge_sort(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpfff9i7l1.c'
source_filename = "/tmp/tmpfff9i7l1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Introduce un numero positivo: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [32 x i8] c"El cuadrado mas cercano es: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @buscarPrimoCercano() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %1)
%7 = load i32, ptr %1, align 4
%8 = call double @sqrt(i32 noundef %7)
store double %8, ptr %3, align 8
%9 = load double, ptr %3, align 8
%10 = load double, ptr %3, align 8
%11 = fptosi double %10 to i32
%12 = sitofp i32 %11 to double
%13 = fsub double %9, %12
%14 = call double @llvm.fabs.f64(double %13)
store double %14, ptr %4, align 8
%15 = load double, ptr %4, align 8
%16 = fcmp oge double %15, 5.000000e-01
br i1 %16, label %17, label %21
17: ; preds = %0
%18 = load double, ptr %3, align 8
%19 = fptosi double %18 to i32
%20 = add nsw i32 %19, 1
store i32 %20, ptr %2, align 4
br label %24
21: ; preds = %0
%22 = load double, ptr %3, align 8
%23 = fptosi double %22 to i32
store i32 %23, ptr %2, align 4
br label %24
24: ; preds = %21, %17
%25 = load i32, ptr %2, align 4
%26 = load i32, ptr %2, align 4
%27 = mul nsw i32 %26, %25
store i32 %27, ptr %2, align 4
%28 = load i32, ptr %2, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %28)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare double @sqrt(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfff9i7l1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Introduce un numero positivo: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [32 x i8] c"El cuadrado mas cercano es: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @buscarPrimoCercano() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %1)
%7 = load i32, ptr %1, align 4
%8 = call double @sqrt(i32 noundef %7)
store double %8, ptr %3, align 8
%9 = load double, ptr %3, align 8
%10 = load double, ptr %3, align 8
%11 = fptosi double %10 to i32
%12 = sitofp i32 %11 to double
%13 = fsub double %9, %12
%14 = call double @llvm.fabs.f64(double %13)
store double %14, ptr %4, align 8
%15 = load double, ptr %4, align 8
%16 = fcmp oge double %15, 5.000000e-01
br i1 %16, label %17, label %21
17: ; preds = %0
%18 = load double, ptr %3, align 8
%19 = fptosi double %18 to i32
%20 = add nsw i32 %19, 1
store i32 %20, ptr %2, align 4
br label %24
21: ; preds = %0
%22 = load double, ptr %3, align 8
%23 = fptosi double %22 to i32
store i32 %23, ptr %2, align 4
br label %24
24: ; preds = %21, %17
%25 = load i32, ptr %2, align 4
%26 = load i32, ptr %2, align 4
%27 = mul nsw i32 %26, %25
store i32 %27, ptr %2, align 4
%28 = load i32, ptr %2, align 4
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %28)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare double @sqrt(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpts4726pa.c'
source_filename = "/tmp/tmpts4726pa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"/dev/ptmx\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @posix_openpt(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @open(ptr noundef @.str, i32 noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
ret i32 %6
}
declare i32 @open(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/tmpts4726pa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"/dev/ptmx\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @posix_openpt(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @open(ptr noundef @.str, i32 noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
ret i32 %6
}
declare i32 @open(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/tmpvblp_ztj.c'
source_filename = "/tmp/tmpvblp_ztj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"fc8151_init\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fc8151_tuner_init(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i8, align 1
%6 = alloca i8, align 1
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %7, align 4
%8 = load ptr, ptr %3, align 8
%9 = call i32 @PRINTF(ptr noundef %8, ptr noundef @.str)
%10 = load ptr, ptr %3, align 8
%11 = call i32 @fc8151_write(ptr noundef %10, i32 noundef 0, i32 noundef 0)
%12 = load ptr, ptr %3, align 8
%13 = call i32 @fc8151_write(ptr noundef %12, i32 noundef 2, i32 noundef 129)
%14 = load ptr, ptr %3, align 8
%15 = call i32 @fc8151_write(ptr noundef %14, i32 noundef 19, i32 noundef 244)
%16 = load ptr, ptr %3, align 8
%17 = call i32 @fc8151_write(ptr noundef %16, i32 noundef 48, i32 noundef 10)
%18 = load ptr, ptr %3, align 8
%19 = call i32 @fc8151_write(ptr noundef %18, i32 noundef 59, i32 noundef 1)
%20 = load ptr, ptr %3, align 8
%21 = call i32 @fc8151_set_filter(ptr noundef %20)
%22 = load ptr, ptr %3, align 8
%23 = call i32 @fc8151_write(ptr noundef %22, i32 noundef 59, i32 noundef 0)
%24 = load ptr, ptr %3, align 8
%25 = call i32 @fc8151_write(ptr noundef %24, i32 noundef 52, i32 noundef 104)
%26 = load ptr, ptr %3, align 8
%27 = call i32 @fc8151_write(ptr noundef %26, i32 noundef 54, i32 noundef 255)
%28 = load ptr, ptr %3, align 8
%29 = call i32 @fc8151_write(ptr noundef %28, i32 noundef 55, i32 noundef 255)
%30 = load ptr, ptr %3, align 8
%31 = call i32 @fc8151_write(ptr noundef %30, i32 noundef 57, i32 noundef 17)
%32 = load ptr, ptr %3, align 8
%33 = call i32 @fc8151_write(ptr noundef %32, i32 noundef 58, i32 noundef 0)
%34 = load ptr, ptr %3, align 8
%35 = call i32 @fc8151_write(ptr noundef %34, i32 noundef 82, i32 noundef 32)
%36 = load ptr, ptr %3, align 8
%37 = call i32 @fc8151_write(ptr noundef %36, i32 noundef 83, i32 noundef 95)
%38 = load ptr, ptr %3, align 8
%39 = call i32 @fc8151_write(ptr noundef %38, i32 noundef 84, i32 noundef 0)
%40 = load ptr, ptr %3, align 8
%41 = call i32 @fc8151_write(ptr noundef %40, i32 noundef 94, i32 noundef 0)
%42 = load ptr, ptr %3, align 8
%43 = call i32 @fc8151_write(ptr noundef %42, i32 noundef 99, i32 noundef 48)
%44 = load ptr, ptr %3, align 8
%45 = call i32 @fc8151_write(ptr noundef %44, i32 noundef 86, i32 noundef 15)
%46 = load ptr, ptr %3, align 8
%47 = call i32 @fc8151_write(ptr noundef %46, i32 noundef 87, i32 noundef 31)
%48 = load ptr, ptr %3, align 8
%49 = call i32 @fc8151_write(ptr noundef %48, i32 noundef 88, i32 noundef 9)
%50 = load ptr, ptr %3, align 8
%51 = call i32 @fc8151_write(ptr noundef %50, i32 noundef 89, i32 noundef 94)
%52 = load ptr, ptr %3, align 8
%53 = call i32 @fc8151_write(ptr noundef %52, i32 noundef 41, i32 noundef 0)
%54 = load ptr, ptr %3, align 8
%55 = call i32 @fc8151_write(ptr noundef %54, i32 noundef 148, i32 noundef 0)
%56 = load ptr, ptr %3, align 8
%57 = call i32 @fc8151_write(ptr noundef %56, i32 noundef 149, i32 noundef 1)
%58 = load ptr, ptr %3, align 8
%59 = call i32 @fc8151_write(ptr noundef %58, i32 noundef 150, i32 noundef 17)
%60 = load ptr, ptr %3, align 8
%61 = call i32 @fc8151_write(ptr noundef %60, i32 noundef 151, i32 noundef 33)
%62 = load ptr, ptr %3, align 8
%63 = call i32 @fc8151_write(ptr noundef %62, i32 noundef 152, i32 noundef 49)
%64 = load ptr, ptr %3, align 8
%65 = call i32 @fc8151_write(ptr noundef %64, i32 noundef 153, i32 noundef 50)
%66 = load ptr, ptr %3, align 8
%67 = call i32 @fc8151_write(ptr noundef %66, i32 noundef 154, i32 noundef 66)
%68 = load ptr, ptr %3, align 8
%69 = call i32 @fc8151_write(ptr noundef %68, i32 noundef 155, i32 noundef 82)
%70 = load ptr, ptr %3, align 8
%71 = call i32 @fc8151_write(ptr noundef %70, i32 noundef 156, i32 noundef 83)
%72 = load ptr, ptr %3, align 8
%73 = call i32 @fc8151_write(ptr noundef %72, i32 noundef 157, i32 noundef 99)
%74 = load ptr, ptr %3, align 8
%75 = call i32 @fc8151_write(ptr noundef %74, i32 noundef 158, i32 noundef 99)
%76 = load ptr, ptr %3, align 8
%77 = call i32 @fc8151_write(ptr noundef %76, i32 noundef 159, i32 noundef 99)
%78 = load ptr, ptr %3, align 8
%79 = call i32 @fc8151_write(ptr noundef %78, i32 noundef 121, i32 noundef 42)
%80 = load ptr, ptr %3, align 8
%81 = call i32 @fc8151_write(ptr noundef %80, i32 noundef 122, i32 noundef 36)
%82 = load ptr, ptr %3, align 8
%83 = call i32 @fc8151_write(ptr noundef %82, i32 noundef 123, i32 noundef 255)
%84 = load ptr, ptr %3, align 8
%85 = call i32 @fc8151_write(ptr noundef %84, i32 noundef 124, i32 noundef 22)
%86 = load ptr, ptr %3, align 8
%87 = call i32 @fc8151_write(ptr noundef %86, i32 noundef 125, i32 noundef 18)
%88 = load ptr, ptr %3, align 8
%89 = call i32 @fc8151_write(ptr noundef %88, i32 noundef 132, i32 noundef 0)
%90 = load ptr, ptr %3, align 8
%91 = call i32 @fc8151_write(ptr noundef %90, i32 noundef 133, i32 noundef 8)
%92 = load ptr, ptr %3, align 8
%93 = call i32 @fc8151_write(ptr noundef %92, i32 noundef 134, i32 noundef 0)
%94 = load ptr, ptr %3, align 8
%95 = call i32 @fc8151_write(ptr noundef %94, i32 noundef 135, i32 noundef 8)
%96 = load ptr, ptr %3, align 8
%97 = call i32 @fc8151_write(ptr noundef %96, i32 noundef 136, i32 noundef 0)
%98 = load ptr, ptr %3, align 8
%99 = call i32 @fc8151_write(ptr noundef %98, i32 noundef 137, i32 noundef 8)
%100 = load ptr, ptr %3, align 8
%101 = call i32 @fc8151_write(ptr noundef %100, i32 noundef 138, i32 noundef 0)
%102 = load ptr, ptr %3, align 8
%103 = call i32 @fc8151_write(ptr noundef %102, i32 noundef 139, i32 noundef 8)
%104 = load ptr, ptr %3, align 8
%105 = call i32 @fc8151_write(ptr noundef %104, i32 noundef 140, i32 noundef 0)
%106 = load ptr, ptr %3, align 8
%107 = call i32 @fc8151_write(ptr noundef %106, i32 noundef 141, i32 noundef 29)
%108 = load ptr, ptr %3, align 8
%109 = call i32 @fc8151_write(ptr noundef %108, i32 noundef 142, i32 noundef 19)
%110 = load ptr, ptr %3, align 8
%111 = call i32 @fc8151_write(ptr noundef %110, i32 noundef 143, i32 noundef 29)
%112 = load ptr, ptr %3, align 8
%113 = call i32 @fc8151_write(ptr noundef %112, i32 noundef 144, i32 noundef 19)
%114 = load ptr, ptr %3, align 8
%115 = call i32 @fc8151_write(ptr noundef %114, i32 noundef 145, i32 noundef 29)
%116 = load ptr, ptr %3, align 8
%117 = call i32 @fc8151_write(ptr noundef %116, i32 noundef 146, i32 noundef 19)
%118 = load ptr, ptr %3, align 8
%119 = call i32 @fc8151_write(ptr noundef %118, i32 noundef 147, i32 noundef 29)
%120 = load ptr, ptr %3, align 8
%121 = call i32 @fc8151_write(ptr noundef %120, i32 noundef 128, i32 noundef 31)
%122 = load ptr, ptr %3, align 8
%123 = call i32 @fc8151_write(ptr noundef %122, i32 noundef 129, i32 noundef 10)
%124 = load ptr, ptr %3, align 8
%125 = call i32 @fc8151_write(ptr noundef %124, i32 noundef 130, i32 noundef 64)
%126 = load ptr, ptr %3, align 8
%127 = call i32 @fc8151_write(ptr noundef %126, i32 noundef 131, i32 noundef 10)
%128 = load ptr, ptr %3, align 8
%129 = call i32 @fc8151_write(ptr noundef %128, i32 noundef 160, i32 noundef 192)
%130 = load ptr, ptr %3, align 8
%131 = call i32 @fc8151_write(ptr noundef %130, i32 noundef 126, i32 noundef 127)
%132 = load ptr, ptr %3, align 8
%133 = call i32 @fc8151_write(ptr noundef %132, i32 noundef 127, i32 noundef 127)
%134 = load ptr, ptr %3, align 8
%135 = call i32 @fc8151_write(ptr noundef %134, i32 noundef 208, i32 noundef 10)
%136 = load ptr, ptr %3, align 8
%137 = call i32 @fc8151_write(ptr noundef %136, i32 noundef 210, i32 noundef 40)
%138 = load ptr, ptr %3, align 8
%139 = call i32 @fc8151_write(ptr noundef %138, i32 noundef 212, i32 noundef 40)
%140 = load ptr, ptr %3, align 8
%141 = call i32 @fc8151_write(ptr noundef %140, i32 noundef 160, i32 noundef 23)
%142 = load ptr, ptr %3, align 8
%143 = call i32 @fc8151_write(ptr noundef %142, i32 noundef 208, i32 noundef 0)
%144 = load ptr, ptr %3, align 8
%145 = call i32 @fc8151_write(ptr noundef %144, i32 noundef 161, i32 noundef 29)
%146 = call i32 @msWait(i32 noundef 100)
%147 = load ptr, ptr %3, align 8
%148 = call i32 @fc8151_read(ptr noundef %147, i32 noundef 214, ptr noundef %5)
store i32 %148, ptr %7, align 4
%149 = load ptr, ptr %3, align 8
%150 = call i32 @fc8151_read(ptr noundef %149, i32 noundef 216, ptr noundef %6)
store i32 %150, ptr %7, align 4
%151 = load ptr, ptr %3, align 8
%152 = call i32 @fc8151_write(ptr noundef %151, i32 noundef 160, i32 noundef 215)
%153 = load ptr, ptr %3, align 8
%154 = call i32 @fc8151_write(ptr noundef %153, i32 noundef 208, i32 noundef 10)
%155 = load ptr, ptr %3, align 8
%156 = load i8, ptr %5, align 1
%157 = zext i8 %156 to i32
%158 = call i32 @fc8151_write(ptr noundef %155, i32 noundef 126, i32 noundef %157)
%159 = load ptr, ptr %3, align 8
%160 = load i8, ptr %6, align 1
%161 = zext i8 %160 to i32
%162 = call i32 @fc8151_write(ptr noundef %159, i32 noundef 127, i32 noundef %161)
%163 = load ptr, ptr %3, align 8
%164 = call i32 @fc8151_write(ptr noundef %163, i32 noundef 160, i32 noundef 192)
%165 = load ptr, ptr %3, align 8
%166 = call i32 @fc8151_write(ptr noundef %165, i32 noundef 161, i32 noundef 0)
%167 = load i32, ptr %7, align 4
ret i32 %167
}
declare i32 @PRINTF(ptr noundef, ptr noundef) #1
declare i32 @fc8151_write(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fc8151_set_filter(ptr noundef) #1
declare i32 @msWait(i32 noundef) #1
declare i32 @fc8151_read(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/tmpvblp_ztj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"fc8151_init\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fc8151_tuner_init(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i8, align 1
%6 = alloca i8, align 1
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %7, align 4
%8 = load ptr, ptr %3, align 8
%9 = call i32 @PRINTF(ptr noundef %8, ptr noundef @.str)
%10 = load ptr, ptr %3, align 8
%11 = call i32 @fc8151_write(ptr noundef %10, i32 noundef 0, i32 noundef 0)
%12 = load ptr, ptr %3, align 8
%13 = call i32 @fc8151_write(ptr noundef %12, i32 noundef 2, i32 noundef 129)
%14 = load ptr, ptr %3, align 8
%15 = call i32 @fc8151_write(ptr noundef %14, i32 noundef 19, i32 noundef 244)
%16 = load ptr, ptr %3, align 8
%17 = call i32 @fc8151_write(ptr noundef %16, i32 noundef 48, i32 noundef 10)
%18 = load ptr, ptr %3, align 8
%19 = call i32 @fc8151_write(ptr noundef %18, i32 noundef 59, i32 noundef 1)
%20 = load ptr, ptr %3, align 8
%21 = call i32 @fc8151_set_filter(ptr noundef %20)
%22 = load ptr, ptr %3, align 8
%23 = call i32 @fc8151_write(ptr noundef %22, i32 noundef 59, i32 noundef 0)
%24 = load ptr, ptr %3, align 8
%25 = call i32 @fc8151_write(ptr noundef %24, i32 noundef 52, i32 noundef 104)
%26 = load ptr, ptr %3, align 8
%27 = call i32 @fc8151_write(ptr noundef %26, i32 noundef 54, i32 noundef 255)
%28 = load ptr, ptr %3, align 8
%29 = call i32 @fc8151_write(ptr noundef %28, i32 noundef 55, i32 noundef 255)
%30 = load ptr, ptr %3, align 8
%31 = call i32 @fc8151_write(ptr noundef %30, i32 noundef 57, i32 noundef 17)
%32 = load ptr, ptr %3, align 8
%33 = call i32 @fc8151_write(ptr noundef %32, i32 noundef 58, i32 noundef 0)
%34 = load ptr, ptr %3, align 8
%35 = call i32 @fc8151_write(ptr noundef %34, i32 noundef 82, i32 noundef 32)
%36 = load ptr, ptr %3, align 8
%37 = call i32 @fc8151_write(ptr noundef %36, i32 noundef 83, i32 noundef 95)
%38 = load ptr, ptr %3, align 8
%39 = call i32 @fc8151_write(ptr noundef %38, i32 noundef 84, i32 noundef 0)
%40 = load ptr, ptr %3, align 8
%41 = call i32 @fc8151_write(ptr noundef %40, i32 noundef 94, i32 noundef 0)
%42 = load ptr, ptr %3, align 8
%43 = call i32 @fc8151_write(ptr noundef %42, i32 noundef 99, i32 noundef 48)
%44 = load ptr, ptr %3, align 8
%45 = call i32 @fc8151_write(ptr noundef %44, i32 noundef 86, i32 noundef 15)
%46 = load ptr, ptr %3, align 8
%47 = call i32 @fc8151_write(ptr noundef %46, i32 noundef 87, i32 noundef 31)
%48 = load ptr, ptr %3, align 8
%49 = call i32 @fc8151_write(ptr noundef %48, i32 noundef 88, i32 noundef 9)
%50 = load ptr, ptr %3, align 8
%51 = call i32 @fc8151_write(ptr noundef %50, i32 noundef 89, i32 noundef 94)
%52 = load ptr, ptr %3, align 8
%53 = call i32 @fc8151_write(ptr noundef %52, i32 noundef 41, i32 noundef 0)
%54 = load ptr, ptr %3, align 8
%55 = call i32 @fc8151_write(ptr noundef %54, i32 noundef 148, i32 noundef 0)
%56 = load ptr, ptr %3, align 8
%57 = call i32 @fc8151_write(ptr noundef %56, i32 noundef 149, i32 noundef 1)
%58 = load ptr, ptr %3, align 8
%59 = call i32 @fc8151_write(ptr noundef %58, i32 noundef 150, i32 noundef 17)
%60 = load ptr, ptr %3, align 8
%61 = call i32 @fc8151_write(ptr noundef %60, i32 noundef 151, i32 noundef 33)
%62 = load ptr, ptr %3, align 8
%63 = call i32 @fc8151_write(ptr noundef %62, i32 noundef 152, i32 noundef 49)
%64 = load ptr, ptr %3, align 8
%65 = call i32 @fc8151_write(ptr noundef %64, i32 noundef 153, i32 noundef 50)
%66 = load ptr, ptr %3, align 8
%67 = call i32 @fc8151_write(ptr noundef %66, i32 noundef 154, i32 noundef 66)
%68 = load ptr, ptr %3, align 8
%69 = call i32 @fc8151_write(ptr noundef %68, i32 noundef 155, i32 noundef 82)
%70 = load ptr, ptr %3, align 8
%71 = call i32 @fc8151_write(ptr noundef %70, i32 noundef 156, i32 noundef 83)
%72 = load ptr, ptr %3, align 8
%73 = call i32 @fc8151_write(ptr noundef %72, i32 noundef 157, i32 noundef 99)
%74 = load ptr, ptr %3, align 8
%75 = call i32 @fc8151_write(ptr noundef %74, i32 noundef 158, i32 noundef 99)
%76 = load ptr, ptr %3, align 8
%77 = call i32 @fc8151_write(ptr noundef %76, i32 noundef 159, i32 noundef 99)
%78 = load ptr, ptr %3, align 8
%79 = call i32 @fc8151_write(ptr noundef %78, i32 noundef 121, i32 noundef 42)
%80 = load ptr, ptr %3, align 8
%81 = call i32 @fc8151_write(ptr noundef %80, i32 noundef 122, i32 noundef 36)
%82 = load ptr, ptr %3, align 8
%83 = call i32 @fc8151_write(ptr noundef %82, i32 noundef 123, i32 noundef 255)
%84 = load ptr, ptr %3, align 8
%85 = call i32 @fc8151_write(ptr noundef %84, i32 noundef 124, i32 noundef 22)
%86 = load ptr, ptr %3, align 8
%87 = call i32 @fc8151_write(ptr noundef %86, i32 noundef 125, i32 noundef 18)
%88 = load ptr, ptr %3, align 8
%89 = call i32 @fc8151_write(ptr noundef %88, i32 noundef 132, i32 noundef 0)
%90 = load ptr, ptr %3, align 8
%91 = call i32 @fc8151_write(ptr noundef %90, i32 noundef 133, i32 noundef 8)
%92 = load ptr, ptr %3, align 8
%93 = call i32 @fc8151_write(ptr noundef %92, i32 noundef 134, i32 noundef 0)
%94 = load ptr, ptr %3, align 8
%95 = call i32 @fc8151_write(ptr noundef %94, i32 noundef 135, i32 noundef 8)
%96 = load ptr, ptr %3, align 8
%97 = call i32 @fc8151_write(ptr noundef %96, i32 noundef 136, i32 noundef 0)
%98 = load ptr, ptr %3, align 8
%99 = call i32 @fc8151_write(ptr noundef %98, i32 noundef 137, i32 noundef 8)
%100 = load ptr, ptr %3, align 8
%101 = call i32 @fc8151_write(ptr noundef %100, i32 noundef 138, i32 noundef 0)
%102 = load ptr, ptr %3, align 8
%103 = call i32 @fc8151_write(ptr noundef %102, i32 noundef 139, i32 noundef 8)
%104 = load ptr, ptr %3, align 8
%105 = call i32 @fc8151_write(ptr noundef %104, i32 noundef 140, i32 noundef 0)
%106 = load ptr, ptr %3, align 8
%107 = call i32 @fc8151_write(ptr noundef %106, i32 noundef 141, i32 noundef 29)
%108 = load ptr, ptr %3, align 8
%109 = call i32 @fc8151_write(ptr noundef %108, i32 noundef 142, i32 noundef 19)
%110 = load ptr, ptr %3, align 8
%111 = call i32 @fc8151_write(ptr noundef %110, i32 noundef 143, i32 noundef 29)
%112 = load ptr, ptr %3, align 8
%113 = call i32 @fc8151_write(ptr noundef %112, i32 noundef 144, i32 noundef 19)
%114 = load ptr, ptr %3, align 8
%115 = call i32 @fc8151_write(ptr noundef %114, i32 noundef 145, i32 noundef 29)
%116 = load ptr, ptr %3, align 8
%117 = call i32 @fc8151_write(ptr noundef %116, i32 noundef 146, i32 noundef 19)
%118 = load ptr, ptr %3, align 8
%119 = call i32 @fc8151_write(ptr noundef %118, i32 noundef 147, i32 noundef 29)
%120 = load ptr, ptr %3, align 8
%121 = call i32 @fc8151_write(ptr noundef %120, i32 noundef 128, i32 noundef 31)
%122 = load ptr, ptr %3, align 8
%123 = call i32 @fc8151_write(ptr noundef %122, i32 noundef 129, i32 noundef 10)
%124 = load ptr, ptr %3, align 8
%125 = call i32 @fc8151_write(ptr noundef %124, i32 noundef 130, i32 noundef 64)
%126 = load ptr, ptr %3, align 8
%127 = call i32 @fc8151_write(ptr noundef %126, i32 noundef 131, i32 noundef 10)
%128 = load ptr, ptr %3, align 8
%129 = call i32 @fc8151_write(ptr noundef %128, i32 noundef 160, i32 noundef 192)
%130 = load ptr, ptr %3, align 8
%131 = call i32 @fc8151_write(ptr noundef %130, i32 noundef 126, i32 noundef 127)
%132 = load ptr, ptr %3, align 8
%133 = call i32 @fc8151_write(ptr noundef %132, i32 noundef 127, i32 noundef 127)
%134 = load ptr, ptr %3, align 8
%135 = call i32 @fc8151_write(ptr noundef %134, i32 noundef 208, i32 noundef 10)
%136 = load ptr, ptr %3, align 8
%137 = call i32 @fc8151_write(ptr noundef %136, i32 noundef 210, i32 noundef 40)
%138 = load ptr, ptr %3, align 8
%139 = call i32 @fc8151_write(ptr noundef %138, i32 noundef 212, i32 noundef 40)
%140 = load ptr, ptr %3, align 8
%141 = call i32 @fc8151_write(ptr noundef %140, i32 noundef 160, i32 noundef 23)
%142 = load ptr, ptr %3, align 8
%143 = call i32 @fc8151_write(ptr noundef %142, i32 noundef 208, i32 noundef 0)
%144 = load ptr, ptr %3, align 8
%145 = call i32 @fc8151_write(ptr noundef %144, i32 noundef 161, i32 noundef 29)
%146 = call i32 @msWait(i32 noundef 100)
%147 = load ptr, ptr %3, align 8
%148 = call i32 @fc8151_read(ptr noundef %147, i32 noundef 214, ptr noundef %5)
store i32 %148, ptr %7, align 4
%149 = load ptr, ptr %3, align 8
%150 = call i32 @fc8151_read(ptr noundef %149, i32 noundef 216, ptr noundef %6)
store i32 %150, ptr %7, align 4
%151 = load ptr, ptr %3, align 8
%152 = call i32 @fc8151_write(ptr noundef %151, i32 noundef 160, i32 noundef 215)
%153 = load ptr, ptr %3, align 8
%154 = call i32 @fc8151_write(ptr noundef %153, i32 noundef 208, i32 noundef 10)
%155 = load ptr, ptr %3, align 8
%156 = load i8, ptr %5, align 1
%157 = zext i8 %156 to i32
%158 = call i32 @fc8151_write(ptr noundef %155, i32 noundef 126, i32 noundef %157)
%159 = load ptr, ptr %3, align 8
%160 = load i8, ptr %6, align 1
%161 = zext i8 %160 to i32
%162 = call i32 @fc8151_write(ptr noundef %159, i32 noundef 127, i32 noundef %161)
%163 = load ptr, ptr %3, align 8
%164 = call i32 @fc8151_write(ptr noundef %163, i32 noundef 160, i32 noundef 192)
%165 = load ptr, ptr %3, align 8
%166 = call i32 @fc8151_write(ptr noundef %165, i32 noundef 161, i32 noundef 0)
%167 = load i32, ptr %7, align 4
ret i32 %167
}
declare i32 @PRINTF(ptr noundef, ptr noundef) #1
declare i32 @fc8151_write(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fc8151_set_filter(ptr noundef) #1
declare i32 @msWait(i32 noundef) #1
declare i32 @fc8151_read(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/tmp6pve_j39.c'
source_filename = "/tmp/tmp6pve_j39.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"bash\00", align 1
@__const.main.argv_default = private unnamed_addr constant [2 x ptr] [ptr @.str, ptr null], align 16
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [39 x i8] c"Usage: %s ns-path [command [args...]]\0A\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [12 x i8] c"%s: %s: %s\0A\00", align 1
@errno = 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 [2 x ptr], align 16
%7 = alloca ptr, align 8
%8 = 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.argv_default, i64 16, i1 false)
%9 = getelementptr inbounds [2 x ptr], ptr %6, i64 0, i64 0
store ptr %9, ptr %7, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp sgt i32 %10, 2
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 2
store ptr %14, ptr %7, align 8
br label %25
15: ; preds = %2
%16 = load i32, ptr %4, align 4
%17 = icmp slt i32 %16, 2
br i1 %17, label %18, label %24
18: ; preds = %15
%19 = load i32, ptr @stderr, align 4
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 0
%22 = load ptr, ptr %21, align 8
%23 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %19, ptr noundef @.str.1, ptr noundef %22)
store i32 255, ptr %3, align 4
br label %73
24: ; preds = %15
br label %25
25: ; preds = %24, %12
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 1
%28 = load ptr, ptr %27, align 8
%29 = load i32, ptr @O_RDONLY, align 4
%30 = call i32 @open(ptr noundef %28, i32 noundef %29)
store i32 %30, ptr %8, align 4
%31 = load i32, ptr %8, align 4
%32 = icmp eq i32 %31, -1
br i1 %32, label %33, label %44
33: ; preds = %25
%34 = load i32, ptr @stderr, align 4
%35 = load ptr, ptr %5, align 8
%36 = getelementptr inbounds ptr, ptr %35, i64 0
%37 = load ptr, ptr %36, align 8
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds ptr, ptr %38, i64 1
%40 = load ptr, ptr %39, align 8
%41 = load i32, ptr @errno, align 4
%42 = call ptr @strerror(i32 noundef %41)
%43 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %34, ptr noundef @.str.2, ptr noundef %37, ptr noundef %40, ptr noundef %42)
store i32 254, ptr %3, align 4
br label %73
44: ; preds = %25
%45 = load i32, ptr %8, align 4
%46 = call i32 @setns(i32 noundef %45, i32 noundef 0)
%47 = icmp eq i32 %46, -1
br i1 %47, label %48, label %55
48: ; preds = %44
%49 = load ptr, ptr %5, align 8
%50 = getelementptr inbounds ptr, ptr %49, i64 0
%51 = load ptr, ptr %50, align 8
%52 = call i32 @perror(ptr noundef %51)
%53 = load i32, ptr %8, align 4
%54 = call i32 @close(i32 noundef %53)
store i32 253, ptr %3, align 4
br label %73
55: ; preds = %44
%56 = load i32, ptr %8, align 4
%57 = call i32 @close(i32 noundef %56)
%58 = load ptr, ptr %7, align 8
%59 = getelementptr inbounds ptr, ptr %58, i64 0
%60 = load ptr, ptr %59, align 8
%61 = load ptr, ptr %7, align 8
%62 = call i32 @execvp(ptr noundef %60, ptr noundef %61)
%63 = load i32, ptr @stderr, align 4
%64 = load ptr, ptr %5, align 8
%65 = getelementptr inbounds ptr, ptr %64, i64 0
%66 = load ptr, ptr %65, align 8
%67 = load ptr, ptr %7, align 8
%68 = getelementptr inbounds ptr, ptr %67, i64 0
%69 = load ptr, ptr %68, align 8
%70 = load i32, ptr @errno, align 4
%71 = call ptr @strerror(i32 noundef %70)
%72 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %63, ptr noundef @.str.2, ptr noundef %66, ptr noundef %69, ptr noundef %71)
store i32 252, ptr %3, align 4
br label %73
73: ; preds = %55, %48, %33, %18
%74 = load i32, ptr %3, align 4
ret i32 %74
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ...) #2
declare i32 @open(ptr noundef, i32 noundef) #2
declare ptr @strerror(i32 noundef) #2
declare i32 @setns(i32 noundef, i32 noundef) #2
declare i32 @perror(ptr noundef) #2
declare i32 @close(i32 noundef) #2
declare i32 @execvp(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/tmp6pve_j39.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"bash\00", align 1
@__const.main.argv_default = private unnamed_addr constant [2 x ptr] [ptr @.str, ptr null], align 16
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [39 x i8] c"Usage: %s ns-path [command [args...]]\0A\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [12 x i8] c"%s: %s: %s\0A\00", align 1
@errno = 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 [2 x ptr], align 16
%7 = alloca ptr, align 8
%8 = 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.argv_default, i64 16, i1 false)
%9 = getelementptr inbounds [2 x ptr], ptr %6, i64 0, i64 0
store ptr %9, ptr %7, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp sgt i32 %10, 2
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 2
store ptr %14, ptr %7, align 8
br label %25
15: ; preds = %2
%16 = load i32, ptr %4, align 4
%17 = icmp slt i32 %16, 2
br i1 %17, label %18, label %24
18: ; preds = %15
%19 = load i32, ptr @stderr, align 4
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 0
%22 = load ptr, ptr %21, align 8
%23 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %19, ptr noundef @.str.1, ptr noundef %22)
store i32 255, ptr %3, align 4
br label %73
24: ; preds = %15
br label %25
25: ; preds = %24, %12
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 1
%28 = load ptr, ptr %27, align 8
%29 = load i32, ptr @O_RDONLY, align 4
%30 = call i32 @open(ptr noundef %28, i32 noundef %29)
store i32 %30, ptr %8, align 4
%31 = load i32, ptr %8, align 4
%32 = icmp eq i32 %31, -1
br i1 %32, label %33, label %44
33: ; preds = %25
%34 = load i32, ptr @stderr, align 4
%35 = load ptr, ptr %5, align 8
%36 = getelementptr inbounds ptr, ptr %35, i64 0
%37 = load ptr, ptr %36, align 8
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds ptr, ptr %38, i64 1
%40 = load ptr, ptr %39, align 8
%41 = load i32, ptr @errno, align 4
%42 = call ptr @strerror(i32 noundef %41)
%43 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %34, ptr noundef @.str.2, ptr noundef %37, ptr noundef %40, ptr noundef %42)
store i32 254, ptr %3, align 4
br label %73
44: ; preds = %25
%45 = load i32, ptr %8, align 4
%46 = call i32 @setns(i32 noundef %45, i32 noundef 0)
%47 = icmp eq i32 %46, -1
br i1 %47, label %48, label %55
48: ; preds = %44
%49 = load ptr, ptr %5, align 8
%50 = getelementptr inbounds ptr, ptr %49, i64 0
%51 = load ptr, ptr %50, align 8
%52 = call i32 @perror(ptr noundef %51)
%53 = load i32, ptr %8, align 4
%54 = call i32 @close(i32 noundef %53)
store i32 253, ptr %3, align 4
br label %73
55: ; preds = %44
%56 = load i32, ptr %8, align 4
%57 = call i32 @close(i32 noundef %56)
%58 = load ptr, ptr %7, align 8
%59 = getelementptr inbounds ptr, ptr %58, i64 0
%60 = load ptr, ptr %59, align 8
%61 = load ptr, ptr %7, align 8
%62 = call i32 @execvp(ptr noundef %60, ptr noundef %61)
%63 = load i32, ptr @stderr, align 4
%64 = load ptr, ptr %5, align 8
%65 = getelementptr inbounds ptr, ptr %64, i64 0
%66 = load ptr, ptr %65, align 8
%67 = load ptr, ptr %7, align 8
%68 = getelementptr inbounds ptr, ptr %67, i64 0
%69 = load ptr, ptr %68, align 8
%70 = load i32, ptr @errno, align 4
%71 = call ptr @strerror(i32 noundef %70)
%72 = call i32 (i32, ptr, ptr, ...) @fprintf(i32 noundef %63, ptr noundef @.str.2, ptr noundef %66, ptr noundef %69, ptr noundef %71)
store i32 252, ptr %3, align 4
br label %73
73: ; preds = %55, %48, %33, %18
%74 = load i32, ptr %3, align 4
ret i32 %74
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ...) #2
declare i32 @open(ptr noundef, i32 noundef) #2
declare ptr @strerror(i32 noundef) #2
declare i32 @setns(i32 noundef, i32 noundef) #2
declare i32 @perror(ptr noundef) #2
declare i32 @close(i32 noundef) #2
declare i32 @execvp(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/tmpyljphias.c'
source_filename = "/tmp/tmpyljphias.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOMEM = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyljphias.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOMEM = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg8n9l65z.c'
source_filename = "/tmp/tmpg8n9l65z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @__wrap_pow(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%5 = load double, ptr %3, align 8
%6 = load double, ptr %4, align 8
%7 = call double @pow(double noundef %5, double noundef %6) #2
ret double %7
}
; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg8n9l65z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @__wrap_pow(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%5 = load double, ptr %3, align 8
%6 = load double, ptr %4, align 8
%7 = call double @pow(double noundef %5, double noundef %6) #2
ret double %7
}
; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqbfoa73f.c'
source_filename = "/tmp/tmpqbfoa73f.c"
target datalayout = "e-m:e-p270: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/tmpqbfoa73f.c"
target datalayout = "e-m:e-p270: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/tmpoy88exsr.c'
source_filename = "/tmp/tmpoy88exsr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @IntDest(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoy88exsr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @IntDest(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp879crb_c.c'
source_filename = "/tmp/tmp879crb_c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
%struct.dirent = type { ptr }
@.str = private unnamed_addr constant [26 x i8] c"ERROR: illegal file index\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @FileList_getFileNameString(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca %struct.stat, align 4
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%10 = load i64, ptr %5, align 8
%11 = load ptr, ptr %4, align 8
%12 = call i64 @FileList_getFileCount(ptr noundef %11)
%13 = icmp uge i64 %10, %12
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = call i32 @printf(ptr noundef @.str)
store ptr null, ptr %3, align 8
br label %53
16: ; preds = %2
%17 = load ptr, ptr %4, align 8
%18 = call ptr @opendir(ptr noundef %17)
store ptr %18, ptr %7, align 8
%19 = load ptr, ptr %7, align 8
%20 = icmp ne ptr %19, null
br i1 %20, label %21, label %51
21: ; preds = %16
store i64 0, ptr %8, align 8
br label %22
22: ; preds = %49, %35, %21
%23 = load ptr, ptr %7, align 8
%24 = call ptr @readdir(ptr noundef %23)
store ptr %24, ptr %6, align 8
%25 = icmp ne ptr %24, null
br i1 %25, label %26, label %50
26: ; preds = %22
%27 = load ptr, ptr %6, align 8
%28 = getelementptr inbounds %struct.dirent, ptr %27, i32 0, i32 0
%29 = load ptr, ptr %28, align 8
%30 = call i32 @lstat(ptr noundef %29, ptr noundef %9)
%31 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 0
%32 = load i32, ptr %31, align 4
%33 = call i64 @S_ISDIR(i32 noundef %32)
%34 = icmp ne i64 %33, 0
br i1 %34, label %35, label %36
35: ; preds = %26
br label %22, !llvm.loop !6
36: ; preds = %26
%37 = load i64, ptr %8, align 8
%38 = load i64, ptr %5, align 8
%39 = icmp eq i64 %37, %38
br i1 %39, label %40, label %46
40: ; preds = %36
%41 = load ptr, ptr %7, align 8
%42 = call i32 @closedir(ptr noundef %41)
%43 = load ptr, ptr %6, align 8
%44 = getelementptr inbounds %struct.dirent, ptr %43, i32 0, i32 0
%45 = load ptr, ptr %44, align 8
store ptr %45, ptr %3, align 8
br label %53
46: ; preds = %36
%47 = load i64, ptr %8, align 8
%48 = add i64 %47, 1
store i64 %48, ptr %8, align 8
br label %49
49: ; preds = %46
br label %22, !llvm.loop !6
50: ; preds = %22
br label %51
51: ; preds = %50, %16
br label %52
52: ; preds = %51
store ptr null, ptr %3, align 8
br label %53
53: ; preds = %52, %40, %14
%54 = load ptr, ptr %3, align 8
ret ptr %54
}
declare i64 @FileList_getFileCount(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare ptr @opendir(ptr noundef) #1
declare ptr @readdir(ptr noundef) #1
declare i32 @lstat(ptr noundef, ptr noundef) #1
declare i64 @S_ISDIR(i32 noundef) #1
declare i32 @closedir(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp879crb_c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
%struct.dirent = type { ptr }
@.str = private unnamed_addr constant [26 x i8] c"ERROR: illegal file index\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @FileList_getFileNameString(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca %struct.stat, align 4
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%10 = load i64, ptr %5, align 8
%11 = load ptr, ptr %4, align 8
%12 = call i64 @FileList_getFileCount(ptr noundef %11)
%13 = icmp uge i64 %10, %12
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = call i32 @printf(ptr noundef @.str)
store ptr null, ptr %3, align 8
br label %55
16: ; preds = %2
%17 = load ptr, ptr %4, align 8
%18 = call ptr @opendir(ptr noundef %17)
store ptr %18, ptr %7, align 8
%19 = load ptr, ptr %7, align 8
%20 = icmp ne ptr %19, null
br i1 %20, label %21, label %53
21: ; preds = %16
store i64 0, ptr %8, align 8
%22 = load ptr, ptr %7, align 8
%23 = call ptr @readdir(ptr noundef %22)
store ptr %23, ptr %6, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %.lr.ph, label %52
.lr.ph: ; preds = %21
br label %25
25: ; preds = %.lr.ph, %.backedge
%26 = load ptr, ptr %6, align 8
%27 = getelementptr inbounds %struct.dirent, ptr %26, i32 0, i32 0
%28 = load ptr, ptr %27, align 8
%29 = call i32 @lstat(ptr noundef %28, ptr noundef %9)
%30 = getelementptr inbounds %struct.stat, ptr %9, i32 0, i32 0
%31 = load i32, ptr %30, align 4
%32 = call i64 @S_ISDIR(i32 noundef %31)
%33 = icmp ne i64 %32, 0
br i1 %33, label %34, label %38
34: ; preds = %25
br label %.backedge
.backedge: ; preds = %34, %51
%35 = load ptr, ptr %7, align 8
%36 = call ptr @readdir(ptr noundef %35)
store ptr %36, ptr %6, align 8
%37 = icmp ne ptr %36, null
br i1 %37, label %25, label %._crit_edge, !llvm.loop !6
38: ; preds = %25
%39 = load i64, ptr %8, align 8
%40 = load i64, ptr %5, align 8
%41 = icmp eq i64 %39, %40
br i1 %41, label %42, label %48
42: ; preds = %38
%43 = load ptr, ptr %7, align 8
%44 = call i32 @closedir(ptr noundef %43)
%45 = load ptr, ptr %6, align 8
%46 = getelementptr inbounds %struct.dirent, ptr %45, i32 0, i32 0
%47 = load ptr, ptr %46, align 8
store ptr %47, ptr %3, align 8
br label %55
48: ; preds = %38
%49 = load i64, ptr %8, align 8
%50 = add i64 %49, 1
store i64 %50, ptr %8, align 8
br label %51
51: ; preds = %48
br label %.backedge
._crit_edge: ; preds = %.backedge
br label %52
52: ; preds = %._crit_edge, %21
br label %53
53: ; preds = %52, %16
br label %54
54: ; preds = %53
store ptr null, ptr %3, align 8
br label %55
55: ; preds = %54, %42, %14
%56 = load ptr, ptr %3, align 8
ret ptr %56
}
declare i64 @FileList_getFileCount(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare ptr @opendir(ptr noundef) #1
declare ptr @readdir(ptr noundef) #1
declare i32 @lstat(ptr noundef, ptr noundef) #1
declare i64 @S_ISDIR(i32 noundef) #1
declare i32 @closedir(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp3q3ks3tw.c'
source_filename = "/tmp/tmp3q3ks3tw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @plusOne(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = 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
%9 = load i32, ptr %6, align 4
%10 = load ptr, ptr %7, align 8
store i32 %9, ptr %10, align 4
%11 = load i32, ptr %6, align 4
%12 = add nsw i32 %11, 1
%13 = call ptr @calloc(i32 noundef %12, i32 noundef 4)
store ptr %13, ptr %8, align 8
%14 = load ptr, ptr %5, align 8
%15 = load i32, ptr %6, align 4
%16 = sub nsw i32 %15, 1
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i32, ptr %14, i64 %17
%19 = load i32, ptr %18, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %18, align 4
br label %21
21: ; preds = %57, %3
%22 = load i32, ptr %6, align 4
%23 = add nsw i32 %22, -1
store i32 %23, ptr %6, align 4
%24 = icmp ne i32 %22, 0
br i1 %24, label %25, label %58
25: ; preds = %21
%26 = load ptr, ptr %5, align 8
%27 = load i32, ptr %6, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i32, ptr %26, i64 %28
%30 = load i32, ptr %29, align 4
%31 = load ptr, ptr %8, align 8
%32 = load i32, ptr %6, align 4
%33 = add nsw i32 %32, 1
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i32, ptr %31, i64 %34
%36 = load i32, ptr %35, align 4
%37 = add nsw i32 %36, %30
store i32 %37, ptr %35, align 4
%38 = load ptr, ptr %8, align 8
%39 = load i32, ptr %6, align 4
%40 = add nsw i32 %39, 1
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i32, ptr %38, i64 %41
%43 = load i32, ptr %42, align 4
%44 = icmp sge i32 %43, 10
br i1 %44, label %45, label %57
45: ; preds = %25
%46 = load ptr, ptr %8, align 8
%47 = load i32, ptr %6, align 4
%48 = add nsw i32 %47, 1
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i32, ptr %46, i64 %49
%51 = load i32, ptr %50, align 4
%52 = sub nsw i32 %51, 10
store i32 %52, ptr %50, align 4
%53 = load ptr, ptr %8, align 8
%54 = load i32, ptr %6, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i32, ptr %53, i64 %55
store i32 1, ptr %56, align 4
br label %57
57: ; preds = %45, %25
br label %21, !llvm.loop !6
58: ; preds = %21
%59 = load ptr, ptr %8, align 8
%60 = getelementptr inbounds i32, ptr %59, i64 0
%61 = load i32, ptr %60, align 4
%62 = icmp ne i32 %61, 0
br i1 %62, label %66, label %63
63: ; preds = %58
%64 = load ptr, ptr %8, align 8
%65 = getelementptr inbounds i32, ptr %64, i64 1
store ptr %65, ptr %4, align 8
br label %71
66: ; preds = %58
%67 = load ptr, ptr %7, align 8
%68 = load i32, ptr %67, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %67, align 4
%70 = load ptr, ptr %8, align 8
store ptr %70, ptr %4, align 8
br label %71
71: ; preds = %66, %63
%72 = load ptr, ptr %4, align 8
ret ptr %72
}
declare ptr @calloc(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3q3ks3tw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @plusOne(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = 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
%9 = load i32, ptr %6, align 4
%10 = load ptr, ptr %7, align 8
store i32 %9, ptr %10, align 4
%11 = load i32, ptr %6, align 4
%12 = add nsw i32 %11, 1
%13 = call ptr @calloc(i32 noundef %12, i32 noundef 4)
store ptr %13, ptr %8, align 8
%14 = load ptr, ptr %5, align 8
%15 = load i32, ptr %6, align 4
%16 = sub nsw i32 %15, 1
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i32, ptr %14, i64 %17
%19 = load i32, ptr %18, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %18, align 4
%21 = load i32, ptr %6, align 4
%22 = add nsw i32 %21, -1
store i32 %22, ptr %6, align 4
%23 = icmp ne i32 %21, 0
br i1 %23, label %.lr.ph, label %60
.lr.ph: ; preds = %3
br label %24
24: ; preds = %.lr.ph, %56
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %6, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, ptr %25, i64 %27
%29 = load i32, ptr %28, align 4
%30 = load ptr, ptr %8, align 8
%31 = load i32, ptr %6, align 4
%32 = add nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i32, ptr %30, i64 %33
%35 = load i32, ptr %34, align 4
%36 = add nsw i32 %35, %29
store i32 %36, ptr %34, align 4
%37 = load ptr, ptr %8, align 8
%38 = load i32, ptr %6, align 4
%39 = add nsw i32 %38, 1
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, ptr %37, i64 %40
%42 = load i32, ptr %41, align 4
%43 = icmp sge i32 %42, 10
br i1 %43, label %44, label %56
44: ; preds = %24
%45 = load ptr, ptr %8, align 8
%46 = load i32, ptr %6, align 4
%47 = add nsw i32 %46, 1
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i32, ptr %45, i64 %48
%50 = load i32, ptr %49, align 4
%51 = sub nsw i32 %50, 10
store i32 %51, ptr %49, align 4
%52 = load ptr, ptr %8, align 8
%53 = load i32, ptr %6, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i32, ptr %52, i64 %54
store i32 1, ptr %55, align 4
br label %56
56: ; preds = %44, %24
%57 = load i32, ptr %6, align 4
%58 = add nsw i32 %57, -1
store i32 %58, ptr %6, align 4
%59 = icmp ne i32 %57, 0
br i1 %59, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %56
br label %60
60: ; preds = %._crit_edge, %3
%61 = load ptr, ptr %8, align 8
%62 = getelementptr inbounds i32, ptr %61, i64 0
%63 = load i32, ptr %62, align 4
%64 = icmp ne i32 %63, 0
br i1 %64, label %68, label %65
65: ; preds = %60
%66 = load ptr, ptr %8, align 8
%67 = getelementptr inbounds i32, ptr %66, i64 1
store ptr %67, ptr %4, align 8
br label %73
68: ; preds = %60
%69 = load ptr, ptr %7, align 8
%70 = load i32, ptr %69, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %69, align 4
%72 = load ptr, ptr %8, align 8
store ptr %72, ptr %4, align 8
br label %73
73: ; preds = %68, %65
%74 = load ptr, ptr %4, align 8
ret ptr %74
}
declare ptr @calloc(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp5q7bcb6q.c'
source_filename = "/tmp/tmp5q7bcb6q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c",\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"order by \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c", \00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"upnp:class\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"o.CLASS\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"dc:title\00", align 1
@.str.6 = private unnamed_addr constant [8 x i8] c"d.TITLE\00", align 1
@.str.7 = private unnamed_addr constant [8 x i8] c"dc:date\00", align 1
@.str.8 = private unnamed_addr constant [7 x i8] c"d.DATE\00", align 1
@.str.9 = private unnamed_addr constant [25 x i8] c"upnp:originalTrackNumber\00", align 1
@.str.10 = private unnamed_addr constant [16 x i8] c"d.DISC, d.TRACK\00", align 1
@.str.11 = private unnamed_addr constant [29 x i8] c"Unhandled SortCriteria [%s]\0A\00", align 1
@.str.12 = private unnamed_addr constant [6 x i8] c" DESC\00", align 1
@.str.13 = private unnamed_addr constant [12 x i8] c", TITLE ASC\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @parse_sort_criteria(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
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr null, ptr %6, align 8
store i32 0, ptr %12, align 4
%13 = load ptr, ptr %5, align 8
store i32 0, ptr %13, align 4
%14 = load ptr, ptr %4, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %17, label %16
16: ; preds = %2
store ptr null, ptr %3, align 8
br label %126
17: ; preds = %2
%18 = load ptr, ptr %4, align 8
%19 = call ptr @strtok_r(ptr noundef %18, ptr noundef @.str, ptr noundef %8)
store ptr %19, ptr %7, align 8
%20 = icmp ne ptr %19, null
br i1 %20, label %21, label %25
21: ; preds = %17
%22 = call ptr @malloc(i32 noundef 4096)
store ptr %22, ptr %6, align 8
%23 = load ptr, ptr %6, align 8
%24 = call i32 @strcpy(ptr noundef %23, ptr noundef @.str.1)
br label %25
25: ; preds = %21, %17
store i32 0, ptr %9, align 4
br label %26
26: ; preds = %109, %25
%27 = load ptr, ptr %7, align 8
%28 = icmp ne ptr %27, null
br i1 %28, label %29, label %112
29: ; preds = %26
store i32 0, ptr %11, align 4
%30 = load i32, ptr %9, align 4
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %29
%33 = load ptr, ptr %6, align 8
%34 = call i32 @strcat(ptr noundef %33, ptr noundef @.str.2)
br label %35
35: ; preds = %32, %29
%36 = load ptr, ptr %7, align 8
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = icmp eq i32 %38, 43
br i1 %39, label %40, label %43
40: ; preds = %35
%41 = load ptr, ptr %7, align 8
%42 = getelementptr inbounds i8, ptr %41, i32 1
store ptr %42, ptr %7, align 8
br label %52
43: ; preds = %35
%44 = load ptr, ptr %7, align 8
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = icmp eq i32 %46, 45
br i1 %47, label %48, label %51
48: ; preds = %43
store i32 1, ptr %11, align 4
%49 = load ptr, ptr %7, align 8
%50 = getelementptr inbounds i8, ptr %49, i32 1
store ptr %50, ptr %7, align 8
br label %51
51: ; preds = %48, %43
br label %52
52: ; preds = %51, %40
%53 = load ptr, ptr %7, align 8
%54 = call i64 @strcasecmp(ptr noundef %53, ptr noundef @.str.3)
%55 = icmp eq i64 %54, 0
br i1 %55, label %56, label %59
56: ; preds = %52
%57 = load ptr, ptr %6, align 8
%58 = call i32 @strcat(ptr noundef %57, ptr noundef @.str.4)
br label %100
59: ; preds = %52
%60 = load ptr, ptr %7, align 8
%61 = call i64 @strcasecmp(ptr noundef %60, ptr noundef @.str.5)
%62 = icmp eq i64 %61, 0
br i1 %62, label %63, label %66
63: ; preds = %59
%64 = load ptr, ptr %6, align 8
%65 = call i32 @strcat(ptr noundef %64, ptr noundef @.str.6)
store i32 1, ptr %12, align 4
br label %99
66: ; preds = %59
%67 = load ptr, ptr %7, align 8
%68 = call i64 @strcasecmp(ptr noundef %67, ptr noundef @.str.7)
%69 = icmp eq i64 %68, 0
br i1 %69, label %70, label %73
70: ; preds = %66
%71 = load ptr, ptr %6, align 8
%72 = call i32 @strcat(ptr noundef %71, ptr noundef @.str.8)
br label %98
73: ; preds = %66
%74 = load ptr, ptr %7, align 8
%75 = call i64 @strcasecmp(ptr noundef %74, ptr noundef @.str.9)
%76 = icmp eq i64 %75, 0
br i1 %76, label %77, label %80
77: ; preds = %73
%78 = load ptr, ptr %6, align 8
%79 = call i32 @strcat(ptr noundef %78, ptr noundef @.str.10)
br label %97
80: ; preds = %73
%81 = load ptr, ptr %7, align 8
%82 = call i32 @printf(ptr noundef @.str.11, ptr noundef %81)
%83 = load ptr, ptr %5, align 8
store i32 1, ptr %83, align 4
%84 = load i32, ptr %9, align 4
%85 = icmp ne i32 %84, 0
br i1 %85, label %86, label %94
86: ; preds = %80
%87 = load ptr, ptr %6, align 8
%88 = call i32 @strlen(ptr noundef %87)
store i32 %88, ptr %10, align 4
%89 = load ptr, ptr %6, align 8
%90 = load i32, ptr %10, align 4
%91 = sub nsw i32 %90, 2
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i8, ptr %89, i64 %92
store i8 0, ptr %93, align 1
br label %94
94: ; preds = %86, %80
%95 = load i32, ptr %9, align 4
%96 = add nsw i32 %95, -1
store i32 %96, ptr %9, align 4
br label %107
97: ; preds = %77
br label %98
98: ; preds = %97, %70
br label %99
99: ; preds = %98, %63
br label %100
100: ; preds = %99, %56
%101 = load i32, ptr %11, align 4
%102 = icmp ne i32 %101, 0
br i1 %102, label %103, label %106
103: ; preds = %100
%104 = load ptr, ptr %6, align 8
%105 = call i32 @strcat(ptr noundef %104, ptr noundef @.str.12)
br label %106
106: ; preds = %103, %100
br label %107
107: ; preds = %106, %94
%108 = call ptr @strtok_r(ptr noundef null, ptr noundef @.str, ptr noundef %8)
store ptr %108, ptr %7, align 8
br label %109
109: ; preds = %107
%110 = load i32, ptr %9, align 4
%111 = add nsw i32 %110, 1
store i32 %111, ptr %9, align 4
br label %26, !llvm.loop !6
112: ; preds = %26
%113 = load i32, ptr %9, align 4
%114 = icmp sle i32 %113, 0
br i1 %114, label %115, label %118
115: ; preds = %112
%116 = load ptr, ptr %6, align 8
%117 = call i32 @free(ptr noundef %116)
store ptr null, ptr %3, align 8
br label %126
118: ; preds = %112
%119 = load i32, ptr %12, align 4
%120 = icmp ne i32 %119, 0
br i1 %120, label %124, label %121
121: ; preds = %118
%122 = load ptr, ptr %6, align 8
%123 = call i32 @strcat(ptr noundef %122, ptr noundef @.str.13)
br label %124
124: ; preds = %121, %118
%125 = load ptr, ptr %6, align 8
store ptr %125, ptr %3, align 8
br label %126
126: ; preds = %124, %115, %16
%127 = load ptr, ptr %3, align 8
ret ptr %127
}
declare ptr @strtok_r(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i64 @strcasecmp(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @strlen(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/tmp5q7bcb6q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c",\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"order by \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c", \00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"upnp:class\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"o.CLASS\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"dc:title\00", align 1
@.str.6 = private unnamed_addr constant [8 x i8] c"d.TITLE\00", align 1
@.str.7 = private unnamed_addr constant [8 x i8] c"dc:date\00", align 1
@.str.8 = private unnamed_addr constant [7 x i8] c"d.DATE\00", align 1
@.str.9 = private unnamed_addr constant [25 x i8] c"upnp:originalTrackNumber\00", align 1
@.str.10 = private unnamed_addr constant [16 x i8] c"d.DISC, d.TRACK\00", align 1
@.str.11 = private unnamed_addr constant [29 x i8] c"Unhandled SortCriteria [%s]\0A\00", align 1
@.str.12 = private unnamed_addr constant [6 x i8] c" DESC\00", align 1
@.str.13 = private unnamed_addr constant [12 x i8] c", TITLE ASC\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @parse_sort_criteria(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
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr null, ptr %6, align 8
store i32 0, ptr %12, align 4
%13 = load ptr, ptr %5, align 8
store i32 0, ptr %13, align 4
%14 = load ptr, ptr %4, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %17, label %16
16: ; preds = %2
store ptr null, ptr %3, align 8
br label %127
17: ; preds = %2
%18 = load ptr, ptr %4, align 8
%19 = call ptr @strtok_r(ptr noundef %18, ptr noundef @.str, ptr noundef %8)
store ptr %19, ptr %7, align 8
%20 = icmp ne ptr %19, null
br i1 %20, label %21, label %25
21: ; preds = %17
%22 = call ptr @malloc(i32 noundef 4096)
store ptr %22, ptr %6, align 8
%23 = load ptr, ptr %6, align 8
%24 = call i32 @strcpy(ptr noundef %23, ptr noundef @.str.1)
br label %25
25: ; preds = %21, %17
store i32 0, ptr %9, align 4
%26 = load ptr, ptr %7, align 8
%27 = icmp ne ptr %26, null
br i1 %27, label %.lr.ph, label %113
.lr.ph: ; preds = %25
br label %28
28: ; preds = %.lr.ph, %108
store i32 0, ptr %11, align 4
%29 = load i32, ptr %9, align 4
%30 = icmp ne i32 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %28
%32 = load ptr, ptr %6, align 8
%33 = call i32 @strcat(ptr noundef %32, ptr noundef @.str.2)
br label %34
34: ; preds = %31, %28
%35 = load ptr, ptr %7, align 8
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 43
br i1 %38, label %39, label %42
39: ; preds = %34
%40 = load ptr, ptr %7, align 8
%41 = getelementptr inbounds i8, ptr %40, i32 1
store ptr %41, ptr %7, align 8
br label %51
42: ; preds = %34
%43 = load ptr, ptr %7, align 8
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = icmp eq i32 %45, 45
br i1 %46, label %47, label %50
47: ; preds = %42
store i32 1, ptr %11, align 4
%48 = load ptr, ptr %7, align 8
%49 = getelementptr inbounds i8, ptr %48, i32 1
store ptr %49, ptr %7, align 8
br label %50
50: ; preds = %47, %42
br label %51
51: ; preds = %50, %39
%52 = load ptr, ptr %7, align 8
%53 = call i64 @strcasecmp(ptr noundef %52, ptr noundef @.str.3)
%54 = icmp eq i64 %53, 0
br i1 %54, label %55, label %58
55: ; preds = %51
%56 = load ptr, ptr %6, align 8
%57 = call i32 @strcat(ptr noundef %56, ptr noundef @.str.4)
br label %99
58: ; preds = %51
%59 = load ptr, ptr %7, align 8
%60 = call i64 @strcasecmp(ptr noundef %59, ptr noundef @.str.5)
%61 = icmp eq i64 %60, 0
br i1 %61, label %62, label %65
62: ; preds = %58
%63 = load ptr, ptr %6, align 8
%64 = call i32 @strcat(ptr noundef %63, ptr noundef @.str.6)
store i32 1, ptr %12, align 4
br label %98
65: ; preds = %58
%66 = load ptr, ptr %7, align 8
%67 = call i64 @strcasecmp(ptr noundef %66, ptr noundef @.str.7)
%68 = icmp eq i64 %67, 0
br i1 %68, label %69, label %72
69: ; preds = %65
%70 = load ptr, ptr %6, align 8
%71 = call i32 @strcat(ptr noundef %70, ptr noundef @.str.8)
br label %97
72: ; preds = %65
%73 = load ptr, ptr %7, align 8
%74 = call i64 @strcasecmp(ptr noundef %73, ptr noundef @.str.9)
%75 = icmp eq i64 %74, 0
br i1 %75, label %76, label %79
76: ; preds = %72
%77 = load ptr, ptr %6, align 8
%78 = call i32 @strcat(ptr noundef %77, ptr noundef @.str.10)
br label %96
79: ; preds = %72
%80 = load ptr, ptr %7, align 8
%81 = call i32 @printf(ptr noundef @.str.11, ptr noundef %80)
%82 = load ptr, ptr %5, align 8
store i32 1, ptr %82, align 4
%83 = load i32, ptr %9, align 4
%84 = icmp ne i32 %83, 0
br i1 %84, label %85, label %93
85: ; preds = %79
%86 = load ptr, ptr %6, align 8
%87 = call i32 @strlen(ptr noundef %86)
store i32 %87, ptr %10, align 4
%88 = load ptr, ptr %6, align 8
%89 = load i32, ptr %10, align 4
%90 = sub nsw i32 %89, 2
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i8, ptr %88, i64 %91
store i8 0, ptr %92, align 1
br label %93
93: ; preds = %85, %79
%94 = load i32, ptr %9, align 4
%95 = add nsw i32 %94, -1
store i32 %95, ptr %9, align 4
br label %106
96: ; preds = %76
br label %97
97: ; preds = %96, %69
br label %98
98: ; preds = %97, %62
br label %99
99: ; preds = %98, %55
%100 = load i32, ptr %11, align 4
%101 = icmp ne i32 %100, 0
br i1 %101, label %102, label %105
102: ; preds = %99
%103 = load ptr, ptr %6, align 8
%104 = call i32 @strcat(ptr noundef %103, ptr noundef @.str.12)
br label %105
105: ; preds = %102, %99
br label %106
106: ; preds = %105, %93
%107 = call ptr @strtok_r(ptr noundef null, ptr noundef @.str, ptr noundef %8)
store ptr %107, ptr %7, align 8
br label %108
108: ; preds = %106
%109 = load i32, ptr %9, align 4
%110 = add nsw i32 %109, 1
store i32 %110, ptr %9, align 4
%111 = load ptr, ptr %7, align 8
%112 = icmp ne ptr %111, null
br i1 %112, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %108
br label %113
113: ; preds = %._crit_edge, %25
%114 = load i32, ptr %9, align 4
%115 = icmp sle i32 %114, 0
br i1 %115, label %116, label %119
116: ; preds = %113
%117 = load ptr, ptr %6, align 8
%118 = call i32 @free(ptr noundef %117)
store ptr null, ptr %3, align 8
br label %127
119: ; preds = %113
%120 = load i32, ptr %12, align 4
%121 = icmp ne i32 %120, 0
br i1 %121, label %125, label %122
122: ; preds = %119
%123 = load ptr, ptr %6, align 8
%124 = call i32 @strcat(ptr noundef %123, ptr noundef @.str.13)
br label %125
125: ; preds = %122, %119
%126 = load ptr, ptr %6, align 8
store ptr %126, ptr %3, align 8
br label %127
127: ; preds = %125, %116, %16
%128 = load ptr, ptr %3, align 8
ret ptr %128
}
declare ptr @strtok_r(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i64 @strcasecmp(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @strlen(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/tmpfmol4856.c'
source_filename = "/tmp/tmpfmol4856.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@os_create_anonymous_file.template = internal constant [22 x i8] c"/weston-shared-XXXXXX\00", align 16
@.str = private unnamed_addr constant [16 x i8] c"XDG_RUNTIME_DIR\00", align 1
@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 i32 @os_create_anonymous_file(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%8 = call ptr @getenv(ptr noundef @.str)
store ptr %8, ptr %4, align 8
%9 = load ptr, ptr %4, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %13, label %11
11: ; preds = %1
%12 = load i32, ptr @ENOENT, align 4
store i32 %12, ptr @errno, align 4
store i32 -1, ptr %2, align 4
br label %46
13: ; preds = %1
%14 = load ptr, ptr %4, align 8
%15 = call i64 @strlen(ptr noundef %14)
%16 = add i64 %15, 22
%17 = call ptr @malloc(i64 noundef %16)
store ptr %17, ptr %5, align 8
%18 = load ptr, ptr %5, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %21, label %20
20: ; preds = %13
store i32 -1, ptr %2, align 4
br label %46
21: ; preds = %13
%22 = load ptr, ptr %5, align 8
%23 = load ptr, ptr %4, align 8
%24 = call i32 @strcpy(ptr noundef %22, ptr noundef %23)
%25 = load ptr, ptr %5, align 8
%26 = call i32 @strcat(ptr noundef %25, ptr noundef @os_create_anonymous_file.template)
%27 = load ptr, ptr %5, align 8
%28 = call i32 @create_tmpfile_cloexec(ptr noundef %27)
store i32 %28, ptr %6, align 4
%29 = load ptr, ptr %5, align 8
%30 = call i32 @free(ptr noundef %29)
%31 = load i32, ptr %6, align 4
%32 = icmp slt i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %21
store i32 -1, ptr %2, align 4
br label %46
34: ; preds = %21
%35 = load i32, ptr %6, align 4
%36 = load i32, ptr %3, align 4
%37 = call i32 @posix_fallocate(i32 noundef %35, i32 noundef 0, i32 noundef %36)
store i32 %37, ptr %7, align 4
%38 = load i32, ptr %7, align 4
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %44
40: ; preds = %34
%41 = load i32, ptr %6, align 4
%42 = call i32 @close(i32 noundef %41)
%43 = load i32, ptr %7, align 4
store i32 %43, ptr @errno, align 4
store i32 -1, ptr %2, align 4
br label %46
44: ; preds = %34
%45 = load i32, ptr %6, align 4
store i32 %45, ptr %2, align 4
br label %46
46: ; preds = %44, %40, %33, %20, %11
%47 = load i32, ptr %2, align 4
ret i32 %47
}
declare ptr @getenv(ptr noundef) #1
declare ptr @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
declare i32 @create_tmpfile_cloexec(ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @posix_fallocate(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfmol4856.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@os_create_anonymous_file.template = internal constant [22 x i8] c"/weston-shared-XXXXXX\00", align 16
@.str = private unnamed_addr constant [16 x i8] c"XDG_RUNTIME_DIR\00", align 1
@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 i32 @os_create_anonymous_file(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%8 = call ptr @getenv(ptr noundef @.str)
store ptr %8, ptr %4, align 8
%9 = load ptr, ptr %4, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %13, label %11
11: ; preds = %1
%12 = load i32, ptr @ENOENT, align 4
store i32 %12, ptr @errno, align 4
store i32 -1, ptr %2, align 4
br label %46
13: ; preds = %1
%14 = load ptr, ptr %4, align 8
%15 = call i64 @strlen(ptr noundef %14)
%16 = add i64 %15, 22
%17 = call ptr @malloc(i64 noundef %16)
store ptr %17, ptr %5, align 8
%18 = load ptr, ptr %5, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %21, label %20
20: ; preds = %13
store i32 -1, ptr %2, align 4
br label %46
21: ; preds = %13
%22 = load ptr, ptr %5, align 8
%23 = load ptr, ptr %4, align 8
%24 = call i32 @strcpy(ptr noundef %22, ptr noundef %23)
%25 = load ptr, ptr %5, align 8
%26 = call i32 @strcat(ptr noundef %25, ptr noundef @os_create_anonymous_file.template)
%27 = load ptr, ptr %5, align 8
%28 = call i32 @create_tmpfile_cloexec(ptr noundef %27)
store i32 %28, ptr %6, align 4
%29 = load ptr, ptr %5, align 8
%30 = call i32 @free(ptr noundef %29)
%31 = load i32, ptr %6, align 4
%32 = icmp slt i32 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %21
store i32 -1, ptr %2, align 4
br label %46
34: ; preds = %21
%35 = load i32, ptr %6, align 4
%36 = load i32, ptr %3, align 4
%37 = call i32 @posix_fallocate(i32 noundef %35, i32 noundef 0, i32 noundef %36)
store i32 %37, ptr %7, align 4
%38 = load i32, ptr %7, align 4
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %44
40: ; preds = %34
%41 = load i32, ptr %6, align 4
%42 = call i32 @close(i32 noundef %41)
%43 = load i32, ptr %7, align 4
store i32 %43, ptr @errno, align 4
store i32 -1, ptr %2, align 4
br label %46
44: ; preds = %34
%45 = load i32, ptr %6, align 4
store i32 %45, ptr %2, align 4
br label %46
46: ; preds = %44, %40, %33, %20, %11
%47 = load i32, ptr %2, align 4
ret i32 %47
}
declare ptr @getenv(ptr noundef) #1
declare ptr @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
declare i32 @create_tmpfile_cloexec(ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @posix_fallocate(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg74xzth_.c'
source_filename = "/tmp/tmpg74xzth_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SENDREPLY(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %7, align 4
br label %8
8: ; preds = %20, %3
%9 = load i32, ptr %7, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %23
12: ; preds = %8
%13 = load ptr, ptr %4, align 8
%14 = load ptr, ptr %5, align 8
%15 = load i32, ptr %7, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i8, ptr %17, align 1
%19 = call i32 @PUTCHARINBUFFER(ptr noundef %13, i8 noundef signext %18)
br label %20
20: ; preds = %12
%21 = load i32, ptr %7, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %7, align 4
br label %8, !llvm.loop !6
23: ; preds = %8
ret void
}
declare i32 @PUTCHARINBUFFER(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg74xzth_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SENDREPLY(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %7, align 4
%8 = load i32, ptr %7, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %25
.lr.ph: ; preds = %3
br label %11
11: ; preds = %.lr.ph, %19
%12 = load ptr, ptr %4, align 8
%13 = load ptr, ptr %5, align 8
%14 = load i32, ptr %7, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i8, ptr %16, align 1
%18 = call i32 @PUTCHARINBUFFER(ptr noundef %12, i8 noundef signext %17)
br label %19
19: ; preds = %11
%20 = load i32, ptr %7, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %7, align 4
%22 = load i32, ptr %7, align 4
%23 = load i32, ptr %6, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %25
25: ; preds = %._crit_edge, %3
ret void
}
declare i32 @PUTCHARINBUFFER(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp5ggod9me.c'
source_filename = "/tmp/tmp5ggod9me.c"
target datalayout = "e-m:e-p270: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/tmp5ggod9me.c"
target datalayout = "e-m:e-p270: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/tmpszaqzir2.c'
source_filename = "/tmp/tmpszaqzir2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\1B[38;5;%d;48;5;%dm\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @setColorScheme(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 %4, align 4
%6 = load i32, ptr %3, align 4
%7 = call i32 @printf(ptr noundef @.str, i32 noundef %5, i32 noundef %6)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpszaqzir2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\1B[38;5;%d;48;5;%dm\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @setColorScheme(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 %4, align 4
%6 = load i32, ptr %3, align 4
%7 = call i32 @printf(ptr noundef @.str, i32 noundef %5, i32 noundef %6)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjrdi57d7.c'
source_filename = "/tmp/tmpjrdi57d7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pcu_memdup(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = call ptr @malloc(i32 noundef %6)
store ptr %7, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %3, align 8
%10 = load i32, ptr %4, align 4
%11 = call i32 @memcpy(ptr noundef %8, ptr noundef %9, i32 noundef %10)
%12 = load ptr, ptr %5, align 8
ret ptr %12
}
declare ptr @malloc(i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjrdi57d7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pcu_memdup(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = call ptr @malloc(i32 noundef %6)
store ptr %7, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %3, align 8
%10 = load i32, ptr %4, align 4
%11 = call i32 @memcpy(ptr noundef %8, ptr noundef %9, i32 noundef %10)
%12 = load ptr, ptr %5, align 8
ret ptr %12
}
declare ptr @malloc(i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkgn_lzu3.c'
source_filename = "/tmp/tmpkgn_lzu3.c"
target datalayout = "e-m:e-p270: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/tmpkgn_lzu3.c"
target datalayout = "e-m:e-p270: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/tmpyobzu9_r.c'
source_filename = "/tmp/tmpyobzu9_r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @strprint(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
store ptr %4, ptr %3, align 8
br label %5
5: ; preds = %42, %1
%6 = load ptr, ptr %3, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %8, label %13
8: ; preds = %5
%9 = load ptr, ptr %3, align 8
%10 = load i8, ptr %9, align 1
%11 = zext i8 %10 to i32
%12 = icmp ne i32 %11, 0
br label %13
13: ; preds = %8, %5
%14 = phi i1 [ false, %5 ], [ %12, %8 ]
br i1 %14, label %15, label %45
15: ; preds = %13
%16 = load ptr, ptr %3, align 8
%17 = load i8, ptr %16, align 1
%18 = zext i8 %17 to i32
%19 = icmp slt i32 %18, 32
br i1 %19, label %20, label %28
20: ; preds = %15
%21 = call i32 @putchar(i8 noundef zeroext 94)
%22 = load ptr, ptr %3, align 8
%23 = load i8, ptr %22, align 1
%24 = zext i8 %23 to i32
%25 = add nsw i32 %24, 64
%26 = trunc i32 %25 to i8
%27 = call i32 @putchar(i8 noundef zeroext %26)
br label %41
28: ; preds = %15
%29 = load ptr, ptr %3, align 8
%30 = load i8, ptr %29, align 1
%31 = zext i8 %30 to i32
%32 = icmp eq i32 %31, 127
br i1 %32, label %33, label %36
33: ; preds = %28
%34 = call i32 @putchar(i8 noundef zeroext 94)
%35 = call i32 @putchar(i8 noundef zeroext 63)
br label %40
36: ; preds = %28
%37 = load ptr, ptr %3, align 8
%38 = load i8, ptr %37, align 1
%39 = call i32 @putchar(i8 noundef zeroext %38)
br label %40
40: ; preds = %36, %33
br label %41
41: ; preds = %40, %20
br label %42
42: ; preds = %41
%43 = load ptr, ptr %3, align 8
%44 = getelementptr inbounds i8, ptr %43, i32 1
store ptr %44, ptr %3, align 8
br label %5, !llvm.loop !6
45: ; preds = %13
ret void
}
declare i32 @putchar(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyobzu9_r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @strprint(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
store ptr %4, ptr %3, align 8
br label %5
5: ; preds = %42, %1
%6 = load ptr, ptr %3, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %8, label %13
8: ; preds = %5
%9 = load ptr, ptr %3, align 8
%10 = load i8, ptr %9, align 1
%11 = zext i8 %10 to i32
%12 = icmp ne i32 %11, 0
br label %13
13: ; preds = %8, %5
%14 = phi i1 [ false, %5 ], [ %12, %8 ]
br i1 %14, label %15, label %45
15: ; preds = %13
%16 = load ptr, ptr %3, align 8
%17 = load i8, ptr %16, align 1
%18 = zext i8 %17 to i32
%19 = icmp slt i32 %18, 32
br i1 %19, label %20, label %28
20: ; preds = %15
%21 = call i32 @putchar(i8 noundef zeroext 94)
%22 = load ptr, ptr %3, align 8
%23 = load i8, ptr %22, align 1
%24 = zext i8 %23 to i32
%25 = add nsw i32 %24, 64
%26 = trunc i32 %25 to i8
%27 = call i32 @putchar(i8 noundef zeroext %26)
br label %41
28: ; preds = %15
%29 = load ptr, ptr %3, align 8
%30 = load i8, ptr %29, align 1
%31 = zext i8 %30 to i32
%32 = icmp eq i32 %31, 127
br i1 %32, label %33, label %36
33: ; preds = %28
%34 = call i32 @putchar(i8 noundef zeroext 94)
%35 = call i32 @putchar(i8 noundef zeroext 63)
br label %40
36: ; preds = %28
%37 = load ptr, ptr %3, align 8
%38 = load i8, ptr %37, align 1
%39 = call i32 @putchar(i8 noundef zeroext %38)
br label %40
40: ; preds = %36, %33
br label %41
41: ; preds = %40, %20
br label %42
42: ; preds = %41
%43 = load ptr, ptr %3, align 8
%44 = getelementptr inbounds i8, ptr %43, i32 1
store ptr %44, ptr %3, align 8
br label %5, !llvm.loop !6
45: ; preds = %13
ret void
}
declare i32 @putchar(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"}
|
; ModuleID = '/tmp/tmpo14xj681.c'
source_filename = "/tmp/tmpo14xj681.c"
target datalayout = "e-m:e-p270: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/tmpo14xj681.c"
target datalayout = "e-m:e-p270: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/tmpnodbptjr.c'
source_filename = "/tmp/tmpnodbptjr.c"
target datalayout = "e-m:e-p270: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 = dso_local global i32 0, align 4
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @read_rest_of_line() #0 {
%1 = alloca i32, align 4
br label %2
2: ; preds = %13, %0
%3 = load i32, ptr @stdin, align 4
%4 = call i32 @getc(i32 noundef %3)
store i32 %4, ptr %1, align 4
%5 = load i32, ptr %1, align 4
%6 = icmp ne i32 %5, 10
br i1 %6, label %7, label %11
7: ; preds = %2
%8 = load i32, ptr %1, align 4
%9 = load i32, ptr @EOF, align 4
%10 = icmp ne i32 %8, %9
br label %11
11: ; preds = %7, %2
%12 = phi i1 [ false, %2 ], [ %10, %7 ]
br i1 %12, label %13, label %14
13: ; preds = %11
br label %2, !llvm.loop !6
14: ; preds = %11
%15 = load i32, ptr @stdin, align 4
%16 = call i32 @clearerr(i32 noundef %15)
ret void
}
declare i32 @getc(i32 noundef) #1
declare i32 @clearerr(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/tmpnodbptjr.c"
target datalayout = "e-m:e-p270: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 = dso_local global i32 0, align 4
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @read_rest_of_line() #0 {
%1 = alloca i32, align 4
br label %2
2: ; preds = %11, %0
%3 = load i32, ptr @stdin, align 4
%4 = call i32 @getc(i32 noundef %3)
store i32 %4, ptr %1, align 4
%5 = load i32, ptr %1, align 4
%6 = icmp ne i32 %5, 10
br i1 %6, label %7, label %11
7: ; preds = %2
%8 = load i32, ptr %1, align 4
%9 = load i32, ptr @EOF, align 4
%10 = icmp ne i32 %8, %9
br label %11
11: ; preds = %7, %2
%12 = phi i1 [ false, %2 ], [ %10, %7 ]
br i1 %12, label %2, label %13, !llvm.loop !6
13: ; preds = %11
%14 = load i32, ptr @stdin, align 4
%15 = call i32 @clearerr(i32 noundef %14)
ret void
}
declare i32 @getc(i32 noundef) #1
declare i32 @clearerr(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/tmpqbju4ewu.c'
source_filename = "/tmp/tmpqbju4ewu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @kindexof(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i8 %1, ptr %5, align 1
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %23, %2
%8 = load i32, ptr %6, align 4
%9 = add nsw i32 %8, 1
store i32 %9, ptr %6, align 4
%10 = load ptr, ptr %4, align 8
%11 = call i32 @kstrlen(ptr noundef %10)
%12 = icmp slt i32 %9, %11
br i1 %12, label %13, label %24
13: ; preds = %7
%14 = load ptr, ptr %4, align 8
%15 = getelementptr inbounds i8, ptr %14, i32 1
store ptr %15, ptr %4, align 8
%16 = load i8, ptr %14, align 1
%17 = sext i8 %16 to i32
%18 = load i8, ptr %5, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %17, %19
br i1 %20, label %21, label %23
21: ; preds = %13
%22 = load i32, ptr %6, align 4
store i32 %22, ptr %3, align 4
br label %25
23: ; preds = %13
br label %7, !llvm.loop !6
24: ; preds = %7
store i32 -1, ptr %3, align 4
br label %25
25: ; preds = %24, %21
%26 = load i32, ptr %3, align 4
ret i32 %26
}
declare i32 @kstrlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpqbju4ewu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @kindexof(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i8, align 1
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i8 %1, ptr %5, align 1
store i32 0, ptr %6, align 4
%7 = load i32, ptr %6, align 4
%8 = add nsw i32 %7, 1
store i32 %8, ptr %6, align 4
%9 = load ptr, ptr %4, align 8
%10 = call i32 @kstrlen(ptr noundef %9)
%11 = icmp slt i32 %8, %10
br i1 %11, label %.lr.ph, label %28
.lr.ph: ; preds = %2
br label %18
12: ; preds = %18
%13 = load i32, ptr %6, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %6, align 4
%15 = load ptr, ptr %4, align 8
%16 = call i32 @kstrlen(ptr noundef %15)
%17 = icmp slt i32 %14, %16
br i1 %17, label %18, label %._crit_edge, !llvm.loop !6
18: ; preds = %.lr.ph, %12
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds i8, ptr %19, i32 1
store ptr %20, ptr %4, align 8
%21 = load i8, ptr %19, align 1
%22 = sext i8 %21 to i32
%23 = load i8, ptr %5, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %22, %24
br i1 %25, label %26, label %12
26: ; preds = %18
%27 = load i32, ptr %6, align 4
store i32 %27, ptr %3, align 4
br label %29
._crit_edge: ; preds = %12
br label %28
28: ; preds = %._crit_edge, %2
store i32 -1, ptr %3, align 4
br label %29
29: ; preds = %28, %26
%30 = load i32, ptr %3, align 4
ret i32 %30
}
declare i32 @kstrlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpz98oqt1l.c'
source_filename = "/tmp/tmpz98oqt1l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"%02X:%02X:%02X:%02X:%02X:%02X\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @mac2string(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = call i64 @malloc(i32 noundef 18)
%5 = inttoptr i64 %4 to ptr
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %2, align 8
%8 = load i8, ptr %7, align 1
%9 = load ptr, ptr %2, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 1
%11 = load i8, ptr %10, align 1
%12 = load ptr, ptr %2, align 8
%13 = getelementptr inbounds i8, ptr %12, i64 2
%14 = load i8, ptr %13, align 1
%15 = load ptr, ptr %2, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 3
%17 = load i8, ptr %16, align 1
%18 = load ptr, ptr %2, align 8
%19 = getelementptr inbounds i8, ptr %18, i64 4
%20 = load i8, ptr %19, align 1
%21 = load ptr, ptr %2, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 5
%23 = load i8, ptr %22, align 1
%24 = call i32 @snprintf(ptr noundef %6, i32 noundef 18, ptr noundef @.str, i8 noundef zeroext %8, i8 noundef zeroext %11, i8 noundef zeroext %14, i8 noundef zeroext %17, i8 noundef zeroext %20, i8 noundef zeroext %23)
%25 = load ptr, ptr %3, align 8
ret ptr %25
}
declare i64 @malloc(i32 noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz98oqt1l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"%02X:%02X:%02X:%02X:%02X:%02X\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @mac2string(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = call i64 @malloc(i32 noundef 18)
%5 = inttoptr i64 %4 to ptr
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %2, align 8
%8 = load i8, ptr %7, align 1
%9 = load ptr, ptr %2, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 1
%11 = load i8, ptr %10, align 1
%12 = load ptr, ptr %2, align 8
%13 = getelementptr inbounds i8, ptr %12, i64 2
%14 = load i8, ptr %13, align 1
%15 = load ptr, ptr %2, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 3
%17 = load i8, ptr %16, align 1
%18 = load ptr, ptr %2, align 8
%19 = getelementptr inbounds i8, ptr %18, i64 4
%20 = load i8, ptr %19, align 1
%21 = load ptr, ptr %2, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 5
%23 = load i8, ptr %22, align 1
%24 = call i32 @snprintf(ptr noundef %6, i32 noundef 18, ptr noundef @.str, i8 noundef zeroext %8, i8 noundef zeroext %11, i8 noundef zeroext %14, i8 noundef zeroext %17, i8 noundef zeroext %20, i8 noundef zeroext %23)
%25 = load ptr, ptr %3, align 8
ret ptr %25
}
declare i64 @malloc(i32 noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, 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"}
|
; ModuleID = '/tmp/tmptdf7m2by.c'
source_filename = "/tmp/tmptdf7m2by.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @find_type_file(ptr noundef %0, ptr noundef %1, i16 noundef signext %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i16, align 2
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i16, align 2
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i16 %2, ptr %7, align 2
%11 = load ptr, ptr %5, align 8
%12 = call ptr @strchr(ptr noundef %11, i8 noundef signext 46)
store ptr %12, ptr %8, align 8
%13 = load ptr, ptr %8, align 8
%14 = getelementptr inbounds i8, ptr %13, i64 1
store ptr %14, ptr %9, align 8
store i16 0, ptr %10, align 2
br label %15
15: ; preds = %36, %3
%16 = load ptr, ptr %6, align 8
%17 = load i16, ptr %10, align 2
%18 = sext i16 %17 to i32
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds ptr, ptr %16, i64 %19
%21 = load ptr, ptr %20, align 8
%22 = call i32 @puts(ptr noundef %21)
%23 = load ptr, ptr %9, align 8
%24 = load ptr, ptr %6, align 8
%25 = load i16, ptr %10, align 2
%26 = sext i16 %25 to i32
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds ptr, ptr %24, i64 %27
%29 = load ptr, ptr %28, align 8
%30 = call i32 @strcmp(ptr noundef %23, ptr noundef %29)
%31 = icmp ne i32 %30, 0
br i1 %31, label %33, label %32
32: ; preds = %15
store i32 1, ptr %4, align 4
br label %43
33: ; preds = %15
%34 = load i16, ptr %10, align 2
%35 = add i16 %34, 1
store i16 %35, ptr %10, align 2
br label %36
36: ; preds = %33
%37 = load i16, ptr %10, align 2
%38 = sext i16 %37 to i32
%39 = load i16, ptr %7, align 2
%40 = sext i16 %39 to i32
%41 = icmp ne i32 %38, %40
br i1 %41, label %15, label %42, !llvm.loop !6
42: ; preds = %36
store i32 0, ptr %4, align 4
br label %43
43: ; preds = %42, %32
%44 = load i32, ptr %4, align 4
ret i32 %44
}
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @puts(ptr noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmptdf7m2by.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @find_type_file(ptr noundef %0, ptr noundef %1, i16 noundef signext %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i16, align 2
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i16, align 2
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i16 %2, ptr %7, align 2
%11 = load ptr, ptr %5, align 8
%12 = call ptr @strchr(ptr noundef %11, i8 noundef signext 46)
store ptr %12, ptr %8, align 8
%13 = load ptr, ptr %8, align 8
%14 = getelementptr inbounds i8, ptr %13, i64 1
store ptr %14, ptr %9, align 8
store i16 0, ptr %10, align 2
br label %15
15: ; preds = %36, %3
%16 = load ptr, ptr %6, align 8
%17 = load i16, ptr %10, align 2
%18 = sext i16 %17 to i32
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds ptr, ptr %16, i64 %19
%21 = load ptr, ptr %20, align 8
%22 = call i32 @puts(ptr noundef %21)
%23 = load ptr, ptr %9, align 8
%24 = load ptr, ptr %6, align 8
%25 = load i16, ptr %10, align 2
%26 = sext i16 %25 to i32
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds ptr, ptr %24, i64 %27
%29 = load ptr, ptr %28, align 8
%30 = call i32 @strcmp(ptr noundef %23, ptr noundef %29)
%31 = icmp ne i32 %30, 0
br i1 %31, label %33, label %32
32: ; preds = %15
store i32 1, ptr %4, align 4
br label %43
33: ; preds = %15
%34 = load i16, ptr %10, align 2
%35 = add i16 %34, 1
store i16 %35, ptr %10, align 2
br label %36
36: ; preds = %33
%37 = load i16, ptr %10, align 2
%38 = sext i16 %37 to i32
%39 = load i16, ptr %7, align 2
%40 = sext i16 %39 to i32
%41 = icmp ne i32 %38, %40
br i1 %41, label %15, label %42, !llvm.loop !6
42: ; preds = %36
store i32 0, ptr %4, align 4
br label %43
43: ; preds = %42, %32
%44 = load i32, ptr %4, align 4
ret i32 %44
}
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @puts(ptr noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp2ckm4ufv.c'
source_filename = "/tmp/tmp2ckm4ufv.c"
target datalayout = "e-m:e-p270: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 [27 x i8] c"unable to realloc %d bytes\00", align 1
@SIGSEGV = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @Tcl_Realloc(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = load i32, ptr %4, align 4
%8 = call ptr @realloc(ptr noundef %6, i32 noundef %7)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %18
11: ; preds = %2
%12 = load i32, ptr @stderr, align 4
%13 = load i32, ptr %4, align 4
%14 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str, i32 noundef %13)
%15 = call i32 (...) @getpid()
%16 = load i32, ptr @SIGSEGV, align 4
%17 = call i32 @kill(i32 noundef %15, i32 noundef %16)
br label %18
18: ; preds = %11, %2
%19 = load ptr, ptr %5, align 8
ret ptr %19
}
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @kill(i32 noundef, i32 noundef) #1
declare i32 @getpid(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2ckm4ufv.c"
target datalayout = "e-m:e-p270: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 [27 x i8] c"unable to realloc %d bytes\00", align 1
@SIGSEGV = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @Tcl_Realloc(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = load i32, ptr %4, align 4
%8 = call ptr @realloc(ptr noundef %6, i32 noundef %7)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %18
11: ; preds = %2
%12 = load i32, ptr @stderr, align 4
%13 = load i32, ptr %4, align 4
%14 = call i32 @fprintf(i32 noundef %12, ptr noundef @.str, i32 noundef %13)
%15 = call i32 (...) @getpid()
%16 = load i32, ptr @SIGSEGV, align 4
%17 = call i32 @kill(i32 noundef %15, i32 noundef %16)
br label %18
18: ; preds = %11, %2
%19 = load ptr, ptr %5, align 8
ret ptr %19
}
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @kill(i32 noundef, i32 noundef) #1
declare i32 @getpid(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpc_gbp5j0.c'
source_filename = "/tmp/tmpc_gbp5j0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [59 x i8] c"Usage: %s [--red=0/1] [--green=0/1] [--verbose] [--help]\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 ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 @exit(i32 noundef 2) #3
unreachable
}
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc_gbp5j0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [59 x i8] c"Usage: %s [--red=0/1] [--green=0/1] [--verbose] [--help]\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 ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 @exit(i32 noundef 2) #3
unreachable
}
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4ijro3ee.c'
source_filename = "/tmp/tmp4ijro3ee.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_20__ = type { %struct.TYPE_19__, ptr }
%struct.TYPE_19__ = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.TYPE_22__ = type { i32 }
%struct.TYPE_21__ = type { ptr, i32 }
%struct.TYPE_16__ = type { ptr }
%struct.TYPE_13__ = type { ptr, i32 }
%struct.TYPE_17__ = type { ptr }
%struct.TYPE_14__ = type { ptr, i32 }
%struct.TYPE_18__ = type { ptr }
%struct.TYPE_15__ = type { i32 }
@PKCS7_F_PKCS7_SET_TYPE = dso_local global i32 0, align 4
@PKCS7_R_UNSUPPORTED_CONTENT_TYPE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @PKCS7_set_type(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = call ptr @OBJ_nid2obj(i32 noundef %7)
store ptr %8, ptr %6, align 8
%9 = load i32, ptr %5, align 4
switch i32 %9, label %165 [
i32 129, label %10
i32 133, label %39
i32 128, label %50
i32 130, label %86
i32 131, label %115
i32 132, label %144
]
10: ; preds = %2
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds %struct.TYPE_20__, ptr %12, i32 0, i32 1
store ptr %11, ptr %13, align 8
%14 = call ptr (...) @PKCS7_SIGNED_new()
%15 = load ptr, ptr %4, align 8
%16 = getelementptr inbounds %struct.TYPE_20__, ptr %15, i32 0, i32 0
%17 = getelementptr inbounds %struct.TYPE_19__, ptr %16, i32 0, i32 5
store ptr %14, ptr %17, align 8
%18 = icmp eq ptr %14, null
br i1 %18, label %19, label %20
19: ; preds = %10
br label %170
20: ; preds = %10
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds %struct.TYPE_20__, ptr %21, i32 0, i32 0
%23 = getelementptr inbounds %struct.TYPE_19__, ptr %22, i32 0, i32 5
%24 = load ptr, ptr %23, align 8
%25 = getelementptr inbounds %struct.TYPE_22__, ptr %24, i32 0, i32 0
%26 = load i32, ptr %25, align 4
%27 = call i32 @ASN1_INTEGER_set(i32 noundef %26, i32 noundef 1)
%28 = icmp ne i32 %27, 0
br i1 %28, label %38, label %29
29: ; preds = %20
%30 = load ptr, ptr %4, align 8
%31 = getelementptr inbounds %struct.TYPE_20__, ptr %30, i32 0, i32 0
%32 = getelementptr inbounds %struct.TYPE_19__, ptr %31, i32 0, i32 5
%33 = load ptr, ptr %32, align 8
%34 = call i32 @PKCS7_SIGNED_free(ptr noundef %33)
%35 = load ptr, ptr %4, align 8
%36 = getelementptr inbounds %struct.TYPE_20__, ptr %35, i32 0, i32 0
%37 = getelementptr inbounds %struct.TYPE_19__, ptr %36, i32 0, i32 5
store ptr null, ptr %37, align 8
br label %170
38: ; preds = %20
br label %169
39: ; preds = %2
%40 = load ptr, ptr %6, align 8
%41 = load ptr, ptr %4, align 8
%42 = getelementptr inbounds %struct.TYPE_20__, ptr %41, i32 0, i32 1
store ptr %40, ptr %42, align 8
%43 = call ptr (...) @ASN1_OCTET_STRING_new()
%44 = load ptr, ptr %4, align 8
%45 = getelementptr inbounds %struct.TYPE_20__, ptr %44, i32 0, i32 0
%46 = getelementptr inbounds %struct.TYPE_19__, ptr %45, i32 0, i32 4
store ptr %43, ptr %46, align 8
%47 = icmp eq ptr %43, null
br i1 %47, label %48, label %49
48: ; preds = %39
br label %170
49: ; preds = %39
br label %169
50: ; preds = %2
%51 = load ptr, ptr %6, align 8
%52 = load ptr, ptr %4, align 8
%53 = getelementptr inbounds %struct.TYPE_20__, ptr %52, i32 0, i32 1
store ptr %51, ptr %53, align 8
%54 = call ptr (...) @PKCS7_SIGN_ENVELOPE_new()
%55 = load ptr, ptr %4, align 8
%56 = getelementptr inbounds %struct.TYPE_20__, ptr %55, i32 0, i32 0
%57 = getelementptr inbounds %struct.TYPE_19__, ptr %56, i32 0, i32 3
store ptr %54, ptr %57, align 8
%58 = icmp eq ptr %54, null
br i1 %58, label %59, label %60
59: ; preds = %50
br label %170
60: ; preds = %50
%61 = load ptr, ptr %4, align 8
%62 = getelementptr inbounds %struct.TYPE_20__, ptr %61, i32 0, i32 0
%63 = getelementptr inbounds %struct.TYPE_19__, ptr %62, i32 0, i32 3
%64 = load ptr, ptr %63, align 8
%65 = getelementptr inbounds %struct.TYPE_21__, ptr %64, i32 0, i32 1
%66 = load i32, ptr %65, align 8
%67 = call i32 @ASN1_INTEGER_set(i32 noundef %66, i32 noundef 1)
%68 = load ptr, ptr %4, align 8
%69 = getelementptr inbounds %struct.TYPE_20__, ptr %68, i32 0, i32 0
%70 = getelementptr inbounds %struct.TYPE_19__, ptr %69, i32 0, i32 3
%71 = load ptr, ptr %70, align 8
%72 = getelementptr inbounds %struct.TYPE_21__, ptr %71, i32 0, i32 1
%73 = load i32, ptr %72, align 8
%74 = call i32 @ASN1_INTEGER_set(i32 noundef %73, i32 noundef 1)
%75 = icmp ne i32 %74, 0
br i1 %75, label %77, label %76
76: ; preds = %60
br label %170
77: ; preds = %60
%78 = call ptr @OBJ_nid2obj(i32 noundef 133)
%79 = load ptr, ptr %4, align 8
%80 = getelementptr inbounds %struct.TYPE_20__, ptr %79, i32 0, i32 0
%81 = getelementptr inbounds %struct.TYPE_19__, ptr %80, i32 0, i32 3
%82 = load ptr, ptr %81, align 8
%83 = getelementptr inbounds %struct.TYPE_21__, ptr %82, i32 0, i32 0
%84 = load ptr, ptr %83, align 8
%85 = getelementptr inbounds %struct.TYPE_16__, ptr %84, i32 0, i32 0
store ptr %78, ptr %85, align 8
br label %169
86: ; preds = %2
%87 = load ptr, ptr %6, align 8
%88 = load ptr, ptr %4, align 8
%89 = getelementptr inbounds %struct.TYPE_20__, ptr %88, i32 0, i32 1
store ptr %87, ptr %89, align 8
%90 = call ptr (...) @PKCS7_ENVELOPE_new()
%91 = load ptr, ptr %4, align 8
%92 = getelementptr inbounds %struct.TYPE_20__, ptr %91, i32 0, i32 0
%93 = getelementptr inbounds %struct.TYPE_19__, ptr %92, i32 0, i32 2
store ptr %90, ptr %93, align 8
%94 = icmp eq ptr %90, null
br i1 %94, label %95, label %96
95: ; preds = %86
br label %170
96: ; preds = %86
%97 = load ptr, ptr %4, align 8
%98 = getelementptr inbounds %struct.TYPE_20__, ptr %97, i32 0, i32 0
%99 = getelementptr inbounds %struct.TYPE_19__, ptr %98, i32 0, i32 2
%100 = load ptr, ptr %99, align 8
%101 = getelementptr inbounds %struct.TYPE_13__, ptr %100, i32 0, i32 1
%102 = load i32, ptr %101, align 8
%103 = call i32 @ASN1_INTEGER_set(i32 noundef %102, i32 noundef 0)
%104 = icmp ne i32 %103, 0
br i1 %104, label %106, label %105
105: ; preds = %96
br label %170
106: ; preds = %96
%107 = call ptr @OBJ_nid2obj(i32 noundef 133)
%108 = load ptr, ptr %4, align 8
%109 = getelementptr inbounds %struct.TYPE_20__, ptr %108, i32 0, i32 0
%110 = getelementptr inbounds %struct.TYPE_19__, ptr %109, i32 0, i32 2
%111 = load ptr, ptr %110, align 8
%112 = getelementptr inbounds %struct.TYPE_13__, ptr %111, i32 0, i32 0
%113 = load ptr, ptr %112, align 8
%114 = getelementptr inbounds %struct.TYPE_17__, ptr %113, i32 0, i32 0
store ptr %107, ptr %114, align 8
br label %169
115: ; preds = %2
%116 = load ptr, ptr %6, align 8
%117 = load ptr, ptr %4, align 8
%118 = getelementptr inbounds %struct.TYPE_20__, ptr %117, i32 0, i32 1
store ptr %116, ptr %118, align 8
%119 = call ptr (...) @PKCS7_ENCRYPT_new()
%120 = load ptr, ptr %4, align 8
%121 = getelementptr inbounds %struct.TYPE_20__, ptr %120, i32 0, i32 0
%122 = getelementptr inbounds %struct.TYPE_19__, ptr %121, i32 0, i32 1
store ptr %119, ptr %122, align 8
%123 = icmp eq ptr %119, null
br i1 %123, label %124, label %125
124: ; preds = %115
br label %170
125: ; preds = %115
%126 = load ptr, ptr %4, align 8
%127 = getelementptr inbounds %struct.TYPE_20__, ptr %126, i32 0, i32 0
%128 = getelementptr inbounds %struct.TYPE_19__, ptr %127, i32 0, i32 1
%129 = load ptr, ptr %128, align 8
%130 = getelementptr inbounds %struct.TYPE_14__, ptr %129, i32 0, i32 1
%131 = load i32, ptr %130, align 8
%132 = call i32 @ASN1_INTEGER_set(i32 noundef %131, i32 noundef 0)
%133 = icmp ne i32 %132, 0
br i1 %133, label %135, label %134
134: ; preds = %125
br label %170
135: ; preds = %125
%136 = call ptr @OBJ_nid2obj(i32 noundef 133)
%137 = load ptr, ptr %4, align 8
%138 = getelementptr inbounds %struct.TYPE_20__, ptr %137, i32 0, i32 0
%139 = getelementptr inbounds %struct.TYPE_19__, ptr %138, i32 0, i32 1
%140 = load ptr, ptr %139, align 8
%141 = getelementptr inbounds %struct.TYPE_14__, ptr %140, i32 0, i32 0
%142 = load ptr, ptr %141, align 8
%143 = getelementptr inbounds %struct.TYPE_18__, ptr %142, i32 0, i32 0
store ptr %136, ptr %143, align 8
br label %169
144: ; preds = %2
%145 = load ptr, ptr %6, align 8
%146 = load ptr, ptr %4, align 8
%147 = getelementptr inbounds %struct.TYPE_20__, ptr %146, i32 0, i32 1
store ptr %145, ptr %147, align 8
%148 = call ptr (...) @PKCS7_DIGEST_new()
%149 = load ptr, ptr %4, align 8
%150 = getelementptr inbounds %struct.TYPE_20__, ptr %149, i32 0, i32 0
%151 = getelementptr inbounds %struct.TYPE_19__, ptr %150, i32 0, i32 0
store ptr %148, ptr %151, align 8
%152 = icmp eq ptr %148, null
br i1 %152, label %153, label %154
153: ; preds = %144
br label %170
154: ; preds = %144
%155 = load ptr, ptr %4, align 8
%156 = getelementptr inbounds %struct.TYPE_20__, ptr %155, i32 0, i32 0
%157 = getelementptr inbounds %struct.TYPE_19__, ptr %156, i32 0, i32 0
%158 = load ptr, ptr %157, align 8
%159 = getelementptr inbounds %struct.TYPE_15__, ptr %158, i32 0, i32 0
%160 = load i32, ptr %159, align 4
%161 = call i32 @ASN1_INTEGER_set(i32 noundef %160, i32 noundef 0)
%162 = icmp ne i32 %161, 0
br i1 %162, label %164, label %163
163: ; preds = %154
br label %170
164: ; preds = %154
br label %169
165: ; preds = %2
%166 = load i32, ptr @PKCS7_F_PKCS7_SET_TYPE, align 4
%167 = load i32, ptr @PKCS7_R_UNSUPPORTED_CONTENT_TYPE, align 4
%168 = call i32 @PKCS7err(i32 noundef %166, i32 noundef %167)
br label %170
169: ; preds = %164, %135, %106, %77, %49, %38
store i32 1, ptr %3, align 4
br label %171
170: ; preds = %165, %163, %153, %134, %124, %105, %95, %76, %59, %48, %29, %19
store i32 0, ptr %3, align 4
br label %171
171: ; preds = %170, %169
%172 = load i32, ptr %3, align 4
ret i32 %172
}
declare ptr @OBJ_nid2obj(i32 noundef) #1
declare ptr @PKCS7_SIGNED_new(...) #1
declare i32 @ASN1_INTEGER_set(i32 noundef, i32 noundef) #1
declare i32 @PKCS7_SIGNED_free(ptr noundef) #1
declare ptr @ASN1_OCTET_STRING_new(...) #1
declare ptr @PKCS7_SIGN_ENVELOPE_new(...) #1
declare ptr @PKCS7_ENVELOPE_new(...) #1
declare ptr @PKCS7_ENCRYPT_new(...) #1
declare ptr @PKCS7_DIGEST_new(...) #1
declare i32 @PKCS7err(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/tmp4ijro3ee.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_20__ = type { %struct.TYPE_19__, ptr }
%struct.TYPE_19__ = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.TYPE_22__ = type { i32 }
%struct.TYPE_21__ = type { ptr, i32 }
%struct.TYPE_16__ = type { ptr }
%struct.TYPE_13__ = type { ptr, i32 }
%struct.TYPE_17__ = type { ptr }
%struct.TYPE_14__ = type { ptr, i32 }
%struct.TYPE_18__ = type { ptr }
%struct.TYPE_15__ = type { i32 }
@PKCS7_F_PKCS7_SET_TYPE = dso_local global i32 0, align 4
@PKCS7_R_UNSUPPORTED_CONTENT_TYPE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @PKCS7_set_type(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = call ptr @OBJ_nid2obj(i32 noundef %7)
store ptr %8, ptr %6, align 8
%9 = load i32, ptr %5, align 4
switch i32 %9, label %165 [
i32 129, label %10
i32 133, label %39
i32 128, label %50
i32 130, label %86
i32 131, label %115
i32 132, label %144
]
10: ; preds = %2
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds %struct.TYPE_20__, ptr %12, i32 0, i32 1
store ptr %11, ptr %13, align 8
%14 = call ptr (...) @PKCS7_SIGNED_new()
%15 = load ptr, ptr %4, align 8
%16 = getelementptr inbounds %struct.TYPE_20__, ptr %15, i32 0, i32 0
%17 = getelementptr inbounds %struct.TYPE_19__, ptr %16, i32 0, i32 5
store ptr %14, ptr %17, align 8
%18 = icmp eq ptr %14, null
br i1 %18, label %19, label %20
19: ; preds = %10
br label %170
20: ; preds = %10
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds %struct.TYPE_20__, ptr %21, i32 0, i32 0
%23 = getelementptr inbounds %struct.TYPE_19__, ptr %22, i32 0, i32 5
%24 = load ptr, ptr %23, align 8
%25 = getelementptr inbounds %struct.TYPE_22__, ptr %24, i32 0, i32 0
%26 = load i32, ptr %25, align 4
%27 = call i32 @ASN1_INTEGER_set(i32 noundef %26, i32 noundef 1)
%28 = icmp ne i32 %27, 0
br i1 %28, label %38, label %29
29: ; preds = %20
%30 = load ptr, ptr %4, align 8
%31 = getelementptr inbounds %struct.TYPE_20__, ptr %30, i32 0, i32 0
%32 = getelementptr inbounds %struct.TYPE_19__, ptr %31, i32 0, i32 5
%33 = load ptr, ptr %32, align 8
%34 = call i32 @PKCS7_SIGNED_free(ptr noundef %33)
%35 = load ptr, ptr %4, align 8
%36 = getelementptr inbounds %struct.TYPE_20__, ptr %35, i32 0, i32 0
%37 = getelementptr inbounds %struct.TYPE_19__, ptr %36, i32 0, i32 5
store ptr null, ptr %37, align 8
br label %170
38: ; preds = %20
br label %169
39: ; preds = %2
%40 = load ptr, ptr %6, align 8
%41 = load ptr, ptr %4, align 8
%42 = getelementptr inbounds %struct.TYPE_20__, ptr %41, i32 0, i32 1
store ptr %40, ptr %42, align 8
%43 = call ptr (...) @ASN1_OCTET_STRING_new()
%44 = load ptr, ptr %4, align 8
%45 = getelementptr inbounds %struct.TYPE_20__, ptr %44, i32 0, i32 0
%46 = getelementptr inbounds %struct.TYPE_19__, ptr %45, i32 0, i32 4
store ptr %43, ptr %46, align 8
%47 = icmp eq ptr %43, null
br i1 %47, label %48, label %49
48: ; preds = %39
br label %170
49: ; preds = %39
br label %169
50: ; preds = %2
%51 = load ptr, ptr %6, align 8
%52 = load ptr, ptr %4, align 8
%53 = getelementptr inbounds %struct.TYPE_20__, ptr %52, i32 0, i32 1
store ptr %51, ptr %53, align 8
%54 = call ptr (...) @PKCS7_SIGN_ENVELOPE_new()
%55 = load ptr, ptr %4, align 8
%56 = getelementptr inbounds %struct.TYPE_20__, ptr %55, i32 0, i32 0
%57 = getelementptr inbounds %struct.TYPE_19__, ptr %56, i32 0, i32 3
store ptr %54, ptr %57, align 8
%58 = icmp eq ptr %54, null
br i1 %58, label %59, label %60
59: ; preds = %50
br label %170
60: ; preds = %50
%61 = load ptr, ptr %4, align 8
%62 = getelementptr inbounds %struct.TYPE_20__, ptr %61, i32 0, i32 0
%63 = getelementptr inbounds %struct.TYPE_19__, ptr %62, i32 0, i32 3
%64 = load ptr, ptr %63, align 8
%65 = getelementptr inbounds %struct.TYPE_21__, ptr %64, i32 0, i32 1
%66 = load i32, ptr %65, align 8
%67 = call i32 @ASN1_INTEGER_set(i32 noundef %66, i32 noundef 1)
%68 = load ptr, ptr %4, align 8
%69 = getelementptr inbounds %struct.TYPE_20__, ptr %68, i32 0, i32 0
%70 = getelementptr inbounds %struct.TYPE_19__, ptr %69, i32 0, i32 3
%71 = load ptr, ptr %70, align 8
%72 = getelementptr inbounds %struct.TYPE_21__, ptr %71, i32 0, i32 1
%73 = load i32, ptr %72, align 8
%74 = call i32 @ASN1_INTEGER_set(i32 noundef %73, i32 noundef 1)
%75 = icmp ne i32 %74, 0
br i1 %75, label %77, label %76
76: ; preds = %60
br label %170
77: ; preds = %60
%78 = call ptr @OBJ_nid2obj(i32 noundef 133)
%79 = load ptr, ptr %4, align 8
%80 = getelementptr inbounds %struct.TYPE_20__, ptr %79, i32 0, i32 0
%81 = getelementptr inbounds %struct.TYPE_19__, ptr %80, i32 0, i32 3
%82 = load ptr, ptr %81, align 8
%83 = getelementptr inbounds %struct.TYPE_21__, ptr %82, i32 0, i32 0
%84 = load ptr, ptr %83, align 8
%85 = getelementptr inbounds %struct.TYPE_16__, ptr %84, i32 0, i32 0
store ptr %78, ptr %85, align 8
br label %169
86: ; preds = %2
%87 = load ptr, ptr %6, align 8
%88 = load ptr, ptr %4, align 8
%89 = getelementptr inbounds %struct.TYPE_20__, ptr %88, i32 0, i32 1
store ptr %87, ptr %89, align 8
%90 = call ptr (...) @PKCS7_ENVELOPE_new()
%91 = load ptr, ptr %4, align 8
%92 = getelementptr inbounds %struct.TYPE_20__, ptr %91, i32 0, i32 0
%93 = getelementptr inbounds %struct.TYPE_19__, ptr %92, i32 0, i32 2
store ptr %90, ptr %93, align 8
%94 = icmp eq ptr %90, null
br i1 %94, label %95, label %96
95: ; preds = %86
br label %170
96: ; preds = %86
%97 = load ptr, ptr %4, align 8
%98 = getelementptr inbounds %struct.TYPE_20__, ptr %97, i32 0, i32 0
%99 = getelementptr inbounds %struct.TYPE_19__, ptr %98, i32 0, i32 2
%100 = load ptr, ptr %99, align 8
%101 = getelementptr inbounds %struct.TYPE_13__, ptr %100, i32 0, i32 1
%102 = load i32, ptr %101, align 8
%103 = call i32 @ASN1_INTEGER_set(i32 noundef %102, i32 noundef 0)
%104 = icmp ne i32 %103, 0
br i1 %104, label %106, label %105
105: ; preds = %96
br label %170
106: ; preds = %96
%107 = call ptr @OBJ_nid2obj(i32 noundef 133)
%108 = load ptr, ptr %4, align 8
%109 = getelementptr inbounds %struct.TYPE_20__, ptr %108, i32 0, i32 0
%110 = getelementptr inbounds %struct.TYPE_19__, ptr %109, i32 0, i32 2
%111 = load ptr, ptr %110, align 8
%112 = getelementptr inbounds %struct.TYPE_13__, ptr %111, i32 0, i32 0
%113 = load ptr, ptr %112, align 8
%114 = getelementptr inbounds %struct.TYPE_17__, ptr %113, i32 0, i32 0
store ptr %107, ptr %114, align 8
br label %169
115: ; preds = %2
%116 = load ptr, ptr %6, align 8
%117 = load ptr, ptr %4, align 8
%118 = getelementptr inbounds %struct.TYPE_20__, ptr %117, i32 0, i32 1
store ptr %116, ptr %118, align 8
%119 = call ptr (...) @PKCS7_ENCRYPT_new()
%120 = load ptr, ptr %4, align 8
%121 = getelementptr inbounds %struct.TYPE_20__, ptr %120, i32 0, i32 0
%122 = getelementptr inbounds %struct.TYPE_19__, ptr %121, i32 0, i32 1
store ptr %119, ptr %122, align 8
%123 = icmp eq ptr %119, null
br i1 %123, label %124, label %125
124: ; preds = %115
br label %170
125: ; preds = %115
%126 = load ptr, ptr %4, align 8
%127 = getelementptr inbounds %struct.TYPE_20__, ptr %126, i32 0, i32 0
%128 = getelementptr inbounds %struct.TYPE_19__, ptr %127, i32 0, i32 1
%129 = load ptr, ptr %128, align 8
%130 = getelementptr inbounds %struct.TYPE_14__, ptr %129, i32 0, i32 1
%131 = load i32, ptr %130, align 8
%132 = call i32 @ASN1_INTEGER_set(i32 noundef %131, i32 noundef 0)
%133 = icmp ne i32 %132, 0
br i1 %133, label %135, label %134
134: ; preds = %125
br label %170
135: ; preds = %125
%136 = call ptr @OBJ_nid2obj(i32 noundef 133)
%137 = load ptr, ptr %4, align 8
%138 = getelementptr inbounds %struct.TYPE_20__, ptr %137, i32 0, i32 0
%139 = getelementptr inbounds %struct.TYPE_19__, ptr %138, i32 0, i32 1
%140 = load ptr, ptr %139, align 8
%141 = getelementptr inbounds %struct.TYPE_14__, ptr %140, i32 0, i32 0
%142 = load ptr, ptr %141, align 8
%143 = getelementptr inbounds %struct.TYPE_18__, ptr %142, i32 0, i32 0
store ptr %136, ptr %143, align 8
br label %169
144: ; preds = %2
%145 = load ptr, ptr %6, align 8
%146 = load ptr, ptr %4, align 8
%147 = getelementptr inbounds %struct.TYPE_20__, ptr %146, i32 0, i32 1
store ptr %145, ptr %147, align 8
%148 = call ptr (...) @PKCS7_DIGEST_new()
%149 = load ptr, ptr %4, align 8
%150 = getelementptr inbounds %struct.TYPE_20__, ptr %149, i32 0, i32 0
%151 = getelementptr inbounds %struct.TYPE_19__, ptr %150, i32 0, i32 0
store ptr %148, ptr %151, align 8
%152 = icmp eq ptr %148, null
br i1 %152, label %153, label %154
153: ; preds = %144
br label %170
154: ; preds = %144
%155 = load ptr, ptr %4, align 8
%156 = getelementptr inbounds %struct.TYPE_20__, ptr %155, i32 0, i32 0
%157 = getelementptr inbounds %struct.TYPE_19__, ptr %156, i32 0, i32 0
%158 = load ptr, ptr %157, align 8
%159 = getelementptr inbounds %struct.TYPE_15__, ptr %158, i32 0, i32 0
%160 = load i32, ptr %159, align 4
%161 = call i32 @ASN1_INTEGER_set(i32 noundef %160, i32 noundef 0)
%162 = icmp ne i32 %161, 0
br i1 %162, label %164, label %163
163: ; preds = %154
br label %170
164: ; preds = %154
br label %169
165: ; preds = %2
%166 = load i32, ptr @PKCS7_F_PKCS7_SET_TYPE, align 4
%167 = load i32, ptr @PKCS7_R_UNSUPPORTED_CONTENT_TYPE, align 4
%168 = call i32 @PKCS7err(i32 noundef %166, i32 noundef %167)
br label %170
169: ; preds = %164, %135, %106, %77, %49, %38
store i32 1, ptr %3, align 4
br label %171
170: ; preds = %165, %163, %153, %134, %124, %105, %95, %76, %59, %48, %29, %19
store i32 0, ptr %3, align 4
br label %171
171: ; preds = %170, %169
%172 = load i32, ptr %3, align 4
ret i32 %172
}
declare ptr @OBJ_nid2obj(i32 noundef) #1
declare ptr @PKCS7_SIGNED_new(...) #1
declare i32 @ASN1_INTEGER_set(i32 noundef, i32 noundef) #1
declare i32 @PKCS7_SIGNED_free(ptr noundef) #1
declare ptr @ASN1_OCTET_STRING_new(...) #1
declare ptr @PKCS7_SIGN_ENVELOPE_new(...) #1
declare ptr @PKCS7_ENVELOPE_new(...) #1
declare ptr @PKCS7_ENCRYPT_new(...) #1
declare ptr @PKCS7_DIGEST_new(...) #1
declare i32 @PKCS7err(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/tmp6bki7e0p.c'
source_filename = "/tmp/tmp6bki7e0p.c"
target datalayout = "e-m:e-p270: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 = dso_local global ptr null, align 8
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [2 x i8] c"-\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"# [stdin]\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [22 x i8] c"Cannot open '%s': %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [6 x i8] c"# %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = 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
%9 = call i32 (...) @init_testing()
%10 = load i32, ptr %4, align 4
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %16
12: ; preds = %2
%13 = load ptr, ptr @stdin, align 8
%14 = load i32, ptr @stdout, align 4
%15 = call i64 @process_file(ptr noundef %13, i32 noundef %14)
br label %71
16: ; preds = %2
store i32 1, ptr %8, align 4
br label %17
17: ; preds = %67, %16
%18 = load i32, ptr %8, align 4
%19 = load i32, ptr %4, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %70
21: ; preds = %17
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %8, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds ptr, ptr %22, i64 %24
%26 = load ptr, ptr %25, align 8
%27 = call i64 @strcmp(ptr noundef %26, ptr noundef @.str)
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %21
%30 = load ptr, ptr @stdin, align 8
store ptr %30, ptr %7, align 8
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %58
32: ; preds = %21
%33 = load ptr, ptr %5, align 8
%34 = load i32, ptr %8, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds ptr, ptr %33, i64 %35
%37 = load ptr, ptr %36, align 8
%38 = call ptr @fopen(ptr noundef %37, ptr noundef @.str.2)
store ptr %38, ptr %7, align 8
%39 = icmp eq ptr %38, null
br i1 %39, label %40, label %50
40: ; preds = %32
%41 = load i32, ptr @stderr, align 4
%42 = load ptr, ptr %5, align 8
%43 = load i32, ptr %8, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds ptr, ptr %42, i64 %44
%46 = load ptr, ptr %45, align 8
%47 = load i32, ptr @errno, align 4
%48 = call ptr @strerror(i32 noundef %47)
%49 = call i32 @fprintf(i32 noundef %41, ptr noundef @.str.3, ptr noundef %46, ptr noundef %48)
store i32 1, ptr %3, align 4
br label %73
50: ; preds = %32
%51 = load ptr, ptr %5, align 8
%52 = load i32, ptr %8, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds ptr, ptr %51, i64 %53
%55 = load ptr, ptr %54, align 8
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %55)
br label %57
57: ; preds = %50
br label %58
58: ; preds = %57, %29
%59 = load ptr, ptr %7, align 8
%60 = load i32, ptr @stdout, align 4
%61 = call i64 @process_file(ptr noundef %59, i32 noundef %60)
%62 = icmp ne i64 %61, 0
br i1 %62, label %63, label %64
63: ; preds = %58
store i32 1, ptr %6, align 4
br label %64
64: ; preds = %63, %58
%65 = load ptr, ptr %7, align 8
%66 = call i32 @fclose(ptr noundef %65)
br label %67
67: ; preds = %64
%68 = load i32, ptr %8, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %8, align 4
br label %17, !llvm.loop !6
70: ; preds = %17
br label %71
71: ; preds = %70, %12
%72 = load i32, ptr %6, align 4
store i32 %72, ptr %3, align 4
br label %73
73: ; preds = %71, %40
%74 = load i32, ptr %3, align 4
ret i32 %74
}
declare i32 @init_testing(...) #1
declare i64 @process_file(ptr noundef, i32 noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6bki7e0p.c"
target datalayout = "e-m:e-p270: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 = dso_local global ptr null, align 8
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [2 x i8] c"-\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"# [stdin]\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [22 x i8] c"Cannot open '%s': %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [6 x i8] c"# %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = 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
%9 = call i32 (...) @init_testing()
%10 = load i32, ptr %4, align 4
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %16
12: ; preds = %2
%13 = load ptr, ptr @stdin, align 8
%14 = load i32, ptr @stdout, align 4
%15 = call i64 @process_file(ptr noundef %13, i32 noundef %14)
br label %73
16: ; preds = %2
store i32 1, ptr %8, align 4
%17 = load i32, ptr %8, align 4
%18 = load i32, ptr %4, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %.lr.ph, label %72
.lr.ph: ; preds = %16
br label %20
20: ; preds = %.lr.ph, %66
%21 = load ptr, ptr %5, align 8
%22 = load i32, ptr %8, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds ptr, ptr %21, i64 %23
%25 = load ptr, ptr %24, align 8
%26 = call i64 @strcmp(ptr noundef %25, ptr noundef @.str)
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %31
28: ; preds = %20
%29 = load ptr, ptr @stdin, align 8
store ptr %29, ptr %7, align 8
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %57
31: ; preds = %20
%32 = load ptr, ptr %5, align 8
%33 = load i32, ptr %8, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds ptr, ptr %32, i64 %34
%36 = load ptr, ptr %35, align 8
%37 = call ptr @fopen(ptr noundef %36, ptr noundef @.str.2)
store ptr %37, ptr %7, align 8
%38 = icmp eq ptr %37, null
br i1 %38, label %39, label %49
39: ; preds = %31
%40 = load i32, ptr @stderr, align 4
%41 = load ptr, ptr %5, align 8
%42 = load i32, ptr %8, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds ptr, ptr %41, i64 %43
%45 = load ptr, ptr %44, align 8
%46 = load i32, ptr @errno, align 4
%47 = call ptr @strerror(i32 noundef %46)
%48 = call i32 @fprintf(i32 noundef %40, ptr noundef @.str.3, ptr noundef %45, ptr noundef %47)
store i32 1, ptr %3, align 4
br label %75
49: ; preds = %31
%50 = load ptr, ptr %5, align 8
%51 = load i32, ptr %8, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds ptr, ptr %50, i64 %52
%54 = load ptr, ptr %53, align 8
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %54)
br label %56
56: ; preds = %49
br label %57
57: ; preds = %56, %28
%58 = load ptr, ptr %7, align 8
%59 = load i32, ptr @stdout, align 4
%60 = call i64 @process_file(ptr noundef %58, i32 noundef %59)
%61 = icmp ne i64 %60, 0
br i1 %61, label %62, label %63
62: ; preds = %57
store i32 1, ptr %6, align 4
br label %63
63: ; preds = %62, %57
%64 = load ptr, ptr %7, align 8
%65 = call i32 @fclose(ptr noundef %64)
br label %66
66: ; preds = %63
%67 = load i32, ptr %8, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %8, align 4
%69 = load i32, ptr %8, align 4
%70 = load i32, ptr %4, align 4
%71 = icmp slt i32 %69, %70
br i1 %71, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %66
br label %72
72: ; preds = %._crit_edge, %16
br label %73
73: ; preds = %72, %12
%74 = load i32, ptr %6, align 4
store i32 %74, ptr %3, align 4
br label %75
75: ; preds = %73, %39
%76 = load i32, ptr %3, align 4
ret i32 %76
}
declare i32 @init_testing(...) #1
declare i64 @process_file(ptr noundef, i32 noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpqeay61w4.c'
source_filename = "/tmp/tmpqeay61w4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @random_size(i64 noundef %0) #0 {
%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
store i64 %0, ptr %2, align 8
%7 = load i64, ptr %2, align 8
%8 = sdiv i64 %7, 4096
store i64 %8, ptr %6, align 8
%9 = load i64, ptr %6, align 8
%10 = icmp sgt i64 %9, 0
br i1 %10, label %11, label %44
11: ; preds = %1
%12 = call i64 @lran2(i32 noundef 0)
%13 = srem i64 %12, 1024
store i64 %13, ptr %3, align 8
%14 = load i64, ptr %3, align 8
%15 = and i64 %14, 7
%16 = mul nsw i64 %15, 4
store i64 %16, ptr %4, align 8
%17 = load i64, ptr %3, align 8
%18 = icmp slt i64 %17, 512
br i1 %18, label %19, label %25
19: ; preds = %11
%20 = load i64, ptr %3, align 8
%21 = ashr i64 %20, 6
%22 = shl i64 1, %21
%23 = load i64, ptr %4, align 8
%24 = add nsw i64 %22, %23
store i64 %24, ptr %5, align 8
br label %43
25: ; preds = %11
%26 = load i64, ptr %3, align 8
%27 = icmp slt i64 %26, 532
br i1 %27, label %28, label %37
28: ; preds = %25
%29 = call i64 @lran2(i32 noundef 0)
%30 = load i64, ptr %6, align 8
%31 = srem i64 %29, %30
%32 = add nsw i64 %31, 1
%33 = mul nsw i64 %32, 4096
%34 = load i64, ptr %4, align 8
%35 = add nsw i64 %33, %34
%36 = sub nsw i64 %35, 16
store i64 %36, ptr %5, align 8
br label %42
37: ; preds = %25
%38 = call i64 @lran2(i32 noundef 0)
%39 = load i64, ptr %2, align 8
%40 = srem i64 %38, %39
%41 = add nsw i64 %40, 1
store i64 %41, ptr %5, align 8
br label %42
42: ; preds = %37, %28
br label %43
43: ; preds = %42, %19
br label %49
44: ; preds = %1
%45 = call i64 @lran2(i32 noundef 0)
%46 = load i64, ptr %2, align 8
%47 = srem i64 %45, %46
%48 = add nsw i64 %47, 1
store i64 %48, ptr %5, align 8
br label %49
49: ; preds = %44, %43
%50 = load i64, ptr %5, align 8
ret i64 %50
}
declare i64 @lran2(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/tmpqeay61w4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @random_size(i64 noundef %0) #0 {
%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
store i64 %0, ptr %2, align 8
%7 = load i64, ptr %2, align 8
%8 = sdiv i64 %7, 4096
store i64 %8, ptr %6, align 8
%9 = load i64, ptr %6, align 8
%10 = icmp sgt i64 %9, 0
br i1 %10, label %11, label %44
11: ; preds = %1
%12 = call i64 @lran2(i32 noundef 0)
%13 = srem i64 %12, 1024
store i64 %13, ptr %3, align 8
%14 = load i64, ptr %3, align 8
%15 = and i64 %14, 7
%16 = mul nsw i64 %15, 4
store i64 %16, ptr %4, align 8
%17 = load i64, ptr %3, align 8
%18 = icmp slt i64 %17, 512
br i1 %18, label %19, label %25
19: ; preds = %11
%20 = load i64, ptr %3, align 8
%21 = ashr i64 %20, 6
%22 = shl i64 1, %21
%23 = load i64, ptr %4, align 8
%24 = add nsw i64 %22, %23
store i64 %24, ptr %5, align 8
br label %43
25: ; preds = %11
%26 = load i64, ptr %3, align 8
%27 = icmp slt i64 %26, 532
br i1 %27, label %28, label %37
28: ; preds = %25
%29 = call i64 @lran2(i32 noundef 0)
%30 = load i64, ptr %6, align 8
%31 = srem i64 %29, %30
%32 = add nsw i64 %31, 1
%33 = mul nsw i64 %32, 4096
%34 = load i64, ptr %4, align 8
%35 = add nsw i64 %33, %34
%36 = sub nsw i64 %35, 16
store i64 %36, ptr %5, align 8
br label %42
37: ; preds = %25
%38 = call i64 @lran2(i32 noundef 0)
%39 = load i64, ptr %2, align 8
%40 = srem i64 %38, %39
%41 = add nsw i64 %40, 1
store i64 %41, ptr %5, align 8
br label %42
42: ; preds = %37, %28
br label %43
43: ; preds = %42, %19
br label %49
44: ; preds = %1
%45 = call i64 @lran2(i32 noundef 0)
%46 = load i64, ptr %2, align 8
%47 = srem i64 %45, %46
%48 = add nsw i64 %47, 1
store i64 %48, ptr %5, align 8
br label %49
49: ; preds = %44, %43
%50 = load i64, ptr %5, align 8
ret i64 %50
}
declare i64 @lran2(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/tmpthxtp7wa.c'
source_filename = "/tmp/tmpthxtp7wa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"==== Game Shutdown ====\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Game_Shutdown() #0 {
%1 = call i32 @Com_Printf(ptr noundef @.str)
%2 = call i32 @Z_FreeTags(i32 noundef 766)
%3 = call i32 @Z_FreeTags(i32 noundef 765)
ret void
}
declare i32 @Com_Printf(ptr noundef) #1
declare i32 @Z_FreeTags(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/tmpthxtp7wa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"==== Game Shutdown ====\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Game_Shutdown() #0 {
%1 = call i32 @Com_Printf(ptr noundef @.str)
%2 = call i32 @Z_FreeTags(i32 noundef 766)
%3 = call i32 @Z_FreeTags(i32 noundef 765)
ret void
}
declare i32 @Com_Printf(ptr noundef) #1
declare i32 @Z_FreeTags(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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.