llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmp70rrj0kd.c'
source_filename = "/tmp/tmp70rrj0kd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"Grade report for: Alwasam Shigdar\0A\00", align 1
@.str.1 = private unnamed_addr constant [46 x i8] c"assignment 01\09Test 01 Quiz 01 Worsksheet 01\0A \00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"%d/%d\09\09%d/%d\09%d/%d\09%d/%d\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"Total points:\09%d/30\0A\00", align 1
@.str.4 = private unnamed_addr constant [15 x i8] c"Average:\09%.2f\0A\00", align 1
@.str.5 = private unnamed_addr constant [18 x i8] c"Letter Grade:\09%c\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 (ptr, ...) @printf(ptr noundef @.str)
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 5, i32 noundef 5, i32 noundef 10, i32 noundef 10, i32 noundef 4, i32 noundef 5, i32 noundef 10, i32 noundef 10)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef 29)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef 9.667000e+01)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef 65)
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/tmp70rrj0kd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"Grade report for: Alwasam Shigdar\0A\00", align 1
@.str.1 = private unnamed_addr constant [46 x i8] c"assignment 01\09Test 01 Quiz 01 Worsksheet 01\0A \00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"%d/%d\09\09%d/%d\09%d/%d\09%d/%d\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"Total points:\09%d/30\0A\00", align 1
@.str.4 = private unnamed_addr constant [15 x i8] c"Average:\09%.2f\0A\00", align 1
@.str.5 = private unnamed_addr constant [18 x i8] c"Letter Grade:\09%c\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 (ptr, ...) @printf(ptr noundef @.str)
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 5, i32 noundef 5, i32 noundef 10, i32 noundef 10, i32 noundef 4, i32 noundef 5, i32 noundef 10, i32 noundef 10)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef 29)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef 9.667000e+01)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef 65)
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/tmp4txg2925.c'
source_filename = "/tmp/tmp4txg2925.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lseek(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = call i32 @_sys_lseek(i32 noundef %7, i32 noundef %8, i32 noundef %9)
ret i32 %10
}
declare i32 @_sys_lseek(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/tmp4txg2925.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lseek(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = call i32 @_sys_lseek(i32 noundef %7, i32 noundef %8, i32 noundef %9)
ret i32 %10
}
declare i32 @_sys_lseek(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/tmp63zifrwe.c'
source_filename = "/tmp/tmp63zifrwe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @parse_hex(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %5, align 8
store i32 0, ptr %7, align 4
br label %8
8: ; preds = %46, %2
%9 = load ptr, ptr %4, align 8
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %56
13: ; preds = %8
%14 = load ptr, ptr %4, align 8
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp sge i32 %16, 48
br i1 %17, label %18, label %28
18: ; preds = %13
%19 = load ptr, ptr %4, align 8
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp sle i32 %21, 57
br i1 %22, label %23, label %28
23: ; preds = %18
%24 = load ptr, ptr %4, align 8
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = sub nsw i32 %26, 48
store i32 %27, ptr %6, align 4
br label %46
28: ; preds = %18, %13
%29 = load ptr, ptr %4, align 8
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp sge i32 %31, 97
br i1 %32, label %33, label %44
33: ; preds = %28
%34 = load ptr, ptr %4, align 8
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = icmp sle i32 %36, 102
br i1 %37, label %38, label %44
38: ; preds = %33
%39 = load ptr, ptr %4, align 8
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = sub nsw i32 %41, 97
%43 = add nsw i32 %42, 10
store i32 %43, ptr %6, align 4
br label %45
44: ; preds = %33, %28
store i32 -1, ptr %3, align 4
br label %57
45: ; preds = %38
br label %46
46: ; preds = %45, %23
%47 = load ptr, ptr %5, align 8
%48 = load i32, ptr %47, align 4
%49 = mul nsw i32 %48, 16
store i32 %49, ptr %47, align 4
%50 = load i32, ptr %6, align 4
%51 = load ptr, ptr %5, align 8
%52 = load i32, ptr %51, align 4
%53 = add nsw i32 %52, %50
store i32 %53, ptr %51, align 4
%54 = load ptr, ptr %4, align 8
%55 = getelementptr inbounds i8, ptr %54, i32 1
store ptr %55, ptr %4, align 8
br label %8, !llvm.loop !6
56: ; preds = %8
store i32 0, ptr %3, align 4
br label %57
57: ; preds = %56, %44
%58 = load i32, ptr %3, align 4
ret i32 %58
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp63zifrwe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @parse_hex(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = load ptr, ptr %5, align 8
store i32 0, ptr %7, align 4
%8 = load ptr, ptr %4, 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 %.lr.ph, label %59
.lr.ph: ; preds = %2
br label %12
12: ; preds = %.lr.ph, %45
%13 = load ptr, ptr %4, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp sge i32 %15, 48
br i1 %16, label %17, label %27
17: ; preds = %12
%18 = load ptr, ptr %4, align 8
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp sle i32 %20, 57
br i1 %21, label %22, label %27
22: ; preds = %17
%23 = load ptr, ptr %4, align 8
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = sub nsw i32 %25, 48
store i32 %26, ptr %6, align 4
br label %45
27: ; preds = %17, %12
%28 = load ptr, ptr %4, align 8
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp sge i32 %30, 97
br i1 %31, label %32, label %43
32: ; preds = %27
%33 = load ptr, ptr %4, align 8
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = icmp sle i32 %35, 102
br i1 %36, label %37, label %43
37: ; preds = %32
%38 = load ptr, ptr %4, align 8
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = sub nsw i32 %40, 97
%42 = add nsw i32 %41, 10
store i32 %42, ptr %6, align 4
br label %44
43: ; preds = %32, %27
store i32 -1, ptr %3, align 4
br label %60
44: ; preds = %37
br label %45
45: ; preds = %44, %22
%46 = load ptr, ptr %5, align 8
%47 = load i32, ptr %46, align 4
%48 = mul nsw i32 %47, 16
store i32 %48, ptr %46, align 4
%49 = load i32, ptr %6, align 4
%50 = load ptr, ptr %5, align 8
%51 = load i32, ptr %50, align 4
%52 = add nsw i32 %51, %49
store i32 %52, ptr %50, align 4
%53 = load ptr, ptr %4, align 8
%54 = getelementptr inbounds i8, ptr %53, i32 1
store ptr %54, ptr %4, align 8
%55 = load ptr, ptr %4, align 8
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = icmp ne i32 %57, 0
br i1 %58, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %45
br label %59
59: ; preds = %._crit_edge, %2
store i32 0, ptr %3, align 4
br label %60
60: ; preds = %59, %43
%61 = load i32, ptr %3, align 4
ret i32 %61
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp9wos65wk.c'
source_filename = "/tmp/tmp9wos65wk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"Starting.\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 @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/tmp9wos65wk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"Starting.\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 @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/tmpwpi99aw2.c'
source_filename = "/tmp/tmpwpi99aw2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\09test eax, eax\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"\09j\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c" label\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @emitcondjmp(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = call i32 @puts(ptr noundef @.str)
%6 = call i32 @puts(ptr noundef @.str.1)
%7 = load ptr, ptr %3, align 8
%8 = call i32 @puts(ptr noundef %7)
%9 = call i32 @puts(ptr noundef @.str.2)
%10 = load i32, ptr %4, align 4
%11 = call i32 @putdln(i32 noundef %10)
ret void
}
declare i32 @puts(ptr noundef) #1
declare i32 @putdln(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/tmpwpi99aw2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\09test eax, eax\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"\09j\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c" label\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @emitcondjmp(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = call i32 @puts(ptr noundef @.str)
%6 = call i32 @puts(ptr noundef @.str.1)
%7 = load ptr, ptr %3, align 8
%8 = call i32 @puts(ptr noundef %7)
%9 = call i32 @puts(ptr noundef @.str.2)
%10 = load i32, ptr %4, align 4
%11 = call i32 @putdln(i32 noundef %10)
ret void
}
declare i32 @puts(ptr noundef) #1
declare i32 @putdln(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/tmp8akhgx4h.c'
source_filename = "/tmp/tmp8akhgx4h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cfgDbDataGet(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca [32 x i8], align 16
store i32 %0, ptr %7, align 4
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store i32 %4, ptr %11, align 4
%13 = load i32, ptr %7, align 4
%14 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
%15 = call i32 @cfgDbName(i32 noundef %13, ptr noundef %14)
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %5
store i64 -1, ptr %6, align 8
br label %25
18: ; preds = %5
%19 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
%20 = load ptr, ptr %8, align 8
%21 = load ptr, ptr %9, align 8
%22 = load ptr, ptr %10, align 8
%23 = load i32, ptr %11, align 4
%24 = call i64 @cfgDataGet(ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %22, i32 noundef %23)
store i64 %24, ptr %6, align 8
br label %25
25: ; preds = %18, %17
%26 = load i64, ptr %6, align 8
ret i64 %26
}
declare i32 @cfgDbName(i32 noundef, ptr noundef) #1
declare i64 @cfgDataGet(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8akhgx4h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cfgDbDataGet(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca [32 x i8], align 16
store i32 %0, ptr %7, align 4
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store i32 %4, ptr %11, align 4
%13 = load i32, ptr %7, align 4
%14 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
%15 = call i32 @cfgDbName(i32 noundef %13, ptr noundef %14)
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %5
store i64 -1, ptr %6, align 8
br label %25
18: ; preds = %5
%19 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
%20 = load ptr, ptr %8, align 8
%21 = load ptr, ptr %9, align 8
%22 = load ptr, ptr %10, align 8
%23 = load i32, ptr %11, align 4
%24 = call i64 @cfgDataGet(ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %22, i32 noundef %23)
store i64 %24, ptr %6, align 8
br label %25
25: ; preds = %18, %17
%26 = load i64, ptr %6, align 8
ret i64 %26
}
declare i32 @cfgDbName(i32 noundef, ptr noundef) #1
declare i64 @cfgDataGet(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8btvp3h8.c'
source_filename = "/tmp/tmp8btvp3h8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_stack_trace() #0 {
%1 = alloca [16 x ptr], align 16
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr null, ptr %2, align 8
store i32 0, ptr %4, 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/tmp8btvp3h8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_stack_trace() #0 {
%1 = alloca [16 x ptr], align 16
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr null, ptr %2, align 8
store i32 0, ptr %4, 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/tmpw1m5jwgk.c'
source_filename = "/tmp/tmpw1m5jwgk.c"
target datalayout = "e-m:e-p270: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/tmpw1m5jwgk.c"
target datalayout = "e-m:e-p270: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/tmp3vi3_gly.c'
source_filename = "/tmp/tmp3vi3_gly.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @add(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %3, align 8
%6 = load i64, ptr %4, align 8
%7 = add nsw i64 %5, %6
ret i64 %7
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3vi3_gly.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @add(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %3, align 8
%6 = load i64, ptr %4, align 8
%7 = add nsw i64 %5, %6
ret i64 %7
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpebm6787w.c'
source_filename = "/tmp/tmpebm6787w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pl_mm_free(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpebm6787w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pl_mm_free(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpl3fkprlw.c'
source_filename = "/tmp/tmpl3fkprlw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @to_str(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = call ptr @malloc(i32 noundef 10)
store ptr %4, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %2, align 4
%7 = call i32 @sprintf(ptr noundef %5, ptr noundef @.str, i32 noundef %6)
%8 = load ptr, ptr %3, align 8
ret ptr %8
}
declare ptr @malloc(i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl3fkprlw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @to_str(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = call ptr @malloc(i32 noundef 10)
store ptr %4, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %2, align 4
%7 = call i32 @sprintf(ptr noundef %5, ptr noundef @.str, i32 noundef %6)
%8 = load ptr, ptr %3, align 8
ret ptr %8
}
declare ptr @malloc(i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3s66mhle.c'
source_filename = "/tmp/tmp3s66mhle.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"bye bye...\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @quitter(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = load i32, ptr %2, align 4
%5 = call i32 @close(i32 noundef %4)
%6 = call i32 (...) @pop_id()
%7 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @pop_id(...) #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/tmp3s66mhle.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"bye bye...\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @quitter(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = load i32, ptr %2, align 4
%5 = call i32 @close(i32 noundef %4)
%6 = call i32 (...) @pop_id()
%7 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @pop_id(...) #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/tmpbythai7d.c'
source_filename = "/tmp/tmpbythai7d.c"
target datalayout = "e-m:e-p270: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/tmpbythai7d.c"
target datalayout = "e-m:e-p270: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/tmpkfh65rbi.c'
source_filename = "/tmp/tmpkfh65rbi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_CUR = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [30 x i8] c"Current seek position == %ld\0A\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [27 x i8] c"Now seek position == %ld\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @seek_byte(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
store i64 0, ptr %5, align 8
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr @SEEK_CUR, align 4
%9 = call i64 @lseek(i32 noundef %7, i32 noundef 0, i32 noundef %8)
store i64 %9, ptr %5, align 8
%10 = load i64, ptr %5, align 8
%11 = call i32 @printf(ptr noundef @.str, i64 noundef %10)
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr @SEEK_SET, align 4
%15 = call i64 @lseek(i32 noundef %12, i32 noundef %13, i32 noundef %14)
store i64 %15, ptr %5, align 8
%16 = load i32, ptr %3, align 4
%17 = load i32, ptr @SEEK_CUR, align 4
%18 = call i64 @lseek(i32 noundef %16, i32 noundef 0, i32 noundef %17)
store i64 %18, ptr %6, align 8
%19 = load i64, ptr %6, align 8
%20 = call i32 @printf(ptr noundef @.str.1, i64 noundef %19)
%21 = load i64, ptr %6, align 8
%22 = trunc i64 %21 to i32
ret i32 %22
}
declare i64 @lseek(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(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/tmpkfh65rbi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_CUR = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [30 x i8] c"Current seek position == %ld\0A\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [27 x i8] c"Now seek position == %ld\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @seek_byte(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
store i64 0, ptr %5, align 8
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr @SEEK_CUR, align 4
%9 = call i64 @lseek(i32 noundef %7, i32 noundef 0, i32 noundef %8)
store i64 %9, ptr %5, align 8
%10 = load i64, ptr %5, align 8
%11 = call i32 @printf(ptr noundef @.str, i64 noundef %10)
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr @SEEK_SET, align 4
%15 = call i64 @lseek(i32 noundef %12, i32 noundef %13, i32 noundef %14)
store i64 %15, ptr %5, align 8
%16 = load i32, ptr %3, align 4
%17 = load i32, ptr @SEEK_CUR, align 4
%18 = call i64 @lseek(i32 noundef %16, i32 noundef 0, i32 noundef %17)
store i64 %18, ptr %6, align 8
%19 = load i64, ptr %6, align 8
%20 = call i32 @printf(ptr noundef @.str.1, i64 noundef %19)
%21 = load i64, ptr %6, align 8
%22 = trunc i64 %21 to i32
ret i32 %22
}
declare i64 @lseek(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(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/tmph81akyn3.c'
source_filename = "/tmp/tmph81akyn3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"Error: Can't Open %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%s\0A\0A\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @handle_error_file_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 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
%5 = load i32, ptr @errno, align 4
%6 = call i64 @strerror(i32 noundef %5)
%7 = inttoptr i64 %6 to ptr
%8 = call i32 @printf(ptr noundef @.str.1, ptr noundef %7)
%9 = call i32 @exit(i32 noundef -1) #3
unreachable
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i64 @strerror(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmph81akyn3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"Error: Can't Open %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%s\0A\0A\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @handle_error_file_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 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
%5 = load i32, ptr @errno, align 4
%6 = call i64 @strerror(i32 noundef %5)
%7 = inttoptr i64 %6 to ptr
%8 = call i32 @printf(ptr noundef @.str.1, ptr noundef %7)
%9 = call i32 @exit(i32 noundef -1) #3
unreachable
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i64 @strerror(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzn2rmrr3.c'
source_filename = "/tmp/tmpzn2rmrr3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gmtime_r(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = call i32 @memset(ptr noundef %5, i32 noundef 0, i32 noundef 4)
%7 = load ptr, ptr %4, align 8
ret ptr %7
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzn2rmrr3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gmtime_r(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = call i32 @memset(ptr noundef %5, i32 noundef 0, i32 noundef 4)
%7 = load ptr, ptr %4, align 8
ret ptr %7
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjs3f5__5.c'
source_filename = "/tmp/tmpjs3f5__5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"list-tubes\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @bs_list_tubes(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca [64 x i8], align 16
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = getelementptr inbounds [64 x i8], ptr %5, i64 0, i64 0
%7 = call i32 @snprintf(ptr noundef %6, i32 noundef 64, ptr noundef @.str)
%8 = load i32, ptr %3, align 4
%9 = getelementptr inbounds [64 x i8], ptr %5, i64 0, i64 0
%10 = load ptr, ptr %4, align 8
%11 = call i32 @bs_get_info(i32 noundef %8, ptr noundef %9, ptr noundef %10)
ret i32 %11
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @bs_get_info(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjs3f5__5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"list-tubes\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @bs_list_tubes(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca [64 x i8], align 16
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = getelementptr inbounds [64 x i8], ptr %5, i64 0, i64 0
%7 = call i32 @snprintf(ptr noundef %6, i32 noundef 64, ptr noundef @.str)
%8 = load i32, ptr %3, align 4
%9 = getelementptr inbounds [64 x i8], ptr %5, i64 0, i64 0
%10 = load ptr, ptr %4, align 8
%11 = call i32 @bs_get_info(i32 noundef %8, ptr noundef %9, ptr noundef %10)
ret i32 %11
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @bs_get_info(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpy6uaiec_.c'
source_filename = "/tmp/tmpy6uaiec_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gethex() #0 {
%1 = alloca [80 x i8], align 16
%2 = alloca i32, align 4
%3 = getelementptr inbounds [80 x i8], ptr %1, i64 0, i64 0
%4 = call i32 @safe_gets(ptr noundef %3, i32 noundef 80)
store i32 0, ptr %2, align 4
%5 = getelementptr inbounds [80 x i8], ptr %1, i64 0, i64 0
%6 = call i32 @_scanf_getl(ptr noundef %5, ptr noundef %2, i32 noundef 16, i32 noundef 80, i32 noundef 0)
%7 = load i32, ptr %2, align 4
ret i32 %7
}
declare i32 @safe_gets(ptr noundef, i32 noundef) #1
declare i32 @_scanf_getl(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy6uaiec_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gethex() #0 {
%1 = alloca [80 x i8], align 16
%2 = alloca i32, align 4
%3 = getelementptr inbounds [80 x i8], ptr %1, i64 0, i64 0
%4 = call i32 @safe_gets(ptr noundef %3, i32 noundef 80)
store i32 0, ptr %2, align 4
%5 = getelementptr inbounds [80 x i8], ptr %1, i64 0, i64 0
%6 = call i32 @_scanf_getl(ptr noundef %5, ptr noundef %2, i32 noundef 16, i32 noundef 80, i32 noundef 0)
%7 = load i32, ptr %2, align 4
ret i32 %7
}
declare i32 @safe_gets(ptr noundef, i32 noundef) #1
declare i32 @_scanf_getl(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3roc61qd.c'
source_filename = "/tmp/tmp3roc61qd.c"
target datalayout = "e-m:e-p270: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.sigaction = type { i32 }
@SIG_IGN = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sigignore(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca %struct.sigaction, align 4
store i32 %0, ptr %2, align 4
%4 = call i32 @memset(ptr noundef %3, i32 noundef 0, i32 noundef 4)
%5 = load i32, ptr @SIG_IGN, align 4
%6 = getelementptr inbounds %struct.sigaction, ptr %3, i32 0, i32 0
store i32 %5, ptr %6, align 4
%7 = load i32, ptr %2, align 4
%8 = call i32 @sigaction(i32 noundef %7, ptr noundef %3, ptr noundef null)
ret i32 %8
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @sigaction(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3roc61qd.c"
target datalayout = "e-m:e-p270: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.sigaction = type { i32 }
@SIG_IGN = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sigignore(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca %struct.sigaction, align 4
store i32 %0, ptr %2, align 4
%4 = call i32 @memset(ptr noundef %3, i32 noundef 0, i32 noundef 4)
%5 = load i32, ptr @SIG_IGN, align 4
%6 = getelementptr inbounds %struct.sigaction, ptr %3, i32 0, i32 0
store i32 %5, ptr %6, align 4
%7 = load i32, ptr %2, align 4
%8 = call i32 @sigaction(i32 noundef %7, ptr noundef %3, ptr noundef null)
ret i32 %8
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @sigaction(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpz7zanbfb.c'
source_filename = "/tmp/tmpz7zanbfb.c"
target datalayout = "e-m:e-p270: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.main1.b = private unnamed_addr constant [16 x float] [float 0.000000e+00, float 3.000000e+00, float 6.000000e+00, float 9.000000e+00, float 1.200000e+01, float 1.500000e+01, float 1.800000e+01, float 2.100000e+01, float 2.400000e+01, float 2.700000e+01, float 3.000000e+01, float 3.300000e+01, float 3.600000e+01, float 3.900000e+01, float 4.200000e+01, float 4.500000e+01], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main1() #0 {
%1 = alloca i32, align 4
%2 = alloca [16 x float], align 16
%3 = alloca [16 x float], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main1.b, i64 64, i1 false)
store i32 16, ptr %1, align 4
br label %4
4: ; preds = %17, %0
%5 = load i32, ptr %1, align 4
%6 = icmp sgt i32 %5, 0
br i1 %6, label %7, label %20
7: ; preds = %4
%8 = load i32, ptr %1, align 4
%9 = sub nsw i32 %8, 1
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [16 x float], ptr %3, i64 0, i64 %10
%12 = load float, ptr %11, align 4
%13 = load i32, ptr %1, align 4
%14 = sub nsw i32 16, %13
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [16 x float], ptr %2, i64 0, i64 %15
store float %12, ptr %16, align 4
br label %17
17: ; preds = %7
%18 = load i32, ptr %1, align 4
%19 = add nsw i32 %18, -1
store i32 %19, ptr %1, align 4
br label %4, !llvm.loop !6
20: ; preds = %4
store i32 0, ptr %1, align 4
br label %21
21: ; preds = %38, %20
%22 = load i32, ptr %1, align 4
%23 = icmp slt i32 %22, 16
br i1 %23, label %24, label %41
24: ; preds = %21
%25 = load i32, ptr %1, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [16 x float], ptr %2, i64 0, i64 %26
%28 = load float, ptr %27, align 4
%29 = load i32, ptr %1, align 4
%30 = sub nsw i32 15, %29
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [16 x float], ptr %3, i64 0, i64 %31
%33 = load float, ptr %32, align 4
%34 = fcmp une float %28, %33
br i1 %34, label %35, label %37
35: ; preds = %24
%36 = call i32 (...) @abort() #3
unreachable
37: ; preds = %24
br label %38
38: ; preds = %37
%39 = load i32, ptr %1, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %1, align 4
br label %21, !llvm.loop !8
41: ; preds = %21
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
; Function Attrs: noreturn
declare i32 @abort(...) #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 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz7zanbfb.c"
target datalayout = "e-m:e-p270: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.main1.b = private unnamed_addr constant [16 x float] [float 0.000000e+00, float 3.000000e+00, float 6.000000e+00, float 9.000000e+00, float 1.200000e+01, float 1.500000e+01, float 1.800000e+01, float 2.100000e+01, float 2.400000e+01, float 2.700000e+01, float 3.000000e+01, float 3.300000e+01, float 3.600000e+01, float 3.900000e+01, float 4.200000e+01, float 4.500000e+01], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main1() #0 {
%1 = alloca i32, align 4
%2 = alloca [16 x float], align 16
%3 = alloca [16 x float], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main1.b, i64 64, i1 false)
store i32 16, ptr %1, align 4
%4 = load i32, ptr %1, align 4
%5 = icmp sgt i32 %4, 0
br i1 %5, label %.lr.ph, label %21
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %16
%7 = load i32, ptr %1, align 4
%8 = sub nsw i32 %7, 1
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [16 x float], ptr %3, i64 0, i64 %9
%11 = load float, ptr %10, align 4
%12 = load i32, ptr %1, align 4
%13 = sub nsw i32 16, %12
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [16 x float], ptr %2, i64 0, i64 %14
store float %11, ptr %15, align 4
br label %16
16: ; preds = %6
%17 = load i32, ptr %1, align 4
%18 = add nsw i32 %17, -1
store i32 %18, ptr %1, align 4
%19 = load i32, ptr %1, align 4
%20 = icmp sgt i32 %19, 0
br i1 %20, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %21
21: ; preds = %._crit_edge, %0
store i32 0, ptr %1, align 4
%22 = load i32, ptr %1, align 4
%23 = icmp slt i32 %22, 16
br i1 %23, label %.lr.ph2, label %43
.lr.ph2: ; preds = %21
br label %24
24: ; preds = %.lr.ph2, %38
%25 = load i32, ptr %1, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [16 x float], ptr %2, i64 0, i64 %26
%28 = load float, ptr %27, align 4
%29 = load i32, ptr %1, align 4
%30 = sub nsw i32 15, %29
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [16 x float], ptr %3, i64 0, i64 %31
%33 = load float, ptr %32, align 4
%34 = fcmp une float %28, %33
br i1 %34, label %35, label %37
35: ; preds = %24
%36 = call i32 (...) @abort() #3
unreachable
37: ; preds = %24
br label %38
38: ; preds = %37
%39 = load i32, ptr %1, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %1, align 4
%41 = load i32, ptr %1, align 4
%42 = icmp slt i32 %41, 16
br i1 %42, label %24, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %38
br label %43
43: ; preds = %._crit_edge3, %21
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
; Function Attrs: noreturn
declare i32 @abort(...) #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 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp4zcd0pw6.c'
source_filename = "/tmp/tmp4zcd0pw6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"In SIGINT handler ...\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sigint_handler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4zcd0pw6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"In SIGINT handler ...\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sigint_handler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpo34zbic0.c'
source_filename = "/tmp/tmpo34zbic0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo34zbic0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpljfmgosp.c'
source_filename = "/tmp/tmpljfmgosp.c"
target datalayout = "e-m:e-p270: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/tmpljfmgosp.c"
target datalayout = "e-m:e-p270: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/tmpolttrcff.c'
source_filename = "/tmp/tmpolttrcff.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"1\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @visualize(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
br label %4
4: ; preds = %4, %1
%5 = call i32 @printf(ptr noundef @.str)
br label %4
}
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/tmpolttrcff.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"1\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @visualize(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
br label %4
4: ; preds = %4, %1
%5 = call i32 @printf(ptr noundef @.str)
br label %4
}
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/tmpdh6cdolt.c'
source_filename = "/tmp/tmpdh6cdolt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @timespec_get(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%6 = load i32, ptr %5, align 4
switch i32 %6, label %8 [
i32 128, label %7
]
7: ; preds = %2
store i32 0, ptr %3, align 4
br label %9
8: ; preds = %2
store i32 0, ptr %3, align 4
br label %9
9: ; preds = %8, %7
%10 = load i32, ptr %3, align 4
ret i32 %10
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdh6cdolt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @timespec_get(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%6 = load i32, ptr %5, align 4
switch i32 %6, label %8 [
i32 128, label %7
]
7: ; preds = %2
store i32 0, ptr %3, align 4
br label %9
8: ; preds = %2
store i32 0, ptr %3, align 4
br label %9
9: ; preds = %8, %7
%10 = load i32, ptr %3, align 4
ret i32 %10
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxh2ik53r.c'
source_filename = "/tmp/tmpxh2ik53r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isalpha.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isalpha should be 0 for 0xe0\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalpha_0xe0() #0 {
%1 = call i64 @isalpha(i32 noundef 224)
%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 1125, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isalpha(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxh2ik53r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isalpha.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isalpha should be 0 for 0xe0\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalpha_0xe0() #0 {
%1 = call i64 @isalpha(i32 noundef 224)
%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 1125, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isalpha(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpncoztjcm.c'
source_filename = "/tmp/tmpncoztjcm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"%s %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 2
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = call i32 @help(ptr noundef %10)
br label %12
12: ; preds = %9, %2
store i32 0, ptr %6, align 4
br label %13
13: ; preds = %27, %12
%14 = load i32, ptr %6, align 4
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 2
%17 = load ptr, ptr %16, align 8
%18 = call i32 @strtol(ptr noundef %17, ptr noundef null, i32 noundef 10)
%19 = icmp slt i32 %14, %18
br i1 %19, label %20, label %30
20: ; preds = %13
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = load ptr, ptr %22, align 8
%24 = load i32, ptr %6, align 4
%25 = add nsw i32 %24, 1
%26 = call i32 @printf(ptr noundef @.str, ptr noundef %23, i32 noundef %25)
br label %27
27: ; preds = %20
%28 = load i32, ptr %6, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %6, align 4
br label %13, !llvm.loop !6
30: ; preds = %13
ret i32 0
}
declare i32 @help(ptr noundef) #1
declare i32 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpncoztjcm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"%s %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 2
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = call i32 @help(ptr noundef %10)
br label %12
12: ; preds = %9, %2
store i32 0, ptr %6, align 4
%13 = load i32, ptr %6, align 4
%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 @strtol(ptr noundef %16, ptr noundef null, i32 noundef 10)
%18 = icmp slt i32 %13, %17
br i1 %18, label %.lr.ph, label %35
.lr.ph: ; preds = %12
br label %19
19: ; preds = %.lr.ph, %26
%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 %6, align 4
%24 = add nsw i32 %23, 1
%25 = call i32 @printf(ptr noundef @.str, ptr noundef %22, i32 noundef %24)
br label %26
26: ; preds = %19
%27 = load i32, ptr %6, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %6, align 4
%29 = load i32, ptr %6, align 4
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds ptr, ptr %30, i64 2
%32 = load ptr, ptr %31, align 8
%33 = call i32 @strtol(ptr noundef %32, ptr noundef null, i32 noundef 10)
%34 = icmp slt i32 %29, %33
br i1 %34, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %35
35: ; preds = %._crit_edge, %12
ret i32 0
}
declare i32 @help(ptr noundef) #1
declare i32 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp64fbz2he.c'
source_filename = "/tmp/tmp64fbz2he.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fn_check_memory_crc32(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = call i32 @fn_calc_memory_crc32(ptr noundef %7, i32 noundef %8)
%10 = load i32, ptr %6, align 4
%11 = icmp eq i32 %9, %10
%12 = zext i1 %11 to i32
ret i32 %12
}
declare i32 @fn_calc_memory_crc32(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/tmp64fbz2he.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fn_check_memory_crc32(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = call i32 @fn_calc_memory_crc32(ptr noundef %7, i32 noundef %8)
%10 = load i32, ptr %6, align 4
%11 = icmp eq i32 %9, %10
%12 = zext i1 %11 to i32
ret i32 %12
}
declare i32 @fn_calc_memory_crc32(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/tmphor7e25u.c'
source_filename = "/tmp/tmphor7e25u.c"
target datalayout = "e-m:e-p270: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/tmphor7e25u.c"
target datalayout = "e-m:e-p270: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/tmpodgr4ksh.c'
source_filename = "/tmp/tmpodgr4ksh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"slow expected = %f, actual = %f\0A\00", align 1
@.str.1 = private unnamed_addr constant [33 x i8] c"fast expected = %f, actual = %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @identity(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = load float, ptr %2, align 4
%5 = call i32 @half_from_float_slow(float noundef %4)
%6 = call double @half_to_float_slow(i32 noundef %5)
%7 = call i32 @printf(ptr noundef @.str, float noundef %3, double noundef %6)
%8 = load float, ptr %2, align 4
%9 = load float, ptr %2, align 4
%10 = call i32 @half_from_float(float noundef %9)
%11 = call double @half_to_float(i32 noundef %10)
%12 = call i32 @printf(ptr noundef @.str.1, float noundef %8, double noundef %11)
ret void
}
declare i32 @printf(ptr noundef, float noundef, double noundef) #1
declare double @half_to_float_slow(i32 noundef) #1
declare i32 @half_from_float_slow(float noundef) #1
declare double @half_to_float(i32 noundef) #1
declare i32 @half_from_float(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/tmpodgr4ksh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"slow expected = %f, actual = %f\0A\00", align 1
@.str.1 = private unnamed_addr constant [33 x i8] c"fast expected = %f, actual = %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @identity(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = load float, ptr %2, align 4
%5 = call i32 @half_from_float_slow(float noundef %4)
%6 = call double @half_to_float_slow(i32 noundef %5)
%7 = call i32 @printf(ptr noundef @.str, float noundef %3, double noundef %6)
%8 = load float, ptr %2, align 4
%9 = load float, ptr %2, align 4
%10 = call i32 @half_from_float(float noundef %9)
%11 = call double @half_to_float(i32 noundef %10)
%12 = call i32 @printf(ptr noundef @.str.1, float noundef %8, double noundef %11)
ret void
}
declare i32 @printf(ptr noundef, float noundef, double noundef) #1
declare double @half_to_float_slow(i32 noundef) #1
declare i32 @half_from_float_slow(float noundef) #1
declare double @half_to_float(i32 noundef) #1
declare i32 @half_from_float(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 = '/tmp/tmp3brjyt2p.c'
source_filename = "/tmp/tmp3brjyt2p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Load\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"Unload\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @validEvent(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = call i64 @strcmp(ptr noundef %4, ptr noundef @.str)
%6 = icmp eq i64 0, %5
br i1 %6, label %11, label %7
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = call i64 @strcmp(ptr noundef %8, ptr noundef @.str.1)
%10 = icmp eq i64 0, %9
br i1 %10, label %11, label %12
11: ; preds = %7, %1
store i32 1, ptr %2, align 4
br label %13
12: ; preds = %7
store i32 0, ptr %2, align 4
br label %13
13: ; preds = %12, %11
%14 = load i32, ptr %2, align 4
ret i32 %14
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3brjyt2p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Load\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"Unload\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @validEvent(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = call i64 @strcmp(ptr noundef %4, ptr noundef @.str)
%6 = icmp eq i64 0, %5
br i1 %6, label %11, label %7
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = call i64 @strcmp(ptr noundef %8, ptr noundef @.str.1)
%10 = icmp eq i64 0, %9
br i1 %10, label %11, label %12
11: ; preds = %7, %1
store i32 1, ptr %2, align 4
br label %13
12: ; preds = %7
store i32 0, ptr %2, align 4
br label %13
13: ; preds = %12, %11
%14 = load i32, ptr %2, align 4
ret i32 %14
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjz7fmbgc.c'
source_filename = "/tmp/tmpjz7fmbgc.c"
target datalayout = "e-m:e-p270: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/tmpjz7fmbgc.c"
target datalayout = "e-m:e-p270: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/tmpcvc650py.c'
source_filename = "/tmp/tmpcvc650py.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [44 x i8] c"******************************************\0A\00", align 1
@.str.1 = private unnamed_addr constant [46 x i8] c"* Bem vindo ao nosso jogo de adivinha\C3\A7\C3\A3o *\0A\00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c"Qual o n\C3\ADvel de dificuldade?\0A\00", align 1
@.str.3 = private unnamed_addr constant [37 x i8] c"(1) F\C3\A1cil (2) M\C3\A9dio (3) Dif\C3\ADcil\0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"Escolha: \00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c"Tentativa %d\0A\00", align 1
@.str.7 = private unnamed_addr constant [22 x i8] c"Qual \C3\A9 o seu chute? \00", align 1
@.str.8 = private unnamed_addr constant [18 x i8] c"Seu chute foi %d\0A\00", align 1
@.str.9 = private unnamed_addr constant [44 x i8] c"Voc\C3\AA n\C3\A3o pode chutar n\C3\BAmeros negativos!\0A\00", align 1
@.str.10 = private unnamed_addr constant [43 x i8] c"Seu chute foi maior que o n\C3\BAmero secreto\0A\00", align 1
@.str.11 = private unnamed_addr constant [43 x i8] c"Seu chute foi menor que o n\C3\BAmero secreto\0A\00", align 1
@.str.12 = private unnamed_addr constant [14 x i8] c"Fim de jogo!\0A\00", align 1
@.str.13 = private unnamed_addr constant [14 x i8] c"Voc\C3\AA ganhou\0A\00", align 1
@.str.14 = private unnamed_addr constant [33 x i8] c"Voc\C3\AA acertou em %d tentativas!\0A\00", align 1
@.str.15 = private unnamed_addr constant [23 x i8] c"Total de pontos: %.1f\0A\00", align 1
@.str.16 = private unnamed_addr constant [30 x i8] c"Voc\C3\AA perdeu! Tente de novo!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca double, align 8
%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 double, align 8
store i32 0, ptr %1, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%17 = call i32 @time(i32 noundef 0)
store i32 %17, ptr %2, align 4
%18 = load i32, ptr %2, align 4
%19 = call i32 @srand(i32 noundef %18)
%20 = call i32 (...) @rand()
store i32 %20, ptr %3, align 4
%21 = load i32, ptr %3, align 4
%22 = srem i32 %21, 100
store i32 %22, ptr %4, align 4
store i32 1, ptr %6, align 4
store double 1.000000e+03, ptr %7, align 8
store i32 0, ptr %8, align 4
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%26 = call i32 @scanf(ptr noundef @.str.5, ptr noundef %9)
%27 = load i32, ptr %9, align 4
switch i32 %27, label %30 [
i32 1, label %28
i32 2, label %29
]
28: ; preds = %0
store i32 20, ptr %10, align 4
br label %31
29: ; preds = %0
store i32 15, ptr %10, align 4
br label %31
30: ; preds = %0
store i32 6, ptr %10, align 4
br label %31
31: ; preds = %30, %29, %28
store i32 1, ptr %11, align 4
br label %32
32: ; preds = %84, %31
%33 = load i32, ptr %11, align 4
%34 = load i32, ptr %10, align 4
%35 = icmp sle i32 %33, %34
br i1 %35, label %36, label %87
36: ; preds = %32
%37 = load i32, ptr %6, align 4
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %37)
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%40 = call i32 @scanf(ptr noundef @.str.5, ptr noundef %5)
%41 = load i32, ptr %5, align 4
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %41)
%43 = load i32, ptr %5, align 4
%44 = icmp slt i32 %43, 0
br i1 %44, label %45, label %47
45: ; preds = %36
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %84
47: ; preds = %36
%48 = load i32, ptr %5, align 4
%49 = load i32, ptr %4, align 4
%50 = icmp eq i32 %48, %49
%51 = zext i1 %50 to i32
store i32 %51, ptr %8, align 4
%52 = load i32, ptr %5, align 4
%53 = load i32, ptr %4, align 4
%54 = icmp sgt i32 %52, %53
%55 = zext i1 %54 to i32
store i32 %55, ptr %12, align 4
%56 = load i32, ptr %8, align 4
%57 = icmp ne i32 %56, 0
br i1 %57, label %58, label %59
58: ; preds = %47
br label %87
59: ; preds = %47
%60 = load i32, ptr %12, align 4
%61 = icmp ne i32 %60, 0
br i1 %61, label %62, label %64
62: ; preds = %59
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
br label %66
64: ; preds = %59
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
br label %66
66: ; preds = %64, %62
br label %67
67: ; preds = %66
%68 = load i32, ptr %6, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %6, align 4
%70 = load i32, ptr %5, align 4
%71 = load i32, ptr %4, align 4
%72 = sub nsw i32 %70, %71
%73 = sitofp i32 %72 to double
%74 = fdiv double %73, 2.000000e+00
store double %74, ptr %13, align 8
%75 = load double, ptr %13, align 8
%76 = fcmp olt double %75, 0.000000e+00
br i1 %76, label %77, label %80
77: ; preds = %67
%78 = load double, ptr %13, align 8
%79 = fmul double %78, -1.000000e+00
store double %79, ptr %13, align 8
br label %80
80: ; preds = %77, %67
%81 = load double, ptr %7, align 8
%82 = load double, ptr %13, align 8
%83 = fsub double %81, %82
store double %83, ptr %7, align 8
br label %84
84: ; preds = %80, %45
%85 = load i32, ptr %11, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %11, align 4
br label %32, !llvm.loop !6
87: ; preds = %58, %32
%88 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
%89 = load i32, ptr %8, align 4
%90 = icmp ne i32 %89, 0
br i1 %90, label %91, label %97
91: ; preds = %87
%92 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%93 = load i32, ptr %6, align 4
%94 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %93)
%95 = load double, ptr %7, align 8
%96 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, double noundef %95)
br label %99
97: ; preds = %87
%98 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
br label %99
99: ; preds = %97, %91
%100 = load i32, ptr %1, align 4
ret i32 %100
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @time(i32 noundef) #1
declare i32 @srand(i32 noundef) #1
declare i32 @rand(...) #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/tmpcvc650py.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [44 x i8] c"******************************************\0A\00", align 1
@.str.1 = private unnamed_addr constant [46 x i8] c"* Bem vindo ao nosso jogo de adivinha\C3\A7\C3\A3o *\0A\00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c"Qual o n\C3\ADvel de dificuldade?\0A\00", align 1
@.str.3 = private unnamed_addr constant [37 x i8] c"(1) F\C3\A1cil (2) M\C3\A9dio (3) Dif\C3\ADcil\0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"Escolha: \00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c"Tentativa %d\0A\00", align 1
@.str.7 = private unnamed_addr constant [22 x i8] c"Qual \C3\A9 o seu chute? \00", align 1
@.str.8 = private unnamed_addr constant [18 x i8] c"Seu chute foi %d\0A\00", align 1
@.str.9 = private unnamed_addr constant [44 x i8] c"Voc\C3\AA n\C3\A3o pode chutar n\C3\BAmeros negativos!\0A\00", align 1
@.str.10 = private unnamed_addr constant [43 x i8] c"Seu chute foi maior que o n\C3\BAmero secreto\0A\00", align 1
@.str.11 = private unnamed_addr constant [43 x i8] c"Seu chute foi menor que o n\C3\BAmero secreto\0A\00", align 1
@.str.12 = private unnamed_addr constant [14 x i8] c"Fim de jogo!\0A\00", align 1
@.str.13 = private unnamed_addr constant [14 x i8] c"Voc\C3\AA ganhou\0A\00", align 1
@.str.14 = private unnamed_addr constant [33 x i8] c"Voc\C3\AA acertou em %d tentativas!\0A\00", align 1
@.str.15 = private unnamed_addr constant [23 x i8] c"Total de pontos: %.1f\0A\00", align 1
@.str.16 = private unnamed_addr constant [30 x i8] c"Voc\C3\AA perdeu! Tente de novo!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca double, align 8
%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 double, align 8
store i32 0, ptr %1, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%17 = call i32 @time(i32 noundef 0)
store i32 %17, ptr %2, align 4
%18 = load i32, ptr %2, align 4
%19 = call i32 @srand(i32 noundef %18)
%20 = call i32 (...) @rand()
store i32 %20, ptr %3, align 4
%21 = load i32, ptr %3, align 4
%22 = srem i32 %21, 100
store i32 %22, ptr %4, align 4
store i32 1, ptr %6, align 4
store double 1.000000e+03, ptr %7, align 8
store i32 0, ptr %8, align 4
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%26 = call i32 @scanf(ptr noundef @.str.5, ptr noundef %9)
%27 = load i32, ptr %9, align 4
switch i32 %27, label %30 [
i32 1, label %28
i32 2, label %29
]
28: ; preds = %0
store i32 20, ptr %10, align 4
br label %31
29: ; preds = %0
store i32 15, ptr %10, align 4
br label %31
30: ; preds = %0
store i32 6, ptr %10, align 4
br label %31
31: ; preds = %30, %29, %28
store i32 1, ptr %11, align 4
%32 = load i32, ptr %11, align 4
%33 = load i32, ptr %10, align 4
%34 = icmp sle i32 %32, %33
br i1 %34, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %31
br label %35
35: ; preds = %.lr.ph, %83
%36 = load i32, ptr %6, align 4
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %36)
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%39 = call i32 @scanf(ptr noundef @.str.5, ptr noundef %5)
%40 = load i32, ptr %5, align 4
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %40)
%42 = load i32, ptr %5, align 4
%43 = icmp slt i32 %42, 0
br i1 %43, label %44, label %46
44: ; preds = %35
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %83
46: ; preds = %35
%47 = load i32, ptr %5, align 4
%48 = load i32, ptr %4, align 4
%49 = icmp eq i32 %47, %48
%50 = zext i1 %49 to i32
store i32 %50, ptr %8, align 4
%51 = load i32, ptr %5, align 4
%52 = load i32, ptr %4, align 4
%53 = icmp sgt i32 %51, %52
%54 = zext i1 %53 to i32
store i32 %54, ptr %12, align 4
%55 = load i32, ptr %8, align 4
%56 = icmp ne i32 %55, 0
br i1 %56, label %57, label %58
57: ; preds = %46
br label %89
58: ; preds = %46
%59 = load i32, ptr %12, align 4
%60 = icmp ne i32 %59, 0
br i1 %60, label %61, label %63
61: ; preds = %58
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
br label %65
63: ; preds = %58
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
br label %65
65: ; preds = %63, %61
br label %66
66: ; preds = %65
%67 = load i32, ptr %6, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %6, align 4
%69 = load i32, ptr %5, align 4
%70 = load i32, ptr %4, align 4
%71 = sub nsw i32 %69, %70
%72 = sitofp i32 %71 to double
%73 = fdiv double %72, 2.000000e+00
store double %73, ptr %13, align 8
%74 = load double, ptr %13, align 8
%75 = fcmp olt double %74, 0.000000e+00
br i1 %75, label %76, label %79
76: ; preds = %66
%77 = load double, ptr %13, align 8
%78 = fmul double %77, -1.000000e+00
store double %78, ptr %13, align 8
br label %79
79: ; preds = %76, %66
%80 = load double, ptr %7, align 8
%81 = load double, ptr %13, align 8
%82 = fsub double %80, %81
store double %82, ptr %7, align 8
br label %83
83: ; preds = %79, %44
%84 = load i32, ptr %11, align 4
%85 = add nsw i32 %84, 1
store i32 %85, ptr %11, align 4
%86 = load i32, ptr %11, align 4
%87 = load i32, ptr %10, align 4
%88 = icmp sle i32 %86, %87
br i1 %88, label %35, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %83
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %31
br label %89
89: ; preds = %.loopexit, %57
%90 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
%91 = load i32, ptr %8, align 4
%92 = icmp ne i32 %91, 0
br i1 %92, label %93, label %99
93: ; preds = %89
%94 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%95 = load i32, ptr %6, align 4
%96 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %95)
%97 = load double, ptr %7, align 8
%98 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, double noundef %97)
br label %101
99: ; preds = %89
%100 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
br label %101
101: ; preds = %99, %93
%102 = load i32, ptr %1, align 4
ret i32 %102
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @time(i32 noundef) #1
declare i32 @srand(i32 noundef) #1
declare i32 @rand(...) #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/tmpcg3oeayp.c'
source_filename = "/tmp/tmpcg3oeayp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [102 x i8] c"Source path is not complete (i.e. Could not find '/' ('' on windows) in the path)!, source path = %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"Cannot open source file, %s.\0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"wb\00", align 1
@.str.4 = private unnamed_addr constant [35 x i8] c"Cannot open destination file, %s.\0A\00", align 1
@.str.5 = private unnamed_addr constant [28 x i8] c"Error reading source file.\0A\00", align 1
@.str.6 = private unnamed_addr constant [33 x i8] c"Error writing destination file.\0A\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.7 = private unnamed_addr constant [28 x i8] c"Error closing source file.\0A\00", align 1
@.str.8 = private unnamed_addr constant [33 x i8] c"Error closing destination file.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @file_copy(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i8, align 1
%10 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%11 = load ptr, ptr %4, align 8
%12 = call ptr @strrchr(ptr noundef %11, i8 noundef signext 47)
store ptr %12, ptr %10, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = load ptr, ptr %4, align 8
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %15)
store i32 1, ptr %3, align 4
br label %94
17: ; preds = %2
%18 = load ptr, ptr %5, align 8
%19 = call i32 @strlen(ptr noundef %18)
%20 = load ptr, ptr %10, align 8
%21 = call i32 @strlen(ptr noundef %20)
%22 = add nsw i32 %19, %21
%23 = add nsw i32 %22, 10
%24 = sext i32 %23 to i64
%25 = mul i64 1, %24
%26 = trunc i64 %25 to i32
%27 = call i64 @malloc(i32 noundef %26)
%28 = inttoptr i64 %27 to ptr
store ptr %28, ptr %8, align 8
%29 = load ptr, ptr %8, align 8
%30 = load ptr, ptr %5, align 8
%31 = call i32 @strcpy(ptr noundef %29, ptr noundef %30)
%32 = load ptr, ptr %8, align 8
%33 = load ptr, ptr %10, align 8
%34 = call i32 @strcat(ptr noundef %32, ptr noundef %33)
%35 = load ptr, ptr %4, align 8
%36 = call ptr @fopen(ptr noundef %35, ptr noundef @.str.1)
store ptr %36, ptr %6, align 8
%37 = icmp eq ptr %36, null
br i1 %37, label %38, label %41
38: ; preds = %17
%39 = load ptr, ptr %4, align 8
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %39)
store i32 1, ptr %3, align 4
br label %94
41: ; preds = %17
%42 = load ptr, ptr %8, align 8
%43 = call ptr @fopen(ptr noundef %42, ptr noundef @.str.3)
store ptr %43, ptr %7, align 8
%44 = icmp eq ptr %43, null
br i1 %44, label %45, label %48
45: ; preds = %41
%46 = load ptr, ptr %8, align 8
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %46)
store i32 1, ptr %3, align 4
br label %94
48: ; preds = %41
br label %49
49: ; preds = %76, %48
%50 = load ptr, ptr %6, align 8
%51 = call i32 @feof(ptr noundef %50)
%52 = icmp ne i32 %51, 0
%53 = xor i1 %52, true
br i1 %53, label %54, label %77
54: ; preds = %49
%55 = load ptr, ptr %6, align 8
%56 = call signext i8 @fgetc(ptr noundef %55)
store i8 %56, ptr %9, align 1
%57 = load ptr, ptr %6, align 8
%58 = call i64 @ferror(ptr noundef %57)
%59 = icmp ne i64 %58, 0
br i1 %59, label %60, label %62
60: ; preds = %54
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 1, ptr %3, align 4
br label %94
62: ; preds = %54
%63 = load ptr, ptr %6, align 8
%64 = call i32 @feof(ptr noundef %63)
%65 = icmp ne i32 %64, 0
br i1 %65, label %70, label %66
66: ; preds = %62
%67 = load i8, ptr %9, align 1
%68 = load ptr, ptr %7, align 8
%69 = call i32 @fputc(i8 noundef signext %67, ptr noundef %68)
br label %70
70: ; preds = %66, %62
%71 = load ptr, ptr %7, align 8
%72 = call i64 @ferror(ptr noundef %71)
%73 = icmp ne i64 %72, 0
br i1 %73, label %74, label %76
74: ; preds = %70
%75 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
store i32 1, ptr %3, align 4
br label %94
76: ; preds = %70
br label %49, !llvm.loop !6
77: ; preds = %49
%78 = load ptr, ptr %6, align 8
%79 = call i64 @fclose(ptr noundef %78)
%80 = load i64, ptr @EOF, align 8
%81 = icmp eq i64 %79, %80
br i1 %81, label %82, label %84
82: ; preds = %77
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
store i32 1, ptr %3, align 4
br label %94
84: ; preds = %77
%85 = load ptr, ptr %7, align 8
%86 = call i64 @fclose(ptr noundef %85)
%87 = load i64, ptr @EOF, align 8
%88 = icmp eq i64 %86, %87
br i1 %88, label %89, label %91
89: ; preds = %84
%90 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
store i32 1, ptr %3, align 4
br label %94
91: ; preds = %84
%92 = load ptr, ptr %8, align 8
%93 = call i32 @free(ptr noundef %92)
store i32 0, ptr %3, align 4
br label %94
94: ; preds = %91, %89, %82, %74, %60, %45, %38, %14
%95 = load i32, ptr %3, align 4
ret i32 %95
}
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @feof(ptr noundef) #1
declare signext i8 @fgetc(ptr noundef) #1
declare i64 @ferror(ptr noundef) #1
declare i32 @fputc(i8 noundef signext, ptr noundef) #1
declare i64 @fclose(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/tmpcg3oeayp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [102 x i8] c"Source path is not complete (i.e. Could not find '/' ('' on windows) in the path)!, source path = %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"Cannot open source file, %s.\0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"wb\00", align 1
@.str.4 = private unnamed_addr constant [35 x i8] c"Cannot open destination file, %s.\0A\00", align 1
@.str.5 = private unnamed_addr constant [28 x i8] c"Error reading source file.\0A\00", align 1
@.str.6 = private unnamed_addr constant [33 x i8] c"Error writing destination file.\0A\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.7 = private unnamed_addr constant [28 x i8] c"Error closing source file.\0A\00", align 1
@.str.8 = private unnamed_addr constant [33 x i8] c"Error closing destination file.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @file_copy(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i8, align 1
%10 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%11 = load ptr, ptr %4, align 8
%12 = call ptr @strrchr(ptr noundef %11, i8 noundef signext 47)
store ptr %12, ptr %10, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = load ptr, ptr %4, align 8
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %15)
store i32 1, ptr %3, align 4
br label %97
17: ; preds = %2
%18 = load ptr, ptr %5, align 8
%19 = call i32 @strlen(ptr noundef %18)
%20 = load ptr, ptr %10, align 8
%21 = call i32 @strlen(ptr noundef %20)
%22 = add nsw i32 %19, %21
%23 = add nsw i32 %22, 10
%24 = sext i32 %23 to i64
%25 = mul i64 1, %24
%26 = trunc i64 %25 to i32
%27 = call i64 @malloc(i32 noundef %26)
%28 = inttoptr i64 %27 to ptr
store ptr %28, ptr %8, align 8
%29 = load ptr, ptr %8, align 8
%30 = load ptr, ptr %5, align 8
%31 = call i32 @strcpy(ptr noundef %29, ptr noundef %30)
%32 = load ptr, ptr %8, align 8
%33 = load ptr, ptr %10, align 8
%34 = call i32 @strcat(ptr noundef %32, ptr noundef %33)
%35 = load ptr, ptr %4, align 8
%36 = call ptr @fopen(ptr noundef %35, ptr noundef @.str.1)
store ptr %36, ptr %6, align 8
%37 = icmp eq ptr %36, null
br i1 %37, label %38, label %41
38: ; preds = %17
%39 = load ptr, ptr %4, align 8
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %39)
store i32 1, ptr %3, align 4
br label %97
41: ; preds = %17
%42 = load ptr, ptr %8, align 8
%43 = call ptr @fopen(ptr noundef %42, ptr noundef @.str.3)
store ptr %43, ptr %7, align 8
%44 = icmp eq ptr %43, null
br i1 %44, label %45, label %48
45: ; preds = %41
%46 = load ptr, ptr %8, align 8
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %46)
store i32 1, ptr %3, align 4
br label %97
48: ; preds = %41
%49 = load ptr, ptr %6, align 8
%50 = call i32 @feof(ptr noundef %49)
%51 = icmp ne i32 %50, 0
%52 = xor i1 %51, true
br i1 %52, label %.lr.ph, label %80
.lr.ph: ; preds = %48
br label %58
53: ; preds = %74
%54 = load ptr, ptr %6, align 8
%55 = call i32 @feof(ptr noundef %54)
%56 = icmp ne i32 %55, 0
%57 = xor i1 %56, true
br i1 %57, label %58, label %._crit_edge, !llvm.loop !6
58: ; preds = %.lr.ph, %53
%59 = load ptr, ptr %6, align 8
%60 = call signext i8 @fgetc(ptr noundef %59)
store i8 %60, ptr %9, align 1
%61 = load ptr, ptr %6, align 8
%62 = call i64 @ferror(ptr noundef %61)
%63 = icmp ne i64 %62, 0
br i1 %63, label %64, label %66
64: ; preds = %58
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 1, ptr %3, align 4
br label %97
66: ; preds = %58
%67 = load ptr, ptr %6, align 8
%68 = call i32 @feof(ptr noundef %67)
%69 = icmp ne i32 %68, 0
br i1 %69, label %74, label %70
70: ; preds = %66
%71 = load i8, ptr %9, align 1
%72 = load ptr, ptr %7, align 8
%73 = call i32 @fputc(i8 noundef signext %71, ptr noundef %72)
br label %74
74: ; preds = %70, %66
%75 = load ptr, ptr %7, align 8
%76 = call i64 @ferror(ptr noundef %75)
%77 = icmp ne i64 %76, 0
br i1 %77, label %78, label %53
78: ; preds = %74
%79 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
store i32 1, ptr %3, align 4
br label %97
._crit_edge: ; preds = %53
br label %80
80: ; preds = %._crit_edge, %48
%81 = load ptr, ptr %6, align 8
%82 = call i64 @fclose(ptr noundef %81)
%83 = load i64, ptr @EOF, align 8
%84 = icmp eq i64 %82, %83
br i1 %84, label %85, label %87
85: ; preds = %80
%86 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
store i32 1, ptr %3, align 4
br label %97
87: ; preds = %80
%88 = load ptr, ptr %7, align 8
%89 = call i64 @fclose(ptr noundef %88)
%90 = load i64, ptr @EOF, align 8
%91 = icmp eq i64 %89, %90
br i1 %91, label %92, label %94
92: ; preds = %87
%93 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
store i32 1, ptr %3, align 4
br label %97
94: ; preds = %87
%95 = load ptr, ptr %8, align 8
%96 = call i32 @free(ptr noundef %95)
store i32 0, ptr %3, align 4
br label %97
97: ; preds = %94, %92, %85, %78, %64, %45, %38, %14
%98 = load i32, ptr %3, align 4
ret i32 %98
}
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @feof(ptr noundef) #1
declare signext i8 @fgetc(ptr noundef) #1
declare i64 @ferror(ptr noundef) #1
declare i32 @fputc(i8 noundef signext, ptr noundef) #1
declare i64 @fclose(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/tmp4kfd8hge.c'
source_filename = "/tmp/tmp4kfd8hge.c"
target datalayout = "e-m:e-p270: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/tmp4kfd8hge.c"
target datalayout = "e-m:e-p270: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/tmpyrbd5a98.c'
source_filename = "/tmp/tmpyrbd5a98.c"
target datalayout = "e-m:e-p270: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/tmpyrbd5a98.c"
target datalayout = "e-m:e-p270: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/tmp48h4w4ju.c'
source_filename = "/tmp/tmp48h4w4ju.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @string_ge(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i32 0, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = call i64 @strcmp(ptr noundef %7, ptr noundef %8)
%10 = icmp sge i64 %9, 0
%11 = zext i1 %10 to i32
ret i32 %11
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp48h4w4ju.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @string_ge(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i32 0, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = call i64 @strcmp(ptr noundef %7, ptr noundef %8)
%10 = icmp sge i64 %9, 0
%11 = zext i1 %10 to i32
ret i32 %11
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp77c96tae.c'
source_filename = "/tmp/tmp77c96tae.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_file_name_from_path(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = call i32 @strlen(ptr noundef %5)
%7 = sub nsw i32 %6, 1
store i32 %7, ptr %4, align 4
br label %8
8: ; preds = %26, %1
%9 = load i32, ptr %4, align 4
%10 = icmp sgt i32 %9, 0
br i1 %10, label %11, label %29
11: ; preds = %8
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %4, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 47
br i1 %18, label %19, label %25
19: ; preds = %11
%20 = load ptr, ptr %3, align 8
%21 = load i32, ptr %4, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
%24 = getelementptr inbounds i8, ptr %23, i64 1
store ptr %24, ptr %2, align 8
br label %31
25: ; preds = %11
br label %26
26: ; preds = %25
%27 = load i32, ptr %4, align 4
%28 = add nsw i32 %27, -1
store i32 %28, ptr %4, align 4
br label %8, !llvm.loop !6
29: ; preds = %8
%30 = load ptr, ptr %3, align 8
store ptr %30, ptr %2, align 8
br label %31
31: ; preds = %29, %19
%32 = load ptr, ptr %2, align 8
ret ptr %32
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp77c96tae.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_file_name_from_path(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = call i32 @strlen(ptr noundef %5)
%7 = sub nsw i32 %6, 1
store i32 %7, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp sgt i32 %8, 0
br i1 %9, label %.lr.ph, label %30
.lr.ph: ; preds = %1
br label %10
10: ; preds = %.lr.ph, %25
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %4, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %11, i64 %13
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 47
br i1 %17, label %18, label %24
18: ; preds = %10
%19 = load ptr, ptr %3, align 8
%20 = load i32, ptr %4, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
%23 = getelementptr inbounds i8, ptr %22, i64 1
store ptr %23, ptr %2, align 8
br label %32
24: ; preds = %10
br label %25
25: ; preds = %24
%26 = load i32, ptr %4, align 4
%27 = add nsw i32 %26, -1
store i32 %27, ptr %4, align 4
%28 = load i32, ptr %4, align 4
%29 = icmp sgt i32 %28, 0
br i1 %29, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %30
30: ; preds = %._crit_edge, %1
%31 = load ptr, ptr %3, align 8
store ptr %31, ptr %2, align 8
br label %32
32: ; preds = %30, %18
%33 = load ptr, ptr %2, align 8
ret ptr %33
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpnbj4r95o.c'
source_filename = "/tmp/tmpnbj4r95o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnbj4r95o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplzz58n0h.c'
source_filename = "/tmp/tmplzz58n0h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = 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 i32, align 4
%2 = alloca [1000 x i8], align 16
%3 = alloca [1000 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca [1000 x i32], align 16
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
%9 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %4)
br label %10
10: ; preds = %45, %0
%11 = load i32, ptr %4, align 4
%12 = add nsw i32 %11, -1
store i32 %12, ptr %4, align 4
%13 = icmp ne i32 %11, 0
br i1 %13, label %14, label %46
14: ; preds = %10
%15 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2)
%16 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %8)
%17 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 0
%18 = call i32 @strlen(ptr noundef %17)
store i32 %18, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %19
19: ; preds = %28, %14
%20 = load i32, ptr %7, align 4
%21 = load i32, ptr %8, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %31
23: ; preds = %19
%24 = load i32, ptr %7, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [1000 x i32], ptr %5, i64 0, i64 %25
%27 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %26)
br label %28
28: ; preds = %23
%29 = load i32, ptr %7, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %7, align 4
br label %19, !llvm.loop !6
31: ; preds = %19
%32 = load i32, ptr %6, align 4
%33 = icmp slt i32 %32, 20
br i1 %33, label %34, label %42
34: ; preds = %31
%35 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 0
%36 = load i32, ptr %6, align 4
%37 = getelementptr inbounds [1000 x i32], ptr %5, i64 0, i64 0
%38 = load i32, ptr %8, align 4
%39 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%40 = call ptr @permute(ptr noundef %35, i32 noundef 0, i32 noundef %36, ptr noundef %37, i32 noundef %38, ptr noundef %39)
%41 = call i32 @printf(ptr noundef @.str.2, ptr noundef %40)
br label %45
42: ; preds = %31
%43 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 0
%44 = call i32 @printf(ptr noundef @.str.2, ptr noundef %43)
br label %45
45: ; preds = %42, %34
br label %10, !llvm.loop !8
46: ; preds = %10
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @permute(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplzz58n0h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = 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 i32, align 4
%2 = alloca [1000 x i8], align 16
%3 = alloca [1000 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca [1000 x i32], align 16
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
%9 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %4)
%10 = load i32, ptr %4, align 4
%11 = add nsw i32 %10, -1
store i32 %11, ptr %4, align 4
%12 = icmp ne i32 %10, 0
br i1 %12, label %.lr.ph2, label %50
.lr.ph2: ; preds = %0
br label %13
13: ; preds = %.lr.ph2, %46
%14 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2)
%15 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %8)
%16 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 0
%17 = call i32 @strlen(ptr noundef %16)
store i32 %17, ptr %6, align 4
store i32 0, ptr %7, align 4
%18 = load i32, ptr %7, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %.lr.ph, label %32
.lr.ph: ; preds = %13
br label %21
21: ; preds = %.lr.ph, %26
%22 = load i32, ptr %7, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [1000 x i32], ptr %5, i64 0, i64 %23
%25 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %24)
br label %26
26: ; preds = %21
%27 = load i32, ptr %7, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %7, align 4
%29 = load i32, ptr %7, align 4
%30 = load i32, ptr %8, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %32
32: ; preds = %._crit_edge, %13
%33 = load i32, ptr %6, align 4
%34 = icmp slt i32 %33, 20
br i1 %34, label %35, label %43
35: ; preds = %32
%36 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 0
%37 = load i32, ptr %6, align 4
%38 = getelementptr inbounds [1000 x i32], ptr %5, i64 0, i64 0
%39 = load i32, ptr %8, align 4
%40 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%41 = call ptr @permute(ptr noundef %36, i32 noundef 0, i32 noundef %37, ptr noundef %38, i32 noundef %39, ptr noundef %40)
%42 = call i32 @printf(ptr noundef @.str.2, ptr noundef %41)
br label %46
43: ; preds = %32
%44 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 0
%45 = call i32 @printf(ptr noundef @.str.2, ptr noundef %44)
br label %46
46: ; preds = %43, %35
%47 = load i32, ptr %4, align 4
%48 = add nsw i32 %47, -1
store i32 %48, ptr %4, align 4
%49 = icmp ne i32 %47, 0
br i1 %49, label %13, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %46
br label %50
50: ; preds = %._crit_edge3, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @permute(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmphfsi55f8.c'
source_filename = "/tmp/tmphfsi55f8.c"
target datalayout = "e-m:e-p270: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.test1.grid = private unnamed_addr constant [5 x [5 x i32]] [[5 x i32] [i32 1, i32 1, i32 0, i32 0, i32 0], [5 x i32] [i32 0, i32 1, i32 1, i32 0, i32 0], [5 x i32] [i32 0, i32 0, i32 1, i32 0, i32 1], [5 x i32] [i32 1, i32 0, i32 0, i32 0, i32 1], [5 x i32] [i32 0, i32 1, i32 0, i32 1, i32 1]], align 16
@.str = private unnamed_addr constant [12 x i8] c"test1 done\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test1() #0 {
%1 = alloca [5 x [5 x i32]], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.test1.grid, i64 100, i1 false)
%2 = getelementptr inbounds [5 x [5 x i32]], ptr %1, i64 0, i64 0
%3 = call i32 @blob_count(ptr noundef %2, i32 noundef 1, i32 noundef 0)
%4 = icmp eq i32 %3, 0
%5 = zext i1 %4 to i32
%6 = call i32 @assert(i32 noundef %5)
%7 = getelementptr inbounds [5 x [5 x i32]], ptr %1, i64 0, i64 0
%8 = call i32 @blob_count(ptr noundef %7, i32 noundef 3, i32 noundef 3)
%9 = icmp eq i32 %8, 0
%10 = zext i1 %9 to i32
%11 = call i32 @assert(i32 noundef %10)
%12 = getelementptr inbounds [5 x [5 x i32]], ptr %1, i64 0, i64 0
%13 = call i32 @blob_count(ptr noundef %12, i32 noundef 5, i32 noundef 0)
%14 = icmp eq i32 %13, 0
%15 = zext i1 %14 to i32
%16 = call i32 @assert(i32 noundef %15)
%17 = getelementptr inbounds [5 x [5 x i32]], ptr %1, i64 0, i64 0
%18 = call i32 @blob_count(ptr noundef %17, i32 noundef -1, i32 noundef 0)
%19 = icmp eq i32 %18, 0
%20 = zext i1 %19 to i32
%21 = call i32 @assert(i32 noundef %20)
%22 = getelementptr inbounds [5 x [5 x i32]], ptr %1, i64 0, i64 0
%23 = call i32 @blob_count(ptr noundef %22, i32 noundef 0, i32 noundef 5)
%24 = icmp eq i32 %23, 0
%25 = zext i1 %24 to i32
%26 = call i32 @assert(i32 noundef %25)
%27 = getelementptr inbounds [5 x [5 x i32]], ptr %1, i64 0, i64 0
%28 = call i32 @blob_count(ptr noundef %27, i32 noundef 0, i32 noundef -1)
%29 = icmp eq i32 %28, 0
%30 = zext i1 %29 to i32
%31 = call i32 @assert(i32 noundef %30)
%32 = getelementptr inbounds [5 x [5 x i32]], ptr %1, i64 0, i64 0
%33 = call i32 @blob_count(ptr noundef %32, i32 noundef 1, i32 noundef 1)
%34 = icmp eq i32 %33, 5
%35 = zext i1 %34 to i32
%36 = call i32 @assert(i32 noundef %35)
%37 = getelementptr inbounds [5 x [5 x i32]], ptr %1, i64 0, i64 0
%38 = call i32 @blob_count(ptr noundef %37, i32 noundef 1, i32 noundef 1)
%39 = icmp eq i32 %38, 0
%40 = zext i1 %39 to i32
%41 = call i32 @assert(i32 noundef %40)
%42 = call i32 @printf(ptr noundef @.str)
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 @assert(i32 noundef) #2
declare i32 @blob_count(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @printf(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphfsi55f8.c"
target datalayout = "e-m:e-p270: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.test1.grid = private unnamed_addr constant [5 x [5 x i32]] [[5 x i32] [i32 1, i32 1, i32 0, i32 0, i32 0], [5 x i32] [i32 0, i32 1, i32 1, i32 0, i32 0], [5 x i32] [i32 0, i32 0, i32 1, i32 0, i32 1], [5 x i32] [i32 1, i32 0, i32 0, i32 0, i32 1], [5 x i32] [i32 0, i32 1, i32 0, i32 1, i32 1]], align 16
@.str = private unnamed_addr constant [12 x i8] c"test1 done\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test1() #0 {
%1 = alloca [5 x [5 x i32]], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.test1.grid, i64 100, i1 false)
%2 = getelementptr inbounds [5 x [5 x i32]], ptr %1, i64 0, i64 0
%3 = call i32 @blob_count(ptr noundef %2, i32 noundef 1, i32 noundef 0)
%4 = icmp eq i32 %3, 0
%5 = zext i1 %4 to i32
%6 = call i32 @assert(i32 noundef %5)
%7 = getelementptr inbounds [5 x [5 x i32]], ptr %1, i64 0, i64 0
%8 = call i32 @blob_count(ptr noundef %7, i32 noundef 3, i32 noundef 3)
%9 = icmp eq i32 %8, 0
%10 = zext i1 %9 to i32
%11 = call i32 @assert(i32 noundef %10)
%12 = getelementptr inbounds [5 x [5 x i32]], ptr %1, i64 0, i64 0
%13 = call i32 @blob_count(ptr noundef %12, i32 noundef 5, i32 noundef 0)
%14 = icmp eq i32 %13, 0
%15 = zext i1 %14 to i32
%16 = call i32 @assert(i32 noundef %15)
%17 = getelementptr inbounds [5 x [5 x i32]], ptr %1, i64 0, i64 0
%18 = call i32 @blob_count(ptr noundef %17, i32 noundef -1, i32 noundef 0)
%19 = icmp eq i32 %18, 0
%20 = zext i1 %19 to i32
%21 = call i32 @assert(i32 noundef %20)
%22 = getelementptr inbounds [5 x [5 x i32]], ptr %1, i64 0, i64 0
%23 = call i32 @blob_count(ptr noundef %22, i32 noundef 0, i32 noundef 5)
%24 = icmp eq i32 %23, 0
%25 = zext i1 %24 to i32
%26 = call i32 @assert(i32 noundef %25)
%27 = getelementptr inbounds [5 x [5 x i32]], ptr %1, i64 0, i64 0
%28 = call i32 @blob_count(ptr noundef %27, i32 noundef 0, i32 noundef -1)
%29 = icmp eq i32 %28, 0
%30 = zext i1 %29 to i32
%31 = call i32 @assert(i32 noundef %30)
%32 = getelementptr inbounds [5 x [5 x i32]], ptr %1, i64 0, i64 0
%33 = call i32 @blob_count(ptr noundef %32, i32 noundef 1, i32 noundef 1)
%34 = icmp eq i32 %33, 5
%35 = zext i1 %34 to i32
%36 = call i32 @assert(i32 noundef %35)
%37 = getelementptr inbounds [5 x [5 x i32]], ptr %1, i64 0, i64 0
%38 = call i32 @blob_count(ptr noundef %37, i32 noundef 1, i32 noundef 1)
%39 = icmp eq i32 %38, 0
%40 = zext i1 %39 to i32
%41 = call i32 @assert(i32 noundef %40)
%42 = call i32 @printf(ptr noundef @.str)
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 @assert(i32 noundef) #2
declare i32 @blob_count(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @printf(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp172_3219.c'
source_filename = "/tmp/tmp172_3219.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @start()
%3 = call i32 @calculate_pi_1(i32 noundef 10000)
%4 = call i32 @calculate_pi_2(i32 noundef 100000)
%5 = call i32 (...) @stop()
ret i32 0
}
declare i32 @start(...) #1
declare i32 @calculate_pi_1(i32 noundef) #1
declare i32 @calculate_pi_2(i32 noundef) #1
declare i32 @stop(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp172_3219.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @start()
%3 = call i32 @calculate_pi_1(i32 noundef 10000)
%4 = call i32 @calculate_pi_2(i32 noundef 100000)
%5 = call i32 (...) @stop()
ret i32 0
}
declare i32 @start(...) #1
declare i32 @calculate_pi_1(i32 noundef) #1
declare i32 @calculate_pi_2(i32 noundef) #1
declare i32 @stop(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpi76k1cdl.c'
source_filename = "/tmp/tmpi76k1cdl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [10 x i8] c"Case %d: \00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"Output Format Error\0A\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"Yes\0A\00", align 1
@.str.4 = private unnamed_addr constant [14 x i8] c"Wrong Answer\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [102 x i8], align 16
%7 = alloca [102 x i8], align 16
%8 = alloca [102 x i8], align 16
%9 = alloca [102 x i8], align 16
store i32 0, ptr %1, align 4
%10 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%11 = getelementptr inbounds [102 x i8], ptr %9, i64 0, i64 0
%12 = load i32, ptr @stdin, align 4
%13 = call i32 @fgets(ptr noundef %11, i32 noundef 102, i32 noundef %12)
store i32 1, ptr %3, align 4
br label %14
14: ; preds = %78, %0
%15 = load i32, ptr %3, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp sle i32 %15, %16
br i1 %17, label %18, label %81
18: ; preds = %14
%19 = getelementptr inbounds [102 x i8], ptr %7, i64 0, i64 0
%20 = load i32, ptr @stdin, align 4
%21 = call i32 @fgets(ptr noundef %19, i32 noundef 102, i32 noundef %20)
%22 = getelementptr inbounds [102 x i8], ptr %7, i64 0, i64 0
%23 = call i32 @strlen(ptr noundef %22)
store i32 %23, ptr %5, align 4
%24 = load i32, ptr %5, align 4
%25 = sub nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [102 x i8], ptr %7, i64 0, i64 %26
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 10
br i1 %30, label %31, label %38
31: ; preds = %18
%32 = load i32, ptr %5, align 4
%33 = sub nsw i32 %32, 1
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [102 x i8], ptr %7, i64 0, i64 %34
store i8 0, ptr %35, align 1
%36 = load i32, ptr %5, align 4
%37 = add nsw i32 %36, -1
store i32 %37, ptr %5, align 4
br label %38
38: ; preds = %31, %18
%39 = getelementptr inbounds [102 x i8], ptr %6, i64 0, i64 0
%40 = load i32, ptr @stdin, align 4
%41 = call i32 @fgets(ptr noundef %39, i32 noundef 102, i32 noundef %40)
%42 = getelementptr inbounds [102 x i8], ptr %6, i64 0, i64 0
%43 = call i32 @strlen(ptr noundef %42)
store i32 %43, ptr %5, align 4
%44 = load i32, ptr %5, align 4
%45 = sub nsw i32 %44, 1
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [102 x i8], ptr %6, i64 0, i64 %46
%48 = load i8, ptr %47, align 1
%49 = sext i8 %48 to i32
%50 = icmp eq i32 %49, 10
br i1 %50, label %51, label %58
51: ; preds = %38
%52 = load i32, ptr %5, align 4
%53 = sub nsw i32 %52, 1
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [102 x i8], ptr %6, i64 0, i64 %54
store i8 0, ptr %55, align 1
%56 = load i32, ptr %5, align 4
%57 = add nsw i32 %56, -1
store i32 %57, ptr %5, align 4
br label %58
58: ; preds = %51, %38
%59 = getelementptr inbounds [102 x i8], ptr %7, i64 0, i64 0
%60 = getelementptr inbounds [102 x i8], ptr %8, i64 0, i64 0
%61 = call i32 @removeSpace(ptr noundef %59, ptr noundef %60)
store i32 %61, ptr %4, align 4
%62 = load i32, ptr %3, align 4
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %62)
%64 = getelementptr inbounds [102 x i8], ptr %6, i64 0, i64 0
%65 = getelementptr inbounds [102 x i8], ptr %8, i64 0, i64 0
%66 = call i64 @strcmp(ptr noundef %64, ptr noundef %65)
%67 = icmp eq i64 %66, 0
br i1 %67, label %68, label %76
68: ; preds = %58
%69 = load i32, ptr %4, align 4
%70 = icmp ne i32 %69, 0
br i1 %70, label %71, label %73
71: ; preds = %68
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %75
73: ; preds = %68
%74 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %75
75: ; preds = %73, %71
br label %78
76: ; preds = %58
%77 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %78
78: ; preds = %76, %75
%79 = load i32, ptr %3, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %3, align 4
br label %14, !llvm.loop !6
81: ; preds = %14
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @removeSpace(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi76k1cdl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [10 x i8] c"Case %d: \00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"Output Format Error\0A\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"Yes\0A\00", align 1
@.str.4 = private unnamed_addr constant [14 x i8] c"Wrong Answer\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [102 x i8], align 16
%7 = alloca [102 x i8], align 16
%8 = alloca [102 x i8], align 16
%9 = alloca [102 x i8], align 16
store i32 0, ptr %1, align 4
%10 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%11 = getelementptr inbounds [102 x i8], ptr %9, i64 0, i64 0
%12 = load i32, ptr @stdin, align 4
%13 = call i32 @fgets(ptr noundef %11, i32 noundef 102, i32 noundef %12)
store i32 1, ptr %3, align 4
%14 = load i32, ptr %3, align 4
%15 = load i32, ptr %2, align 4
%16 = icmp sle i32 %14, %15
br i1 %16, label %.lr.ph, label %83
.lr.ph: ; preds = %0
br label %17
17: ; preds = %.lr.ph, %77
%18 = getelementptr inbounds [102 x i8], ptr %7, i64 0, i64 0
%19 = load i32, ptr @stdin, align 4
%20 = call i32 @fgets(ptr noundef %18, i32 noundef 102, i32 noundef %19)
%21 = getelementptr inbounds [102 x i8], ptr %7, i64 0, i64 0
%22 = call i32 @strlen(ptr noundef %21)
store i32 %22, ptr %5, align 4
%23 = load i32, ptr %5, align 4
%24 = sub nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [102 x i8], ptr %7, i64 0, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %28, 10
br i1 %29, label %30, label %37
30: ; preds = %17
%31 = load i32, ptr %5, align 4
%32 = sub nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [102 x i8], ptr %7, i64 0, i64 %33
store i8 0, ptr %34, align 1
%35 = load i32, ptr %5, align 4
%36 = add nsw i32 %35, -1
store i32 %36, ptr %5, align 4
br label %37
37: ; preds = %30, %17
%38 = getelementptr inbounds [102 x i8], ptr %6, i64 0, i64 0
%39 = load i32, ptr @stdin, align 4
%40 = call i32 @fgets(ptr noundef %38, i32 noundef 102, i32 noundef %39)
%41 = getelementptr inbounds [102 x i8], ptr %6, i64 0, i64 0
%42 = call i32 @strlen(ptr noundef %41)
store i32 %42, ptr %5, align 4
%43 = load i32, ptr %5, align 4
%44 = sub nsw i32 %43, 1
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [102 x i8], ptr %6, i64 0, i64 %45
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = icmp eq i32 %48, 10
br i1 %49, label %50, label %57
50: ; preds = %37
%51 = load i32, ptr %5, align 4
%52 = sub nsw i32 %51, 1
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [102 x i8], ptr %6, i64 0, i64 %53
store i8 0, ptr %54, align 1
%55 = load i32, ptr %5, align 4
%56 = add nsw i32 %55, -1
store i32 %56, ptr %5, align 4
br label %57
57: ; preds = %50, %37
%58 = getelementptr inbounds [102 x i8], ptr %7, i64 0, i64 0
%59 = getelementptr inbounds [102 x i8], ptr %8, i64 0, i64 0
%60 = call i32 @removeSpace(ptr noundef %58, ptr noundef %59)
store i32 %60, ptr %4, align 4
%61 = load i32, ptr %3, align 4
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %61)
%63 = getelementptr inbounds [102 x i8], ptr %6, i64 0, i64 0
%64 = getelementptr inbounds [102 x i8], ptr %8, i64 0, i64 0
%65 = call i64 @strcmp(ptr noundef %63, ptr noundef %64)
%66 = icmp eq i64 %65, 0
br i1 %66, label %67, label %75
67: ; preds = %57
%68 = load i32, ptr %4, align 4
%69 = icmp ne i32 %68, 0
br i1 %69, label %70, label %72
70: ; preds = %67
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %74
72: ; preds = %67
%73 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %74
74: ; preds = %72, %70
br label %77
75: ; preds = %57
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %77
77: ; preds = %75, %74
%78 = load i32, ptr %3, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %3, align 4
%80 = load i32, ptr %3, align 4
%81 = load i32, ptr %2, align 4
%82 = icmp sle i32 %80, %81
br i1 %82, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %77
br label %83
83: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @removeSpace(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpsifj6aqj.c'
source_filename = "/tmp/tmpsifj6aqj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test14() #0 {
%1 = alloca i32, align 4
%2 = atomicrmw min ptr %1, i32 1 seq_cst, align 4
store i32 %2, ptr %1, 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/tmpsifj6aqj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test14() #0 {
%1 = alloca i32, align 4
%2 = atomicrmw min ptr %1, i32 1 seq_cst, align 4
store i32 %2, ptr %1, 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/tmpc77q5ray.c'
source_filename = "/tmp/tmpc77q5ray.c"
target datalayout = "e-m:e-p270: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/tmpc77q5ray.c"
target datalayout = "e-m:e-p270: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/tmpztmujxzg.c'
source_filename = "/tmp/tmpztmujxzg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"c:\00", align 1
@optarg = dso_local global ptr null, align 8
@optind = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [7 x i8] c"create\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [27 x i8] c"E: No config was provided\0A\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"E: No LAR name was given\0A\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"show\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr null, ptr %6, align 8
br label %8
8: ; preds = %2, %21
%9 = load i32, ptr %4, align 4
%10 = load ptr, ptr %5, align 8
%11 = call i32 @getopt(i32 noundef %9, ptr noundef %10, ptr noundef @.str)
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %7, align 4
%13 = icmp eq i32 %12, -1
br i1 %13, label %14, label %15
14: ; preds = %8
br label %22
15: ; preds = %8
%16 = load i32, ptr %7, align 4
switch i32 %16, label %19 [
i32 99, label %17
]
17: ; preds = %15
%18 = load ptr, ptr @optarg, align 8
store ptr %18, ptr %6, align 8
br label %21
19: ; preds = %15
%20 = call i32 (...) @usage()
store i32 -1, ptr %3, align 4
br label %90
21: ; preds = %17
br label %8
22: ; preds = %14
%23 = load i32, ptr @optind, align 4
%24 = load i32, ptr %4, align 4
%25 = icmp sge i32 %23, %24
br i1 %25, label %26, label %28
26: ; preds = %22
%27 = call i32 (...) @usage()
store i32 0, ptr %3, align 4
br label %90
28: ; preds = %22
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr @optind, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds ptr, ptr %29, i64 %31
%33 = load ptr, ptr %32, align 8
%34 = call i32 @strcmp(ptr noundef %33, ptr noundef @.str.1)
%35 = icmp ne i32 %34, 0
br i1 %35, label %61, label %36
36: ; preds = %28
%37 = load ptr, ptr %6, align 8
%38 = icmp eq ptr %37, null
br i1 %38, label %39, label %43
39: ; preds = %36
%40 = load i32, ptr @stderr, align 4
%41 = call i32 @fprintf(i32 noundef %40, ptr noundef @.str.2)
%42 = call i32 (...) @usage()
store i32 -1, ptr %3, align 4
br label %90
43: ; preds = %36
%44 = load i32, ptr @optind, align 4
%45 = add nsw i32 %44, 1
%46 = load i32, ptr %4, align 4
%47 = icmp sge i32 %45, %46
br i1 %47, label %48, label %52
48: ; preds = %43
%49 = load i32, ptr @stderr, align 4
%50 = call i32 @fprintf(i32 noundef %49, ptr noundef @.str.3)
%51 = call i32 (...) @usage()
store i32 -1, ptr %3, align 4
br label %90
52: ; preds = %43
%53 = load ptr, ptr %6, align 8
%54 = load ptr, ptr %5, align 8
%55 = load i32, ptr @optind, align 4
%56 = add nsw i32 %55, 1
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds ptr, ptr %54, i64 %57
%59 = load ptr, ptr %58, align 8
%60 = call i32 @create_lar_from_config(ptr noundef %53, ptr noundef %59)
br label %89
61: ; preds = %28
%62 = load ptr, ptr %5, align 8
%63 = load i32, ptr @optind, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds ptr, ptr %62, i64 %64
%66 = load ptr, ptr %65, align 8
%67 = call i32 @strcmp(ptr noundef %66, ptr noundef @.str.4)
%68 = icmp ne i32 %67, 0
br i1 %68, label %86, label %69
69: ; preds = %61
%70 = load i32, ptr @optind, align 4
%71 = add nsw i32 %70, 1
%72 = load i32, ptr %4, align 4
%73 = icmp sge i32 %71, %72
br i1 %73, label %74, label %78
74: ; preds = %69
%75 = load i32, ptr @stderr, align 4
%76 = call i32 @fprintf(i32 noundef %75, ptr noundef @.str.3)
%77 = call i32 (...) @usage()
store i32 -1, ptr %3, align 4
br label %90
78: ; preds = %69
%79 = load ptr, ptr %5, align 8
%80 = load i32, ptr @optind, align 4
%81 = add nsw i32 %80, 1
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds ptr, ptr %79, i64 %82
%84 = load ptr, ptr %83, align 8
%85 = call i32 @pbuilder_show_lar(ptr noundef %84)
br label %88
86: ; preds = %61
%87 = call i32 (...) @usage()
store i32 -1, ptr %3, align 4
br label %90
88: ; preds = %78
br label %89
89: ; preds = %88, %52
store i32 0, ptr %3, align 4
br label %90
90: ; preds = %89, %86, %74, %48, %39, %26, %19
%91 = load i32, ptr %3, align 4
ret i32 %91
}
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @usage(...) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @create_lar_from_config(ptr noundef, ptr noundef) #1
declare i32 @pbuilder_show_lar(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpztmujxzg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"c:\00", align 1
@optarg = dso_local global ptr null, align 8
@optind = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [7 x i8] c"create\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [27 x i8] c"E: No config was provided\0A\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"E: No LAR name was given\0A\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"show\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr null, ptr %6, align 8
%8 = load i32, ptr %4, align 4
%9 = load ptr, ptr %5, align 8
%10 = call i32 @getopt(i32 noundef %8, ptr noundef %9, ptr noundef @.str)
store i32 %10, ptr %7, align 4
%11 = load i32, ptr %7, align 4
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %.lr.ph
.lr.ph: ; preds = %2
br label %14
._crit_edge: ; preds = %20
br label %13
13: ; preds = %._crit_edge, %2
br label %26
14: ; preds = %.lr.ph, %20
%15 = load i32, ptr %7, align 4
switch i32 %15, label %18 [
i32 99, label %16
]
16: ; preds = %14
%17 = load ptr, ptr @optarg, align 8
store ptr %17, ptr %6, align 8
br label %20
18: ; preds = %14
%19 = call i32 (...) @usage()
store i32 -1, ptr %3, align 4
br label %94
20: ; preds = %16
%21 = load i32, ptr %4, align 4
%22 = load ptr, ptr %5, align 8
%23 = call i32 @getopt(i32 noundef %21, ptr noundef %22, ptr noundef @.str)
store i32 %23, ptr %7, align 4
%24 = load i32, ptr %7, align 4
%25 = icmp eq i32 %24, -1
br i1 %25, label %._crit_edge, label %14
26: ; preds = %13
%27 = load i32, ptr @optind, align 4
%28 = load i32, ptr %4, align 4
%29 = icmp sge i32 %27, %28
br i1 %29, label %30, label %32
30: ; preds = %26
%31 = call i32 (...) @usage()
store i32 0, ptr %3, align 4
br label %94
32: ; preds = %26
%33 = load ptr, ptr %5, align 8
%34 = load i32, ptr @optind, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds ptr, ptr %33, i64 %35
%37 = load ptr, ptr %36, align 8
%38 = call i32 @strcmp(ptr noundef %37, ptr noundef @.str.1)
%39 = icmp ne i32 %38, 0
br i1 %39, label %65, label %40
40: ; preds = %32
%41 = load ptr, ptr %6, align 8
%42 = icmp eq ptr %41, null
br i1 %42, label %43, label %47
43: ; preds = %40
%44 = load i32, ptr @stderr, align 4
%45 = call i32 @fprintf(i32 noundef %44, ptr noundef @.str.2)
%46 = call i32 (...) @usage()
store i32 -1, ptr %3, align 4
br label %94
47: ; preds = %40
%48 = load i32, ptr @optind, align 4
%49 = add nsw i32 %48, 1
%50 = load i32, ptr %4, align 4
%51 = icmp sge i32 %49, %50
br i1 %51, label %52, label %56
52: ; preds = %47
%53 = load i32, ptr @stderr, align 4
%54 = call i32 @fprintf(i32 noundef %53, ptr noundef @.str.3)
%55 = call i32 (...) @usage()
store i32 -1, ptr %3, align 4
br label %94
56: ; preds = %47
%57 = load ptr, ptr %6, align 8
%58 = load ptr, ptr %5, align 8
%59 = load i32, ptr @optind, align 4
%60 = add nsw i32 %59, 1
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds ptr, ptr %58, i64 %61
%63 = load ptr, ptr %62, align 8
%64 = call i32 @create_lar_from_config(ptr noundef %57, ptr noundef %63)
br label %93
65: ; preds = %32
%66 = load ptr, ptr %5, align 8
%67 = load i32, ptr @optind, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds ptr, ptr %66, i64 %68
%70 = load ptr, ptr %69, align 8
%71 = call i32 @strcmp(ptr noundef %70, ptr noundef @.str.4)
%72 = icmp ne i32 %71, 0
br i1 %72, label %90, label %73
73: ; preds = %65
%74 = load i32, ptr @optind, align 4
%75 = add nsw i32 %74, 1
%76 = load i32, ptr %4, align 4
%77 = icmp sge i32 %75, %76
br i1 %77, label %78, label %82
78: ; preds = %73
%79 = load i32, ptr @stderr, align 4
%80 = call i32 @fprintf(i32 noundef %79, ptr noundef @.str.3)
%81 = call i32 (...) @usage()
store i32 -1, ptr %3, align 4
br label %94
82: ; preds = %73
%83 = load ptr, ptr %5, align 8
%84 = load i32, ptr @optind, align 4
%85 = add nsw i32 %84, 1
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds ptr, ptr %83, i64 %86
%88 = load ptr, ptr %87, align 8
%89 = call i32 @pbuilder_show_lar(ptr noundef %88)
br label %92
90: ; preds = %65
%91 = call i32 (...) @usage()
store i32 -1, ptr %3, align 4
br label %94
92: ; preds = %82
br label %93
93: ; preds = %92, %56
store i32 0, ptr %3, align 4
br label %94
94: ; preds = %93, %90, %78, %52, %43, %30, %18
%95 = load i32, ptr %3, align 4
ret i32 %95
}
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @usage(...) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @create_lar_from_config(ptr noundef, ptr noundef) #1
declare i32 @pbuilder_show_lar(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6y16vvkj.c'
source_filename = "/tmp/tmp6y16vvkj.c"
target datalayout = "e-m:e-p270: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
@.str = private unnamed_addr constant [5 x i8] c"open\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(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 i64, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 0, ptr %7, align 8
store i64 32, ptr %8, align 8
%10 = load i64, ptr %8, align 8
%11 = call ptr @malloc(i64 noundef %10)
store ptr %11, ptr %9, align 8
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %12, 2
br i1 %13, label %14, label %19
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 0
%17 = load ptr, ptr %16, align 8
%18 = call i32 @usage(ptr noundef %17)
store i32 1, ptr %3, align 4
br label %66
19: ; preds = %2
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = load i32, ptr @O_RDONLY, align 4
%24 = call i32 @open(ptr noundef %22, i32 noundef %23)
store i32 %24, ptr %6, align 4
%25 = load i32, ptr %6, align 4
%26 = icmp slt i32 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %19
%28 = call i32 @perror(ptr noundef @.str)
store i32 2, ptr %3, align 4
br label %66
29: ; preds = %19
br label %30
30: ; preds = %58, %29
%31 = load i32, ptr %6, align 4
%32 = load ptr, ptr %9, align 8
%33 = load i64, ptr %8, align 8
%34 = call i64 @readline(i32 noundef %31, ptr noundef %32, i64 noundef %33)
store i64 %34, ptr %7, align 8
%35 = icmp ugt i64 %34, 0
br i1 %35, label %36, label %59
36: ; preds = %30
%37 = load i64, ptr %7, align 8
%38 = load i64, ptr %8, align 8
%39 = icmp ule i64 %37, %38
br i1 %39, label %40, label %47
40: ; preds = %36
%41 = load ptr, ptr %9, align 8
%42 = load i64, ptr %7, align 8
%43 = add i64 %42, 1
%44 = getelementptr inbounds i8, ptr %41, i64 %43
store i8 0, ptr %44, align 1
%45 = load ptr, ptr %9, align 8
%46 = call i32 @printf(ptr noundef @.str.1, ptr noundef %45)
br label %58
47: ; preds = %36
%48 = load ptr, ptr %9, align 8
%49 = call i32 @free(ptr noundef %48)
%50 = load i64, ptr %8, align 8
%51 = mul i64 %50, 2
store i64 %51, ptr %8, align 8
%52 = load i64, ptr %8, align 8
%53 = call ptr @malloc(i64 noundef %52)
store ptr %53, ptr %9, align 8
%54 = load ptr, ptr %9, align 8
%55 = icmp eq ptr %54, null
br i1 %55, label %56, label %57
56: ; preds = %47
br label %59
57: ; preds = %47
br label %58
58: ; preds = %57, %40
br label %30, !llvm.loop !6
59: ; preds = %56, %30
%60 = load ptr, ptr %9, align 8
%61 = call i32 @free(ptr noundef %60)
%62 = load i32, ptr %6, align 4
%63 = call i32 @close(i32 noundef %62)
%64 = load i64, ptr %7, align 8
%65 = trunc i64 %64 to i32
store i32 %65, ptr %3, align 4
br label %66
66: ; preds = %59, %27, %14
%67 = load i32, ptr %3, align 4
ret i32 %67
}
declare ptr @malloc(i64 noundef) #1
declare i32 @usage(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i64 @readline(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6y16vvkj.c"
target datalayout = "e-m:e-p270: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
@.str = private unnamed_addr constant [5 x i8] c"open\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(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 i64, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 0, ptr %7, align 8
store i64 32, ptr %8, align 8
%10 = load i64, ptr %8, align 8
%11 = call ptr @malloc(i64 noundef %10)
store ptr %11, ptr %9, align 8
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %12, 2
br i1 %13, label %14, label %19
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 0
%17 = load ptr, ptr %16, align 8
%18 = call i32 @usage(ptr noundef %17)
store i32 1, ptr %3, align 4
br label %70
19: ; preds = %2
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = load i32, ptr @O_RDONLY, align 4
%24 = call i32 @open(ptr noundef %22, i32 noundef %23)
store i32 %24, ptr %6, align 4
%25 = load i32, ptr %6, align 4
%26 = icmp slt i32 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %19
%28 = call i32 @perror(ptr noundef @.str)
store i32 2, ptr %3, align 4
br label %70
29: ; preds = %19
%30 = load i32, ptr %6, align 4
%31 = load ptr, ptr %9, align 8
%32 = load i64, ptr %8, align 8
%33 = call i64 @readline(i32 noundef %30, ptr noundef %31, i64 noundef %32)
store i64 %33, ptr %7, align 8
%34 = icmp ugt i64 %33, 0
br i1 %34, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %29
br label %35
35: ; preds = %.lr.ph, %57
%36 = load i64, ptr %7, align 8
%37 = load i64, ptr %8, align 8
%38 = icmp ule i64 %36, %37
br i1 %38, label %39, label %46
39: ; preds = %35
%40 = load ptr, ptr %9, align 8
%41 = load i64, ptr %7, align 8
%42 = add i64 %41, 1
%43 = getelementptr inbounds i8, ptr %40, i64 %42
store i8 0, ptr %43, align 1
%44 = load ptr, ptr %9, align 8
%45 = call i32 @printf(ptr noundef @.str.1, ptr noundef %44)
br label %57
46: ; preds = %35
%47 = load ptr, ptr %9, align 8
%48 = call i32 @free(ptr noundef %47)
%49 = load i64, ptr %8, align 8
%50 = mul i64 %49, 2
store i64 %50, ptr %8, align 8
%51 = load i64, ptr %8, align 8
%52 = call ptr @malloc(i64 noundef %51)
store ptr %52, ptr %9, align 8
%53 = load ptr, ptr %9, align 8
%54 = icmp eq ptr %53, null
br i1 %54, label %55, label %56
55: ; preds = %46
br label %63
56: ; preds = %46
br label %57
57: ; preds = %56, %39
%58 = load i32, ptr %6, align 4
%59 = load ptr, ptr %9, align 8
%60 = load i64, ptr %8, align 8
%61 = call i64 @readline(i32 noundef %58, ptr noundef %59, i64 noundef %60)
store i64 %61, ptr %7, align 8
%62 = icmp ugt i64 %61, 0
br i1 %62, label %35, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %57
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %29
br label %63
63: ; preds = %.loopexit, %55
%64 = load ptr, ptr %9, align 8
%65 = call i32 @free(ptr noundef %64)
%66 = load i32, ptr %6, align 4
%67 = call i32 @close(i32 noundef %66)
%68 = load i64, ptr %7, align 8
%69 = trunc i64 %68 to i32
store i32 %69, ptr %3, align 4
br label %70
70: ; preds = %63, %27, %14
%71 = load i32, ptr %3, align 4
ret i32 %71
}
declare ptr @malloc(i64 noundef) #1
declare i32 @usage(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i64 @readline(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp262tex0n.c'
source_filename = "/tmp/tmp262tex0n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @game_animscreen() #0 {
%1 = call i32 @RedrawPlayfield_EM(i32 noundef 0)
ret void
}
declare i32 @RedrawPlayfield_EM(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/tmp262tex0n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @game_animscreen() #0 {
%1 = call i32 @RedrawPlayfield_EM(i32 noundef 0)
ret void
}
declare i32 @RedrawPlayfield_EM(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/tmp7vjw8s_y.c'
source_filename = "/tmp/tmp7vjw8s_y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"/bin/chmod -R a+r /tmp/box/\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 @setuid(i32 noundef 0)
%3 = call i32 @system(ptr noundef @.str)
ret i32 0
}
declare i32 @setuid(i32 noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7vjw8s_y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"/bin/chmod -R a+r /tmp/box/\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 @setuid(i32 noundef 0)
%3 = call i32 @system(ptr noundef @.str)
ret i32 0
}
declare i32 @setuid(i32 noundef) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp25p25_4f.c'
source_filename = "/tmp/tmp25p25_4f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@srabin_checksum.first = internal global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @srabin_checksum(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = load i32, ptr @srabin_checksum.first, align 4
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %2
store i32 1, ptr @srabin_checksum.first, align 4
%10 = call i32 (...) @__init()
br label %11
11: ; preds = %9, %2
%12 = load ptr, ptr %3, align 8
%13 = getelementptr inbounds i8, ptr %12, i64 0
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
store i32 %15, ptr %6, align 4
store i32 1, ptr %5, align 4
br label %16
16: ; preds = %36, %11
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %4, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %39
20: ; preds = %16
%21 = load i32, ptr %6, align 4
%22 = shl i32 %21, 1
%23 = load ptr, ptr %3, align 8
%24 = load i32, ptr %5, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %23, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = add i32 %22, %28
store i32 %29, ptr %6, align 4
%30 = load i32, ptr %6, align 4
%31 = icmp ugt i32 %30, 65452197
br i1 %31, label %32, label %35
32: ; preds = %20
%33 = load i32, ptr %6, align 4
%34 = urem i32 %33, 65452197
store i32 %34, ptr %6, align 4
br label %35
35: ; preds = %32, %20
br label %36
36: ; preds = %35
%37 = load i32, ptr %5, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %5, align 4
br label %16, !llvm.loop !6
39: ; preds = %16
%40 = load i32, ptr %6, align 4
%41 = urem i32 %40, 65452197
ret i32 %41
}
declare i32 @__init(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp25p25_4f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@srabin_checksum.first = internal global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @srabin_checksum(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = load i32, ptr @srabin_checksum.first, align 4
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %2
store i32 1, ptr @srabin_checksum.first, align 4
%10 = call i32 (...) @__init()
br label %11
11: ; preds = %9, %2
%12 = load ptr, ptr %3, align 8
%13 = getelementptr inbounds i8, ptr %12, i64 0
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
store i32 %15, ptr %6, align 4
store i32 1, ptr %5, align 4
%16 = load i32, ptr %5, align 4
%17 = load i32, ptr %4, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %.lr.ph, label %41
.lr.ph: ; preds = %11
br label %19
19: ; preds = %.lr.ph, %35
%20 = load i32, ptr %6, align 4
%21 = shl i32 %20, 1
%22 = load ptr, ptr %3, align 8
%23 = load i32, ptr %5, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %22, i64 %24
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = add i32 %21, %27
store i32 %28, ptr %6, align 4
%29 = load i32, ptr %6, align 4
%30 = icmp ugt i32 %29, 65452197
br i1 %30, label %31, label %34
31: ; preds = %19
%32 = load i32, ptr %6, align 4
%33 = urem i32 %32, 65452197
store i32 %33, ptr %6, align 4
br label %34
34: ; preds = %31, %19
br label %35
35: ; preds = %34
%36 = load i32, ptr %5, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %5, align 4
%38 = load i32, ptr %5, align 4
%39 = load i32, ptr %4, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %35
br label %41
41: ; preds = %._crit_edge, %11
%42 = load i32, ptr %6, align 4
%43 = urem i32 %42, 65452197
ret i32 %43
}
declare i32 @__init(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpwuu4k9fv.c'
source_filename = "/tmp/tmpwuu4k9fv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strchrnul(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = load i32, ptr %4, align 4
%8 = call ptr @strchr(ptr noundef %6, i32 noundef %7)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
br label %19
13: ; preds = %2
%14 = load ptr, ptr %3, align 8
%15 = load ptr, ptr %3, align 8
%16 = call i32 @strlen(ptr noundef %15)
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %14, i64 %17
br label %19
19: ; preds = %13, %11
%20 = phi ptr [ %12, %11 ], [ %18, %13 ]
ret ptr %20
}
declare ptr @strchr(ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwuu4k9fv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strchrnul(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%6 = load ptr, ptr %3, align 8
%7 = load i32, ptr %4, align 4
%8 = call ptr @strchr(ptr noundef %6, i32 noundef %7)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
br label %19
13: ; preds = %2
%14 = load ptr, ptr %3, align 8
%15 = load ptr, ptr %3, align 8
%16 = call i32 @strlen(ptr noundef %15)
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %14, i64 %17
br label %19
19: ; preds = %13, %11
%20 = phi ptr [ %12, %11 ], [ %18, %13 ]
ret ptr %20
}
declare ptr @strchr(ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5p6ie2kv.c'
source_filename = "/tmp/tmp5p6ie2kv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sigprocmask(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
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @pthread_sigmask(i32 noundef %7, ptr noundef %8, ptr noundef %9)
ret i32 %10
}
declare i32 @pthread_sigmask(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5p6ie2kv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sigprocmask(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
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @pthread_sigmask(i32 noundef %7, ptr noundef %8, ptr noundef %9)
ret i32 %10
}
declare i32 @pthread_sigmask(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3y4lvook.c'
source_filename = "/tmp/tmp3y4lvook.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @search(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%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
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %9
9: ; preds = %23, %3
%10 = load i32, ptr %8, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %26
13: ; preds = %9
%14 = load ptr, ptr %5, align 8
%15 = load i32, ptr %8, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i32, ptr %14, i64 %16
%18 = load i32, ptr %17, align 4
%19 = load i32, ptr %7, align 4
%20 = icmp eq i32 %18, %19
br i1 %20, label %21, label %22
21: ; preds = %13
store i32 1, ptr %4, align 4
br label %27
22: ; preds = %13
br label %23
23: ; preds = %22
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %8, align 4
br label %9, !llvm.loop !6
26: ; preds = %9
store i32 0, ptr %4, align 4
br label %27
27: ; preds = %26, %21
%28 = load i32, ptr %4, align 4
ret i32 %28
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3y4lvook.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @search(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%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
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
%9 = load i32, ptr %8, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %28
.lr.ph: ; preds = %3
br label %12
12: ; preds = %.lr.ph, %22
%13 = load ptr, ptr %5, align 8
%14 = load i32, ptr %8, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i32, ptr %13, i64 %15
%17 = load i32, ptr %16, align 4
%18 = load i32, ptr %7, align 4
%19 = icmp eq i32 %17, %18
br i1 %19, label %20, label %21
20: ; preds = %12
store i32 1, ptr %4, align 4
br label %29
21: ; preds = %12
br label %22
22: ; preds = %21
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %8, align 4
%25 = load i32, ptr %8, align 4
%26 = load i32, ptr %6, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %28
28: ; preds = %._crit_edge, %3
store i32 0, ptr %4, align 4
br label %29
29: ; preds = %28, %20
%30 = load i32, ptr %4, align 4
ret i32 %30
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpfw49ustx.c'
source_filename = "/tmp/tmpfw49ustx.c"
target datalayout = "e-m:e-p270: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 [19 x i8] c"usage: %s -f pcap\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfw49ustx.c"
target datalayout = "e-m:e-p270: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 [19 x i8] c"usage: %s -f pcap\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvxhmgezl.c'
source_filename = "/tmp/tmpvxhmgezl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @d_realloc(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = call ptr @d_malloc(i32 noundef %7)
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %12
11: ; preds = %2
store ptr null, ptr %3, align 8
br label %20
12: ; preds = %2
%13 = load ptr, ptr %6, align 8
%14 = load ptr, ptr %4, align 8
%15 = load i32, ptr %5, align 4
%16 = call i32 @memcpy(ptr noundef %13, ptr noundef %14, i32 noundef %15)
%17 = load ptr, ptr %4, align 8
%18 = call i32 @d_free(ptr noundef %17)
%19 = load ptr, ptr %6, align 8
store ptr %19, ptr %3, align 8
br label %20
20: ; preds = %12, %11
%21 = load ptr, ptr %3, align 8
ret ptr %21
}
declare ptr @d_malloc(i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @d_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/tmpvxhmgezl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @d_realloc(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = call ptr @d_malloc(i32 noundef %7)
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %12
11: ; preds = %2
store ptr null, ptr %3, align 8
br label %20
12: ; preds = %2
%13 = load ptr, ptr %6, align 8
%14 = load ptr, ptr %4, align 8
%15 = load i32, ptr %5, align 4
%16 = call i32 @memcpy(ptr noundef %13, ptr noundef %14, i32 noundef %15)
%17 = load ptr, ptr %4, align 8
%18 = call i32 @d_free(ptr noundef %17)
%19 = load ptr, ptr %6, align 8
store ptr %19, ptr %3, align 8
br label %20
20: ; preds = %12, %11
%21 = load ptr, ptr %3, align 8
ret ptr %21
}
declare ptr @d_malloc(i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @d_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/tmpd4j11kqv.c'
source_filename = "/tmp/tmpd4j11kqv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @f()
ret i32 %2
}
declare i32 @f(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpd4j11kqv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @f()
ret i32 %2
}
declare i32 @f(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxlh8njwi.c'
source_filename = "/tmp/tmpxlh8njwi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"Usage: %s [number].\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [43 x i8] c"%s process [%d]: %s is not a valid input.\0A\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"Error: pipe() failed.\0A\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"Error: fork() failed.\0A\00", align 1
@PATH_MAX = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [5 x i8] c"Beta\00", align 1
@.str.5 = private unnamed_addr constant [29 x i8] c"Error: %s can not be found.\0A\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.7 = private unnamed_addr constant [31 x i8] c"%s: forked process with ID %d\0A\00", align 1
@.str.8 = private unnamed_addr constant [40 x i8] c"%s: wrote number %d to pipe (%d bytes)\0A\00", align 1
@.str.9 = private unnamed_addr constant [39 x i8] c"%s: waiting on child process ID %d...\0A\00", align 1
@.str.10 = private unnamed_addr constant [35 x i8] c"%d is not even as %s returned %d.\0A\00", align 1
@.str.11 = private unnamed_addr constant [31 x i8] c"%d is even as %s returned %d.\0A\00", align 1
@.str.12 = private unnamed_addr constant [14 x i8] c"%s: exiting.\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 [2 x [2 x i32]], align 16
%10 = alloca [2 x i32], align 4
%11 = alloca [2 x i32], align 4
%12 = alloca [2 x i32], align 4
%13 = alloca [2 x i32], align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca i64, align 8
%17 = alloca ptr, align 8
%18 = alloca [21 x i8], align 16
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = 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
%22 = load i32, ptr %4, align 4
%23 = icmp ne i32 %22, 2
br i1 %23, label %24, label %29
24: ; preds = %2
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 0
%27 = load ptr, ptr %26, align 8
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %27)
store i32 -1, ptr %3, align 4
br label %231
29: ; preds = %2
%30 = call i32 (...) @getpid()
store i32 %30, ptr %6, align 4
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 1
%33 = load ptr, ptr %32, align 8
%34 = call i32 @strlen(ptr noundef %33)
store i32 %34, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %35
35: ; preds = %60, %29
%36 = load i32, ptr %8, align 4
%37 = load i32, ptr %7, align 4
%38 = icmp slt i32 %36, %37
br i1 %38, label %39, label %63
39: ; preds = %35
%40 = load ptr, ptr %5, align 8
%41 = getelementptr inbounds ptr, ptr %40, i64 1
%42 = load ptr, ptr %41, align 8
%43 = load i32, ptr %8, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, ptr %42, i64 %44
%46 = load i8, ptr %45, align 1
%47 = call i32 @isdigit(i8 noundef signext %46)
%48 = icmp ne i32 %47, 0
br i1 %48, label %59, label %49
49: ; preds = %39
%50 = load i32, ptr @stderr, align 4
%51 = load ptr, ptr %5, align 8
%52 = getelementptr inbounds ptr, ptr %51, i64 0
%53 = load ptr, ptr %52, align 8
%54 = load i32, ptr %6, align 4
%55 = load ptr, ptr %5, align 8
%56 = getelementptr inbounds ptr, ptr %55, i64 1
%57 = load ptr, ptr %56, align 8
%58 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %50, ptr noundef @.str.1, ptr noundef %53, i32 noundef %54, ptr noundef %57)
store i32 2, ptr %3, align 4
br label %231
59: ; preds = %39
br label %60
60: ; preds = %59
%61 = load i32, ptr %8, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %8, align 4
br label %35, !llvm.loop !6
63: ; preds = %35
%64 = load ptr, ptr %5, align 8
%65 = getelementptr inbounds ptr, ptr %64, i64 1
%66 = load ptr, ptr %65, align 8
%67 = call i32 @atoi(ptr noundef %66)
%68 = call i32 @srand(i32 noundef %67)
store i32 0, ptr %14, align 4
br label %69
69: ; preds = %182, %63
%70 = load i32, ptr %14, align 4
%71 = icmp slt i32 %70, 2
br i1 %71, label %72, label %185
72: ; preds = %69
%73 = load i32, ptr %14, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [2 x [2 x i32]], ptr %9, i64 0, i64 %74
%76 = getelementptr inbounds [2 x i32], ptr %75, i64 0, i64 0
%77 = call i32 @pipe(ptr noundef %76)
%78 = icmp eq i32 %77, -1
br i1 %78, label %79, label %83
79: ; preds = %72
%80 = load i32, ptr @stderr, align 4
%81 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %80, ptr noundef @.str.2)
%82 = call i32 @exit(i32 noundef 1) #4
unreachable
83: ; preds = %72
%84 = load i32, ptr %14, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 %85
store i32 -1, ptr %86, align 4
%87 = load i32, ptr %14, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [2 x [2 x i32]], ptr %9, i64 0, i64 %88
%90 = getelementptr inbounds [2 x i32], ptr %89, i64 0, i64 1
%91 = load i32, ptr %90, align 4
%92 = load i32, ptr %14, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 %93
%95 = call i32 @write(i32 noundef %91, ptr noundef %94, i32 noundef 4)
%96 = load i32, ptr %14, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [2 x i32], ptr %11, i64 0, i64 %97
store i32 %95, ptr %98, align 4
%99 = call i32 (...) @fork()
%100 = load i32, ptr %14, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 %101
store i32 %99, ptr %102, align 4
%103 = icmp eq i32 %99, -1
br i1 %103, label %104, label %107
104: ; preds = %83
%105 = load i32, ptr @stderr, align 4
%106 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %105, ptr noundef @.str.3)
store i32 1, ptr %3, align 4
br label %231
107: ; preds = %83
%108 = load i32, ptr %14, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 %109
%111 = load i32, ptr %110, align 4
%112 = icmp eq i32 %111, 0
br i1 %112, label %113, label %143
113: ; preds = %107
%114 = load i32, ptr @PATH_MAX, align 4
%115 = add nsw i32 %114, 1
%116 = zext i32 %115 to i64
%117 = call ptr @llvm.stacksave()
store ptr %117, ptr %15, align 8
%118 = alloca i8, i64 %116, align 16
store i64 %116, ptr %16, align 8
%119 = call ptr @realpath(ptr noundef @.str.4, ptr noundef %118)
store ptr %119, ptr %17, align 8
%120 = load ptr, ptr %17, align 8
%121 = icmp eq ptr %120, null
br i1 %121, label %122, label %126
122: ; preds = %113
%123 = load i32, ptr @stderr, align 4
%124 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %123, ptr noundef @.str.5, ptr noundef @.str.4)
%125 = call i32 @exit(i32 noundef 1) #4
unreachable
126: ; preds = %113
%127 = getelementptr inbounds [21 x i8], ptr %18, i64 0, i64 0
%128 = load i32, ptr %14, align 4
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds [2 x [2 x i32]], ptr %9, i64 0, i64 %129
%131 = getelementptr inbounds [2 x i32], ptr %130, i64 0, i64 0
%132 = load i32, ptr %131, align 8
%133 = call i32 @sprintf(ptr noundef %127, ptr noundef @.str.6, i32 noundef %132)
%134 = load ptr, ptr %17, align 8
%135 = getelementptr inbounds [21 x i8], ptr %18, i64 0, i64 0
%136 = load ptr, ptr %5, align 8
%137 = getelementptr inbounds ptr, ptr %136, i64 1
%138 = load ptr, ptr %137, align 8
%139 = call i32 @execl(ptr noundef %134, ptr noundef @.str.4, ptr noundef %135, ptr noundef %138, ptr noundef null)
%140 = load ptr, ptr %17, align 8
%141 = call i32 @free(ptr noundef %140)
%142 = load ptr, ptr %15, align 8
call void @llvm.stackrestore(ptr %142)
br label %181
143: ; preds = %107
%144 = call i32 (...) @rand()
%145 = srem i32 %144, 100000
%146 = load i32, ptr %14, align 4
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 %147
store i32 %145, ptr %148, align 4
%149 = load i32, ptr %14, align 4
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds [2 x [2 x i32]], ptr %9, i64 0, i64 %150
%152 = getelementptr inbounds [2 x i32], ptr %151, i64 0, i64 1
%153 = load i32, ptr %152, align 4
%154 = load i32, ptr %14, align 4
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 %155
%157 = call i32 @write(i32 noundef %153, ptr noundef %156, i32 noundef 4)
%158 = load i32, ptr %14, align 4
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds [2 x i32], ptr %11, i64 0, i64 %159
store i32 %157, ptr %160, align 4
%161 = load ptr, ptr %5, align 8
%162 = getelementptr inbounds ptr, ptr %161, i64 0
%163 = load ptr, ptr %162, align 8
%164 = load i32, ptr %14, align 4
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 %165
%167 = load i32, ptr %166, align 4
%168 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %163, i32 noundef %167)
%169 = load ptr, ptr %5, align 8
%170 = getelementptr inbounds ptr, ptr %169, i64 0
%171 = load ptr, ptr %170, align 8
%172 = load i32, ptr %14, align 4
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 %173
%175 = load i32, ptr %174, align 4
%176 = load i32, ptr %14, align 4
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds [2 x i32], ptr %11, i64 0, i64 %177
%179 = load i32, ptr %178, align 4
%180 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %171, i32 noundef %175, i32 noundef %179)
br label %181
181: ; preds = %143, %126
br label %182
182: ; preds = %181
%183 = load i32, ptr %14, align 4
%184 = add nsw i32 %183, 1
store i32 %184, ptr %14, align 4
br label %69, !llvm.loop !8
185: ; preds = %69
store i32 0, ptr %19, align 4
br label %186
186: ; preds = %223, %185
%187 = load i32, ptr %19, align 4
%188 = icmp slt i32 %187, 2
br i1 %188, label %189, label %226
189: ; preds = %186
store i32 0, ptr %20, align 4
%190 = load ptr, ptr %5, align 8
%191 = getelementptr inbounds ptr, ptr %190, i64 0
%192 = load ptr, ptr %191, align 8
%193 = load i32, ptr %19, align 4
%194 = sext i32 %193 to i64
%195 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 %194
%196 = load i32, ptr %195, align 4
%197 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %192, i32 noundef %196)
%198 = load i32, ptr %19, align 4
%199 = sext i32 %198 to i64
%200 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 %199
%201 = load i32, ptr %200, align 4
%202 = call i32 @waitpid(i32 noundef %201, ptr noundef %20, i32 noundef 0)
%203 = load i32, ptr %19, align 4
%204 = sext i32 %203 to i64
%205 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 %204
%206 = load i32, ptr %205, align 4
%207 = load ptr, ptr %5, align 8
%208 = getelementptr inbounds ptr, ptr %207, i64 1
%209 = load ptr, ptr %208, align 8
%210 = call i32 @atoi(ptr noundef %209)
%211 = mul nsw i32 %206, %210
store i32 %211, ptr %21, align 4
%212 = load i32, ptr %20, align 4
%213 = icmp ne i32 %212, 0
br i1 %213, label %214, label %218
214: ; preds = %189
%215 = load i32, ptr %21, align 4
%216 = load i32, ptr %20, align 4
%217 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %215, ptr noundef @.str.4, i32 noundef %216)
br label %222
218: ; preds = %189
%219 = load i32, ptr %21, align 4
%220 = load i32, ptr %20, align 4
%221 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %219, ptr noundef @.str.4, i32 noundef %220)
br label %222
222: ; preds = %218, %214
br label %223
223: ; preds = %222
%224 = load i32, ptr %19, align 4
%225 = add nsw i32 %224, 1
store i32 %225, ptr %19, align 4
br label %186, !llvm.loop !9
226: ; preds = %186
%227 = load ptr, ptr %5, align 8
%228 = getelementptr inbounds ptr, ptr %227, i64 0
%229 = load ptr, ptr %228, align 8
%230 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, ptr noundef %229)
store i32 0, ptr %3, align 4
br label %231
231: ; preds = %226, %104, %49, %24
%232 = load i32, ptr %3, align 4
ret i32 %232
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @getpid(...) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @isdigit(i8 noundef signext) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @srand(i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @pipe(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @fork(...) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #3
declare ptr @realpath(ptr noundef, ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @execl(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #3
declare i32 @rand(...) #1
declare i32 @waitpid(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" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxlh8njwi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"Usage: %s [number].\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [43 x i8] c"%s process [%d]: %s is not a valid input.\0A\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"Error: pipe() failed.\0A\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"Error: fork() failed.\0A\00", align 1
@PATH_MAX = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [5 x i8] c"Beta\00", align 1
@.str.5 = private unnamed_addr constant [29 x i8] c"Error: %s can not be found.\0A\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.7 = private unnamed_addr constant [31 x i8] c"%s: forked process with ID %d\0A\00", align 1
@.str.8 = private unnamed_addr constant [40 x i8] c"%s: wrote number %d to pipe (%d bytes)\0A\00", align 1
@.str.9 = private unnamed_addr constant [39 x i8] c"%s: waiting on child process ID %d...\0A\00", align 1
@.str.10 = private unnamed_addr constant [35 x i8] c"%d is not even as %s returned %d.\0A\00", align 1
@.str.11 = private unnamed_addr constant [31 x i8] c"%d is even as %s returned %d.\0A\00", align 1
@.str.12 = private unnamed_addr constant [14 x i8] c"%s: exiting.\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 [2 x [2 x i32]], align 16
%10 = alloca [2 x i32], align 4
%11 = alloca [2 x i32], align 4
%12 = alloca [2 x i32], align 4
%13 = alloca [2 x i32], align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca i64, align 8
%17 = alloca ptr, align 8
%18 = alloca [21 x i8], align 16
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = 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
%22 = load i32, ptr %4, align 4
%23 = icmp ne i32 %22, 2
br i1 %23, label %24, label %29
24: ; preds = %2
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 0
%27 = load ptr, ptr %26, align 8
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %27)
store i32 -1, ptr %3, align 4
br label %235
29: ; preds = %2
%30 = call i32 (...) @getpid()
store i32 %30, ptr %6, align 4
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 1
%33 = load ptr, ptr %32, align 8
%34 = call i32 @strlen(ptr noundef %33)
store i32 %34, ptr %7, align 4
store i32 0, ptr %8, align 4
%35 = load i32, ptr %8, align 4
%36 = load i32, ptr %7, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %.lr.ph, label %65
.lr.ph: ; preds = %29
br label %38
38: ; preds = %.lr.ph, %59
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds ptr, ptr %39, i64 1
%41 = load ptr, ptr %40, align 8
%42 = load i32, ptr %8, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %41, i64 %43
%45 = load i8, ptr %44, align 1
%46 = call i32 @isdigit(i8 noundef signext %45)
%47 = icmp ne i32 %46, 0
br i1 %47, label %58, label %48
48: ; preds = %38
%49 = load i32, ptr @stderr, align 4
%50 = load ptr, ptr %5, align 8
%51 = getelementptr inbounds ptr, ptr %50, i64 0
%52 = load ptr, ptr %51, align 8
%53 = load i32, ptr %6, align 4
%54 = load ptr, ptr %5, align 8
%55 = getelementptr inbounds ptr, ptr %54, i64 1
%56 = load ptr, ptr %55, align 8
%57 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %49, ptr noundef @.str.1, ptr noundef %52, i32 noundef %53, ptr noundef %56)
store i32 2, ptr %3, align 4
br label %235
58: ; preds = %38
br label %59
59: ; preds = %58
%60 = load i32, ptr %8, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %8, align 4
%62 = load i32, ptr %8, align 4
%63 = load i32, ptr %7, align 4
%64 = icmp slt i32 %62, %63
br i1 %64, label %38, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %59
br label %65
65: ; preds = %._crit_edge, %29
%66 = load ptr, ptr %5, align 8
%67 = getelementptr inbounds ptr, ptr %66, i64 1
%68 = load ptr, ptr %67, align 8
%69 = call i32 @atoi(ptr noundef %68)
%70 = call i32 @srand(i32 noundef %69)
store i32 0, ptr %14, align 4
%71 = load i32, ptr %14, align 4
%72 = icmp slt i32 %71, 2
br i1 %72, label %.lr.ph2, label %188
.lr.ph2: ; preds = %65
br label %73
73: ; preds = %.lr.ph2, %183
%74 = load i32, ptr %14, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [2 x [2 x i32]], ptr %9, i64 0, i64 %75
%77 = getelementptr inbounds [2 x i32], ptr %76, i64 0, i64 0
%78 = call i32 @pipe(ptr noundef %77)
%79 = icmp eq i32 %78, -1
br i1 %79, label %80, label %84
80: ; preds = %73
%81 = load i32, ptr @stderr, align 4
%82 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %81, ptr noundef @.str.2)
%83 = call i32 @exit(i32 noundef 1) #4
unreachable
84: ; preds = %73
%85 = load i32, ptr %14, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 %86
store i32 -1, ptr %87, align 4
%88 = load i32, ptr %14, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [2 x [2 x i32]], ptr %9, i64 0, i64 %89
%91 = getelementptr inbounds [2 x i32], ptr %90, i64 0, i64 1
%92 = load i32, ptr %91, align 4
%93 = load i32, ptr %14, align 4
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 %94
%96 = call i32 @write(i32 noundef %92, ptr noundef %95, i32 noundef 4)
%97 = load i32, ptr %14, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds [2 x i32], ptr %11, i64 0, i64 %98
store i32 %96, ptr %99, align 4
%100 = call i32 (...) @fork()
%101 = load i32, ptr %14, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 %102
store i32 %100, ptr %103, align 4
%104 = icmp eq i32 %100, -1
br i1 %104, label %105, label %108
105: ; preds = %84
%106 = load i32, ptr @stderr, align 4
%107 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %106, ptr noundef @.str.3)
store i32 1, ptr %3, align 4
br label %235
108: ; preds = %84
%109 = load i32, ptr %14, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 %110
%112 = load i32, ptr %111, align 4
%113 = icmp eq i32 %112, 0
br i1 %113, label %114, label %144
114: ; preds = %108
%115 = load i32, ptr @PATH_MAX, align 4
%116 = add nsw i32 %115, 1
%117 = zext i32 %116 to i64
%118 = call ptr @llvm.stacksave()
store ptr %118, ptr %15, align 8
%119 = alloca i8, i64 %117, align 16
store i64 %117, ptr %16, align 8
%120 = call ptr @realpath(ptr noundef @.str.4, ptr noundef %119)
store ptr %120, ptr %17, align 8
%121 = load ptr, ptr %17, align 8
%122 = icmp eq ptr %121, null
br i1 %122, label %123, label %127
123: ; preds = %114
%124 = load i32, ptr @stderr, align 4
%125 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %124, ptr noundef @.str.5, ptr noundef @.str.4)
%126 = call i32 @exit(i32 noundef 1) #4
unreachable
127: ; preds = %114
%128 = getelementptr inbounds [21 x i8], ptr %18, i64 0, i64 0
%129 = load i32, ptr %14, align 4
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds [2 x [2 x i32]], ptr %9, i64 0, i64 %130
%132 = getelementptr inbounds [2 x i32], ptr %131, i64 0, i64 0
%133 = load i32, ptr %132, align 8
%134 = call i32 @sprintf(ptr noundef %128, ptr noundef @.str.6, i32 noundef %133)
%135 = load ptr, ptr %17, align 8
%136 = getelementptr inbounds [21 x i8], ptr %18, i64 0, i64 0
%137 = load ptr, ptr %5, align 8
%138 = getelementptr inbounds ptr, ptr %137, i64 1
%139 = load ptr, ptr %138, align 8
%140 = call i32 @execl(ptr noundef %135, ptr noundef @.str.4, ptr noundef %136, ptr noundef %139, ptr noundef null)
%141 = load ptr, ptr %17, align 8
%142 = call i32 @free(ptr noundef %141)
%143 = load ptr, ptr %15, align 8
call void @llvm.stackrestore(ptr %143)
br label %182
144: ; preds = %108
%145 = call i32 (...) @rand()
%146 = srem i32 %145, 100000
%147 = load i32, ptr %14, align 4
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 %148
store i32 %146, ptr %149, align 4
%150 = load i32, ptr %14, align 4
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds [2 x [2 x i32]], ptr %9, i64 0, i64 %151
%153 = getelementptr inbounds [2 x i32], ptr %152, i64 0, i64 1
%154 = load i32, ptr %153, align 4
%155 = load i32, ptr %14, align 4
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 %156
%158 = call i32 @write(i32 noundef %154, ptr noundef %157, i32 noundef 4)
%159 = load i32, ptr %14, align 4
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds [2 x i32], ptr %11, i64 0, i64 %160
store i32 %158, ptr %161, align 4
%162 = load ptr, ptr %5, align 8
%163 = getelementptr inbounds ptr, ptr %162, i64 0
%164 = load ptr, ptr %163, align 8
%165 = load i32, ptr %14, align 4
%166 = sext i32 %165 to i64
%167 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 %166
%168 = load i32, ptr %167, align 4
%169 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %164, i32 noundef %168)
%170 = load ptr, ptr %5, align 8
%171 = getelementptr inbounds ptr, ptr %170, i64 0
%172 = load ptr, ptr %171, align 8
%173 = load i32, ptr %14, align 4
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 %174
%176 = load i32, ptr %175, align 4
%177 = load i32, ptr %14, align 4
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds [2 x i32], ptr %11, i64 0, i64 %178
%180 = load i32, ptr %179, align 4
%181 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %172, i32 noundef %176, i32 noundef %180)
br label %182
182: ; preds = %144, %127
br label %183
183: ; preds = %182
%184 = load i32, ptr %14, align 4
%185 = add nsw i32 %184, 1
store i32 %185, ptr %14, align 4
%186 = load i32, ptr %14, align 4
%187 = icmp slt i32 %186, 2
br i1 %187, label %73, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %183
br label %188
188: ; preds = %._crit_edge3, %65
store i32 0, ptr %19, align 4
%189 = load i32, ptr %19, align 4
%190 = icmp slt i32 %189, 2
br i1 %190, label %.lr.ph5, label %230
.lr.ph5: ; preds = %188
br label %191
191: ; preds = %.lr.ph5, %225
store i32 0, ptr %20, align 4
%192 = load ptr, ptr %5, align 8
%193 = getelementptr inbounds ptr, ptr %192, i64 0
%194 = load ptr, ptr %193, align 8
%195 = load i32, ptr %19, align 4
%196 = sext i32 %195 to i64
%197 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 %196
%198 = load i32, ptr %197, align 4
%199 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %194, i32 noundef %198)
%200 = load i32, ptr %19, align 4
%201 = sext i32 %200 to i64
%202 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 %201
%203 = load i32, ptr %202, align 4
%204 = call i32 @waitpid(i32 noundef %203, ptr noundef %20, i32 noundef 0)
%205 = load i32, ptr %19, align 4
%206 = sext i32 %205 to i64
%207 = getelementptr inbounds [2 x i32], ptr %12, i64 0, i64 %206
%208 = load i32, ptr %207, align 4
%209 = load ptr, ptr %5, align 8
%210 = getelementptr inbounds ptr, ptr %209, i64 1
%211 = load ptr, ptr %210, align 8
%212 = call i32 @atoi(ptr noundef %211)
%213 = mul nsw i32 %208, %212
store i32 %213, ptr %21, align 4
%214 = load i32, ptr %20, align 4
%215 = icmp ne i32 %214, 0
br i1 %215, label %216, label %220
216: ; preds = %191
%217 = load i32, ptr %21, align 4
%218 = load i32, ptr %20, align 4
%219 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %217, ptr noundef @.str.4, i32 noundef %218)
br label %224
220: ; preds = %191
%221 = load i32, ptr %21, align 4
%222 = load i32, ptr %20, align 4
%223 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %221, ptr noundef @.str.4, i32 noundef %222)
br label %224
224: ; preds = %220, %216
br label %225
225: ; preds = %224
%226 = load i32, ptr %19, align 4
%227 = add nsw i32 %226, 1
store i32 %227, ptr %19, align 4
%228 = load i32, ptr %19, align 4
%229 = icmp slt i32 %228, 2
br i1 %229, label %191, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %225
br label %230
230: ; preds = %._crit_edge6, %188
%231 = load ptr, ptr %5, align 8
%232 = getelementptr inbounds ptr, ptr %231, i64 0
%233 = load ptr, ptr %232, align 8
%234 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, ptr noundef %233)
store i32 0, ptr %3, align 4
br label %235
235: ; preds = %230, %105, %48, %24
%236 = load i32, ptr %3, align 4
ret i32 %236
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @getpid(...) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @isdigit(i8 noundef signext) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @srand(i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @pipe(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @fork(...) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #3
declare ptr @realpath(ptr noundef, ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @execl(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #3
declare i32 @rand(...) #1
declare i32 @waitpid(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" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp4o5vnaev.c'
source_filename = "/tmp/tmp4o5vnaev.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_1(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @free(ptr noundef %5)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4o5vnaev.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_1(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @free(ptr noundef %5)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpde26upwe.c'
source_filename = "/tmp/tmpde26upwe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [73 x i8] c"Tra il %d/%d/%d e il %d/%d/%d intercorrono: %d giorni, %d mesi, %d anni.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [3 x i32], align 4
%2 = alloca [3 x i32], align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 1, ptr %3, align 4
%8 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 0
%9 = load i32, ptr %3, align 4
%10 = call i32 @Date(ptr noundef %8, i32 noundef %9)
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %3, align 4
%13 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
%14 = load i32, ptr %3, align 4
%15 = call i32 @Date(ptr noundef %13, i32 noundef %14)
%16 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 0
%17 = call i64 @Tot(ptr noundef %16)
%18 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
%19 = call i64 @Tot(ptr noundef %18)
%20 = sub nsw i64 %17, %19
%21 = call i32 @abs(i64 noundef %20)
store i32 %21, ptr %4, align 4
%22 = load i32, ptr %4, align 4
%23 = sdiv i32 %22, 360
store i32 %23, ptr %5, align 4
%24 = load i32, ptr %4, align 4
%25 = srem i32 %24, 360
%26 = sdiv i32 %25, 30
store i32 %26, ptr %6, align 4
%27 = load i32, ptr %4, align 4
%28 = load i32, ptr %6, align 4
%29 = load i32, ptr %5, align 4
%30 = mul nsw i32 %29, 12
%31 = add nsw i32 %28, %30
%32 = mul nsw i32 %31, 30
%33 = sub nsw i32 %27, %32
store i32 %33, ptr %7, align 4
%34 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 2
%35 = load i32, ptr %34, align 4
%36 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 1
%37 = load i32, ptr %36, align 4
%38 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 0
%39 = load i32, ptr %38, align 4
%40 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 2
%41 = load i32, ptr %40, align 4
%42 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 1
%43 = load i32, ptr %42, align 4
%44 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
%45 = load i32, ptr %44, align 4
%46 = load i32, ptr %7, align 4
%47 = load i32, ptr %6, align 4
%48 = load i32, ptr %5, align 4
%49 = call i32 @printf(ptr noundef @.str, i32 noundef %35, i32 noundef %37, i32 noundef %39, i32 noundef %41, i32 noundef %43, i32 noundef %45, i32 noundef %46, i32 noundef %47, i32 noundef %48)
ret i32 0
}
declare i32 @Date(ptr noundef, i32 noundef) #1
declare i32 @abs(i64 noundef) #1
declare i64 @Tot(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpde26upwe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [73 x i8] c"Tra il %d/%d/%d e il %d/%d/%d intercorrono: %d giorni, %d mesi, %d anni.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [3 x i32], align 4
%2 = alloca [3 x i32], align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 1, ptr %3, align 4
%8 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 0
%9 = load i32, ptr %3, align 4
%10 = call i32 @Date(ptr noundef %8, i32 noundef %9)
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %3, align 4
%13 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
%14 = load i32, ptr %3, align 4
%15 = call i32 @Date(ptr noundef %13, i32 noundef %14)
%16 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 0
%17 = call i64 @Tot(ptr noundef %16)
%18 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
%19 = call i64 @Tot(ptr noundef %18)
%20 = sub nsw i64 %17, %19
%21 = call i32 @abs(i64 noundef %20)
store i32 %21, ptr %4, align 4
%22 = load i32, ptr %4, align 4
%23 = sdiv i32 %22, 360
store i32 %23, ptr %5, align 4
%24 = load i32, ptr %4, align 4
%25 = srem i32 %24, 360
%26 = sdiv i32 %25, 30
store i32 %26, ptr %6, align 4
%27 = load i32, ptr %4, align 4
%28 = load i32, ptr %6, align 4
%29 = load i32, ptr %5, align 4
%30 = mul nsw i32 %29, 12
%31 = add nsw i32 %28, %30
%32 = mul nsw i32 %31, 30
%33 = sub nsw i32 %27, %32
store i32 %33, ptr %7, align 4
%34 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 2
%35 = load i32, ptr %34, align 4
%36 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 1
%37 = load i32, ptr %36, align 4
%38 = getelementptr inbounds [3 x i32], ptr %1, i64 0, i64 0
%39 = load i32, ptr %38, align 4
%40 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 2
%41 = load i32, ptr %40, align 4
%42 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 1
%43 = load i32, ptr %42, align 4
%44 = getelementptr inbounds [3 x i32], ptr %2, i64 0, i64 0
%45 = load i32, ptr %44, align 4
%46 = load i32, ptr %7, align 4
%47 = load i32, ptr %6, align 4
%48 = load i32, ptr %5, align 4
%49 = call i32 @printf(ptr noundef @.str, i32 noundef %35, i32 noundef %37, i32 noundef %39, i32 noundef %41, i32 noundef %43, i32 noundef %45, i32 noundef %46, i32 noundef %47, i32 noundef %48)
ret i32 0
}
declare i32 @Date(ptr noundef, i32 noundef) #1
declare i32 @abs(i64 noundef) #1
declare i64 @Tot(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdmt1m7fz.c'
source_filename = "/tmp/tmpdmt1m7fz.c"
target datalayout = "e-m:e-p270: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/tmpdmt1m7fz.c"
target datalayout = "e-m:e-p270: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/tmpp__8u5rr.c'
source_filename = "/tmp/tmpp__8u5rr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"1-Modificar pelicula\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"2-Modificar persona\0A\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"3-Modificar personaje\0A\00", align 1
@.str.3 = private unnamed_addr constant [41 x i8] c"4-Modificar importancia en una relacion\0A\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"0-Volver\0A\0AOpcion: \00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.6 = private unnamed_addr constant [6 x i8] c"clear\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @menuModificar() #0 {
%1 = alloca i32, align 4
br label %2
2: ; preds = %0, %20
%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 @scanf(ptr noundef @.str.5, ptr noundef %1)
%9 = call i32 @system(ptr noundef @.str.6)
%10 = load i32, ptr %1, align 4
switch i32 %10, label %20 [
i32 1, label %11
i32 2, label %13
i32 3, label %15
i32 4, label %17
i32 0, label %19
]
11: ; preds = %2
%12 = call i32 @modificarPelicula(i32 noundef 0)
br label %13
13: ; preds = %2, %11
%14 = call i32 @modificarPersona(i32 noundef 0)
br label %15
15: ; preds = %2, %13
%16 = call i32 @modificarPersonaje(i32 noundef 0)
br label %20
17: ; preds = %2
%18 = call i32 (...) @modificarRelacion()
br label %20
19: ; preds = %2
ret void
20: ; preds = %2, %17, %15
br label %2
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
declare i32 @modificarPelicula(i32 noundef) #1
declare i32 @modificarPersona(i32 noundef) #1
declare i32 @modificarPersonaje(i32 noundef) #1
declare i32 @modificarRelacion(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp__8u5rr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"1-Modificar pelicula\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"2-Modificar persona\0A\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"3-Modificar personaje\0A\00", align 1
@.str.3 = private unnamed_addr constant [41 x i8] c"4-Modificar importancia en una relacion\0A\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"0-Volver\0A\0AOpcion: \00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.6 = private unnamed_addr constant [6 x i8] c"clear\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @menuModificar() #0 {
%1 = alloca i32, align 4
br label %2
2: ; preds = %20, %0
%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 @scanf(ptr noundef @.str.5, ptr noundef %1)
%9 = call i32 @system(ptr noundef @.str.6)
%10 = load i32, ptr %1, align 4
switch i32 %10, label %20 [
i32 1, label %11
i32 2, label %13
i32 3, label %15
i32 4, label %17
i32 0, label %19
]
11: ; preds = %2
%12 = call i32 @modificarPelicula(i32 noundef 0)
br label %13
13: ; preds = %11, %2
%14 = call i32 @modificarPersona(i32 noundef 0)
br label %15
15: ; preds = %13, %2
%16 = call i32 @modificarPersonaje(i32 noundef 0)
br label %20
17: ; preds = %2
%18 = call i32 (...) @modificarRelacion()
br label %20
19: ; preds = %2
ret void
20: ; preds = %17, %15, %2
br label %2
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @system(ptr noundef) #1
declare i32 @modificarPelicula(i32 noundef) #1
declare i32 @modificarPersona(i32 noundef) #1
declare i32 @modificarPersonaje(i32 noundef) #1
declare i32 @modificarRelacion(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcjr547cq.c'
source_filename = "/tmp/tmpcjr547cq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Cyc_Tcutil_is_typedef_type(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call ptr @Cyc_Absyn_compress(ptr noundef %7)
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
store ptr %9, ptr %4, align 8
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %10, align 4
store i32 %11, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp ne i32 %12, 8
br i1 %13, label %14, label %15
14: ; preds = %1
br label %16
15: ; preds = %1
store i32 1, ptr %2, align 4
br label %17
16: ; preds = %14
store i32 0, ptr %2, align 4
br label %17
17: ; preds = %16, %15
%18 = load i32, ptr %2, align 4
ret i32 %18
}
declare ptr @Cyc_Absyn_compress(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcjr547cq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Cyc_Tcutil_is_typedef_type(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call ptr @Cyc_Absyn_compress(ptr noundef %7)
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
store ptr %9, ptr %4, align 8
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %10, align 4
store i32 %11, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp ne i32 %12, 8
br i1 %13, label %14, label %15
14: ; preds = %1
br label %16
15: ; preds = %1
store i32 1, ptr %2, align 4
br label %17
16: ; preds = %14
store i32 0, ptr %2, align 4
br label %17
17: ; preds = %16, %15
%18 = load i32, ptr %2, align 4
ret i32 %18
}
declare ptr @Cyc_Absyn_compress(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7qht6qtr.c'
source_filename = "/tmp/tmp7qht6qtr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"-----------------------\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c" strlen \0A\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"-----------------------\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"\0A'%s' - len = %d\00", align 1
@.str.4 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"aa\00", align 1
@.str.6 = private unnamed_addr constant [31 x i8] c"cette chaine fait 30 chars ...\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store ptr null, ptr %6, align 8
%10 = load ptr, ptr %6, align 8
%11 = load ptr, ptr %6, align 8
%12 = call i32 @ft_strlen(ptr noundef %11)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %10, i32 noundef %12)
store ptr @.str.4, ptr %6, align 8
%14 = load ptr, ptr %6, align 8
%15 = load ptr, ptr %6, align 8
%16 = call i32 @ft_strlen(ptr noundef %15)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %14, i32 noundef %16)
store ptr @.str.5, ptr %6, align 8
%18 = load ptr, ptr %6, align 8
%19 = load ptr, ptr %6, align 8
%20 = call i32 @ft_strlen(ptr noundef %19)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %18, i32 noundef %20)
store ptr @.str.6, ptr %6, align 8
%22 = load ptr, ptr %6, align 8
%23 = load ptr, ptr %6, align 8
%24 = call i32 @ft_strlen(ptr noundef %23)
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %22, i32 noundef %24)
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @ft_strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7qht6qtr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"-----------------------\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c" strlen \0A\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"-----------------------\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"\0A'%s' - len = %d\00", align 1
@.str.4 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"aa\00", align 1
@.str.6 = private unnamed_addr constant [31 x i8] c"cette chaine fait 30 chars ...\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store ptr null, ptr %6, align 8
%10 = load ptr, ptr %6, align 8
%11 = load ptr, ptr %6, align 8
%12 = call i32 @ft_strlen(ptr noundef %11)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %10, i32 noundef %12)
store ptr @.str.4, ptr %6, align 8
%14 = load ptr, ptr %6, align 8
%15 = load ptr, ptr %6, align 8
%16 = call i32 @ft_strlen(ptr noundef %15)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %14, i32 noundef %16)
store ptr @.str.5, ptr %6, align 8
%18 = load ptr, ptr %6, align 8
%19 = load ptr, ptr %6, align 8
%20 = call i32 @ft_strlen(ptr noundef %19)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %18, i32 noundef %20)
store ptr @.str.6, ptr %6, align 8
%22 = load ptr, ptr %6, align 8
%23 = load ptr, ptr %6, align 8
%24 = call i32 @ft_strlen(ptr noundef %23)
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %22, i32 noundef %24)
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @ft_strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpehqwvnz1.c'
source_filename = "/tmp/tmpehqwvnz1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read_uint8(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = load ptr, ptr %4, align 8
%7 = call i32 @bool_read(i32 noundef %5, ptr noundef %6, i32 noundef 1)
ret i32 %7
}
declare i32 @bool_read(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/tmpehqwvnz1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read_uint8(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = load ptr, ptr %4, align 8
%7 = call i32 @bool_read(i32 noundef %5, ptr noundef %6, i32 noundef 1)
ret i32 %7
}
declare i32 @bool_read(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/tmpkq5vmrae.c'
source_filename = "/tmp/tmpkq5vmrae.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_SUCCESS = dso_local global i64 0, align 8
@MS_BIND = dso_local global i32 0, align 4
@MS_REMOUNT = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkq5vmrae.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_SUCCESS = dso_local global i64 0, align 8
@MS_BIND = dso_local global i32 0, align 4
@MS_REMOUNT = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpa5af43qv.c'
source_filename = "/tmp/tmpa5af43qv.c"
target datalayout = "e-m:e-p270: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/tmpa5af43qv.c"
target datalayout = "e-m:e-p270: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/tmpnmcy66c_.c'
source_filename = "/tmp/tmpnmcy66c_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isgraph.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isgraph should be 0 for 0xd5\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isgraph_0xd5() #0 {
%1 = call i64 @isgraph(i32 noundef 213)
%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 1070, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isgraph(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/tmpnmcy66c_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isgraph.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isgraph should be 0 for 0xd5\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isgraph_0xd5() #0 {
%1 = call i64 @isgraph(i32 noundef 213)
%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 1070, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isgraph(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/tmplwvuvj72.c'
source_filename = "/tmp/tmplwvuvj72.c"
target datalayout = "e-m:e-p270: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/tmplwvuvj72.c"
target datalayout = "e-m:e-p270: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/tmp2he29kvf.c'
source_filename = "/tmp/tmp2he29kvf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @can_build_a_box(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %6, align 8
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 ptr, ptr %6, align 8
%12 = load i32, ptr %7, align 4
%13 = sub nsw i32 %12, 1
%14 = load i32, ptr %7, align 4
%15 = sub nsw i32 %14, 1
%16 = load i32, ptr %9, align 4
%17 = sub nsw i32 %16, 1
%18 = load i32, ptr %10, align 4
%19 = add nsw i32 %18, 1
%20 = call i64 @is_flat(ptr noundef %11, i32 noundef %13, i32 noundef %15, i32 noundef %17, i32 noundef %19)
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %33
22: ; preds = %5
%23 = load ptr, ptr %6, align 8
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %8, align 4
%26 = add nsw i32 %25, 1
%27 = load i32, ptr %9, align 4
%28 = sub nsw i32 %27, 1
%29 = load i32, ptr %10, align 4
%30 = add nsw i32 %29, 1
%31 = call i64 @is_flat(ptr noundef %23, i32 noundef %24, i32 noundef %26, i32 noundef %28, i32 noundef %30)
%32 = icmp ne i64 %31, 0
br i1 %32, label %104, label %33
33: ; preds = %22, %5
%34 = load ptr, ptr %6, align 8
%35 = load i32, ptr %7, align 4
%36 = sub nsw i32 %35, 1
%37 = load i32, ptr %8, align 4
%38 = load i32, ptr %9, align 4
%39 = sub nsw i32 %38, 1
%40 = load i32, ptr %10, align 4
%41 = add nsw i32 %40, 1
%42 = call i64 @is_flat(ptr noundef %34, i32 noundef %36, i32 noundef %37, i32 noundef %39, i32 noundef %41)
%43 = icmp ne i64 %42, 0
br i1 %43, label %44, label %56
44: ; preds = %33
%45 = load ptr, ptr %6, align 8
%46 = load i32, ptr %8, align 4
%47 = add nsw i32 %46, 1
%48 = load i32, ptr %8, align 4
%49 = add nsw i32 %48, 1
%50 = load i32, ptr %9, align 4
%51 = sub nsw i32 %50, 1
%52 = load i32, ptr %10, align 4
%53 = add nsw i32 %52, 1
%54 = call i64 @is_flat(ptr noundef %45, i32 noundef %47, i32 noundef %49, i32 noundef %51, i32 noundef %53)
%55 = icmp ne i64 %54, 0
br i1 %55, label %104, label %56
56: ; preds = %44, %33
%57 = load ptr, ptr %6, align 8
%58 = load i32, ptr %7, align 4
%59 = sub nsw i32 %58, 1
%60 = load i32, ptr %8, align 4
%61 = add nsw i32 %60, 1
%62 = load i32, ptr %9, align 4
%63 = sub nsw i32 %62, 1
%64 = load i32, ptr %9, align 4
%65 = sub nsw i32 %64, 1
%66 = call i64 @is_flat(ptr noundef %57, i32 noundef %59, i32 noundef %61, i32 noundef %63, i32 noundef %65)
%67 = icmp ne i64 %66, 0
br i1 %67, label %68, label %79
68: ; preds = %56
%69 = load ptr, ptr %6, align 8
%70 = load i32, ptr %7, align 4
%71 = sub nsw i32 %70, 1
%72 = load i32, ptr %8, align 4
%73 = add nsw i32 %72, 1
%74 = load i32, ptr %9, align 4
%75 = load i32, ptr %10, align 4
%76 = add nsw i32 %75, 1
%77 = call i64 @is_flat(ptr noundef %69, i32 noundef %71, i32 noundef %73, i32 noundef %74, i32 noundef %76)
%78 = icmp ne i64 %77, 0
br i1 %78, label %104, label %79
79: ; preds = %68, %56
%80 = load ptr, ptr %6, align 8
%81 = load i32, ptr %7, align 4
%82 = sub nsw i32 %81, 1
%83 = load i32, ptr %8, align 4
%84 = add nsw i32 %83, 1
%85 = load i32, ptr %9, align 4
%86 = sub nsw i32 %85, 1
%87 = load i32, ptr %10, align 4
%88 = call i64 @is_flat(ptr noundef %80, i32 noundef %82, i32 noundef %84, i32 noundef %86, i32 noundef %87)
%89 = icmp ne i64 %88, 0
br i1 %89, label %90, label %102
90: ; preds = %79
%91 = load ptr, ptr %6, align 8
%92 = load i32, ptr %7, align 4
%93 = sub nsw i32 %92, 1
%94 = load i32, ptr %8, align 4
%95 = add nsw i32 %94, 1
%96 = load i32, ptr %10, align 4
%97 = add nsw i32 %96, 1
%98 = load i32, ptr %10, align 4
%99 = add nsw i32 %98, 1
%100 = call i64 @is_flat(ptr noundef %91, i32 noundef %93, i32 noundef %95, i32 noundef %97, i32 noundef %99)
%101 = icmp ne i64 %100, 0
br label %102
102: ; preds = %90, %79
%103 = phi i1 [ false, %79 ], [ %101, %90 ]
br label %104
104: ; preds = %102, %68, %44, %22
%105 = phi i1 [ true, %68 ], [ true, %44 ], [ true, %22 ], [ %103, %102 ]
%106 = zext i1 %105 to i32
ret i32 %106
}
declare i64 @is_flat(ptr 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/tmp2he29kvf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @can_build_a_box(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %6, align 8
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 ptr, ptr %6, align 8
%12 = load i32, ptr %7, align 4
%13 = sub nsw i32 %12, 1
%14 = load i32, ptr %7, align 4
%15 = sub nsw i32 %14, 1
%16 = load i32, ptr %9, align 4
%17 = sub nsw i32 %16, 1
%18 = load i32, ptr %10, align 4
%19 = add nsw i32 %18, 1
%20 = call i64 @is_flat(ptr noundef %11, i32 noundef %13, i32 noundef %15, i32 noundef %17, i32 noundef %19)
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %33
22: ; preds = %5
%23 = load ptr, ptr %6, align 8
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %8, align 4
%26 = add nsw i32 %25, 1
%27 = load i32, ptr %9, align 4
%28 = sub nsw i32 %27, 1
%29 = load i32, ptr %10, align 4
%30 = add nsw i32 %29, 1
%31 = call i64 @is_flat(ptr noundef %23, i32 noundef %24, i32 noundef %26, i32 noundef %28, i32 noundef %30)
%32 = icmp ne i64 %31, 0
br i1 %32, label %104, label %33
33: ; preds = %22, %5
%34 = load ptr, ptr %6, align 8
%35 = load i32, ptr %7, align 4
%36 = sub nsw i32 %35, 1
%37 = load i32, ptr %8, align 4
%38 = load i32, ptr %9, align 4
%39 = sub nsw i32 %38, 1
%40 = load i32, ptr %10, align 4
%41 = add nsw i32 %40, 1
%42 = call i64 @is_flat(ptr noundef %34, i32 noundef %36, i32 noundef %37, i32 noundef %39, i32 noundef %41)
%43 = icmp ne i64 %42, 0
br i1 %43, label %44, label %56
44: ; preds = %33
%45 = load ptr, ptr %6, align 8
%46 = load i32, ptr %8, align 4
%47 = add nsw i32 %46, 1
%48 = load i32, ptr %8, align 4
%49 = add nsw i32 %48, 1
%50 = load i32, ptr %9, align 4
%51 = sub nsw i32 %50, 1
%52 = load i32, ptr %10, align 4
%53 = add nsw i32 %52, 1
%54 = call i64 @is_flat(ptr noundef %45, i32 noundef %47, i32 noundef %49, i32 noundef %51, i32 noundef %53)
%55 = icmp ne i64 %54, 0
br i1 %55, label %104, label %56
56: ; preds = %44, %33
%57 = load ptr, ptr %6, align 8
%58 = load i32, ptr %7, align 4
%59 = sub nsw i32 %58, 1
%60 = load i32, ptr %8, align 4
%61 = add nsw i32 %60, 1
%62 = load i32, ptr %9, align 4
%63 = sub nsw i32 %62, 1
%64 = load i32, ptr %9, align 4
%65 = sub nsw i32 %64, 1
%66 = call i64 @is_flat(ptr noundef %57, i32 noundef %59, i32 noundef %61, i32 noundef %63, i32 noundef %65)
%67 = icmp ne i64 %66, 0
br i1 %67, label %68, label %79
68: ; preds = %56
%69 = load ptr, ptr %6, align 8
%70 = load i32, ptr %7, align 4
%71 = sub nsw i32 %70, 1
%72 = load i32, ptr %8, align 4
%73 = add nsw i32 %72, 1
%74 = load i32, ptr %9, align 4
%75 = load i32, ptr %10, align 4
%76 = add nsw i32 %75, 1
%77 = call i64 @is_flat(ptr noundef %69, i32 noundef %71, i32 noundef %73, i32 noundef %74, i32 noundef %76)
%78 = icmp ne i64 %77, 0
br i1 %78, label %104, label %79
79: ; preds = %68, %56
%80 = load ptr, ptr %6, align 8
%81 = load i32, ptr %7, align 4
%82 = sub nsw i32 %81, 1
%83 = load i32, ptr %8, align 4
%84 = add nsw i32 %83, 1
%85 = load i32, ptr %9, align 4
%86 = sub nsw i32 %85, 1
%87 = load i32, ptr %10, align 4
%88 = call i64 @is_flat(ptr noundef %80, i32 noundef %82, i32 noundef %84, i32 noundef %86, i32 noundef %87)
%89 = icmp ne i64 %88, 0
br i1 %89, label %90, label %102
90: ; preds = %79
%91 = load ptr, ptr %6, align 8
%92 = load i32, ptr %7, align 4
%93 = sub nsw i32 %92, 1
%94 = load i32, ptr %8, align 4
%95 = add nsw i32 %94, 1
%96 = load i32, ptr %10, align 4
%97 = add nsw i32 %96, 1
%98 = load i32, ptr %10, align 4
%99 = add nsw i32 %98, 1
%100 = call i64 @is_flat(ptr noundef %91, i32 noundef %93, i32 noundef %95, i32 noundef %97, i32 noundef %99)
%101 = icmp ne i64 %100, 0
br label %102
102: ; preds = %90, %79
%103 = phi i1 [ false, %79 ], [ %101, %90 ]
br label %104
104: ; preds = %102, %68, %44, %22
%105 = phi i1 [ true, %68 ], [ true, %44 ], [ true, %22 ], [ %103, %102 ]
%106 = zext i1 %105 to i32
ret i32 %106
}
declare i64 @is_flat(ptr 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/tmpxxni383g.c'
source_filename = "/tmp/tmpxxni383g.c"
target datalayout = "e-m:e-p270: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
@O_WRONLY = 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/tmpxxni383g.c"
target datalayout = "e-m:e-p270: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
@O_WRONLY = 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/tmpq006f2qc.c'
source_filename = "/tmp/tmpq006f2qc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @fread_letter(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
store ptr %0, ptr %2, align 8
br label %4
4: ; preds = %7, %1
%5 = load ptr, ptr %2, align 8
%6 = call signext i8 @getc(ptr noundef %5)
store i8 %6, ptr %3, align 1
br label %7
7: ; preds = %4
%8 = load i8, ptr %3, align 1
%9 = call i64 @isspace(i8 noundef signext %8)
%10 = icmp ne i64 %9, 0
br i1 %10, label %4, label %11, !llvm.loop !6
11: ; preds = %7
%12 = load i8, ptr %3, align 1
ret i8 %12
}
declare signext i8 @getc(ptr noundef) #1
declare i64 @isspace(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/tmpq006f2qc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @fread_letter(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
store ptr %0, ptr %2, align 8
br label %4
4: ; preds = %7, %1
%5 = load ptr, ptr %2, align 8
%6 = call signext i8 @getc(ptr noundef %5)
store i8 %6, ptr %3, align 1
br label %7
7: ; preds = %4
%8 = load i8, ptr %3, align 1
%9 = call i64 @isspace(i8 noundef signext %8)
%10 = icmp ne i64 %9, 0
br i1 %10, label %4, label %11, !llvm.loop !6
11: ; preds = %7
%12 = load i8, ptr %3, align 1
ret i8 %12
}
declare signext i8 @getc(ptr noundef) #1
declare i64 @isspace(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/tmpwuw4yo0i.c'
source_filename = "/tmp/tmpwuw4yo0i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @smack_new_label_from_path(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 [256 x i8], align 16
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
store i32 0, ptr %12, align 4
%13 = load i32, ptr %8, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %20
15: ; preds = %4
%16 = load ptr, ptr %6, align 8
%17 = load ptr, ptr %7, align 8
%18 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%19 = call i32 @getxattr(ptr noundef %16, ptr noundef %17, ptr noundef %18, i32 noundef 256)
br label %25
20: ; preds = %4
%21 = load ptr, ptr %6, align 8
%22 = load ptr, ptr %7, align 8
%23 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%24 = call i32 @lgetxattr(ptr noundef %21, ptr noundef %22, ptr noundef %23, i32 noundef 256)
br label %25
25: ; preds = %20, %15
%26 = phi i32 [ %19, %15 ], [ %24, %20 ]
store i32 %26, ptr %12, align 4
%27 = load i32, ptr %12, align 4
%28 = icmp slt i32 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %25
store i32 -1, ptr %5, align 4
br label %53
30: ; preds = %25
%31 = load i32, ptr %12, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 %32
store i8 0, ptr %33, align 1
%34 = load i32, ptr %12, align 4
%35 = add nsw i32 %34, 1
%36 = call ptr @calloc(i32 noundef %35, i32 noundef 1)
store ptr %36, ptr %11, align 8
%37 = load ptr, ptr %11, align 8
%38 = icmp eq ptr %37, null
br i1 %38, label %39, label %40
39: ; preds = %30
store i32 -1, ptr %5, align 4
br label %53
40: ; preds = %30
%41 = load ptr, ptr %11, align 8
%42 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%43 = call i32 @get_label(ptr noundef %41, ptr noundef %42, ptr noundef null)
store i32 %43, ptr %12, align 4
%44 = load i32, ptr %12, align 4
%45 = icmp slt i32 %44, 0
br i1 %45, label %46, label %49
46: ; preds = %40
%47 = load ptr, ptr %11, align 8
%48 = call i32 @free(ptr noundef %47)
store i32 -1, ptr %5, align 4
br label %53
49: ; preds = %40
%50 = load ptr, ptr %11, align 8
%51 = load ptr, ptr %9, align 8
store ptr %50, ptr %51, align 8
%52 = load i32, ptr %12, align 4
store i32 %52, ptr %5, align 4
br label %53
53: ; preds = %49, %46, %39, %29
%54 = load i32, ptr %5, align 4
ret i32 %54
}
declare i32 @getxattr(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @lgetxattr(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @calloc(i32 noundef, i32 noundef) #1
declare i32 @get_label(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwuw4yo0i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @smack_new_label_from_path(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 [256 x i8], align 16
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
store i32 0, ptr %12, align 4
%13 = load i32, ptr %8, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %20
15: ; preds = %4
%16 = load ptr, ptr %6, align 8
%17 = load ptr, ptr %7, align 8
%18 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%19 = call i32 @getxattr(ptr noundef %16, ptr noundef %17, ptr noundef %18, i32 noundef 256)
br label %25
20: ; preds = %4
%21 = load ptr, ptr %6, align 8
%22 = load ptr, ptr %7, align 8
%23 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%24 = call i32 @lgetxattr(ptr noundef %21, ptr noundef %22, ptr noundef %23, i32 noundef 256)
br label %25
25: ; preds = %20, %15
%26 = phi i32 [ %19, %15 ], [ %24, %20 ]
store i32 %26, ptr %12, align 4
%27 = load i32, ptr %12, align 4
%28 = icmp slt i32 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %25
store i32 -1, ptr %5, align 4
br label %53
30: ; preds = %25
%31 = load i32, ptr %12, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 %32
store i8 0, ptr %33, align 1
%34 = load i32, ptr %12, align 4
%35 = add nsw i32 %34, 1
%36 = call ptr @calloc(i32 noundef %35, i32 noundef 1)
store ptr %36, ptr %11, align 8
%37 = load ptr, ptr %11, align 8
%38 = icmp eq ptr %37, null
br i1 %38, label %39, label %40
39: ; preds = %30
store i32 -1, ptr %5, align 4
br label %53
40: ; preds = %30
%41 = load ptr, ptr %11, align 8
%42 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%43 = call i32 @get_label(ptr noundef %41, ptr noundef %42, ptr noundef null)
store i32 %43, ptr %12, align 4
%44 = load i32, ptr %12, align 4
%45 = icmp slt i32 %44, 0
br i1 %45, label %46, label %49
46: ; preds = %40
%47 = load ptr, ptr %11, align 8
%48 = call i32 @free(ptr noundef %47)
store i32 -1, ptr %5, align 4
br label %53
49: ; preds = %40
%50 = load ptr, ptr %11, align 8
%51 = load ptr, ptr %9, align 8
store ptr %50, ptr %51, align 8
%52 = load i32, ptr %12, align 4
store i32 %52, ptr %5, align 4
br label %53
53: ; preds = %49, %46, %39, %29
%54 = load i32, ptr %5, align 4
ret i32 %54
}
declare i32 @getxattr(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @lgetxattr(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @calloc(i32 noundef, i32 noundef) #1
declare i32 @get_label(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvow_ufjr.c'
source_filename = "/tmp/tmpvow_ufjr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"%s file|- [iterations [skip [c|gpu]]]\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"-\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@CL_DEVICE_TYPE_GPU = dso_local global i64 0, align 8
@CL_DEVICE_TYPE_CPU = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"- _\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"clGetPlatformIDs\00", align 1
@.str.6 = private unnamed_addr constant [45 x i8] c"ideal workgroup size %d*%d, requesting %cPU\0A\00", align 1
@.str.7 = private unnamed_addr constant [15 x i8] c"clGetDeviceIDs\00", align 1
@CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [16 x i8] c"clGetDeviceInfo\00", align 1
@CL_DEVICE_MAX_WORK_ITEM_SIZES = dso_local global i32 0, align 4
@.str.9 = private unnamed_addr constant [54 x i8] c"the max workgroup size of which is reported as %d*%d\0A\00", align 1
@.str.10 = private unnamed_addr constant [38 x i8] c"requesting %d*%d workgroups %d*%d=%d\0A\00", align 1
@CL_CONTEXT_PLATFORM = dso_local global i32 0, align 4
@.str.11 = private unnamed_addr constant [16 x i8] c"clCreateContext\00", align 1
@.str.12 = private unnamed_addr constant [21 x i8] c"clCreateCommandQueue\00", align 1
@.str.13 = private unnamed_addr constant [12 x i8] c"gamelife.cl\00", align 1
@.str.14 = private unnamed_addr constant [26 x i8] c"clCreateProgramWithSource\00", align 1
@.str.15 = private unnamed_addr constant [15 x i8] c"clBuildProgram\00", align 1
@.str.16 = private unnamed_addr constant [7 x i8] c"evolve\00", align 1
@.str.17 = private unnamed_addr constant [15 x i8] c"clCreateKernel\00", align 1
@.str.18 = private unnamed_addr constant [15 x i8] c"clCreateBuffer\00", align 1
@.str.19 = private unnamed_addr constant [15 x i8] c"clSetKernelArg\00", align 1
@CL_TRUE = dso_local global i32 0, align 4
@.str.20 = private unnamed_addr constant [21 x i8] c"clEnqueueWriteBuffer\00", align 1
@.str.21 = private unnamed_addr constant [23 x i8] c"clEnqueueNDRangeKernel\00", align 1
@.str.22 = private unnamed_addr constant [20 x i8] c"clEnqueueReadBuffer\00", align 1
@.str.23 = private unnamed_addr constant [8 x i8] c"%d/%d:\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [1024 x i8], align 16
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i64, align 8
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca ptr, align 8
%20 = alloca 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 ptr, align 8
%29 = alloca i64, align 8
%30 = alloca i64, align 8
%31 = alloca [3 x i32], align 4
%32 = alloca i32, align 4
%33 = alloca i32, align 4
%34 = alloca ptr, align 8
%35 = alloca i32, align 4
%36 = alloca i32, align 4
%37 = alloca i32, align 4
%38 = alloca i32, align 4
%39 = alloca i32, align 4
%40 = alloca i32, align 4
%41 = alloca i32, align 4
%42 = alloca i32, align 4
%43 = alloca i32, align 4
%44 = alloca [2 x i64], align 16
%45 = alloca [2 x i64], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %10, align 4
store i32 4194304, ptr %11, align 4
%46 = call i64 @malloc(i32 noundef 16777216)
%47 = inttoptr i64 %46 to ptr
store ptr %47, ptr %12, align 8
%48 = load i32, ptr %4, align 4
%49 = icmp slt i32 %48, 2
br i1 %49, label %50, label %55
50: ; preds = %2
%51 = load ptr, ptr %5, align 8
%52 = load ptr, ptr %51, align 8
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %52)
%54 = call i32 @exit(i32 noundef 1) #4
unreachable
55: ; preds = %2
%56 = load ptr, ptr %5, align 8
%57 = getelementptr inbounds ptr, ptr %56, i64 1
%58 = load ptr, ptr %57, align 8
%59 = call i64 @strcmp(ptr noundef %58, ptr noundef @.str.1)
%60 = icmp ne i64 %59, 0
br i1 %60, label %61, label %66
61: ; preds = %55
%62 = load ptr, ptr %5, align 8
%63 = getelementptr inbounds ptr, ptr %62, i64 1
%64 = load ptr, ptr %63, align 8
%65 = call ptr @fopen(ptr noundef %64, ptr noundef @.str.2)
br label %67
66: ; preds = %55
br label %67
67: ; preds = %66, %61
%68 = phi ptr [ %65, %61 ], [ null, %66 ]
store ptr %68, ptr %13, align 8
%69 = load i64, ptr @CL_DEVICE_TYPE_GPU, align 8
store i64 %69, ptr %14, align 8
%70 = load i32, ptr %4, align 4
%71 = icmp sgt i32 %70, 2
br i1 %71, label %72, label %77
72: ; preds = %67
%73 = load ptr, ptr %5, align 8
%74 = getelementptr inbounds ptr, ptr %73, i64 2
%75 = load ptr, ptr %74, align 8
%76 = call i32 @atoi(ptr noundef %75)
br label %78
77: ; preds = %67
br label %78
78: ; preds = %77, %72
%79 = phi i32 [ %76, %72 ], [ 0, %77 ]
store i32 %79, ptr %15, align 4
%80 = load i32, ptr %4, align 4
%81 = icmp sgt i32 %80, 3
br i1 %81, label %82, label %87
82: ; preds = %78
%83 = load ptr, ptr %5, align 8
%84 = getelementptr inbounds ptr, ptr %83, i64 3
%85 = load ptr, ptr %84, align 8
%86 = call i32 @atoi(ptr noundef %85)
br label %88
87: ; preds = %78
br label %88
88: ; preds = %87, %82
%89 = phi i32 [ %86, %82 ], [ 1, %87 ]
store i32 %89, ptr %16, align 4
%90 = load i32, ptr %16, align 4
%91 = load i32, ptr %15, align 4
%92 = icmp sgt i32 %90, %91
br i1 %92, label %96, label %93
93: ; preds = %88
%94 = load i32, ptr %16, align 4
%95 = icmp slt i32 %94, 1
br i1 %95, label %96, label %98
96: ; preds = %93, %88
%97 = load i32, ptr %15, align 4
br label %100
98: ; preds = %93
%99 = load i32, ptr %16, align 4
br label %100
100: ; preds = %98, %96
%101 = phi i32 [ %97, %96 ], [ %99, %98 ]
store i32 %101, ptr %16, align 4
%102 = load i32, ptr %4, align 4
%103 = icmp sgt i32 %102, 4
br i1 %103, label %104, label %114
104: ; preds = %100
%105 = load ptr, ptr %5, align 8
%106 = getelementptr inbounds ptr, ptr %105, i64 4
%107 = load ptr, ptr %106, align 8
%108 = getelementptr inbounds i8, ptr %107, i64 0
%109 = load i8, ptr %108, align 1
%110 = sext i8 %109 to i32
%111 = icmp eq i32 %110, 67
br i1 %111, label %112, label %114
112: ; preds = %104
%113 = load i64, ptr @CL_DEVICE_TYPE_CPU, align 8
store i64 %113, ptr %14, align 8
br label %114
114: ; preds = %112, %104, %100
store i32 0, ptr %8, align 4
store i32 0, ptr %7, align 4
br label %115
115: ; preds = %169, %114
%116 = load ptr, ptr %13, align 8
%117 = icmp ne ptr %116, null
br i1 %117, label %118, label %122
118: ; preds = %115
%119 = load ptr, ptr %13, align 8
%120 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%121 = call i64 @fscanf(ptr noundef %119, ptr noundef @.str.3, ptr noundef %120)
br label %125
122: ; preds = %115
%123 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%124 = call i64 @scanf(ptr noundef @.str.3, ptr noundef %123)
br label %125
125: ; preds = %122, %118
%126 = phi i64 [ %121, %118 ], [ %124, %122 ]
%127 = icmp sgt i64 %126, 0
br i1 %127, label %128, label %172
128: ; preds = %125
%129 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%130 = call i32 @strlen(ptr noundef %129)
store i32 %130, ptr %17, align 4
%131 = load i32, ptr %8, align 4
%132 = icmp sgt i32 %130, %131
br i1 %132, label %133, label %135
133: ; preds = %128
%134 = load i32, ptr %17, align 4
store i32 %134, ptr %8, align 4
br label %135
135: ; preds = %133, %128
%136 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
store ptr %136, ptr %19, align 8
br label %137
137: ; preds = %154, %135
%138 = load i32, ptr %17, align 4
%139 = icmp sgt i32 %138, 30
br i1 %139, label %140, label %157
140: ; preds = %137
%141 = call i32 @strtob(ptr noundef %19, i32 noundef 30, ptr noundef @.str.4)
%142 = shl i32 %141, 1
store i32 %142, ptr %18, align 4
%143 = load i32, ptr %18, align 4
%144 = load ptr, ptr %12, align 8
%145 = load i32, ptr %10, align 4
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds i32, ptr %144, i64 %146
store i32 %143, ptr %147, align 4
%148 = load i32, ptr %10, align 4
%149 = add nsw i32 %148, 2
store i32 %149, ptr %10, align 4
%150 = icmp sgt i32 %149, 4194302
br i1 %150, label %151, label %153
151: ; preds = %140
%152 = call i32 @exit(i32 noundef -1) #4
unreachable
153: ; preds = %140
br label %154
154: ; preds = %153
%155 = load i32, ptr %17, align 4
%156 = sub nsw i32 %155, 30
store i32 %156, ptr %17, align 4
br label %137, !llvm.loop !6
157: ; preds = %137
%158 = load i32, ptr %17, align 4
%159 = call i32 @strtob(ptr noundef %19, i32 noundef %158, ptr noundef @.str.4)
%160 = load i32, ptr %17, align 4
%161 = sub nsw i32 31, %160
%162 = shl i32 %159, %161
%163 = load ptr, ptr %12, align 8
%164 = load i32, ptr %10, align 4
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds i32, ptr %163, i64 %165
store i32 %162, ptr %166, align 4
%167 = load i32, ptr %10, align 4
%168 = add nsw i32 %167, 2
store i32 %168, ptr %10, align 4
br label %169
169: ; preds = %157
%170 = load i32, ptr %7, align 4
%171 = add nsw i32 %170, 1
store i32 %171, ptr %7, align 4
br label %115, !llvm.loop !8
172: ; preds = %125
%173 = load ptr, ptr %13, align 8
%174 = icmp ne ptr %173, null
br i1 %174, label %175, label %178
175: ; preds = %172
%176 = load ptr, ptr %13, align 8
%177 = call i32 @fclose(ptr noundef %176)
br label %178
178: ; preds = %175, %172
%179 = load ptr, ptr %12, align 8
%180 = load i32, ptr %7, align 4
%181 = load i32, ptr %8, align 4
%182 = call i32 @printGrid(ptr noundef %179, i32 noundef %180, i32 noundef %181)
%183 = load i32, ptr %8, align 4
%184 = icmp sgt i32 %183, 30
br i1 %184, label %185, label %186
185: ; preds = %178
br label %194
186: ; preds = %178
%187 = load i32, ptr %8, align 4
%188 = icmp ne i32 %187, 0
br i1 %188, label %189, label %191
189: ; preds = %186
%190 = load i32, ptr %8, align 4
br label %192
191: ; preds = %186
br label %192
192: ; preds = %191, %189
%193 = phi i32 [ %190, %189 ], [ 1, %191 ]
br label %194
194: ; preds = %192, %185
%195 = phi i32 [ 30, %185 ], [ %193, %192 ]
store i32 %195, ptr %24, align 4
%196 = call i32 @clGetPlatformIDs(i32 noundef 1, ptr noundef %25, ptr noundef null)
store i32 %196, ptr %20, align 4
%197 = load i32, ptr %20, align 4
%198 = call i32 @chk(i32 noundef %197, ptr noundef @.str.5, ptr noundef null, ptr noundef null)
%199 = load i32, ptr %7, align 4
%200 = load i32, ptr %8, align 4
%201 = sub nsw i32 %200, 1
%202 = load i32, ptr %24, align 4
%203 = add nsw i32 %201, %202
%204 = load i32, ptr %24, align 4
%205 = sdiv i32 %203, %204
store i32 %205, ptr %24, align 4
%206 = load i64, ptr %14, align 8
%207 = load i64, ptr @CL_DEVICE_TYPE_GPU, align 8
%208 = icmp eq i64 %206, %207
%209 = zext i1 %208 to i64
%210 = select i1 %208, i32 71, i32 67
%211 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %199, i32 noundef %205, i32 noundef %210)
%212 = load i32, ptr %25, align 4
%213 = load i64, ptr %14, align 8
%214 = call i32 @clGetDeviceIDs(i32 noundef %212, i64 noundef %213, i32 noundef 1, ptr noundef %26, ptr noundef null)
store i32 %214, ptr %20, align 4
%215 = load i32, ptr %20, align 4
%216 = call i32 @chk(i32 noundef %215, ptr noundef @.str.7, ptr noundef null, ptr noundef null)
%217 = load i32, ptr %26, align 4
%218 = load i32, ptr @CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS, align 4
%219 = call i32 (i32, i32, i32, ...) @clGetDeviceInfo(i32 noundef %217, i32 noundef %218, i32 noundef 4, ptr noundef %27, ptr noundef null)
store i32 %219, ptr %20, align 4
%220 = load i32, ptr %20, align 4
%221 = call i32 @chk(i32 noundef %220, ptr noundef @.str.8, ptr noundef null, ptr noundef null)
%222 = load i32, ptr %27, align 4
%223 = zext i32 %222 to i64
%224 = call ptr @llvm.stacksave()
store ptr %224, ptr %28, align 8
%225 = alloca i64, i64 %223, align 16
store i64 %223, ptr %29, align 8
%226 = load i32, ptr %26, align 4
%227 = load i32, ptr @CL_DEVICE_MAX_WORK_ITEM_SIZES, align 4
%228 = load i32, ptr %27, align 4
%229 = sext i32 %228 to i64
%230 = mul i64 %229, 8
%231 = trunc i64 %230 to i32
%232 = call i32 (i32, i32, i32, ...) @clGetDeviceInfo(i32 noundef %226, i32 noundef %227, i32 noundef %231, ptr noundef %225, ptr noundef null)
store i32 %232, ptr %20, align 4
%233 = load i32, ptr %20, align 4
%234 = call i32 @chk(i32 noundef %233, ptr noundef @.str.8, ptr noundef null, ptr noundef null)
%235 = getelementptr inbounds i64, ptr %225, i64 0
%236 = load i64, ptr %235, align 16
%237 = trunc i64 %236 to i32
%238 = getelementptr inbounds i64, ptr %225, i64 1
%239 = load i64, ptr %238, align 8
%240 = trunc i64 %239 to i32
%241 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %237, i32 noundef %240)
%242 = getelementptr inbounds i64, ptr %225, i64 0
%243 = load i64, ptr %242, align 16
%244 = load i32, ptr %7, align 4
%245 = sext i32 %244 to i64
%246 = icmp ult i64 %243, %245
br i1 %246, label %247, label %250
247: ; preds = %194
%248 = getelementptr inbounds i64, ptr %225, i64 0
%249 = load i64, ptr %248, align 16
br label %253
250: ; preds = %194
%251 = load i32, ptr %7, align 4
%252 = sext i32 %251 to i64
br label %253
253: ; preds = %250, %247
%254 = phi i64 [ %249, %247 ], [ %252, %250 ]
%255 = trunc i64 %254 to i32
store i32 %255, ptr %23, align 4
%256 = load i32, ptr %7, align 4
%257 = sub nsw i32 %256, 1
%258 = load i32, ptr %23, align 4
%259 = add nsw i32 %257, %258
%260 = load i32, ptr %23, align 4
%261 = sdiv i32 %259, %260
store i32 %261, ptr %21, align 4
%262 = getelementptr inbounds i64, ptr %225, i64 1
%263 = load i64, ptr %262, align 8
%264 = load i32, ptr %24, align 4
%265 = sext i32 %264 to i64
%266 = icmp ult i64 %263, %265
br i1 %266, label %267, label %270
267: ; preds = %253
%268 = getelementptr inbounds i64, ptr %225, i64 1
%269 = load i64, ptr %268, align 8
br label %273
270: ; preds = %253
%271 = load i32, ptr %24, align 4
%272 = sext i32 %271 to i64
br label %273
273: ; preds = %270, %267
%274 = phi i64 [ %269, %267 ], [ %272, %270 ]
%275 = trunc i64 %274 to i32
store i32 %275, ptr %24, align 4
%276 = load i32, ptr %8, align 4
%277 = sub nsw i32 %276, 1
%278 = sdiv i32 %277, 30
%279 = load i32, ptr %24, align 4
%280 = add nsw i32 %278, %279
%281 = load i32, ptr %24, align 4
%282 = sdiv i32 %280, %281
store i32 %282, ptr %22, align 4
%283 = load i32, ptr %21, align 4
%284 = load i32, ptr %22, align 4
%285 = mul nsw i32 %283, %284
%286 = sext i32 %285 to i64
%287 = mul i64 4, %286
%288 = load i32, ptr %23, align 4
%289 = load i32, ptr %24, align 4
%290 = mul nsw i32 %288, %289
%291 = sext i32 %290 to i64
%292 = mul i64 %287, %291
store i64 %292, ptr %30, align 8
%293 = load i32, ptr %21, align 4
%294 = load i32, ptr %22, align 4
%295 = load i32, ptr %23, align 4
%296 = load i32, ptr %24, align 4
%297 = load i32, ptr %10, align 4
%298 = sdiv i32 %297, 2
%299 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %293, i32 noundef %294, i32 noundef %295, i32 noundef %296, i32 noundef %298)
%300 = getelementptr inbounds [3 x i32], ptr %31, i64 0, i64 0
%301 = load i32, ptr @CL_CONTEXT_PLATFORM, align 4
store i32 %301, ptr %300, align 4
%302 = getelementptr inbounds i32, ptr %300, i64 1
%303 = load i32, ptr %25, align 4
store i32 %303, ptr %302, align 4
%304 = getelementptr inbounds i32, ptr %302, i64 1
store i32 0, ptr %304, align 4
%305 = getelementptr inbounds [3 x i32], ptr %31, i64 0, i64 0
%306 = call i32 @clCreateContext(ptr noundef %305, i32 noundef 1, ptr noundef %26, ptr noundef null, ptr noundef null, ptr noundef %20)
store i32 %306, ptr %32, align 4
%307 = load i32, ptr %20, align 4
%308 = call i32 @chk(i32 noundef %307, ptr noundef @.str.11, ptr noundef null, ptr noundef null)
%309 = load i32, ptr %32, align 4
%310 = load i32, ptr %26, align 4
%311 = call i32 @clCreateCommandQueue(i32 noundef %309, i32 noundef %310, i32 noundef 0, ptr noundef %20)
store i32 %311, ptr %33, align 4
%312 = load i32, ptr %20, align 4
%313 = call i32 @chk(i32 noundef %312, ptr noundef @.str.12, ptr noundef null, ptr noundef null)
%314 = call ptr @readSource(ptr noundef @.str.13)
store ptr %314, ptr %34, align 8
%315 = load i32, ptr %32, align 4
%316 = call i32 @clCreateProgramWithSource(i32 noundef %315, i32 noundef 1, ptr noundef %34, ptr noundef null, ptr noundef %20)
store i32 %316, ptr %35, align 4
%317 = load i32, ptr %20, align 4
%318 = call i32 @chk(i32 noundef %317, ptr noundef @.str.14, ptr noundef null, ptr noundef null)
%319 = load i32, ptr %35, align 4
%320 = call i32 @clBuildProgram(i32 noundef %319, i32 noundef 1, ptr noundef %26, ptr noundef null, ptr noundef null, ptr noundef null)
store i32 %320, ptr %20, align 4
%321 = load i32, ptr %20, align 4
%322 = call i32 @chk(i32 noundef %321, ptr noundef @.str.15, ptr noundef %26, ptr noundef %35)
%323 = load i32, ptr %35, align 4
%324 = call i32 @clCreateKernel(i32 noundef %323, ptr noundef @.str.16, ptr noundef %20)
store i32 %324, ptr %36, align 4
%325 = load i32, ptr %20, align 4
%326 = call i32 @chk(i32 noundef %325, ptr noundef @.str.17, ptr noundef null, ptr noundef null)
%327 = load i32, ptr %32, align 4
%328 = load i64, ptr %30, align 8
%329 = call i32 @clCreateBuffer(i32 noundef %327, i32 noundef 0, i64 noundef %328, ptr noundef null, ptr noundef %20)
store i32 %329, ptr %37, align 4
%330 = load i32, ptr %20, align 4
%331 = call i32 @chk(i32 noundef %330, ptr noundef @.str.18, ptr noundef null, ptr noundef null)
store i32 0, ptr %39, align 4
br label %332
332: ; preds = %425, %273
%333 = load i32, ptr %15, align 4
%334 = icmp eq i32 %333, 0
br i1 %334, label %339, label %335
335: ; preds = %332
%336 = load i32, ptr %39, align 4
%337 = load i32, ptr %15, align 4
%338 = icmp slt i32 %336, %337
br label %339
339: ; preds = %335, %332
%340 = phi i1 [ true, %332 ], [ %338, %335 ]
br i1 %340, label %341, label %428
341: ; preds = %339
%342 = load i32, ptr %39, align 4
%343 = icmp eq i32 %342, 0
br i1 %343, label %344, label %377
344: ; preds = %341
store i32 2, ptr %40, align 4
store i32 3, ptr %41, align 4
store i32 3, ptr %42, align 4
store i32 3, ptr %43, align 4
%345 = load i32, ptr %36, align 4
%346 = call i32 @clSetKernelArg(i32 noundef %345, i32 noundef 0, i32 noundef 4, ptr noundef %37)
store i32 %346, ptr %20, align 4
%347 = load i32, ptr %36, align 4
%348 = call i32 @clSetKernelArg(i32 noundef %347, i32 noundef 1, i32 noundef 4, ptr noundef %40)
%349 = load i32, ptr %20, align 4
%350 = or i32 %349, %348
store i32 %350, ptr %20, align 4
%351 = load i32, ptr %36, align 4
%352 = call i32 @clSetKernelArg(i32 noundef %351, i32 noundef 2, i32 noundef 4, ptr noundef %41)
%353 = load i32, ptr %20, align 4
%354 = or i32 %353, %352
store i32 %354, ptr %20, align 4
%355 = load i32, ptr %36, align 4
%356 = call i32 @clSetKernelArg(i32 noundef %355, i32 noundef 3, i32 noundef 4, ptr noundef %42)
%357 = load i32, ptr %20, align 4
%358 = or i32 %357, %356
store i32 %358, ptr %20, align 4
%359 = load i32, ptr %36, align 4
%360 = call i32 @clSetKernelArg(i32 noundef %359, i32 noundef 4, i32 noundef 4, ptr noundef %43)
%361 = load i32, ptr %20, align 4
%362 = or i32 %361, %360
store i32 %362, ptr %20, align 4
%363 = load i32, ptr %36, align 4
%364 = call i32 @clSetKernelArg(i32 noundef %363, i32 noundef 5, i32 noundef 4, ptr noundef %39)
%365 = load i32, ptr %20, align 4
%366 = or i32 %365, %364
store i32 %366, ptr %20, align 4
%367 = load i32, ptr %20, align 4
%368 = call i32 @chk(i32 noundef %367, ptr noundef @.str.19, ptr noundef null, ptr noundef null)
%369 = load i32, ptr %33, align 4
%370 = load i32, ptr %37, align 4
%371 = load i32, ptr @CL_TRUE, align 4
%372 = load i64, ptr %30, align 8
%373 = load ptr, ptr %12, align 8
%374 = call i32 @clEnqueueWriteBuffer(i32 noundef %369, i32 noundef %370, i32 noundef %371, i32 noundef 0, i64 noundef %372, ptr noundef %373, i32 noundef 0, ptr noundef null, ptr noundef null)
store i32 %374, ptr %20, align 4
%375 = load i32, ptr %20, align 4
%376 = call i32 @chk(i32 noundef %375, ptr noundef @.str.20, ptr noundef null, ptr noundef null)
br label %377
377: ; preds = %344, %341
%378 = getelementptr inbounds [2 x i64], ptr %44, i64 0, i64 0
%379 = load i32, ptr %7, align 4
%380 = sext i32 %379 to i64
store i64 %380, ptr %378, align 8
%381 = getelementptr inbounds i64, ptr %378, i64 1
%382 = load i32, ptr %22, align 4
%383 = sext i32 %382 to i64
store i64 %383, ptr %381, align 8
%384 = getelementptr inbounds [2 x i64], ptr %45, i64 0, i64 0
%385 = load i32, ptr %23, align 4
%386 = sext i32 %385 to i64
store i64 %386, ptr %384, align 8
%387 = getelementptr inbounds i64, ptr %384, i64 1
store i64 1, ptr %387, align 8
%388 = load i32, ptr %33, align 4
%389 = load i32, ptr %36, align 4
%390 = getelementptr inbounds [2 x i64], ptr %44, i64 0, i64 0
%391 = getelementptr inbounds [2 x i64], ptr %45, i64 0, i64 0
%392 = call i32 @clEnqueueNDRangeKernel(i32 noundef %388, i32 noundef %389, i32 noundef 2, ptr noundef null, ptr noundef %390, ptr noundef %391, i32 noundef 0, ptr noundef null, ptr noundef null)
store i32 %392, ptr %20, align 4
%393 = load i32, ptr %20, align 4
%394 = call i32 @chk(i32 noundef %393, ptr noundef @.str.21, ptr noundef null, ptr noundef null)
%395 = load i32, ptr %16, align 4
%396 = icmp eq i32 %395, 0
br i1 %396, label %403, label %397
397: ; preds = %377
%398 = load i32, ptr %39, align 4
%399 = add nsw i32 %398, 1
%400 = load i32, ptr %16, align 4
%401 = srem i32 %399, %400
%402 = icmp eq i32 %401, 0
br i1 %402, label %403, label %424
403: ; preds = %397, %377
%404 = load i32, ptr %33, align 4
%405 = load i32, ptr %37, align 4
%406 = load i32, ptr @CL_TRUE, align 4
%407 = load i64, ptr %30, align 8
%408 = load ptr, ptr %12, align 8
%409 = call i32 @clEnqueueReadBuffer(i32 noundef %404, i32 noundef %405, i32 noundef %406, i32 noundef 0, i64 noundef %407, ptr noundef %408, i32 noundef 0, ptr noundef null, ptr noundef null)
store i32 %409, ptr %20, align 4
%410 = load i32, ptr %20, align 4
%411 = call i32 @chk(i32 noundef %410, ptr noundef @.str.22, ptr noundef null, ptr noundef null)
%412 = load i32, ptr %39, align 4
%413 = add nsw i32 %412, 1
%414 = load i32, ptr %15, align 4
%415 = call i32 (ptr, ...) @printf(ptr noundef @.str.23, i32 noundef %413, i32 noundef %414)
%416 = load ptr, ptr %12, align 8
%417 = load i32, ptr %39, align 4
%418 = and i32 %417, 1
%419 = sext i32 %418 to i64
%420 = getelementptr inbounds i32, ptr %416, i64 %419
%421 = load i32, ptr %7, align 4
%422 = load i32, ptr %8, align 4
%423 = call i32 @printGrid(ptr noundef %420, i32 noundef %421, i32 noundef %422)
br label %424
424: ; preds = %403, %397
br label %425
425: ; preds = %424
%426 = load i32, ptr %39, align 4
%427 = add nsw i32 %426, 1
store i32 %427, ptr %39, align 4
br label %332, !llvm.loop !9
428: ; preds = %339
%429 = call i32 @exit(i32 noundef 0) #4
unreachable
}
declare i64 @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i64 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strtob(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @printGrid(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @clGetPlatformIDs(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @chk(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @clGetDeviceIDs(i32 noundef, i64 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @clGetDeviceInfo(i32 noundef, i32 noundef, i32 noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #3
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 @readSource(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 @clCreateKernel(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @clCreateBuffer(i32 noundef, i32 noundef, i64 noundef, ptr noundef, ptr noundef) #1
declare i32 @clSetKernelArg(i32 noundef, i32 noundef, i32 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 @clEnqueueNDRangeKernel(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @clEnqueueReadBuffer(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvow_ufjr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"%s file|- [iterations [skip [c|gpu]]]\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"-\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@CL_DEVICE_TYPE_GPU = dso_local global i64 0, align 8
@CL_DEVICE_TYPE_CPU = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"- _\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"clGetPlatformIDs\00", align 1
@.str.6 = private unnamed_addr constant [45 x i8] c"ideal workgroup size %d*%d, requesting %cPU\0A\00", align 1
@.str.7 = private unnamed_addr constant [15 x i8] c"clGetDeviceIDs\00", align 1
@CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [16 x i8] c"clGetDeviceInfo\00", align 1
@CL_DEVICE_MAX_WORK_ITEM_SIZES = dso_local global i32 0, align 4
@.str.9 = private unnamed_addr constant [54 x i8] c"the max workgroup size of which is reported as %d*%d\0A\00", align 1
@.str.10 = private unnamed_addr constant [38 x i8] c"requesting %d*%d workgroups %d*%d=%d\0A\00", align 1
@CL_CONTEXT_PLATFORM = dso_local global i32 0, align 4
@.str.11 = private unnamed_addr constant [16 x i8] c"clCreateContext\00", align 1
@.str.12 = private unnamed_addr constant [21 x i8] c"clCreateCommandQueue\00", align 1
@.str.13 = private unnamed_addr constant [12 x i8] c"gamelife.cl\00", align 1
@.str.14 = private unnamed_addr constant [26 x i8] c"clCreateProgramWithSource\00", align 1
@.str.15 = private unnamed_addr constant [15 x i8] c"clBuildProgram\00", align 1
@.str.16 = private unnamed_addr constant [7 x i8] c"evolve\00", align 1
@.str.17 = private unnamed_addr constant [15 x i8] c"clCreateKernel\00", align 1
@.str.18 = private unnamed_addr constant [15 x i8] c"clCreateBuffer\00", align 1
@.str.19 = private unnamed_addr constant [15 x i8] c"clSetKernelArg\00", align 1
@CL_TRUE = dso_local global i32 0, align 4
@.str.20 = private unnamed_addr constant [21 x i8] c"clEnqueueWriteBuffer\00", align 1
@.str.21 = private unnamed_addr constant [23 x i8] c"clEnqueueNDRangeKernel\00", align 1
@.str.22 = private unnamed_addr constant [20 x i8] c"clEnqueueReadBuffer\00", align 1
@.str.23 = private unnamed_addr constant [8 x i8] c"%d/%d:\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [1024 x i8], align 16
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i64, align 8
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca ptr, align 8
%20 = alloca 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 ptr, align 8
%29 = alloca i64, align 8
%30 = alloca i64, align 8
%31 = alloca [3 x i32], align 4
%32 = alloca i32, align 4
%33 = alloca i32, align 4
%34 = alloca ptr, align 8
%35 = alloca i32, align 4
%36 = alloca i32, align 4
%37 = alloca i32, align 4
%38 = alloca i32, align 4
%39 = alloca i32, align 4
%40 = alloca i32, align 4
%41 = alloca i32, align 4
%42 = alloca i32, align 4
%43 = alloca i32, align 4
%44 = alloca [2 x i64], align 16
%45 = alloca [2 x i64], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %10, align 4
store i32 4194304, ptr %11, align 4
%46 = call i64 @malloc(i32 noundef 16777216)
%47 = inttoptr i64 %46 to ptr
store ptr %47, ptr %12, align 8
%48 = load i32, ptr %4, align 4
%49 = icmp slt i32 %48, 2
br i1 %49, label %50, label %55
50: ; preds = %2
%51 = load ptr, ptr %5, align 8
%52 = load ptr, ptr %51, align 8
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %52)
%54 = call i32 @exit(i32 noundef 1) #4
unreachable
55: ; preds = %2
%56 = load ptr, ptr %5, align 8
%57 = getelementptr inbounds ptr, ptr %56, i64 1
%58 = load ptr, ptr %57, align 8
%59 = call i64 @strcmp(ptr noundef %58, ptr noundef @.str.1)
%60 = icmp ne i64 %59, 0
br i1 %60, label %61, label %66
61: ; preds = %55
%62 = load ptr, ptr %5, align 8
%63 = getelementptr inbounds ptr, ptr %62, i64 1
%64 = load ptr, ptr %63, align 8
%65 = call ptr @fopen(ptr noundef %64, ptr noundef @.str.2)
br label %67
66: ; preds = %55
br label %67
67: ; preds = %66, %61
%68 = phi ptr [ %65, %61 ], [ null, %66 ]
store ptr %68, ptr %13, align 8
%69 = load i64, ptr @CL_DEVICE_TYPE_GPU, align 8
store i64 %69, ptr %14, align 8
%70 = load i32, ptr %4, align 4
%71 = icmp sgt i32 %70, 2
br i1 %71, label %72, label %77
72: ; preds = %67
%73 = load ptr, ptr %5, align 8
%74 = getelementptr inbounds ptr, ptr %73, i64 2
%75 = load ptr, ptr %74, align 8
%76 = call i32 @atoi(ptr noundef %75)
br label %78
77: ; preds = %67
br label %78
78: ; preds = %77, %72
%79 = phi i32 [ %76, %72 ], [ 0, %77 ]
store i32 %79, ptr %15, align 4
%80 = load i32, ptr %4, align 4
%81 = icmp sgt i32 %80, 3
br i1 %81, label %82, label %87
82: ; preds = %78
%83 = load ptr, ptr %5, align 8
%84 = getelementptr inbounds ptr, ptr %83, i64 3
%85 = load ptr, ptr %84, align 8
%86 = call i32 @atoi(ptr noundef %85)
br label %88
87: ; preds = %78
br label %88
88: ; preds = %87, %82
%89 = phi i32 [ %86, %82 ], [ 1, %87 ]
store i32 %89, ptr %16, align 4
%90 = load i32, ptr %16, align 4
%91 = load i32, ptr %15, align 4
%92 = icmp sgt i32 %90, %91
br i1 %92, label %96, label %93
93: ; preds = %88
%94 = load i32, ptr %16, align 4
%95 = icmp slt i32 %94, 1
br i1 %95, label %96, label %98
96: ; preds = %93, %88
%97 = load i32, ptr %15, align 4
br label %100
98: ; preds = %93
%99 = load i32, ptr %16, align 4
br label %100
100: ; preds = %98, %96
%101 = phi i32 [ %97, %96 ], [ %99, %98 ]
store i32 %101, ptr %16, align 4
%102 = load i32, ptr %4, align 4
%103 = icmp sgt i32 %102, 4
br i1 %103, label %104, label %114
104: ; preds = %100
%105 = load ptr, ptr %5, align 8
%106 = getelementptr inbounds ptr, ptr %105, i64 4
%107 = load ptr, ptr %106, align 8
%108 = getelementptr inbounds i8, ptr %107, i64 0
%109 = load i8, ptr %108, align 1
%110 = sext i8 %109 to i32
%111 = icmp eq i32 %110, 67
br i1 %111, label %112, label %114
112: ; preds = %104
%113 = load i64, ptr @CL_DEVICE_TYPE_CPU, align 8
store i64 %113, ptr %14, align 8
br label %114
114: ; preds = %112, %104, %100
store i32 0, ptr %8, align 4
store i32 0, ptr %7, align 4
br label %115
115: ; preds = %170, %114
%116 = load ptr, ptr %13, align 8
%117 = icmp ne ptr %116, null
br i1 %117, label %118, label %122
118: ; preds = %115
%119 = load ptr, ptr %13, align 8
%120 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%121 = call i64 @fscanf(ptr noundef %119, ptr noundef @.str.3, ptr noundef %120)
br label %125
122: ; preds = %115
%123 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%124 = call i64 @scanf(ptr noundef @.str.3, ptr noundef %123)
br label %125
125: ; preds = %122, %118
%126 = phi i64 [ %121, %118 ], [ %124, %122 ]
%127 = icmp sgt i64 %126, 0
br i1 %127, label %128, label %173
128: ; preds = %125
%129 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%130 = call i32 @strlen(ptr noundef %129)
store i32 %130, ptr %17, align 4
%131 = load i32, ptr %8, align 4
%132 = icmp sgt i32 %130, %131
br i1 %132, label %133, label %135
133: ; preds = %128
%134 = load i32, ptr %17, align 4
store i32 %134, ptr %8, align 4
br label %135
135: ; preds = %133, %128
%136 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
store ptr %136, ptr %19, align 8
%137 = load i32, ptr %17, align 4
%138 = icmp sgt i32 %137, 30
br i1 %138, label %.lr.ph, label %158
.lr.ph: ; preds = %135
br label %139
139: ; preds = %.lr.ph, %153
%140 = call i32 @strtob(ptr noundef %19, i32 noundef 30, ptr noundef @.str.4)
%141 = shl i32 %140, 1
store i32 %141, ptr %18, align 4
%142 = load i32, ptr %18, align 4
%143 = load ptr, ptr %12, align 8
%144 = load i32, ptr %10, align 4
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds i32, ptr %143, i64 %145
store i32 %142, ptr %146, align 4
%147 = load i32, ptr %10, align 4
%148 = add nsw i32 %147, 2
store i32 %148, ptr %10, align 4
%149 = icmp sgt i32 %148, 4194302
br i1 %149, label %150, label %152
150: ; preds = %139
%151 = call i32 @exit(i32 noundef -1) #4
unreachable
152: ; preds = %139
br label %153
153: ; preds = %152
%154 = load i32, ptr %17, align 4
%155 = sub nsw i32 %154, 30
store i32 %155, ptr %17, align 4
%156 = load i32, ptr %17, align 4
%157 = icmp sgt i32 %156, 30
br i1 %157, label %139, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %153
br label %158
158: ; preds = %._crit_edge, %135
%159 = load i32, ptr %17, align 4
%160 = call i32 @strtob(ptr noundef %19, i32 noundef %159, ptr noundef @.str.4)
%161 = load i32, ptr %17, align 4
%162 = sub nsw i32 31, %161
%163 = shl i32 %160, %162
%164 = load ptr, ptr %12, align 8
%165 = load i32, ptr %10, align 4
%166 = sext i32 %165 to i64
%167 = getelementptr inbounds i32, ptr %164, i64 %166
store i32 %163, ptr %167, align 4
%168 = load i32, ptr %10, align 4
%169 = add nsw i32 %168, 2
store i32 %169, ptr %10, align 4
br label %170
170: ; preds = %158
%171 = load i32, ptr %7, align 4
%172 = add nsw i32 %171, 1
store i32 %172, ptr %7, align 4
br label %115, !llvm.loop !8
173: ; preds = %125
%174 = load ptr, ptr %13, align 8
%175 = icmp ne ptr %174, null
br i1 %175, label %176, label %179
176: ; preds = %173
%177 = load ptr, ptr %13, align 8
%178 = call i32 @fclose(ptr noundef %177)
br label %179
179: ; preds = %176, %173
%180 = load ptr, ptr %12, align 8
%181 = load i32, ptr %7, align 4
%182 = load i32, ptr %8, align 4
%183 = call i32 @printGrid(ptr noundef %180, i32 noundef %181, i32 noundef %182)
%184 = load i32, ptr %8, align 4
%185 = icmp sgt i32 %184, 30
br i1 %185, label %186, label %187
186: ; preds = %179
br label %195
187: ; preds = %179
%188 = load i32, ptr %8, align 4
%189 = icmp ne i32 %188, 0
br i1 %189, label %190, label %192
190: ; preds = %187
%191 = load i32, ptr %8, align 4
br label %193
192: ; preds = %187
br label %193
193: ; preds = %192, %190
%194 = phi i32 [ %191, %190 ], [ 1, %192 ]
br label %195
195: ; preds = %193, %186
%196 = phi i32 [ 30, %186 ], [ %194, %193 ]
store i32 %196, ptr %24, align 4
%197 = call i32 @clGetPlatformIDs(i32 noundef 1, ptr noundef %25, ptr noundef null)
store i32 %197, ptr %20, align 4
%198 = load i32, ptr %20, align 4
%199 = call i32 @chk(i32 noundef %198, ptr noundef @.str.5, ptr noundef null, ptr noundef null)
%200 = load i32, ptr %7, align 4
%201 = load i32, ptr %8, align 4
%202 = sub nsw i32 %201, 1
%203 = load i32, ptr %24, align 4
%204 = add nsw i32 %202, %203
%205 = load i32, ptr %24, align 4
%206 = sdiv i32 %204, %205
store i32 %206, ptr %24, align 4
%207 = load i64, ptr %14, align 8
%208 = load i64, ptr @CL_DEVICE_TYPE_GPU, align 8
%209 = icmp eq i64 %207, %208
%210 = zext i1 %209 to i64
%211 = select i1 %209, i32 71, i32 67
%212 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %200, i32 noundef %206, i32 noundef %211)
%213 = load i32, ptr %25, align 4
%214 = load i64, ptr %14, align 8
%215 = call i32 @clGetDeviceIDs(i32 noundef %213, i64 noundef %214, i32 noundef 1, ptr noundef %26, ptr noundef null)
store i32 %215, ptr %20, align 4
%216 = load i32, ptr %20, align 4
%217 = call i32 @chk(i32 noundef %216, ptr noundef @.str.7, ptr noundef null, ptr noundef null)
%218 = load i32, ptr %26, align 4
%219 = load i32, ptr @CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS, align 4
%220 = call i32 (i32, i32, i32, ...) @clGetDeviceInfo(i32 noundef %218, i32 noundef %219, i32 noundef 4, ptr noundef %27, ptr noundef null)
store i32 %220, ptr %20, align 4
%221 = load i32, ptr %20, align 4
%222 = call i32 @chk(i32 noundef %221, ptr noundef @.str.8, ptr noundef null, ptr noundef null)
%223 = load i32, ptr %27, align 4
%224 = zext i32 %223 to i64
%225 = call ptr @llvm.stacksave()
store ptr %225, ptr %28, align 8
%226 = alloca i64, i64 %224, align 16
store i64 %224, ptr %29, align 8
%227 = load i32, ptr %26, align 4
%228 = load i32, ptr @CL_DEVICE_MAX_WORK_ITEM_SIZES, align 4
%229 = load i32, ptr %27, align 4
%230 = sext i32 %229 to i64
%231 = mul i64 %230, 8
%232 = trunc i64 %231 to i32
%233 = call i32 (i32, i32, i32, ...) @clGetDeviceInfo(i32 noundef %227, i32 noundef %228, i32 noundef %232, ptr noundef %226, ptr noundef null)
store i32 %233, ptr %20, align 4
%234 = load i32, ptr %20, align 4
%235 = call i32 @chk(i32 noundef %234, ptr noundef @.str.8, ptr noundef null, ptr noundef null)
%236 = getelementptr inbounds i64, ptr %226, i64 0
%237 = load i64, ptr %236, align 16
%238 = trunc i64 %237 to i32
%239 = getelementptr inbounds i64, ptr %226, i64 1
%240 = load i64, ptr %239, align 8
%241 = trunc i64 %240 to i32
%242 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %238, i32 noundef %241)
%243 = getelementptr inbounds i64, ptr %226, i64 0
%244 = load i64, ptr %243, align 16
%245 = load i32, ptr %7, align 4
%246 = sext i32 %245 to i64
%247 = icmp ult i64 %244, %246
br i1 %247, label %248, label %251
248: ; preds = %195
%249 = getelementptr inbounds i64, ptr %226, i64 0
%250 = load i64, ptr %249, align 16
br label %254
251: ; preds = %195
%252 = load i32, ptr %7, align 4
%253 = sext i32 %252 to i64
br label %254
254: ; preds = %251, %248
%255 = phi i64 [ %250, %248 ], [ %253, %251 ]
%256 = trunc i64 %255 to i32
store i32 %256, ptr %23, align 4
%257 = load i32, ptr %7, align 4
%258 = sub nsw i32 %257, 1
%259 = load i32, ptr %23, align 4
%260 = add nsw i32 %258, %259
%261 = load i32, ptr %23, align 4
%262 = sdiv i32 %260, %261
store i32 %262, ptr %21, align 4
%263 = getelementptr inbounds i64, ptr %226, i64 1
%264 = load i64, ptr %263, align 8
%265 = load i32, ptr %24, align 4
%266 = sext i32 %265 to i64
%267 = icmp ult i64 %264, %266
br i1 %267, label %268, label %271
268: ; preds = %254
%269 = getelementptr inbounds i64, ptr %226, i64 1
%270 = load i64, ptr %269, align 8
br label %274
271: ; preds = %254
%272 = load i32, ptr %24, align 4
%273 = sext i32 %272 to i64
br label %274
274: ; preds = %271, %268
%275 = phi i64 [ %270, %268 ], [ %273, %271 ]
%276 = trunc i64 %275 to i32
store i32 %276, ptr %24, align 4
%277 = load i32, ptr %8, align 4
%278 = sub nsw i32 %277, 1
%279 = sdiv i32 %278, 30
%280 = load i32, ptr %24, align 4
%281 = add nsw i32 %279, %280
%282 = load i32, ptr %24, align 4
%283 = sdiv i32 %281, %282
store i32 %283, ptr %22, align 4
%284 = load i32, ptr %21, align 4
%285 = load i32, ptr %22, align 4
%286 = mul nsw i32 %284, %285
%287 = sext i32 %286 to i64
%288 = mul i64 4, %287
%289 = load i32, ptr %23, align 4
%290 = load i32, ptr %24, align 4
%291 = mul nsw i32 %289, %290
%292 = sext i32 %291 to i64
%293 = mul i64 %288, %292
store i64 %293, ptr %30, align 8
%294 = load i32, ptr %21, align 4
%295 = load i32, ptr %22, align 4
%296 = load i32, ptr %23, align 4
%297 = load i32, ptr %24, align 4
%298 = load i32, ptr %10, align 4
%299 = sdiv i32 %298, 2
%300 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %294, i32 noundef %295, i32 noundef %296, i32 noundef %297, i32 noundef %299)
%301 = getelementptr inbounds [3 x i32], ptr %31, i64 0, i64 0
%302 = load i32, ptr @CL_CONTEXT_PLATFORM, align 4
store i32 %302, ptr %301, align 4
%303 = getelementptr inbounds i32, ptr %301, i64 1
%304 = load i32, ptr %25, align 4
store i32 %304, ptr %303, align 4
%305 = getelementptr inbounds i32, ptr %303, i64 1
store i32 0, ptr %305, align 4
%306 = getelementptr inbounds [3 x i32], ptr %31, i64 0, i64 0
%307 = call i32 @clCreateContext(ptr noundef %306, i32 noundef 1, ptr noundef %26, ptr noundef null, ptr noundef null, ptr noundef %20)
store i32 %307, ptr %32, align 4
%308 = load i32, ptr %20, align 4
%309 = call i32 @chk(i32 noundef %308, ptr noundef @.str.11, ptr noundef null, ptr noundef null)
%310 = load i32, ptr %32, align 4
%311 = load i32, ptr %26, align 4
%312 = call i32 @clCreateCommandQueue(i32 noundef %310, i32 noundef %311, i32 noundef 0, ptr noundef %20)
store i32 %312, ptr %33, align 4
%313 = load i32, ptr %20, align 4
%314 = call i32 @chk(i32 noundef %313, ptr noundef @.str.12, ptr noundef null, ptr noundef null)
%315 = call ptr @readSource(ptr noundef @.str.13)
store ptr %315, ptr %34, align 8
%316 = load i32, ptr %32, align 4
%317 = call i32 @clCreateProgramWithSource(i32 noundef %316, i32 noundef 1, ptr noundef %34, ptr noundef null, ptr noundef %20)
store i32 %317, ptr %35, align 4
%318 = load i32, ptr %20, align 4
%319 = call i32 @chk(i32 noundef %318, ptr noundef @.str.14, ptr noundef null, ptr noundef null)
%320 = load i32, ptr %35, align 4
%321 = call i32 @clBuildProgram(i32 noundef %320, i32 noundef 1, ptr noundef %26, ptr noundef null, ptr noundef null, ptr noundef null)
store i32 %321, ptr %20, align 4
%322 = load i32, ptr %20, align 4
%323 = call i32 @chk(i32 noundef %322, ptr noundef @.str.15, ptr noundef %26, ptr noundef %35)
%324 = load i32, ptr %35, align 4
%325 = call i32 @clCreateKernel(i32 noundef %324, ptr noundef @.str.16, ptr noundef %20)
store i32 %325, ptr %36, align 4
%326 = load i32, ptr %20, align 4
%327 = call i32 @chk(i32 noundef %326, ptr noundef @.str.17, ptr noundef null, ptr noundef null)
%328 = load i32, ptr %32, align 4
%329 = load i64, ptr %30, align 8
%330 = call i32 @clCreateBuffer(i32 noundef %328, i32 noundef 0, i64 noundef %329, ptr noundef null, ptr noundef %20)
store i32 %330, ptr %37, align 4
%331 = load i32, ptr %20, align 4
%332 = call i32 @chk(i32 noundef %331, ptr noundef @.str.18, ptr noundef null, ptr noundef null)
store i32 0, ptr %39, align 4
br label %333
333: ; preds = %426, %274
%334 = load i32, ptr %15, align 4
%335 = icmp eq i32 %334, 0
br i1 %335, label %340, label %336
336: ; preds = %333
%337 = load i32, ptr %39, align 4
%338 = load i32, ptr %15, align 4
%339 = icmp slt i32 %337, %338
br label %340
340: ; preds = %336, %333
%341 = phi i1 [ true, %333 ], [ %339, %336 ]
br i1 %341, label %342, label %429
342: ; preds = %340
%343 = load i32, ptr %39, align 4
%344 = icmp eq i32 %343, 0
br i1 %344, label %345, label %378
345: ; preds = %342
store i32 2, ptr %40, align 4
store i32 3, ptr %41, align 4
store i32 3, ptr %42, align 4
store i32 3, ptr %43, align 4
%346 = load i32, ptr %36, align 4
%347 = call i32 @clSetKernelArg(i32 noundef %346, i32 noundef 0, i32 noundef 4, ptr noundef %37)
store i32 %347, ptr %20, align 4
%348 = load i32, ptr %36, align 4
%349 = call i32 @clSetKernelArg(i32 noundef %348, i32 noundef 1, i32 noundef 4, ptr noundef %40)
%350 = load i32, ptr %20, align 4
%351 = or i32 %350, %349
store i32 %351, ptr %20, align 4
%352 = load i32, ptr %36, align 4
%353 = call i32 @clSetKernelArg(i32 noundef %352, i32 noundef 2, i32 noundef 4, ptr noundef %41)
%354 = load i32, ptr %20, align 4
%355 = or i32 %354, %353
store i32 %355, ptr %20, align 4
%356 = load i32, ptr %36, align 4
%357 = call i32 @clSetKernelArg(i32 noundef %356, i32 noundef 3, i32 noundef 4, ptr noundef %42)
%358 = load i32, ptr %20, align 4
%359 = or i32 %358, %357
store i32 %359, ptr %20, align 4
%360 = load i32, ptr %36, align 4
%361 = call i32 @clSetKernelArg(i32 noundef %360, i32 noundef 4, i32 noundef 4, ptr noundef %43)
%362 = load i32, ptr %20, align 4
%363 = or i32 %362, %361
store i32 %363, ptr %20, align 4
%364 = load i32, ptr %36, align 4
%365 = call i32 @clSetKernelArg(i32 noundef %364, i32 noundef 5, i32 noundef 4, ptr noundef %39)
%366 = load i32, ptr %20, align 4
%367 = or i32 %366, %365
store i32 %367, ptr %20, align 4
%368 = load i32, ptr %20, align 4
%369 = call i32 @chk(i32 noundef %368, ptr noundef @.str.19, ptr noundef null, ptr noundef null)
%370 = load i32, ptr %33, align 4
%371 = load i32, ptr %37, align 4
%372 = load i32, ptr @CL_TRUE, align 4
%373 = load i64, ptr %30, align 8
%374 = load ptr, ptr %12, align 8
%375 = call i32 @clEnqueueWriteBuffer(i32 noundef %370, i32 noundef %371, i32 noundef %372, i32 noundef 0, i64 noundef %373, ptr noundef %374, i32 noundef 0, ptr noundef null, ptr noundef null)
store i32 %375, ptr %20, align 4
%376 = load i32, ptr %20, align 4
%377 = call i32 @chk(i32 noundef %376, ptr noundef @.str.20, ptr noundef null, ptr noundef null)
br label %378
378: ; preds = %345, %342
%379 = getelementptr inbounds [2 x i64], ptr %44, i64 0, i64 0
%380 = load i32, ptr %7, align 4
%381 = sext i32 %380 to i64
store i64 %381, ptr %379, align 8
%382 = getelementptr inbounds i64, ptr %379, i64 1
%383 = load i32, ptr %22, align 4
%384 = sext i32 %383 to i64
store i64 %384, ptr %382, align 8
%385 = getelementptr inbounds [2 x i64], ptr %45, i64 0, i64 0
%386 = load i32, ptr %23, align 4
%387 = sext i32 %386 to i64
store i64 %387, ptr %385, align 8
%388 = getelementptr inbounds i64, ptr %385, i64 1
store i64 1, ptr %388, align 8
%389 = load i32, ptr %33, align 4
%390 = load i32, ptr %36, align 4
%391 = getelementptr inbounds [2 x i64], ptr %44, i64 0, i64 0
%392 = getelementptr inbounds [2 x i64], ptr %45, i64 0, i64 0
%393 = call i32 @clEnqueueNDRangeKernel(i32 noundef %389, i32 noundef %390, i32 noundef 2, ptr noundef null, ptr noundef %391, ptr noundef %392, i32 noundef 0, ptr noundef null, ptr noundef null)
store i32 %393, ptr %20, align 4
%394 = load i32, ptr %20, align 4
%395 = call i32 @chk(i32 noundef %394, ptr noundef @.str.21, ptr noundef null, ptr noundef null)
%396 = load i32, ptr %16, align 4
%397 = icmp eq i32 %396, 0
br i1 %397, label %404, label %398
398: ; preds = %378
%399 = load i32, ptr %39, align 4
%400 = add nsw i32 %399, 1
%401 = load i32, ptr %16, align 4
%402 = srem i32 %400, %401
%403 = icmp eq i32 %402, 0
br i1 %403, label %404, label %425
404: ; preds = %398, %378
%405 = load i32, ptr %33, align 4
%406 = load i32, ptr %37, align 4
%407 = load i32, ptr @CL_TRUE, align 4
%408 = load i64, ptr %30, align 8
%409 = load ptr, ptr %12, align 8
%410 = call i32 @clEnqueueReadBuffer(i32 noundef %405, i32 noundef %406, i32 noundef %407, i32 noundef 0, i64 noundef %408, ptr noundef %409, i32 noundef 0, ptr noundef null, ptr noundef null)
store i32 %410, ptr %20, align 4
%411 = load i32, ptr %20, align 4
%412 = call i32 @chk(i32 noundef %411, ptr noundef @.str.22, ptr noundef null, ptr noundef null)
%413 = load i32, ptr %39, align 4
%414 = add nsw i32 %413, 1
%415 = load i32, ptr %15, align 4
%416 = call i32 (ptr, ...) @printf(ptr noundef @.str.23, i32 noundef %414, i32 noundef %415)
%417 = load ptr, ptr %12, align 8
%418 = load i32, ptr %39, align 4
%419 = and i32 %418, 1
%420 = sext i32 %419 to i64
%421 = getelementptr inbounds i32, ptr %417, i64 %420
%422 = load i32, ptr %7, align 4
%423 = load i32, ptr %8, align 4
%424 = call i32 @printGrid(ptr noundef %421, i32 noundef %422, i32 noundef %423)
br label %425
425: ; preds = %404, %398
br label %426
426: ; preds = %425
%427 = load i32, ptr %39, align 4
%428 = add nsw i32 %427, 1
store i32 %428, ptr %39, align 4
br label %333, !llvm.loop !9
429: ; preds = %340
%430 = call i32 @exit(i32 noundef 0) #4
unreachable
}
declare i64 @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i64 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strtob(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @printGrid(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @clGetPlatformIDs(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @chk(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @clGetDeviceIDs(i32 noundef, i64 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @clGetDeviceInfo(i32 noundef, i32 noundef, i32 noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #3
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 @readSource(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 @clCreateKernel(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @clCreateBuffer(i32 noundef, i32 noundef, i64 noundef, ptr noundef, ptr noundef) #1
declare i32 @clSetKernelArg(i32 noundef, i32 noundef, i32 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 @clEnqueueNDRangeKernel(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @clEnqueueReadBuffer(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpa7lvjjqx.c'
source_filename = "/tmp/tmpa7lvjjqx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"Usage: %s [OPTION]... DEVICE\0A\00", align 1
@.str.1 = private unnamed_addr constant [40 x i8] c"io_hand -- communicate with serial port\00", align 1
@.str.2 = private unnamed_addr constant [43 x i8] c" -h display this help and exit\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_help(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 @puts(ptr noundef @.str.1)
%6 = call i32 @puts(ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
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/tmpa7lvjjqx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"Usage: %s [OPTION]... DEVICE\0A\00", align 1
@.str.1 = private unnamed_addr constant [40 x i8] c"io_hand -- communicate with serial port\00", align 1
@.str.2 = private unnamed_addr constant [43 x i8] c" -h display this help and exit\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_help(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 @puts(ptr noundef @.str.1)
%6 = call i32 @puts(ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
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/tmp_3ow5up3.c'
source_filename = "/tmp/tmp_3ow5up3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memchr(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
%9 = load ptr, ptr %5, align 8
store ptr %9, ptr %8, align 8
br label %10
10: ; preds = %26, %3
%11 = load ptr, ptr %8, align 8
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %29
15: ; preds = %10
%16 = load ptr, ptr %8, align 8
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = load i32, ptr %6, align 4
%20 = trunc i32 %19 to i8
%21 = zext i8 %20 to i32
%22 = icmp eq i32 %18, %21
br i1 %22, label %23, label %25
23: ; preds = %15
%24 = load ptr, ptr %8, align 8
store ptr %24, ptr %4, align 8
br label %30
25: ; preds = %15
br label %26
26: ; preds = %25
%27 = load ptr, ptr %8, align 8
%28 = getelementptr inbounds i8, ptr %27, i32 1
store ptr %28, ptr %8, align 8
br label %10, !llvm.loop !6
29: ; preds = %10
store ptr null, ptr %4, align 8
br label %30
30: ; preds = %29, %23
%31 = load ptr, ptr %4, align 8
ret ptr %31
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_3ow5up3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memchr(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
%9 = load ptr, ptr %5, align 8
store ptr %9, ptr %8, align 8
%10 = load ptr, ptr %8, align 8
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 0
br i1 %13, label %.lr.ph, label %32
.lr.ph: ; preds = %3
br label %14
14: ; preds = %.lr.ph, %25
%15 = load ptr, ptr %8, align 8
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = load i32, ptr %6, align 4
%19 = trunc i32 %18 to i8
%20 = zext i8 %19 to i32
%21 = icmp eq i32 %17, %20
br i1 %21, label %22, label %24
22: ; preds = %14
%23 = load ptr, ptr %8, align 8
store ptr %23, ptr %4, align 8
br label %33
24: ; preds = %14
br label %25
25: ; preds = %24
%26 = load ptr, ptr %8, align 8
%27 = getelementptr inbounds i8, ptr %26, i32 1
store ptr %27, ptr %8, align 8
%28 = load ptr, ptr %8, align 8
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp ne i32 %30, 0
br i1 %31, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %32
32: ; preds = %._crit_edge, %3
store ptr null, ptr %4, align 8
br label %33
33: ; preds = %32, %22
%34 = load ptr, ptr %4, align 8
ret ptr %34
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpb0p9w6w6.c'
source_filename = "/tmp/tmpb0p9w6w6.c"
target datalayout = "e-m:e-p270: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 [24 x i8] c"Notification too long!\0A\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"Dazibao changed\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"Error\00", align 1
@.str.3 = private unnamed_addr constant [32 x i8] c"Unknown notification type: %c.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read_notifications(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
br label %8
8: ; preds = %2, %105
%9 = load ptr, ptr %4, align 8
%10 = load i32, ptr %5, align 4
%11 = call ptr @memchr(ptr noundef %9, i8 noundef signext 10, i32 noundef %10)
store ptr %11, ptr %7, align 8
%12 = load ptr, ptr %7, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %22
14: ; preds = %8
%15 = load i32, ptr %5, align 4
%16 = icmp sge i32 %15, 1024
br i1 %16, label %17, label %20
17: ; preds = %14
%18 = load i32, ptr @stderr, align 4
%19 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %18, ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %106
20: ; preds = %14
%21 = load i32, ptr %5, align 4
store i32 %21, ptr %3, align 4
br label %106
22: ; preds = %8
%23 = load ptr, ptr %4, align 8
%24 = getelementptr inbounds i8, ptr %23, i64 0
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
switch i32 %26, label %73 [
i32 67, label %27
i32 69, label %50
]
27: ; preds = %22
%28 = load ptr, ptr %7, align 8
%29 = load ptr, ptr %4, align 8
%30 = ptrtoint ptr %28 to i64
%31 = ptrtoint ptr %29 to i64
%32 = sub i64 %30, %31
%33 = trunc i64 %32 to i32
%34 = call ptr @calloc(i32 noundef 1, i32 noundef %33)
store ptr %34, ptr %6, align 8
%35 = load ptr, ptr %6, align 8
%36 = load ptr, ptr %4, align 8
%37 = getelementptr inbounds i8, ptr %36, i64 1
%38 = load ptr, ptr %7, align 8
%39 = load ptr, ptr %4, align 8
%40 = ptrtoint ptr %38 to i64
%41 = ptrtoint ptr %39 to i64
%42 = sub i64 %40, %41
%43 = sub nsw i64 %42, 1
%44 = trunc i64 %43 to i32
%45 = call i32 @strncpy(ptr noundef %35, ptr noundef %37, i32 noundef %44)
%46 = load ptr, ptr %6, align 8
%47 = call i32 @notify(ptr noundef @.str.1, ptr noundef %46)
%48 = load ptr, ptr %6, align 8
%49 = call i32 @free(ptr noundef %48)
br label %80
50: ; preds = %22
%51 = load ptr, ptr %7, align 8
%52 = load ptr, ptr %4, align 8
%53 = ptrtoint ptr %51 to i64
%54 = ptrtoint ptr %52 to i64
%55 = sub i64 %53, %54
%56 = trunc i64 %55 to i32
%57 = call ptr @calloc(i32 noundef 1, i32 noundef %56)
store ptr %57, ptr %6, align 8
%58 = load ptr, ptr %6, align 8
%59 = load ptr, ptr %4, align 8
%60 = getelementptr inbounds i8, ptr %59, i64 1
%61 = load ptr, ptr %7, align 8
%62 = load ptr, ptr %4, align 8
%63 = ptrtoint ptr %61 to i64
%64 = ptrtoint ptr %62 to i64
%65 = sub i64 %63, %64
%66 = sub nsw i64 %65, 1
%67 = trunc i64 %66 to i32
%68 = call i32 @strncpy(ptr noundef %58, ptr noundef %60, i32 noundef %67)
%69 = load ptr, ptr %6, align 8
%70 = call i32 @notify(ptr noundef @.str.2, ptr noundef %69)
%71 = load ptr, ptr %6, align 8
%72 = call i32 @free(ptr noundef %71)
br label %80
73: ; preds = %22
%74 = load i32, ptr @stderr, align 4
%75 = load ptr, ptr %4, align 8
%76 = getelementptr inbounds i8, ptr %75, i64 0
%77 = load i8, ptr %76, align 1
%78 = sext i8 %77 to i32
%79 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %74, ptr noundef @.str.3, i32 noundef %78)
br label %80
80: ; preds = %73, %50, %27
%81 = load ptr, ptr %7, align 8
%82 = getelementptr inbounds i8, ptr %81, i64 1
%83 = load ptr, ptr %4, align 8
%84 = load i32, ptr %5, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i8, ptr %83, i64 %85
%87 = icmp uge ptr %82, %86
br i1 %87, label %88, label %89
88: ; preds = %80
store i32 0, ptr %3, align 4
br label %106
89: ; preds = %80
%90 = load ptr, ptr %7, align 8
%91 = getelementptr inbounds i8, ptr %90, i64 1
%92 = load ptr, ptr %4, align 8
%93 = ptrtoint ptr %91 to i64
%94 = ptrtoint ptr %92 to i64
%95 = sub i64 %93, %94
%96 = load i32, ptr %5, align 4
%97 = sext i32 %96 to i64
%98 = sub nsw i64 %97, %95
%99 = trunc i64 %98 to i32
store i32 %99, ptr %5, align 4
%100 = load ptr, ptr %4, align 8
%101 = load ptr, ptr %7, align 8
%102 = getelementptr inbounds i8, ptr %101, i64 1
%103 = load i32, ptr %5, align 4
%104 = call i32 @memmove(ptr noundef %100, ptr noundef %102, i32 noundef %103)
br label %105
105: ; preds = %89
br label %8
106: ; preds = %88, %20, %17
%107 = load i32, ptr %3, align 4
ret i32 %107
}
declare ptr @memchr(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare ptr @calloc(i32 noundef, i32 noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @notify(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb0p9w6w6.c"
target datalayout = "e-m:e-p270: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 [24 x i8] c"Notification too long!\0A\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"Dazibao changed\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"Error\00", align 1
@.str.3 = private unnamed_addr constant [32 x i8] c"Unknown notification type: %c.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read_notifications(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%8 = load ptr, ptr %4, align 8
%9 = load i32, ptr %5, align 4
%10 = call ptr @memchr(ptr noundef %8, i8 noundef signext 10, i32 noundef %9)
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %7, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %.lr.ph
.lr.ph: ; preds = %2
br label %21
._crit_edge: ; preds = %104
br label %13
13: ; preds = %._crit_edge, %2
%14 = load i32, ptr %5, align 4
%15 = icmp sge i32 %14, 1024
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = load i32, ptr @stderr, align 4
%18 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %17, ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %110
19: ; preds = %13
%20 = load i32, ptr %5, align 4
store i32 %20, ptr %3, align 4
br label %110
21: ; preds = %.lr.ph, %104
%22 = load ptr, ptr %4, align 8
%23 = getelementptr inbounds i8, ptr %22, i64 0
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
switch i32 %25, label %72 [
i32 67, label %26
i32 69, label %49
]
26: ; preds = %21
%27 = load ptr, ptr %7, align 8
%28 = load ptr, ptr %4, align 8
%29 = ptrtoint ptr %27 to i64
%30 = ptrtoint ptr %28 to i64
%31 = sub i64 %29, %30
%32 = trunc i64 %31 to i32
%33 = call ptr @calloc(i32 noundef 1, i32 noundef %32)
store ptr %33, ptr %6, align 8
%34 = load ptr, ptr %6, align 8
%35 = load ptr, ptr %4, align 8
%36 = getelementptr inbounds i8, ptr %35, i64 1
%37 = load ptr, ptr %7, align 8
%38 = load ptr, ptr %4, align 8
%39 = ptrtoint ptr %37 to i64
%40 = ptrtoint ptr %38 to i64
%41 = sub i64 %39, %40
%42 = sub nsw i64 %41, 1
%43 = trunc i64 %42 to i32
%44 = call i32 @strncpy(ptr noundef %34, ptr noundef %36, i32 noundef %43)
%45 = load ptr, ptr %6, align 8
%46 = call i32 @notify(ptr noundef @.str.1, ptr noundef %45)
%47 = load ptr, ptr %6, align 8
%48 = call i32 @free(ptr noundef %47)
br label %79
49: ; preds = %21
%50 = load ptr, ptr %7, align 8
%51 = load ptr, ptr %4, align 8
%52 = ptrtoint ptr %50 to i64
%53 = ptrtoint ptr %51 to i64
%54 = sub i64 %52, %53
%55 = trunc i64 %54 to i32
%56 = call ptr @calloc(i32 noundef 1, i32 noundef %55)
store ptr %56, ptr %6, align 8
%57 = load ptr, ptr %6, align 8
%58 = load ptr, ptr %4, align 8
%59 = getelementptr inbounds i8, ptr %58, i64 1
%60 = load ptr, ptr %7, align 8
%61 = load ptr, ptr %4, align 8
%62 = ptrtoint ptr %60 to i64
%63 = ptrtoint ptr %61 to i64
%64 = sub i64 %62, %63
%65 = sub nsw i64 %64, 1
%66 = trunc i64 %65 to i32
%67 = call i32 @strncpy(ptr noundef %57, ptr noundef %59, i32 noundef %66)
%68 = load ptr, ptr %6, align 8
%69 = call i32 @notify(ptr noundef @.str.2, ptr noundef %68)
%70 = load ptr, ptr %6, align 8
%71 = call i32 @free(ptr noundef %70)
br label %79
72: ; preds = %21
%73 = load i32, ptr @stderr, align 4
%74 = load ptr, ptr %4, align 8
%75 = getelementptr inbounds i8, ptr %74, i64 0
%76 = load i8, ptr %75, align 1
%77 = sext i8 %76 to i32
%78 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %73, ptr noundef @.str.3, i32 noundef %77)
br label %79
79: ; preds = %72, %49, %26
%80 = load ptr, ptr %7, align 8
%81 = getelementptr inbounds i8, ptr %80, i64 1
%82 = load ptr, ptr %4, align 8
%83 = load i32, ptr %5, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i8, ptr %82, i64 %84
%86 = icmp uge ptr %81, %85
br i1 %86, label %87, label %88
87: ; preds = %79
store i32 0, ptr %3, align 4
br label %110
88: ; preds = %79
%89 = load ptr, ptr %7, align 8
%90 = getelementptr inbounds i8, ptr %89, i64 1
%91 = load ptr, ptr %4, align 8
%92 = ptrtoint ptr %90 to i64
%93 = ptrtoint ptr %91 to i64
%94 = sub i64 %92, %93
%95 = load i32, ptr %5, align 4
%96 = sext i32 %95 to i64
%97 = sub nsw i64 %96, %94
%98 = trunc i64 %97 to i32
store i32 %98, ptr %5, align 4
%99 = load ptr, ptr %4, align 8
%100 = load ptr, ptr %7, align 8
%101 = getelementptr inbounds i8, ptr %100, i64 1
%102 = load i32, ptr %5, align 4
%103 = call i32 @memmove(ptr noundef %99, ptr noundef %101, i32 noundef %102)
br label %104
104: ; preds = %88
%105 = load ptr, ptr %4, align 8
%106 = load i32, ptr %5, align 4
%107 = call ptr @memchr(ptr noundef %105, i8 noundef signext 10, i32 noundef %106)
store ptr %107, ptr %7, align 8
%108 = load ptr, ptr %7, align 8
%109 = icmp eq ptr %108, null
br i1 %109, label %._crit_edge, label %21
110: ; preds = %87, %19, %16
%111 = load i32, ptr %3, align 4
ret i32 %111
}
declare ptr @memchr(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare ptr @calloc(i32 noundef, i32 noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @notify(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkh76fthp.c'
source_filename = "/tmp/tmpkh76fthp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"%lld %lld\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%lld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store i32 0, ptr %1, align 4
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
store i64 0, ptr %4, align 8
%8 = load i64, ptr %2, align 8
%9 = srem i64 %8, 2
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %28
11: ; preds = %0
%12 = load i64, ptr %3, align 8
%13 = load i64, ptr %2, align 8
%14 = sdiv i64 %13, 2
%15 = icmp sle i64 %12, %14
br i1 %15, label %16, label %20
16: ; preds = %11
%17 = load i64, ptr %3, align 8
%18 = mul nsw i64 2, %17
%19 = sub nsw i64 %18, 1
store i64 %19, ptr %4, align 8
br label %27
20: ; preds = %11
%21 = load i64, ptr %3, align 8
%22 = load i64, ptr %2, align 8
%23 = sdiv i64 %22, 2
%24 = sub nsw i64 %21, %23
store i64 %24, ptr %5, align 8
%25 = load i64, ptr %5, align 8
%26 = mul nsw i64 2, %25
store i64 %26, ptr %4, align 8
br label %27
27: ; preds = %20, %16
br label %47
28: ; preds = %0
%29 = load i64, ptr %3, align 8
%30 = load i64, ptr %2, align 8
%31 = sdiv i64 %30, 2
%32 = add nsw i64 %31, 1
%33 = icmp sle i64 %29, %32
br i1 %33, label %34, label %38
34: ; preds = %28
%35 = load i64, ptr %3, align 8
%36 = mul nsw i64 2, %35
%37 = sub nsw i64 %36, 1
store i64 %37, ptr %4, align 8
br label %46
38: ; preds = %28
%39 = load i64, ptr %3, align 8
%40 = load i64, ptr %2, align 8
%41 = add nsw i64 %40, 1
%42 = sdiv i64 %41, 2
%43 = sub nsw i64 %39, %42
store i64 %43, ptr %6, align 8
%44 = load i64, ptr %6, align 8
%45 = mul nsw i64 2, %44
store i64 %45, ptr %4, align 8
br label %46
46: ; preds = %38, %34
br label %47
47: ; preds = %46, %27
%48 = load i64, ptr %4, align 8
%49 = call i32 @printf(ptr noundef @.str.1, i64 noundef %48)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(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/tmpkh76fthp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"%lld %lld\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%lld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store i32 0, ptr %1, align 4
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
store i64 0, ptr %4, align 8
%8 = load i64, ptr %2, align 8
%9 = srem i64 %8, 2
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %28
11: ; preds = %0
%12 = load i64, ptr %3, align 8
%13 = load i64, ptr %2, align 8
%14 = sdiv i64 %13, 2
%15 = icmp sle i64 %12, %14
br i1 %15, label %16, label %20
16: ; preds = %11
%17 = load i64, ptr %3, align 8
%18 = mul nsw i64 2, %17
%19 = sub nsw i64 %18, 1
store i64 %19, ptr %4, align 8
br label %27
20: ; preds = %11
%21 = load i64, ptr %3, align 8
%22 = load i64, ptr %2, align 8
%23 = sdiv i64 %22, 2
%24 = sub nsw i64 %21, %23
store i64 %24, ptr %5, align 8
%25 = load i64, ptr %5, align 8
%26 = mul nsw i64 2, %25
store i64 %26, ptr %4, align 8
br label %27
27: ; preds = %20, %16
br label %47
28: ; preds = %0
%29 = load i64, ptr %3, align 8
%30 = load i64, ptr %2, align 8
%31 = sdiv i64 %30, 2
%32 = add nsw i64 %31, 1
%33 = icmp sle i64 %29, %32
br i1 %33, label %34, label %38
34: ; preds = %28
%35 = load i64, ptr %3, align 8
%36 = mul nsw i64 2, %35
%37 = sub nsw i64 %36, 1
store i64 %37, ptr %4, align 8
br label %46
38: ; preds = %28
%39 = load i64, ptr %3, align 8
%40 = load i64, ptr %2, align 8
%41 = add nsw i64 %40, 1
%42 = sdiv i64 %41, 2
%43 = sub nsw i64 %39, %42
store i64 %43, ptr %6, align 8
%44 = load i64, ptr %6, align 8
%45 = mul nsw i64 2, %44
store i64 %45, ptr %4, align 8
br label %46
46: ; preds = %38, %34
br label %47
47: ; preds = %46, %27
%48 = load i64, ptr %4, align 8
%49 = call i32 @printf(ptr noundef @.str.1, i64 noundef %48)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(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/tmps7rj89yg.c'
source_filename = "/tmp/tmps7rj89yg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [49 x i8] c"adb shell \22su -c 'rm %s/GameEngineActivity.xml'\22\00", align 1
@.str.1 = private unnamed_addr constant [48 x i8] c"/data/data/klb.android.lovelive_en/shared_prefs\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @llsif_remove_xml() #0 {
%1 = alloca [2048 x i8], align 16
call void @llvm.memset.p0.i64(ptr align 16 %1, i8 0, i64 2048, i1 false)
%2 = getelementptr inbounds [2048 x i8], ptr %1, i64 0, i64 0
%3 = call i32 @sprintf(ptr noundef %2, ptr noundef @.str, ptr noundef @.str.1)
%4 = getelementptr inbounds [2048 x i8], ptr %1, i64 0, i64 0
%5 = call i32 @os_printoutput(ptr noundef %4)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @os_printoutput(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps7rj89yg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [49 x i8] c"adb shell \22su -c 'rm %s/GameEngineActivity.xml'\22\00", align 1
@.str.1 = private unnamed_addr constant [48 x i8] c"/data/data/klb.android.lovelive_en/shared_prefs\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @llsif_remove_xml() #0 {
%1 = alloca [2048 x i8], align 16
call void @llvm.memset.p0.i64(ptr align 16 %1, i8 0, i64 2048, i1 false)
%2 = getelementptr inbounds [2048 x i8], ptr %1, i64 0, i64 0
%3 = call i32 @sprintf(ptr noundef %2, ptr noundef @.str, ptr noundef @.str.1)
%4 = getelementptr inbounds [2048 x i8], ptr %1, i64 0, i64 0
%5 = call i32 @os_printoutput(ptr noundef %4)
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @os_printoutput(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnf54znql.c'
source_filename = "/tmp/tmpnf54znql.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @my_strchr(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
br label %6
6: ; preds = %20, %2
%7 = load ptr, ptr %4, align 8
%8 = load i8, ptr %7, align 1
%9 = sext i8 %8 to i32
%10 = load i32, ptr %5, align 4
%11 = icmp eq i32 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %6
%13 = load ptr, ptr %4, align 8
store ptr %13, ptr %3, align 8
br label %23
14: ; preds = %6
%15 = load ptr, ptr %4, align 8
%16 = load i8, ptr %15, align 1
%17 = icmp ne i8 %16, 0
br i1 %17, label %19, label %18
18: ; preds = %14
store ptr null, ptr %3, align 8
br label %23
19: ; preds = %14
br label %20
20: ; preds = %19
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %4, align 8
br label %6
23: ; preds = %18, %12
%24 = load ptr, ptr %3, 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnf54znql.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @my_strchr(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%6 = load ptr, ptr %4, align 8
%7 = load i8, ptr %6, align 1
%8 = sext i8 %7 to i32
%9 = load i32, ptr %5, align 4
%10 = icmp eq i32 %8, %9
br i1 %10, label %11, label %.lr.ph
.lr.ph: ; preds = %2
br label %13
._crit_edge: ; preds = %19
br label %11
11: ; preds = %._crit_edge, %2
%12 = load ptr, ptr %4, align 8
store ptr %12, ptr %3, align 8
br label %27
13: ; preds = %.lr.ph, %19
%14 = load ptr, ptr %4, align 8
%15 = load i8, ptr %14, align 1
%16 = icmp ne i8 %15, 0
br i1 %16, label %18, label %17
17: ; preds = %13
store ptr null, ptr %3, align 8
br label %27
18: ; preds = %13
br label %19
19: ; preds = %18
%20 = load ptr, ptr %4, align 8
%21 = getelementptr inbounds i8, ptr %20, i32 1
store ptr %21, ptr %4, align 8
%22 = load ptr, ptr %4, align 8
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = load i32, ptr %5, align 4
%26 = icmp eq i32 %24, %25
br i1 %26, label %._crit_edge, label %13
27: ; preds = %17, %11
%28 = load ptr, ptr %3, align 8
ret ptr %28
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpunbpvzcb.c'
source_filename = "/tmp/tmpunbpvzcb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @MMA8491_ReadRaw(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
store ptr %0, ptr %2, align 8
store i8 0, ptr %3, align 1
%4 = call i32 (...) @MMA8491Q_Enable()
%5 = load ptr, ptr %2, align 8
%6 = call i32 @MMA8491Q_BULK_READ(i32 noundef 1, i32 noundef 6, ptr noundef %5)
%7 = call i32 (...) @MMA8491Q_DisEnable()
ret i32 1
}
declare i32 @MMA8491Q_Enable(...) #1
declare i32 @MMA8491Q_BULK_READ(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @MMA8491Q_DisEnable(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpunbpvzcb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @MMA8491_ReadRaw(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
store ptr %0, ptr %2, align 8
store i8 0, ptr %3, align 1
%4 = call i32 (...) @MMA8491Q_Enable()
%5 = load ptr, ptr %2, align 8
%6 = call i32 @MMA8491Q_BULK_READ(i32 noundef 1, i32 noundef 6, ptr noundef %5)
%7 = call i32 (...) @MMA8491Q_DisEnable()
ret i32 1
}
declare i32 @MMA8491Q_Enable(...) #1
declare i32 @MMA8491Q_BULK_READ(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @MMA8491Q_DisEnable(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmdhvtjxh.c'
source_filename = "/tmp/tmpmdhvtjxh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @IndexKMP(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [10 x i32], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 40, i1 false)
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
%11 = call i32 @GetNext(ptr noundef %9, ptr noundef %10)
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %12
12: ; preds = %66, %2
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %7, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %28
20: ; preds = %12
%21 = load ptr, ptr %5, align 8
%22 = load i32, ptr %8, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %21, i64 %23
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp ne i32 %26, 0
br label %28
28: ; preds = %20, %12
%29 = phi i1 [ false, %12 ], [ %27, %20 ]
br i1 %29, label %30, label %67
30: ; preds = %28
%31 = load ptr, ptr %4, align 8
%32 = load i32, ptr %7, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %31, 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 %8, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %37, i64 %39
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
%43 = icmp eq i32 %36, %42
br i1 %43, label %44, label %49
44: ; preds = %30
%45 = load i32, ptr %7, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %7, align 4
%47 = load i32, ptr %8, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %8, align 4
br label %66
49: ; preds = %30
%50 = load i32, ptr %8, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %51
%53 = load i32, ptr %52, align 4
%54 = icmp sge i32 %53, 0
br i1 %54, label %55, label %60
55: ; preds = %49
%56 = load i32, ptr %8, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %57
%59 = load i32, ptr %58, align 4
store i32 %59, ptr %8, align 4
br label %65
60: ; preds = %49
%61 = load i32, ptr %7, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %7, align 4
%63 = load i32, ptr %8, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %8, align 4
br label %65
65: ; preds = %60, %55
br label %66
66: ; preds = %65, %44
br label %12, !llvm.loop !6
67: ; preds = %28
%68 = load ptr, ptr %5, align 8
%69 = load i32, ptr %8, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i8, ptr %68, i64 %70
%72 = load i8, ptr %71, align 1
%73 = sext i8 %72 to i32
%74 = icmp eq i32 %73, 0
br i1 %74, label %75, label %80
75: ; preds = %67
%76 = load i32, ptr %7, align 4
%77 = load ptr, ptr %5, align 8
%78 = call i32 @strlen(ptr noundef %77)
%79 = sub nsw i32 %76, %78
store i32 %79, ptr %3, align 4
br label %81
80: ; preds = %67
store i32 -1, ptr %3, align 4
br label %81
81: ; preds = %80, %75
%82 = load i32, ptr %3, align 4
ret i32 %82
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @GetNext(ptr noundef, ptr noundef) #2
declare i32 @strlen(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmdhvtjxh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @IndexKMP(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [10 x i32], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 40, i1 false)
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 0
%11 = call i32 @GetNext(ptr noundef %9, ptr noundef %10)
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %12
12: ; preds = %66, %2
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %7, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %28
20: ; preds = %12
%21 = load ptr, ptr %5, align 8
%22 = load i32, ptr %8, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %21, i64 %23
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp ne i32 %26, 0
br label %28
28: ; preds = %20, %12
%29 = phi i1 [ false, %12 ], [ %27, %20 ]
br i1 %29, label %30, label %67
30: ; preds = %28
%31 = load ptr, ptr %4, align 8
%32 = load i32, ptr %7, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %31, 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 %8, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %37, i64 %39
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
%43 = icmp eq i32 %36, %42
br i1 %43, label %44, label %49
44: ; preds = %30
%45 = load i32, ptr %7, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %7, align 4
%47 = load i32, ptr %8, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %8, align 4
br label %66
49: ; preds = %30
%50 = load i32, ptr %8, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %51
%53 = load i32, ptr %52, align 4
%54 = icmp sge i32 %53, 0
br i1 %54, label %55, label %60
55: ; preds = %49
%56 = load i32, ptr %8, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %57
%59 = load i32, ptr %58, align 4
store i32 %59, ptr %8, align 4
br label %65
60: ; preds = %49
%61 = load i32, ptr %7, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %7, align 4
%63 = load i32, ptr %8, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %8, align 4
br label %65
65: ; preds = %60, %55
br label %66
66: ; preds = %65, %44
br label %12, !llvm.loop !6
67: ; preds = %28
%68 = load ptr, ptr %5, align 8
%69 = load i32, ptr %8, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i8, ptr %68, i64 %70
%72 = load i8, ptr %71, align 1
%73 = sext i8 %72 to i32
%74 = icmp eq i32 %73, 0
br i1 %74, label %75, label %80
75: ; preds = %67
%76 = load i32, ptr %7, align 4
%77 = load ptr, ptr %5, align 8
%78 = call i32 @strlen(ptr noundef %77)
%79 = sub nsw i32 %76, %78
store i32 %79, ptr %3, align 4
br label %81
80: ; preds = %67
store i32 -1, ptr %3, align 4
br label %81
81: ; preds = %80, %75
%82 = load i32, ptr %3, align 4
ret i32 %82
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @GetNext(ptr noundef, ptr noundef) #2
declare i32 @strlen(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpxvh8kjl6.c'
source_filename = "/tmp/tmpxvh8kjl6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"<%s> is not acceptable.\0A\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"<%s> is acceptable.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca [21 x i8], align 16
%13 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i64 0, ptr %10, align 8
store i64 0, ptr %11, align 8
store i32 0, ptr %13, align 4
%14 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 0
%15 = call i32 @scanf(ptr noundef @.str, ptr noundef %14)
%16 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 0
%17 = call i64 @strlen(ptr noundef %16)
store i64 %17, ptr %4, align 8
store i64 0, ptr %9, align 8
store i64 0, ptr %10, align 8
%18 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 0
%19 = load i8, ptr %18, align 16
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 101
br i1 %21, label %22, label %36
22: ; preds = %0
%23 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 1
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 110
br i1 %26, label %27, label %36
27: ; preds = %22
%28 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 2
%29 = load i8, ptr %28, align 2
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 100
br i1 %31, label %32, label %36
32: ; preds = %27
%33 = load i64, ptr %4, align 8
%34 = icmp eq i64 %33, 3
br i1 %34, label %35, label %36
35: ; preds = %32
store i32 0, ptr %1, align 4
br label %200
36: ; preds = %32, %27, %22, %0
store i64 0, ptr %2, align 8
br label %37
37: ; preds = %167, %36
%38 = load i64, ptr %2, align 8
%39 = load i64, ptr %4, align 8
%40 = sub nsw i64 %39, 2
%41 = icmp slt i64 %38, %40
br i1 %41, label %42, label %170
42: ; preds = %37
%43 = load i64, ptr %2, align 8
%44 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %43
%45 = load i8, ptr %44, align 1
%46 = call i64 @vow(i8 noundef signext %45)
%47 = icmp ne i64 %46, 0
br i1 %47, label %48, label %62
48: ; preds = %42
%49 = load i64, ptr %2, align 8
%50 = add nsw i64 %49, 1
%51 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %50
%52 = load i8, ptr %51, align 1
%53 = call i64 @vow(i8 noundef signext %52)
%54 = icmp ne i64 %53, 0
br i1 %54, label %55, label %62
55: ; preds = %48
%56 = load i64, ptr %2, align 8
%57 = add nsw i64 %56, 2
%58 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %57
%59 = load i8, ptr %58, align 1
%60 = call i64 @vow(i8 noundef signext %59)
%61 = icmp ne i64 %60, 0
br i1 %61, label %82, label %62
62: ; preds = %55, %48, %42
%63 = load i64, ptr %2, align 8
%64 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %63
%65 = load i8, ptr %64, align 1
%66 = call i64 @vow(i8 noundef signext %65)
%67 = icmp ne i64 %66, 0
br i1 %67, label %85, label %68
68: ; preds = %62
%69 = load i64, ptr %2, align 8
%70 = add nsw i64 %69, 1
%71 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %70
%72 = load i8, ptr %71, align 1
%73 = call i64 @vow(i8 noundef signext %72)
%74 = icmp ne i64 %73, 0
br i1 %74, label %85, label %75
75: ; preds = %68
%76 = load i64, ptr %2, align 8
%77 = add nsw i64 %76, 2
%78 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %77
%79 = load i8, ptr %78, align 1
%80 = call i64 @vow(i8 noundef signext %79)
%81 = icmp ne i64 %80, 0
br i1 %81, label %85, label %82
82: ; preds = %75, %55
%83 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 0
%84 = call i32 @printf(ptr noundef @.str.1, ptr noundef %83)
store i64 1, ptr %10, align 8
br label %170
85: ; preds = %75, %68, %62
%86 = load i64, ptr %2, align 8
%87 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %86
%88 = load i8, ptr %87, align 1
%89 = sext i8 %88 to i32
%90 = load i64, ptr %2, align 8
%91 = add nsw i64 %90, 1
%92 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %91
%93 = load i8, ptr %92, align 1
%94 = sext i8 %93 to i32
%95 = icmp eq i32 %89, %94
br i1 %95, label %108, label %96
96: ; preds = %85
%97 = load i64, ptr %2, align 8
%98 = add nsw i64 %97, 1
%99 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %98
%100 = load i8, ptr %99, align 1
%101 = sext i8 %100 to i32
%102 = load i64, ptr %2, align 8
%103 = add nsw i64 %102, 2
%104 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %103
%105 = load i8, ptr %104, align 1
%106 = sext i8 %105 to i32
%107 = icmp eq i32 %101, %106
br i1 %107, label %108, label %165
108: ; preds = %96, %85
%109 = load i64, ptr %2, align 8
%110 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %109
%111 = load i8, ptr %110, align 1
%112 = sext i8 %111 to i32
%113 = load i64, ptr %2, align 8
%114 = add nsw i64 %113, 1
%115 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %114
%116 = load i8, ptr %115, align 1
%117 = sext i8 %116 to i32
%118 = icmp eq i32 %112, %117
br i1 %118, label %119, label %134
119: ; preds = %108
%120 = load i64, ptr %2, align 8
%121 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %120
%122 = load i8, ptr %121, align 1
%123 = sext i8 %122 to i32
%124 = icmp ne i32 %123, 101
br i1 %124, label %125, label %134
125: ; preds = %119
%126 = load i64, ptr %2, align 8
%127 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %126
%128 = load i8, ptr %127, align 1
%129 = sext i8 %128 to i32
%130 = icmp ne i32 %129, 111
br i1 %130, label %131, label %134
131: ; preds = %125
%132 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 0
%133 = call i32 @printf(ptr noundef @.str.1, ptr noundef %132)
store i64 1, ptr %10, align 8
br label %170
134: ; preds = %125, %119, %108
%135 = load i64, ptr %2, align 8
%136 = add nsw i64 %135, 2
%137 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %136
%138 = load i8, ptr %137, align 1
%139 = sext i8 %138 to i32
%140 = load i64, ptr %2, align 8
%141 = add nsw i64 %140, 1
%142 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %141
%143 = load i8, ptr %142, align 1
%144 = sext i8 %143 to i32
%145 = icmp eq i32 %139, %144
br i1 %145, label %146, label %163
146: ; preds = %134
%147 = load i64, ptr %2, align 8
%148 = add nsw i64 %147, 2
%149 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %148
%150 = load i8, ptr %149, align 1
%151 = sext i8 %150 to i32
%152 = icmp ne i32 %151, 101
br i1 %152, label %153, label %163
153: ; preds = %146
%154 = load i64, ptr %2, align 8
%155 = add nsw i64 %154, 2
%156 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %155
%157 = load i8, ptr %156, align 1
%158 = sext i8 %157 to i32
%159 = icmp ne i32 %158, 111
br i1 %159, label %160, label %163
160: ; preds = %153
%161 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 0
%162 = call i32 @printf(ptr noundef @.str.1, ptr noundef %161)
store i64 1, ptr %10, align 8
br label %170
163: ; preds = %153, %146, %134
br label %164
164: ; preds = %163
br label %165
165: ; preds = %164, %96
br label %166
166: ; preds = %165
br label %167
167: ; preds = %166
%168 = load i64, ptr %2, align 8
%169 = add nsw i64 %168, 1
store i64 %169, ptr %2, align 8
br label %37, !llvm.loop !6
170: ; preds = %160, %131, %82, %37
%171 = load i64, ptr %10, align 8
%172 = icmp eq i64 %171, 0
br i1 %172, label %173, label %199
173: ; preds = %170
store i64 0, ptr %2, align 8
br label %174
174: ; preds = %186, %173
%175 = load i64, ptr %2, align 8
%176 = load i64, ptr %4, align 8
%177 = icmp slt i64 %175, %176
br i1 %177, label %178, label %189
178: ; preds = %174
%179 = load i64, ptr %2, align 8
%180 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %179
%181 = load i8, ptr %180, align 1
%182 = call i64 @vow(i8 noundef signext %181)
%183 = icmp ne i64 %182, 0
br i1 %183, label %184, label %185
184: ; preds = %178
store i64 1, ptr %11, align 8
br label %185
185: ; preds = %184, %178
br label %186
186: ; preds = %185
%187 = load i64, ptr %2, align 8
%188 = add nsw i64 %187, 1
store i64 %188, ptr %2, align 8
br label %174, !llvm.loop !8
189: ; preds = %174
%190 = load i64, ptr %11, align 8
%191 = icmp eq i64 %190, 1
br i1 %191, label %192, label %195
192: ; preds = %189
%193 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 0
%194 = call i32 @printf(ptr noundef @.str.2, ptr noundef %193)
br label %198
195: ; preds = %189
%196 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 0
%197 = call i32 @printf(ptr noundef @.str.1, ptr noundef %196)
br label %198
198: ; preds = %195, %192
br label %199
199: ; preds = %198, %170
store i32 0, ptr %1, align 4
br label %200
200: ; preds = %199, %35
%201 = load i32, ptr %1, align 4
ret i32 %201
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i64 @vow(i8 noundef signext) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxvh8kjl6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"<%s> is not acceptable.\0A\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"<%s> is acceptable.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca [21 x i8], align 16
%13 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i64 0, ptr %10, align 8
store i64 0, ptr %11, align 8
store i32 0, ptr %13, align 4
%14 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 0
%15 = call i32 @scanf(ptr noundef @.str, ptr noundef %14)
%16 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 0
%17 = call i64 @strlen(ptr noundef %16)
store i64 %17, ptr %4, align 8
store i64 0, ptr %9, align 8
store i64 0, ptr %10, align 8
%18 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 0
%19 = load i8, ptr %18, align 16
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 101
br i1 %21, label %22, label %36
22: ; preds = %0
%23 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 1
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 110
br i1 %26, label %27, label %36
27: ; preds = %22
%28 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 2
%29 = load i8, ptr %28, align 2
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 100
br i1 %31, label %32, label %36
32: ; preds = %27
%33 = load i64, ptr %4, align 8
%34 = icmp eq i64 %33, 3
br i1 %34, label %35, label %36
35: ; preds = %32
store i32 0, ptr %1, align 4
br label %205
36: ; preds = %32, %27, %22, %0
store i64 0, ptr %2, align 8
%37 = load i64, ptr %2, align 8
%38 = load i64, ptr %4, align 8
%39 = sub nsw i64 %38, 2
%40 = icmp slt i64 %37, %39
br i1 %40, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %36
br label %41
41: ; preds = %.lr.ph, %166
%42 = load i64, ptr %2, align 8
%43 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %42
%44 = load i8, ptr %43, align 1
%45 = call i64 @vow(i8 noundef signext %44)
%46 = icmp ne i64 %45, 0
br i1 %46, label %47, label %61
47: ; preds = %41
%48 = load i64, ptr %2, align 8
%49 = add nsw i64 %48, 1
%50 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %49
%51 = load i8, ptr %50, align 1
%52 = call i64 @vow(i8 noundef signext %51)
%53 = icmp ne i64 %52, 0
br i1 %53, label %54, label %61
54: ; preds = %47
%55 = load i64, ptr %2, align 8
%56 = add nsw i64 %55, 2
%57 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %56
%58 = load i8, ptr %57, align 1
%59 = call i64 @vow(i8 noundef signext %58)
%60 = icmp ne i64 %59, 0
br i1 %60, label %81, label %61
61: ; preds = %54, %47, %41
%62 = load i64, ptr %2, align 8
%63 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %62
%64 = load i8, ptr %63, align 1
%65 = call i64 @vow(i8 noundef signext %64)
%66 = icmp ne i64 %65, 0
br i1 %66, label %84, label %67
67: ; preds = %61
%68 = load i64, ptr %2, align 8
%69 = add nsw i64 %68, 1
%70 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %69
%71 = load i8, ptr %70, align 1
%72 = call i64 @vow(i8 noundef signext %71)
%73 = icmp ne i64 %72, 0
br i1 %73, label %84, label %74
74: ; preds = %67
%75 = load i64, ptr %2, align 8
%76 = add nsw i64 %75, 2
%77 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %76
%78 = load i8, ptr %77, align 1
%79 = call i64 @vow(i8 noundef signext %78)
%80 = icmp ne i64 %79, 0
br i1 %80, label %84, label %81
81: ; preds = %74, %54
%82 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 0
%83 = call i32 @printf(ptr noundef @.str.1, ptr noundef %82)
store i64 1, ptr %10, align 8
br label %173
84: ; preds = %74, %67, %61
%85 = load i64, ptr %2, align 8
%86 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %85
%87 = load i8, ptr %86, align 1
%88 = sext i8 %87 to i32
%89 = load i64, ptr %2, align 8
%90 = add nsw i64 %89, 1
%91 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %90
%92 = load i8, ptr %91, align 1
%93 = sext i8 %92 to i32
%94 = icmp eq i32 %88, %93
br i1 %94, label %107, label %95
95: ; preds = %84
%96 = load i64, ptr %2, align 8
%97 = add nsw i64 %96, 1
%98 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %97
%99 = load i8, ptr %98, align 1
%100 = sext i8 %99 to i32
%101 = load i64, ptr %2, align 8
%102 = add nsw i64 %101, 2
%103 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %102
%104 = load i8, ptr %103, align 1
%105 = sext i8 %104 to i32
%106 = icmp eq i32 %100, %105
br i1 %106, label %107, label %164
107: ; preds = %95, %84
%108 = load i64, ptr %2, align 8
%109 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %108
%110 = load i8, ptr %109, align 1
%111 = sext i8 %110 to i32
%112 = load i64, ptr %2, align 8
%113 = add nsw i64 %112, 1
%114 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %113
%115 = load i8, ptr %114, align 1
%116 = sext i8 %115 to i32
%117 = icmp eq i32 %111, %116
br i1 %117, label %118, label %133
118: ; preds = %107
%119 = load i64, ptr %2, align 8
%120 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %119
%121 = load i8, ptr %120, align 1
%122 = sext i8 %121 to i32
%123 = icmp ne i32 %122, 101
br i1 %123, label %124, label %133
124: ; preds = %118
%125 = load i64, ptr %2, align 8
%126 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %125
%127 = load i8, ptr %126, align 1
%128 = sext i8 %127 to i32
%129 = icmp ne i32 %128, 111
br i1 %129, label %130, label %133
130: ; preds = %124
%131 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 0
%132 = call i32 @printf(ptr noundef @.str.1, ptr noundef %131)
store i64 1, ptr %10, align 8
br label %173
133: ; preds = %124, %118, %107
%134 = load i64, ptr %2, align 8
%135 = add nsw i64 %134, 2
%136 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %135
%137 = load i8, ptr %136, align 1
%138 = sext i8 %137 to i32
%139 = load i64, ptr %2, align 8
%140 = add nsw i64 %139, 1
%141 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %140
%142 = load i8, ptr %141, align 1
%143 = sext i8 %142 to i32
%144 = icmp eq i32 %138, %143
br i1 %144, label %145, label %162
145: ; preds = %133
%146 = load i64, ptr %2, align 8
%147 = add nsw i64 %146, 2
%148 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %147
%149 = load i8, ptr %148, align 1
%150 = sext i8 %149 to i32
%151 = icmp ne i32 %150, 101
br i1 %151, label %152, label %162
152: ; preds = %145
%153 = load i64, ptr %2, align 8
%154 = add nsw i64 %153, 2
%155 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %154
%156 = load i8, ptr %155, align 1
%157 = sext i8 %156 to i32
%158 = icmp ne i32 %157, 111
br i1 %158, label %159, label %162
159: ; preds = %152
%160 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 0
%161 = call i32 @printf(ptr noundef @.str.1, ptr noundef %160)
store i64 1, ptr %10, align 8
br label %173
162: ; preds = %152, %145, %133
br label %163
163: ; preds = %162
br label %164
164: ; preds = %163, %95
br label %165
165: ; preds = %164
br label %166
166: ; preds = %165
%167 = load i64, ptr %2, align 8
%168 = add nsw i64 %167, 1
store i64 %168, ptr %2, align 8
%169 = load i64, ptr %2, align 8
%170 = load i64, ptr %4, align 8
%171 = sub nsw i64 %170, 2
%172 = icmp slt i64 %169, %171
br i1 %172, label %41, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %166
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %36
br label %173
173: ; preds = %.loopexit, %159, %130, %81
%174 = load i64, ptr %10, align 8
%175 = icmp eq i64 %174, 0
br i1 %175, label %176, label %204
176: ; preds = %173
store i64 0, ptr %2, align 8
%177 = load i64, ptr %2, align 8
%178 = load i64, ptr %4, align 8
%179 = icmp slt i64 %177, %178
br i1 %179, label %.lr.ph1, label %194
.lr.ph1: ; preds = %176
br label %180
180: ; preds = %.lr.ph1, %188
%181 = load i64, ptr %2, align 8
%182 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 %181
%183 = load i8, ptr %182, align 1
%184 = call i64 @vow(i8 noundef signext %183)
%185 = icmp ne i64 %184, 0
br i1 %185, label %186, label %187
186: ; preds = %180
store i64 1, ptr %11, align 8
br label %187
187: ; preds = %186, %180
br label %188
188: ; preds = %187
%189 = load i64, ptr %2, align 8
%190 = add nsw i64 %189, 1
store i64 %190, ptr %2, align 8
%191 = load i64, ptr %2, align 8
%192 = load i64, ptr %4, align 8
%193 = icmp slt i64 %191, %192
br i1 %193, label %180, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %188
br label %194
194: ; preds = %._crit_edge, %176
%195 = load i64, ptr %11, align 8
%196 = icmp eq i64 %195, 1
br i1 %196, label %197, label %200
197: ; preds = %194
%198 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 0
%199 = call i32 @printf(ptr noundef @.str.2, ptr noundef %198)
br label %203
200: ; preds = %194
%201 = getelementptr inbounds [21 x i8], ptr %12, i64 0, i64 0
%202 = call i32 @printf(ptr noundef @.str.1, ptr noundef %201)
br label %203
203: ; preds = %200, %197
br label %204
204: ; preds = %203, %173
store i32 0, ptr %1, align 4
br label %205
205: ; preds = %204, %35
%206 = load i32, ptr %1, align 4
ret i32 %206
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i64 @vow(i8 noundef signext) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpmvgv5scu.c'
source_filename = "/tmp/tmpmvgv5scu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @emit_set_nz64_32(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = call i32 @emit_or_and_set_flags(i32 noundef %7, i32 noundef %8, i32 noundef %9)
%11 = load i32, ptr %6, align 4
%12 = call i32 @emit_cmovne_imm(i32 noundef 1, i32 noundef %11)
ret void
}
declare i32 @emit_or_and_set_flags(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @emit_cmovne_imm(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/tmpmvgv5scu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @emit_set_nz64_32(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = call i32 @emit_or_and_set_flags(i32 noundef %7, i32 noundef %8, i32 noundef %9)
%11 = load i32, ptr %6, align 4
%12 = call i32 @emit_cmovne_imm(i32 noundef 1, i32 noundef %11)
ret void
}
declare i32 @emit_or_and_set_flags(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @emit_cmovne_imm(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/tmp6ec3y88c.c'
source_filename = "/tmp/tmp6ec3y88c.c"
target datalayout = "e-m:e-p270: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/tmp6ec3y88c.c"
target datalayout = "e-m:e-p270: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/tmp5od4fsee.c'
source_filename = "/tmp/tmp5od4fsee.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"Calling exit from C code\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @riskyCode() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(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/tmp5od4fsee.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"Calling exit from C code\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @riskyCode() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(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/tmp_mmdxkas.c'
source_filename = "/tmp/tmp_mmdxkas.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_mmdxkas.c"
target datalayout = "e-m:e-p270: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/tmpnk4ofhgp.c'
source_filename = "/tmp/tmpnk4ofhgp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"memory\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mem_read(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%7 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %7, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %3, align 4
%10 = mul nsw i32 %9, 256
%11 = load i32, ptr %4, align 4
%12 = add nsw i32 %10, %11
%13 = load i32, ptr @SEEK_SET, align 4
%14 = call i32 @fseek(ptr noundef %8, i32 noundef %12, i32 noundef %13)
%15 = load ptr, ptr %5, align 8
%16 = call i32 @fread(ptr noundef %6, i32 noundef 4, i32 noundef 1, ptr noundef %15)
%17 = load ptr, ptr %5, align 8
%18 = call i32 @fclose(ptr noundef %17)
%19 = load i32, ptr %3, align 4
%20 = call i32 @access_to_frame(i32 noundef %19)
%21 = load i32, ptr %6, align 4
ret i32 %21
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @access_to_frame(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/tmpnk4ofhgp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"memory\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mem_read(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%7 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %7, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %3, align 4
%10 = mul nsw i32 %9, 256
%11 = load i32, ptr %4, align 4
%12 = add nsw i32 %10, %11
%13 = load i32, ptr @SEEK_SET, align 4
%14 = call i32 @fseek(ptr noundef %8, i32 noundef %12, i32 noundef %13)
%15 = load ptr, ptr %5, align 8
%16 = call i32 @fread(ptr noundef %6, i32 noundef 4, i32 noundef 1, ptr noundef %15)
%17 = load ptr, ptr %5, align 8
%18 = call i32 @fclose(ptr noundef %17)
%19 = load i32, ptr %3, align 4
%20 = call i32 @access_to_frame(i32 noundef %19)
%21 = load i32, ptr %6, align 4
ret i32 %21
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @access_to_frame(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/tmphjll7r_4.c'
source_filename = "/tmp/tmphjll7r_4.c"
target datalayout = "e-m:e-p270: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/tmphjll7r_4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_o6dplq1.c'
source_filename = "/tmp/tmp_o6dplq1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ffxmsg.txtbuff = internal global [25 x ptr] zeroinitializer, align 16
@ffxmsg.tmpbuff = internal global ptr null, align 8
@ffxmsg.msgptr = internal global ptr null, align 8
@ffxmsg.errbuff = internal global [25 x [81 x i8]] zeroinitializer, align 16
@ffxmsg.nummsg = internal global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ffxmsg(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i8, align 1
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%7 = load i32, ptr %3, align 4
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %23
9: ; preds = %2
store i32 0, ptr %5, align 4
br label %10
10: ; preds = %19, %9
%11 = load i32, ptr %5, align 4
%12 = load i32, ptr @ffxmsg.nummsg, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %22
14: ; preds = %10
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %16
%18 = load ptr, ptr %17, align 8
store i8 0, ptr %18, align 1
br label %19
19: ; preds = %14
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %5, align 4
br label %10, !llvm.loop !6
22: ; preds = %10
store i32 0, ptr @ffxmsg.nummsg, align 4
br label %262
23: ; preds = %2
%24 = load i32, ptr %3, align 4
%25 = icmp eq i32 %24, 2
br i1 %25, label %26, label %48
26: ; preds = %23
br label %27
27: ; preds = %46, %26
%28 = load i32, ptr @ffxmsg.nummsg, align 4
%29 = icmp sgt i32 %28, 0
br i1 %29, label %30, label %47
30: ; preds = %27
%31 = load i32, ptr @ffxmsg.nummsg, align 4
%32 = add nsw i32 %31, -1
store i32 %32, ptr @ffxmsg.nummsg, align 4
%33 = load i32, ptr @ffxmsg.nummsg, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %34
%36 = load ptr, ptr %35, align 8
%37 = load i8, ptr %36, align 1
store i8 %37, ptr %6, align 1
%38 = load i32, ptr @ffxmsg.nummsg, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %39
%41 = load ptr, ptr %40, align 8
store i8 0, ptr %41, align 1
%42 = load i8, ptr %6, align 1
%43 = sext i8 %42 to i32
%44 = icmp eq i32 %43, 27
br i1 %44, label %45, label %46
45: ; preds = %30
br label %47
46: ; preds = %30
br label %27, !llvm.loop !8
47: ; preds = %45, %27
br label %261
48: ; preds = %23
%49 = load i32, ptr %3, align 4
%50 = icmp eq i32 %49, 3
br i1 %50, label %51, label %62
51: ; preds = %48
%52 = load i32, ptr @ffxmsg.nummsg, align 4
%53 = icmp sgt i32 %52, 0
br i1 %53, label %54, label %61
54: ; preds = %51
%55 = load i32, ptr @ffxmsg.nummsg, align 4
%56 = add nsw i32 %55, -1
store i32 %56, ptr @ffxmsg.nummsg, align 4
%57 = load i32, ptr @ffxmsg.nummsg, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %58
%60 = load ptr, ptr %59, align 8
store i8 0, ptr %60, align 1
br label %61
61: ; preds = %54, %51
br label %260
62: ; preds = %48
%63 = load i32, ptr %3, align 4
%64 = icmp eq i32 %63, 4
br i1 %64, label %65, label %103
65: ; preds = %62
br label %66
66: ; preds = %99, %65
%67 = load i32, ptr @ffxmsg.nummsg, align 4
%68 = icmp sgt i32 %67, 0
br i1 %68, label %69, label %100
69: ; preds = %66
%70 = load ptr, ptr %4, align 8
%71 = load ptr, ptr @ffxmsg.txtbuff, align 16
%72 = call i32 @strcpy(ptr noundef %70, ptr noundef %71)
%73 = load ptr, ptr @ffxmsg.txtbuff, align 16
store i8 0, ptr %73, align 1
%74 = load i32, ptr @ffxmsg.nummsg, align 4
%75 = add nsw i32 %74, -1
store i32 %75, ptr @ffxmsg.nummsg, align 4
store i32 0, ptr %5, align 4
br label %76
76: ; preds = %89, %69
%77 = load i32, ptr %5, align 4
%78 = load i32, ptr @ffxmsg.nummsg, align 4
%79 = icmp slt i32 %77, %78
br i1 %79, label %80, label %92
80: ; preds = %76
%81 = load i32, ptr %5, align 4
%82 = add nsw i32 %81, 1
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %83
%85 = load ptr, ptr %84, align 8
%86 = load i32, ptr %5, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %87
store ptr %85, ptr %88, align 8
br label %89
89: ; preds = %80
%90 = load i32, ptr %5, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %5, align 4
br label %76, !llvm.loop !9
92: ; preds = %76
%93 = load ptr, ptr %4, align 8
%94 = getelementptr inbounds i8, ptr %93, i64 0
%95 = load i8, ptr %94, align 1
%96 = sext i8 %95 to i32
%97 = icmp ne i32 %96, 27
br i1 %97, label %98, label %99
98: ; preds = %92
br label %263
99: ; preds = %92
br label %66, !llvm.loop !10
100: ; preds = %66
%101 = load ptr, ptr %4, align 8
%102 = getelementptr inbounds i8, ptr %101, i64 0
store i8 0, ptr %102, align 1
br label %259
103: ; preds = %62
%104 = load i32, ptr %3, align 4
%105 = icmp eq i32 %104, 5
br i1 %105, label %106, label %188
106: ; preds = %103
%107 = load ptr, ptr %4, align 8
store ptr %107, ptr @ffxmsg.msgptr, align 8
br label %108
108: ; preds = %182, %106
%109 = load ptr, ptr @ffxmsg.msgptr, align 8
%110 = call i32 @strlen(ptr noundef %109)
%111 = icmp ne i32 %110, 0
br i1 %111, label %112, label %187
112: ; preds = %108
%113 = load i32, ptr @ffxmsg.nummsg, align 4
%114 = icmp eq i32 %113, 25
br i1 %114, label %115, label %141
115: ; preds = %112
%116 = load ptr, ptr @ffxmsg.txtbuff, align 16
store ptr %116, ptr @ffxmsg.tmpbuff, align 8
%117 = load ptr, ptr @ffxmsg.txtbuff, align 16
store i8 0, ptr %117, align 1
%118 = load i32, ptr @ffxmsg.nummsg, align 4
%119 = add nsw i32 %118, -1
store i32 %119, ptr @ffxmsg.nummsg, align 4
store i32 0, ptr %5, align 4
br label %120
120: ; preds = %133, %115
%121 = load i32, ptr %5, align 4
%122 = load i32, ptr @ffxmsg.nummsg, align 4
%123 = icmp slt i32 %121, %122
br i1 %123, label %124, label %136
124: ; preds = %120
%125 = load i32, ptr %5, align 4
%126 = add nsw i32 %125, 1
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %127
%129 = load ptr, ptr %128, align 8
%130 = load i32, ptr %5, align 4
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %131
store ptr %129, ptr %132, align 8
br label %133
133: ; preds = %124
%134 = load i32, ptr %5, align 4
%135 = add nsw i32 %134, 1
store i32 %135, ptr %5, align 4
br label %120, !llvm.loop !11
136: ; preds = %120
%137 = load ptr, ptr @ffxmsg.tmpbuff, align 8
%138 = load i32, ptr @ffxmsg.nummsg, align 4
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %139
store ptr %137, ptr %140, align 8
br label %166
141: ; preds = %112
store i32 0, ptr %5, align 4
br label %142
142: ; preds = %162, %141
%143 = load i32, ptr %5, align 4
%144 = icmp slt i32 %143, 25
br i1 %144, label %145, label %165
145: ; preds = %142
%146 = load i32, ptr %5, align 4
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds [25 x [81 x i8]], ptr @ffxmsg.errbuff, i64 0, i64 %147
%149 = getelementptr inbounds [81 x i8], ptr %148, i64 0, i64 0
%150 = load i8, ptr %149, align 1
%151 = sext i8 %150 to i32
%152 = icmp eq i32 %151, 0
br i1 %152, label %153, label %161
153: ; preds = %145
%154 = load i32, ptr %5, align 4
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds [25 x [81 x i8]], ptr @ffxmsg.errbuff, i64 0, i64 %155
%157 = getelementptr inbounds [81 x i8], ptr %156, i64 0, i64 0
%158 = load i32, ptr @ffxmsg.nummsg, align 4
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %159
store ptr %157, ptr %160, align 8
br label %165
161: ; preds = %145
br label %162
162: ; preds = %161
%163 = load i32, ptr %5, align 4
%164 = add nsw i32 %163, 1
store i32 %164, ptr %5, align 4
br label %142, !llvm.loop !12
165: ; preds = %153, %142
br label %166
166: ; preds = %165, %136
%167 = load i32, ptr @ffxmsg.nummsg, align 4
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %168
%170 = load ptr, ptr %169, align 8
%171 = load ptr, ptr @ffxmsg.msgptr, align 8
%172 = call i32 @strncat(ptr noundef %170, ptr noundef %171, i32 noundef 80)
%173 = load i32, ptr @ffxmsg.nummsg, align 4
%174 = add nsw i32 %173, 1
store i32 %174, ptr @ffxmsg.nummsg, align 4
%175 = load ptr, ptr @ffxmsg.msgptr, align 8
%176 = call i32 @strlen(ptr noundef %175)
%177 = icmp slt i32 80, %176
br i1 %177, label %178, label %179
178: ; preds = %166
br label %182
179: ; preds = %166
%180 = load ptr, ptr @ffxmsg.msgptr, align 8
%181 = call i32 @strlen(ptr noundef %180)
br label %182
182: ; preds = %179, %178
%183 = phi i32 [ 80, %178 ], [ %181, %179 ]
%184 = load ptr, ptr @ffxmsg.msgptr, align 8
%185 = sext i32 %183 to i64
%186 = getelementptr inbounds i8, ptr %184, i64 %185
store ptr %186, ptr @ffxmsg.msgptr, align 8
br label %108, !llvm.loop !13
187: ; preds = %108
br label %258
188: ; preds = %103
%189 = load i32, ptr %3, align 4
%190 = icmp eq i32 %189, 6
br i1 %190, label %191, label %257
191: ; preds = %188
%192 = load i32, ptr @ffxmsg.nummsg, align 4
%193 = icmp eq i32 %192, 25
br i1 %193, label %194, label %220
194: ; preds = %191
%195 = load ptr, ptr @ffxmsg.txtbuff, align 16
store ptr %195, ptr @ffxmsg.tmpbuff, align 8
%196 = load ptr, ptr @ffxmsg.txtbuff, align 16
store i8 0, ptr %196, align 1
%197 = load i32, ptr @ffxmsg.nummsg, align 4
%198 = add nsw i32 %197, -1
store i32 %198, ptr @ffxmsg.nummsg, align 4
store i32 0, ptr %5, align 4
br label %199
199: ; preds = %212, %194
%200 = load i32, ptr %5, align 4
%201 = load i32, ptr @ffxmsg.nummsg, align 4
%202 = icmp slt i32 %200, %201
br i1 %202, label %203, label %215
203: ; preds = %199
%204 = load i32, ptr %5, align 4
%205 = add nsw i32 %204, 1
%206 = sext i32 %205 to i64
%207 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %206
%208 = load ptr, ptr %207, align 8
%209 = load i32, ptr %5, align 4
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %210
store ptr %208, ptr %211, align 8
br label %212
212: ; preds = %203
%213 = load i32, ptr %5, align 4
%214 = add nsw i32 %213, 1
store i32 %214, ptr %5, align 4
br label %199, !llvm.loop !14
215: ; preds = %199
%216 = load ptr, ptr @ffxmsg.tmpbuff, align 8
%217 = load i32, ptr @ffxmsg.nummsg, align 4
%218 = sext i32 %217 to i64
%219 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %218
store ptr %216, ptr %219, align 8
br label %245
220: ; preds = %191
store i32 0, ptr %5, align 4
br label %221
221: ; preds = %241, %220
%222 = load i32, ptr %5, align 4
%223 = icmp slt i32 %222, 25
br i1 %223, label %224, label %244
224: ; preds = %221
%225 = load i32, ptr %5, align 4
%226 = sext i32 %225 to i64
%227 = getelementptr inbounds [25 x [81 x i8]], ptr @ffxmsg.errbuff, i64 0, i64 %226
%228 = getelementptr inbounds [81 x i8], ptr %227, i64 0, i64 0
%229 = load i8, ptr %228, align 1
%230 = sext i8 %229 to i32
%231 = icmp eq i32 %230, 0
br i1 %231, label %232, label %240
232: ; preds = %224
%233 = load i32, ptr %5, align 4
%234 = sext i32 %233 to i64
%235 = getelementptr inbounds [25 x [81 x i8]], ptr @ffxmsg.errbuff, i64 0, i64 %234
%236 = getelementptr inbounds [81 x i8], ptr %235, i64 0, i64 0
%237 = load i32, ptr @ffxmsg.nummsg, align 4
%238 = sext i32 %237 to i64
%239 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %238
store ptr %236, ptr %239, align 8
br label %244
240: ; preds = %224
br label %241
241: ; preds = %240
%242 = load i32, ptr %5, align 4
%243 = add nsw i32 %242, 1
store i32 %243, ptr %5, align 4
br label %221, !llvm.loop !15
244: ; preds = %232, %221
br label %245
245: ; preds = %244, %215
%246 = load i32, ptr @ffxmsg.nummsg, align 4
%247 = sext i32 %246 to i64
%248 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %247
%249 = load ptr, ptr %248, align 8
store i8 27, ptr %249, align 1
%250 = load i32, ptr @ffxmsg.nummsg, align 4
%251 = sext i32 %250 to i64
%252 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %251
%253 = load ptr, ptr %252, align 8
%254 = getelementptr inbounds i8, ptr %253, i64 1
store i8 0, ptr %254, align 1
%255 = load i32, ptr @ffxmsg.nummsg, align 4
%256 = add nsw i32 %255, 1
store i32 %256, ptr @ffxmsg.nummsg, align 4
br label %257
257: ; preds = %245, %188
br label %258
258: ; preds = %257, %187
br label %259
259: ; preds = %258, %100
br label %260
260: ; preds = %259, %61
br label %261
261: ; preds = %260, %47
br label %262
262: ; preds = %261, %22
br label %263
263: ; preds = %262, %98
ret void
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strncat(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_o6dplq1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ffxmsg.txtbuff = internal global [25 x ptr] zeroinitializer, align 16
@ffxmsg.tmpbuff = internal global ptr null, align 8
@ffxmsg.msgptr = internal global ptr null, align 8
@ffxmsg.errbuff = internal global [25 x [81 x i8]] zeroinitializer, align 16
@ffxmsg.nummsg = internal global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ffxmsg(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i8, align 1
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%7 = load i32, ptr %3, align 4
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %25
9: ; preds = %2
store i32 0, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr @ffxmsg.nummsg, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph21, label %24
.lr.ph21: ; preds = %9
br label %13
13: ; preds = %.lr.ph21, %18
%14 = load i32, ptr %5, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %15
%17 = load ptr, ptr %16, align 8
store i8 0, ptr %17, align 1
br label %18
18: ; preds = %13
%19 = load i32, ptr %5, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %5, align 4
%21 = load i32, ptr %5, align 4
%22 = load i32, ptr @ffxmsg.nummsg, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %13, label %._crit_edge22, !llvm.loop !6
._crit_edge22: ; preds = %18
br label %24
24: ; preds = %._crit_edge22, %9
store i32 0, ptr @ffxmsg.nummsg, align 4
br label %276
25: ; preds = %2
%26 = load i32, ptr %3, align 4
%27 = icmp eq i32 %26, 2
br i1 %27, label %28, label %51
28: ; preds = %25
%29 = load i32, ptr @ffxmsg.nummsg, align 4
%30 = icmp sgt i32 %29, 0
br i1 %30, label %.lr.ph19, label %.loopexit
.lr.ph19: ; preds = %28
br label %34
31: ; preds = %34
%32 = load i32, ptr @ffxmsg.nummsg, align 4
%33 = icmp sgt i32 %32, 0
br i1 %33, label %34, label %..loopexit_crit_edge, !llvm.loop !8
34: ; preds = %.lr.ph19, %31
%35 = load i32, ptr @ffxmsg.nummsg, align 4
%36 = add nsw i32 %35, -1
store i32 %36, ptr @ffxmsg.nummsg, align 4
%37 = load i32, ptr @ffxmsg.nummsg, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %38
%40 = load ptr, ptr %39, align 8
%41 = load i8, ptr %40, align 1
store i8 %41, ptr %6, align 1
%42 = load i32, ptr @ffxmsg.nummsg, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %43
%45 = load ptr, ptr %44, align 8
store i8 0, ptr %45, align 1
%46 = load i8, ptr %6, align 1
%47 = sext i8 %46 to i32
%48 = icmp eq i32 %47, 27
br i1 %48, label %49, label %31
49: ; preds = %34
br label %50
..loopexit_crit_edge: ; preds = %31
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %28
br label %50
50: ; preds = %.loopexit, %49
br label %275
51: ; preds = %25
%52 = load i32, ptr %3, align 4
%53 = icmp eq i32 %52, 3
br i1 %53, label %54, label %65
54: ; preds = %51
%55 = load i32, ptr @ffxmsg.nummsg, align 4
%56 = icmp sgt i32 %55, 0
br i1 %56, label %57, label %64
57: ; preds = %54
%58 = load i32, ptr @ffxmsg.nummsg, align 4
%59 = add nsw i32 %58, -1
store i32 %59, ptr @ffxmsg.nummsg, align 4
%60 = load i32, ptr @ffxmsg.nummsg, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %61
%63 = load ptr, ptr %62, align 8
store i8 0, ptr %63, align 1
br label %64
64: ; preds = %57, %54
br label %274
65: ; preds = %51
%66 = load i32, ptr %3, align 4
%67 = icmp eq i32 %66, 4
br i1 %67, label %68, label %109
68: ; preds = %65
%69 = load i32, ptr @ffxmsg.nummsg, align 4
%70 = icmp sgt i32 %69, 0
br i1 %70, label %.lr.ph16, label %106
.lr.ph16: ; preds = %68
br label %74
71: ; preds = %99
%72 = load i32, ptr @ffxmsg.nummsg, align 4
%73 = icmp sgt i32 %72, 0
br i1 %73, label %74, label %._crit_edge17, !llvm.loop !9
74: ; preds = %.lr.ph16, %71
%75 = load ptr, ptr %4, align 8
%76 = load ptr, ptr @ffxmsg.txtbuff, align 16
%77 = call i32 @strcpy(ptr noundef %75, ptr noundef %76)
%78 = load ptr, ptr @ffxmsg.txtbuff, align 16
store i8 0, ptr %78, align 1
%79 = load i32, ptr @ffxmsg.nummsg, align 4
%80 = add nsw i32 %79, -1
store i32 %80, ptr @ffxmsg.nummsg, align 4
store i32 0, ptr %5, align 4
%81 = load i32, ptr %5, align 4
%82 = load i32, ptr @ffxmsg.nummsg, align 4
%83 = icmp slt i32 %81, %82
br i1 %83, label %.lr.ph13, label %99
.lr.ph13: ; preds = %74
br label %84
84: ; preds = %.lr.ph13, %93
%85 = load i32, ptr %5, align 4
%86 = add nsw i32 %85, 1
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %87
%89 = load ptr, ptr %88, align 8
%90 = load i32, ptr %5, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %91
store ptr %89, ptr %92, align 8
br label %93
93: ; preds = %84
%94 = load i32, ptr %5, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %5, align 4
%96 = load i32, ptr %5, align 4
%97 = load i32, ptr @ffxmsg.nummsg, align 4
%98 = icmp slt i32 %96, %97
br i1 %98, label %84, label %._crit_edge14, !llvm.loop !10
._crit_edge14: ; preds = %93
br label %99
99: ; preds = %._crit_edge14, %74
%100 = load ptr, ptr %4, align 8
%101 = getelementptr inbounds i8, ptr %100, i64 0
%102 = load i8, ptr %101, align 1
%103 = sext i8 %102 to i32
%104 = icmp ne i32 %103, 27
br i1 %104, label %105, label %71
105: ; preds = %99
br label %277
._crit_edge17: ; preds = %71
br label %106
106: ; preds = %._crit_edge17, %68
%107 = load ptr, ptr %4, align 8
%108 = getelementptr inbounds i8, ptr %107, i64 0
store i8 0, ptr %108, align 1
br label %273
109: ; preds = %65
%110 = load i32, ptr %3, align 4
%111 = icmp eq i32 %110, 5
br i1 %111, label %112, label %199
112: ; preds = %109
%113 = load ptr, ptr %4, align 8
store ptr %113, ptr @ffxmsg.msgptr, align 8
%114 = load ptr, ptr @ffxmsg.msgptr, align 8
%115 = call i32 @strlen(ptr noundef %114)
%116 = icmp ne i32 %115, 0
br i1 %116, label %.lr.ph10, label %198
.lr.ph10: ; preds = %112
br label %117
117: ; preds = %.lr.ph10, %190
%118 = load i32, ptr @ffxmsg.nummsg, align 4
%119 = icmp eq i32 %118, 25
br i1 %119, label %120, label %148
120: ; preds = %117
%121 = load ptr, ptr @ffxmsg.txtbuff, align 16
store ptr %121, ptr @ffxmsg.tmpbuff, align 8
%122 = load ptr, ptr @ffxmsg.txtbuff, align 16
store i8 0, ptr %122, align 1
%123 = load i32, ptr @ffxmsg.nummsg, align 4
%124 = add nsw i32 %123, -1
store i32 %124, ptr @ffxmsg.nummsg, align 4
store i32 0, ptr %5, align 4
%125 = load i32, ptr %5, align 4
%126 = load i32, ptr @ffxmsg.nummsg, align 4
%127 = icmp slt i32 %125, %126
br i1 %127, label %.lr.ph7, label %143
.lr.ph7: ; preds = %120
br label %128
128: ; preds = %.lr.ph7, %137
%129 = load i32, ptr %5, align 4
%130 = add nsw i32 %129, 1
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %131
%133 = load ptr, ptr %132, align 8
%134 = load i32, ptr %5, align 4
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %135
store ptr %133, ptr %136, align 8
br label %137
137: ; preds = %128
%138 = load i32, ptr %5, align 4
%139 = add nsw i32 %138, 1
store i32 %139, ptr %5, align 4
%140 = load i32, ptr %5, align 4
%141 = load i32, ptr @ffxmsg.nummsg, align 4
%142 = icmp slt i32 %140, %141
br i1 %142, label %128, label %._crit_edge8, !llvm.loop !11
._crit_edge8: ; preds = %137
br label %143
143: ; preds = %._crit_edge8, %120
%144 = load ptr, ptr @ffxmsg.tmpbuff, align 8
%145 = load i32, ptr @ffxmsg.nummsg, align 4
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %146
store ptr %144, ptr %147, align 8
br label %174
148: ; preds = %117
store i32 0, ptr %5, align 4
%149 = load i32, ptr %5, align 4
%150 = icmp slt i32 %149, 25
br i1 %150, label %.lr.ph5, label %.loopexit1
.lr.ph5: ; preds = %148
br label %151
151: ; preds = %.lr.ph5, %168
%152 = load i32, ptr %5, align 4
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds [25 x [81 x i8]], ptr @ffxmsg.errbuff, i64 0, i64 %153
%155 = getelementptr inbounds [81 x i8], ptr %154, i64 0, i64 0
%156 = load i8, ptr %155, align 1
%157 = sext i8 %156 to i32
%158 = icmp eq i32 %157, 0
br i1 %158, label %159, label %167
159: ; preds = %151
%160 = load i32, ptr %5, align 4
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds [25 x [81 x i8]], ptr @ffxmsg.errbuff, i64 0, i64 %161
%163 = getelementptr inbounds [81 x i8], ptr %162, i64 0, i64 0
%164 = load i32, ptr @ffxmsg.nummsg, align 4
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %165
store ptr %163, ptr %166, align 8
br label %173
167: ; preds = %151
br label %168
168: ; preds = %167
%169 = load i32, ptr %5, align 4
%170 = add nsw i32 %169, 1
store i32 %170, ptr %5, align 4
%171 = load i32, ptr %5, align 4
%172 = icmp slt i32 %171, 25
br i1 %172, label %151, label %..loopexit1_crit_edge, !llvm.loop !12
..loopexit1_crit_edge: ; preds = %168
br label %.loopexit1
.loopexit1: ; preds = %..loopexit1_crit_edge, %148
br label %173
173: ; preds = %.loopexit1, %159
br label %174
174: ; preds = %173, %143
%175 = load i32, ptr @ffxmsg.nummsg, align 4
%176 = sext i32 %175 to i64
%177 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %176
%178 = load ptr, ptr %177, align 8
%179 = load ptr, ptr @ffxmsg.msgptr, align 8
%180 = call i32 @strncat(ptr noundef %178, ptr noundef %179, i32 noundef 80)
%181 = load i32, ptr @ffxmsg.nummsg, align 4
%182 = add nsw i32 %181, 1
store i32 %182, ptr @ffxmsg.nummsg, align 4
%183 = load ptr, ptr @ffxmsg.msgptr, align 8
%184 = call i32 @strlen(ptr noundef %183)
%185 = icmp slt i32 80, %184
br i1 %185, label %186, label %187
186: ; preds = %174
br label %190
187: ; preds = %174
%188 = load ptr, ptr @ffxmsg.msgptr, align 8
%189 = call i32 @strlen(ptr noundef %188)
br label %190
190: ; preds = %187, %186
%191 = phi i32 [ 80, %186 ], [ %189, %187 ]
%192 = load ptr, ptr @ffxmsg.msgptr, align 8
%193 = sext i32 %191 to i64
%194 = getelementptr inbounds i8, ptr %192, i64 %193
store ptr %194, ptr @ffxmsg.msgptr, align 8
%195 = load ptr, ptr @ffxmsg.msgptr, align 8
%196 = call i32 @strlen(ptr noundef %195)
%197 = icmp ne i32 %196, 0
br i1 %197, label %117, label %._crit_edge11, !llvm.loop !13
._crit_edge11: ; preds = %190
br label %198
198: ; preds = %._crit_edge11, %112
br label %272
199: ; preds = %109
%200 = load i32, ptr %3, align 4
%201 = icmp eq i32 %200, 6
br i1 %201, label %202, label %271
202: ; preds = %199
%203 = load i32, ptr @ffxmsg.nummsg, align 4
%204 = icmp eq i32 %203, 25
br i1 %204, label %205, label %233
205: ; preds = %202
%206 = load ptr, ptr @ffxmsg.txtbuff, align 16
store ptr %206, ptr @ffxmsg.tmpbuff, align 8
%207 = load ptr, ptr @ffxmsg.txtbuff, align 16
store i8 0, ptr %207, align 1
%208 = load i32, ptr @ffxmsg.nummsg, align 4
%209 = add nsw i32 %208, -1
store i32 %209, ptr @ffxmsg.nummsg, align 4
store i32 0, ptr %5, align 4
%210 = load i32, ptr %5, align 4
%211 = load i32, ptr @ffxmsg.nummsg, align 4
%212 = icmp slt i32 %210, %211
br i1 %212, label %.lr.ph3, label %228
.lr.ph3: ; preds = %205
br label %213
213: ; preds = %.lr.ph3, %222
%214 = load i32, ptr %5, align 4
%215 = add nsw i32 %214, 1
%216 = sext i32 %215 to i64
%217 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %216
%218 = load ptr, ptr %217, align 8
%219 = load i32, ptr %5, align 4
%220 = sext i32 %219 to i64
%221 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %220
store ptr %218, ptr %221, align 8
br label %222
222: ; preds = %213
%223 = load i32, ptr %5, align 4
%224 = add nsw i32 %223, 1
store i32 %224, ptr %5, align 4
%225 = load i32, ptr %5, align 4
%226 = load i32, ptr @ffxmsg.nummsg, align 4
%227 = icmp slt i32 %225, %226
br i1 %227, label %213, label %._crit_edge, !llvm.loop !14
._crit_edge: ; preds = %222
br label %228
228: ; preds = %._crit_edge, %205
%229 = load ptr, ptr @ffxmsg.tmpbuff, align 8
%230 = load i32, ptr @ffxmsg.nummsg, align 4
%231 = sext i32 %230 to i64
%232 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %231
store ptr %229, ptr %232, align 8
br label %259
233: ; preds = %202
store i32 0, ptr %5, align 4
%234 = load i32, ptr %5, align 4
%235 = icmp slt i32 %234, 25
br i1 %235, label %.lr.ph, label %.loopexit2
.lr.ph: ; preds = %233
br label %236
236: ; preds = %.lr.ph, %253
%237 = load i32, ptr %5, align 4
%238 = sext i32 %237 to i64
%239 = getelementptr inbounds [25 x [81 x i8]], ptr @ffxmsg.errbuff, i64 0, i64 %238
%240 = getelementptr inbounds [81 x i8], ptr %239, i64 0, i64 0
%241 = load i8, ptr %240, align 1
%242 = sext i8 %241 to i32
%243 = icmp eq i32 %242, 0
br i1 %243, label %244, label %252
244: ; preds = %236
%245 = load i32, ptr %5, align 4
%246 = sext i32 %245 to i64
%247 = getelementptr inbounds [25 x [81 x i8]], ptr @ffxmsg.errbuff, i64 0, i64 %246
%248 = getelementptr inbounds [81 x i8], ptr %247, i64 0, i64 0
%249 = load i32, ptr @ffxmsg.nummsg, align 4
%250 = sext i32 %249 to i64
%251 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %250
store ptr %248, ptr %251, align 8
br label %258
252: ; preds = %236
br label %253
253: ; preds = %252
%254 = load i32, ptr %5, align 4
%255 = add nsw i32 %254, 1
store i32 %255, ptr %5, align 4
%256 = load i32, ptr %5, align 4
%257 = icmp slt i32 %256, 25
br i1 %257, label %236, label %..loopexit2_crit_edge, !llvm.loop !15
..loopexit2_crit_edge: ; preds = %253
br label %.loopexit2
.loopexit2: ; preds = %..loopexit2_crit_edge, %233
br label %258
258: ; preds = %.loopexit2, %244
br label %259
259: ; preds = %258, %228
%260 = load i32, ptr @ffxmsg.nummsg, align 4
%261 = sext i32 %260 to i64
%262 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %261
%263 = load ptr, ptr %262, align 8
store i8 27, ptr %263, align 1
%264 = load i32, ptr @ffxmsg.nummsg, align 4
%265 = sext i32 %264 to i64
%266 = getelementptr inbounds [25 x ptr], ptr @ffxmsg.txtbuff, i64 0, i64 %265
%267 = load ptr, ptr %266, align 8
%268 = getelementptr inbounds i8, ptr %267, i64 1
store i8 0, ptr %268, align 1
%269 = load i32, ptr @ffxmsg.nummsg, align 4
%270 = add nsw i32 %269, 1
store i32 %270, ptr @ffxmsg.nummsg, align 4
br label %271
271: ; preds = %259, %199
br label %272
272: ; preds = %271, %198
br label %273
273: ; preds = %272, %106
br label %274
274: ; preds = %273, %64
br label %275
275: ; preds = %274, %50
br label %276
276: ; preds = %275, %24
br label %277
277: ; preds = %276, %105
ret void
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strncat(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
|
; ModuleID = '/tmp/tmptkt3wn6o.c'
source_filename = "/tmp/tmptkt3wn6o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @example7() #0 {
%1 = alloca i32, align 4
%2 = alloca [42 x i32], align 16
%3 = alloca [42 x i32], align 16
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %17, %0
%8 = load i32, ptr %5, align 4
%9 = icmp slt i32 %8, 42
br i1 %9, label %10, label %20
10: ; preds = %7
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [42 x i32], ptr %2, i64 0, i64 %12
store i32 4, ptr %13, align 4
%14 = load i32, ptr %5, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [42 x i32], ptr %3, i64 0, i64 %15
store i32 4, ptr %16, align 4
br label %17
17: ; preds = %10
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %5, align 4
br label %7, !llvm.loop !6
20: ; preds = %7
%21 = getelementptr inbounds [42 x i32], ptr %2, i64 0, i64 7
store ptr %21, ptr %4, align 8
%22 = load i32, ptr %1, align 4
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %20
%25 = getelementptr inbounds [42 x i32], ptr %3, i64 0, i64 7
store ptr %25, ptr %4, align 8
br label %26
26: ; preds = %24, %20
%27 = load ptr, ptr %4, align 8
store i32 9, ptr %27, align 4
%28 = getelementptr inbounds [42 x i32], ptr %2, i64 0, i64 7
%29 = load i32, ptr %28, align 4
store i32 %29, ptr %6, align 4
%30 = load i32, ptr %6, align 4
%31 = icmp eq i32 %30, 3
%32 = zext i1 %31 to i32
%33 = call i32 @assert(i32 noundef %32)
%34 = load i32, ptr %6, align 4
%35 = icmp eq i32 %34, 4
%36 = zext i1 %35 to i32
%37 = call i32 @assert(i32 noundef %36)
%38 = load i32, ptr %6, align 4
%39 = icmp eq i32 %38, 9
%40 = zext i1 %39 to i32
%41 = call i32 @assert(i32 noundef %40)
%42 = load i32, ptr %6, align 4
%43 = icmp eq i32 %42, 10
%44 = zext i1 %43 to i32
%45 = call i32 @assert(i32 noundef %44)
ret void
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptkt3wn6o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @example7() #0 {
%1 = alloca i32, align 4
%2 = alloca [42 x i32], align 16
%3 = alloca [42 x i32], align 16
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = icmp slt i32 %7, 42
br i1 %8, label %.lr.ph, label %21
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %16
%10 = load i32, ptr %5, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [42 x i32], ptr %2, i64 0, i64 %11
store i32 4, ptr %12, align 4
%13 = load i32, ptr %5, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [42 x i32], ptr %3, i64 0, i64 %14
store i32 4, ptr %15, align 4
br label %16
16: ; preds = %9
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %5, align 4
%19 = load i32, ptr %5, align 4
%20 = icmp slt i32 %19, 42
br i1 %20, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %21
21: ; preds = %._crit_edge, %0
%22 = getelementptr inbounds [42 x i32], ptr %2, i64 0, i64 7
store ptr %22, ptr %4, align 8
%23 = load i32, ptr %1, align 4
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = getelementptr inbounds [42 x i32], ptr %3, i64 0, i64 7
store ptr %26, ptr %4, align 8
br label %27
27: ; preds = %25, %21
%28 = load ptr, ptr %4, align 8
store i32 9, ptr %28, align 4
%29 = getelementptr inbounds [42 x i32], ptr %2, i64 0, i64 7
%30 = load i32, ptr %29, align 4
store i32 %30, ptr %6, align 4
%31 = load i32, ptr %6, align 4
%32 = icmp eq i32 %31, 3
%33 = zext i1 %32 to i32
%34 = call i32 @assert(i32 noundef %33)
%35 = load i32, ptr %6, align 4
%36 = icmp eq i32 %35, 4
%37 = zext i1 %36 to i32
%38 = call i32 @assert(i32 noundef %37)
%39 = load i32, ptr %6, align 4
%40 = icmp eq i32 %39, 9
%41 = zext i1 %40 to i32
%42 = call i32 @assert(i32 noundef %41)
%43 = load i32, ptr %6, align 4
%44 = icmp eq i32 %43, 10
%45 = zext i1 %44 to i32
%46 = call i32 @assert(i32 noundef %45)
ret void
}
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp982qbmzd.c'
source_filename = "/tmp/tmp982qbmzd.c"
target datalayout = "e-m:e-p270: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.addrinfo = type { i64, i32, i32, i32, i32, ptr }
@INET6_ADDRSTRLEN = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [24 x i8] c"usage: client hostname\0A\00", align 1
@AF_UNSPEC = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [5 x i8] c"3490\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"getaddrinfo: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"client: socket\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"client: connect\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"client: failed to connect\0A\00", align 1
@.str.6 = private unnamed_addr constant [26 x i8] c"client: connecting to %s\0A\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"recv\00", align 1
@.str.8 = private unnamed_addr constant [27 x i8] c"client: received %d bytes\0A\00", align 1
@.str.9 = private unnamed_addr constant [12 x i8] c"client: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [100 x i8], align 16
%9 = alloca %struct.addrinfo, 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 i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%16 = load i32, ptr @INET6_ADDRSTRLEN, align 4
%17 = zext i32 %16 to i64
%18 = call ptr @llvm.stacksave()
store ptr %18, ptr %13, align 8
%19 = alloca i8, i64 %17, align 16
store i64 %17, ptr %14, align 8
%20 = load i32, ptr %4, align 4
%21 = icmp ne i32 %20, 2
br i1 %21, label %22, label %26
22: ; preds = %2
%23 = load i32, ptr @stderr, align 4
%24 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %23, ptr noundef @.str)
%25 = call i32 @exit(i32 noundef 1) #4
unreachable
26: ; preds = %2
%27 = call i32 @memset(ptr noundef %9, i32 noundef 0, i32 noundef 32)
%28 = load i32, ptr @AF_UNSPEC, align 4
%29 = getelementptr inbounds %struct.addrinfo, ptr %9, i32 0, i32 1
store i32 %28, ptr %29, align 8
%30 = load i32, ptr @SOCK_STREAM, align 4
%31 = getelementptr inbounds %struct.addrinfo, ptr %9, i32 0, i32 4
store i32 %30, ptr %31, align 4
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 1
%34 = load ptr, ptr %33, align 8
%35 = call i32 @getaddrinfo(ptr noundef %34, ptr noundef @.str.1, ptr noundef %9, ptr noundef %10)
store i32 %35, ptr %12, align 4
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %42
37: ; preds = %26
%38 = load i32, ptr @stderr, align 4
%39 = load i32, ptr %12, align 4
%40 = call ptr @gai_strerror(i32 noundef %39)
%41 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %38, ptr noundef @.str.2, ptr noundef %40)
store i32 1, ptr %3, align 4
store i32 1, ptr %15, align 4
br label %117
42: ; preds = %26
%43 = load ptr, ptr %10, align 8
store ptr %43, ptr %11, align 8
br label %44
44: ; preds = %76, %42
%45 = load ptr, ptr %11, align 8
%46 = icmp ne ptr %45, null
br i1 %46, label %47, label %80
47: ; preds = %44
%48 = load ptr, ptr %11, align 8
%49 = getelementptr inbounds %struct.addrinfo, ptr %48, i32 0, i32 1
%50 = load i32, ptr %49, align 8
%51 = load ptr, ptr %11, align 8
%52 = getelementptr inbounds %struct.addrinfo, ptr %51, i32 0, i32 4
%53 = load i32, ptr %52, align 4
%54 = load ptr, ptr %11, align 8
%55 = getelementptr inbounds %struct.addrinfo, ptr %54, i32 0, i32 3
%56 = load i32, ptr %55, align 8
%57 = call i32 @socket(i32 noundef %50, i32 noundef %53, i32 noundef %56)
store i32 %57, ptr %6, align 4
%58 = icmp eq i32 %57, -1
br i1 %58, label %59, label %61
59: ; preds = %47
%60 = call i32 @perror(ptr noundef @.str.3)
br label %76
61: ; preds = %47
%62 = load i32, ptr %6, align 4
%63 = load ptr, ptr %11, align 8
%64 = getelementptr inbounds %struct.addrinfo, ptr %63, i32 0, i32 0
%65 = load i64, ptr %64, align 8
%66 = load ptr, ptr %11, align 8
%67 = getelementptr inbounds %struct.addrinfo, ptr %66, i32 0, i32 2
%68 = load i32, ptr %67, align 4
%69 = call i32 @connect(i32 noundef %62, i64 noundef %65, i32 noundef %68)
%70 = icmp eq i32 %69, -1
br i1 %70, label %71, label %75
71: ; preds = %61
%72 = load i32, ptr %6, align 4
%73 = call i32 @close(i32 noundef %72)
%74 = call i32 @perror(ptr noundef @.str.4)
br label %76
75: ; preds = %61
br label %80
76: ; preds = %71, %59
%77 = load ptr, ptr %11, align 8
%78 = getelementptr inbounds %struct.addrinfo, ptr %77, i32 0, i32 5
%79 = load ptr, ptr %78, align 8
store ptr %79, ptr %11, align 8
br label %44, !llvm.loop !6
80: ; preds = %75, %44
%81 = load ptr, ptr %11, align 8
%82 = icmp eq ptr %81, null
br i1 %82, label %83, label %86
83: ; preds = %80
%84 = load i32, ptr @stderr, align 4
%85 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %84, ptr noundef @.str.5)
store i32 2, ptr %3, align 4
store i32 1, ptr %15, align 4
br label %117
86: ; preds = %80
%87 = load ptr, ptr %11, align 8
%88 = getelementptr inbounds %struct.addrinfo, ptr %87, i32 0, i32 1
%89 = load i32, ptr %88, align 8
%90 = load ptr, ptr %11, align 8
%91 = getelementptr inbounds %struct.addrinfo, ptr %90, i32 0, i32 0
%92 = load i64, ptr %91, align 8
%93 = inttoptr i64 %92 to ptr
%94 = call i32 @get_in_addr(ptr noundef %93)
%95 = trunc i64 %17 to i32
%96 = call i32 @inet_ntop(i32 noundef %89, i32 noundef %94, ptr noundef %19, i32 noundef %95)
%97 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %19)
%98 = load ptr, ptr %10, align 8
%99 = call i32 @freeaddrinfo(ptr noundef %98)
%100 = load i32, ptr %6, align 4
%101 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 0
%102 = call i32 @recv(i32 noundef %100, ptr noundef %101, i32 noundef 99, i32 noundef 0)
store i32 %102, ptr %7, align 4
%103 = icmp eq i32 %102, -1
br i1 %103, label %104, label %107
104: ; preds = %86
%105 = call i32 @perror(ptr noundef @.str.7)
%106 = call i32 @exit(i32 noundef 1) #4
unreachable
107: ; preds = %86
%108 = load i32, ptr %7, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 %109
store i8 0, ptr %110, align 1
%111 = load i32, ptr %7, align 4
%112 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %111)
%113 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 0
%114 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %113)
%115 = load i32, ptr %6, align 4
%116 = call i32 @close(i32 noundef %115)
store i32 0, ptr %3, align 4
store i32 1, ptr %15, align 4
br label %117
117: ; preds = %107, %83, %37
%118 = load ptr, ptr %13, align 8
call void @llvm.stackrestore(ptr %118)
%119 = load i32, ptr %3, align 4
ret i32 %119
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
declare ptr @gai_strerror(i32 noundef) #2
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @perror(ptr noundef) #2
declare i32 @connect(i32 noundef, i64 noundef, i32 noundef) #2
declare i32 @close(i32 noundef) #2
declare i32 @inet_ntop(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @get_in_addr(ptr noundef) #2
declare i32 @printf(ptr noundef, ...) #2
declare i32 @freeaddrinfo(ptr noundef) #2
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp982qbmzd.c"
target datalayout = "e-m:e-p270: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.addrinfo = type { i64, i32, i32, i32, i32, ptr }
@INET6_ADDRSTRLEN = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [24 x i8] c"usage: client hostname\0A\00", align 1
@AF_UNSPEC = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [5 x i8] c"3490\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"getaddrinfo: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"client: socket\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"client: connect\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"client: failed to connect\0A\00", align 1
@.str.6 = private unnamed_addr constant [26 x i8] c"client: connecting to %s\0A\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"recv\00", align 1
@.str.8 = private unnamed_addr constant [27 x i8] c"client: received %d bytes\0A\00", align 1
@.str.9 = private unnamed_addr constant [12 x i8] c"client: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [100 x i8], align 16
%9 = alloca %struct.addrinfo, 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 i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%16 = load i32, ptr @INET6_ADDRSTRLEN, align 4
%17 = zext i32 %16 to i64
%18 = call ptr @llvm.stacksave()
store ptr %18, ptr %13, align 8
%19 = alloca i8, i64 %17, align 16
store i64 %17, ptr %14, align 8
%20 = load i32, ptr %4, align 4
%21 = icmp ne i32 %20, 2
br i1 %21, label %22, label %26
22: ; preds = %2
%23 = load i32, ptr @stderr, align 4
%24 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %23, ptr noundef @.str)
%25 = call i32 @exit(i32 noundef 1) #4
unreachable
26: ; preds = %2
%27 = call i32 @memset(ptr noundef %9, i32 noundef 0, i32 noundef 32)
%28 = load i32, ptr @AF_UNSPEC, align 4
%29 = getelementptr inbounds %struct.addrinfo, ptr %9, i32 0, i32 1
store i32 %28, ptr %29, align 8
%30 = load i32, ptr @SOCK_STREAM, align 4
%31 = getelementptr inbounds %struct.addrinfo, ptr %9, i32 0, i32 4
store i32 %30, ptr %31, align 4
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 1
%34 = load ptr, ptr %33, align 8
%35 = call i32 @getaddrinfo(ptr noundef %34, ptr noundef @.str.1, ptr noundef %9, ptr noundef %10)
store i32 %35, ptr %12, align 4
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %42
37: ; preds = %26
%38 = load i32, ptr @stderr, align 4
%39 = load i32, ptr %12, align 4
%40 = call ptr @gai_strerror(i32 noundef %39)
%41 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %38, ptr noundef @.str.2, ptr noundef %40)
store i32 1, ptr %3, align 4
store i32 1, ptr %15, align 4
br label %118
42: ; preds = %26
%43 = load ptr, ptr %10, align 8
store ptr %43, ptr %11, align 8
%44 = load ptr, ptr %11, align 8
%45 = icmp ne ptr %44, null
br i1 %45, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %42
br label %46
46: ; preds = %.lr.ph, %75
%47 = load ptr, ptr %11, align 8
%48 = getelementptr inbounds %struct.addrinfo, ptr %47, i32 0, i32 1
%49 = load i32, ptr %48, align 8
%50 = load ptr, ptr %11, align 8
%51 = getelementptr inbounds %struct.addrinfo, ptr %50, i32 0, i32 4
%52 = load i32, ptr %51, align 4
%53 = load ptr, ptr %11, align 8
%54 = getelementptr inbounds %struct.addrinfo, ptr %53, i32 0, i32 3
%55 = load i32, ptr %54, align 8
%56 = call i32 @socket(i32 noundef %49, i32 noundef %52, i32 noundef %55)
store i32 %56, ptr %6, align 4
%57 = icmp eq i32 %56, -1
br i1 %57, label %58, label %60
58: ; preds = %46
%59 = call i32 @perror(ptr noundef @.str.3)
br label %75
60: ; preds = %46
%61 = load i32, ptr %6, align 4
%62 = load ptr, ptr %11, align 8
%63 = getelementptr inbounds %struct.addrinfo, ptr %62, i32 0, i32 0
%64 = load i64, ptr %63, align 8
%65 = load ptr, ptr %11, align 8
%66 = getelementptr inbounds %struct.addrinfo, ptr %65, i32 0, i32 2
%67 = load i32, ptr %66, align 4
%68 = call i32 @connect(i32 noundef %61, i64 noundef %64, i32 noundef %67)
%69 = icmp eq i32 %68, -1
br i1 %69, label %70, label %74
70: ; preds = %60
%71 = load i32, ptr %6, align 4
%72 = call i32 @close(i32 noundef %71)
%73 = call i32 @perror(ptr noundef @.str.4)
br label %75
74: ; preds = %60
br label %81
75: ; preds = %70, %58
%76 = load ptr, ptr %11, align 8
%77 = getelementptr inbounds %struct.addrinfo, ptr %76, i32 0, i32 5
%78 = load ptr, ptr %77, align 8
store ptr %78, ptr %11, align 8
%79 = load ptr, ptr %11, align 8
%80 = icmp ne ptr %79, null
br i1 %80, label %46, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %75
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %42
br label %81
81: ; preds = %.loopexit, %74
%82 = load ptr, ptr %11, align 8
%83 = icmp eq ptr %82, null
br i1 %83, label %84, label %87
84: ; preds = %81
%85 = load i32, ptr @stderr, align 4
%86 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %85, ptr noundef @.str.5)
store i32 2, ptr %3, align 4
store i32 1, ptr %15, align 4
br label %118
87: ; preds = %81
%88 = load ptr, ptr %11, align 8
%89 = getelementptr inbounds %struct.addrinfo, ptr %88, i32 0, i32 1
%90 = load i32, ptr %89, align 8
%91 = load ptr, ptr %11, align 8
%92 = getelementptr inbounds %struct.addrinfo, ptr %91, i32 0, i32 0
%93 = load i64, ptr %92, align 8
%94 = inttoptr i64 %93 to ptr
%95 = call i32 @get_in_addr(ptr noundef %94)
%96 = trunc i64 %17 to i32
%97 = call i32 @inet_ntop(i32 noundef %90, i32 noundef %95, ptr noundef %19, i32 noundef %96)
%98 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %19)
%99 = load ptr, ptr %10, align 8
%100 = call i32 @freeaddrinfo(ptr noundef %99)
%101 = load i32, ptr %6, align 4
%102 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 0
%103 = call i32 @recv(i32 noundef %101, ptr noundef %102, i32 noundef 99, i32 noundef 0)
store i32 %103, ptr %7, align 4
%104 = icmp eq i32 %103, -1
br i1 %104, label %105, label %108
105: ; preds = %87
%106 = call i32 @perror(ptr noundef @.str.7)
%107 = call i32 @exit(i32 noundef 1) #4
unreachable
108: ; preds = %87
%109 = load i32, ptr %7, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 %110
store i8 0, ptr %111, align 1
%112 = load i32, ptr %7, align 4
%113 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %112)
%114 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 0
%115 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %114)
%116 = load i32, ptr %6, align 4
%117 = call i32 @close(i32 noundef %116)
store i32 0, ptr %3, align 4
store i32 1, ptr %15, align 4
br label %118
118: ; preds = %108, %84, %37
%119 = load ptr, ptr %13, align 8
call void @llvm.stackrestore(ptr %119)
%120 = load i32, ptr %3, align 4
ret i32 %120
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
declare ptr @gai_strerror(i32 noundef) #2
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #2
declare i32 @perror(ptr noundef) #2
declare i32 @connect(i32 noundef, i64 noundef, i32 noundef) #2
declare i32 @close(i32 noundef) #2
declare i32 @inet_ntop(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @get_in_addr(ptr noundef) #2
declare i32 @printf(ptr noundef, ...) #2
declare i32 @freeaddrinfo(ptr noundef) #2
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp9uct6gam.c'
source_filename = "/tmp/tmp9uct6gam.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @b_compareDigits(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
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
%10 = load i32, ptr %8, align 4
%11 = load i32, ptr %9, align 4
%12 = icmp sgt i32 %10, %11
br i1 %12, label %13, label %14
13: ; preds = %4
store i32 1, ptr %5, align 4
br label %25
14: ; preds = %4
%15 = load i32, ptr %8, align 4
%16 = load i32, ptr %9, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %19
18: ; preds = %14
store i32 -1, ptr %5, align 4
br label %25
19: ; preds = %14
br label %20
20: ; preds = %19
%21 = load ptr, ptr %6, align 8
%22 = load ptr, ptr %7, align 8
%23 = load i32, ptr %8, align 4
%24 = call i32 @b_compareRange(ptr noundef %21, ptr noundef %22, i32 noundef 0, i32 noundef 0, i32 noundef %23)
store i32 %24, ptr %5, align 4
br label %25
25: ; preds = %20, %18, %13
%26 = load i32, ptr %5, align 4
ret i32 %26
}
declare i32 @b_compareRange(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9uct6gam.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @b_compareDigits(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
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
%10 = load i32, ptr %8, align 4
%11 = load i32, ptr %9, align 4
%12 = icmp sgt i32 %10, %11
br i1 %12, label %13, label %14
13: ; preds = %4
store i32 1, ptr %5, align 4
br label %25
14: ; preds = %4
%15 = load i32, ptr %8, align 4
%16 = load i32, ptr %9, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %19
18: ; preds = %14
store i32 -1, ptr %5, align 4
br label %25
19: ; preds = %14
br label %20
20: ; preds = %19
%21 = load ptr, ptr %6, align 8
%22 = load ptr, ptr %7, align 8
%23 = load i32, ptr %8, align 4
%24 = call i32 @b_compareRange(ptr noundef %21, ptr noundef %22, i32 noundef 0, i32 noundef 0, i32 noundef %23)
store i32 %24, ptr %5, align 4
br label %25
25: ; preds = %20, %18, %13
%26 = load i32, ptr %5, align 4
ret i32 %26
}
declare i32 @b_compareRange(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpimngq9tc.c'
source_filename = "/tmp/tmpimngq9tc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FLT_EPSILON = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getAuditoryBandLen(i32 noundef %0, double noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca double, align 8
%6 = alloca i32, align 4
%7 = alloca double, align 8
%8 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store double %1, ptr %5, align 8
store i32 3, ptr %6, align 4
%9 = load double, ptr %5, align 8
%10 = load double, ptr @FLT_EPSILON, align 8
%11 = fcmp olt double %9, %10
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = load i32, ptr %4, align 4
store i32 %13, ptr %3, align 4
br label %49
14: ; preds = %2
%15 = load double, ptr %5, align 8
store double %15, ptr %7, align 8
store i32 0, ptr %8, align 4
br label %16
16: ; preds = %25, %14
%17 = load i32, ptr %6, align 4
%18 = uitofp i32 %17 to double
%19 = load double, ptr %7, align 8
%20 = fadd double %18, %19
%21 = fsub double %20, 1.000000e+00
%22 = load i32, ptr %4, align 4
%23 = uitofp i32 %22 to double
%24 = fcmp olt double %21, %23
br i1 %24, label %25, label %38
25: ; preds = %16
%26 = load i32, ptr %6, align 4
%27 = load double, ptr %7, align 8
%28 = call double @llvm.round.f64(double %27)
%29 = fmul double %28, 5.000000e-01
%30 = call i64 @ceil(double noundef %29)
%31 = trunc i64 %30 to i32
%32 = add i32 %26, %31
store i32 %32, ptr %6, align 4
%33 = load double, ptr %7, align 8
%34 = load double, ptr %5, align 8
%35 = fmul double %33, %34
store double %35, ptr %7, align 8
%36 = load i32, ptr %8, align 4
%37 = add i32 %36, 1
store i32 %37, ptr %8, align 4
br label %16, !llvm.loop !6
38: ; preds = %16
%39 = load i32, ptr %8, align 4
%40 = load i32, ptr %4, align 4
%41 = lshr i32 %40, 1
%42 = icmp ugt i32 %39, %41
br i1 %42, label %43, label %45
43: ; preds = %38
%44 = load i32, ptr %4, align 4
br label %47
45: ; preds = %38
%46 = load i32, ptr %8, align 4
br label %47
47: ; preds = %45, %43
%48 = phi i32 [ %44, %43 ], [ %46, %45 ]
store i32 %48, ptr %3, align 4
br label %49
49: ; preds = %47, %12
%50 = load i32, ptr %3, align 4
ret i32 %50
}
declare i64 @ceil(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.round.f64(double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpimngq9tc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FLT_EPSILON = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getAuditoryBandLen(i32 noundef %0, double noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca double, align 8
%6 = alloca i32, align 4
%7 = alloca double, align 8
%8 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store double %1, ptr %5, align 8
store i32 3, ptr %6, align 4
%9 = load double, ptr %5, align 8
%10 = load double, ptr @FLT_EPSILON, align 8
%11 = fcmp olt double %9, %10
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = load i32, ptr %4, align 4
store i32 %13, ptr %3, align 4
br label %56
14: ; preds = %2
%15 = load double, ptr %5, align 8
store double %15, ptr %7, align 8
store i32 0, ptr %8, align 4
%16 = load i32, ptr %6, align 4
%17 = uitofp i32 %16 to double
%18 = load double, ptr %7, align 8
%19 = fadd double %17, %18
%20 = fsub double %19, 1.000000e+00
%21 = load i32, ptr %4, align 4
%22 = uitofp i32 %21 to double
%23 = fcmp olt double %20, %22
br i1 %23, label %.lr.ph, label %45
.lr.ph: ; preds = %14
br label %24
24: ; preds = %.lr.ph, %24
%25 = load i32, ptr %6, align 4
%26 = load double, ptr %7, align 8
%27 = call double @llvm.round.f64(double %26)
%28 = fmul double %27, 5.000000e-01
%29 = call i64 @ceil(double noundef %28)
%30 = trunc i64 %29 to i32
%31 = add i32 %25, %30
store i32 %31, ptr %6, align 4
%32 = load double, ptr %7, align 8
%33 = load double, ptr %5, align 8
%34 = fmul double %32, %33
store double %34, ptr %7, align 8
%35 = load i32, ptr %8, align 4
%36 = add i32 %35, 1
store i32 %36, ptr %8, align 4
%37 = load i32, ptr %6, align 4
%38 = uitofp i32 %37 to double
%39 = load double, ptr %7, align 8
%40 = fadd double %38, %39
%41 = fsub double %40, 1.000000e+00
%42 = load i32, ptr %4, align 4
%43 = uitofp i32 %42 to double
%44 = fcmp olt double %41, %43
br i1 %44, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %45
45: ; preds = %._crit_edge, %14
%46 = load i32, ptr %8, align 4
%47 = load i32, ptr %4, align 4
%48 = lshr i32 %47, 1
%49 = icmp ugt i32 %46, %48
br i1 %49, label %50, label %52
50: ; preds = %45
%51 = load i32, ptr %4, align 4
br label %54
52: ; preds = %45
%53 = load i32, ptr %8, align 4
br label %54
54: ; preds = %52, %50
%55 = phi i32 [ %51, %50 ], [ %53, %52 ]
store i32 %55, ptr %3, align 4
br label %56
56: ; preds = %54, %12
%57 = load i32, ptr %3, align 4
ret i32 %57
}
declare i64 @ceil(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.round.f64(double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp0p0blv1a.c'
source_filename = "/tmp/tmp0p0blv1a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"w\00", align 1
@SIGINT = dso_local global i32 0, align 4
@SSL_OP_NO_SSLv2 = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @save_ssl_certificate_at_path(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store ptr null, ptr %5, align 8
store ptr null, ptr %6, align 8
store ptr null, ptr %7, align 8
store i32 0, ptr %11, align 4
%12 = call i32 (...) @OpenSSL_add_all_algorithms()
%13 = call i32 (...) @ERR_load_BIO_strings()
%14 = call i32 (...) @ERR_load_crypto_strings()
%15 = call i32 (...) @SSL_load_error_strings()
%16 = call i32 (...) @BIO_s_file()
%17 = call ptr @BIO_new(i32 noundef %16)
store ptr %17, ptr %5, align 8
%18 = load ptr, ptr %4, align 8
%19 = call ptr @BIO_new_file(ptr noundef %18, ptr noundef @.str)
store ptr %19, ptr %6, align 8
%20 = call i64 (...) @SSL_library_init()
%21 = icmp slt i64 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %2
%23 = load i32, ptr @SIGINT, align 4
%24 = call i32 @raise(i32 noundef %23)
br label %25
25: ; preds = %22, %2
%26 = call ptr (...) @SSLv23_client_method()
store ptr %26, ptr %8, align 8
%27 = load ptr, ptr %8, align 8
%28 = call ptr @SSL_CTX_new(ptr noundef %27)
store ptr %28, ptr %9, align 8
%29 = icmp eq ptr %28, null
br i1 %29, label %30, label %33
30: ; preds = %25
%31 = load i32, ptr @SIGINT, align 4
%32 = call i32 @raise(i32 noundef %31)
br label %33
33: ; preds = %30, %25
%34 = load ptr, ptr %9, align 8
%35 = load i32, ptr @SSL_OP_NO_SSLv2, align 4
%36 = call i32 @SSL_CTX_set_options(ptr noundef %34, i32 noundef %35)
%37 = load ptr, ptr %9, align 8
%38 = call ptr @SSL_new(ptr noundef %37)
store ptr %38, ptr %10, align 8
%39 = load ptr, ptr %3, align 8
%40 = load ptr, ptr %6, align 8
%41 = call i32 @create_socket(ptr noundef %39, ptr noundef %40)
store i32 %41, ptr %11, align 4
%42 = load ptr, ptr %10, align 8
%43 = load i32, ptr %11, align 4
%44 = call i32 @SSL_set_fd(ptr noundef %42, i32 noundef %43)
%45 = load ptr, ptr %10, align 8
%46 = call i32 @SSL_connect(ptr noundef %45)
%47 = load ptr, ptr %10, align 8
%48 = call ptr @SSL_get_peer_certificate(ptr noundef %47)
store ptr %48, ptr %7, align 8
%49 = load ptr, ptr %7, align 8
%50 = icmp eq ptr %49, null
br i1 %50, label %51, label %54
51: ; preds = %33
%52 = load i32, ptr @SIGINT, align 4
%53 = call i32 @raise(i32 noundef %52)
br label %54
54: ; preds = %51, %33
%55 = load ptr, ptr %6, align 8
%56 = load ptr, ptr %7, align 8
%57 = call i32 @PEM_write_bio_X509(ptr noundef %55, ptr noundef %56)
%58 = load ptr, ptr %10, align 8
%59 = call i32 @SSL_free(ptr noundef %58)
%60 = load i32, ptr %11, align 4
%61 = call i32 @close(i32 noundef %60)
%62 = load ptr, ptr %7, align 8
%63 = call i32 @X509_free(ptr noundef %62)
%64 = load ptr, ptr %9, align 8
%65 = call i32 @SSL_CTX_free(ptr noundef %64)
ret i32 0
}
declare i32 @OpenSSL_add_all_algorithms(...) #1
declare i32 @ERR_load_BIO_strings(...) #1
declare i32 @ERR_load_crypto_strings(...) #1
declare i32 @SSL_load_error_strings(...) #1
declare ptr @BIO_new(i32 noundef) #1
declare i32 @BIO_s_file(...) #1
declare ptr @BIO_new_file(ptr noundef, ptr noundef) #1
declare i64 @SSL_library_init(...) #1
declare i32 @raise(i32 noundef) #1
declare ptr @SSLv23_client_method(...) #1
declare ptr @SSL_CTX_new(ptr noundef) #1
declare i32 @SSL_CTX_set_options(ptr noundef, i32 noundef) #1
declare ptr @SSL_new(ptr noundef) #1
declare i32 @create_socket(ptr noundef, ptr noundef) #1
declare i32 @SSL_set_fd(ptr noundef, i32 noundef) #1
declare i32 @SSL_connect(ptr noundef) #1
declare ptr @SSL_get_peer_certificate(ptr noundef) #1
declare i32 @PEM_write_bio_X509(ptr noundef, ptr noundef) #1
declare i32 @SSL_free(ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @X509_free(ptr noundef) #1
declare i32 @SSL_CTX_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/tmp0p0blv1a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"w\00", align 1
@SIGINT = dso_local global i32 0, align 4
@SSL_OP_NO_SSLv2 = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @save_ssl_certificate_at_path(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store ptr null, ptr %5, align 8
store ptr null, ptr %6, align 8
store ptr null, ptr %7, align 8
store i32 0, ptr %11, align 4
%12 = call i32 (...) @OpenSSL_add_all_algorithms()
%13 = call i32 (...) @ERR_load_BIO_strings()
%14 = call i32 (...) @ERR_load_crypto_strings()
%15 = call i32 (...) @SSL_load_error_strings()
%16 = call i32 (...) @BIO_s_file()
%17 = call ptr @BIO_new(i32 noundef %16)
store ptr %17, ptr %5, align 8
%18 = load ptr, ptr %4, align 8
%19 = call ptr @BIO_new_file(ptr noundef %18, ptr noundef @.str)
store ptr %19, ptr %6, align 8
%20 = call i64 (...) @SSL_library_init()
%21 = icmp slt i64 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %2
%23 = load i32, ptr @SIGINT, align 4
%24 = call i32 @raise(i32 noundef %23)
br label %25
25: ; preds = %22, %2
%26 = call ptr (...) @SSLv23_client_method()
store ptr %26, ptr %8, align 8
%27 = load ptr, ptr %8, align 8
%28 = call ptr @SSL_CTX_new(ptr noundef %27)
store ptr %28, ptr %9, align 8
%29 = icmp eq ptr %28, null
br i1 %29, label %30, label %33
30: ; preds = %25
%31 = load i32, ptr @SIGINT, align 4
%32 = call i32 @raise(i32 noundef %31)
br label %33
33: ; preds = %30, %25
%34 = load ptr, ptr %9, align 8
%35 = load i32, ptr @SSL_OP_NO_SSLv2, align 4
%36 = call i32 @SSL_CTX_set_options(ptr noundef %34, i32 noundef %35)
%37 = load ptr, ptr %9, align 8
%38 = call ptr @SSL_new(ptr noundef %37)
store ptr %38, ptr %10, align 8
%39 = load ptr, ptr %3, align 8
%40 = load ptr, ptr %6, align 8
%41 = call i32 @create_socket(ptr noundef %39, ptr noundef %40)
store i32 %41, ptr %11, align 4
%42 = load ptr, ptr %10, align 8
%43 = load i32, ptr %11, align 4
%44 = call i32 @SSL_set_fd(ptr noundef %42, i32 noundef %43)
%45 = load ptr, ptr %10, align 8
%46 = call i32 @SSL_connect(ptr noundef %45)
%47 = load ptr, ptr %10, align 8
%48 = call ptr @SSL_get_peer_certificate(ptr noundef %47)
store ptr %48, ptr %7, align 8
%49 = load ptr, ptr %7, align 8
%50 = icmp eq ptr %49, null
br i1 %50, label %51, label %54
51: ; preds = %33
%52 = load i32, ptr @SIGINT, align 4
%53 = call i32 @raise(i32 noundef %52)
br label %54
54: ; preds = %51, %33
%55 = load ptr, ptr %6, align 8
%56 = load ptr, ptr %7, align 8
%57 = call i32 @PEM_write_bio_X509(ptr noundef %55, ptr noundef %56)
%58 = load ptr, ptr %10, align 8
%59 = call i32 @SSL_free(ptr noundef %58)
%60 = load i32, ptr %11, align 4
%61 = call i32 @close(i32 noundef %60)
%62 = load ptr, ptr %7, align 8
%63 = call i32 @X509_free(ptr noundef %62)
%64 = load ptr, ptr %9, align 8
%65 = call i32 @SSL_CTX_free(ptr noundef %64)
ret i32 0
}
declare i32 @OpenSSL_add_all_algorithms(...) #1
declare i32 @ERR_load_BIO_strings(...) #1
declare i32 @ERR_load_crypto_strings(...) #1
declare i32 @SSL_load_error_strings(...) #1
declare ptr @BIO_new(i32 noundef) #1
declare i32 @BIO_s_file(...) #1
declare ptr @BIO_new_file(ptr noundef, ptr noundef) #1
declare i64 @SSL_library_init(...) #1
declare i32 @raise(i32 noundef) #1
declare ptr @SSLv23_client_method(...) #1
declare ptr @SSL_CTX_new(ptr noundef) #1
declare i32 @SSL_CTX_set_options(ptr noundef, i32 noundef) #1
declare ptr @SSL_new(ptr noundef) #1
declare i32 @create_socket(ptr noundef, ptr noundef) #1
declare i32 @SSL_set_fd(ptr noundef, i32 noundef) #1
declare i32 @SSL_connect(ptr noundef) #1
declare ptr @SSL_get_peer_certificate(ptr noundef) #1
declare i32 @PEM_write_bio_X509(ptr noundef, ptr noundef) #1
declare i32 @SSL_free(ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @X509_free(ptr noundef) #1
declare i32 @SSL_CTX_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/tmp6ov3pu9c.c'
source_filename = "/tmp/tmp6ov3pu9c.c"
target datalayout = "e-m:e-p270: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/tmp6ov3pu9c.c"
target datalayout = "e-m:e-p270: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/tmpx97y1uim.c'
source_filename = "/tmp/tmpx97y1uim.c"
target datalayout = "e-m:e-p270: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/tmpx97y1uim.c"
target datalayout = "e-m:e-p270: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/tmp1vu0b3rm.c'
source_filename = "/tmp/tmp1vu0b3rm.c"
target datalayout = "e-m:e-p270: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/tmp1vu0b3rm.c"
target datalayout = "e-m:e-p270: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/tmprn1xsahs.c'
source_filename = "/tmp/tmprn1xsahs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [38 x i8] c"The arc cosine of %lf is %lf degrees\0A\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c"The arc sine of %lf is %lf degrees\0A\00", align 1
@.str.2 = private unnamed_addr constant [39 x i8] c"The arc tangent of %lf is %lf degrees\0A\00", align 1
@.str.3 = private unnamed_addr constant [37 x i8] c"The arc tangent of x = %lf, y = %lf \00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"is %lf degrees\0A\00", align 1
@.str.5 = private unnamed_addr constant [34 x i8] c"The cosine of %lf is %lf degrees\0A\00", align 1
@.str.6 = private unnamed_addr constant [37 x i8] c"The hyperbolic cosine of %lf is %lf\0A\00", align 1
@.str.7 = private unnamed_addr constant [32 x i8] c"The sine of %lf is %lf degrees\0A\00", align 1
@.str.8 = private unnamed_addr constant [43 x i8] c"The hyperbolic sine of %lf is %lf degrees\0A\00", align 1
@.str.9 = private unnamed_addr constant [46 x i8] c"The hyperbolic tangent of %lf is %lf degrees\0A\00", align 1
@.str.10 = private unnamed_addr constant [37 x i8] c"The exponential value of %lf is %lf\0A\00", align 1
@.str.11 = private unnamed_addr constant [26 x i8] c"x = %.2lf = %.2lf * 2^%d\0A\00", align 1
@.str.12 = private unnamed_addr constant [16 x i8] c"%f * 2^%d = %f\0A\00", align 1
@.str.13 = private unnamed_addr constant [16 x i8] c"log(%lf) = %lf\0A\00", align 1
@.str.14 = private unnamed_addr constant [18 x i8] c"log10(%lf) = %lf\0A\00", align 1
@.str.15 = private unnamed_addr constant [21 x i8] c"Integral part = %lf\0A\00", align 1
@.str.16 = private unnamed_addr constant [22 x i8] c"Fraction Part = %lf \0A\00", align 1
@.str.17 = private unnamed_addr constant [21 x i8] c"Value 8.0 ^ 3 = %lf\0A\00", align 1
@.str.18 = private unnamed_addr constant [25 x i8] c"Value 3.05 ^ 1.98 = %lf\0A\00", align 1
@.str.19 = private unnamed_addr constant [27 x i8] c"Square root of %lf is %lf\0A\00", align 1
@.str.20 = private unnamed_addr constant [16 x i8] c"value1 = %.1lf\0A\00", align 1
@.str.21 = private unnamed_addr constant [16 x i8] c"value2 = %.1lf\0A\00", align 1
@.str.22 = private unnamed_addr constant [16 x i8] c"value3 = %.1lf\0A\00", align 1
@.str.23 = private unnamed_addr constant [16 x i8] c"value4 = %.1lf\0A\00", align 1
@.str.24 = private unnamed_addr constant [34 x i8] c"The absolute value of %lf is %lf\0A\00", align 1
@.str.25 = private unnamed_addr constant [16 x i8] c"Value1 = %.1lf\0A\00", align 1
@.str.26 = private unnamed_addr constant [16 x i8] c"Value2 = %.1lf\0A\00", align 1
@.str.27 = private unnamed_addr constant [16 x i8] c"Value3 = %.1lf\0A\00", align 1
@.str.28 = private unnamed_addr constant [16 x i8] c"Value4 = %.1lf\0A\00", align 1
@.str.29 = private unnamed_addr constant [29 x i8] c"Remainder of %f / %d is %lf\0A\00", align 1
@.str.30 = private unnamed_addr constant [29 x i8] c"Remainder of %f / %f is %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 double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca float, align 4
%12 = alloca float, align 4
%13 = alloca float, align 4
%14 = alloca float, align 4
%15 = alloca float, align 4
%16 = alloca float, align 4
%17 = alloca i32, align 4
store i32 0, ptr %1, align 4
store double 9.000000e-01, ptr %2, align 8
store double 0x404CA5DC1AF05A77, ptr %5, align 8
%18 = load double, ptr %2, align 8
%19 = call double @acos(double noundef %18) #3
%20 = load double, ptr %5, align 8
%21 = fmul double %19, %20
store double %21, ptr %4, align 8
%22 = load double, ptr %2, align 8
%23 = fptrunc double %22 to float
%24 = load double, ptr %4, align 8
%25 = call i32 (ptr, float, ...) @printf(ptr noundef @.str, float noundef %23, double noundef %24)
%26 = load double, ptr %2, align 8
%27 = call double @asin(double noundef %26) #3
%28 = load double, ptr %5, align 8
%29 = fmul double %27, %28
store double %29, ptr %4, align 8
%30 = load double, ptr %2, align 8
%31 = fptrunc double %30 to float
%32 = load double, ptr %4, align 8
%33 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.1, float noundef %31, double noundef %32)
store double 1.000000e+00, ptr %2, align 8
store double 0x404CA5DC1AF05A77, ptr %5, align 8
%34 = load double, ptr %2, align 8
%35 = call double @atan(double noundef %34) #3
%36 = load double, ptr %5, align 8
%37 = fmul double %35, %36
store double %37, ptr %4, align 8
%38 = load double, ptr %2, align 8
%39 = fptrunc double %38 to float
%40 = load double, ptr %4, align 8
%41 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.2, float noundef %39, double noundef %40)
store double -7.000000e+00, ptr %2, align 8
store double 7.000000e+00, ptr %3, align 8
store double 0x404CA5DC1AF05A77, ptr %5, align 8
%42 = load double, ptr %3, align 8
%43 = load double, ptr %2, align 8
%44 = call double @atan2(double noundef %42, double noundef %43) #3
%45 = load double, ptr %5, align 8
%46 = fmul double %44, %45
store double %46, ptr %4, align 8
%47 = load double, ptr %2, align 8
%48 = fptrunc double %47 to float
%49 = load double, ptr %3, align 8
%50 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.3, float noundef %48, double noundef %49)
%51 = load double, ptr %4, align 8
%52 = fptrunc double %51 to float
%53 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.4, float noundef %52)
store double 6.000000e+01, ptr %2, align 8
store double 0x3F91DF46A1FAE712, ptr %5, align 8
%54 = load double, ptr %2, align 8
%55 = load double, ptr %5, align 8
%56 = fmul double %54, %55
%57 = call double @cos(double noundef %56) #3
store double %57, ptr %4, align 8
%58 = load double, ptr %2, align 8
%59 = fptrunc double %58 to float
%60 = load double, ptr %4, align 8
%61 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.5, float noundef %59, double noundef %60)
store double 9.000000e+01, ptr %2, align 8
store double 0x3F91DF46A1FAE712, ptr %5, align 8
%62 = load double, ptr %2, align 8
%63 = load double, ptr %5, align 8
%64 = fmul double %62, %63
%65 = call double @cos(double noundef %64) #3
store double %65, ptr %4, align 8
%66 = load double, ptr %2, align 8
%67 = fptrunc double %66 to float
%68 = load double, ptr %4, align 8
%69 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.5, float noundef %67, double noundef %68)
store double 5.000000e-01, ptr %2, align 8
%70 = load double, ptr %2, align 8
%71 = fptrunc double %70 to float
%72 = load double, ptr %2, align 8
%73 = call i32 @cosh(double noundef %72)
%74 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.6, float noundef %71, i32 noundef %73)
store double 1.000000e+00, ptr %2, align 8
%75 = load double, ptr %2, align 8
%76 = fptrunc double %75 to float
%77 = load double, ptr %2, align 8
%78 = call i32 @cosh(double noundef %77)
%79 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.6, float noundef %76, i32 noundef %78)
store double 1.500000e+00, ptr %2, align 8
%80 = load double, ptr %2, align 8
%81 = fptrunc double %80 to float
%82 = load double, ptr %2, align 8
%83 = call i32 @cosh(double noundef %82)
%84 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.6, float noundef %81, i32 noundef %83)
store double 4.500000e+01, ptr %2, align 8
store double 0x3F91DF46A1FAE712, ptr %5, align 8
%85 = load double, ptr %2, align 8
%86 = load double, ptr %5, align 8
%87 = fmul double %85, %86
%88 = call double @sin(double noundef %87) #3
store double %88, ptr %4, align 8
%89 = load double, ptr %2, align 8
%90 = fptrunc double %89 to float
%91 = load double, ptr %4, align 8
%92 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.7, float noundef %90, double noundef %91)
store double 5.000000e-01, ptr %2, align 8
%93 = load double, ptr %2, align 8
%94 = call double @sinh(double noundef %93) #3
store double %94, ptr %4, align 8
%95 = load double, ptr %2, align 8
%96 = fptrunc double %95 to float
%97 = load double, ptr %4, align 8
%98 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.8, float noundef %96, double noundef %97)
store double 5.000000e-01, ptr %2, align 8
%99 = load double, ptr %2, align 8
%100 = call double @tanh(double noundef %99) #3
store double %100, ptr %4, align 8
%101 = load double, ptr %2, align 8
%102 = fptrunc double %101 to float
%103 = load double, ptr %4, align 8
%104 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.9, float noundef %102, double noundef %103)
store double 0.000000e+00, ptr %2, align 8
%105 = load double, ptr %2, align 8
%106 = fptrunc double %105 to float
%107 = load double, ptr %2, align 8
%108 = call i32 @exp(double noundef %107)
%109 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.10, float noundef %106, i32 noundef %108)
%110 = load double, ptr %2, align 8
%111 = fadd double %110, 1.000000e+00
%112 = fptrunc double %111 to float
%113 = load double, ptr %2, align 8
%114 = fadd double %113, 1.000000e+00
%115 = call i32 @exp(double noundef %114)
%116 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.10, float noundef %112, i32 noundef %115)
%117 = load double, ptr %2, align 8
%118 = fadd double %117, 2.000000e+00
%119 = fptrunc double %118 to float
%120 = load double, ptr %2, align 8
%121 = fadd double %120, 2.000000e+00
%122 = call i32 @exp(double noundef %121)
%123 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.10, float noundef %119, i32 noundef %122)
store double 1.024000e+03, ptr %2, align 8
%124 = load double, ptr %2, align 8
%125 = call double @frexp(double noundef %124, ptr noundef %7) #3
store double %125, ptr %6, align 8
%126 = load double, ptr %2, align 8
%127 = fptrunc double %126 to float
%128 = load double, ptr %6, align 8
%129 = load i32, ptr %7, align 4
%130 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.11, float noundef %127, double noundef %128, i32 noundef %129)
store double 6.500000e-01, ptr %2, align 8
store i32 3, ptr %8, align 4
%131 = load double, ptr %2, align 8
%132 = load i32, ptr %8, align 4
%133 = call double @ldexp(double noundef %131, i32 noundef %132) #3
store double %133, ptr %4, align 8
%134 = load double, ptr %2, align 8
%135 = fptrunc double %134 to float
%136 = load i32, ptr %8, align 4
%137 = load double, ptr %4, align 8
%138 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.12, float noundef %135, i32 noundef %136, double noundef %137)
store double 2.700000e+00, ptr %2, align 8
%139 = load double, ptr %2, align 8
%140 = call double @log(double noundef %139) #3
store double %140, ptr %4, align 8
%141 = load double, ptr %2, align 8
%142 = fptrunc double %141 to float
%143 = load double, ptr %4, align 8
%144 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.13, float noundef %142, double noundef %143)
store double 1.000000e+04, ptr %2, align 8
%145 = load double, ptr %2, align 8
%146 = call double @log10(double noundef %145) #3
store double %146, ptr %4, align 8
%147 = load double, ptr %2, align 8
%148 = fptrunc double %147 to float
%149 = load double, ptr %4, align 8
%150 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.14, float noundef %148, double noundef %149)
store double 0x40203F359FF4FD6D, ptr %2, align 8
%151 = load double, ptr %2, align 8
%152 = call double @modf(double noundef %151, ptr noundef %10) #3
store double %152, ptr %9, align 8
%153 = load double, ptr %10, align 8
%154 = fptrunc double %153 to float
%155 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.15, float noundef %154)
%156 = load double, ptr %9, align 8
%157 = fptrunc double %156 to float
%158 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.16, float noundef %157)
%159 = call i32 @pow(double noundef 8.000000e+00, double noundef 3.000000e+00)
%160 = sitofp i32 %159 to float
%161 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.17, float noundef %160)
%162 = call i32 @pow(double noundef 3.050000e+00, double noundef 1.980000e+00)
%163 = sitofp i32 %162 to float
%164 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.18, float noundef %163)
%165 = call i32 @sqrt(double noundef 4.000000e+00)
%166 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.19, float noundef 4.000000e+00, i32 noundef %165)
%167 = call i32 @sqrt(double noundef 5.000000e+00)
%168 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.19, float noundef 5.000000e+00, i32 noundef %167)
store float 0x3FF99999A0000000, ptr %11, align 4
store float 0x3FF3333340000000, ptr %12, align 4
store float 0x4006666660000000, ptr %13, align 4
store float 0x4002666660000000, ptr %14, align 4
%169 = load float, ptr %11, align 4
%170 = call i32 @ceil(float noundef %169)
%171 = sitofp i32 %170 to float
%172 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.20, float noundef %171)
%173 = load float, ptr %12, align 4
%174 = call i32 @ceil(float noundef %173)
%175 = sitofp i32 %174 to float
%176 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.21, float noundef %175)
%177 = load float, ptr %13, align 4
%178 = call i32 @ceil(float noundef %177)
%179 = sitofp i32 %178 to float
%180 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.22, float noundef %179)
%181 = load float, ptr %14, align 4
%182 = call i32 @ceil(float noundef %181)
%183 = sitofp i32 %182 to float
%184 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.23, float noundef %183)
store float 1.234000e+03, ptr %15, align 4
store float -3.440000e+02, ptr %16, align 4
%185 = load float, ptr %15, align 4
%186 = load float, ptr %15, align 4
%187 = call i32 @fabs(float noundef %186)
%188 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.24, float noundef %185, i32 noundef %187)
%189 = load float, ptr %16, align 4
%190 = load float, ptr %16, align 4
%191 = call i32 @fabs(float noundef %190)
%192 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.24, float noundef %189, i32 noundef %191)
store float 0x3FF99999A0000000, ptr %11, align 4
store float 0x3FF3333340000000, ptr %12, align 4
store float 0x4006666660000000, ptr %13, align 4
store float 0x4002666660000000, ptr %14, align 4
%193 = load float, ptr %11, align 4
%194 = call i32 @floor(float noundef %193)
%195 = sitofp i32 %194 to float
%196 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.25, float noundef %195)
%197 = load float, ptr %12, align 4
%198 = call i32 @floor(float noundef %197)
%199 = sitofp i32 %198 to float
%200 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.26, float noundef %199)
%201 = load float, ptr %13, align 4
%202 = call i32 @floor(float noundef %201)
%203 = sitofp i32 %202 to float
%204 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.27, float noundef %203)
%205 = load float, ptr %14, align 4
%206 = call i32 @floor(float noundef %205)
%207 = sitofp i32 %206 to float
%208 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.28, float noundef %207)
store float 0x4022666660000000, ptr %15, align 4
store float 0x400D9999A0000000, ptr %16, align 4
store i32 2, ptr %17, align 4
%209 = load float, ptr %15, align 4
%210 = load i32, ptr %17, align 4
%211 = load float, ptr %15, align 4
%212 = load i32, ptr %17, align 4
%213 = sitofp i32 %212 to float
%214 = call double @fmod(float noundef %211, float noundef %213)
%215 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.29, float noundef %209, i32 noundef %210, double noundef %214)
%216 = load float, ptr %15, align 4
%217 = load float, ptr %16, align 4
%218 = fpext float %217 to double
%219 = load float, ptr %15, align 4
%220 = load float, ptr %16, align 4
%221 = call double @fmod(float noundef %219, float noundef %220)
%222 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.30, float noundef %216, double noundef %218, double noundef %221)
ret i32 0
}
; Function Attrs: nounwind
declare double @acos(double noundef) #1
declare i32 @printf(ptr noundef, float noundef, ...) #2
; Function Attrs: nounwind
declare double @asin(double noundef) #1
; Function Attrs: nounwind
declare double @atan(double noundef) #1
; Function Attrs: nounwind
declare double @atan2(double noundef, double noundef) #1
; Function Attrs: nounwind
declare double @cos(double noundef) #1
declare i32 @cosh(double noundef) #2
; Function Attrs: nounwind
declare double @sin(double noundef) #1
; Function Attrs: nounwind
declare double @sinh(double noundef) #1
; Function Attrs: nounwind
declare double @tanh(double noundef) #1
declare i32 @exp(double noundef) #2
; Function Attrs: nounwind
declare double @frexp(double noundef, ptr noundef) #1
; Function Attrs: nounwind
declare double @ldexp(double noundef, i32 noundef) #1
; Function Attrs: nounwind
declare double @log(double noundef) #1
; Function Attrs: nounwind
declare double @log10(double noundef) #1
; Function Attrs: nounwind
declare double @modf(double noundef, ptr noundef) #1
declare i32 @pow(double noundef, double noundef) #2
declare i32 @sqrt(double noundef) #2
declare i32 @ceil(float noundef) #2
declare i32 @fabs(float noundef) #2
declare i32 @floor(float noundef) #2
declare double @fmod(float 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 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprn1xsahs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [38 x i8] c"The arc cosine of %lf is %lf degrees\0A\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c"The arc sine of %lf is %lf degrees\0A\00", align 1
@.str.2 = private unnamed_addr constant [39 x i8] c"The arc tangent of %lf is %lf degrees\0A\00", align 1
@.str.3 = private unnamed_addr constant [37 x i8] c"The arc tangent of x = %lf, y = %lf \00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"is %lf degrees\0A\00", align 1
@.str.5 = private unnamed_addr constant [34 x i8] c"The cosine of %lf is %lf degrees\0A\00", align 1
@.str.6 = private unnamed_addr constant [37 x i8] c"The hyperbolic cosine of %lf is %lf\0A\00", align 1
@.str.7 = private unnamed_addr constant [32 x i8] c"The sine of %lf is %lf degrees\0A\00", align 1
@.str.8 = private unnamed_addr constant [43 x i8] c"The hyperbolic sine of %lf is %lf degrees\0A\00", align 1
@.str.9 = private unnamed_addr constant [46 x i8] c"The hyperbolic tangent of %lf is %lf degrees\0A\00", align 1
@.str.10 = private unnamed_addr constant [37 x i8] c"The exponential value of %lf is %lf\0A\00", align 1
@.str.11 = private unnamed_addr constant [26 x i8] c"x = %.2lf = %.2lf * 2^%d\0A\00", align 1
@.str.12 = private unnamed_addr constant [16 x i8] c"%f * 2^%d = %f\0A\00", align 1
@.str.13 = private unnamed_addr constant [16 x i8] c"log(%lf) = %lf\0A\00", align 1
@.str.14 = private unnamed_addr constant [18 x i8] c"log10(%lf) = %lf\0A\00", align 1
@.str.15 = private unnamed_addr constant [21 x i8] c"Integral part = %lf\0A\00", align 1
@.str.16 = private unnamed_addr constant [22 x i8] c"Fraction Part = %lf \0A\00", align 1
@.str.17 = private unnamed_addr constant [21 x i8] c"Value 8.0 ^ 3 = %lf\0A\00", align 1
@.str.18 = private unnamed_addr constant [25 x i8] c"Value 3.05 ^ 1.98 = %lf\0A\00", align 1
@.str.19 = private unnamed_addr constant [27 x i8] c"Square root of %lf is %lf\0A\00", align 1
@.str.20 = private unnamed_addr constant [16 x i8] c"value1 = %.1lf\0A\00", align 1
@.str.21 = private unnamed_addr constant [16 x i8] c"value2 = %.1lf\0A\00", align 1
@.str.22 = private unnamed_addr constant [16 x i8] c"value3 = %.1lf\0A\00", align 1
@.str.23 = private unnamed_addr constant [16 x i8] c"value4 = %.1lf\0A\00", align 1
@.str.24 = private unnamed_addr constant [34 x i8] c"The absolute value of %lf is %lf\0A\00", align 1
@.str.25 = private unnamed_addr constant [16 x i8] c"Value1 = %.1lf\0A\00", align 1
@.str.26 = private unnamed_addr constant [16 x i8] c"Value2 = %.1lf\0A\00", align 1
@.str.27 = private unnamed_addr constant [16 x i8] c"Value3 = %.1lf\0A\00", align 1
@.str.28 = private unnamed_addr constant [16 x i8] c"Value4 = %.1lf\0A\00", align 1
@.str.29 = private unnamed_addr constant [29 x i8] c"Remainder of %f / %d is %lf\0A\00", align 1
@.str.30 = private unnamed_addr constant [29 x i8] c"Remainder of %f / %f is %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 double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca float, align 4
%12 = alloca float, align 4
%13 = alloca float, align 4
%14 = alloca float, align 4
%15 = alloca float, align 4
%16 = alloca float, align 4
%17 = alloca i32, align 4
store i32 0, ptr %1, align 4
store double 9.000000e-01, ptr %2, align 8
store double 0x404CA5DC1AF05A77, ptr %5, align 8
%18 = load double, ptr %2, align 8
%19 = call double @acos(double noundef %18) #3
%20 = load double, ptr %5, align 8
%21 = fmul double %19, %20
store double %21, ptr %4, align 8
%22 = load double, ptr %2, align 8
%23 = fptrunc double %22 to float
%24 = load double, ptr %4, align 8
%25 = call i32 (ptr, float, ...) @printf(ptr noundef @.str, float noundef %23, double noundef %24)
%26 = load double, ptr %2, align 8
%27 = call double @asin(double noundef %26) #3
%28 = load double, ptr %5, align 8
%29 = fmul double %27, %28
store double %29, ptr %4, align 8
%30 = load double, ptr %2, align 8
%31 = fptrunc double %30 to float
%32 = load double, ptr %4, align 8
%33 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.1, float noundef %31, double noundef %32)
store double 1.000000e+00, ptr %2, align 8
store double 0x404CA5DC1AF05A77, ptr %5, align 8
%34 = load double, ptr %2, align 8
%35 = call double @atan(double noundef %34) #3
%36 = load double, ptr %5, align 8
%37 = fmul double %35, %36
store double %37, ptr %4, align 8
%38 = load double, ptr %2, align 8
%39 = fptrunc double %38 to float
%40 = load double, ptr %4, align 8
%41 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.2, float noundef %39, double noundef %40)
store double -7.000000e+00, ptr %2, align 8
store double 7.000000e+00, ptr %3, align 8
store double 0x404CA5DC1AF05A77, ptr %5, align 8
%42 = load double, ptr %3, align 8
%43 = load double, ptr %2, align 8
%44 = call double @atan2(double noundef %42, double noundef %43) #3
%45 = load double, ptr %5, align 8
%46 = fmul double %44, %45
store double %46, ptr %4, align 8
%47 = load double, ptr %2, align 8
%48 = fptrunc double %47 to float
%49 = load double, ptr %3, align 8
%50 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.3, float noundef %48, double noundef %49)
%51 = load double, ptr %4, align 8
%52 = fptrunc double %51 to float
%53 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.4, float noundef %52)
store double 6.000000e+01, ptr %2, align 8
store double 0x3F91DF46A1FAE712, ptr %5, align 8
%54 = load double, ptr %2, align 8
%55 = load double, ptr %5, align 8
%56 = fmul double %54, %55
%57 = call double @cos(double noundef %56) #3
store double %57, ptr %4, align 8
%58 = load double, ptr %2, align 8
%59 = fptrunc double %58 to float
%60 = load double, ptr %4, align 8
%61 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.5, float noundef %59, double noundef %60)
store double 9.000000e+01, ptr %2, align 8
store double 0x3F91DF46A1FAE712, ptr %5, align 8
%62 = load double, ptr %2, align 8
%63 = load double, ptr %5, align 8
%64 = fmul double %62, %63
%65 = call double @cos(double noundef %64) #3
store double %65, ptr %4, align 8
%66 = load double, ptr %2, align 8
%67 = fptrunc double %66 to float
%68 = load double, ptr %4, align 8
%69 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.5, float noundef %67, double noundef %68)
store double 5.000000e-01, ptr %2, align 8
%70 = load double, ptr %2, align 8
%71 = fptrunc double %70 to float
%72 = load double, ptr %2, align 8
%73 = call i32 @cosh(double noundef %72)
%74 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.6, float noundef %71, i32 noundef %73)
store double 1.000000e+00, ptr %2, align 8
%75 = load double, ptr %2, align 8
%76 = fptrunc double %75 to float
%77 = load double, ptr %2, align 8
%78 = call i32 @cosh(double noundef %77)
%79 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.6, float noundef %76, i32 noundef %78)
store double 1.500000e+00, ptr %2, align 8
%80 = load double, ptr %2, align 8
%81 = fptrunc double %80 to float
%82 = load double, ptr %2, align 8
%83 = call i32 @cosh(double noundef %82)
%84 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.6, float noundef %81, i32 noundef %83)
store double 4.500000e+01, ptr %2, align 8
store double 0x3F91DF46A1FAE712, ptr %5, align 8
%85 = load double, ptr %2, align 8
%86 = load double, ptr %5, align 8
%87 = fmul double %85, %86
%88 = call double @sin(double noundef %87) #3
store double %88, ptr %4, align 8
%89 = load double, ptr %2, align 8
%90 = fptrunc double %89 to float
%91 = load double, ptr %4, align 8
%92 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.7, float noundef %90, double noundef %91)
store double 5.000000e-01, ptr %2, align 8
%93 = load double, ptr %2, align 8
%94 = call double @sinh(double noundef %93) #3
store double %94, ptr %4, align 8
%95 = load double, ptr %2, align 8
%96 = fptrunc double %95 to float
%97 = load double, ptr %4, align 8
%98 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.8, float noundef %96, double noundef %97)
store double 5.000000e-01, ptr %2, align 8
%99 = load double, ptr %2, align 8
%100 = call double @tanh(double noundef %99) #3
store double %100, ptr %4, align 8
%101 = load double, ptr %2, align 8
%102 = fptrunc double %101 to float
%103 = load double, ptr %4, align 8
%104 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.9, float noundef %102, double noundef %103)
store double 0.000000e+00, ptr %2, align 8
%105 = load double, ptr %2, align 8
%106 = fptrunc double %105 to float
%107 = load double, ptr %2, align 8
%108 = call i32 @exp(double noundef %107)
%109 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.10, float noundef %106, i32 noundef %108)
%110 = load double, ptr %2, align 8
%111 = fadd double %110, 1.000000e+00
%112 = fptrunc double %111 to float
%113 = load double, ptr %2, align 8
%114 = fadd double %113, 1.000000e+00
%115 = call i32 @exp(double noundef %114)
%116 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.10, float noundef %112, i32 noundef %115)
%117 = load double, ptr %2, align 8
%118 = fadd double %117, 2.000000e+00
%119 = fptrunc double %118 to float
%120 = load double, ptr %2, align 8
%121 = fadd double %120, 2.000000e+00
%122 = call i32 @exp(double noundef %121)
%123 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.10, float noundef %119, i32 noundef %122)
store double 1.024000e+03, ptr %2, align 8
%124 = load double, ptr %2, align 8
%125 = call double @frexp(double noundef %124, ptr noundef %7) #3
store double %125, ptr %6, align 8
%126 = load double, ptr %2, align 8
%127 = fptrunc double %126 to float
%128 = load double, ptr %6, align 8
%129 = load i32, ptr %7, align 4
%130 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.11, float noundef %127, double noundef %128, i32 noundef %129)
store double 6.500000e-01, ptr %2, align 8
store i32 3, ptr %8, align 4
%131 = load double, ptr %2, align 8
%132 = load i32, ptr %8, align 4
%133 = call double @ldexp(double noundef %131, i32 noundef %132) #3
store double %133, ptr %4, align 8
%134 = load double, ptr %2, align 8
%135 = fptrunc double %134 to float
%136 = load i32, ptr %8, align 4
%137 = load double, ptr %4, align 8
%138 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.12, float noundef %135, i32 noundef %136, double noundef %137)
store double 2.700000e+00, ptr %2, align 8
%139 = load double, ptr %2, align 8
%140 = call double @log(double noundef %139) #3
store double %140, ptr %4, align 8
%141 = load double, ptr %2, align 8
%142 = fptrunc double %141 to float
%143 = load double, ptr %4, align 8
%144 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.13, float noundef %142, double noundef %143)
store double 1.000000e+04, ptr %2, align 8
%145 = load double, ptr %2, align 8
%146 = call double @log10(double noundef %145) #3
store double %146, ptr %4, align 8
%147 = load double, ptr %2, align 8
%148 = fptrunc double %147 to float
%149 = load double, ptr %4, align 8
%150 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.14, float noundef %148, double noundef %149)
store double 0x40203F359FF4FD6D, ptr %2, align 8
%151 = load double, ptr %2, align 8
%152 = call double @modf(double noundef %151, ptr noundef %10) #3
store double %152, ptr %9, align 8
%153 = load double, ptr %10, align 8
%154 = fptrunc double %153 to float
%155 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.15, float noundef %154)
%156 = load double, ptr %9, align 8
%157 = fptrunc double %156 to float
%158 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.16, float noundef %157)
%159 = call i32 @pow(double noundef 8.000000e+00, double noundef 3.000000e+00)
%160 = sitofp i32 %159 to float
%161 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.17, float noundef %160)
%162 = call i32 @pow(double noundef 3.050000e+00, double noundef 1.980000e+00)
%163 = sitofp i32 %162 to float
%164 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.18, float noundef %163)
%165 = call i32 @sqrt(double noundef 4.000000e+00)
%166 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.19, float noundef 4.000000e+00, i32 noundef %165)
%167 = call i32 @sqrt(double noundef 5.000000e+00)
%168 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.19, float noundef 5.000000e+00, i32 noundef %167)
store float 0x3FF99999A0000000, ptr %11, align 4
store float 0x3FF3333340000000, ptr %12, align 4
store float 0x4006666660000000, ptr %13, align 4
store float 0x4002666660000000, ptr %14, align 4
%169 = load float, ptr %11, align 4
%170 = call i32 @ceil(float noundef %169)
%171 = sitofp i32 %170 to float
%172 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.20, float noundef %171)
%173 = load float, ptr %12, align 4
%174 = call i32 @ceil(float noundef %173)
%175 = sitofp i32 %174 to float
%176 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.21, float noundef %175)
%177 = load float, ptr %13, align 4
%178 = call i32 @ceil(float noundef %177)
%179 = sitofp i32 %178 to float
%180 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.22, float noundef %179)
%181 = load float, ptr %14, align 4
%182 = call i32 @ceil(float noundef %181)
%183 = sitofp i32 %182 to float
%184 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.23, float noundef %183)
store float 1.234000e+03, ptr %15, align 4
store float -3.440000e+02, ptr %16, align 4
%185 = load float, ptr %15, align 4
%186 = load float, ptr %15, align 4
%187 = call i32 @fabs(float noundef %186)
%188 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.24, float noundef %185, i32 noundef %187)
%189 = load float, ptr %16, align 4
%190 = load float, ptr %16, align 4
%191 = call i32 @fabs(float noundef %190)
%192 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.24, float noundef %189, i32 noundef %191)
store float 0x3FF99999A0000000, ptr %11, align 4
store float 0x3FF3333340000000, ptr %12, align 4
store float 0x4006666660000000, ptr %13, align 4
store float 0x4002666660000000, ptr %14, align 4
%193 = load float, ptr %11, align 4
%194 = call i32 @floor(float noundef %193)
%195 = sitofp i32 %194 to float
%196 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.25, float noundef %195)
%197 = load float, ptr %12, align 4
%198 = call i32 @floor(float noundef %197)
%199 = sitofp i32 %198 to float
%200 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.26, float noundef %199)
%201 = load float, ptr %13, align 4
%202 = call i32 @floor(float noundef %201)
%203 = sitofp i32 %202 to float
%204 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.27, float noundef %203)
%205 = load float, ptr %14, align 4
%206 = call i32 @floor(float noundef %205)
%207 = sitofp i32 %206 to float
%208 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.28, float noundef %207)
store float 0x4022666660000000, ptr %15, align 4
store float 0x400D9999A0000000, ptr %16, align 4
store i32 2, ptr %17, align 4
%209 = load float, ptr %15, align 4
%210 = load i32, ptr %17, align 4
%211 = load float, ptr %15, align 4
%212 = load i32, ptr %17, align 4
%213 = sitofp i32 %212 to float
%214 = call double @fmod(float noundef %211, float noundef %213)
%215 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.29, float noundef %209, i32 noundef %210, double noundef %214)
%216 = load float, ptr %15, align 4
%217 = load float, ptr %16, align 4
%218 = fpext float %217 to double
%219 = load float, ptr %15, align 4
%220 = load float, ptr %16, align 4
%221 = call double @fmod(float noundef %219, float noundef %220)
%222 = call i32 (ptr, float, ...) @printf(ptr noundef @.str.30, float noundef %216, double noundef %218, double noundef %221)
ret i32 0
}
; Function Attrs: nounwind
declare double @acos(double noundef) #1
declare i32 @printf(ptr noundef, float noundef, ...) #2
; Function Attrs: nounwind
declare double @asin(double noundef) #1
; Function Attrs: nounwind
declare double @atan(double noundef) #1
; Function Attrs: nounwind
declare double @atan2(double noundef, double noundef) #1
; Function Attrs: nounwind
declare double @cos(double noundef) #1
declare i32 @cosh(double noundef) #2
; Function Attrs: nounwind
declare double @sin(double noundef) #1
; Function Attrs: nounwind
declare double @sinh(double noundef) #1
; Function Attrs: nounwind
declare double @tanh(double noundef) #1
declare i32 @exp(double noundef) #2
; Function Attrs: nounwind
declare double @frexp(double noundef, ptr noundef) #1
; Function Attrs: nounwind
declare double @ldexp(double noundef, i32 noundef) #1
; Function Attrs: nounwind
declare double @log(double noundef) #1
; Function Attrs: nounwind
declare double @log10(double noundef) #1
; Function Attrs: nounwind
declare double @modf(double noundef, ptr noundef) #1
declare i32 @pow(double noundef, double noundef) #2
declare i32 @sqrt(double noundef) #2
declare i32 @ceil(float noundef) #2
declare i32 @fabs(float noundef) #2
declare i32 @floor(float noundef) #2
declare double @fmod(float 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 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8j9nmrxu.c'
source_filename = "/tmp/tmp8j9nmrxu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
@SIG_BLOCK = dso_local global i32 0, align 4
@SIG_SETMASK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @htx_free(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%8 = call i32 @sigemptyset(ptr noundef %4)
%9 = call i32 @sigfillset(ptr noundef %3)
%10 = load i32, ptr @errno, align 4
store i32 %10, ptr %7, align 4
%11 = load i32, ptr @SIG_BLOCK, align 4
%12 = call i32 @sigprocmask(i32 noundef %11, ptr noundef %3, ptr noundef %4)
store i32 %12, ptr %5, align 4
%13 = load i32, ptr %5, align 4
%14 = icmp eq i32 %13, -1
br i1 %14, label %15, label %17
15: ; preds = %1
%16 = load i32, ptr %7, align 4
store i32 %16, ptr @errno, align 4
store i32 1, ptr %6, align 4
br label %17
17: ; preds = %15, %1
%18 = load ptr, ptr %2, align 8
%19 = call i32 @free(ptr noundef %18)
%20 = load i32, ptr %6, align 4
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %31
22: ; preds = %17
%23 = load i32, ptr @errno, align 4
store i32 %23, ptr %7, align 4
%24 = load i32, ptr @SIG_SETMASK, align 4
%25 = call i32 @sigprocmask(i32 noundef %24, ptr noundef %4, ptr noundef null)
store i32 %25, ptr %5, align 4
%26 = load i32, ptr %5, align 4
%27 = icmp eq i32 %26, -1
br i1 %27, label %28, label %30
28: ; preds = %22
%29 = load i32, ptr %7, align 4
store i32 %29, ptr @errno, align 4
br label %30
30: ; preds = %28, %22
br label %31
31: ; preds = %30, %17
ret void
}
declare i32 @sigemptyset(ptr noundef) #1
declare i32 @sigfillset(ptr noundef) #1
declare i32 @sigprocmask(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8j9nmrxu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
@SIG_BLOCK = dso_local global i32 0, align 4
@SIG_SETMASK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @htx_free(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%8 = call i32 @sigemptyset(ptr noundef %4)
%9 = call i32 @sigfillset(ptr noundef %3)
%10 = load i32, ptr @errno, align 4
store i32 %10, ptr %7, align 4
%11 = load i32, ptr @SIG_BLOCK, align 4
%12 = call i32 @sigprocmask(i32 noundef %11, ptr noundef %3, ptr noundef %4)
store i32 %12, ptr %5, align 4
%13 = load i32, ptr %5, align 4
%14 = icmp eq i32 %13, -1
br i1 %14, label %15, label %17
15: ; preds = %1
%16 = load i32, ptr %7, align 4
store i32 %16, ptr @errno, align 4
store i32 1, ptr %6, align 4
br label %17
17: ; preds = %15, %1
%18 = load ptr, ptr %2, align 8
%19 = call i32 @free(ptr noundef %18)
%20 = load i32, ptr %6, align 4
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %31
22: ; preds = %17
%23 = load i32, ptr @errno, align 4
store i32 %23, ptr %7, align 4
%24 = load i32, ptr @SIG_SETMASK, align 4
%25 = call i32 @sigprocmask(i32 noundef %24, ptr noundef %4, ptr noundef null)
store i32 %25, ptr %5, align 4
%26 = load i32, ptr %5, align 4
%27 = icmp eq i32 %26, -1
br i1 %27, label %28, label %30
28: ; preds = %22
%29 = load i32, ptr %7, align 4
store i32 %29, ptr @errno, align 4
br label %30
30: ; preds = %28, %22
br label %31
31: ; preds = %30, %17
ret void
}
declare i32 @sigemptyset(ptr noundef) #1
declare i32 @sigfillset(ptr noundef) #1
declare i32 @sigprocmask(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpouuaelus.c'
source_filename = "/tmp/tmpouuaelus.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @memcpy(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
store i32 0, ptr %7, align 4
br label %8
8: ; preds = %23, %3
%9 = load i32, ptr %7, align 4
%10 = zext i32 %9 to i64
%11 = load i64, ptr %6, align 8
%12 = icmp ult i64 %10, %11
br i1 %12, label %13, label %26
13: ; preds = %8
%14 = load ptr, ptr %5, align 8
%15 = load i32, ptr %7, align 4
%16 = zext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i8, ptr %17, align 1
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %7, align 4
%21 = zext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
store i8 %18, ptr %22, align 1
br label %23
23: ; preds = %13
%24 = load i32, ptr %7, align 4
%25 = add i32 %24, 1
store i32 %25, ptr %7, align 4
br label %8, !llvm.loop !6
26: ; preds = %8
%27 = load ptr, ptr %4, align 8
ret ptr %27
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpouuaelus.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @memcpy(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
store i32 0, ptr %7, align 4
%8 = load i32, ptr %7, align 4
%9 = zext i32 %8 to i64
%10 = load i64, ptr %6, align 8
%11 = icmp ult i64 %9, %10
br i1 %11, label %.lr.ph, label %29
.lr.ph: ; preds = %3
br label %12
12: ; preds = %.lr.ph, %22
%13 = load ptr, ptr %5, align 8
%14 = load i32, ptr %7, align 4
%15 = zext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i8, ptr %16, align 1
%18 = load ptr, ptr %4, align 8
%19 = load i32, ptr %7, align 4
%20 = zext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
store i8 %17, ptr %21, align 1
br label %22
22: ; preds = %12
%23 = load i32, ptr %7, align 4
%24 = add i32 %23, 1
store i32 %24, ptr %7, align 4
%25 = load i32, ptr %7, align 4
%26 = zext i32 %25 to i64
%27 = load i64, ptr %6, align 8
%28 = icmp ult i64 %26, %27
br i1 %28, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %29
29: ; preds = %._crit_edge, %3
%30 = load ptr, ptr %4, align 8
ret ptr %30
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.