llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmpyom66821.c'
source_filename = "/tmp/tmpyom66821.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stress_set_net_port(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
%11 = load ptr, ptr %7, align 8
%12 = call i32 @stress_get_uint64(ptr noundef %11)
%13 = load ptr, ptr %10, align 8
store i32 %12, ptr %13, align 4
%14 = load ptr, ptr %6, align 8
%15 = load ptr, ptr %10, align 8
%16 = load i32, ptr %15, align 4
%17 = load i32, ptr %8, align 4
%18 = load i32, ptr %9, align 4
%19 = sub nsw i32 %18, 8192
%20 = call i32 @stress_check_range(ptr noundef %14, i32 noundef %16, i32 noundef %17, i32 noundef %19)
ret void
}
declare i32 @stress_get_uint64(ptr noundef) #1
declare i32 @stress_check_range(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/tmpyom66821.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stress_set_net_port(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
%11 = load ptr, ptr %7, align 8
%12 = call i32 @stress_get_uint64(ptr noundef %11)
%13 = load ptr, ptr %10, align 8
store i32 %12, ptr %13, align 4
%14 = load ptr, ptr %6, align 8
%15 = load ptr, ptr %10, align 8
%16 = load i32, ptr %15, align 4
%17 = load i32, ptr %8, align 4
%18 = load i32, ptr %9, align 4
%19 = sub nsw i32 %18, 8192
%20 = call i32 @stress_check_range(ptr noundef %14, i32 noundef %16, i32 noundef %17, i32 noundef %19)
ret void
}
declare i32 @stress_get_uint64(ptr noundef) #1
declare i32 @stress_check_range(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/tmpmiypte2s.c'
source_filename = "/tmp/tmpmiypte2s.c"
target datalayout = "e-m:e-p270: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/tmpmiypte2s.c"
target datalayout = "e-m:e-p270: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/tmp23blbu2h.c'
source_filename = "/tmp/tmp23blbu2h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [107 x i8] c"Error: Incorrect amount of arguments. Please use:\0A\22./asst2 [text file to be compressed] [Number of parts]\22\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%ld\0A\00", align 1
@F_OK = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [20 x i8] c"File does not exist\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.5 = private unnamed_addr constant [26 x i8] c"File could not be opened.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp ne i32 %9, 3
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
store i32 1, ptr %3, align 4
br label %54
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 2
%16 = load ptr, ptr %15, align 8
%17 = call i32 @atoi(ptr noundef %16)
store i32 %17, ptr %8, align 4
%18 = load i32, ptr %8, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %18)
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = load i32, ptr @F_OK, align 4
%24 = call i32 @access(ptr noundef %22, i32 noundef %23)
%25 = icmp eq i32 %24, -1
br i1 %25, label %26, label %28
26: ; preds = %13
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.3)
store i32 1, ptr %3, align 4
br label %54
28: ; preds = %13
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 1
%31 = load ptr, ptr %30, align 8
%32 = call ptr @fopen(ptr noundef %31, ptr noundef @.str.4)
store ptr %32, ptr %6, align 8
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds ptr, ptr %33, i64 1
%35 = load ptr, ptr %34, align 8
%36 = call ptr @fopen(ptr noundef %35, ptr noundef @.str.4)
store ptr %36, ptr %7, align 8
%37 = load ptr, ptr %6, align 8
%38 = icmp eq ptr %37, null
br i1 %38, label %42, label %39
39: ; preds = %28
%40 = load ptr, ptr %7, align 8
%41 = icmp eq ptr %40, null
br i1 %41, label %42, label %44
42: ; preds = %39, %28
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.5)
store i32 1, ptr %3, align 4
br label %54
44: ; preds = %39
%45 = load ptr, ptr %6, align 8
%46 = call i32 @fclose(ptr noundef %45)
%47 = load ptr, ptr %7, align 8
%48 = call i32 @fclose(ptr noundef %47)
%49 = load ptr, ptr %5, align 8
%50 = getelementptr inbounds ptr, ptr %49, i64 1
%51 = load ptr, ptr %50, align 8
%52 = load i32, ptr %8, align 4
%53 = call i32 @compressR_LOLS(ptr noundef %51, i32 noundef %52)
br label %54
54: ; preds = %44, %42, %26, %11
%55 = load i32, ptr %3, align 4
ret i32 %55
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @access(ptr noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @compressR_LOLS(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/tmp23blbu2h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [107 x i8] c"Error: Incorrect amount of arguments. Please use:\0A\22./asst2 [text file to be compressed] [Number of parts]\22\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%ld\0A\00", align 1
@F_OK = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [20 x i8] c"File does not exist\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.5 = private unnamed_addr constant [26 x i8] c"File could not be opened.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp ne i32 %9, 3
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
store i32 1, ptr %3, align 4
br label %54
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 2
%16 = load ptr, ptr %15, align 8
%17 = call i32 @atoi(ptr noundef %16)
store i32 %17, ptr %8, align 4
%18 = load i32, ptr %8, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %18)
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = load i32, ptr @F_OK, align 4
%24 = call i32 @access(ptr noundef %22, i32 noundef %23)
%25 = icmp eq i32 %24, -1
br i1 %25, label %26, label %28
26: ; preds = %13
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.3)
store i32 1, ptr %3, align 4
br label %54
28: ; preds = %13
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 1
%31 = load ptr, ptr %30, align 8
%32 = call ptr @fopen(ptr noundef %31, ptr noundef @.str.4)
store ptr %32, ptr %6, align 8
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds ptr, ptr %33, i64 1
%35 = load ptr, ptr %34, align 8
%36 = call ptr @fopen(ptr noundef %35, ptr noundef @.str.4)
store ptr %36, ptr %7, align 8
%37 = load ptr, ptr %6, align 8
%38 = icmp eq ptr %37, null
br i1 %38, label %42, label %39
39: ; preds = %28
%40 = load ptr, ptr %7, align 8
%41 = icmp eq ptr %40, null
br i1 %41, label %42, label %44
42: ; preds = %39, %28
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.5)
store i32 1, ptr %3, align 4
br label %54
44: ; preds = %39
%45 = load ptr, ptr %6, align 8
%46 = call i32 @fclose(ptr noundef %45)
%47 = load ptr, ptr %7, align 8
%48 = call i32 @fclose(ptr noundef %47)
%49 = load ptr, ptr %5, align 8
%50 = getelementptr inbounds ptr, ptr %49, i64 1
%51 = load ptr, ptr %50, align 8
%52 = load i32, ptr %8, align 4
%53 = call i32 @compressR_LOLS(ptr noundef %51, i32 noundef %52)
br label %54
54: ; preds = %44, %42, %26, %11
%55 = load i32, ptr %3, align 4
ret i32 %55
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @access(ptr noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @compressR_LOLS(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/tmpncns5woy.c'
source_filename = "/tmp/tmpncns5woy.c"
target datalayout = "e-m:e-p270: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/tmpncns5woy.c"
target datalayout = "e-m:e-p270: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/tmpc6x3wnre.c'
source_filename = "/tmp/tmpc6x3wnre.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @my_strlcpy(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%10 = load ptr, ptr %4, align 8
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %5, align 8
store ptr %11, ptr %8, align 8
%12 = load i64, ptr %6, align 8
store i64 %12, ptr %9, align 8
%13 = load i64, ptr %9, align 8
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %31
15: ; preds = %3
br label %16
16: ; preds = %29, %15
%17 = load i64, ptr %9, align 8
%18 = add i64 %17, -1
store i64 %18, ptr %9, align 8
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %30
20: ; preds = %16
%21 = load ptr, ptr %8, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %8, align 8
%23 = load i8, ptr %21, align 1
%24 = load ptr, ptr %7, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %7, align 8
store i8 %23, ptr %24, align 1
%26 = sext i8 %23 to i32
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %20
br label %30
29: ; preds = %20
br label %16, !llvm.loop !6
30: ; preds = %28, %16
br label %31
31: ; preds = %30, %3
%32 = load i64, ptr %9, align 8
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %47
34: ; preds = %31
%35 = load i64, ptr %6, align 8
%36 = icmp ne i64 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %34
%38 = load ptr, ptr %7, align 8
store i8 0, ptr %38, align 1
br label %39
39: ; preds = %37, %34
br label %40
40: ; preds = %45, %39
%41 = load ptr, ptr %8, align 8
%42 = getelementptr inbounds i8, ptr %41, i32 1
store ptr %42, ptr %8, align 8
%43 = load i8, ptr %41, align 1
%44 = icmp ne i8 %43, 0
br i1 %44, label %45, label %46
45: ; preds = %40
br label %40, !llvm.loop !8
46: ; preds = %40
br label %47
47: ; preds = %46, %31
%48 = load ptr, ptr %8, align 8
%49 = load ptr, ptr %5, align 8
%50 = ptrtoint ptr %48 to i64
%51 = ptrtoint ptr %49 to i64
%52 = sub i64 %50, %51
%53 = sub nsw i64 %52, 1
ret i64 %53
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc6x3wnre.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @my_strlcpy(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%10 = load ptr, ptr %4, align 8
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %5, align 8
store ptr %11, ptr %8, align 8
%12 = load i64, ptr %6, align 8
store i64 %12, ptr %9, align 8
%13 = load i64, ptr %9, align 8
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %33
15: ; preds = %3
%16 = load i64, ptr %9, align 8
%17 = add i64 %16, -1
store i64 %17, ptr %9, align 8
%18 = icmp ne i64 %17, 0
br i1 %18, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %15
br label %23
19: ; preds = %23
%20 = load i64, ptr %9, align 8
%21 = add i64 %20, -1
store i64 %21, ptr %9, align 8
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %..loopexit_crit_edge, !llvm.loop !6
23: ; preds = %.lr.ph, %19
%24 = load ptr, ptr %8, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %8, align 8
%26 = load i8, ptr %24, align 1
%27 = load ptr, ptr %7, align 8
%28 = getelementptr inbounds i8, ptr %27, i32 1
store ptr %28, ptr %7, align 8
store i8 %26, ptr %27, align 1
%29 = sext i8 %26 to i32
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %19
31: ; preds = %23
br label %32
..loopexit_crit_edge: ; preds = %19
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %15
br label %32
32: ; preds = %.loopexit, %31
br label %33
33: ; preds = %32, %3
%34 = load i64, ptr %9, align 8
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %48
36: ; preds = %33
%37 = load i64, ptr %6, align 8
%38 = icmp ne i64 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %36
%40 = load ptr, ptr %7, align 8
store i8 0, ptr %40, align 1
br label %41
41: ; preds = %39, %36
br label %42
42: ; preds = %42, %41
%43 = load ptr, ptr %8, align 8
%44 = getelementptr inbounds i8, ptr %43, i32 1
store ptr %44, ptr %8, align 8
%45 = load i8, ptr %43, align 1
%46 = icmp ne i8 %45, 0
br i1 %46, label %42, label %47, !llvm.loop !8
47: ; preds = %42
br label %48
48: ; preds = %47, %33
%49 = load ptr, ptr %8, align 8
%50 = load ptr, ptr %5, align 8
%51 = ptrtoint ptr %49 to i64
%52 = ptrtoint ptr %50 to i64
%53 = sub i64 %51, %52
%54 = sub nsw i64 %53, 1
ret i64 %54
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpzo0xtd0v.c'
source_filename = "/tmp/tmpzo0xtd0v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"pi (approximate) = %lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
store double 1.000000e+00, ptr %2, align 8
store double 0.000000e+00, ptr %3, align 8
store i32 1, ptr %5, align 4
store i32 1, ptr %6, align 4
store i32 0, ptr %4, align 4
br label %7
7: ; preds = %23, %0
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 100
br i1 %9, label %10, label %26
10: ; preds = %7
%11 = load double, ptr %2, align 8
%12 = load double, ptr %3, align 8
%13 = fadd double %12, %11
store double %13, ptr %3, align 8
%14 = load i32, ptr %6, align 4
%15 = add nsw i32 %14, 2
store i32 %15, ptr %6, align 4
%16 = load i32, ptr %5, align 4
%17 = sub nsw i32 0, %16
store i32 %17, ptr %5, align 4
%18 = load i32, ptr %5, align 4
%19 = sitofp i32 %18 to double
%20 = load i32, ptr %6, align 4
%21 = sitofp i32 %20 to double
%22 = fdiv double %19, %21
store double %22, ptr %2, align 8
br label %23
23: ; preds = %10
%24 = load i32, ptr %4, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %4, align 4
br label %7, !llvm.loop !6
26: ; preds = %7
%27 = load double, ptr %3, align 8
%28 = fmul double %27, 4.000000e+00
store double %28, ptr %3, align 8
%29 = load double, ptr %3, align 8
%30 = call i32 @printf(ptr noundef @.str, double noundef %29)
ret i32 0
}
declare i32 @printf(ptr noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzo0xtd0v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"pi (approximate) = %lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
store double 1.000000e+00, ptr %2, align 8
store double 0.000000e+00, ptr %3, align 8
store i32 1, ptr %5, align 4
store i32 1, ptr %6, align 4
store i32 0, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 100
br i1 %8, label %.lr.ph, label %27
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %22
%10 = load double, ptr %2, align 8
%11 = load double, ptr %3, align 8
%12 = fadd double %11, %10
store double %12, ptr %3, align 8
%13 = load i32, ptr %6, align 4
%14 = add nsw i32 %13, 2
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %5, align 4
%16 = sub nsw i32 0, %15
store i32 %16, ptr %5, align 4
%17 = load i32, ptr %5, align 4
%18 = sitofp i32 %17 to double
%19 = load i32, ptr %6, align 4
%20 = sitofp i32 %19 to double
%21 = fdiv double %18, %20
store double %21, ptr %2, align 8
br label %22
22: ; preds = %9
%23 = load i32, ptr %4, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %4, align 4
%25 = load i32, ptr %4, align 4
%26 = icmp slt i32 %25, 100
br i1 %26, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %27
27: ; preds = %._crit_edge, %0
%28 = load double, ptr %3, align 8
%29 = fmul double %28, 4.000000e+00
store double %29, ptr %3, align 8
%30 = load double, ptr %3, align 8
%31 = call i32 @printf(ptr noundef @.str, double noundef %30)
ret i32 0
}
declare i32 @printf(ptr noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpdnbo64tv.c'
source_filename = "/tmp/tmpdnbo64tv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 = call i32 @print_max(i32 noundef 12, i32 noundef 13)
%2 = call i32 @print_max(i32 noundef 13, i32 noundef 12)
ret i32 0
}
declare i32 @print_max(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/tmpdnbo64tv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 = call i32 @print_max(i32 noundef 12, i32 noundef 13)
%2 = call i32 @print_max(i32 noundef 13, i32 noundef 12)
ret i32 0
}
declare i32 @print_max(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/tmpcvvuovqn.c'
source_filename = "/tmp/tmpcvvuovqn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"teamMenu\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"getMenu\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @CG_HideTeamMenu() #0 {
%1 = call i32 @Menus_CloseByName(ptr noundef @.str)
%2 = call i32 @Menus_CloseByName(ptr noundef @.str.1)
ret void
}
declare i32 @Menus_CloseByName(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcvvuovqn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"teamMenu\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"getMenu\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @CG_HideTeamMenu() #0 {
%1 = call i32 @Menus_CloseByName(ptr noundef @.str)
%2 = call i32 @Menus_CloseByName(ptr noundef @.str.1)
ret void
}
declare i32 @Menus_CloseByName(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmkz3w7d9.c'
source_filename = "/tmp/tmpmkz3w7d9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vis5d_get_color(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
store i32 %0, ptr %9, align 4
store i32 %1, ptr %10, align 4
store i32 %2, ptr %11, align 4
store ptr %3, ptr %12, align 8
store ptr %4, ptr %13, align 8
store ptr %5, ptr %14, align 8
store ptr %6, ptr %15, align 8
%18 = load i32, ptr %9, align 4
%19 = load i32, ptr %10, align 4
%20 = load i32, ptr %11, align 4
%21 = call i32 @get_graphics_color_address(i32 noundef %18, i32 noundef %19, i32 noundef %20, ptr noundef %16)
store i32 %21, ptr %17, align 4
%22 = load i32, ptr %17, align 4
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %7
%25 = load i32, ptr %17, align 4
store i32 %25, ptr %8, align 4
br label %58
26: ; preds = %7
%27 = load ptr, ptr %16, align 8
%28 = load i32, ptr %27, align 4
%29 = and i32 %28, 255
%30 = uitofp i32 %29 to double
%31 = fdiv double %30, 2.550000e+02
%32 = fptrunc double %31 to float
%33 = load ptr, ptr %12, align 8
store float %32, ptr %33, align 4
%34 = load ptr, ptr %16, align 8
%35 = load i32, ptr %34, align 4
%36 = lshr i32 %35, 8
%37 = and i32 %36, 255
%38 = uitofp i32 %37 to double
%39 = fdiv double %38, 2.550000e+02
%40 = fptrunc double %39 to float
%41 = load ptr, ptr %13, align 8
store float %40, ptr %41, align 4
%42 = load ptr, ptr %16, align 8
%43 = load i32, ptr %42, align 4
%44 = lshr i32 %43, 16
%45 = and i32 %44, 255
%46 = uitofp i32 %45 to double
%47 = fdiv double %46, 2.550000e+02
%48 = fptrunc double %47 to float
%49 = load ptr, ptr %14, align 8
store float %48, ptr %49, align 4
%50 = load ptr, ptr %16, align 8
%51 = load i32, ptr %50, align 4
%52 = lshr i32 %51, 24
%53 = and i32 %52, 255
%54 = uitofp i32 %53 to double
%55 = fdiv double %54, 2.550000e+02
%56 = fptrunc double %55 to float
%57 = load ptr, ptr %15, align 8
store float %56, ptr %57, align 4
store i32 0, ptr %8, align 4
br label %58
58: ; preds = %26, %24
%59 = load i32, ptr %8, align 4
ret i32 %59
}
declare i32 @get_graphics_color_address(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmkz3w7d9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vis5d_get_color(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
store i32 %0, ptr %9, align 4
store i32 %1, ptr %10, align 4
store i32 %2, ptr %11, align 4
store ptr %3, ptr %12, align 8
store ptr %4, ptr %13, align 8
store ptr %5, ptr %14, align 8
store ptr %6, ptr %15, align 8
%18 = load i32, ptr %9, align 4
%19 = load i32, ptr %10, align 4
%20 = load i32, ptr %11, align 4
%21 = call i32 @get_graphics_color_address(i32 noundef %18, i32 noundef %19, i32 noundef %20, ptr noundef %16)
store i32 %21, ptr %17, align 4
%22 = load i32, ptr %17, align 4
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %7
%25 = load i32, ptr %17, align 4
store i32 %25, ptr %8, align 4
br label %58
26: ; preds = %7
%27 = load ptr, ptr %16, align 8
%28 = load i32, ptr %27, align 4
%29 = and i32 %28, 255
%30 = uitofp i32 %29 to double
%31 = fdiv double %30, 2.550000e+02
%32 = fptrunc double %31 to float
%33 = load ptr, ptr %12, align 8
store float %32, ptr %33, align 4
%34 = load ptr, ptr %16, align 8
%35 = load i32, ptr %34, align 4
%36 = lshr i32 %35, 8
%37 = and i32 %36, 255
%38 = uitofp i32 %37 to double
%39 = fdiv double %38, 2.550000e+02
%40 = fptrunc double %39 to float
%41 = load ptr, ptr %13, align 8
store float %40, ptr %41, align 4
%42 = load ptr, ptr %16, align 8
%43 = load i32, ptr %42, align 4
%44 = lshr i32 %43, 16
%45 = and i32 %44, 255
%46 = uitofp i32 %45 to double
%47 = fdiv double %46, 2.550000e+02
%48 = fptrunc double %47 to float
%49 = load ptr, ptr %14, align 8
store float %48, ptr %49, align 4
%50 = load ptr, ptr %16, align 8
%51 = load i32, ptr %50, align 4
%52 = lshr i32 %51, 24
%53 = and i32 %52, 255
%54 = uitofp i32 %53 to double
%55 = fdiv double %54, 2.550000e+02
%56 = fptrunc double %55 to float
%57 = load ptr, ptr %15, align 8
store float %56, ptr %57, align 4
store i32 0, ptr %8, align 4
br label %58
58: ; preds = %26, %24
%59 = load i32, ptr %8, align 4
ret i32 %59
}
declare i32 @get_graphics_color_address(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5z5tidus.c'
source_filename = "/tmp/tmp5z5tidus.c"
target datalayout = "e-m:e-p270: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/tmp5z5tidus.c"
target datalayout = "e-m:e-p270: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/tmpe8x0xq3g.c'
source_filename = "/tmp/tmpe8x0xq3g.c"
target datalayout = "e-m:e-p270: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/tmpe8x0xq3g.c"
target datalayout = "e-m:e-p270: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/tmphrzh89s0.c'
source_filename = "/tmp/tmphrzh89s0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"iptraf-processcount.dat\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_last_instance() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %2, align 4
%4 = call i32 @get_path(i32 noundef 4, ptr noundef @.str)
%5 = load i32, ptr @O_RDONLY, align 4
%6 = call i32 @open(i32 noundef %4, i32 noundef %5)
store i32 %6, ptr %1, align 4
%7 = load i32, ptr %1, align 4
%8 = call i32 @read(i32 noundef %7, ptr noundef %2, i32 noundef 4)
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %1, align 4
%10 = call i32 @close(i32 noundef %9)
%11 = load i32, ptr %2, align 4
%12 = icmp eq i32 %11, 1
br i1 %12, label %19, label %13
13: ; preds = %0
%14 = load i32, ptr %3, align 4
%15 = icmp slt i32 %14, 0
br i1 %15, label %19, label %16
16: ; preds = %13
%17 = load i32, ptr %1, align 4
%18 = icmp slt i32 %17, 0
br label %19
19: ; preds = %16, %13, %0
%20 = phi i1 [ true, %13 ], [ true, %0 ], [ %18, %16 ]
%21 = zext i1 %20 to i32
ret i32 %21
}
declare i32 @open(i32 noundef, i32 noundef) #1
declare i32 @get_path(i32 noundef, ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphrzh89s0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"iptraf-processcount.dat\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_last_instance() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %2, align 4
%4 = call i32 @get_path(i32 noundef 4, ptr noundef @.str)
%5 = load i32, ptr @O_RDONLY, align 4
%6 = call i32 @open(i32 noundef %4, i32 noundef %5)
store i32 %6, ptr %1, align 4
%7 = load i32, ptr %1, align 4
%8 = call i32 @read(i32 noundef %7, ptr noundef %2, i32 noundef 4)
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %1, align 4
%10 = call i32 @close(i32 noundef %9)
%11 = load i32, ptr %2, align 4
%12 = icmp eq i32 %11, 1
br i1 %12, label %19, label %13
13: ; preds = %0
%14 = load i32, ptr %3, align 4
%15 = icmp slt i32 %14, 0
br i1 %15, label %19, label %16
16: ; preds = %13
%17 = load i32, ptr %1, align 4
%18 = icmp slt i32 %17, 0
br label %19
19: ; preds = %16, %13, %0
%20 = phi i1 [ true, %13 ], [ true, %0 ], [ %18, %16 ]
%21 = zext i1 %20 to i32
ret i32 %21
}
declare i32 @open(i32 noundef, i32 noundef) #1
declare i32 @get_path(i32 noundef, ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmkovh76p.c'
source_filename = "/tmp/tmpmkovh76p.c"
target datalayout = "e-m:e-p270: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/tmpmkovh76p.c"
target datalayout = "e-m:e-p270: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/tmp7hfh0qkw.c'
source_filename = "/tmp/tmp7hfh0qkw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @extractnz_boundaries_usvector(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
store ptr %0, ptr %6, align 8
store i64 %1, ptr %7, align 8
store i64 %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%13 = load i64, ptr %7, align 8
store i64 %13, ptr %11, align 8
%14 = load i64, ptr %8, align 8
store i64 %14, ptr %12, align 8
br label %15
15: ; preds = %27, %5
%16 = load ptr, ptr %6, align 8
%17 = load i64, ptr %11, align 8
%18 = getelementptr inbounds i32, ptr %16, i64 %17
%19 = load i32, ptr %18, align 4
%20 = icmp ne i32 %19, 0
br i1 %20, label %25, label %21
21: ; preds = %15
%22 = load i64, ptr %11, align 8
%23 = load i64, ptr %8, align 8
%24 = icmp sle i64 %22, %23
br label %25
25: ; preds = %21, %15
%26 = phi i1 [ false, %15 ], [ %24, %21 ]
br i1 %26, label %27, label %30
27: ; preds = %25
%28 = load i64, ptr %11, align 8
%29 = add nsw i64 %28, 1
store i64 %29, ptr %11, align 8
br label %15, !llvm.loop !6
30: ; preds = %25
br label %31
31: ; preds = %43, %30
%32 = load ptr, ptr %6, align 8
%33 = load i64, ptr %12, align 8
%34 = getelementptr inbounds i32, ptr %32, i64 %33
%35 = load i32, ptr %34, align 4
%36 = icmp ne i32 %35, 0
br i1 %36, label %41, label %37
37: ; preds = %31
%38 = load i64, ptr %12, align 8
%39 = load i64, ptr %7, align 8
%40 = icmp sge i64 %38, %39
br label %41
41: ; preds = %37, %31
%42 = phi i1 [ false, %31 ], [ %40, %37 ]
br i1 %42, label %43, label %46
43: ; preds = %41
%44 = load i64, ptr %12, align 8
%45 = add nsw i64 %44, -1
store i64 %45, ptr %12, align 8
br label %31, !llvm.loop !8
46: ; preds = %41
%47 = load i64, ptr %11, align 8
%48 = load ptr, ptr %9, align 8
store i64 %47, ptr %48, align 8
%49 = load i64, ptr %12, align 8
%50 = load ptr, ptr %10, align 8
store i64 %49, ptr %50, align 8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7hfh0qkw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @extractnz_boundaries_usvector(ptr noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
store ptr %0, ptr %6, align 8
store i64 %1, ptr %7, align 8
store i64 %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%13 = load i64, ptr %7, align 8
store i64 %13, ptr %11, align 8
%14 = load i64, ptr %8, align 8
store i64 %14, ptr %12, align 8
br label %15
15: ; preds = %27, %5
%16 = load ptr, ptr %6, align 8
%17 = load i64, ptr %11, align 8
%18 = getelementptr inbounds i32, ptr %16, i64 %17
%19 = load i32, ptr %18, align 4
%20 = icmp ne i32 %19, 0
br i1 %20, label %25, label %21
21: ; preds = %15
%22 = load i64, ptr %11, align 8
%23 = load i64, ptr %8, align 8
%24 = icmp sle i64 %22, %23
br label %25
25: ; preds = %21, %15
%26 = phi i1 [ false, %15 ], [ %24, %21 ]
br i1 %26, label %27, label %30
27: ; preds = %25
%28 = load i64, ptr %11, align 8
%29 = add nsw i64 %28, 1
store i64 %29, ptr %11, align 8
br label %15, !llvm.loop !6
30: ; preds = %25
br label %31
31: ; preds = %43, %30
%32 = load ptr, ptr %6, align 8
%33 = load i64, ptr %12, align 8
%34 = getelementptr inbounds i32, ptr %32, i64 %33
%35 = load i32, ptr %34, align 4
%36 = icmp ne i32 %35, 0
br i1 %36, label %41, label %37
37: ; preds = %31
%38 = load i64, ptr %12, align 8
%39 = load i64, ptr %7, align 8
%40 = icmp sge i64 %38, %39
br label %41
41: ; preds = %37, %31
%42 = phi i1 [ false, %31 ], [ %40, %37 ]
br i1 %42, label %43, label %46
43: ; preds = %41
%44 = load i64, ptr %12, align 8
%45 = add nsw i64 %44, -1
store i64 %45, ptr %12, align 8
br label %31, !llvm.loop !8
46: ; preds = %41
%47 = load i64, ptr %11, align 8
%48 = load ptr, ptr %9, align 8
store i64 %47, ptr %48, align 8
%49 = load i64, ptr %12, align 8
%50 = load ptr, ptr %10, align 8
store i64 %49, ptr %50, align 8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpqmphq9qn.c'
source_filename = "/tmp/tmpqmphq9qn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@BUFSIZ = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getdelim(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca i64, align 8
%15 = 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
%16 = load ptr, ptr %6, align 8
%17 = load ptr, ptr %16, align 8
%18 = icmp eq ptr %17, null
br i1 %18, label %23, label %19
19: ; preds = %4
%20 = load ptr, ptr %7, align 8
%21 = load i64, ptr %20, align 8
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %33
23: ; preds = %19, %4
%24 = load i64, ptr @BUFSIZ, align 8
%25 = load ptr, ptr %7, align 8
store i64 %24, ptr %25, align 8
%26 = load ptr, ptr %7, align 8
%27 = load i64, ptr %26, align 8
%28 = call ptr @malloc(i64 noundef %27)
%29 = load ptr, ptr %6, align 8
store ptr %28, ptr %29, align 8
%30 = icmp eq ptr %28, null
br i1 %30, label %31, label %32
31: ; preds = %23
store i32 -1, ptr %5, align 4
br label %112
32: ; preds = %23
br label %33
33: ; preds = %32, %19
%34 = load ptr, ptr %6, align 8
%35 = load ptr, ptr %34, align 8
store ptr %35, ptr %10, align 8
%36 = load ptr, ptr %6, align 8
%37 = load ptr, ptr %36, align 8
%38 = load ptr, ptr %7, align 8
%39 = load i64, ptr %38, align 8
%40 = getelementptr inbounds i8, ptr %37, i64 %39
store ptr %40, ptr %11, align 8
br label %41
41: ; preds = %111, %33
%42 = load ptr, ptr %9, align 8
%43 = call i32 @fgetc(ptr noundef %42)
store i32 %43, ptr %12, align 4
%44 = load i32, ptr %12, align 4
%45 = icmp eq i32 %44, -1
br i1 %45, label %46, label %60
46: ; preds = %41
%47 = load ptr, ptr %9, align 8
%48 = call i64 @feof(ptr noundef %47)
%49 = icmp ne i64 %48, 0
br i1 %49, label %50, label %59
50: ; preds = %46
%51 = load ptr, ptr %10, align 8
store i8 0, ptr %51, align 1
%52 = load ptr, ptr %10, align 8
%53 = load ptr, ptr %6, align 8
%54 = load ptr, ptr %53, align 8
%55 = ptrtoint ptr %52 to i64
%56 = ptrtoint ptr %54 to i64
%57 = sub i64 %55, %56
%58 = trunc i64 %57 to i32
store i32 %58, ptr %5, align 4
br label %112
59: ; preds = %46
store i32 -1, ptr %5, align 4
br label %112
60: ; preds = %41
%61 = load i32, ptr %12, align 4
%62 = trunc i32 %61 to i8
%63 = load ptr, ptr %10, align 8
%64 = getelementptr inbounds i8, ptr %63, i32 1
store ptr %64, ptr %10, align 8
store i8 %62, ptr %63, align 1
%65 = load i32, ptr %12, align 4
%66 = load i32, ptr %8, align 4
%67 = icmp eq i32 %65, %66
br i1 %67, label %68, label %77
68: ; preds = %60
%69 = load ptr, ptr %10, align 8
store i8 0, ptr %69, align 1
%70 = load ptr, ptr %10, align 8
%71 = load ptr, ptr %6, align 8
%72 = load ptr, ptr %71, align 8
%73 = ptrtoint ptr %70 to i64
%74 = ptrtoint ptr %72 to i64
%75 = sub i64 %73, %74
%76 = trunc i64 %75 to i32
store i32 %76, ptr %5, align 4
br label %112
77: ; preds = %60
%78 = load ptr, ptr %10, align 8
%79 = getelementptr inbounds i8, ptr %78, i64 2
%80 = load ptr, ptr %11, align 8
%81 = icmp uge ptr %79, %80
br i1 %81, label %82, label %111
82: ; preds = %77
%83 = load ptr, ptr %7, align 8
%84 = load i64, ptr %83, align 8
%85 = mul i64 %84, 2
store i64 %85, ptr %14, align 8
%86 = load ptr, ptr %10, align 8
%87 = load ptr, ptr %6, align 8
%88 = load ptr, ptr %87, align 8
%89 = ptrtoint ptr %86 to i64
%90 = ptrtoint ptr %88 to i64
%91 = sub i64 %89, %90
%92 = trunc i64 %91 to i32
store i32 %92, ptr %15, align 4
%93 = load ptr, ptr %6, align 8
%94 = load ptr, ptr %93, align 8
%95 = load i64, ptr %14, align 8
%96 = call ptr @realloc(ptr noundef %94, i64 noundef %95)
store ptr %96, ptr %13, align 8
%97 = icmp eq ptr %96, null
br i1 %97, label %98, label %99
98: ; preds = %82
store i32 -1, ptr %5, align 4
br label %112
99: ; preds = %82
%100 = load ptr, ptr %13, align 8
%101 = load ptr, ptr %6, align 8
store ptr %100, ptr %101, align 8
%102 = load i64, ptr %14, align 8
%103 = load ptr, ptr %7, align 8
store i64 %102, ptr %103, align 8
%104 = load ptr, ptr %13, align 8
%105 = load i64, ptr %14, align 8
%106 = getelementptr inbounds i8, ptr %104, i64 %105
store ptr %106, ptr %11, align 8
%107 = load ptr, ptr %13, align 8
%108 = load i32, ptr %15, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds i8, ptr %107, i64 %109
store ptr %110, ptr %10, align 8
br label %111
111: ; preds = %99, %77
br label %41
112: ; preds = %98, %68, %59, %50, %31
%113 = load i32, ptr %5, align 4
ret i32 %113
}
declare ptr @malloc(i64 noundef) #1
declare i32 @fgetc(ptr noundef) #1
declare i64 @feof(ptr noundef) #1
declare ptr @realloc(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/tmpqmphq9qn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@BUFSIZ = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getdelim(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca i64, align 8
%15 = 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
%16 = load ptr, ptr %6, align 8
%17 = load ptr, ptr %16, align 8
%18 = icmp eq ptr %17, null
br i1 %18, label %23, label %19
19: ; preds = %4
%20 = load ptr, ptr %7, align 8
%21 = load i64, ptr %20, align 8
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %33
23: ; preds = %19, %4
%24 = load i64, ptr @BUFSIZ, align 8
%25 = load ptr, ptr %7, align 8
store i64 %24, ptr %25, align 8
%26 = load ptr, ptr %7, align 8
%27 = load i64, ptr %26, align 8
%28 = call ptr @malloc(i64 noundef %27)
%29 = load ptr, ptr %6, align 8
store ptr %28, ptr %29, align 8
%30 = icmp eq ptr %28, null
br i1 %30, label %31, label %32
31: ; preds = %23
store i32 -1, ptr %5, align 4
br label %115
32: ; preds = %23
br label %33
33: ; preds = %32, %19
%34 = load ptr, ptr %6, align 8
%35 = load ptr, ptr %34, align 8
store ptr %35, ptr %10, align 8
%36 = load ptr, ptr %6, align 8
%37 = load ptr, ptr %36, align 8
%38 = load ptr, ptr %7, align 8
%39 = load i64, ptr %38, align 8
%40 = getelementptr inbounds i8, ptr %37, i64 %39
store ptr %40, ptr %11, align 8
%41 = load ptr, ptr %9, align 8
%42 = call i32 @fgetc(ptr noundef %41)
store i32 %42, ptr %12, align 4
%43 = load i32, ptr %12, align 4
%44 = icmp eq i32 %43, -1
br i1 %44, label %45, label %.lr.ph
.lr.ph: ; preds = %33
br label %59
._crit_edge: ; preds = %110
br label %45
45: ; preds = %._crit_edge, %33
%46 = load ptr, ptr %9, align 8
%47 = call i64 @feof(ptr noundef %46)
%48 = icmp ne i64 %47, 0
br i1 %48, label %49, label %58
49: ; preds = %45
%50 = load ptr, ptr %10, align 8
store i8 0, ptr %50, align 1
%51 = load ptr, ptr %10, align 8
%52 = load ptr, ptr %6, align 8
%53 = load ptr, ptr %52, align 8
%54 = ptrtoint ptr %51 to i64
%55 = ptrtoint ptr %53 to i64
%56 = sub i64 %54, %55
%57 = trunc i64 %56 to i32
store i32 %57, ptr %5, align 4
br label %115
58: ; preds = %45
store i32 -1, ptr %5, align 4
br label %115
59: ; preds = %.lr.ph, %110
%60 = load i32, ptr %12, align 4
%61 = trunc i32 %60 to i8
%62 = load ptr, ptr %10, align 8
%63 = getelementptr inbounds i8, ptr %62, i32 1
store ptr %63, ptr %10, align 8
store i8 %61, ptr %62, align 1
%64 = load i32, ptr %12, align 4
%65 = load i32, ptr %8, align 4
%66 = icmp eq i32 %64, %65
br i1 %66, label %67, label %76
67: ; preds = %59
%68 = load ptr, ptr %10, align 8
store i8 0, ptr %68, align 1
%69 = load ptr, ptr %10, align 8
%70 = load ptr, ptr %6, align 8
%71 = load ptr, ptr %70, align 8
%72 = ptrtoint ptr %69 to i64
%73 = ptrtoint ptr %71 to i64
%74 = sub i64 %72, %73
%75 = trunc i64 %74 to i32
store i32 %75, ptr %5, align 4
br label %115
76: ; preds = %59
%77 = load ptr, ptr %10, align 8
%78 = getelementptr inbounds i8, ptr %77, i64 2
%79 = load ptr, ptr %11, align 8
%80 = icmp uge ptr %78, %79
br i1 %80, label %81, label %110
81: ; preds = %76
%82 = load ptr, ptr %7, align 8
%83 = load i64, ptr %82, align 8
%84 = mul i64 %83, 2
store i64 %84, ptr %14, align 8
%85 = load ptr, ptr %10, align 8
%86 = load ptr, ptr %6, align 8
%87 = load ptr, ptr %86, align 8
%88 = ptrtoint ptr %85 to i64
%89 = ptrtoint ptr %87 to i64
%90 = sub i64 %88, %89
%91 = trunc i64 %90 to i32
store i32 %91, ptr %15, align 4
%92 = load ptr, ptr %6, align 8
%93 = load ptr, ptr %92, align 8
%94 = load i64, ptr %14, align 8
%95 = call ptr @realloc(ptr noundef %93, i64 noundef %94)
store ptr %95, ptr %13, align 8
%96 = icmp eq ptr %95, null
br i1 %96, label %97, label %98
97: ; preds = %81
store i32 -1, ptr %5, align 4
br label %115
98: ; preds = %81
%99 = load ptr, ptr %13, align 8
%100 = load ptr, ptr %6, align 8
store ptr %99, ptr %100, align 8
%101 = load i64, ptr %14, align 8
%102 = load ptr, ptr %7, align 8
store i64 %101, ptr %102, align 8
%103 = load ptr, ptr %13, align 8
%104 = load i64, ptr %14, align 8
%105 = getelementptr inbounds i8, ptr %103, i64 %104
store ptr %105, ptr %11, align 8
%106 = load ptr, ptr %13, align 8
%107 = load i32, ptr %15, align 4
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds i8, ptr %106, i64 %108
store ptr %109, ptr %10, align 8
br label %110
110: ; preds = %98, %76
%111 = load ptr, ptr %9, align 8
%112 = call i32 @fgetc(ptr noundef %111)
store i32 %112, ptr %12, align 4
%113 = load i32, ptr %12, align 4
%114 = icmp eq i32 %113, -1
br i1 %114, label %._crit_edge, label %59
115: ; preds = %97, %67, %58, %49, %31
%116 = load i32, ptr %5, align 4
ret i32 %116
}
declare ptr @malloc(i64 noundef) #1
declare i32 @fgetc(ptr noundef) #1
declare i64 @feof(ptr noundef) #1
declare ptr @realloc(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/tmpsyq0c3ba.c'
source_filename = "/tmp/tmpsyq0c3ba.c"
target datalayout = "e-m:e-p270: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/tmpsyq0c3ba.c"
target datalayout = "e-m:e-p270: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/tmp3v7e6d4e.c'
source_filename = "/tmp/tmp3v7e6d4e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @my_alpha() #0 {
%1 = alloca i8, align 1
store i8 97, ptr %1, align 1
br label %2
2: ; preds = %9, %0
%3 = load i8, ptr %1, align 1
%4 = sext i8 %3 to i32
%5 = icmp slt i32 %4, 122
br i1 %5, label %6, label %12
6: ; preds = %2
%7 = load i8, ptr %1, align 1
%8 = call i32 @my_char(i8 noundef signext %7)
br label %9
9: ; preds = %6
%10 = load i8, ptr %1, align 1
%11 = add i8 %10, 1
store i8 %11, ptr %1, align 1
br label %2, !llvm.loop !6
12: ; preds = %2
ret void
}
declare i32 @my_char(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/tmp3v7e6d4e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @my_alpha() #0 {
%1 = alloca i8, align 1
store i8 97, ptr %1, align 1
%2 = load i8, ptr %1, align 1
%3 = sext i8 %2 to i32
%4 = icmp slt i32 %3, 122
br i1 %4, label %.lr.ph, label %14
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %8
%6 = load i8, ptr %1, align 1
%7 = call i32 @my_char(i8 noundef signext %6)
br label %8
8: ; preds = %5
%9 = load i8, ptr %1, align 1
%10 = add i8 %9, 1
store i8 %10, ptr %1, align 1
%11 = load i8, ptr %1, align 1
%12 = sext i8 %11 to i32
%13 = icmp slt i32 %12, 122
br i1 %13, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %8
br label %14
14: ; preds = %._crit_edge, %0
ret void
}
declare i32 @my_char(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpg30oivko.c'
source_filename = "/tmp/tmpg30oivko.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_mbar_get_conf_energies(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) #0 {
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca double, align 8
store ptr %0, ptr %11, align 8
store ptr %1, ptr %12, align 8
store ptr %2, ptr %13, align 8
store ptr %3, ptr %14, align 8
store i32 %4, ptr %15, align 4
store i32 %5, ptr %16, align 4
store i32 %6, ptr %17, align 4
store ptr %7, ptr %18, align 8
store ptr %8, ptr %19, align 8
store ptr %9, ptr %20, align 8
store i32 0, ptr %22, align 4
br label %26
26: ; preds = %132, %10
%27 = load i32, ptr %22, align 4
%28 = load i32, ptr %17, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %30, label %135
30: ; preds = %26
store i32 0, ptr %23, align 4
br label %31
31: ; preds = %61, %30
%32 = load i32, ptr %23, align 4
%33 = load i32, ptr %15, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %35, label %64
35: ; preds = %31
%36 = load ptr, ptr %11, align 8
%37 = load i32, ptr %23, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds double, ptr %36, i64 %38
%40 = load double, ptr %39, align 8
%41 = load ptr, ptr %12, align 8
%42 = load i32, ptr %23, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds double, ptr %41, i64 %43
%45 = load double, ptr %44, align 8
%46 = fadd double %40, %45
%47 = load ptr, ptr %13, align 8
%48 = load i32, ptr %22, align 4
%49 = load i32, ptr %15, align 4
%50 = mul nsw i32 %48, %49
%51 = load i32, ptr %23, align 4
%52 = add nsw i32 %50, %51
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds double, ptr %47, i64 %53
%55 = load double, ptr %54, align 8
%56 = fsub double %46, %55
%57 = load ptr, ptr %18, align 8
%58 = load i32, ptr %23, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds double, ptr %57, i64 %59
store double %56, ptr %60, align 8
br label %61
61: ; preds = %35
%62 = load i32, ptr %23, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %23, align 4
br label %31, !llvm.loop !6
64: ; preds = %31
%65 = load ptr, ptr %14, align 8
%66 = load i32, ptr %22, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i32, ptr %65, i64 %67
%69 = load i32, ptr %68, align 4
store i32 %69, ptr %21, align 4
%70 = load i32, ptr %21, align 4
%71 = icmp slt i32 %70, 0
br i1 %71, label %72, label %73
72: ; preds = %64
br label %132
73: ; preds = %64
%74 = load ptr, ptr %18, align 8
%75 = load i32, ptr %15, align 4
%76 = call double @_logsumexp_sort_kahan_inplace(ptr noundef %74, i32 noundef %75)
store double %76, ptr %25, align 8
%77 = load ptr, ptr %19, align 8
%78 = load i32, ptr %21, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds double, ptr %77, i64 %79
%81 = load double, ptr %80, align 8
%82 = fneg double %81
%83 = load double, ptr %25, align 8
%84 = fneg double %83
%85 = call double @_logsumexp_pair(double noundef %82, double noundef %84)
%86 = fneg double %85
%87 = load ptr, ptr %19, align 8
%88 = load i32, ptr %21, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds double, ptr %87, i64 %89
store double %86, ptr %90, align 8
store i32 0, ptr %24, align 4
br label %91
91: ; preds = %128, %73
%92 = load i32, ptr %24, align 4
%93 = load i32, ptr %15, align 4
%94 = icmp slt i32 %92, %93
br i1 %94, label %95, label %131
95: ; preds = %91
%96 = load ptr, ptr %20, align 8
%97 = load i32, ptr %24, align 4
%98 = load i32, ptr %16, align 4
%99 = mul nsw i32 %97, %98
%100 = load i32, ptr %21, align 4
%101 = add nsw i32 %99, %100
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds double, ptr %96, i64 %102
%104 = load double, ptr %103, align 8
%105 = fneg double %104
%106 = load ptr, ptr %13, align 8
%107 = load i32, ptr %22, align 4
%108 = load i32, ptr %15, align 4
%109 = mul nsw i32 %107, %108
%110 = load i32, ptr %24, align 4
%111 = add nsw i32 %109, %110
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds double, ptr %106, i64 %112
%114 = load double, ptr %113, align 8
%115 = load double, ptr %25, align 8
%116 = fadd double %114, %115
%117 = fneg double %116
%118 = call double @_logsumexp_pair(double noundef %105, double noundef %117)
%119 = fneg double %118
%120 = load ptr, ptr %20, align 8
%121 = load i32, ptr %24, align 4
%122 = load i32, ptr %16, align 4
%123 = mul nsw i32 %121, %122
%124 = load i32, ptr %21, align 4
%125 = add nsw i32 %123, %124
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds double, ptr %120, i64 %126
store double %119, ptr %127, align 8
br label %128
128: ; preds = %95
%129 = load i32, ptr %24, align 4
%130 = add nsw i32 %129, 1
store i32 %130, ptr %24, align 4
br label %91, !llvm.loop !8
131: ; preds = %91
br label %132
132: ; preds = %131, %72
%133 = load i32, ptr %22, align 4
%134 = add nsw i32 %133, 1
store i32 %134, ptr %22, align 4
br label %26, !llvm.loop !9
135: ; preds = %26
ret void
}
declare double @_logsumexp_sort_kahan_inplace(ptr noundef, i32 noundef) #1
declare double @_logsumexp_pair(double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpg30oivko.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_mbar_get_conf_energies(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) #0 {
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca double, align 8
store ptr %0, ptr %11, align 8
store ptr %1, ptr %12, align 8
store ptr %2, ptr %13, align 8
store ptr %3, ptr %14, align 8
store i32 %4, ptr %15, align 4
store i32 %5, ptr %16, align 4
store i32 %6, ptr %17, align 4
store ptr %7, ptr %18, align 8
store ptr %8, ptr %19, align 8
store ptr %9, ptr %20, align 8
store i32 0, ptr %22, align 4
%26 = load i32, ptr %22, align 4
%27 = load i32, ptr %17, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %.lr.ph5, label %141
.lr.ph5: ; preds = %10
br label %29
29: ; preds = %.lr.ph5, %135
store i32 0, ptr %23, align 4
%30 = load i32, ptr %23, align 4
%31 = load i32, ptr %15, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %.lr.ph, label %65
.lr.ph: ; preds = %29
br label %33
33: ; preds = %.lr.ph, %59
%34 = load ptr, ptr %11, align 8
%35 = load i32, ptr %23, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds double, ptr %34, i64 %36
%38 = load double, ptr %37, align 8
%39 = load ptr, ptr %12, align 8
%40 = load i32, ptr %23, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds double, ptr %39, i64 %41
%43 = load double, ptr %42, align 8
%44 = fadd double %38, %43
%45 = load ptr, ptr %13, align 8
%46 = load i32, ptr %22, align 4
%47 = load i32, ptr %15, align 4
%48 = mul nsw i32 %46, %47
%49 = load i32, ptr %23, align 4
%50 = add nsw i32 %48, %49
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds double, ptr %45, i64 %51
%53 = load double, ptr %52, align 8
%54 = fsub double %44, %53
%55 = load ptr, ptr %18, align 8
%56 = load i32, ptr %23, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds double, ptr %55, i64 %57
store double %54, ptr %58, align 8
br label %59
59: ; preds = %33
%60 = load i32, ptr %23, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %23, align 4
%62 = load i32, ptr %23, align 4
%63 = load i32, ptr %15, align 4
%64 = icmp slt i32 %62, %63
br i1 %64, label %33, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %59
br label %65
65: ; preds = %._crit_edge, %29
%66 = load ptr, ptr %14, align 8
%67 = load i32, ptr %22, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i32, ptr %66, i64 %68
%70 = load i32, ptr %69, align 4
store i32 %70, ptr %21, align 4
%71 = load i32, ptr %21, align 4
%72 = icmp slt i32 %71, 0
br i1 %72, label %73, label %74
73: ; preds = %65
br label %135
74: ; preds = %65
%75 = load ptr, ptr %18, align 8
%76 = load i32, ptr %15, align 4
%77 = call double @_logsumexp_sort_kahan_inplace(ptr noundef %75, i32 noundef %76)
store double %77, ptr %25, align 8
%78 = load ptr, ptr %19, align 8
%79 = load i32, ptr %21, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds double, ptr %78, i64 %80
%82 = load double, ptr %81, align 8
%83 = fneg double %82
%84 = load double, ptr %25, align 8
%85 = fneg double %84
%86 = call double @_logsumexp_pair(double noundef %83, double noundef %85)
%87 = fneg double %86
%88 = load ptr, ptr %19, align 8
%89 = load i32, ptr %21, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds double, ptr %88, i64 %90
store double %87, ptr %91, align 8
store i32 0, ptr %24, align 4
%92 = load i32, ptr %24, align 4
%93 = load i32, ptr %15, align 4
%94 = icmp slt i32 %92, %93
br i1 %94, label %.lr.ph2, label %134
.lr.ph2: ; preds = %74
br label %95
95: ; preds = %.lr.ph2, %128
%96 = load ptr, ptr %20, align 8
%97 = load i32, ptr %24, align 4
%98 = load i32, ptr %16, align 4
%99 = mul nsw i32 %97, %98
%100 = load i32, ptr %21, align 4
%101 = add nsw i32 %99, %100
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds double, ptr %96, i64 %102
%104 = load double, ptr %103, align 8
%105 = fneg double %104
%106 = load ptr, ptr %13, align 8
%107 = load i32, ptr %22, align 4
%108 = load i32, ptr %15, align 4
%109 = mul nsw i32 %107, %108
%110 = load i32, ptr %24, align 4
%111 = add nsw i32 %109, %110
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds double, ptr %106, i64 %112
%114 = load double, ptr %113, align 8
%115 = load double, ptr %25, align 8
%116 = fadd double %114, %115
%117 = fneg double %116
%118 = call double @_logsumexp_pair(double noundef %105, double noundef %117)
%119 = fneg double %118
%120 = load ptr, ptr %20, align 8
%121 = load i32, ptr %24, align 4
%122 = load i32, ptr %16, align 4
%123 = mul nsw i32 %121, %122
%124 = load i32, ptr %21, align 4
%125 = add nsw i32 %123, %124
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds double, ptr %120, i64 %126
store double %119, ptr %127, align 8
br label %128
128: ; preds = %95
%129 = load i32, ptr %24, align 4
%130 = add nsw i32 %129, 1
store i32 %130, ptr %24, align 4
%131 = load i32, ptr %24, align 4
%132 = load i32, ptr %15, align 4
%133 = icmp slt i32 %131, %132
br i1 %133, label %95, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %128
br label %134
134: ; preds = %._crit_edge3, %74
br label %135
135: ; preds = %134, %73
%136 = load i32, ptr %22, align 4
%137 = add nsw i32 %136, 1
store i32 %137, ptr %22, align 4
%138 = load i32, ptr %22, align 4
%139 = load i32, ptr %17, align 4
%140 = icmp slt i32 %138, %139
br i1 %140, label %29, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %135
br label %141
141: ; preds = %._crit_edge6, %10
ret void
}
declare double @_logsumexp_sort_kahan_inplace(ptr noundef, i32 noundef) #1
declare double @_logsumexp_pair(double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpela99mr8.c'
source_filename = "/tmp/tmpela99mr8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
store i32 0, ptr %1, align 4
%3 = call i32 (...) @foo()
%4 = call i32 @bar(i32 noundef %3)
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %2, align 4
ret i32 %5
}
declare i32 @bar(i32 noundef) #1
declare i32 @foo(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpela99mr8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
store i32 0, ptr %1, align 4
%3 = call i32 (...) @foo()
%4 = call i32 @bar(i32 noundef %3)
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %2, align 4
ret i32 %5
}
declare i32 @bar(i32 noundef) #1
declare i32 @foo(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpupns5yvx.c'
source_filename = "/tmp/tmpupns5yvx.c"
target datalayout = "e-m:e-p270: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/tmpupns5yvx.c"
target datalayout = "e-m:e-p270: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/tmpx1li957y.c'
source_filename = "/tmp/tmpx1li957y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@LOG_NOTICE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [11 x i8] c"TERMlogger\00", align 1
@LOG_CONS = dso_local global i32 0, align 4
@LOG_PID = dso_local global i32 0, align 4
@LOG_NDELAY = dso_local global i32 0, align 4
@LOG_LOCAL1 = dso_local global i32 0, align 4
@LOG_ERR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [27 x i8] c"Program started by User %d\00", align 1
@LOG_DEBUG = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [21 x i8] c"Check error on Event\00", align 1
@LOG_INFO = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [10 x i8] c"PID -> %d\00", align 1
@.str.4 = private unnamed_addr constant [17 x i8] c"Debug --CRITICAL\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @errorLogger() #0 {
%1 = load i32, ptr @LOG_NOTICE, align 4
%2 = call i32 @LOG_UPTO(i32 noundef %1)
%3 = call i32 @setlogmask(i32 noundef %2)
%4 = load i32, ptr @LOG_CONS, align 4
%5 = load i32, ptr @LOG_PID, align 4
%6 = or i32 %4, %5
%7 = load i32, ptr @LOG_NDELAY, align 4
%8 = or i32 %6, %7
%9 = load i32, ptr @LOG_LOCAL1, align 4
%10 = call i32 @openlog(ptr noundef @.str, i32 noundef %8, i32 noundef %9)
%11 = load i32, ptr @LOG_ERR, align 4
%12 = call i32 (...) @getuid()
%13 = call i32 (i32, ptr, ...) @syslog(i32 noundef %11, ptr noundef @.str.1, i32 noundef %12)
%14 = load i32, ptr @LOG_DEBUG, align 4
%15 = call i32 (i32, ptr, ...) @syslog(i32 noundef %14, ptr noundef @.str.2)
%16 = load i32, ptr @LOG_INFO, align 4
%17 = call i32 (...) @getpid()
%18 = call i32 (i32, ptr, ...) @syslog(i32 noundef %16, ptr noundef @.str.3, i32 noundef %17)
%19 = load i32, ptr @LOG_INFO, align 4
%20 = call i32 (i32, ptr, ...) @syslog(i32 noundef %19, ptr noundef @.str.4)
%21 = call i32 (...) @closelog()
ret void
}
declare i32 @setlogmask(i32 noundef) #1
declare i32 @LOG_UPTO(i32 noundef) #1
declare i32 @openlog(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @syslog(i32 noundef, ptr noundef, ...) #1
declare i32 @getuid(...) #1
declare i32 @getpid(...) #1
declare i32 @closelog(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx1li957y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@LOG_NOTICE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [11 x i8] c"TERMlogger\00", align 1
@LOG_CONS = dso_local global i32 0, align 4
@LOG_PID = dso_local global i32 0, align 4
@LOG_NDELAY = dso_local global i32 0, align 4
@LOG_LOCAL1 = dso_local global i32 0, align 4
@LOG_ERR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [27 x i8] c"Program started by User %d\00", align 1
@LOG_DEBUG = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [21 x i8] c"Check error on Event\00", align 1
@LOG_INFO = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [10 x i8] c"PID -> %d\00", align 1
@.str.4 = private unnamed_addr constant [17 x i8] c"Debug --CRITICAL\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @errorLogger() #0 {
%1 = load i32, ptr @LOG_NOTICE, align 4
%2 = call i32 @LOG_UPTO(i32 noundef %1)
%3 = call i32 @setlogmask(i32 noundef %2)
%4 = load i32, ptr @LOG_CONS, align 4
%5 = load i32, ptr @LOG_PID, align 4
%6 = or i32 %4, %5
%7 = load i32, ptr @LOG_NDELAY, align 4
%8 = or i32 %6, %7
%9 = load i32, ptr @LOG_LOCAL1, align 4
%10 = call i32 @openlog(ptr noundef @.str, i32 noundef %8, i32 noundef %9)
%11 = load i32, ptr @LOG_ERR, align 4
%12 = call i32 (...) @getuid()
%13 = call i32 (i32, ptr, ...) @syslog(i32 noundef %11, ptr noundef @.str.1, i32 noundef %12)
%14 = load i32, ptr @LOG_DEBUG, align 4
%15 = call i32 (i32, ptr, ...) @syslog(i32 noundef %14, ptr noundef @.str.2)
%16 = load i32, ptr @LOG_INFO, align 4
%17 = call i32 (...) @getpid()
%18 = call i32 (i32, ptr, ...) @syslog(i32 noundef %16, ptr noundef @.str.3, i32 noundef %17)
%19 = load i32, ptr @LOG_INFO, align 4
%20 = call i32 (i32, ptr, ...) @syslog(i32 noundef %19, ptr noundef @.str.4)
%21 = call i32 (...) @closelog()
ret void
}
declare i32 @setlogmask(i32 noundef) #1
declare i32 @LOG_UPTO(i32 noundef) #1
declare i32 @openlog(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @syslog(i32 noundef, ptr noundef, ...) #1
declare i32 @getuid(...) #1
declare i32 @getpid(...) #1
declare i32 @closelog(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpog3pcxf9.c'
source_filename = "/tmp/tmpog3pcxf9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [74 x i8] c"chk_realloc: Ran out of memory (while trying to (re)allocating %d bytes)\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @chk_realloc(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load ptr, ptr %4, align 8
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %6, align 4
%11 = mul i32 %9, %10
%12 = call ptr @realloc(ptr noundef %8, i32 noundef %11)
store ptr %12, ptr %7, align 8
%13 = load ptr, ptr %7, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %22
15: ; preds = %3
%16 = load i32, ptr %5, align 4
%17 = load i32, ptr %6, align 4
%18 = mul i32 %16, %17
%19 = call i32 @print_error(ptr noundef @.str, i32 noundef %18)
%20 = load i32, ptr @EXIT_FAILURE, align 4
%21 = call i32 @exit(i32 noundef %20) #3
unreachable
22: ; preds = %3
%23 = load ptr, ptr %7, align 8
ret ptr %23
}
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i32 @print_error(ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpog3pcxf9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [74 x i8] c"chk_realloc: Ran out of memory (while trying to (re)allocating %d bytes)\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @chk_realloc(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load ptr, ptr %4, align 8
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %6, align 4
%11 = mul i32 %9, %10
%12 = call ptr @realloc(ptr noundef %8, i32 noundef %11)
store ptr %12, ptr %7, align 8
%13 = load ptr, ptr %7, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %22
15: ; preds = %3
%16 = load i32, ptr %5, align 4
%17 = load i32, ptr %6, align 4
%18 = mul i32 %16, %17
%19 = call i32 @print_error(ptr noundef @.str, i32 noundef %18)
%20 = load i32, ptr @EXIT_FAILURE, align 4
%21 = call i32 @exit(i32 noundef %20) #3
unreachable
22: ; preds = %3
%23 = load ptr, ptr %7, align 8
ret ptr %23
}
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i32 @print_error(ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfedvbxu8.c'
source_filename = "/tmp/tmpfedvbxu8.c"
target datalayout = "e-m:e-p270: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/tmpfedvbxu8.c"
target datalayout = "e-m:e-p270: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/tmpo7ubk3nw.c'
source_filename = "/tmp/tmpo7ubk3nw.c"
target datalayout = "e-m:e-p270: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/tmpo7ubk3nw.c"
target datalayout = "e-m:e-p270: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/tmp4xvl7ojg.c'
source_filename = "/tmp/tmp4xvl7ojg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ipmi_init(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store i64 0, ptr %3, align 8
br label %5
5: ; preds = %9, %1
%6 = load i64, ptr %3, align 8
%7 = call ptr @get_sdr(i64 noundef %6, ptr noundef %3)
store ptr %7, ptr %4, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %14
9: ; preds = %5
%10 = load ptr, ptr %2, align 8
%11 = load ptr, ptr %4, align 8
call void %10(ptr noundef %11)
%12 = load ptr, ptr %4, align 8
%13 = call i32 @free(ptr noundef %12)
br label %5, !llvm.loop !6
14: ; preds = %5
ret void
}
declare ptr @get_sdr(i64 noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4xvl7ojg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ipmi_init(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store i64 0, ptr %3, align 8
%5 = load i64, ptr %3, align 8
%6 = call ptr @get_sdr(i64 noundef %5, ptr noundef %3)
store ptr %6, ptr %4, align 8
%7 = icmp ne ptr %6, null
br i1 %7, label %.lr.ph, label %16
.lr.ph: ; preds = %1
br label %8
8: ; preds = %.lr.ph, %8
%9 = load ptr, ptr %2, align 8
%10 = load ptr, ptr %4, align 8
call void %9(ptr noundef %10)
%11 = load ptr, ptr %4, align 8
%12 = call i32 @free(ptr noundef %11)
%13 = load i64, ptr %3, align 8
%14 = call ptr @get_sdr(i64 noundef %13, ptr noundef %3)
store ptr %14, ptr %4, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %8
br label %16
16: ; preds = %._crit_edge, %1
ret void
}
declare ptr @get_sdr(i64 noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmprpu_04_r.c'
source_filename = "/tmp/tmprpu_04_r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprpu_04_r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxo8lxjhf.c'
source_filename = "/tmp/tmpxo8lxjhf.c"
target datalayout = "e-m:e-p270: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/tmpxo8lxjhf.c"
target datalayout = "e-m:e-p270: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/tmpc1dfu8dy.c'
source_filename = "/tmp/tmpc1dfu8dy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sum(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca i32, align 4
%28 = alloca i32, align 4
%29 = alloca i32, align 4
%30 = alloca i32, align 4
%31 = alloca i32, align 4
%32 = alloca i32, align 4
store i32 %0, ptr %7, align 4
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
store i32 %5, ptr %12, align 4
%33 = call i32 @f(i32 noundef 3)
store i32 1, ptr %13, align 4
store i32 2, ptr %14, align 4
store i32 3, ptr %15, align 4
store i32 4, ptr %16, align 4
store i32 5, ptr %17, align 4
store i32 6, ptr %18, align 4
store i32 7, ptr %19, align 4
store i32 8, ptr %20, align 4
store i32 9, ptr %21, align 4
store i32 10, ptr %22, align 4
store i32 11, ptr %23, align 4
store i32 12, ptr %24, align 4
store i32 13, ptr %25, align 4
store i32 14, ptr %26, align 4
store i32 15, ptr %27, align 4
store i32 16, ptr %28, align 4
store i32 17, ptr %29, align 4
store i32 18, ptr %30, align 4
store i32 19, ptr %31, align 4
store i32 20, ptr %32, align 4
%34 = load i32, ptr %7, align 4
%35 = load i32, ptr %8, align 4
%36 = add nsw i32 %34, %35
%37 = load i32, ptr %9, align 4
%38 = add nsw i32 %36, %37
%39 = load i32, ptr %10, align 4
%40 = add nsw i32 %38, %39
%41 = load i32, ptr %11, align 4
%42 = add nsw i32 %40, %41
%43 = load i32, ptr %12, align 4
%44 = add nsw i32 %42, %43
ret i32 %44
}
declare i32 @f(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/tmpc1dfu8dy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sum(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca i32, align 4
%28 = alloca i32, align 4
%29 = alloca i32, align 4
%30 = alloca i32, align 4
%31 = alloca i32, align 4
%32 = alloca i32, align 4
store i32 %0, ptr %7, align 4
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
store i32 %5, ptr %12, align 4
%33 = call i32 @f(i32 noundef 3)
store i32 1, ptr %13, align 4
store i32 2, ptr %14, align 4
store i32 3, ptr %15, align 4
store i32 4, ptr %16, align 4
store i32 5, ptr %17, align 4
store i32 6, ptr %18, align 4
store i32 7, ptr %19, align 4
store i32 8, ptr %20, align 4
store i32 9, ptr %21, align 4
store i32 10, ptr %22, align 4
store i32 11, ptr %23, align 4
store i32 12, ptr %24, align 4
store i32 13, ptr %25, align 4
store i32 14, ptr %26, align 4
store i32 15, ptr %27, align 4
store i32 16, ptr %28, align 4
store i32 17, ptr %29, align 4
store i32 18, ptr %30, align 4
store i32 19, ptr %31, align 4
store i32 20, ptr %32, align 4
%34 = load i32, ptr %7, align 4
%35 = load i32, ptr %8, align 4
%36 = add nsw i32 %34, %35
%37 = load i32, ptr %9, align 4
%38 = add nsw i32 %36, %37
%39 = load i32, ptr %10, align 4
%40 = add nsw i32 %38, %39
%41 = load i32, ptr %11, align 4
%42 = add nsw i32 %40, %41
%43 = load i32, ptr %12, align 4
%44 = add nsw i32 %42, %43
ret i32 %44
}
declare i32 @f(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/tmpzbekx9si.c'
source_filename = "/tmp/tmpzbekx9si.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pstrrtrim(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %7, label %12
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = load i8, ptr %8, align 1
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 0
br i1 %11, label %15, label %12
12: ; preds = %7, %1
%13 = load ptr, ptr %3, align 8
%14 = call ptr @pstrget(ptr noundef %13)
store ptr %14, ptr %2, align 8
br label %55
15: ; preds = %7
%16 = load ptr, ptr %3, align 8
%17 = load ptr, ptr %3, align 8
%18 = call i32 @pstrlen(ptr noundef %17)
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %16, i64 %19
%21 = getelementptr inbounds i8, ptr %20, i64 -1
store ptr %21, ptr %4, align 8
br label %22
22: ; preds = %48, %15
%23 = load ptr, ptr %4, align 8
%24 = load ptr, ptr %3, align 8
%25 = icmp ugt ptr %23, %24
br i1 %25, label %26, label %51
26: ; preds = %22
%27 = load ptr, ptr %4, align 8
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 32
br i1 %30, label %47, label %31
31: ; preds = %26
%32 = load ptr, ptr %4, align 8
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 9
br i1 %35, label %47, label %36
36: ; preds = %31
%37 = load ptr, ptr %4, align 8
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 13
br i1 %40, label %47, label %41
41: ; preds = %36
%42 = load ptr, ptr %4, align 8
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %44, 10
br i1 %45, label %47, label %46
46: ; preds = %41
br label %51
47: ; preds = %41, %36, %31, %26
br label %48
48: ; preds = %47
%49 = load ptr, ptr %4, align 8
%50 = getelementptr inbounds i8, ptr %49, i32 -1
store ptr %50, ptr %4, align 8
br label %22, !llvm.loop !6
51: ; preds = %46, %22
%52 = load ptr, ptr %4, align 8
%53 = getelementptr inbounds i8, ptr %52, i64 1
store i8 0, ptr %53, align 1
%54 = load ptr, ptr %3, align 8
store ptr %54, ptr %2, align 8
br label %55
55: ; preds = %51, %12
%56 = load ptr, ptr %2, align 8
ret ptr %56
}
declare ptr @pstrget(ptr noundef) #1
declare i32 @pstrlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpzbekx9si.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pstrrtrim(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %7, label %12
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = load i8, ptr %8, align 1
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 0
br i1 %11, label %15, label %12
12: ; preds = %7, %1
%13 = load ptr, ptr %3, align 8
%14 = call ptr @pstrget(ptr noundef %13)
store ptr %14, ptr %2, align 8
br label %57
15: ; preds = %7
%16 = load ptr, ptr %3, align 8
%17 = load ptr, ptr %3, align 8
%18 = call i32 @pstrlen(ptr noundef %17)
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %16, i64 %19
%21 = getelementptr inbounds i8, ptr %20, i64 -1
store ptr %21, ptr %4, align 8
%22 = load ptr, ptr %4, align 8
%23 = load ptr, ptr %3, align 8
%24 = icmp ugt ptr %22, %23
br i1 %24, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %15
br label %25
25: ; preds = %.lr.ph, %47
%26 = load ptr, ptr %4, align 8
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %28, 32
br i1 %29, label %46, label %30
30: ; preds = %25
%31 = load ptr, ptr %4, align 8
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 9
br i1 %34, label %46, label %35
35: ; preds = %30
%36 = load ptr, ptr %4, align 8
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = icmp eq i32 %38, 13
br i1 %39, label %46, label %40
40: ; preds = %35
%41 = load ptr, ptr %4, align 8
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
%44 = icmp eq i32 %43, 10
br i1 %44, label %46, label %45
45: ; preds = %40
br label %53
46: ; preds = %40, %35, %30, %25
br label %47
47: ; preds = %46
%48 = load ptr, ptr %4, align 8
%49 = getelementptr inbounds i8, ptr %48, i32 -1
store ptr %49, ptr %4, align 8
%50 = load ptr, ptr %4, align 8
%51 = load ptr, ptr %3, align 8
%52 = icmp ugt ptr %50, %51
br i1 %52, label %25, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %47
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %15
br label %53
53: ; preds = %.loopexit, %45
%54 = load ptr, ptr %4, align 8
%55 = getelementptr inbounds i8, ptr %54, i64 1
store i8 0, ptr %55, align 1
%56 = load ptr, ptr %3, align 8
store ptr %56, ptr %2, align 8
br label %57
57: ; preds = %53, %12
%58 = load ptr, ptr %2, align 8
ret ptr %58
}
declare ptr @pstrget(ptr noundef) #1
declare i32 @pstrlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpqe_dikzw.c'
source_filename = "/tmp/tmpqe_dikzw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"Is son str!\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"No son str!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @strStr(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
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%11 = load ptr, ptr %4, align 8
%12 = call i32 @strlen(ptr noundef %11)
store i32 %12, ptr %6, align 4
%13 = load ptr, ptr %5, align 8
%14 = call i32 @strlen(ptr noundef %13)
store i32 %14, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
br label %15
15: ; preds = %60, %2
%16 = load i32, ptr %9, align 4
%17 = load i32, ptr %6, align 4
%18 = load i32, ptr %7, align 4
%19 = sub nsw i32 %17, %18
%20 = icmp sle i32 %16, %19
br i1 %20, label %21, label %63
21: ; preds = %15
store i32 0, ptr %10, align 4
br label %22
22: ; preds = %48, %21
%23 = load i32, ptr %10, align 4
%24 = load i32, ptr %7, align 4
%25 = sub nsw i32 %24, 1
%26 = icmp slt i32 %23, %25
br i1 %26, label %27, label %51
27: ; preds = %22
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %9, align 4
%30 = load i32, ptr %10, align 4
%31 = add nsw i32 %29, %30
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %28, i64 %32
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = load ptr, ptr %5, align 8
%37 = load i32, ptr %10, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = icmp ne i32 %35, %41
br i1 %42, label %43, label %44
43: ; preds = %27
store i32 0, ptr %8, align 4
br label %51
44: ; preds = %27
%45 = load i32, ptr %8, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %8, align 4
br label %47
47: ; preds = %44
br label %48
48: ; preds = %47
%49 = load i32, ptr %10, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %10, align 4
br label %22, !llvm.loop !6
51: ; preds = %43, %22
%52 = load i32, ptr %8, align 4
%53 = load i32, ptr %7, align 4
%54 = sub nsw i32 %53, 1
%55 = icmp eq i32 %52, %54
br i1 %55, label %56, label %58
56: ; preds = %51
%57 = call i32 @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %65
58: ; preds = %51
store i32 0, ptr %8, align 4
br label %59
59: ; preds = %58
br label %60
60: ; preds = %59
%61 = load i32, ptr %9, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %9, align 4
br label %15, !llvm.loop !8
63: ; preds = %15
%64 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %3, align 4
br label %65
65: ; preds = %63, %56
%66 = load i32, ptr %3, align 4
ret i32 %66
}
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqe_dikzw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"Is son str!\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"No son str!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @strStr(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
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%11 = load ptr, ptr %4, align 8
%12 = call i32 @strlen(ptr noundef %11)
store i32 %12, ptr %6, align 4
%13 = load ptr, ptr %5, align 8
%14 = call i32 @strlen(ptr noundef %13)
store i32 %14, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
%15 = load i32, ptr %9, align 4
%16 = load i32, ptr %6, align 4
%17 = load i32, ptr %7, align 4
%18 = sub nsw i32 %16, %17
%19 = icmp sle i32 %15, %18
br i1 %19, label %.lr.ph1, label %70
.lr.ph1: ; preds = %2
br label %20
20: ; preds = %.lr.ph1, %62
store i32 0, ptr %10, align 4
%21 = load i32, ptr %10, align 4
%22 = load i32, ptr %7, align 4
%23 = sub nsw i32 %22, 1
%24 = icmp slt i32 %21, %23
br i1 %24, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %20
br label %25
25: ; preds = %.lr.ph, %46
%26 = load ptr, ptr %4, align 8
%27 = load i32, ptr %9, align 4
%28 = load i32, ptr %10, align 4
%29 = add nsw i32 %27, %28
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %26, i64 %30
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = load ptr, ptr %5, align 8
%35 = load i32, ptr %10, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = icmp ne i32 %33, %39
br i1 %40, label %41, label %42
41: ; preds = %25
store i32 0, ptr %8, align 4
br label %53
42: ; preds = %25
%43 = load i32, ptr %8, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %8, align 4
br label %45
45: ; preds = %42
br label %46
46: ; preds = %45
%47 = load i32, ptr %10, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %10, align 4
%49 = load i32, ptr %10, align 4
%50 = load i32, ptr %7, align 4
%51 = sub nsw i32 %50, 1
%52 = icmp slt i32 %49, %51
br i1 %52, label %25, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %46
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %20
br label %53
53: ; preds = %.loopexit, %41
%54 = load i32, ptr %8, align 4
%55 = load i32, ptr %7, align 4
%56 = sub nsw i32 %55, 1
%57 = icmp eq i32 %54, %56
br i1 %57, label %58, label %60
58: ; preds = %53
%59 = call i32 @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %72
60: ; preds = %53
store i32 0, ptr %8, align 4
br label %61
61: ; preds = %60
br label %62
62: ; preds = %61
%63 = load i32, ptr %9, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %9, align 4
%65 = load i32, ptr %9, align 4
%66 = load i32, ptr %6, align 4
%67 = load i32, ptr %7, align 4
%68 = sub nsw i32 %66, %67
%69 = icmp sle i32 %65, %68
br i1 %69, label %20, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %62
br label %70
70: ; preds = %._crit_edge, %2
%71 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %3, align 4
br label %72
72: ; preds = %70, %58
%73 = load i32, ptr %3, align 4
ret i32 %73
}
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpjd29tkyc.c'
source_filename = "/tmp/tmpjd29tkyc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @execute_listen() #0 {
%1 = call i32 (...) @execute_connect()
ret i32 0
}
declare i32 @execute_connect(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjd29tkyc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @execute_listen() #0 {
%1 = call i32 (...) @execute_connect()
ret i32 0
}
declare i32 @execute_connect(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6ov4kc8x.c'
source_filename = "/tmp/tmp6ov4kc8x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @g() #0 {
%1 = call i32 (...) @star_p()
ret i32 %1
}
declare i32 @star_p(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6ov4kc8x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @g() #0 {
%1 = call i32 (...) @star_p()
ret i32 %1
}
declare i32 @star_p(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0lrbkv4k.c'
source_filename = "/tmp/tmp0lrbkv4k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%d%d%d%d\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%d %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%7 = load i32, ptr %4, align 4
%8 = sub nsw i32 %7, 1
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %15
10: ; preds = %0
%11 = load i32, ptr %4, align 4
%12 = sub nsw i32 %11, 1
%13 = load i32, ptr %5, align 4
%14 = call i32 @printf(ptr noundef @.str.1, i32 noundef %12, i32 noundef %13)
br label %15
15: ; preds = %10, %0
%16 = load i32, ptr %4, align 4
%17 = add nsw i32 %16, 1
%18 = load i32, ptr %2, align 4
%19 = icmp sle i32 %17, %18
br i1 %19, label %20, label %25
20: ; preds = %15
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, 1
%23 = load i32, ptr %5, align 4
%24 = call i32 @printf(ptr noundef @.str.1, i32 noundef %22, i32 noundef %23)
br label %25
25: ; preds = %20, %15
%26 = load i32, ptr %5, align 4
%27 = sub nsw i32 %26, 1
%28 = icmp sgt i32 %27, 0
br i1 %28, label %29, label %34
29: ; preds = %25
%30 = load i32, ptr %4, align 4
%31 = load i32, ptr %5, align 4
%32 = sub nsw i32 %31, 1
%33 = call i32 @printf(ptr noundef @.str.1, i32 noundef %30, i32 noundef %32)
br label %34
34: ; preds = %29, %25
%35 = load i32, ptr %5, align 4
%36 = add nsw i32 %35, 1
%37 = load i32, ptr %3, align 4
%38 = icmp sle i32 %36, %37
br i1 %38, label %39, label %44
39: ; preds = %34
%40 = load i32, ptr %4, align 4
%41 = load i32, ptr %5, align 4
%42 = add nsw i32 %41, 1
%43 = call i32 @printf(ptr noundef @.str.1, i32 noundef %40, i32 noundef %42)
br label %44
44: ; preds = %39, %34
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0lrbkv4k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%d%d%d%d\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%d %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%7 = load i32, ptr %4, align 4
%8 = sub nsw i32 %7, 1
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %15
10: ; preds = %0
%11 = load i32, ptr %4, align 4
%12 = sub nsw i32 %11, 1
%13 = load i32, ptr %5, align 4
%14 = call i32 @printf(ptr noundef @.str.1, i32 noundef %12, i32 noundef %13)
br label %15
15: ; preds = %10, %0
%16 = load i32, ptr %4, align 4
%17 = add nsw i32 %16, 1
%18 = load i32, ptr %2, align 4
%19 = icmp sle i32 %17, %18
br i1 %19, label %20, label %25
20: ; preds = %15
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, 1
%23 = load i32, ptr %5, align 4
%24 = call i32 @printf(ptr noundef @.str.1, i32 noundef %22, i32 noundef %23)
br label %25
25: ; preds = %20, %15
%26 = load i32, ptr %5, align 4
%27 = sub nsw i32 %26, 1
%28 = icmp sgt i32 %27, 0
br i1 %28, label %29, label %34
29: ; preds = %25
%30 = load i32, ptr %4, align 4
%31 = load i32, ptr %5, align 4
%32 = sub nsw i32 %31, 1
%33 = call i32 @printf(ptr noundef @.str.1, i32 noundef %30, i32 noundef %32)
br label %34
34: ; preds = %29, %25
%35 = load i32, ptr %5, align 4
%36 = add nsw i32 %35, 1
%37 = load i32, ptr %3, align 4
%38 = icmp sle i32 %36, %37
br i1 %38, label %39, label %44
39: ; preds = %34
%40 = load i32, ptr %4, align 4
%41 = load i32, ptr %5, align 4
%42 = add nsw i32 %41, 1
%43 = call i32 @printf(ptr noundef @.str.1, i32 noundef %40, i32 noundef %42)
br label %44
44: ; preds = %39, %34
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjvixjdlf.c'
source_filename = "/tmp/tmpjvixjdlf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @computeLIx(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 ptr, align 8
%10 = alloca i32, align 4
%11 = 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
%12 = load i32, ptr %8, align 4
%13 = sext i32 %12 to i64
%14 = mul i64 %13, 4
%15 = trunc i64 %14 to i32
%16 = call ptr @malloc(i32 noundef %15)
store ptr %16, ptr %9, align 8
store i32 1, ptr %10, align 4
br label %17
17: ; preds = %53, %4
%18 = load i32, ptr %10, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %61
21: ; preds = %17
store i32 0, ptr %11, align 4
br label %22
22: ; preds = %50, %21
%23 = load i32, ptr %10, align 4
%24 = load i32, ptr %11, align 4
%25 = add nsw i32 %23, %24
%26 = load i32, ptr %6, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %48
28: ; preds = %22
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %7, align 4
%31 = load i32, ptr %11, align 4
%32 = mul nsw i32 %30, %31
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %29, i64 %33
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %7, align 4
%39 = load i32, ptr %10, align 4
%40 = load i32, ptr %11, align 4
%41 = add nsw i32 %39, %40
%42 = mul nsw i32 %38, %41
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %37, i64 %43
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = icmp eq i32 %36, %46
br label %48
48: ; preds = %28, %22
%49 = phi i1 [ false, %22 ], [ %47, %28 ]
br i1 %49, label %50, label %53
50: ; preds = %48
%51 = load i32, ptr %11, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %11, align 4
br label %22, !llvm.loop !6
53: ; preds = %48
%54 = load i32, ptr %11, align 4
%55 = load ptr, ptr %9, align 8
%56 = load i32, ptr %10, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i32, ptr %55, i64 %57
store i32 %54, ptr %58, align 4
%59 = load i32, ptr %10, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %10, align 4
br label %17, !llvm.loop !8
61: ; preds = %17
%62 = load ptr, ptr %9, align 8
ret ptr %62
}
declare ptr @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjvixjdlf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @computeLIx(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 ptr, align 8
%10 = alloca i32, align 4
%11 = 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
%12 = load i32, ptr %8, align 4
%13 = sext i32 %12 to i64
%14 = mul i64 %13, 4
%15 = trunc i64 %14 to i32
%16 = call ptr @malloc(i32 noundef %15)
store ptr %16, ptr %9, align 8
store i32 1, ptr %10, align 4
%17 = load i32, ptr %10, align 4
%18 = load i32, ptr %8, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %.lr.ph, label %63
.lr.ph: ; preds = %4
br label %20
20: ; preds = %.lr.ph, %52
store i32 0, ptr %11, align 4
br label %21
21: ; preds = %49, %20
%22 = load i32, ptr %10, align 4
%23 = load i32, ptr %11, align 4
%24 = add nsw i32 %22, %23
%25 = load i32, ptr %6, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %47
27: ; preds = %21
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %7, align 4
%30 = load i32, ptr %11, align 4
%31 = mul nsw i32 %29, %30
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %28, i64 %32
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = load ptr, ptr %5, align 8
%37 = load i32, ptr %7, align 4
%38 = load i32, ptr %10, align 4
%39 = load i32, ptr %11, align 4
%40 = add nsw i32 %38, %39
%41 = mul nsw i32 %37, %40
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %36, i64 %42
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = icmp eq i32 %35, %45
br label %47
47: ; preds = %27, %21
%48 = phi i1 [ false, %21 ], [ %46, %27 ]
br i1 %48, label %49, label %52
49: ; preds = %47
%50 = load i32, ptr %11, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %11, align 4
br label %21, !llvm.loop !6
52: ; preds = %47
%53 = load i32, ptr %11, align 4
%54 = load ptr, ptr %9, align 8
%55 = load i32, ptr %10, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i32, ptr %54, i64 %56
store i32 %53, ptr %57, align 4
%58 = load i32, ptr %10, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %10, align 4
%60 = load i32, ptr %10, align 4
%61 = load i32, ptr %8, align 4
%62 = icmp slt i32 %60, %61
br i1 %62, label %20, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %52
br label %63
63: ; preds = %._crit_edge, %4
%64 = load ptr, ptr %9, align 8
ret ptr %64
}
declare ptr @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpnm_l6bbd.c'
source_filename = "/tmp/tmpnm_l6bbd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @LCD_FillRectangle(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%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
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %8, align 4
%14 = load i32, ptr %9, align 4
%15 = load i32, ptr %10, align 4
%16 = call i32 @ST7735_FillRect(i32 noundef %11, i32 noundef %12, i32 noundef %13, i32 noundef %14, i32 noundef %15)
ret void
}
declare i32 @ST7735_FillRect(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnm_l6bbd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @LCD_FillRectangle(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%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
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %8, align 4
%14 = load i32, ptr %9, align 4
%15 = load i32, ptr %10, align 4
%16 = call i32 @ST7735_FillRect(i32 noundef %11, i32 noundef %12, i32 noundef %13, i32 noundef %14, i32 noundef %15)
ret void
}
declare i32 @ST7735_FillRect(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphjp46idn.c'
source_filename = "/tmp/tmphjp46idn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c".exe\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @imodProgName(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = call ptr @strrchr(ptr noundef %8, i8 noundef signext 47)
store ptr %9, ptr %4, align 8
%10 = load ptr, ptr %3, align 8
%11 = call ptr @strrchr(ptr noundef %10, i8 noundef signext 92)
store ptr %11, ptr %5, align 8
%12 = load ptr, ptr %5, align 8
%13 = load ptr, ptr %4, align 8
%14 = icmp ugt ptr %12, %13
br i1 %14, label %15, label %17
15: ; preds = %1
%16 = load ptr, ptr %5, align 8
store ptr %16, ptr %4, align 8
br label %17
17: ; preds = %15, %1
%18 = load ptr, ptr %4, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %22, label %20
20: ; preds = %17
%21 = load ptr, ptr %3, align 8
store ptr %21, ptr %2, align 8
br label %54
22: ; preds = %17
%23 = load ptr, ptr %4, align 8
%24 = getelementptr inbounds i8, ptr %23, i32 1
store ptr %24, ptr %4, align 8
%25 = load ptr, ptr %4, align 8
%26 = call ptr @strstr(ptr noundef %25, ptr noundef @.str)
store ptr %26, ptr %6, align 8
%27 = load ptr, ptr %4, align 8
%28 = call i32 @strlen(ptr noundef %27)
%29 = sub nsw i32 %28, 4
store i32 %29, ptr %7, align 4
%30 = load ptr, ptr %6, align 8
%31 = icmp ne ptr %30, null
br i1 %31, label %32, label %39
32: ; preds = %22
%33 = load ptr, ptr %6, align 8
%34 = load ptr, ptr %4, align 8
%35 = load i32, ptr %7, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
%38 = icmp ne ptr %33, %37
br i1 %38, label %39, label %41
39: ; preds = %32, %22
%40 = load ptr, ptr %4, align 8
store ptr %40, ptr %2, align 8
br label %54
41: ; preds = %32
%42 = load ptr, ptr %4, align 8
%43 = call ptr @strdup(ptr noundef %42)
store ptr %43, ptr %6, align 8
%44 = load ptr, ptr %6, align 8
%45 = icmp ne ptr %44, null
br i1 %45, label %48, label %46
46: ; preds = %41
%47 = load ptr, ptr %4, align 8
store ptr %47, ptr %2, align 8
br label %54
48: ; preds = %41
%49 = load ptr, ptr %6, align 8
%50 = load i32, ptr %7, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i8, ptr %49, i64 %51
store i8 0, ptr %52, align 1
%53 = load ptr, ptr %6, align 8
store ptr %53, ptr %2, align 8
br label %54
54: ; preds = %48, %46, %39, %20
%55 = load ptr, ptr %2, align 8
ret ptr %55
}
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @strdup(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphjp46idn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c".exe\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @imodProgName(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = call ptr @strrchr(ptr noundef %8, i8 noundef signext 47)
store ptr %9, ptr %4, align 8
%10 = load ptr, ptr %3, align 8
%11 = call ptr @strrchr(ptr noundef %10, i8 noundef signext 92)
store ptr %11, ptr %5, align 8
%12 = load ptr, ptr %5, align 8
%13 = load ptr, ptr %4, align 8
%14 = icmp ugt ptr %12, %13
br i1 %14, label %15, label %17
15: ; preds = %1
%16 = load ptr, ptr %5, align 8
store ptr %16, ptr %4, align 8
br label %17
17: ; preds = %15, %1
%18 = load ptr, ptr %4, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %22, label %20
20: ; preds = %17
%21 = load ptr, ptr %3, align 8
store ptr %21, ptr %2, align 8
br label %54
22: ; preds = %17
%23 = load ptr, ptr %4, align 8
%24 = getelementptr inbounds i8, ptr %23, i32 1
store ptr %24, ptr %4, align 8
%25 = load ptr, ptr %4, align 8
%26 = call ptr @strstr(ptr noundef %25, ptr noundef @.str)
store ptr %26, ptr %6, align 8
%27 = load ptr, ptr %4, align 8
%28 = call i32 @strlen(ptr noundef %27)
%29 = sub nsw i32 %28, 4
store i32 %29, ptr %7, align 4
%30 = load ptr, ptr %6, align 8
%31 = icmp ne ptr %30, null
br i1 %31, label %32, label %39
32: ; preds = %22
%33 = load ptr, ptr %6, align 8
%34 = load ptr, ptr %4, align 8
%35 = load i32, ptr %7, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
%38 = icmp ne ptr %33, %37
br i1 %38, label %39, label %41
39: ; preds = %32, %22
%40 = load ptr, ptr %4, align 8
store ptr %40, ptr %2, align 8
br label %54
41: ; preds = %32
%42 = load ptr, ptr %4, align 8
%43 = call ptr @strdup(ptr noundef %42)
store ptr %43, ptr %6, align 8
%44 = load ptr, ptr %6, align 8
%45 = icmp ne ptr %44, null
br i1 %45, label %48, label %46
46: ; preds = %41
%47 = load ptr, ptr %4, align 8
store ptr %47, ptr %2, align 8
br label %54
48: ; preds = %41
%49 = load ptr, ptr %6, align 8
%50 = load i32, ptr %7, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i8, ptr %49, i64 %51
store i8 0, ptr %52, align 1
%53 = load ptr, ptr %6, align 8
store ptr %53, ptr %2, align 8
br label %54
54: ; preds = %48, %46, %39, %20
%55 = load ptr, ptr %2, align 8
ret ptr %55
}
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @strdup(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdge1fgcb.c'
source_filename = "/tmp/tmpdge1fgcb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @boot_nv_security_counter_init() #0 {
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/tmpdge1fgcb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @boot_nv_security_counter_init() #0 {
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/tmpaxqz3xu5.c'
source_filename = "/tmp/tmpaxqz3xu5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CL_SUCCESS = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [42 x i8] c"error: call to 'clGetPlatformIDs' failed\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"Number of platforms: %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"platform=%p\0A\00", align 1
@CL_PLATFORM_NAME = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [43 x i8] c"error: call to 'clGetPlatformInfo' failed\0A\00", align 1
@.str.4 = private unnamed_addr constant [21 x i8] c"platform.name='%s'\0A\0A\00", align 1
@CL_DEVICE_TYPE_GPU = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [40 x i8] c"error: call to 'clGetDeviceIDs' failed\0A\00", align 1
@.str.6 = private unnamed_addr constant [23 x i8] c"Number of devices: %d\0A\00", align 1
@.str.7 = private unnamed_addr constant [11 x i8] c"device=%p\0A\00", align 1
@CL_DEVICE_NAME = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [41 x i8] c"error: call to 'clGetDeviceInfo' failed\0A\00", align 1
@.str.9 = private unnamed_addr constant [18 x i8] c"device.name='%s'\0A\00", align 1
@.str.10 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.11 = private unnamed_addr constant [41 x i8] c"error: call to 'clCreateContext' failed\0A\00", align 1
@.str.12 = private unnamed_addr constant [12 x i8] c"context=%p\0A\00", align 1
@.str.13 = private unnamed_addr constant [46 x i8] c"error: call to 'clCreateCommandQueue' failed\0A\00", align 1
@.str.14 = private unnamed_addr constant [18 x i8] c"command_queue=%p\0A\00", align 1
@.str.15 = private unnamed_addr constant [20 x i8] c"native_cos_float.cl\00", align 1
@.str.16 = private unnamed_addr constant [51 x i8] c"error: call to 'clCreateProgramWithSource' failed\0A\00", align 1
@.str.17 = private unnamed_addr constant [12 x i8] c"program=%p\0A\00", align 1
@CL_PROGRAM_BUILD_LOG = dso_local global i32 0, align 4
@.str.18 = private unnamed_addr constant [44 x i8] c"error: call to 'clBuildProgram' failed:\0A%s\0A\00", align 1
@.str.19 = private unnamed_addr constant [15 x i8] c"program built\0A\00", align 1
@.str.20 = private unnamed_addr constant [17 x i8] c"native_cos_float\00", align 1
@.str.21 = private unnamed_addr constant [40 x i8] c"error: call to 'clCreateKernel' failed\0A\00", align 1
@CL_MEM_READ_ONLY = dso_local global i32 0, align 4
@.str.22 = private unnamed_addr constant [39 x i8] c"error: could not create source buffer\0A\00", align 1
@CL_TRUE = dso_local global i32 0, align 4
@.str.23 = private unnamed_addr constant [46 x i8] c"error: call to 'clEnqueueWriteBuffer' failed\0A\00", align 1
@CL_MEM_WRITE_ONLY = dso_local global i32 0, align 4
@.str.24 = private unnamed_addr constant [36 x i8] c"error: could not create dst buffer\0A\00", align 1
@.str.25 = private unnamed_addr constant [40 x i8] c"error: call to 'clSetKernelArg' failed\0A\00", align 1
@.str.26 = private unnamed_addr constant [48 x i8] c"error: call to 'clEnqueueNDRangeKernel' failed\0A\00", align 1
@.str.27 = private unnamed_addr constant [45 x i8] c"error: call to 'clEnqueueReadBuffer' failed\0A\00", align 1
@.str.28 = private unnamed_addr constant [10 x i8] c"%s.result\00", align 1
@.str.29 = private unnamed_addr constant [21 x i8] c"Result dumped to %s\0A\00", align 1
@.str.30 = private unnamed_addr constant [44 x i8] c"error: call to 'clReleaseMemObject' failed\0A\00", align 1
@.str.31 = private unnamed_addr constant [41 x i8] c"error: call to 'clReleaseKernel' failed\0A\00", align 1
@.str.32 = private unnamed_addr constant [42 x i8] c"error: call to 'clReleaseProgram' failed\0A\00", align 1
@.str.33 = private unnamed_addr constant [47 x i8] c"error: call to 'clReleaseCommandQueue' failed\0A\00", align 1
@.str.34 = private unnamed_addr constant [42 x i8] c"error: call to 'clReleaseContext' failed\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [100 x i8], align 16
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca [100 x i8], align 16
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca i64, align 8
%17 = alloca i32, align 4
%18 = alloca i64, align 8
%19 = alloca ptr, align 8
%20 = alloca i32, align 4
%21 = alloca i64, align 8
%22 = alloca ptr, align 8
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca ptr, align 8
%26 = alloca i32, align 4
%27 = alloca i64, align 8
%28 = alloca i64, align 8
%29 = alloca [100 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
%30 = call i32 @clGetPlatformIDs(i32 noundef 1, ptr noundef %6, ptr noundef %7)
store i32 %30, ptr %8, align 4
%31 = load i32, ptr %8, align 4
%32 = load i32, ptr @CL_SUCCESS, align 4
%33 = icmp ne i32 %31, %32
br i1 %33, label %34, label %37
34: ; preds = %2
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%36 = call i32 @exit(i32 noundef 1) #3
unreachable
37: ; preds = %2
%38 = load i32, ptr %7, align 4
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %38)
%40 = load i32, ptr %6, align 4
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %40)
%42 = load i32, ptr %6, align 4
%43 = load i32, ptr @CL_PLATFORM_NAME, align 4
%44 = getelementptr inbounds [100 x i8], ptr %9, i64 0, i64 0
%45 = call i32 @clGetPlatformInfo(i32 noundef %42, i32 noundef %43, i32 noundef 100, ptr noundef %44, ptr noundef null)
store i32 %45, ptr %8, align 4
%46 = load i32, ptr %8, align 4
%47 = load i32, ptr @CL_SUCCESS, align 4
%48 = icmp ne i32 %46, %47
br i1 %48, label %49, label %52
49: ; preds = %37
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%51 = call i32 @exit(i32 noundef 1) #3
unreachable
52: ; preds = %37
%53 = getelementptr inbounds [100 x i8], ptr %9, i64 0, i64 0
%54 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %53)
%55 = load i32, ptr %6, align 4
%56 = load i32, ptr @CL_DEVICE_TYPE_GPU, align 4
%57 = call i32 @clGetDeviceIDs(i32 noundef %55, i32 noundef %56, i32 noundef 1, ptr noundef %10, ptr noundef %11)
store i32 %57, ptr %8, align 4
%58 = load i32, ptr %8, align 4
%59 = load i32, ptr @CL_SUCCESS, align 4
%60 = icmp ne i32 %58, %59
br i1 %60, label %61, label %64
61: ; preds = %52
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%63 = call i32 @exit(i32 noundef 1) #3
unreachable
64: ; preds = %52
%65 = load i32, ptr %11, align 4
%66 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %65)
%67 = load i32, ptr %10, align 4
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %67)
%69 = load i32, ptr %10, align 4
%70 = load i32, ptr @CL_DEVICE_NAME, align 4
%71 = getelementptr inbounds [100 x i8], ptr %12, i64 0, i64 0
%72 = call i32 @clGetDeviceInfo(i32 noundef %69, i32 noundef %70, i32 noundef 100, ptr noundef %71, ptr noundef null)
store i32 %72, ptr %8, align 4
%73 = load i32, ptr %8, align 4
%74 = load i32, ptr @CL_SUCCESS, align 4
%75 = icmp ne i32 %73, %74
br i1 %75, label %76, label %79
76: ; preds = %64
%77 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%78 = call i32 @exit(i32 noundef 1) #3
unreachable
79: ; preds = %64
%80 = getelementptr inbounds [100 x i8], ptr %12, i64 0, i64 0
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %80)
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%83 = call i32 @clCreateContext(ptr noundef null, i32 noundef 1, ptr noundef %10, ptr noundef null, ptr noundef null, ptr noundef %8)
store i32 %83, ptr %13, align 4
%84 = load i32, ptr %8, align 4
%85 = load i32, ptr @CL_SUCCESS, align 4
%86 = icmp ne i32 %84, %85
br i1 %86, label %87, label %90
87: ; preds = %79
%88 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%89 = call i32 @exit(i32 noundef 1) #3
unreachable
90: ; preds = %79
%91 = load i32, ptr %13, align 4
%92 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %91)
%93 = load i32, ptr %13, align 4
%94 = load i32, ptr %10, align 4
%95 = call i32 @clCreateCommandQueue(i32 noundef %93, i32 noundef %94, i32 noundef 0, ptr noundef %8)
store i32 %95, ptr %14, align 4
%96 = load i32, ptr %8, align 4
%97 = load i32, ptr @CL_SUCCESS, align 4
%98 = icmp ne i32 %96, %97
br i1 %98, label %99, label %102
99: ; preds = %90
%100 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%101 = call i32 @exit(i32 noundef 1) #3
unreachable
102: ; preds = %90
%103 = load i32, ptr %14, align 4
%104 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %103)
%105 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%106 = call ptr @read_buffer(ptr noundef @.str.15, ptr noundef %16)
store ptr %106, ptr %15, align 8
%107 = load i32, ptr %13, align 4
%108 = call i32 @clCreateProgramWithSource(i32 noundef %107, i32 noundef 1, ptr noundef %15, ptr noundef %16, ptr noundef %8)
store i32 %108, ptr %17, align 4
%109 = load i32, ptr %8, align 4
%110 = load i32, ptr @CL_SUCCESS, align 4
%111 = icmp ne i32 %109, %110
br i1 %111, label %112, label %115
112: ; preds = %102
%113 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
%114 = call i32 @exit(i32 noundef 1) #3
unreachable
115: ; preds = %102
%116 = load i32, ptr %17, align 4
%117 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, i32 noundef %116)
%118 = load i32, ptr %17, align 4
%119 = call i32 @clBuildProgram(i32 noundef %118, i32 noundef 1, ptr noundef %10, ptr noundef null, ptr noundef null, ptr noundef null)
store i32 %119, ptr %8, align 4
%120 = load i32, ptr %8, align 4
%121 = load i32, ptr @CL_SUCCESS, align 4
%122 = icmp ne i32 %120, %121
br i1 %122, label %123, label %141
123: ; preds = %115
%124 = load i32, ptr %17, align 4
%125 = load i32, ptr %10, align 4
%126 = load i32, ptr @CL_PROGRAM_BUILD_LOG, align 4
%127 = call i32 @clGetProgramBuildInfo(i32 noundef %124, i32 noundef %125, i32 noundef %126, i64 noundef 0, ptr noundef null, ptr noundef %18)
%128 = load i64, ptr %18, align 8
%129 = call ptr @malloc(i64 noundef %128)
store ptr %129, ptr %19, align 8
%130 = load i32, ptr %17, align 4
%131 = load i32, ptr %10, align 4
%132 = load i32, ptr @CL_PROGRAM_BUILD_LOG, align 4
%133 = load i64, ptr %18, align 8
%134 = load ptr, ptr %19, align 8
%135 = call i32 @clGetProgramBuildInfo(i32 noundef %130, i32 noundef %131, i32 noundef %132, i64 noundef %133, ptr noundef %134, ptr noundef null)
%136 = load ptr, ptr %19, align 8
%137 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, ptr noundef %136)
%138 = load ptr, ptr %19, align 8
%139 = call i32 @free(ptr noundef %138)
%140 = call i32 @exit(i32 noundef 1) #3
unreachable
141: ; preds = %115
%142 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
%143 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%144 = load i32, ptr %17, align 4
%145 = call i32 @clCreateKernel(i32 noundef %144, ptr noundef @.str.20, ptr noundef %8)
store i32 %145, ptr %20, align 4
%146 = load i32, ptr %8, align 4
%147 = load i32, ptr @CL_SUCCESS, align 4
%148 = icmp ne i32 %146, %147
br i1 %148, label %149, label %152
149: ; preds = %141
%150 = call i32 (ptr, ...) @printf(ptr noundef @.str.21)
%151 = call i32 @exit(i32 noundef 1) #3
unreachable
152: ; preds = %141
store i64 10, ptr %21, align 8
%153 = load i64, ptr %21, align 8
%154 = mul i64 %153, 1
%155 = call ptr @malloc(i64 noundef %154)
store ptr %155, ptr %22, align 8
store i32 0, ptr %23, align 4
br label %156
156: ; preds = %166, %152
%157 = load i32, ptr %23, align 4
%158 = sext i32 %157 to i64
%159 = load i64, ptr %21, align 8
%160 = icmp ult i64 %158, %159
br i1 %160, label %161, label %169
161: ; preds = %156
%162 = load ptr, ptr %22, align 8
%163 = load i32, ptr %23, align 4
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds i8, ptr %162, i64 %164
store i8 2, ptr %165, align 1
br label %166
166: ; preds = %161
%167 = load i32, ptr %23, align 4
%168 = add nsw i32 %167, 1
store i32 %168, ptr %23, align 4
br label %156, !llvm.loop !6
169: ; preds = %156
%170 = load i32, ptr %13, align 4
%171 = load i32, ptr @CL_MEM_READ_ONLY, align 4
%172 = load i64, ptr %21, align 8
%173 = mul i64 %172, 1
%174 = call i32 @clCreateBuffer(i32 noundef %170, i32 noundef %171, i64 noundef %173, ptr noundef null, ptr noundef %8)
store i32 %174, ptr %24, align 4
%175 = load i32, ptr %8, align 4
%176 = load i32, ptr @CL_SUCCESS, align 4
%177 = icmp ne i32 %175, %176
br i1 %177, label %178, label %181
178: ; preds = %169
%179 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
%180 = call i32 @exit(i32 noundef 1) #3
unreachable
181: ; preds = %169
%182 = load i32, ptr %14, align 4
%183 = load i32, ptr %24, align 4
%184 = load i32, ptr @CL_TRUE, align 4
%185 = load i64, ptr %21, align 8
%186 = mul i64 %185, 1
%187 = load ptr, ptr %22, align 8
%188 = call i32 @clEnqueueWriteBuffer(i32 noundef %182, i32 noundef %183, i32 noundef %184, i32 noundef 0, i64 noundef %186, ptr noundef %187, i32 noundef 0, ptr noundef null, ptr noundef null)
store i32 %188, ptr %8, align 4
%189 = load i32, ptr %8, align 4
%190 = load i32, ptr @CL_SUCCESS, align 4
%191 = icmp ne i32 %189, %190
br i1 %191, label %192, label %195
192: ; preds = %181
%193 = call i32 (ptr, ...) @printf(ptr noundef @.str.23)
%194 = call i32 @exit(i32 noundef 1) #3
unreachable
195: ; preds = %181
%196 = load i64, ptr %21, align 8
%197 = mul i64 %196, 1
%198 = call ptr @malloc(i64 noundef %197)
store ptr %198, ptr %25, align 8
%199 = load ptr, ptr %25, align 8
%200 = load i64, ptr %21, align 8
%201 = mul i64 %200, 1
%202 = call i32 @memset(ptr noundef %199, i32 noundef 1, i64 noundef %201)
%203 = load i32, ptr %13, align 4
%204 = load i32, ptr @CL_MEM_WRITE_ONLY, align 4
%205 = load i64, ptr %21, align 8
%206 = mul i64 %205, 1
%207 = call i32 @clCreateBuffer(i32 noundef %203, i32 noundef %204, i64 noundef %206, ptr noundef null, ptr noundef %8)
store i32 %207, ptr %26, align 4
%208 = load i32, ptr %8, align 4
%209 = load i32, ptr @CL_SUCCESS, align 4
%210 = icmp ne i32 %208, %209
br i1 %210, label %211, label %214
211: ; preds = %195
%212 = call i32 (ptr, ...) @printf(ptr noundef @.str.24)
%213 = call i32 @exit(i32 noundef 1) #3
unreachable
214: ; preds = %195
%215 = load i32, ptr @CL_SUCCESS, align 4
store i32 %215, ptr %8, align 4
%216 = load i32, ptr %20, align 4
%217 = call i32 @clSetKernelArg(i32 noundef %216, i32 noundef 0, i32 noundef 4, ptr noundef %24)
%218 = load i32, ptr %8, align 4
%219 = or i32 %218, %217
store i32 %219, ptr %8, align 4
%220 = load i32, ptr %20, align 4
%221 = call i32 @clSetKernelArg(i32 noundef %220, i32 noundef 1, i32 noundef 4, ptr noundef %26)
%222 = load i32, ptr %8, align 4
%223 = or i32 %222, %221
store i32 %223, ptr %8, align 4
%224 = load i32, ptr %8, align 4
%225 = load i32, ptr @CL_SUCCESS, align 4
%226 = icmp ne i32 %224, %225
br i1 %226, label %227, label %230
227: ; preds = %214
%228 = call i32 (ptr, ...) @printf(ptr noundef @.str.25)
%229 = call i32 @exit(i32 noundef 1) #3
unreachable
230: ; preds = %214
%231 = load i64, ptr %21, align 8
store i64 %231, ptr %27, align 8
%232 = load i64, ptr %21, align 8
store i64 %232, ptr %28, align 8
%233 = load i32, ptr %14, align 4
%234 = load i32, ptr %20, align 4
%235 = call i32 @clEnqueueNDRangeKernel(i32 noundef %233, i32 noundef %234, i32 noundef 1, ptr noundef null, ptr noundef %27, ptr noundef %28, i32 noundef 0, ptr noundef null, ptr noundef null)
store i32 %235, ptr %8, align 4
%236 = load i32, ptr %8, align 4
%237 = load i32, ptr @CL_SUCCESS, align 4
%238 = icmp ne i32 %236, %237
br i1 %238, label %239, label %242
239: ; preds = %230
%240 = call i32 (ptr, ...) @printf(ptr noundef @.str.26)
%241 = call i32 @exit(i32 noundef 1) #3
unreachable
242: ; preds = %230
%243 = load i32, ptr %14, align 4
%244 = call i32 @clFinish(i32 noundef %243)
%245 = load i32, ptr %14, align 4
%246 = load i32, ptr %26, align 4
%247 = load i32, ptr @CL_TRUE, align 4
%248 = load i64, ptr %21, align 8
%249 = mul i64 %248, 1
%250 = load ptr, ptr %25, align 8
%251 = call i32 @clEnqueueReadBuffer(i32 noundef %245, i32 noundef %246, i32 noundef %247, i32 noundef 0, i64 noundef %249, ptr noundef %250, i32 noundef 0, ptr noundef null, ptr noundef null)
store i32 %251, ptr %8, align 4
%252 = load i32, ptr %8, align 4
%253 = load i32, ptr @CL_SUCCESS, align 4
%254 = icmp ne i32 %252, %253
br i1 %254, label %255, label %258
255: ; preds = %242
%256 = call i32 (ptr, ...) @printf(ptr noundef @.str.27)
%257 = call i32 @exit(i32 noundef 1) #3
unreachable
258: ; preds = %242
%259 = load ptr, ptr %5, align 8
%260 = getelementptr inbounds ptr, ptr %259, i64 0
%261 = load ptr, ptr %260, align 8
%262 = call i32 @sprintf(ptr noundef %29, ptr noundef @.str.28, ptr noundef %261)
%263 = getelementptr inbounds [100 x i8], ptr %29, i64 0, i64 0
%264 = load ptr, ptr %25, align 8
%265 = load i64, ptr %21, align 8
%266 = mul i64 %265, 1
%267 = call i32 @write_buffer(ptr noundef %263, ptr noundef %264, i64 noundef %266)
%268 = getelementptr inbounds [100 x i8], ptr %29, i64 0, i64 0
%269 = call i32 (ptr, ...) @printf(ptr noundef @.str.29, ptr noundef %268)
%270 = load ptr, ptr %25, align 8
%271 = call i32 @free(ptr noundef %270)
%272 = load i32, ptr %26, align 4
%273 = call i32 @clReleaseMemObject(i32 noundef %272)
store i32 %273, ptr %8, align 4
%274 = load i32, ptr %8, align 4
%275 = load i32, ptr @CL_SUCCESS, align 4
%276 = icmp ne i32 %274, %275
br i1 %276, label %277, label %280
277: ; preds = %258
%278 = call i32 (ptr, ...) @printf(ptr noundef @.str.30)
%279 = call i32 @exit(i32 noundef 1) #3
unreachable
280: ; preds = %258
%281 = load ptr, ptr %22, align 8
%282 = call i32 @free(ptr noundef %281)
%283 = load i32, ptr %24, align 4
%284 = call i32 @clReleaseMemObject(i32 noundef %283)
store i32 %284, ptr %8, align 4
%285 = load i32, ptr %8, align 4
%286 = load i32, ptr @CL_SUCCESS, align 4
%287 = icmp ne i32 %285, %286
br i1 %287, label %288, label %291
288: ; preds = %280
%289 = call i32 (ptr, ...) @printf(ptr noundef @.str.30)
%290 = call i32 @exit(i32 noundef 1) #3
unreachable
291: ; preds = %280
%292 = load i32, ptr %20, align 4
%293 = call i32 @clReleaseKernel(i32 noundef %292)
store i32 %293, ptr %8, align 4
%294 = load i32, ptr %8, align 4
%295 = load i32, ptr @CL_SUCCESS, align 4
%296 = icmp ne i32 %294, %295
br i1 %296, label %297, label %300
297: ; preds = %291
%298 = call i32 (ptr, ...) @printf(ptr noundef @.str.31)
%299 = call i32 @exit(i32 noundef 1) #3
unreachable
300: ; preds = %291
%301 = load i32, ptr %17, align 4
%302 = call i32 @clReleaseProgram(i32 noundef %301)
store i32 %302, ptr %8, align 4
%303 = load i32, ptr %8, align 4
%304 = load i32, ptr @CL_SUCCESS, align 4
%305 = icmp ne i32 %303, %304
br i1 %305, label %306, label %309
306: ; preds = %300
%307 = call i32 (ptr, ...) @printf(ptr noundef @.str.32)
%308 = call i32 @exit(i32 noundef 1) #3
unreachable
309: ; preds = %300
%310 = load i32, ptr %14, align 4
%311 = call i32 @clReleaseCommandQueue(i32 noundef %310)
store i32 %311, ptr %8, align 4
%312 = load i32, ptr %8, align 4
%313 = load i32, ptr @CL_SUCCESS, align 4
%314 = icmp ne i32 %312, %313
br i1 %314, label %315, label %318
315: ; preds = %309
%316 = call i32 (ptr, ...) @printf(ptr noundef @.str.33)
%317 = call i32 @exit(i32 noundef 1) #3
unreachable
318: ; preds = %309
%319 = load i32, ptr %13, align 4
%320 = call i32 @clReleaseContext(i32 noundef %319)
store i32 %320, ptr %8, align 4
%321 = load i32, ptr %8, align 4
%322 = load i32, ptr @CL_SUCCESS, align 4
%323 = icmp ne i32 %321, %322
br i1 %323, label %324, label %327
324: ; preds = %318
%325 = call i32 (ptr, ...) @printf(ptr noundef @.str.34)
%326 = call i32 @exit(i32 noundef 1) #3
unreachable
327: ; preds = %318
ret i32 0
}
declare i32 @clGetPlatformIDs(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @clGetPlatformInfo(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @clGetDeviceIDs(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @clGetDeviceInfo(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @clCreateContext(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @clCreateCommandQueue(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare ptr @read_buffer(ptr noundef, ptr noundef) #1
declare i32 @clCreateProgramWithSource(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @clBuildProgram(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @clGetProgramBuildInfo(i32 noundef, i32 noundef, i32 noundef, i64 noundef, ptr noundef, ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @clCreateKernel(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @clCreateBuffer(i32 noundef, i32 noundef, i64 noundef, ptr noundef, ptr noundef) #1
declare i32 @clEnqueueWriteBuffer(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i64 noundef) #1
declare i32 @clSetKernelArg(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @clEnqueueNDRangeKernel(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @clFinish(i32 noundef) #1
declare i32 @clEnqueueReadBuffer(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @write_buffer(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @clReleaseMemObject(i32 noundef) #1
declare i32 @clReleaseKernel(i32 noundef) #1
declare i32 @clReleaseProgram(i32 noundef) #1
declare i32 @clReleaseCommandQueue(i32 noundef) #1
declare i32 @clReleaseContext(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/tmpaxqz3xu5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CL_SUCCESS = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [42 x i8] c"error: call to 'clGetPlatformIDs' failed\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"Number of platforms: %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"platform=%p\0A\00", align 1
@CL_PLATFORM_NAME = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [43 x i8] c"error: call to 'clGetPlatformInfo' failed\0A\00", align 1
@.str.4 = private unnamed_addr constant [21 x i8] c"platform.name='%s'\0A\0A\00", align 1
@CL_DEVICE_TYPE_GPU = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [40 x i8] c"error: call to 'clGetDeviceIDs' failed\0A\00", align 1
@.str.6 = private unnamed_addr constant [23 x i8] c"Number of devices: %d\0A\00", align 1
@.str.7 = private unnamed_addr constant [11 x i8] c"device=%p\0A\00", align 1
@CL_DEVICE_NAME = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [41 x i8] c"error: call to 'clGetDeviceInfo' failed\0A\00", align 1
@.str.9 = private unnamed_addr constant [18 x i8] c"device.name='%s'\0A\00", align 1
@.str.10 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.11 = private unnamed_addr constant [41 x i8] c"error: call to 'clCreateContext' failed\0A\00", align 1
@.str.12 = private unnamed_addr constant [12 x i8] c"context=%p\0A\00", align 1
@.str.13 = private unnamed_addr constant [46 x i8] c"error: call to 'clCreateCommandQueue' failed\0A\00", align 1
@.str.14 = private unnamed_addr constant [18 x i8] c"command_queue=%p\0A\00", align 1
@.str.15 = private unnamed_addr constant [20 x i8] c"native_cos_float.cl\00", align 1
@.str.16 = private unnamed_addr constant [51 x i8] c"error: call to 'clCreateProgramWithSource' failed\0A\00", align 1
@.str.17 = private unnamed_addr constant [12 x i8] c"program=%p\0A\00", align 1
@CL_PROGRAM_BUILD_LOG = dso_local global i32 0, align 4
@.str.18 = private unnamed_addr constant [44 x i8] c"error: call to 'clBuildProgram' failed:\0A%s\0A\00", align 1
@.str.19 = private unnamed_addr constant [15 x i8] c"program built\0A\00", align 1
@.str.20 = private unnamed_addr constant [17 x i8] c"native_cos_float\00", align 1
@.str.21 = private unnamed_addr constant [40 x i8] c"error: call to 'clCreateKernel' failed\0A\00", align 1
@CL_MEM_READ_ONLY = dso_local global i32 0, align 4
@.str.22 = private unnamed_addr constant [39 x i8] c"error: could not create source buffer\0A\00", align 1
@CL_TRUE = dso_local global i32 0, align 4
@.str.23 = private unnamed_addr constant [46 x i8] c"error: call to 'clEnqueueWriteBuffer' failed\0A\00", align 1
@CL_MEM_WRITE_ONLY = dso_local global i32 0, align 4
@.str.24 = private unnamed_addr constant [36 x i8] c"error: could not create dst buffer\0A\00", align 1
@.str.25 = private unnamed_addr constant [40 x i8] c"error: call to 'clSetKernelArg' failed\0A\00", align 1
@.str.26 = private unnamed_addr constant [48 x i8] c"error: call to 'clEnqueueNDRangeKernel' failed\0A\00", align 1
@.str.27 = private unnamed_addr constant [45 x i8] c"error: call to 'clEnqueueReadBuffer' failed\0A\00", align 1
@.str.28 = private unnamed_addr constant [10 x i8] c"%s.result\00", align 1
@.str.29 = private unnamed_addr constant [21 x i8] c"Result dumped to %s\0A\00", align 1
@.str.30 = private unnamed_addr constant [44 x i8] c"error: call to 'clReleaseMemObject' failed\0A\00", align 1
@.str.31 = private unnamed_addr constant [41 x i8] c"error: call to 'clReleaseKernel' failed\0A\00", align 1
@.str.32 = private unnamed_addr constant [42 x i8] c"error: call to 'clReleaseProgram' failed\0A\00", align 1
@.str.33 = private unnamed_addr constant [47 x i8] c"error: call to 'clReleaseCommandQueue' failed\0A\00", align 1
@.str.34 = private unnamed_addr constant [42 x i8] c"error: call to 'clReleaseContext' failed\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [100 x i8], align 16
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca [100 x i8], align 16
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca i64, align 8
%17 = alloca i32, align 4
%18 = alloca i64, align 8
%19 = alloca ptr, align 8
%20 = alloca i32, align 4
%21 = alloca i64, align 8
%22 = alloca ptr, align 8
%23 = alloca i32, align 4
%24 = alloca i32, align 4
%25 = alloca ptr, align 8
%26 = alloca i32, align 4
%27 = alloca i64, align 8
%28 = alloca i64, align 8
%29 = alloca [100 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
%30 = call i32 @clGetPlatformIDs(i32 noundef 1, ptr noundef %6, ptr noundef %7)
store i32 %30, ptr %8, align 4
%31 = load i32, ptr %8, align 4
%32 = load i32, ptr @CL_SUCCESS, align 4
%33 = icmp ne i32 %31, %32
br i1 %33, label %34, label %37
34: ; preds = %2
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%36 = call i32 @exit(i32 noundef 1) #3
unreachable
37: ; preds = %2
%38 = load i32, ptr %7, align 4
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %38)
%40 = load i32, ptr %6, align 4
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %40)
%42 = load i32, ptr %6, align 4
%43 = load i32, ptr @CL_PLATFORM_NAME, align 4
%44 = getelementptr inbounds [100 x i8], ptr %9, i64 0, i64 0
%45 = call i32 @clGetPlatformInfo(i32 noundef %42, i32 noundef %43, i32 noundef 100, ptr noundef %44, ptr noundef null)
store i32 %45, ptr %8, align 4
%46 = load i32, ptr %8, align 4
%47 = load i32, ptr @CL_SUCCESS, align 4
%48 = icmp ne i32 %46, %47
br i1 %48, label %49, label %52
49: ; preds = %37
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%51 = call i32 @exit(i32 noundef 1) #3
unreachable
52: ; preds = %37
%53 = getelementptr inbounds [100 x i8], ptr %9, i64 0, i64 0
%54 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %53)
%55 = load i32, ptr %6, align 4
%56 = load i32, ptr @CL_DEVICE_TYPE_GPU, align 4
%57 = call i32 @clGetDeviceIDs(i32 noundef %55, i32 noundef %56, i32 noundef 1, ptr noundef %10, ptr noundef %11)
store i32 %57, ptr %8, align 4
%58 = load i32, ptr %8, align 4
%59 = load i32, ptr @CL_SUCCESS, align 4
%60 = icmp ne i32 %58, %59
br i1 %60, label %61, label %64
61: ; preds = %52
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%63 = call i32 @exit(i32 noundef 1) #3
unreachable
64: ; preds = %52
%65 = load i32, ptr %11, align 4
%66 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %65)
%67 = load i32, ptr %10, align 4
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %67)
%69 = load i32, ptr %10, align 4
%70 = load i32, ptr @CL_DEVICE_NAME, align 4
%71 = getelementptr inbounds [100 x i8], ptr %12, i64 0, i64 0
%72 = call i32 @clGetDeviceInfo(i32 noundef %69, i32 noundef %70, i32 noundef 100, ptr noundef %71, ptr noundef null)
store i32 %72, ptr %8, align 4
%73 = load i32, ptr %8, align 4
%74 = load i32, ptr @CL_SUCCESS, align 4
%75 = icmp ne i32 %73, %74
br i1 %75, label %76, label %79
76: ; preds = %64
%77 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%78 = call i32 @exit(i32 noundef 1) #3
unreachable
79: ; preds = %64
%80 = getelementptr inbounds [100 x i8], ptr %12, i64 0, i64 0
%81 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %80)
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%83 = call i32 @clCreateContext(ptr noundef null, i32 noundef 1, ptr noundef %10, ptr noundef null, ptr noundef null, ptr noundef %8)
store i32 %83, ptr %13, align 4
%84 = load i32, ptr %8, align 4
%85 = load i32, ptr @CL_SUCCESS, align 4
%86 = icmp ne i32 %84, %85
br i1 %86, label %87, label %90
87: ; preds = %79
%88 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%89 = call i32 @exit(i32 noundef 1) #3
unreachable
90: ; preds = %79
%91 = load i32, ptr %13, align 4
%92 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %91)
%93 = load i32, ptr %13, align 4
%94 = load i32, ptr %10, align 4
%95 = call i32 @clCreateCommandQueue(i32 noundef %93, i32 noundef %94, i32 noundef 0, ptr noundef %8)
store i32 %95, ptr %14, align 4
%96 = load i32, ptr %8, align 4
%97 = load i32, ptr @CL_SUCCESS, align 4
%98 = icmp ne i32 %96, %97
br i1 %98, label %99, label %102
99: ; preds = %90
%100 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%101 = call i32 @exit(i32 noundef 1) #3
unreachable
102: ; preds = %90
%103 = load i32, ptr %14, align 4
%104 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %103)
%105 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%106 = call ptr @read_buffer(ptr noundef @.str.15, ptr noundef %16)
store ptr %106, ptr %15, align 8
%107 = load i32, ptr %13, align 4
%108 = call i32 @clCreateProgramWithSource(i32 noundef %107, i32 noundef 1, ptr noundef %15, ptr noundef %16, ptr noundef %8)
store i32 %108, ptr %17, align 4
%109 = load i32, ptr %8, align 4
%110 = load i32, ptr @CL_SUCCESS, align 4
%111 = icmp ne i32 %109, %110
br i1 %111, label %112, label %115
112: ; preds = %102
%113 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
%114 = call i32 @exit(i32 noundef 1) #3
unreachable
115: ; preds = %102
%116 = load i32, ptr %17, align 4
%117 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, i32 noundef %116)
%118 = load i32, ptr %17, align 4
%119 = call i32 @clBuildProgram(i32 noundef %118, i32 noundef 1, ptr noundef %10, ptr noundef null, ptr noundef null, ptr noundef null)
store i32 %119, ptr %8, align 4
%120 = load i32, ptr %8, align 4
%121 = load i32, ptr @CL_SUCCESS, align 4
%122 = icmp ne i32 %120, %121
br i1 %122, label %123, label %141
123: ; preds = %115
%124 = load i32, ptr %17, align 4
%125 = load i32, ptr %10, align 4
%126 = load i32, ptr @CL_PROGRAM_BUILD_LOG, align 4
%127 = call i32 @clGetProgramBuildInfo(i32 noundef %124, i32 noundef %125, i32 noundef %126, i64 noundef 0, ptr noundef null, ptr noundef %18)
%128 = load i64, ptr %18, align 8
%129 = call ptr @malloc(i64 noundef %128)
store ptr %129, ptr %19, align 8
%130 = load i32, ptr %17, align 4
%131 = load i32, ptr %10, align 4
%132 = load i32, ptr @CL_PROGRAM_BUILD_LOG, align 4
%133 = load i64, ptr %18, align 8
%134 = load ptr, ptr %19, align 8
%135 = call i32 @clGetProgramBuildInfo(i32 noundef %130, i32 noundef %131, i32 noundef %132, i64 noundef %133, ptr noundef %134, ptr noundef null)
%136 = load ptr, ptr %19, align 8
%137 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, ptr noundef %136)
%138 = load ptr, ptr %19, align 8
%139 = call i32 @free(ptr noundef %138)
%140 = call i32 @exit(i32 noundef 1) #3
unreachable
141: ; preds = %115
%142 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
%143 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%144 = load i32, ptr %17, align 4
%145 = call i32 @clCreateKernel(i32 noundef %144, ptr noundef @.str.20, ptr noundef %8)
store i32 %145, ptr %20, align 4
%146 = load i32, ptr %8, align 4
%147 = load i32, ptr @CL_SUCCESS, align 4
%148 = icmp ne i32 %146, %147
br i1 %148, label %149, label %152
149: ; preds = %141
%150 = call i32 (ptr, ...) @printf(ptr noundef @.str.21)
%151 = call i32 @exit(i32 noundef 1) #3
unreachable
152: ; preds = %141
store i64 10, ptr %21, align 8
%153 = load i64, ptr %21, align 8
%154 = mul i64 %153, 1
%155 = call ptr @malloc(i64 noundef %154)
store ptr %155, ptr %22, align 8
store i32 0, ptr %23, align 4
%156 = load i32, ptr %23, align 4
%157 = sext i32 %156 to i64
%158 = load i64, ptr %21, align 8
%159 = icmp ult i64 %157, %158
br i1 %159, label %.lr.ph, label %172
.lr.ph: ; preds = %152
br label %160
160: ; preds = %.lr.ph, %165
%161 = load ptr, ptr %22, align 8
%162 = load i32, ptr %23, align 4
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds i8, ptr %161, i64 %163
store i8 2, ptr %164, align 1
br label %165
165: ; preds = %160
%166 = load i32, ptr %23, align 4
%167 = add nsw i32 %166, 1
store i32 %167, ptr %23, align 4
%168 = load i32, ptr %23, align 4
%169 = sext i32 %168 to i64
%170 = load i64, ptr %21, align 8
%171 = icmp ult i64 %169, %170
br i1 %171, label %160, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %165
br label %172
172: ; preds = %._crit_edge, %152
%173 = load i32, ptr %13, align 4
%174 = load i32, ptr @CL_MEM_READ_ONLY, align 4
%175 = load i64, ptr %21, align 8
%176 = mul i64 %175, 1
%177 = call i32 @clCreateBuffer(i32 noundef %173, i32 noundef %174, i64 noundef %176, ptr noundef null, ptr noundef %8)
store i32 %177, ptr %24, align 4
%178 = load i32, ptr %8, align 4
%179 = load i32, ptr @CL_SUCCESS, align 4
%180 = icmp ne i32 %178, %179
br i1 %180, label %181, label %184
181: ; preds = %172
%182 = call i32 (ptr, ...) @printf(ptr noundef @.str.22)
%183 = call i32 @exit(i32 noundef 1) #3
unreachable
184: ; preds = %172
%185 = load i32, ptr %14, align 4
%186 = load i32, ptr %24, align 4
%187 = load i32, ptr @CL_TRUE, align 4
%188 = load i64, ptr %21, align 8
%189 = mul i64 %188, 1
%190 = load ptr, ptr %22, align 8
%191 = call i32 @clEnqueueWriteBuffer(i32 noundef %185, i32 noundef %186, i32 noundef %187, i32 noundef 0, i64 noundef %189, ptr noundef %190, i32 noundef 0, ptr noundef null, ptr noundef null)
store i32 %191, ptr %8, align 4
%192 = load i32, ptr %8, align 4
%193 = load i32, ptr @CL_SUCCESS, align 4
%194 = icmp ne i32 %192, %193
br i1 %194, label %195, label %198
195: ; preds = %184
%196 = call i32 (ptr, ...) @printf(ptr noundef @.str.23)
%197 = call i32 @exit(i32 noundef 1) #3
unreachable
198: ; preds = %184
%199 = load i64, ptr %21, align 8
%200 = mul i64 %199, 1
%201 = call ptr @malloc(i64 noundef %200)
store ptr %201, ptr %25, align 8
%202 = load ptr, ptr %25, align 8
%203 = load i64, ptr %21, align 8
%204 = mul i64 %203, 1
%205 = call i32 @memset(ptr noundef %202, i32 noundef 1, i64 noundef %204)
%206 = load i32, ptr %13, align 4
%207 = load i32, ptr @CL_MEM_WRITE_ONLY, align 4
%208 = load i64, ptr %21, align 8
%209 = mul i64 %208, 1
%210 = call i32 @clCreateBuffer(i32 noundef %206, i32 noundef %207, i64 noundef %209, ptr noundef null, ptr noundef %8)
store i32 %210, ptr %26, align 4
%211 = load i32, ptr %8, align 4
%212 = load i32, ptr @CL_SUCCESS, align 4
%213 = icmp ne i32 %211, %212
br i1 %213, label %214, label %217
214: ; preds = %198
%215 = call i32 (ptr, ...) @printf(ptr noundef @.str.24)
%216 = call i32 @exit(i32 noundef 1) #3
unreachable
217: ; preds = %198
%218 = load i32, ptr @CL_SUCCESS, align 4
store i32 %218, ptr %8, align 4
%219 = load i32, ptr %20, align 4
%220 = call i32 @clSetKernelArg(i32 noundef %219, i32 noundef 0, i32 noundef 4, ptr noundef %24)
%221 = load i32, ptr %8, align 4
%222 = or i32 %221, %220
store i32 %222, ptr %8, align 4
%223 = load i32, ptr %20, align 4
%224 = call i32 @clSetKernelArg(i32 noundef %223, i32 noundef 1, i32 noundef 4, ptr noundef %26)
%225 = load i32, ptr %8, align 4
%226 = or i32 %225, %224
store i32 %226, ptr %8, align 4
%227 = load i32, ptr %8, align 4
%228 = load i32, ptr @CL_SUCCESS, align 4
%229 = icmp ne i32 %227, %228
br i1 %229, label %230, label %233
230: ; preds = %217
%231 = call i32 (ptr, ...) @printf(ptr noundef @.str.25)
%232 = call i32 @exit(i32 noundef 1) #3
unreachable
233: ; preds = %217
%234 = load i64, ptr %21, align 8
store i64 %234, ptr %27, align 8
%235 = load i64, ptr %21, align 8
store i64 %235, ptr %28, align 8
%236 = load i32, ptr %14, align 4
%237 = load i32, ptr %20, align 4
%238 = call i32 @clEnqueueNDRangeKernel(i32 noundef %236, i32 noundef %237, i32 noundef 1, ptr noundef null, ptr noundef %27, ptr noundef %28, i32 noundef 0, ptr noundef null, ptr noundef null)
store i32 %238, ptr %8, align 4
%239 = load i32, ptr %8, align 4
%240 = load i32, ptr @CL_SUCCESS, align 4
%241 = icmp ne i32 %239, %240
br i1 %241, label %242, label %245
242: ; preds = %233
%243 = call i32 (ptr, ...) @printf(ptr noundef @.str.26)
%244 = call i32 @exit(i32 noundef 1) #3
unreachable
245: ; preds = %233
%246 = load i32, ptr %14, align 4
%247 = call i32 @clFinish(i32 noundef %246)
%248 = load i32, ptr %14, align 4
%249 = load i32, ptr %26, align 4
%250 = load i32, ptr @CL_TRUE, align 4
%251 = load i64, ptr %21, align 8
%252 = mul i64 %251, 1
%253 = load ptr, ptr %25, align 8
%254 = call i32 @clEnqueueReadBuffer(i32 noundef %248, i32 noundef %249, i32 noundef %250, i32 noundef 0, i64 noundef %252, ptr noundef %253, i32 noundef 0, ptr noundef null, ptr noundef null)
store i32 %254, ptr %8, align 4
%255 = load i32, ptr %8, align 4
%256 = load i32, ptr @CL_SUCCESS, align 4
%257 = icmp ne i32 %255, %256
br i1 %257, label %258, label %261
258: ; preds = %245
%259 = call i32 (ptr, ...) @printf(ptr noundef @.str.27)
%260 = call i32 @exit(i32 noundef 1) #3
unreachable
261: ; preds = %245
%262 = load ptr, ptr %5, align 8
%263 = getelementptr inbounds ptr, ptr %262, i64 0
%264 = load ptr, ptr %263, align 8
%265 = call i32 @sprintf(ptr noundef %29, ptr noundef @.str.28, ptr noundef %264)
%266 = getelementptr inbounds [100 x i8], ptr %29, i64 0, i64 0
%267 = load ptr, ptr %25, align 8
%268 = load i64, ptr %21, align 8
%269 = mul i64 %268, 1
%270 = call i32 @write_buffer(ptr noundef %266, ptr noundef %267, i64 noundef %269)
%271 = getelementptr inbounds [100 x i8], ptr %29, i64 0, i64 0
%272 = call i32 (ptr, ...) @printf(ptr noundef @.str.29, ptr noundef %271)
%273 = load ptr, ptr %25, align 8
%274 = call i32 @free(ptr noundef %273)
%275 = load i32, ptr %26, align 4
%276 = call i32 @clReleaseMemObject(i32 noundef %275)
store i32 %276, ptr %8, align 4
%277 = load i32, ptr %8, align 4
%278 = load i32, ptr @CL_SUCCESS, align 4
%279 = icmp ne i32 %277, %278
br i1 %279, label %280, label %283
280: ; preds = %261
%281 = call i32 (ptr, ...) @printf(ptr noundef @.str.30)
%282 = call i32 @exit(i32 noundef 1) #3
unreachable
283: ; preds = %261
%284 = load ptr, ptr %22, align 8
%285 = call i32 @free(ptr noundef %284)
%286 = load i32, ptr %24, align 4
%287 = call i32 @clReleaseMemObject(i32 noundef %286)
store i32 %287, ptr %8, align 4
%288 = load i32, ptr %8, align 4
%289 = load i32, ptr @CL_SUCCESS, align 4
%290 = icmp ne i32 %288, %289
br i1 %290, label %291, label %294
291: ; preds = %283
%292 = call i32 (ptr, ...) @printf(ptr noundef @.str.30)
%293 = call i32 @exit(i32 noundef 1) #3
unreachable
294: ; preds = %283
%295 = load i32, ptr %20, align 4
%296 = call i32 @clReleaseKernel(i32 noundef %295)
store i32 %296, ptr %8, align 4
%297 = load i32, ptr %8, align 4
%298 = load i32, ptr @CL_SUCCESS, align 4
%299 = icmp ne i32 %297, %298
br i1 %299, label %300, label %303
300: ; preds = %294
%301 = call i32 (ptr, ...) @printf(ptr noundef @.str.31)
%302 = call i32 @exit(i32 noundef 1) #3
unreachable
303: ; preds = %294
%304 = load i32, ptr %17, align 4
%305 = call i32 @clReleaseProgram(i32 noundef %304)
store i32 %305, ptr %8, align 4
%306 = load i32, ptr %8, align 4
%307 = load i32, ptr @CL_SUCCESS, align 4
%308 = icmp ne i32 %306, %307
br i1 %308, label %309, label %312
309: ; preds = %303
%310 = call i32 (ptr, ...) @printf(ptr noundef @.str.32)
%311 = call i32 @exit(i32 noundef 1) #3
unreachable
312: ; preds = %303
%313 = load i32, ptr %14, align 4
%314 = call i32 @clReleaseCommandQueue(i32 noundef %313)
store i32 %314, ptr %8, align 4
%315 = load i32, ptr %8, align 4
%316 = load i32, ptr @CL_SUCCESS, align 4
%317 = icmp ne i32 %315, %316
br i1 %317, label %318, label %321
318: ; preds = %312
%319 = call i32 (ptr, ...) @printf(ptr noundef @.str.33)
%320 = call i32 @exit(i32 noundef 1) #3
unreachable
321: ; preds = %312
%322 = load i32, ptr %13, align 4
%323 = call i32 @clReleaseContext(i32 noundef %322)
store i32 %323, ptr %8, align 4
%324 = load i32, ptr %8, align 4
%325 = load i32, ptr @CL_SUCCESS, align 4
%326 = icmp ne i32 %324, %325
br i1 %326, label %327, label %330
327: ; preds = %321
%328 = call i32 (ptr, ...) @printf(ptr noundef @.str.34)
%329 = call i32 @exit(i32 noundef 1) #3
unreachable
330: ; preds = %321
ret i32 0
}
declare i32 @clGetPlatformIDs(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @clGetPlatformInfo(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @clGetDeviceIDs(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @clGetDeviceInfo(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @clCreateContext(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @clCreateCommandQueue(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare ptr @read_buffer(ptr noundef, ptr noundef) #1
declare i32 @clCreateProgramWithSource(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @clBuildProgram(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @clGetProgramBuildInfo(i32 noundef, i32 noundef, i32 noundef, i64 noundef, ptr noundef, ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @clCreateKernel(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @clCreateBuffer(i32 noundef, i32 noundef, i64 noundef, ptr noundef, ptr noundef) #1
declare i32 @clEnqueueWriteBuffer(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i64 noundef) #1
declare i32 @clSetKernelArg(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @clEnqueueNDRangeKernel(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @clFinish(i32 noundef) #1
declare i32 @clEnqueueReadBuffer(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @write_buffer(ptr noundef, ptr noundef, i64 noundef) #1
declare i32 @clReleaseMemObject(i32 noundef) #1
declare i32 @clReleaseKernel(i32 noundef) #1
declare i32 @clReleaseProgram(i32 noundef) #1
declare i32 @clReleaseCommandQueue(i32 noundef) #1
declare i32 @clReleaseContext(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/tmpqp0cl5im.c'
source_filename = "/tmp/tmpqp0cl5im.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INT_MIN = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @int_size_is_32() #0 {
%1 = alloca i32, align 4
store i32 -2147483648, ptr %1, align 4
%2 = load i32, ptr %1, align 4
%3 = load i32, ptr @INT_MIN, align 4
%4 = icmp eq i32 %2, %3
%5 = zext i1 %4 to i32
ret i32 %5
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqp0cl5im.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INT_MIN = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @int_size_is_32() #0 {
%1 = alloca i32, align 4
store i32 -2147483648, ptr %1, align 4
%2 = load i32, ptr %1, align 4
%3 = load i32, ptr @INT_MIN, align 4
%4 = icmp eq i32 %2, %3
%5 = zext i1 %4 to i32
ret i32 %5
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5c2j1k67.c'
source_filename = "/tmp/tmp5c2j1k67.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"/sandbox/subdir/input_link.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@EOF = dso_local global i8 0, align 1
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %5, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = icmp ne ptr %6, null
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 noundef %8)
%10 = load ptr, ptr %2, align 8
%11 = call signext i8 @fgetc(ptr noundef %10)
store i8 %11, ptr %3, align 1
br label %12
12: ; preds = %18, %0
%13 = load i8, ptr %3, align 1
%14 = sext i8 %13 to i32
%15 = load i8, ptr @EOF, align 1
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %14, %16
br i1 %17, label %18, label %30
18: ; preds = %12
%19 = load i8, ptr %3, align 1
%20 = load i32, ptr @stdout, align 4
%21 = call i32 @fputc(i8 noundef signext %19, i32 noundef %20)
store i32 %21, ptr %4, align 4
%22 = load i32, ptr %4, align 4
%23 = load i8, ptr @EOF, align 1
%24 = sext i8 %23 to i32
%25 = icmp ne i32 %22, %24
%26 = zext i1 %25 to i32
%27 = call i32 @assert(i32 noundef %26)
%28 = load ptr, ptr %2, align 8
%29 = call signext i8 @fgetc(ptr noundef %28)
store i8 %29, ptr %3, align 1
br label %12, !llvm.loop !6
30: ; preds = %12
%31 = load i32, ptr %1, align 4
ret i32 %31
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @assert(i32 noundef) #1
declare signext i8 @fgetc(ptr noundef) #1
declare i32 @fputc(i8 noundef signext, 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/tmp5c2j1k67.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"/sandbox/subdir/input_link.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@EOF = dso_local global i8 0, align 1
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %5, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = icmp ne ptr %6, null
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 noundef %8)
%10 = load ptr, ptr %2, align 8
%11 = call signext i8 @fgetc(ptr noundef %10)
store i8 %11, ptr %3, align 1
%12 = load i8, ptr %3, align 1
%13 = sext i8 %12 to i32
%14 = load i8, ptr @EOF, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %13, %15
br i1 %16, label %.lr.ph, label %34
.lr.ph: ; preds = %0
br label %17
17: ; preds = %.lr.ph, %17
%18 = load i8, ptr %3, align 1
%19 = load i32, ptr @stdout, align 4
%20 = call i32 @fputc(i8 noundef signext %18, i32 noundef %19)
store i32 %20, ptr %4, align 4
%21 = load i32, ptr %4, align 4
%22 = load i8, ptr @EOF, align 1
%23 = sext i8 %22 to i32
%24 = icmp ne i32 %21, %23
%25 = zext i1 %24 to i32
%26 = call i32 @assert(i32 noundef %25)
%27 = load ptr, ptr %2, align 8
%28 = call signext i8 @fgetc(ptr noundef %27)
store i8 %28, ptr %3, align 1
%29 = load i8, ptr %3, align 1
%30 = sext i8 %29 to i32
%31 = load i8, ptr @EOF, align 1
%32 = sext i8 %31 to i32
%33 = icmp ne i32 %30, %32
br i1 %33, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %34
34: ; preds = %._crit_edge, %0
%35 = load i32, ptr %1, align 4
ret i32 %35
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @assert(i32 noundef) #1
declare signext i8 @fgetc(ptr noundef) #1
declare i32 @fputc(i8 noundef signext, 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/tmp9impmbo0.c'
source_filename = "/tmp/tmp9impmbo0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @update_tokens(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
br label %6
6: ; preds = %21, %2
%7 = load i32, ptr %5, align 4
%8 = icmp slt i32 %7, 6
br i1 %8, label %9, label %24
9: ; preds = %6
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds ptr, ptr %10, i64 %12
%14 = load ptr, ptr %13, align 8
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds ptr, ptr %15, i64 %17
%19 = load ptr, ptr %18, align 8
%20 = call i32 @strcpy(ptr noundef %14, ptr noundef %19)
br label %21
21: ; preds = %9
%22 = load i32, ptr %5, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %5, align 4
br label %6, !llvm.loop !6
24: ; preds = %6
ret void
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9impmbo0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @update_tokens(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 i32, ptr %5, align 4
%7 = icmp slt i32 %6, 6
br i1 %7, label %.lr.ph, label %25
.lr.ph: ; preds = %2
br label %8
8: ; preds = %.lr.ph, %20
%9 = load ptr, ptr %4, align 8
%10 = load i32, ptr %5, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds ptr, ptr %9, i64 %11
%13 = load ptr, ptr %12, align 8
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds ptr, ptr %14, i64 %16
%18 = load ptr, ptr %17, align 8
%19 = call i32 @strcpy(ptr noundef %13, ptr noundef %18)
br label %20
20: ; preds = %8
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %5, align 4
%23 = load i32, ptr %5, align 4
%24 = icmp slt i32 %23, 6
br i1 %24, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %25
25: ; preds = %._crit_edge, %2
ret void
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp1wqtypwi.c'
source_filename = "/tmp/tmp1wqtypwi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [169 x i8] c"<tr><td colspan=\223\22 align=\22center\22 class=\22credits\22>Statistics generated with <a href=\22http://www.hping.org/visitors\22>VISITORS Web Log Analyzer</a> version %s\0A</td></tr>\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"0.7\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @om_html_print_credits(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 @fprintf(ptr noundef %3, ptr noundef @.str, ptr noundef @.str.1)
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1wqtypwi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [169 x i8] c"<tr><td colspan=\223\22 align=\22center\22 class=\22credits\22>Statistics generated with <a href=\22http://www.hping.org/visitors\22>VISITORS Web Log Analyzer</a> version %s\0A</td></tr>\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"0.7\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @om_html_print_credits(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 @fprintf(ptr noundef %3, ptr noundef @.str, ptr noundef @.str.1)
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpti_dpzz6.c'
source_filename = "/tmp/tmpti_dpzz6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @s_strncat(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i64, ptr %6, align 8
%10 = call i32 @strncat(ptr noundef %7, ptr noundef %8, i64 noundef %9)
%11 = load ptr, ptr %4, align 8
%12 = load i64, ptr %6, align 8
%13 = sub i64 %12, 1
%14 = getelementptr inbounds i8, ptr %11, i64 %13
store i8 0, ptr %14, align 1
ret void
}
declare i32 @strncat(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/tmpti_dpzz6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @s_strncat(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i64, ptr %6, align 8
%10 = call i32 @strncat(ptr noundef %7, ptr noundef %8, i64 noundef %9)
%11 = load ptr, ptr %4, align 8
%12 = load i64, ptr %6, align 8
%13 = sub i64 %12, 1
%14 = getelementptr inbounds i8, ptr %11, i64 %13
store i8 0, ptr %14, align 1
ret void
}
declare i32 @strncat(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/tmpf9_oerdu.c'
source_filename = "/tmp/tmpf9_oerdu.c"
target datalayout = "e-m:e-p270: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.a = private unnamed_addr constant [9 x i8] c"abcdefgh\00", align 1
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [9 x i8], align 1
%2 = alloca [8 x i8], align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %1, ptr align 1 @__const.main.a, i64 9, i1 false)
%3 = getelementptr inbounds [8 x i8], ptr %2, i64 0, i64 0
%4 = getelementptr inbounds [9 x i8], ptr %1, i64 0, i64 0
%5 = call i32 @substr(ptr noundef %3, ptr noundef %4, i32 noundef 4, i32 noundef 2)
%6 = getelementptr inbounds [8 x i8], ptr %2, i64 0, i64 0
%7 = call i32 @printf(ptr noundef @.str, ptr noundef %6)
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 @substr(ptr noundef, ptr noundef, i32 noundef, i32 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/tmpf9_oerdu.c"
target datalayout = "e-m:e-p270: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.a = private unnamed_addr constant [9 x i8] c"abcdefgh\00", align 1
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [9 x i8], align 1
%2 = alloca [8 x i8], align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %1, ptr align 1 @__const.main.a, i64 9, i1 false)
%3 = getelementptr inbounds [8 x i8], ptr %2, i64 0, i64 0
%4 = getelementptr inbounds [9 x i8], ptr %1, i64 0, i64 0
%5 = call i32 @substr(ptr noundef %3, ptr noundef %4, i32 noundef 4, i32 noundef 2)
%6 = getelementptr inbounds [8 x i8], ptr %2, i64 0, i64 0
%7 = call i32 @printf(ptr noundef @.str, ptr noundef %6)
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 @substr(ptr noundef, ptr noundef, i32 noundef, i32 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/tmph8xfejhq.c'
source_filename = "/tmp/tmph8xfejhq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rellenaVectorAleatorio(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %7, align 4
br label %9
9: ; preds = %33, %3
%10 = load i32, ptr %7, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %36
13: ; preds = %9
%14 = call i32 (...) @rand()
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds i32, ptr %15, i64 1
%17 = load i32, ptr %16, align 4
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds i32, ptr %18, i64 0
%20 = load i32, ptr %19, align 4
%21 = sub nsw i32 %17, %20
%22 = add nsw i32 %21, 1
%23 = srem i32 %14, %22
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds i32, ptr %24, i64 0
%26 = load i32, ptr %25, align 4
%27 = add nsw i32 %23, %26
store i32 %27, ptr %8, align 4
%28 = load i32, ptr %8, align 4
%29 = load ptr, ptr %6, align 8
%30 = load i32, ptr %7, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %29, i64 %31
store i32 %28, ptr %32, align 4
br label %33
33: ; preds = %13
%34 = load i32, ptr %7, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %7, align 4
br label %9, !llvm.loop !6
36: ; preds = %9
ret void
}
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/tmph8xfejhq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rellenaVectorAleatorio(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %7, align 4
%9 = load i32, ptr %7, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %38
.lr.ph: ; preds = %3
br label %12
12: ; preds = %.lr.ph, %32
%13 = call i32 (...) @rand()
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds i32, ptr %14, i64 1
%16 = load i32, ptr %15, align 4
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds i32, ptr %17, i64 0
%19 = load i32, ptr %18, align 4
%20 = sub nsw i32 %16, %19
%21 = add nsw i32 %20, 1
%22 = srem i32 %13, %21
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds i32, ptr %23, i64 0
%25 = load i32, ptr %24, align 4
%26 = add nsw i32 %22, %25
store i32 %26, ptr %8, align 4
%27 = load i32, ptr %8, align 4
%28 = load ptr, ptr %6, align 8
%29 = load i32, ptr %7, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i32, ptr %28, i64 %30
store i32 %27, ptr %31, align 4
br label %32
32: ; preds = %12
%33 = load i32, ptr %7, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %7, align 4
%35 = load i32, ptr %7, align 4
%36 = load i32, ptr %4, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %38
38: ; preds = %._crit_edge, %3
ret void
}
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/tmprgovy2vu.c'
source_filename = "/tmp/tmprgovy2vu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [42 x i8] c"%%SUITE_STARTING%% Test_gestioncommandes\0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"%%SUITE_STARTED%%\0A\00", align 1
@.str.2 = private unnamed_addr constant [64 x i8] c"%%TEST_STARTED%% testExecuterCommande (Test_gestioncommandes)\0A\00", align 1
@.str.3 = private unnamed_addr constant [71 x i8] c"%%TEST_FINISHED%% time=0 testExecuterCommande (Test_gestioncommandes)\0A\00", align 1
@.str.4 = private unnamed_addr constant [74 x i8] c"%%TEST_STARTED%% testRetournerInformationConfig (Test_gestioncommandes)\0A\00", align 1
@.str.5 = private unnamed_addr constant [81 x i8] c"%%TEST_FINISHED%% time=0 testRetournerInformationConfig (Test_gestioncommandes)\0A\00", align 1
@.str.6 = private unnamed_addr constant [79 x i8] c"%%TEST_STARTED%% testRetournerInformationConfigIndex (Test_gestioncommandes)\0A\00", align 1
@.str.7 = private unnamed_addr constant [86 x i8] c"%%TEST_FINISHED%% time=0 testRetournerInformationConfigIndex (Test_gestioncommandes)\0A\00", align 1
@.str.8 = private unnamed_addr constant [74 x i8] c"%%TEST_STARTED%% testModifierInformationsConfig (Test_gestioncommandes)\0A\00", align 1
@.str.9 = private unnamed_addr constant [81 x i8] c"%%TEST_FINISHED%% time=0 testModifierInformationsConfig (Test_gestioncommandes)\0A\00", align 1
@.str.10 = private unnamed_addr constant [67 x i8] c"%%TEST_STARTED%% testRetournerEtatBouton (Test_gestioncommandes)\0A\00", align 1
@.str.11 = private unnamed_addr constant [74 x i8] c"%%TEST_FINISHED%% time=0 testRetournerEtatBouton (Test_gestioncommandes)\0A\00", align 1
@.str.12 = private unnamed_addr constant [68 x i8] c"%%TEST_STARTED%% testRetournerEtatBouton2 (Test_gestioncommandes)\0A\00", align 1
@.str.13 = private unnamed_addr constant [75 x i8] c"%%TEST_FINISHED%% time=0 testRetournerEtatBouton2 (Test_gestioncommandes)\0A\00", align 1
@.str.14 = private unnamed_addr constant [67 x i8] c"%%TEST_STARTED%% testChangerStatutBouton (Test_gestioncommandes)\0A\00", align 1
@.str.15 = private unnamed_addr constant [74 x i8] c"%%TEST_FINISHED%% time=0 testChangerStatutBouton (Test_gestioncommandes)\0A\00", align 1
@.str.16 = private unnamed_addr constant [73 x i8] c"%%TEST_STARTED%% testIdentifiantBoutonPlosible (Test_gestioncommandes)\0A\00", align 1
@.str.17 = private unnamed_addr constant [80 x i8] c"%%TEST_FINISHED%% time=0 testIdentifiantBoutonPlosible (Test_gestioncommandes)\0A\00", align 1
@.str.18 = private unnamed_addr constant [68 x i8] c"%%TEST_STARTED%% testStatutBoutonPlosible (Test_gestioncommandes)\0A\00", align 1
@.str.19 = private unnamed_addr constant [75 x i8] c"%%TEST_FINISHED%% time=0 testStatutBoutonPlosible (Test_gestioncommandes)\0A\00", align 1
@.str.20 = private unnamed_addr constant [27 x i8] c"%%SUITE_FINISHED%% time=0\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @printf(ptr noundef @.str)
%7 = call i32 @printf(ptr noundef @.str.1)
%8 = call i32 @printf(ptr noundef @.str.2)
%9 = call i32 (...) @testExecuterCommande()
%10 = call i32 @printf(ptr noundef @.str.3)
%11 = call i32 @printf(ptr noundef @.str.4)
%12 = call i32 (...) @testRetournerInformationConfig()
%13 = call i32 @printf(ptr noundef @.str.5)
%14 = call i32 @printf(ptr noundef @.str.6)
%15 = call i32 (...) @testRetournerInformationConfigIndex()
%16 = call i32 @printf(ptr noundef @.str.7)
%17 = call i32 @printf(ptr noundef @.str.8)
%18 = call i32 (...) @testModifierInformationsConfig()
%19 = call i32 @printf(ptr noundef @.str.9)
%20 = call i32 @printf(ptr noundef @.str.10)
%21 = call i32 (...) @testRetournerEtatBouton()
%22 = call i32 @printf(ptr noundef @.str.11)
%23 = call i32 @printf(ptr noundef @.str.12)
%24 = call i32 (...) @testRetournerEtatBouton2()
%25 = call i32 @printf(ptr noundef @.str.13)
%26 = call i32 @printf(ptr noundef @.str.14)
%27 = call i32 (...) @testChangerStatutBouton()
%28 = call i32 @printf(ptr noundef @.str.15)
%29 = call i32 @printf(ptr noundef @.str.16)
%30 = call i32 (...) @testIdentifiantBoutonPlosible()
%31 = call i32 @printf(ptr noundef @.str.17)
%32 = call i32 @printf(ptr noundef @.str.18)
%33 = call i32 (...) @testStatutBoutonPlosible()
%34 = call i32 @printf(ptr noundef @.str.19)
%35 = call i32 @printf(ptr noundef @.str.20)
%36 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %36
}
declare i32 @printf(ptr noundef) #1
declare i32 @testExecuterCommande(...) #1
declare i32 @testRetournerInformationConfig(...) #1
declare i32 @testRetournerInformationConfigIndex(...) #1
declare i32 @testModifierInformationsConfig(...) #1
declare i32 @testRetournerEtatBouton(...) #1
declare i32 @testRetournerEtatBouton2(...) #1
declare i32 @testChangerStatutBouton(...) #1
declare i32 @testIdentifiantBoutonPlosible(...) #1
declare i32 @testStatutBoutonPlosible(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprgovy2vu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [42 x i8] c"%%SUITE_STARTING%% Test_gestioncommandes\0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"%%SUITE_STARTED%%\0A\00", align 1
@.str.2 = private unnamed_addr constant [64 x i8] c"%%TEST_STARTED%% testExecuterCommande (Test_gestioncommandes)\0A\00", align 1
@.str.3 = private unnamed_addr constant [71 x i8] c"%%TEST_FINISHED%% time=0 testExecuterCommande (Test_gestioncommandes)\0A\00", align 1
@.str.4 = private unnamed_addr constant [74 x i8] c"%%TEST_STARTED%% testRetournerInformationConfig (Test_gestioncommandes)\0A\00", align 1
@.str.5 = private unnamed_addr constant [81 x i8] c"%%TEST_FINISHED%% time=0 testRetournerInformationConfig (Test_gestioncommandes)\0A\00", align 1
@.str.6 = private unnamed_addr constant [79 x i8] c"%%TEST_STARTED%% testRetournerInformationConfigIndex (Test_gestioncommandes)\0A\00", align 1
@.str.7 = private unnamed_addr constant [86 x i8] c"%%TEST_FINISHED%% time=0 testRetournerInformationConfigIndex (Test_gestioncommandes)\0A\00", align 1
@.str.8 = private unnamed_addr constant [74 x i8] c"%%TEST_STARTED%% testModifierInformationsConfig (Test_gestioncommandes)\0A\00", align 1
@.str.9 = private unnamed_addr constant [81 x i8] c"%%TEST_FINISHED%% time=0 testModifierInformationsConfig (Test_gestioncommandes)\0A\00", align 1
@.str.10 = private unnamed_addr constant [67 x i8] c"%%TEST_STARTED%% testRetournerEtatBouton (Test_gestioncommandes)\0A\00", align 1
@.str.11 = private unnamed_addr constant [74 x i8] c"%%TEST_FINISHED%% time=0 testRetournerEtatBouton (Test_gestioncommandes)\0A\00", align 1
@.str.12 = private unnamed_addr constant [68 x i8] c"%%TEST_STARTED%% testRetournerEtatBouton2 (Test_gestioncommandes)\0A\00", align 1
@.str.13 = private unnamed_addr constant [75 x i8] c"%%TEST_FINISHED%% time=0 testRetournerEtatBouton2 (Test_gestioncommandes)\0A\00", align 1
@.str.14 = private unnamed_addr constant [67 x i8] c"%%TEST_STARTED%% testChangerStatutBouton (Test_gestioncommandes)\0A\00", align 1
@.str.15 = private unnamed_addr constant [74 x i8] c"%%TEST_FINISHED%% time=0 testChangerStatutBouton (Test_gestioncommandes)\0A\00", align 1
@.str.16 = private unnamed_addr constant [73 x i8] c"%%TEST_STARTED%% testIdentifiantBoutonPlosible (Test_gestioncommandes)\0A\00", align 1
@.str.17 = private unnamed_addr constant [80 x i8] c"%%TEST_FINISHED%% time=0 testIdentifiantBoutonPlosible (Test_gestioncommandes)\0A\00", align 1
@.str.18 = private unnamed_addr constant [68 x i8] c"%%TEST_STARTED%% testStatutBoutonPlosible (Test_gestioncommandes)\0A\00", align 1
@.str.19 = private unnamed_addr constant [75 x i8] c"%%TEST_FINISHED%% time=0 testStatutBoutonPlosible (Test_gestioncommandes)\0A\00", align 1
@.str.20 = private unnamed_addr constant [27 x i8] c"%%SUITE_FINISHED%% time=0\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @printf(ptr noundef @.str)
%7 = call i32 @printf(ptr noundef @.str.1)
%8 = call i32 @printf(ptr noundef @.str.2)
%9 = call i32 (...) @testExecuterCommande()
%10 = call i32 @printf(ptr noundef @.str.3)
%11 = call i32 @printf(ptr noundef @.str.4)
%12 = call i32 (...) @testRetournerInformationConfig()
%13 = call i32 @printf(ptr noundef @.str.5)
%14 = call i32 @printf(ptr noundef @.str.6)
%15 = call i32 (...) @testRetournerInformationConfigIndex()
%16 = call i32 @printf(ptr noundef @.str.7)
%17 = call i32 @printf(ptr noundef @.str.8)
%18 = call i32 (...) @testModifierInformationsConfig()
%19 = call i32 @printf(ptr noundef @.str.9)
%20 = call i32 @printf(ptr noundef @.str.10)
%21 = call i32 (...) @testRetournerEtatBouton()
%22 = call i32 @printf(ptr noundef @.str.11)
%23 = call i32 @printf(ptr noundef @.str.12)
%24 = call i32 (...) @testRetournerEtatBouton2()
%25 = call i32 @printf(ptr noundef @.str.13)
%26 = call i32 @printf(ptr noundef @.str.14)
%27 = call i32 (...) @testChangerStatutBouton()
%28 = call i32 @printf(ptr noundef @.str.15)
%29 = call i32 @printf(ptr noundef @.str.16)
%30 = call i32 (...) @testIdentifiantBoutonPlosible()
%31 = call i32 @printf(ptr noundef @.str.17)
%32 = call i32 @printf(ptr noundef @.str.18)
%33 = call i32 (...) @testStatutBoutonPlosible()
%34 = call i32 @printf(ptr noundef @.str.19)
%35 = call i32 @printf(ptr noundef @.str.20)
%36 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %36
}
declare i32 @printf(ptr noundef) #1
declare i32 @testExecuterCommande(...) #1
declare i32 @testRetournerInformationConfig(...) #1
declare i32 @testRetournerInformationConfigIndex(...) #1
declare i32 @testModifierInformationsConfig(...) #1
declare i32 @testRetournerEtatBouton(...) #1
declare i32 @testRetournerEtatBouton2(...) #1
declare i32 @testChangerStatutBouton(...) #1
declare i32 @testIdentifiantBoutonPlosible(...) #1
declare i32 @testStatutBoutonPlosible(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpa33tpb8r.c'
source_filename = "/tmp/tmpa33tpb8r.c"
target datalayout = "e-m:e-p270: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.mm = private unnamed_addr constant [2 x i32] [i32 11, i32 2], align 4
@.str = private unnamed_addr constant [4 x i8] c"c 1\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 [2 x i32], align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 @__const.main.mm, i64 8, i1 false)
%4 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 1
%5 = load i32, ptr %4, align 4
%6 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 0
%7 = load i32, ptr %6, align 4
%8 = icmp sle i32 %5, %7
%9 = zext i1 %8 to i32
store i32 %9, ptr %2, align 4
%10 = call i32 @print(ptr noundef @.str)
%11 = load i32, ptr %2, align 4
%12 = call i32 @printid(i32 noundef %11)
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 @print(ptr noundef) #2
declare i32 @printid(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/tmpa33tpb8r.c"
target datalayout = "e-m:e-p270: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.mm = private unnamed_addr constant [2 x i32] [i32 11, i32 2], align 4
@.str = private unnamed_addr constant [4 x i8] c"c 1\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 [2 x i32], align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 @__const.main.mm, i64 8, i1 false)
%4 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 1
%5 = load i32, ptr %4, align 4
%6 = getelementptr inbounds [2 x i32], ptr %3, i64 0, i64 0
%7 = load i32, ptr %6, align 4
%8 = icmp sle i32 %5, %7
%9 = zext i1 %8 to i32
store i32 %9, ptr %2, align 4
%10 = call i32 @print(ptr noundef @.str)
%11 = load i32, ptr %2, align 4
%12 = call i32 @printid(i32 noundef %11)
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 @print(ptr noundef) #2
declare i32 @printid(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/tmpytr63m8y.c'
source_filename = "/tmp/tmpytr63m8y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"..\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_valid_fname(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
store ptr %5, ptr %4, align 8
br label %6
6: ; preds = %1, %17
%7 = load ptr, ptr %4, align 8
%8 = call i64 @strncmp(ptr noundef %7, ptr noundef @.str, i32 noundef 2)
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %6
store i32 0, ptr %2, align 4
br label %21
11: ; preds = %6
%12 = load ptr, ptr %4, align 8
%13 = call ptr @strchr(ptr noundef %12, i8 noundef signext 47)
store ptr %13, ptr %4, align 8
%14 = load ptr, ptr %4, align 8
%15 = icmp eq ptr %14, null
br i1 %15, label %16, label %17
16: ; preds = %11
br label %20
17: ; preds = %11
%18 = load ptr, ptr %4, align 8
%19 = getelementptr inbounds i8, ptr %18, i32 1
store ptr %19, ptr %4, align 8
br label %6
20: ; preds = %16
store i32 1, ptr %2, align 4
br label %21
21: ; preds = %20, %10
%22 = load i32, ptr %2, align 4
ret i32 %22
}
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpytr63m8y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"..\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_valid_fname(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
store ptr %5, ptr %4, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i64 @strncmp(ptr noundef %6, ptr noundef @.str, i32 noundef 2)
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %.lr.ph
.lr.ph: ; preds = %1
br label %10
._crit_edge: ; preds = %16
br label %9
9: ; preds = %._crit_edge, %1
store i32 0, ptr %2, align 4
br label %23
10: ; preds = %.lr.ph, %16
%11 = load ptr, ptr %4, align 8
%12 = call ptr @strchr(ptr noundef %11, i8 noundef signext 47)
store ptr %12, ptr %4, align 8
%13 = load ptr, ptr %4, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %16
15: ; preds = %10
br label %22
16: ; preds = %10
%17 = load ptr, ptr %4, align 8
%18 = getelementptr inbounds i8, ptr %17, i32 1
store ptr %18, ptr %4, align 8
%19 = load ptr, ptr %4, align 8
%20 = call i64 @strncmp(ptr noundef %19, ptr noundef @.str, i32 noundef 2)
%21 = icmp eq i64 %20, 0
br i1 %21, label %._crit_edge, label %10
22: ; preds = %15
store i32 1, ptr %2, align 4
br label %23
23: ; preds = %22, %9
%24 = load i32, ptr %2, align 4
ret i32 %24
}
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppabqhtyt.c'
source_filename = "/tmp/tmppabqhtyt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 @printf(ptr noundef @.str)
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppabqhtyt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 @printf(ptr noundef @.str)
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"}
|
; ModuleID = '/tmp/tmpn85hdg1a.c'
source_filename = "/tmp/tmpn85hdg1a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"the standard dev / mean is %f\0A\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"the mean is %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @standard_deviation(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca i32, align 4
%8 = alloca float, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store float 0.000000e+00, ptr %5, align 4
store float 0.000000e+00, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %9
9: ; preds = %24, %2
%10 = load i32, ptr %7, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %27
13: ; preds = %9
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %7, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i32, ptr %14, i64 %16
%18 = load i32, ptr %17, align 4
%19 = sitofp i32 %18 to double
%20 = load float, ptr %5, align 4
%21 = fpext float %20 to double
%22 = fadd double %21, %19
%23 = fptrunc double %22 to float
store float %23, ptr %5, align 4
br label %24
24: ; preds = %13
%25 = load i32, ptr %7, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %7, align 4
br label %9, !llvm.loop !6
27: ; preds = %9
%28 = load float, ptr %5, align 4
%29 = load i32, ptr %4, align 4
%30 = sitofp i32 %29 to float
%31 = fdiv float %28, %30
store float %31, ptr %5, align 4
store i32 0, ptr %7, align 4
br label %32
32: ; preds = %59, %27
%33 = load i32, ptr %7, align 4
%34 = load i32, ptr %4, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %36, label %62
36: ; preds = %32
%37 = load ptr, ptr %3, align 8
%38 = load i32, ptr %7, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i32, ptr %37, i64 %39
%41 = load i32, ptr %40, align 4
%42 = sitofp i32 %41 to double
%43 = load float, ptr %5, align 4
%44 = fpext float %43 to double
%45 = fsub double %42, %44
%46 = load ptr, ptr %3, align 8
%47 = load i32, ptr %7, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i32, ptr %46, i64 %48
%50 = load i32, ptr %49, align 4
%51 = sitofp i32 %50 to double
%52 = load float, ptr %5, align 4
%53 = fpext float %52 to double
%54 = fsub double %51, %53
%55 = load float, ptr %6, align 4
%56 = fpext float %55 to double
%57 = call double @llvm.fmuladd.f64(double %45, double %54, double %56)
%58 = fptrunc double %57 to float
store float %58, ptr %6, align 4
br label %59
59: ; preds = %36
%60 = load i32, ptr %7, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %7, align 4
br label %32, !llvm.loop !8
62: ; preds = %32
%63 = load float, ptr %6, align 4
%64 = load i32, ptr %4, align 4
%65 = sitofp i32 %64 to float
%66 = fdiv float %63, %65
%67 = call float @sqrt(float noundef %66)
store float %67, ptr %8, align 4
%68 = load float, ptr %8, align 4
%69 = load float, ptr %5, align 4
%70 = fdiv float %68, %69
%71 = call i32 @printf(ptr noundef @.str, float noundef %70)
%72 = load float, ptr %5, align 4
%73 = call i32 @printf(ptr noundef @.str.1, float noundef %72)
%74 = load float, ptr %8, align 4
ret float %74
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare float @sqrt(float noundef) #2
declare i32 @printf(ptr noundef, float noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn85hdg1a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"the standard dev / mean is %f\0A\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"the mean is %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @standard_deviation(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca i32, align 4
%8 = alloca float, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store float 0.000000e+00, ptr %5, align 4
store float 0.000000e+00, ptr %6, align 4
store i32 0, ptr %7, align 4
%9 = load i32, ptr %7, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %29
.lr.ph: ; preds = %2
br label %12
12: ; preds = %.lr.ph, %23
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %7, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i32, ptr %13, i64 %15
%17 = load i32, ptr %16, align 4
%18 = sitofp i32 %17 to double
%19 = load float, ptr %5, align 4
%20 = fpext float %19 to double
%21 = fadd double %20, %18
%22 = fptrunc double %21 to float
store float %22, ptr %5, align 4
br label %23
23: ; preds = %12
%24 = load i32, ptr %7, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %7, align 4
%26 = load i32, ptr %7, align 4
%27 = load i32, ptr %4, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %29
29: ; preds = %._crit_edge, %2
%30 = load float, ptr %5, align 4
%31 = load i32, ptr %4, align 4
%32 = sitofp i32 %31 to float
%33 = fdiv float %30, %32
store float %33, ptr %5, align 4
store i32 0, ptr %7, align 4
%34 = load i32, ptr %7, align 4
%35 = load i32, ptr %4, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %.lr.ph2, label %66
.lr.ph2: ; preds = %29
br label %37
37: ; preds = %.lr.ph2, %60
%38 = load ptr, ptr %3, align 8
%39 = load i32, ptr %7, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, ptr %38, i64 %40
%42 = load i32, ptr %41, align 4
%43 = sitofp i32 %42 to double
%44 = load float, ptr %5, align 4
%45 = fpext float %44 to double
%46 = fsub double %43, %45
%47 = load ptr, ptr %3, align 8
%48 = load i32, ptr %7, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i32, ptr %47, i64 %49
%51 = load i32, ptr %50, align 4
%52 = sitofp i32 %51 to double
%53 = load float, ptr %5, align 4
%54 = fpext float %53 to double
%55 = fsub double %52, %54
%56 = load float, ptr %6, align 4
%57 = fpext float %56 to double
%58 = call double @llvm.fmuladd.f64(double %46, double %55, double %57)
%59 = fptrunc double %58 to float
store float %59, ptr %6, align 4
br label %60
60: ; preds = %37
%61 = load i32, ptr %7, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %7, align 4
%63 = load i32, ptr %7, align 4
%64 = load i32, ptr %4, align 4
%65 = icmp slt i32 %63, %64
br i1 %65, label %37, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %60
br label %66
66: ; preds = %._crit_edge3, %29
%67 = load float, ptr %6, align 4
%68 = load i32, ptr %4, align 4
%69 = sitofp i32 %68 to float
%70 = fdiv float %67, %69
%71 = call float @sqrt(float noundef %70)
store float %71, ptr %8, align 4
%72 = load float, ptr %8, align 4
%73 = load float, ptr %5, align 4
%74 = fdiv float %72, %73
%75 = call i32 @printf(ptr noundef @.str, float noundef %74)
%76 = load float, ptr %5, align 4
%77 = call i32 @printf(ptr noundef @.str.1, float noundef %76)
%78 = load float, ptr %8, align 4
ret float %78
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
declare float @sqrt(float noundef) #2
declare i32 @printf(ptr noundef, float noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp8acxbrzt.c'
source_filename = "/tmp/tmp8acxbrzt.c"
target datalayout = "e-m:e-p270: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/tmp8acxbrzt.c"
target datalayout = "e-m:e-p270: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/tmpcqgzw_aq.c'
source_filename = "/tmp/tmpcqgzw_aq.c"
target datalayout = "e-m:e-p270: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 [18 x i8] c"usage: fish [-p]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 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/tmpcqgzw_aq.c"
target datalayout = "e-m:e-p270: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 [18 x i8] c"usage: fish [-p]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 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/tmp5pxic8d5.c'
source_filename = "/tmp/tmp5pxic8d5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isAllowedMoveQueen(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = call i32 @getCellIdLeft(i32 noundef %7)
%9 = icmp eq i32 %6, %8
br i1 %9, label %25, label %10
10: ; preds = %2
%11 = load i32, ptr %5, align 4
%12 = load i32, ptr %4, align 4
%13 = call i32 @getCellIdRight(i32 noundef %12)
%14 = icmp eq i32 %11, %13
br i1 %14, label %25, label %15
15: ; preds = %10
%16 = load i32, ptr %5, align 4
%17 = load i32, ptr %4, align 4
%18 = call i32 @getCellIdAbove(i32 noundef %17)
%19 = icmp eq i32 %16, %18
br i1 %19, label %25, label %20
20: ; preds = %15
%21 = load i32, ptr %5, align 4
%22 = load i32, ptr %4, align 4
%23 = call i32 @getCellIdBelow(i32 noundef %22)
%24 = icmp eq i32 %21, %23
br i1 %24, label %25, label %26
25: ; preds = %20, %15, %10, %2
store i32 0, ptr %3, align 4
br label %27
26: ; preds = %20
store i32 1, ptr %3, align 4
br label %27
27: ; preds = %26, %25
%28 = load i32, ptr %3, align 4
ret i32 %28
}
declare i32 @getCellIdLeft(i32 noundef) #1
declare i32 @getCellIdRight(i32 noundef) #1
declare i32 @getCellIdAbove(i32 noundef) #1
declare i32 @getCellIdBelow(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/tmp5pxic8d5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isAllowedMoveQueen(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = call i32 @getCellIdLeft(i32 noundef %7)
%9 = icmp eq i32 %6, %8
br i1 %9, label %25, label %10
10: ; preds = %2
%11 = load i32, ptr %5, align 4
%12 = load i32, ptr %4, align 4
%13 = call i32 @getCellIdRight(i32 noundef %12)
%14 = icmp eq i32 %11, %13
br i1 %14, label %25, label %15
15: ; preds = %10
%16 = load i32, ptr %5, align 4
%17 = load i32, ptr %4, align 4
%18 = call i32 @getCellIdAbove(i32 noundef %17)
%19 = icmp eq i32 %16, %18
br i1 %19, label %25, label %20
20: ; preds = %15
%21 = load i32, ptr %5, align 4
%22 = load i32, ptr %4, align 4
%23 = call i32 @getCellIdBelow(i32 noundef %22)
%24 = icmp eq i32 %21, %23
br i1 %24, label %25, label %26
25: ; preds = %20, %15, %10, %2
store i32 0, ptr %3, align 4
br label %27
26: ; preds = %20
store i32 1, ptr %3, align 4
br label %27
27: ; preds = %26, %25
%28 = load i32, ptr %3, align 4
ret i32 %28
}
declare i32 @getCellIdLeft(i32 noundef) #1
declare i32 @getCellIdRight(i32 noundef) #1
declare i32 @getCellIdAbove(i32 noundef) #1
declare i32 @getCellIdBelow(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/tmpl5xoiv83.c'
source_filename = "/tmp/tmpl5xoiv83.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_struct_s2() #0 {
%1 = call i32 (...) @return_struct_s2()
%2 = call i32 @take_struct_s2(i32 noundef %1)
ret void
}
declare i32 @take_struct_s2(i32 noundef) #1
declare i32 @return_struct_s2(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl5xoiv83.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_struct_s2() #0 {
%1 = call i32 (...) @return_struct_s2()
%2 = call i32 @take_struct_s2(i32 noundef %1)
ret void
}
declare i32 @take_struct_s2(i32 noundef) #1
declare i32 @return_struct_s2(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwf2f9jxo.c'
source_filename = "/tmp/tmpwf2f9jxo.c"
target datalayout = "e-m:e-p270: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/tmpwf2f9jxo.c"
target datalayout = "e-m:e-p270: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/tmpcsqg5ey_.c'
source_filename = "/tmp/tmpcsqg5ey_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [324 x i8] c"\0A****************************************************************\0A This program has been compiled without :\0A\091) FFTW (http://www.fftw.org/).\0A\092) libsndfile (http://www.zip.com.au/~erikd/libsndfile/).\0A Without these two libraries there is not much it can do.\0A****************************************************************\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @puts(ptr noundef @.str)
ret i32 0
}
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcsqg5ey_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [324 x i8] c"\0A****************************************************************\0A This program has been compiled without :\0A\091) FFTW (http://www.fftw.org/).\0A\092) libsndfile (http://www.zip.com.au/~erikd/libsndfile/).\0A Without these two libraries there is not much it can do.\0A****************************************************************\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @puts(ptr noundef @.str)
ret i32 0
}
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxtd0pik9.c'
source_filename = "/tmp/tmpxtd0pik9.c"
target datalayout = "e-m:e-p270: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/tmpxtd0pik9.c"
target datalayout = "e-m:e-p270: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/tmposh9xx64.c'
source_filename = "/tmp/tmposh9xx64.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @atanf(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = call float @atan2(float noundef %3, i32 noundef 1)
ret float %4
}
declare float @atan2(float 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/tmposh9xx64.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @atanf(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = call float @atan2(float noundef %3, i32 noundef 1)
ret float %4
}
declare float @atan2(float 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/tmp756kszrm.c'
source_filename = "/tmp/tmp756kszrm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tcc_basename(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call ptr @strchr(ptr noundef %4, i32 noundef 0)
store ptr %5, ptr %3, align 8
br label %6
6: ; preds = %19, %1
%7 = load ptr, ptr %3, align 8
%8 = load ptr, ptr %2, align 8
%9 = icmp ugt ptr %7, %8
br i1 %9, label %10, label %17
10: ; preds = %6
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 -1
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 47
%16 = xor i1 %15, true
br label %17
17: ; preds = %10, %6
%18 = phi i1 [ false, %6 ], [ %16, %10 ]
br i1 %18, label %19, label %22
19: ; preds = %17
%20 = load ptr, ptr %3, align 8
%21 = getelementptr inbounds i8, ptr %20, i32 -1
store ptr %21, ptr %3, align 8
br label %6, !llvm.loop !6
22: ; preds = %17
%23 = load ptr, ptr %3, align 8
ret ptr %23
}
declare ptr @strchr(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/tmp756kszrm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tcc_basename(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call ptr @strchr(ptr noundef %4, i32 noundef 0)
store ptr %5, ptr %3, align 8
br label %6
6: ; preds = %19, %1
%7 = load ptr, ptr %3, align 8
%8 = load ptr, ptr %2, align 8
%9 = icmp ugt ptr %7, %8
br i1 %9, label %10, label %17
10: ; preds = %6
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 -1
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 47
%16 = xor i1 %15, true
br label %17
17: ; preds = %10, %6
%18 = phi i1 [ false, %6 ], [ %16, %10 ]
br i1 %18, label %19, label %22
19: ; preds = %17
%20 = load ptr, ptr %3, align 8
%21 = getelementptr inbounds i8, ptr %20, i32 -1
store ptr %21, ptr %3, align 8
br label %6, !llvm.loop !6
22: ; preds = %17
%23 = load ptr, ptr %3, align 8
ret ptr %23
}
declare ptr @strchr(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/tmpljz1mjfn.c'
source_filename = "/tmp/tmpljz1mjfn.c"
target datalayout = "e-m:e-p270: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/tmpljz1mjfn.c"
target datalayout = "e-m:e-p270: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/tmpq8coyhhn.c'
source_filename = "/tmp/tmpq8coyhhn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gcd(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = icmp slt i32 %5, %6
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 @swap(ptr noundef %3, ptr noundef %4)
br label %10
10: ; preds = %8, %2
br label %11
11: ; preds = %14, %10
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %19
14: ; preds = %11
%15 = load i32, ptr %4, align 4
%16 = load i32, ptr %3, align 4
%17 = srem i32 %16, %15
store i32 %17, ptr %3, align 4
%18 = call i32 @swap(ptr noundef %3, ptr noundef %4)
br label %11, !llvm.loop !6
19: ; preds = %11
%20 = load i32, ptr %3, align 4
ret i32 %20
}
declare i32 @swap(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/tmpq8coyhhn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gcd(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = icmp slt i32 %5, %6
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 @swap(ptr noundef %3, ptr noundef %4)
br label %10
10: ; preds = %8, %2
%11 = load i32, ptr %4, align 4
%12 = icmp ne i32 %11, 0
br i1 %12, label %.lr.ph, label %20
.lr.ph: ; preds = %10
br label %13
13: ; preds = %.lr.ph, %13
%14 = load i32, ptr %4, align 4
%15 = load i32, ptr %3, align 4
%16 = srem i32 %15, %14
store i32 %16, ptr %3, align 4
%17 = call i32 @swap(ptr noundef %3, ptr noundef %4)
%18 = load i32, ptr %4, align 4
%19 = icmp ne i32 %18, 0
br i1 %19, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %20
20: ; preds = %._crit_edge, %10
%21 = load i32, ptr %3, align 4
ret i32 %21
}
declare i32 @swap(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/tmpxc6pk2s1.c'
source_filename = "/tmp/tmpxc6pk2s1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_islower.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"islower should be 0 for 0xfb\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_islower_0xfb() #0 {
%1 = call i64 @islower(i32 noundef 251)
%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 1260, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @islower(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/tmpxc6pk2s1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_islower.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"islower should be 0 for 0xfb\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_islower_0xfb() #0 {
%1 = call i64 @islower(i32 noundef 251)
%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 1260, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @islower(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/tmp5aljskj8.c'
source_filename = "/tmp/tmp5aljskj8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, 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 @XOpenDisplay(ptr noundef @.str)
ret i32 0
}
declare i32 @XOpenDisplay(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5aljskj8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, 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 @XOpenDisplay(ptr noundef @.str)
ret i32 0
}
declare i32 @XOpenDisplay(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp57ywmk6n.c'
source_filename = "/tmp/tmp57ywmk6n.c"
target datalayout = "e-m:e-p270: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.a = private unnamed_addr constant [6 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5, i32 6], align 16
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca [6 x i32], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.main.a, i64 24, i1 false)
%2 = getelementptr inbounds [6 x i32], ptr %1, i64 0, i64 0
%3 = call i32 @fun(ptr noundef %2, i32 noundef 4, i32 noundef 6)
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
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 @printf(ptr noundef, i32 noundef) #2
declare i32 @fun(ptr noundef, i32 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp57ywmk6n.c"
target datalayout = "e-m:e-p270: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.a = private unnamed_addr constant [6 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5, i32 6], align 16
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca [6 x i32], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.main.a, i64 24, i1 false)
%2 = getelementptr inbounds [6 x i32], ptr %1, i64 0, i64 0
%3 = call i32 @fun(ptr noundef %2, i32 noundef 4, i32 noundef 6)
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
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 @printf(ptr noundef, i32 noundef) #2
declare i32 @fun(ptr noundef, i32 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"}
|
; ModuleID = '/tmp/tmp1ug2_bsl.c'
source_filename = "/tmp/tmp1ug2_bsl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%g\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 ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 10, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = zext i32 %6 to i64
%8 = call ptr @llvm.stacksave()
store ptr %8, ptr %3, align 8
%9 = alloca double, i64 %7, align 16
store i64 %7, ptr %4, align 8
%10 = load i32, ptr %2, align 4
%11 = call i32 @linspace(ptr noundef %9, i32 noundef 1, i32 noundef 2, i32 noundef %10)
store i32 0, ptr %5, align 4
br label %12
12: ; preds = %22, %0
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %2, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %25
16: ; preds = %12
%17 = load i32, ptr %5, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds double, ptr %9, i64 %18
%20 = load double, ptr %19, align 8
%21 = call i32 @printf(ptr noundef @.str, double noundef %20)
br label %22
22: ; preds = %16
%23 = load i32, ptr %5, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %5, align 4
br label %12, !llvm.loop !6
25: ; preds = %12
store i32 0, ptr %1, align 4
%26 = load ptr, ptr %3, align 8
call void @llvm.stackrestore(ptr %26)
%27 = load i32, ptr %1, align 4
ret i32 %27
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @linspace(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp1ug2_bsl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%g\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 ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 10, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = zext i32 %6 to i64
%8 = call ptr @llvm.stacksave()
store ptr %8, ptr %3, align 8
%9 = alloca double, i64 %7, align 16
store i64 %7, ptr %4, align 8
%10 = load i32, ptr %2, align 4
%11 = call i32 @linspace(ptr noundef %9, i32 noundef 1, i32 noundef 2, i32 noundef %10)
store i32 0, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %2, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %.lr.ph, label %27
.lr.ph: ; preds = %0
br label %15
15: ; preds = %.lr.ph, %21
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds double, ptr %9, i64 %17
%19 = load double, ptr %18, align 8
%20 = call i32 @printf(ptr noundef @.str, double noundef %19)
br label %21
21: ; preds = %15
%22 = load i32, ptr %5, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %5, align 4
%24 = load i32, ptr %5, align 4
%25 = load i32, ptr %2, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %27
27: ; preds = %._crit_edge, %0
store i32 0, ptr %1, align 4
%28 = load ptr, ptr %3, align 8
call void @llvm.stackrestore(ptr %28)
%29 = load i32, ptr %1, align 4
ret i32 %29
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @linspace(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp8peu7pps.c'
source_filename = "/tmp/tmp8peu7pps.c"
target datalayout = "e-m:e-p270: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/tmp8peu7pps.c"
target datalayout = "e-m:e-p270: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/tmpbtfyz36s.c'
source_filename = "/tmp/tmpbtfyz36s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @memcpy(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%8 = load ptr, ptr %4, align 8
store ptr %8, ptr %7, align 8
br label %9
9: ; preds = %13, %3
%10 = load i32, ptr %6, align 4
%11 = add nsw i32 %10, -1
store i32 %11, ptr %6, align 4
%12 = icmp ne i32 %10, 0
br i1 %12, label %13, label %21
13: ; preds = %9
%14 = load ptr, ptr %5, align 8
%15 = load i8, ptr %14, align 1
%16 = load ptr, ptr %4, align 8
store i8 %15, ptr %16, align 1
%17 = load ptr, ptr %4, align 8
%18 = getelementptr inbounds i8, ptr %17, i32 1
store ptr %18, ptr %4, align 8
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds i8, ptr %19, i32 1
store ptr %20, ptr %5, align 8
br label %9, !llvm.loop !6
21: ; preds = %9
%22 = load ptr, ptr %7, align 8
ret ptr %22
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpbtfyz36s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @memcpy(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%8 = load ptr, ptr %4, align 8
store ptr %8, ptr %7, align 8
%9 = load i32, ptr %6, align 4
%10 = add nsw i32 %9, -1
store i32 %10, ptr %6, align 4
%11 = icmp ne i32 %9, 0
br i1 %11, label %.lr.ph, label %23
.lr.ph: ; preds = %3
br label %12
12: ; preds = %.lr.ph, %12
%13 = load ptr, ptr %5, align 8
%14 = load i8, ptr %13, align 1
%15 = load ptr, ptr %4, align 8
store i8 %14, ptr %15, align 1
%16 = load ptr, ptr %4, align 8
%17 = getelementptr inbounds i8, ptr %16, i32 1
store ptr %17, ptr %4, align 8
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds i8, ptr %18, i32 1
store ptr %19, ptr %5, align 8
%20 = load i32, ptr %6, align 4
%21 = add nsw i32 %20, -1
store i32 %21, ptr %6, align 4
%22 = icmp ne i32 %20, 0
br i1 %22, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %23
23: ; preds = %._crit_edge, %3
%24 = load ptr, ptr %7, align 8
ret ptr %24
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp5lfigwk9.c'
source_filename = "/tmp/tmp5lfigwk9.c"
target datalayout = "e-m:e-p270: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/tmp5lfigwk9.c"
target datalayout = "e-m:e-p270: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/tmp0ks6ti1a.c'
source_filename = "/tmp/tmp0ks6ti1a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @RAND_file_name(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
ret ptr null
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0ks6ti1a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @RAND_file_name(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
ret ptr null
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphw9_4vsy.c'
source_filename = "/tmp/tmphw9_4vsy.c"
target datalayout = "e-m:e-p270: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
@_IONBF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [19 x i8] c"Enter Number [%d]:\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"The average is :%.2f\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 float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
store i32 0, ptr %1, align 4
%6 = load i32, ptr @stdout, align 4
%7 = load i32, ptr @_IONBF, align 4
%8 = call i32 @setvbuf(i32 noundef %6, ptr noundef null, i32 noundef %7, i32 noundef 0)
store float 0.000000e+00, ptr %5, align 4
br label %9
9: ; preds = %12, %0
%10 = load float, ptr %5, align 4
%11 = fcmp une float %10, 9.999000e+03
br i1 %11, label %12, label %22
12: ; preds = %9
%13 = load float, ptr %3, align 4
%14 = load float, ptr %5, align 4
%15 = fadd float %13, %14
store float %15, ptr %3, align 4
%16 = load i32, ptr %2, align 4
%17 = sitofp i32 %16 to float
%18 = call i32 @printf(ptr noundef @.str, float noundef %17)
%19 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
%20 = load i32, ptr %2, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %2, align 4
br label %9, !llvm.loop !6
22: ; preds = %9
%23 = load float, ptr %3, align 4
%24 = load i32, ptr %2, align 4
%25 = sub nsw i32 %24, 1
%26 = sitofp i32 %25 to float
%27 = fdiv float %23, %26
store float %27, ptr %4, align 4
%28 = load float, ptr %4, align 4
%29 = call i32 @printf(ptr noundef @.str.2, float noundef %28)
ret i32 0
}
declare i32 @setvbuf(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, float 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/tmphw9_4vsy.c"
target datalayout = "e-m:e-p270: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
@_IONBF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [19 x i8] c"Enter Number [%d]:\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"The average is :%.2f\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 float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
store i32 0, ptr %1, align 4
%6 = load i32, ptr @stdout, align 4
%7 = load i32, ptr @_IONBF, align 4
%8 = call i32 @setvbuf(i32 noundef %6, ptr noundef null, i32 noundef %7, i32 noundef 0)
store float 0.000000e+00, ptr %5, align 4
%9 = load float, ptr %5, align 4
%10 = fcmp une float %9, 9.999000e+03
br i1 %10, label %.lr.ph, label %23
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %11
%12 = load float, ptr %3, align 4
%13 = load float, ptr %5, align 4
%14 = fadd float %12, %13
store float %14, ptr %3, align 4
%15 = load i32, ptr %2, align 4
%16 = sitofp i32 %15 to float
%17 = call i32 @printf(ptr noundef @.str, float noundef %16)
%18 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
%19 = load i32, ptr %2, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %2, align 4
%21 = load float, ptr %5, align 4
%22 = fcmp une float %21, 9.999000e+03
br i1 %22, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %23
23: ; preds = %._crit_edge, %0
%24 = load float, ptr %3, align 4
%25 = load i32, ptr %2, align 4
%26 = sub nsw i32 %25, 1
%27 = sitofp i32 %26 to float
%28 = fdiv float %24, %27
store float %28, ptr %4, align 4
%29 = load float, ptr %4, align 4
%30 = call i32 @printf(ptr noundef @.str.2, float noundef %29)
ret i32 0
}
declare i32 @setvbuf(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, float 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/tmp2ek3a2p_.c'
source_filename = "/tmp/tmp2ek3a2p_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"CPU Scheduler - No Pri\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"CPU Scheduler - Pri On\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"Production\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"Developmnt\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"CPU\00", align 1
@.str.5 = private unnamed_addr constant [8 x i8] c"shadCPU\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"DK1\00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c"DK2\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 ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca float, align 4
store i32 0, ptr %1, align 4
store ptr @.str, ptr %4, align 8
store ptr @.str.1, ptr %5, align 8
%7 = call float (...) @GetProdU()
store float %7, ptr %6, align 4
%8 = load ptr, ptr %5, align 8
%9 = call i32 @PDQ_Init(ptr noundef %8)
%10 = call i32 @PDQ_CreateClosed(ptr noundef @.str.2, i32 noundef 11, double noundef 2.000000e+01, double noundef 2.000000e+01)
store i32 %10, ptr %3, align 4
%11 = call i32 @PDQ_CreateClosed(ptr noundef @.str.3, i32 noundef 11, double noundef 1.500000e+01, double noundef 1.500000e+01)
store i32 %11, ptr %3, align 4
%12 = call i32 @PDQ_CreateNode(ptr noundef @.str.4, i32 noundef 4, i32 noundef 8)
store i32 %12, ptr %2, align 4
%13 = call i32 @PDQ_CreateNode(ptr noundef @.str.5, i32 noundef 4, i32 noundef 8)
store i32 %13, ptr %2, align 4
%14 = call i32 @PDQ_CreateNode(ptr noundef @.str.6, i32 noundef 4, i32 noundef 8)
store i32 %14, ptr %2, align 4
%15 = call i32 @PDQ_CreateNode(ptr noundef @.str.7, i32 noundef 4, i32 noundef 8)
store i32 %15, ptr %2, align 4
%16 = call i32 @PDQ_SetDemand(ptr noundef @.str.4, ptr noundef @.str.2, double noundef 3.000000e-01)
%17 = load float, ptr %6, align 4
%18 = fsub float 1.000000e+00, %17
%19 = fpext float %18 to double
%20 = fdiv double 1.000000e+00, %19
%21 = call i32 @PDQ_SetDemand(ptr noundef @.str.5, ptr noundef @.str.3, double noundef %20)
%22 = call i32 @PDQ_SetDemand(ptr noundef @.str.6, ptr noundef @.str.2, double noundef 8.000000e-02)
%23 = call i32 @PDQ_SetDemand(ptr noundef @.str.6, ptr noundef @.str.3, double noundef 5.000000e-02)
%24 = call i32 @PDQ_SetDemand(ptr noundef @.str.7, ptr noundef @.str.2, double noundef 1.000000e-01)
%25 = call i32 @PDQ_SetDemand(ptr noundef @.str.7, ptr noundef @.str.3, double noundef 6.000000e-02)
%26 = call i32 @PDQ_Solve(i32 noundef 15)
%27 = call i32 (...) @PDQ_Report()
ret i32 0
}
declare float @GetProdU(...) #1
declare i32 @PDQ_Init(ptr noundef) #1
declare i32 @PDQ_CreateClosed(ptr noundef, i32 noundef, double noundef, double noundef) #1
declare i32 @PDQ_CreateNode(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @PDQ_SetDemand(ptr noundef, ptr noundef, double noundef) #1
declare i32 @PDQ_Solve(i32 noundef) #1
declare i32 @PDQ_Report(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2ek3a2p_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"CPU Scheduler - No Pri\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"CPU Scheduler - Pri On\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"Production\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"Developmnt\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"CPU\00", align 1
@.str.5 = private unnamed_addr constant [8 x i8] c"shadCPU\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"DK1\00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c"DK2\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 ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca float, align 4
store i32 0, ptr %1, align 4
store ptr @.str, ptr %4, align 8
store ptr @.str.1, ptr %5, align 8
%7 = call float (...) @GetProdU()
store float %7, ptr %6, align 4
%8 = load ptr, ptr %5, align 8
%9 = call i32 @PDQ_Init(ptr noundef %8)
%10 = call i32 @PDQ_CreateClosed(ptr noundef @.str.2, i32 noundef 11, double noundef 2.000000e+01, double noundef 2.000000e+01)
store i32 %10, ptr %3, align 4
%11 = call i32 @PDQ_CreateClosed(ptr noundef @.str.3, i32 noundef 11, double noundef 1.500000e+01, double noundef 1.500000e+01)
store i32 %11, ptr %3, align 4
%12 = call i32 @PDQ_CreateNode(ptr noundef @.str.4, i32 noundef 4, i32 noundef 8)
store i32 %12, ptr %2, align 4
%13 = call i32 @PDQ_CreateNode(ptr noundef @.str.5, i32 noundef 4, i32 noundef 8)
store i32 %13, ptr %2, align 4
%14 = call i32 @PDQ_CreateNode(ptr noundef @.str.6, i32 noundef 4, i32 noundef 8)
store i32 %14, ptr %2, align 4
%15 = call i32 @PDQ_CreateNode(ptr noundef @.str.7, i32 noundef 4, i32 noundef 8)
store i32 %15, ptr %2, align 4
%16 = call i32 @PDQ_SetDemand(ptr noundef @.str.4, ptr noundef @.str.2, double noundef 3.000000e-01)
%17 = load float, ptr %6, align 4
%18 = fsub float 1.000000e+00, %17
%19 = fpext float %18 to double
%20 = fdiv double 1.000000e+00, %19
%21 = call i32 @PDQ_SetDemand(ptr noundef @.str.5, ptr noundef @.str.3, double noundef %20)
%22 = call i32 @PDQ_SetDemand(ptr noundef @.str.6, ptr noundef @.str.2, double noundef 8.000000e-02)
%23 = call i32 @PDQ_SetDemand(ptr noundef @.str.6, ptr noundef @.str.3, double noundef 5.000000e-02)
%24 = call i32 @PDQ_SetDemand(ptr noundef @.str.7, ptr noundef @.str.2, double noundef 1.000000e-01)
%25 = call i32 @PDQ_SetDemand(ptr noundef @.str.7, ptr noundef @.str.3, double noundef 6.000000e-02)
%26 = call i32 @PDQ_Solve(i32 noundef 15)
%27 = call i32 (...) @PDQ_Report()
ret i32 0
}
declare float @GetProdU(...) #1
declare i32 @PDQ_Init(ptr noundef) #1
declare i32 @PDQ_CreateClosed(ptr noundef, i32 noundef, double noundef, double noundef) #1
declare i32 @PDQ_CreateNode(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @PDQ_SetDemand(ptr noundef, ptr noundef, double noundef) #1
declare i32 @PDQ_Solve(i32 noundef) #1
declare i32 @PDQ_Report(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4cao3dn5.c'
source_filename = "/tmp/tmp4cao3dn5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @colmgr_get_pair(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %10
9: ; preds = %2
store i32 -1, ptr %4, align 4
br label %10
10: ; preds = %9, %2
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %10
store i32 -1, ptr %5, align 4
br label %14
14: ; preds = %13, %10
%15 = load i32, ptr %4, align 4
%16 = load i32, ptr %5, align 4
%17 = call i32 @find_pair(i32 noundef %15, i32 noundef %16)
store i32 %17, ptr %6, align 4
%18 = load i32, ptr %6, align 4
%19 = icmp ne i32 %18, -1
br i1 %19, label %20, label %22
20: ; preds = %14
%21 = load i32, ptr %6, align 4
store i32 %21, ptr %3, align 4
br label %33
22: ; preds = %14
%23 = load i32, ptr %4, align 4
%24 = load i32, ptr %5, align 4
%25 = call i32 @allocate_pair(i32 noundef %23, i32 noundef %24)
store i32 %25, ptr %6, align 4
%26 = load i32, ptr %6, align 4
%27 = icmp eq i32 %26, -1
br i1 %27, label %28, label %29
28: ; preds = %22
br label %31
29: ; preds = %22
%30 = load i32, ptr %6, align 4
br label %31
31: ; preds = %29, %28
%32 = phi i32 [ 0, %28 ], [ %30, %29 ]
store i32 %32, ptr %3, align 4
br label %33
33: ; preds = %31, %20
%34 = load i32, ptr %3, align 4
ret i32 %34
}
declare i32 @find_pair(i32 noundef, i32 noundef) #1
declare i32 @allocate_pair(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/tmp4cao3dn5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @colmgr_get_pair(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %10
9: ; preds = %2
store i32 -1, ptr %4, align 4
br label %10
10: ; preds = %9, %2
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %10
store i32 -1, ptr %5, align 4
br label %14
14: ; preds = %13, %10
%15 = load i32, ptr %4, align 4
%16 = load i32, ptr %5, align 4
%17 = call i32 @find_pair(i32 noundef %15, i32 noundef %16)
store i32 %17, ptr %6, align 4
%18 = load i32, ptr %6, align 4
%19 = icmp ne i32 %18, -1
br i1 %19, label %20, label %22
20: ; preds = %14
%21 = load i32, ptr %6, align 4
store i32 %21, ptr %3, align 4
br label %33
22: ; preds = %14
%23 = load i32, ptr %4, align 4
%24 = load i32, ptr %5, align 4
%25 = call i32 @allocate_pair(i32 noundef %23, i32 noundef %24)
store i32 %25, ptr %6, align 4
%26 = load i32, ptr %6, align 4
%27 = icmp eq i32 %26, -1
br i1 %27, label %28, label %29
28: ; preds = %22
br label %31
29: ; preds = %22
%30 = load i32, ptr %6, align 4
br label %31
31: ; preds = %29, %28
%32 = phi i32 [ 0, %28 ], [ %30, %29 ]
store i32 %32, ptr %3, align 4
br label %33
33: ; preds = %31, %20
%34 = load i32, ptr %3, align 4
ret i32 %34
}
declare i32 @find_pair(i32 noundef, i32 noundef) #1
declare i32 @allocate_pair(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/tmpboe7uhqm.c'
source_filename = "/tmp/tmpboe7uhqm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@vesav_write.lineCounter = internal global i32 0, align 4
@.str = private unnamed_addr constant [21 x i8] c"/tmp/vesav_debug.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"a\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"Falha ao iniciar arquivo de debug\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"Texto muito grande para ser escrito\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"\0A%d - %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @vesav_write(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %4, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = call i32 @printf(ptr noundef @.str.2)
%9 = call i32 @exit(i32 noundef 1) #3
unreachable
10: ; preds = %1
%11 = load ptr, ptr %2, align 8
%12 = call i32 @strlen(ptr noundef %11)
%13 = icmp sge i32 %12, 1024
br i1 %13, label %14, label %17
14: ; preds = %10
%15 = call i32 @printf(ptr noundef @.str.3)
%16 = call i32 @exit(i32 noundef 1) #3
unreachable
17: ; preds = %10
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr @vesav_write.lineCounter, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr @vesav_write.lineCounter, align 4
%21 = load ptr, ptr %2, align 8
%22 = call i32 @fprintf(ptr noundef %18, ptr noundef @.str.4, i32 noundef %19, ptr noundef %21)
%23 = load ptr, ptr %3, align 8
%24 = call i32 @fclose(ptr noundef %23)
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @strlen(ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpboe7uhqm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@vesav_write.lineCounter = internal global i32 0, align 4
@.str = private unnamed_addr constant [21 x i8] c"/tmp/vesav_debug.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"a\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"Falha ao iniciar arquivo de debug\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"Texto muito grande para ser escrito\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"\0A%d - %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @vesav_write(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %4, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = call i32 @printf(ptr noundef @.str.2)
%9 = call i32 @exit(i32 noundef 1) #3
unreachable
10: ; preds = %1
%11 = load ptr, ptr %2, align 8
%12 = call i32 @strlen(ptr noundef %11)
%13 = icmp sge i32 %12, 1024
br i1 %13, label %14, label %17
14: ; preds = %10
%15 = call i32 @printf(ptr noundef @.str.3)
%16 = call i32 @exit(i32 noundef 1) #3
unreachable
17: ; preds = %10
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr @vesav_write.lineCounter, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr @vesav_write.lineCounter, align 4
%21 = load ptr, ptr %2, align 8
%22 = call i32 @fprintf(ptr noundef %18, ptr noundef @.str.4, i32 noundef %19, ptr noundef %21)
%23 = load ptr, ptr %3, align 8
%24 = call i32 @fclose(ptr noundef %23)
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @strlen(ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmp8t3b03jw.c'
source_filename = "/tmp/tmp8t3b03jw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ht_hash(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
store i64 0, ptr %7, align 8
store i64 0, ptr %8, align 8
br label %9
9: ; preds = %29, %3
%10 = load i64, ptr %8, align 8
%11 = load i64, ptr %5, align 8
%12 = icmp ult i64 %10, %11
br i1 %12, label %13, label %32
13: ; preds = %9
%14 = load ptr, ptr %4, align 8
%15 = load i64, ptr %8, align 8
%16 = getelementptr inbounds i8, ptr %14, i64 %15
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i64
%19 = load i64, ptr %7, align 8
%20 = add i64 %19, %18
store i64 %20, ptr %7, align 8
%21 = load i64, ptr %7, align 8
%22 = shl i64 %21, 10
%23 = load i64, ptr %7, align 8
%24 = add i64 %23, %22
store i64 %24, ptr %7, align 8
%25 = load i64, ptr %7, align 8
%26 = lshr i64 %25, 6
%27 = load i64, ptr %7, align 8
%28 = xor i64 %27, %26
store i64 %28, ptr %7, align 8
br label %29
29: ; preds = %13
%30 = load i64, ptr %8, align 8
%31 = add i64 %30, 1
store i64 %31, ptr %8, align 8
br label %9, !llvm.loop !6
32: ; preds = %9
%33 = load i64, ptr %7, align 8
%34 = shl i64 %33, 3
%35 = load i64, ptr %7, align 8
%36 = add i64 %35, %34
store i64 %36, ptr %7, align 8
%37 = load i64, ptr %7, align 8
%38 = lshr i64 %37, 11
%39 = load i64, ptr %7, align 8
%40 = xor i64 %39, %38
store i64 %40, ptr %7, align 8
%41 = load i64, ptr %7, align 8
%42 = shl i64 %41, 15
%43 = load i64, ptr %7, align 8
%44 = add i64 %43, %42
store i64 %44, ptr %7, align 8
%45 = load i64, ptr %7, align 8
%46 = load i64, ptr %6, align 8
%47 = urem i64 %45, %46
%48 = trunc i64 %47 to i32
ret i32 %48
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp8t3b03jw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ht_hash(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
store i64 0, ptr %7, align 8
store i64 0, ptr %8, align 8
%9 = load i64, ptr %8, align 8
%10 = load i64, ptr %5, align 8
%11 = icmp ult i64 %9, %10
br i1 %11, label %.lr.ph, label %34
.lr.ph: ; preds = %3
br label %12
12: ; preds = %.lr.ph, %28
%13 = load ptr, ptr %4, align 8
%14 = load i64, ptr %8, align 8
%15 = getelementptr inbounds i8, ptr %13, i64 %14
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i64
%18 = load i64, ptr %7, align 8
%19 = add i64 %18, %17
store i64 %19, ptr %7, align 8
%20 = load i64, ptr %7, align 8
%21 = shl i64 %20, 10
%22 = load i64, ptr %7, align 8
%23 = add i64 %22, %21
store i64 %23, ptr %7, align 8
%24 = load i64, ptr %7, align 8
%25 = lshr i64 %24, 6
%26 = load i64, ptr %7, align 8
%27 = xor i64 %26, %25
store i64 %27, ptr %7, align 8
br label %28
28: ; preds = %12
%29 = load i64, ptr %8, align 8
%30 = add i64 %29, 1
store i64 %30, ptr %8, align 8
%31 = load i64, ptr %8, align 8
%32 = load i64, ptr %5, align 8
%33 = icmp ult i64 %31, %32
br i1 %33, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %34
34: ; preds = %._crit_edge, %3
%35 = load i64, ptr %7, align 8
%36 = shl i64 %35, 3
%37 = load i64, ptr %7, align 8
%38 = add i64 %37, %36
store i64 %38, ptr %7, align 8
%39 = load i64, ptr %7, align 8
%40 = lshr i64 %39, 11
%41 = load i64, ptr %7, align 8
%42 = xor i64 %41, %40
store i64 %42, ptr %7, align 8
%43 = load i64, ptr %7, align 8
%44 = shl i64 %43, 15
%45 = load i64, ptr %7, align 8
%46 = add i64 %45, %44
store i64 %46, ptr %7, align 8
%47 = load i64, ptr %7, align 8
%48 = load i64, ptr %6, align 8
%49 = urem i64 %47, %48
%50 = trunc i64 %49 to i32
ret i32 %50
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp1wr_mv83.c'
source_filename = "/tmp/tmp1wr_mv83.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define weak dso_local void @DMA1_Stream5_IRQHandler() #0 {
%1 = call i32 (...) @default_handler()
ret void
}
declare i32 @default_handler(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1wr_mv83.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define weak dso_local void @DMA1_Stream5_IRQHandler() #0 {
%1 = call i32 (...) @default_handler()
ret void
}
declare i32 @default_handler(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3v4l1345.c'
source_filename = "/tmp/tmp3v4l1345.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @unrom_access(i32 noundef %0, i8 noundef zeroext %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i8, align 1
store i32 %0, ptr %3, align 4
store i8 %1, ptr %4, align 1
%5 = load i32, ptr %3, align 4
%6 = icmp ugt i32 %5, 32767
br i1 %6, label %7, label %13
7: ; preds = %2
%8 = load i32, ptr %3, align 4
%9 = icmp ult i32 %8, 65536
br i1 %9, label %10, label %13
10: ; preds = %7
%11 = load i8, ptr %4, align 1
%12 = call i32 @unrom_switch_prg(i8 noundef zeroext %11)
br label %13
13: ; preds = %10, %7, %2
ret void
}
declare i32 @unrom_switch_prg(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/tmp3v4l1345.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @unrom_access(i32 noundef %0, i8 noundef zeroext %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i8, align 1
store i32 %0, ptr %3, align 4
store i8 %1, ptr %4, align 1
%5 = load i32, ptr %3, align 4
%6 = icmp ugt i32 %5, 32767
br i1 %6, label %7, label %13
7: ; preds = %2
%8 = load i32, ptr %3, align 4
%9 = icmp ult i32 %8, 65536
br i1 %9, label %10, label %13
10: ; preds = %7
%11 = load i8, ptr %4, align 1
%12 = call i32 @unrom_switch_prg(i8 noundef zeroext %11)
br label %13
13: ; preds = %10, %7, %2
ret void
}
declare i32 @unrom_switch_prg(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/tmp2i_5huk2.c'
source_filename = "/tmp/tmp2i_5huk2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @I2CMasterDisable(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = add nsw i32 %3, 32
%5 = sext i32 %4 to i64
%6 = inttoptr i64 %5 to ptr
%7 = load volatile i32, ptr %6, align 4
%8 = and i32 %7, -17
store volatile i32 %8, ptr %6, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2i_5huk2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @I2CMasterDisable(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = add nsw i32 %3, 32
%5 = sext i32 %4 to i64
%6 = inttoptr i64 %5 to ptr
%7 = load volatile i32, ptr %6, align 4
%8 = and i32 %7, -17
store volatile i32 %8, ptr %6, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdaacbgq_.c'
source_filename = "/tmp/tmpdaacbgq_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @adapt(ptr noundef %0, float noundef %1, float noundef %2, float noundef %3, float noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca ptr, align 8
%13 = alloca float, align 4
%14 = alloca float, align 4
%15 = alloca float, align 4
store ptr %0, ptr %7, align 8
store float %1, ptr %8, align 4
store float %2, ptr %9, align 4
store float %3, ptr %10, align 4
store float %4, ptr %11, align 4
store ptr %5, ptr %12, align 8
%16 = load ptr, ptr %7, align 8
%17 = load float, ptr %8, align 4
%18 = load float, ptr %9, align 4
%19 = load float, ptr %8, align 4
%20 = fsub float %18, %19
%21 = fdiv float %20, 3.000000e+00
%22 = fadd float %17, %21
%23 = call float %16(float noundef %22)
store float %23, ptr %13, align 4
%24 = load ptr, ptr %7, align 8
%25 = load float, ptr %8, align 4
%26 = load float, ptr %9, align 4
%27 = load float, ptr %8, align 4
%28 = fsub float %26, %27
%29 = fmul float 2.000000e+00, %28
%30 = fdiv float %29, 3.000000e+00
%31 = fadd float %25, %30
%32 = call float %24(float noundef %31)
store float %32, ptr %14, align 4
%33 = load ptr, ptr %7, align 8
%34 = load float, ptr %8, align 4
%35 = load float, ptr %9, align 4
%36 = load float, ptr %13, align 4
%37 = load float, ptr %14, align 4
%38 = load float, ptr %10, align 4
%39 = load float, ptr %11, align 4
%40 = load ptr, ptr %12, align 8
%41 = call float @adapt24(ptr noundef %33, float noundef %34, float noundef %35, float noundef %36, float noundef %37, float noundef %38, float noundef %39, ptr noundef %40)
store float %41, ptr %15, align 4
%42 = load float, ptr %15, align 4
ret float %42
}
declare float @adapt24(ptr noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdaacbgq_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @adapt(ptr noundef %0, float noundef %1, float noundef %2, float noundef %3, float noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca ptr, align 8
%13 = alloca float, align 4
%14 = alloca float, align 4
%15 = alloca float, align 4
store ptr %0, ptr %7, align 8
store float %1, ptr %8, align 4
store float %2, ptr %9, align 4
store float %3, ptr %10, align 4
store float %4, ptr %11, align 4
store ptr %5, ptr %12, align 8
%16 = load ptr, ptr %7, align 8
%17 = load float, ptr %8, align 4
%18 = load float, ptr %9, align 4
%19 = load float, ptr %8, align 4
%20 = fsub float %18, %19
%21 = fdiv float %20, 3.000000e+00
%22 = fadd float %17, %21
%23 = call float %16(float noundef %22)
store float %23, ptr %13, align 4
%24 = load ptr, ptr %7, align 8
%25 = load float, ptr %8, align 4
%26 = load float, ptr %9, align 4
%27 = load float, ptr %8, align 4
%28 = fsub float %26, %27
%29 = fmul float 2.000000e+00, %28
%30 = fdiv float %29, 3.000000e+00
%31 = fadd float %25, %30
%32 = call float %24(float noundef %31)
store float %32, ptr %14, align 4
%33 = load ptr, ptr %7, align 8
%34 = load float, ptr %8, align 4
%35 = load float, ptr %9, align 4
%36 = load float, ptr %13, align 4
%37 = load float, ptr %14, align 4
%38 = load float, ptr %10, align 4
%39 = load float, ptr %11, align 4
%40 = load ptr, ptr %12, align 8
%41 = call float @adapt24(ptr noundef %33, float noundef %34, float noundef %35, float noundef %36, float noundef %37, float noundef %38, float noundef %39, ptr noundef %40)
store float %41, ptr %15, align 4
%42 = load float, ptr %15, align 4
ret float %42
}
declare float @adapt24(ptr noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpo8q19v51.c'
source_filename = "/tmp/tmpo8q19v51.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%d,%d,%d,%d,%d\0A\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [11 x i8] c"four card\0A\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"full house\0A\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"straight\0A\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"null\0A\00", align 1
@.str.5 = private unnamed_addr constant [12 x i8] c"three card\0A\00", align 1
@.str.6 = private unnamed_addr constant [10 x i8] c"two pair\0A\00", align 1
@.str.7 = private unnamed_addr constant [10 x i8] c"one pair\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [5 x i32], align 16
%3 = alloca [14 x i32], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %9
9: ; preds = %228, %0
%10 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%11 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 1
%12 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 2
%13 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 3
%14 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 4
%15 = call i64 @scanf(ptr noundef @.str, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14)
%16 = load i64, ptr @EOF, align 8
%17 = icmp ne i64 %15, %16
br i1 %17, label %18, label %229
18: ; preds = %9
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 1, ptr %4, align 4
br label %19
19: ; preds = %26, %18
%20 = load i32, ptr %4, align 4
%21 = icmp sle i32 %20, 13
br i1 %21, label %22, label %29
22: ; preds = %19
%23 = load i32, ptr %4, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %24
store i32 0, ptr %25, align 4
br label %26
26: ; preds = %22
%27 = load i32, ptr %4, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %4, align 4
br label %19, !llvm.loop !6
29: ; preds = %19
store i32 0, ptr %4, align 4
br label %30
30: ; preds = %96, %29
%31 = load i32, ptr %4, align 4
%32 = icmp slt i32 %31, 5
br i1 %32, label %33, label %99
33: ; preds = %30
%34 = load i32, ptr %4, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %35
%37 = load i32, ptr %36, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %38
%40 = load i32, ptr %39, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %39, align 4
%42 = load i32, ptr %4, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %43
%45 = load i32, ptr %44, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %46
%48 = load i32, ptr %47, align 4
%49 = icmp eq i32 %48, 1
br i1 %49, label %50, label %53
50: ; preds = %33
%51 = load i32, ptr %5, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %5, align 4
br label %53
53: ; preds = %50, %33
%54 = load i32, ptr %4, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %55
%57 = load i32, ptr %56, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %58
%60 = load i32, ptr %59, align 4
%61 = icmp eq i32 %60, 2
br i1 %61, label %62, label %67
62: ; preds = %53
%63 = load i32, ptr %5, align 4
%64 = add nsw i32 %63, -1
store i32 %64, ptr %5, align 4
%65 = load i32, ptr %6, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %6, align 4
br label %67
67: ; preds = %62, %53
%68 = load i32, ptr %4, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %69
%71 = load i32, ptr %70, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %72
%74 = load i32, ptr %73, align 4
%75 = icmp eq i32 %74, 3
br i1 %75, label %76, label %81
76: ; preds = %67
%77 = load i32, ptr %6, align 4
%78 = add nsw i32 %77, -1
store i32 %78, ptr %6, align 4
%79 = load i32, ptr %7, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %7, align 4
br label %81
81: ; preds = %76, %67
%82 = load i32, ptr %4, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %83
%85 = load i32, ptr %84, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %86
%88 = load i32, ptr %87, align 4
%89 = icmp eq i32 %88, 4
br i1 %89, label %90, label %95
90: ; preds = %81
%91 = load i32, ptr %7, align 4
%92 = add nsw i32 %91, -1
store i32 %92, ptr %7, align 4
%93 = load i32, ptr %8, align 4
%94 = add nsw i32 %93, 1
store i32 %94, ptr %8, align 4
br label %95
95: ; preds = %90, %81
br label %96
96: ; preds = %95
%97 = load i32, ptr %4, align 4
%98 = add nsw i32 %97, 1
store i32 %98, ptr %4, align 4
br label %30, !llvm.loop !8
99: ; preds = %30
%100 = load i32, ptr %8, align 4
%101 = icmp eq i32 %100, 1
br i1 %101, label %102, label %104
102: ; preds = %99
%103 = call i32 @printf(ptr noundef @.str.1)
br label %228
104: ; preds = %99
%105 = load i32, ptr %7, align 4
%106 = icmp eq i32 %105, 1
br i1 %106, label %107, label %112
107: ; preds = %104
%108 = load i32, ptr %6, align 4
%109 = icmp eq i32 %108, 1
br i1 %109, label %110, label %112
110: ; preds = %107
%111 = call i32 @printf(ptr noundef @.str.2)
br label %227
112: ; preds = %107, %104
%113 = load i32, ptr %5, align 4
%114 = icmp eq i32 %113, 5
br i1 %114, label %115, label %206
115: ; preds = %112
store i32 1, ptr %4, align 4
br label %116
116: ; preds = %202, %115
%117 = load i32, ptr %4, align 4
%118 = icmp sle i32 %117, 10
br i1 %118, label %119, label %205
119: ; preds = %116
%120 = load i32, ptr %4, align 4
%121 = icmp sle i32 %120, 9
br i1 %121, label %122, label %158
122: ; preds = %119
%123 = load i32, ptr %4, align 4
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %124
%126 = load i32, ptr %125, align 4
%127 = icmp eq i32 %126, 1
br i1 %127, label %128, label %158
128: ; preds = %122
%129 = load i32, ptr %4, align 4
%130 = add nsw i32 %129, 1
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %131
%133 = load i32, ptr %132, align 4
%134 = icmp eq i32 %133, 1
br i1 %134, label %135, label %158
135: ; preds = %128
%136 = load i32, ptr %4, align 4
%137 = add nsw i32 %136, 2
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %138
%140 = load i32, ptr %139, align 4
%141 = icmp eq i32 %140, 1
br i1 %141, label %142, label %158
142: ; preds = %135
%143 = load i32, ptr %4, align 4
%144 = add nsw i32 %143, 3
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %145
%147 = load i32, ptr %146, align 4
%148 = icmp eq i32 %147, 1
br i1 %148, label %149, label %158
149: ; preds = %142
%150 = load i32, ptr %4, align 4
%151 = add nsw i32 %150, 4
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %152
%154 = load i32, ptr %153, align 4
%155 = icmp eq i32 %154, 1
br i1 %155, label %156, label %158
156: ; preds = %149
%157 = call i32 @printf(ptr noundef @.str.3)
br label %205
158: ; preds = %149, %142, %135, %128, %122, %119
%159 = load i32, ptr %4, align 4
%160 = icmp eq i32 %159, 10
br i1 %160, label %161, label %194
161: ; preds = %158
%162 = load i32, ptr %4, align 4
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %163
%165 = load i32, ptr %164, align 4
%166 = icmp eq i32 %165, 1
br i1 %166, label %167, label %194
167: ; preds = %161
%168 = load i32, ptr %4, align 4
%169 = add nsw i32 %168, 1
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %170
%172 = load i32, ptr %171, align 4
%173 = icmp eq i32 %172, 1
br i1 %173, label %174, label %194
174: ; preds = %167
%175 = load i32, ptr %4, align 4
%176 = add nsw i32 %175, 2
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %177
%179 = load i32, ptr %178, align 4
%180 = icmp eq i32 %179, 1
br i1 %180, label %181, label %194
181: ; preds = %174
%182 = load i32, ptr %4, align 4
%183 = add nsw i32 %182, 3
%184 = sext i32 %183 to i64
%185 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %184
%186 = load i32, ptr %185, align 4
%187 = icmp eq i32 %186, 1
br i1 %187, label %188, label %194
188: ; preds = %181
%189 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 1
%190 = load i32, ptr %189, align 4
%191 = icmp eq i32 %190, 1
br i1 %191, label %192, label %194
192: ; preds = %188
%193 = call i32 @printf(ptr noundef @.str.3)
br label %205
194: ; preds = %188, %181, %174, %167, %161, %158
%195 = load i32, ptr %4, align 4
%196 = icmp eq i32 %195, 10
br i1 %196, label %197, label %199
197: ; preds = %194
%198 = call i32 @printf(ptr noundef @.str.4)
br label %205
199: ; preds = %194
br label %200
200: ; preds = %199
br label %201
201: ; preds = %200
br label %202
202: ; preds = %201
%203 = load i32, ptr %4, align 4
%204 = add nsw i32 %203, 1
store i32 %204, ptr %4, align 4
br label %116, !llvm.loop !9
205: ; preds = %197, %192, %156, %116
br label %226
206: ; preds = %112
%207 = load i32, ptr %7, align 4
%208 = icmp eq i32 %207, 1
br i1 %208, label %209, label %211
209: ; preds = %206
%210 = call i32 @printf(ptr noundef @.str.5)
br label %225
211: ; preds = %206
%212 = load i32, ptr %6, align 4
%213 = icmp eq i32 %212, 2
br i1 %213, label %214, label %216
214: ; preds = %211
%215 = call i32 @printf(ptr noundef @.str.6)
br label %224
216: ; preds = %211
%217 = load i32, ptr %6, align 4
%218 = icmp eq i32 %217, 1
br i1 %218, label %219, label %221
219: ; preds = %216
%220 = call i32 @printf(ptr noundef @.str.7)
br label %223
221: ; preds = %216
%222 = call i32 @printf(ptr noundef @.str.4)
br label %223
223: ; preds = %221, %219
br label %224
224: ; preds = %223, %214
br label %225
225: ; preds = %224, %209
br label %226
226: ; preds = %225, %205
br label %227
227: ; preds = %226, %110
br label %228
228: ; preds = %227, %102
br label %9, !llvm.loop !10
229: ; preds = %9
ret i32 0
}
declare i64 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo8q19v51.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%d,%d,%d,%d,%d\0A\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [11 x i8] c"four card\0A\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"full house\0A\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"straight\0A\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"null\0A\00", align 1
@.str.5 = private unnamed_addr constant [12 x i8] c"three card\0A\00", align 1
@.str.6 = private unnamed_addr constant [10 x i8] c"two pair\0A\00", align 1
@.str.7 = private unnamed_addr constant [10 x i8] c"one pair\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [5 x i32], align 16
%3 = alloca [14 x i32], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
%9 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 0
%10 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 1
%11 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 2
%12 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 3
%13 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 4
%14 = call i64 @scanf(ptr noundef @.str, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13)
%15 = load i64, ptr @EOF, align 8
%16 = icmp ne i64 %14, %15
br i1 %16, label %.lr.ph7, label %234
.lr.ph7: ; preds = %0
br label %17
17: ; preds = %.lr.ph7, %230
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 1, ptr %4, align 4
%18 = load i32, ptr %4, align 4
%19 = icmp sle i32 %18, 13
br i1 %19, label %.lr.ph, label %29
.lr.ph: ; preds = %17
br label %20
20: ; preds = %.lr.ph, %24
%21 = load i32, ptr %4, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %22
store i32 0, ptr %23, align 4
br label %24
24: ; preds = %20
%25 = load i32, ptr %4, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %4, align 4
%27 = load i32, ptr %4, align 4
%28 = icmp sle i32 %27, 13
br i1 %28, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %29
29: ; preds = %._crit_edge, %17
store i32 0, ptr %4, align 4
%30 = load i32, ptr %4, align 4
%31 = icmp slt i32 %30, 5
br i1 %31, label %.lr.ph2, label %100
.lr.ph2: ; preds = %29
br label %32
32: ; preds = %.lr.ph2, %95
%33 = load i32, ptr %4, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %34
%36 = load i32, ptr %35, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %37
%39 = load i32, ptr %38, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %38, align 4
%41 = load i32, ptr %4, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %42
%44 = load i32, ptr %43, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %45
%47 = load i32, ptr %46, align 4
%48 = icmp eq i32 %47, 1
br i1 %48, label %49, label %52
49: ; preds = %32
%50 = load i32, ptr %5, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %5, align 4
br label %52
52: ; preds = %49, %32
%53 = load i32, ptr %4, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %54
%56 = load i32, ptr %55, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %57
%59 = load i32, ptr %58, align 4
%60 = icmp eq i32 %59, 2
br i1 %60, label %61, label %66
61: ; preds = %52
%62 = load i32, ptr %5, align 4
%63 = add nsw i32 %62, -1
store i32 %63, ptr %5, align 4
%64 = load i32, ptr %6, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %6, align 4
br label %66
66: ; preds = %61, %52
%67 = load i32, ptr %4, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %68
%70 = load i32, ptr %69, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %71
%73 = load i32, ptr %72, align 4
%74 = icmp eq i32 %73, 3
br i1 %74, label %75, label %80
75: ; preds = %66
%76 = load i32, ptr %6, align 4
%77 = add nsw i32 %76, -1
store i32 %77, ptr %6, align 4
%78 = load i32, ptr %7, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %7, align 4
br label %80
80: ; preds = %75, %66
%81 = load i32, ptr %4, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %82
%84 = load i32, ptr %83, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %85
%87 = load i32, ptr %86, align 4
%88 = icmp eq i32 %87, 4
br i1 %88, label %89, label %94
89: ; preds = %80
%90 = load i32, ptr %7, align 4
%91 = add nsw i32 %90, -1
store i32 %91, ptr %7, align 4
%92 = load i32, ptr %8, align 4
%93 = add nsw i32 %92, 1
store i32 %93, ptr %8, align 4
br label %94
94: ; preds = %89, %80
br label %95
95: ; preds = %94
%96 = load i32, ptr %4, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %4, align 4
%98 = load i32, ptr %4, align 4
%99 = icmp slt i32 %98, 5
br i1 %99, label %32, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %95
br label %100
100: ; preds = %._crit_edge3, %29
%101 = load i32, ptr %8, align 4
%102 = icmp eq i32 %101, 1
br i1 %102, label %103, label %105
103: ; preds = %100
%104 = call i32 @printf(ptr noundef @.str.1)
br label %230
105: ; preds = %100
%106 = load i32, ptr %7, align 4
%107 = icmp eq i32 %106, 1
br i1 %107, label %108, label %113
108: ; preds = %105
%109 = load i32, ptr %6, align 4
%110 = icmp eq i32 %109, 1
br i1 %110, label %111, label %113
111: ; preds = %108
%112 = call i32 @printf(ptr noundef @.str.2)
br label %229
113: ; preds = %108, %105
%114 = load i32, ptr %5, align 4
%115 = icmp eq i32 %114, 5
br i1 %115, label %116, label %208
116: ; preds = %113
store i32 1, ptr %4, align 4
%117 = load i32, ptr %4, align 4
%118 = icmp sle i32 %117, 10
br i1 %118, label %.lr.ph5, label %.loopexit
.lr.ph5: ; preds = %116
br label %119
119: ; preds = %.lr.ph5, %202
%120 = load i32, ptr %4, align 4
%121 = icmp sle i32 %120, 9
br i1 %121, label %122, label %158
122: ; preds = %119
%123 = load i32, ptr %4, align 4
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %124
%126 = load i32, ptr %125, align 4
%127 = icmp eq i32 %126, 1
br i1 %127, label %128, label %158
128: ; preds = %122
%129 = load i32, ptr %4, align 4
%130 = add nsw i32 %129, 1
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %131
%133 = load i32, ptr %132, align 4
%134 = icmp eq i32 %133, 1
br i1 %134, label %135, label %158
135: ; preds = %128
%136 = load i32, ptr %4, align 4
%137 = add nsw i32 %136, 2
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %138
%140 = load i32, ptr %139, align 4
%141 = icmp eq i32 %140, 1
br i1 %141, label %142, label %158
142: ; preds = %135
%143 = load i32, ptr %4, align 4
%144 = add nsw i32 %143, 3
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %145
%147 = load i32, ptr %146, align 4
%148 = icmp eq i32 %147, 1
br i1 %148, label %149, label %158
149: ; preds = %142
%150 = load i32, ptr %4, align 4
%151 = add nsw i32 %150, 4
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %152
%154 = load i32, ptr %153, align 4
%155 = icmp eq i32 %154, 1
br i1 %155, label %156, label %158
156: ; preds = %149
%157 = call i32 @printf(ptr noundef @.str.3)
br label %207
158: ; preds = %149, %142, %135, %128, %122, %119
%159 = load i32, ptr %4, align 4
%160 = icmp eq i32 %159, 10
br i1 %160, label %161, label %194
161: ; preds = %158
%162 = load i32, ptr %4, align 4
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %163
%165 = load i32, ptr %164, align 4
%166 = icmp eq i32 %165, 1
br i1 %166, label %167, label %194
167: ; preds = %161
%168 = load i32, ptr %4, align 4
%169 = add nsw i32 %168, 1
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %170
%172 = load i32, ptr %171, align 4
%173 = icmp eq i32 %172, 1
br i1 %173, label %174, label %194
174: ; preds = %167
%175 = load i32, ptr %4, align 4
%176 = add nsw i32 %175, 2
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %177
%179 = load i32, ptr %178, align 4
%180 = icmp eq i32 %179, 1
br i1 %180, label %181, label %194
181: ; preds = %174
%182 = load i32, ptr %4, align 4
%183 = add nsw i32 %182, 3
%184 = sext i32 %183 to i64
%185 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 %184
%186 = load i32, ptr %185, align 4
%187 = icmp eq i32 %186, 1
br i1 %187, label %188, label %194
188: ; preds = %181
%189 = getelementptr inbounds [14 x i32], ptr %3, i64 0, i64 1
%190 = load i32, ptr %189, align 4
%191 = icmp eq i32 %190, 1
br i1 %191, label %192, label %194
192: ; preds = %188
%193 = call i32 @printf(ptr noundef @.str.3)
br label %207
194: ; preds = %188, %181, %174, %167, %161, %158
%195 = load i32, ptr %4, align 4
%196 = icmp eq i32 %195, 10
br i1 %196, label %197, label %199
197: ; preds = %194
%198 = call i32 @printf(ptr noundef @.str.4)
br label %207
199: ; preds = %194
br label %200
200: ; preds = %199
br label %201
201: ; preds = %200
br label %202
202: ; preds = %201
%203 = load i32, ptr %4, align 4
%204 = add nsw i32 %203, 1
store i32 %204, ptr %4, align 4
%205 = load i32, ptr %4, align 4
%206 = icmp sle i32 %205, 10
br i1 %206, label %119, label %..loopexit_crit_edge, !llvm.loop !9
..loopexit_crit_edge: ; preds = %202
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %116
br label %207
207: ; preds = %.loopexit, %197, %192, %156
br label %228
208: ; preds = %113
%209 = load i32, ptr %7, align 4
%210 = icmp eq i32 %209, 1
br i1 %210, label %211, label %213
211: ; preds = %208
%212 = call i32 @printf(ptr noundef @.str.5)
br label %227
213: ; preds = %208
%214 = load i32, ptr %6, align 4
%215 = icmp eq i32 %214, 2
br i1 %215, label %216, label %218
216: ; preds = %213
%217 = call i32 @printf(ptr noundef @.str.6)
br label %226
218: ; preds = %213
%219 = load i32, ptr %6, align 4
%220 = icmp eq i32 %219, 1
br i1 %220, label %221, label %223
221: ; preds = %218
%222 = call i32 @printf(ptr noundef @.str.7)
br label %225
223: ; preds = %218
%224 = call i32 @printf(ptr noundef @.str.4)
br label %225
225: ; preds = %223, %221
br label %226
226: ; preds = %225, %216
br label %227
227: ; preds = %226, %211
br label %228
228: ; preds = %227, %207
br label %229
229: ; preds = %228, %111
br label %230
230: ; preds = %229, %103
%231 = call i64 @scanf(ptr noundef @.str, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13)
%232 = load i64, ptr @EOF, align 8
%233 = icmp ne i64 %231, %232
br i1 %233, label %17, label %._crit_edge8, !llvm.loop !10
._crit_edge8: ; preds = %230
br label %234
234: ; preds = %._crit_edge8, %0
ret i32 0
}
declare i64 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmp5p4j35rx.c'
source_filename = "/tmp/tmp5p4j35rx.c"
target datalayout = "e-m:e-p270: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 [47 x i8] c"Do you want to use figures or letters ? [F/l] \00", align 1
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i8 @ask_figure_or_letter() #0 {
%1 = alloca i8, align 1
store i8 70, ptr %1, align 1
br label %2
2: ; preds = %28, %0
%3 = load i32, ptr @stdout, align 4
%4 = call ptr @gettext(ptr noundef @.str)
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef %4)
%6 = load i32, ptr @stdin, align 4
%7 = call signext i8 @fgetc(i32 noundef %6)
store i8 %7, ptr %1, align 1
br label %8
8: ; preds = %2
%9 = load i8, ptr %1, align 1
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 102
br i1 %11, label %12, label %28
12: ; preds = %8
%13 = load i8, ptr %1, align 1
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 70
br i1 %15, label %16, label %28
16: ; preds = %12
%17 = load i8, ptr %1, align 1
%18 = sext i8 %17 to i32
%19 = icmp ne i32 %18, 108
br i1 %19, label %20, label %28
20: ; preds = %16
%21 = load i8, ptr %1, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 76
br i1 %23, label %24, label %28
24: ; preds = %20
%25 = load i8, ptr %1, align 1
%26 = sext i8 %25 to i32
%27 = icmp ne i32 %26, 10
br label %28
28: ; preds = %24, %20, %16, %12, %8
%29 = phi i1 [ false, %20 ], [ false, %16 ], [ false, %12 ], [ false, %8 ], [ %27, %24 ]
br i1 %29, label %2, label %30, !llvm.loop !6
30: ; preds = %28
%31 = load i8, ptr %1, align 1
%32 = sext i8 %31 to i32
%33 = icmp eq i32 %32, 102
br i1 %33, label %44, label %34
34: ; preds = %30
%35 = load i8, ptr %1, align 1
%36 = sext i8 %35 to i32
%37 = icmp eq i32 %36, 70
br i1 %37, label %42, label %38
38: ; preds = %34
%39 = load i8, ptr %1, align 1
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %40, 10
br label %42
42: ; preds = %38, %34
%43 = phi i1 [ true, %34 ], [ %41, %38 ]
br label %44
44: ; preds = %42, %30
%45 = phi i1 [ true, %30 ], [ %43, %42 ]
%46 = zext i1 %45 to i64
%47 = select i1 %45, i32 0, i32 1
%48 = trunc i32 %47 to i8
ret i8 %48
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare ptr @gettext(ptr noundef) #1
declare signext i8 @fgetc(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/tmp5p4j35rx.c"
target datalayout = "e-m:e-p270: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 [47 x i8] c"Do you want to use figures or letters ? [F/l] \00", align 1
@stdin = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i8 @ask_figure_or_letter() #0 {
%1 = alloca i8, align 1
store i8 70, ptr %1, align 1
br label %2
2: ; preds = %28, %0
%3 = load i32, ptr @stdout, align 4
%4 = call ptr @gettext(ptr noundef @.str)
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef %4)
%6 = load i32, ptr @stdin, align 4
%7 = call signext i8 @fgetc(i32 noundef %6)
store i8 %7, ptr %1, align 1
br label %8
8: ; preds = %2
%9 = load i8, ptr %1, align 1
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 102
br i1 %11, label %12, label %28
12: ; preds = %8
%13 = load i8, ptr %1, align 1
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 70
br i1 %15, label %16, label %28
16: ; preds = %12
%17 = load i8, ptr %1, align 1
%18 = sext i8 %17 to i32
%19 = icmp ne i32 %18, 108
br i1 %19, label %20, label %28
20: ; preds = %16
%21 = load i8, ptr %1, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 76
br i1 %23, label %24, label %28
24: ; preds = %20
%25 = load i8, ptr %1, align 1
%26 = sext i8 %25 to i32
%27 = icmp ne i32 %26, 10
br label %28
28: ; preds = %24, %20, %16, %12, %8
%29 = phi i1 [ false, %20 ], [ false, %16 ], [ false, %12 ], [ false, %8 ], [ %27, %24 ]
br i1 %29, label %2, label %30, !llvm.loop !6
30: ; preds = %28
%31 = load i8, ptr %1, align 1
%32 = sext i8 %31 to i32
%33 = icmp eq i32 %32, 102
br i1 %33, label %44, label %34
34: ; preds = %30
%35 = load i8, ptr %1, align 1
%36 = sext i8 %35 to i32
%37 = icmp eq i32 %36, 70
br i1 %37, label %42, label %38
38: ; preds = %34
%39 = load i8, ptr %1, align 1
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %40, 10
br label %42
42: ; preds = %38, %34
%43 = phi i1 [ true, %34 ], [ %41, %38 ]
br label %44
44: ; preds = %42, %30
%45 = phi i1 [ true, %30 ], [ %43, %42 ]
%46 = zext i1 %45 to i64
%47 = select i1 %45, i32 0, i32 1
%48 = trunc i32 %47 to i8
ret i8 %48
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare ptr @gettext(ptr noundef) #1
declare signext i8 @fgetc(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/tmpw33agq_e.c'
source_filename = "/tmp/tmpw33agq_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"
@.str = private unnamed_addr constant [24 x i8] c"Usage: %s <input file>\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw33agq_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"
@.str = private unnamed_addr constant [24 x i8] c"Usage: %s <input file>\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7r6rae4r.c'
source_filename = "/tmp/tmp7r6rae4r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @find_syscall() #0 {
%1 = alloca i32, align 4
br label %2
2: ; preds = %0
%3 = call i32 @get_randnum(i32 noundef 0, i32 noundef 384)
store i32 %3, ptr %1, align 4
%4 = load i32, ptr %1, align 4
switch i32 %4, label %5 [
]
5: ; preds = %2
%6 = load i32, ptr %1, align 4
ret i32 %6
}
declare i32 @get_randnum(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/tmp7r6rae4r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @find_syscall() #0 {
%1 = alloca i32, align 4
br label %2
2: ; preds = %0
%3 = call i32 @get_randnum(i32 noundef 0, i32 noundef 384)
store i32 %3, ptr %1, align 4
%4 = load i32, ptr %1, align 4
switch i32 %4, label %5 [
]
5: ; preds = %2
%6 = load i32, ptr %1, align 4
ret i32 %6
}
declare i32 @get_randnum(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/tmp165qqe0v.c'
source_filename = "/tmp/tmp165qqe0v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [166 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sim9108/SDKS/refs/heads/master/LibFontConfig/src/fc-list/.libs/lt-fc-list.c\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"(check_executable): %s\0A\00", align 1
@S_IXUSR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check_executable(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca %struct.stat, align 4
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i32 @nonempty(ptr noundef %5)
%7 = call i32 @lt_debugprintf(ptr noundef @.str, i32 noundef 345, ptr noundef @.str.1, i32 noundef %6)
%8 = load ptr, ptr %3, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %10, label %14
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = load i8, ptr %11, align 1
%13 = icmp ne i8 %12, 0
br i1 %13, label %15, label %14
14: ; preds = %10, %1
store i32 0, ptr %2, align 4
br label %29
15: ; preds = %10
%16 = load ptr, ptr %3, align 8
%17 = call i64 @stat(ptr noundef %16, ptr noundef %4)
%18 = icmp sge i64 %17, 0
br i1 %18, label %19, label %28
19: ; preds = %15
%20 = getelementptr inbounds %struct.stat, ptr %4, i32 0, i32 0
%21 = load i32, ptr %20, align 4
%22 = load i32, ptr @S_IXUSR, align 4
%23 = or i32 %22, 0
%24 = or i32 %23, 0
%25 = and i32 %21, %24
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %19
store i32 1, ptr %2, align 4
br label %29
28: ; preds = %19, %15
store i32 0, ptr %2, align 4
br label %29
29: ; preds = %28, %27, %14
%30 = load i32, ptr %2, align 4
ret i32 %30
}
declare i32 @lt_debugprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @nonempty(ptr noundef) #1
declare i64 @stat(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/tmp165qqe0v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [166 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sim9108/SDKS/refs/heads/master/LibFontConfig/src/fc-list/.libs/lt-fc-list.c\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"(check_executable): %s\0A\00", align 1
@S_IXUSR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check_executable(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca %struct.stat, align 4
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i32 @nonempty(ptr noundef %5)
%7 = call i32 @lt_debugprintf(ptr noundef @.str, i32 noundef 345, ptr noundef @.str.1, i32 noundef %6)
%8 = load ptr, ptr %3, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %10, label %14
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = load i8, ptr %11, align 1
%13 = icmp ne i8 %12, 0
br i1 %13, label %15, label %14
14: ; preds = %10, %1
store i32 0, ptr %2, align 4
br label %29
15: ; preds = %10
%16 = load ptr, ptr %3, align 8
%17 = call i64 @stat(ptr noundef %16, ptr noundef %4)
%18 = icmp sge i64 %17, 0
br i1 %18, label %19, label %28
19: ; preds = %15
%20 = getelementptr inbounds %struct.stat, ptr %4, i32 0, i32 0
%21 = load i32, ptr %20, align 4
%22 = load i32, ptr @S_IXUSR, align 4
%23 = or i32 %22, 0
%24 = or i32 %23, 0
%25 = and i32 %21, %24
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %19
store i32 1, ptr %2, align 4
br label %29
28: ; preds = %19, %15
store i32 0, ptr %2, align 4
br label %29
29: ; preds = %28, %27, %14
%30 = load i32, ptr %2, align 4
ret i32 %30
}
declare i32 @lt_debugprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @nonempty(ptr noundef) #1
declare i64 @stat(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/tmp50_08pqv.c'
source_filename = "/tmp/tmp50_08pqv.c"
target datalayout = "e-m:e-p270: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 [61 x i8] c"\0AThis program converts a binary number to a decimal number.\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"\0AOptions:\0A\00", align 1
@.str.2 = private unnamed_addr constant [37 x i8] c" -h or --help\09Print this help text\0A\00", align 1
@.str.3 = private unnamed_addr constant [43 x i8] c" --version\09Print version and author info\0A\00", align 1
@.str.4 = private unnamed_addr constant [22 x i8] c" -\09\09Read from stdin\0A\00", align 1
@.str.5 = private unnamed_addr constant [62 x i8] c" -v\09\09Enable verbose output (print what type each result is)\0A\00", align 1
@.str.6 = private unnamed_addr constant [32 x i8] c" -d\09\09Decimal output (default)\0A\00", align 1
@.str.7 = private unnamed_addr constant [21 x i8] c" -b\09\09Binary output\0A\00", align 1
@.str.8 = private unnamed_addr constant [20 x i8] c" -o\09\09Octal output\0A\00", align 1
@.str.9 = private unnamed_addr constant [26 x i8] c" -x\09\09Hexadecimal output\0A\00", align 1
@.str.10 = private unnamed_addr constant [39 x i8] c" -X\09\09Hex output with capital letters\0A\00", align 1
@.str.11 = private unnamed_addr constant [59 x i8] c" -a\09\09Precise hex output (printf %%a, see 'man 3 printf')\0A\00", align 1
@.str.12 = private unnamed_addr constant [38 x i8] c" -A\09\09Same, but with capital letters\0A\00", align 1
@.str.13 = private unnamed_addr constant [55 x i8] c" -s\09\09Output in 4-character sections, space-separated\0A\00", align 1
@.str.14 = private unnamed_addr constant [49 x i8] c" -l\09\09Print a new line between sections of text\0A\00", align 1
@.str.15 = private unnamed_addr constant [28 x i8] c" -t\09\09Text conversion mode\0A\00", align 1
@.str.16 = private unnamed_addr constant [44 x i8] c" -e\09\09Read binary numbers as little-endian\0A\00", align 1
@.str.17 = private unnamed_addr constant [51 x i8] c" -E\09\09Read binary numbers as big-endian (default)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_help() #0 {
%1 = load i32, ptr @stdout, align 4
%2 = call i32 @print_usage(i32 noundef %1)
%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)
%9 = call i32 @printf(ptr noundef @.str.6)
%10 = call i32 @printf(ptr noundef @.str.7)
%11 = call i32 @printf(ptr noundef @.str.8)
%12 = call i32 @printf(ptr noundef @.str.9)
%13 = call i32 @printf(ptr noundef @.str.10)
%14 = call i32 @printf(ptr noundef @.str.11)
%15 = call i32 @printf(ptr noundef @.str.12)
%16 = call i32 @printf(ptr noundef @.str.13)
%17 = call i32 @printf(ptr noundef @.str.14)
%18 = call i32 @printf(ptr noundef @.str.15)
%19 = call i32 @printf(ptr noundef @.str.16)
%20 = call i32 @printf(ptr noundef @.str.17)
ret void
}
declare i32 @print_usage(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp50_08pqv.c"
target datalayout = "e-m:e-p270: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 [61 x i8] c"\0AThis program converts a binary number to a decimal number.\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"\0AOptions:\0A\00", align 1
@.str.2 = private unnamed_addr constant [37 x i8] c" -h or --help\09Print this help text\0A\00", align 1
@.str.3 = private unnamed_addr constant [43 x i8] c" --version\09Print version and author info\0A\00", align 1
@.str.4 = private unnamed_addr constant [22 x i8] c" -\09\09Read from stdin\0A\00", align 1
@.str.5 = private unnamed_addr constant [62 x i8] c" -v\09\09Enable verbose output (print what type each result is)\0A\00", align 1
@.str.6 = private unnamed_addr constant [32 x i8] c" -d\09\09Decimal output (default)\0A\00", align 1
@.str.7 = private unnamed_addr constant [21 x i8] c" -b\09\09Binary output\0A\00", align 1
@.str.8 = private unnamed_addr constant [20 x i8] c" -o\09\09Octal output\0A\00", align 1
@.str.9 = private unnamed_addr constant [26 x i8] c" -x\09\09Hexadecimal output\0A\00", align 1
@.str.10 = private unnamed_addr constant [39 x i8] c" -X\09\09Hex output with capital letters\0A\00", align 1
@.str.11 = private unnamed_addr constant [59 x i8] c" -a\09\09Precise hex output (printf %%a, see 'man 3 printf')\0A\00", align 1
@.str.12 = private unnamed_addr constant [38 x i8] c" -A\09\09Same, but with capital letters\0A\00", align 1
@.str.13 = private unnamed_addr constant [55 x i8] c" -s\09\09Output in 4-character sections, space-separated\0A\00", align 1
@.str.14 = private unnamed_addr constant [49 x i8] c" -l\09\09Print a new line between sections of text\0A\00", align 1
@.str.15 = private unnamed_addr constant [28 x i8] c" -t\09\09Text conversion mode\0A\00", align 1
@.str.16 = private unnamed_addr constant [44 x i8] c" -e\09\09Read binary numbers as little-endian\0A\00", align 1
@.str.17 = private unnamed_addr constant [51 x i8] c" -E\09\09Read binary numbers as big-endian (default)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_help() #0 {
%1 = load i32, ptr @stdout, align 4
%2 = call i32 @print_usage(i32 noundef %1)
%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)
%9 = call i32 @printf(ptr noundef @.str.6)
%10 = call i32 @printf(ptr noundef @.str.7)
%11 = call i32 @printf(ptr noundef @.str.8)
%12 = call i32 @printf(ptr noundef @.str.9)
%13 = call i32 @printf(ptr noundef @.str.10)
%14 = call i32 @printf(ptr noundef @.str.11)
%15 = call i32 @printf(ptr noundef @.str.12)
%16 = call i32 @printf(ptr noundef @.str.13)
%17 = call i32 @printf(ptr noundef @.str.14)
%18 = call i32 @printf(ptr noundef @.str.15)
%19 = call i32 @printf(ptr noundef @.str.16)
%20 = call i32 @printf(ptr noundef @.str.17)
ret void
}
declare i32 @print_usage(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp16vc6pv9.c'
source_filename = "/tmp/tmp16vc6pv9.c"
target datalayout = "e-m:e-p270: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/tmp16vc6pv9.c"
target datalayout = "e-m:e-p270: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/tmp4x8eayml.c'
source_filename = "/tmp/tmp4x8eayml.c"
target datalayout = "e-m:e-p270: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.tabela = private unnamed_addr constant [10 x i32] [i32 20, i32 30, i32 43, i32 5, i32 400, i32 1999, i32 9, i32 360, i32 3, i32 8], align 16
@.str = private unnamed_addr constant [94 x i8] c"O endreco do ponteiro que aponta para o numero mais proximo da media e o %p e tem o valor %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [10 x i32], align 16
%2 = alloca ptr, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.main.tabela, i64 40, i1 false)
%3 = getelementptr inbounds [10 x i32], ptr %1, i64 0, i64 0
%4 = call ptr @proximo_da_media(ptr noundef %3, i32 noundef 10)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = load i32, ptr %6, align 4
%8 = call i32 @printf(ptr noundef @.str, ptr noundef %5, i32 noundef %7)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare ptr @proximo_da_media(ptr noundef, i32 noundef) #2
declare i32 @printf(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4x8eayml.c"
target datalayout = "e-m:e-p270: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.tabela = private unnamed_addr constant [10 x i32] [i32 20, i32 30, i32 43, i32 5, i32 400, i32 1999, i32 9, i32 360, i32 3, i32 8], align 16
@.str = private unnamed_addr constant [94 x i8] c"O endreco do ponteiro que aponta para o numero mais proximo da media e o %p e tem o valor %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [10 x i32], align 16
%2 = alloca ptr, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.main.tabela, i64 40, i1 false)
%3 = getelementptr inbounds [10 x i32], ptr %1, i64 0, i64 0
%4 = call ptr @proximo_da_media(ptr noundef %3, i32 noundef 10)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = load i32, ptr %6, align 4
%8 = call i32 @printf(ptr noundef @.str, ptr noundef %5, i32 noundef %7)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare ptr @proximo_da_media(ptr noundef, i32 noundef) #2
declare i32 @printf(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"}
|
; ModuleID = '/tmp/tmpxj1mp43o.c'
source_filename = "/tmp/tmpxj1mp43o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @send(i32 noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
store i32 %0, ptr %7, align 4
store ptr %1, ptr %8, align 8
store i64 %2, ptr %9, align 8
store i32 %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
%13 = load i64, ptr %9, align 8
%14 = icmp eq i64 %13, 4
br i1 %14, label %15, label %27
15: ; preds = %6
%16 = load ptr, ptr %8, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %27
18: ; preds = %15
%19 = load ptr, ptr %8, align 8
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp sgt i32 %21, 29
br i1 %22, label %23, label %27
23: ; preds = %18
%24 = load ptr, ptr %8, align 8
%25 = load i8, ptr %24, align 1
%26 = call i32 @handle(i8 noundef signext %25)
br label %27
27: ; preds = %23, %18, %15, %6
%28 = load i32, ptr %7, align 4
%29 = load ptr, ptr %8, align 8
%30 = load i64, ptr %9, align 8
%31 = load i32, ptr %10, align 4
%32 = load ptr, ptr %11, align 8
%33 = load i32, ptr %12, align 4
%34 = call i32 @send_real(i32 noundef %28, ptr noundef %29, i64 noundef %30, i32 noundef %31, ptr noundef %32, i32 noundef %33)
ret i32 %34
}
declare i32 @handle(i8 noundef signext) #1
declare i32 @send_real(i32 noundef, ptr noundef, i64 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/tmpxj1mp43o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @send(i32 noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
store i32 %0, ptr %7, align 4
store ptr %1, ptr %8, align 8
store i64 %2, ptr %9, align 8
store i32 %3, ptr %10, align 4
store ptr %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
%13 = load i64, ptr %9, align 8
%14 = icmp eq i64 %13, 4
br i1 %14, label %15, label %27
15: ; preds = %6
%16 = load ptr, ptr %8, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %27
18: ; preds = %15
%19 = load ptr, ptr %8, align 8
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp sgt i32 %21, 29
br i1 %22, label %23, label %27
23: ; preds = %18
%24 = load ptr, ptr %8, align 8
%25 = load i8, ptr %24, align 1
%26 = call i32 @handle(i8 noundef signext %25)
br label %27
27: ; preds = %23, %18, %15, %6
%28 = load i32, ptr %7, align 4
%29 = load ptr, ptr %8, align 8
%30 = load i64, ptr %9, align 8
%31 = load i32, ptr %10, align 4
%32 = load ptr, ptr %11, align 8
%33 = load i32, ptr %12, align 4
%34 = call i32 @send_real(i32 noundef %28, ptr noundef %29, i64 noundef %30, i32 noundef %31, ptr noundef %32, i32 noundef %33)
ret i32 %34
}
declare i32 @handle(i8 noundef signext) #1
declare i32 @send_real(i32 noundef, ptr noundef, i64 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/tmpowmm7260.c'
source_filename = "/tmp/tmpowmm7260.c"
target datalayout = "e-m:e-p270: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/tmpowmm7260.c"
target datalayout = "e-m:e-p270: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/tmpurlg3fz0.c'
source_filename = "/tmp/tmpurlg3fz0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EVIOCGVERSION = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [38 x i8] c"event: error in ioctl(EVIOCGVERSION)\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"event: driver:%d.%d.%d\0A\00", align 1
@EVIOCGID = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [33 x i8] c"event: error in ioctl(EVIOCGID)\0A\00", align 1
@ID_BUS = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [8 x i8] c"unknown\00", align 1
@.str.4 = private unnamed_addr constant [79 x i8] c"event: device vendor:0x%04hx product:0x%04hx version:0x%04hx bus:0x%04hx (%s)\0A\00", align 1
@ID_VENDOR = dso_local global i64 0, align 8
@ID_PRODUCT = dso_local global i64 0, align 8
@ID_VERSION = dso_local global i64 0, align 8
@.str.5 = private unnamed_addr constant [35 x i8] c"event: error in ioctl(EVIOCGNAME)\0A\00", align 1
@.str.6 = private unnamed_addr constant [18 x i8] c"event: name:\22%s\22\0A\00", align 1
@.str.7 = private unnamed_addr constant [35 x i8] c"event: error in ioctl(EVIOCGPHYS)\0A\00", align 1
@.str.8 = private unnamed_addr constant [31 x i8] c"event: physical_location:\22%s\22\0A\00", align 1
@EV_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @event_log(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca [4 x i16], align 2
%7 = alloca ptr, align 8
%8 = alloca [256 x i8], align 16
%9 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
%10 = load i32, ptr %3, align 4
%11 = load i32, ptr @EVIOCGVERSION, align 4
%12 = call i64 (i32, i32, ...) @ioctl(i32 noundef %10, i32 noundef %11, ptr noundef %5)
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = call i32 (ptr, ...) @log_f(ptr noundef @.str)
br label %25
16: ; preds = %2
%17 = load i32, ptr %5, align 4
%18 = ashr i32 %17, 16
%19 = load i32, ptr %5, align 4
%20 = ashr i32 %19, 8
%21 = and i32 %20, 255
%22 = load i32, ptr %5, align 4
%23 = and i32 %22, 255
%24 = call i32 (ptr, ...) @log_f(ptr noundef @.str.1, i32 noundef %18, i32 noundef %21, i32 noundef %23)
br label %25
25: ; preds = %16, %14
%26 = load i32, ptr %3, align 4
%27 = load i32, ptr @EVIOCGID, align 4
%28 = call i64 (i32, i32, ...) @ioctl(i32 noundef %26, i32 noundef %27, ptr noundef %6)
%29 = icmp ne i64 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %25
%31 = call i32 (ptr, ...) @log_f(ptr noundef @.str.2)
br label %57
32: ; preds = %25
%33 = load i64, ptr @ID_BUS, align 8
%34 = getelementptr inbounds [4 x i16], ptr %6, i64 0, i64 %33
%35 = load i16, ptr %34, align 2
%36 = zext i16 %35 to i32
switch i32 %36, label %37 [
]
37: ; preds = %32
store ptr @.str.3, ptr %7, align 8
br label %38
38: ; preds = %37
%39 = load i64, ptr @ID_VENDOR, align 8
%40 = getelementptr inbounds [4 x i16], ptr %6, i64 0, i64 %39
%41 = load i16, ptr %40, align 2
%42 = zext i16 %41 to i32
%43 = load i64, ptr @ID_PRODUCT, align 8
%44 = getelementptr inbounds [4 x i16], ptr %6, i64 0, i64 %43
%45 = load i16, ptr %44, align 2
%46 = zext i16 %45 to i32
%47 = load i64, ptr @ID_VERSION, align 8
%48 = getelementptr inbounds [4 x i16], ptr %6, i64 0, i64 %47
%49 = load i16, ptr %48, align 2
%50 = zext i16 %49 to i32
%51 = load i64, ptr @ID_BUS, align 8
%52 = getelementptr inbounds [4 x i16], ptr %6, i64 0, i64 %51
%53 = load i16, ptr %52, align 2
%54 = zext i16 %53 to i32
%55 = load ptr, ptr %7, align 8
%56 = call i32 (ptr, ...) @log_f(ptr noundef @.str.4, i32 noundef %42, i32 noundef %46, i32 noundef %50, i32 noundef %54, ptr noundef %55)
br label %57
57: ; preds = %38, %30
%58 = load i32, ptr %3, align 4
%59 = call i32 @EVIOCGNAME(i32 noundef 256)
%60 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%61 = call i64 (i32, i32, ...) @ioctl(i32 noundef %58, i32 noundef %59, ptr noundef %60)
%62 = icmp slt i64 %61, 0
br i1 %62, label %63, label %65
63: ; preds = %57
%64 = call i32 (ptr, ...) @log_f(ptr noundef @.str.5)
br label %68
65: ; preds = %57
%66 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%67 = call i32 (ptr, ...) @log_f(ptr noundef @.str.6, ptr noundef %66)
br label %68
68: ; preds = %65, %63
%69 = load i32, ptr %3, align 4
%70 = call i32 @EVIOCGPHYS(i32 noundef 256)
%71 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%72 = call i64 (i32, i32, ...) @ioctl(i32 noundef %69, i32 noundef %70, ptr noundef %71)
%73 = icmp slt i64 %72, 0
br i1 %73, label %74, label %76
74: ; preds = %68
%75 = call i32 (ptr, ...) @log_f(ptr noundef @.str.7)
br label %79
76: ; preds = %68
%77 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%78 = call i32 (ptr, ...) @log_f(ptr noundef @.str.8, ptr noundef %77)
br label %79
79: ; preds = %76, %74
store i32 0, ptr %9, align 4
br label %80
80: ; preds = %115, %79
%81 = load i32, ptr %9, align 4
%82 = load i32, ptr @EV_MAX, align 4
%83 = icmp ult i32 %81, %82
br i1 %83, label %84, label %118
84: ; preds = %80
%85 = load i32, ptr %9, align 4
%86 = load ptr, ptr %4, align 8
%87 = call i64 @event_test_bit(i32 noundef %85, ptr noundef %86)
%88 = icmp ne i64 %87, 0
br i1 %88, label %89, label %114
89: ; preds = %84
%90 = load i32, ptr %9, align 4
switch i32 %90, label %109 [
i32 132, label %91
i32 130, label %94
i32 133, label %97
i32 131, label %100
i32 128, label %103
i32 129, label %106
]
91: ; preds = %89
%92 = load i32, ptr %3, align 4
%93 = call i32 @event_key_log(i32 noundef %92)
br label %113
94: ; preds = %89
%95 = load i32, ptr %3, align 4
%96 = call i32 @event_rel_log(i32 noundef %95)
br label %113
97: ; preds = %89
%98 = load i32, ptr %3, align 4
%99 = call i32 @event_abs_log(i32 noundef %98)
br label %113
100: ; preds = %89
%101 = load i32, ptr %3, align 4
%102 = call i32 @event_led_log(i32 noundef %101)
br label %113
103: ; preds = %89
%104 = load i32, ptr %3, align 4
%105 = call i32 @event_snd_log(i32 noundef %104)
br label %113
106: ; preds = %89
%107 = load i32, ptr %3, align 4
%108 = call i32 @event_rep_log(i32 noundef %107)
br label %113
109: ; preds = %89
%110 = load i32, ptr %3, align 4
%111 = load i32, ptr %9, align 4
%112 = call i32 @event_unknown_log(i32 noundef %110, i32 noundef %111)
br label %113
113: ; preds = %109, %106, %103, %100, %97, %94, %91
br label %114
114: ; preds = %113, %84
br label %115
115: ; preds = %114
%116 = load i32, ptr %9, align 4
%117 = add i32 %116, 1
store i32 %117, ptr %9, align 4
br label %80, !llvm.loop !6
118: ; preds = %80
ret void
}
declare i64 @ioctl(i32 noundef, i32 noundef, ...) #1
declare i32 @log_f(ptr noundef, ...) #1
declare i32 @EVIOCGNAME(i32 noundef) #1
declare i32 @EVIOCGPHYS(i32 noundef) #1
declare i64 @event_test_bit(i32 noundef, ptr noundef) #1
declare i32 @event_key_log(i32 noundef) #1
declare i32 @event_rel_log(i32 noundef) #1
declare i32 @event_abs_log(i32 noundef) #1
declare i32 @event_led_log(i32 noundef) #1
declare i32 @event_snd_log(i32 noundef) #1
declare i32 @event_rep_log(i32 noundef) #1
declare i32 @event_unknown_log(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/tmpurlg3fz0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EVIOCGVERSION = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [38 x i8] c"event: error in ioctl(EVIOCGVERSION)\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"event: driver:%d.%d.%d\0A\00", align 1
@EVIOCGID = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [33 x i8] c"event: error in ioctl(EVIOCGID)\0A\00", align 1
@ID_BUS = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [8 x i8] c"unknown\00", align 1
@.str.4 = private unnamed_addr constant [79 x i8] c"event: device vendor:0x%04hx product:0x%04hx version:0x%04hx bus:0x%04hx (%s)\0A\00", align 1
@ID_VENDOR = dso_local global i64 0, align 8
@ID_PRODUCT = dso_local global i64 0, align 8
@ID_VERSION = dso_local global i64 0, align 8
@.str.5 = private unnamed_addr constant [35 x i8] c"event: error in ioctl(EVIOCGNAME)\0A\00", align 1
@.str.6 = private unnamed_addr constant [18 x i8] c"event: name:\22%s\22\0A\00", align 1
@.str.7 = private unnamed_addr constant [35 x i8] c"event: error in ioctl(EVIOCGPHYS)\0A\00", align 1
@.str.8 = private unnamed_addr constant [31 x i8] c"event: physical_location:\22%s\22\0A\00", align 1
@EV_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @event_log(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca [4 x i16], align 2
%7 = alloca ptr, align 8
%8 = alloca [256 x i8], align 16
%9 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
%10 = load i32, ptr %3, align 4
%11 = load i32, ptr @EVIOCGVERSION, align 4
%12 = call i64 (i32, i32, ...) @ioctl(i32 noundef %10, i32 noundef %11, ptr noundef %5)
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = call i32 (ptr, ...) @log_f(ptr noundef @.str)
br label %25
16: ; preds = %2
%17 = load i32, ptr %5, align 4
%18 = ashr i32 %17, 16
%19 = load i32, ptr %5, align 4
%20 = ashr i32 %19, 8
%21 = and i32 %20, 255
%22 = load i32, ptr %5, align 4
%23 = and i32 %22, 255
%24 = call i32 (ptr, ...) @log_f(ptr noundef @.str.1, i32 noundef %18, i32 noundef %21, i32 noundef %23)
br label %25
25: ; preds = %16, %14
%26 = load i32, ptr %3, align 4
%27 = load i32, ptr @EVIOCGID, align 4
%28 = call i64 (i32, i32, ...) @ioctl(i32 noundef %26, i32 noundef %27, ptr noundef %6)
%29 = icmp ne i64 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %25
%31 = call i32 (ptr, ...) @log_f(ptr noundef @.str.2)
br label %57
32: ; preds = %25
%33 = load i64, ptr @ID_BUS, align 8
%34 = getelementptr inbounds [4 x i16], ptr %6, i64 0, i64 %33
%35 = load i16, ptr %34, align 2
%36 = zext i16 %35 to i32
switch i32 %36, label %37 [
]
37: ; preds = %32
store ptr @.str.3, ptr %7, align 8
br label %38
38: ; preds = %37
%39 = load i64, ptr @ID_VENDOR, align 8
%40 = getelementptr inbounds [4 x i16], ptr %6, i64 0, i64 %39
%41 = load i16, ptr %40, align 2
%42 = zext i16 %41 to i32
%43 = load i64, ptr @ID_PRODUCT, align 8
%44 = getelementptr inbounds [4 x i16], ptr %6, i64 0, i64 %43
%45 = load i16, ptr %44, align 2
%46 = zext i16 %45 to i32
%47 = load i64, ptr @ID_VERSION, align 8
%48 = getelementptr inbounds [4 x i16], ptr %6, i64 0, i64 %47
%49 = load i16, ptr %48, align 2
%50 = zext i16 %49 to i32
%51 = load i64, ptr @ID_BUS, align 8
%52 = getelementptr inbounds [4 x i16], ptr %6, i64 0, i64 %51
%53 = load i16, ptr %52, align 2
%54 = zext i16 %53 to i32
%55 = load ptr, ptr %7, align 8
%56 = call i32 (ptr, ...) @log_f(ptr noundef @.str.4, i32 noundef %42, i32 noundef %46, i32 noundef %50, i32 noundef %54, ptr noundef %55)
br label %57
57: ; preds = %38, %30
%58 = load i32, ptr %3, align 4
%59 = call i32 @EVIOCGNAME(i32 noundef 256)
%60 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%61 = call i64 (i32, i32, ...) @ioctl(i32 noundef %58, i32 noundef %59, ptr noundef %60)
%62 = icmp slt i64 %61, 0
br i1 %62, label %63, label %65
63: ; preds = %57
%64 = call i32 (ptr, ...) @log_f(ptr noundef @.str.5)
br label %68
65: ; preds = %57
%66 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%67 = call i32 (ptr, ...) @log_f(ptr noundef @.str.6, ptr noundef %66)
br label %68
68: ; preds = %65, %63
%69 = load i32, ptr %3, align 4
%70 = call i32 @EVIOCGPHYS(i32 noundef 256)
%71 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%72 = call i64 (i32, i32, ...) @ioctl(i32 noundef %69, i32 noundef %70, ptr noundef %71)
%73 = icmp slt i64 %72, 0
br i1 %73, label %74, label %76
74: ; preds = %68
%75 = call i32 (ptr, ...) @log_f(ptr noundef @.str.7)
br label %79
76: ; preds = %68
%77 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%78 = call i32 (ptr, ...) @log_f(ptr noundef @.str.8, ptr noundef %77)
br label %79
79: ; preds = %76, %74
store i32 0, ptr %9, align 4
%80 = load i32, ptr %9, align 4
%81 = load i32, ptr @EV_MAX, align 4
%82 = icmp ult i32 %80, %81
br i1 %82, label %.lr.ph, label %120
.lr.ph: ; preds = %79
br label %83
83: ; preds = %.lr.ph, %114
%84 = load i32, ptr %9, align 4
%85 = load ptr, ptr %4, align 8
%86 = call i64 @event_test_bit(i32 noundef %84, ptr noundef %85)
%87 = icmp ne i64 %86, 0
br i1 %87, label %88, label %113
88: ; preds = %83
%89 = load i32, ptr %9, align 4
switch i32 %89, label %108 [
i32 132, label %90
i32 130, label %93
i32 133, label %96
i32 131, label %99
i32 128, label %102
i32 129, label %105
]
90: ; preds = %88
%91 = load i32, ptr %3, align 4
%92 = call i32 @event_key_log(i32 noundef %91)
br label %112
93: ; preds = %88
%94 = load i32, ptr %3, align 4
%95 = call i32 @event_rel_log(i32 noundef %94)
br label %112
96: ; preds = %88
%97 = load i32, ptr %3, align 4
%98 = call i32 @event_abs_log(i32 noundef %97)
br label %112
99: ; preds = %88
%100 = load i32, ptr %3, align 4
%101 = call i32 @event_led_log(i32 noundef %100)
br label %112
102: ; preds = %88
%103 = load i32, ptr %3, align 4
%104 = call i32 @event_snd_log(i32 noundef %103)
br label %112
105: ; preds = %88
%106 = load i32, ptr %3, align 4
%107 = call i32 @event_rep_log(i32 noundef %106)
br label %112
108: ; preds = %88
%109 = load i32, ptr %3, align 4
%110 = load i32, ptr %9, align 4
%111 = call i32 @event_unknown_log(i32 noundef %109, i32 noundef %110)
br label %112
112: ; preds = %108, %105, %102, %99, %96, %93, %90
br label %113
113: ; preds = %112, %83
br label %114
114: ; preds = %113
%115 = load i32, ptr %9, align 4
%116 = add i32 %115, 1
store i32 %116, ptr %9, align 4
%117 = load i32, ptr %9, align 4
%118 = load i32, ptr @EV_MAX, align 4
%119 = icmp ult i32 %117, %118
br i1 %119, label %83, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %114
br label %120
120: ; preds = %._crit_edge, %79
ret void
}
declare i64 @ioctl(i32 noundef, i32 noundef, ...) #1
declare i32 @log_f(ptr noundef, ...) #1
declare i32 @EVIOCGNAME(i32 noundef) #1
declare i32 @EVIOCGPHYS(i32 noundef) #1
declare i64 @event_test_bit(i32 noundef, ptr noundef) #1
declare i32 @event_key_log(i32 noundef) #1
declare i32 @event_rel_log(i32 noundef) #1
declare i32 @event_abs_log(i32 noundef) #1
declare i32 @event_led_log(i32 noundef) #1
declare i32 @event_snd_log(i32 noundef) #1
declare i32 @event_rep_log(i32 noundef) #1
declare i32 @event_unknown_log(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/tmptqve9dyc.c'
source_filename = "/tmp/tmptqve9dyc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @display_dmatrix(ptr noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, ptr noundef %5, ptr noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca i64, align 8
%16 = alloca i64, align 8
store ptr %0, ptr %8, align 8
store i64 %1, ptr %9, align 8
store i64 %2, ptr %10, align 8
store i64 %3, ptr %11, align 8
store i64 %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
store ptr %6, ptr %14, align 8
%17 = load ptr, ptr %14, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %22
19: ; preds = %7
%20 = load ptr, ptr %14, align 8
%21 = call i32 @puts(ptr noundef %20)
br label %22
22: ; preds = %19, %7
%23 = load i64, ptr %9, align 8
store i64 %23, ptr %15, align 8
br label %24
24: ; preds = %49, %22
%25 = load i64, ptr %15, align 8
%26 = load i64, ptr %10, align 8
%27 = icmp sle i64 %25, %26
br i1 %27, label %28, label %52
28: ; preds = %24
%29 = load i64, ptr %11, align 8
store i64 %29, ptr %16, align 8
br label %30
30: ; preds = %44, %28
%31 = load i64, ptr %16, align 8
%32 = load i64, ptr %12, align 8
%33 = icmp sle i64 %31, %32
br i1 %33, label %34, label %47
34: ; preds = %30
%35 = load ptr, ptr %13, align 8
%36 = load ptr, ptr %8, align 8
%37 = load i64, ptr %15, align 8
%38 = getelementptr inbounds ptr, ptr %36, i64 %37
%39 = load ptr, ptr %38, align 8
%40 = load i64, ptr %16, align 8
%41 = getelementptr inbounds double, ptr %39, i64 %40
%42 = load double, ptr %41, align 8
%43 = call i32 @printf(ptr noundef %35, double noundef %42)
br label %44
44: ; preds = %34
%45 = load i64, ptr %16, align 8
%46 = add nsw i64 %45, 1
store i64 %46, ptr %16, align 8
br label %30, !llvm.loop !6
47: ; preds = %30
%48 = call i32 @putchar(i8 noundef signext 10)
br label %49
49: ; preds = %47
%50 = load i64, ptr %15, align 8
%51 = add nsw i64 %50, 1
store i64 %51, ptr %15, align 8
br label %24, !llvm.loop !8
52: ; preds = %24
ret void
}
declare i32 @puts(ptr noundef) #1
declare i32 @printf(ptr noundef, double noundef) #1
declare i32 @putchar(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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptqve9dyc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @display_dmatrix(ptr noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, ptr noundef %5, ptr noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca i64, align 8
%16 = alloca i64, align 8
store ptr %0, ptr %8, align 8
store i64 %1, ptr %9, align 8
store i64 %2, ptr %10, align 8
store i64 %3, ptr %11, align 8
store i64 %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
store ptr %6, ptr %14, align 8
%17 = load ptr, ptr %14, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %22
19: ; preds = %7
%20 = load ptr, ptr %14, align 8
%21 = call i32 @puts(ptr noundef %20)
br label %22
22: ; preds = %19, %7
%23 = load i64, ptr %9, align 8
store i64 %23, ptr %15, align 8
%24 = load i64, ptr %15, align 8
%25 = load i64, ptr %10, align 8
%26 = icmp sle i64 %24, %25
br i1 %26, label %.lr.ph2, label %56
.lr.ph2: ; preds = %22
br label %27
27: ; preds = %.lr.ph2, %50
%28 = load i64, ptr %11, align 8
store i64 %28, ptr %16, align 8
%29 = load i64, ptr %16, align 8
%30 = load i64, ptr %12, align 8
%31 = icmp sle i64 %29, %30
br i1 %31, label %.lr.ph, label %48
.lr.ph: ; preds = %27
br label %32
32: ; preds = %.lr.ph, %42
%33 = load ptr, ptr %13, align 8
%34 = load ptr, ptr %8, align 8
%35 = load i64, ptr %15, align 8
%36 = getelementptr inbounds ptr, ptr %34, i64 %35
%37 = load ptr, ptr %36, align 8
%38 = load i64, ptr %16, align 8
%39 = getelementptr inbounds double, ptr %37, i64 %38
%40 = load double, ptr %39, align 8
%41 = call i32 @printf(ptr noundef %33, double noundef %40)
br label %42
42: ; preds = %32
%43 = load i64, ptr %16, align 8
%44 = add nsw i64 %43, 1
store i64 %44, ptr %16, align 8
%45 = load i64, ptr %16, align 8
%46 = load i64, ptr %12, align 8
%47 = icmp sle i64 %45, %46
br i1 %47, label %32, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %42
br label %48
48: ; preds = %._crit_edge, %27
%49 = call i32 @putchar(i8 noundef signext 10)
br label %50
50: ; preds = %48
%51 = load i64, ptr %15, align 8
%52 = add nsw i64 %51, 1
store i64 %52, ptr %15, align 8
%53 = load i64, ptr %15, align 8
%54 = load i64, ptr %10, align 8
%55 = icmp sle i64 %53, %54
br i1 %55, label %27, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %50
br label %56
56: ; preds = %._crit_edge3, %22
ret void
}
declare i32 @puts(ptr noundef) #1
declare i32 @printf(ptr noundef, double noundef) #1
declare i32 @putchar(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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpameoh0qw.c'
source_filename = "/tmp/tmpameoh0qw.c"
target datalayout = "e-m:e-p270: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.iio_event_data = type { i32 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"Usage: %s <device_name>\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"iio:device\00", align 1
@.str.2 = private unnamed_addr constant [53 x i8] c"Found IIO device with name %s with device number %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"/dev/iio:device%d\00", align 1
@ENOMEM = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [19 x i8] c"Failed to open %s\0A\00", align 1
@IIO_GET_EVENT_FD_IOCTL = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [29 x i8] c"Failed to retrieve event fd\0A\00", align 1
@.str.6 = private unnamed_addr constant [38 x i8] c"Failed to close character device file\00", align 1
@EAGAIN = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [19 x i8] c"nothing available\0A\00", align 1
@.str.8 = private unnamed_addr constant [33 x i8] c"Failed to read event from device\00", align 1
@.str.9 = private unnamed_addr constant [23 x i8] c"Reading event failed!\0A\00", align 1
@EIO = dso_local global i32 0, align 4
@.str.10 = private unnamed_addr constant [27 x i8] c"Failed to close event file\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca %struct.iio_event_data, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%13 = load i32, ptr %4, align 4
%14 = icmp sle i32 %13, 1
br i1 %14, label %15, label %21
15: ; preds = %2
%16 = load i32, ptr @stderr, align 4
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 0
%19 = load ptr, ptr %18, align 8
%20 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %16, ptr noundef @.str, ptr noundef %19)
store i32 -1, ptr %3, align 4
br label %127
21: ; preds = %2
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
store ptr %24, ptr %7, align 8
%25 = load ptr, ptr %7, align 8
%26 = call i32 @find_type_by_name(ptr noundef %25, ptr noundef @.str.1)
store i32 %26, ptr %10, align 4
%27 = load i32, ptr %10, align 4
%28 = icmp sge i32 %27, 0
br i1 %28, label %29, label %41
29: ; preds = %21
%30 = load ptr, ptr %7, align 8
%31 = load i32, ptr %10, align 4
%32 = call i32 @printf(ptr noundef @.str.2, ptr noundef %30, i32 noundef %31)
%33 = load i32, ptr %10, align 4
%34 = call i32 @asprintf(ptr noundef %8, ptr noundef @.str.3, i32 noundef %33)
store i32 %34, ptr %9, align 4
%35 = load i32, ptr %9, align 4
%36 = icmp slt i32 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %29
%38 = load i32, ptr @ENOMEM, align 4
%39 = sub nsw i32 0, %38
store i32 %39, ptr %3, align 4
br label %127
40: ; preds = %29
br label %50
41: ; preds = %21
%42 = load ptr, ptr %7, align 8
%43 = call ptr @strdup(ptr noundef %42)
store ptr %43, ptr %8, align 8
%44 = load ptr, ptr %8, align 8
%45 = icmp ne ptr %44, null
br i1 %45, label %49, label %46
46: ; preds = %41
%47 = load i32, ptr @ENOMEM, align 4
%48 = sub nsw i32 0, %47
store i32 %48, ptr %3, align 4
br label %127
49: ; preds = %41
br label %50
50: ; preds = %49, %40
%51 = load ptr, ptr %8, align 8
%52 = call i32 @open(ptr noundef %51, i32 noundef 0)
store i32 %52, ptr %11, align 4
%53 = load i32, ptr %11, align 4
%54 = icmp eq i32 %53, -1
br i1 %54, label %55, label %61
55: ; preds = %50
%56 = load i32, ptr @errno, align 4
%57 = sub nsw i32 0, %56
store i32 %57, ptr %9, align 4
%58 = load i32, ptr @stderr, align 4
%59 = load ptr, ptr %8, align 8
%60 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %58, ptr noundef @.str.4, ptr noundef %59)
br label %123
61: ; preds = %50
%62 = load i32, ptr %11, align 4
%63 = load i32, ptr @IIO_GET_EVENT_FD_IOCTL, align 4
%64 = call i32 @ioctl(i32 noundef %62, i32 noundef %63, ptr noundef %12)
store i32 %64, ptr %9, align 4
%65 = load i32, ptr %9, align 4
%66 = icmp eq i32 %65, -1
br i1 %66, label %70, label %67
67: ; preds = %61
%68 = load i32, ptr %12, align 4
%69 = icmp eq i32 %68, -1
br i1 %69, label %70, label %81
70: ; preds = %67, %61
%71 = load i32, ptr @errno, align 4
%72 = sub nsw i32 0, %71
store i32 %72, ptr %9, align 4
%73 = load i32, ptr @stderr, align 4
%74 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %73, ptr noundef @.str.5)
%75 = load i32, ptr %11, align 4
%76 = call i32 @close(i32 noundef %75)
%77 = icmp eq i32 %76, -1
br i1 %77, label %78, label %80
78: ; preds = %70
%79 = call i32 @perror(ptr noundef @.str.6)
br label %80
80: ; preds = %78, %70
br label %123
81: ; preds = %67
%82 = load i32, ptr %11, align 4
%83 = call i32 @close(i32 noundef %82)
%84 = icmp eq i32 %83, -1
br i1 %84, label %85, label %88
85: ; preds = %81
%86 = load i32, ptr @errno, align 4
%87 = sub nsw i32 0, %86
store i32 %87, ptr %9, align 4
br label %123
88: ; preds = %81
br label %89
89: ; preds = %88, %98, %114
%90 = load i32, ptr %12, align 4
%91 = call i32 @read(i32 noundef %90, ptr noundef %6, i32 noundef 4)
store i32 %91, ptr %9, align 4
%92 = load i32, ptr %9, align 4
%93 = icmp eq i32 %92, -1
br i1 %93, label %94, label %105
94: ; preds = %89
%95 = load i32, ptr @errno, align 4
%96 = load i32, ptr @EAGAIN, align 4
%97 = icmp eq i32 %95, %96
br i1 %97, label %98, label %101
98: ; preds = %94
%99 = load i32, ptr @stderr, align 4
%100 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %99, ptr noundef @.str.7)
br label %89
101: ; preds = %94
%102 = load i32, ptr @errno, align 4
%103 = sub nsw i32 0, %102
store i32 %103, ptr %9, align 4
%104 = call i32 @perror(ptr noundef @.str.8)
br label %116
105: ; preds = %89
%106 = load i32, ptr %9, align 4
%107 = sext i32 %106 to i64
%108 = icmp ne i64 %107, 4
br i1 %108, label %109, label %114
109: ; preds = %105
%110 = load i32, ptr @stderr, align 4
%111 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %110, ptr noundef @.str.9)
%112 = load i32, ptr @EIO, align 4
%113 = sub nsw i32 0, %112
store i32 %113, ptr %9, align 4
br label %116
114: ; preds = %105
%115 = call i32 @print_event(ptr noundef %6)
br label %89
116: ; preds = %109, %101
%117 = load i32, ptr %12, align 4
%118 = call i32 @close(i32 noundef %117)
%119 = icmp eq i32 %118, -1
br i1 %119, label %120, label %122
120: ; preds = %116
%121 = call i32 @perror(ptr noundef @.str.10)
br label %122
122: ; preds = %120, %116
br label %123
123: ; preds = %122, %85, %80, %55
%124 = load ptr, ptr %8, align 8
%125 = call i32 @free(ptr noundef %124)
%126 = load i32, ptr %9, align 4
store i32 %126, ptr %3, align 4
br label %127
127: ; preds = %123, %46, %37, %15
%128 = load i32, ptr %3, align 4
ret i32 %128
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @find_type_by_name(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @asprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @strdup(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @print_event(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/tmpameoh0qw.c"
target datalayout = "e-m:e-p270: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.iio_event_data = type { i32 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"Usage: %s <device_name>\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"iio:device\00", align 1
@.str.2 = private unnamed_addr constant [53 x i8] c"Found IIO device with name %s with device number %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"/dev/iio:device%d\00", align 1
@ENOMEM = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [19 x i8] c"Failed to open %s\0A\00", align 1
@IIO_GET_EVENT_FD_IOCTL = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [29 x i8] c"Failed to retrieve event fd\0A\00", align 1
@.str.6 = private unnamed_addr constant [38 x i8] c"Failed to close character device file\00", align 1
@EAGAIN = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [19 x i8] c"nothing available\0A\00", align 1
@.str.8 = private unnamed_addr constant [33 x i8] c"Failed to read event from device\00", align 1
@.str.9 = private unnamed_addr constant [23 x i8] c"Reading event failed!\0A\00", align 1
@EIO = dso_local global i32 0, align 4
@.str.10 = private unnamed_addr constant [27 x i8] c"Failed to close event file\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca %struct.iio_event_data, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%13 = load i32, ptr %4, align 4
%14 = icmp sle i32 %13, 1
br i1 %14, label %15, label %21
15: ; preds = %2
%16 = load i32, ptr @stderr, align 4
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 0
%19 = load ptr, ptr %18, align 8
%20 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %16, ptr noundef @.str, ptr noundef %19)
store i32 -1, ptr %3, align 4
br label %127
21: ; preds = %2
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
store ptr %24, ptr %7, align 8
%25 = load ptr, ptr %7, align 8
%26 = call i32 @find_type_by_name(ptr noundef %25, ptr noundef @.str.1)
store i32 %26, ptr %10, align 4
%27 = load i32, ptr %10, align 4
%28 = icmp sge i32 %27, 0
br i1 %28, label %29, label %41
29: ; preds = %21
%30 = load ptr, ptr %7, align 8
%31 = load i32, ptr %10, align 4
%32 = call i32 @printf(ptr noundef @.str.2, ptr noundef %30, i32 noundef %31)
%33 = load i32, ptr %10, align 4
%34 = call i32 @asprintf(ptr noundef %8, ptr noundef @.str.3, i32 noundef %33)
store i32 %34, ptr %9, align 4
%35 = load i32, ptr %9, align 4
%36 = icmp slt i32 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %29
%38 = load i32, ptr @ENOMEM, align 4
%39 = sub nsw i32 0, %38
store i32 %39, ptr %3, align 4
br label %127
40: ; preds = %29
br label %50
41: ; preds = %21
%42 = load ptr, ptr %7, align 8
%43 = call ptr @strdup(ptr noundef %42)
store ptr %43, ptr %8, align 8
%44 = load ptr, ptr %8, align 8
%45 = icmp ne ptr %44, null
br i1 %45, label %49, label %46
46: ; preds = %41
%47 = load i32, ptr @ENOMEM, align 4
%48 = sub nsw i32 0, %47
store i32 %48, ptr %3, align 4
br label %127
49: ; preds = %41
br label %50
50: ; preds = %49, %40
%51 = load ptr, ptr %8, align 8
%52 = call i32 @open(ptr noundef %51, i32 noundef 0)
store i32 %52, ptr %11, align 4
%53 = load i32, ptr %11, align 4
%54 = icmp eq i32 %53, -1
br i1 %54, label %55, label %61
55: ; preds = %50
%56 = load i32, ptr @errno, align 4
%57 = sub nsw i32 0, %56
store i32 %57, ptr %9, align 4
%58 = load i32, ptr @stderr, align 4
%59 = load ptr, ptr %8, align 8
%60 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %58, ptr noundef @.str.4, ptr noundef %59)
br label %123
61: ; preds = %50
%62 = load i32, ptr %11, align 4
%63 = load i32, ptr @IIO_GET_EVENT_FD_IOCTL, align 4
%64 = call i32 @ioctl(i32 noundef %62, i32 noundef %63, ptr noundef %12)
store i32 %64, ptr %9, align 4
%65 = load i32, ptr %9, align 4
%66 = icmp eq i32 %65, -1
br i1 %66, label %70, label %67
67: ; preds = %61
%68 = load i32, ptr %12, align 4
%69 = icmp eq i32 %68, -1
br i1 %69, label %70, label %81
70: ; preds = %67, %61
%71 = load i32, ptr @errno, align 4
%72 = sub nsw i32 0, %71
store i32 %72, ptr %9, align 4
%73 = load i32, ptr @stderr, align 4
%74 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %73, ptr noundef @.str.5)
%75 = load i32, ptr %11, align 4
%76 = call i32 @close(i32 noundef %75)
%77 = icmp eq i32 %76, -1
br i1 %77, label %78, label %80
78: ; preds = %70
%79 = call i32 @perror(ptr noundef @.str.6)
br label %80
80: ; preds = %78, %70
br label %123
81: ; preds = %67
%82 = load i32, ptr %11, align 4
%83 = call i32 @close(i32 noundef %82)
%84 = icmp eq i32 %83, -1
br i1 %84, label %85, label %88
85: ; preds = %81
%86 = load i32, ptr @errno, align 4
%87 = sub nsw i32 0, %86
store i32 %87, ptr %9, align 4
br label %123
88: ; preds = %81
br label %89
89: ; preds = %.backedge, %88
%90 = load i32, ptr %12, align 4
%91 = call i32 @read(i32 noundef %90, ptr noundef %6, i32 noundef 4)
store i32 %91, ptr %9, align 4
%92 = load i32, ptr %9, align 4
%93 = icmp eq i32 %92, -1
br i1 %93, label %94, label %105
94: ; preds = %89
%95 = load i32, ptr @errno, align 4
%96 = load i32, ptr @EAGAIN, align 4
%97 = icmp eq i32 %95, %96
br i1 %97, label %98, label %101
98: ; preds = %94
%99 = load i32, ptr @stderr, align 4
%100 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %99, ptr noundef @.str.7)
br label %.backedge
.backedge: ; preds = %98, %114
br label %89
101: ; preds = %94
%102 = load i32, ptr @errno, align 4
%103 = sub nsw i32 0, %102
store i32 %103, ptr %9, align 4
%104 = call i32 @perror(ptr noundef @.str.8)
br label %116
105: ; preds = %89
%106 = load i32, ptr %9, align 4
%107 = sext i32 %106 to i64
%108 = icmp ne i64 %107, 4
br i1 %108, label %109, label %114
109: ; preds = %105
%110 = load i32, ptr @stderr, align 4
%111 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %110, ptr noundef @.str.9)
%112 = load i32, ptr @EIO, align 4
%113 = sub nsw i32 0, %112
store i32 %113, ptr %9, align 4
br label %116
114: ; preds = %105
%115 = call i32 @print_event(ptr noundef %6)
br label %.backedge
116: ; preds = %109, %101
%117 = load i32, ptr %12, align 4
%118 = call i32 @close(i32 noundef %117)
%119 = icmp eq i32 %118, -1
br i1 %119, label %120, label %122
120: ; preds = %116
%121 = call i32 @perror(ptr noundef @.str.10)
br label %122
122: ; preds = %120, %116
br label %123
123: ; preds = %122, %85, %80, %55
%124 = load ptr, ptr %8, align 8
%125 = call i32 @free(ptr noundef %124)
%126 = load i32, ptr %9, align 4
store i32 %126, ptr %3, align 4
br label %127
127: ; preds = %123, %46, %37, %15
%128 = load i32, ptr %3, align 4
ret i32 %128
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @find_type_by_name(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @asprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @strdup(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @print_event(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/tmp0gynbgeo.c'
source_filename = "/tmp/tmp0gynbgeo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isxdigit.c\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"isxdigit should be 0 for 0xc0\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isxdigit_0xc0() #0 {
%1 = call i64 @isxdigit(i32 noundef 192)
%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 965, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isxdigit(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0gynbgeo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isxdigit.c\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"isxdigit should be 0 for 0xc0\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isxdigit_0xc0() #0 {
%1 = call i64 @isxdigit(i32 noundef 192)
%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 965, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isxdigit(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7inwlb2s.c'
source_filename = "/tmp/tmp7inwlb2s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @find_exponent(float noundef %0) #0 {
%2 = alloca float, align 4
%3 = alloca i32, align 4
%4 = alloca float, align 4
%5 = alloca ptr, align 8
%6 = alloca i16, align 2
store float %0, ptr %2, align 4
store i32 0, ptr %3, align 4
%7 = load float, ptr %2, align 4
store float %7, ptr %4, align 4
%8 = call i64 @malloc(i32 noundef 16)
%9 = inttoptr i64 %8 to ptr
store ptr %9, ptr %5, align 8
%10 = load float, ptr %2, align 4
%11 = fpext float %10 to double
%12 = fcmp olt double %11, 1.000000e+00
br i1 %12, label %13, label %14
13: ; preds = %1
br label %27
14: ; preds = %1
br label %15
15: ; preds = %19, %14
%16 = load float, ptr %4, align 4
%17 = fpext float %16 to double
%18 = fcmp ogt double %17, 1.000000e+00
br i1 %18, label %19, label %26
19: ; preds = %15
%20 = load float, ptr %4, align 4
%21 = fpext float %20 to double
%22 = fdiv double %21, 2.000000e+00
%23 = fptrunc double %22 to float
store float %23, ptr %4, align 4
%24 = load i32, ptr %3, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %3, align 4
br label %15, !llvm.loop !6
26: ; preds = %15
br label %27
27: ; preds = %26, %13
%28 = load i32, ptr %3, align 4
%29 = add nsw i32 127, %28
%30 = trunc i32 %29 to i16
store i16 %30, ptr %6, align 2
%31 = load ptr, ptr %5, align 8
ret ptr %31
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7inwlb2s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @find_exponent(float noundef %0) #0 {
%2 = alloca float, align 4
%3 = alloca i32, align 4
%4 = alloca float, align 4
%5 = alloca ptr, align 8
%6 = alloca i16, align 2
store float %0, ptr %2, align 4
store i32 0, ptr %3, align 4
%7 = load float, ptr %2, align 4
store float %7, ptr %4, align 4
%8 = call i64 @malloc(i32 noundef 16)
%9 = inttoptr i64 %8 to ptr
store ptr %9, ptr %5, align 8
%10 = load float, ptr %2, align 4
%11 = fpext float %10 to double
%12 = fcmp olt double %11, 1.000000e+00
br i1 %12, label %13, label %14
13: ; preds = %1
br label %29
14: ; preds = %1
%15 = load float, ptr %4, align 4
%16 = fpext float %15 to double
%17 = fcmp ogt double %16, 1.000000e+00
br i1 %17, label %.lr.ph, label %28
.lr.ph: ; preds = %14
br label %18
18: ; preds = %.lr.ph, %18
%19 = load float, ptr %4, align 4
%20 = fpext float %19 to double
%21 = fdiv double %20, 2.000000e+00
%22 = fptrunc double %21 to float
store float %22, ptr %4, align 4
%23 = load i32, ptr %3, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %3, align 4
%25 = load float, ptr %4, align 4
%26 = fpext float %25 to double
%27 = fcmp ogt double %26, 1.000000e+00
br i1 %27, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %28
28: ; preds = %._crit_edge, %14
br label %29
29: ; preds = %28, %13
%30 = load i32, ptr %3, align 4
%31 = add nsw i32 127, %30
%32 = trunc i32 %31 to i16
store i16 %32, ptr %6, align 2
%33 = load ptr, ptr %5, align 8
ret ptr %33
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpvkjfxquq.c'
source_filename = "/tmp/tmpvkjfxquq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @do_open(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 i32, ptr @O_RDONLY, align 4
%5 = call i32 @open(ptr noundef %3, i32 noundef %4)
ret i32 %5
}
declare i32 @open(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvkjfxquq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDONLY = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @do_open(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 i32, ptr @O_RDONLY, align 4
%5 = call i32 @open(ptr noundef %3, i32 noundef %4)
ret i32 %5
}
declare i32 @open(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpl0yco_1t.c'
source_filename = "/tmp/tmpl0yco_1t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@IPPROTO_TCP = dso_local global i32 0, align 4
@TCP_NODELAY = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl0yco_1t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@IPPROTO_TCP = dso_local global i32 0, align 4
@TCP_NODELAY = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvxhwl081.c'
source_filename = "/tmp/tmpvxhwl081.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @zresmdown() #0 {
%1 = call i32 (...) @saveconfig()
ret void
}
declare i32 @saveconfig(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvxhwl081.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @zresmdown() #0 {
%1 = call i32 (...) @saveconfig()
ret void
}
declare i32 @saveconfig(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0rltzaet.c'
source_filename = "/tmp/tmp0rltzaet.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [162 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/stdlib/isqrt.c\00", align 1
@.str.1 = private unnamed_addr constant [40 x i8] c"Integer square root of 116 should be 10\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_sqrt_116() #0 {
%1 = call i32 @isqrt(i32 noundef 116)
%2 = icmp eq i32 %1, 10
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 585, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @isqrt(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/tmp0rltzaet.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [162 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/stdlib/isqrt.c\00", align 1
@.str.1 = private unnamed_addr constant [40 x i8] c"Integer square root of 116 should be 10\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_sqrt_116() #0 {
%1 = call i32 @isqrt(i32 noundef 116)
%2 = icmp eq i32 %1, 10
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 585, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @isqrt(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/tmpqkz0e62i.c'
source_filename = "/tmp/tmpqkz0e62i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @close_log(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @close(i32 noundef %3)
ret i32 %4
}
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/tmpqkz0e62i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @close_log(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @close(i32 noundef %3)
ret i32 %4
}
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/tmphs3qu8rr.c'
source_filename = "/tmp/tmphs3qu8rr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @s1(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @rotr(i32 noundef %3, i32 noundef 17)
%5 = load i32, ptr %2, align 4
%6 = call i32 @rotr(i32 noundef %5, i32 noundef 19)
%7 = xor i32 %4, %6
%8 = load i32, ptr %2, align 4
%9 = ashr i32 %8, 10
%10 = xor i32 %7, %9
ret i32 %10
}
declare i32 @rotr(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/tmphs3qu8rr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @s1(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @rotr(i32 noundef %3, i32 noundef 17)
%5 = load i32, ptr %2, align 4
%6 = call i32 @rotr(i32 noundef %5, i32 noundef 19)
%7 = xor i32 %4, %6
%8 = load i32, ptr %2, align 4
%9 = ashr i32 %8, 10
%10 = xor i32 %7, %9
ret i32 %10
}
declare i32 @rotr(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/tmp1vdf3fcg.c'
source_filename = "/tmp/tmp1vdf3fcg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"volume is %f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main3() #0 {
%1 = alloca float, align 4
%2 = call float @volume(double noundef 2.250000e+01, i32 noundef 44)
store float %2, ptr %1, align 4
%3 = load float, ptr %1, align 4
%4 = call i32 @printf(ptr noundef @.str, float noundef %3)
ret i32 0
}
declare float @volume(double noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1vdf3fcg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"volume is %f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main3() #0 {
%1 = alloca float, align 4
%2 = call float @volume(double noundef 2.250000e+01, i32 noundef 44)
store float %2, ptr %1, align 4
%3 = load float, ptr %1, align 4
%4 = call i32 @printf(ptr noundef @.str, float noundef %3)
ret i32 0
}
declare float @volume(double noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.