llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmpifnjlno9.c'
source_filename = "/tmp/tmpifnjlno9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lld\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"yes\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"no\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i64, align 8
store i32 0, ptr %1, align 4
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%5 = load i64, ptr %3, align 8
%6 = srem i64 %5, 2
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %25
8: ; preds = %0
%9 = load i64, ptr %3, align 8
%10 = srem i64 %9, 3
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %8
%13 = call i32 @printf(ptr noundef @.str.1)
br label %24
14: ; preds = %8
%15 = load i64, ptr %3, align 8
%16 = sub nsw i64 %15, 7
%17 = srem i64 %16, 6
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %14
%20 = call i32 @printf(ptr noundef @.str.1)
br label %23
21: ; preds = %14
%22 = call i32 @printf(ptr noundef @.str.2)
br label %23
23: ; preds = %21, %19
br label %24
24: ; preds = %23, %12
br label %34
25: ; preds = %0
%26 = load i64, ptr %3, align 8
%27 = srem i64 %26, 3
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %25
%30 = call i32 @printf(ptr noundef @.str.1)
br label %33
31: ; preds = %25
%32 = call i32 @printf(ptr noundef @.str.2)
br label %33
33: ; preds = %31, %29
br label %34
34: ; preds = %33, %24
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpifnjlno9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lld\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"yes\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"no\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i64, align 8
store i32 0, ptr %1, align 4
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%5 = load i64, ptr %3, align 8
%6 = srem i64 %5, 2
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %25
8: ; preds = %0
%9 = load i64, ptr %3, align 8
%10 = srem i64 %9, 3
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %8
%13 = call i32 @printf(ptr noundef @.str.1)
br label %24
14: ; preds = %8
%15 = load i64, ptr %3, align 8
%16 = sub nsw i64 %15, 7
%17 = srem i64 %16, 6
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %14
%20 = call i32 @printf(ptr noundef @.str.1)
br label %23
21: ; preds = %14
%22 = call i32 @printf(ptr noundef @.str.2)
br label %23
23: ; preds = %21, %19
br label %24
24: ; preds = %23, %12
br label %34
25: ; preds = %0
%26 = load i64, ptr %3, align 8
%27 = srem i64 %26, 3
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %25
%30 = call i32 @printf(ptr noundef @.str.1)
br label %33
31: ; preds = %25
%32 = call i32 @printf(ptr noundef @.str.2)
br label %33
33: ; preds = %31, %29
br label %34
34: ; preds = %33, %24
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg6ub1v_1.c'
source_filename = "/tmp/tmpg6ub1v_1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"Run test program!\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"%d) %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Stop test program!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @run_test(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %20, %2
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %3, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %23
11: ; preds = %7
%12 = load i32, ptr %5, align 4
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %5, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds ptr, ptr %13, i64 %15
%17 = load ptr, ptr %16, align 8
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %12, ptr noundef %17)
%19 = call i32 @sleep(i32 noundef 10)
br label %20
20: ; preds = %11
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %5, align 4
br label %7, !llvm.loop !6
23: ; preds = %7
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg6ub1v_1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"Run test program!\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"%d) %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Stop test program!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @run_test(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %.lr.ph, label %25
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %19
%11 = load i32, ptr %5, align 4
%12 = load ptr, ptr %4, align 8
%13 = load i32, ptr %5, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds ptr, ptr %12, i64 %14
%16 = load ptr, ptr %15, align 8
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %11, ptr noundef %16)
%18 = call i32 @sleep(i32 noundef 10)
br label %19
19: ; preds = %10
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %5, align 4
%22 = load i32, ptr %5, align 4
%23 = load i32, ptr %3, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %25
25: ; preds = %._crit_edge, %2
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp4ojn4hnh.c'
source_filename = "/tmp/tmp4ojn4hnh.c"
target datalayout = "e-m:e-p270: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/tmp4ojn4hnh.c"
target datalayout = "e-m:e-p270: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/tmp8bvs7cwq.c'
source_filename = "/tmp/tmp8bvs7cwq.c"
target datalayout = "e-m:e-p270: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/tmp8bvs7cwq.c"
target datalayout = "e-m:e-p270: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/tmp86nzu6hz.c'
source_filename = "/tmp/tmp86nzu6hz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [60 x i8] c"failed to allocate memory for %d items of %d bytes for %s!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @calloc_or_die(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%8 = load i64, ptr %5, align 8
%9 = load i64, ptr %6, align 8
%10 = call ptr @calloc(i64 noundef %8, i64 noundef %9) #4
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 %22
13: ; preds = %3
%14 = load i32, ptr @stdout, align 4
%15 = load i64, ptr %5, align 8
%16 = trunc i64 %15 to i32
%17 = load i64, ptr %6, align 8
%18 = trunc i64 %17 to i32
%19 = load ptr, ptr %4, align 8
%20 = call i32 @fprintf(i32 noundef %14, ptr noundef @.str, i32 noundef %16, i32 noundef %18, ptr noundef %19)
%21 = call i32 @exit(i32 noundef 2) #5
unreachable
22: ; preds = %3
%23 = load ptr, ptr %7, align 8
ret ptr %23
}
; Function Attrs: allocsize(0,1)
declare ptr @calloc(i64 noundef, i64 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { allocsize(0,1) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-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 = { allocsize(0,1) }
attributes #5 = { 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/tmp86nzu6hz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [60 x i8] c"failed to allocate memory for %d items of %d bytes for %s!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @calloc_or_die(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%8 = load i64, ptr %5, align 8
%9 = load i64, ptr %6, align 8
%10 = call ptr @calloc(i64 noundef %8, i64 noundef %9) #4
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 %22
13: ; preds = %3
%14 = load i32, ptr @stdout, align 4
%15 = load i64, ptr %5, align 8
%16 = trunc i64 %15 to i32
%17 = load i64, ptr %6, align 8
%18 = trunc i64 %17 to i32
%19 = load ptr, ptr %4, align 8
%20 = call i32 @fprintf(i32 noundef %14, ptr noundef @.str, i32 noundef %16, i32 noundef %18, ptr noundef %19)
%21 = call i32 @exit(i32 noundef 2) #5
unreachable
22: ; preds = %3
%23 = load ptr, ptr %7, align 8
ret ptr %23
}
; Function Attrs: allocsize(0,1)
declare ptr @calloc(i64 noundef, i64 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { allocsize(0,1) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-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 = { allocsize(0,1) }
attributes #5 = { 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/tmpfb8a0moj.c'
source_filename = "/tmp/tmpfb8a0moj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__assert(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
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call i32 @__assert_fail(ptr noundef %7, ptr noundef %8, i32 noundef %9, ptr noundef null)
ret void
}
declare i32 @__assert_fail(ptr 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfb8a0moj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__assert(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
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call i32 @__assert_fail(ptr noundef %7, ptr noundef %8, i32 noundef %9, ptr noundef null)
ret void
}
declare i32 @__assert_fail(ptr 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"}
|
; ModuleID = '/tmp/tmpykd3oxyf.c'
source_filename = "/tmp/tmpykd3oxyf.c"
target datalayout = "e-m:e-p270: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/tmpykd3oxyf.c"
target datalayout = "e-m:e-p270: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/tmpiexyoubi.c'
source_filename = "/tmp/tmpiexyoubi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getNext(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %5, ptr noundef %6)
%8 = load ptr, ptr %3, align 8
%9 = load i32, ptr %8, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %15, label %11
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = load i32, ptr %12, align 4
%14 = icmp ne i32 %13, 0
br label %15
15: ; preds = %11, %2
%16 = phi i1 [ true, %2 ], [ %14, %11 ]
%17 = zext i1 %16 to i32
ret i32 %17
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpiexyoubi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getNext(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %5, ptr noundef %6)
%8 = load ptr, ptr %3, align 8
%9 = load i32, ptr %8, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %15, label %11
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = load i32, ptr %12, align 4
%14 = icmp ne i32 %13, 0
br label %15
15: ; preds = %11, %2
%16 = phi i1 [ true, %2 ], [ %14, %11 ]
%17 = zext i1 %16 to i32
ret i32 %17
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpixnc2iao.c'
source_filename = "/tmp/tmpixnc2iao.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @is_positive_number(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 0, ptr %2, align 4
br label %28
8: ; preds = %1
store i32 0, ptr %4, align 4
br label %9
9: ; preds = %24, %8
%10 = load i32, ptr %4, align 4
%11 = load ptr, ptr %3, align 8
%12 = call i32 @strlen(ptr noundef %11)
%13 = icmp slt i32 %10, %12
br i1 %13, label %14, label %27
14: ; preds = %9
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %4, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
%19 = load i8, ptr %18, align 1
%20 = call i64 @isdigit(i8 noundef zeroext %19)
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %14
store i32 0, ptr %2, align 4
br label %28
23: ; preds = %14
br label %24
24: ; preds = %23
%25 = load i32, ptr %4, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %4, align 4
br label %9, !llvm.loop !6
27: ; preds = %9
store i32 1, ptr %2, align 4
br label %28
28: ; preds = %27, %22, %7
%29 = load i32, ptr %2, align 4
ret i32 %29
}
declare i32 @strlen(ptr noundef) #1
declare i64 @isdigit(i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpixnc2iao.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @is_positive_number(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 0, ptr %2, align 4
br label %31
8: ; preds = %1
store i32 0, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = load ptr, ptr %3, align 8
%11 = call i32 @strlen(ptr noundef %10)
%12 = icmp slt i32 %9, %11
br i1 %12, label %.lr.ph, label %30
.lr.ph: ; preds = %8
br label %13
13: ; preds = %.lr.ph, %23
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %4, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i8, ptr %17, align 1
%19 = call i64 @isdigit(i8 noundef zeroext %18)
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %13
store i32 0, ptr %2, align 4
br label %31
22: ; preds = %13
br label %23
23: ; preds = %22
%24 = load i32, ptr %4, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %4, align 4
%26 = load i32, ptr %4, align 4
%27 = load ptr, ptr %3, align 8
%28 = call i32 @strlen(ptr noundef %27)
%29 = icmp slt i32 %26, %28
br i1 %29, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %30
30: ; preds = %._crit_edge, %8
store i32 1, ptr %2, align 4
br label %31
31: ; preds = %30, %21, %7
%32 = load i32, ptr %2, align 4
ret i32 %32
}
declare i32 @strlen(ptr noundef) #1
declare i64 @isdigit(i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpiu_a4ca2.c'
source_filename = "/tmp/tmpiu_a4ca2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"INCORRECT_ARGUMENT_NUMBER\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check_arg_count(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%6 = load i32, ptr %4, align 4
%7 = load i32, ptr %5, align 4
%8 = icmp ne i32 %6, %7
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = call i32 @report_count(i32 noundef 1)
%11 = call i32 @report_error(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %13
12: ; preds = %2
store i32 0, ptr %3, align 4
br label %13
13: ; preds = %12, %9
%14 = load i32, ptr %3, align 4
ret i32 %14
}
declare i32 @report_count(i32 noundef) #1
declare i32 @report_error(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpiu_a4ca2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"INCORRECT_ARGUMENT_NUMBER\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check_arg_count(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%6 = load i32, ptr %4, align 4
%7 = load i32, ptr %5, align 4
%8 = icmp ne i32 %6, %7
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = call i32 @report_count(i32 noundef 1)
%11 = call i32 @report_error(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %13
12: ; preds = %2
store i32 0, ptr %3, align 4
br label %13
13: ; preds = %12, %9
%14 = load i32, ptr %3, align 4
ret i32 %14
}
declare i32 @report_count(i32 noundef) #1
declare i32 @report_error(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpuf7wzh9r.c'
source_filename = "/tmp/tmpuf7wzh9r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @LCDRasterConfigSet(i32 noundef %0, i32 noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i64, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i64 %2, ptr %6, align 8
%7 = load i32, ptr %5, align 4
%8 = load i64, ptr %6, align 8
%9 = trunc i64 %8 to i32
%10 = shl i32 %9, 12
%11 = or i32 %7, %10
%12 = sext i32 %11 to i64
%13 = load i32, ptr %4, align 4
%14 = add nsw i32 %13, 40
%15 = sext i32 %14 to i64
%16 = inttoptr i64 %15 to ptr
store volatile i64 %12, ptr %16, align 8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuf7wzh9r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @LCDRasterConfigSet(i32 noundef %0, i32 noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i64, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i64 %2, ptr %6, align 8
%7 = load i32, ptr %5, align 4
%8 = load i64, ptr %6, align 8
%9 = trunc i64 %8 to i32
%10 = shl i32 %9, 12
%11 = or i32 %7, %10
%12 = sext i32 %11 to i64
%13 = load i32, ptr %4, align 4
%14 = add nsw i32 %13, 40
%15 = sext i32 %14 to i64
%16 = inttoptr i64 %15 to ptr
store volatile i64 %12, ptr %16, align 8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpuedgrxu_.c'
source_filename = "/tmp/tmpuedgrxu_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Ejecutando tarea 1 \0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"Ejecutando tarea 2\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"Tiempo tardado = %.4lf segundos\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
store i32 0, ptr %1, align 4
%4 = call double (...) @omp_get_wtime()
store double %4, ptr %2, align 8
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 (...) @tarea_uno()
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%8 = call i32 (...) @tarea_dos()
%9 = call double (...) @omp_get_wtime()
store double %9, ptr %3, align 8
%10 = load double, ptr %3, align 8
%11 = load double, ptr %2, align 8
%12 = fsub double %10, %11
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %12)
ret i32 0
}
declare double @omp_get_wtime(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @tarea_uno(...) #1
declare i32 @tarea_dos(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuedgrxu_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Ejecutando tarea 1 \0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"Ejecutando tarea 2\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"Tiempo tardado = %.4lf segundos\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
store i32 0, ptr %1, align 4
%4 = call double (...) @omp_get_wtime()
store double %4, ptr %2, align 8
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 (...) @tarea_uno()
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%8 = call i32 (...) @tarea_dos()
%9 = call double (...) @omp_get_wtime()
store double %9, ptr %3, align 8
%10 = load double, ptr %3, align 8
%11 = load double, ptr %2, align 8
%12 = fsub double %10, %11
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %12)
ret i32 0
}
declare double @omp_get_wtime(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @tarea_uno(...) #1
declare i32 @tarea_dos(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp65echwdu.c'
source_filename = "/tmp/tmp65echwdu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.t = private unnamed_addr constant [15 x i8] c"TMP01:200001:1\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [15 x i8], align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %1, ptr align 1 @__const.main.t, i64 15, i1 false)
%2 = getelementptr inbounds [15 x i8], ptr %1, i64 0, i64 0
%3 = getelementptr inbounds [15 x i8], ptr %1, i64 0, i64 0
%4 = call i64 @strlen(ptr noundef %3)
%5 = add nsw i64 %4, 1
%6 = call i32 @decode_line(ptr noundef %2, i64 noundef %5)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @decode_line(ptr noundef, i64 noundef) #2
declare i64 @strlen(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp65echwdu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.t = private unnamed_addr constant [15 x i8] c"TMP01:200001:1\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [15 x i8], align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %1, ptr align 1 @__const.main.t, i64 15, i1 false)
%2 = getelementptr inbounds [15 x i8], ptr %1, i64 0, i64 0
%3 = getelementptr inbounds [15 x i8], ptr %1, i64 0, i64 0
%4 = call i64 @strlen(ptr noundef %3)
%5 = add nsw i64 %4, 1
%6 = call i32 @decode_line(ptr noundef %2, i64 noundef %5)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @decode_line(ptr noundef, i64 noundef) #2
declare i64 @strlen(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp86_7vukv.c'
source_filename = "/tmp/tmp86_7vukv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [56 x i8] c"Select Stack Operations: (1) Push; (2): Pop; (0): Exit\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [40 x i8] c"Enter element to be pushed into stack: \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c"Element %d is popped up\0A\00", align 1
@.str.5 = private unnamed_addr constant [14 x i8] c"Existing !!!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
br label %6
6: ; preds = %23, %0
%7 = load i32, ptr %2, align 4
switch i32 %7, label %20 [
i32 1, label %8
i32 2, label %14
i32 3, label %18
]
8: ; preds = %6
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%10 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%11 = load i32, ptr %3, align 4
%12 = call i32 @push(i32 noundef %11)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %20
14: ; preds = %6
%15 = call i32 (...) @pop()
store i32 %15, ptr %3, align 4
%16 = load i32, ptr %3, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %16)
br label %20
18: ; preds = %6
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 0, ptr %1, align 4
br label %27
20: ; preds = %6, %14, %8
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%22 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
br label %23
23: ; preds = %20
%24 = load i32, ptr %2, align 4
%25 = icmp ne i32 %24, 0
br i1 %25, label %6, label %26, !llvm.loop !6
26: ; preds = %23
store i32 0, ptr %1, align 4
br label %27
27: ; preds = %26, %18
%28 = load i32, ptr %1, align 4
ret i32 %28
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @push(i32 noundef) #1
declare i32 @pop(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp86_7vukv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [56 x i8] c"Select Stack Operations: (1) Push; (2): Pop; (0): Exit\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [40 x i8] c"Enter element to be pushed into stack: \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c"Element %d is popped up\0A\00", align 1
@.str.5 = private unnamed_addr constant [14 x i8] c"Existing !!!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
br label %6
6: ; preds = %23, %0
%7 = load i32, ptr %2, align 4
switch i32 %7, label %20 [
i32 1, label %8
i32 2, label %14
i32 3, label %18
]
8: ; preds = %6
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%10 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%11 = load i32, ptr %3, align 4
%12 = call i32 @push(i32 noundef %11)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %20
14: ; preds = %6
%15 = call i32 (...) @pop()
store i32 %15, ptr %3, align 4
%16 = load i32, ptr %3, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %16)
br label %20
18: ; preds = %6
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 0, ptr %1, align 4
br label %27
20: ; preds = %14, %8, %6
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%22 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
br label %23
23: ; preds = %20
%24 = load i32, ptr %2, align 4
%25 = icmp ne i32 %24, 0
br i1 %25, label %6, label %26, !llvm.loop !6
26: ; preds = %23
store i32 0, ptr %1, align 4
br label %27
27: ; preds = %26, %18
%28 = load i32, ptr %1, align 4
ret i32 %28
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @push(i32 noundef) #1
declare i32 @pop(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpl41izfjh.c'
source_filename = "/tmp/tmpl41izfjh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.b = private unnamed_addr constant [14 x i8] c"23456789TJQKA\00", align 1
@.str = private unnamed_addr constant [13 x i8] c"Enter cards:\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"Invalid cards\00", align 1
@.str.3 = 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 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 [14 x i8], align 1
%8 = alloca [14 x i8], align 1
%9 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 @__const.main.b, i64 14, i1 false)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = getelementptr inbounds [14 x i8], ptr %7, i64 0, i64 0
%12 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %11)
store i32 0, ptr %2, align 4
br label %13
13: ; preds = %48, %0
%14 = load i32, ptr %2, align 4
%15 = getelementptr inbounds [14 x i8], ptr %7, i64 0, i64 0
%16 = call i32 @strlen(ptr noundef %15)
%17 = sub nsw i32 %16, 1
%18 = icmp slt i32 %14, %17
br i1 %18, label %19, label %51
19: ; preds = %13
store i32 0, ptr %4, align 4
store i32 0, ptr %3, align 4
br label %20
20: ; preds = %39, %19
%21 = load i32, ptr %3, align 4
%22 = getelementptr inbounds [14 x i8], ptr %8, i64 0, i64 0
%23 = call i32 @strlen(ptr noundef %22)
%24 = icmp slt i32 %21, %23
br i1 %24, label %25, label %42
25: ; preds = %20
%26 = load i32, ptr %2, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [14 x i8], ptr %7, i64 0, i64 %27
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = load i32, ptr %3, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [14 x i8], ptr %8, i64 0, i64 %32
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %30, %35
br i1 %36, label %37, label %38
37: ; preds = %25
store i32 1, ptr %4, align 4
br label %38
38: ; preds = %37, %25
br label %39
39: ; preds = %38
%40 = load i32, ptr %3, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %3, align 4
br label %20, !llvm.loop !6
42: ; preds = %20
%43 = load i32, ptr %4, align 4
%44 = icmp eq i32 %43, 0
br i1 %44, label %45, label %47
45: ; preds = %42
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %1, align 4
br label %108
47: ; preds = %42
br label %48
48: ; preds = %47
%49 = load i32, ptr %2, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %2, align 4
br label %13, !llvm.loop !8
51: ; preds = %13
store i32 0, ptr %5, align 4
br label %52
52: ; preds = %102, %51
%53 = load i32, ptr %5, align 4
%54 = getelementptr inbounds [14 x i8], ptr %7, i64 0, i64 0
%55 = call i32 @strlen(ptr noundef %54)
%56 = icmp slt i32 %53, %55
br i1 %56, label %57, label %105
57: ; preds = %52
store i32 0, ptr %6, align 4
br label %58
58: ; preds = %98, %57
%59 = load i32, ptr %6, align 4
%60 = getelementptr inbounds [14 x i8], ptr %7, i64 0, i64 0
%61 = call i32 @strlen(ptr noundef %60)
%62 = sub nsw i32 %61, 1
%63 = icmp slt i32 %59, %62
br i1 %63, label %64, label %101
64: ; preds = %58
%65 = load i32, ptr %6, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [14 x i8], ptr %7, i64 0, i64 %66
%68 = load i8, ptr %67, align 1
%69 = call i64 @s(i8 noundef signext %68)
%70 = load i32, ptr %6, align 4
%71 = add nsw i32 %70, 1
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [14 x i8], ptr %7, i64 0, i64 %72
%74 = load i8, ptr %73, align 1
%75 = call i64 @s(i8 noundef signext %74)
%76 = icmp sgt i64 %69, %75
br i1 %76, label %77, label %97
77: ; preds = %64
%78 = load i32, ptr %6, align 4
%79 = add nsw i32 %78, 1
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [14 x i8], ptr %7, i64 0, i64 %80
%82 = load i8, ptr %81, align 1
%83 = sext i8 %82 to i32
store i32 %83, ptr %9, align 4
%84 = load i32, ptr %6, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [14 x i8], ptr %7, i64 0, i64 %85
%87 = load i8, ptr %86, align 1
%88 = load i32, ptr %6, align 4
%89 = add nsw i32 %88, 1
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [14 x i8], ptr %7, i64 0, i64 %90
store i8 %87, ptr %91, align 1
%92 = load i32, ptr %9, align 4
%93 = trunc i32 %92 to i8
%94 = load i32, ptr %6, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds [14 x i8], ptr %7, i64 0, i64 %95
store i8 %93, ptr %96, align 1
br label %97
97: ; preds = %77, %64
br label %98
98: ; preds = %97
%99 = load i32, ptr %6, align 4
%100 = add nsw i32 %99, 1
store i32 %100, ptr %6, align 4
br label %58, !llvm.loop !9
101: ; preds = %58
br label %102
102: ; preds = %101
%103 = load i32, ptr %5, align 4
%104 = add nsw i32 %103, 1
store i32 %104, ptr %5, align 4
br label %52, !llvm.loop !10
105: ; preds = %52
%106 = getelementptr inbounds [14 x i8], ptr %7, i64 0, i64 0
%107 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %106)
store i32 0, ptr %1, align 4
br label %108
108: ; preds = %105, %45
%109 = load i32, ptr %1, align 4
ret i32 %109
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
declare i32 @scanf(ptr noundef, ptr noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i64 @s(i8 noundef signext) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl41izfjh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.b = private unnamed_addr constant [14 x i8] c"23456789TJQKA\00", align 1
@.str = private unnamed_addr constant [13 x i8] c"Enter cards:\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"Invalid cards\00", align 1
@.str.3 = 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 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 [14 x i8], align 1
%8 = alloca [14 x i8], align 1
%9 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 @__const.main.b, i64 14, i1 false)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = getelementptr inbounds [14 x i8], ptr %7, i64 0, i64 0
%12 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %11)
store i32 0, ptr %2, align 4
%13 = load i32, ptr %2, align 4
%14 = getelementptr inbounds [14 x i8], ptr %7, i64 0, i64 0
%15 = call i32 @strlen(ptr noundef %14)
%16 = sub nsw i32 %15, 1
%17 = icmp slt i32 %13, %16
br i1 %17, label %.lr.ph2, label %56
.lr.ph2: ; preds = %0
br label %18
18: ; preds = %.lr.ph2, %49
store i32 0, ptr %4, align 4
store i32 0, ptr %3, align 4
%19 = load i32, ptr %3, align 4
%20 = getelementptr inbounds [14 x i8], ptr %8, i64 0, i64 0
%21 = call i32 @strlen(ptr noundef %20)
%22 = icmp slt i32 %19, %21
br i1 %22, label %.lr.ph, label %43
.lr.ph: ; preds = %18
br label %23
23: ; preds = %.lr.ph, %37
%24 = load i32, ptr %2, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [14 x i8], ptr %7, i64 0, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = load i32, ptr %3, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [14 x i8], ptr %8, i64 0, i64 %30
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %28, %33
br i1 %34, label %35, label %36
35: ; preds = %23
store i32 1, ptr %4, align 4
br label %36
36: ; preds = %35, %23
br label %37
37: ; preds = %36
%38 = load i32, ptr %3, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %3, align 4
%40 = load i32, ptr %3, align 4
%41 = call i32 @strlen(ptr noundef %20)
%42 = icmp slt i32 %40, %41
br i1 %42, label %23, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %37
br label %43
43: ; preds = %._crit_edge, %18
%44 = load i32, ptr %4, align 4
%45 = icmp eq i32 %44, 0
br i1 %45, label %46, label %48
46: ; preds = %43
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %1, align 4
br label %118
48: ; preds = %43
br label %49
49: ; preds = %48
%50 = load i32, ptr %2, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %2, align 4
%52 = load i32, ptr %2, align 4
%53 = call i32 @strlen(ptr noundef %14)
%54 = sub nsw i32 %53, 1
%55 = icmp slt i32 %52, %54
br i1 %55, label %18, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %49
br label %56
56: ; preds = %._crit_edge3, %0
store i32 0, ptr %5, align 4
%57 = load i32, ptr %5, align 4
%58 = getelementptr inbounds [14 x i8], ptr %7, i64 0, i64 0
%59 = call i32 @strlen(ptr noundef %58)
%60 = icmp slt i32 %57, %59
br i1 %60, label %.lr.ph8, label %115
.lr.ph8: ; preds = %56
br label %61
61: ; preds = %.lr.ph8, %109
store i32 0, ptr %6, align 4
%62 = load i32, ptr %6, align 4
%63 = getelementptr inbounds [14 x i8], ptr %7, i64 0, i64 0
%64 = call i32 @strlen(ptr noundef %63)
%65 = sub nsw i32 %64, 1
%66 = icmp slt i32 %62, %65
br i1 %66, label %.lr.ph5, label %108
.lr.ph5: ; preds = %61
br label %67
67: ; preds = %.lr.ph5, %101
%68 = load i32, ptr %6, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [14 x i8], ptr %7, i64 0, i64 %69
%71 = load i8, ptr %70, align 1
%72 = call i64 @s(i8 noundef signext %71)
%73 = load i32, ptr %6, align 4
%74 = add nsw i32 %73, 1
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [14 x i8], ptr %7, i64 0, i64 %75
%77 = load i8, ptr %76, align 1
%78 = call i64 @s(i8 noundef signext %77)
%79 = icmp sgt i64 %72, %78
br i1 %79, label %80, label %100
80: ; preds = %67
%81 = load i32, ptr %6, align 4
%82 = add nsw i32 %81, 1
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [14 x i8], ptr %7, i64 0, i64 %83
%85 = load i8, ptr %84, align 1
%86 = sext i8 %85 to i32
store i32 %86, ptr %9, align 4
%87 = load i32, ptr %6, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [14 x i8], ptr %7, i64 0, i64 %88
%90 = load i8, ptr %89, align 1
%91 = load i32, ptr %6, align 4
%92 = add nsw i32 %91, 1
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [14 x i8], ptr %7, i64 0, i64 %93
store i8 %90, ptr %94, align 1
%95 = load i32, ptr %9, align 4
%96 = trunc i32 %95 to i8
%97 = load i32, ptr %6, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds [14 x i8], ptr %7, i64 0, i64 %98
store i8 %96, ptr %99, align 1
br label %100
100: ; preds = %80, %67
br label %101
101: ; preds = %100
%102 = load i32, ptr %6, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %6, align 4
%104 = load i32, ptr %6, align 4
%105 = call i32 @strlen(ptr noundef %63)
%106 = sub nsw i32 %105, 1
%107 = icmp slt i32 %104, %106
br i1 %107, label %67, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %101
br label %108
108: ; preds = %._crit_edge6, %61
br label %109
109: ; preds = %108
%110 = load i32, ptr %5, align 4
%111 = add nsw i32 %110, 1
store i32 %111, ptr %5, align 4
%112 = load i32, ptr %5, align 4
%113 = call i32 @strlen(ptr noundef %58)
%114 = icmp slt i32 %112, %113
br i1 %114, label %61, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %109
br label %115
115: ; preds = %._crit_edge9, %56
%116 = getelementptr inbounds [14 x i8], ptr %7, i64 0, i64 0
%117 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %116)
store i32 0, ptr %1, align 4
br label %118
118: ; preds = %115, %46
%119 = load i32, ptr %1, align 4
ret i32 %119
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
declare i32 @scanf(ptr noundef, ptr noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i64 @s(i8 noundef signext) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpmx2cak9z.c'
source_filename = "/tmp/tmpmx2cak9z.c"
target datalayout = "e-m:e-p270: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/tmpmx2cak9z.c"
target datalayout = "e-m:e-p270: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/tmpp9ovy2gj.c'
source_filename = "/tmp/tmpp9ovy2gj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dirname(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call ptr @x_strdup(ptr noundef %4)
store ptr %5, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call ptr @strrchr(ptr noundef %6, i8 noundef signext 47)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %10, label %12
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
store i8 0, ptr %11, align 1
br label %12
12: ; preds = %10, %1
%13 = load ptr, ptr %2, align 8
ret ptr %13
}
declare ptr @x_strdup(ptr noundef) #1
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp9ovy2gj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dirname(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call ptr @x_strdup(ptr noundef %4)
store ptr %5, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call ptr @strrchr(ptr noundef %6, i8 noundef signext 47)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %10, label %12
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
store i8 0, ptr %11, align 1
br label %12
12: ; preds = %10, %1
%13 = load ptr, ptr %2, align 8
ret ptr %13
}
declare ptr @x_strdup(ptr noundef) #1
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwxnlizq3.c'
source_filename = "/tmp/tmpwxnlizq3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [23 x i8] c"usage: %s <n> <g|i>\0A\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c" n: number of elements in list\0A\00", align 1
@.str.2 = private unnamed_addr constant [55 x i8] c" 'g': generate list using a random number generator\0A\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c" 'i': user input list\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = load i32, ptr @stderr, align 4
%7 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %6, ptr noundef @.str.1)
%8 = load i32, ptr @stderr, align 4
%9 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %8, ptr noundef @.str.2)
%10 = load i32, ptr @stderr, align 4
%11 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %10, ptr noundef @.str.3)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwxnlizq3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [23 x i8] c"usage: %s <n> <g|i>\0A\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c" n: number of elements in list\0A\00", align 1
@.str.2 = private unnamed_addr constant [55 x i8] c" 'g': generate list using a random number generator\0A\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c" 'i': user input list\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = load i32, ptr @stderr, align 4
%7 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %6, ptr noundef @.str.1)
%8 = load i32, ptr @stderr, align 4
%9 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %8, ptr noundef @.str.2)
%10 = load i32, ptr @stderr, align 4
%11 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %10, ptr noundef @.str.3)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgscf9zc0.c'
source_filename = "/tmp/tmpgscf9zc0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgscf9zc0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpj4bipg7v.c'
source_filename = "/tmp/tmpj4bipg7v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @chop(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @strcspn(ptr noundef %4, ptr noundef @.str)
%6 = getelementptr inbounds i8, ptr %3, i64 %5
store i8 0, ptr %6, align 1
%7 = load ptr, ptr %2, align 8
ret ptr %7
}
declare i64 @strcspn(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/tmpj4bipg7v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @chop(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i64 @strcspn(ptr noundef %4, ptr noundef @.str)
%6 = getelementptr inbounds i8, ptr %3, i64 %5
store i8 0, ptr %6, align 1
%7 = load ptr, ptr %2, align 8
ret ptr %7
}
declare i64 @strcspn(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/tmpc0jmu592.c'
source_filename = "/tmp/tmpc0jmu592.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"-x\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"-e\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"-c\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [38 x i8] c"Usage: %s -x -e -c COMMAND|%s SCRIPT\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 i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp eq i32 %9, 5
br i1 %10, label %11, label %41
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = call i64 @strcmp(ptr noundef %14, ptr noundef @.str)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %41
17: ; preds = %11
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 2
%20 = load ptr, ptr %19, align 8
%21 = call i64 @strcmp(ptr noundef %20, ptr noundef @.str.1)
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %41
23: ; preds = %17
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 3
%26 = load ptr, ptr %25, align 8
%27 = call i64 @strcmp(ptr noundef %26, ptr noundef @.str.2)
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %41
29: ; preds = %23
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds ptr, ptr %30, i64 4
%32 = load ptr, ptr %31, align 8
%33 = call i64 @strlen(ptr noundef %32)
store i64 %33, ptr %6, align 8
%34 = load ptr, ptr %5, align 8
%35 = getelementptr inbounds ptr, ptr %34, i64 4
%36 = load ptr, ptr %35, align 8
%37 = load i64, ptr %6, align 8
%38 = call ptr @fmemopen(ptr noundef %36, i64 noundef %37, ptr noundef @.str.3)
store ptr %38, ptr %7, align 8
%39 = load ptr, ptr %7, align 8
%40 = call i32 @run_commands(ptr noundef %39)
store i32 %40, ptr %3, align 4
br label %60
41: ; preds = %23, %17, %11, %2
%42 = load i32, ptr %4, align 4
%43 = icmp eq i32 %42, 2
br i1 %43, label %44, label %51
44: ; preds = %41
%45 = load ptr, ptr %5, align 8
%46 = getelementptr inbounds ptr, ptr %45, i64 1
%47 = load ptr, ptr %46, align 8
%48 = call ptr @fopen(ptr noundef %47, ptr noundef @.str.3)
store ptr %48, ptr %8, align 8
%49 = load ptr, ptr %8, align 8
%50 = call i32 @run_commands(ptr noundef %49)
store i32 %50, ptr %3, align 4
br label %60
51: ; preds = %41
%52 = load i32, ptr @stderr, align 4
%53 = load ptr, ptr %5, align 8
%54 = getelementptr inbounds ptr, ptr %53, i64 0
%55 = load ptr, ptr %54, align 8
%56 = load ptr, ptr %5, align 8
%57 = getelementptr inbounds ptr, ptr %56, i64 0
%58 = load ptr, ptr %57, align 8
%59 = call i32 @fprintf(i32 noundef %52, ptr noundef @.str.4, ptr noundef %55, ptr noundef %58)
store i32 1, ptr %3, align 4
br label %60
60: ; preds = %51, %44, %29
%61 = load i32, ptr %3, align 4
ret i32 %61
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
declare ptr @fmemopen(ptr noundef, i64 noundef, ptr noundef) #1
declare i32 @run_commands(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc0jmu592.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"-x\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"-e\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"-c\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [38 x i8] c"Usage: %s -x -e -c COMMAND|%s SCRIPT\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 i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp eq i32 %9, 5
br i1 %10, label %11, label %41
11: ; preds = %2
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = call i64 @strcmp(ptr noundef %14, ptr noundef @.str)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %41
17: ; preds = %11
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 2
%20 = load ptr, ptr %19, align 8
%21 = call i64 @strcmp(ptr noundef %20, ptr noundef @.str.1)
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %41
23: ; preds = %17
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 3
%26 = load ptr, ptr %25, align 8
%27 = call i64 @strcmp(ptr noundef %26, ptr noundef @.str.2)
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %41
29: ; preds = %23
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds ptr, ptr %30, i64 4
%32 = load ptr, ptr %31, align 8
%33 = call i64 @strlen(ptr noundef %32)
store i64 %33, ptr %6, align 8
%34 = load ptr, ptr %5, align 8
%35 = getelementptr inbounds ptr, ptr %34, i64 4
%36 = load ptr, ptr %35, align 8
%37 = load i64, ptr %6, align 8
%38 = call ptr @fmemopen(ptr noundef %36, i64 noundef %37, ptr noundef @.str.3)
store ptr %38, ptr %7, align 8
%39 = load ptr, ptr %7, align 8
%40 = call i32 @run_commands(ptr noundef %39)
store i32 %40, ptr %3, align 4
br label %60
41: ; preds = %23, %17, %11, %2
%42 = load i32, ptr %4, align 4
%43 = icmp eq i32 %42, 2
br i1 %43, label %44, label %51
44: ; preds = %41
%45 = load ptr, ptr %5, align 8
%46 = getelementptr inbounds ptr, ptr %45, i64 1
%47 = load ptr, ptr %46, align 8
%48 = call ptr @fopen(ptr noundef %47, ptr noundef @.str.3)
store ptr %48, ptr %8, align 8
%49 = load ptr, ptr %8, align 8
%50 = call i32 @run_commands(ptr noundef %49)
store i32 %50, ptr %3, align 4
br label %60
51: ; preds = %41
%52 = load i32, ptr @stderr, align 4
%53 = load ptr, ptr %5, align 8
%54 = getelementptr inbounds ptr, ptr %53, i64 0
%55 = load ptr, ptr %54, align 8
%56 = load ptr, ptr %5, align 8
%57 = getelementptr inbounds ptr, ptr %56, i64 0
%58 = load ptr, ptr %57, align 8
%59 = call i32 @fprintf(i32 noundef %52, ptr noundef @.str.4, ptr noundef %55, ptr noundef %58)
store i32 1, ptr %3, align 4
br label %60
60: ; preds = %51, %44, %29
%61 = load i32, ptr %3, align 4
ret i32 %61
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
declare ptr @fmemopen(ptr noundef, i64 noundef, ptr noundef) #1
declare i32 @run_commands(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfofrp1ga.c'
source_filename = "/tmp/tmpfofrp1ga.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @numeroArrotondatoAIntero(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = fpext float %3 to double
%5 = fadd double %4, 5.000000e-01
%6 = fptrunc double %5 to float
%7 = call i32 @floor(float noundef %6)
ret i32 %7
}
declare i32 @floor(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/tmpfofrp1ga.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @numeroArrotondatoAIntero(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = fpext float %3 to double
%5 = fadd double %4, 5.000000e-01
%6 = fptrunc double %5 to float
%7 = call i32 @floor(float noundef %6)
ret i32 %7
}
declare i32 @floor(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/tmpo6p5n6j4.c'
source_filename = "/tmp/tmpo6p5n6j4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0ARESULTADO: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [10 x i8], align 1
%3 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%4 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 0
%5 = call i32 @teste(ptr noundef %4)
%6 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 0
%7 = call i32 @printf(ptr noundef @.str, ptr noundef %6)
%8 = call ptr (...) @teste2()
store ptr %8, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %16
11: ; preds = %0
%12 = load ptr, ptr %3, align 8
%13 = call i32 @printf(ptr noundef @.str, ptr noundef %12)
%14 = load ptr, ptr %3, align 8
%15 = call i32 @free(ptr noundef %14)
br label %16
16: ; preds = %11, %0
%17 = load i32, ptr %1, align 4
ret i32 %17
}
declare i32 @teste(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @teste2(...) #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/tmpo6p5n6j4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0ARESULTADO: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [10 x i8], align 1
%3 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%4 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 0
%5 = call i32 @teste(ptr noundef %4)
%6 = getelementptr inbounds [10 x i8], ptr %2, i64 0, i64 0
%7 = call i32 @printf(ptr noundef @.str, ptr noundef %6)
%8 = call ptr (...) @teste2()
store ptr %8, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %16
11: ; preds = %0
%12 = load ptr, ptr %3, align 8
%13 = call i32 @printf(ptr noundef @.str, ptr noundef %12)
%14 = load ptr, ptr %3, align 8
%15 = call i32 @free(ptr noundef %14)
br label %16
16: ; preds = %11, %0
%17 = load i32, ptr %1, align 4
ret i32 %17
}
declare i32 @teste(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @teste2(...) #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/tmponfwepak.c'
source_filename = "/tmp/tmponfwepak.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__psh_seek_one_line(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
br label %3
3: ; preds = %8, %1
%4 = load ptr, ptr %2, align 8
%5 = call signext i8 @fgetc(ptr noundef %4)
%6 = sext i8 %5 to i32
%7 = icmp ne i32 %6, 10
br i1 %7, label %8, label %9
8: ; preds = %3
br label %3, !llvm.loop !6
9: ; preds = %3
ret void
}
declare signext i8 @fgetc(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmponfwepak.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__psh_seek_one_line(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
br label %3
3: ; preds = %3, %1
%4 = load ptr, ptr %2, align 8
%5 = call signext i8 @fgetc(ptr noundef %4)
%6 = sext i8 %5 to i32
%7 = icmp ne i32 %6, 10
br i1 %7, label %3, label %8, !llvm.loop !6
8: ; preds = %3
ret void
}
declare signext i8 @fgetc(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmprmb8vlj2.c'
source_filename = "/tmp/tmprmb8vlj2.c"
target datalayout = "e-m:e-p270: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/tmprmb8vlj2.c"
target datalayout = "e-m:e-p270: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/tmphr79p4kt.c'
source_filename = "/tmp/tmphr79p4kt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @IF_NTShiftR() #0 {
%1 = call i32 @nTabShift(i32 noundef 1)
ret void
}
declare i32 @nTabShift(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/tmphr79p4kt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @IF_NTShiftR() #0 {
%1 = call i32 @nTabShift(i32 noundef 1)
ret void
}
declare i32 @nTabShift(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/tmp60ahu84o.c'
source_filename = "/tmp/tmp60ahu84o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @unreads(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i64 @strlen(ptr noundef %5)
%7 = getelementptr inbounds i8, ptr %4, i64 %6
store ptr %7, ptr %3, align 8
br label %8
8: ; preds = %12, %1
%9 = load ptr, ptr %3, align 8
%10 = load ptr, ptr %2, align 8
%11 = icmp ugt ptr %9, %10
br i1 %11, label %12, label %17
12: ; preds = %8
%13 = load ptr, ptr %3, align 8
%14 = getelementptr inbounds i8, ptr %13, i32 -1
store ptr %14, ptr %3, align 8
%15 = load i8, ptr %14, align 1
%16 = call i32 @putback(i8 noundef signext %15)
br label %8, !llvm.loop !6
17: ; preds = %8
ret void
}
declare i64 @strlen(ptr noundef) #1
declare i32 @putback(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/tmp60ahu84o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @unreads(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i64 @strlen(ptr noundef %5)
%7 = getelementptr inbounds i8, ptr %4, i64 %6
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %2, align 8
%10 = icmp ugt ptr %8, %9
br i1 %10, label %.lr.ph, label %19
.lr.ph: ; preds = %1
br label %11
11: ; preds = %.lr.ph, %11
%12 = load ptr, ptr %3, align 8
%13 = getelementptr inbounds i8, ptr %12, i32 -1
store ptr %13, ptr %3, align 8
%14 = load i8, ptr %13, align 1
%15 = call i32 @putback(i8 noundef signext %14)
%16 = load ptr, ptr %3, align 8
%17 = load ptr, ptr %2, align 8
%18 = icmp ugt ptr %16, %17
br i1 %18, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %19
19: ; preds = %._crit_edge, %1
ret void
}
declare i64 @strlen(ptr noundef) #1
declare i32 @putback(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/tmpir8g2vz4.c'
source_filename = "/tmp/tmpir8g2vz4.c"
target datalayout = "e-m:e-p270: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/tmpir8g2vz4.c"
target datalayout = "e-m:e-p270: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/tmpdnocwfx8.c'
source_filename = "/tmp/tmpdnocwfx8.c"
target datalayout = "e-m:e-p270: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"\1B[31m[-] Error: %s\0A\1B[0m\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"netsed: exiting.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @error(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 (i32, ptr, ...) @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = load i32, ptr @stderr, align 4
%7 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %6, ptr noundef @.str.1)
%8 = call i32 (...) @clean_socks()
%9 = call i32 @exit(i32 noundef 2) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @clean_socks(...) #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/tmpdnocwfx8.c"
target datalayout = "e-m:e-p270: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"\1B[31m[-] Error: %s\0A\1B[0m\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"netsed: exiting.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @error(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 (i32, ptr, ...) @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = load i32, ptr @stderr, align 4
%7 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %6, ptr noundef @.str.1)
%8 = call i32 (...) @clean_socks()
%9 = call i32 @exit(i32 noundef 2) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @clean_socks(...) #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/tmplmcxzye1.c'
source_filename = "/tmp/tmplmcxzye1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"sudo apt-get update\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"sudo apt-get upgrade\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"sudo apt-get autoremove\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"sudo apt-get autoclean\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)
%4 = call i32 @system(ptr noundef @.str.1)
%5 = call i32 @system(ptr noundef @.str.2)
%6 = call i32 @system(ptr noundef @.str.3)
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/tmplmcxzye1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"sudo apt-get update\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"sudo apt-get upgrade\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"sudo apt-get autoremove\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"sudo apt-get autoclean\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)
%4 = call i32 @system(ptr noundef @.str.1)
%5 = call i32 @system(ptr noundef @.str.2)
%6 = call i32 @system(ptr noundef @.str.3)
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/tmpzx5c1tet.c'
source_filename = "/tmp/tmpzx5c1tet.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"Fread failed\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"Buffer content is: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"Fsetpos fails\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"File position is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @opener(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%8 = call i32 @memset(ptr noundef %5, i32 noundef 3, i32 noundef 4)
%9 = load ptr, ptr %3, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %12
11: ; preds = %1
store i32 -1, ptr %2, align 4
br label %44
12: ; preds = %1
%13 = load ptr, ptr %3, align 8
%14 = call i32 @fgetpos(ptr noundef %13, ptr noundef %5)
store i32 %14, ptr %4, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %12
%18 = load i32, ptr %4, align 4
store i32 %18, ptr %2, align 4
br label %44
19: ; preds = %12
%20 = call ptr @malloc(i32 noundef 10)
store ptr %20, ptr %6, align 8
%21 = load ptr, ptr %6, align 8
%22 = load ptr, ptr %3, align 8
%23 = call i32 @fread(ptr noundef %21, i32 noundef 1, i32 noundef 10, ptr noundef %22)
store i32 %23, ptr %7, align 4
%24 = load i32, ptr %7, align 4
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %19
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%28 = call i32 @exit(i32 noundef 0) #3
unreachable
29: ; preds = %19
%30 = load ptr, ptr %6, align 8
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %30)
br label %32
32: ; preds = %29
%33 = load ptr, ptr %3, align 8
%34 = call i32 @fsetpos(ptr noundef %33, ptr noundef %5)
store i32 %34, ptr %4, align 4
%35 = load i32, ptr %4, align 4
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %32
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%39 = load i32, ptr %4, align 4
store i32 %39, ptr %2, align 4
br label %44
40: ; preds = %32
%41 = load i32, ptr %4, align 4
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %41)
br label %43
43: ; preds = %40
store i32 0, ptr %2, align 4
br label %44
44: ; preds = %43, %37, %17, %11
%45 = load i32, ptr %2, align 4
ret i32 %45
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fgetpos(ptr noundef, ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fsetpos(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 = { 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/tmpzx5c1tet.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"Fread failed\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"Buffer content is: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"Fsetpos fails\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"File position is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @opener(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%8 = call i32 @memset(ptr noundef %5, i32 noundef 3, i32 noundef 4)
%9 = load ptr, ptr %3, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %12
11: ; preds = %1
store i32 -1, ptr %2, align 4
br label %44
12: ; preds = %1
%13 = load ptr, ptr %3, align 8
%14 = call i32 @fgetpos(ptr noundef %13, ptr noundef %5)
store i32 %14, ptr %4, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %12
%18 = load i32, ptr %4, align 4
store i32 %18, ptr %2, align 4
br label %44
19: ; preds = %12
%20 = call ptr @malloc(i32 noundef 10)
store ptr %20, ptr %6, align 8
%21 = load ptr, ptr %6, align 8
%22 = load ptr, ptr %3, align 8
%23 = call i32 @fread(ptr noundef %21, i32 noundef 1, i32 noundef 10, ptr noundef %22)
store i32 %23, ptr %7, align 4
%24 = load i32, ptr %7, align 4
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %19
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%28 = call i32 @exit(i32 noundef 0) #3
unreachable
29: ; preds = %19
%30 = load ptr, ptr %6, align 8
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %30)
br label %32
32: ; preds = %29
%33 = load ptr, ptr %3, align 8
%34 = call i32 @fsetpos(ptr noundef %33, ptr noundef %5)
store i32 %34, ptr %4, align 4
%35 = load i32, ptr %4, align 4
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %32
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%39 = load i32, ptr %4, align 4
store i32 %39, ptr %2, align 4
br label %44
40: ; preds = %32
%41 = load i32, ptr %4, align 4
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %41)
br label %43
43: ; preds = %40
store i32 0, ptr %2, align 4
br label %44
44: ; preds = %43, %37, %17, %11
%45 = load i32, ptr %2, align 4
ret i32 %45
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fgetpos(ptr noundef, ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fsetpos(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 = { 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/tmpx14v5621.c'
source_filename = "/tmp/tmpx14v5621.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"POST\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"boundary=\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"\0D\0A\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0D\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"?\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @getURL(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [200000 x i8], align 16
%6 = alloca [100 x i8], align 16
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%10 = load ptr, ptr %2, align 8
%11 = call ptr @strstr(ptr noundef %10, ptr noundef @.str)
store ptr %11, ptr %3, align 8
call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 200000, i1 false)
%12 = load ptr, ptr %3, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %84
14: ; preds = %1
call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 100, i1 false)
%15 = load ptr, ptr %2, align 8
%16 = call ptr @strstr(ptr noundef %15, ptr noundef @.str.1)
store ptr %16, ptr %7, align 8
%17 = load ptr, ptr %7, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %39
19: ; preds = %14
%20 = load ptr, ptr %7, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 9
store ptr %21, ptr %7, align 8
%22 = load ptr, ptr %7, align 8
%23 = call ptr @strstr(ptr noundef %22, ptr noundef @.str.2)
store ptr %23, ptr %8, align 8
%24 = load ptr, ptr %8, align 8
%25 = icmp ne ptr %24, null
br i1 %25, label %26, label %38
26: ; preds = %19
%27 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
%28 = load ptr, ptr %7, align 8
%29 = load ptr, ptr %8, align 8
%30 = load ptr, ptr %7, align 8
%31 = ptrtoint ptr %29 to i64
%32 = ptrtoint ptr %30 to i64
%33 = sub i64 %31, %32
%34 = trunc i64 %33 to i32
%35 = call i32 @strncpy(ptr noundef %27, ptr noundef %28, i32 noundef %34)
%36 = load ptr, ptr %8, align 8
%37 = getelementptr inbounds i8, ptr %36, i64 2
store ptr %37, ptr %7, align 8
br label %38
38: ; preds = %26, %19
br label %39
39: ; preds = %38, %14
%40 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
%41 = call i32 @strlen(ptr noundef %40)
%42 = icmp sgt i32 %41, 0
br i1 %42, label %43, label %83
43: ; preds = %39
%44 = load ptr, ptr %7, align 8
%45 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
%46 = call ptr @strstr(ptr noundef %44, ptr noundef %45)
store ptr %46, ptr %8, align 8
%47 = load ptr, ptr %8, align 8
%48 = icmp ne ptr %47, null
br i1 %48, label %49, label %82
49: ; preds = %43
%50 = load ptr, ptr %8, align 8
%51 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
%52 = call i32 @strlen(ptr noundef %51)
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, ptr %50, i64 %53
%55 = getelementptr inbounds i8, ptr %54, i64 2
store ptr %55, ptr %7, align 8
%56 = load ptr, ptr %7, align 8
%57 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
%58 = call ptr @strstr(ptr noundef %56, ptr noundef %57)
store ptr %58, ptr %8, align 8
%59 = load ptr, ptr %8, align 8
%60 = icmp ne ptr %59, null
br i1 %60, label %61, label %81
61: ; preds = %49
%62 = load ptr, ptr %8, align 8
%63 = load ptr, ptr %7, align 8
%64 = ptrtoint ptr %62 to i64
%65 = ptrtoint ptr %63 to i64
%66 = sub i64 %64, %65
%67 = sub nsw i64 %66, 4
%68 = trunc i64 %67 to i32
store i32 %68, ptr %9, align 4
%69 = load i32, ptr %9, align 4
%70 = sext i32 %69 to i64
%71 = icmp uge i64 %70, 200000
br i1 %71, label %72, label %73
72: ; preds = %61
store i32 199999, ptr %9, align 4
br label %73
73: ; preds = %72, %61
%74 = getelementptr inbounds [200000 x i8], ptr %5, i64 0, i64 0
%75 = load ptr, ptr %7, align 8
%76 = load i32, ptr %9, align 4
%77 = call i32 @strncpy(ptr noundef %74, ptr noundef %75, i32 noundef %76)
%78 = load i32, ptr %9, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [200000 x i8], ptr %5, i64 0, i64 %79
store i8 0, ptr %80, align 1
br label %81
81: ; preds = %73, %49
br label %82
82: ; preds = %81, %43
br label %83
83: ; preds = %82, %39
br label %84
84: ; preds = %83, %1
%85 = load ptr, ptr %2, align 8
%86 = call ptr @strstr(ptr noundef %85, ptr noundef @.str.3)
store ptr %86, ptr %4, align 8
%87 = load ptr, ptr %4, align 8
%88 = icmp ne ptr %87, null
br i1 %88, label %89, label %91
89: ; preds = %84
%90 = load ptr, ptr %4, align 8
store i8 0, ptr %90, align 1
br label %91
91: ; preds = %89, %84
%92 = load ptr, ptr %2, align 8
%93 = call ptr @strstr(ptr noundef %92, ptr noundef @.str.4)
store ptr %93, ptr %4, align 8
%94 = load ptr, ptr %4, align 8
%95 = icmp ne ptr %94, null
br i1 %95, label %96, label %98
96: ; preds = %91
%97 = load ptr, ptr %4, align 8
store i8 0, ptr %97, align 1
br label %98
98: ; preds = %96, %91
%99 = load ptr, ptr %2, align 8
%100 = call ptr @strstr(ptr noundef %99, ptr noundef @.str.5)
store ptr %100, ptr %4, align 8
%101 = load ptr, ptr %4, align 8
%102 = icmp ne ptr %101, null
br i1 %102, label %103, label %108
103: ; preds = %98
%104 = load ptr, ptr %2, align 8
%105 = load ptr, ptr %4, align 8
%106 = getelementptr inbounds i8, ptr %105, i64 1
%107 = call i32 @strncpy(ptr noundef %104, ptr noundef %106, i32 noundef 200000)
br label %108
108: ; preds = %103, %98
%109 = load ptr, ptr %2, align 8
%110 = call ptr @strstr(ptr noundef %109, ptr noundef @.str.5)
store ptr %110, ptr %4, align 8
%111 = load ptr, ptr %4, align 8
%112 = icmp ne ptr %111, null
br i1 %112, label %113, label %115
113: ; preds = %108
%114 = load ptr, ptr %4, align 8
store i8 0, ptr %114, align 1
br label %115
115: ; preds = %113, %108
%116 = load ptr, ptr %2, align 8
%117 = call i32 @decodeurl(ptr noundef %116)
%118 = load ptr, ptr %3, align 8
%119 = icmp ne ptr %118, null
br i1 %119, label %120, label %126
120: ; preds = %115
%121 = load ptr, ptr %2, align 8
%122 = call i32 @strcat(ptr noundef %121, ptr noundef @.str.6)
%123 = load ptr, ptr %2, align 8
%124 = getelementptr inbounds [200000 x i8], ptr %5, i64 0, i64 0
%125 = call i32 @strncat(ptr noundef %123, ptr noundef %124, i32 noundef 200000)
br label %126
126: ; preds = %120, %115
ret void
}
declare ptr @strstr(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @decodeurl(ptr noundef) #1
declare i32 @strcat(ptr noundef, 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" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx14v5621.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"POST\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"boundary=\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"\0D\0A\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0D\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"?\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @getURL(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [200000 x i8], align 16
%6 = alloca [100 x i8], align 16
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%10 = load ptr, ptr %2, align 8
%11 = call ptr @strstr(ptr noundef %10, ptr noundef @.str)
store ptr %11, ptr %3, align 8
call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 200000, i1 false)
%12 = load ptr, ptr %3, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %84
14: ; preds = %1
call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 100, i1 false)
%15 = load ptr, ptr %2, align 8
%16 = call ptr @strstr(ptr noundef %15, ptr noundef @.str.1)
store ptr %16, ptr %7, align 8
%17 = load ptr, ptr %7, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %39
19: ; preds = %14
%20 = load ptr, ptr %7, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 9
store ptr %21, ptr %7, align 8
%22 = load ptr, ptr %7, align 8
%23 = call ptr @strstr(ptr noundef %22, ptr noundef @.str.2)
store ptr %23, ptr %8, align 8
%24 = load ptr, ptr %8, align 8
%25 = icmp ne ptr %24, null
br i1 %25, label %26, label %38
26: ; preds = %19
%27 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
%28 = load ptr, ptr %7, align 8
%29 = load ptr, ptr %8, align 8
%30 = load ptr, ptr %7, align 8
%31 = ptrtoint ptr %29 to i64
%32 = ptrtoint ptr %30 to i64
%33 = sub i64 %31, %32
%34 = trunc i64 %33 to i32
%35 = call i32 @strncpy(ptr noundef %27, ptr noundef %28, i32 noundef %34)
%36 = load ptr, ptr %8, align 8
%37 = getelementptr inbounds i8, ptr %36, i64 2
store ptr %37, ptr %7, align 8
br label %38
38: ; preds = %26, %19
br label %39
39: ; preds = %38, %14
%40 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
%41 = call i32 @strlen(ptr noundef %40)
%42 = icmp sgt i32 %41, 0
br i1 %42, label %43, label %83
43: ; preds = %39
%44 = load ptr, ptr %7, align 8
%45 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
%46 = call ptr @strstr(ptr noundef %44, ptr noundef %45)
store ptr %46, ptr %8, align 8
%47 = load ptr, ptr %8, align 8
%48 = icmp ne ptr %47, null
br i1 %48, label %49, label %82
49: ; preds = %43
%50 = load ptr, ptr %8, align 8
%51 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
%52 = call i32 @strlen(ptr noundef %51)
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, ptr %50, i64 %53
%55 = getelementptr inbounds i8, ptr %54, i64 2
store ptr %55, ptr %7, align 8
%56 = load ptr, ptr %7, align 8
%57 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
%58 = call ptr @strstr(ptr noundef %56, ptr noundef %57)
store ptr %58, ptr %8, align 8
%59 = load ptr, ptr %8, align 8
%60 = icmp ne ptr %59, null
br i1 %60, label %61, label %81
61: ; preds = %49
%62 = load ptr, ptr %8, align 8
%63 = load ptr, ptr %7, align 8
%64 = ptrtoint ptr %62 to i64
%65 = ptrtoint ptr %63 to i64
%66 = sub i64 %64, %65
%67 = sub nsw i64 %66, 4
%68 = trunc i64 %67 to i32
store i32 %68, ptr %9, align 4
%69 = load i32, ptr %9, align 4
%70 = sext i32 %69 to i64
%71 = icmp uge i64 %70, 200000
br i1 %71, label %72, label %73
72: ; preds = %61
store i32 199999, ptr %9, align 4
br label %73
73: ; preds = %72, %61
%74 = getelementptr inbounds [200000 x i8], ptr %5, i64 0, i64 0
%75 = load ptr, ptr %7, align 8
%76 = load i32, ptr %9, align 4
%77 = call i32 @strncpy(ptr noundef %74, ptr noundef %75, i32 noundef %76)
%78 = load i32, ptr %9, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [200000 x i8], ptr %5, i64 0, i64 %79
store i8 0, ptr %80, align 1
br label %81
81: ; preds = %73, %49
br label %82
82: ; preds = %81, %43
br label %83
83: ; preds = %82, %39
br label %84
84: ; preds = %83, %1
%85 = load ptr, ptr %2, align 8
%86 = call ptr @strstr(ptr noundef %85, ptr noundef @.str.3)
store ptr %86, ptr %4, align 8
%87 = load ptr, ptr %4, align 8
%88 = icmp ne ptr %87, null
br i1 %88, label %89, label %91
89: ; preds = %84
%90 = load ptr, ptr %4, align 8
store i8 0, ptr %90, align 1
br label %91
91: ; preds = %89, %84
%92 = load ptr, ptr %2, align 8
%93 = call ptr @strstr(ptr noundef %92, ptr noundef @.str.4)
store ptr %93, ptr %4, align 8
%94 = load ptr, ptr %4, align 8
%95 = icmp ne ptr %94, null
br i1 %95, label %96, label %98
96: ; preds = %91
%97 = load ptr, ptr %4, align 8
store i8 0, ptr %97, align 1
br label %98
98: ; preds = %96, %91
%99 = load ptr, ptr %2, align 8
%100 = call ptr @strstr(ptr noundef %99, ptr noundef @.str.5)
store ptr %100, ptr %4, align 8
%101 = load ptr, ptr %4, align 8
%102 = icmp ne ptr %101, null
br i1 %102, label %103, label %108
103: ; preds = %98
%104 = load ptr, ptr %2, align 8
%105 = load ptr, ptr %4, align 8
%106 = getelementptr inbounds i8, ptr %105, i64 1
%107 = call i32 @strncpy(ptr noundef %104, ptr noundef %106, i32 noundef 200000)
br label %108
108: ; preds = %103, %98
%109 = load ptr, ptr %2, align 8
%110 = call ptr @strstr(ptr noundef %109, ptr noundef @.str.5)
store ptr %110, ptr %4, align 8
%111 = load ptr, ptr %4, align 8
%112 = icmp ne ptr %111, null
br i1 %112, label %113, label %115
113: ; preds = %108
%114 = load ptr, ptr %4, align 8
store i8 0, ptr %114, align 1
br label %115
115: ; preds = %113, %108
%116 = load ptr, ptr %2, align 8
%117 = call i32 @decodeurl(ptr noundef %116)
%118 = load ptr, ptr %3, align 8
%119 = icmp ne ptr %118, null
br i1 %119, label %120, label %126
120: ; preds = %115
%121 = load ptr, ptr %2, align 8
%122 = call i32 @strcat(ptr noundef %121, ptr noundef @.str.6)
%123 = load ptr, ptr %2, align 8
%124 = getelementptr inbounds [200000 x i8], ptr %5, i64 0, i64 0
%125 = call i32 @strncat(ptr noundef %123, ptr noundef %124, i32 noundef 200000)
br label %126
126: ; preds = %120, %115
ret void
}
declare ptr @strstr(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @decodeurl(ptr noundef) #1
declare i32 @strcat(ptr noundef, 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" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjapl2g4p.c'
source_filename = "/tmp/tmpjapl2g4p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @c_gamma_correct_channel(i32 noundef %0, float noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, ptr noundef %8, i32 noundef %9, i32 noundef %10, i32 noundef %11) #0 {
%13 = alloca i32, align 4
%14 = alloca float, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca ptr, align 8
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca ptr, align 8
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca i32, align 4
store i32 %0, ptr %13, align 4
store float %1, ptr %14, align 4
store i32 %2, ptr %15, align 4
store i32 %3, ptr %16, align 4
store ptr %4, ptr %17, align 8
store i32 %5, ptr %18, align 4
store i32 %6, ptr %19, align 4
store i32 %7, ptr %20, align 4
store ptr %8, ptr %21, align 8
store i32 %9, ptr %22, align 4
store i32 %10, ptr %23, align 4
store i32 %11, ptr %24, align 4
%25 = load i32, ptr %13, align 4
switch i32 %25, label %78 [
i32 1, label %26
i32 2, label %39
i32 3, label %52
i32 4, label %65
]
26: ; preds = %12
%27 = load float, ptr %14, align 4
%28 = load i32, ptr %15, align 4
%29 = load i32, ptr %16, align 4
%30 = load ptr, ptr %17, align 8
%31 = load i32, ptr %18, align 4
%32 = load i32, ptr %19, align 4
%33 = load i32, ptr %20, align 4
%34 = load ptr, ptr %21, align 8
%35 = load i32, ptr %22, align 4
%36 = load i32, ptr %23, align 4
%37 = load i32, ptr %24, align 4
%38 = call i32 @c_gamma_correct_channel_word8(float noundef %27, i32 noundef %28, i32 noundef %29, ptr noundef %30, i32 noundef %31, i32 noundef %32, i32 noundef %33, ptr noundef %34, i32 noundef %35, i32 noundef %36, i32 noundef %37)
br label %78
39: ; preds = %12
%40 = load float, ptr %14, align 4
%41 = load i32, ptr %15, align 4
%42 = load i32, ptr %16, align 4
%43 = load ptr, ptr %17, align 8
%44 = load i32, ptr %18, align 4
%45 = load i32, ptr %19, align 4
%46 = load i32, ptr %20, align 4
%47 = load ptr, ptr %21, align 8
%48 = load i32, ptr %22, align 4
%49 = load i32, ptr %23, align 4
%50 = load i32, ptr %24, align 4
%51 = call i32 @c_gamma_correct_channel_word16(float noundef %40, i32 noundef %41, i32 noundef %42, ptr noundef %43, i32 noundef %44, i32 noundef %45, i32 noundef %46, ptr noundef %47, i32 noundef %48, i32 noundef %49, i32 noundef %50)
br label %78
52: ; preds = %12
%53 = load float, ptr %14, align 4
%54 = load i32, ptr %15, align 4
%55 = load i32, ptr %16, align 4
%56 = load ptr, ptr %17, align 8
%57 = load i32, ptr %18, align 4
%58 = load i32, ptr %19, align 4
%59 = load i32, ptr %20, align 4
%60 = load ptr, ptr %21, align 8
%61 = load i32, ptr %22, align 4
%62 = load i32, ptr %23, align 4
%63 = load i32, ptr %24, align 4
%64 = call i32 @c_gamma_correct_channel_word32(float noundef %53, i32 noundef %54, i32 noundef %55, ptr noundef %56, i32 noundef %57, i32 noundef %58, i32 noundef %59, ptr noundef %60, i32 noundef %61, i32 noundef %62, i32 noundef %63)
br label %78
65: ; preds = %12
%66 = load float, ptr %14, align 4
%67 = load i32, ptr %15, align 4
%68 = load i32, ptr %16, align 4
%69 = load ptr, ptr %17, align 8
%70 = load i32, ptr %18, align 4
%71 = load i32, ptr %19, align 4
%72 = load i32, ptr %20, align 4
%73 = load ptr, ptr %21, align 8
%74 = load i32, ptr %22, align 4
%75 = load i32, ptr %23, align 4
%76 = load i32, ptr %24, align 4
%77 = call i32 @c_gamma_correct_channel_float(float noundef %66, i32 noundef %67, i32 noundef %68, ptr noundef %69, i32 noundef %70, i32 noundef %71, i32 noundef %72, ptr noundef %73, i32 noundef %74, i32 noundef %75, i32 noundef %76)
br label %78
78: ; preds = %12, %65, %52, %39, %26
ret void
}
declare i32 @c_gamma_correct_channel_word8(float noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @c_gamma_correct_channel_word16(float noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @c_gamma_correct_channel_word32(float noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @c_gamma_correct_channel_float(float noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjapl2g4p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @c_gamma_correct_channel(i32 noundef %0, float noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, ptr noundef %8, i32 noundef %9, i32 noundef %10, i32 noundef %11) #0 {
%13 = alloca i32, align 4
%14 = alloca float, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca ptr, align 8
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca ptr, align 8
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca i32, align 4
store i32 %0, ptr %13, align 4
store float %1, ptr %14, align 4
store i32 %2, ptr %15, align 4
store i32 %3, ptr %16, align 4
store ptr %4, ptr %17, align 8
store i32 %5, ptr %18, align 4
store i32 %6, ptr %19, align 4
store i32 %7, ptr %20, align 4
store ptr %8, ptr %21, align 8
store i32 %9, ptr %22, align 4
store i32 %10, ptr %23, align 4
store i32 %11, ptr %24, align 4
%25 = load i32, ptr %13, align 4
switch i32 %25, label %78 [
i32 1, label %26
i32 2, label %39
i32 3, label %52
i32 4, label %65
]
26: ; preds = %12
%27 = load float, ptr %14, align 4
%28 = load i32, ptr %15, align 4
%29 = load i32, ptr %16, align 4
%30 = load ptr, ptr %17, align 8
%31 = load i32, ptr %18, align 4
%32 = load i32, ptr %19, align 4
%33 = load i32, ptr %20, align 4
%34 = load ptr, ptr %21, align 8
%35 = load i32, ptr %22, align 4
%36 = load i32, ptr %23, align 4
%37 = load i32, ptr %24, align 4
%38 = call i32 @c_gamma_correct_channel_word8(float noundef %27, i32 noundef %28, i32 noundef %29, ptr noundef %30, i32 noundef %31, i32 noundef %32, i32 noundef %33, ptr noundef %34, i32 noundef %35, i32 noundef %36, i32 noundef %37)
br label %78
39: ; preds = %12
%40 = load float, ptr %14, align 4
%41 = load i32, ptr %15, align 4
%42 = load i32, ptr %16, align 4
%43 = load ptr, ptr %17, align 8
%44 = load i32, ptr %18, align 4
%45 = load i32, ptr %19, align 4
%46 = load i32, ptr %20, align 4
%47 = load ptr, ptr %21, align 8
%48 = load i32, ptr %22, align 4
%49 = load i32, ptr %23, align 4
%50 = load i32, ptr %24, align 4
%51 = call i32 @c_gamma_correct_channel_word16(float noundef %40, i32 noundef %41, i32 noundef %42, ptr noundef %43, i32 noundef %44, i32 noundef %45, i32 noundef %46, ptr noundef %47, i32 noundef %48, i32 noundef %49, i32 noundef %50)
br label %78
52: ; preds = %12
%53 = load float, ptr %14, align 4
%54 = load i32, ptr %15, align 4
%55 = load i32, ptr %16, align 4
%56 = load ptr, ptr %17, align 8
%57 = load i32, ptr %18, align 4
%58 = load i32, ptr %19, align 4
%59 = load i32, ptr %20, align 4
%60 = load ptr, ptr %21, align 8
%61 = load i32, ptr %22, align 4
%62 = load i32, ptr %23, align 4
%63 = load i32, ptr %24, align 4
%64 = call i32 @c_gamma_correct_channel_word32(float noundef %53, i32 noundef %54, i32 noundef %55, ptr noundef %56, i32 noundef %57, i32 noundef %58, i32 noundef %59, ptr noundef %60, i32 noundef %61, i32 noundef %62, i32 noundef %63)
br label %78
65: ; preds = %12
%66 = load float, ptr %14, align 4
%67 = load i32, ptr %15, align 4
%68 = load i32, ptr %16, align 4
%69 = load ptr, ptr %17, align 8
%70 = load i32, ptr %18, align 4
%71 = load i32, ptr %19, align 4
%72 = load i32, ptr %20, align 4
%73 = load ptr, ptr %21, align 8
%74 = load i32, ptr %22, align 4
%75 = load i32, ptr %23, align 4
%76 = load i32, ptr %24, align 4
%77 = call i32 @c_gamma_correct_channel_float(float noundef %66, i32 noundef %67, i32 noundef %68, ptr noundef %69, i32 noundef %70, i32 noundef %71, i32 noundef %72, ptr noundef %73, i32 noundef %74, i32 noundef %75, i32 noundef %76)
br label %78
78: ; preds = %65, %52, %39, %26, %12
ret void
}
declare i32 @c_gamma_correct_channel_word8(float noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @c_gamma_correct_channel_word16(float noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @c_gamma_correct_channel_word32(float noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @c_gamma_correct_channel_float(float noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9airy0nb.c'
source_filename = "/tmp/tmp9airy0nb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGSEGV = dso_local global i32 0, align 4
@SIGABRT = dso_local global i32 0, align 4
@PR_SET_PTRACER = dso_local global i32 0, align 4
@PR_SET_PTRACER_ANY = dso_local global i32 0, align 4
@SIGSTOP = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [44 x i8] c"gdb _dummy_process_name_ \00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"mate-terminal\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"-e\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gdb(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [100 x i8], align 16
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%10 = load i32, ptr %2, align 4
%11 = load i32, ptr @SIGSEGV, align 4
%12 = icmp eq i32 %10, %11
br i1 %12, label %17, label %13
13: ; preds = %1
%14 = load i32, ptr %2, align 4
%15 = load i32, ptr @SIGABRT, align 4
%16 = icmp eq i32 %14, %15
br i1 %16, label %17, label %81
17: ; preds = %13, %1
%18 = call i32 (...) @fork()
store i32 %18, ptr %3, align 4
%19 = load i32, ptr %3, align 4
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %22
21: ; preds = %17
br label %81
22: ; preds = %17
%23 = load i32, ptr %3, align 4
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %31
25: ; preds = %22
%26 = load i32, ptr @PR_SET_PTRACER, align 4
%27 = load i32, ptr @PR_SET_PTRACER_ANY, align 4
%28 = call i32 @prctl(i32 noundef %26, i32 noundef %27, i32 noundef 0, i32 noundef 0, i32 noundef 0)
%29 = load i32, ptr @SIGSTOP, align 4
%30 = call i32 @raise(i32 noundef %29)
br label %79
31: ; preds = %22
store ptr @.str, ptr %5, align 8
%32 = load ptr, ptr %5, align 8
store ptr %32, ptr %6, align 8
%33 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 0
store ptr %33, ptr %7, align 8
br label %34
34: ; preds = %38, %31
%35 = load ptr, ptr %6, align 8
%36 = load i8, ptr %35, align 1
%37 = icmp ne i8 %36, 0
br i1 %37, label %38, label %44
38: ; preds = %34
%39 = load ptr, ptr %6, align 8
%40 = getelementptr inbounds i8, ptr %39, i32 1
store ptr %40, ptr %6, align 8
%41 = load i8, ptr %39, align 1
%42 = load ptr, ptr %7, align 8
%43 = getelementptr inbounds i8, ptr %42, i32 1
store ptr %43, ptr %7, align 8
store i8 %41, ptr %42, align 1
br label %34, !llvm.loop !6
44: ; preds = %34
%45 = load ptr, ptr %7, align 8
%46 = getelementptr inbounds i8, ptr %45, i32 -1
store ptr %46, ptr %7, align 8
store i8 0, ptr %45, align 1
%47 = load ptr, ptr %7, align 8
store ptr %47, ptr %8, align 8
%48 = call i32 (...) @getppid()
store i32 %48, ptr %9, align 4
br label %49
49: ; preds = %68, %44
%50 = load i32, ptr %9, align 4
%51 = icmp ne i32 %50, 0
br i1 %51, label %52, label %73
52: ; preds = %49
%53 = load i32, ptr %9, align 4
%54 = and i32 %53, 15
%55 = add nsw i32 %54, 48
%56 = trunc i32 %55 to i8
%57 = load ptr, ptr %8, align 8
store i8 %56, ptr %57, align 1
%58 = load ptr, ptr %8, align 8
%59 = load i8, ptr %58, align 1
%60 = sext i8 %59 to i32
%61 = icmp sgt i32 %60, 57
br i1 %61, label %62, label %68
62: ; preds = %52
%63 = load ptr, ptr %8, align 8
%64 = load i8, ptr %63, align 1
%65 = sext i8 %64 to i32
%66 = add nsw i32 %65, 39
%67 = trunc i32 %66 to i8
store i8 %67, ptr %63, align 1
br label %68
68: ; preds = %62, %52
%69 = load ptr, ptr %8, align 8
%70 = getelementptr inbounds i8, ptr %69, i32 -1
store ptr %70, ptr %8, align 8
%71 = load i32, ptr %9, align 4
%72 = ashr i32 %71, 4
store i32 %72, ptr %9, align 4
br label %49, !llvm.loop !8
73: ; preds = %49
%74 = load ptr, ptr %8, align 8
%75 = getelementptr inbounds i8, ptr %74, i32 -1
store ptr %75, ptr %8, align 8
store i8 120, ptr %74, align 1
%76 = load ptr, ptr %8, align 8
store i8 48, ptr %76, align 1
%77 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 0
%78 = call i32 @execlp(ptr noundef @.str.1, ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef %77, ptr noundef null)
br label %79
79: ; preds = %73, %25
br label %80
80: ; preds = %79
br label %81
81: ; preds = %21, %80, %13
ret void
}
declare i32 @fork(...) #1
declare i32 @prctl(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @raise(i32 noundef) #1
declare i32 @getppid(...) #1
declare i32 @execlp(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9airy0nb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGSEGV = dso_local global i32 0, align 4
@SIGABRT = dso_local global i32 0, align 4
@PR_SET_PTRACER = dso_local global i32 0, align 4
@PR_SET_PTRACER_ANY = dso_local global i32 0, align 4
@SIGSTOP = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [44 x i8] c"gdb _dummy_process_name_ \00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"mate-terminal\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"-e\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gdb(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [100 x i8], align 16
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%10 = load i32, ptr %2, align 4
%11 = load i32, ptr @SIGSEGV, align 4
%12 = icmp eq i32 %10, %11
br i1 %12, label %17, label %13
13: ; preds = %1
%14 = load i32, ptr %2, align 4
%15 = load i32, ptr @SIGABRT, align 4
%16 = icmp eq i32 %14, %15
br i1 %16, label %17, label %84
17: ; preds = %13, %1
%18 = call i32 (...) @fork()
store i32 %18, ptr %3, align 4
%19 = load i32, ptr %3, align 4
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %22
21: ; preds = %17
br label %84
22: ; preds = %17
%23 = load i32, ptr %3, align 4
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %31
25: ; preds = %22
%26 = load i32, ptr @PR_SET_PTRACER, align 4
%27 = load i32, ptr @PR_SET_PTRACER_ANY, align 4
%28 = call i32 @prctl(i32 noundef %26, i32 noundef %27, i32 noundef 0, i32 noundef 0, i32 noundef 0)
%29 = load i32, ptr @SIGSTOP, align 4
%30 = call i32 @raise(i32 noundef %29)
br label %82
31: ; preds = %22
store ptr @.str, ptr %5, align 8
%32 = load ptr, ptr %5, align 8
store ptr %32, ptr %6, align 8
%33 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 0
store ptr %33, ptr %7, align 8
%34 = load ptr, ptr %6, align 8
%35 = load i8, ptr %34, align 1
%36 = icmp ne i8 %35, 0
br i1 %36, label %.lr.ph, label %46
.lr.ph: ; preds = %31
br label %37
37: ; preds = %.lr.ph, %37
%38 = load ptr, ptr %6, align 8
%39 = getelementptr inbounds i8, ptr %38, i32 1
store ptr %39, ptr %6, align 8
%40 = load i8, ptr %38, align 1
%41 = load ptr, ptr %7, align 8
%42 = getelementptr inbounds i8, ptr %41, i32 1
store ptr %42, ptr %7, align 8
store i8 %40, ptr %41, align 1
%43 = load ptr, ptr %6, align 8
%44 = load i8, ptr %43, align 1
%45 = icmp ne i8 %44, 0
br i1 %45, label %37, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %37
br label %46
46: ; preds = %._crit_edge, %31
%47 = load ptr, ptr %7, align 8
%48 = getelementptr inbounds i8, ptr %47, i32 -1
store ptr %48, ptr %7, align 8
store i8 0, ptr %47, align 1
%49 = load ptr, ptr %7, align 8
store ptr %49, ptr %8, align 8
%50 = call i32 (...) @getppid()
store i32 %50, ptr %9, align 4
%51 = load i32, ptr %9, align 4
%52 = icmp ne i32 %51, 0
br i1 %52, label %.lr.ph2, label %76
.lr.ph2: ; preds = %46
br label %53
53: ; preds = %.lr.ph2, %69
%54 = load i32, ptr %9, align 4
%55 = and i32 %54, 15
%56 = add nsw i32 %55, 48
%57 = trunc i32 %56 to i8
%58 = load ptr, ptr %8, align 8
store i8 %57, ptr %58, align 1
%59 = load ptr, ptr %8, align 8
%60 = load i8, ptr %59, align 1
%61 = sext i8 %60 to i32
%62 = icmp sgt i32 %61, 57
br i1 %62, label %63, label %69
63: ; preds = %53
%64 = load ptr, ptr %8, align 8
%65 = load i8, ptr %64, align 1
%66 = sext i8 %65 to i32
%67 = add nsw i32 %66, 39
%68 = trunc i32 %67 to i8
store i8 %68, ptr %64, align 1
br label %69
69: ; preds = %63, %53
%70 = load ptr, ptr %8, align 8
%71 = getelementptr inbounds i8, ptr %70, i32 -1
store ptr %71, ptr %8, align 8
%72 = load i32, ptr %9, align 4
%73 = ashr i32 %72, 4
store i32 %73, ptr %9, align 4
%74 = load i32, ptr %9, align 4
%75 = icmp ne i32 %74, 0
br i1 %75, label %53, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %69
br label %76
76: ; preds = %._crit_edge3, %46
%77 = load ptr, ptr %8, align 8
%78 = getelementptr inbounds i8, ptr %77, i32 -1
store ptr %78, ptr %8, align 8
store i8 120, ptr %77, align 1
%79 = load ptr, ptr %8, align 8
store i8 48, ptr %79, align 1
%80 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 0
%81 = call i32 @execlp(ptr noundef @.str.1, ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef %80, ptr noundef null)
br label %82
82: ; preds = %76, %25
br label %83
83: ; preds = %82
br label %84
84: ; preds = %83, %21, %13
ret void
}
declare i32 @fork(...) #1
declare i32 @prctl(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @raise(i32 noundef) #1
declare i32 @getppid(...) #1
declare i32 @execlp(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp_ilak_mn.c'
source_filename = "/tmp/tmp_ilak_mn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp ne i32 %6, 2
br i1 %7, label %8, label %13
8: ; preds = %2
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 0
%11 = load ptr, ptr %10, align 8
%12 = call i32 @usage(ptr noundef %11)
store i32 1, ptr %3, align 4
br label %18
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
%17 = call i32 @parse_file(ptr noundef %16)
store i32 %17, ptr %3, align 4
br label %18
18: ; preds = %13, %8
%19 = load i32, ptr %3, align 4
ret i32 %19
}
declare i32 @usage(ptr noundef) #1
declare i32 @parse_file(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!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_ilak_mn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp ne i32 %6, 2
br i1 %7, label %8, label %13
8: ; preds = %2
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 0
%11 = load ptr, ptr %10, align 8
%12 = call i32 @usage(ptr noundef %11)
store i32 1, ptr %3, align 4
br label %18
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
%17 = call i32 @parse_file(ptr noundef %16)
store i32 %17, ptr %3, align 4
br label %18
18: ; preds = %13, %8
%19 = load i32, ptr %3, align 4
ret i32 %19
}
declare i32 @usage(ptr noundef) #1
declare i32 @parse_file(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphwr3c8yi.c'
source_filename = "/tmp/tmphwr3c8yi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"stack trace:\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c" %p: %.32s\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"unknown func\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @stacktrace2(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = 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
%10 = load ptr, ptr %5, align 8
%11 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef @.str)
store i32 0, ptr %7, align 4
br label %12
12: ; preds = %43, %3
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp ult i32 %13, %14
br i1 %15, label %16, label %46
16: ; preds = %12
%17 = load ptr, ptr %6, align 8
%18 = getelementptr inbounds i32, ptr %17, i64 1
%19 = load i32, ptr %18, align 4
store i32 %19, ptr %8, align 4
%20 = load i32, ptr %8, align 4
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %16
br label %46
23: ; preds = %16
%24 = load ptr, ptr %6, align 8
%25 = getelementptr inbounds i32, ptr %24, i64 0
%26 = load i32, ptr %25, align 4
%27 = zext i32 %26 to i64
%28 = inttoptr i64 %27 to ptr
store ptr %28, ptr %6, align 8
%29 = load i32, ptr %8, align 4
%30 = call ptr @get_func_name(i32 noundef %29)
store ptr %30, ptr %9, align 8
%31 = load ptr, ptr %9, align 8
%32 = icmp ne ptr %31, null
br i1 %32, label %33, label %38
33: ; preds = %23
%34 = load ptr, ptr %5, align 8
%35 = load i32, ptr %8, align 4
%36 = load ptr, ptr %9, align 8
%37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef @.str.1, i32 noundef %35, ptr noundef %36)
br label %42
38: ; preds = %23
%39 = load ptr, ptr %5, align 8
%40 = load i32, ptr %8, align 4
%41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef @.str.1, i32 noundef %40, ptr noundef @.str.2)
br label %46
42: ; preds = %33
br label %43
43: ; preds = %42
%44 = load i32, ptr %7, align 4
%45 = add i32 %44, 1
store i32 %45, ptr %7, align 4
br label %12, !llvm.loop !6
46: ; preds = %38, %22, %12
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare ptr @get_func_name(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/tmphwr3c8yi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"stack trace:\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c" %p: %.32s\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"unknown func\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @stacktrace2(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = 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
%10 = load ptr, ptr %5, align 8
%11 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef @.str)
store i32 0, ptr %7, align 4
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %4, align 4
%14 = icmp ult i32 %12, %13
br i1 %14, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %3
br label %15
15: ; preds = %.lr.ph, %42
%16 = load ptr, ptr %6, align 8
%17 = getelementptr inbounds i32, ptr %16, i64 1
%18 = load i32, ptr %17, align 4
store i32 %18, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %15
br label %48
22: ; preds = %15
%23 = load ptr, ptr %6, align 8
%24 = getelementptr inbounds i32, ptr %23, i64 0
%25 = load i32, ptr %24, align 4
%26 = zext i32 %25 to i64
%27 = inttoptr i64 %26 to ptr
store ptr %27, ptr %6, align 8
%28 = load i32, ptr %8, align 4
%29 = call ptr @get_func_name(i32 noundef %28)
store ptr %29, ptr %9, align 8
%30 = load ptr, ptr %9, align 8
%31 = icmp ne ptr %30, null
br i1 %31, label %32, label %37
32: ; preds = %22
%33 = load ptr, ptr %5, align 8
%34 = load i32, ptr %8, align 4
%35 = load ptr, ptr %9, align 8
%36 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef @.str.1, i32 noundef %34, ptr noundef %35)
br label %41
37: ; preds = %22
%38 = load ptr, ptr %5, align 8
%39 = load i32, ptr %8, align 4
%40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef @.str.1, i32 noundef %39, ptr noundef @.str.2)
br label %48
41: ; preds = %32
br label %42
42: ; preds = %41
%43 = load i32, ptr %7, align 4
%44 = add i32 %43, 1
store i32 %44, ptr %7, align 4
%45 = load i32, ptr %7, align 4
%46 = load i32, ptr %4, align 4
%47 = icmp ult i32 %45, %46
br i1 %47, label %15, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %42
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %3
br label %48
48: ; preds = %.loopexit, %37, %21
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare ptr @get_func_name(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/tmp1zasvb94.c'
source_filename = "/tmp/tmp1zasvb94.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%10.4f\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"EXPTIME\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @dcraw_set_exposure(ptr noundef %0, float noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca float, align 4
%5 = alloca [64 x i8], align 16
store ptr %0, ptr %3, align 8
store float %1, ptr %4, align 4
%6 = load float, ptr %4, align 4
%7 = fpext float %6 to double
%8 = fcmp une double %7, 0.000000e+00
br i1 %8, label %9, label %16
9: ; preds = %2
%10 = getelementptr inbounds [64 x i8], ptr %5, i64 0, i64 0
%11 = load float, ptr %4, align 4
%12 = call i32 @snprintf(ptr noundef %10, i32 noundef 64, ptr noundef @.str, float noundef %11)
%13 = load ptr, ptr %3, align 8
%14 = getelementptr inbounds [64 x i8], ptr %5, i64 0, i64 0
%15 = call i32 @fits_add_keyword(ptr noundef %13, ptr noundef @.str.1, ptr noundef %14)
br label %16
16: ; preds = %9, %2
ret i32 0
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, float noundef) #1
declare i32 @fits_add_keyword(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1zasvb94.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%10.4f\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"EXPTIME\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @dcraw_set_exposure(ptr noundef %0, float noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca float, align 4
%5 = alloca [64 x i8], align 16
store ptr %0, ptr %3, align 8
store float %1, ptr %4, align 4
%6 = load float, ptr %4, align 4
%7 = fpext float %6 to double
%8 = fcmp une double %7, 0.000000e+00
br i1 %8, label %9, label %16
9: ; preds = %2
%10 = getelementptr inbounds [64 x i8], ptr %5, i64 0, i64 0
%11 = load float, ptr %4, align 4
%12 = call i32 @snprintf(ptr noundef %10, i32 noundef 64, ptr noundef @.str, float noundef %11)
%13 = load ptr, ptr %3, align 8
%14 = getelementptr inbounds [64 x i8], ptr %5, i64 0, i64 0
%15 = call i32 @fits_add_keyword(ptr noundef %13, ptr noundef @.str.1, ptr noundef %14)
br label %16
16: ; preds = %9, %2
ret i32 0
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, float noundef) #1
declare i32 @fits_add_keyword(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpj6b7kcfc.c'
source_filename = "/tmp/tmpj6b7kcfc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"%s: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @printer1(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
store ptr %5, ptr %4, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @printf(ptr noundef @.str, ptr noundef %6, i32 noundef 6)
%8 = load ptr, ptr %2, align 8
ret ptr %8
}
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj6b7kcfc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"%s: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @printer1(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
store ptr %5, ptr %4, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @printf(ptr noundef @.str, ptr noundef %6, i32 noundef 6)
%8 = load ptr, ptr %2, align 8
ret ptr %8
}
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"}
|
; ModuleID = '/tmp/tmpw6onr224.c'
source_filename = "/tmp/tmpw6onr224.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [36 x i8] c"After changing,the new number is %d\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"The number can't be changed.\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
store i32 0, ptr %1, align 4
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
%8 = load i32, ptr %6, align 4
%9 = sdiv i32 %8, 100
store i32 %9, ptr %4, align 4
%10 = load i32, ptr %6, align 4
%11 = srem i32 %10, 100
%12 = sdiv i32 %11, 10
store i32 %12, ptr %3, align 4
%13 = load i32, ptr %6, align 4
%14 = srem i32 %13, 10
store i32 %14, ptr %2, align 4
%15 = load i32, ptr %2, align 4
%16 = mul nsw i32 %15, 100
%17 = load i32, ptr %3, align 4
%18 = mul nsw i32 %17, 10
%19 = add nsw i32 %16, %18
%20 = load i32, ptr %4, align 4
%21 = add nsw i32 %19, %20
store i32 %21, ptr %5, align 4
%22 = load i32, ptr %2, align 4
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %0
%25 = load i32, ptr %5, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %25)
br label %29
27: ; preds = %0
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %29
29: ; preds = %27, %24
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw6onr224.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [36 x i8] c"After changing,the new number is %d\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"The number can't be changed.\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
store i32 0, ptr %1, align 4
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %6)
%8 = load i32, ptr %6, align 4
%9 = sdiv i32 %8, 100
store i32 %9, ptr %4, align 4
%10 = load i32, ptr %6, align 4
%11 = srem i32 %10, 100
%12 = sdiv i32 %11, 10
store i32 %12, ptr %3, align 4
%13 = load i32, ptr %6, align 4
%14 = srem i32 %13, 10
store i32 %14, ptr %2, align 4
%15 = load i32, ptr %2, align 4
%16 = mul nsw i32 %15, 100
%17 = load i32, ptr %3, align 4
%18 = mul nsw i32 %17, 10
%19 = add nsw i32 %16, %18
%20 = load i32, ptr %4, align 4
%21 = add nsw i32 %19, %20
store i32 %21, ptr %5, align 4
%22 = load i32, ptr %2, align 4
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %0
%25 = load i32, ptr %5, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %25)
br label %29
27: ; preds = %0
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %29
29: ; preds = %27, %24
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpekgjlejj.c'
source_filename = "/tmp/tmpekgjlejj.c"
target datalayout = "e-m:e-p270: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.authdes_cred = type { i32, i32, %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32, i32, i32 }
@FALSE = dso_local global i32 0, align 4
@MAXNETNAMELEN = dso_local global i32 0, align 4
@TRUE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @xdr_authdes_cred(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = load ptr, ptr %5, align 8
%8 = getelementptr inbounds %struct.authdes_cred, ptr %7, i32 0, i32 0
%9 = call i32 @xdr_enum(ptr noundef %6, ptr noundef %8)
%10 = icmp ne i32 %9, 0
br i1 %10, label %13, label %11
11: ; preds = %2
%12 = load i32, ptr @FALSE, align 4
store i32 %12, ptr %3, align 4
br label %62
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds %struct.authdes_cred, ptr %14, i32 0, i32 0
%16 = load i32, ptr %15, align 4
switch i32 %16, label %60 [
i32 129, label %17
i32 128, label %49
]
17: ; preds = %13
%18 = load ptr, ptr %4, align 8
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds %struct.authdes_cred, ptr %19, i32 0, i32 2
%21 = getelementptr inbounds %struct.TYPE_2__, ptr %20, i32 0, i32 2
%22 = load i32, ptr @MAXNETNAMELEN, align 4
%23 = call i32 @xdr_string(ptr noundef %18, ptr noundef %21, i32 noundef %22)
%24 = icmp ne i32 %23, 0
br i1 %24, label %27, label %25
25: ; preds = %17
%26 = load i32, ptr @FALSE, align 4
store i32 %26, ptr %3, align 4
br label %62
27: ; preds = %17
%28 = load ptr, ptr %4, align 8
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds %struct.authdes_cred, ptr %29, i32 0, i32 2
%31 = getelementptr inbounds %struct.TYPE_2__, ptr %30, i32 0, i32 1
%32 = ptrtoint ptr %31 to i32
%33 = call i32 @xdr_opaque(ptr noundef %28, i32 noundef %32, i32 noundef 4)
%34 = icmp ne i32 %33, 0
br i1 %34, label %37, label %35
35: ; preds = %27
%36 = load i32, ptr @FALSE, align 4
store i32 %36, ptr %3, align 4
br label %62
37: ; preds = %27
%38 = load ptr, ptr %4, align 8
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds %struct.authdes_cred, ptr %39, i32 0, i32 2
%41 = getelementptr inbounds %struct.TYPE_2__, ptr %40, i32 0, i32 0
%42 = ptrtoint ptr %41 to i32
%43 = call i32 @xdr_opaque(ptr noundef %38, i32 noundef %42, i32 noundef 4)
%44 = icmp ne i32 %43, 0
br i1 %44, label %47, label %45
45: ; preds = %37
%46 = load i32, ptr @FALSE, align 4
store i32 %46, ptr %3, align 4
br label %62
47: ; preds = %37
%48 = load i32, ptr @TRUE, align 4
store i32 %48, ptr %3, align 4
br label %62
49: ; preds = %13
%50 = load ptr, ptr %4, align 8
%51 = load ptr, ptr %5, align 8
%52 = getelementptr inbounds %struct.authdes_cred, ptr %51, i32 0, i32 1
%53 = ptrtoint ptr %52 to i32
%54 = call i32 @xdr_opaque(ptr noundef %50, i32 noundef %53, i32 noundef 4)
%55 = icmp ne i32 %54, 0
br i1 %55, label %58, label %56
56: ; preds = %49
%57 = load i32, ptr @FALSE, align 4
store i32 %57, ptr %3, align 4
br label %62
58: ; preds = %49
%59 = load i32, ptr @TRUE, align 4
store i32 %59, ptr %3, align 4
br label %62
60: ; preds = %13
%61 = load i32, ptr @FALSE, align 4
store i32 %61, ptr %3, align 4
br label %62
62: ; preds = %60, %58, %56, %47, %45, %35, %25, %11
%63 = load i32, ptr %3, align 4
ret i32 %63
}
declare i32 @xdr_enum(ptr noundef, ptr noundef) #1
declare i32 @xdr_string(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @xdr_opaque(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/tmpekgjlejj.c"
target datalayout = "e-m:e-p270: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.authdes_cred = type { i32, i32, %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32, i32, i32 }
@FALSE = dso_local global i32 0, align 4
@MAXNETNAMELEN = dso_local global i32 0, align 4
@TRUE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @xdr_authdes_cred(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = load ptr, ptr %5, align 8
%8 = getelementptr inbounds %struct.authdes_cred, ptr %7, i32 0, i32 0
%9 = call i32 @xdr_enum(ptr noundef %6, ptr noundef %8)
%10 = icmp ne i32 %9, 0
br i1 %10, label %13, label %11
11: ; preds = %2
%12 = load i32, ptr @FALSE, align 4
store i32 %12, ptr %3, align 4
br label %62
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds %struct.authdes_cred, ptr %14, i32 0, i32 0
%16 = load i32, ptr %15, align 4
switch i32 %16, label %60 [
i32 129, label %17
i32 128, label %49
]
17: ; preds = %13
%18 = load ptr, ptr %4, align 8
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds %struct.authdes_cred, ptr %19, i32 0, i32 2
%21 = getelementptr inbounds %struct.TYPE_2__, ptr %20, i32 0, i32 2
%22 = load i32, ptr @MAXNETNAMELEN, align 4
%23 = call i32 @xdr_string(ptr noundef %18, ptr noundef %21, i32 noundef %22)
%24 = icmp ne i32 %23, 0
br i1 %24, label %27, label %25
25: ; preds = %17
%26 = load i32, ptr @FALSE, align 4
store i32 %26, ptr %3, align 4
br label %62
27: ; preds = %17
%28 = load ptr, ptr %4, align 8
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds %struct.authdes_cred, ptr %29, i32 0, i32 2
%31 = getelementptr inbounds %struct.TYPE_2__, ptr %30, i32 0, i32 1
%32 = ptrtoint ptr %31 to i32
%33 = call i32 @xdr_opaque(ptr noundef %28, i32 noundef %32, i32 noundef 4)
%34 = icmp ne i32 %33, 0
br i1 %34, label %37, label %35
35: ; preds = %27
%36 = load i32, ptr @FALSE, align 4
store i32 %36, ptr %3, align 4
br label %62
37: ; preds = %27
%38 = load ptr, ptr %4, align 8
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds %struct.authdes_cred, ptr %39, i32 0, i32 2
%41 = getelementptr inbounds %struct.TYPE_2__, ptr %40, i32 0, i32 0
%42 = ptrtoint ptr %41 to i32
%43 = call i32 @xdr_opaque(ptr noundef %38, i32 noundef %42, i32 noundef 4)
%44 = icmp ne i32 %43, 0
br i1 %44, label %47, label %45
45: ; preds = %37
%46 = load i32, ptr @FALSE, align 4
store i32 %46, ptr %3, align 4
br label %62
47: ; preds = %37
%48 = load i32, ptr @TRUE, align 4
store i32 %48, ptr %3, align 4
br label %62
49: ; preds = %13
%50 = load ptr, ptr %4, align 8
%51 = load ptr, ptr %5, align 8
%52 = getelementptr inbounds %struct.authdes_cred, ptr %51, i32 0, i32 1
%53 = ptrtoint ptr %52 to i32
%54 = call i32 @xdr_opaque(ptr noundef %50, i32 noundef %53, i32 noundef 4)
%55 = icmp ne i32 %54, 0
br i1 %55, label %58, label %56
56: ; preds = %49
%57 = load i32, ptr @FALSE, align 4
store i32 %57, ptr %3, align 4
br label %62
58: ; preds = %49
%59 = load i32, ptr @TRUE, align 4
store i32 %59, ptr %3, align 4
br label %62
60: ; preds = %13
%61 = load i32, ptr @FALSE, align 4
store i32 %61, ptr %3, align 4
br label %62
62: ; preds = %60, %58, %56, %47, %45, %35, %25, %11
%63 = load i32, ptr %3, align 4
ret i32 %63
}
declare i32 @xdr_enum(ptr noundef, ptr noundef) #1
declare i32 @xdr_string(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @xdr_opaque(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/tmp5lrsc5jb.c'
source_filename = "/tmp/tmp5lrsc5jb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tit_for_error(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 ptr @tit_node_ignore_any_overlay(ptr noundef %3)
ret ptr %4
}
declare ptr @tit_node_ignore_any_overlay(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5lrsc5jb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tit_for_error(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 ptr @tit_node_ignore_any_overlay(ptr noundef %3)
ret ptr %4
}
declare ptr @tit_node_ignore_any_overlay(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjzvt0wtp.c'
source_filename = "/tmp/tmpjzvt0wtp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @is_marked_packet(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = icmp sgt i32 %5, 13
br i1 %6, label %7, label %14
7: ; preds = %2
%8 = load ptr, ptr %3, align 8
%9 = getelementptr inbounds i8, ptr %8, i64 13
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp eq i32 %11, 90
%13 = zext i1 %12 to i32
br label %15
14: ; preds = %2
br label %15
15: ; preds = %14, %7
%16 = phi i32 [ %13, %7 ], [ 0, %14 ]
ret i32 %16
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjzvt0wtp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @is_marked_packet(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = icmp sgt i32 %5, 13
br i1 %6, label %7, label %14
7: ; preds = %2
%8 = load ptr, ptr %3, align 8
%9 = getelementptr inbounds i8, ptr %8, i64 13
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp eq i32 %11, 90
%13 = zext i1 %12 to i32
br label %15
14: ; preds = %2
br label %15
15: ; preds = %14, %7
%16 = phi i32 [ %13, %7 ], [ 0, %14 ]
ret i32 %16
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp35y6yeu_.c'
source_filename = "/tmp/tmp35y6yeu_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [60 x i32], align 16
%3 = alloca [60 x i32], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 240, i1 false)
store i32 -1, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 1, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
store i32 0, ptr %10, align 4
br label %11
11: ; preds = %18, %0
%12 = load i32, ptr %10, align 4
%13 = icmp slt i32 %12, 60
br i1 %13, label %14, label %21
14: ; preds = %11
%15 = load i32, ptr %10, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [60 x i32], ptr %2, i64 0, i64 %16
store i32 -1, ptr %17, align 4
br label %18
18: ; preds = %14
%19 = load i32, ptr %10, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %10, align 4
br label %11, !llvm.loop !6
21: ; preds = %11
br label %22
22: ; preds = %30, %21
%23 = load i32, ptr %4, align 4
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %37
25: ; preds = %22
%26 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%27 = load i32, ptr %4, align 4
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %25
br label %37
30: ; preds = %25
%31 = load i32, ptr %4, align 4
%32 = sub nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [60 x i32], ptr %2, i64 0, i64 %33
store i32 1, ptr %34, align 4
%35 = load i32, ptr %8, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %8, align 4
br label %22, !llvm.loop !8
37: ; preds = %29, %22
br label %38
38: ; preds = %105, %37
%39 = load i32, ptr %7, align 4
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %106
41: ; preds = %38
store i32 0, ptr %5, align 4
store i32 0, ptr %9, align 4
store i32 -1, ptr %4, align 4
store i32 0, ptr %10, align 4
br label %42
42: ; preds = %53, %41
%43 = load i32, ptr %10, align 4
%44 = icmp slt i32 %43, 60
br i1 %44, label %45, label %56
45: ; preds = %42
%46 = load i32, ptr %10, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [60 x i32], ptr %2, i64 0, i64 %47
%49 = load i32, ptr %48, align 4
%50 = load i32, ptr %10, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [60 x i32], ptr %3, i64 0, i64 %51
store i32 %49, ptr %52, align 4
br label %53
53: ; preds = %45
%54 = load i32, ptr %10, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %10, align 4
br label %42, !llvm.loop !9
56: ; preds = %42
br label %57
57: ; preds = %97, %56
%58 = load i32, ptr %4, align 4
%59 = icmp ne i32 %58, 0
br i1 %59, label %60, label %98
60: ; preds = %57
%61 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%62 = load i32, ptr %5, align 4
%63 = icmp eq i32 %62, 0
br i1 %63, label %64, label %68
64: ; preds = %60
%65 = load i32, ptr %4, align 4
%66 = icmp eq i32 %65, 0
br i1 %66, label %67, label %68
67: ; preds = %64
store i32 0, ptr %7, align 4
br label %98
68: ; preds = %64, %60
%69 = load i32, ptr %4, align 4
%70 = icmp eq i32 %69, 0
br i1 %70, label %71, label %72
71: ; preds = %68
br label %98
72: ; preds = %68
%73 = load i32, ptr %5, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %5, align 4
%75 = load i32, ptr %4, align 4
%76 = sub nsw i32 %75, 1
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [60 x i32], ptr %3, i64 0, i64 %77
%79 = load i32, ptr %78, align 4
%80 = icmp eq i32 %79, 1
br i1 %80, label %81, label %88
81: ; preds = %72
%82 = load i32, ptr %9, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %9, align 4
%84 = load i32, ptr %4, align 4
%85 = sub nsw i32 %84, 1
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [60 x i32], ptr %3, i64 0, i64 %86
store i32 0, ptr %87, align 4
br label %97
88: ; preds = %72
%89 = load i32, ptr %4, align 4
%90 = sub nsw i32 %89, 1
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [60 x i32], ptr %3, i64 0, i64 %91
%93 = load i32, ptr %92, align 4
%94 = icmp eq i32 %93, -1
br i1 %94, label %95, label %96
95: ; preds = %88
store i32 0, ptr %9, align 4
br label %96
96: ; preds = %95, %88
br label %97
97: ; preds = %96, %81
br label %57, !llvm.loop !10
98: ; preds = %71, %67, %57
%99 = load i32, ptr %9, align 4
%100 = load i32, ptr %8, align 4
%101 = icmp eq i32 %99, %100
br i1 %101, label %102, label %105
102: ; preds = %98
%103 = load i32, ptr %6, align 4
%104 = add nsw i32 %103, 1
store i32 %104, ptr %6, align 4
br label %105
105: ; preds = %102, %98
br label %38, !llvm.loop !11
106: ; preds = %38
%107 = load i32, ptr %6, align 4
%108 = call i32 @printf(ptr noundef @.str, i32 noundef %107)
ret i32 0
}
; 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 @scanf(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: 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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp35y6yeu_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [60 x i32], align 16
%3 = alloca [60 x i32], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 240, i1 false)
store i32 -1, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 1, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
store i32 0, ptr %10, align 4
%11 = load i32, ptr %10, align 4
%12 = icmp slt i32 %11, 60
br i1 %12, label %.lr.ph, label %22
.lr.ph: ; preds = %0
br label %13
13: ; preds = %.lr.ph, %17
%14 = load i32, ptr %10, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [60 x i32], ptr %2, i64 0, i64 %15
store i32 -1, ptr %16, align 4
br label %17
17: ; preds = %13
%18 = load i32, ptr %10, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %10, align 4
%20 = load i32, ptr %10, align 4
%21 = icmp slt i32 %20, 60
br i1 %21, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %22
22: ; preds = %._crit_edge, %0
%23 = load i32, ptr %4, align 4
%24 = icmp ne i32 %23, 0
br i1 %24, label %.lr.ph3, label %.loopexit1
.lr.ph3: ; preds = %22
br label %25
25: ; preds = %.lr.ph3, %30
%26 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%27 = load i32, ptr %4, align 4
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %25
br label %39
30: ; preds = %25
%31 = load i32, ptr %4, align 4
%32 = sub nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [60 x i32], ptr %2, i64 0, i64 %33
store i32 1, ptr %34, align 4
%35 = load i32, ptr %8, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %8, align 4
%37 = load i32, ptr %4, align 4
%38 = icmp ne i32 %37, 0
br i1 %38, label %25, label %..loopexit1_crit_edge, !llvm.loop !8
..loopexit1_crit_edge: ; preds = %30
br label %.loopexit1
.loopexit1: ; preds = %..loopexit1_crit_edge, %22
br label %39
39: ; preds = %.loopexit1, %29
%40 = load i32, ptr %7, align 4
%41 = icmp ne i32 %40, 0
br i1 %41, label %.lr.ph10, label %111
.lr.ph10: ; preds = %39
br label %42
42: ; preds = %.lr.ph10, %108
store i32 0, ptr %5, align 4
store i32 0, ptr %9, align 4
store i32 -1, ptr %4, align 4
store i32 0, ptr %10, align 4
%43 = load i32, ptr %10, align 4
%44 = icmp slt i32 %43, 60
br i1 %44, label %.lr.ph5, label %58
.lr.ph5: ; preds = %42
br label %45
45: ; preds = %.lr.ph5, %53
%46 = load i32, ptr %10, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [60 x i32], ptr %2, i64 0, i64 %47
%49 = load i32, ptr %48, align 4
%50 = load i32, ptr %10, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [60 x i32], ptr %3, i64 0, i64 %51
store i32 %49, ptr %52, align 4
br label %53
53: ; preds = %45
%54 = load i32, ptr %10, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %10, align 4
%56 = load i32, ptr %10, align 4
%57 = icmp slt i32 %56, 60
br i1 %57, label %45, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %53
br label %58
58: ; preds = %._crit_edge6, %42
%59 = load i32, ptr %4, align 4
%60 = icmp ne i32 %59, 0
br i1 %60, label %.lr.ph8, label %.loopexit
.lr.ph8: ; preds = %58
br label %61
61: ; preds = %.lr.ph8, %98
%62 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
%63 = load i32, ptr %5, align 4
%64 = icmp eq i32 %63, 0
br i1 %64, label %65, label %69
65: ; preds = %61
%66 = load i32, ptr %4, align 4
%67 = icmp eq i32 %66, 0
br i1 %67, label %68, label %69
68: ; preds = %65
store i32 0, ptr %7, align 4
br label %101
69: ; preds = %65, %61
%70 = load i32, ptr %4, align 4
%71 = icmp eq i32 %70, 0
br i1 %71, label %72, label %73
72: ; preds = %69
br label %101
73: ; preds = %69
%74 = load i32, ptr %5, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %5, align 4
%76 = load i32, ptr %4, align 4
%77 = sub nsw i32 %76, 1
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [60 x i32], ptr %3, i64 0, i64 %78
%80 = load i32, ptr %79, align 4
%81 = icmp eq i32 %80, 1
br i1 %81, label %82, label %89
82: ; preds = %73
%83 = load i32, ptr %9, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %9, align 4
%85 = load i32, ptr %4, align 4
%86 = sub nsw i32 %85, 1
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [60 x i32], ptr %3, i64 0, i64 %87
store i32 0, ptr %88, align 4
br label %98
89: ; preds = %73
%90 = load i32, ptr %4, align 4
%91 = sub nsw i32 %90, 1
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [60 x i32], ptr %3, i64 0, i64 %92
%94 = load i32, ptr %93, align 4
%95 = icmp eq i32 %94, -1
br i1 %95, label %96, label %97
96: ; preds = %89
store i32 0, ptr %9, align 4
br label %97
97: ; preds = %96, %89
br label %98
98: ; preds = %97, %82
%99 = load i32, ptr %4, align 4
%100 = icmp ne i32 %99, 0
br i1 %100, label %61, label %..loopexit_crit_edge, !llvm.loop !10
..loopexit_crit_edge: ; preds = %98
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %58
br label %101
101: ; preds = %.loopexit, %72, %68
%102 = load i32, ptr %9, align 4
%103 = load i32, ptr %8, align 4
%104 = icmp eq i32 %102, %103
br i1 %104, label %105, label %108
105: ; preds = %101
%106 = load i32, ptr %6, align 4
%107 = add nsw i32 %106, 1
store i32 %107, ptr %6, align 4
br label %108
108: ; preds = %105, %101
%109 = load i32, ptr %7, align 4
%110 = icmp ne i32 %109, 0
br i1 %110, label %42, label %._crit_edge11, !llvm.loop !11
._crit_edge11: ; preds = %108
br label %111
111: ; preds = %._crit_edge11, %39
%112 = load i32, ptr %6, align 4
%113 = call i32 @printf(ptr noundef @.str, i32 noundef %112)
ret i32 0
}
; 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 @scanf(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: 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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmpwtlqh4rk.c'
source_filename = "/tmp/tmpwtlqh4rk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwtlqh4rk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsf11caur.c'
source_filename = "/tmp/tmpsf11caur.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"File error\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@SEEK_END = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [14 x i8] c"Memory error\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"Reading error\0A\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"file size: %ld\0A\00", align 1
@.str.5 = private unnamed_addr constant [24 x i8] c"Number of unichars: %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 ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 1
%13 = load ptr, ptr %12, align 8
%14 = call ptr @fopen(ptr noundef %13, ptr noundef @.str)
store ptr %14, ptr %6, align 8
%15 = load ptr, ptr %6, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %21
17: ; preds = %2
%18 = load i32, ptr @stderr, align 4
%19 = call i32 @fputs(ptr noundef @.str.1, i32 noundef %18)
%20 = call i32 @exit(i32 noundef 1) #3
unreachable
21: ; preds = %2
%22 = load ptr, ptr %6, align 8
%23 = load i32, ptr @SEEK_END, align 4
%24 = call i32 @fseek(ptr noundef %22, i32 noundef 0, i32 noundef %23)
%25 = load ptr, ptr %6, align 8
%26 = call i64 @ftell(ptr noundef %25)
store i64 %26, ptr %7, align 8
%27 = load ptr, ptr %6, align 8
%28 = call i32 @rewind(ptr noundef %27)
%29 = load i64, ptr %7, align 8
%30 = add nsw i64 %29, 1
%31 = mul i64 1, %30
%32 = trunc i64 %31 to i32
%33 = call i64 @malloc(i32 noundef %32)
%34 = inttoptr i64 %33 to ptr
store ptr %34, ptr %8, align 8
%35 = load ptr, ptr %8, align 8
%36 = icmp eq ptr %35, null
br i1 %36, label %37, label %41
37: ; preds = %21
%38 = load i32, ptr @stderr, align 4
%39 = call i32 @fputs(ptr noundef @.str.2, i32 noundef %38)
%40 = call i32 @exit(i32 noundef 2) #3
unreachable
41: ; preds = %21
%42 = load ptr, ptr %8, align 8
%43 = load i64, ptr %7, align 8
%44 = load ptr, ptr %6, align 8
%45 = call i64 @fread(ptr noundef %42, i32 noundef 1, i64 noundef %43, ptr noundef %44)
store i64 %45, ptr %9, align 8
%46 = load i64, ptr %9, align 8
%47 = load i64, ptr %7, align 8
%48 = icmp ne i64 %46, %47
br i1 %48, label %49, label %53
49: ; preds = %41
%50 = load i32, ptr @stderr, align 4
%51 = call i32 @fputs(ptr noundef @.str.3, i32 noundef %50)
%52 = call i32 @exit(i32 noundef 3) #3
unreachable
53: ; preds = %41
%54 = load ptr, ptr %8, align 8
%55 = load i64, ptr %7, align 8
%56 = getelementptr inbounds i8, ptr %54, i64 %55
store i8 0, ptr %56, align 1
%57 = load i64, ptr %7, align 8
%58 = trunc i64 %57 to i32
%59 = call i32 @printf(ptr noundef @.str.4, i32 noundef %58)
%60 = load ptr, ptr %8, align 8
%61 = call i32 @unichars(ptr noundef %60)
store i32 %61, ptr %10, align 4
%62 = load i32, ptr %10, align 4
%63 = call i32 @printf(ptr noundef @.str.5, i32 noundef %62)
%64 = load ptr, ptr %6, align 8
%65 = call i32 @fclose(ptr noundef %64)
%66 = load ptr, ptr %8, align 8
%67 = call i32 @free(ptr noundef %66)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fputs(ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare i32 @rewind(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i64 @fread(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @unichars(ptr noundef) #1
declare i32 @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" }
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/tmpsf11caur.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"File error\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@SEEK_END = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [14 x i8] c"Memory error\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"Reading error\0A\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"file size: %ld\0A\00", align 1
@.str.5 = private unnamed_addr constant [24 x i8] c"Number of unichars: %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 ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 1
%13 = load ptr, ptr %12, align 8
%14 = call ptr @fopen(ptr noundef %13, ptr noundef @.str)
store ptr %14, ptr %6, align 8
%15 = load ptr, ptr %6, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %21
17: ; preds = %2
%18 = load i32, ptr @stderr, align 4
%19 = call i32 @fputs(ptr noundef @.str.1, i32 noundef %18)
%20 = call i32 @exit(i32 noundef 1) #3
unreachable
21: ; preds = %2
%22 = load ptr, ptr %6, align 8
%23 = load i32, ptr @SEEK_END, align 4
%24 = call i32 @fseek(ptr noundef %22, i32 noundef 0, i32 noundef %23)
%25 = load ptr, ptr %6, align 8
%26 = call i64 @ftell(ptr noundef %25)
store i64 %26, ptr %7, align 8
%27 = load ptr, ptr %6, align 8
%28 = call i32 @rewind(ptr noundef %27)
%29 = load i64, ptr %7, align 8
%30 = add nsw i64 %29, 1
%31 = mul i64 1, %30
%32 = trunc i64 %31 to i32
%33 = call i64 @malloc(i32 noundef %32)
%34 = inttoptr i64 %33 to ptr
store ptr %34, ptr %8, align 8
%35 = load ptr, ptr %8, align 8
%36 = icmp eq ptr %35, null
br i1 %36, label %37, label %41
37: ; preds = %21
%38 = load i32, ptr @stderr, align 4
%39 = call i32 @fputs(ptr noundef @.str.2, i32 noundef %38)
%40 = call i32 @exit(i32 noundef 2) #3
unreachable
41: ; preds = %21
%42 = load ptr, ptr %8, align 8
%43 = load i64, ptr %7, align 8
%44 = load ptr, ptr %6, align 8
%45 = call i64 @fread(ptr noundef %42, i32 noundef 1, i64 noundef %43, ptr noundef %44)
store i64 %45, ptr %9, align 8
%46 = load i64, ptr %9, align 8
%47 = load i64, ptr %7, align 8
%48 = icmp ne i64 %46, %47
br i1 %48, label %49, label %53
49: ; preds = %41
%50 = load i32, ptr @stderr, align 4
%51 = call i32 @fputs(ptr noundef @.str.3, i32 noundef %50)
%52 = call i32 @exit(i32 noundef 3) #3
unreachable
53: ; preds = %41
%54 = load ptr, ptr %8, align 8
%55 = load i64, ptr %7, align 8
%56 = getelementptr inbounds i8, ptr %54, i64 %55
store i8 0, ptr %56, align 1
%57 = load i64, ptr %7, align 8
%58 = trunc i64 %57 to i32
%59 = call i32 @printf(ptr noundef @.str.4, i32 noundef %58)
%60 = load ptr, ptr %8, align 8
%61 = call i32 @unichars(ptr noundef %60)
store i32 %61, ptr %10, align 4
%62 = load i32, ptr %10, align 4
%63 = call i32 @printf(ptr noundef @.str.5, i32 noundef %62)
%64 = load ptr, ptr %6, align 8
%65 = call i32 @fclose(ptr noundef %64)
%66 = load ptr, ptr %8, align 8
%67 = call i32 @free(ptr noundef %66)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fputs(ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare i32 @rewind(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i64 @fread(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @unichars(ptr noundef) #1
declare i32 @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" }
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/tmptd7755ot.c'
source_filename = "/tmp/tmptd7755ot.c"
target datalayout = "e-m:e-p270: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/tmptd7755ot.c"
target datalayout = "e-m:e-p270: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/tmpm7ud_pg1.c'
source_filename = "/tmp/tmpm7ud_pg1.c"
target datalayout = "e-m:e-p270: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/tmpm7ud_pg1.c"
target datalayout = "e-m:e-p270: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_8jw5fs9.c'
source_filename = "/tmp/tmp_8jw5fs9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [53 x i8] c"Atribui os valores %c, %d e %f as minhas variaveis!\0A\00", align 1
@.str.1 = private unnamed_addr constant [48 x i8] c"Aritmetica com int (+ - * / 3): %d, %d, %d, %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [50 x i8] c"Aritmetica com float (+ - * / 3): %f, %f, %f, %f\0A\00", align 1
@.str.3 = private unnamed_addr constant [49 x i8] c"Aritmetica com char (+ - * / 3): %c, %c, %c, %c\0A\00", align 1
@.str.4 = private unnamed_addr constant [49 x i8] c"Aritmetica com char (+ - * / 3): %d, %d, %d, %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [62 x i8] c"Teste de conversao de tipos de dados: %f, %d, %f, %d, %f, %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [62 x i8] c"Tesde de divisao inteira de %d por 7: quociente=%d, resto=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca i8, align 1
%4 = alloca i8, align 1
%5 = alloca i8, align 1
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca float, align 4
%13 = alloca float, align 4
store i32 0, ptr %1, align 4
store i8 100, ptr %2, align 1
store i32 50, ptr %6, align 4
store float 5.000000e+01, ptr %10, align 4
%14 = load i8, ptr %2, align 1
%15 = sext i8 %14 to i32
%16 = load i32, ptr %6, align 4
%17 = load float, ptr %10, align 4
%18 = fptosi float %17 to i32
%19 = call i32 (ptr, i32, i32, i32, ...) @printf(ptr noundef @.str, i32 noundef %15, i32 noundef %16, i32 noundef %18)
%20 = load i32, ptr %6, align 4
%21 = add nsw i32 %20, 3
%22 = load i32, ptr %6, align 4
%23 = sub nsw i32 %22, 3
%24 = load i32, ptr %6, align 4
%25 = mul nsw i32 %24, 3
%26 = load i32, ptr %6, align 4
%27 = sdiv i32 %26, 3
%28 = call i32 (ptr, i32, i32, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %21, i32 noundef %23, i32 noundef %25, i32 noundef %27)
%29 = load float, ptr %10, align 4
%30 = fadd float %29, 3.000000e+00
%31 = fptosi float %30 to i32
%32 = load float, ptr %10, align 4
%33 = fsub float %32, 3.000000e+00
%34 = fptosi float %33 to i32
%35 = load float, ptr %10, align 4
%36 = fmul float %35, 3.000000e+00
%37 = fptosi float %36 to i32
%38 = load float, ptr %10, align 4
%39 = fdiv float %38, 3.000000e+00
%40 = fpext float %39 to double
%41 = call i32 (ptr, i32, i32, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %31, i32 noundef %34, i32 noundef %37, double noundef %40)
%42 = load i8, ptr %2, align 1
%43 = sext i8 %42 to i32
%44 = add nsw i32 %43, 3
%45 = load i8, ptr %2, align 1
%46 = sext i8 %45 to i32
%47 = sub nsw i32 %46, 3
%48 = load i8, ptr %2, align 1
%49 = sext i8 %48 to i32
%50 = mul nsw i32 %49, 3
%51 = load i8, ptr %2, align 1
%52 = sext i8 %51 to i32
%53 = sdiv i32 %52, 3
%54 = call i32 (ptr, i32, i32, i32, ...) @printf(ptr noundef @.str.3, i32 noundef %44, i32 noundef %47, i32 noundef %50, i32 noundef %53)
%55 = load i8, ptr %2, align 1
%56 = sext i8 %55 to i32
%57 = add nsw i32 %56, 3
%58 = load i8, ptr %2, align 1
%59 = sext i8 %58 to i32
%60 = sub nsw i32 %59, 3
%61 = load i8, ptr %2, align 1
%62 = sext i8 %61 to i32
%63 = mul nsw i32 %62, 3
%64 = load i8, ptr %2, align 1
%65 = sext i8 %64 to i32
%66 = sdiv i32 %65, 3
%67 = call i32 (ptr, i32, i32, i32, ...) @printf(ptr noundef @.str.4, i32 noundef %57, i32 noundef %60, i32 noundef %63, i32 noundef %66)
store i32 163, ptr %6, align 4
%68 = load i32, ptr %6, align 4
%69 = sitofp i32 %68 to float
%70 = load float, ptr %10, align 4
%71 = fdiv float %69, %70
store float %71, ptr %11, align 4
%72 = load i32, ptr %6, align 4
%73 = sitofp i32 %72 to float
%74 = load float, ptr %10, align 4
%75 = fdiv float %73, %74
%76 = fptosi float %75 to i32
store i32 %76, ptr %7, align 4
%77 = load i32, ptr %6, align 4
%78 = load float, ptr %10, align 4
%79 = fptosi float %78 to i32
%80 = sdiv i32 %77, %79
%81 = sitofp i32 %80 to float
store float %81, ptr %12, align 4
%82 = load i32, ptr %6, align 4
%83 = sitofp i32 %82 to float
%84 = load float, ptr %10, align 4
%85 = fdiv float %83, %84
%86 = fptosi float %85 to i32
store i32 %86, ptr %8, align 4
%87 = load i32, ptr %6, align 4
%88 = mul nsw i32 3, %87
%89 = sitofp i32 %88 to float
%90 = load float, ptr %10, align 4
%91 = fdiv float %89, %90
store float %91, ptr %13, align 4
%92 = load i32, ptr %6, align 4
%93 = mul nsw i32 3, %92
%94 = sitofp i32 %93 to float
%95 = load float, ptr %10, align 4
%96 = fdiv float %94, %95
%97 = fptosi float %96 to i32
store i32 %97, ptr %9, align 4
%98 = load float, ptr %11, align 4
%99 = fptosi float %98 to i32
%100 = load i32, ptr %7, align 4
%101 = load float, ptr %12, align 4
%102 = fptosi float %101 to i32
%103 = load i32, ptr %8, align 4
%104 = load float, ptr %13, align 4
%105 = fpext float %104 to double
%106 = load i32, ptr %9, align 4
%107 = call i32 (ptr, i32, i32, i32, ...) @printf(ptr noundef @.str.5, i32 noundef %99, i32 noundef %100, i32 noundef %102, i32 noundef %103, double noundef %105, i32 noundef %106)
%108 = load i32, ptr %6, align 4
%109 = load i32, ptr %6, align 4
%110 = sdiv i32 %109, 7
%111 = load i32, ptr %6, align 4
%112 = srem i32 %111, 7
%113 = call i32 (ptr, i32, i32, i32, ...) @printf(ptr noundef @.str.6, i32 noundef %108, i32 noundef %110, i32 noundef %112)
ret i32 0
}
declare i32 @printf(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/tmp_8jw5fs9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [53 x i8] c"Atribui os valores %c, %d e %f as minhas variaveis!\0A\00", align 1
@.str.1 = private unnamed_addr constant [48 x i8] c"Aritmetica com int (+ - * / 3): %d, %d, %d, %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [50 x i8] c"Aritmetica com float (+ - * / 3): %f, %f, %f, %f\0A\00", align 1
@.str.3 = private unnamed_addr constant [49 x i8] c"Aritmetica com char (+ - * / 3): %c, %c, %c, %c\0A\00", align 1
@.str.4 = private unnamed_addr constant [49 x i8] c"Aritmetica com char (+ - * / 3): %d, %d, %d, %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [62 x i8] c"Teste de conversao de tipos de dados: %f, %d, %f, %d, %f, %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [62 x i8] c"Tesde de divisao inteira de %d por 7: quociente=%d, resto=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca i8, align 1
%4 = alloca i8, align 1
%5 = alloca i8, align 1
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca float, align 4
%11 = alloca float, align 4
%12 = alloca float, align 4
%13 = alloca float, align 4
store i32 0, ptr %1, align 4
store i8 100, ptr %2, align 1
store i32 50, ptr %6, align 4
store float 5.000000e+01, ptr %10, align 4
%14 = load i8, ptr %2, align 1
%15 = sext i8 %14 to i32
%16 = load i32, ptr %6, align 4
%17 = load float, ptr %10, align 4
%18 = fptosi float %17 to i32
%19 = call i32 (ptr, i32, i32, i32, ...) @printf(ptr noundef @.str, i32 noundef %15, i32 noundef %16, i32 noundef %18)
%20 = load i32, ptr %6, align 4
%21 = add nsw i32 %20, 3
%22 = load i32, ptr %6, align 4
%23 = sub nsw i32 %22, 3
%24 = load i32, ptr %6, align 4
%25 = mul nsw i32 %24, 3
%26 = load i32, ptr %6, align 4
%27 = sdiv i32 %26, 3
%28 = call i32 (ptr, i32, i32, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %21, i32 noundef %23, i32 noundef %25, i32 noundef %27)
%29 = load float, ptr %10, align 4
%30 = fadd float %29, 3.000000e+00
%31 = fptosi float %30 to i32
%32 = load float, ptr %10, align 4
%33 = fsub float %32, 3.000000e+00
%34 = fptosi float %33 to i32
%35 = load float, ptr %10, align 4
%36 = fmul float %35, 3.000000e+00
%37 = fptosi float %36 to i32
%38 = load float, ptr %10, align 4
%39 = fdiv float %38, 3.000000e+00
%40 = fpext float %39 to double
%41 = call i32 (ptr, i32, i32, i32, ...) @printf(ptr noundef @.str.2, i32 noundef %31, i32 noundef %34, i32 noundef %37, double noundef %40)
%42 = load i8, ptr %2, align 1
%43 = sext i8 %42 to i32
%44 = add nsw i32 %43, 3
%45 = load i8, ptr %2, align 1
%46 = sext i8 %45 to i32
%47 = sub nsw i32 %46, 3
%48 = load i8, ptr %2, align 1
%49 = sext i8 %48 to i32
%50 = mul nsw i32 %49, 3
%51 = load i8, ptr %2, align 1
%52 = sext i8 %51 to i32
%53 = sdiv i32 %52, 3
%54 = call i32 (ptr, i32, i32, i32, ...) @printf(ptr noundef @.str.3, i32 noundef %44, i32 noundef %47, i32 noundef %50, i32 noundef %53)
%55 = load i8, ptr %2, align 1
%56 = sext i8 %55 to i32
%57 = add nsw i32 %56, 3
%58 = load i8, ptr %2, align 1
%59 = sext i8 %58 to i32
%60 = sub nsw i32 %59, 3
%61 = load i8, ptr %2, align 1
%62 = sext i8 %61 to i32
%63 = mul nsw i32 %62, 3
%64 = load i8, ptr %2, align 1
%65 = sext i8 %64 to i32
%66 = sdiv i32 %65, 3
%67 = call i32 (ptr, i32, i32, i32, ...) @printf(ptr noundef @.str.4, i32 noundef %57, i32 noundef %60, i32 noundef %63, i32 noundef %66)
store i32 163, ptr %6, align 4
%68 = load i32, ptr %6, align 4
%69 = sitofp i32 %68 to float
%70 = load float, ptr %10, align 4
%71 = fdiv float %69, %70
store float %71, ptr %11, align 4
%72 = load i32, ptr %6, align 4
%73 = sitofp i32 %72 to float
%74 = load float, ptr %10, align 4
%75 = fdiv float %73, %74
%76 = fptosi float %75 to i32
store i32 %76, ptr %7, align 4
%77 = load i32, ptr %6, align 4
%78 = load float, ptr %10, align 4
%79 = fptosi float %78 to i32
%80 = sdiv i32 %77, %79
%81 = sitofp i32 %80 to float
store float %81, ptr %12, align 4
%82 = load i32, ptr %6, align 4
%83 = sitofp i32 %82 to float
%84 = load float, ptr %10, align 4
%85 = fdiv float %83, %84
%86 = fptosi float %85 to i32
store i32 %86, ptr %8, align 4
%87 = load i32, ptr %6, align 4
%88 = mul nsw i32 3, %87
%89 = sitofp i32 %88 to float
%90 = load float, ptr %10, align 4
%91 = fdiv float %89, %90
store float %91, ptr %13, align 4
%92 = load i32, ptr %6, align 4
%93 = mul nsw i32 3, %92
%94 = sitofp i32 %93 to float
%95 = load float, ptr %10, align 4
%96 = fdiv float %94, %95
%97 = fptosi float %96 to i32
store i32 %97, ptr %9, align 4
%98 = load float, ptr %11, align 4
%99 = fptosi float %98 to i32
%100 = load i32, ptr %7, align 4
%101 = load float, ptr %12, align 4
%102 = fptosi float %101 to i32
%103 = load i32, ptr %8, align 4
%104 = load float, ptr %13, align 4
%105 = fpext float %104 to double
%106 = load i32, ptr %9, align 4
%107 = call i32 (ptr, i32, i32, i32, ...) @printf(ptr noundef @.str.5, i32 noundef %99, i32 noundef %100, i32 noundef %102, i32 noundef %103, double noundef %105, i32 noundef %106)
%108 = load i32, ptr %6, align 4
%109 = load i32, ptr %6, align 4
%110 = sdiv i32 %109, 7
%111 = load i32, ptr %6, align 4
%112 = srem i32 %111, 7
%113 = call i32 (ptr, i32, i32, i32, ...) @printf(ptr noundef @.str.6, i32 noundef %108, i32 noundef %110, i32 noundef %112)
ret i32 0
}
declare i32 @printf(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/tmpf78y74wl.c'
source_filename = "/tmp/tmpf78y74wl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"Enter the size of chess board: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"Enter the number of queens: \00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"YES\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"NO\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x [100 x i32]], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %6)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%10 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
store i32 0, ptr %3, align 4
br label %11
11: ; preds = %22, %0
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %6, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %25
15: ; preds = %11
%16 = load i32, ptr %3, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [100 x [100 x i32]], ptr %2, i64 0, i64 %17
%19 = getelementptr inbounds [100 x i32], ptr %18, i64 0, i64 0
%20 = load i32, ptr %6, align 4
%21 = call i32 @memset(ptr noundef %19, i32 noundef 0, i32 noundef %20)
br label %22
22: ; preds = %15
%23 = load i32, ptr %3, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %3, align 4
br label %11, !llvm.loop !6
25: ; preds = %11
%26 = getelementptr inbounds [100 x [100 x i32]], ptr %2, i64 0, i64 0
%27 = load i32, ptr %5, align 4
%28 = load i32, ptr %6, align 4
%29 = call i64 @n_queens(ptr noundef %26, i32 noundef %27, i32 noundef %28)
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %60
31: ; preds = %25
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %3, align 4
br label %33
33: ; preds = %55, %31
%34 = load i32, ptr %3, align 4
%35 = load i32, ptr %6, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %59
37: ; preds = %33
store i32 0, ptr %4, align 4
br label %38
38: ; preds = %51, %37
%39 = load i32, ptr %4, align 4
%40 = load i32, ptr %6, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %42, label %54
42: ; preds = %38
%43 = load i32, ptr %3, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [100 x [100 x i32]], ptr %2, i64 0, i64 %44
%46 = load i32, ptr %4, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [100 x i32], ptr %45, i64 0, i64 %47
%49 = load i32, ptr %48, align 4
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %49)
br label %51
51: ; preds = %42
%52 = load i32, ptr %4, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %4, align 4
br label %38, !llvm.loop !8
54: ; preds = %38
br label %55
55: ; preds = %54
%56 = load i32, ptr %3, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %3, align 4
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %33, !llvm.loop !9
59: ; preds = %33
br label %62
60: ; preds = %25
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %62
62: ; preds = %60, %59
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @n_queens(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf78y74wl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"Enter the size of chess board: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"Enter the number of queens: \00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"YES\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"NO\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x [100 x i32]], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %6)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%10 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
store i32 0, ptr %3, align 4
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %6, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %.lr.ph, label %27
.lr.ph: ; preds = %0
br label %14
14: ; preds = %.lr.ph, %21
%15 = load i32, ptr %3, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [100 x [100 x i32]], ptr %2, i64 0, i64 %16
%18 = getelementptr inbounds [100 x i32], ptr %17, i64 0, i64 0
%19 = load i32, ptr %6, align 4
%20 = call i32 @memset(ptr noundef %18, i32 noundef 0, i32 noundef %19)
br label %21
21: ; preds = %14
%22 = load i32, ptr %3, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %3, align 4
%24 = load i32, ptr %3, align 4
%25 = load i32, ptr %6, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %27
27: ; preds = %._crit_edge, %0
%28 = getelementptr inbounds [100 x [100 x i32]], ptr %2, i64 0, i64 0
%29 = load i32, ptr %5, align 4
%30 = load i32, ptr %6, align 4
%31 = call i64 @n_queens(ptr noundef %28, i32 noundef %29, i32 noundef %30)
%32 = icmp ne i64 %31, 0
br i1 %32, label %33, label %66
33: ; preds = %27
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %3, align 4
%35 = load i32, ptr %3, align 4
%36 = load i32, ptr %6, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %.lr.ph5, label %65
.lr.ph5: ; preds = %33
br label %38
38: ; preds = %.lr.ph5, %58
store i32 0, ptr %4, align 4
%39 = load i32, ptr %4, align 4
%40 = load i32, ptr %6, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %.lr.ph2, label %57
.lr.ph2: ; preds = %38
br label %42
42: ; preds = %.lr.ph2, %51
%43 = load i32, ptr %3, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [100 x [100 x i32]], ptr %2, i64 0, i64 %44
%46 = load i32, ptr %4, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [100 x i32], ptr %45, i64 0, i64 %47
%49 = load i32, ptr %48, align 4
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %49)
br label %51
51: ; preds = %42
%52 = load i32, ptr %4, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %4, align 4
%54 = load i32, ptr %4, align 4
%55 = load i32, ptr %6, align 4
%56 = icmp slt i32 %54, %55
br i1 %56, label %42, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %51
br label %57
57: ; preds = %._crit_edge3, %38
br label %58
58: ; preds = %57
%59 = load i32, ptr %3, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %3, align 4
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%62 = load i32, ptr %3, align 4
%63 = load i32, ptr %6, align 4
%64 = icmp slt i32 %62, %63
br i1 %64, label %38, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %58
br label %65
65: ; preds = %._crit_edge6, %33
br label %68
66: ; preds = %27
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %68
68: ; preds = %66, %65
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @n_queens(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp4w7bn0y3.c'
source_filename = "/tmp/tmp4w7bn0y3.c"
target datalayout = "e-m:e-p270: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/tmp4w7bn0y3.c"
target datalayout = "e-m:e-p270: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/tmpvoxjttyj.c'
source_filename = "/tmp/tmpvoxjttyj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"r\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [37 x i8] c"The file was not opened for reading\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @read_graphics(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i8, align 1
%15 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%16 = load ptr, ptr %6, align 8
%17 = call ptr @fopen(ptr noundef %16, ptr noundef @.str)
store ptr %17, ptr %11, align 8
%18 = load ptr, ptr %11, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %23
20: ; preds = %5
%21 = load i32, ptr @stderr, align 4
%22 = call i32 @fprintf(i32 noundef %21, ptr noundef @.str.1)
br label %105
23: ; preds = %5
store i32 0, ptr %12, align 4
br label %24
24: ; preds = %36, %23
%25 = load i32, ptr %12, align 4
%26 = icmp slt i32 %25, 3
br i1 %26, label %27, label %37
27: ; preds = %24
%28 = load ptr, ptr %11, align 8
%29 = call signext i8 @fgetc(ptr noundef %28)
store i8 %29, ptr %14, align 1
%30 = load i8, ptr %14, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 10
br i1 %32, label %33, label %36
33: ; preds = %27
%34 = load i32, ptr %12, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %12, align 4
br label %36
36: ; preds = %33, %27
br label %24, !llvm.loop !6
37: ; preds = %24
%38 = load i32, ptr %10, align 4
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %71
40: ; preds = %37
store i32 0, ptr %12, align 4
br label %41
41: ; preds = %67, %40
%42 = load i32, ptr %12, align 4
%43 = load i32, ptr %8, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %45, label %70
45: ; preds = %41
store i32 0, ptr %13, align 4
br label %46
46: ; preds = %63, %45
%47 = load i32, ptr %13, align 4
%48 = load i32, ptr %9, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %50, label %66
50: ; preds = %46
%51 = load ptr, ptr %11, align 8
%52 = call i32 @fscanf(ptr noundef %51, ptr noundef @.str.2, ptr noundef %15)
%53 = load i32, ptr %15, align 4
%54 = sitofp i32 %53 to float
%55 = load ptr, ptr %7, align 8
%56 = load i32, ptr %12, align 4
%57 = load i32, ptr %9, align 4
%58 = mul nsw i32 %56, %57
%59 = load i32, ptr %13, align 4
%60 = add nsw i32 %58, %59
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds float, ptr %55, i64 %61
store float %54, ptr %62, align 4
br label %63
63: ; preds = %50
%64 = load i32, ptr %13, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %13, align 4
br label %46, !llvm.loop !8
66: ; preds = %46
br label %67
67: ; preds = %66
%68 = load i32, ptr %12, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %12, align 4
br label %41, !llvm.loop !9
70: ; preds = %41
br label %102
71: ; preds = %37
store i32 0, ptr %12, align 4
br label %72
72: ; preds = %98, %71
%73 = load i32, ptr %12, align 4
%74 = load i32, ptr %8, align 4
%75 = icmp slt i32 %73, %74
br i1 %75, label %76, label %101
76: ; preds = %72
store i32 0, ptr %13, align 4
br label %77
77: ; preds = %94, %76
%78 = load i32, ptr %13, align 4
%79 = load i32, ptr %9, align 4
%80 = icmp slt i32 %78, %79
br i1 %80, label %81, label %97
81: ; preds = %77
%82 = load ptr, ptr %11, align 8
%83 = call i32 @fscanf(ptr noundef %82, ptr noundef @.str.2, ptr noundef %15)
%84 = load i32, ptr %15, align 4
%85 = sitofp i32 %84 to float
%86 = load ptr, ptr %7, align 8
%87 = load i32, ptr %13, align 4
%88 = load i32, ptr %8, align 4
%89 = mul nsw i32 %87, %88
%90 = load i32, ptr %12, align 4
%91 = add nsw i32 %89, %90
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds float, ptr %86, i64 %92
store float %85, ptr %93, align 4
br label %94
94: ; preds = %81
%95 = load i32, ptr %13, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %13, align 4
br label %77, !llvm.loop !10
97: ; preds = %77
br label %98
98: ; preds = %97
%99 = load i32, ptr %12, align 4
%100 = add nsw i32 %99, 1
store i32 %100, ptr %12, align 4
br label %72, !llvm.loop !11
101: ; preds = %72
br label %102
102: ; preds = %101, %70
%103 = load ptr, ptr %11, align 8
%104 = call i32 @fclose(ptr noundef %103)
br label %105
105: ; preds = %102, %20
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare signext i8 @fgetc(ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvoxjttyj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"r\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [37 x i8] c"The file was not opened for reading\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @read_graphics(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i8, align 1
%15 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%16 = load ptr, ptr %6, align 8
%17 = call ptr @fopen(ptr noundef %16, ptr noundef @.str)
store ptr %17, ptr %11, align 8
%18 = load ptr, ptr %11, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %23
20: ; preds = %5
%21 = load i32, ptr @stderr, align 4
%22 = call i32 @fprintf(i32 noundef %21, ptr noundef @.str.1)
br label %114
23: ; preds = %5
store i32 0, ptr %12, align 4
%24 = load i32, ptr %12, align 4
%25 = icmp slt i32 %24, 3
br i1 %25, label %.lr.ph, label %38
.lr.ph: ; preds = %23
br label %26
26: ; preds = %.lr.ph, %35
%27 = load ptr, ptr %11, align 8
%28 = call signext i8 @fgetc(ptr noundef %27)
store i8 %28, ptr %14, align 1
%29 = load i8, ptr %14, align 1
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 10
br i1 %31, label %32, label %35
32: ; preds = %26
%33 = load i32, ptr %12, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %12, align 4
br label %35
35: ; preds = %32, %26
%36 = load i32, ptr %12, align 4
%37 = icmp slt i32 %36, 3
br i1 %37, label %26, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %35
br label %38
38: ; preds = %._crit_edge, %23
%39 = load i32, ptr %10, align 4
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %76
41: ; preds = %38
store i32 0, ptr %12, align 4
%42 = load i32, ptr %12, align 4
%43 = load i32, ptr %8, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %.lr.ph11, label %75
.lr.ph11: ; preds = %41
br label %45
45: ; preds = %.lr.ph11, %69
store i32 0, ptr %13, align 4
%46 = load i32, ptr %13, align 4
%47 = load i32, ptr %9, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %.lr.ph8, label %68
.lr.ph8: ; preds = %45
br label %49
49: ; preds = %.lr.ph8, %62
%50 = load ptr, ptr %11, align 8
%51 = call i32 @fscanf(ptr noundef %50, ptr noundef @.str.2, ptr noundef %15)
%52 = load i32, ptr %15, align 4
%53 = sitofp i32 %52 to float
%54 = load ptr, ptr %7, align 8
%55 = load i32, ptr %12, align 4
%56 = load i32, ptr %9, align 4
%57 = mul nsw i32 %55, %56
%58 = load i32, ptr %13, align 4
%59 = add nsw i32 %57, %58
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds float, ptr %54, i64 %60
store float %53, ptr %61, align 4
br label %62
62: ; preds = %49
%63 = load i32, ptr %13, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %13, align 4
%65 = load i32, ptr %13, align 4
%66 = load i32, ptr %9, align 4
%67 = icmp slt i32 %65, %66
br i1 %67, label %49, label %._crit_edge9, !llvm.loop !8
._crit_edge9: ; preds = %62
br label %68
68: ; preds = %._crit_edge9, %45
br label %69
69: ; preds = %68
%70 = load i32, ptr %12, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %12, align 4
%72 = load i32, ptr %12, align 4
%73 = load i32, ptr %8, align 4
%74 = icmp slt i32 %72, %73
br i1 %74, label %45, label %._crit_edge12, !llvm.loop !9
._crit_edge12: ; preds = %69
br label %75
75: ; preds = %._crit_edge12, %41
br label %111
76: ; preds = %38
store i32 0, ptr %12, align 4
%77 = load i32, ptr %12, align 4
%78 = load i32, ptr %8, align 4
%79 = icmp slt i32 %77, %78
br i1 %79, label %.lr.ph5, label %110
.lr.ph5: ; preds = %76
br label %80
80: ; preds = %.lr.ph5, %104
store i32 0, ptr %13, align 4
%81 = load i32, ptr %13, align 4
%82 = load i32, ptr %9, align 4
%83 = icmp slt i32 %81, %82
br i1 %83, label %.lr.ph2, label %103
.lr.ph2: ; preds = %80
br label %84
84: ; preds = %.lr.ph2, %97
%85 = load ptr, ptr %11, align 8
%86 = call i32 @fscanf(ptr noundef %85, ptr noundef @.str.2, ptr noundef %15)
%87 = load i32, ptr %15, align 4
%88 = sitofp i32 %87 to float
%89 = load ptr, ptr %7, align 8
%90 = load i32, ptr %13, align 4
%91 = load i32, ptr %8, align 4
%92 = mul nsw i32 %90, %91
%93 = load i32, ptr %12, align 4
%94 = add nsw i32 %92, %93
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds float, ptr %89, i64 %95
store float %88, ptr %96, align 4
br label %97
97: ; preds = %84
%98 = load i32, ptr %13, align 4
%99 = add nsw i32 %98, 1
store i32 %99, ptr %13, align 4
%100 = load i32, ptr %13, align 4
%101 = load i32, ptr %9, align 4
%102 = icmp slt i32 %100, %101
br i1 %102, label %84, label %._crit_edge3, !llvm.loop !10
._crit_edge3: ; preds = %97
br label %103
103: ; preds = %._crit_edge3, %80
br label %104
104: ; preds = %103
%105 = load i32, ptr %12, align 4
%106 = add nsw i32 %105, 1
store i32 %106, ptr %12, align 4
%107 = load i32, ptr %12, align 4
%108 = load i32, ptr %8, align 4
%109 = icmp slt i32 %107, %108
br i1 %109, label %80, label %._crit_edge6, !llvm.loop !11
._crit_edge6: ; preds = %104
br label %110
110: ; preds = %._crit_edge6, %76
br label %111
111: ; preds = %110, %75
%112 = load ptr, ptr %11, align 8
%113 = call i32 @fclose(ptr noundef %112)
br label %114
114: ; preds = %111, %20
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare signext i8 @fgetc(ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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}
|
; ModuleID = '/tmp/tmpmzsqbu_h.c'
source_filename = "/tmp/tmpmzsqbu_h.c"
target datalayout = "e-m:e-p270: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/tmpmzsqbu_h.c"
target datalayout = "e-m:e-p270: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/tmp5qq8z5ie.c'
source_filename = "/tmp/tmp5qq8z5ie.c"
target datalayout = "e-m:e-p270: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/tmp5qq8z5ie.c"
target datalayout = "e-m:e-p270: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/tmpy7f2mdgk.c'
source_filename = "/tmp/tmpy7f2mdgk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_2__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_XLeaveWindowEvent_x(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds %struct.TYPE_2__, ptr %3, i32 0, i32 0
%5 = load i64, ptr %4, align 8
%6 = trunc i64 %5 to i32
ret i32 %6
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy7f2mdgk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_2__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_XLeaveWindowEvent_x(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds %struct.TYPE_2__, ptr %3, i32 0, i32 0
%5 = load i64, ptr %4, align 8
%6 = trunc i64 %5 to i32
ret i32 %6
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp82rk4j3j.c'
source_filename = "/tmp/tmp82rk4j3j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
%struct.video_still_picture = type { ptr, i32 }
@O_RDONLY = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [21 x i8] c"open stillimage file\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"(%s)\0A\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"I-frame size: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"No memory for I-Frame\0A\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"read: %d bytes\0A\00", align 1
@VIDEO_STILLPICTURE = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [19 x i8] c"VIDEO_STILLPICTURE\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @videoStillPicture(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 %struct.stat, align 4
%8 = alloca %struct.video_still_picture, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %12, label %11
11: ; preds = %2
store i32 -1, ptr %3, align 4
br label %56
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = load i32, ptr @O_RDONLY, align 4
%15 = call i32 @open(ptr noundef %13, i32 noundef %14)
store i32 %15, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %22
18: ; preds = %12
%19 = call i32 @perror(ptr noundef @.str)
%20 = load ptr, ptr %5, align 8
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %20)
store i32 0, ptr %3, align 4
br label %56
22: ; preds = %12
%23 = load i32, ptr %6, align 4
%24 = call i32 @fstat(i32 noundef %23, ptr noundef %7)
%25 = getelementptr inbounds %struct.stat, ptr %7, i32 0, i32 0
%26 = load i32, ptr %25, align 4
%27 = call i64 @malloc(i32 noundef %26)
%28 = inttoptr i64 %27 to ptr
%29 = getelementptr inbounds %struct.video_still_picture, ptr %8, i32 0, i32 0
store ptr %28, ptr %29, align 8
%30 = getelementptr inbounds %struct.stat, ptr %7, i32 0, i32 0
%31 = load i32, ptr %30, align 4
%32 = getelementptr inbounds %struct.video_still_picture, ptr %8, i32 0, i32 1
store i32 %31, ptr %32, align 8
%33 = getelementptr inbounds %struct.video_still_picture, ptr %8, i32 0, i32 1
%34 = load i32, ptr %33, align 8
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %34)
%36 = getelementptr inbounds %struct.video_still_picture, ptr %8, i32 0, i32 0
%37 = load ptr, ptr %36, align 8
%38 = icmp ne ptr %37, null
br i1 %38, label %41, label %39
39: ; preds = %22
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %3, align 4
br label %56
41: ; preds = %22
%42 = load i32, ptr %6, align 4
%43 = getelementptr inbounds %struct.video_still_picture, ptr %8, i32 0, i32 0
%44 = load ptr, ptr %43, align 8
%45 = getelementptr inbounds %struct.video_still_picture, ptr %8, i32 0, i32 1
%46 = load i32, ptr %45, align 8
%47 = call i32 @read(i32 noundef %42, ptr noundef %44, i32 noundef %46)
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %47)
%49 = load i32, ptr %4, align 4
%50 = load i32, ptr @VIDEO_STILLPICTURE, align 4
%51 = call i32 @ioctl(i32 noundef %49, i32 noundef %50, ptr noundef %8)
%52 = icmp eq i32 %51, -1
br i1 %52, label %53, label %55
53: ; preds = %41
%54 = call i32 @perror(ptr noundef @.str.5)
br label %55
55: ; preds = %53, %41
store i32 0, ptr %3, align 4
br label %56
56: ; preds = %55, %39, %18, %11
%57 = load i32, ptr %3, align 4
ret i32 %57
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fstat(i32 noundef, ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp82rk4j3j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
%struct.video_still_picture = type { ptr, i32 }
@O_RDONLY = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [21 x i8] c"open stillimage file\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"(%s)\0A\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"I-frame size: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"No memory for I-Frame\0A\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"read: %d bytes\0A\00", align 1
@VIDEO_STILLPICTURE = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [19 x i8] c"VIDEO_STILLPICTURE\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @videoStillPicture(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 %struct.stat, align 4
%8 = alloca %struct.video_still_picture, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %12, label %11
11: ; preds = %2
store i32 -1, ptr %3, align 4
br label %56
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = load i32, ptr @O_RDONLY, align 4
%15 = call i32 @open(ptr noundef %13, i32 noundef %14)
store i32 %15, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %22
18: ; preds = %12
%19 = call i32 @perror(ptr noundef @.str)
%20 = load ptr, ptr %5, align 8
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %20)
store i32 0, ptr %3, align 4
br label %56
22: ; preds = %12
%23 = load i32, ptr %6, align 4
%24 = call i32 @fstat(i32 noundef %23, ptr noundef %7)
%25 = getelementptr inbounds %struct.stat, ptr %7, i32 0, i32 0
%26 = load i32, ptr %25, align 4
%27 = call i64 @malloc(i32 noundef %26)
%28 = inttoptr i64 %27 to ptr
%29 = getelementptr inbounds %struct.video_still_picture, ptr %8, i32 0, i32 0
store ptr %28, ptr %29, align 8
%30 = getelementptr inbounds %struct.stat, ptr %7, i32 0, i32 0
%31 = load i32, ptr %30, align 4
%32 = getelementptr inbounds %struct.video_still_picture, ptr %8, i32 0, i32 1
store i32 %31, ptr %32, align 8
%33 = getelementptr inbounds %struct.video_still_picture, ptr %8, i32 0, i32 1
%34 = load i32, ptr %33, align 8
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %34)
%36 = getelementptr inbounds %struct.video_still_picture, ptr %8, i32 0, i32 0
%37 = load ptr, ptr %36, align 8
%38 = icmp ne ptr %37, null
br i1 %38, label %41, label %39
39: ; preds = %22
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %3, align 4
br label %56
41: ; preds = %22
%42 = load i32, ptr %6, align 4
%43 = getelementptr inbounds %struct.video_still_picture, ptr %8, i32 0, i32 0
%44 = load ptr, ptr %43, align 8
%45 = getelementptr inbounds %struct.video_still_picture, ptr %8, i32 0, i32 1
%46 = load i32, ptr %45, align 8
%47 = call i32 @read(i32 noundef %42, ptr noundef %44, i32 noundef %46)
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %47)
%49 = load i32, ptr %4, align 4
%50 = load i32, ptr @VIDEO_STILLPICTURE, align 4
%51 = call i32 @ioctl(i32 noundef %49, i32 noundef %50, ptr noundef %8)
%52 = icmp eq i32 %51, -1
br i1 %52, label %53, label %55
53: ; preds = %41
%54 = call i32 @perror(ptr noundef @.str.5)
br label %55
55: ; preds = %53, %41
store i32 0, ptr %3, align 4
br label %56
56: ; preds = %55, %39, %18, %11
%57 = load i32, ptr %3, align 4
ret i32 %57
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fstat(i32 noundef, ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @ioctl(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2qan7mf4.c'
source_filename = "/tmp/tmp2qan7mf4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%.2X\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @byte_to_hex(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = sext i32 %8 to i64
%10 = mul i64 1, %9
%11 = mul i64 %10, 2
%12 = add i64 %11, 1
%13 = trunc i64 %12 to i32
%14 = call i64 @malloc(i32 noundef %13)
%15 = inttoptr i64 %14 to ptr
store ptr %15, ptr %5, align 8
%16 = load ptr, ptr %5, align 8
store ptr %16, ptr %6, align 8
store i32 0, ptr %7, align 4
store i32 0, ptr %7, align 4
br label %17
17: ; preds = %32, %2
%18 = load i32, ptr %7, align 4
%19 = load i32, ptr %4, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %35
21: ; preds = %17
%22 = load ptr, ptr %6, align 8
%23 = load ptr, ptr %3, align 8
%24 = load i32, ptr %7, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %23, i64 %25
%27 = load i8, ptr %26, align 1
%28 = call i32 @sprintf(ptr noundef %22, ptr noundef @.str, i8 noundef zeroext %27)
%29 = load ptr, ptr %6, align 8
%30 = sext i32 %28 to i64
%31 = getelementptr inbounds i8, ptr %29, i64 %30
store ptr %31, ptr %6, align 8
br label %32
32: ; preds = %21
%33 = load i32, ptr %7, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %7, align 4
br label %17, !llvm.loop !6
35: ; preds = %17
%36 = load ptr, ptr %5, align 8
%37 = load i32, ptr %4, align 4
%38 = mul nsw i32 %37, 2
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %36, i64 %39
store i8 0, ptr %40, align 1
%41 = load ptr, ptr %5, align 8
ret ptr %41
}
declare i64 @malloc(i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2qan7mf4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%.2X\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @byte_to_hex(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = sext i32 %8 to i64
%10 = mul i64 1, %9
%11 = mul i64 %10, 2
%12 = add i64 %11, 1
%13 = trunc i64 %12 to i32
%14 = call i64 @malloc(i32 noundef %13)
%15 = inttoptr i64 %14 to ptr
store ptr %15, ptr %5, align 8
%16 = load ptr, ptr %5, align 8
store ptr %16, ptr %6, align 8
store i32 0, ptr %7, align 4
store i32 0, ptr %7, align 4
%17 = load i32, ptr %7, align 4
%18 = load i32, ptr %4, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %.lr.ph, label %37
.lr.ph: ; preds = %2
br label %20
20: ; preds = %.lr.ph, %31
%21 = load ptr, ptr %6, align 8
%22 = load ptr, ptr %3, align 8
%23 = load i32, ptr %7, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %22, i64 %24
%26 = load i8, ptr %25, align 1
%27 = call i32 @sprintf(ptr noundef %21, ptr noundef @.str, i8 noundef zeroext %26)
%28 = load ptr, ptr %6, align 8
%29 = sext i32 %27 to i64
%30 = getelementptr inbounds i8, ptr %28, i64 %29
store ptr %30, ptr %6, align 8
br label %31
31: ; preds = %20
%32 = load i32, ptr %7, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %7, align 4
%34 = load i32, ptr %7, align 4
%35 = load i32, ptr %4, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %31
br label %37
37: ; preds = %._crit_edge, %2
%38 = load ptr, ptr %5, align 8
%39 = load i32, ptr %4, align 4
%40 = mul nsw i32 %39, 2
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8, ptr %38, i64 %41
store i8 0, ptr %42, align 1
%43 = load ptr, ptr %5, align 8
ret ptr %43
}
declare i64 @malloc(i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpvabx4bit.c'
source_filename = "/tmp/tmpvabx4bit.c"
target datalayout = "e-m:e-p270: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/tmpvabx4bit.c"
target datalayout = "e-m:e-p270: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/tmp73_g9jsm.c'
source_filename = "/tmp/tmp73_g9jsm.c"
target datalayout = "e-m:e-p270: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.midi_note_velocity_generator.header = private unnamed_addr constant [22 x i32] [i32 77, i32 84, i32 104, i32 100, i32 0, i32 0, i32 0, i32 6, i32 0, i32 0, i32 0, i32 1, i32 0, i32 120, i32 77, i32 84, i32 114, i32 107, i32 0, i32 0, i32 0, i32 0], align 16
@__const.midi_note_velocity_generator.footer = private unnamed_addr constant [4 x i32] [i32 0, i32 255, i32 47, i32 0], align 16
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [66 x i8] c"Maximum potential buffer size of %d bytes exceeds %d byte limit.\0A\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"Unable to allocate %d bytes.\0A\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [51 x i8] c"Setting end_time to %d based off of last_time %d.\0A\00", align 1
@.str.3 = private unnamed_addr constant [101 x i8] c"Allocated %d bytes for %d points of MIDI data of which %d were merged; %d bytes were actually used.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @midi_note_velocity_generator(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6, i32 noundef %7, ptr noundef %8, ptr noundef %9) #0 {
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca i32, align 4
%20 = alloca ptr, align 8
%21 = alloca ptr, align 8
%22 = alloca [22 x i32], align 16
%23 = alloca [4 x i32], align 16
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca i32, align 4
%28 = alloca i32, align 4
%29 = alloca i32, align 4
%30 = alloca i32, align 4
%31 = alloca i32, align 4
%32 = alloca i32, align 4
%33 = alloca i32, align 4
%34 = alloca i8, align 1
%35 = alloca i8, align 1
%36 = alloca i32, align 4
%37 = alloca i32, align 4
%38 = alloca i32, align 4
%39 = alloca i32, align 4
store ptr %0, ptr %12, align 8
store ptr %1, ptr %13, align 8
store i32 %2, ptr %14, align 4
store i32 %3, ptr %15, align 4
store i32 %4, ptr %16, align 4
store ptr %5, ptr %17, align 8
store ptr %6, ptr %18, align 8
store i32 %7, ptr %19, align 4
store ptr %8, ptr %20, align 8
store ptr %9, ptr %21, align 8
%40 = load ptr, ptr %12, align 8
store i32 0, ptr %40, align 4
%41 = load ptr, ptr %13, align 8
store ptr null, ptr %41, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %22, ptr align 16 @__const.midi_note_velocity_generator.header, i64 88, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %23, ptr align 16 @__const.midi_note_velocity_generator.footer, i64 16, i1 false)
store i32 262144, ptr %24, align 4
%42 = load i32, ptr %16, align 4
%43 = load i32, ptr %19, align 4
%44 = add nsw i32 %42, %43
%45 = mul nsw i32 2, %44
%46 = mul nsw i32 %45, 8
%47 = sext i32 %46 to i64
%48 = add i64 104, %47
%49 = trunc i64 %48 to i32
store i32 %49, ptr %25, align 4
%50 = load i32, ptr %25, align 4
%51 = icmp sgt i32 %50, 262144
br i1 %51, label %52, label %56
52: ; preds = %10
%53 = load i32, ptr @stderr, align 4
%54 = load i32, ptr %25, align 4
%55 = call i32 (i32, ptr, i32, ...) @fprintf(i32 noundef %53, ptr noundef @.str, i32 noundef %54, i32 noundef 262144)
store i32 -1, ptr %11, align 4
br label %303
56: ; preds = %10
%57 = load i32, ptr %25, align 4
%58 = call ptr @malloc(i32 noundef %57)
%59 = load ptr, ptr %13, align 8
store ptr %58, ptr %59, align 8
%60 = load ptr, ptr %13, align 8
%61 = load ptr, ptr %60, align 8
%62 = icmp eq ptr null, %61
br i1 %62, label %63, label %67
63: ; preds = %56
%64 = load i32, ptr @stderr, align 4
%65 = load i32, ptr %25, align 4
%66 = call i32 (i32, ptr, i32, ...) @fprintf(i32 noundef %64, ptr noundef @.str.1, i32 noundef %65)
store i32 -1, ptr %11, align 4
br label %303
67: ; preds = %56
%68 = load ptr, ptr %13, align 8
%69 = load ptr, ptr %68, align 8
%70 = getelementptr inbounds [22 x i32], ptr %22, i64 0, i64 0
%71 = call i32 @memcpy(ptr noundef %69, ptr noundef %70, i32 noundef 22)
%72 = load i32, ptr %15, align 4
%73 = ashr i32 %72, 8
%74 = and i32 %73, 255
%75 = load ptr, ptr %13, align 8
%76 = load ptr, ptr %75, align 8
%77 = getelementptr inbounds i32, ptr %76, i64 12
store i32 %74, ptr %77, align 4
%78 = load i32, ptr %15, align 4
%79 = and i32 %78, 255
%80 = load ptr, ptr %13, align 8
%81 = load ptr, ptr %80, align 8
%82 = getelementptr inbounds i32, ptr %81, i64 13
store i32 %79, ptr %82, align 4
store i32 0, ptr %26, align 4
store i32 22, ptr %27, align 4
store i32 22, ptr %28, align 4
store i32 0, ptr %29, align 4
store i32 0, ptr %30, align 4
store i32 0, ptr %31, align 4
store i32 0, ptr %32, align 4
store i32 0, ptr %33, align 4
br label %83
83: ; preds = %207, %67
%84 = load i32, ptr %29, align 4
%85 = load i32, ptr %16, align 4
%86 = icmp slt i32 %84, %85
br i1 %86, label %91, label %87
87: ; preds = %83
%88 = load i32, ptr %30, align 4
%89 = load i32, ptr %19, align 4
%90 = icmp slt i32 %88, %89
br label %91
91: ; preds = %87, %83
%92 = phi i1 [ true, %83 ], [ %90, %87 ]
br i1 %92, label %93, label %234
93: ; preds = %91
store i8 0, ptr %34, align 1
%94 = load i32, ptr %29, align 4
%95 = load i32, ptr %16, align 4
%96 = icmp slt i32 %94, %95
br i1 %96, label %97, label %136
97: ; preds = %93
%98 = load i32, ptr %30, align 4
%99 = load i32, ptr %19, align 4
%100 = icmp slt i32 %98, %99
br i1 %100, label %101, label %136
101: ; preds = %97
%102 = load ptr, ptr %17, align 8
%103 = load i32, ptr %29, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds i32, ptr %102, i64 %104
%106 = load i32, ptr %105, align 4
%107 = load ptr, ptr %20, align 8
%108 = load i32, ptr %30, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds i32, ptr %107, i64 %109
%111 = load i32, ptr %110, align 4
%112 = icmp eq i32 %106, %111
br i1 %112, label %113, label %116
113: ; preds = %101
%114 = load i32, ptr %31, align 4
%115 = add nsw i32 %114, 1
store i32 %115, ptr %31, align 4
store i8 1, ptr %35, align 1
store i8 1, ptr %34, align 1
br label %135
116: ; preds = %101
%117 = load ptr, ptr %17, align 8
%118 = load i32, ptr %29, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds i32, ptr %117, i64 %119
%121 = load i32, ptr %120, align 4
%122 = load ptr, ptr %20, align 8
%123 = load i32, ptr %30, align 4
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds i32, ptr %122, i64 %124
%126 = load i32, ptr %125, align 4
%127 = icmp slt i32 %121, %126
%128 = zext i1 %127 to i32
%129 = trunc i32 %128 to i8
store i8 %129, ptr %34, align 1
%130 = load i8, ptr %34, align 1
%131 = icmp ne i8 %130, 0
%132 = xor i1 %131, true
%133 = zext i1 %132 to i32
%134 = trunc i32 %133 to i8
store i8 %134, ptr %35, align 1
br label %135
135: ; preds = %116, %113
br label %147
136: ; preds = %97, %93
%137 = load i32, ptr %29, align 4
%138 = load i32, ptr %16, align 4
%139 = icmp slt i32 %137, %138
%140 = zext i1 %139 to i32
%141 = trunc i32 %140 to i8
store i8 %141, ptr %34, align 1
%142 = load i8, ptr %34, align 1
%143 = icmp ne i8 %142, 0
%144 = xor i1 %143, true
%145 = zext i1 %144 to i32
%146 = trunc i32 %145 to i8
store i8 %146, ptr %35, align 1
br label %147
147: ; preds = %136, %135
%148 = load i8, ptr %34, align 1
%149 = icmp ne i8 %148, 0
br i1 %149, label %150, label %156
150: ; preds = %147
%151 = load ptr, ptr %17, align 8
%152 = load i32, ptr %29, align 4
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds i32, ptr %151, i64 %153
%155 = load i32, ptr %154, align 4
store i32 %155, ptr %37, align 4
br label %156
156: ; preds = %150, %147
%157 = load i8, ptr %35, align 1
%158 = icmp ne i8 %157, 0
br i1 %158, label %159, label %165
159: ; preds = %156
%160 = load ptr, ptr %20, align 8
%161 = load i32, ptr %30, align 4
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds i32, ptr %160, i64 %162
%164 = load i32, ptr %163, align 4
store i32 %164, ptr %37, align 4
br label %165
165: ; preds = %159, %156
%166 = load i32, ptr %37, align 4
%167 = load i32, ptr %26, align 4
%168 = sub nsw i32 %166, %167
store i32 %168, ptr %36, align 4
%169 = load i32, ptr %37, align 4
store i32 %169, ptr %26, align 4
%170 = load i32, ptr %29, align 4
%171 = icmp sgt i32 %170, 0
br i1 %171, label %175, label %172
172: ; preds = %165
%173 = load i32, ptr %30, align 4
%174 = icmp sgt i32 %173, 0
br i1 %174, label %175, label %181
175: ; preds = %172, %165
%176 = load i32, ptr %32, align 4
%177 = load i32, ptr %33, align 4
%178 = load i32, ptr %36, align 4
%179 = load ptr, ptr %13, align 8
%180 = call i32 @midi_note_off(i32 noundef %176, i32 noundef %177, i32 noundef %178, ptr noundef %179, ptr noundef %28)
br label %181
181: ; preds = %175, %172
%182 = load i8, ptr %34, align 1
%183 = icmp ne i8 %182, 0
br i1 %183, label %184, label %192
184: ; preds = %181
%185 = load ptr, ptr %18, align 8
%186 = load i32, ptr %29, align 4
%187 = sext i32 %186 to i64
%188 = getelementptr inbounds i32, ptr %185, i64 %187
%189 = load i32, ptr %188, align 4
store i32 %189, ptr %32, align 4
%190 = load i32, ptr %29, align 4
%191 = add nsw i32 %190, 1
store i32 %191, ptr %29, align 4
br label %192
192: ; preds = %184, %181
%193 = load i8, ptr %35, align 1
%194 = icmp ne i8 %193, 0
br i1 %194, label %195, label %207
195: ; preds = %192
%196 = load ptr, ptr %21, align 8
%197 = load i32, ptr %30, align 4
%198 = sext i32 %197 to i64
%199 = getelementptr inbounds i32, ptr %196, i64 %198
%200 = load i32, ptr %199, align 4
store i32 %200, ptr %33, align 4
%201 = load i32, ptr %33, align 4
%202 = icmp eq i32 0, %201
br i1 %202, label %203, label %204
203: ; preds = %195
store i32 1, ptr %33, align 4
br label %204
204: ; preds = %203, %195
%205 = load i32, ptr %30, align 4
%206 = add nsw i32 %205, 1
store i32 %206, ptr %30, align 4
br label %207
207: ; preds = %204, %192
%208 = load ptr, ptr %13, align 8
%209 = load ptr, ptr %208, align 8
%210 = load i32, ptr %28, align 4
%211 = add nsw i32 %210, 1
store i32 %211, ptr %28, align 4
%212 = sext i32 %210 to i64
%213 = getelementptr inbounds i32, ptr %209, i64 %212
store i32 0, ptr %213, align 4
%214 = load ptr, ptr %13, align 8
%215 = load ptr, ptr %214, align 8
%216 = load i32, ptr %28, align 4
%217 = add nsw i32 %216, 1
store i32 %217, ptr %28, align 4
%218 = sext i32 %216 to i64
%219 = getelementptr inbounds i32, ptr %215, i64 %218
store i32 144, ptr %219, align 4
%220 = load i32, ptr %32, align 4
%221 = load ptr, ptr %13, align 8
%222 = load ptr, ptr %221, align 8
%223 = load i32, ptr %28, align 4
%224 = add nsw i32 %223, 1
store i32 %224, ptr %28, align 4
%225 = sext i32 %223 to i64
%226 = getelementptr inbounds i32, ptr %222, i64 %225
store i32 %220, ptr %226, align 4
%227 = load i32, ptr %33, align 4
%228 = load ptr, ptr %13, align 8
%229 = load ptr, ptr %228, align 8
%230 = load i32, ptr %28, align 4
%231 = add nsw i32 %230, 1
store i32 %231, ptr %28, align 4
%232 = sext i32 %230 to i64
%233 = getelementptr inbounds i32, ptr %229, i64 %232
store i32 %227, ptr %233, align 4
br label %83, !llvm.loop !6
234: ; preds = %91
%235 = load i32, ptr %26, align 4
%236 = icmp sgt i32 %235, 0
br i1 %236, label %237, label %255
237: ; preds = %234
%238 = load i32, ptr %26, align 4
%239 = load i32, ptr %15, align 4
%240 = sdiv i32 %238, %239
%241 = add nsw i32 1, %240
%242 = load i32, ptr %15, align 4
%243 = mul nsw i32 %241, %242
store i32 %243, ptr %38, align 4
%244 = load i32, ptr @stdout, align 4
%245 = load i32, ptr %38, align 4
%246 = load i32, ptr %26, align 4
%247 = call i32 (i32, ptr, i32, ...) @fprintf(i32 noundef %244, ptr noundef @.str.2, i32 noundef %245, i32 noundef %246)
%248 = load i32, ptr %32, align 4
%249 = load i32, ptr %33, align 4
%250 = load i32, ptr %38, align 4
%251 = load i32, ptr %26, align 4
%252 = sub nsw i32 %250, %251
%253 = load ptr, ptr %13, align 8
%254 = call i32 @midi_note_off(i32 noundef %248, i32 noundef %249, i32 noundef %252, ptr noundef %253, ptr noundef %28)
br label %255
255: ; preds = %237, %234
%256 = load ptr, ptr %13, align 8
%257 = load ptr, ptr %256, align 8
%258 = load i32, ptr %28, align 4
%259 = sext i32 %258 to i64
%260 = getelementptr inbounds i32, ptr %257, i64 %259
%261 = getelementptr inbounds [4 x i32], ptr %23, i64 0, i64 0
%262 = call i32 @memcpy(ptr noundef %260, ptr noundef %261, i32 noundef 4)
%263 = load i32, ptr %28, align 4
%264 = sext i32 %263 to i64
%265 = add i64 %264, 4
%266 = trunc i64 %265 to i32
store i32 %266, ptr %28, align 4
%267 = load i32, ptr %28, align 4
%268 = load i32, ptr %27, align 4
%269 = sub nsw i32 %267, %268
store i32 %269, ptr %39, align 4
%270 = load i32, ptr %39, align 4
%271 = ashr i32 %270, 24
%272 = and i32 %271, 255
%273 = load ptr, ptr %13, align 8
%274 = load ptr, ptr %273, align 8
%275 = getelementptr inbounds i32, ptr %274, i64 18
store i32 %272, ptr %275, align 4
%276 = load i32, ptr %39, align 4
%277 = ashr i32 %276, 16
%278 = and i32 %277, 255
%279 = load ptr, ptr %13, align 8
%280 = load ptr, ptr %279, align 8
%281 = getelementptr inbounds i32, ptr %280, i64 19
store i32 %278, ptr %281, align 4
%282 = load i32, ptr %39, align 4
%283 = ashr i32 %282, 8
%284 = and i32 %283, 255
%285 = load ptr, ptr %13, align 8
%286 = load ptr, ptr %285, align 8
%287 = getelementptr inbounds i32, ptr %286, i64 20
store i32 %284, ptr %287, align 4
%288 = load i32, ptr %39, align 4
%289 = and i32 %288, 255
%290 = load ptr, ptr %13, align 8
%291 = load ptr, ptr %290, align 8
%292 = getelementptr inbounds i32, ptr %291, i64 21
store i32 %289, ptr %292, align 4
%293 = load i32, ptr %28, align 4
%294 = load ptr, ptr %12, align 8
store i32 %293, ptr %294, align 4
%295 = load i32, ptr @stdout, align 4
%296 = load i32, ptr %25, align 4
%297 = load i32, ptr %16, align 4
%298 = load i32, ptr %19, align 4
%299 = add nsw i32 %297, %298
%300 = load i32, ptr %31, align 4
%301 = load i32, ptr %28, align 4
%302 = call i32 (i32, ptr, i32, ...) @fprintf(i32 noundef %295, ptr noundef @.str.3, i32 noundef %296, i32 noundef %299, i32 noundef %300, i32 noundef %301)
store i32 0, ptr %11, align 4
br label %303
303: ; preds = %255, %63, %52
%304 = load i32, ptr %11, align 4
ret i32 %304
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef, ...) #2
declare ptr @malloc(i32 noundef) #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @midi_note_off(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp73_g9jsm.c"
target datalayout = "e-m:e-p270: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.midi_note_velocity_generator.header = private unnamed_addr constant [22 x i32] [i32 77, i32 84, i32 104, i32 100, i32 0, i32 0, i32 0, i32 6, i32 0, i32 0, i32 0, i32 1, i32 0, i32 120, i32 77, i32 84, i32 114, i32 107, i32 0, i32 0, i32 0, i32 0], align 16
@__const.midi_note_velocity_generator.footer = private unnamed_addr constant [4 x i32] [i32 0, i32 255, i32 47, i32 0], align 16
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [66 x i8] c"Maximum potential buffer size of %d bytes exceeds %d byte limit.\0A\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"Unable to allocate %d bytes.\0A\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [51 x i8] c"Setting end_time to %d based off of last_time %d.\0A\00", align 1
@.str.3 = private unnamed_addr constant [101 x i8] c"Allocated %d bytes for %d points of MIDI data of which %d were merged; %d bytes were actually used.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @midi_note_velocity_generator(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6, i32 noundef %7, ptr noundef %8, ptr noundef %9) #0 {
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca i32, align 4
%20 = alloca ptr, align 8
%21 = alloca ptr, align 8
%22 = alloca [22 x i32], align 16
%23 = alloca [4 x i32], align 16
%24 = alloca i32, align 4
%25 = alloca i32, align 4
%26 = alloca i32, align 4
%27 = alloca i32, align 4
%28 = alloca i32, align 4
%29 = alloca i32, align 4
%30 = alloca i32, align 4
%31 = alloca i32, align 4
%32 = alloca i32, align 4
%33 = alloca i32, align 4
%34 = alloca i8, align 1
%35 = alloca i8, align 1
%36 = alloca i32, align 4
%37 = alloca i32, align 4
%38 = alloca i32, align 4
%39 = alloca i32, align 4
store ptr %0, ptr %12, align 8
store ptr %1, ptr %13, align 8
store i32 %2, ptr %14, align 4
store i32 %3, ptr %15, align 4
store i32 %4, ptr %16, align 4
store ptr %5, ptr %17, align 8
store ptr %6, ptr %18, align 8
store i32 %7, ptr %19, align 4
store ptr %8, ptr %20, align 8
store ptr %9, ptr %21, align 8
%40 = load ptr, ptr %12, align 8
store i32 0, ptr %40, align 4
%41 = load ptr, ptr %13, align 8
store ptr null, ptr %41, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %22, ptr align 16 @__const.midi_note_velocity_generator.header, i64 88, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %23, ptr align 16 @__const.midi_note_velocity_generator.footer, i64 16, i1 false)
store i32 262144, ptr %24, align 4
%42 = load i32, ptr %16, align 4
%43 = load i32, ptr %19, align 4
%44 = add nsw i32 %42, %43
%45 = mul nsw i32 2, %44
%46 = mul nsw i32 %45, 8
%47 = sext i32 %46 to i64
%48 = add i64 104, %47
%49 = trunc i64 %48 to i32
store i32 %49, ptr %25, align 4
%50 = load i32, ptr %25, align 4
%51 = icmp sgt i32 %50, 262144
br i1 %51, label %52, label %56
52: ; preds = %10
%53 = load i32, ptr @stderr, align 4
%54 = load i32, ptr %25, align 4
%55 = call i32 (i32, ptr, i32, ...) @fprintf(i32 noundef %53, ptr noundef @.str, i32 noundef %54, i32 noundef 262144)
store i32 -1, ptr %11, align 4
br label %303
56: ; preds = %10
%57 = load i32, ptr %25, align 4
%58 = call ptr @malloc(i32 noundef %57)
%59 = load ptr, ptr %13, align 8
store ptr %58, ptr %59, align 8
%60 = load ptr, ptr %13, align 8
%61 = load ptr, ptr %60, align 8
%62 = icmp eq ptr null, %61
br i1 %62, label %63, label %67
63: ; preds = %56
%64 = load i32, ptr @stderr, align 4
%65 = load i32, ptr %25, align 4
%66 = call i32 (i32, ptr, i32, ...) @fprintf(i32 noundef %64, ptr noundef @.str.1, i32 noundef %65)
store i32 -1, ptr %11, align 4
br label %303
67: ; preds = %56
%68 = load ptr, ptr %13, align 8
%69 = load ptr, ptr %68, align 8
%70 = getelementptr inbounds [22 x i32], ptr %22, i64 0, i64 0
%71 = call i32 @memcpy(ptr noundef %69, ptr noundef %70, i32 noundef 22)
%72 = load i32, ptr %15, align 4
%73 = ashr i32 %72, 8
%74 = and i32 %73, 255
%75 = load ptr, ptr %13, align 8
%76 = load ptr, ptr %75, align 8
%77 = getelementptr inbounds i32, ptr %76, i64 12
store i32 %74, ptr %77, align 4
%78 = load i32, ptr %15, align 4
%79 = and i32 %78, 255
%80 = load ptr, ptr %13, align 8
%81 = load ptr, ptr %80, align 8
%82 = getelementptr inbounds i32, ptr %81, i64 13
store i32 %79, ptr %82, align 4
store i32 0, ptr %26, align 4
store i32 22, ptr %27, align 4
store i32 22, ptr %28, align 4
store i32 0, ptr %29, align 4
store i32 0, ptr %30, align 4
store i32 0, ptr %31, align 4
store i32 0, ptr %32, align 4
store i32 0, ptr %33, align 4
br label %83
83: ; preds = %207, %67
%84 = load i32, ptr %29, align 4
%85 = load i32, ptr %16, align 4
%86 = icmp slt i32 %84, %85
br i1 %86, label %91, label %87
87: ; preds = %83
%88 = load i32, ptr %30, align 4
%89 = load i32, ptr %19, align 4
%90 = icmp slt i32 %88, %89
br label %91
91: ; preds = %87, %83
%92 = phi i1 [ true, %83 ], [ %90, %87 ]
br i1 %92, label %93, label %234
93: ; preds = %91
store i8 0, ptr %34, align 1
%94 = load i32, ptr %29, align 4
%95 = load i32, ptr %16, align 4
%96 = icmp slt i32 %94, %95
br i1 %96, label %97, label %136
97: ; preds = %93
%98 = load i32, ptr %30, align 4
%99 = load i32, ptr %19, align 4
%100 = icmp slt i32 %98, %99
br i1 %100, label %101, label %136
101: ; preds = %97
%102 = load ptr, ptr %17, align 8
%103 = load i32, ptr %29, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds i32, ptr %102, i64 %104
%106 = load i32, ptr %105, align 4
%107 = load ptr, ptr %20, align 8
%108 = load i32, ptr %30, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds i32, ptr %107, i64 %109
%111 = load i32, ptr %110, align 4
%112 = icmp eq i32 %106, %111
br i1 %112, label %113, label %116
113: ; preds = %101
%114 = load i32, ptr %31, align 4
%115 = add nsw i32 %114, 1
store i32 %115, ptr %31, align 4
store i8 1, ptr %35, align 1
store i8 1, ptr %34, align 1
br label %135
116: ; preds = %101
%117 = load ptr, ptr %17, align 8
%118 = load i32, ptr %29, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds i32, ptr %117, i64 %119
%121 = load i32, ptr %120, align 4
%122 = load ptr, ptr %20, align 8
%123 = load i32, ptr %30, align 4
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds i32, ptr %122, i64 %124
%126 = load i32, ptr %125, align 4
%127 = icmp slt i32 %121, %126
%128 = zext i1 %127 to i32
%129 = trunc i32 %128 to i8
store i8 %129, ptr %34, align 1
%130 = load i8, ptr %34, align 1
%131 = icmp ne i8 %130, 0
%132 = xor i1 %131, true
%133 = zext i1 %132 to i32
%134 = trunc i32 %133 to i8
store i8 %134, ptr %35, align 1
br label %135
135: ; preds = %116, %113
br label %147
136: ; preds = %97, %93
%137 = load i32, ptr %29, align 4
%138 = load i32, ptr %16, align 4
%139 = icmp slt i32 %137, %138
%140 = zext i1 %139 to i32
%141 = trunc i32 %140 to i8
store i8 %141, ptr %34, align 1
%142 = load i8, ptr %34, align 1
%143 = icmp ne i8 %142, 0
%144 = xor i1 %143, true
%145 = zext i1 %144 to i32
%146 = trunc i32 %145 to i8
store i8 %146, ptr %35, align 1
br label %147
147: ; preds = %136, %135
%148 = load i8, ptr %34, align 1
%149 = icmp ne i8 %148, 0
br i1 %149, label %150, label %156
150: ; preds = %147
%151 = load ptr, ptr %17, align 8
%152 = load i32, ptr %29, align 4
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds i32, ptr %151, i64 %153
%155 = load i32, ptr %154, align 4
store i32 %155, ptr %37, align 4
br label %156
156: ; preds = %150, %147
%157 = load i8, ptr %35, align 1
%158 = icmp ne i8 %157, 0
br i1 %158, label %159, label %165
159: ; preds = %156
%160 = load ptr, ptr %20, align 8
%161 = load i32, ptr %30, align 4
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds i32, ptr %160, i64 %162
%164 = load i32, ptr %163, align 4
store i32 %164, ptr %37, align 4
br label %165
165: ; preds = %159, %156
%166 = load i32, ptr %37, align 4
%167 = load i32, ptr %26, align 4
%168 = sub nsw i32 %166, %167
store i32 %168, ptr %36, align 4
%169 = load i32, ptr %37, align 4
store i32 %169, ptr %26, align 4
%170 = load i32, ptr %29, align 4
%171 = icmp sgt i32 %170, 0
br i1 %171, label %175, label %172
172: ; preds = %165
%173 = load i32, ptr %30, align 4
%174 = icmp sgt i32 %173, 0
br i1 %174, label %175, label %181
175: ; preds = %172, %165
%176 = load i32, ptr %32, align 4
%177 = load i32, ptr %33, align 4
%178 = load i32, ptr %36, align 4
%179 = load ptr, ptr %13, align 8
%180 = call i32 @midi_note_off(i32 noundef %176, i32 noundef %177, i32 noundef %178, ptr noundef %179, ptr noundef %28)
br label %181
181: ; preds = %175, %172
%182 = load i8, ptr %34, align 1
%183 = icmp ne i8 %182, 0
br i1 %183, label %184, label %192
184: ; preds = %181
%185 = load ptr, ptr %18, align 8
%186 = load i32, ptr %29, align 4
%187 = sext i32 %186 to i64
%188 = getelementptr inbounds i32, ptr %185, i64 %187
%189 = load i32, ptr %188, align 4
store i32 %189, ptr %32, align 4
%190 = load i32, ptr %29, align 4
%191 = add nsw i32 %190, 1
store i32 %191, ptr %29, align 4
br label %192
192: ; preds = %184, %181
%193 = load i8, ptr %35, align 1
%194 = icmp ne i8 %193, 0
br i1 %194, label %195, label %207
195: ; preds = %192
%196 = load ptr, ptr %21, align 8
%197 = load i32, ptr %30, align 4
%198 = sext i32 %197 to i64
%199 = getelementptr inbounds i32, ptr %196, i64 %198
%200 = load i32, ptr %199, align 4
store i32 %200, ptr %33, align 4
%201 = load i32, ptr %33, align 4
%202 = icmp eq i32 0, %201
br i1 %202, label %203, label %204
203: ; preds = %195
store i32 1, ptr %33, align 4
br label %204
204: ; preds = %203, %195
%205 = load i32, ptr %30, align 4
%206 = add nsw i32 %205, 1
store i32 %206, ptr %30, align 4
br label %207
207: ; preds = %204, %192
%208 = load ptr, ptr %13, align 8
%209 = load ptr, ptr %208, align 8
%210 = load i32, ptr %28, align 4
%211 = add nsw i32 %210, 1
store i32 %211, ptr %28, align 4
%212 = sext i32 %210 to i64
%213 = getelementptr inbounds i32, ptr %209, i64 %212
store i32 0, ptr %213, align 4
%214 = load ptr, ptr %13, align 8
%215 = load ptr, ptr %214, align 8
%216 = load i32, ptr %28, align 4
%217 = add nsw i32 %216, 1
store i32 %217, ptr %28, align 4
%218 = sext i32 %216 to i64
%219 = getelementptr inbounds i32, ptr %215, i64 %218
store i32 144, ptr %219, align 4
%220 = load i32, ptr %32, align 4
%221 = load ptr, ptr %13, align 8
%222 = load ptr, ptr %221, align 8
%223 = load i32, ptr %28, align 4
%224 = add nsw i32 %223, 1
store i32 %224, ptr %28, align 4
%225 = sext i32 %223 to i64
%226 = getelementptr inbounds i32, ptr %222, i64 %225
store i32 %220, ptr %226, align 4
%227 = load i32, ptr %33, align 4
%228 = load ptr, ptr %13, align 8
%229 = load ptr, ptr %228, align 8
%230 = load i32, ptr %28, align 4
%231 = add nsw i32 %230, 1
store i32 %231, ptr %28, align 4
%232 = sext i32 %230 to i64
%233 = getelementptr inbounds i32, ptr %229, i64 %232
store i32 %227, ptr %233, align 4
br label %83, !llvm.loop !6
234: ; preds = %91
%235 = load i32, ptr %26, align 4
%236 = icmp sgt i32 %235, 0
br i1 %236, label %237, label %255
237: ; preds = %234
%238 = load i32, ptr %26, align 4
%239 = load i32, ptr %15, align 4
%240 = sdiv i32 %238, %239
%241 = add nsw i32 1, %240
%242 = load i32, ptr %15, align 4
%243 = mul nsw i32 %241, %242
store i32 %243, ptr %38, align 4
%244 = load i32, ptr @stdout, align 4
%245 = load i32, ptr %38, align 4
%246 = load i32, ptr %26, align 4
%247 = call i32 (i32, ptr, i32, ...) @fprintf(i32 noundef %244, ptr noundef @.str.2, i32 noundef %245, i32 noundef %246)
%248 = load i32, ptr %32, align 4
%249 = load i32, ptr %33, align 4
%250 = load i32, ptr %38, align 4
%251 = load i32, ptr %26, align 4
%252 = sub nsw i32 %250, %251
%253 = load ptr, ptr %13, align 8
%254 = call i32 @midi_note_off(i32 noundef %248, i32 noundef %249, i32 noundef %252, ptr noundef %253, ptr noundef %28)
br label %255
255: ; preds = %237, %234
%256 = load ptr, ptr %13, align 8
%257 = load ptr, ptr %256, align 8
%258 = load i32, ptr %28, align 4
%259 = sext i32 %258 to i64
%260 = getelementptr inbounds i32, ptr %257, i64 %259
%261 = getelementptr inbounds [4 x i32], ptr %23, i64 0, i64 0
%262 = call i32 @memcpy(ptr noundef %260, ptr noundef %261, i32 noundef 4)
%263 = load i32, ptr %28, align 4
%264 = sext i32 %263 to i64
%265 = add i64 %264, 4
%266 = trunc i64 %265 to i32
store i32 %266, ptr %28, align 4
%267 = load i32, ptr %28, align 4
%268 = load i32, ptr %27, align 4
%269 = sub nsw i32 %267, %268
store i32 %269, ptr %39, align 4
%270 = load i32, ptr %39, align 4
%271 = ashr i32 %270, 24
%272 = and i32 %271, 255
%273 = load ptr, ptr %13, align 8
%274 = load ptr, ptr %273, align 8
%275 = getelementptr inbounds i32, ptr %274, i64 18
store i32 %272, ptr %275, align 4
%276 = load i32, ptr %39, align 4
%277 = ashr i32 %276, 16
%278 = and i32 %277, 255
%279 = load ptr, ptr %13, align 8
%280 = load ptr, ptr %279, align 8
%281 = getelementptr inbounds i32, ptr %280, i64 19
store i32 %278, ptr %281, align 4
%282 = load i32, ptr %39, align 4
%283 = ashr i32 %282, 8
%284 = and i32 %283, 255
%285 = load ptr, ptr %13, align 8
%286 = load ptr, ptr %285, align 8
%287 = getelementptr inbounds i32, ptr %286, i64 20
store i32 %284, ptr %287, align 4
%288 = load i32, ptr %39, align 4
%289 = and i32 %288, 255
%290 = load ptr, ptr %13, align 8
%291 = load ptr, ptr %290, align 8
%292 = getelementptr inbounds i32, ptr %291, i64 21
store i32 %289, ptr %292, align 4
%293 = load i32, ptr %28, align 4
%294 = load ptr, ptr %12, align 8
store i32 %293, ptr %294, align 4
%295 = load i32, ptr @stdout, align 4
%296 = load i32, ptr %25, align 4
%297 = load i32, ptr %16, align 4
%298 = load i32, ptr %19, align 4
%299 = add nsw i32 %297, %298
%300 = load i32, ptr %31, align 4
%301 = load i32, ptr %28, align 4
%302 = call i32 (i32, ptr, i32, ...) @fprintf(i32 noundef %295, ptr noundef @.str.3, i32 noundef %296, i32 noundef %299, i32 noundef %300, i32 noundef %301)
store i32 0, ptr %11, align 4
br label %303
303: ; preds = %255, %63, %52
%304 = load i32, ptr %11, align 4
ret i32 %304
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef, ...) #2
declare ptr @malloc(i32 noundef) #2
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #2
declare i32 @midi_note_off(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpsc7pwo32.c'
source_filename = "/tmp/tmpsc7pwo32.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isspace.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isspace should be 0 for 0xa4\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isspace_0xa4() #0 {
%1 = call i64 @isspace(i32 noundef 164)
%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 825, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isspace(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/tmpsc7pwo32.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isspace.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isspace should be 0 for 0xa4\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isspace_0xa4() #0 {
%1 = call i64 @isspace(i32 noundef 164)
%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 825, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isspace(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/tmpt43zsfb4.c'
source_filename = "/tmp/tmpt43zsfb4.c"
target datalayout = "e-m:e-p270: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/tmpt43zsfb4.c"
target datalayout = "e-m:e-p270: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/tmpf9xzaet4.c'
source_filename = "/tmp/tmpf9xzaet4.c"
target datalayout = "e-m:e-p270: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 i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf9xzaet4.c"
target datalayout = "e-m:e-p270: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 i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwhlydow6.c'
source_filename = "/tmp/tmpwhlydow6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [66 x i8] c"------------------------------------------------------- TEST END\0A\00", align 1
@llvm.global_dtors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @destructor, ptr null }]
; Function Attrs: noinline nounwind sspstrong uwtable
define internal void @destructor() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwhlydow6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [66 x i8] c"------------------------------------------------------- TEST END\0A\00", align 1
@llvm.global_dtors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @destructor, ptr null }]
; Function Attrs: noinline nounwind sspstrong uwtable
define internal void @destructor() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2gsj3541.c'
source_filename = "/tmp/tmp2gsj3541.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Radix64tobits(ptr noundef %0, ptr noundef %1, ptr noundef %2, i8 noundef signext %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i8, align 1
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca [255 x i8], align 16
%13 = alloca i8, align 1
%14 = alloca i8, align 1
%15 = alloca i8, align 1
%16 = alloca i8, align 1
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i8 %3, ptr %9, align 1
store i32 0, ptr %10, align 4
store i32 0, ptr %11, align 4
%19 = load ptr, ptr %8, align 8
store ptr %19, ptr %17, align 8
br label %20
20: ; preds = %34, %4
%21 = load ptr, ptr %17, align 8
%22 = load i8, ptr %21, align 1
%23 = zext i8 %22 to i32
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %37
25: ; preds = %20
%26 = load i32, ptr %11, align 4
%27 = trunc i32 %26 to i8
%28 = load ptr, ptr %17, align 8
%29 = load i8, ptr %28, align 1
%30 = zext i8 %29 to i64
%31 = getelementptr inbounds [255 x i8], ptr %12, i64 0, i64 %30
store i8 %27, ptr %31, align 1
%32 = load i32, ptr %11, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %11, align 4
br label %34
34: ; preds = %25
%35 = load ptr, ptr %17, align 8
%36 = getelementptr inbounds i8, ptr %35, i32 1
store ptr %36, ptr %17, align 8
br label %20, !llvm.loop !6
37: ; preds = %20
%38 = load ptr, ptr %7, align 8
store ptr %38, ptr %17, align 8
%39 = load ptr, ptr %7, align 8
%40 = load ptr, ptr %7, align 8
%41 = icmp ne ptr %40, null
br i1 %41, label %42, label %45
42: ; preds = %37
%43 = load ptr, ptr %7, align 8
%44 = call i32 @strlen(ptr noundef %43)
br label %46
45: ; preds = %37
br label %46
46: ; preds = %45, %42
%47 = phi i32 [ %44, %42 ], [ 0, %45 ]
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8, ptr %39, i64 %48
store ptr %49, ptr %18, align 8
%50 = load ptr, ptr %17, align 8
%51 = getelementptr inbounds i8, ptr %50, i64 0
%52 = load i8, ptr %51, align 1
%53 = zext i8 %52 to i32
%54 = icmp eq i32 %53, 43
br i1 %54, label %55, label %64
55: ; preds = %46
%56 = load ptr, ptr %17, align 8
%57 = getelementptr inbounds i8, ptr %56, i64 1
%58 = load i8, ptr %57, align 1
%59 = zext i8 %58 to i32
%60 = icmp eq i32 %59, 32
br i1 %60, label %61, label %64
61: ; preds = %55
%62 = load ptr, ptr %17, align 8
%63 = getelementptr inbounds i8, ptr %62, i64 2
store ptr %63, ptr %17, align 8
br label %64
64: ; preds = %61, %55, %46
%65 = load ptr, ptr %17, align 8
%66 = load i8, ptr %65, align 1
%67 = zext i8 %66 to i32
%68 = icmp eq i32 %67, 13
br i1 %68, label %69, label %70
69: ; preds = %64
store i32 0, ptr %5, align 4
br label %293
70: ; preds = %64
br label %71
71: ; preds = %289, %70
%72 = load ptr, ptr %17, align 8
%73 = getelementptr inbounds i8, ptr %72, i64 0
%74 = load i8, ptr %73, align 1
store i8 %74, ptr %13, align 1
%75 = load i8, ptr %13, align 1
%76 = call i64 @isascii(i8 noundef zeroext %75)
%77 = icmp ne i64 %76, 0
br i1 %77, label %78, label %84
78: ; preds = %71
%79 = load i8, ptr %13, align 1
%80 = zext i8 %79 to i64
%81 = getelementptr inbounds [255 x i8], ptr %12, i64 0, i64 %80
%82 = load i8, ptr %81, align 1
%83 = sext i8 %82 to i32
br label %85
84: ; preds = %71
br label %85
85: ; preds = %84, %78
%86 = phi i32 [ %83, %78 ], [ -1, %84 ]
%87 = icmp eq i32 %86, -1
br i1 %87, label %88, label %89
88: ; preds = %85
store i32 -1, ptr %5, align 4
br label %293
89: ; preds = %85
%90 = load ptr, ptr %17, align 8
%91 = getelementptr inbounds i8, ptr %90, i64 1
%92 = load i8, ptr %91, align 1
store i8 %92, ptr %14, align 1
%93 = load i8, ptr %14, align 1
%94 = call i64 @isascii(i8 noundef zeroext %93)
%95 = icmp ne i64 %94, 0
br i1 %95, label %96, label %102
96: ; preds = %89
%97 = load i8, ptr %14, align 1
%98 = zext i8 %97 to i64
%99 = getelementptr inbounds [255 x i8], ptr %12, i64 0, i64 %98
%100 = load i8, ptr %99, align 1
%101 = sext i8 %100 to i32
br label %103
102: ; preds = %89
br label %103
103: ; preds = %102, %96
%104 = phi i32 [ %101, %96 ], [ -1, %102 ]
%105 = icmp eq i32 %104, -1
br i1 %105, label %106, label %107
106: ; preds = %103
store i32 -1, ptr %5, align 4
br label %293
107: ; preds = %103
%108 = load ptr, ptr %17, align 8
%109 = getelementptr inbounds i8, ptr %108, i64 2
%110 = load i8, ptr %109, align 1
store i8 %110, ptr %15, align 1
%111 = load i8, ptr %15, align 1
%112 = zext i8 %111 to i32
%113 = load i8, ptr %9, align 1
%114 = sext i8 %113 to i32
%115 = icmp ne i32 %112, %114
br i1 %115, label %116, label %131
116: ; preds = %107
%117 = load i8, ptr %15, align 1
%118 = call i64 @isascii(i8 noundef zeroext %117)
%119 = icmp ne i64 %118, 0
br i1 %119, label %120, label %126
120: ; preds = %116
%121 = load i8, ptr %15, align 1
%122 = zext i8 %121 to i64
%123 = getelementptr inbounds [255 x i8], ptr %12, i64 0, i64 %122
%124 = load i8, ptr %123, align 1
%125 = sext i8 %124 to i32
br label %127
126: ; preds = %116
br label %127
127: ; preds = %126, %120
%128 = phi i32 [ %125, %120 ], [ -1, %126 ]
%129 = icmp eq i32 %128, -1
br i1 %129, label %130, label %131
130: ; preds = %127
store i32 -1, ptr %5, align 4
br label %293
131: ; preds = %127, %107
%132 = load ptr, ptr %17, align 8
%133 = getelementptr inbounds i8, ptr %132, i64 3
%134 = load i8, ptr %133, align 1
store i8 %134, ptr %16, align 1
%135 = load i8, ptr %16, align 1
%136 = zext i8 %135 to i32
%137 = load i8, ptr %9, align 1
%138 = sext i8 %137 to i32
%139 = icmp ne i32 %136, %138
br i1 %139, label %140, label %155
140: ; preds = %131
%141 = load i8, ptr %16, align 1
%142 = call i64 @isascii(i8 noundef zeroext %141)
%143 = icmp ne i64 %142, 0
br i1 %143, label %144, label %150
144: ; preds = %140
%145 = load i8, ptr %16, align 1
%146 = zext i8 %145 to i64
%147 = getelementptr inbounds [255 x i8], ptr %12, i64 0, i64 %146
%148 = load i8, ptr %147, align 1
%149 = sext i8 %148 to i32
br label %151
150: ; preds = %140
br label %151
151: ; preds = %150, %144
%152 = phi i32 [ %149, %144 ], [ -1, %150 ]
%153 = icmp eq i32 %152, -1
br i1 %153, label %154, label %155
154: ; preds = %151
store i32 -1, ptr %5, align 4
br label %293
155: ; preds = %151, %131
%156 = load ptr, ptr %17, align 8
%157 = getelementptr inbounds i8, ptr %156, i64 4
store ptr %157, ptr %17, align 8
%158 = load i8, ptr %13, align 1
%159 = call i64 @isascii(i8 noundef zeroext %158)
%160 = icmp ne i64 %159, 0
br i1 %160, label %161, label %167
161: ; preds = %155
%162 = load i8, ptr %13, align 1
%163 = zext i8 %162 to i64
%164 = getelementptr inbounds [255 x i8], ptr %12, i64 0, i64 %163
%165 = load i8, ptr %164, align 1
%166 = sext i8 %165 to i32
br label %168
167: ; preds = %155
br label %168
168: ; preds = %167, %161
%169 = phi i32 [ %166, %161 ], [ -1, %167 ]
%170 = shl i32 %169, 2
%171 = load i8, ptr %14, align 1
%172 = call i64 @isascii(i8 noundef zeroext %171)
%173 = icmp ne i64 %172, 0
br i1 %173, label %174, label %180
174: ; preds = %168
%175 = load i8, ptr %14, align 1
%176 = zext i8 %175 to i64
%177 = getelementptr inbounds [255 x i8], ptr %12, i64 0, i64 %176
%178 = load i8, ptr %177, align 1
%179 = sext i8 %178 to i32
br label %181
180: ; preds = %168
br label %181
181: ; preds = %180, %174
%182 = phi i32 [ %179, %174 ], [ -1, %180 ]
%183 = ashr i32 %182, 4
%184 = or i32 %170, %183
%185 = trunc i32 %184 to i8
%186 = load ptr, ptr %6, align 8
%187 = getelementptr inbounds i8, ptr %186, i32 1
store ptr %187, ptr %6, align 8
store i8 %185, ptr %186, align 1
%188 = load i32, ptr %10, align 4
%189 = add nsw i32 %188, 1
store i32 %189, ptr %10, align 4
%190 = load i8, ptr %15, align 1
%191 = zext i8 %190 to i32
%192 = load i8, ptr %9, align 1
%193 = sext i8 %192 to i32
%194 = icmp ne i32 %191, %193
br i1 %194, label %195, label %268
195: ; preds = %181
%196 = load i8, ptr %14, align 1
%197 = call i64 @isascii(i8 noundef zeroext %196)
%198 = icmp ne i64 %197, 0
br i1 %198, label %199, label %205
199: ; preds = %195
%200 = load i8, ptr %14, align 1
%201 = zext i8 %200 to i64
%202 = getelementptr inbounds [255 x i8], ptr %12, i64 0, i64 %201
%203 = load i8, ptr %202, align 1
%204 = sext i8 %203 to i32
br label %206
205: ; preds = %195
br label %206
206: ; preds = %205, %199
%207 = phi i32 [ %204, %199 ], [ -1, %205 ]
%208 = shl i32 %207, 4
%209 = and i32 %208, 240
%210 = load i8, ptr %15, align 1
%211 = call i64 @isascii(i8 noundef zeroext %210)
%212 = icmp ne i64 %211, 0
br i1 %212, label %213, label %219
213: ; preds = %206
%214 = load i8, ptr %15, align 1
%215 = zext i8 %214 to i64
%216 = getelementptr inbounds [255 x i8], ptr %12, i64 0, i64 %215
%217 = load i8, ptr %216, align 1
%218 = sext i8 %217 to i32
br label %220
219: ; preds = %206
br label %220
220: ; preds = %219, %213
%221 = phi i32 [ %218, %213 ], [ -1, %219 ]
%222 = ashr i32 %221, 2
%223 = or i32 %209, %222
%224 = trunc i32 %223 to i8
%225 = load ptr, ptr %6, align 8
%226 = getelementptr inbounds i8, ptr %225, i32 1
store ptr %226, ptr %6, align 8
store i8 %224, ptr %225, align 1
%227 = load i32, ptr %10, align 4
%228 = add nsw i32 %227, 1
store i32 %228, ptr %10, align 4
%229 = load i8, ptr %16, align 1
%230 = zext i8 %229 to i32
%231 = load i8, ptr %9, align 1
%232 = sext i8 %231 to i32
%233 = icmp ne i32 %230, %232
br i1 %233, label %234, label %267
234: ; preds = %220
%235 = load i8, ptr %15, align 1
%236 = call i64 @isascii(i8 noundef zeroext %235)
%237 = icmp ne i64 %236, 0
br i1 %237, label %238, label %244
238: ; preds = %234
%239 = load i8, ptr %15, align 1
%240 = zext i8 %239 to i64
%241 = getelementptr inbounds [255 x i8], ptr %12, i64 0, i64 %240
%242 = load i8, ptr %241, align 1
%243 = sext i8 %242 to i32
br label %245
244: ; preds = %234
br label %245
245: ; preds = %244, %238
%246 = phi i32 [ %243, %238 ], [ -1, %244 ]
%247 = shl i32 %246, 6
%248 = and i32 %247, 192
%249 = load i8, ptr %16, align 1
%250 = call i64 @isascii(i8 noundef zeroext %249)
%251 = icmp ne i64 %250, 0
br i1 %251, label %252, label %258
252: ; preds = %245
%253 = load i8, ptr %16, align 1
%254 = zext i8 %253 to i64
%255 = getelementptr inbounds [255 x i8], ptr %12, i64 0, i64 %254
%256 = load i8, ptr %255, align 1
%257 = sext i8 %256 to i32
br label %259
258: ; preds = %245
br label %259
259: ; preds = %258, %252
%260 = phi i32 [ %257, %252 ], [ -1, %258 ]
%261 = or i32 %248, %260
%262 = trunc i32 %261 to i8
%263 = load ptr, ptr %6, align 8
%264 = getelementptr inbounds i8, ptr %263, i32 1
store ptr %264, ptr %6, align 8
store i8 %262, ptr %263, align 1
%265 = load i32, ptr %10, align 4
%266 = add nsw i32 %265, 1
store i32 %266, ptr %10, align 4
br label %267
267: ; preds = %259, %220
br label %268
268: ; preds = %267, %181
br label %269
269: ; preds = %268
%270 = load ptr, ptr %17, align 8
%271 = load i8, ptr %270, align 1
%272 = zext i8 %271 to i32
%273 = icmp ne i32 %272, 0
br i1 %273, label %274, label %289
274: ; preds = %269
%275 = load ptr, ptr %17, align 8
%276 = load i8, ptr %275, align 1
%277 = zext i8 %276 to i32
%278 = icmp ne i32 %277, 13
br i1 %278, label %279, label %289
279: ; preds = %274
%280 = load ptr, ptr %17, align 8
%281 = load ptr, ptr %18, align 8
%282 = icmp ult ptr %280, %281
br i1 %282, label %283, label %289
283: ; preds = %279
%284 = load i8, ptr %16, align 1
%285 = zext i8 %284 to i32
%286 = load i8, ptr %9, align 1
%287 = sext i8 %286 to i32
%288 = icmp ne i32 %285, %287
br label %289
289: ; preds = %283, %279, %274, %269
%290 = phi i1 [ false, %279 ], [ false, %274 ], [ false, %269 ], [ %288, %283 ]
br i1 %290, label %71, label %291, !llvm.loop !8
291: ; preds = %289
%292 = load i32, ptr %10, align 4
store i32 %292, ptr %5, align 4
br label %293
293: ; preds = %291, %154, %130, %106, %88, %69
%294 = load i32, ptr %5, align 4
ret i32 %294
}
declare i32 @strlen(ptr noundef) #1
declare i64 @isascii(i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2gsj3541.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Radix64tobits(ptr noundef %0, ptr noundef %1, ptr noundef %2, i8 noundef signext %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i8, align 1
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca [255 x i8], align 16
%13 = alloca i8, align 1
%14 = alloca i8, align 1
%15 = alloca i8, align 1
%16 = alloca i8, align 1
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store i8 %3, ptr %9, align 1
store i32 0, ptr %10, align 4
store i32 0, ptr %11, align 4
%19 = load ptr, ptr %8, align 8
store ptr %19, ptr %17, align 8
%20 = load ptr, ptr %17, align 8
%21 = load i8, ptr %20, align 1
%22 = zext i8 %21 to i32
%23 = icmp ne i32 %22, 0
br i1 %23, label %.lr.ph, label %40
.lr.ph: ; preds = %4
br label %24
24: ; preds = %.lr.ph, %33
%25 = load i32, ptr %11, align 4
%26 = trunc i32 %25 to i8
%27 = load ptr, ptr %17, align 8
%28 = load i8, ptr %27, align 1
%29 = zext i8 %28 to i64
%30 = getelementptr inbounds [255 x i8], ptr %12, i64 0, i64 %29
store i8 %26, ptr %30, align 1
%31 = load i32, ptr %11, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %11, align 4
br label %33
33: ; preds = %24
%34 = load ptr, ptr %17, align 8
%35 = getelementptr inbounds i8, ptr %34, i32 1
store ptr %35, ptr %17, align 8
%36 = load ptr, ptr %17, align 8
%37 = load i8, ptr %36, align 1
%38 = zext i8 %37 to i32
%39 = icmp ne i32 %38, 0
br i1 %39, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %33
br label %40
40: ; preds = %._crit_edge, %4
%41 = load ptr, ptr %7, align 8
store ptr %41, ptr %17, align 8
%42 = load ptr, ptr %7, align 8
%43 = load ptr, ptr %7, align 8
%44 = icmp ne ptr %43, null
br i1 %44, label %45, label %48
45: ; preds = %40
%46 = load ptr, ptr %7, align 8
%47 = call i32 @strlen(ptr noundef %46)
br label %49
48: ; preds = %40
br label %49
49: ; preds = %48, %45
%50 = phi i32 [ %47, %45 ], [ 0, %48 ]
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i8, ptr %42, i64 %51
store ptr %52, ptr %18, align 8
%53 = load ptr, ptr %17, align 8
%54 = getelementptr inbounds i8, ptr %53, i64 0
%55 = load i8, ptr %54, align 1
%56 = zext i8 %55 to i32
%57 = icmp eq i32 %56, 43
br i1 %57, label %58, label %67
58: ; preds = %49
%59 = load ptr, ptr %17, align 8
%60 = getelementptr inbounds i8, ptr %59, i64 1
%61 = load i8, ptr %60, align 1
%62 = zext i8 %61 to i32
%63 = icmp eq i32 %62, 32
br i1 %63, label %64, label %67
64: ; preds = %58
%65 = load ptr, ptr %17, align 8
%66 = getelementptr inbounds i8, ptr %65, i64 2
store ptr %66, ptr %17, align 8
br label %67
67: ; preds = %64, %58, %49
%68 = load ptr, ptr %17, align 8
%69 = load i8, ptr %68, align 1
%70 = zext i8 %69 to i32
%71 = icmp eq i32 %70, 13
br i1 %71, label %72, label %73
72: ; preds = %67
store i32 0, ptr %5, align 4
br label %296
73: ; preds = %67
br label %74
74: ; preds = %292, %73
%75 = load ptr, ptr %17, align 8
%76 = getelementptr inbounds i8, ptr %75, i64 0
%77 = load i8, ptr %76, align 1
store i8 %77, ptr %13, align 1
%78 = load i8, ptr %13, align 1
%79 = call i64 @isascii(i8 noundef zeroext %78)
%80 = icmp ne i64 %79, 0
br i1 %80, label %81, label %87
81: ; preds = %74
%82 = load i8, ptr %13, align 1
%83 = zext i8 %82 to i64
%84 = getelementptr inbounds [255 x i8], ptr %12, i64 0, i64 %83
%85 = load i8, ptr %84, align 1
%86 = sext i8 %85 to i32
br label %88
87: ; preds = %74
br label %88
88: ; preds = %87, %81
%89 = phi i32 [ %86, %81 ], [ -1, %87 ]
%90 = icmp eq i32 %89, -1
br i1 %90, label %91, label %92
91: ; preds = %88
store i32 -1, ptr %5, align 4
br label %296
92: ; preds = %88
%93 = load ptr, ptr %17, align 8
%94 = getelementptr inbounds i8, ptr %93, i64 1
%95 = load i8, ptr %94, align 1
store i8 %95, ptr %14, align 1
%96 = load i8, ptr %14, align 1
%97 = call i64 @isascii(i8 noundef zeroext %96)
%98 = icmp ne i64 %97, 0
br i1 %98, label %99, label %105
99: ; preds = %92
%100 = load i8, ptr %14, align 1
%101 = zext i8 %100 to i64
%102 = getelementptr inbounds [255 x i8], ptr %12, i64 0, i64 %101
%103 = load i8, ptr %102, align 1
%104 = sext i8 %103 to i32
br label %106
105: ; preds = %92
br label %106
106: ; preds = %105, %99
%107 = phi i32 [ %104, %99 ], [ -1, %105 ]
%108 = icmp eq i32 %107, -1
br i1 %108, label %109, label %110
109: ; preds = %106
store i32 -1, ptr %5, align 4
br label %296
110: ; preds = %106
%111 = load ptr, ptr %17, align 8
%112 = getelementptr inbounds i8, ptr %111, i64 2
%113 = load i8, ptr %112, align 1
store i8 %113, ptr %15, align 1
%114 = load i8, ptr %15, align 1
%115 = zext i8 %114 to i32
%116 = load i8, ptr %9, align 1
%117 = sext i8 %116 to i32
%118 = icmp ne i32 %115, %117
br i1 %118, label %119, label %134
119: ; preds = %110
%120 = load i8, ptr %15, align 1
%121 = call i64 @isascii(i8 noundef zeroext %120)
%122 = icmp ne i64 %121, 0
br i1 %122, label %123, label %129
123: ; preds = %119
%124 = load i8, ptr %15, align 1
%125 = zext i8 %124 to i64
%126 = getelementptr inbounds [255 x i8], ptr %12, i64 0, i64 %125
%127 = load i8, ptr %126, align 1
%128 = sext i8 %127 to i32
br label %130
129: ; preds = %119
br label %130
130: ; preds = %129, %123
%131 = phi i32 [ %128, %123 ], [ -1, %129 ]
%132 = icmp eq i32 %131, -1
br i1 %132, label %133, label %134
133: ; preds = %130
store i32 -1, ptr %5, align 4
br label %296
134: ; preds = %130, %110
%135 = load ptr, ptr %17, align 8
%136 = getelementptr inbounds i8, ptr %135, i64 3
%137 = load i8, ptr %136, align 1
store i8 %137, ptr %16, align 1
%138 = load i8, ptr %16, align 1
%139 = zext i8 %138 to i32
%140 = load i8, ptr %9, align 1
%141 = sext i8 %140 to i32
%142 = icmp ne i32 %139, %141
br i1 %142, label %143, label %158
143: ; preds = %134
%144 = load i8, ptr %16, align 1
%145 = call i64 @isascii(i8 noundef zeroext %144)
%146 = icmp ne i64 %145, 0
br i1 %146, label %147, label %153
147: ; preds = %143
%148 = load i8, ptr %16, align 1
%149 = zext i8 %148 to i64
%150 = getelementptr inbounds [255 x i8], ptr %12, i64 0, i64 %149
%151 = load i8, ptr %150, align 1
%152 = sext i8 %151 to i32
br label %154
153: ; preds = %143
br label %154
154: ; preds = %153, %147
%155 = phi i32 [ %152, %147 ], [ -1, %153 ]
%156 = icmp eq i32 %155, -1
br i1 %156, label %157, label %158
157: ; preds = %154
store i32 -1, ptr %5, align 4
br label %296
158: ; preds = %154, %134
%159 = load ptr, ptr %17, align 8
%160 = getelementptr inbounds i8, ptr %159, i64 4
store ptr %160, ptr %17, align 8
%161 = load i8, ptr %13, align 1
%162 = call i64 @isascii(i8 noundef zeroext %161)
%163 = icmp ne i64 %162, 0
br i1 %163, label %164, label %170
164: ; preds = %158
%165 = load i8, ptr %13, align 1
%166 = zext i8 %165 to i64
%167 = getelementptr inbounds [255 x i8], ptr %12, i64 0, i64 %166
%168 = load i8, ptr %167, align 1
%169 = sext i8 %168 to i32
br label %171
170: ; preds = %158
br label %171
171: ; preds = %170, %164
%172 = phi i32 [ %169, %164 ], [ -1, %170 ]
%173 = shl i32 %172, 2
%174 = load i8, ptr %14, align 1
%175 = call i64 @isascii(i8 noundef zeroext %174)
%176 = icmp ne i64 %175, 0
br i1 %176, label %177, label %183
177: ; preds = %171
%178 = load i8, ptr %14, align 1
%179 = zext i8 %178 to i64
%180 = getelementptr inbounds [255 x i8], ptr %12, i64 0, i64 %179
%181 = load i8, ptr %180, align 1
%182 = sext i8 %181 to i32
br label %184
183: ; preds = %171
br label %184
184: ; preds = %183, %177
%185 = phi i32 [ %182, %177 ], [ -1, %183 ]
%186 = ashr i32 %185, 4
%187 = or i32 %173, %186
%188 = trunc i32 %187 to i8
%189 = load ptr, ptr %6, align 8
%190 = getelementptr inbounds i8, ptr %189, i32 1
store ptr %190, ptr %6, align 8
store i8 %188, ptr %189, align 1
%191 = load i32, ptr %10, align 4
%192 = add nsw i32 %191, 1
store i32 %192, ptr %10, align 4
%193 = load i8, ptr %15, align 1
%194 = zext i8 %193 to i32
%195 = load i8, ptr %9, align 1
%196 = sext i8 %195 to i32
%197 = icmp ne i32 %194, %196
br i1 %197, label %198, label %271
198: ; preds = %184
%199 = load i8, ptr %14, align 1
%200 = call i64 @isascii(i8 noundef zeroext %199)
%201 = icmp ne i64 %200, 0
br i1 %201, label %202, label %208
202: ; preds = %198
%203 = load i8, ptr %14, align 1
%204 = zext i8 %203 to i64
%205 = getelementptr inbounds [255 x i8], ptr %12, i64 0, i64 %204
%206 = load i8, ptr %205, align 1
%207 = sext i8 %206 to i32
br label %209
208: ; preds = %198
br label %209
209: ; preds = %208, %202
%210 = phi i32 [ %207, %202 ], [ -1, %208 ]
%211 = shl i32 %210, 4
%212 = and i32 %211, 240
%213 = load i8, ptr %15, align 1
%214 = call i64 @isascii(i8 noundef zeroext %213)
%215 = icmp ne i64 %214, 0
br i1 %215, label %216, label %222
216: ; preds = %209
%217 = load i8, ptr %15, align 1
%218 = zext i8 %217 to i64
%219 = getelementptr inbounds [255 x i8], ptr %12, i64 0, i64 %218
%220 = load i8, ptr %219, align 1
%221 = sext i8 %220 to i32
br label %223
222: ; preds = %209
br label %223
223: ; preds = %222, %216
%224 = phi i32 [ %221, %216 ], [ -1, %222 ]
%225 = ashr i32 %224, 2
%226 = or i32 %212, %225
%227 = trunc i32 %226 to i8
%228 = load ptr, ptr %6, align 8
%229 = getelementptr inbounds i8, ptr %228, i32 1
store ptr %229, ptr %6, align 8
store i8 %227, ptr %228, align 1
%230 = load i32, ptr %10, align 4
%231 = add nsw i32 %230, 1
store i32 %231, ptr %10, align 4
%232 = load i8, ptr %16, align 1
%233 = zext i8 %232 to i32
%234 = load i8, ptr %9, align 1
%235 = sext i8 %234 to i32
%236 = icmp ne i32 %233, %235
br i1 %236, label %237, label %270
237: ; preds = %223
%238 = load i8, ptr %15, align 1
%239 = call i64 @isascii(i8 noundef zeroext %238)
%240 = icmp ne i64 %239, 0
br i1 %240, label %241, label %247
241: ; preds = %237
%242 = load i8, ptr %15, align 1
%243 = zext i8 %242 to i64
%244 = getelementptr inbounds [255 x i8], ptr %12, i64 0, i64 %243
%245 = load i8, ptr %244, align 1
%246 = sext i8 %245 to i32
br label %248
247: ; preds = %237
br label %248
248: ; preds = %247, %241
%249 = phi i32 [ %246, %241 ], [ -1, %247 ]
%250 = shl i32 %249, 6
%251 = and i32 %250, 192
%252 = load i8, ptr %16, align 1
%253 = call i64 @isascii(i8 noundef zeroext %252)
%254 = icmp ne i64 %253, 0
br i1 %254, label %255, label %261
255: ; preds = %248
%256 = load i8, ptr %16, align 1
%257 = zext i8 %256 to i64
%258 = getelementptr inbounds [255 x i8], ptr %12, i64 0, i64 %257
%259 = load i8, ptr %258, align 1
%260 = sext i8 %259 to i32
br label %262
261: ; preds = %248
br label %262
262: ; preds = %261, %255
%263 = phi i32 [ %260, %255 ], [ -1, %261 ]
%264 = or i32 %251, %263
%265 = trunc i32 %264 to i8
%266 = load ptr, ptr %6, align 8
%267 = getelementptr inbounds i8, ptr %266, i32 1
store ptr %267, ptr %6, align 8
store i8 %265, ptr %266, align 1
%268 = load i32, ptr %10, align 4
%269 = add nsw i32 %268, 1
store i32 %269, ptr %10, align 4
br label %270
270: ; preds = %262, %223
br label %271
271: ; preds = %270, %184
br label %272
272: ; preds = %271
%273 = load ptr, ptr %17, align 8
%274 = load i8, ptr %273, align 1
%275 = zext i8 %274 to i32
%276 = icmp ne i32 %275, 0
br i1 %276, label %277, label %292
277: ; preds = %272
%278 = load ptr, ptr %17, align 8
%279 = load i8, ptr %278, align 1
%280 = zext i8 %279 to i32
%281 = icmp ne i32 %280, 13
br i1 %281, label %282, label %292
282: ; preds = %277
%283 = load ptr, ptr %17, align 8
%284 = load ptr, ptr %18, align 8
%285 = icmp ult ptr %283, %284
br i1 %285, label %286, label %292
286: ; preds = %282
%287 = load i8, ptr %16, align 1
%288 = zext i8 %287 to i32
%289 = load i8, ptr %9, align 1
%290 = sext i8 %289 to i32
%291 = icmp ne i32 %288, %290
br label %292
292: ; preds = %286, %282, %277, %272
%293 = phi i1 [ false, %282 ], [ false, %277 ], [ false, %272 ], [ %291, %286 ]
br i1 %293, label %74, label %294, !llvm.loop !8
294: ; preds = %292
%295 = load i32, ptr %10, align 4
store i32 %295, ptr %5, align 4
br label %296
296: ; preds = %294, %157, %133, %109, %91, %72
%297 = load i32, ptr %5, align 4
ret i32 %297
}
declare i32 @strlen(ptr noundef) #1
declare i64 @isascii(i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpf7_504or.c'
source_filename = "/tmp/tmpf7_504or.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"# c::%s:len=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"smeanlipw\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"ok %d benchmark finished\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 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 0, ptr %1, align 4
%8 = call i32 @time(ptr noundef null)
%9 = call i32 @srand(i32 noundef %8)
%10 = call i32 (...) @print_version()
store i32 0, ptr %3, align 4
store i32 1, ptr %6, align 4
br label %11
11: ; preds = %41, %0
%12 = load i32, ptr %6, align 4
%13 = icmp sle i32 %12, 6
br i1 %13, label %14, label %44
14: ; preds = %11
%15 = load i32, ptr %6, align 4
%16 = call i32 @pow(i32 noundef 10, i32 noundef %15)
store i32 %16, ptr %5, align 4
%17 = load i32, ptr %6, align 4
%18 = sub nsw i32 %17, 1
%19 = call i32 @pow(i32 noundef 10, i32 noundef %18)
%20 = sdiv i32 1000000, %19
store i32 %20, ptr %4, align 4
store i32 0, ptr %7, align 4
br label %21
21: ; preds = %37, %14
%22 = load i32, ptr %7, align 4
%23 = icmp slt i32 %22, 3
br i1 %23, label %24, label %40
24: ; preds = %21
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %3, align 4
%27 = load i32, ptr %5, align 4
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef %27)
%29 = load i32, ptr %4, align 4
%30 = load i32, ptr %5, align 4
%31 = call double @benchmark(i32 noundef %29, i32 noundef %30)
store double %31, ptr %2, align 8
%32 = load i32, ptr %4, align 4
%33 = load double, ptr %2, align 8
%34 = call i32 @print_results(i32 noundef %32, double noundef %33)
%35 = load i32, ptr %3, align 4
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %35)
br label %37
37: ; preds = %24
%38 = load i32, ptr %7, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %7, align 4
br label %21, !llvm.loop !6
40: ; preds = %21
br label %41
41: ; preds = %40
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4
br label %11, !llvm.loop !8
44: ; preds = %11
%45 = load i32, ptr %3, align 4
%46 = load i32, ptr %3, align 4
%47 = call i32 @print_summary(i32 noundef %45, i32 noundef %46)
%48 = load i32, ptr %1, align 4
ret i32 %48
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @print_version(...) #1
declare i32 @pow(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @benchmark(i32 noundef, i32 noundef) #1
declare i32 @print_results(i32 noundef, double noundef) #1
declare i32 @print_summary(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf7_504or.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"# c::%s:len=%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"smeanlipw\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"ok %d benchmark finished\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 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 0, ptr %1, align 4
%8 = call i32 @time(ptr noundef null)
%9 = call i32 @srand(i32 noundef %8)
%10 = call i32 (...) @print_version()
store i32 0, ptr %3, align 4
store i32 1, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp sle i32 %11, 6
br i1 %12, label %.lr.ph2, label %46
.lr.ph2: ; preds = %0
br label %13
13: ; preds = %.lr.ph2, %41
%14 = load i32, ptr %6, align 4
%15 = call i32 @pow(i32 noundef 10, i32 noundef %14)
store i32 %15, ptr %5, align 4
%16 = load i32, ptr %6, align 4
%17 = sub nsw i32 %16, 1
%18 = call i32 @pow(i32 noundef 10, i32 noundef %17)
%19 = sdiv i32 1000000, %18
store i32 %19, ptr %4, align 4
store i32 0, ptr %7, align 4
%20 = load i32, ptr %7, align 4
%21 = icmp slt i32 %20, 3
br i1 %21, label %.lr.ph, label %40
.lr.ph: ; preds = %13
br label %22
22: ; preds = %.lr.ph, %35
%23 = load i32, ptr %3, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %3, align 4
%25 = load i32, ptr %5, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef %25)
%27 = load i32, ptr %4, align 4
%28 = load i32, ptr %5, align 4
%29 = call double @benchmark(i32 noundef %27, i32 noundef %28)
store double %29, ptr %2, align 8
%30 = load i32, ptr %4, align 4
%31 = load double, ptr %2, align 8
%32 = call i32 @print_results(i32 noundef %30, double noundef %31)
%33 = load i32, ptr %3, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %33)
br label %35
35: ; preds = %22
%36 = load i32, ptr %7, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %7, align 4
%38 = load i32, ptr %7, align 4
%39 = icmp slt i32 %38, 3
br i1 %39, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %35
br label %40
40: ; preds = %._crit_edge, %13
br label %41
41: ; preds = %40
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4
%44 = load i32, ptr %6, align 4
%45 = icmp sle i32 %44, 6
br i1 %45, label %13, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %41
br label %46
46: ; preds = %._crit_edge3, %0
%47 = load i32, ptr %3, align 4
%48 = load i32, ptr %3, align 4
%49 = call i32 @print_summary(i32 noundef %47, i32 noundef %48)
%50 = load i32, ptr %1, align 4
ret i32 %50
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @print_version(...) #1
declare i32 @pow(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @benchmark(i32 noundef, i32 noundef) #1
declare i32 @print_results(i32 noundef, double noundef) #1
declare i32 @print_summary(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp02chb8bm.c'
source_filename = "/tmp/tmp02chb8bm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @djb2_hash(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i32 5381, ptr %5, align 4
store i64 0, ptr %6, align 8
br label %7
7: ; preds = %22, %2
%8 = load i64, ptr %6, align 8
%9 = load i64, ptr %4, align 8
%10 = icmp ult i64 %8, %9
br i1 %10, label %11, label %25
11: ; preds = %7
%12 = load i32, ptr %5, align 4
%13 = shl i32 %12, 5
%14 = load i32, ptr %5, align 4
%15 = add i32 %13, %14
%16 = load ptr, ptr %3, align 8
%17 = load i64, ptr %6, align 8
%18 = getelementptr inbounds i8, ptr %16, i64 %17
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = add i32 %15, %20
store i32 %21, ptr %5, align 4
br label %22
22: ; preds = %11
%23 = load i64, ptr %6, align 8
%24 = add i64 %23, 1
store i64 %24, ptr %6, align 8
br label %7, !llvm.loop !6
25: ; preds = %7
%26 = load i32, ptr %5, align 4
ret i32 %26
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp02chb8bm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @djb2_hash(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i32 5381, ptr %5, align 4
store i64 0, ptr %6, align 8
%7 = load i64, ptr %6, align 8
%8 = load i64, ptr %4, align 8
%9 = icmp ult i64 %7, %8
br i1 %9, label %.lr.ph, label %27
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %21
%11 = load i32, ptr %5, align 4
%12 = shl i32 %11, 5
%13 = load i32, ptr %5, align 4
%14 = add i32 %12, %13
%15 = load ptr, ptr %3, align 8
%16 = load i64, ptr %6, align 8
%17 = getelementptr inbounds i8, ptr %15, i64 %16
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = add i32 %14, %19
store i32 %20, ptr %5, align 4
br label %21
21: ; preds = %10
%22 = load i64, ptr %6, align 8
%23 = add i64 %22, 1
store i64 %23, ptr %6, align 8
%24 = load i64, ptr %6, align 8
%25 = load i64, ptr %4, align 8
%26 = icmp ult i64 %24, %25
br i1 %26, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %27
27: ; preds = %._crit_edge, %2
%28 = load i32, ptr %5, 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 = '/tmp/tmpvkje7zmn.c'
source_filename = "/tmp/tmpvkje7zmn.c"
target datalayout = "e-m:e-p270: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/tmpvkje7zmn.c"
target datalayout = "e-m:e-p270: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/tmppuyczsxw.c'
source_filename = "/tmp/tmppuyczsxw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isspace.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isspace should be 0 for U\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isspace_0x55() #0 {
%1 = call i64 @isspace(i32 noundef 85)
%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 430, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isspace(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/tmppuyczsxw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isspace.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isspace should be 0 for U\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isspace_0x55() #0 {
%1 = call i64 @isspace(i32 noundef 85)
%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 430, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isspace(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/tmp454zz6ua.c'
source_filename = "/tmp/tmp454zz6ua.c"
target datalayout = "e-m:e-p270: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/tmp454zz6ua.c"
target datalayout = "e-m:e-p270: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/tmpfhcpowoe.c'
source_filename = "/tmp/tmpfhcpowoe.c"
target datalayout = "e-m:e-p270: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/tmpfhcpowoe.c"
target datalayout = "e-m:e-p270: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/tmpzh27ddbl.c'
source_filename = "/tmp/tmpzh27ddbl.c"
target datalayout = "e-m:e-p270: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/tmpzh27ddbl.c"
target datalayout = "e-m:e-p270: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/tmp691l16uc.c'
source_filename = "/tmp/tmp691l16uc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_remainderl(x86_fp80 noundef %0, x86_fp80 noundef %1) #0 {
%3 = alloca x86_fp80, align 16
%4 = alloca x86_fp80, align 16
store x86_fp80 %0, ptr %3, align 16
store x86_fp80 %1, ptr %4, align 16
%5 = load x86_fp80, ptr %3, align 16
%6 = load x86_fp80, ptr %4, align 16
%7 = call i64 @remainderl(x86_fp80 noundef %5, x86_fp80 noundef %6)
%8 = load x86_fp80, ptr %3, align 16
%9 = load x86_fp80, ptr %4, align 16
%10 = call i64 @remainderl(x86_fp80 noundef %8, x86_fp80 noundef %9)
%11 = icmp ne i64 %7, %10
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 (...) @link_failure_remainderl()
br label %14
14: ; preds = %12, %2
ret void
}
declare i64 @remainderl(x86_fp80 noundef, x86_fp80 noundef) #1
declare i32 @link_failure_remainderl(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp691l16uc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_remainderl(x86_fp80 noundef %0, x86_fp80 noundef %1) #0 {
%3 = alloca x86_fp80, align 16
%4 = alloca x86_fp80, align 16
store x86_fp80 %0, ptr %3, align 16
store x86_fp80 %1, ptr %4, align 16
%5 = load x86_fp80, ptr %3, align 16
%6 = load x86_fp80, ptr %4, align 16
%7 = call i64 @remainderl(x86_fp80 noundef %5, x86_fp80 noundef %6)
%8 = load x86_fp80, ptr %3, align 16
%9 = load x86_fp80, ptr %4, align 16
%10 = call i64 @remainderl(x86_fp80 noundef %8, x86_fp80 noundef %9)
%11 = icmp ne i64 %7, %10
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 (...) @link_failure_remainderl()
br label %14
14: ; preds = %12, %2
ret void
}
declare i64 @remainderl(x86_fp80 noundef, x86_fp80 noundef) #1
declare i32 @link_failure_remainderl(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpy2r_y81g.c'
source_filename = "/tmp/tmpy2r_y81g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @YabauseResetButton() #0 {
%1 = call i32 (...) @SmpcResetButton()
ret void
}
declare i32 @SmpcResetButton(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy2r_y81g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @YabauseResetButton() #0 {
%1 = call i32 (...) @SmpcResetButton()
ret void
}
declare i32 @SmpcResetButton(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkrrgd2t8.c'
source_filename = "/tmp/tmpkrrgd2t8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @af2() #0 {
%1 = alloca ptr, align 8
%2 = call ptr @my_malloc(i32 noundef 12)
store ptr %2, ptr %1, align 8
%3 = load ptr, ptr %1, align 8
%4 = call i32 @my_free(ptr noundef %3)
%5 = load ptr, ptr %1, align 8
%6 = call i32 @free(ptr noundef %5)
ret void
}
declare ptr @my_malloc(i32 noundef) #1
declare i32 @my_free(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkrrgd2t8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @af2() #0 {
%1 = alloca ptr, align 8
%2 = call ptr @my_malloc(i32 noundef 12)
store ptr %2, ptr %1, align 8
%3 = load ptr, ptr %1, align 8
%4 = call i32 @my_free(ptr noundef %3)
%5 = load ptr, ptr %1, align 8
%6 = call i32 @free(ptr noundef %5)
ret void
}
declare ptr @my_malloc(i32 noundef) #1
declare i32 @my_free(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgcq16wzu.c'
source_filename = "/tmp/tmpgcq16wzu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"bx\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"add\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cginc2ib() #0 {
%1 = call i32 @cgincbind(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 1)
ret void
}
declare i32 @cgincbind(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/tmpgcq16wzu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"bx\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"add\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cginc2ib() #0 {
%1 = call i32 @cgincbind(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 1)
ret void
}
declare i32 @cgincbind(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/tmpdz0bcrym.c'
source_filename = "/tmp/tmpdz0bcrym.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.string = private unnamed_addr constant [27 x i8] c"abcdefghijklmnopqrstuvwxyz\00", align 16
@.str = private unnamed_addr constant [29 x i8] c"Regular string: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"Regular reversed String: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"Swap reversed String: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [27 x i8], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.main.string, i64 27, i1 false)
%2 = getelementptr inbounds [27 x i8], ptr %1, i64 0, i64 0
%3 = call i32 @printf(ptr noundef @.str, ptr noundef %2)
%4 = getelementptr inbounds [27 x i8], ptr %1, i64 0, i64 0
%5 = call ptr @reverseIterate(ptr noundef %4)
%6 = call i32 @printf(ptr noundef @.str.1, ptr noundef %5)
%7 = getelementptr inbounds [27 x i8], ptr %1, i64 0, i64 0
%8 = call ptr @reverseSwapReference(ptr noundef %7)
%9 = call i32 @printf(ptr noundef @.str.2, ptr noundef %8)
%10 = getelementptr inbounds [27 x i8], ptr %1, i64 0, i64 0
%11 = call i32 @reverseSwapPointer(ptr noundef %10)
%12 = getelementptr inbounds [27 x i8], ptr %1, i64 0, i64 0
%13 = call i32 @printf(ptr noundef @.str.2, ptr noundef %12)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ptr noundef) #2
declare ptr @reverseIterate(ptr noundef) #2
declare ptr @reverseSwapReference(ptr noundef) #2
declare i32 @reverseSwapPointer(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/tmpdz0bcrym.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.string = private unnamed_addr constant [27 x i8] c"abcdefghijklmnopqrstuvwxyz\00", align 16
@.str = private unnamed_addr constant [29 x i8] c"Regular string: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"Regular reversed String: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"Swap reversed String: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [27 x i8], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.main.string, i64 27, i1 false)
%2 = getelementptr inbounds [27 x i8], ptr %1, i64 0, i64 0
%3 = call i32 @printf(ptr noundef @.str, ptr noundef %2)
%4 = getelementptr inbounds [27 x i8], ptr %1, i64 0, i64 0
%5 = call ptr @reverseIterate(ptr noundef %4)
%6 = call i32 @printf(ptr noundef @.str.1, ptr noundef %5)
%7 = getelementptr inbounds [27 x i8], ptr %1, i64 0, i64 0
%8 = call ptr @reverseSwapReference(ptr noundef %7)
%9 = call i32 @printf(ptr noundef @.str.2, ptr noundef %8)
%10 = getelementptr inbounds [27 x i8], ptr %1, i64 0, i64 0
%11 = call i32 @reverseSwapPointer(ptr noundef %10)
%12 = getelementptr inbounds [27 x i8], ptr %1, i64 0, i64 0
%13 = call i32 @printf(ptr noundef @.str.2, ptr noundef %12)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ptr noundef) #2
declare ptr @reverseIterate(ptr noundef) #2
declare ptr @reverseSwapReference(ptr noundef) #2
declare i32 @reverseSwapPointer(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/tmpsjr_4c03.c'
source_filename = "/tmp/tmpsjr_4c03.c"
target datalayout = "e-m:e-p270: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 [7 x i8] c"%s: %s\00", align 1
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @error(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 @stderr, align 4
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str, ptr noundef %8, ptr noundef %9)
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fflush(i32 noundef %11)
%13 = load i32, ptr @stdout, align 4
%14 = call i32 @fflush(i32 noundef %13)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fflush(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/tmpsjr_4c03.c"
target datalayout = "e-m:e-p270: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 [7 x i8] c"%s: %s\00", align 1
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @error(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 @stderr, align 4
%8 = load ptr, ptr %5, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str, ptr noundef %8, ptr noundef %9)
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fflush(i32 noundef %11)
%13 = load i32, ptr @stdout, align 4
%14 = call i32 @fflush(i32 noundef %13)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fflush(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/tmpsd1x95_y.c'
source_filename = "/tmp/tmpsd1x95_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 [33 x i8] c"Number of arguments (argc) = %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [60 x i8] c"The first line argument (argv) si the executable name = %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"The line argument %d is = %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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %7)
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 0
%11 = load ptr, ptr %10, align 8
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %11)
store i32 1, ptr %6, align 4
br label %13
13: ; preds = %25, %2
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %28
17: ; preds = %13
%18 = load i32, ptr %6, align 4
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %6, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds ptr, ptr %19, i64 %21
%23 = load ptr, ptr %22, align 8
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %18, ptr noundef %23)
br label %25
25: ; preds = %17
%26 = load i32, ptr %6, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %6, align 4
br label %13, !llvm.loop !6
28: ; preds = %13
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsd1x95_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 [33 x i8] c"Number of arguments (argc) = %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [60 x i8] c"The first line argument (argv) si the executable name = %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"The line argument %d is = %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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %7)
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 0
%11 = load ptr, ptr %10, align 8
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %11)
store i32 1, ptr %6, align 4
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %30
.lr.ph: ; preds = %2
br label %16
16: ; preds = %.lr.ph, %24
%17 = load i32, ptr %6, align 4
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %6, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds ptr, ptr %18, i64 %20
%22 = load ptr, ptr %21, align 8
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %17, ptr noundef %22)
br label %24
24: ; preds = %16
%25 = load i32, ptr %6, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %6, align 4
%27 = load i32, ptr %6, align 4
%28 = load i32, ptr %4, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %30
30: ; preds = %._crit_edge, %2
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpewhw7lio.c'
source_filename = "/tmp/tmpewhw7lio.c"
target datalayout = "e-m:e-p270: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.tm = type { i32 }
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @tm_diffcalendaryears(i32 %0, i32 %1) #0 {
%3 = alloca i32, align 4
%4 = alloca %struct.tm, align 4
%5 = alloca %struct.tm, align 4
%6 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 0
store i32 %0, ptr %6, align 4
%7 = getelementptr inbounds %struct.tm, ptr %5, i32 0, i32 0
store i32 %1, ptr %7, align 4
%8 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 0
%9 = load i32, ptr %8, align 4
%10 = call i64 @tm_getrepresentation(i32 %9)
%11 = getelementptr inbounds %struct.tm, ptr %5, i32 0, i32 0
%12 = load i32, ptr %11, align 4
%13 = call i64 @tm_getrepresentation(i32 %12)
%14 = icmp ne i64 %10, %13
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = load i32, ptr @EINVAL, align 4
store i32 %16, ptr @errno, align 4
store i32 0, ptr %3, align 4
br label %25
17: ; preds = %2
%18 = getelementptr inbounds %struct.tm, ptr %5, i32 0, i32 0
%19 = load i32, ptr %18, align 4
%20 = call i32 @tm_getyear(i32 %19)
%21 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 0
%22 = load i32, ptr %21, align 4
%23 = call i32 @tm_getyear(i32 %22)
%24 = sub nsw i32 %20, %23
store i32 %24, ptr %3, align 4
br label %25
25: ; preds = %17, %15
%26 = load i32, ptr %3, align 4
ret i32 %26
}
declare i64 @tm_getrepresentation(i32) #1
declare i32 @tm_getyear(i32) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpewhw7lio.c"
target datalayout = "e-m:e-p270: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.tm = type { i32 }
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @tm_diffcalendaryears(i32 %0, i32 %1) #0 {
%3 = alloca i32, align 4
%4 = alloca %struct.tm, align 4
%5 = alloca %struct.tm, align 4
%6 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 0
store i32 %0, ptr %6, align 4
%7 = getelementptr inbounds %struct.tm, ptr %5, i32 0, i32 0
store i32 %1, ptr %7, align 4
%8 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 0
%9 = load i32, ptr %8, align 4
%10 = call i64 @tm_getrepresentation(i32 %9)
%11 = getelementptr inbounds %struct.tm, ptr %5, i32 0, i32 0
%12 = load i32, ptr %11, align 4
%13 = call i64 @tm_getrepresentation(i32 %12)
%14 = icmp ne i64 %10, %13
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = load i32, ptr @EINVAL, align 4
store i32 %16, ptr @errno, align 4
store i32 0, ptr %3, align 4
br label %25
17: ; preds = %2
%18 = getelementptr inbounds %struct.tm, ptr %5, i32 0, i32 0
%19 = load i32, ptr %18, align 4
%20 = call i32 @tm_getyear(i32 %19)
%21 = getelementptr inbounds %struct.tm, ptr %4, i32 0, i32 0
%22 = load i32, ptr %21, align 4
%23 = call i32 @tm_getyear(i32 %22)
%24 = sub nsw i32 %20, %23
store i32 %24, ptr %3, align 4
br label %25
25: ; preds = %17, %15
%26 = load i32, ptr %3, align 4
ret i32 %26
}
declare i64 @tm_getrepresentation(i32) #1
declare i32 @tm_getyear(i32) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2lrb7o3k.c'
source_filename = "/tmp/tmp2lrb7o3k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gen_URG() #0 {
%1 = alloca i32, align 4
%2 = call i32 @handle_URG(i32 noundef 0)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @handle_URG(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/tmp2lrb7o3k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gen_URG() #0 {
%1 = alloca i32, align 4
%2 = call i32 @handle_URG(i32 noundef 0)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @handle_URG(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/tmp085rvjag.c'
source_filename = "/tmp/tmp085rvjag.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gpio_direction_output(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @gpio_function_select(i32 noundef %3, i32 noundef 1)
ret i32 %4
}
declare i32 @gpio_function_select(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/tmp085rvjag.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gpio_direction_output(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @gpio_function_select(i32 noundef %3, i32 noundef 1)
ret i32 %4
}
declare i32 @gpio_function_select(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/tmpxol4wqfb.c'
source_filename = "/tmp/tmpxol4wqfb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"r\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"fopen source\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"fopen destination\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca i32, align 4
%13 = alloca [1024 x i8], align 16
%14 = 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
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %15, 3
br i1 %16, label %17, label %19
17: ; preds = %2
%18 = call i32 (...) @usage()
br label %19
19: ; preds = %17, %2
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
store ptr %22, ptr %8, align 8
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 2
%25 = load ptr, ptr %24, align 8
store ptr %25, ptr %9, align 8
%26 = load ptr, ptr %8, align 8
%27 = call ptr @fopen(ptr noundef %26, ptr noundef @.str)
store ptr %27, ptr %6, align 8
%28 = icmp eq ptr %27, null
br i1 %28, label %29, label %35
29: ; preds = %19
br label %30
30: ; preds = %29
%31 = call i32 @perror(ptr noundef @.str.1)
%32 = load i32, ptr @EXIT_FAILURE, align 4
%33 = call i32 @exit(i32 noundef %32) #3
unreachable
34: ; No predecessors!
br label %35
35: ; preds = %34, %19
%36 = load ptr, ptr %9, align 8
%37 = call ptr @fopen(ptr noundef %36, ptr noundef @.str.2)
store ptr %37, ptr %7, align 8
%38 = icmp eq ptr %37, null
br i1 %38, label %39, label %45
39: ; preds = %35
br label %40
40: ; preds = %39
%41 = call i32 @perror(ptr noundef @.str.3)
%42 = load i32, ptr @EXIT_FAILURE, align 4
%43 = call i32 @exit(i32 noundef %42) #3
unreachable
44: ; No predecessors!
br label %45
45: ; preds = %44, %35
store ptr null, ptr %10, align 8
%46 = call i32 (...) @cbuf_init()
br label %47
47: ; preds = %51, %45
%48 = load ptr, ptr %6, align 8
%49 = call i32 @getline(ptr noundef %10, ptr noundef %11, ptr noundef %48)
store i32 %49, ptr %12, align 4
%50 = icmp ne i32 %49, -1
br i1 %50, label %51, label %61
51: ; preds = %47
%52 = load ptr, ptr %10, align 8
%53 = call i32 @cbuf_copy_in(ptr noundef %52)
%54 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
%55 = call i32 @cbuf_copy_out(ptr noundef %54)
store i32 %55, ptr %14, align 4
%56 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
%57 = load i32, ptr %14, align 4
%58 = sub nsw i32 %57, 1
%59 = load ptr, ptr %7, align 8
%60 = call i32 @fwrite(ptr noundef %56, i32 noundef %58, i32 noundef 1, ptr noundef %59)
br label %47, !llvm.loop !6
61: ; preds = %47
%62 = call i32 (...) @cbuf_terminate()
%63 = load ptr, ptr %10, align 8
%64 = call i32 @free(ptr noundef %63)
%65 = load ptr, ptr %6, align 8
%66 = call i32 @fclose(ptr noundef %65)
%67 = load ptr, ptr %7, align 8
%68 = call i32 @fclose(ptr noundef %67)
ret i32 0
}
declare i32 @usage(...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @cbuf_init(...) #1
declare i32 @getline(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @cbuf_copy_in(ptr noundef) #1
declare i32 @cbuf_copy_out(ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @cbuf_terminate(...) #1
declare i32 @free(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxol4wqfb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"r\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"fopen source\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.3 = private unnamed_addr constant [18 x i8] c"fopen destination\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca i32, align 4
%13 = alloca [1024 x i8], align 16
%14 = 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
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %15, 3
br i1 %16, label %17, label %19
17: ; preds = %2
%18 = call i32 (...) @usage()
br label %19
19: ; preds = %17, %2
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
store ptr %22, ptr %8, align 8
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 2
%25 = load ptr, ptr %24, align 8
store ptr %25, ptr %9, align 8
%26 = load ptr, ptr %8, align 8
%27 = call ptr @fopen(ptr noundef %26, ptr noundef @.str)
store ptr %27, ptr %6, align 8
%28 = icmp eq ptr %27, null
br i1 %28, label %29, label %35
29: ; preds = %19
br label %30
30: ; preds = %29
%31 = call i32 @perror(ptr noundef @.str.1)
%32 = load i32, ptr @EXIT_FAILURE, align 4
%33 = call i32 @exit(i32 noundef %32) #3
unreachable
34: ; No predecessors!
br label %35
35: ; preds = %34, %19
%36 = load ptr, ptr %9, align 8
%37 = call ptr @fopen(ptr noundef %36, ptr noundef @.str.2)
store ptr %37, ptr %7, align 8
%38 = icmp eq ptr %37, null
br i1 %38, label %39, label %45
39: ; preds = %35
br label %40
40: ; preds = %39
%41 = call i32 @perror(ptr noundef @.str.3)
%42 = load i32, ptr @EXIT_FAILURE, align 4
%43 = call i32 @exit(i32 noundef %42) #3
unreachable
44: ; No predecessors!
br label %45
45: ; preds = %44, %35
store ptr null, ptr %10, align 8
%46 = call i32 (...) @cbuf_init()
%47 = load ptr, ptr %6, align 8
%48 = call i32 @getline(ptr noundef %10, ptr noundef %11, ptr noundef %47)
store i32 %48, ptr %12, align 4
%49 = icmp ne i32 %48, -1
br i1 %49, label %.lr.ph, label %63
.lr.ph: ; preds = %45
br label %50
50: ; preds = %.lr.ph, %50
%51 = load ptr, ptr %10, align 8
%52 = call i32 @cbuf_copy_in(ptr noundef %51)
%53 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
%54 = call i32 @cbuf_copy_out(ptr noundef %53)
store i32 %54, ptr %14, align 4
%55 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
%56 = load i32, ptr %14, align 4
%57 = sub nsw i32 %56, 1
%58 = load ptr, ptr %7, align 8
%59 = call i32 @fwrite(ptr noundef %55, i32 noundef %57, i32 noundef 1, ptr noundef %58)
%60 = load ptr, ptr %6, align 8
%61 = call i32 @getline(ptr noundef %10, ptr noundef %11, ptr noundef %60)
store i32 %61, ptr %12, align 4
%62 = icmp ne i32 %61, -1
br i1 %62, label %50, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %50
br label %63
63: ; preds = %._crit_edge, %45
%64 = call i32 (...) @cbuf_terminate()
%65 = load ptr, ptr %10, align 8
%66 = call i32 @free(ptr noundef %65)
%67 = load ptr, ptr %6, align 8
%68 = call i32 @fclose(ptr noundef %67)
%69 = load ptr, ptr %7, align 8
%70 = call i32 @fclose(ptr noundef %69)
ret i32 0
}
declare i32 @usage(...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @cbuf_init(...) #1
declare i32 @getline(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @cbuf_copy_in(ptr noundef) #1
declare i32 @cbuf_copy_out(ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @cbuf_terminate(...) #1
declare i32 @free(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpzx0gmhz3.c'
source_filename = "/tmp/tmpzx0gmhz3.c"
target datalayout = "e-m:e-p270: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/tmpzx0gmhz3.c"
target datalayout = "e-m:e-p270: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/tmphrqfsg57.c'
source_filename = "/tmp/tmphrqfsg57.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rnd_coinflip(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 = %17, %1
%5 = call i64 (...) @random()
%6 = srem i64 %5, 2
%7 = trunc i64 %6 to i32
%8 = icmp sgt i32 %7, 0
%9 = zext i1 %8 to i32
store i32 %9, ptr %3, align 4
br label %10
10: ; preds = %4
%11 = load i32, ptr %3, align 4
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %10
%14 = load i32, ptr %2, align 4
%15 = add nsw i32 %14, -1
store i32 %15, ptr %2, align 4
%16 = icmp ne i32 %14, 0
br label %17
17: ; preds = %13, %10
%18 = phi i1 [ false, %10 ], [ %16, %13 ]
br i1 %18, label %4, label %19, !llvm.loop !6
19: ; preds = %17
%20 = load i32, ptr %3, align 4
ret i32 %20
}
declare i64 @random(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmphrqfsg57.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rnd_coinflip(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 = %17, %1
%5 = call i64 (...) @random()
%6 = srem i64 %5, 2
%7 = trunc i64 %6 to i32
%8 = icmp sgt i32 %7, 0
%9 = zext i1 %8 to i32
store i32 %9, ptr %3, align 4
br label %10
10: ; preds = %4
%11 = load i32, ptr %3, align 4
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %10
%14 = load i32, ptr %2, align 4
%15 = add nsw i32 %14, -1
store i32 %15, ptr %2, align 4
%16 = icmp ne i32 %14, 0
br label %17
17: ; preds = %13, %10
%18 = phi i1 [ false, %10 ], [ %16, %13 ]
br i1 %18, label %4, label %19, !llvm.loop !6
19: ; preds = %17
%20 = load i32, ptr %3, align 4
ret i32 %20
}
declare i64 @random(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpabhqojo_.c'
source_filename = "/tmp/tmpabhqojo_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test17() #0 {
%1 = alloca i32, align 4
%2 = call i64 (...) @unknown()
%3 = icmp ne i64 %2, 0
%4 = zext i1 %3 to i32
%5 = load i32, ptr %1, align 4
ret i32 %5
}
declare i64 @unknown(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpabhqojo_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test17() #0 {
%1 = alloca i32, align 4
%2 = call i64 (...) @unknown()
%3 = icmp ne i64 %2, 0
%4 = zext i1 %3 to i32
%5 = load i32, ptr %1, align 4
ret i32 %5
}
declare i64 @unknown(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprm4ys4fq.c'
source_filename = "/tmp/tmprm4ys4fq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @td_add(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds double, ptr %12, i64 2
%14 = load double, ptr %13, align 8
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds double, ptr %15, i64 2
%17 = load double, ptr %16, align 8
%18 = call double @dd_two_sum(double noundef %14, double noundef %17, ptr noundef %10)
store double %18, ptr %9, align 8
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds double, ptr %19, i64 1
%21 = load double, ptr %20, align 8
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds double, ptr %22, i64 1
%24 = load double, ptr %23, align 8
%25 = call double @dd_two_sum(double noundef %21, double noundef %24, ptr noundef %11)
store double %25, ptr %8, align 8
%26 = load double, ptr %9, align 8
%27 = load double, ptr %11, align 8
%28 = call double @dd_two_sum(double noundef %26, double noundef %27, ptr noundef %11)
store double %28, ptr %9, align 8
%29 = load double, ptr %11, align 8
%30 = load double, ptr %10, align 8
%31 = fadd double %30, %29
store double %31, ptr %10, align 8
%32 = load ptr, ptr %4, align 8
%33 = getelementptr inbounds double, ptr %32, i64 0
%34 = load double, ptr %33, align 8
%35 = load ptr, ptr %5, align 8
%36 = getelementptr inbounds double, ptr %35, i64 0
%37 = load double, ptr %36, align 8
%38 = call double @dd_two_sum(double noundef %34, double noundef %37, ptr noundef %11)
store double %38, ptr %7, align 8
%39 = load double, ptr %8, align 8
%40 = load double, ptr %11, align 8
%41 = call double @dd_two_sum(double noundef %39, double noundef %40, ptr noundef %11)
store double %41, ptr %8, align 8
%42 = load double, ptr %9, align 8
%43 = load double, ptr %11, align 8
%44 = call double @dd_two_sum(double noundef %42, double noundef %43, ptr noundef %11)
store double %44, ptr %9, align 8
%45 = load double, ptr %11, align 8
%46 = load double, ptr %10, align 8
%47 = fadd double %46, %45
store double %47, ptr %10, align 8
%48 = load double, ptr %7, align 8
%49 = load double, ptr %8, align 8
%50 = load double, ptr %9, align 8
%51 = load double, ptr %10, align 8
%52 = load ptr, ptr %6, align 8
%53 = getelementptr inbounds double, ptr %52, i64 0
%54 = load ptr, ptr %6, align 8
%55 = getelementptr inbounds double, ptr %54, i64 1
%56 = load ptr, ptr %6, align 8
%57 = getelementptr inbounds double, ptr %56, i64 2
%58 = call i32 @td_fast_renorm(double noundef %48, double noundef %49, double noundef %50, double noundef %51, ptr noundef %53, ptr noundef %55, ptr noundef %57)
ret void
}
declare double @dd_two_sum(double noundef, double noundef, ptr noundef) #1
declare i32 @td_fast_renorm(double noundef, double noundef, double noundef, double noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprm4ys4fq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @td_add(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds double, ptr %12, i64 2
%14 = load double, ptr %13, align 8
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds double, ptr %15, i64 2
%17 = load double, ptr %16, align 8
%18 = call double @dd_two_sum(double noundef %14, double noundef %17, ptr noundef %10)
store double %18, ptr %9, align 8
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds double, ptr %19, i64 1
%21 = load double, ptr %20, align 8
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds double, ptr %22, i64 1
%24 = load double, ptr %23, align 8
%25 = call double @dd_two_sum(double noundef %21, double noundef %24, ptr noundef %11)
store double %25, ptr %8, align 8
%26 = load double, ptr %9, align 8
%27 = load double, ptr %11, align 8
%28 = call double @dd_two_sum(double noundef %26, double noundef %27, ptr noundef %11)
store double %28, ptr %9, align 8
%29 = load double, ptr %11, align 8
%30 = load double, ptr %10, align 8
%31 = fadd double %30, %29
store double %31, ptr %10, align 8
%32 = load ptr, ptr %4, align 8
%33 = getelementptr inbounds double, ptr %32, i64 0
%34 = load double, ptr %33, align 8
%35 = load ptr, ptr %5, align 8
%36 = getelementptr inbounds double, ptr %35, i64 0
%37 = load double, ptr %36, align 8
%38 = call double @dd_two_sum(double noundef %34, double noundef %37, ptr noundef %11)
store double %38, ptr %7, align 8
%39 = load double, ptr %8, align 8
%40 = load double, ptr %11, align 8
%41 = call double @dd_two_sum(double noundef %39, double noundef %40, ptr noundef %11)
store double %41, ptr %8, align 8
%42 = load double, ptr %9, align 8
%43 = load double, ptr %11, align 8
%44 = call double @dd_two_sum(double noundef %42, double noundef %43, ptr noundef %11)
store double %44, ptr %9, align 8
%45 = load double, ptr %11, align 8
%46 = load double, ptr %10, align 8
%47 = fadd double %46, %45
store double %47, ptr %10, align 8
%48 = load double, ptr %7, align 8
%49 = load double, ptr %8, align 8
%50 = load double, ptr %9, align 8
%51 = load double, ptr %10, align 8
%52 = load ptr, ptr %6, align 8
%53 = getelementptr inbounds double, ptr %52, i64 0
%54 = load ptr, ptr %6, align 8
%55 = getelementptr inbounds double, ptr %54, i64 1
%56 = load ptr, ptr %6, align 8
%57 = getelementptr inbounds double, ptr %56, i64 2
%58 = call i32 @td_fast_renorm(double noundef %48, double noundef %49, double noundef %50, double noundef %51, ptr noundef %53, ptr noundef %55, ptr noundef %57)
ret void
}
declare double @dd_two_sum(double noundef, double noundef, ptr noundef) #1
declare i32 @td_fast_renorm(double noundef, double noundef, double noundef, double noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp41p46vl2.c'
source_filename = "/tmp/tmp41p46vl2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"cls\00", align 1
@.str.1 = private unnamed_addr constant [39 x i8] c"SISTEMA DE CADASTRO E RESERVA DE SALAS\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"[1] - Datas ja reservadas\0A\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"[2] - Salas\0A\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"[3] - Docentes\0A\00", align 1
@.str.5 = private unnamed_addr constant [16 x i8] c"[4] - Reservas\0A\00", align 1
@.str.6 = private unnamed_addr constant [23 x i8] c"[5] - Gerar Relatorio\0A\00", align 1
@.str.7 = private unnamed_addr constant [12 x i8] c"[6] - Sair\0A\00", align 1
@.str.8 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.9 = private unnamed_addr constant [16 x i8] c"MODULO DE SALAS\00", align 1
@.str.10 = private unnamed_addr constant [17 x i8] c"[1] - Cadastrar\0A\00", align 1
@.str.11 = private unnamed_addr constant [14 x i8] c"[2] - Editar\0A\00", align 1
@.str.12 = private unnamed_addr constant [15 x i8] c"[3] - Excluir\0A\00", align 1
@.str.13 = private unnamed_addr constant [26 x i8] c"[4] - Lista de cadastros\0A\00", align 1
@.str.14 = private unnamed_addr constant [14 x i8] c"[5] - Voltar\0A\00", align 1
@.str.15 = private unnamed_addr constant [17 x i8] c"Opcao invalida!\0A\00", align 1
@.str.16 = private unnamed_addr constant [13 x i8] c"pause && cls\00", align 1
@.str.17 = private unnamed_addr constant [19 x i8] c"MODULO DE DOCENTES\00", align 1
@.str.18 = private unnamed_addr constant [19 x i8] c"MODULO DE RESERVAS\00", align 1
@.str.19 = private unnamed_addr constant [25 x i8] c"[4] - Lista de reservas\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @menu() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = call i32 @system(ptr noundef @.str)
%6 = call i32 @molde(ptr noundef @.str.1)
%7 = call i32 @printf(ptr noundef @.str.2)
%8 = call i32 @printf(ptr noundef @.str.3)
%9 = call i32 @printf(ptr noundef @.str.4)
%10 = call i32 @printf(ptr noundef @.str.5)
%11 = call i32 @printf(ptr noundef @.str.6)
%12 = call i32 @printf(ptr noundef @.str.7)
%13 = call i32 @scanf(ptr noundef @.str.8, ptr noundef %1)
%14 = load i32, ptr %1, align 4
switch i32 %14, label %97 [
i32 1, label %15
i32 2, label %18
i32 3, label %43
i32 4, label %68
i32 5, label %92
i32 6, label %95
]
15: ; preds = %0
%16 = call i32 @system(ptr noundef @.str)
%17 = call i32 (...) @calendar()
br label %100
18: ; preds = %0
%19 = call i32 @system(ptr noundef @.str)
%20 = call i32 @molde(ptr noundef @.str.9)
%21 = call i32 @printf(ptr noundef @.str.10)
%22 = call i32 @printf(ptr noundef @.str.11)
%23 = call i32 @printf(ptr noundef @.str.12)
%24 = call i32 @printf(ptr noundef @.str.13)
%25 = call i32 @printf(ptr noundef @.str.14)
%26 = call i32 @scanf(ptr noundef @.str.8, ptr noundef %2)
%27 = load i32, ptr %2, align 4
switch i32 %27, label %39 [
i32 1, label %28
i32 2, label %31
i32 3, label %33
i32 4, label %35
i32 5, label %38
]
28: ; preds = %18
%29 = load i32, ptr %1, align 4
%30 = call i32 @cadastrar(i32 noundef %29)
br label %31
31: ; preds = %18, %28
%32 = call i32 (...) @editarSala()
br label %42
33: ; preds = %18
%34 = call i32 (...) @excluirSala()
br label %42
35: ; preds = %18
%36 = load i32, ptr %1, align 4
%37 = call i32 @consulta(i32 noundef %36)
br label %42
38: ; preds = %18
call void @menu()
br label %42
39: ; preds = %18
%40 = call i32 @printf(ptr noundef @.str.15)
%41 = call i32 @system(ptr noundef @.str.16)
call void @menu()
br label %42
42: ; preds = %39, %38, %35, %33, %31
br label %100
43: ; preds = %0
%44 = call i32 @system(ptr noundef @.str)
%45 = call i32 @molde(ptr noundef @.str.17)
%46 = call i32 @printf(ptr noundef @.str.10)
%47 = call i32 @printf(ptr noundef @.str.11)
%48 = call i32 @printf(ptr noundef @.str.12)
%49 = call i32 @printf(ptr noundef @.str.13)
%50 = call i32 @printf(ptr noundef @.str.14)
%51 = call i32 @scanf(ptr noundef @.str.8, ptr noundef %3)
%52 = load i32, ptr %3, align 4
switch i32 %52, label %64 [
i32 1, label %53
i32 2, label %56
i32 3, label %58
i32 4, label %60
i32 5, label %63
]
53: ; preds = %43
%54 = load i32, ptr %1, align 4
%55 = call i32 @cadastrar(i32 noundef %54)
br label %67
56: ; preds = %43
%57 = call i32 (...) @editarDocente()
br label %67
58: ; preds = %43
%59 = call i32 (...) @excluirDocente()
br label %67
60: ; preds = %43
%61 = load i32, ptr %1, align 4
%62 = call i32 @consulta(i32 noundef %61)
br label %67
63: ; preds = %43
call void @menu()
br label %67
64: ; preds = %43
%65 = call i32 @printf(ptr noundef @.str.15)
%66 = call i32 @system(ptr noundef @.str.16)
call void @menu()
br label %67
67: ; preds = %64, %63, %60, %58, %56, %53
br label %100
68: ; preds = %0
%69 = call i32 @system(ptr noundef @.str)
%70 = call i32 @molde(ptr noundef @.str.18)
%71 = call i32 @printf(ptr noundef @.str.10)
%72 = call i32 @printf(ptr noundef @.str.11)
%73 = call i32 @printf(ptr noundef @.str.12)
%74 = call i32 @printf(ptr noundef @.str.19)
%75 = call i32 @printf(ptr noundef @.str.14)
%76 = call i32 @scanf(ptr noundef @.str.8, ptr noundef %4)
%77 = load i32, ptr %4, align 4
switch i32 %77, label %88 [
i32 1, label %78
i32 2, label %80
i32 3, label %82
i32 4, label %84
i32 5, label %87
]
78: ; preds = %68
%79 = call i32 (...) @reserva()
br label %91
80: ; preds = %68
%81 = call i32 (...) @editarReserva()
br label %91
82: ; preds = %68
%83 = call i32 (...) @excluirReserva()
br label %91
84: ; preds = %68
%85 = load i32, ptr %1, align 4
%86 = call i32 @consulta(i32 noundef %85)
br label %91
87: ; preds = %68
call void @menu()
br label %91
88: ; preds = %68
%89 = call i32 @printf(ptr noundef @.str.15)
%90 = call i32 @system(ptr noundef @.str.16)
call void @menu()
br label %91
91: ; preds = %88, %87, %84, %82, %80, %78
br label %100
92: ; preds = %0
%93 = call i32 @system(ptr noundef @.str)
%94 = call i32 (...) @relatorio()
br label %100
95: ; preds = %0
%96 = call i32 @exit(i32 noundef 0) #3
unreachable
97: ; preds = %0
%98 = call i32 @printf(ptr noundef @.str.15)
%99 = call i32 @system(ptr noundef @.str.16)
call void @menu()
br label %100
100: ; preds = %97, %92, %91, %67, %42, %15
ret void
}
declare i32 @system(ptr noundef) #1
declare i32 @molde(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @calendar(...) #1
declare i32 @cadastrar(i32 noundef) #1
declare i32 @editarSala(...) #1
declare i32 @excluirSala(...) #1
declare i32 @consulta(i32 noundef) #1
declare i32 @editarDocente(...) #1
declare i32 @excluirDocente(...) #1
declare i32 @reserva(...) #1
declare i32 @editarReserva(...) #1
declare i32 @excluirReserva(...) #1
declare i32 @relatorio(...) #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/tmp41p46vl2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"cls\00", align 1
@.str.1 = private unnamed_addr constant [39 x i8] c"SISTEMA DE CADASTRO E RESERVA DE SALAS\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"[1] - Datas ja reservadas\0A\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"[2] - Salas\0A\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"[3] - Docentes\0A\00", align 1
@.str.5 = private unnamed_addr constant [16 x i8] c"[4] - Reservas\0A\00", align 1
@.str.6 = private unnamed_addr constant [23 x i8] c"[5] - Gerar Relatorio\0A\00", align 1
@.str.7 = private unnamed_addr constant [12 x i8] c"[6] - Sair\0A\00", align 1
@.str.8 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.9 = private unnamed_addr constant [16 x i8] c"MODULO DE SALAS\00", align 1
@.str.10 = private unnamed_addr constant [17 x i8] c"[1] - Cadastrar\0A\00", align 1
@.str.11 = private unnamed_addr constant [14 x i8] c"[2] - Editar\0A\00", align 1
@.str.12 = private unnamed_addr constant [15 x i8] c"[3] - Excluir\0A\00", align 1
@.str.13 = private unnamed_addr constant [26 x i8] c"[4] - Lista de cadastros\0A\00", align 1
@.str.14 = private unnamed_addr constant [14 x i8] c"[5] - Voltar\0A\00", align 1
@.str.15 = private unnamed_addr constant [17 x i8] c"Opcao invalida!\0A\00", align 1
@.str.16 = private unnamed_addr constant [13 x i8] c"pause && cls\00", align 1
@.str.17 = private unnamed_addr constant [19 x i8] c"MODULO DE DOCENTES\00", align 1
@.str.18 = private unnamed_addr constant [19 x i8] c"MODULO DE RESERVAS\00", align 1
@.str.19 = private unnamed_addr constant [25 x i8] c"[4] - Lista de reservas\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @menu() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = call i32 @system(ptr noundef @.str)
%6 = call i32 @molde(ptr noundef @.str.1)
%7 = call i32 @printf(ptr noundef @.str.2)
%8 = call i32 @printf(ptr noundef @.str.3)
%9 = call i32 @printf(ptr noundef @.str.4)
%10 = call i32 @printf(ptr noundef @.str.5)
%11 = call i32 @printf(ptr noundef @.str.6)
%12 = call i32 @printf(ptr noundef @.str.7)
%13 = call i32 @scanf(ptr noundef @.str.8, ptr noundef %1)
%14 = load i32, ptr %1, align 4
switch i32 %14, label %97 [
i32 1, label %15
i32 2, label %18
i32 3, label %43
i32 4, label %68
i32 5, label %92
i32 6, label %95
]
15: ; preds = %0
%16 = call i32 @system(ptr noundef @.str)
%17 = call i32 (...) @calendar()
br label %100
18: ; preds = %0
%19 = call i32 @system(ptr noundef @.str)
%20 = call i32 @molde(ptr noundef @.str.9)
%21 = call i32 @printf(ptr noundef @.str.10)
%22 = call i32 @printf(ptr noundef @.str.11)
%23 = call i32 @printf(ptr noundef @.str.12)
%24 = call i32 @printf(ptr noundef @.str.13)
%25 = call i32 @printf(ptr noundef @.str.14)
%26 = call i32 @scanf(ptr noundef @.str.8, ptr noundef %2)
%27 = load i32, ptr %2, align 4
switch i32 %27, label %39 [
i32 1, label %28
i32 2, label %31
i32 3, label %33
i32 4, label %35
i32 5, label %38
]
28: ; preds = %18
%29 = load i32, ptr %1, align 4
%30 = call i32 @cadastrar(i32 noundef %29)
br label %31
31: ; preds = %28, %18
%32 = call i32 (...) @editarSala()
br label %42
33: ; preds = %18
%34 = call i32 (...) @excluirSala()
br label %42
35: ; preds = %18
%36 = load i32, ptr %1, align 4
%37 = call i32 @consulta(i32 noundef %36)
br label %42
38: ; preds = %18
call void @menu()
br label %42
39: ; preds = %18
%40 = call i32 @printf(ptr noundef @.str.15)
%41 = call i32 @system(ptr noundef @.str.16)
call void @menu()
br label %42
42: ; preds = %39, %38, %35, %33, %31
br label %100
43: ; preds = %0
%44 = call i32 @system(ptr noundef @.str)
%45 = call i32 @molde(ptr noundef @.str.17)
%46 = call i32 @printf(ptr noundef @.str.10)
%47 = call i32 @printf(ptr noundef @.str.11)
%48 = call i32 @printf(ptr noundef @.str.12)
%49 = call i32 @printf(ptr noundef @.str.13)
%50 = call i32 @printf(ptr noundef @.str.14)
%51 = call i32 @scanf(ptr noundef @.str.8, ptr noundef %3)
%52 = load i32, ptr %3, align 4
switch i32 %52, label %64 [
i32 1, label %53
i32 2, label %56
i32 3, label %58
i32 4, label %60
i32 5, label %63
]
53: ; preds = %43
%54 = load i32, ptr %1, align 4
%55 = call i32 @cadastrar(i32 noundef %54)
br label %67
56: ; preds = %43
%57 = call i32 (...) @editarDocente()
br label %67
58: ; preds = %43
%59 = call i32 (...) @excluirDocente()
br label %67
60: ; preds = %43
%61 = load i32, ptr %1, align 4
%62 = call i32 @consulta(i32 noundef %61)
br label %67
63: ; preds = %43
call void @menu()
br label %67
64: ; preds = %43
%65 = call i32 @printf(ptr noundef @.str.15)
%66 = call i32 @system(ptr noundef @.str.16)
call void @menu()
br label %67
67: ; preds = %64, %63, %60, %58, %56, %53
br label %100
68: ; preds = %0
%69 = call i32 @system(ptr noundef @.str)
%70 = call i32 @molde(ptr noundef @.str.18)
%71 = call i32 @printf(ptr noundef @.str.10)
%72 = call i32 @printf(ptr noundef @.str.11)
%73 = call i32 @printf(ptr noundef @.str.12)
%74 = call i32 @printf(ptr noundef @.str.19)
%75 = call i32 @printf(ptr noundef @.str.14)
%76 = call i32 @scanf(ptr noundef @.str.8, ptr noundef %4)
%77 = load i32, ptr %4, align 4
switch i32 %77, label %88 [
i32 1, label %78
i32 2, label %80
i32 3, label %82
i32 4, label %84
i32 5, label %87
]
78: ; preds = %68
%79 = call i32 (...) @reserva()
br label %91
80: ; preds = %68
%81 = call i32 (...) @editarReserva()
br label %91
82: ; preds = %68
%83 = call i32 (...) @excluirReserva()
br label %91
84: ; preds = %68
%85 = load i32, ptr %1, align 4
%86 = call i32 @consulta(i32 noundef %85)
br label %91
87: ; preds = %68
call void @menu()
br label %91
88: ; preds = %68
%89 = call i32 @printf(ptr noundef @.str.15)
%90 = call i32 @system(ptr noundef @.str.16)
call void @menu()
br label %91
91: ; preds = %88, %87, %84, %82, %80, %78
br label %100
92: ; preds = %0
%93 = call i32 @system(ptr noundef @.str)
%94 = call i32 (...) @relatorio()
br label %100
95: ; preds = %0
%96 = call i32 @exit(i32 noundef 0) #3
unreachable
97: ; preds = %0
%98 = call i32 @printf(ptr noundef @.str.15)
%99 = call i32 @system(ptr noundef @.str.16)
call void @menu()
br label %100
100: ; preds = %97, %92, %91, %67, %42, %15
ret void
}
declare i32 @system(ptr noundef) #1
declare i32 @molde(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @calendar(...) #1
declare i32 @cadastrar(i32 noundef) #1
declare i32 @editarSala(...) #1
declare i32 @excluirSala(...) #1
declare i32 @consulta(i32 noundef) #1
declare i32 @editarDocente(...) #1
declare i32 @excluirDocente(...) #1
declare i32 @reserva(...) #1
declare i32 @editarReserva(...) #1
declare i32 @excluirReserva(...) #1
declare i32 @relatorio(...) #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/tmp313yp417.c'
source_filename = "/tmp/tmp313yp417.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @etr_area_side(float noundef %0) #0 {
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
store float %0, ptr %2, align 4
%5 = call float @sqrt(i32 noundef 3)
store float %5, ptr %3, align 4
%6 = load float, ptr %2, align 4
%7 = load float, ptr %2, align 4
%8 = fmul float %6, %7
%9 = load float, ptr %3, align 4
%10 = fmul float %8, %9
%11 = fdiv float %10, 4.000000e+00
store float %11, ptr %4, align 4
%12 = load float, ptr %4, align 4
ret float %12
}
declare float @sqrt(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/tmp313yp417.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @etr_area_side(float noundef %0) #0 {
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
store float %0, ptr %2, align 4
%5 = call float @sqrt(i32 noundef 3)
store float %5, ptr %3, align 4
%6 = load float, ptr %2, align 4
%7 = load float, ptr %2, align 4
%8 = fmul float %6, %7
%9 = load float, ptr %3, align 4
%10 = fmul float %8, %9
%11 = fdiv float %10, 4.000000e+00
store float %11, ptr %4, align 4
%12 = load float, ptr %4, align 4
ret float %12
}
declare float @sqrt(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/tmpie0tlvwd.c'
source_filename = "/tmp/tmpie0tlvwd.c"
target datalayout = "e-m:e-p270: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/tmpie0tlvwd.c"
target datalayout = "e-m:e-p270: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_hk0emfo.c'
source_filename = "/tmp/tmp_hk0emfo.c"
target datalayout = "e-m:e-p270: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_hk0emfo.c"
target datalayout = "e-m:e-p270: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/tmpno3l552j.c'
source_filename = "/tmp/tmpno3l552j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pr_close(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @pr_close_nowait(i32 noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = call i32 @pr_wait(i32 noundef %6)
ret i32 %7
}
declare i32 @pr_close_nowait(i32 noundef) #1
declare i32 @pr_wait(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/tmpno3l552j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pr_close(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @pr_close_nowait(i32 noundef %4)
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = call i32 @pr_wait(i32 noundef %6)
ret i32 %7
}
declare i32 @pr_close_nowait(i32 noundef) #1
declare i32 @pr_wait(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/tmpv2w6dv8b.c'
source_filename = "/tmp/tmpv2w6dv8b.c"
target datalayout = "e-m:e-p270: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/tmpv2w6dv8b.c"
target datalayout = "e-m:e-p270: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/tmp3183p1v_.c'
source_filename = "/tmp/tmp3183p1v_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @de_normalize_time(double noundef %0, double noundef %1, double noundef %2, i32 noundef %3) #0 {
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca i32, align 4
%9 = alloca double, align 8
%10 = alloca double, align 8
store double %0, ptr %5, align 8
store double %1, ptr %6, align 8
store double %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%11 = load double, ptr %7, align 8
%12 = load double, ptr %6, align 8
%13 = fsub double %11, %12
%14 = load i32, ptr %8, align 4
%15 = sitofp i32 %14 to double
%16 = fdiv double %13, %15
store double %16, ptr %9, align 8
%17 = load double, ptr %5, align 8
%18 = load double, ptr %6, align 8
%19 = fsub double %17, %18
%20 = load double, ptr %9, align 8
%21 = call double @fmod(double noundef %19, double noundef %20) #3
store double %21, ptr %10, align 8
%22 = load double, ptr %10, align 8
%23 = load double, ptr %9, align 8
%24 = fdiv double %22, %23
%25 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %24, double -1.000000e+00)
ret double %25
}
; Function Attrs: nounwind
declare double @fmod(double noundef, double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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/tmp3183p1v_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @de_normalize_time(double noundef %0, double noundef %1, double noundef %2, i32 noundef %3) #0 {
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca i32, align 4
%9 = alloca double, align 8
%10 = alloca double, align 8
store double %0, ptr %5, align 8
store double %1, ptr %6, align 8
store double %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%11 = load double, ptr %7, align 8
%12 = load double, ptr %6, align 8
%13 = fsub double %11, %12
%14 = load i32, ptr %8, align 4
%15 = sitofp i32 %14 to double
%16 = fdiv double %13, %15
store double %16, ptr %9, align 8
%17 = load double, ptr %5, align 8
%18 = load double, ptr %6, align 8
%19 = fsub double %17, %18
%20 = load double, ptr %9, align 8
%21 = call double @fmod(double noundef %19, double noundef %20) #3
store double %21, ptr %10, align 8
%22 = load double, ptr %10, align 8
%23 = load double, ptr %9, align 8
%24 = fdiv double %22, %23
%25 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %24, double -1.000000e+00)
ret double %25
}
; Function Attrs: nounwind
declare double @fmod(double noundef, double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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/tmplzxairi7.c'
source_filename = "/tmp/tmplzxairi7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [200 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AmesianX/OpenBLT/refs/heads/master/Target/Demo/ARMCM3_LM3S_EK_LM3S8962_Crossworks/Boot/lib/driverlib/canlib.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @CANIntUnregister(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = call i32 @CANBaseValid(i64 noundef %4)
%6 = icmp ne i32 %5, 0
br i1 %6, label %9, label %7
7: ; preds = %1
%8 = call i32 @AssertFailure(ptr noundef @.str, i32 noundef 1007)
br label %9
9: ; preds = %7, %1
%10 = load i64, ptr %2, align 8
%11 = call i64 @CANIntNumberGet(i64 noundef %10)
store i64 %11, ptr %3, align 8
%12 = load i64, ptr %3, align 8
%13 = call i32 @IntUnregister(i64 noundef %12)
%14 = load i64, ptr %3, align 8
%15 = call i32 @IntDisable(i64 noundef %14)
ret void
}
declare i32 @CANBaseValid(i64 noundef) #1
declare i32 @AssertFailure(ptr noundef, i32 noundef) #1
declare i64 @CANIntNumberGet(i64 noundef) #1
declare i32 @IntUnregister(i64 noundef) #1
declare i32 @IntDisable(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/tmplzxairi7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [200 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AmesianX/OpenBLT/refs/heads/master/Target/Demo/ARMCM3_LM3S_EK_LM3S8962_Crossworks/Boot/lib/driverlib/canlib.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @CANIntUnregister(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = call i32 @CANBaseValid(i64 noundef %4)
%6 = icmp ne i32 %5, 0
br i1 %6, label %9, label %7
7: ; preds = %1
%8 = call i32 @AssertFailure(ptr noundef @.str, i32 noundef 1007)
br label %9
9: ; preds = %7, %1
%10 = load i64, ptr %2, align 8
%11 = call i64 @CANIntNumberGet(i64 noundef %10)
store i64 %11, ptr %3, align 8
%12 = load i64, ptr %3, align 8
%13 = call i32 @IntUnregister(i64 noundef %12)
%14 = load i64, ptr %3, align 8
%15 = call i32 @IntDisable(i64 noundef %14)
ret void
}
declare i32 @CANBaseValid(i64 noundef) #1
declare i32 @AssertFailure(ptr noundef, i32 noundef) #1
declare i64 @CANIntNumberGet(i64 noundef) #1
declare i32 @IntUnregister(i64 noundef) #1
declare i32 @IntDisable(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/tmpog4hfy45.c'
source_filename = "/tmp/tmpog4hfy45.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [77 x i8] c"\E8\AF\B7\E5\88\86\E5\88\AB\E8\BE\93\E5\85\A5\E8\BA\AB\E9\AB\98\E7\9A\84\E8\8B\B1\E5\B0\BA\E5\92\8C\E8\8B\B1\E5\AF\B8, \E5\A6\82\E8\BE\93\E5\85\A5\225 7\22\E8\A1\A8\E7\A4\BA5\E8\8B\B1\E5\B0\BA7\E8\8B\B1\E5\AF\B8:\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"%lf %lf\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"\E8\BA\AB\E9\AB\98\E6\98\AF%f\E7\B1\B3.\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
store i32 0, ptr %1, align 4
store double 0.000000e+00, ptr %2, align 8
store double 0.000000e+00, ptr %3, align 8
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3)
%7 = load double, ptr %2, align 8
%8 = load double, ptr %3, align 8
%9 = fdiv double %8, 1.200000e+01
%10 = fadd double %7, %9
%11 = fmul double %10, 3.048000e-01
store double %11, ptr %4, align 8
%12 = load double, ptr %4, align 8
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %12)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpog4hfy45.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [77 x i8] c"\E8\AF\B7\E5\88\86\E5\88\AB\E8\BE\93\E5\85\A5\E8\BA\AB\E9\AB\98\E7\9A\84\E8\8B\B1\E5\B0\BA\E5\92\8C\E8\8B\B1\E5\AF\B8, \E5\A6\82\E8\BE\93\E5\85\A5\225 7\22\E8\A1\A8\E7\A4\BA5\E8\8B\B1\E5\B0\BA7\E8\8B\B1\E5\AF\B8:\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"%lf %lf\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"\E8\BA\AB\E9\AB\98\E6\98\AF%f\E7\B1\B3.\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
store i32 0, ptr %1, align 4
store double 0.000000e+00, ptr %2, align 8
store double 0.000000e+00, ptr %3, align 8
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3)
%7 = load double, ptr %2, align 8
%8 = load double, ptr %3, align 8
%9 = fdiv double %8, 1.200000e+01
%10 = fadd double %7, %9
%11 = fmul double %10, 3.048000e-01
store double %11, ptr %4, align 8
%12 = load double, ptr %4, align 8
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %12)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpr1zsuqnq.c'
source_filename = "/tmp/tmpr1zsuqnq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%u\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 [1 x i8], align 1
%7 = alloca [1 x i8], align 1
%8 = alloca i32, align 4
%9 = alloca i8, align 1
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
br label %19
19: ; preds = %22, %18
%20 = load i32, ptr %8, align 4
%21 = icmp slt i32 %20, 1
br i1 %21, label %22, label %37
22: ; preds = %19
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %23, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = call i64 @strtoul(ptr noundef %28, i32 noundef 0, i32 noundef 10)
%30 = trunc i64 %29 to i8
store i8 %30, ptr %9, align 1
%31 = load i8, ptr %9, align 1
%32 = load i32, ptr %8, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [1 x i8], ptr %6, i64 0, i64 %33
store i8 %31, ptr %34, align 1
%35 = load i32, ptr %8, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %8, align 4
br label %19, !llvm.loop !6
37: ; preds = %19
%38 = getelementptr inbounds [1 x i8], ptr %6, i64 0, i64 0
%39 = getelementptr inbounds [1 x i8], ptr %7, i64 0, i64 0
%40 = call i32 @RandomFunc(ptr noundef %38, ptr noundef %39)
%41 = getelementptr inbounds [1 x i8], ptr %7, i64 0, i64 0
%42 = load i8, ptr %41, align 1
%43 = zext i8 %42 to i32
%44 = icmp eq i32 %43, 247
br i1 %44, label %45, label %47
45: ; preds = %37
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %48
47: ; preds = %37
br label %48
48: ; preds = %47, %45
store i32 0, ptr %10, align 4
br label %49
49: ; preds = %52, %48
%50 = load i32, ptr %10, align 4
%51 = icmp slt i32 %50, 1
br i1 %51, label %52, label %61
52: ; preds = %49
%53 = load i32, ptr %10, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [1 x i8], ptr %7, i64 0, i64 %54
%56 = load i8, ptr %55, align 1
%57 = zext i8 %56 to i32
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %57)
%59 = load i32, ptr %10, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %10, align 4
br label %49, !llvm.loop !8
61: ; preds = %49
%62 = load i32, ptr %3, align 4
ret i32 %62
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(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 = { 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/tmpr1zsuqnq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%u\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 [1 x i8], align 1
%7 = alloca [1 x i8], align 1
%8 = alloca i32, align 4
%9 = alloca i8, align 1
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp slt i32 %19, 1
br i1 %20, label %.lr.ph, label %38
.lr.ph: ; preds = %18
br label %21
21: ; preds = %.lr.ph, %21
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %22, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = call i64 @strtoul(ptr noundef %27, i32 noundef 0, i32 noundef 10)
%29 = trunc i64 %28 to i8
store i8 %29, ptr %9, align 1
%30 = load i8, ptr %9, align 1
%31 = load i32, ptr %8, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [1 x i8], ptr %6, i64 0, i64 %32
store i8 %30, ptr %33, align 1
%34 = load i32, ptr %8, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %8, align 4
%36 = load i32, ptr %8, align 4
%37 = icmp slt i32 %36, 1
br i1 %37, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %38
38: ; preds = %._crit_edge, %18
%39 = getelementptr inbounds [1 x i8], ptr %6, i64 0, i64 0
%40 = getelementptr inbounds [1 x i8], ptr %7, i64 0, i64 0
%41 = call i32 @RandomFunc(ptr noundef %39, ptr noundef %40)
%42 = getelementptr inbounds [1 x i8], ptr %7, i64 0, i64 0
%43 = load i8, ptr %42, align 1
%44 = zext i8 %43 to i32
%45 = icmp eq i32 %44, 247
br i1 %45, label %46, label %48
46: ; preds = %38
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %49
48: ; preds = %38
br label %49
49: ; preds = %48, %46
store i32 0, ptr %10, align 4
%50 = load i32, ptr %10, align 4
%51 = icmp slt i32 %50, 1
br i1 %51, label %.lr.ph2, label %63
.lr.ph2: ; preds = %49
br label %52
52: ; preds = %.lr.ph2, %52
%53 = load i32, ptr %10, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [1 x i8], ptr %7, i64 0, i64 %54
%56 = load i8, ptr %55, align 1
%57 = zext i8 %56 to i32
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %57)
%59 = load i32, ptr %10, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %10, align 4
%61 = load i32, ptr %10, align 4
%62 = icmp slt i32 %61, 1
br i1 %62, label %52, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %52
br label %63
63: ; preds = %._crit_edge3, %49
%64 = load i32, ptr %3, align 4
ret i32 %64
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(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 = { 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/tmp85afq1o1.c'
source_filename = "/tmp/tmp85afq1o1.c"
target datalayout = "e-m:e-p270: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_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @filesize(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i64 @ftell(ptr noundef %5)
store i64 %6, ptr %3, align 8
%7 = load ptr, ptr %2, align 8
%8 = load i32, ptr @SEEK_END, align 4
%9 = call i32 @fseek(ptr noundef %7, i64 noundef 0, i32 noundef %8)
%10 = load ptr, ptr %2, align 8
%11 = call i64 @ftell(ptr noundef %10)
store i64 %11, ptr %4, align 8
%12 = load ptr, ptr %2, align 8
%13 = load i64, ptr %3, align 8
%14 = load i32, ptr @SEEK_SET, align 4
%15 = call i32 @fseek(ptr noundef %12, i64 noundef %13, i32 noundef %14)
%16 = load i64, ptr %4, align 8
ret i64 %16
}
declare i64 @ftell(ptr noundef) #1
declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp85afq1o1.c"
target datalayout = "e-m:e-p270: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_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @filesize(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i64 @ftell(ptr noundef %5)
store i64 %6, ptr %3, align 8
%7 = load ptr, ptr %2, align 8
%8 = load i32, ptr @SEEK_END, align 4
%9 = call i32 @fseek(ptr noundef %7, i64 noundef 0, i32 noundef %8)
%10 = load ptr, ptr %2, align 8
%11 = call i64 @ftell(ptr noundef %10)
store i64 %11, ptr %4, align 8
%12 = load ptr, ptr %2, align 8
%13 = load i64, ptr %3, align 8
%14 = load i32, ptr @SEEK_SET, align 4
%15 = call i32 @fseek(ptr noundef %12, i64 noundef %13, i32 noundef %14)
%16 = load i64, ptr %4, align 8
ret i64 %16
}
declare i64 @ftell(ptr noundef) #1
declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwjbubkdd.c'
source_filename = "/tmp/tmpwjbubkdd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @L6474_Reset() #0 {
%1 = call i32 (...) @BSP_MotorControlBoard_Reset()
ret void
}
declare i32 @BSP_MotorControlBoard_Reset(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwjbubkdd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @L6474_Reset() #0 {
%1 = call i32 (...) @BSP_MotorControlBoard_Reset()
ret void
}
declare i32 @BSP_MotorControlBoard_Reset(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9u93epd6.c'
source_filename = "/tmp/tmp9u93epd6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@tc_bit_iterator.next_iter = internal global i32 0, align 4
@.str = private unnamed_addr constant [4 x i8] c"clr\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"set\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @tc_bit_iterator(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 = icmp eq ptr null, %4
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 0, ptr @tc_bit_iterator.next_iter, align 4
store i32 2, ptr %2, align 4
br label %22
7: ; preds = %1
%8 = load i32, ptr @tc_bit_iterator.next_iter, align 4
%9 = icmp eq i32 0, %8
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = load ptr, ptr %3, align 8
store ptr @.str, ptr %11, align 8
br label %19
12: ; preds = %7
%13 = load i32, ptr @tc_bit_iterator.next_iter, align 4
%14 = icmp eq i32 1, %13
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = load ptr, ptr %3, align 8
store ptr @.str.1, ptr %16, align 8
br label %18
17: ; preds = %12
store i32 -1, ptr %2, align 4
br label %22
18: ; preds = %15
br label %19
19: ; preds = %18, %10
%20 = load i32, ptr @tc_bit_iterator.next_iter, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr @tc_bit_iterator.next_iter, align 4
store i32 %20, ptr %2, align 4
br label %22
22: ; preds = %19, %17, %6
%23 = load i32, ptr %2, align 4
ret i32 %23
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9u93epd6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@tc_bit_iterator.next_iter = internal global i32 0, align 4
@.str = private unnamed_addr constant [4 x i8] c"clr\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"set\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @tc_bit_iterator(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 = icmp eq ptr null, %4
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 0, ptr @tc_bit_iterator.next_iter, align 4
store i32 2, ptr %2, align 4
br label %22
7: ; preds = %1
%8 = load i32, ptr @tc_bit_iterator.next_iter, align 4
%9 = icmp eq i32 0, %8
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = load ptr, ptr %3, align 8
store ptr @.str, ptr %11, align 8
br label %19
12: ; preds = %7
%13 = load i32, ptr @tc_bit_iterator.next_iter, align 4
%14 = icmp eq i32 1, %13
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = load ptr, ptr %3, align 8
store ptr @.str.1, ptr %16, align 8
br label %18
17: ; preds = %12
store i32 -1, ptr %2, align 4
br label %22
18: ; preds = %15
br label %19
19: ; preds = %18, %10
%20 = load i32, ptr @tc_bit_iterator.next_iter, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr @tc_bit_iterator.next_iter, align 4
store i32 %20, ptr %2, align 4
br label %22
22: ; preds = %19, %17, %6
%23 = load i32, ptr %2, align 4
ret i32 %23
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv20q2jma.c'
source_filename = "/tmp/tmpv20q2jma.c"
target datalayout = "e-m:e-p270: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/tmpv20q2jma.c"
target datalayout = "e-m:e-p270: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/tmp8d1n57av.c'
source_filename = "/tmp/tmp8d1n57av.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pair_get_first(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @check_is_pair(ptr noundef %5)
%7 = load ptr, ptr %2, align 8
%8 = call i32 @pair_get_components(ptr noundef %7, ptr noundef %3, ptr noundef %4)
%9 = load ptr, ptr %4, align 8
%10 = call i32 @item_free(ptr noundef %9)
%11 = load ptr, ptr %3, align 8
ret ptr %11
}
declare i32 @check_is_pair(ptr noundef) #1
declare i32 @pair_get_components(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @item_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/tmp8d1n57av.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pair_get_first(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @check_is_pair(ptr noundef %5)
%7 = load ptr, ptr %2, align 8
%8 = call i32 @pair_get_components(ptr noundef %7, ptr noundef %3, ptr noundef %4)
%9 = load ptr, ptr %4, align 8
%10 = call i32 @item_free(ptr noundef %9)
%11 = load ptr, ptr %3, align 8
ret ptr %11
}
declare i32 @check_is_pair(ptr noundef) #1
declare i32 @pair_get_components(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @item_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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.