llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmpjwkl9p94.c'
source_filename = "/tmp/tmpjwkl9p94.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @quick_comp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i32 @strlen(ptr noundef %9)
store i32 %10, ptr %6, align 4
%11 = load ptr, ptr %5, align 8
%12 = call i32 @strlen(ptr noundef %11)
store i32 %12, ptr %7, align 4
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %7, align 4
%15 = icmp ne i32 %13, %14
br i1 %15, label %16, label %17
16: ; preds = %2
store i32 -1, ptr %3, align 4
br label %41
17: ; preds = %2
store i32 0, ptr %8, align 4
br label %18
18: ; preds = %37, %17
%19 = load i32, ptr %8, align 4
%20 = load i32, ptr %6, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %40
22: ; preds = %18
%23 = load ptr, ptr %4, align 8
%24 = load i32, ptr %8, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %23, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %8, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp ne i32 %28, %34
br i1 %35, label %36, label %37
36: ; preds = %22
store i32 -1, ptr %3, align 4
br label %41
37: ; preds = %22
%38 = load i32, ptr %8, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %8, align 4
br label %18, !llvm.loop !6
40: ; preds = %18
store i32 0, ptr %3, align 4
br label %41
41: ; preds = %40, %36, %16
%42 = load i32, ptr %3, align 4
ret i32 %42
}
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjwkl9p94.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @quick_comp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i32 @strlen(ptr noundef %9)
store i32 %10, ptr %6, align 4
%11 = load ptr, ptr %5, align 8
%12 = call i32 @strlen(ptr noundef %11)
store i32 %12, ptr %7, align 4
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %7, align 4
%15 = icmp ne i32 %13, %14
br i1 %15, label %16, label %17
16: ; preds = %2
store i32 -1, ptr %3, align 4
br label %43
17: ; preds = %2
store i32 0, ptr %8, align 4
%18 = load i32, ptr %8, align 4
%19 = load i32, ptr %6, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %.lr.ph, label %42
.lr.ph: ; preds = %17
br label %21
21: ; preds = %.lr.ph, %36
%22 = load ptr, ptr %4, align 8
%23 = load i32, ptr %8, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %22, i64 %24
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %8, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %28, i64 %30
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp ne i32 %27, %33
br i1 %34, label %35, label %36
35: ; preds = %21
store i32 -1, ptr %3, align 4
br label %43
36: ; preds = %21
%37 = load i32, ptr %8, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %8, align 4
%39 = load i32, ptr %8, align 4
%40 = load i32, ptr %6, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %36
br label %42
42: ; preds = %._crit_edge, %17
store i32 0, ptr %3, align 4
br label %43
43: ; preds = %42, %35, %16
%44 = load i32, ptr %3, align 4
ret i32 %44
}
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpawmhi9dj.c'
source_filename = "/tmp/tmpawmhi9dj.c"
target datalayout = "e-m:e-p270: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 [4 x i8] c"%s\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @checkError() #0 {
%1 = alloca ptr, align 8
%2 = call ptr (...) @dlerror()
store ptr %2, ptr %1, align 8
%3 = load ptr, ptr %1, align 8
%4 = icmp ne ptr %3, null
br i1 %4, label %5, label %11
5: ; preds = %0
%6 = load i32, ptr @stderr, align 4
%7 = load ptr, ptr %1, align 8
%8 = call i32 @fprintf(i32 noundef %6, ptr noundef @.str, ptr noundef %7)
%9 = load i32, ptr @EXIT_FAILURE, align 4
%10 = call i32 @exit(i32 noundef %9) #3
unreachable
11: ; preds = %0
ret void
}
declare ptr @dlerror(...) #1
declare i32 @fprintf(i32 noundef, 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/tmpawmhi9dj.c"
target datalayout = "e-m:e-p270: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 [4 x i8] c"%s\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @checkError() #0 {
%1 = alloca ptr, align 8
%2 = call ptr (...) @dlerror()
store ptr %2, ptr %1, align 8
%3 = load ptr, ptr %1, align 8
%4 = icmp ne ptr %3, null
br i1 %4, label %5, label %11
5: ; preds = %0
%6 = load i32, ptr @stderr, align 4
%7 = load ptr, ptr %1, align 8
%8 = call i32 @fprintf(i32 noundef %6, ptr noundef @.str, ptr noundef %7)
%9 = load i32, ptr @EXIT_FAILURE, align 4
%10 = call i32 @exit(i32 noundef %9) #3
unreachable
11: ; preds = %0
ret void
}
declare ptr @dlerror(...) #1
declare i32 @fprintf(i32 noundef, 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/tmptsdib7s6.c'
source_filename = "/tmp/tmptsdib7s6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"socket\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Socket(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %4, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %6, align 4
%11 = call i32 @socket(i32 noundef %8, i32 noundef %9, i32 noundef %10)
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %7, align 4
%13 = icmp eq i32 %12, -1
br i1 %13, label %14, label %16
14: ; preds = %3
%15 = call i32 @Sys_failure(ptr noundef @.str)
br label %16
16: ; preds = %14, %3
%17 = load i32, ptr %7, align 4
ret i32 %17
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @Sys_failure(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptsdib7s6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"socket\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Socket(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %4, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %6, align 4
%11 = call i32 @socket(i32 noundef %8, i32 noundef %9, i32 noundef %10)
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %7, align 4
%13 = icmp eq i32 %12, -1
br i1 %13, label %14, label %16
14: ; preds = %3
%15 = call i32 @Sys_failure(ptr noundef @.str)
br label %16
16: ; preds = %14, %3
%17 = load i32, ptr %7, align 4
ret i32 %17
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @Sys_failure(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkpd1mrqk.c'
source_filename = "/tmp/tmpkpd1mrqk.c"
target datalayout = "e-m:e-p270: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 { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [7 x i8] c"socket\00", align 1
@INADDR_ANY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [5 x i8] c"bind\00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"Locked and loaded!\0A\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"Listening %d port\0A\0A\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"accept\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"fork\00", align 1
@.str.7 = private unnamed_addr constant [11 x i8] c"New query\0A\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [5 x i8] c"open\00", align 1
@.str.9 = private unnamed_addr constant [14 x i8] c"404 not found\00", align 1
@errno = dso_local global i32 0, align 4
@EISDIR = dso_local global i32 0, align 4
@.str.10 = private unnamed_addr constant [16 x i8] c"Is a directory\0A\00", align 1
@.str.11 = private unnamed_addr constant [5 x i8] c"read\00", align 1
@MSG_MORE = dso_local global i32 0, align 4
@.str.12 = private unnamed_addr constant [13 x i8] c"Server done\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca %struct.sockaddr_in, align 4
%9 = alloca [10024 x i8], align 16
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 10800, ptr %11, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp sge i32 %16, 2
br i1 %17, label %18, label %23
18: ; preds = %2
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 1
%21 = load ptr, ptr %20, align 8
%22 = call i32 @sscanf(ptr noundef %21, ptr noundef @.str, ptr noundef %11)
br label %23
23: ; preds = %18, %2
%24 = load i32, ptr @AF_INET, align 4
%25 = load i32, ptr @SOCK_STREAM, align 4
%26 = call i32 @socket(i32 noundef %24, i32 noundef %25, i32 noundef 0)
store i32 %26, ptr %7, align 4
%27 = load i32, ptr %7, align 4
%28 = icmp slt i32 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %23
%30 = call i32 @perror(ptr noundef @.str.1)
%31 = call i32 @exit(i32 noundef 1) #3
unreachable
32: ; preds = %23
%33 = load i32, ptr @AF_INET, align 4
%34 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 2
store i32 %33, ptr %34, align 4
%35 = load i32, ptr %11, align 4
%36 = call i32 @htons(i32 noundef %35)
%37 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 1
store i32 %36, ptr %37, align 4
%38 = load i32, ptr @INADDR_ANY, align 4
%39 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 0
%40 = getelementptr inbounds %struct.TYPE_2__, ptr %39, i32 0, i32 0
store i32 %38, ptr %40, align 4
%41 = load i32, ptr %7, align 4
%42 = call i64 @bind(i32 noundef %41, ptr noundef %8, i32 noundef 12)
%43 = icmp slt i64 %42, 0
br i1 %43, label %44, label %47
44: ; preds = %32
%45 = call i32 @perror(ptr noundef @.str.2)
%46 = call i32 @exit(i32 noundef 2) #3
unreachable
47: ; preds = %32
%48 = load i32, ptr %7, align 4
%49 = call i32 @listen(i32 noundef %48, i32 noundef 1)
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%51 = load i32, ptr %11, align 4
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %51)
br label %53
53: ; preds = %47, %130
%54 = load i32, ptr %7, align 4
%55 = call i32 @accept(i32 noundef %54, ptr noundef null, ptr noundef null)
store i32 %55, ptr %6, align 4
%56 = load i32, ptr %6, align 4
%57 = icmp slt i32 %56, 0
br i1 %57, label %58, label %61
58: ; preds = %53
%59 = call i32 @perror(ptr noundef @.str.5)
%60 = call i32 @exit(i32 noundef 3) #3
unreachable
61: ; preds = %53
%62 = call i32 (...) @fork()
store i32 %62, ptr %12, align 4
%63 = load i32, ptr %12, align 4
switch i32 %63, label %127 [
i32 -1, label %64
i32 0, label %66
]
64: ; preds = %61
%65 = call i32 @perror(ptr noundef @.str.6)
br label %130
66: ; preds = %61
%67 = load i32, ptr %7, align 4
%68 = call i32 @close(i32 noundef %67)
br label %69
69: ; preds = %66, %114
%70 = load i32, ptr %6, align 4
%71 = getelementptr inbounds [10024 x i8], ptr %9, i64 0, i64 0
%72 = call i32 @recv(i32 noundef %70, ptr noundef %71, i32 noundef 10024, i32 noundef 0)
store i32 %72, ptr %10, align 4
%73 = load i32, ptr %10, align 4
%74 = icmp sle i32 %73, 0
br i1 %74, label %75, label %76
75: ; preds = %69
br label %123
76: ; preds = %69
%77 = call i32 @write(i32 noundef 1, ptr noundef @.str.7, i32 noundef 10)
%78 = getelementptr inbounds [10024 x i8], ptr %9, i64 0, i64 0
%79 = load i32, ptr @O_RDONLY, align 4
%80 = call i32 @open(ptr noundef %78, i32 noundef %79)
store i32 %80, ptr %13, align 4
%81 = load i32, ptr %13, align 4
%82 = icmp eq i32 %81, -1
br i1 %82, label %83, label %89
83: ; preds = %76
%84 = call i32 @perror(ptr noundef @.str.8)
%85 = load i32, ptr %6, align 4
%86 = call i32 @send(i32 noundef %85, ptr noundef @.str.9, i32 noundef 13, i32 noundef 0)
%87 = getelementptr inbounds [10024 x i8], ptr %9, i64 0, i64 0
%88 = call i32 @puts(ptr noundef %87)
br label %123
89: ; preds = %76
store i32 0, ptr %14, align 4
br label %90
90: ; preds = %108, %89
%91 = load i32, ptr %13, align 4
%92 = getelementptr inbounds [10024 x i8], ptr %9, i64 0, i64 0
%93 = call i32 @read(i32 noundef %91, ptr noundef %92, i32 noundef 1024)
store i32 %93, ptr %14, align 4
%94 = icmp ne i32 %93, 0
br i1 %94, label %95, label %114
95: ; preds = %90
%96 = load i32, ptr @errno, align 4
store i32 %96, ptr %15, align 4
%97 = load i32, ptr @errno, align 4
%98 = load i32, ptr @EISDIR, align 4
%99 = icmp eq i32 %97, %98
br i1 %99, label %100, label %103
100: ; preds = %95
%101 = load i32, ptr %6, align 4
%102 = call i32 @send(i32 noundef %101, ptr noundef @.str.10, i32 noundef 15, i32 noundef 0)
br label %103
103: ; preds = %100, %95
%104 = load i32, ptr %14, align 4
%105 = icmp eq i32 %104, -1
br i1 %105, label %106, label %108
106: ; preds = %103
%107 = call i32 @perror(ptr noundef @.str.11)
br label %114
108: ; preds = %103
%109 = load i32, ptr %6, align 4
%110 = getelementptr inbounds [10024 x i8], ptr %9, i64 0, i64 0
%111 = load i32, ptr %14, align 4
%112 = load i32, ptr @MSG_MORE, align 4
%113 = call i32 @send(i32 noundef %109, ptr noundef %110, i32 noundef %111, i32 noundef %112)
br label %90, !llvm.loop !6
114: ; preds = %106, %90
%115 = getelementptr inbounds [10024 x i8], ptr %9, i64 0, i64 0
%116 = call i32 @memset(ptr noundef %115, i32 noundef 0, i32 noundef 10024)
%117 = load i32, ptr %6, align 4
%118 = getelementptr inbounds [10024 x i8], ptr %9, i64 0, i64 0
%119 = call i32 @send(i32 noundef %117, ptr noundef %118, i32 noundef 1024, i32 noundef 0)
%120 = call i32 @write(i32 noundef 1, ptr noundef @.str.12, i32 noundef 12)
%121 = load i32, ptr %13, align 4
%122 = call i32 @close(i32 noundef %121)
br label %69
123: ; preds = %83, %75
%124 = load i32, ptr %6, align 4
%125 = call i32 @close(i32 noundef %124)
%126 = call i32 @exit(i32 noundef 0) #3
unreachable
127: ; preds = %61
%128 = load i32, ptr %6, align 4
%129 = call i32 @close(i32 noundef %128)
br label %130
130: ; preds = %127, %64
br label %53
}
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @htons(i32 noundef) #1
declare i64 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @listen(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @fork(...) #1
declare i32 @close(i32 noundef) #1
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @puts(ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @memset(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" }
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/tmpkpd1mrqk.c"
target datalayout = "e-m:e-p270: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 { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [7 x i8] c"socket\00", align 1
@INADDR_ANY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [5 x i8] c"bind\00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"Locked and loaded!\0A\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"Listening %d port\0A\0A\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"accept\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"fork\00", align 1
@.str.7 = private unnamed_addr constant [11 x i8] c"New query\0A\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [5 x i8] c"open\00", align 1
@.str.9 = private unnamed_addr constant [14 x i8] c"404 not found\00", align 1
@errno = dso_local global i32 0, align 4
@EISDIR = dso_local global i32 0, align 4
@.str.10 = private unnamed_addr constant [16 x i8] c"Is a directory\0A\00", align 1
@.str.11 = private unnamed_addr constant [5 x i8] c"read\00", align 1
@MSG_MORE = dso_local global i32 0, align 4
@.str.12 = private unnamed_addr constant [13 x i8] c"Server done\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca %struct.sockaddr_in, align 4
%9 = alloca [10024 x i8], align 16
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 10800, ptr %11, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp sge i32 %16, 2
br i1 %17, label %18, label %23
18: ; preds = %2
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 1
%21 = load ptr, ptr %20, align 8
%22 = call i32 @sscanf(ptr noundef %21, ptr noundef @.str, ptr noundef %11)
br label %23
23: ; preds = %18, %2
%24 = load i32, ptr @AF_INET, align 4
%25 = load i32, ptr @SOCK_STREAM, align 4
%26 = call i32 @socket(i32 noundef %24, i32 noundef %25, i32 noundef 0)
store i32 %26, ptr %7, align 4
%27 = load i32, ptr %7, align 4
%28 = icmp slt i32 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %23
%30 = call i32 @perror(ptr noundef @.str.1)
%31 = call i32 @exit(i32 noundef 1) #3
unreachable
32: ; preds = %23
%33 = load i32, ptr @AF_INET, align 4
%34 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 2
store i32 %33, ptr %34, align 4
%35 = load i32, ptr %11, align 4
%36 = call i32 @htons(i32 noundef %35)
%37 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 1
store i32 %36, ptr %37, align 4
%38 = load i32, ptr @INADDR_ANY, align 4
%39 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 0
%40 = getelementptr inbounds %struct.TYPE_2__, ptr %39, i32 0, i32 0
store i32 %38, ptr %40, align 4
%41 = load i32, ptr %7, align 4
%42 = call i64 @bind(i32 noundef %41, ptr noundef %8, i32 noundef 12)
%43 = icmp slt i64 %42, 0
br i1 %43, label %44, label %47
44: ; preds = %32
%45 = call i32 @perror(ptr noundef @.str.2)
%46 = call i32 @exit(i32 noundef 2) #3
unreachable
47: ; preds = %32
%48 = load i32, ptr %7, align 4
%49 = call i32 @listen(i32 noundef %48, i32 noundef 1)
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%51 = load i32, ptr %11, align 4
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %51)
%53 = load i32, ptr %7, align 4
%54 = call i32 @accept(i32 noundef %53, ptr noundef null, ptr noundef null)
store i32 %54, ptr %6, align 4
%55 = load i32, ptr %6, align 4
%56 = icmp slt i32 %55, 0
br i1 %56, label %57, label %.lr.ph
.lr.ph: ; preds = %47
br label %60
._crit_edge: ; preds = %134
br label %57
57: ; preds = %._crit_edge, %47
%58 = call i32 @perror(ptr noundef @.str.5)
%59 = call i32 @exit(i32 noundef 3) #3
unreachable
60: ; preds = %.lr.ph, %134
%61 = call i32 (...) @fork()
store i32 %61, ptr %12, align 4
%62 = load i32, ptr %12, align 4
switch i32 %62, label %131 [
i32 -1, label %63
i32 0, label %65
]
63: ; preds = %60
%64 = call i32 @perror(ptr noundef @.str.6)
br label %134
65: ; preds = %60
%66 = load i32, ptr %7, align 4
%67 = call i32 @close(i32 noundef %66)
%68 = load i32, ptr %6, align 4
%69 = getelementptr inbounds [10024 x i8], ptr %9, i64 0, i64 0
%70 = call i32 @recv(i32 noundef %68, ptr noundef %69, i32 noundef 10024, i32 noundef 0)
store i32 %70, ptr %10, align 4
%71 = load i32, ptr %10, align 4
%72 = icmp sle i32 %71, 0
br i1 %72, label %73, label %.lr.ph4
.lr.ph4: ; preds = %65
br label %74
._crit_edge5: ; preds = %114
br label %73
73: ; preds = %._crit_edge5, %65
br label %127
74: ; preds = %.lr.ph4, %114
%75 = call i32 @write(i32 noundef 1, ptr noundef @.str.7, i32 noundef 10)
%76 = getelementptr inbounds [10024 x i8], ptr %9, i64 0, i64 0
%77 = load i32, ptr @O_RDONLY, align 4
%78 = call i32 @open(ptr noundef %76, i32 noundef %77)
store i32 %78, ptr %13, align 4
%79 = load i32, ptr %13, align 4
%80 = icmp eq i32 %79, -1
br i1 %80, label %81, label %87
81: ; preds = %74
%82 = call i32 @perror(ptr noundef @.str.8)
%83 = load i32, ptr %6, align 4
%84 = call i32 @send(i32 noundef %83, ptr noundef @.str.9, i32 noundef 13, i32 noundef 0)
%85 = getelementptr inbounds [10024 x i8], ptr %9, i64 0, i64 0
%86 = call i32 @puts(ptr noundef %85)
br label %127
87: ; preds = %74
store i32 0, ptr %14, align 4
%88 = load i32, ptr %13, align 4
%89 = getelementptr inbounds [10024 x i8], ptr %9, i64 0, i64 0
%90 = call i32 @read(i32 noundef %88, ptr noundef %89, i32 noundef 1024)
store i32 %90, ptr %14, align 4
%91 = icmp ne i32 %90, 0
br i1 %91, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %87
br label %92
92: ; preds = %.lr.ph2, %105
%93 = load i32, ptr @errno, align 4
store i32 %93, ptr %15, align 4
%94 = load i32, ptr @errno, align 4
%95 = load i32, ptr @EISDIR, align 4
%96 = icmp eq i32 %94, %95
br i1 %96, label %97, label %100
97: ; preds = %92
%98 = load i32, ptr %6, align 4
%99 = call i32 @send(i32 noundef %98, ptr noundef @.str.10, i32 noundef 15, i32 noundef 0)
br label %100
100: ; preds = %97, %92
%101 = load i32, ptr %14, align 4
%102 = icmp eq i32 %101, -1
br i1 %102, label %103, label %105
103: ; preds = %100
%104 = call i32 @perror(ptr noundef @.str.11)
br label %114
105: ; preds = %100
%106 = load i32, ptr %6, align 4
%107 = getelementptr inbounds [10024 x i8], ptr %9, i64 0, i64 0
%108 = load i32, ptr %14, align 4
%109 = load i32, ptr @MSG_MORE, align 4
%110 = call i32 @send(i32 noundef %106, ptr noundef %107, i32 noundef %108, i32 noundef %109)
%111 = load i32, ptr %13, align 4
%112 = call i32 @read(i32 noundef %111, ptr noundef %89, i32 noundef 1024)
store i32 %112, ptr %14, align 4
%113 = icmp ne i32 %112, 0
br i1 %113, label %92, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %105
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %87
br label %114
114: ; preds = %.loopexit, %103
%115 = getelementptr inbounds [10024 x i8], ptr %9, i64 0, i64 0
%116 = call i32 @memset(ptr noundef %115, i32 noundef 0, i32 noundef 10024)
%117 = load i32, ptr %6, align 4
%118 = getelementptr inbounds [10024 x i8], ptr %9, i64 0, i64 0
%119 = call i32 @send(i32 noundef %117, ptr noundef %118, i32 noundef 1024, i32 noundef 0)
%120 = call i32 @write(i32 noundef 1, ptr noundef @.str.12, i32 noundef 12)
%121 = load i32, ptr %13, align 4
%122 = call i32 @close(i32 noundef %121)
%123 = load i32, ptr %6, align 4
%124 = call i32 @recv(i32 noundef %123, ptr noundef %69, i32 noundef 10024, i32 noundef 0)
store i32 %124, ptr %10, align 4
%125 = load i32, ptr %10, align 4
%126 = icmp sle i32 %125, 0
br i1 %126, label %._crit_edge5, label %74
127: ; preds = %81, %73
%128 = load i32, ptr %6, align 4
%129 = call i32 @close(i32 noundef %128)
%130 = call i32 @exit(i32 noundef 0) #3
unreachable
131: ; preds = %60
%132 = load i32, ptr %6, align 4
%133 = call i32 @close(i32 noundef %132)
br label %134
134: ; preds = %131, %63
%135 = load i32, ptr %7, align 4
%136 = call i32 @accept(i32 noundef %135, ptr noundef null, ptr noundef null)
store i32 %136, ptr %6, align 4
%137 = load i32, ptr %6, align 4
%138 = icmp slt i32 %137, 0
br i1 %138, label %._crit_edge, label %60
}
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @htons(i32 noundef) #1
declare i64 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @listen(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @fork(...) #1
declare i32 @close(i32 noundef) #1
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @puts(ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @memset(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" }
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/tmpuyl4jtxw.c'
source_filename = "/tmp/tmpuyl4jtxw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cpufreq_get_transition_latency(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 @sysfs_get_freq_transition_latency(i32 noundef %3)
ret i64 %4
}
declare i64 @sysfs_get_freq_transition_latency(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/tmpuyl4jtxw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cpufreq_get_transition_latency(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 @sysfs_get_freq_transition_latency(i32 noundef %3)
ret i64 %4
}
declare i64 @sysfs_get_freq_transition_latency(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/tmpyry24rs3.c'
source_filename = "/tmp/tmpyry24rs3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local x86_fp80 @__octfloattofloattintpart(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca x86_fp80, align 16
store ptr %0, ptr %2, align 8
store i32 0, ptr %5, align 4
%7 = load ptr, ptr %2, align 8
%8 = getelementptr inbounds i8, ptr %7, i64 0
%9 = load i8, ptr %8, align 1
%10 = sext i8 %9 to i32
%11 = icmp eq i32 %10, 45
br i1 %11, label %12, label %13
12: ; preds = %1
store i32 1, ptr %5, align 4
br label %13
13: ; preds = %12, %1
store x86_fp80 0xK00000000000000000000, ptr %6, align 16
store i32 0, ptr %3, align 4
%14 = load ptr, ptr %2, align 8
%15 = call i32 @strlen(ptr noundef %14)
%16 = sub i32 %15, 1
store i32 %16, ptr %4, align 4
br label %17
17: ; preds = %49, %13
%18 = load i32, ptr %3, align 4
%19 = load ptr, ptr %2, align 8
%20 = call i32 @strlen(ptr noundef %19)
%21 = load i32, ptr %5, align 4
%22 = sub i32 %20, %21
%23 = icmp ult i32 %18, %22
br i1 %23, label %24, label %54
24: ; preds = %17
%25 = load i32, ptr %3, align 4
%26 = icmp ne i32 %25, 0
%27 = xor i1 %26, true
%28 = zext i1 %27 to i32
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %41
30: ; preds = %24
%31 = load x86_fp80, ptr %6, align 16
%32 = load ptr, ptr %2, align 8
%33 = load i32, ptr %4, align 4
%34 = zext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
%36 = load i8, ptr %35, align 1
%37 = call x86_fp80 @get_digit(i8 noundef signext %36)
%38 = load i32, ptr %3, align 4
%39 = call x86_fp80 @powl(i32 noundef 8, i32 noundef %38)
%40 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %37, x86_fp80 %39, x86_fp80 %31)
store x86_fp80 %40, ptr %6, align 16
br label %48
41: ; preds = %24
%42 = load ptr, ptr %2, align 8
%43 = load i32, ptr %4, align 4
%44 = zext i32 %43 to i64
%45 = getelementptr inbounds i8, ptr %42, i64 %44
%46 = load i8, ptr %45, align 1
%47 = call x86_fp80 @get_digit(i8 noundef signext %46)
store x86_fp80 %47, ptr %6, align 16
br label %48
48: ; preds = %41, %30
br label %49
49: ; preds = %48
%50 = load i32, ptr %3, align 4
%51 = add i32 %50, 1
store i32 %51, ptr %3, align 4
%52 = load i32, ptr %4, align 4
%53 = add i32 %52, -1
store i32 %53, ptr %4, align 4
br label %17, !llvm.loop !6
54: ; preds = %17
%55 = load x86_fp80, ptr %6, align 16
ret x86_fp80 %55
}
declare i32 @strlen(ptr noundef) #1
declare x86_fp80 @get_digit(i8 noundef signext) #1
declare x86_fp80 @powl(i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.fmuladd.f80(x86_fp80, x86_fp80, x86_fp80) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyry24rs3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local x86_fp80 @__octfloattofloattintpart(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca x86_fp80, align 16
store ptr %0, ptr %2, align 8
store i32 0, ptr %5, align 4
%7 = load ptr, ptr %2, align 8
%8 = getelementptr inbounds i8, ptr %7, i64 0
%9 = load i8, ptr %8, align 1
%10 = sext i8 %9 to i32
%11 = icmp eq i32 %10, 45
br i1 %11, label %12, label %13
12: ; preds = %1
store i32 1, ptr %5, align 4
br label %13
13: ; preds = %12, %1
store x86_fp80 0xK00000000000000000000, ptr %6, align 16
store i32 0, ptr %3, align 4
%14 = load ptr, ptr %2, align 8
%15 = call i32 @strlen(ptr noundef %14)
%16 = sub i32 %15, 1
store i32 %16, ptr %4, align 4
%17 = load i32, ptr %3, align 4
%18 = load ptr, ptr %2, align 8
%19 = call i32 @strlen(ptr noundef %18)
%20 = load i32, ptr %5, align 4
%21 = sub i32 %19, %20
%22 = icmp ult i32 %17, %21
br i1 %22, label %.lr.ph, label %59
.lr.ph: ; preds = %13
br label %23
23: ; preds = %.lr.ph, %48
%24 = load i32, ptr %3, align 4
%25 = icmp ne i32 %24, 0
%26 = xor i1 %25, true
%27 = zext i1 %26 to i32
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %40
29: ; preds = %23
%30 = load x86_fp80, ptr %6, align 16
%31 = load ptr, ptr %2, align 8
%32 = load i32, ptr %4, align 4
%33 = zext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %31, i64 %33
%35 = load i8, ptr %34, align 1
%36 = call x86_fp80 @get_digit(i8 noundef signext %35)
%37 = load i32, ptr %3, align 4
%38 = call x86_fp80 @powl(i32 noundef 8, i32 noundef %37)
%39 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %36, x86_fp80 %38, x86_fp80 %30)
store x86_fp80 %39, ptr %6, align 16
br label %47
40: ; preds = %23
%41 = load ptr, ptr %2, align 8
%42 = load i32, ptr %4, align 4
%43 = zext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %41, i64 %43
%45 = load i8, ptr %44, align 1
%46 = call x86_fp80 @get_digit(i8 noundef signext %45)
store x86_fp80 %46, ptr %6, align 16
br label %47
47: ; preds = %40, %29
br label %48
48: ; preds = %47
%49 = load i32, ptr %3, align 4
%50 = add i32 %49, 1
store i32 %50, ptr %3, align 4
%51 = load i32, ptr %4, align 4
%52 = add i32 %51, -1
store i32 %52, ptr %4, align 4
%53 = load i32, ptr %3, align 4
%54 = load ptr, ptr %2, align 8
%55 = call i32 @strlen(ptr noundef %54)
%56 = load i32, ptr %5, align 4
%57 = sub i32 %55, %56
%58 = icmp ult i32 %53, %57
br i1 %58, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %48
br label %59
59: ; preds = %._crit_edge, %13
%60 = load x86_fp80, ptr %6, align 16
ret x86_fp80 %60
}
declare i32 @strlen(ptr noundef) #1
declare x86_fp80 @get_digit(i8 noundef signext) #1
declare x86_fp80 @powl(i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.fmuladd.f80(x86_fp80, x86_fp80, x86_fp80) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp1w4qh01t.c'
source_filename = "/tmp/tmp1w4qh01t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@IPC_RMID = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @rmmsg(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp sgt i32 %4, 0
br i1 %5, label %6, label %13
6: ; preds = %1
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr @IPC_RMID, align 4
%9 = call i64 @msgctl(i32 noundef %7, i32 noundef %8, ptr noundef null)
%10 = icmp sgt i64 0, %9
br i1 %10, label %11, label %12
11: ; preds = %6
store i32 -1, ptr %2, align 4
br label %15
12: ; preds = %6
br label %13
13: ; preds = %12, %1
%14 = load i32, ptr %3, align 4
store i32 %14, ptr %2, align 4
br label %15
15: ; preds = %13, %11
%16 = load i32, ptr %2, align 4
ret i32 %16
}
declare i64 @msgctl(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/tmp1w4qh01t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@IPC_RMID = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @rmmsg(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp sgt i32 %4, 0
br i1 %5, label %6, label %13
6: ; preds = %1
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr @IPC_RMID, align 4
%9 = call i64 @msgctl(i32 noundef %7, i32 noundef %8, ptr noundef null)
%10 = icmp sgt i64 0, %9
br i1 %10, label %11, label %12
11: ; preds = %6
store i32 -1, ptr %2, align 4
br label %15
12: ; preds = %6
br label %13
13: ; preds = %12, %1
%14 = load i32, ptr %3, align 4
store i32 %14, ptr %2, align 4
br label %15
15: ; preds = %13, %11
%16 = load i32, ptr %2, align 4
ret i32 %16
}
declare i64 @msgctl(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/tmpxmfw_qmo.c'
source_filename = "/tmp/tmpxmfw_qmo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @init_8259A() #0 {
%1 = call i32 @out_byte(i32 noundef 32, i32 noundef 17)
%2 = call i32 @out_byte(i32 noundef 160, i32 noundef 17)
%3 = call i32 @out_byte(i32 noundef 33, i32 noundef 32)
%4 = call i32 @out_byte(i32 noundef 161, i32 noundef 40)
%5 = call i32 @out_byte(i32 noundef 33, i32 noundef 4)
%6 = call i32 @out_byte(i32 noundef 161, i32 noundef 2)
%7 = call i32 @out_byte(i32 noundef 33, i32 noundef 1)
%8 = call i32 @out_byte(i32 noundef 161, i32 noundef 1)
%9 = call i32 @out_byte(i32 noundef 33, i32 noundef 255)
%10 = call i32 @out_byte(i32 noundef 161, i32 noundef 255)
ret void
}
declare i32 @out_byte(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/tmpxmfw_qmo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @init_8259A() #0 {
%1 = call i32 @out_byte(i32 noundef 32, i32 noundef 17)
%2 = call i32 @out_byte(i32 noundef 160, i32 noundef 17)
%3 = call i32 @out_byte(i32 noundef 33, i32 noundef 32)
%4 = call i32 @out_byte(i32 noundef 161, i32 noundef 40)
%5 = call i32 @out_byte(i32 noundef 33, i32 noundef 4)
%6 = call i32 @out_byte(i32 noundef 161, i32 noundef 2)
%7 = call i32 @out_byte(i32 noundef 33, i32 noundef 1)
%8 = call i32 @out_byte(i32 noundef 161, i32 noundef 1)
%9 = call i32 @out_byte(i32 noundef 33, i32 noundef 255)
%10 = call i32 @out_byte(i32 noundef 161, i32 noundef 255)
ret void
}
declare i32 @out_byte(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/tmpi_xivaf4.c'
source_filename = "/tmp/tmpi_xivaf4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_localtime_str(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
%9 = call i64 @time(ptr noundef null)
store i64 %9, ptr %7, align 8
%10 = load i64, ptr %7, align 8
%11 = icmp ne i64 %10, -1
br i1 %11, label %12, label %28
12: ; preds = %3
%13 = call ptr @localtime(ptr noundef %7)
store ptr %13, ptr %8, align 8
%14 = load ptr, ptr %4, align 8
%15 = load i64, ptr %5, align 8
%16 = load ptr, ptr %6, align 8
%17 = load ptr, ptr %8, align 8
%18 = call i64 @strftime(ptr noundef %14, i64 noundef %15, ptr noundef %16, ptr noundef %17)
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %27
20: ; preds = %12
%21 = load i64, ptr %5, align 8
%22 = icmp ugt i64 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %20
%24 = load ptr, ptr %4, align 8
%25 = getelementptr inbounds i8, ptr %24, i64 0
store i8 0, ptr %25, align 1
br label %26
26: ; preds = %23, %20
br label %27
27: ; preds = %26, %12
br label %35
28: ; preds = %3
%29 = load i64, ptr %5, align 8
%30 = icmp ugt i64 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %28
%32 = load ptr, ptr %4, align 8
%33 = getelementptr inbounds i8, ptr %32, i64 0
store i8 0, ptr %33, align 1
br label %34
34: ; preds = %31, %28
br label %35
35: ; preds = %34, %27
ret void
}
declare i64 @time(ptr noundef) #1
declare ptr @localtime(ptr noundef) #1
declare i64 @strftime(ptr noundef, i64 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/tmpi_xivaf4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_localtime_str(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
%9 = call i64 @time(ptr noundef null)
store i64 %9, ptr %7, align 8
%10 = load i64, ptr %7, align 8
%11 = icmp ne i64 %10, -1
br i1 %11, label %12, label %28
12: ; preds = %3
%13 = call ptr @localtime(ptr noundef %7)
store ptr %13, ptr %8, align 8
%14 = load ptr, ptr %4, align 8
%15 = load i64, ptr %5, align 8
%16 = load ptr, ptr %6, align 8
%17 = load ptr, ptr %8, align 8
%18 = call i64 @strftime(ptr noundef %14, i64 noundef %15, ptr noundef %16, ptr noundef %17)
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %27
20: ; preds = %12
%21 = load i64, ptr %5, align 8
%22 = icmp ugt i64 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %20
%24 = load ptr, ptr %4, align 8
%25 = getelementptr inbounds i8, ptr %24, i64 0
store i8 0, ptr %25, align 1
br label %26
26: ; preds = %23, %20
br label %27
27: ; preds = %26, %12
br label %35
28: ; preds = %3
%29 = load i64, ptr %5, align 8
%30 = icmp ugt i64 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %28
%32 = load ptr, ptr %4, align 8
%33 = getelementptr inbounds i8, ptr %32, i64 0
store i8 0, ptr %33, align 1
br label %34
34: ; preds = %31, %28
br label %35
35: ; preds = %34, %27
ret void
}
declare i64 @time(ptr noundef) #1
declare ptr @localtime(ptr noundef) #1
declare i64 @strftime(ptr noundef, i64 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/tmpi9fg_tjc.c'
source_filename = "/tmp/tmpi9fg_tjc.c"
target datalayout = "e-m:e-p270: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/tmpi9fg_tjc.c"
target datalayout = "e-m:e-p270: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/tmpg6fpdnwq.c'
source_filename = "/tmp/tmpg6fpdnwq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @protocol_mget_put(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
store i32 %4, ptr %10, align 4
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = load i32, ptr %8, align 4
%14 = load ptr, ptr %9, align 8
%15 = load i32, ptr %10, align 4
%16 = call i32 @protocol_mput(ptr noundef %11, ptr noundef %12, i32 noundef %13, ptr noundef %14, i32 noundef %15)
ret i32 %16
}
declare i32 @protocol_mput(ptr noundef, ptr 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/tmpg6fpdnwq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @protocol_mget_put(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
store i32 %4, ptr %10, align 4
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = load i32, ptr %8, align 4
%14 = load ptr, ptr %9, align 8
%15 = load i32, ptr %10, align 4
%16 = call i32 @protocol_mput(ptr noundef %11, ptr noundef %12, i32 noundef %13, ptr noundef %14, i32 noundef %15)
ret i32 %16
}
declare i32 @protocol_mput(ptr noundef, ptr 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/tmp6xtatip7.c'
source_filename = "/tmp/tmp6xtatip7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [15 x i8] c"GIGATHINK, INC\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"101 Megabuck Plaza\00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"Megapolis, CA 94904\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 (...) @starbar()
%3 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1)
%4 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.2)
%5 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.3)
%6 = call i32 (...) @starbar()
ret i32 0
}
declare i32 @starbar(...) #1
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/tmp6xtatip7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [15 x i8] c"GIGATHINK, INC\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"101 Megabuck Plaza\00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"Megapolis, CA 94904\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 (...) @starbar()
%3 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1)
%4 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.2)
%5 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.3)
%6 = call i32 (...) @starbar()
ret i32 0
}
declare i32 @starbar(...) #1
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/tmp0rk3d8ho.c'
source_filename = "/tmp/tmp0rk3d8ho.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Elemento [%d] = \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"\0AValores originais:\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.4 = private unnamed_addr constant [28 x i8] c"\0AValores na ordem inversa:\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 [5 x i32], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %4
4: ; preds = %14, %0
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %5, 5
br i1 %6, label %7, label %17
7: ; preds = %4
%8 = load i32, ptr %2, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %8)
%10 = load i32, ptr %2, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 %11
%13 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %12)
br label %14
14: ; preds = %7
%15 = load i32, ptr %2, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %2, align 4
br label %4, !llvm.loop !6
17: ; preds = %4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %2, align 4
br label %19
19: ; preds = %28, %17
%20 = load i32, ptr %2, align 4
%21 = icmp slt i32 %20, 5
br i1 %21, label %22, label %31
22: ; preds = %19
%23 = load i32, ptr %2, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 %24
%26 = load i32, ptr %25, align 4
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %26)
br label %28
28: ; preds = %22
%29 = load i32, ptr %2, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %2, align 4
br label %19, !llvm.loop !8
31: ; preds = %19
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 4, ptr %2, align 4
br label %33
33: ; preds = %42, %31
%34 = load i32, ptr %2, align 4
%35 = icmp sge i32 %34, 0
br i1 %35, label %36, label %45
36: ; preds = %33
%37 = load i32, ptr %2, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 %38
%40 = load i32, ptr %39, align 4
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %40)
br label %42
42: ; preds = %36
%43 = load i32, ptr %2, align 4
%44 = add nsw i32 %43, -1
store i32 %44, ptr %2, align 4
br label %33, !llvm.loop !9
45: ; preds = %33
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0rk3d8ho.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Elemento [%d] = \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"\0AValores originais:\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.4 = private unnamed_addr constant [28 x i8] c"\0AValores na ordem inversa:\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 [5 x i32], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 5
br i1 %5, label %.lr.ph, label %18
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %13
%7 = load i32, ptr %2, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %7)
%9 = load i32, ptr %2, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 %10
%12 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %11)
br label %13
13: ; preds = %6
%14 = load i32, ptr %2, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %2, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp slt i32 %16, 5
br i1 %17, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %18
18: ; preds = %._crit_edge, %0
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %2, align 4
%20 = load i32, ptr %2, align 4
%21 = icmp slt i32 %20, 5
br i1 %21, label %.lr.ph2, label %33
.lr.ph2: ; preds = %18
br label %22
22: ; preds = %.lr.ph2, %28
%23 = load i32, ptr %2, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 %24
%26 = load i32, ptr %25, align 4
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %26)
br label %28
28: ; preds = %22
%29 = load i32, ptr %2, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %2, align 4
%31 = load i32, ptr %2, align 4
%32 = icmp slt i32 %31, 5
br i1 %32, label %22, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %28
br label %33
33: ; preds = %._crit_edge3, %18
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 4, ptr %2, align 4
%35 = load i32, ptr %2, align 4
%36 = icmp sge i32 %35, 0
br i1 %36, label %.lr.ph5, label %48
.lr.ph5: ; preds = %33
br label %37
37: ; preds = %.lr.ph5, %43
%38 = load i32, ptr %2, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 %39
%41 = load i32, ptr %40, align 4
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %41)
br label %43
43: ; preds = %37
%44 = load i32, ptr %2, align 4
%45 = add nsw i32 %44, -1
store i32 %45, ptr %2, align 4
%46 = load i32, ptr %2, align 4
%47 = icmp sge i32 %46, 0
br i1 %47, label %37, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %43
br label %48
48: ; preds = %._crit_edge6, %33
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpe4wl40pg.c'
source_filename = "/tmp/tmpe4wl40pg.c"
target datalayout = "e-m:e-p270: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/tmpe4wl40pg.c"
target datalayout = "e-m:e-p270: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/tmp15d3p4w_.c'
source_filename = "/tmp/tmp15d3p4w_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"%s%s\09%s%d\09%s%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"Input line:\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"Input length:\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"length is bigger than: \00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"%s%s\0A%s%d\0A\00", align 1
@.str.5 = private unnamed_addr constant [24 x i8] c"The max input line is: \00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"The length is: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [1000 x i8], align 16
%3 = alloca [1000 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
br label %6
6: ; preds = %26, %0
%7 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 0
%8 = call i32 @_getline(ptr noundef %7, i32 noundef 1000)
store i32 %8, ptr %5, align 4
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %27
10: ; preds = %6
%11 = load i32, ptr %5, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp sgt i32 %11, %12
br i1 %13, label %14, label %19
14: ; preds = %10
%15 = load i32, ptr %5, align 4
store i32 %15, ptr %4, align 4
%16 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%17 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 0
%18 = call i32 @_copy(ptr noundef %16, ptr noundef %17)
br label %19
19: ; preds = %14, %10
%20 = load i32, ptr %5, align 4
%21 = icmp sgt i32 %20, 20
br i1 %21, label %22, label %26
22: ; preds = %19
%23 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 0
%24 = load i32, ptr %5, align 4
%25 = call i32 (ptr, ptr, ptr, ptr, i32, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, ptr noundef %23, ptr noundef @.str.2, i32 noundef %24, ptr noundef @.str.3, i32 noundef 20)
br label %26
26: ; preds = %22, %19
br label %6, !llvm.loop !6
27: ; preds = %6
%28 = load i32, ptr %4, align 4
%29 = icmp sgt i32 %28, 0
br i1 %29, label %30, label %34
30: ; preds = %27
%31 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%32 = load i32, ptr %4, align 4
%33 = call i32 (ptr, ptr, ptr, ptr, i32, ...) @printf(ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef %31, ptr noundef @.str.6, i32 noundef %32)
br label %34
34: ; preds = %30, %27
ret i32 0
}
declare i32 @_getline(ptr noundef, i32 noundef) #1
declare i32 @_copy(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp15d3p4w_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"%s%s\09%s%d\09%s%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"Input line:\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"Input length:\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"length is bigger than: \00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"%s%s\0A%s%d\0A\00", align 1
@.str.5 = private unnamed_addr constant [24 x i8] c"The max input line is: \00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"The length is: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [1000 x i8], align 16
%3 = alloca [1000 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
%6 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 0
%7 = call i32 @_getline(ptr noundef %6, i32 noundef 1000)
store i32 %7, ptr %5, align 4
%8 = icmp sgt i32 %7, 0
br i1 %8, label %.lr.ph, label %28
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %25
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp sgt i32 %10, %11
br i1 %12, label %13, label %18
13: ; preds = %9
%14 = load i32, ptr %5, align 4
store i32 %14, ptr %4, align 4
%15 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%16 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 0
%17 = call i32 @_copy(ptr noundef %15, ptr noundef %16)
br label %18
18: ; preds = %13, %9
%19 = load i32, ptr %5, align 4
%20 = icmp sgt i32 %19, 20
br i1 %20, label %21, label %25
21: ; preds = %18
%22 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 0
%23 = load i32, ptr %5, align 4
%24 = call i32 (ptr, ptr, ptr, ptr, i32, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, ptr noundef %22, ptr noundef @.str.2, i32 noundef %23, ptr noundef @.str.3, i32 noundef 20)
br label %25
25: ; preds = %21, %18
%26 = call i32 @_getline(ptr noundef %6, i32 noundef 1000)
store i32 %26, ptr %5, align 4
%27 = icmp sgt i32 %26, 0
br i1 %27, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %28
28: ; preds = %._crit_edge, %0
%29 = load i32, ptr %4, align 4
%30 = icmp sgt i32 %29, 0
br i1 %30, label %31, label %35
31: ; preds = %28
%32 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%33 = load i32, ptr %4, align 4
%34 = call i32 (ptr, ptr, ptr, ptr, i32, ...) @printf(ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef %32, ptr noundef @.str.6, i32 noundef %33)
br label %35
35: ; preds = %31, %28
ret i32 0
}
declare i32 @_getline(ptr noundef, i32 noundef) #1
declare i32 @_copy(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpahyn2sra.c'
source_filename = "/tmp/tmpahyn2sra.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @drchol(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 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
%10 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
%11 = load i32, ptr %9, align 4
%12 = load i32, ptr %9, align 4
%13 = mul i32 %11, %12
%14 = zext i32 %13 to i64
%15 = mul i64 %14, 8
%16 = trunc i64 %15 to i32
%17 = call ptr @alloca(i32 noundef %16)
store ptr %17, ptr %10, align 8
%18 = load ptr, ptr %6, align 8
%19 = load ptr, ptr %10, align 8
%20 = load i32, ptr %9, align 4
%21 = call i64 @drcholfactor(ptr noundef %18, ptr noundef %19, i32 noundef %20)
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %30
23: ; preds = %4
%24 = load ptr, ptr %8, align 8
%25 = load i32, ptr %9, align 4
%26 = zext i32 %25 to i64
%27 = mul i64 %26, 8
%28 = trunc i64 %27 to i32
%29 = call i32 @memset(ptr noundef %24, i32 noundef 0, i32 noundef %28)
store i32 -1, ptr %5, align 4
br label %36
30: ; preds = %4
%31 = load ptr, ptr %10, align 8
%32 = load ptr, ptr %7, align 8
%33 = load ptr, ptr %8, align 8
%34 = load i32, ptr %9, align 4
%35 = call i32 @drcholapply(ptr noundef %31, ptr noundef %32, ptr noundef %33, i32 noundef %34)
store i32 0, ptr %5, align 4
br label %36
36: ; preds = %30, %23
%37 = load i32, ptr %5, align 4
ret i32 %37
}
declare ptr @alloca(i32 noundef) #1
declare i64 @drcholfactor(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @drcholapply(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/tmpahyn2sra.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @drchol(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 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
%10 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
%11 = load i32, ptr %9, align 4
%12 = load i32, ptr %9, align 4
%13 = mul i32 %11, %12
%14 = zext i32 %13 to i64
%15 = mul i64 %14, 8
%16 = trunc i64 %15 to i32
%17 = call ptr @alloca(i32 noundef %16)
store ptr %17, ptr %10, align 8
%18 = load ptr, ptr %6, align 8
%19 = load ptr, ptr %10, align 8
%20 = load i32, ptr %9, align 4
%21 = call i64 @drcholfactor(ptr noundef %18, ptr noundef %19, i32 noundef %20)
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %30
23: ; preds = %4
%24 = load ptr, ptr %8, align 8
%25 = load i32, ptr %9, align 4
%26 = zext i32 %25 to i64
%27 = mul i64 %26, 8
%28 = trunc i64 %27 to i32
%29 = call i32 @memset(ptr noundef %24, i32 noundef 0, i32 noundef %28)
store i32 -1, ptr %5, align 4
br label %36
30: ; preds = %4
%31 = load ptr, ptr %10, align 8
%32 = load ptr, ptr %7, align 8
%33 = load ptr, ptr %8, align 8
%34 = load i32, ptr %9, align 4
%35 = call i32 @drcholapply(ptr noundef %31, ptr noundef %32, ptr noundef %33, i32 noundef %34)
store i32 0, ptr %5, align 4
br label %36
36: ; preds = %30, %23
%37 = load i32, ptr %5, align 4
ret i32 %37
}
declare ptr @alloca(i32 noundef) #1
declare i64 @drcholfactor(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @drcholapply(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/tmpl7pubol_.c'
source_filename = "/tmp/tmpl7pubol_.c"
target datalayout = "e-m:e-p270: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/tmpl7pubol_.c"
target datalayout = "e-m:e-p270: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/tmpwfjcxtq3.c'
source_filename = "/tmp/tmpwfjcxtq3.c"
target datalayout = "e-m:e-p270: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.ifreq = type { i32, i32 }
@PF_PACKET = dso_local global i32 0, align 4
@SOCK_RAW = dso_local global i32 0, align 4
@ETH_P_IP = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [22 x i8] c"can't open raw socket\00", align 1
@IFNAMSIZ = dso_local global i32 0, align 4
@SIOCGIFFLAGS = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [22 x i8] c"can't get socket info\00", align 1
@IFF_PROMISC = dso_local global i32 0, align 4
@SIOCSIFFLAGS = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [17 x i8] c"can't set promic\00", align 1
@SIOCGIFINDEX = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [32 x i8] c"can't retrieve etherenet index\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getrawsock(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca %struct.ifreq, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = load i32, ptr @PF_PACKET, align 4
%6 = load i32, ptr @SOCK_RAW, align 4
%7 = load i32, ptr @ETH_P_IP, align 4
%8 = call i32 @htons(i32 noundef %7)
%9 = call i32 @socket(i32 noundef %5, i32 noundef %6, i32 noundef %8)
store i32 %9, ptr %4, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %1
%12 = call i32 @perror(ptr noundef @.str)
%13 = call i32 @exit(i32 noundef 1) #3
unreachable
14: ; preds = %1
%15 = call i32 @memset(ptr noundef %3, i32 noundef 0, i32 noundef 8)
%16 = getelementptr inbounds %struct.ifreq, ptr %3, i32 0, i32 1
%17 = load i32, ptr %16, align 4
%18 = load ptr, ptr %2, align 8
%19 = load i32, ptr @IFNAMSIZ, align 4
%20 = call i32 @strncpy(i32 noundef %17, ptr noundef %18, i32 noundef %19)
%21 = load i32, ptr %4, align 4
%22 = load i32, ptr @SIOCGIFFLAGS, align 4
%23 = call i32 @ioctl(i32 noundef %21, i32 noundef %22, ptr noundef %3)
%24 = icmp slt i32 %23, 0
br i1 %24, label %25, label %28
25: ; preds = %14
%26 = call i32 @perror(ptr noundef @.str.1)
%27 = call i32 @exit(i32 noundef 1) #3
unreachable
28: ; preds = %14
%29 = load i32, ptr @IFF_PROMISC, align 4
%30 = getelementptr inbounds %struct.ifreq, ptr %3, i32 0, i32 0
%31 = load i32, ptr %30, align 4
%32 = or i32 %31, %29
store i32 %32, ptr %30, align 4
%33 = load i32, ptr %4, align 4
%34 = load i32, ptr @SIOCSIFFLAGS, align 4
%35 = call i32 @ioctl(i32 noundef %33, i32 noundef %34, ptr noundef %3)
%36 = icmp slt i32 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %28
%38 = call i32 @perror(ptr noundef @.str.2)
%39 = call i32 @exit(i32 noundef 1) #3
unreachable
40: ; preds = %28
%41 = load i32, ptr %4, align 4
%42 = load i32, ptr @SIOCGIFINDEX, align 4
%43 = call i32 @ioctl(i32 noundef %41, i32 noundef %42, ptr noundef %3)
%44 = icmp eq i32 %43, -1
br i1 %44, label %45, label %48
45: ; preds = %40
%46 = call i32 @perror(ptr noundef @.str.3)
%47 = call i32 @exit(i32 noundef 1) #3
unreachable
48: ; preds = %40
%49 = load i32, ptr %4, align 4
ret i32 %49
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strncpy(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @ioctl(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" }
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/tmpwfjcxtq3.c"
target datalayout = "e-m:e-p270: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.ifreq = type { i32, i32 }
@PF_PACKET = dso_local global i32 0, align 4
@SOCK_RAW = dso_local global i32 0, align 4
@ETH_P_IP = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [22 x i8] c"can't open raw socket\00", align 1
@IFNAMSIZ = dso_local global i32 0, align 4
@SIOCGIFFLAGS = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [22 x i8] c"can't get socket info\00", align 1
@IFF_PROMISC = dso_local global i32 0, align 4
@SIOCSIFFLAGS = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [17 x i8] c"can't set promic\00", align 1
@SIOCGIFINDEX = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [32 x i8] c"can't retrieve etherenet index\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getrawsock(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca %struct.ifreq, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = load i32, ptr @PF_PACKET, align 4
%6 = load i32, ptr @SOCK_RAW, align 4
%7 = load i32, ptr @ETH_P_IP, align 4
%8 = call i32 @htons(i32 noundef %7)
%9 = call i32 @socket(i32 noundef %5, i32 noundef %6, i32 noundef %8)
store i32 %9, ptr %4, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %1
%12 = call i32 @perror(ptr noundef @.str)
%13 = call i32 @exit(i32 noundef 1) #3
unreachable
14: ; preds = %1
%15 = call i32 @memset(ptr noundef %3, i32 noundef 0, i32 noundef 8)
%16 = getelementptr inbounds %struct.ifreq, ptr %3, i32 0, i32 1
%17 = load i32, ptr %16, align 4
%18 = load ptr, ptr %2, align 8
%19 = load i32, ptr @IFNAMSIZ, align 4
%20 = call i32 @strncpy(i32 noundef %17, ptr noundef %18, i32 noundef %19)
%21 = load i32, ptr %4, align 4
%22 = load i32, ptr @SIOCGIFFLAGS, align 4
%23 = call i32 @ioctl(i32 noundef %21, i32 noundef %22, ptr noundef %3)
%24 = icmp slt i32 %23, 0
br i1 %24, label %25, label %28
25: ; preds = %14
%26 = call i32 @perror(ptr noundef @.str.1)
%27 = call i32 @exit(i32 noundef 1) #3
unreachable
28: ; preds = %14
%29 = load i32, ptr @IFF_PROMISC, align 4
%30 = getelementptr inbounds %struct.ifreq, ptr %3, i32 0, i32 0
%31 = load i32, ptr %30, align 4
%32 = or i32 %31, %29
store i32 %32, ptr %30, align 4
%33 = load i32, ptr %4, align 4
%34 = load i32, ptr @SIOCSIFFLAGS, align 4
%35 = call i32 @ioctl(i32 noundef %33, i32 noundef %34, ptr noundef %3)
%36 = icmp slt i32 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %28
%38 = call i32 @perror(ptr noundef @.str.2)
%39 = call i32 @exit(i32 noundef 1) #3
unreachable
40: ; preds = %28
%41 = load i32, ptr %4, align 4
%42 = load i32, ptr @SIOCGIFINDEX, align 4
%43 = call i32 @ioctl(i32 noundef %41, i32 noundef %42, ptr noundef %3)
%44 = icmp eq i32 %43, -1
br i1 %44, label %45, label %48
45: ; preds = %40
%46 = call i32 @perror(ptr noundef @.str.3)
%47 = call i32 @exit(i32 noundef 1) #3
unreachable
48: ; preds = %40
%49 = load i32, ptr %4, align 4
ret i32 %49
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strncpy(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @ioctl(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" }
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/tmp6f51cvgu.c'
source_filename = "/tmp/tmp6f51cvgu.c"
target datalayout = "e-m:e-p270: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 [59 x i8] c"Error: could not allocate memory to hold wave audio data.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @digi_to_wave(ptr noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i64 %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
%10 = load i64, ptr %8, align 8
%11 = mul i64 %10, 4
%12 = call ptr @malloc(i64 noundef %11)
%13 = load ptr, ptr %7, align 8
store ptr %12, ptr %13, align 8
%14 = icmp eq ptr %12, null
br i1 %14, label %15, label %18
15: ; preds = %4
%16 = load i32, ptr @stderr, align 4
%17 = call i32 @fprintf(i32 noundef %16, ptr noundef @.str)
store i32 0, ptr %5, align 4
br label %27
18: ; preds = %4
%19 = load ptr, ptr %7, align 8
%20 = load ptr, ptr %19, align 8
%21 = load ptr, ptr %6, align 8
%22 = load ptr, ptr %21, align 8
%23 = load i64, ptr %8, align 8
%24 = call i32 @memcpy(ptr noundef %20, ptr noundef %22, i64 noundef %23)
%25 = load i64, ptr %8, align 8
%26 = trunc i64 %25 to i32
store i32 %26, ptr %5, align 4
br label %27
27: ; preds = %18, %15
%28 = load i32, ptr %5, align 4
ret i32 %28
}
declare ptr @malloc(i64 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6f51cvgu.c"
target datalayout = "e-m:e-p270: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 [59 x i8] c"Error: could not allocate memory to hold wave audio data.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @digi_to_wave(ptr noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i64 %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
%10 = load i64, ptr %8, align 8
%11 = mul i64 %10, 4
%12 = call ptr @malloc(i64 noundef %11)
%13 = load ptr, ptr %7, align 8
store ptr %12, ptr %13, align 8
%14 = icmp eq ptr %12, null
br i1 %14, label %15, label %18
15: ; preds = %4
%16 = load i32, ptr @stderr, align 4
%17 = call i32 @fprintf(i32 noundef %16, ptr noundef @.str)
store i32 0, ptr %5, align 4
br label %27
18: ; preds = %4
%19 = load ptr, ptr %7, align 8
%20 = load ptr, ptr %19, align 8
%21 = load ptr, ptr %6, align 8
%22 = load ptr, ptr %21, align 8
%23 = load i64, ptr %8, align 8
%24 = call i32 @memcpy(ptr noundef %20, ptr noundef %22, i64 noundef %23)
%25 = load i64, ptr %8, align 8
%26 = trunc i64 %25 to i32
store i32 %26, ptr %5, align 4
br label %27
27: ; preds = %18, %15
%28 = load i32, ptr %5, align 4
ret i32 %28
}
declare ptr @malloc(i64 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpom0u20b4.c'
source_filename = "/tmp/tmpom0u20b4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @U_WMR72_swap(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @U_WMRNOTIMPLEMENTED_swap(ptr noundef %5, i32 noundef %6)
ret void
}
declare i32 @U_WMRNOTIMPLEMENTED_swap(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpom0u20b4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @U_WMR72_swap(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @U_WMRNOTIMPLEMENTED_swap(ptr noundef %5, i32 noundef %6)
ret void
}
declare i32 @U_WMRNOTIMPLEMENTED_swap(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqhk56s9i.c'
source_filename = "/tmp/tmpqhk56s9i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"setsid\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"execvp\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp slt i32 %6, 2
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 @exit(i32 noundef 1) #3
unreachable
10: ; preds = %2
%11 = call i64 (...) @setsid()
%12 = icmp slt i64 %11, 0
br i1 %12, label %13, label %16
13: ; preds = %10
%14 = call i32 @perror(ptr noundef @.str)
%15 = call i32 @exit(i32 noundef 1) #3
unreachable
16: ; preds = %10
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 1
%19 = load ptr, ptr %18, align 8
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = call i32 @execvp(ptr noundef %19, ptr noundef %21)
%23 = call i32 @perror(ptr noundef @.str.1)
%24 = call i32 @exit(i32 noundef 1) #3
unreachable
}
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #1
declare i64 @setsid(...) #2
declare i32 @perror(ptr 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 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-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/tmpqhk56s9i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"setsid\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"execvp\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp slt i32 %6, 2
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 @exit(i32 noundef 1) #3
unreachable
10: ; preds = %2
%11 = call i64 (...) @setsid()
%12 = icmp slt i64 %11, 0
br i1 %12, label %13, label %16
13: ; preds = %10
%14 = call i32 @perror(ptr noundef @.str)
%15 = call i32 @exit(i32 noundef 1) #3
unreachable
16: ; preds = %10
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 1
%19 = load ptr, ptr %18, align 8
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = call i32 @execvp(ptr noundef %19, ptr noundef %21)
%23 = call i32 @perror(ptr noundef @.str.1)
%24 = call i32 @exit(i32 noundef 1) #3
unreachable
}
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #1
declare i64 @setsid(...) #2
declare i32 @perror(ptr 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 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-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/tmpr2v1gxg4.c'
source_filename = "/tmp/tmpr2v1gxg4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGABRT = dso_local global i32 0, align 4
@SIG_SETMASK = dso_local global i32 0, align 4
@SIG_UNBLOCK = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [36 x i8] c"PASS: signal mask was not changed.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @a_thread_func() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 @sigemptyset(ptr noundef %1)
%4 = call i32 @sigemptyset(ptr noundef %2)
%5 = load i32, ptr @SIGABRT, align 4
%6 = call i32 @sigaddset(ptr noundef %1, i32 noundef %5)
%7 = load i32, ptr @SIG_SETMASK, align 4
%8 = call i32 @pthread_sigmask(i32 noundef %7, ptr noundef %1, ptr noundef null)
%9 = load i32, ptr @SIG_UNBLOCK, align 4
%10 = call i32 @pthread_sigmask(i32 noundef %9, ptr noundef null, ptr noundef %2)
%11 = load i32, ptr %2, align 4
%12 = load i32, ptr @SIGABRT, align 4
%13 = call i64 @is_changed(i32 noundef %11, i32 noundef %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %0
%16 = call i32 @pthread_exit(ptr noundef inttoptr (i64 -1 to ptr))
br label %17
17: ; preds = %15, %0
%18 = call i32 @printf(ptr noundef @.str)
%19 = call i32 @pthread_exit(ptr noundef null)
ret ptr null
}
declare i32 @sigemptyset(ptr noundef) #1
declare i32 @sigaddset(ptr noundef, i32 noundef) #1
declare i32 @pthread_sigmask(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @is_changed(i32 noundef, i32 noundef) #1
declare i32 @pthread_exit(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr2v1gxg4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGABRT = dso_local global i32 0, align 4
@SIG_SETMASK = dso_local global i32 0, align 4
@SIG_UNBLOCK = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [36 x i8] c"PASS: signal mask was not changed.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @a_thread_func() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 @sigemptyset(ptr noundef %1)
%4 = call i32 @sigemptyset(ptr noundef %2)
%5 = load i32, ptr @SIGABRT, align 4
%6 = call i32 @sigaddset(ptr noundef %1, i32 noundef %5)
%7 = load i32, ptr @SIG_SETMASK, align 4
%8 = call i32 @pthread_sigmask(i32 noundef %7, ptr noundef %1, ptr noundef null)
%9 = load i32, ptr @SIG_UNBLOCK, align 4
%10 = call i32 @pthread_sigmask(i32 noundef %9, ptr noundef null, ptr noundef %2)
%11 = load i32, ptr %2, align 4
%12 = load i32, ptr @SIGABRT, align 4
%13 = call i64 @is_changed(i32 noundef %11, i32 noundef %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %0
%16 = call i32 @pthread_exit(ptr noundef inttoptr (i64 -1 to ptr))
br label %17
17: ; preds = %15, %0
%18 = call i32 @printf(ptr noundef @.str)
%19 = call i32 @pthread_exit(ptr noundef null)
ret ptr null
}
declare i32 @sigemptyset(ptr noundef) #1
declare i32 @sigaddset(ptr noundef, i32 noundef) #1
declare i32 @pthread_sigmask(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @is_changed(i32 noundef, i32 noundef) #1
declare i32 @pthread_exit(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpunty3z9v.c'
source_filename = "/tmp/tmpunty3z9v.c"
target datalayout = "e-m:e-p270: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, i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @specc_get_time() #0 {
%1 = alloca %struct.timeval, align 8
%2 = call i32 @gettimeofday(ptr noundef %1, ptr noundef null)
%3 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 0
%4 = load double, ptr %3, align 8
%5 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 1
%6 = load i32, ptr %5, align 8
%7 = sitofp i32 %6 to double
%8 = call double @llvm.fmuladd.f64(double %7, double 0x3EB0C6F7A0B5ED8D, double %4)
ret double %8
}
declare i32 @gettimeofday(ptr noundef, ptr 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/tmpunty3z9v.c"
target datalayout = "e-m:e-p270: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, i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @specc_get_time() #0 {
%1 = alloca %struct.timeval, align 8
%2 = call i32 @gettimeofday(ptr noundef %1, ptr noundef null)
%3 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 0
%4 = load double, ptr %3, align 8
%5 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 1
%6 = load i32, ptr %5, align 8
%7 = sitofp i32 %6 to double
%8 = call double @llvm.fmuladd.f64(double %7, double 0x3EB0C6F7A0B5ED8D, double %4)
ret double %8
}
declare i32 @gettimeofday(ptr noundef, ptr 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/tmp_k1iftl6.c'
source_filename = "/tmp/tmp_k1iftl6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @kzgetc() #0 {
%1 = alloca i64, align 8
%2 = alloca i8, align 1
%3 = call i32 @kzread(ptr noundef %2, i32 noundef 1)
%4 = icmp ne i32 %3, 0
br i1 %4, label %6, label %5
5: ; preds = %0
store i64 -1, ptr %1, align 8
br label %9
6: ; preds = %0
%7 = load i8, ptr %2, align 1
%8 = sext i8 %7 to i64
store i64 %8, ptr %1, align 8
br label %9
9: ; preds = %6, %5
%10 = load i64, ptr %1, align 8
ret i64 %10
}
declare i32 @kzread(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_k1iftl6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @kzgetc() #0 {
%1 = alloca i64, align 8
%2 = alloca i8, align 1
%3 = call i32 @kzread(ptr noundef %2, i32 noundef 1)
%4 = icmp ne i32 %3, 0
br i1 %4, label %6, label %5
5: ; preds = %0
store i64 -1, ptr %1, align 8
br label %9
6: ; preds = %0
%7 = load i8, ptr %2, align 1
%8 = sext i8 %7 to i64
store i64 %8, ptr %1, align 8
br label %9
9: ; preds = %6, %5
%10 = load i64, ptr %1, align 8
ret i64 %10
}
declare i32 @kzread(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/tmpv4m9n12l.c'
source_filename = "/tmp/tmpv4m9n12l.c"
target datalayout = "e-m:e-p270: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/tmpv4m9n12l.c"
target datalayout = "e-m:e-p270: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/tmptc7zlhjc.c'
source_filename = "/tmp/tmptc7zlhjc.c"
target datalayout = "e-m:e-p270: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/tmptc7zlhjc.c"
target datalayout = "e-m:e-p270: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/tmp67ijs1f1.c'
source_filename = "/tmp/tmp67ijs1f1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isPrime(i64 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 2, ptr %4, align 8
br label %5
5: ; preds = %17, %1
%6 = load i64, ptr %4, align 8
%7 = load i64, ptr %3, align 8
%8 = call i64 @sqrt(i64 noundef %7)
%9 = icmp sle i64 %6, %8
br i1 %9, label %10, label %20
10: ; preds = %5
%11 = load i64, ptr %3, align 8
%12 = load i64, ptr %4, align 8
%13 = srem i64 %11, %12
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %10
store i32 0, ptr %2, align 4
br label %21
16: ; preds = %10
br label %17
17: ; preds = %16
%18 = load i64, ptr %4, align 8
%19 = add nsw i64 %18, 1
store i64 %19, ptr %4, align 8
br label %5, !llvm.loop !6
20: ; preds = %5
store i32 1, ptr %2, align 4
br label %21
21: ; preds = %20, %15
%22 = load i32, ptr %2, align 4
ret i32 %22
}
declare i64 @sqrt(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp67ijs1f1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isPrime(i64 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 2, ptr %4, align 8
%5 = load i64, ptr %4, align 8
%6 = load i64, ptr %3, align 8
%7 = call i64 @sqrt(i64 noundef %6)
%8 = icmp sle i64 %5, %7
br i1 %8, label %.lr.ph, label %23
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %16
%10 = load i64, ptr %3, align 8
%11 = load i64, ptr %4, align 8
%12 = srem i64 %10, %11
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %9
store i32 0, ptr %2, align 4
br label %24
15: ; preds = %9
br label %16
16: ; preds = %15
%17 = load i64, ptr %4, align 8
%18 = add nsw i64 %17, 1
store i64 %18, ptr %4, align 8
%19 = load i64, ptr %4, align 8
%20 = load i64, ptr %3, align 8
%21 = call i64 @sqrt(i64 noundef %20)
%22 = icmp sle i64 %19, %21
br i1 %22, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %23
23: ; preds = %._crit_edge, %1
store i32 1, ptr %2, align 4
br label %24
24: ; preds = %23, %14
%25 = load i32, ptr %2, align 4
ret i32 %25
}
declare i64 @sqrt(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpoqrkl828.c'
source_filename = "/tmp/tmpoqrkl828.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @NonlinearADR_Decay_DiracIC(ptr noundef %0, ptr noundef %1, i32 noundef %2, double noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca double, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i32 %2, ptr %9, align 4
store double %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%19 = load ptr, ptr %8, align 8
%20 = getelementptr inbounds double, ptr %19, i64 10
%21 = load double, ptr %20, align 8
store double %21, ptr %15, align 8
%22 = load ptr, ptr %8, align 8
%23 = getelementptr inbounds double, ptr %22, i64 11
%24 = load double, ptr %23, align 8
store double %24, ptr %16, align 8
%25 = load ptr, ptr %8, align 8
%26 = getelementptr inbounds double, ptr %25, i64 5
%27 = load double, ptr %26, align 8
store double %27, ptr %17, align 8
%28 = load double, ptr %10, align 8
%29 = load double, ptr %17, align 8
%30 = fadd double %28, %29
store double %30, ptr %18, align 8
%31 = load ptr, ptr %7, align 8
%32 = load ptr, ptr %8, align 8
%33 = load i32, ptr %9, align 4
%34 = load double, ptr %10, align 8
%35 = load ptr, ptr %11, align 8
%36 = load ptr, ptr %12, align 8
%37 = call i32 @LinearAD_DiracIC(ptr noundef %31, ptr noundef %32, i32 noundef %33, double noundef %34, ptr noundef %35, ptr noundef %36)
store i32 %37, ptr %14, align 4
store i32 0, ptr %13, align 4
br label %38
38: ; preds = %75, %6
%39 = load i32, ptr %13, align 4
%40 = load i32, ptr %9, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %42, label %78
42: ; preds = %38
%43 = load ptr, ptr %12, align 8
%44 = load i32, ptr %13, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds double, ptr %43, i64 %45
%47 = load double, ptr %46, align 8
%48 = fcmp ogt double %47, 0.000000e+00
br i1 %48, label %49, label %74
49: ; preds = %42
%50 = load double, ptr %15, align 8
%51 = fmul double 2.000000e+00, %50
%52 = load double, ptr %18, align 8
%53 = fmul double %51, %52
%54 = load ptr, ptr %12, align 8
%55 = load i32, ptr %13, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds double, ptr %54, i64 %56
%58 = load double, ptr %57, align 8
%59 = load double, ptr %16, align 8
%60 = fsub double %59, 1.000000e+00
%61 = call double @pow(double noundef %58, double noundef %60) #3
%62 = fmul double %53, %61
%63 = fneg double %62
%64 = load double, ptr %16, align 8
%65 = fadd double %64, 1.000000e+00
%66 = fdiv double %63, %65
%67 = call double @exp(double noundef %66) #3
%68 = load ptr, ptr %12, align 8
%69 = load i32, ptr %13, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds double, ptr %68, i64 %70
%72 = load double, ptr %71, align 8
%73 = fmul double %72, %67
store double %73, ptr %71, align 8
br label %74
74: ; preds = %49, %42
br label %75
75: ; preds = %74
%76 = load i32, ptr %13, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %13, align 4
br label %38, !llvm.loop !6
78: ; preds = %38
%79 = load i32, ptr %14, align 4
ret i32 %79
}
declare i32 @LinearAD_DiracIC(ptr noundef, ptr noundef, i32 noundef, double noundef, ptr noundef, ptr noundef) #1
; Function Attrs: nounwind
declare double @exp(double noundef) #2
; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpoqrkl828.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @NonlinearADR_Decay_DiracIC(ptr noundef %0, ptr noundef %1, i32 noundef %2, double noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca double, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i32 %2, ptr %9, align 4
store double %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%19 = load ptr, ptr %8, align 8
%20 = getelementptr inbounds double, ptr %19, i64 10
%21 = load double, ptr %20, align 8
store double %21, ptr %15, align 8
%22 = load ptr, ptr %8, align 8
%23 = getelementptr inbounds double, ptr %22, i64 11
%24 = load double, ptr %23, align 8
store double %24, ptr %16, align 8
%25 = load ptr, ptr %8, align 8
%26 = getelementptr inbounds double, ptr %25, i64 5
%27 = load double, ptr %26, align 8
store double %27, ptr %17, align 8
%28 = load double, ptr %10, align 8
%29 = load double, ptr %17, align 8
%30 = fadd double %28, %29
store double %30, ptr %18, align 8
%31 = load ptr, ptr %7, align 8
%32 = load ptr, ptr %8, align 8
%33 = load i32, ptr %9, align 4
%34 = load double, ptr %10, align 8
%35 = load ptr, ptr %11, align 8
%36 = load ptr, ptr %12, align 8
%37 = call i32 @LinearAD_DiracIC(ptr noundef %31, ptr noundef %32, i32 noundef %33, double noundef %34, ptr noundef %35, ptr noundef %36)
store i32 %37, ptr %14, align 4
store i32 0, ptr %13, align 4
%38 = load i32, ptr %13, align 4
%39 = load i32, ptr %9, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %.lr.ph, label %80
.lr.ph: ; preds = %6
br label %41
41: ; preds = %.lr.ph, %74
%42 = load ptr, ptr %12, align 8
%43 = load i32, ptr %13, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds double, ptr %42, i64 %44
%46 = load double, ptr %45, align 8
%47 = fcmp ogt double %46, 0.000000e+00
br i1 %47, label %48, label %73
48: ; preds = %41
%49 = load double, ptr %15, align 8
%50 = fmul double 2.000000e+00, %49
%51 = load double, ptr %18, align 8
%52 = fmul double %50, %51
%53 = load ptr, ptr %12, align 8
%54 = load i32, ptr %13, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds double, ptr %53, i64 %55
%57 = load double, ptr %56, align 8
%58 = load double, ptr %16, align 8
%59 = fsub double %58, 1.000000e+00
%60 = call double @pow(double noundef %57, double noundef %59) #3
%61 = fmul double %52, %60
%62 = fneg double %61
%63 = load double, ptr %16, align 8
%64 = fadd double %63, 1.000000e+00
%65 = fdiv double %62, %64
%66 = call double @exp(double noundef %65) #3
%67 = load ptr, ptr %12, align 8
%68 = load i32, ptr %13, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds double, ptr %67, i64 %69
%71 = load double, ptr %70, align 8
%72 = fmul double %71, %66
store double %72, ptr %70, align 8
br label %73
73: ; preds = %48, %41
br label %74
74: ; preds = %73
%75 = load i32, ptr %13, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %13, align 4
%77 = load i32, ptr %13, align 4
%78 = load i32, ptr %9, align 4
%79 = icmp slt i32 %77, %78
br i1 %79, label %41, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %74
br label %80
80: ; preds = %._crit_edge, %6
%81 = load i32, ptr %14, align 4
ret i32 %81
}
declare i32 @LinearAD_DiracIC(ptr noundef, ptr noundef, i32 noundef, double noundef, ptr noundef, ptr noundef) #1
; Function Attrs: nounwind
declare double @exp(double noundef) #2
; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpzf3atek8.c'
source_filename = "/tmp/tmpzf3atek8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"rb\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [43 x i8] c"Usage: 'pes2txt filename.pes > txt_units'\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Can't find file %s\0A\00", align 1
@SEEK_CUR = dso_local global i32 0, align 4
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca [4 x i8], align 1
%10 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr %4, align 4
%12 = icmp sgt i32 %11, 1
br i1 %12, label %13, label %18
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
%17 = call ptr @fopen(ptr noundef %16, ptr noundef @.str)
store ptr %17, ptr %8, align 8
br label %21
18: ; preds = %2
%19 = load i32, ptr @stderr, align 4
%20 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %19, ptr noundef @.str.1)
store i32 2, ptr %3, align 4
br label %99
21: ; preds = %13
%22 = load ptr, ptr %8, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %30
24: ; preds = %21
%25 = load i32, ptr @stderr, align 4
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 1
%28 = load ptr, ptr %27, align 8
%29 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %25, ptr noundef @.str.2, ptr noundef %28)
store i32 2, ptr %3, align 4
br label %99
30: ; preds = %21
store i32 0, ptr %7, align 4
%31 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
%32 = load ptr, ptr %8, align 8
%33 = call i32 @fread(ptr noundef %31, i32 noundef 1, i32 noundef 4, ptr noundef %32)
store i32 %33, ptr %6, align 4
br label %34
34: ; preds = %94, %30
%35 = load i32, ptr %6, align 4
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %95
37: ; preds = %34
%38 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
%39 = load i8, ptr %38, align 1
%40 = zext i8 %39 to i32
%41 = icmp eq i32 %40, 0
br i1 %41, label %42, label %73
42: ; preds = %37
%43 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 1
%44 = load i8, ptr %43, align 1
%45 = zext i8 %44 to i32
%46 = icmp eq i32 %45, 0
br i1 %46, label %47, label %73
47: ; preds = %42
%48 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 2
%49 = load i8, ptr %48, align 1
%50 = zext i8 %49 to i32
%51 = icmp eq i32 %50, 1
br i1 %51, label %52, label %73
52: ; preds = %47
%53 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 3
%54 = load i8, ptr %53, align 1
%55 = zext i8 %54 to i32
%56 = icmp eq i32 %55, 189
br i1 %56, label %57, label %73
57: ; preds = %52
store i32 1, ptr %7, align 4
%58 = load ptr, ptr %8, align 8
%59 = load i32, ptr @SEEK_CUR, align 4
%60 = call i32 @fseek(ptr noundef %58, i8 noundef zeroext 4, i32 noundef %59)
%61 = load ptr, ptr %8, align 8
%62 = call i32 @fread(ptr noundef %10, i32 noundef 1, i32 noundef 1, ptr noundef %61)
%63 = load ptr, ptr %8, align 8
%64 = load i8, ptr %10, align 1
%65 = zext i8 %64 to i32
%66 = add nsw i32 %65, 1
%67 = trunc i32 %66 to i8
%68 = load i32, ptr @SEEK_CUR, align 4
%69 = call i32 @fseek(ptr noundef %63, i8 noundef zeroext %67, i32 noundef %68)
%70 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
%71 = load ptr, ptr %8, align 8
%72 = call i32 @fread(ptr noundef %70, i32 noundef 1, i32 noundef 4, ptr noundef %71)
store i32 %72, ptr %6, align 4
br label %94
73: ; preds = %52, %47, %42, %37
%74 = load i32, ptr %7, align 4
%75 = icmp ne i32 %74, 0
br i1 %75, label %76, label %80
76: ; preds = %73
%77 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
%78 = load i32, ptr @stdout, align 4
%79 = call i32 @fwrite(ptr noundef %77, i32 noundef 1, i32 noundef 1, i32 noundef %78)
br label %80
80: ; preds = %76, %73
%81 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 1
%82 = load i8, ptr %81, align 1
%83 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
store i8 %82, ptr %83, align 1
%84 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 2
%85 = load i8, ptr %84, align 1
%86 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 1
store i8 %85, ptr %86, align 1
%87 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 3
%88 = load i8, ptr %87, align 1
%89 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 2
store i8 %88, ptr %89, align 1
%90 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
%91 = getelementptr inbounds i8, ptr %90, i64 3
%92 = load ptr, ptr %8, align 8
%93 = call i32 @fread(ptr noundef %91, i32 noundef 1, i32 noundef 1, ptr noundef %92)
store i32 %93, ptr %6, align 4
br label %94
94: ; preds = %80, %57
br label %34, !llvm.loop !6
95: ; preds = %34
%96 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
%97 = load i32, ptr @stdout, align 4
%98 = call i32 @fwrite(ptr noundef %96, i32 noundef 1, i32 noundef 3, i32 noundef %97)
store i32 0, ptr %3, align 4
br label %99
99: ; preds = %95, %24, %18
%100 = load i32, ptr %3, align 4
ret i32 %100
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i8 noundef zeroext, i32 noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzf3atek8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"rb\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [43 x i8] c"Usage: 'pes2txt filename.pes > txt_units'\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Can't find file %s\0A\00", align 1
@SEEK_CUR = dso_local global i32 0, align 4
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca [4 x i8], align 1
%10 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load i32, ptr %4, align 4
%12 = icmp sgt i32 %11, 1
br i1 %12, label %13, label %18
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
%17 = call ptr @fopen(ptr noundef %16, ptr noundef @.str)
store ptr %17, ptr %8, align 8
br label %21
18: ; preds = %2
%19 = load i32, ptr @stderr, align 4
%20 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %19, ptr noundef @.str.1)
store i32 2, ptr %3, align 4
br label %100
21: ; preds = %13
%22 = load ptr, ptr %8, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %30
24: ; preds = %21
%25 = load i32, ptr @stderr, align 4
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 1
%28 = load ptr, ptr %27, align 8
%29 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %25, ptr noundef @.str.2, ptr noundef %28)
store i32 2, ptr %3, align 4
br label %100
30: ; preds = %21
store i32 0, ptr %7, align 4
%31 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
%32 = load ptr, ptr %8, align 8
%33 = call i32 @fread(ptr noundef %31, i32 noundef 1, i32 noundef 4, ptr noundef %32)
store i32 %33, ptr %6, align 4
%34 = load i32, ptr %6, align 4
%35 = icmp ne i32 %34, 0
br i1 %35, label %.lr.ph, label %96
.lr.ph: ; preds = %30
br label %36
36: ; preds = %.lr.ph, %93
%37 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
%38 = load i8, ptr %37, align 1
%39 = zext i8 %38 to i32
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %72
41: ; preds = %36
%42 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 1
%43 = load i8, ptr %42, align 1
%44 = zext i8 %43 to i32
%45 = icmp eq i32 %44, 0
br i1 %45, label %46, label %72
46: ; preds = %41
%47 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 2
%48 = load i8, ptr %47, align 1
%49 = zext i8 %48 to i32
%50 = icmp eq i32 %49, 1
br i1 %50, label %51, label %72
51: ; preds = %46
%52 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 3
%53 = load i8, ptr %52, align 1
%54 = zext i8 %53 to i32
%55 = icmp eq i32 %54, 189
br i1 %55, label %56, label %72
56: ; preds = %51
store i32 1, ptr %7, align 4
%57 = load ptr, ptr %8, align 8
%58 = load i32, ptr @SEEK_CUR, align 4
%59 = call i32 @fseek(ptr noundef %57, i8 noundef zeroext 4, i32 noundef %58)
%60 = load ptr, ptr %8, align 8
%61 = call i32 @fread(ptr noundef %10, i32 noundef 1, i32 noundef 1, ptr noundef %60)
%62 = load ptr, ptr %8, align 8
%63 = load i8, ptr %10, align 1
%64 = zext i8 %63 to i32
%65 = add nsw i32 %64, 1
%66 = trunc i32 %65 to i8
%67 = load i32, ptr @SEEK_CUR, align 4
%68 = call i32 @fseek(ptr noundef %62, i8 noundef zeroext %66, i32 noundef %67)
%69 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
%70 = load ptr, ptr %8, align 8
%71 = call i32 @fread(ptr noundef %69, i32 noundef 1, i32 noundef 4, ptr noundef %70)
store i32 %71, ptr %6, align 4
br label %93
72: ; preds = %51, %46, %41, %36
%73 = load i32, ptr %7, align 4
%74 = icmp ne i32 %73, 0
br i1 %74, label %75, label %79
75: ; preds = %72
%76 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
%77 = load i32, ptr @stdout, align 4
%78 = call i32 @fwrite(ptr noundef %76, i32 noundef 1, i32 noundef 1, i32 noundef %77)
br label %79
79: ; preds = %75, %72
%80 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 1
%81 = load i8, ptr %80, align 1
%82 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
store i8 %81, ptr %82, align 1
%83 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 2
%84 = load i8, ptr %83, align 1
%85 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 1
store i8 %84, ptr %85, align 1
%86 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 3
%87 = load i8, ptr %86, align 1
%88 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 2
store i8 %87, ptr %88, align 1
%89 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
%90 = getelementptr inbounds i8, ptr %89, i64 3
%91 = load ptr, ptr %8, align 8
%92 = call i32 @fread(ptr noundef %90, i32 noundef 1, i32 noundef 1, ptr noundef %91)
store i32 %92, ptr %6, align 4
br label %93
93: ; preds = %79, %56
%94 = load i32, ptr %6, align 4
%95 = icmp ne i32 %94, 0
br i1 %95, label %36, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %93
br label %96
96: ; preds = %._crit_edge, %30
%97 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
%98 = load i32, ptr @stdout, align 4
%99 = call i32 @fwrite(ptr noundef %97, i32 noundef 1, i32 noundef 3, i32 noundef %98)
store i32 0, ptr %3, align 4
br label %100
100: ; preds = %96, %24, %18
%101 = load i32, ptr %3, align 4
ret i32 %101
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i8 noundef zeroext, i32 noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmphb29xbza.c'
source_filename = "/tmp/tmphb29xbza.c"
target datalayout = "e-m:e-p270: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/tmphb29xbza.c"
target datalayout = "e-m:e-p270: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/tmpv2kqqkqr.c'
source_filename = "/tmp/tmpv2kqqkqr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_WRONLY = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv2kqqkqr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_WRONLY = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxrv82y90.c'
source_filename = "/tmp/tmpxrv82y90.c"
target datalayout = "e-m:e-p270: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, i32 }
%struct.TYPE_2__ = type { i32 }
@.str = private unnamed_addr constant [107 x i8] c"\0A Use: ./client <id> \0A id belongs to [0,N_PROCESSUS] \0A N_PROCESSUS is a #define in server.c and client.c \0A\00", align 1
@PF_INET = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@AF_INET = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [10 x i8] c"127.0.0.1\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c":\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%s\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 [1024 x i8], align 16
%12 = alloca [32 x i8], align 16
%13 = alloca ptr, align 8
%14 = alloca %struct.sockaddr_in, align 4
%15 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%16 = load i32, ptr %4, align 4
%17 = icmp ne i32 %16, 2
br i1 %17, label %30, label %18
18: ; preds = %2
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 1
%21 = load ptr, ptr %20, align 8
%22 = call i32 @atoi(ptr noundef %21)
%23 = icmp sgt i32 %22, 3
br i1 %23, label %30, label %24
24: ; preds = %18
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 1
%27 = load ptr, ptr %26, align 8
%28 = call i32 @atoi(ptr noundef %27)
%29 = icmp slt i32 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %24, %18, %2
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str)
ret i32 1
32: ; preds = %24
store i32 7891, ptr %7, align 4
%33 = load i32, ptr @PF_INET, align 4
%34 = load i32, ptr @SOCK_DGRAM, align 4
%35 = call i32 @socket(i32 noundef %33, i32 noundef %34, i32 noundef 0)
store i32 %35, ptr %6, align 4
%36 = load i32, ptr @AF_INET, align 4
%37 = getelementptr inbounds %struct.sockaddr_in, ptr %14, i32 0, i32 3
store i32 %36, ptr %37, align 4
%38 = load i32, ptr %7, align 4
%39 = call i32 @htons(i32 noundef %38)
%40 = getelementptr inbounds %struct.sockaddr_in, ptr %14, i32 0, i32 2
store i32 %39, ptr %40, align 4
%41 = call i32 @inet_addr(ptr noundef @.str.1)
%42 = getelementptr inbounds %struct.sockaddr_in, ptr %14, i32 0, i32 1
%43 = getelementptr inbounds %struct.TYPE_2__, ptr %42, i32 0, i32 0
store i32 %41, ptr %43, align 4
%44 = getelementptr inbounds %struct.sockaddr_in, ptr %14, i32 0, i32 0
%45 = load i32, ptr %44, align 4
%46 = call i32 @memset(i32 noundef %45, i8 noundef signext 0, i32 noundef 4)
store i32 16, ptr %15, align 4
%47 = load ptr, ptr %5, align 8
%48 = getelementptr inbounds ptr, ptr %47, i64 1
%49 = load ptr, ptr %48, align 8
store ptr %49, ptr %13, align 8
br label %50
50: ; preds = %32, %50
%51 = call i32 (...) @rand()
%52 = srem i32 %51, 100
store i32 %52, ptr %9, align 4
%53 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
%54 = load i32, ptr %9, align 4
%55 = call i32 @sprintf(ptr noundef %53, ptr noundef @.str.2, i32 noundef %54)
%56 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
%57 = load ptr, ptr %13, align 8
%58 = call i32 @strcpy(ptr noundef %56, ptr noundef %57)
%59 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
%60 = call i32 @strcat(ptr noundef %59, ptr noundef @.str.3)
%61 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
%62 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
%63 = call i32 @strcat(ptr noundef %61, ptr noundef %62)
%64 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %64)
%66 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
%67 = call i32 @strlen(ptr noundef %66)
%68 = add nsw i32 %67, 1
store i32 %68, ptr %8, align 4
%69 = load i32, ptr %6, align 4
%70 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
%71 = load i32, ptr %8, align 4
%72 = load i32, ptr %15, align 4
%73 = call i32 @sendto(i32 noundef %69, ptr noundef %70, i32 noundef %71, i32 noundef 0, ptr noundef %14, i32 noundef %72)
%74 = call i32 (...) @rand()
%75 = srem i32 %74, 10
store i32 %75, ptr %10, align 4
%76 = load i32, ptr %10, align 4
%77 = call i32 @sleep(i32 noundef %76)
br label %50
}
declare i32 @atoi(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @inet_addr(ptr noundef) #1
declare i32 @memset(i32 noundef, i8 noundef signext, i32 noundef) #1
declare i32 @rand(...) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @sendto(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @sleep(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/tmpxrv82y90.c"
target datalayout = "e-m:e-p270: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, i32 }
%struct.TYPE_2__ = type { i32 }
@.str = private unnamed_addr constant [107 x i8] c"\0A Use: ./client <id> \0A id belongs to [0,N_PROCESSUS] \0A N_PROCESSUS is a #define in server.c and client.c \0A\00", align 1
@PF_INET = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@AF_INET = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [10 x i8] c"127.0.0.1\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c":\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%s\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 [1024 x i8], align 16
%12 = alloca [32 x i8], align 16
%13 = alloca ptr, align 8
%14 = alloca %struct.sockaddr_in, align 4
%15 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%16 = load i32, ptr %4, align 4
%17 = icmp ne i32 %16, 2
br i1 %17, label %30, label %18
18: ; preds = %2
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 1
%21 = load ptr, ptr %20, align 8
%22 = call i32 @atoi(ptr noundef %21)
%23 = icmp sgt i32 %22, 3
br i1 %23, label %30, label %24
24: ; preds = %18
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 1
%27 = load ptr, ptr %26, align 8
%28 = call i32 @atoi(ptr noundef %27)
%29 = icmp slt i32 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %24, %18, %2
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str)
ret i32 1
32: ; preds = %24
store i32 7891, ptr %7, align 4
%33 = load i32, ptr @PF_INET, align 4
%34 = load i32, ptr @SOCK_DGRAM, align 4
%35 = call i32 @socket(i32 noundef %33, i32 noundef %34, i32 noundef 0)
store i32 %35, ptr %6, align 4
%36 = load i32, ptr @AF_INET, align 4
%37 = getelementptr inbounds %struct.sockaddr_in, ptr %14, i32 0, i32 3
store i32 %36, ptr %37, align 4
%38 = load i32, ptr %7, align 4
%39 = call i32 @htons(i32 noundef %38)
%40 = getelementptr inbounds %struct.sockaddr_in, ptr %14, i32 0, i32 2
store i32 %39, ptr %40, align 4
%41 = call i32 @inet_addr(ptr noundef @.str.1)
%42 = getelementptr inbounds %struct.sockaddr_in, ptr %14, i32 0, i32 1
%43 = getelementptr inbounds %struct.TYPE_2__, ptr %42, i32 0, i32 0
store i32 %41, ptr %43, align 4
%44 = getelementptr inbounds %struct.sockaddr_in, ptr %14, i32 0, i32 0
%45 = load i32, ptr %44, align 4
%46 = call i32 @memset(i32 noundef %45, i8 noundef signext 0, i32 noundef 4)
store i32 16, ptr %15, align 4
%47 = load ptr, ptr %5, align 8
%48 = getelementptr inbounds ptr, ptr %47, i64 1
%49 = load ptr, ptr %48, align 8
store ptr %49, ptr %13, align 8
br label %50
50: ; preds = %50, %32
%51 = call i32 (...) @rand()
%52 = srem i32 %51, 100
store i32 %52, ptr %9, align 4
%53 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
%54 = load i32, ptr %9, align 4
%55 = call i32 @sprintf(ptr noundef %53, ptr noundef @.str.2, i32 noundef %54)
%56 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
%57 = load ptr, ptr %13, align 8
%58 = call i32 @strcpy(ptr noundef %56, ptr noundef %57)
%59 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
%60 = call i32 @strcat(ptr noundef %59, ptr noundef @.str.3)
%61 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
%62 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
%63 = call i32 @strcat(ptr noundef %61, ptr noundef %62)
%64 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %64)
%66 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
%67 = call i32 @strlen(ptr noundef %66)
%68 = add nsw i32 %67, 1
store i32 %68, ptr %8, align 4
%69 = load i32, ptr %6, align 4
%70 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
%71 = load i32, ptr %8, align 4
%72 = load i32, ptr %15, align 4
%73 = call i32 @sendto(i32 noundef %69, ptr noundef %70, i32 noundef %71, i32 noundef 0, ptr noundef %14, i32 noundef %72)
%74 = call i32 (...) @rand()
%75 = srem i32 %74, 10
store i32 %75, ptr %10, align 4
%76 = load i32, ptr %10, align 4
%77 = call i32 @sleep(i32 noundef %76)
br label %50
}
declare i32 @atoi(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @inet_addr(ptr noundef) #1
declare i32 @memset(i32 noundef, i8 noundef signext, i32 noundef) #1
declare i32 @rand(...) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @sendto(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @sleep(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/tmpk0bewoko.c'
source_filename = "/tmp/tmpk0bewoko.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"arXiv:\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"pubmed:\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"medline:\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"isi:\00", align 1
@__const.is_reference_database.scheme = private unnamed_addr constant [4 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr @.str.3], align 16
@__const.is_reference_database.schemelen = private unnamed_addr constant [4 x i32] [i32 6, i32 7, i32 8, i32 4], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_reference_database(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca [4 x ptr], align 16
%5 = alloca [4 x i32], align 16
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.is_reference_database.scheme, i64 32, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.is_reference_database.schemelen, i64 16, i1 false)
store i32 4, ptr %7, align 4
store i32 0, ptr %6, align 4
br label %8
8: ; preds = %30, %1
%9 = load i32, ptr %6, align 4
%10 = load i32, ptr %7, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %33
12: ; preds = %8
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %6, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [4 x ptr], ptr %4, i64 0, i64 %15
%17 = load ptr, ptr %16, align 8
%18 = load i32, ptr %6, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [4 x i32], ptr %5, i64 0, i64 %19
%21 = load i32, ptr %20, align 4
%22 = call i32 @strncasecmp(ptr noundef %13, ptr noundef %17, i32 noundef %21)
%23 = icmp ne i32 %22, 0
br i1 %23, label %29, label %24
24: ; preds = %12
%25 = load i32, ptr %6, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [4 x i32], ptr %5, i64 0, i64 %26
%28 = load i32, ptr %27, align 4
store i32 %28, ptr %2, align 4
br label %34
29: ; preds = %12
br label %30
30: ; preds = %29
%31 = load i32, ptr %6, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %6, align 4
br label %8, !llvm.loop !6
33: ; preds = %8
store i32 -1, ptr %2, align 4
br label %34
34: ; preds = %33, %24
%35 = load i32, ptr %2, align 4
ret i32 %35
}
; 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 @strncasecmp(ptr noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk0bewoko.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"arXiv:\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"pubmed:\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"medline:\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"isi:\00", align 1
@__const.is_reference_database.scheme = private unnamed_addr constant [4 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr @.str.3], align 16
@__const.is_reference_database.schemelen = private unnamed_addr constant [4 x i32] [i32 6, i32 7, i32 8, i32 4], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_reference_database(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca [4 x ptr], align 16
%5 = alloca [4 x i32], align 16
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.is_reference_database.scheme, i64 32, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.is_reference_database.schemelen, i64 16, i1 false)
store i32 4, ptr %7, align 4
store i32 0, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = load i32, ptr %7, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %35
.lr.ph: ; preds = %1
br label %11
11: ; preds = %.lr.ph, %29
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %6, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [4 x ptr], ptr %4, i64 0, i64 %14
%16 = load ptr, ptr %15, align 8
%17 = load i32, ptr %6, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [4 x i32], ptr %5, i64 0, i64 %18
%20 = load i32, ptr %19, align 4
%21 = call i32 @strncasecmp(ptr noundef %12, ptr noundef %16, i32 noundef %20)
%22 = icmp ne i32 %21, 0
br i1 %22, label %28, label %23
23: ; preds = %11
%24 = load i32, ptr %6, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [4 x i32], ptr %5, i64 0, i64 %25
%27 = load i32, ptr %26, align 4
store i32 %27, ptr %2, align 4
br label %36
28: ; preds = %11
br label %29
29: ; preds = %28
%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 %7, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %35
35: ; preds = %._crit_edge, %1
store i32 -1, ptr %2, align 4
br label %36
36: ; preds = %35, %23
%37 = load i32, ptr %2, align 4
ret i32 %37
}
; 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 @strncasecmp(ptr noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp2xoc4ozy.c'
source_filename = "/tmp/tmp2xoc4ozy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"Header\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"\09Signed char MIN:%d\0A\00", align 1
@SCHAR_MIN = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [21 x i8] c"\09Signed char MAX:%d\0A\00", align 1
@SCHAR_MAX = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [23 x i8] c"\09UnSigned char MAX:%u\0A\00", align 1
@UCHAR_MAX = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [22 x i8] c"\09Signed short MIN:%d\0A\00", align 1
@SHRT_MIN = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [22 x i8] c"\09Signed short MAX:%d\0A\00", align 1
@SHRT_MAX = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [24 x i8] c"\09UnSigned short MAX:%u\0A\00", align 1
@USHRT_MAX = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [20 x i8] c"\09Signed int MIN:%d\0A\00", align 1
@INT_MIN = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [20 x i8] c"\09Signed int MAX:%d\0A\00", align 1
@INT_MAX = dso_local global i32 0, align 4
@.str.9 = private unnamed_addr constant [22 x i8] c"\09UnSigned int MAX:%u\0A\00", align 1
@UINT_MAX = dso_local global i32 0, align 4
@.str.10 = private unnamed_addr constant [22 x i8] c"\09Signed long MIN:%ld\0A\00", align 1
@LONG_MIN = dso_local global i32 0, align 4
@.str.11 = private unnamed_addr constant [22 x i8] c"\09Signed long MAX:%ld\0A\00", align 1
@LONG_MAX = dso_local global i32 0, align 4
@.str.12 = private unnamed_addr constant [24 x i8] c"\09UnSigned long MAX:%lu\0A\00", align 1
@ULONG_MAX = dso_local global i32 0, align 4
@.str.13 = private unnamed_addr constant [22 x i8] c"\09Signed float MIN:%e\0A\00", align 1
@FLT_MIN = dso_local global double 0.000000e+00, align 8
@.str.14 = private unnamed_addr constant [22 x i8] c"\09Signed float MAX:%e\0A\00", align 1
@FLT_MAX = dso_local global double 0.000000e+00, align 8
@.str.15 = private unnamed_addr constant [23 x i8] c"\09Signed double MIN:%e\0A\00", align 1
@DBL_MIN = dso_local global double 0.000000e+00, align 8
@.str.16 = private unnamed_addr constant [23 x i8] c"\09Signed double MAX:%e\0A\00", align 1
@DBL_MAX = dso_local global double 0.000000e+00, align 8
@.str.17 = private unnamed_addr constant [11 x i8] c"\0AComputed\0A\00", align 1
@.str.18 = private unnamed_addr constant [24 x i8] c"\09Signed char MIN:-%.0f\0A\00", align 1
@.str.19 = private unnamed_addr constant [23 x i8] c"\09Signed char MAX:%.0f\0A\00", align 1
@.str.20 = private unnamed_addr constant [25 x i8] c"\09UnSigned char MAX:%.0f\0A\00", align 1
@.str.21 = private unnamed_addr constant [25 x i8] c"\09Signed short MIN:-%.0f\0A\00", align 1
@.str.22 = private unnamed_addr constant [24 x i8] c"\09Signed short MAX:%.0f\0A\00", align 1
@.str.23 = private unnamed_addr constant [26 x i8] c"\09UnSigned short MAX:%.0f\0A\00", align 1
@.str.24 = private unnamed_addr constant [23 x i8] c"\09Signed int MIN:-%.0f\0A\00", align 1
@.str.25 = private unnamed_addr constant [22 x i8] c"\09Signed int MAX:%.0f\0A\00", align 1
@.str.26 = private unnamed_addr constant [24 x i8] c"\09UnSigned int MAX:%.0f\0A\00", align 1
@.str.27 = private unnamed_addr constant [24 x i8] c"\09Signed long MIN:-%.0f\0A\00", align 1
@.str.28 = private unnamed_addr constant [23 x i8] c"\09Signed long MAX:%.0f\0A\00", align 1
@.str.29 = private unnamed_addr constant [25 x i8] c"\09UnSigned long MAX:%.0f\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%3 = load i32, ptr @SCHAR_MIN, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %3)
%5 = load i32, ptr @SCHAR_MAX, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %5)
%7 = load i32, ptr @UCHAR_MAX, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %7)
%9 = load i32, ptr @SHRT_MIN, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %9)
%11 = load i32, ptr @SHRT_MAX, align 4
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %11)
%13 = load i32, ptr @USHRT_MAX, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %13)
%15 = load i32, ptr @INT_MIN, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %15)
%17 = load i32, ptr @INT_MAX, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %17)
%19 = load i32, ptr @UINT_MAX, align 4
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %19)
%21 = load i32, ptr @LONG_MIN, align 4
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %21)
%23 = load i32, ptr @LONG_MAX, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %23)
%25 = load i32, ptr @ULONG_MAX, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %25)
%27 = load double, ptr @FLT_MIN, align 8
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, double noundef %27)
%29 = load double, ptr @FLT_MAX, align 8
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, double noundef %29)
%31 = load double, ptr @DBL_MIN, align 8
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, double noundef %31)
%33 = load double, ptr @DBL_MAX, align 8
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, double noundef %33)
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
%36 = call i32 @pow(i32 noundef 2, i32 noundef 7)
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, i32 noundef %36)
%38 = call i32 @pow(i32 noundef 2, i32 noundef 7)
%39 = sub nsw i32 %38, 1
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.19, i32 noundef %39)
%41 = call i32 @pow(i32 noundef 2, i32 noundef 8)
%42 = sub nsw i32 %41, 1
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.20, i32 noundef %42)
%44 = call i32 @pow(i32 noundef 2, i32 noundef 15)
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, i32 noundef %44)
%46 = call i32 @pow(i32 noundef 2, i32 noundef 15)
%47 = sub nsw i32 %46, 1
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.22, i32 noundef %47)
%49 = call i32 @pow(i32 noundef 2, i32 noundef 16)
%50 = sub nsw i32 %49, 1
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.23, i32 noundef %50)
%52 = call i32 @pow(i32 noundef 2, i32 noundef 31)
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.24, i32 noundef %52)
%54 = call i32 @pow(i32 noundef 2, i32 noundef 31)
%55 = sub nsw i32 %54, 1
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.25, i32 noundef %55)
%57 = call i32 @pow(i32 noundef 2, i32 noundef 32)
%58 = sub nsw i32 %57, 1
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.26, i32 noundef %58)
%60 = call i32 @pow(i32 noundef 2, i32 noundef 63)
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.27, i32 noundef %60)
%62 = call i32 @pow(i32 noundef 2, i32 noundef 63)
%63 = sub nsw i32 %62, 1
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.28, i32 noundef %63)
%65 = call i32 @pow(i32 noundef 2, i32 noundef 64)
%66 = sub nsw i32 %65, 1
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.29, i32 noundef %66)
%68 = call i32 @pow(i32 noundef 2, i32 noundef -126)
%69 = call i32 @pow(i32 noundef 2, i32 noundef -24)
%70 = sub nsw i32 1, %69
%71 = mul nsw i32 %68, %70
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %71)
%73 = call i32 @pow(i32 noundef 2, i32 noundef 128)
%74 = call i32 @pow(i32 noundef 2, i32 noundef -24)
%75 = sub nsw i32 1, %74
%76 = mul nsw i32 %73, %75
%77 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %76)
%78 = call i32 @pow(i32 noundef 2, i32 noundef -1022)
%79 = call i32 @pow(i32 noundef 2, i32 noundef -54)
%80 = sub nsw i32 1, %79
%81 = mul nsw i32 %78, %80
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef %81)
%83 = call i32 @pow(i32 noundef 2, i32 noundef 1024)
%84 = call i32 @pow(i32 noundef 2, i32 noundef -54)
%85 = sub nsw i32 1, %84
%86 = mul nsw i32 %83, %85
%87 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i32 noundef %86)
%88 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %88
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @pow(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2xoc4ozy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"Header\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"\09Signed char MIN:%d\0A\00", align 1
@SCHAR_MIN = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [21 x i8] c"\09Signed char MAX:%d\0A\00", align 1
@SCHAR_MAX = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [23 x i8] c"\09UnSigned char MAX:%u\0A\00", align 1
@UCHAR_MAX = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [22 x i8] c"\09Signed short MIN:%d\0A\00", align 1
@SHRT_MIN = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [22 x i8] c"\09Signed short MAX:%d\0A\00", align 1
@SHRT_MAX = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [24 x i8] c"\09UnSigned short MAX:%u\0A\00", align 1
@USHRT_MAX = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [20 x i8] c"\09Signed int MIN:%d\0A\00", align 1
@INT_MIN = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [20 x i8] c"\09Signed int MAX:%d\0A\00", align 1
@INT_MAX = dso_local global i32 0, align 4
@.str.9 = private unnamed_addr constant [22 x i8] c"\09UnSigned int MAX:%u\0A\00", align 1
@UINT_MAX = dso_local global i32 0, align 4
@.str.10 = private unnamed_addr constant [22 x i8] c"\09Signed long MIN:%ld\0A\00", align 1
@LONG_MIN = dso_local global i32 0, align 4
@.str.11 = private unnamed_addr constant [22 x i8] c"\09Signed long MAX:%ld\0A\00", align 1
@LONG_MAX = dso_local global i32 0, align 4
@.str.12 = private unnamed_addr constant [24 x i8] c"\09UnSigned long MAX:%lu\0A\00", align 1
@ULONG_MAX = dso_local global i32 0, align 4
@.str.13 = private unnamed_addr constant [22 x i8] c"\09Signed float MIN:%e\0A\00", align 1
@FLT_MIN = dso_local global double 0.000000e+00, align 8
@.str.14 = private unnamed_addr constant [22 x i8] c"\09Signed float MAX:%e\0A\00", align 1
@FLT_MAX = dso_local global double 0.000000e+00, align 8
@.str.15 = private unnamed_addr constant [23 x i8] c"\09Signed double MIN:%e\0A\00", align 1
@DBL_MIN = dso_local global double 0.000000e+00, align 8
@.str.16 = private unnamed_addr constant [23 x i8] c"\09Signed double MAX:%e\0A\00", align 1
@DBL_MAX = dso_local global double 0.000000e+00, align 8
@.str.17 = private unnamed_addr constant [11 x i8] c"\0AComputed\0A\00", align 1
@.str.18 = private unnamed_addr constant [24 x i8] c"\09Signed char MIN:-%.0f\0A\00", align 1
@.str.19 = private unnamed_addr constant [23 x i8] c"\09Signed char MAX:%.0f\0A\00", align 1
@.str.20 = private unnamed_addr constant [25 x i8] c"\09UnSigned char MAX:%.0f\0A\00", align 1
@.str.21 = private unnamed_addr constant [25 x i8] c"\09Signed short MIN:-%.0f\0A\00", align 1
@.str.22 = private unnamed_addr constant [24 x i8] c"\09Signed short MAX:%.0f\0A\00", align 1
@.str.23 = private unnamed_addr constant [26 x i8] c"\09UnSigned short MAX:%.0f\0A\00", align 1
@.str.24 = private unnamed_addr constant [23 x i8] c"\09Signed int MIN:-%.0f\0A\00", align 1
@.str.25 = private unnamed_addr constant [22 x i8] c"\09Signed int MAX:%.0f\0A\00", align 1
@.str.26 = private unnamed_addr constant [24 x i8] c"\09UnSigned int MAX:%.0f\0A\00", align 1
@.str.27 = private unnamed_addr constant [24 x i8] c"\09Signed long MIN:-%.0f\0A\00", align 1
@.str.28 = private unnamed_addr constant [23 x i8] c"\09Signed long MAX:%.0f\0A\00", align 1
@.str.29 = private unnamed_addr constant [25 x i8] c"\09UnSigned long MAX:%.0f\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%3 = load i32, ptr @SCHAR_MIN, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %3)
%5 = load i32, ptr @SCHAR_MAX, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %5)
%7 = load i32, ptr @UCHAR_MAX, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %7)
%9 = load i32, ptr @SHRT_MIN, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %9)
%11 = load i32, ptr @SHRT_MAX, align 4
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %11)
%13 = load i32, ptr @USHRT_MAX, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %13)
%15 = load i32, ptr @INT_MIN, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %15)
%17 = load i32, ptr @INT_MAX, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %17)
%19 = load i32, ptr @UINT_MAX, align 4
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %19)
%21 = load i32, ptr @LONG_MIN, align 4
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %21)
%23 = load i32, ptr @LONG_MAX, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %23)
%25 = load i32, ptr @ULONG_MAX, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %25)
%27 = load double, ptr @FLT_MIN, align 8
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, double noundef %27)
%29 = load double, ptr @FLT_MAX, align 8
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, double noundef %29)
%31 = load double, ptr @DBL_MIN, align 8
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, double noundef %31)
%33 = load double, ptr @DBL_MAX, align 8
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, double noundef %33)
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
%36 = call i32 @pow(i32 noundef 2, i32 noundef 7)
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, i32 noundef %36)
%38 = call i32 @pow(i32 noundef 2, i32 noundef 7)
%39 = sub nsw i32 %38, 1
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.19, i32 noundef %39)
%41 = call i32 @pow(i32 noundef 2, i32 noundef 8)
%42 = sub nsw i32 %41, 1
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.20, i32 noundef %42)
%44 = call i32 @pow(i32 noundef 2, i32 noundef 15)
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, i32 noundef %44)
%46 = call i32 @pow(i32 noundef 2, i32 noundef 15)
%47 = sub nsw i32 %46, 1
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.22, i32 noundef %47)
%49 = call i32 @pow(i32 noundef 2, i32 noundef 16)
%50 = sub nsw i32 %49, 1
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.23, i32 noundef %50)
%52 = call i32 @pow(i32 noundef 2, i32 noundef 31)
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.24, i32 noundef %52)
%54 = call i32 @pow(i32 noundef 2, i32 noundef 31)
%55 = sub nsw i32 %54, 1
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.25, i32 noundef %55)
%57 = call i32 @pow(i32 noundef 2, i32 noundef 32)
%58 = sub nsw i32 %57, 1
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.26, i32 noundef %58)
%60 = call i32 @pow(i32 noundef 2, i32 noundef 63)
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.27, i32 noundef %60)
%62 = call i32 @pow(i32 noundef 2, i32 noundef 63)
%63 = sub nsw i32 %62, 1
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.28, i32 noundef %63)
%65 = call i32 @pow(i32 noundef 2, i32 noundef 64)
%66 = sub nsw i32 %65, 1
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.29, i32 noundef %66)
%68 = call i32 @pow(i32 noundef 2, i32 noundef -126)
%69 = call i32 @pow(i32 noundef 2, i32 noundef -24)
%70 = sub nsw i32 1, %69
%71 = mul nsw i32 %68, %70
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %71)
%73 = call i32 @pow(i32 noundef 2, i32 noundef 128)
%74 = call i32 @pow(i32 noundef 2, i32 noundef -24)
%75 = sub nsw i32 1, %74
%76 = mul nsw i32 %73, %75
%77 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %76)
%78 = call i32 @pow(i32 noundef 2, i32 noundef -1022)
%79 = call i32 @pow(i32 noundef 2, i32 noundef -54)
%80 = sub nsw i32 1, %79
%81 = mul nsw i32 %78, %80
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef %81)
%83 = call i32 @pow(i32 noundef 2, i32 noundef 1024)
%84 = call i32 @pow(i32 noundef 2, i32 noundef -54)
%85 = sub nsw i32 1, %84
%86 = mul nsw i32 %83, %85
%87 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i32 noundef %86)
%88 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %88
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @pow(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsnbz9o9t.c'
source_filename = "/tmp/tmpsnbz9o9t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pthread_attr_destroy(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsnbz9o9t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pthread_attr_destroy(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
ret i32 0
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp48gtt4u8.c'
source_filename = "/tmp/tmp48gtt4u8.c"
target datalayout = "e-m:e-p270: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/tmp48gtt4u8.c"
target datalayout = "e-m:e-p270: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/tmp9qq4v2qr.c'
source_filename = "/tmp/tmp9qq4v2qr.c"
target datalayout = "e-m:e-p270: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
@.str = private unnamed_addr constant [4 x i8] c"%d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %3
3: ; preds = %12, %0
%4 = load i32, ptr %2, align 4
%5 = call i32 @pow(i32 noundef 10, i32 noundef 12)
%6 = icmp ult i32 %4, %5
br i1 %6, label %7, label %15
7: ; preds = %3
%8 = load i32, ptr @stdout, align 4
%9 = call i32 (...) @rand()
%10 = srem i32 %9, 10000
%11 = call i32 @fprintf(i32 noundef %8, ptr noundef @.str, i32 noundef %10)
br label %12
12: ; preds = %7
%13 = load i32, ptr %2, align 4
%14 = add i32 %13, 1
store i32 %14, ptr %2, align 4
br label %3, !llvm.loop !6
15: ; preds = %3
ret i32 0
}
declare i32 @pow(i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9qq4v2qr.c"
target datalayout = "e-m:e-p270: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
@.str = private unnamed_addr constant [4 x i8] c"%d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @pow(i32 noundef 10, i32 noundef 12)
%5 = icmp ult i32 %3, %4
br i1 %5, label %.lr.ph, label %17
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %11
%7 = load i32, ptr @stdout, align 4
%8 = call i32 (...) @rand()
%9 = srem i32 %8, 10000
%10 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str, i32 noundef %9)
br label %11
11: ; preds = %6
%12 = load i32, ptr %2, align 4
%13 = add i32 %12, 1
store i32 %13, ptr %2, align 4
%14 = load i32, ptr %2, align 4
%15 = call i32 @pow(i32 noundef 10, i32 noundef 12)
%16 = icmp ult i32 %14, %15
br i1 %16, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %17
17: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @pow(i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpanr6w85o.c'
source_filename = "/tmp/tmpanr6w85o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dupstr(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @strlen(ptr noundef %5)
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, ptr %4, i64 %7
%9 = call ptr @substr(ptr noundef %3, ptr noundef %8)
ret ptr %9
}
declare ptr @substr(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpanr6w85o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dupstr(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @strlen(ptr noundef %5)
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, ptr %4, i64 %7
%9 = call ptr @substr(ptr noundef %3, ptr noundef %8)
ret ptr %9
}
declare ptr @substr(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpns99rn4y.c'
source_filename = "/tmp/tmpns99rn4y.c"
target datalayout = "e-m:e-p270: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/tmpns99rn4y.c"
target datalayout = "e-m:e-p270: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/tmpy0j0093i.c'
source_filename = "/tmp/tmpy0j0093i.c"
target datalayout = "e-m:e-p270: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.serial_struct = type { i64, i32 }
@TIOCGSERIAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@ASYNC_LOW_LATENCY = dso_local global i32 0, align 4
@TIOCSSERIAL = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @osmo_serial_clear_custom_baudrate(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca %struct.serial_struct, align 8
store i32 %0, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = load i32, ptr @TIOCGSERIAL, align 4
%8 = call i32 @ioctl(i32 noundef %6, i32 noundef %7, ptr noundef %5)
store i32 %8, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %16
11: ; preds = %1
br label %12
12: ; preds = %11
br label %13
13: ; preds = %12
%14 = load i32, ptr @errno, align 4
%15 = sub nsw i32 0, %14
store i32 %15, ptr %2, align 4
br label %31
16: ; preds = %1
%17 = load i32, ptr @ASYNC_LOW_LATENCY, align 4
%18 = getelementptr inbounds %struct.serial_struct, ptr %5, i32 0, i32 1
store i32 %17, ptr %18, align 8
%19 = getelementptr inbounds %struct.serial_struct, ptr %5, i32 0, i32 0
store i64 0, ptr %19, align 8
%20 = load i32, ptr %3, align 4
%21 = load i32, ptr @TIOCSSERIAL, align 4
%22 = call i32 @ioctl(i32 noundef %20, i32 noundef %21, ptr noundef %5)
store i32 %22, ptr %4, align 4
%23 = load i32, ptr %4, align 4
%24 = icmp slt i32 %23, 0
br i1 %24, label %25, label %30
25: ; preds = %16
br label %26
26: ; preds = %25
br label %27
27: ; preds = %26
%28 = load i32, ptr @errno, align 4
%29 = sub nsw i32 0, %28
store i32 %29, ptr %2, align 4
br label %31
30: ; preds = %16
store i32 0, ptr %2, align 4
br label %31
31: ; preds = %30, %27, %13
%32 = load i32, ptr %2, align 4
ret i32 %32
}
declare i32 @ioctl(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/tmpy0j0093i.c"
target datalayout = "e-m:e-p270: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.serial_struct = type { i64, i32 }
@TIOCGSERIAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@ASYNC_LOW_LATENCY = dso_local global i32 0, align 4
@TIOCSSERIAL = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @osmo_serial_clear_custom_baudrate(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca %struct.serial_struct, align 8
store i32 %0, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = load i32, ptr @TIOCGSERIAL, align 4
%8 = call i32 @ioctl(i32 noundef %6, i32 noundef %7, ptr noundef %5)
store i32 %8, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %16
11: ; preds = %1
br label %12
12: ; preds = %11
br label %13
13: ; preds = %12
%14 = load i32, ptr @errno, align 4
%15 = sub nsw i32 0, %14
store i32 %15, ptr %2, align 4
br label %31
16: ; preds = %1
%17 = load i32, ptr @ASYNC_LOW_LATENCY, align 4
%18 = getelementptr inbounds %struct.serial_struct, ptr %5, i32 0, i32 1
store i32 %17, ptr %18, align 8
%19 = getelementptr inbounds %struct.serial_struct, ptr %5, i32 0, i32 0
store i64 0, ptr %19, align 8
%20 = load i32, ptr %3, align 4
%21 = load i32, ptr @TIOCSSERIAL, align 4
%22 = call i32 @ioctl(i32 noundef %20, i32 noundef %21, ptr noundef %5)
store i32 %22, ptr %4, align 4
%23 = load i32, ptr %4, align 4
%24 = icmp slt i32 %23, 0
br i1 %24, label %25, label %30
25: ; preds = %16
br label %26
26: ; preds = %25
br label %27
27: ; preds = %26
%28 = load i32, ptr @errno, align 4
%29 = sub nsw i32 0, %28
store i32 %29, ptr %2, align 4
br label %31
30: ; preds = %16
store i32 0, ptr %2, align 4
br label %31
31: ; preds = %30, %27, %13
%32 = load i32, ptr %2, align 4
ret i32 %32
}
declare i32 @ioctl(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/tmp_ayyw2fx.c'
source_filename = "/tmp/tmp_ayyw2fx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@O_RDONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = load i32, ptr @O_RDONLY, align 4
%4 = call i32 @openat(i32 noundef 0, ptr noundef @.str, i32 noundef %3)
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %5, 0
%7 = zext i1 %6 to i32
ret i32 %7
}
declare i32 @openat(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/tmp_ayyw2fx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@O_RDONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = load i32, ptr @O_RDONLY, align 4
%4 = call i32 @openat(i32 noundef 0, ptr noundef @.str, i32 noundef %3)
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %5, 0
%7 = zext i1 %6 to i32
ret i32 %7
}
declare i32 @openat(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/tmpsziki4ym.c'
source_filename = "/tmp/tmpsziki4ym.c"
target datalayout = "e-m:e-p270: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/tmpsziki4ym.c"
target datalayout = "e-m:e-p270: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/tmpzr5y4ho7.c'
source_filename = "/tmp/tmpzr5y4ho7.c"
target datalayout = "e-m:e-p270: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.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @myInit, ptr null }]
; Function Attrs: noinline nounwind sspstrong uwtable
define internal void @myInit() #0 {
%1 = call i32 (...) @setU2()
ret void
}
declare i32 @setU2(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzr5y4ho7.c"
target datalayout = "e-m:e-p270: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.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @myInit, ptr null }]
; Function Attrs: noinline nounwind sspstrong uwtable
define internal void @myInit() #0 {
%1 = call i32 (...) @setU2()
ret void
}
declare i32 @setU2(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpuo2r6s2_.c'
source_filename = "/tmp/tmpuo2r6s2_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i64 @time(ptr noundef null)
%7 = trunc i64 %6 to i32
%8 = call i32 @srand(i32 noundef %7)
%9 = load i32, ptr %4, align 4
%10 = load ptr, ptr %5, align 8
%11 = call i32 @setupLibraries(i32 noundef %9, ptr noundef %10)
%12 = call i32 (...) @runGame()
%13 = call i32 (...) @glfwTerminate()
ret i32 0
}
declare i32 @srand(i32 noundef) #1
declare i64 @time(ptr noundef) #1
declare i32 @setupLibraries(i32 noundef, ptr noundef) #1
declare i32 @runGame(...) #1
declare i32 @glfwTerminate(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuo2r6s2_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i64 @time(ptr noundef null)
%7 = trunc i64 %6 to i32
%8 = call i32 @srand(i32 noundef %7)
%9 = load i32, ptr %4, align 4
%10 = load ptr, ptr %5, align 8
%11 = call i32 @setupLibraries(i32 noundef %9, ptr noundef %10)
%12 = call i32 (...) @runGame()
%13 = call i32 (...) @glfwTerminate()
ret i32 0
}
declare i32 @srand(i32 noundef) #1
declare i64 @time(ptr noundef) #1
declare i32 @setupLibraries(i32 noundef, ptr noundef) #1
declare i32 @runGame(...) #1
declare i32 @glfwTerminate(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpq1lkphmi.c'
source_filename = "/tmp/tmpq1lkphmi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @wcc_Cdgesd2d(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) #0 {
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 %0, ptr %8, align 4
store i32 %1, ptr %9, align 4
store i32 %2, ptr %10, align 4
store ptr %3, ptr %11, align 8
store i32 %4, ptr %12, align 4
store i32 %5, ptr %13, align 4
store i32 %6, ptr %14, align 4
%15 = load i32, ptr %8, align 4
%16 = load i32, ptr %9, align 4
%17 = load i32, ptr %10, align 4
%18 = load ptr, ptr %11, align 8
%19 = load i32, ptr %12, align 4
%20 = load i32, ptr %13, align 4
%21 = load i32, ptr %14, align 4
%22 = call i32 @Cdgesd2d(i32 noundef %15, i32 noundef %16, i32 noundef %17, ptr noundef %18, i32 noundef %19, i32 noundef %20, i32 noundef %21)
ret void
}
declare i32 @Cdgesd2d(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq1lkphmi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @wcc_Cdgesd2d(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) #0 {
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 %0, ptr %8, align 4
store i32 %1, ptr %9, align 4
store i32 %2, ptr %10, align 4
store ptr %3, ptr %11, align 8
store i32 %4, ptr %12, align 4
store i32 %5, ptr %13, align 4
store i32 %6, ptr %14, align 4
%15 = load i32, ptr %8, align 4
%16 = load i32, ptr %9, align 4
%17 = load i32, ptr %10, align 4
%18 = load ptr, ptr %11, align 8
%19 = load i32, ptr %12, align 4
%20 = load i32, ptr %13, align 4
%21 = load i32, ptr %14, align 4
%22 = call i32 @Cdgesd2d(i32 noundef %15, i32 noundef %16, i32 noundef %17, ptr noundef %18, i32 noundef %19, i32 noundef %20, i32 noundef %21)
ret void
}
declare i32 @Cdgesd2d(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg485r2on.c'
source_filename = "/tmp/tmpg485r2on.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bs_conv_14be_8(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 i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%14 = load i32, ptr %5, align 4
%15 = sdiv i32 %14, 8
store i32 %15, ptr %7, align 4
%16 = load i32, ptr %5, align 4
%17 = srem i32 %16, 8
store i32 %17, ptr %8, align 4
%18 = load ptr, ptr %4, align 8
store ptr %18, ptr %9, align 8
%19 = load ptr, ptr %6, align 8
store ptr %19, ptr %10, align 8
%20 = load i32, ptr %7, align 4
%21 = mul nsw i32 %20, 7
%22 = load i32, ptr %8, align 4
%23 = add nsw i32 %21, %22
store i32 %23, ptr %5, align 4
br label %24
24: ; preds = %28, %3
%25 = load i32, ptr %7, align 4
%26 = add nsw i32 %25, -1
store i32 %26, ptr %7, align 4
%27 = icmp ne i32 %25, 0
br i1 %27, label %28, label %65
28: ; preds = %24
%29 = load ptr, ptr %9, align 8
%30 = getelementptr inbounds i8, ptr %29, i64 0
%31 = load i32, ptr %30, align 4
%32 = call i32 @spdif_swab_s32(i32 noundef %31)
store i32 %32, ptr %11, align 4
%33 = load ptr, ptr %9, align 8
%34 = getelementptr inbounds i8, ptr %33, i64 4
%35 = load i32, ptr %34, align 4
%36 = call i32 @spdif_swab_s32(i32 noundef %35)
store i32 %36, ptr %12, align 4
%37 = load i32, ptr %12, align 4
%38 = and i32 %37, 1073676288
%39 = lshr i32 %38, 2
%40 = load i32, ptr %12, align 4
%41 = and i32 %40, 16383
%42 = or i32 %39, %41
%43 = load i32, ptr %11, align 4
%44 = shl i32 %43, 28
%45 = or i32 %42, %44
store i32 %45, ptr %12, align 4
%46 = load i32, ptr %11, align 4
%47 = and i32 %46, 1073676288
%48 = shl i32 %47, 2
%49 = load i32, ptr %11, align 4
%50 = and i32 %49, 16383
%51 = shl i32 %50, 4
%52 = or i32 %48, %51
store i32 %52, ptr %11, align 4
%53 = load i32, ptr %11, align 4
%54 = call i32 @spdif_swab_s32(i32 noundef %53)
%55 = load ptr, ptr %10, align 8
%56 = getelementptr inbounds i8, ptr %55, i64 0
store i32 %54, ptr %56, align 4
%57 = load i32, ptr %12, align 4
%58 = call i32 @spdif_swab_s32(i32 noundef %57)
%59 = load ptr, ptr %10, align 8
%60 = getelementptr inbounds i8, ptr %59, i64 3
store i32 %58, ptr %60, align 4
%61 = load ptr, ptr %9, align 8
%62 = getelementptr inbounds i8, ptr %61, i64 8
store ptr %62, ptr %9, align 8
%63 = load ptr, ptr %10, align 8
%64 = getelementptr inbounds i8, ptr %63, i64 7
store ptr %64, ptr %10, align 8
br label %24, !llvm.loop !6
65: ; preds = %24
%66 = load i32, ptr %8, align 4
%67 = icmp ne i32 %66, 0
br i1 %67, label %68, label %131
68: ; preds = %65
store i32 0, ptr %13, align 4
br label %69
69: ; preds = %83, %68
%70 = load i32, ptr %13, align 4
%71 = load i32, ptr %8, align 4
%72 = icmp ult i32 %70, %71
br i1 %72, label %73, label %86
73: ; preds = %69
%74 = load ptr, ptr %9, align 8
%75 = load i32, ptr %13, align 4
%76 = zext i32 %75 to i64
%77 = getelementptr inbounds i8, ptr %74, i64 %76
%78 = load i8, ptr %77, align 1
%79 = load ptr, ptr %10, align 8
%80 = load i32, ptr %13, align 4
%81 = zext i32 %80 to i64
%82 = getelementptr inbounds i8, ptr %79, i64 %81
store i8 %78, ptr %82, align 1
br label %83
83: ; preds = %73
%84 = load i32, ptr %13, align 4
%85 = add i32 %84, 1
store i32 %85, ptr %13, align 4
br label %69, !llvm.loop !8
86: ; preds = %69
br label %87
87: ; preds = %95, %86
%88 = load i32, ptr %13, align 4
%89 = icmp ult i32 %88, 8
br i1 %89, label %90, label %98
90: ; preds = %87
%91 = load ptr, ptr %10, align 8
%92 = load i32, ptr %13, align 4
%93 = zext i32 %92 to i64
%94 = getelementptr inbounds i8, ptr %91, i64 %93
store i8 0, ptr %94, align 1
br label %95
95: ; preds = %90
%96 = load i32, ptr %13, align 4
%97 = add i32 %96, 1
store i32 %97, ptr %13, align 4
br label %87, !llvm.loop !9
98: ; preds = %87
%99 = load ptr, ptr %10, align 8
%100 = getelementptr inbounds i8, ptr %99, i64 0
%101 = load i32, ptr %100, align 4
%102 = call i32 @spdif_swab_s32(i32 noundef %101)
store i32 %102, ptr %11, align 4
%103 = load ptr, ptr %10, align 8
%104 = getelementptr inbounds i8, ptr %103, i64 4
%105 = load i32, ptr %104, align 4
%106 = call i32 @spdif_swab_s32(i32 noundef %105)
store i32 %106, ptr %12, align 4
%107 = load i32, ptr %12, align 4
%108 = and i32 %107, 1073676288
%109 = lshr i32 %108, 2
%110 = load i32, ptr %12, align 4
%111 = and i32 %110, 16383
%112 = or i32 %109, %111
%113 = load i32, ptr %11, align 4
%114 = shl i32 %113, 28
%115 = or i32 %112, %114
store i32 %115, ptr %12, align 4
%116 = load i32, ptr %11, align 4
%117 = and i32 %116, 1073676288
%118 = shl i32 %117, 2
%119 = load i32, ptr %11, align 4
%120 = and i32 %119, 16383
%121 = shl i32 %120, 4
%122 = or i32 %118, %121
store i32 %122, ptr %11, align 4
%123 = load i32, ptr %11, align 4
%124 = call i32 @spdif_swab_s32(i32 noundef %123)
%125 = load ptr, ptr %10, align 8
%126 = getelementptr inbounds i8, ptr %125, i64 0
store i32 %124, ptr %126, align 4
%127 = load i32, ptr %12, align 4
%128 = call i32 @spdif_swab_s32(i32 noundef %127)
%129 = load ptr, ptr %10, align 8
%130 = getelementptr inbounds i8, ptr %129, i64 3
store i32 %128, ptr %130, align 4
br label %131
131: ; preds = %98, %65
%132 = load i32, ptr %5, align 4
ret i32 %132
}
declare i32 @spdif_swab_s32(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/tmpg485r2on.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bs_conv_14be_8(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 i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%14 = load i32, ptr %5, align 4
%15 = sdiv i32 %14, 8
store i32 %15, ptr %7, align 4
%16 = load i32, ptr %5, align 4
%17 = srem i32 %16, 8
store i32 %17, ptr %8, align 4
%18 = load ptr, ptr %4, align 8
store ptr %18, ptr %9, align 8
%19 = load ptr, ptr %6, align 8
store ptr %19, ptr %10, align 8
%20 = load i32, ptr %7, align 4
%21 = mul nsw i32 %20, 7
%22 = load i32, ptr %8, align 4
%23 = add nsw i32 %21, %22
store i32 %23, ptr %5, align 4
%24 = load i32, ptr %7, align 4
%25 = add nsw i32 %24, -1
store i32 %25, ptr %7, align 4
%26 = icmp ne i32 %24, 0
br i1 %26, label %.lr.ph, label %67
.lr.ph: ; preds = %3
br label %27
27: ; preds = %.lr.ph, %27
%28 = load ptr, ptr %9, align 8
%29 = getelementptr inbounds i8, ptr %28, i64 0
%30 = load i32, ptr %29, align 4
%31 = call i32 @spdif_swab_s32(i32 noundef %30)
store i32 %31, ptr %11, align 4
%32 = load ptr, ptr %9, align 8
%33 = getelementptr inbounds i8, ptr %32, i64 4
%34 = load i32, ptr %33, align 4
%35 = call i32 @spdif_swab_s32(i32 noundef %34)
store i32 %35, ptr %12, align 4
%36 = load i32, ptr %12, align 4
%37 = and i32 %36, 1073676288
%38 = lshr i32 %37, 2
%39 = load i32, ptr %12, align 4
%40 = and i32 %39, 16383
%41 = or i32 %38, %40
%42 = load i32, ptr %11, align 4
%43 = shl i32 %42, 28
%44 = or i32 %41, %43
store i32 %44, ptr %12, align 4
%45 = load i32, ptr %11, align 4
%46 = and i32 %45, 1073676288
%47 = shl i32 %46, 2
%48 = load i32, ptr %11, align 4
%49 = and i32 %48, 16383
%50 = shl i32 %49, 4
%51 = or i32 %47, %50
store i32 %51, ptr %11, align 4
%52 = load i32, ptr %11, align 4
%53 = call i32 @spdif_swab_s32(i32 noundef %52)
%54 = load ptr, ptr %10, align 8
%55 = getelementptr inbounds i8, ptr %54, i64 0
store i32 %53, ptr %55, align 4
%56 = load i32, ptr %12, align 4
%57 = call i32 @spdif_swab_s32(i32 noundef %56)
%58 = load ptr, ptr %10, align 8
%59 = getelementptr inbounds i8, ptr %58, i64 3
store i32 %57, ptr %59, align 4
%60 = load ptr, ptr %9, align 8
%61 = getelementptr inbounds i8, ptr %60, i64 8
store ptr %61, ptr %9, align 8
%62 = load ptr, ptr %10, align 8
%63 = getelementptr inbounds i8, ptr %62, i64 7
store ptr %63, ptr %10, align 8
%64 = load i32, ptr %7, align 4
%65 = add nsw i32 %64, -1
store i32 %65, ptr %7, align 4
%66 = icmp ne i32 %64, 0
br i1 %66, label %27, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %67
67: ; preds = %._crit_edge, %3
%68 = load i32, ptr %8, align 4
%69 = icmp ne i32 %68, 0
br i1 %69, label %70, label %136
70: ; preds = %67
store i32 0, ptr %13, align 4
%71 = load i32, ptr %13, align 4
%72 = load i32, ptr %8, align 4
%73 = icmp ult i32 %71, %72
br i1 %73, label %.lr.ph2, label %90
.lr.ph2: ; preds = %70
br label %74
74: ; preds = %.lr.ph2, %84
%75 = load ptr, ptr %9, align 8
%76 = load i32, ptr %13, align 4
%77 = zext i32 %76 to i64
%78 = getelementptr inbounds i8, ptr %75, i64 %77
%79 = load i8, ptr %78, align 1
%80 = load ptr, ptr %10, align 8
%81 = load i32, ptr %13, align 4
%82 = zext i32 %81 to i64
%83 = getelementptr inbounds i8, ptr %80, i64 %82
store i8 %79, ptr %83, align 1
br label %84
84: ; preds = %74
%85 = load i32, ptr %13, align 4
%86 = add i32 %85, 1
store i32 %86, ptr %13, align 4
%87 = load i32, ptr %13, align 4
%88 = load i32, ptr %8, align 4
%89 = icmp ult i32 %87, %88
br i1 %89, label %74, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %84
br label %90
90: ; preds = %._crit_edge3, %70
%91 = load i32, ptr %13, align 4
%92 = icmp ult i32 %91, 8
br i1 %92, label %.lr.ph5, label %103
.lr.ph5: ; preds = %90
br label %93
93: ; preds = %.lr.ph5, %98
%94 = load ptr, ptr %10, align 8
%95 = load i32, ptr %13, align 4
%96 = zext i32 %95 to i64
%97 = getelementptr inbounds i8, ptr %94, i64 %96
store i8 0, ptr %97, align 1
br label %98
98: ; preds = %93
%99 = load i32, ptr %13, align 4
%100 = add i32 %99, 1
store i32 %100, ptr %13, align 4
%101 = load i32, ptr %13, align 4
%102 = icmp ult i32 %101, 8
br i1 %102, label %93, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %98
br label %103
103: ; preds = %._crit_edge6, %90
%104 = load ptr, ptr %10, align 8
%105 = getelementptr inbounds i8, ptr %104, i64 0
%106 = load i32, ptr %105, align 4
%107 = call i32 @spdif_swab_s32(i32 noundef %106)
store i32 %107, ptr %11, align 4
%108 = load ptr, ptr %10, align 8
%109 = getelementptr inbounds i8, ptr %108, i64 4
%110 = load i32, ptr %109, align 4
%111 = call i32 @spdif_swab_s32(i32 noundef %110)
store i32 %111, ptr %12, align 4
%112 = load i32, ptr %12, align 4
%113 = and i32 %112, 1073676288
%114 = lshr i32 %113, 2
%115 = load i32, ptr %12, align 4
%116 = and i32 %115, 16383
%117 = or i32 %114, %116
%118 = load i32, ptr %11, align 4
%119 = shl i32 %118, 28
%120 = or i32 %117, %119
store i32 %120, ptr %12, align 4
%121 = load i32, ptr %11, align 4
%122 = and i32 %121, 1073676288
%123 = shl i32 %122, 2
%124 = load i32, ptr %11, align 4
%125 = and i32 %124, 16383
%126 = shl i32 %125, 4
%127 = or i32 %123, %126
store i32 %127, ptr %11, align 4
%128 = load i32, ptr %11, align 4
%129 = call i32 @spdif_swab_s32(i32 noundef %128)
%130 = load ptr, ptr %10, align 8
%131 = getelementptr inbounds i8, ptr %130, i64 0
store i32 %129, ptr %131, align 4
%132 = load i32, ptr %12, align 4
%133 = call i32 @spdif_swab_s32(i32 noundef %132)
%134 = load ptr, ptr %10, align 8
%135 = getelementptr inbounds i8, ptr %134, i64 3
store i32 %133, ptr %135, align 4
br label %136
136: ; preds = %103, %67
%137 = load i32, ptr %5, align 4
ret i32 %137
}
declare i32 @spdif_swab_s32(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/tmp3f24f8eb.c'
source_filename = "/tmp/tmp3f24f8eb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"First OSS Code\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"Third OSS Code\00", align 1
@.str.2 = private unnamed_addr constant [37 x i8] c"\EB\A7\88\EC\8A\A4\ED\84\B0 \EB\B8\8C\EB\A0\8C\EC\B9\98\EC\97\90 \EC\BD\94\EB\93\9C \EC\B6\94\EA\B0\80\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"\EC\8B\A4\EC\8A\B5\EC\8B\A4\EC\8A\B5\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"\EC\8B\A4\EC\8A\B5!\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"!!\00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"Test \EB\B8\8C\EB\A0\8C\EC\B9\98\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
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @printf(ptr noundef @.str.1)
%5 = call i32 @printf(ptr noundef @.str.2)
%6 = call i32 @printf(ptr noundef @.str.3)
%7 = call i32 @printf(ptr noundef @.str.4)
%8 = call i32 @printf(ptr noundef @.str.5)
store i32 0, ptr %2, align 4
br label %9
9: ; preds = %14, %0
%10 = load i32, ptr %2, align 4
%11 = icmp slt i32 %10, 10
br i1 %11, label %12, label %17
12: ; preds = %9
%13 = call i32 @printf(ptr noundef @.str.6)
br label %14
14: ; preds = %12
%15 = load i32, ptr %2, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %2, align 4
br label %9, !llvm.loop !6
17: ; preds = %9
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3f24f8eb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"First OSS Code\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"Third OSS Code\00", align 1
@.str.2 = private unnamed_addr constant [37 x i8] c"\EB\A7\88\EC\8A\A4\ED\84\B0 \EB\B8\8C\EB\A0\8C\EC\B9\98\EC\97\90 \EC\BD\94\EB\93\9C \EC\B6\94\EA\B0\80\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"\EC\8B\A4\EC\8A\B5\EC\8B\A4\EC\8A\B5\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"\EC\8B\A4\EC\8A\B5!\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"!!\00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"Test \EB\B8\8C\EB\A0\8C\EC\B9\98\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
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @printf(ptr noundef @.str.1)
%5 = call i32 @printf(ptr noundef @.str.2)
%6 = call i32 @printf(ptr noundef @.str.3)
%7 = call i32 @printf(ptr noundef @.str.4)
%8 = call i32 @printf(ptr noundef @.str.5)
store i32 0, ptr %2, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp slt i32 %9, 10
br i1 %10, label %.lr.ph, label %18
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %13
%12 = call i32 @printf(ptr noundef @.str.6)
br label %13
13: ; preds = %11
%14 = load i32, ptr %2, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %2, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp slt i32 %16, 10
br i1 %17, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %18
18: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp645qn19p.c'
source_filename = "/tmp/tmp645qn19p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isalnum.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isalnum should be 0 for 0x06\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalnum_0x06() #0 {
%1 = call i64 @isalnum(i32 noundef 6)
%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 35, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isalnum(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/tmp645qn19p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isalnum.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isalnum should be 0 for 0x06\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalnum_0x06() #0 {
%1 = call i64 @isalnum(i32 noundef 6)
%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 35, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isalnum(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/tmpwyecqoyg.c'
source_filename = "/tmp/tmpwyecqoyg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_SUCCESS = dso_local global i32 0, align 4
@MNT_FORCE = dso_local global i32 0, align 4
@O_RDONLY = 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/tmpwyecqoyg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_SUCCESS = dso_local global i32 0, align 4
@MNT_FORCE = dso_local global i32 0, align 4
@O_RDONLY = 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/tmpimoollas.c'
source_filename = "/tmp/tmpimoollas.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [23 x i8] c"All unit tests passed.\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"Invalid input parameters.\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"No input parameters specified.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 -1, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp sge i32 %7, 2
br i1 %8, label %9, label %33
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 1
%12 = load ptr, ptr %11, align 8
%13 = call i64 @strncmp(ptr noundef @.str, ptr noundef %12, i32 noundef 2)
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %9
%16 = call i32 (...) @run_all_unit_tests()
%17 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %6, align 4
br label %32
18: ; preds = %9
%19 = load i32, ptr %4, align 4
%20 = icmp sge i32 %19, 3
br i1 %20, label %21, label %29
21: ; preds = %18
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 2
%27 = load ptr, ptr %26, align 8
%28 = call i32 @vipernec(ptr noundef %24, ptr noundef %27)
store i32 %28, ptr %6, align 4
br label %31
29: ; preds = %18
%30 = call i32 @printf(ptr noundef @.str.2)
br label %31
31: ; preds = %29, %21
br label %32
32: ; preds = %31, %15
br label %35
33: ; preds = %2
%34 = call i32 @printf(ptr noundef @.str.3)
br label %35
35: ; preds = %33, %32
%36 = load i32, ptr %6, align 4
ret i32 %36
}
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @run_all_unit_tests(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @vipernec(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/tmpimoollas.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [23 x i8] c"All unit tests passed.\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"Invalid input parameters.\00", align 1
@.str.3 = private unnamed_addr constant [31 x i8] c"No input parameters specified.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 -1, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp sge i32 %7, 2
br i1 %8, label %9, label %33
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 1
%12 = load ptr, ptr %11, align 8
%13 = call i64 @strncmp(ptr noundef @.str, ptr noundef %12, i32 noundef 2)
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %9
%16 = call i32 (...) @run_all_unit_tests()
%17 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %6, align 4
br label %32
18: ; preds = %9
%19 = load i32, ptr %4, align 4
%20 = icmp sge i32 %19, 3
br i1 %20, label %21, label %29
21: ; preds = %18
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 2
%27 = load ptr, ptr %26, align 8
%28 = call i32 @vipernec(ptr noundef %24, ptr noundef %27)
store i32 %28, ptr %6, align 4
br label %31
29: ; preds = %18
%30 = call i32 @printf(ptr noundef @.str.2)
br label %31
31: ; preds = %29, %21
br label %32
32: ; preds = %31, %15
br label %35
33: ; preds = %2
%34 = call i32 @printf(ptr noundef @.str.3)
br label %35
35: ; preds = %33, %32
%36 = load i32, ptr %6, align 4
ret i32 %36
}
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @run_all_unit_tests(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @vipernec(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/tmpjpxx5bgf.c'
source_filename = "/tmp/tmpjpxx5bgf.c"
target datalayout = "e-m:e-p270: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.A7_device_id_str = private unnamed_addr constant [11 x i8] c"1234457777\00", align 1
@__const.main.A7_updated_time_str = private unnamed_addr constant [7 x i8] c"123455\00", align 1
@__const.main.A7_updated_date_str = private unnamed_addr constant [9 x i8] c"20022017\00", align 1
@__const.main.A7_latitude_str = private unnamed_addr constant [12 x i8] c"0.333333333\00", align 1
@__const.main.A7_longitude_str = private unnamed_addr constant [12 x i8] c"9.000000000\00", align 1
@__const.main.tcp_string1 = private unnamed_addr constant [15 x i8] c"at+cipstatus\0D\0A\00", align 1
@__const.main.tcp_string2 = private unnamed_addr constant [40 x i8] c"AT+CIPSTART=\22TCP\22,\22www.iisl.co.in\22,80\0D\0A\00", align 16
@__const.main.tcp_string3 = private unnamed_addr constant [15 x i8] c"at+cipstatus\0D\0A\00", align 1
@__const.main.tcp_string4 = private unnamed_addr constant [13 x i8] c"AT+CIPSEND\0D\0A\00", align 1
@__const.main.tcp_header_str = private unnamed_addr constant [75 x i8] c"GET http://iisl.co.in/gps_control_panel/gps_mapview/adddevicelocation.php?\00", align 16
@__const.main.tcp_body_str = private unnamed_addr constant [12 x i8] c" HTTP/1.0\0D\0A\00", align 1
@__const.main.tcp_footer_str = private unnamed_addr constant [28 x i8] c"Host: www.iisl.co.in:8080\0D\0A\00", align 16
@__const.main.tcp_string_end1 = private unnamed_addr constant [3 x i8] c"\0D\0A\00", align 1
@__const.main.tcp_string20 = private unnamed_addr constant [14 x i8] c"AT+CIPCLOSE\0D\0A\00", align 1
@__const.main.tcp_string21 = private unnamed_addr constant [11 x i8] c"at+cifsr\0D\0A\00", align 1
@.str = private unnamed_addr constant [11 x i8] c"1234567890\00", align 1
@.str.1 = private unnamed_addr constant [35 x i8] c"%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"device_id=\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"&\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"latitude=\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"longitude=\00", align 1
@.str.6 = private unnamed_addr constant [15 x i8] c"utcdate_stamp=\00", align 1
@.str.7 = private unnamed_addr constant [15 x i8] c"utctime_stamp=\00", align 1
@.str.8 = private unnamed_addr constant [17 x i8] c"send string |%s|\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [1024 x i8], align 16
%2 = alloca [11 x i8], align 1
%3 = alloca [7 x i8], align 1
%4 = alloca [9 x i8], align 1
%5 = alloca [12 x i8], align 1
%6 = alloca [12 x i8], align 1
%7 = alloca [15 x i8], align 1
%8 = alloca [40 x i8], align 16
%9 = alloca [15 x i8], align 1
%10 = alloca [13 x i8], align 1
%11 = alloca [75 x i8], align 16
%12 = alloca [12 x i8], align 1
%13 = alloca [28 x i8], align 16
%14 = alloca i8, align 1
%15 = alloca [1 x i8], align 1
%16 = alloca [3 x i8], align 1
%17 = alloca [14 x i8], align 1
%18 = alloca [11 x i8], align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.main.A7_device_id_str, i64 11, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.A7_updated_time_str, i64 7, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %4, ptr align 1 @__const.main.A7_updated_date_str, i64 9, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %5, ptr align 1 @__const.main.A7_latitude_str, i64 12, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %6, ptr align 1 @__const.main.A7_longitude_str, i64 12, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.main.tcp_string1, i64 15, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %8, ptr align 16 @__const.main.tcp_string2, i64 40, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %9, ptr align 1 @__const.main.tcp_string3, i64 15, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %10, ptr align 1 @__const.main.tcp_string4, i64 13, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 @__const.main.tcp_header_str, i64 75, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %12, ptr align 1 @__const.main.tcp_body_str, i64 12, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %13, ptr align 16 @__const.main.tcp_footer_str, i64 28, i1 false)
store i8 26, ptr %14, align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %16, ptr align 1 @__const.main.tcp_string_end1, i64 3, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %17, ptr align 1 @__const.main.tcp_string20, i64 14, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %18, ptr align 1 @__const.main.tcp_string21, i64 11, i1 false)
%19 = load i8, ptr %14, align 1
%20 = getelementptr inbounds [1 x i8], ptr %15, i64 0, i64 0
store i8 %19, ptr %20, align 1
%21 = getelementptr inbounds [11 x i8], ptr %2, i64 0, i64 0
%22 = call i32 @strcpy(ptr noundef %21, ptr noundef @.str)
%23 = getelementptr inbounds [1024 x i8], ptr %1, i64 0, i64 0
%24 = getelementptr inbounds [75 x i8], ptr %11, i64 0, i64 0
%25 = getelementptr inbounds [11 x i8], ptr %2, i64 0, i64 0
%26 = getelementptr inbounds [12 x i8], ptr %5, i64 0, i64 0
%27 = getelementptr inbounds [12 x i8], ptr %6, i64 0, i64 0
%28 = getelementptr inbounds [9 x i8], ptr %4, i64 0, i64 0
%29 = getelementptr inbounds [7 x i8], ptr %3, i64 0, i64 0
%30 = getelementptr inbounds [12 x i8], ptr %12, i64 0, i64 0
%31 = getelementptr inbounds [28 x i8], ptr %13, i64 0, i64 0
%32 = call i32 @snprintf(ptr noundef %23, i32 noundef 1024, ptr noundef @.str.1, ptr noundef %24, ptr noundef @.str.2, ptr noundef %25, ptr noundef @.str.3, ptr noundef @.str.4, ptr noundef %26, ptr noundef @.str.3, ptr noundef @.str.5, ptr noundef %27, ptr noundef @.str.3, ptr noundef @.str.6, ptr noundef %28, ptr noundef @.str.3, ptr noundef @.str.7, ptr noundef %29, ptr noundef %30, ptr noundef %31)
%33 = getelementptr inbounds [1024 x i8], ptr %1, i64 0, i64 0
%34 = call i32 @printf(ptr noundef @.str.8, ptr noundef %33)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #2
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjpxx5bgf.c"
target datalayout = "e-m:e-p270: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.A7_device_id_str = private unnamed_addr constant [11 x i8] c"1234457777\00", align 1
@__const.main.A7_updated_time_str = private unnamed_addr constant [7 x i8] c"123455\00", align 1
@__const.main.A7_updated_date_str = private unnamed_addr constant [9 x i8] c"20022017\00", align 1
@__const.main.A7_latitude_str = private unnamed_addr constant [12 x i8] c"0.333333333\00", align 1
@__const.main.A7_longitude_str = private unnamed_addr constant [12 x i8] c"9.000000000\00", align 1
@__const.main.tcp_string1 = private unnamed_addr constant [15 x i8] c"at+cipstatus\0D\0A\00", align 1
@__const.main.tcp_string2 = private unnamed_addr constant [40 x i8] c"AT+CIPSTART=\22TCP\22,\22www.iisl.co.in\22,80\0D\0A\00", align 16
@__const.main.tcp_string3 = private unnamed_addr constant [15 x i8] c"at+cipstatus\0D\0A\00", align 1
@__const.main.tcp_string4 = private unnamed_addr constant [13 x i8] c"AT+CIPSEND\0D\0A\00", align 1
@__const.main.tcp_header_str = private unnamed_addr constant [75 x i8] c"GET http://iisl.co.in/gps_control_panel/gps_mapview/adddevicelocation.php?\00", align 16
@__const.main.tcp_body_str = private unnamed_addr constant [12 x i8] c" HTTP/1.0\0D\0A\00", align 1
@__const.main.tcp_footer_str = private unnamed_addr constant [28 x i8] c"Host: www.iisl.co.in:8080\0D\0A\00", align 16
@__const.main.tcp_string_end1 = private unnamed_addr constant [3 x i8] c"\0D\0A\00", align 1
@__const.main.tcp_string20 = private unnamed_addr constant [14 x i8] c"AT+CIPCLOSE\0D\0A\00", align 1
@__const.main.tcp_string21 = private unnamed_addr constant [11 x i8] c"at+cifsr\0D\0A\00", align 1
@.str = private unnamed_addr constant [11 x i8] c"1234567890\00", align 1
@.str.1 = private unnamed_addr constant [35 x i8] c"%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"device_id=\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"&\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"latitude=\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"longitude=\00", align 1
@.str.6 = private unnamed_addr constant [15 x i8] c"utcdate_stamp=\00", align 1
@.str.7 = private unnamed_addr constant [15 x i8] c"utctime_stamp=\00", align 1
@.str.8 = private unnamed_addr constant [17 x i8] c"send string |%s|\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [1024 x i8], align 16
%2 = alloca [11 x i8], align 1
%3 = alloca [7 x i8], align 1
%4 = alloca [9 x i8], align 1
%5 = alloca [12 x i8], align 1
%6 = alloca [12 x i8], align 1
%7 = alloca [15 x i8], align 1
%8 = alloca [40 x i8], align 16
%9 = alloca [15 x i8], align 1
%10 = alloca [13 x i8], align 1
%11 = alloca [75 x i8], align 16
%12 = alloca [12 x i8], align 1
%13 = alloca [28 x i8], align 16
%14 = alloca i8, align 1
%15 = alloca [1 x i8], align 1
%16 = alloca [3 x i8], align 1
%17 = alloca [14 x i8], align 1
%18 = alloca [11 x i8], align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.main.A7_device_id_str, i64 11, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.A7_updated_time_str, i64 7, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %4, ptr align 1 @__const.main.A7_updated_date_str, i64 9, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %5, ptr align 1 @__const.main.A7_latitude_str, i64 12, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %6, ptr align 1 @__const.main.A7_longitude_str, i64 12, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.main.tcp_string1, i64 15, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %8, ptr align 16 @__const.main.tcp_string2, i64 40, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %9, ptr align 1 @__const.main.tcp_string3, i64 15, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %10, ptr align 1 @__const.main.tcp_string4, i64 13, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 @__const.main.tcp_header_str, i64 75, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %12, ptr align 1 @__const.main.tcp_body_str, i64 12, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %13, ptr align 16 @__const.main.tcp_footer_str, i64 28, i1 false)
store i8 26, ptr %14, align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %16, ptr align 1 @__const.main.tcp_string_end1, i64 3, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %17, ptr align 1 @__const.main.tcp_string20, i64 14, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %18, ptr align 1 @__const.main.tcp_string21, i64 11, i1 false)
%19 = load i8, ptr %14, align 1
%20 = getelementptr inbounds [1 x i8], ptr %15, i64 0, i64 0
store i8 %19, ptr %20, align 1
%21 = getelementptr inbounds [11 x i8], ptr %2, i64 0, i64 0
%22 = call i32 @strcpy(ptr noundef %21, ptr noundef @.str)
%23 = getelementptr inbounds [1024 x i8], ptr %1, i64 0, i64 0
%24 = getelementptr inbounds [75 x i8], ptr %11, i64 0, i64 0
%25 = getelementptr inbounds [11 x i8], ptr %2, i64 0, i64 0
%26 = getelementptr inbounds [12 x i8], ptr %5, i64 0, i64 0
%27 = getelementptr inbounds [12 x i8], ptr %6, i64 0, i64 0
%28 = getelementptr inbounds [9 x i8], ptr %4, i64 0, i64 0
%29 = getelementptr inbounds [7 x i8], ptr %3, i64 0, i64 0
%30 = getelementptr inbounds [12 x i8], ptr %12, i64 0, i64 0
%31 = getelementptr inbounds [28 x i8], ptr %13, i64 0, i64 0
%32 = call i32 @snprintf(ptr noundef %23, i32 noundef 1024, ptr noundef @.str.1, ptr noundef %24, ptr noundef @.str.2, ptr noundef %25, ptr noundef @.str.3, ptr noundef @.str.4, ptr noundef %26, ptr noundef @.str.3, ptr noundef @.str.5, ptr noundef %27, ptr noundef @.str.3, ptr noundef @.str.6, ptr noundef %28, ptr noundef @.str.3, ptr noundef @.str.7, ptr noundef %29, ptr noundef %30, ptr noundef %31)
%33 = getelementptr inbounds [1024 x i8], ptr %1, i64 0, i64 0
%34 = call i32 @printf(ptr noundef @.str.8, ptr noundef %33)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #2
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1btm2n6e.c'
source_filename = "/tmp/tmp1btm2n6e.c"
target datalayout = "e-m:e-p270: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/tmp1btm2n6e.c"
target datalayout = "e-m:e-p270: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/tmpssng4nu2.c'
source_filename = "/tmp/tmpssng4nu2.c"
target datalayout = "e-m:e-p270: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/tmpssng4nu2.c"
target datalayout = "e-m:e-p270: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/tmp3r3e59hn.c'
source_filename = "/tmp/tmp3r3e59hn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @file_unmap(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %5, align 8
%8 = load i32, ptr %6, align 4
%9 = call i32 @munmap(ptr noundef %7, i32 noundef %8)
%10 = load i32, ptr %4, align 4
%11 = call i32 @close(i32 noundef %10)
ret void
}
declare i32 @munmap(ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3r3e59hn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @file_unmap(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %5, align 8
%8 = load i32, ptr %6, align 4
%9 = call i32 @munmap(ptr noundef %7, i32 noundef %8)
%10 = load i32, ptr %4, align 4
%11 = call i32 @close(i32 noundef %10)
ret void
}
declare i32 @munmap(ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3_buh2b7.c'
source_filename = "/tmp/tmp3_buh2b7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @freeCharMatrixInline(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/tmp3_buh2b7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @freeCharMatrixInline(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/tmpjn55aq5f.c'
source_filename = "/tmp/tmpjn55aq5f.c"
target datalayout = "e-m:e-p270: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/tmpjn55aq5f.c"
target datalayout = "e-m:e-p270: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/tmpp5eh1n6u.c'
source_filename = "/tmp/tmpp5eh1n6u.c"
target datalayout = "e-m:e-p270: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/tmpp5eh1n6u.c"
target datalayout = "e-m:e-p270: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/tmpjlph8ljj.c'
source_filename = "/tmp/tmpjlph8ljj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [300 x i8] c"\0A Usage: %s [Character: pipe-type, n for named, u for unamed] [String: If pipe-type is n, enter the name of the pipe] [Character: The direction of the pipe, p for parent to child, c for child to parent] [String: message that will be transffered between child and parent. Maximum of 32 characters.]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printUsage(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 1) #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/tmpjlph8ljj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [300 x i8] c"\0A Usage: %s [Character: pipe-type, n for named, u for unamed] [String: If pipe-type is n, enter the name of the pipe] [Character: The direction of the pipe, p for parent to child, c for child to parent] [String: message that will be transffered between child and parent. Maximum of 32 characters.]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printUsage(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 1) #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/tmp4nf7l495.c'
source_filename = "/tmp/tmp4nf7l495.c"
target datalayout = "e-m:e-p270: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 [3 x i32] [i32 1, i32 2, i32 3], align 4
@.str = private unnamed_addr constant [7 x i8] c"x: %p\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"*x: %i \0A\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"p: %p \0A\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"*p: %i \0A\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"*q: %i\0A\00", align 1
@.str.5 = private unnamed_addr constant [12 x i8] c"*(q-1): %i\0A\00", align 1
@.str.6 = private unnamed_addr constant [12 x i8] c"*(q-2): %i\0A\00", align 1
@.str.7 = private unnamed_addr constant [10 x i8] c"x[1]: %i\0A\00", align 1
@.str.8 = private unnamed_addr constant [12 x i8] c"*(x+1): %i\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 [3 x i32], align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 @__const.main.x, i64 12, i1 false)
%9 = getelementptr inbounds [3 x i32], ptr %6, i64 0, i64 0
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %9)
%11 = getelementptr inbounds [3 x i32], ptr %6, i64 0, i64 0
%12 = load i32, ptr %11, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %12)
%14 = getelementptr inbounds [3 x i32], ptr %6, i64 0, i64 0
store ptr %14, ptr %7, align 8
%15 = load ptr, ptr %7, align 8
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %15)
%17 = load ptr, ptr %7, align 8
%18 = load i32, ptr %17, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %18)
%20 = load ptr, ptr %7, align 8
%21 = getelementptr inbounds i32, ptr %20, i64 1
store ptr %21, ptr %8, align 8
%22 = load ptr, ptr %8, align 8
%23 = load i32, ptr %22, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %23)
%25 = load ptr, ptr %8, align 8
%26 = getelementptr inbounds i32, ptr %25, i64 -1
%27 = load i32, ptr %26, align 4
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %27)
%29 = load ptr, ptr %8, align 8
%30 = getelementptr inbounds i32, ptr %29, i64 -2
%31 = load i32, ptr %30, align 4
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %31)
%33 = getelementptr inbounds [3 x i32], ptr %6, i64 0, i64 1
%34 = load i32, ptr %33, align 4
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %34)
%36 = getelementptr inbounds [3 x i32], ptr %6, i64 0, i64 0
%37 = getelementptr inbounds i32, ptr %36, i64 1
%38 = load i32, ptr %37, align 4
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %38)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="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/tmp4nf7l495.c"
target datalayout = "e-m:e-p270: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 [3 x i32] [i32 1, i32 2, i32 3], align 4
@.str = private unnamed_addr constant [7 x i8] c"x: %p\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"*x: %i \0A\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"p: %p \0A\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"*p: %i \0A\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"*q: %i\0A\00", align 1
@.str.5 = private unnamed_addr constant [12 x i8] c"*(q-1): %i\0A\00", align 1
@.str.6 = private unnamed_addr constant [12 x i8] c"*(q-2): %i\0A\00", align 1
@.str.7 = private unnamed_addr constant [10 x i8] c"x[1]: %i\0A\00", align 1
@.str.8 = private unnamed_addr constant [12 x i8] c"*(x+1): %i\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 [3 x i32], align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 @__const.main.x, i64 12, i1 false)
%9 = getelementptr inbounds [3 x i32], ptr %6, i64 0, i64 0
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %9)
%11 = getelementptr inbounds [3 x i32], ptr %6, i64 0, i64 0
%12 = load i32, ptr %11, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %12)
%14 = getelementptr inbounds [3 x i32], ptr %6, i64 0, i64 0
store ptr %14, ptr %7, align 8
%15 = load ptr, ptr %7, align 8
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %15)
%17 = load ptr, ptr %7, align 8
%18 = load i32, ptr %17, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %18)
%20 = load ptr, ptr %7, align 8
%21 = getelementptr inbounds i32, ptr %20, i64 1
store ptr %21, ptr %8, align 8
%22 = load ptr, ptr %8, align 8
%23 = load i32, ptr %22, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %23)
%25 = load ptr, ptr %8, align 8
%26 = getelementptr inbounds i32, ptr %25, i64 -1
%27 = load i32, ptr %26, align 4
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %27)
%29 = load ptr, ptr %8, align 8
%30 = getelementptr inbounds i32, ptr %29, i64 -2
%31 = load i32, ptr %30, align 4
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %31)
%33 = getelementptr inbounds [3 x i32], ptr %6, i64 0, i64 1
%34 = load i32, ptr %33, align 4
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %34)
%36 = getelementptr inbounds [3 x i32], ptr %6, i64 0, i64 0
%37 = getelementptr inbounds i32, ptr %36, i64 1
%38 = load i32, ptr %37, align 4
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %38)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="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/tmpphbt_v_e.c'
source_filename = "/tmp/tmpphbt_v_e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @chol(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store double 0x3EB0C6F7A0B5ED8D, ptr %15, align 8
%24 = load i32, ptr %8, align 4
%25 = icmp sle i32 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %5
store i32 1, ptr %6, align 4
br label %154
27: ; preds = %5
store double 0.000000e+00, ptr %12, align 8
store i32 0, ptr %22, align 4
store i32 0, ptr %19, align 4
store i32 0, ptr %18, align 4
store i32 0, ptr %16, align 4
br label %28
28: ; preds = %145, %27
%29 = load i32, ptr %22, align 4
%30 = load i32, ptr %8, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %32, label %149
32: ; preds = %28
store i32 0, ptr %23, align 4
store i32 0, ptr %20, align 4
br label %33
33: ; preds = %139, %32
%34 = load i32, ptr %23, align 4
%35 = load i32, ptr %22, align 4
%36 = icmp sle i32 %34, %35
br i1 %36, label %37, label %144
37: ; preds = %33
%38 = load ptr, ptr %7, align 8
%39 = load i32, ptr %19, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds double, ptr %38, i64 %40
%42 = load double, ptr %41, align 8
store double %42, ptr %13, align 8
%43 = load i32, ptr %18, align 4
store i32 %43, ptr %21, align 4
store i32 0, ptr %17, align 4
br label %44
44: ; preds = %62, %37
%45 = load i32, ptr %17, align 4
%46 = load i32, ptr %23, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %48, label %69
48: ; preds = %44
%49 = load double, ptr %13, align 8
%50 = load ptr, ptr %9, align 8
%51 = load i32, ptr %20, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds double, ptr %50, i64 %52
%54 = load double, ptr %53, align 8
%55 = load ptr, ptr %9, align 8
%56 = load i32, ptr %21, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds double, ptr %55, i64 %57
%59 = load double, ptr %58, align 8
%60 = fneg double %54
%61 = call double @llvm.fmuladd.f64(double %60, double %59, double %49)
store double %61, ptr %13, align 8
br label %62
62: ; preds = %48
%63 = load i32, ptr %17, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %17, align 4
%65 = load i32, ptr %20, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %20, align 4
%67 = load i32, ptr %21, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %21, align 4
br label %44, !llvm.loop !6
69: ; preds = %44
%70 = load i32, ptr %23, align 4
%71 = load i32, ptr %22, align 4
%72 = icmp eq i32 %70, %71
br i1 %72, label %73, label %111
73: ; preds = %69
%74 = load double, ptr %15, align 8
%75 = load ptr, ptr %7, align 8
%76 = load i32, ptr %19, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds double, ptr %75, i64 %77
%79 = load double, ptr %78, align 8
%80 = fmul double %74, %79
store double %80, ptr %14, align 8
%81 = load double, ptr %13, align 8
%82 = load double, ptr %14, align 8
%83 = fcmp ogt double %81, %82
br i1 %83, label %84, label %96
84: ; preds = %73
%85 = load double, ptr %13, align 8
%86 = call i64 @log(double noundef %85)
%87 = sitofp i64 %86 to double
%88 = load double, ptr %12, align 8
%89 = fadd double %88, %87
store double %89, ptr %12, align 8
%90 = load double, ptr %13, align 8
%91 = call double @sqrt(double noundef %90) #4
%92 = load ptr, ptr %9, align 8
%93 = load i32, ptr %19, align 4
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds double, ptr %92, i64 %94
store double %91, ptr %95, align 8
br label %110
96: ; preds = %73
%97 = load double, ptr %13, align 8
%98 = load double, ptr %14, align 8
%99 = fneg double %98
%100 = fcmp olt double %97, %99
br i1 %100, label %101, label %102
101: ; preds = %96
store i32 2, ptr %6, align 4
br label %154
102: ; preds = %96
%103 = load ptr, ptr %9, align 8
%104 = load i32, ptr %19, align 4
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds double, ptr %103, i64 %105
store double 0.000000e+00, ptr %106, align 8
%107 = load i32, ptr %16, align 4
%108 = add nsw i32 %107, 1
store i32 %108, ptr %16, align 4
br label %109
109: ; preds = %102
br label %110
110: ; preds = %109, %84
br label %136
111: ; preds = %69
%112 = load ptr, ptr %9, align 8
%113 = load i32, ptr %20, align 4
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds double, ptr %112, i64 %114
%116 = load double, ptr %115, align 8
%117 = fcmp oeq double %116, 0.000000e+00
br i1 %117, label %118, label %123
118: ; preds = %111
%119 = load ptr, ptr %9, align 8
%120 = load i32, ptr %19, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds double, ptr %119, i64 %121
store double 0.000000e+00, ptr %122, align 8
br label %135
123: ; preds = %111
%124 = load double, ptr %13, align 8
%125 = load ptr, ptr %9, align 8
%126 = load i32, ptr %20, align 4
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds double, ptr %125, i64 %127
%129 = load double, ptr %128, align 8
%130 = fdiv double %124, %129
%131 = load ptr, ptr %9, align 8
%132 = load i32, ptr %19, align 4
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds double, ptr %131, i64 %133
store double %130, ptr %134, align 8
br label %135
135: ; preds = %123, %118
br label %136
136: ; preds = %135, %110
%137 = load i32, ptr %20, align 4
%138 = add nsw i32 %137, 1
store i32 %138, ptr %20, align 4
br label %139
139: ; preds = %136
%140 = load i32, ptr %23, align 4
%141 = add nsw i32 %140, 1
store i32 %141, ptr %23, align 4
%142 = load i32, ptr %19, align 4
%143 = add nsw i32 %142, 1
store i32 %143, ptr %19, align 4
br label %33, !llvm.loop !8
144: ; preds = %33
br label %145
145: ; preds = %144
%146 = load i32, ptr %22, align 4
%147 = add nsw i32 %146, 1
store i32 %147, ptr %22, align 4
%148 = load i32, ptr %19, align 4
store i32 %148, ptr %18, align 4
br label %28, !llvm.loop !9
149: ; preds = %28
%150 = load i32, ptr %16, align 4
%151 = load ptr, ptr %10, align 8
store i32 %150, ptr %151, align 4
%152 = load double, ptr %12, align 8
%153 = load ptr, ptr %11, align 8
store double %152, ptr %153, align 8
store i32 0, ptr %6, align 4
br label %154
154: ; preds = %149, %101, %26
%155 = load i32, ptr %6, align 4
ret i32 %155
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare i64 @log(double noundef) #2
; Function Attrs: nounwind
declare double @sqrt(double noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpphbt_v_e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @chol(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store double 0x3EB0C6F7A0B5ED8D, ptr %15, align 8
%24 = load i32, ptr %8, align 4
%25 = icmp sle i32 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %5
store i32 1, ptr %6, align 4
br label %160
27: ; preds = %5
store double 0.000000e+00, ptr %12, align 8
store i32 0, ptr %22, align 4
store i32 0, ptr %19, align 4
store i32 0, ptr %18, align 4
store i32 0, ptr %16, align 4
%28 = load i32, ptr %22, align 4
%29 = load i32, ptr %8, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %.lr.ph5, label %155
.lr.ph5: ; preds = %27
br label %31
31: ; preds = %.lr.ph5, %148
store i32 0, ptr %23, align 4
store i32 0, ptr %20, align 4
%32 = load i32, ptr %23, align 4
%33 = load i32, ptr %22, align 4
%34 = icmp sle i32 %32, %33
br i1 %34, label %.lr.ph2, label %147
.lr.ph2: ; preds = %31
br label %35
35: ; preds = %.lr.ph2, %139
%36 = load ptr, ptr %7, align 8
%37 = load i32, ptr %19, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds double, ptr %36, i64 %38
%40 = load double, ptr %39, align 8
store double %40, ptr %13, align 8
%41 = load i32, ptr %18, align 4
store i32 %41, ptr %21, align 4
store i32 0, ptr %17, align 4
%42 = load i32, ptr %17, align 4
%43 = load i32, ptr %23, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %.lr.ph, label %69
.lr.ph: ; preds = %35
br label %45
45: ; preds = %.lr.ph, %59
%46 = load double, ptr %13, align 8
%47 = load ptr, ptr %9, align 8
%48 = load i32, ptr %20, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds double, ptr %47, i64 %49
%51 = load double, ptr %50, align 8
%52 = load ptr, ptr %9, align 8
%53 = load i32, ptr %21, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds double, ptr %52, i64 %54
%56 = load double, ptr %55, align 8
%57 = fneg double %51
%58 = call double @llvm.fmuladd.f64(double %57, double %56, double %46)
store double %58, ptr %13, align 8
br label %59
59: ; preds = %45
%60 = load i32, ptr %17, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %17, align 4
%62 = load i32, ptr %20, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %20, align 4
%64 = load i32, ptr %21, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %21, align 4
%66 = load i32, ptr %17, align 4
%67 = load i32, ptr %23, align 4
%68 = icmp slt i32 %66, %67
br i1 %68, label %45, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %59
br label %69
69: ; preds = %._crit_edge, %35
%70 = load i32, ptr %23, align 4
%71 = load i32, ptr %22, align 4
%72 = icmp eq i32 %70, %71
br i1 %72, label %73, label %111
73: ; preds = %69
%74 = load double, ptr %15, align 8
%75 = load ptr, ptr %7, align 8
%76 = load i32, ptr %19, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds double, ptr %75, i64 %77
%79 = load double, ptr %78, align 8
%80 = fmul double %74, %79
store double %80, ptr %14, align 8
%81 = load double, ptr %13, align 8
%82 = load double, ptr %14, align 8
%83 = fcmp ogt double %81, %82
br i1 %83, label %84, label %96
84: ; preds = %73
%85 = load double, ptr %13, align 8
%86 = call i64 @log(double noundef %85)
%87 = sitofp i64 %86 to double
%88 = load double, ptr %12, align 8
%89 = fadd double %88, %87
store double %89, ptr %12, align 8
%90 = load double, ptr %13, align 8
%91 = call double @sqrt(double noundef %90) #4
%92 = load ptr, ptr %9, align 8
%93 = load i32, ptr %19, align 4
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds double, ptr %92, i64 %94
store double %91, ptr %95, align 8
br label %110
96: ; preds = %73
%97 = load double, ptr %13, align 8
%98 = load double, ptr %14, align 8
%99 = fneg double %98
%100 = fcmp olt double %97, %99
br i1 %100, label %101, label %102
101: ; preds = %96
store i32 2, ptr %6, align 4
br label %160
102: ; preds = %96
%103 = load ptr, ptr %9, align 8
%104 = load i32, ptr %19, align 4
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds double, ptr %103, i64 %105
store double 0.000000e+00, ptr %106, align 8
%107 = load i32, ptr %16, align 4
%108 = add nsw i32 %107, 1
store i32 %108, ptr %16, align 4
br label %109
109: ; preds = %102
br label %110
110: ; preds = %109, %84
br label %136
111: ; preds = %69
%112 = load ptr, ptr %9, align 8
%113 = load i32, ptr %20, align 4
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds double, ptr %112, i64 %114
%116 = load double, ptr %115, align 8
%117 = fcmp oeq double %116, 0.000000e+00
br i1 %117, label %118, label %123
118: ; preds = %111
%119 = load ptr, ptr %9, align 8
%120 = load i32, ptr %19, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds double, ptr %119, i64 %121
store double 0.000000e+00, ptr %122, align 8
br label %135
123: ; preds = %111
%124 = load double, ptr %13, align 8
%125 = load ptr, ptr %9, align 8
%126 = load i32, ptr %20, align 4
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds double, ptr %125, i64 %127
%129 = load double, ptr %128, align 8
%130 = fdiv double %124, %129
%131 = load ptr, ptr %9, align 8
%132 = load i32, ptr %19, align 4
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds double, ptr %131, i64 %133
store double %130, ptr %134, align 8
br label %135
135: ; preds = %123, %118
br label %136
136: ; preds = %135, %110
%137 = load i32, ptr %20, align 4
%138 = add nsw i32 %137, 1
store i32 %138, ptr %20, align 4
br label %139
139: ; preds = %136
%140 = load i32, ptr %23, align 4
%141 = add nsw i32 %140, 1
store i32 %141, ptr %23, align 4
%142 = load i32, ptr %19, align 4
%143 = add nsw i32 %142, 1
store i32 %143, ptr %19, align 4
%144 = load i32, ptr %23, align 4
%145 = load i32, ptr %22, align 4
%146 = icmp sle i32 %144, %145
br i1 %146, label %35, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %139
br label %147
147: ; preds = %._crit_edge3, %31
br label %148
148: ; preds = %147
%149 = load i32, ptr %22, align 4
%150 = add nsw i32 %149, 1
store i32 %150, ptr %22, align 4
%151 = load i32, ptr %19, align 4
store i32 %151, ptr %18, align 4
%152 = load i32, ptr %22, align 4
%153 = load i32, ptr %8, align 4
%154 = icmp slt i32 %152, %153
br i1 %154, label %31, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %148
br label %155
155: ; preds = %._crit_edge6, %27
%156 = load i32, ptr %16, align 4
%157 = load ptr, ptr %10, align 8
store i32 %156, ptr %157, align 4
%158 = load double, ptr %12, align 8
%159 = load ptr, ptr %11, align 8
store double %158, ptr %159, align 8
store i32 0, ptr %6, align 4
br label %160
160: ; preds = %155, %101, %26
%161 = load i32, ptr %6, align 4
ret i32 %161
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare i64 @log(double noundef) #2
; Function Attrs: nounwind
declare double @sqrt(double noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp_ts0i1et.c'
source_filename = "/tmp/tmp_ts0i1et.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @shift_queue(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 ptr, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%13 = load ptr, ptr %4, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 0
%15 = load ptr, ptr %14, align 8
%16 = call i32 @strlen(ptr noundef %15)
%17 = add nsw i32 %16, 1
store i32 %17, ptr %7, align 4
store i32 0, ptr %8, align 4
%18 = load ptr, ptr %5, align 8
store ptr %18, ptr %9, align 8
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 0
%21 = load ptr, ptr %20, align 8
%22 = load i32, ptr %7, align 4
%23 = call i32 @clean_line(ptr noundef %21, i32 noundef %22)
br label %24
24: ; preds = %29, %3
%25 = load i32, ptr %8, align 4
%26 = load i32, ptr %6, align 4
%27 = sub nsw i32 %26, 1
%28 = icmp ne i32 %25, %27
br i1 %28, label %29, label %69
29: ; preds = %24
%30 = load i32, ptr %8, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %8, align 4
%32 = load ptr, ptr %4, 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 i32 @strlen(ptr noundef %36)
%38 = add nsw i32 %37, 1
store i32 %38, ptr %10, align 4
%39 = load i32, ptr %10, align 4
%40 = zext i32 %39 to i64
%41 = call ptr @llvm.stacksave()
store ptr %41, ptr %11, align 8
%42 = alloca i8, i64 %40, align 16
store i64 %40, ptr %12, align 8
%43 = load ptr, ptr %4, align 8
%44 = load i32, ptr %8, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds ptr, ptr %43, i64 %45
%47 = load ptr, ptr %46, align 8
%48 = call i32 @strcpy(ptr noundef %42, ptr noundef %47)
%49 = load ptr, ptr %4, align 8
%50 = load i32, ptr %8, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds ptr, ptr %49, i64 %51
%53 = load ptr, ptr %52, align 8
%54 = load i32, ptr %10, align 4
%55 = call i32 @clean_line(ptr noundef %53, i32 noundef %54)
%56 = load ptr, ptr %9, align 8
%57 = call i32 @strcpy(ptr noundef %56, ptr noundef %42)
%58 = load ptr, ptr %9, align 8
%59 = load ptr, ptr %4, align 8
%60 = load i32, ptr %8, align 4
%61 = sub nsw i32 %60, 1
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds ptr, ptr %59, i64 %62
store ptr %58, ptr %63, align 8
%64 = load ptr, ptr %9, align 8
%65 = load i32, ptr %10, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i8, ptr %64, i64 %66
store ptr %67, ptr %9, align 8
%68 = load ptr, ptr %11, align 8
call void @llvm.stackrestore(ptr %68)
br label %24, !llvm.loop !6
69: ; preds = %24
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i32 @clean_line(ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @strcpy(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_ts0i1et.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @shift_queue(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 ptr, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%13 = load ptr, ptr %4, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 0
%15 = load ptr, ptr %14, align 8
%16 = call i32 @strlen(ptr noundef %15)
%17 = add nsw i32 %16, 1
store i32 %17, ptr %7, align 4
store i32 0, ptr %8, align 4
%18 = load ptr, ptr %5, align 8
store ptr %18, ptr %9, align 8
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 0
%21 = load ptr, ptr %20, align 8
%22 = load i32, ptr %7, align 4
%23 = call i32 @clean_line(ptr noundef %21, i32 noundef %22)
%24 = load i32, ptr %8, align 4
%25 = load i32, ptr %6, align 4
%26 = sub nsw i32 %25, 1
%27 = icmp ne i32 %24, %26
br i1 %27, label %.lr.ph, label %72
.lr.ph: ; preds = %3
br label %28
28: ; preds = %.lr.ph, %28
%29 = load i32, ptr %8, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %8, align 4
%31 = load ptr, ptr %4, align 8
%32 = load i32, ptr %8, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds ptr, ptr %31, i64 %33
%35 = load ptr, ptr %34, align 8
%36 = call i32 @strlen(ptr noundef %35)
%37 = add nsw i32 %36, 1
store i32 %37, ptr %10, align 4
%38 = load i32, ptr %10, align 4
%39 = zext i32 %38 to i64
%40 = call ptr @llvm.stacksave()
store ptr %40, ptr %11, align 8
%41 = alloca i8, i64 %39, align 16
store i64 %39, ptr %12, align 8
%42 = load ptr, ptr %4, 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 = call i32 @strcpy(ptr noundef %41, ptr noundef %46)
%48 = load ptr, ptr %4, align 8
%49 = load i32, ptr %8, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds ptr, ptr %48, i64 %50
%52 = load ptr, ptr %51, align 8
%53 = load i32, ptr %10, align 4
%54 = call i32 @clean_line(ptr noundef %52, i32 noundef %53)
%55 = load ptr, ptr %9, align 8
%56 = call i32 @strcpy(ptr noundef %55, ptr noundef %41)
%57 = load ptr, ptr %9, align 8
%58 = load ptr, ptr %4, align 8
%59 = load i32, ptr %8, align 4
%60 = sub nsw i32 %59, 1
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds ptr, ptr %58, i64 %61
store ptr %57, ptr %62, align 8
%63 = load ptr, ptr %9, align 8
%64 = load i32, ptr %10, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i8, ptr %63, i64 %65
store ptr %66, ptr %9, align 8
%67 = load ptr, ptr %11, align 8
call void @llvm.stackrestore(ptr %67)
%68 = load i32, ptr %8, align 4
%69 = load i32, ptr %6, align 4
%70 = sub nsw i32 %69, 1
%71 = icmp ne i32 %68, %70
br i1 %71, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %72
72: ; preds = %._crit_edge, %3
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i32 @clean_line(ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @strcpy(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp42bjah0u.c'
source_filename = "/tmp/tmp42bjah0u.c"
target datalayout = "e-m:e-p270: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/tmp42bjah0u.c"
target datalayout = "e-m:e-p270: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/tmpl0tl0q78.c'
source_filename = "/tmp/tmpl0tl0q78.c"
target datalayout = "e-m:e-p270: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.flock = type { i32, i32, i32, ptr, ptr }
@F_GETLK = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [12 x i8] c"fcntl error\00", align 1
@F_UNLCK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @lock_test(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca %struct.flock, align 8
store i32 %0, ptr %7, align 4
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
%13 = load i32, ptr %8, align 4
%14 = getelementptr inbounds %struct.flock, ptr %12, i32 0, i32 0
store i32 %13, ptr %14, align 8
%15 = load ptr, ptr %9, align 8
%16 = load ptr, ptr %15, align 8
%17 = getelementptr inbounds %struct.flock, ptr %12, i32 0, i32 4
store ptr %16, ptr %17, align 8
%18 = load ptr, ptr %10, align 8
%19 = load i32, ptr %18, align 4
%20 = getelementptr inbounds %struct.flock, ptr %12, i32 0, i32 1
store i32 %19, ptr %20, align 4
%21 = load ptr, ptr %11, align 8
%22 = load ptr, ptr %21, align 8
%23 = getelementptr inbounds %struct.flock, ptr %12, i32 0, i32 3
store ptr %22, ptr %23, align 8
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr @F_GETLK, align 4
%26 = call i64 @fcntl(i32 noundef %24, i32 noundef %25, ptr noundef %12)
%27 = icmp slt i64 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %5
%29 = call i32 @err_sys(ptr noundef @.str)
br label %30
30: ; preds = %28, %5
%31 = getelementptr inbounds %struct.flock, ptr %12, i32 0, i32 0
%32 = load i32, ptr %31, align 8
%33 = load i32, ptr @F_UNLCK, align 4
%34 = icmp eq i32 %32, %33
br i1 %34, label %35, label %36
35: ; preds = %30
store i32 0, ptr %6, align 4
br label %48
36: ; preds = %30
%37 = getelementptr inbounds %struct.flock, ptr %12, i32 0, i32 4
%38 = load ptr, ptr %37, align 8
%39 = load ptr, ptr %9, align 8
store ptr %38, ptr %39, align 8
%40 = getelementptr inbounds %struct.flock, ptr %12, i32 0, i32 1
%41 = load i32, ptr %40, align 4
%42 = load ptr, ptr %10, align 8
store i32 %41, ptr %42, align 4
%43 = getelementptr inbounds %struct.flock, ptr %12, i32 0, i32 3
%44 = load ptr, ptr %43, align 8
%45 = load ptr, ptr %11, align 8
store ptr %44, ptr %45, align 8
%46 = getelementptr inbounds %struct.flock, ptr %12, i32 0, i32 2
%47 = load i32, ptr %46, align 8
store i32 %47, ptr %6, align 4
br label %48
48: ; preds = %36, %35
%49 = load i32, ptr %6, align 4
ret i32 %49
}
declare i64 @fcntl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @err_sys(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl0tl0q78.c"
target datalayout = "e-m:e-p270: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.flock = type { i32, i32, i32, ptr, ptr }
@F_GETLK = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [12 x i8] c"fcntl error\00", align 1
@F_UNLCK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @lock_test(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca %struct.flock, align 8
store i32 %0, ptr %7, align 4
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
%13 = load i32, ptr %8, align 4
%14 = getelementptr inbounds %struct.flock, ptr %12, i32 0, i32 0
store i32 %13, ptr %14, align 8
%15 = load ptr, ptr %9, align 8
%16 = load ptr, ptr %15, align 8
%17 = getelementptr inbounds %struct.flock, ptr %12, i32 0, i32 4
store ptr %16, ptr %17, align 8
%18 = load ptr, ptr %10, align 8
%19 = load i32, ptr %18, align 4
%20 = getelementptr inbounds %struct.flock, ptr %12, i32 0, i32 1
store i32 %19, ptr %20, align 4
%21 = load ptr, ptr %11, align 8
%22 = load ptr, ptr %21, align 8
%23 = getelementptr inbounds %struct.flock, ptr %12, i32 0, i32 3
store ptr %22, ptr %23, align 8
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr @F_GETLK, align 4
%26 = call i64 @fcntl(i32 noundef %24, i32 noundef %25, ptr noundef %12)
%27 = icmp slt i64 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %5
%29 = call i32 @err_sys(ptr noundef @.str)
br label %30
30: ; preds = %28, %5
%31 = getelementptr inbounds %struct.flock, ptr %12, i32 0, i32 0
%32 = load i32, ptr %31, align 8
%33 = load i32, ptr @F_UNLCK, align 4
%34 = icmp eq i32 %32, %33
br i1 %34, label %35, label %36
35: ; preds = %30
store i32 0, ptr %6, align 4
br label %48
36: ; preds = %30
%37 = getelementptr inbounds %struct.flock, ptr %12, i32 0, i32 4
%38 = load ptr, ptr %37, align 8
%39 = load ptr, ptr %9, align 8
store ptr %38, ptr %39, align 8
%40 = getelementptr inbounds %struct.flock, ptr %12, i32 0, i32 1
%41 = load i32, ptr %40, align 4
%42 = load ptr, ptr %10, align 8
store i32 %41, ptr %42, align 4
%43 = getelementptr inbounds %struct.flock, ptr %12, i32 0, i32 3
%44 = load ptr, ptr %43, align 8
%45 = load ptr, ptr %11, align 8
store ptr %44, ptr %45, align 8
%46 = getelementptr inbounds %struct.flock, ptr %12, i32 0, i32 2
%47 = load i32, ptr %46, align 8
store i32 %47, ptr %6, align 4
br label %48
48: ; preds = %36, %35
%49 = load i32, ptr %6, align 4
ret i32 %49
}
declare i64 @fcntl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @err_sys(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp198tetkz.c'
source_filename = "/tmp/tmp198tetkz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"SIGINT recieved.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sigint_handler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp198tetkz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"SIGINT recieved.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sigint_handler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv3vtav6s.c'
source_filename = "/tmp/tmpv3vtav6s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CHAR_BIT = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @reverse_bit_i(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
store i32 %5, ptr %3, align 4
%6 = load i32, ptr @CHAR_BIT, align 4
%7 = sext i32 %6 to i64
%8 = mul i64 4, %7
%9 = sub i64 %8, 1
%10 = trunc i64 %9 to i32
store i32 %10, ptr %4, align 4
%11 = load i32, ptr %2, align 4
%12 = lshr i32 %11, 1
store i32 %12, ptr %2, align 4
br label %13
13: ; preds = %25, %1
%14 = load i32, ptr %2, align 4
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %28
16: ; preds = %13
%17 = load i32, ptr %3, align 4
%18 = shl i32 %17, 1
store i32 %18, ptr %3, align 4
%19 = load i32, ptr %2, align 4
%20 = and i32 %19, 1
%21 = load i32, ptr %3, align 4
%22 = or i32 %21, %20
store i32 %22, ptr %3, align 4
%23 = load i32, ptr %4, align 4
%24 = add nsw i32 %23, -1
store i32 %24, ptr %4, align 4
br label %25
25: ; preds = %16
%26 = load i32, ptr %2, align 4
%27 = lshr i32 %26, 1
store i32 %27, ptr %2, align 4
br label %13, !llvm.loop !6
28: ; preds = %13
%29 = load i32, ptr %4, align 4
%30 = load i32, ptr %3, align 4
%31 = shl i32 %30, %29
store i32 %31, ptr %3, align 4
%32 = load i32, ptr %3, align 4
ret i32 %32
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpv3vtav6s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CHAR_BIT = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @reverse_bit_i(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
store i32 %5, ptr %3, align 4
%6 = load i32, ptr @CHAR_BIT, align 4
%7 = sext i32 %6 to i64
%8 = mul i64 4, %7
%9 = sub i64 %8, 1
%10 = trunc i64 %9 to i32
store i32 %10, ptr %4, align 4
%11 = load i32, ptr %2, align 4
%12 = lshr i32 %11, 1
store i32 %12, ptr %2, align 4
%13 = load i32, ptr %2, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %.lr.ph, label %29
.lr.ph: ; preds = %1
br label %15
15: ; preds = %.lr.ph, %24
%16 = load i32, ptr %3, align 4
%17 = shl i32 %16, 1
store i32 %17, ptr %3, align 4
%18 = load i32, ptr %2, align 4
%19 = and i32 %18, 1
%20 = load i32, ptr %3, align 4
%21 = or i32 %20, %19
store i32 %21, ptr %3, align 4
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, -1
store i32 %23, ptr %4, align 4
br label %24
24: ; preds = %15
%25 = load i32, ptr %2, align 4
%26 = lshr i32 %25, 1
store i32 %26, ptr %2, align 4
%27 = load i32, ptr %2, align 4
%28 = icmp ne i32 %27, 0
br i1 %28, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %29
29: ; preds = %._crit_edge, %1
%30 = load i32, ptr %4, align 4
%31 = load i32, ptr %3, align 4
%32 = shl i32 %31, %30
store i32 %32, ptr %3, align 4
%33 = load i32, ptr %3, align 4
ret i32 %33
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpfxe2xgzf.c'
source_filename = "/tmp/tmpfxe2xgzf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @test_memory_old()
%3 = call i32 (...) @test_memory_new()
ret i32 0
}
declare i32 @test_memory_old(...) #1
declare i32 @test_memory_new(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfxe2xgzf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @test_memory_old()
%3 = call i32 (...) @test_memory_new()
ret i32 0
}
declare i32 @test_memory_old(...) #1
declare i32 @test_memory_new(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpn0kapaat.c'
source_filename = "/tmp/tmpn0kapaat.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIG_SETMASK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sighold(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%5 = load i32, ptr @SIG_SETMASK, align 4
%6 = call i32 @__sigprocmask(i32 noundef %5, ptr noundef null, ptr noundef %4)
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 -1, ptr %2, align 4
br label %17
9: ; preds = %1
%10 = load i32, ptr %3, align 4
%11 = call i64 @sigaddset(ptr noundef %4, i32 noundef %10)
%12 = icmp slt i64 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %9
store i32 -1, ptr %2, align 4
br label %17
14: ; preds = %9
%15 = load i32, ptr @SIG_SETMASK, align 4
%16 = call i32 @__sigprocmask(i32 noundef %15, ptr noundef %4, ptr noundef null)
store i32 %16, ptr %2, align 4
br label %17
17: ; preds = %14, %13, %8
%18 = load i32, ptr %2, align 4
ret i32 %18
}
declare i32 @__sigprocmask(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @sigaddset(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/tmpn0kapaat.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIG_SETMASK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sighold(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%5 = load i32, ptr @SIG_SETMASK, align 4
%6 = call i32 @__sigprocmask(i32 noundef %5, ptr noundef null, ptr noundef %4)
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 -1, ptr %2, align 4
br label %17
9: ; preds = %1
%10 = load i32, ptr %3, align 4
%11 = call i64 @sigaddset(ptr noundef %4, i32 noundef %10)
%12 = icmp slt i64 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %9
store i32 -1, ptr %2, align 4
br label %17
14: ; preds = %9
%15 = load i32, ptr @SIG_SETMASK, align 4
%16 = call i32 @__sigprocmask(i32 noundef %15, ptr noundef %4, ptr noundef null)
store i32 %16, ptr %2, align 4
br label %17
17: ; preds = %14, %13, %8
%18 = load i32, ptr %2, align 4
ret i32 %18
}
declare i32 @__sigprocmask(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @sigaddset(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/tmp098vvts8.c'
source_filename = "/tmp/tmp098vvts8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @n32016_init() #0 {
%1 = call i32 (...) @init_ram()
ret void
}
declare i32 @init_ram(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp098vvts8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @n32016_init() #0 {
%1 = call i32 (...) @init_ram()
ret void
}
declare i32 @init_ram(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1ayyr1de.c'
source_filename = "/tmp/tmp1ayyr1de.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@_SC_PAGE_SIZE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @alloc_execmem(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store i32 %0, ptr %2, align 4
%6 = load i32, ptr @_SC_PAGE_SIZE, align 4
%7 = call i64 @sysconf(i32 noundef %6)
store i64 %7, ptr %4, align 8
%8 = load i32, ptr %2, align 4
%9 = sext i32 %8 to i64
%10 = load i64, ptr %4, align 8
%11 = add nsw i64 %9, %10
%12 = trunc i64 %11 to i32
%13 = call ptr @malloc(i32 noundef %12)
store ptr %13, ptr %3, align 8
%14 = load ptr, ptr %3, align 8
%15 = ptrtoint ptr %14 to i64
store i64 %15, ptr %5, align 8
%16 = load i64, ptr %5, align 8
%17 = load i64, ptr %4, align 8
%18 = urem i64 %16, %17
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %1
%21 = load i64, ptr %4, align 8
br label %28
22: ; preds = %1
%23 = load i64, ptr %4, align 8
%24 = load i64, ptr %5, align 8
%25 = load i64, ptr %4, align 8
%26 = urem i64 %24, %25
%27 = sub i64 %23, %26
br label %28
28: ; preds = %22, %20
%29 = phi i64 [ %21, %20 ], [ %27, %22 ]
%30 = load i64, ptr %5, align 8
%31 = add i64 %30, %29
store i64 %31, ptr %5, align 8
%32 = load i64, ptr %5, align 8
%33 = inttoptr i64 %32 to ptr
store ptr %33, ptr %3, align 8
%34 = load ptr, ptr %3, align 8
%35 = icmp eq ptr %34, null
br i1 %35, label %36, label %38
36: ; preds = %28
%37 = call i32 @exit(i32 noundef 17) #3
unreachable
38: ; preds = %28
%39 = load ptr, ptr %3, align 8
ret ptr %39
}
declare i64 @sysconf(i32 noundef) #1
declare ptr @malloc(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/tmp1ayyr1de.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@_SC_PAGE_SIZE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @alloc_execmem(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store i32 %0, ptr %2, align 4
%6 = load i32, ptr @_SC_PAGE_SIZE, align 4
%7 = call i64 @sysconf(i32 noundef %6)
store i64 %7, ptr %4, align 8
%8 = load i32, ptr %2, align 4
%9 = sext i32 %8 to i64
%10 = load i64, ptr %4, align 8
%11 = add nsw i64 %9, %10
%12 = trunc i64 %11 to i32
%13 = call ptr @malloc(i32 noundef %12)
store ptr %13, ptr %3, align 8
%14 = load ptr, ptr %3, align 8
%15 = ptrtoint ptr %14 to i64
store i64 %15, ptr %5, align 8
%16 = load i64, ptr %5, align 8
%17 = load i64, ptr %4, align 8
%18 = urem i64 %16, %17
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %1
%21 = load i64, ptr %4, align 8
br label %28
22: ; preds = %1
%23 = load i64, ptr %4, align 8
%24 = load i64, ptr %5, align 8
%25 = load i64, ptr %4, align 8
%26 = urem i64 %24, %25
%27 = sub i64 %23, %26
br label %28
28: ; preds = %22, %20
%29 = phi i64 [ %21, %20 ], [ %27, %22 ]
%30 = load i64, ptr %5, align 8
%31 = add i64 %30, %29
store i64 %31, ptr %5, align 8
%32 = load i64, ptr %5, align 8
%33 = inttoptr i64 %32 to ptr
store ptr %33, ptr %3, align 8
%34 = load ptr, ptr %3, align 8
%35 = icmp eq ptr %34, null
br i1 %35, label %36, label %38
36: ; preds = %28
%37 = call i32 @exit(i32 noundef 17) #3
unreachable
38: ; preds = %28
%39 = load ptr, ptr %3, align 8
ret ptr %39
}
declare i64 @sysconf(i32 noundef) #1
declare ptr @malloc(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/tmpda8lg3um.c'
source_filename = "/tmp/tmpda8lg3um.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@demo_autofade.mode = internal global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @demo_autofade() #0 {
%1 = load i32, ptr @demo_autofade.mode, align 4
%2 = add nsw i32 %1, 1
store i32 %2, ptr @demo_autofade.mode, align 4
switch i32 %1, label %3 [
i32 0, label %4
i32 1, label %6
]
3: ; preds = %0
store i32 1, ptr @demo_autofade.mode, align 4
br label %4
4: ; preds = %0, %3
%5 = call i32 @FS460_autofade(i32 noundef 127, i32 noundef 0, i32 noundef 2000)
br label %8
6: ; preds = %0
%7 = call i32 @FS460_autofade(i32 noundef 0, i32 noundef 127, i32 noundef 2000)
br label %8
8: ; preds = %6, %4
ret void
}
declare i32 @FS460_autofade(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpda8lg3um.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@demo_autofade.mode = internal global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @demo_autofade() #0 {
%1 = load i32, ptr @demo_autofade.mode, align 4
%2 = add nsw i32 %1, 1
store i32 %2, ptr @demo_autofade.mode, align 4
switch i32 %1, label %3 [
i32 0, label %4
i32 1, label %6
]
3: ; preds = %0
store i32 1, ptr @demo_autofade.mode, align 4
br label %4
4: ; preds = %3, %0
%5 = call i32 @FS460_autofade(i32 noundef 127, i32 noundef 0, i32 noundef 2000)
br label %8
6: ; preds = %0
%7 = call i32 @FS460_autofade(i32 noundef 0, i32 noundef 127, i32 noundef 2000)
br label %8
8: ; preds = %6, %4
ret void
}
declare i32 @FS460_autofade(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyz9382i6.c'
source_filename = "/tmp/tmpyz9382i6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [47 x i8] c"\09\09 ========== Calculadora de Volume ==========\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"\0ADigite o s\C3\B3lido: \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"cilindro\00", align 1
@.str.4 = private unnamed_addr constant [18 x i8] c"\0AObjeto inv\C3\A1lido\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [19 x i8], align 16
store i32 0, ptr %1, align 4
%3 = call i32 @printf(ptr noundef @.str)
br label %4
4: ; preds = %0, %16
%5 = call i32 @printf(ptr noundef @.str.1)
%6 = getelementptr inbounds [19 x i8], ptr %2, i64 0, i64 0
%7 = load i32, ptr @stdin, align 4
%8 = call i32 @fgets(ptr noundef %6, i32 noundef 18, i32 noundef %7)
%9 = getelementptr inbounds [19 x i8], ptr %2, i64 0, i64 0
%10 = call i64 @strcspn(ptr noundef %9, ptr noundef @.str.2)
%11 = getelementptr inbounds [19 x i8], ptr %2, i64 0, i64 %10
store i8 0, ptr %11, align 1
%12 = getelementptr inbounds [19 x i8], ptr %2, i64 0, i64 0
%13 = call i64 @strcmp(ptr noundef %12, ptr noundef @.str.3)
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %4
br label %18
16: ; preds = %4
%17 = call i32 @printf(ptr noundef @.str.4)
br label %4
18: ; preds = %15
%19 = load i32, ptr %1, align 4
ret i32 %19
}
declare i32 @printf(ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @strcspn(ptr noundef, ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyz9382i6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [47 x i8] c"\09\09 ========== Calculadora de Volume ==========\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"\0ADigite o s\C3\B3lido: \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"cilindro\00", align 1
@.str.4 = private unnamed_addr constant [18 x i8] c"\0AObjeto inv\C3\A1lido\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [19 x i8], align 16
store i32 0, ptr %1, align 4
%3 = call i32 @printf(ptr noundef @.str)
br label %4
4: ; preds = %16, %0
%5 = call i32 @printf(ptr noundef @.str.1)
%6 = getelementptr inbounds [19 x i8], ptr %2, i64 0, i64 0
%7 = load i32, ptr @stdin, align 4
%8 = call i32 @fgets(ptr noundef %6, i32 noundef 18, i32 noundef %7)
%9 = getelementptr inbounds [19 x i8], ptr %2, i64 0, i64 0
%10 = call i64 @strcspn(ptr noundef %9, ptr noundef @.str.2)
%11 = getelementptr inbounds [19 x i8], ptr %2, i64 0, i64 %10
store i8 0, ptr %11, align 1
%12 = getelementptr inbounds [19 x i8], ptr %2, i64 0, i64 0
%13 = call i64 @strcmp(ptr noundef %12, ptr noundef @.str.3)
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %4
br label %18
16: ; preds = %4
%17 = call i32 @printf(ptr noundef @.str.4)
br label %4
18: ; preds = %15
%19 = load i32, ptr %1, align 4
ret i32 %19
}
declare i32 @printf(ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @strcspn(ptr noundef, ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgxucr4s1.c'
source_filename = "/tmp/tmpgxucr4s1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @s_high(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca i32, align 4
store double %0, ptr %2, align 8
store double 0.000000e+00, ptr %3, align 8
store double 0.000000e+00, ptr %4, align 8
store double 1.000000e+00, ptr %5, align 8
%7 = load double, ptr %2, align 8
%8 = call i64 @floor(double noundef %7)
%9 = sitofp i64 %8 to double
%10 = load double, ptr %2, align 8
%11 = fsub double %10, %9
store double %11, ptr %2, align 8
store i32 0, ptr %6, align 4
br label %12
12: ; preds = %36, %1
%13 = load i32, ptr %6, align 4
%14 = icmp slt i32 %13, 48
br i1 %14, label %15, label %39
15: ; preds = %12
%16 = load double, ptr %2, align 8
%17 = load double, ptr %4, align 8
%18 = fadd double %17, %16
store double %18, ptr %4, align 8
%19 = load double, ptr %5, align 8
%20 = fdiv double %19, 2.000000e+00
store double %20, ptr %5, align 8
%21 = load double, ptr %4, align 8
%22 = fcmp oge double %21, 1.000000e+00
br i1 %22, label %23, label %26
23: ; preds = %15
%24 = load double, ptr %4, align 8
%25 = fsub double %24, 1.000000e+00
store double %25, ptr %4, align 8
br label %26
26: ; preds = %23, %15
%27 = load double, ptr %4, align 8
%28 = load double, ptr %2, align 8
%29 = fadd double %27, %28
%30 = fcmp oge double %29, 1.000000e+00
br i1 %30, label %31, label %35
31: ; preds = %26
%32 = load double, ptr %5, align 8
%33 = load double, ptr %3, align 8
%34 = fadd double %33, %32
store double %34, ptr %3, align 8
br label %35
35: ; preds = %31, %26
br label %36
36: ; preds = %35
%37 = load i32, ptr %6, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %6, align 4
br label %12, !llvm.loop !6
39: ; preds = %12
%40 = load double, ptr %3, align 8
ret double %40
}
declare i64 @floor(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgxucr4s1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @s_high(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca i32, align 4
store double %0, ptr %2, align 8
store double 0.000000e+00, ptr %3, align 8
store double 0.000000e+00, ptr %4, align 8
store double 1.000000e+00, ptr %5, align 8
%7 = load double, ptr %2, align 8
%8 = call i64 @floor(double noundef %7)
%9 = sitofp i64 %8 to double
%10 = load double, ptr %2, align 8
%11 = fsub double %10, %9
store double %11, ptr %2, align 8
store i32 0, ptr %6, align 4
%12 = load i32, ptr %6, align 4
%13 = icmp slt i32 %12, 48
br i1 %13, label %.lr.ph, label %40
.lr.ph: ; preds = %1
br label %14
14: ; preds = %.lr.ph, %35
%15 = load double, ptr %2, align 8
%16 = load double, ptr %4, align 8
%17 = fadd double %16, %15
store double %17, ptr %4, align 8
%18 = load double, ptr %5, align 8
%19 = fdiv double %18, 2.000000e+00
store double %19, ptr %5, align 8
%20 = load double, ptr %4, align 8
%21 = fcmp oge double %20, 1.000000e+00
br i1 %21, label %22, label %25
22: ; preds = %14
%23 = load double, ptr %4, align 8
%24 = fsub double %23, 1.000000e+00
store double %24, ptr %4, align 8
br label %25
25: ; preds = %22, %14
%26 = load double, ptr %4, align 8
%27 = load double, ptr %2, align 8
%28 = fadd double %26, %27
%29 = fcmp oge double %28, 1.000000e+00
br i1 %29, label %30, label %34
30: ; preds = %25
%31 = load double, ptr %5, align 8
%32 = load double, ptr %3, align 8
%33 = fadd double %32, %31
store double %33, ptr %3, align 8
br label %34
34: ; preds = %30, %25
br label %35
35: ; preds = %34
%36 = load i32, ptr %6, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %6, align 4
%38 = load i32, ptr %6, align 4
%39 = icmp slt i32 %38, 48
br i1 %39, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %35
br label %40
40: ; preds = %._crit_edge, %1
%41 = load double, ptr %3, align 8
ret double %41
}
declare i64 @floor(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp5ad01bbx.c'
source_filename = "/tmp/tmp5ad01bbx.c"
target datalayout = "e-m:e-p270: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/tmp5ad01bbx.c"
target datalayout = "e-m:e-p270: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/tmpnoro7su4.c'
source_filename = "/tmp/tmpnoro7su4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [13 x i8] c"BAD ARGUMENT\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"MALLOC_FAILED\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cmd_mvinchnstr(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%9 = load i32, ptr %3, align 4
%10 = call i32 @check_arg_count(i32 noundef %9, i32 noundef 3)
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %13
12: ; preds = %2
br label %63
13: ; preds = %2
%14 = load ptr, ptr %4, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 0
%16 = load ptr, ptr %15, align 8
%17 = call i64 @sscanf(ptr noundef %16, ptr noundef @.str, ptr noundef %5)
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %13
%20 = call i32 @report_count(i32 noundef 1)
%21 = call i32 @report_error(ptr noundef @.str.1)
br label %63
22: ; preds = %13
%23 = load ptr, ptr %4, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 1
%25 = load ptr, ptr %24, align 8
%26 = call i64 @sscanf(ptr noundef %25, ptr noundef @.str, ptr noundef %6)
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %31
28: ; preds = %22
%29 = call i32 @report_count(i32 noundef 1)
%30 = call i32 @report_error(ptr noundef @.str.1)
br label %63
31: ; preds = %22
%32 = load ptr, ptr %4, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 2
%34 = load ptr, ptr %33, align 8
%35 = call i64 @sscanf(ptr noundef %34, ptr noundef @.str, ptr noundef %7)
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %31
%38 = call i32 @report_count(i32 noundef 1)
%39 = call i32 @report_error(ptr noundef @.str.1)
br label %63
40: ; preds = %31
%41 = load i32, ptr %7, align 4
%42 = add nsw i32 %41, 1
%43 = sext i32 %42 to i64
%44 = mul i64 %43, 4
%45 = trunc i64 %44 to i32
%46 = call ptr @malloc(i32 noundef %45)
store ptr %46, ptr %8, align 8
%47 = icmp eq ptr %46, null
br i1 %47, label %48, label %51
48: ; preds = %40
%49 = call i32 @report_count(i32 noundef 1)
%50 = call i32 @report_error(ptr noundef @.str.2)
br label %63
51: ; preds = %40
%52 = call i32 @report_count(i32 noundef 2)
%53 = load i32, ptr %5, align 4
%54 = load i32, ptr %6, align 4
%55 = load ptr, ptr %8, align 8
%56 = load i32, ptr %7, align 4
%57 = call i32 @mvinchnstr(i32 noundef %53, i32 noundef %54, ptr noundef %55, i32 noundef %56)
%58 = call i32 @report_return(i32 noundef %57)
%59 = load ptr, ptr %8, align 8
%60 = call i32 @report_nstr(ptr noundef %59)
%61 = load ptr, ptr %8, align 8
%62 = call i32 @free(ptr noundef %61)
br label %63
63: ; preds = %51, %48, %37, %28, %19, %12
ret void
}
declare i32 @check_arg_count(i32 noundef, i32 noundef) #1
declare i64 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @report_count(i32 noundef) #1
declare i32 @report_error(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @report_return(i32 noundef) #1
declare i32 @mvinchnstr(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @report_nstr(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/tmpnoro7su4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [13 x i8] c"BAD ARGUMENT\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"MALLOC_FAILED\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cmd_mvinchnstr(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%9 = load i32, ptr %3, align 4
%10 = call i32 @check_arg_count(i32 noundef %9, i32 noundef 3)
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %13
12: ; preds = %2
br label %63
13: ; preds = %2
%14 = load ptr, ptr %4, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 0
%16 = load ptr, ptr %15, align 8
%17 = call i64 @sscanf(ptr noundef %16, ptr noundef @.str, ptr noundef %5)
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %13
%20 = call i32 @report_count(i32 noundef 1)
%21 = call i32 @report_error(ptr noundef @.str.1)
br label %63
22: ; preds = %13
%23 = load ptr, ptr %4, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 1
%25 = load ptr, ptr %24, align 8
%26 = call i64 @sscanf(ptr noundef %25, ptr noundef @.str, ptr noundef %6)
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %31
28: ; preds = %22
%29 = call i32 @report_count(i32 noundef 1)
%30 = call i32 @report_error(ptr noundef @.str.1)
br label %63
31: ; preds = %22
%32 = load ptr, ptr %4, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 2
%34 = load ptr, ptr %33, align 8
%35 = call i64 @sscanf(ptr noundef %34, ptr noundef @.str, ptr noundef %7)
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %31
%38 = call i32 @report_count(i32 noundef 1)
%39 = call i32 @report_error(ptr noundef @.str.1)
br label %63
40: ; preds = %31
%41 = load i32, ptr %7, align 4
%42 = add nsw i32 %41, 1
%43 = sext i32 %42 to i64
%44 = mul i64 %43, 4
%45 = trunc i64 %44 to i32
%46 = call ptr @malloc(i32 noundef %45)
store ptr %46, ptr %8, align 8
%47 = icmp eq ptr %46, null
br i1 %47, label %48, label %51
48: ; preds = %40
%49 = call i32 @report_count(i32 noundef 1)
%50 = call i32 @report_error(ptr noundef @.str.2)
br label %63
51: ; preds = %40
%52 = call i32 @report_count(i32 noundef 2)
%53 = load i32, ptr %5, align 4
%54 = load i32, ptr %6, align 4
%55 = load ptr, ptr %8, align 8
%56 = load i32, ptr %7, align 4
%57 = call i32 @mvinchnstr(i32 noundef %53, i32 noundef %54, ptr noundef %55, i32 noundef %56)
%58 = call i32 @report_return(i32 noundef %57)
%59 = load ptr, ptr %8, align 8
%60 = call i32 @report_nstr(ptr noundef %59)
%61 = load ptr, ptr %8, align 8
%62 = call i32 @free(ptr noundef %61)
br label %63
63: ; preds = %51, %48, %37, %28, %19, %12
ret void
}
declare i32 @check_arg_count(i32 noundef, i32 noundef) #1
declare i64 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @report_count(i32 noundef) #1
declare i32 @report_error(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @report_return(i32 noundef) #1
declare i32 @mvinchnstr(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @report_nstr(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/tmp_8wpabua.c'
source_filename = "/tmp/tmp_8wpabua.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_8wpabua.c"
target datalayout = "e-m:e-p270: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/tmp6d18n7yw.c'
source_filename = "/tmp/tmp6d18n7yw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @disk_read(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%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 [512 x i8], align 16
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%15 = load i32, ptr %7, align 4
%16 = load i32, ptr %8, align 4
%17 = add nsw i32 %15, %16
%18 = sdiv i32 %17, 512
store i32 %18, ptr %9, align 4
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %8, align 4
%21 = add nsw i32 %19, %20
%22 = srem i32 %21, 512
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %4
%25 = load i32, ptr %9, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %9, align 4
br label %27
27: ; preds = %24, %4
store i32 0, ptr %13, align 4
store i32 0, ptr %10, align 4
br label %28
28: ; preds = %73, %27
%29 = load i32, ptr %10, align 4
%30 = load i32, ptr %9, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %32, label %76
32: ; preds = %28
%33 = getelementptr inbounds [512 x i8], ptr %11, i64 0, i64 0
%34 = load i32, ptr %6, align 4
%35 = load i32, ptr %10, align 4
%36 = add nsw i32 %34, %35
%37 = call i32 @ata_read(i32 noundef 0, ptr noundef %33, i32 noundef 1, i32 noundef %36)
%38 = load i32, ptr %10, align 4
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %42
40: ; preds = %32
%41 = load i32, ptr %7, align 4
br label %43
42: ; preds = %32
br label %43
43: ; preds = %42, %40
%44 = phi i32 [ %41, %40 ], [ 0, %42 ]
store i32 %44, ptr %12, align 4
%45 = load i32, ptr %8, align 4
%46 = load i32, ptr %13, align 4
%47 = sub nsw i32 %45, %46
%48 = load i32, ptr %12, align 4
%49 = add nsw i32 %47, %48
%50 = icmp sgt i32 %49, 512
br i1 %50, label %51, label %54
51: ; preds = %43
%52 = load i32, ptr %12, align 4
%53 = sub nsw i32 512, %52
br label %58
54: ; preds = %43
%55 = load i32, ptr %8, align 4
%56 = load i32, ptr %13, align 4
%57 = sub nsw i32 %55, %56
br label %58
58: ; preds = %54, %51
%59 = phi i32 [ %53, %51 ], [ %57, %54 ]
store i32 %59, ptr %14, align 4
%60 = load ptr, ptr %5, align 8
%61 = load i32, ptr %13, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i8, ptr %60, i64 %62
%64 = getelementptr inbounds [512 x i8], ptr %11, i64 0, i64 0
%65 = load i32, ptr %12, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i8, ptr %64, i64 %66
%68 = load i32, ptr %14, align 4
%69 = call i32 @memcpy(ptr noundef %63, ptr noundef %67, i32 noundef %68)
%70 = load i32, ptr %14, align 4
%71 = load i32, ptr %13, align 4
%72 = add nsw i32 %71, %70
store i32 %72, ptr %13, align 4
br label %73
73: ; preds = %58
%74 = load i32, ptr %10, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %10, align 4
br label %28, !llvm.loop !6
76: ; preds = %28
%77 = load i32, ptr %13, align 4
ret i32 %77
}
declare i32 @ata_read(i32 noundef, ptr noundef, i32 noundef, 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6d18n7yw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @disk_read(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%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 [512 x i8], align 16
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%15 = load i32, ptr %7, align 4
%16 = load i32, ptr %8, align 4
%17 = add nsw i32 %15, %16
%18 = sdiv i32 %17, 512
store i32 %18, ptr %9, align 4
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %8, align 4
%21 = add nsw i32 %19, %20
%22 = srem i32 %21, 512
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %4
%25 = load i32, ptr %9, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %9, align 4
br label %27
27: ; preds = %24, %4
store i32 0, ptr %13, align 4
store i32 0, ptr %10, align 4
%28 = load i32, ptr %10, align 4
%29 = load i32, ptr %9, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %.lr.ph, label %78
.lr.ph: ; preds = %27
br label %31
31: ; preds = %.lr.ph, %72
%32 = getelementptr inbounds [512 x i8], ptr %11, i64 0, i64 0
%33 = load i32, ptr %6, align 4
%34 = load i32, ptr %10, align 4
%35 = add nsw i32 %33, %34
%36 = call i32 @ata_read(i32 noundef 0, ptr noundef %32, i32 noundef 1, i32 noundef %35)
%37 = load i32, ptr %10, align 4
%38 = icmp eq i32 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %31
%40 = load i32, ptr %7, align 4
br label %42
41: ; preds = %31
br label %42
42: ; preds = %41, %39
%43 = phi i32 [ %40, %39 ], [ 0, %41 ]
store i32 %43, ptr %12, align 4
%44 = load i32, ptr %8, align 4
%45 = load i32, ptr %13, align 4
%46 = sub nsw i32 %44, %45
%47 = load i32, ptr %12, align 4
%48 = add nsw i32 %46, %47
%49 = icmp sgt i32 %48, 512
br i1 %49, label %50, label %53
50: ; preds = %42
%51 = load i32, ptr %12, align 4
%52 = sub nsw i32 512, %51
br label %57
53: ; preds = %42
%54 = load i32, ptr %8, align 4
%55 = load i32, ptr %13, align 4
%56 = sub nsw i32 %54, %55
br label %57
57: ; preds = %53, %50
%58 = phi i32 [ %52, %50 ], [ %56, %53 ]
store i32 %58, ptr %14, align 4
%59 = load ptr, ptr %5, align 8
%60 = load i32, ptr %13, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i8, ptr %59, i64 %61
%63 = getelementptr inbounds [512 x i8], ptr %11, i64 0, i64 0
%64 = load i32, ptr %12, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i8, ptr %63, i64 %65
%67 = load i32, ptr %14, align 4
%68 = call i32 @memcpy(ptr noundef %62, ptr noundef %66, i32 noundef %67)
%69 = load i32, ptr %14, align 4
%70 = load i32, ptr %13, align 4
%71 = add nsw i32 %70, %69
store i32 %71, ptr %13, align 4
br label %72
72: ; preds = %57
%73 = load i32, ptr %10, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %10, align 4
%75 = load i32, ptr %10, align 4
%76 = load i32, ptr %9, align 4
%77 = icmp slt i32 %75, %76
br i1 %77, label %31, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %72
br label %78
78: ; preds = %._crit_edge, %27
%79 = load i32, ptr %13, align 4
ret i32 %79
}
declare i32 @ata_read(i32 noundef, ptr noundef, i32 noundef, 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpmf1r9bk8.c'
source_filename = "/tmp/tmpmf1r9bk8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @char2hex(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca i8, align 1
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds i8, ptr %6, i64 0
%8 = load i8, ptr %7, align 1
%9 = call signext i8 @tolower(i8 noundef signext %8)
store i8 %9, ptr %4, align 1
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds i8, ptr %10, i64 1
%12 = load i8, ptr %11, align 1
%13 = call signext i8 @tolower(i8 noundef signext %12)
store i8 %13, ptr %5, align 1
%14 = load i8, ptr %5, align 1
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %32
17: ; preds = %1
%18 = load i8, ptr %4, align 1
%19 = sext i8 %18 to i32
%20 = icmp sge i32 %19, 97
br i1 %20, label %21, label %26
21: ; preds = %17
%22 = load i8, ptr %4, align 1
%23 = sext i8 %22 to i32
%24 = sub nsw i32 %23, 97
%25 = add nsw i32 10, %24
br label %30
26: ; preds = %17
%27 = load i8, ptr %4, align 1
%28 = sext i8 %27 to i32
%29 = sub nsw i32 %28, 48
br label %30
30: ; preds = %26, %21
%31 = phi i32 [ %25, %21 ], [ %29, %26 ]
store i32 %31, ptr %2, align 4
br label %63
32: ; preds = %1
%33 = load i8, ptr %4, align 1
%34 = sext i8 %33 to i32
%35 = icmp sge i32 %34, 97
br i1 %35, label %36, label %41
36: ; preds = %32
%37 = load i8, ptr %4, align 1
%38 = sext i8 %37 to i32
%39 = sub nsw i32 %38, 97
%40 = add nsw i32 10, %39
br label %45
41: ; preds = %32
%42 = load i8, ptr %4, align 1
%43 = sext i8 %42 to i32
%44 = sub nsw i32 %43, 48
br label %45
45: ; preds = %41, %36
%46 = phi i32 [ %40, %36 ], [ %44, %41 ]
%47 = mul nsw i32 16, %46
%48 = load i8, ptr %5, align 1
%49 = sext i8 %48 to i32
%50 = icmp sge i32 %49, 97
br i1 %50, label %51, label %56
51: ; preds = %45
%52 = load i8, ptr %5, align 1
%53 = sext i8 %52 to i32
%54 = sub nsw i32 %53, 97
%55 = add nsw i32 10, %54
br label %60
56: ; preds = %45
%57 = load i8, ptr %5, align 1
%58 = sext i8 %57 to i32
%59 = sub nsw i32 %58, 48
br label %60
60: ; preds = %56, %51
%61 = phi i32 [ %55, %51 ], [ %59, %56 ]
%62 = add nsw i32 %47, %61
store i32 %62, ptr %2, align 4
br label %63
63: ; preds = %60, %30
%64 = load i32, ptr %2, align 4
ret i32 %64
}
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmf1r9bk8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @char2hex(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca i8, align 1
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds i8, ptr %6, i64 0
%8 = load i8, ptr %7, align 1
%9 = call signext i8 @tolower(i8 noundef signext %8)
store i8 %9, ptr %4, align 1
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds i8, ptr %10, i64 1
%12 = load i8, ptr %11, align 1
%13 = call signext i8 @tolower(i8 noundef signext %12)
store i8 %13, ptr %5, align 1
%14 = load i8, ptr %5, align 1
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %32
17: ; preds = %1
%18 = load i8, ptr %4, align 1
%19 = sext i8 %18 to i32
%20 = icmp sge i32 %19, 97
br i1 %20, label %21, label %26
21: ; preds = %17
%22 = load i8, ptr %4, align 1
%23 = sext i8 %22 to i32
%24 = sub nsw i32 %23, 97
%25 = add nsw i32 10, %24
br label %30
26: ; preds = %17
%27 = load i8, ptr %4, align 1
%28 = sext i8 %27 to i32
%29 = sub nsw i32 %28, 48
br label %30
30: ; preds = %26, %21
%31 = phi i32 [ %25, %21 ], [ %29, %26 ]
store i32 %31, ptr %2, align 4
br label %63
32: ; preds = %1
%33 = load i8, ptr %4, align 1
%34 = sext i8 %33 to i32
%35 = icmp sge i32 %34, 97
br i1 %35, label %36, label %41
36: ; preds = %32
%37 = load i8, ptr %4, align 1
%38 = sext i8 %37 to i32
%39 = sub nsw i32 %38, 97
%40 = add nsw i32 10, %39
br label %45
41: ; preds = %32
%42 = load i8, ptr %4, align 1
%43 = sext i8 %42 to i32
%44 = sub nsw i32 %43, 48
br label %45
45: ; preds = %41, %36
%46 = phi i32 [ %40, %36 ], [ %44, %41 ]
%47 = mul nsw i32 16, %46
%48 = load i8, ptr %5, align 1
%49 = sext i8 %48 to i32
%50 = icmp sge i32 %49, 97
br i1 %50, label %51, label %56
51: ; preds = %45
%52 = load i8, ptr %5, align 1
%53 = sext i8 %52 to i32
%54 = sub nsw i32 %53, 97
%55 = add nsw i32 10, %54
br label %60
56: ; preds = %45
%57 = load i8, ptr %5, align 1
%58 = sext i8 %57 to i32
%59 = sub nsw i32 %58, 48
br label %60
60: ; preds = %56, %51
%61 = phi i32 [ %55, %51 ], [ %59, %56 ]
%62 = add nsw i32 %47, %61
store i32 %62, ptr %2, align 4
br label %63
63: ; preds = %60, %30
%64 = load i32, ptr %2, align 4
ret i32 %64
}
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"}
|
; ModuleID = '/tmp/tmppsz_zfo4.c'
source_filename = "/tmp/tmppsz_zfo4.c"
target datalayout = "e-m:e-p270: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 [81 x i8] c"Unabled to open OpenCL Context.\0A OpenCL Support was not enabled at compile time\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @DESBruteForceDecryptCL(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%9 = load i32, ptr @stderr, align 4
%10 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppsz_zfo4.c"
target datalayout = "e-m:e-p270: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 [81 x i8] c"Unabled to open OpenCL Context.\0A OpenCL Support was not enabled at compile time\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @DESBruteForceDecryptCL(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%9 = load i32, ptr @stderr, align 4
%10 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpso7kec5p.c'
source_filename = "/tmp/tmpso7kec5p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @iposix_path_mkdir(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca [1032 x i8], align 16
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%8 = load ptr, ptr %3, align 8
%9 = call i64 @strlen(ptr noundef %8)
%10 = trunc i64 %9 to i32
store i32 %10, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp sgt i32 %11, 1024
br i1 %12, label %13, label %14
13: ; preds = %2
store i32 1024, ptr %6, align 4
br label %14
14: ; preds = %13, %2
%15 = getelementptr inbounds [1032 x i8], ptr %7, i64 0, i64 0
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %6, align 4
%18 = call i32 @memcpy(ptr noundef %15, ptr noundef %16, i32 noundef %17)
%19 = load i32, ptr %6, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [1032 x i8], ptr %7, i64 0, i64 %20
store i8 0, ptr %21, align 1
store i32 0, ptr %5, align 4
br label %22
22: ; preds = %56, %14
%23 = load i32, ptr %5, align 4
%24 = load i32, ptr %6, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %26, label %59
26: ; preds = %22
%27 = load i32, ptr %5, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [1032 x i8], ptr %7, i64 0, i64 %28
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 47
br i1 %32, label %40, label %33
33: ; preds = %26
%34 = load i32, ptr %5, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [1032 x i8], ptr %7, i64 0, i64 %35
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = icmp eq i32 %38, 92
br i1 %39, label %40, label %55
40: ; preds = %33, %26
%41 = load i32, ptr %5, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [1032 x i8], ptr %7, i64 0, i64 %42
store i8 0, ptr %43, align 1
%44 = getelementptr inbounds [1032 x i8], ptr %7, i64 0, i64 0
%45 = call i64 @iposix_access(ptr noundef %44, i32 noundef 0)
%46 = icmp ne i64 %45, 0
br i1 %46, label %47, label %51
47: ; preds = %40
%48 = getelementptr inbounds [1032 x i8], ptr %7, i64 0, i64 0
%49 = load i32, ptr %4, align 4
%50 = call i32 @iposix_mkdir(ptr noundef %48, i32 noundef %49)
br label %51
51: ; preds = %47, %40
%52 = load i32, ptr %5, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [1032 x i8], ptr %7, i64 0, i64 %53
store i8 47, ptr %54, align 1
br label %55
55: ; preds = %51, %33
br label %56
56: ; preds = %55
%57 = load i32, ptr %5, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %5, align 4
br label %22, !llvm.loop !6
59: ; preds = %22
%60 = load i32, ptr %6, align 4
%61 = icmp sgt i32 %60, 0
br i1 %61, label %62, label %70
62: ; preds = %59
%63 = getelementptr inbounds [1032 x i8], ptr %7, i64 0, i64 0
%64 = call i64 @iposix_access(ptr noundef %63, i32 noundef 0)
%65 = icmp ne i64 %64, 0
br i1 %65, label %66, label %70
66: ; preds = %62
%67 = getelementptr inbounds [1032 x i8], ptr %7, i64 0, i64 0
%68 = load i32, ptr %4, align 4
%69 = call i32 @iposix_mkdir(ptr noundef %67, i32 noundef %68)
br label %70
70: ; preds = %66, %62, %59
ret i32 0
}
declare i64 @strlen(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @iposix_access(ptr noundef, i32 noundef) #1
declare i32 @iposix_mkdir(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpso7kec5p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @iposix_path_mkdir(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca [1032 x i8], align 16
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%8 = load ptr, ptr %3, align 8
%9 = call i64 @strlen(ptr noundef %8)
%10 = trunc i64 %9 to i32
store i32 %10, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp sgt i32 %11, 1024
br i1 %12, label %13, label %14
13: ; preds = %2
store i32 1024, ptr %6, align 4
br label %14
14: ; preds = %13, %2
%15 = getelementptr inbounds [1032 x i8], ptr %7, i64 0, i64 0
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %6, align 4
%18 = call i32 @memcpy(ptr noundef %15, ptr noundef %16, i32 noundef %17)
%19 = load i32, ptr %6, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [1032 x i8], ptr %7, i64 0, i64 %20
store i8 0, ptr %21, align 1
store i32 0, ptr %5, align 4
%22 = load i32, ptr %5, align 4
%23 = load i32, ptr %6, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %.lr.ph, label %61
.lr.ph: ; preds = %14
br label %25
25: ; preds = %.lr.ph, %55
%26 = load i32, ptr %5, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [1032 x i8], ptr %7, i64 0, i64 %27
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 47
br i1 %31, label %39, label %32
32: ; preds = %25
%33 = load i32, ptr %5, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [1032 x i8], ptr %7, i64 0, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 92
br i1 %38, label %39, label %54
39: ; preds = %32, %25
%40 = load i32, ptr %5, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [1032 x i8], ptr %7, i64 0, i64 %41
store i8 0, ptr %42, align 1
%43 = getelementptr inbounds [1032 x i8], ptr %7, i64 0, i64 0
%44 = call i64 @iposix_access(ptr noundef %43, i32 noundef 0)
%45 = icmp ne i64 %44, 0
br i1 %45, label %46, label %50
46: ; preds = %39
%47 = getelementptr inbounds [1032 x i8], ptr %7, i64 0, i64 0
%48 = load i32, ptr %4, align 4
%49 = call i32 @iposix_mkdir(ptr noundef %47, i32 noundef %48)
br label %50
50: ; preds = %46, %39
%51 = load i32, ptr %5, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [1032 x i8], ptr %7, i64 0, i64 %52
store i8 47, ptr %53, align 1
br label %54
54: ; preds = %50, %32
br label %55
55: ; preds = %54
%56 = load i32, ptr %5, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %5, align 4
%58 = load i32, ptr %5, align 4
%59 = load i32, ptr %6, align 4
%60 = icmp slt i32 %58, %59
br i1 %60, label %25, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %55
br label %61
61: ; preds = %._crit_edge, %14
%62 = load i32, ptr %6, align 4
%63 = icmp sgt i32 %62, 0
br i1 %63, label %64, label %72
64: ; preds = %61
%65 = getelementptr inbounds [1032 x i8], ptr %7, i64 0, i64 0
%66 = call i64 @iposix_access(ptr noundef %65, i32 noundef 0)
%67 = icmp ne i64 %66, 0
br i1 %67, label %68, label %72
68: ; preds = %64
%69 = getelementptr inbounds [1032 x i8], ptr %7, i64 0, i64 0
%70 = load i32, ptr %4, align 4
%71 = call i32 @iposix_mkdir(ptr noundef %69, i32 noundef %70)
br label %72
72: ; preds = %68, %64, %61
ret i32 0
}
declare i64 @strlen(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @iposix_access(ptr noundef, i32 noundef) #1
declare i32 @iposix_mkdir(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpf114xgb_.c'
source_filename = "/tmp/tmpf114xgb_.c"
target datalayout = "e-m:e-p270: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/tmpf114xgb_.c"
target datalayout = "e-m:e-p270: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/tmpb225ru9_.c'
source_filename = "/tmp/tmpb225ru9_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cpyfile(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
%6 = load ptr, ptr %3, align 8
%7 = call i32 @rewind(ptr noundef %6)
%8 = load ptr, ptr %4, align 8
%9 = call i32 @rewind(ptr noundef %8)
br label %10
10: ; preds = %15, %2
%11 = load ptr, ptr %3, align 8
%12 = call i32 @fgetc(ptr noundef %11)
store i32 %12, ptr %5, align 4
%13 = load i32, ptr @EOF, align 4
%14 = icmp ne i32 %12, %13
br i1 %14, label %15, label %19
15: ; preds = %10
%16 = load i32, ptr %5, align 4
%17 = load ptr, ptr %4, align 8
%18 = call i32 @fputc(i32 noundef %16, ptr noundef %17)
br label %10, !llvm.loop !6
19: ; preds = %10
ret void
}
declare i32 @rewind(ptr noundef) #1
declare i32 @fgetc(ptr noundef) #1
declare i32 @fputc(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb225ru9_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cpyfile(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
%6 = load ptr, ptr %3, align 8
%7 = call i32 @rewind(ptr noundef %6)
%8 = load ptr, ptr %4, align 8
%9 = call i32 @rewind(ptr noundef %8)
%10 = load ptr, ptr %3, align 8
%11 = call i32 @fgetc(ptr noundef %10)
store i32 %11, ptr %5, align 4
%12 = load i32, ptr @EOF, align 4
%13 = icmp ne i32 %11, %12
br i1 %13, label %.lr.ph, label %22
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %14
%15 = load i32, ptr %5, align 4
%16 = load ptr, ptr %4, align 8
%17 = call i32 @fputc(i32 noundef %15, ptr noundef %16)
%18 = load ptr, ptr %3, align 8
%19 = call i32 @fgetc(ptr noundef %18)
store i32 %19, ptr %5, align 4
%20 = load i32, ptr @EOF, align 4
%21 = icmp ne i32 %19, %20
br i1 %21, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %22
22: ; preds = %._crit_edge, %2
ret void
}
declare i32 @rewind(ptr noundef) #1
declare i32 @fgetc(ptr noundef) #1
declare i32 @fputc(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpralsdek4.c'
source_filename = "/tmp/tmpralsdek4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %1, align 4
%10 = call i32 @fn1(i32 noundef 2)
store i32 %10, ptr %2, align 4
%11 = call i32 @fn1(i32 noundef 2)
store i32 %11, ptr %3, align 4
%12 = call i32 @fn1(i32 noundef 2)
store i32 %12, ptr %4, align 4
%13 = call i32 @fn1(i32 noundef 2)
store i32 %13, ptr %5, align 4
%14 = call i32 @fn1(i32 noundef 2)
store i32 %14, ptr %6, align 4
%15 = call i32 @fn1(i32 noundef 2)
store i32 %15, ptr %7, align 4
%16 = call i32 @fn1(i32 noundef 2)
store i32 %16, ptr %8, align 4
%17 = call i32 @fn1(i32 noundef 2)
store i32 %17, ptr %9, align 4
%18 = load i32, ptr %2, align 4
%19 = load i32, ptr %3, align 4
%20 = add nsw i32 %18, %19
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %20, %21
%23 = load i32, ptr %5, align 4
%24 = add nsw i32 %22, %23
%25 = load i32, ptr %6, align 4
%26 = add nsw i32 %24, %25
%27 = load i32, ptr %7, align 4
%28 = add nsw i32 %26, %27
%29 = load i32, ptr %8, align 4
%30 = add nsw i32 %28, %29
%31 = load i32, ptr %9, align 4
%32 = add nsw i32 %30, %31
%33 = icmp sle i32 %32, 8
%34 = zext i1 %33 to i32
%35 = call i32 @assert(i32 noundef %34)
ret i32 0
}
declare i32 @fn1(i32 noundef) #1
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpralsdek4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %1, align 4
%10 = call i32 @fn1(i32 noundef 2)
store i32 %10, ptr %2, align 4
%11 = call i32 @fn1(i32 noundef 2)
store i32 %11, ptr %3, align 4
%12 = call i32 @fn1(i32 noundef 2)
store i32 %12, ptr %4, align 4
%13 = call i32 @fn1(i32 noundef 2)
store i32 %13, ptr %5, align 4
%14 = call i32 @fn1(i32 noundef 2)
store i32 %14, ptr %6, align 4
%15 = call i32 @fn1(i32 noundef 2)
store i32 %15, ptr %7, align 4
%16 = call i32 @fn1(i32 noundef 2)
store i32 %16, ptr %8, align 4
%17 = call i32 @fn1(i32 noundef 2)
store i32 %17, ptr %9, align 4
%18 = load i32, ptr %2, align 4
%19 = load i32, ptr %3, align 4
%20 = add nsw i32 %18, %19
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %20, %21
%23 = load i32, ptr %5, align 4
%24 = add nsw i32 %22, %23
%25 = load i32, ptr %6, align 4
%26 = add nsw i32 %24, %25
%27 = load i32, ptr %7, align 4
%28 = add nsw i32 %26, %27
%29 = load i32, ptr %8, align 4
%30 = add nsw i32 %28, %29
%31 = load i32, ptr %9, align 4
%32 = add nsw i32 %30, %31
%33 = icmp sle i32 %32, 8
%34 = zext i1 %33 to i32
%35 = call i32 @assert(i32 noundef %34)
ret i32 0
}
declare i32 @fn1(i32 noundef) #1
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpba1sa0zn.c'
source_filename = "/tmp/tmpba1sa0zn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\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 ptr, align 8
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 = sub nsw i32 %5, 1
%7 = shl i32 1, %6
%8 = sext i32 %7 to i64
%9 = mul i64 1, %8
%10 = trunc i64 %9 to i32
%11 = call i64 @malloc(i32 noundef %10)
%12 = inttoptr i64 %11 to ptr
store ptr %12, ptr %3, align 8
%13 = load ptr, ptr %3, align 8
%14 = getelementptr inbounds i8, ptr %13, i64 0
store i8 97, ptr %14, align 1
%15 = load i32, ptr %2, align 4
%16 = load ptr, ptr %3, align 8
%17 = call i32 @GenerateString(i32 noundef %15, ptr noundef %16)
%18 = load ptr, ptr %3, align 8
%19 = call i32 @printf(ptr noundef @.str.1, ptr noundef %18)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @GenerateString(i32 noundef, ptr noundef) #1
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/tmpba1sa0zn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\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 ptr, align 8
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 = sub nsw i32 %5, 1
%7 = shl i32 1, %6
%8 = sext i32 %7 to i64
%9 = mul i64 1, %8
%10 = trunc i64 %9 to i32
%11 = call i64 @malloc(i32 noundef %10)
%12 = inttoptr i64 %11 to ptr
store ptr %12, ptr %3, align 8
%13 = load ptr, ptr %3, align 8
%14 = getelementptr inbounds i8, ptr %13, i64 0
store i8 97, ptr %14, align 1
%15 = load i32, ptr %2, align 4
%16 = load ptr, ptr %3, align 8
%17 = call i32 @GenerateString(i32 noundef %15, ptr noundef %16)
%18 = load ptr, ptr %3, align 8
%19 = call i32 @printf(ptr noundef @.str.1, ptr noundef %18)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @GenerateString(i32 noundef, ptr noundef) #1
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/tmp0bgil615.c'
source_filename = "/tmp/tmp0bgil615.c"
target datalayout = "e-m:e-p270: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.ages = private unnamed_addr constant [5 x i32] [i32 23, i32 43, i32 12, i32 89, i32 2], align 16
@.str = private unnamed_addr constant [5 x i8] c"Juan\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"Perez\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"Maria\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"July\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"Matias\00", align 1
@__const.main.names = private unnamed_addr constant [5 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr @.str.3, ptr @.str.4], align 16
@.str.5 = private unnamed_addr constant [24 x i8] c"%s has %d years alive.\0A\00", align 1
@.str.6 = private unnamed_addr constant [41 x i8] c"---------------------------------------\0A\00", align 1
@.str.7 = private unnamed_addr constant [21 x i8] c"%s is %d years old.\0A\00", align 1
@.str.8 = private unnamed_addr constant [42 x i8] c"----------------------------------------\0A\00", align 1
@.str.9 = private unnamed_addr constant [27 x i8] c"%s lived %d years so far.\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 [5 x i32], align 16
%7 = alloca [5 x ptr], align 16
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.ages, i64 20, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const.main.names, i64 40, i1 false)
store i32 5, ptr %8, align 4
store i32 0, ptr %9, align 4
%12 = load i32, ptr %8, align 4
store i32 %12, ptr %9, align 4
%13 = load i32, ptr %9, align 4
%14 = add nsw i32 %13, -1
store i32 %14, ptr %9, align 4
br label %15
15: ; preds = %28, %2
%16 = load i32, ptr %9, align 4
%17 = icmp sge i32 %16, 0
br i1 %17, label %18, label %31
18: ; preds = %15
%19 = load i32, ptr %9, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [5 x ptr], ptr %7, i64 0, i64 %20
%22 = load ptr, ptr %21, align 8
%23 = load i32, ptr %9, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 %24
%26 = load i32, ptr %25, align 4
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %22, i32 noundef %26)
br label %28
28: ; preds = %18
%29 = load i32, ptr %9, align 4
%30 = add nsw i32 %29, -1
store i32 %30, ptr %9, align 4
br label %15, !llvm.loop !6
31: ; preds = %15
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%33 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 0
store ptr %33, ptr %10, align 8
%34 = getelementptr inbounds [5 x ptr], ptr %7, i64 0, i64 0
store ptr %34, ptr %11, align 8
%35 = load i32, ptr %8, align 4
store i32 %35, ptr %9, align 4
%36 = load i32, ptr %9, align 4
%37 = add nsw i32 %36, -1
store i32 %37, ptr %9, align 4
br label %38
38: ; preds = %53, %31
%39 = load i32, ptr %9, align 4
%40 = icmp sge i32 %39, 0
br i1 %40, label %41, label %56
41: ; preds = %38
%42 = load ptr, ptr %11, align 8
%43 = load i32, ptr %9, 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 ptr, ptr %10, align 8
%48 = load i32, ptr %9, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i32, ptr %47, i64 %49
%51 = load i32, ptr %50, align 4
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %46, i32 noundef %51)
br label %53
53: ; preds = %41
%54 = load i32, ptr %9, align 4
%55 = add nsw i32 %54, -1
store i32 %55, ptr %9, align 4
br label %38, !llvm.loop !8
56: ; preds = %38
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%58 = getelementptr inbounds [5 x ptr], ptr %7, i64 0, i64 0
%59 = load i32, ptr %8, align 4
%60 = sub nsw i32 %59, 1
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds ptr, ptr %58, i64 %61
store ptr %62, ptr %11, align 8
%63 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 0
%64 = load i32, ptr %8, align 4
%65 = sub nsw i32 %64, 1
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i32, ptr %63, i64 %66
store ptr %67, ptr %10, align 8
br label %68
68: ; preds = %84, %56
%69 = load ptr, ptr %10, align 8
%70 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 0
%71 = ptrtoint ptr %69 to i64
%72 = ptrtoint ptr %70 to i64
%73 = sub i64 %71, %72
%74 = sdiv exact i64 %73, 4
%75 = load i32, ptr %8, align 4
%76 = sext i32 %75 to i64
%77 = icmp sge i64 %74, %76
br i1 %77, label %78, label %89
78: ; preds = %68
%79 = load ptr, ptr %11, align 8
%80 = load ptr, ptr %79, align 8
%81 = load ptr, ptr %10, align 8
%82 = load i32, ptr %81, align 4
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %80, i32 noundef %82)
br label %84
84: ; preds = %78
%85 = load ptr, ptr %11, align 8
%86 = getelementptr inbounds ptr, ptr %85, i32 -1
store ptr %86, ptr %11, align 8
%87 = load ptr, ptr %10, align 8
%88 = getelementptr inbounds i32, ptr %87, i32 -1
store ptr %88, ptr %10, align 8
br label %68, !llvm.loop !9
89: ; preds = %68
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0bgil615.c"
target datalayout = "e-m:e-p270: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.ages = private unnamed_addr constant [5 x i32] [i32 23, i32 43, i32 12, i32 89, i32 2], align 16
@.str = private unnamed_addr constant [5 x i8] c"Juan\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"Perez\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"Maria\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"July\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"Matias\00", align 1
@__const.main.names = private unnamed_addr constant [5 x ptr] [ptr @.str, ptr @.str.1, ptr @.str.2, ptr @.str.3, ptr @.str.4], align 16
@.str.5 = private unnamed_addr constant [24 x i8] c"%s has %d years alive.\0A\00", align 1
@.str.6 = private unnamed_addr constant [41 x i8] c"---------------------------------------\0A\00", align 1
@.str.7 = private unnamed_addr constant [21 x i8] c"%s is %d years old.\0A\00", align 1
@.str.8 = private unnamed_addr constant [42 x i8] c"----------------------------------------\0A\00", align 1
@.str.9 = private unnamed_addr constant [27 x i8] c"%s lived %d years so far.\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 [5 x i32], align 16
%7 = alloca [5 x ptr], align 16
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.main.ages, i64 20, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const.main.names, i64 40, i1 false)
store i32 5, ptr %8, align 4
store i32 0, ptr %9, align 4
%12 = load i32, ptr %8, align 4
store i32 %12, ptr %9, align 4
%13 = load i32, ptr %9, align 4
%14 = add nsw i32 %13, -1
store i32 %14, ptr %9, align 4
%15 = load i32, ptr %9, align 4
%16 = icmp sge i32 %15, 0
br i1 %16, label %.lr.ph, label %32
.lr.ph: ; preds = %2
br label %17
17: ; preds = %.lr.ph, %27
%18 = load i32, ptr %9, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [5 x ptr], ptr %7, i64 0, i64 %19
%21 = load ptr, ptr %20, align 8
%22 = load i32, ptr %9, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 %23
%25 = load i32, ptr %24, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %21, i32 noundef %25)
br label %27
27: ; preds = %17
%28 = load i32, ptr %9, align 4
%29 = add nsw i32 %28, -1
store i32 %29, ptr %9, align 4
%30 = load i32, ptr %9, align 4
%31 = icmp sge i32 %30, 0
br i1 %31, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %32
32: ; preds = %._crit_edge, %2
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%34 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 0
store ptr %34, ptr %10, align 8
%35 = getelementptr inbounds [5 x ptr], ptr %7, i64 0, i64 0
store ptr %35, ptr %11, align 8
%36 = load i32, ptr %8, align 4
store i32 %36, ptr %9, align 4
%37 = load i32, ptr %9, align 4
%38 = add nsw i32 %37, -1
store i32 %38, ptr %9, align 4
%39 = load i32, ptr %9, align 4
%40 = icmp sge i32 %39, 0
br i1 %40, label %.lr.ph2, label %58
.lr.ph2: ; preds = %32
br label %41
41: ; preds = %.lr.ph2, %53
%42 = load ptr, ptr %11, align 8
%43 = load i32, ptr %9, 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 ptr, ptr %10, align 8
%48 = load i32, ptr %9, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i32, ptr %47, i64 %49
%51 = load i32, ptr %50, align 4
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %46, i32 noundef %51)
br label %53
53: ; preds = %41
%54 = load i32, ptr %9, align 4
%55 = add nsw i32 %54, -1
store i32 %55, ptr %9, align 4
%56 = load i32, ptr %9, align 4
%57 = icmp sge i32 %56, 0
br i1 %57, label %41, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %53
br label %58
58: ; preds = %._crit_edge3, %32
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%60 = getelementptr inbounds [5 x ptr], ptr %7, i64 0, i64 0
%61 = load i32, ptr %8, align 4
%62 = sub nsw i32 %61, 1
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds ptr, ptr %60, i64 %63
store ptr %64, ptr %11, align 8
%65 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 0
%66 = load i32, ptr %8, align 4
%67 = sub nsw i32 %66, 1
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i32, ptr %65, i64 %68
store ptr %69, ptr %10, align 8
%70 = load ptr, ptr %10, align 8
%71 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 0
%72 = ptrtoint ptr %70 to i64
%73 = ptrtoint ptr %71 to i64
%74 = sub i64 %72, %73
%75 = sdiv exact i64 %74, 4
%76 = load i32, ptr %8, align 4
%77 = sext i32 %76 to i64
%78 = icmp sge i64 %75, %77
br i1 %78, label %.lr.ph5, label %97
.lr.ph5: ; preds = %58
br label %79
79: ; preds = %.lr.ph5, %85
%80 = load ptr, ptr %11, align 8
%81 = load ptr, ptr %80, align 8
%82 = load ptr, ptr %10, align 8
%83 = load i32, ptr %82, align 4
%84 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %81, i32 noundef %83)
br label %85
85: ; preds = %79
%86 = load ptr, ptr %11, align 8
%87 = getelementptr inbounds ptr, ptr %86, i32 -1
store ptr %87, ptr %11, align 8
%88 = load ptr, ptr %10, align 8
%89 = getelementptr inbounds i32, ptr %88, i32 -1
store ptr %89, ptr %10, align 8
%90 = load ptr, ptr %10, align 8
%91 = ptrtoint ptr %90 to i64
%92 = sub i64 %91, %73
%93 = sdiv exact i64 %92, 4
%94 = load i32, ptr %8, align 4
%95 = sext i32 %94 to i64
%96 = icmp sge i64 %93, %95
br i1 %96, label %79, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %85
br label %97
97: ; preds = %._crit_edge6, %58
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpeutczfgv.c'
source_filename = "/tmp/tmpeutczfgv.c"
target datalayout = "e-m:e-p270: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/tmpeutczfgv.c"
target datalayout = "e-m:e-p270: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/tmp7bpt6rdf.c'
source_filename = "/tmp/tmp7bpt6rdf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"SELECT 1 FROM user WHERE name = ?;\00", align 1
@SQLITE_OK = dso_local global i32 0, align 4
@SQLITE_STATIC = dso_local global i32 0, align 4
@SQLITE_ROW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @user_exists(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr @.str, ptr %7, align 8
%9 = load ptr, ptr %4, align 8
%10 = load ptr, ptr %7, align 8
%11 = call i32 @sqlite3_prepare(ptr noundef %9, ptr noundef %10, i32 noundef -1, ptr noundef %6, i32 noundef 0)
store i32 %11, ptr %8, align 4
%12 = load i32, ptr %8, align 4
%13 = load i32, ptr @SQLITE_OK, align 4
%14 = icmp ne i32 %12, %13
br i1 %14, label %15, label %16
15: ; preds = %2
store i32 0, ptr %3, align 4
br label %37
16: ; preds = %2
%17 = load ptr, ptr %6, align 8
%18 = load ptr, ptr %5, align 8
%19 = load ptr, ptr %5, align 8
%20 = call i32 @strlen(ptr noundef %19)
%21 = load i32, ptr @SQLITE_STATIC, align 4
%22 = call i32 @sqlite3_bind_text(ptr noundef %17, i32 noundef 1, ptr noundef %18, i32 noundef %20, i32 noundef %21)
store i32 %22, ptr %8, align 4
%23 = load i32, ptr %8, align 4
%24 = load i32, ptr @SQLITE_OK, align 4
%25 = icmp ne i32 %23, %24
br i1 %25, label %26, label %27
26: ; preds = %16
store i32 0, ptr %3, align 4
br label %37
27: ; preds = %16
%28 = load ptr, ptr %6, align 8
%29 = call i32 @sqlite3_step(ptr noundef %28)
store i32 %29, ptr %8, align 4
%30 = load ptr, ptr %6, align 8
%31 = call i32 @sqlite3_finalize(ptr noundef %30)
%32 = load i32, ptr %8, align 4
%33 = load i32, ptr @SQLITE_ROW, align 4
%34 = icmp eq i32 %32, %33
%35 = zext i1 %34 to i64
%36 = select i1 %34, i32 1, i32 0
store i32 %36, ptr %3, align 4
br label %37
37: ; preds = %27, %26, %15
%38 = load i32, ptr %3, align 4
ret i32 %38
}
declare i32 @sqlite3_prepare(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @sqlite3_bind_text(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @sqlite3_step(ptr noundef) #1
declare i32 @sqlite3_finalize(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7bpt6rdf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"SELECT 1 FROM user WHERE name = ?;\00", align 1
@SQLITE_OK = dso_local global i32 0, align 4
@SQLITE_STATIC = dso_local global i32 0, align 4
@SQLITE_ROW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @user_exists(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr @.str, ptr %7, align 8
%9 = load ptr, ptr %4, align 8
%10 = load ptr, ptr %7, align 8
%11 = call i32 @sqlite3_prepare(ptr noundef %9, ptr noundef %10, i32 noundef -1, ptr noundef %6, i32 noundef 0)
store i32 %11, ptr %8, align 4
%12 = load i32, ptr %8, align 4
%13 = load i32, ptr @SQLITE_OK, align 4
%14 = icmp ne i32 %12, %13
br i1 %14, label %15, label %16
15: ; preds = %2
store i32 0, ptr %3, align 4
br label %37
16: ; preds = %2
%17 = load ptr, ptr %6, align 8
%18 = load ptr, ptr %5, align 8
%19 = load ptr, ptr %5, align 8
%20 = call i32 @strlen(ptr noundef %19)
%21 = load i32, ptr @SQLITE_STATIC, align 4
%22 = call i32 @sqlite3_bind_text(ptr noundef %17, i32 noundef 1, ptr noundef %18, i32 noundef %20, i32 noundef %21)
store i32 %22, ptr %8, align 4
%23 = load i32, ptr %8, align 4
%24 = load i32, ptr @SQLITE_OK, align 4
%25 = icmp ne i32 %23, %24
br i1 %25, label %26, label %27
26: ; preds = %16
store i32 0, ptr %3, align 4
br label %37
27: ; preds = %16
%28 = load ptr, ptr %6, align 8
%29 = call i32 @sqlite3_step(ptr noundef %28)
store i32 %29, ptr %8, align 4
%30 = load ptr, ptr %6, align 8
%31 = call i32 @sqlite3_finalize(ptr noundef %30)
%32 = load i32, ptr %8, align 4
%33 = load i32, ptr @SQLITE_ROW, align 4
%34 = icmp eq i32 %32, %33
%35 = zext i1 %34 to i64
%36 = select i1 %34, i32 1, i32 0
store i32 %36, ptr %3, align 4
br label %37
37: ; preds = %27, %26, %15
%38 = load i32, ptr %3, align 4
ret i32 %38
}
declare i32 @sqlite3_prepare(ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @sqlite3_bind_text(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @sqlite3_step(ptr noundef) #1
declare i32 @sqlite3_finalize(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp83gsyh_u.c'
source_filename = "/tmp/tmp83gsyh_u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"How far do you want to go to? \0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%i\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"\0AYou entered %i \0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"TABLE OF SQUARES & CUBES\0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"\09 n \09 n squared \09 n cubed\0A\00", align 1
@.str.5 = private unnamed_addr constant [29 x i8] c"\09---\09-----------\09 ---------\0A\00", align 1
@.str.6 = private unnamed_addr constant [17 x i8] c"\09 %i \09 %i \09\09 %i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
%8 = load i32, ptr %5, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %8)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 1, ptr %4, align 4
br label %13
13: ; preds = %28, %0
%14 = load i32, ptr %4, align 4
%15 = load i32, ptr %5, align 4
%16 = icmp sle i32 %14, %15
br i1 %16, label %17, label %31
17: ; preds = %13
%18 = load i32, ptr %4, align 4
%19 = load i32, ptr %4, align 4
%20 = mul nsw i32 %18, %19
store i32 %20, ptr %2, align 4
%21 = load i32, ptr %2, align 4
%22 = load i32, ptr %4, align 4
%23 = mul nsw i32 %21, %22
store i32 %23, ptr %3, align 4
%24 = load i32, ptr %4, align 4
%25 = load i32, ptr %2, align 4
%26 = load i32, ptr %3, align 4
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %24, i32 noundef %25, i32 noundef %26)
br label %28
28: ; preds = %17
%29 = load i32, ptr %4, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %4, align 4
br label %13, !llvm.loop !6
31: ; preds = %13
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp83gsyh_u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"How far do you want to go to? \0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%i\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"\0AYou entered %i \0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"TABLE OF SQUARES & CUBES\0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"\09 n \09 n squared \09 n cubed\0A\00", align 1
@.str.5 = private unnamed_addr constant [29 x i8] c"\09---\09-----------\09 ---------\0A\00", align 1
@.str.6 = private unnamed_addr constant [17 x i8] c"\09 %i \09 %i \09\09 %i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
%8 = load i32, ptr %5, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %8)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 1, ptr %4, align 4
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr %5, align 4
%15 = icmp sle i32 %13, %14
br i1 %15, label %.lr.ph, label %33
.lr.ph: ; preds = %0
br label %16
16: ; preds = %.lr.ph, %27
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %4, align 4
%19 = mul nsw i32 %17, %18
store i32 %19, ptr %2, align 4
%20 = load i32, ptr %2, align 4
%21 = load i32, ptr %4, align 4
%22 = mul nsw i32 %20, %21
store i32 %22, ptr %3, align 4
%23 = load i32, ptr %4, align 4
%24 = load i32, ptr %2, align 4
%25 = load i32, ptr %3, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %23, i32 noundef %24, i32 noundef %25)
br label %27
27: ; preds = %16
%28 = load i32, ptr %4, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %4, align 4
%30 = load i32, ptr %4, align 4
%31 = load i32, ptr %5, align 4
%32 = icmp sle i32 %30, %31
br i1 %32, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %33
33: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpnb3ijwto.c'
source_filename = "/tmp/tmpnb3ijwto.c"
target datalayout = "e-m:e-p270: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/tmpnb3ijwto.c"
target datalayout = "e-m:e-p270: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/tmpkbt82ujv.c'
source_filename = "/tmp/tmpkbt82ujv.c"
target datalayout = "e-m:e-p270: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
@O_RDWR = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [24 x i8] c"writeFile: short write\0A\00", align 1
@EIO = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @writeFile(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%11 = load ptr, ptr %5, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %22, label %13
13: ; preds = %3
%14 = load ptr, ptr %6, align 8
%15 = load i64, ptr %7, align 8
%16 = load i32, ptr @stdout, align 4
%17 = call i32 @fwrite(ptr noundef %14, i32 noundef 1, i64 noundef %15, i32 noundef %16)
%18 = load i32, ptr @stdout, align 4
%19 = call i32 @fflush(i32 noundef %18)
%20 = load i32, ptr @stdout, align 4
%21 = call i32 @ferror(i32 noundef %20)
store i32 %21, ptr %4, align 4
br label %55
22: ; preds = %3
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr @O_RDWR, align 4
%25 = load i32, ptr @O_CREAT, align 4
%26 = or i32 %24, %25
%27 = load i32, ptr @O_TRUNC, align 4
%28 = or i32 %26, %27
%29 = call i32 @open(ptr noundef %23, i32 noundef %28, i32 noundef 384)
store i32 %29, ptr %9, align 4
%30 = load i32, ptr %9, align 4
%31 = icmp sle i32 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %22
%33 = load i32, ptr @errno, align 4
store i32 %33, ptr %4, align 4
br label %55
34: ; preds = %22
%35 = load i32, ptr %9, align 4
%36 = load ptr, ptr %6, align 8
%37 = load i64, ptr %7, align 8
%38 = call i64 @write(i32 noundef %35, ptr noundef %36, i64 noundef %37)
store i64 %38, ptr %10, align 8
%39 = load i64, ptr %10, align 8
%40 = load i64, ptr %7, align 8
%41 = icmp ne i64 %39, %40
br i1 %41, label %42, label %50
42: ; preds = %34
%43 = load i64, ptr %10, align 8
%44 = icmp uge i64 %43, 0
br i1 %44, label %45, label %48
45: ; preds = %42
%46 = load i32, ptr @stderr, align 4
%47 = call i32 @fprintf(i32 noundef %46, ptr noundef @.str)
br label %48
48: ; preds = %45, %42
%49 = load i32, ptr @EIO, align 4
store i32 %49, ptr %8, align 4
br label %51
50: ; preds = %34
store i32 0, ptr %8, align 4
br label %51
51: ; preds = %50, %48
%52 = load i32, ptr %9, align 4
%53 = call i32 @close(i32 noundef %52)
%54 = load i32, ptr %8, align 4
store i32 %54, ptr %4, align 4
br label %55
55: ; preds = %51, %32, %13
%56 = load i32, ptr %4, align 4
ret i32 %56
}
declare i32 @fwrite(ptr noundef, i32 noundef, i64 noundef, i32 noundef) #1
declare i32 @fflush(i32 noundef) #1
declare i32 @ferror(i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @fprintf(i32 noundef, 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/tmpkbt82ujv.c"
target datalayout = "e-m:e-p270: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
@O_RDWR = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [24 x i8] c"writeFile: short write\0A\00", align 1
@EIO = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @writeFile(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%11 = load ptr, ptr %5, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %22, label %13
13: ; preds = %3
%14 = load ptr, ptr %6, align 8
%15 = load i64, ptr %7, align 8
%16 = load i32, ptr @stdout, align 4
%17 = call i32 @fwrite(ptr noundef %14, i32 noundef 1, i64 noundef %15, i32 noundef %16)
%18 = load i32, ptr @stdout, align 4
%19 = call i32 @fflush(i32 noundef %18)
%20 = load i32, ptr @stdout, align 4
%21 = call i32 @ferror(i32 noundef %20)
store i32 %21, ptr %4, align 4
br label %55
22: ; preds = %3
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr @O_RDWR, align 4
%25 = load i32, ptr @O_CREAT, align 4
%26 = or i32 %24, %25
%27 = load i32, ptr @O_TRUNC, align 4
%28 = or i32 %26, %27
%29 = call i32 @open(ptr noundef %23, i32 noundef %28, i32 noundef 384)
store i32 %29, ptr %9, align 4
%30 = load i32, ptr %9, align 4
%31 = icmp sle i32 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %22
%33 = load i32, ptr @errno, align 4
store i32 %33, ptr %4, align 4
br label %55
34: ; preds = %22
%35 = load i32, ptr %9, align 4
%36 = load ptr, ptr %6, align 8
%37 = load i64, ptr %7, align 8
%38 = call i64 @write(i32 noundef %35, ptr noundef %36, i64 noundef %37)
store i64 %38, ptr %10, align 8
%39 = load i64, ptr %10, align 8
%40 = load i64, ptr %7, align 8
%41 = icmp ne i64 %39, %40
br i1 %41, label %42, label %50
42: ; preds = %34
%43 = load i64, ptr %10, align 8
%44 = icmp uge i64 %43, 0
br i1 %44, label %45, label %48
45: ; preds = %42
%46 = load i32, ptr @stderr, align 4
%47 = call i32 @fprintf(i32 noundef %46, ptr noundef @.str)
br label %48
48: ; preds = %45, %42
%49 = load i32, ptr @EIO, align 4
store i32 %49, ptr %8, align 4
br label %51
50: ; preds = %34
store i32 0, ptr %8, align 4
br label %51
51: ; preds = %50, %48
%52 = load i32, ptr %9, align 4
%53 = call i32 @close(i32 noundef %52)
%54 = load i32, ptr %8, align 4
store i32 %54, ptr %4, align 4
br label %55
55: ; preds = %51, %32, %13
%56 = load i32, ptr %4, align 4
ret i32 %56
}
declare i32 @fwrite(ptr noundef, i32 noundef, i64 noundef, i32 noundef) #1
declare i32 @fflush(i32 noundef) #1
declare i32 @ferror(i32 noundef) #1
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @fprintf(i32 noundef, 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/tmpb81gc61g.c'
source_filename = "/tmp/tmpb81gc61g.c"
target datalayout = "e-m:e-p270: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.memsetTest.str = private unnamed_addr constant [44 x i8] c"almost every programmer should know memset!\00", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @memsetTest() #0 {
%1 = alloca [44 x i8], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.memsetTest.str, i64 44, i1 false)
%2 = getelementptr inbounds [44 x i8], ptr %1, i64 0, i64 0
%3 = call i64 @memset(ptr noundef %2, i8 noundef signext 45, i32 noundef 6)
%4 = inttoptr i64 %3 to ptr
%5 = call i32 @puts(ptr noundef %4)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @puts(ptr noundef) #2
declare i64 @memset(ptr noundef, i8 noundef signext, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb81gc61g.c"
target datalayout = "e-m:e-p270: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.memsetTest.str = private unnamed_addr constant [44 x i8] c"almost every programmer should know memset!\00", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @memsetTest() #0 {
%1 = alloca [44 x i8], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.memsetTest.str, i64 44, i1 false)
%2 = getelementptr inbounds [44 x i8], ptr %1, i64 0, i64 0
%3 = call i64 @memset(ptr noundef %2, i8 noundef signext 45, i32 noundef 6)
%4 = inttoptr i64 %3 to ptr
%5 = call i32 @puts(ptr noundef %4)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @puts(ptr noundef) #2
declare i64 @memset(ptr noundef, i8 noundef signext, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmaj0xv3z.c'
source_filename = "/tmp/tmpmaj0xv3z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [89 x i8] c"%s is a daemon intended to listen for API requests.\0A\0AUsage: %s [ -h | -v ] [ options ]\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"rapiddiskd\00", align 1
@.str.2 = private unnamed_addr constant [178 x i8] c"Functions:\0A\09-h\09Print this exact help menu.\0A\09-p\09Change port to listen on (default: 9118).\0A\09-V\09Enable debug messages to stdout (this is ugly).\0A\09-v\09Print out version information.\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @online_menu() #0 {
%1 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.1)
%2 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmaj0xv3z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [89 x i8] c"%s is a daemon intended to listen for API requests.\0A\0AUsage: %s [ -h | -v ] [ options ]\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"rapiddiskd\00", align 1
@.str.2 = private unnamed_addr constant [178 x i8] c"Functions:\0A\09-h\09Print this exact help menu.\0A\09-p\09Change port to listen on (default: 9118).\0A\09-V\09Enable debug messages to stdout (this is ugly).\0A\09-v\09Print out version information.\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @online_menu() #0 {
%1 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.1)
%2 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpasapxtae.c'
source_filename = "/tmp/tmpasapxtae.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @saa7114_set_decoder_saturation(i8 noundef zeroext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = zext i8 %3 to i32
%5 = ashr i32 %4, 1
%6 = trunc i32 %5 to i8
%7 = call i32 @saa7114_write_reg(i32 noundef 12, i8 noundef zeroext %6)
ret i32 0
}
declare i32 @saa7114_write_reg(i32 noundef, 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/tmpasapxtae.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @saa7114_set_decoder_saturation(i8 noundef zeroext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = zext i8 %3 to i32
%5 = ashr i32 %4, 1
%6 = trunc i32 %5 to i8
%7 = call i32 @saa7114_write_reg(i32 noundef 12, i8 noundef zeroext %6)
ret i32 0
}
declare i32 @saa7114_write_reg(i32 noundef, 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/tmpulz6qhun.c'
source_filename = "/tmp/tmpulz6qhun.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"enter no. of nodes\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"enter first element\0A\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"enter element no %d - \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @create_list(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
%9 = load i32, ptr %5, align 4
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %1
%12 = load ptr, ptr %3, align 8
store ptr %12, ptr %2, align 8
br label %36
13: ; preds = %1
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%15 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %6)
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %6, align 4
%18 = call ptr @addatbeg(ptr noundef %16, i32 noundef %17)
store ptr %18, ptr %3, align 8
store i32 2, ptr %4, align 4
br label %19
19: ; preds = %30, %13
%20 = load i32, ptr %4, align 4
%21 = load i32, ptr %5, align 4
%22 = icmp sle i32 %20, %21
br i1 %22, label %23, label %33
23: ; preds = %19
%24 = load i32, ptr %4, align 4
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %24)
%26 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %6)
%27 = load ptr, ptr %3, align 8
%28 = load i32, ptr %6, align 4
%29 = call ptr @addatend(ptr noundef %27, i32 noundef %28)
store ptr %29, ptr %3, align 8
br label %30
30: ; preds = %23
%31 = load i32, ptr %4, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %4, align 4
br label %19, !llvm.loop !6
33: ; preds = %19
br label %34
34: ; preds = %33
%35 = load ptr, ptr %3, align 8
store ptr %35, ptr %2, align 8
br label %36
36: ; preds = %34, %11
%37 = load ptr, ptr %2, align 8
ret ptr %37
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare ptr @addatbeg(ptr noundef, i32 noundef) #1
declare ptr @addatend(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/tmpulz6qhun.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"enter no. of nodes\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"enter first element\0A\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"enter element no %d - \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @create_list(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
%9 = load i32, ptr %5, align 4
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %1
%12 = load ptr, ptr %3, align 8
store ptr %12, ptr %2, align 8
br label %38
13: ; preds = %1
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%15 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %6)
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %6, align 4
%18 = call ptr @addatbeg(ptr noundef %16, i32 noundef %17)
store ptr %18, ptr %3, align 8
store i32 2, ptr %4, align 4
%19 = load i32, ptr %4, align 4
%20 = load i32, ptr %5, align 4
%21 = icmp sle i32 %19, %20
br i1 %21, label %.lr.ph, label %35
.lr.ph: ; preds = %13
br label %22
22: ; preds = %.lr.ph, %29
%23 = load i32, ptr %4, align 4
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %23)
%25 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %6)
%26 = load ptr, ptr %3, align 8
%27 = load i32, ptr %6, align 4
%28 = call ptr @addatend(ptr noundef %26, i32 noundef %27)
store ptr %28, ptr %3, align 8
br label %29
29: ; preds = %22
%30 = load i32, ptr %4, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %4, align 4
%32 = load i32, ptr %4, align 4
%33 = load i32, ptr %5, align 4
%34 = icmp sle 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, %13
br label %36
36: ; preds = %35
%37 = load ptr, ptr %3, align 8
store ptr %37, ptr %2, align 8
br label %38
38: ; preds = %36, %11
%39 = load ptr, ptr %2, align 8
ret ptr %39
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare ptr @addatbeg(ptr noundef, i32 noundef) #1
declare ptr @addatend(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/tmp_t93b5_p.c'
source_filename = "/tmp/tmp_t93b5_p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!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_t93b5_p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpshp6mg53.c'
source_filename = "/tmp/tmpshp6mg53.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 = load i32, ptr %1, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @cegar1(i32 noundef %3, i32 noundef %4)
ret i32 0
}
declare i32 @cegar1(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/tmpshp6mg53.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 = load i32, ptr %1, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @cegar1(i32 noundef %3, i32 noundef %4)
ret i32 0
}
declare i32 @cegar1(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/tmpbr34cx73.c'
source_filename = "/tmp/tmpbr34cx73.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"Usage: fprintf string\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"the string is %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [54 x i8] c"sprintf small buf result: [%d] %s, len = %u, pad = %s\00", align 1
@.str.3 = private unnamed_addr constant [44 x i8] c"sprintf huge buf result: [%d] %s, len = %u\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [128 x i8], align 16
%8 = alloca [16 x i8], align 16
%9 = alloca [128 x i8], align 16
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
call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 128, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 16, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 128, i1 false)
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 2
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %57
14: ; preds = %2
%15 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = load ptr, ptr %17, align 8
%19 = call i32 @sprintf(ptr noundef %15, ptr noundef @.str.1, ptr noundef %18)
store i32 %19, ptr %6, align 4
%20 = load i32, ptr %6, align 4
%21 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
%22 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
%23 = call i32 @strlen(ptr noundef %22)
%24 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %20, ptr noundef %21, i32 noundef %23, ptr noundef %24)
%26 = getelementptr inbounds [128 x i8], ptr %9, i64 0, i64 0
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds ptr, ptr %27, i64 1
%29 = load ptr, ptr %28, align 8
%30 = call i32 @sprintf(ptr noundef %26, ptr noundef @.str.1, ptr noundef %29)
store i32 %30, ptr %6, align 4
%31 = load i32, ptr %6, align 4
%32 = getelementptr inbounds [128 x i8], ptr %9, i64 0, i64 0
%33 = getelementptr inbounds [128 x i8], ptr %9, i64 0, i64 0
%34 = call i32 @strlen(ptr noundef %33)
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %31, ptr noundef %32, i32 noundef %34)
%36 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
%37 = load ptr, ptr %5, align 8
%38 = getelementptr inbounds ptr, ptr %37, i64 1
%39 = load ptr, ptr %38, align 8
%40 = call i32 @snprintf(ptr noundef %36, i32 noundef 10, ptr noundef @.str.4, ptr noundef %39)
store i32 %40, ptr %6, align 4
%41 = load i32, ptr %6, align 4
%42 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
%43 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
%44 = call i32 @strlen(ptr noundef %43)
%45 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %41, ptr noundef %42, i32 noundef %44, ptr noundef %45)
%47 = getelementptr inbounds [128 x i8], ptr %9, i64 0, i64 0
%48 = load ptr, ptr %5, align 8
%49 = getelementptr inbounds ptr, ptr %48, i64 1
%50 = load ptr, ptr %49, align 8
%51 = call i32 @snprintf(ptr noundef %47, i32 noundef 100, ptr noundef @.str.4, ptr noundef %50)
store i32 %51, ptr %6, align 4
%52 = load i32, ptr %6, align 4
%53 = getelementptr inbounds [128 x i8], ptr %9, i64 0, i64 0
%54 = getelementptr inbounds [128 x i8], ptr %9, i64 0, i64 0
%55 = call i32 @strlen(ptr noundef %54)
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %52, ptr noundef %53, i32 noundef %55)
store i32 0, ptr %3, align 4
br label %57
57: ; preds = %14, %12
%58 = load i32, ptr %3, align 4
ret i32 %58
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbr34cx73.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"Usage: fprintf string\0A\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"the string is %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [54 x i8] c"sprintf small buf result: [%d] %s, len = %u, pad = %s\00", align 1
@.str.3 = private unnamed_addr constant [44 x i8] c"sprintf huge buf result: [%d] %s, len = %u\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [128 x i8], align 16
%8 = alloca [16 x i8], align 16
%9 = alloca [128 x i8], align 16
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
call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 128, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 16, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 128, i1 false)
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 2
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %57
14: ; preds = %2
%15 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = load ptr, ptr %17, align 8
%19 = call i32 @sprintf(ptr noundef %15, ptr noundef @.str.1, ptr noundef %18)
store i32 %19, ptr %6, align 4
%20 = load i32, ptr %6, align 4
%21 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
%22 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
%23 = call i32 @strlen(ptr noundef %22)
%24 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %20, ptr noundef %21, i32 noundef %23, ptr noundef %24)
%26 = getelementptr inbounds [128 x i8], ptr %9, i64 0, i64 0
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds ptr, ptr %27, i64 1
%29 = load ptr, ptr %28, align 8
%30 = call i32 @sprintf(ptr noundef %26, ptr noundef @.str.1, ptr noundef %29)
store i32 %30, ptr %6, align 4
%31 = load i32, ptr %6, align 4
%32 = getelementptr inbounds [128 x i8], ptr %9, i64 0, i64 0
%33 = getelementptr inbounds [128 x i8], ptr %9, i64 0, i64 0
%34 = call i32 @strlen(ptr noundef %33)
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %31, ptr noundef %32, i32 noundef %34)
%36 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
%37 = load ptr, ptr %5, align 8
%38 = getelementptr inbounds ptr, ptr %37, i64 1
%39 = load ptr, ptr %38, align 8
%40 = call i32 @snprintf(ptr noundef %36, i32 noundef 10, ptr noundef @.str.4, ptr noundef %39)
store i32 %40, ptr %6, align 4
%41 = load i32, ptr %6, align 4
%42 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
%43 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
%44 = call i32 @strlen(ptr noundef %43)
%45 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %41, ptr noundef %42, i32 noundef %44, ptr noundef %45)
%47 = getelementptr inbounds [128 x i8], ptr %9, i64 0, i64 0
%48 = load ptr, ptr %5, align 8
%49 = getelementptr inbounds ptr, ptr %48, i64 1
%50 = load ptr, ptr %49, align 8
%51 = call i32 @snprintf(ptr noundef %47, i32 noundef 100, ptr noundef @.str.4, ptr noundef %50)
store i32 %51, ptr %6, align 4
%52 = load i32, ptr %6, align 4
%53 = getelementptr inbounds [128 x i8], ptr %9, i64 0, i64 0
%54 = getelementptr inbounds [128 x i8], ptr %9, i64 0, i64 0
%55 = call i32 @strlen(ptr noundef %54)
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %52, ptr noundef %53, i32 noundef %55)
store i32 0, ptr %3, align 4
br label %57
57: ; preds = %14, %12
%58 = load i32, ptr %3, align 4
ret i32 %58
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpa964xlfx.c'
source_filename = "/tmp/tmpa964xlfx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"No error\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"Authorize timeout\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Authorize response\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"No TLS received\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"No MAC\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"Non-existing MAC\00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c"No tunnel MAC\00", align 1
@.str.7 = private unnamed_addr constant [21 x i8] c"Already existing MAC\00", align 1
@.str.8 = private unnamed_addr constant [18 x i8] c"Device has no get\00", align 1
@.str.9 = private unnamed_addr constant [23 x i8] c"Device has no controls\00", align 1
@.str.10 = private unnamed_addr constant [15 x i8] c"Device missing\00", align 1
@.str.11 = private unnamed_addr constant [23 x i8] c"Topo - illegal command\00", align 1
@.str.12 = private unnamed_addr constant [20 x i8] c"Topo - missing name\00", align 1
@.str.13 = private unnamed_addr constant [15 x i8] c"Topo - timeout\00", align 1
@.str.14 = private unnamed_addr constant [20 x i8] c"Topo - not accepted\00", align 1
@.str.15 = private unnamed_addr constant [15 x i8] c"Topo - overrun\00", align 1
@.str.16 = private unnamed_addr constant [15 x i8] c"Queue - create\00", align 1
@.str.17 = private unnamed_addr constant [13 x i8] c"Queue - open\00", align 1
@.str.18 = private unnamed_addr constant [13 x i8] c"Queue - read\00", align 1
@.str.19 = private unnamed_addr constant [14 x i8] c"Queue - write\00", align 1
@.str.20 = private unnamed_addr constant [16 x i8] c"Queue - bufsize\00", align 1
@.str.21 = private unnamed_addr constant [16 x i8] c"Queue - overrun\00", align 1
@.str.22 = private unnamed_addr constant [14 x i8] c"Socket - open\00", align 1
@.str.23 = private unnamed_addr constant [14 x i8] c"Socket - read\00", align 1
@.str.24 = private unnamed_addr constant [15 x i8] c"Socket - write\00", align 1
@.str.25 = private unnamed_addr constant [14 x i8] c"DB-open error\00", align 1
@.str.26 = private unnamed_addr constant [18 x i8] c"Unknown IoT error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @iotErrorStringRaw(i32 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
switch i32 %4, label %31 [
i32 0, label %5
i32 4, label %6
i32 5, label %7
i32 6, label %8
i32 11, label %9
i32 12, label %10
i32 13, label %11
i32 14, label %12
i32 20, label %13
i32 21, label %14
i32 22, label %15
i32 30, label %16
i32 31, label %17
i32 32, label %18
i32 33, label %19
i32 34, label %20
i32 60, label %21
i32 61, label %22
i32 62, label %23
i32 63, label %24
i32 66, label %25
i32 67, label %26
i32 70, label %27
i32 71, label %28
i32 72, label %29
i32 80, label %30
]
5: ; preds = %1
store ptr @.str, ptr %2, align 8
br label %32
6: ; preds = %1
store ptr @.str.1, ptr %2, align 8
br label %32
7: ; preds = %1
store ptr @.str.2, ptr %2, align 8
br label %32
8: ; preds = %1
store ptr @.str.3, ptr %2, align 8
br label %32
9: ; preds = %1
store ptr @.str.4, ptr %2, align 8
br label %32
10: ; preds = %1
store ptr @.str.5, ptr %2, align 8
br label %32
11: ; preds = %1
store ptr @.str.6, ptr %2, align 8
br label %32
12: ; preds = %1
store ptr @.str.7, ptr %2, align 8
br label %32
13: ; preds = %1
store ptr @.str.8, ptr %2, align 8
br label %32
14: ; preds = %1
store ptr @.str.9, ptr %2, align 8
br label %32
15: ; preds = %1
store ptr @.str.10, ptr %2, align 8
br label %32
16: ; preds = %1
store ptr @.str.11, ptr %2, align 8
br label %32
17: ; preds = %1
store ptr @.str.12, ptr %2, align 8
br label %32
18: ; preds = %1
store ptr @.str.13, ptr %2, align 8
br label %32
19: ; preds = %1
store ptr @.str.14, ptr %2, align 8
br label %32
20: ; preds = %1
store ptr @.str.15, ptr %2, align 8
br label %32
21: ; preds = %1
store ptr @.str.16, ptr %2, align 8
br label %32
22: ; preds = %1
store ptr @.str.17, ptr %2, align 8
br label %32
23: ; preds = %1
store ptr @.str.18, ptr %2, align 8
br label %32
24: ; preds = %1
store ptr @.str.19, ptr %2, align 8
br label %32
25: ; preds = %1
store ptr @.str.20, ptr %2, align 8
br label %32
26: ; preds = %1
store ptr @.str.21, ptr %2, align 8
br label %32
27: ; preds = %1
store ptr @.str.22, ptr %2, align 8
br label %32
28: ; preds = %1
store ptr @.str.23, ptr %2, align 8
br label %32
29: ; preds = %1
store ptr @.str.24, ptr %2, align 8
br label %32
30: ; preds = %1
store ptr @.str.25, ptr %2, align 8
br label %32
31: ; preds = %1
store ptr @.str.26, ptr %2, align 8
br label %32
32: ; preds = %31, %30, %29, %28, %27, %26, %25, %24, %23, %22, %21, %20, %19, %18, %17, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6, %5
%33 = load ptr, ptr %2, align 8
ret ptr %33
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa964xlfx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"No error\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"Authorize timeout\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Authorize response\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"No TLS received\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"No MAC\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"Non-existing MAC\00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c"No tunnel MAC\00", align 1
@.str.7 = private unnamed_addr constant [21 x i8] c"Already existing MAC\00", align 1
@.str.8 = private unnamed_addr constant [18 x i8] c"Device has no get\00", align 1
@.str.9 = private unnamed_addr constant [23 x i8] c"Device has no controls\00", align 1
@.str.10 = private unnamed_addr constant [15 x i8] c"Device missing\00", align 1
@.str.11 = private unnamed_addr constant [23 x i8] c"Topo - illegal command\00", align 1
@.str.12 = private unnamed_addr constant [20 x i8] c"Topo - missing name\00", align 1
@.str.13 = private unnamed_addr constant [15 x i8] c"Topo - timeout\00", align 1
@.str.14 = private unnamed_addr constant [20 x i8] c"Topo - not accepted\00", align 1
@.str.15 = private unnamed_addr constant [15 x i8] c"Topo - overrun\00", align 1
@.str.16 = private unnamed_addr constant [15 x i8] c"Queue - create\00", align 1
@.str.17 = private unnamed_addr constant [13 x i8] c"Queue - open\00", align 1
@.str.18 = private unnamed_addr constant [13 x i8] c"Queue - read\00", align 1
@.str.19 = private unnamed_addr constant [14 x i8] c"Queue - write\00", align 1
@.str.20 = private unnamed_addr constant [16 x i8] c"Queue - bufsize\00", align 1
@.str.21 = private unnamed_addr constant [16 x i8] c"Queue - overrun\00", align 1
@.str.22 = private unnamed_addr constant [14 x i8] c"Socket - open\00", align 1
@.str.23 = private unnamed_addr constant [14 x i8] c"Socket - read\00", align 1
@.str.24 = private unnamed_addr constant [15 x i8] c"Socket - write\00", align 1
@.str.25 = private unnamed_addr constant [14 x i8] c"DB-open error\00", align 1
@.str.26 = private unnamed_addr constant [18 x i8] c"Unknown IoT error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @iotErrorStringRaw(i32 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
switch i32 %4, label %31 [
i32 0, label %5
i32 4, label %6
i32 5, label %7
i32 6, label %8
i32 11, label %9
i32 12, label %10
i32 13, label %11
i32 14, label %12
i32 20, label %13
i32 21, label %14
i32 22, label %15
i32 30, label %16
i32 31, label %17
i32 32, label %18
i32 33, label %19
i32 34, label %20
i32 60, label %21
i32 61, label %22
i32 62, label %23
i32 63, label %24
i32 66, label %25
i32 67, label %26
i32 70, label %27
i32 71, label %28
i32 72, label %29
i32 80, label %30
]
5: ; preds = %1
store ptr @.str, ptr %2, align 8
br label %32
6: ; preds = %1
store ptr @.str.1, ptr %2, align 8
br label %32
7: ; preds = %1
store ptr @.str.2, ptr %2, align 8
br label %32
8: ; preds = %1
store ptr @.str.3, ptr %2, align 8
br label %32
9: ; preds = %1
store ptr @.str.4, ptr %2, align 8
br label %32
10: ; preds = %1
store ptr @.str.5, ptr %2, align 8
br label %32
11: ; preds = %1
store ptr @.str.6, ptr %2, align 8
br label %32
12: ; preds = %1
store ptr @.str.7, ptr %2, align 8
br label %32
13: ; preds = %1
store ptr @.str.8, ptr %2, align 8
br label %32
14: ; preds = %1
store ptr @.str.9, ptr %2, align 8
br label %32
15: ; preds = %1
store ptr @.str.10, ptr %2, align 8
br label %32
16: ; preds = %1
store ptr @.str.11, ptr %2, align 8
br label %32
17: ; preds = %1
store ptr @.str.12, ptr %2, align 8
br label %32
18: ; preds = %1
store ptr @.str.13, ptr %2, align 8
br label %32
19: ; preds = %1
store ptr @.str.14, ptr %2, align 8
br label %32
20: ; preds = %1
store ptr @.str.15, ptr %2, align 8
br label %32
21: ; preds = %1
store ptr @.str.16, ptr %2, align 8
br label %32
22: ; preds = %1
store ptr @.str.17, ptr %2, align 8
br label %32
23: ; preds = %1
store ptr @.str.18, ptr %2, align 8
br label %32
24: ; preds = %1
store ptr @.str.19, ptr %2, align 8
br label %32
25: ; preds = %1
store ptr @.str.20, ptr %2, align 8
br label %32
26: ; preds = %1
store ptr @.str.21, ptr %2, align 8
br label %32
27: ; preds = %1
store ptr @.str.22, ptr %2, align 8
br label %32
28: ; preds = %1
store ptr @.str.23, ptr %2, align 8
br label %32
29: ; preds = %1
store ptr @.str.24, ptr %2, align 8
br label %32
30: ; preds = %1
store ptr @.str.25, ptr %2, align 8
br label %32
31: ; preds = %1
store ptr @.str.26, ptr %2, align 8
br label %32
32: ; preds = %31, %30, %29, %28, %27, %26, %25, %24, %23, %22, %21, %20, %19, %18, %17, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6, %5
%33 = load ptr, ptr %2, align 8
ret ptr %33
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpowzbut0c.c'
source_filename = "/tmp/tmpowzbut0c.c"
target datalayout = "e-m:e-p270: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/tmpowzbut0c.c"
target datalayout = "e-m:e-p270: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/tmpvu5xcrw4.c'
source_filename = "/tmp/tmpvu5xcrw4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_3__ = type { i32, i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @xdr_yp_buf(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 = getelementptr inbounds %struct.TYPE_3__, ptr %6, i32 0, i32 1
%8 = load ptr, ptr %4, align 8
%9 = getelementptr inbounds %struct.TYPE_3__, ptr %8, i32 0, i32 0
%10 = call i32 @xdr_bytes(ptr noundef %5, ptr noundef %7, ptr noundef %9, i32 noundef -1)
ret i32 %10
}
declare i32 @xdr_bytes(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/tmpvu5xcrw4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_3__ = type { i32, i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @xdr_yp_buf(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 = getelementptr inbounds %struct.TYPE_3__, ptr %6, i32 0, i32 1
%8 = load ptr, ptr %4, align 8
%9 = getelementptr inbounds %struct.TYPE_3__, ptr %8, i32 0, i32 0
%10 = call i32 @xdr_bytes(ptr noundef %5, ptr noundef %7, ptr noundef %9, i32 noundef -1)
ret i32 %10
}
declare i32 @xdr_bytes(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/tmpejxostgi.c'
source_filename = "/tmp/tmpejxostgi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ueStrSeek(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i64 0, ptr %5, align 8
%7 = load ptr, ptr %3, align 8
store ptr %7, ptr %6, align 8
store i64 0, ptr %5, align 8
br label %8
8: ; preds = %20, %2
%9 = load i64, ptr %5, align 8
%10 = load i64, ptr %4, align 8
%11 = icmp ult i64 %9, %10
br i1 %11, label %12, label %23
12: ; preds = %8
%13 = load ptr, ptr %6, align 8
%14 = getelementptr inbounds i8, ptr %13, i64 0
%15 = load i8, ptr %14, align 1
%16 = call i32 @ueBytesFromChar(i8 noundef signext %15)
%17 = load ptr, ptr %6, align 8
%18 = sext i32 %16 to i64
%19 = getelementptr inbounds i8, ptr %17, i64 %18
store ptr %19, ptr %6, align 8
br label %20
20: ; preds = %12
%21 = load i64, ptr %5, align 8
%22 = add i64 %21, 1
store i64 %22, ptr %5, align 8
br label %8, !llvm.loop !6
23: ; preds = %8
%24 = load ptr, ptr %6, align 8
ret ptr %24
}
declare i32 @ueBytesFromChar(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/tmpejxostgi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ueStrSeek(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i64 0, ptr %5, align 8
%7 = load ptr, ptr %3, align 8
store ptr %7, ptr %6, align 8
store i64 0, ptr %5, align 8
%8 = load i64, ptr %5, align 8
%9 = load i64, ptr %4, align 8
%10 = icmp ult i64 %8, %9
br i1 %10, label %.lr.ph, label %25
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %19
%12 = load ptr, ptr %6, align 8
%13 = getelementptr inbounds i8, ptr %12, i64 0
%14 = load i8, ptr %13, align 1
%15 = call i32 @ueBytesFromChar(i8 noundef signext %14)
%16 = load ptr, ptr %6, align 8
%17 = sext i32 %15 to i64
%18 = getelementptr inbounds i8, ptr %16, i64 %17
store ptr %18, ptr %6, align 8
br label %19
19: ; preds = %11
%20 = load i64, ptr %5, align 8
%21 = add i64 %20, 1
store i64 %21, ptr %5, align 8
%22 = load i64, ptr %5, align 8
%23 = load i64, ptr %4, align 8
%24 = icmp ult i64 %22, %23
br i1 %24, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %25
25: ; preds = %._crit_edge, %2
%26 = load ptr, ptr %6, align 8
ret ptr %26
}
declare i32 @ueBytesFromChar(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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.