llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
|---|---|
; ModuleID = '/tmp/tmpm5ysdq8u.c'
source_filename = "/tmp/tmpm5ysdq8u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0A%s=\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c" %#02x,\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_char_hex(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%8 = load ptr, ptr %4, align 8
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %8)
store i32 0, ptr %7, align 4
br label %10
10: ; preds = %22, %3
%11 = load i32, ptr %7, align 4
%12 = load i32, ptr %6, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %25
14: ; preds = %10
%15 = load ptr, ptr %5, align 8
%16 = load i32, ptr %7, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
%19 = load i8, ptr %18, align 1
%20 = zext i8 %19 to i32
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %20)
br label %22
22: ; preds = %14
%23 = load i32, ptr %7, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %7, align 4
br label %10, !llvm.loop !6
25: ; preds = %10
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm5ysdq8u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0A%s=\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c" %#02x,\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_char_hex(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%8 = load ptr, ptr %4, align 8
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %8)
store i32 0, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph, label %27
.lr.ph: ; preds = %3
br label %13
13: ; preds = %.lr.ph, %21
%14 = load ptr, ptr %5, align 8
%15 = load i32, ptr %7, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i8, ptr %17, align 1
%19 = zext i8 %18 to i32
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %19)
br label %21
21: ; preds = %13
%22 = load i32, ptr %7, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %7, align 4
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %6, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %27
27: ; preds = %._crit_edge, %3
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpof82etnq.c'
source_filename = "/tmp/tmpof82etnq.c"
target datalayout = "e-m:e-p270: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/tmpof82etnq.c"
target datalayout = "e-m:e-p270: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/tmpgenmk1q7.c'
source_filename = "/tmp/tmpgenmk1q7.c"
target datalayout = "e-m:e-p270: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/tmpgenmk1q7.c"
target datalayout = "e-m:e-p270: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/tmph1cruhlm.c'
source_filename = "/tmp/tmph1cruhlm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_GETFL = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [16 x i8] c"fcntl(F_GETFL)\0A\00", align 1
@O_NONBLOCK = dso_local global i32 0, align 4
@F_SETFL = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [16 x i8] c"fcntl(F_SETFL)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @setnonblocking(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr @F_GETFL, align 4
%7 = call i64 (i32, i32, ...) @fcntl(i32 noundef %5, i32 noundef %6)
%8 = trunc i64 %7 to i32
store i32 %8, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %1
%12 = call i32 @perror(ptr noundef @.str)
store i32 0, ptr %2, align 4
br label %25
13: ; preds = %1
%14 = load i32, ptr %4, align 4
%15 = load i32, ptr @O_NONBLOCK, align 4
%16 = or i32 %14, %15
store i32 %16, ptr %4, align 4
%17 = load i32, ptr %3, align 4
%18 = load i32, ptr @F_SETFL, align 4
%19 = load i32, ptr %4, align 4
%20 = call i64 (i32, i32, ...) @fcntl(i32 noundef %17, i32 noundef %18, i32 noundef %19)
%21 = icmp slt i64 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %13
%23 = call i32 @perror(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
br label %25
24: ; preds = %13
store i32 1, ptr %2, align 4
br label %25
25: ; preds = %24, %22, %11
%26 = load i32, ptr %2, align 4
ret i32 %26
}
declare i64 @fcntl(i32 noundef, i32 noundef, ...) #1
declare i32 @perror(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/tmph1cruhlm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_GETFL = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [16 x i8] c"fcntl(F_GETFL)\0A\00", align 1
@O_NONBLOCK = dso_local global i32 0, align 4
@F_SETFL = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [16 x i8] c"fcntl(F_SETFL)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @setnonblocking(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr @F_GETFL, align 4
%7 = call i64 (i32, i32, ...) @fcntl(i32 noundef %5, i32 noundef %6)
%8 = trunc i64 %7 to i32
store i32 %8, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %1
%12 = call i32 @perror(ptr noundef @.str)
store i32 0, ptr %2, align 4
br label %25
13: ; preds = %1
%14 = load i32, ptr %4, align 4
%15 = load i32, ptr @O_NONBLOCK, align 4
%16 = or i32 %14, %15
store i32 %16, ptr %4, align 4
%17 = load i32, ptr %3, align 4
%18 = load i32, ptr @F_SETFL, align 4
%19 = load i32, ptr %4, align 4
%20 = call i64 (i32, i32, ...) @fcntl(i32 noundef %17, i32 noundef %18, i32 noundef %19)
%21 = icmp slt i64 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %13
%23 = call i32 @perror(ptr noundef @.str.1)
store i32 0, ptr %2, align 4
br label %25
24: ; preds = %13
store i32 1, ptr %2, align 4
br label %25
25: ; preds = %24, %22, %11
%26 = load i32, ptr %2, align 4
ret i32 %26
}
declare i64 @fcntl(i32 noundef, i32 noundef, ...) #1
declare i32 @perror(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/tmpaw2rc7vz.c'
source_filename = "/tmp/tmpaw2rc7vz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wmemchr(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
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
br label %7
7: ; preds = %18, %3
%8 = load i64, ptr %6, align 8
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %15
10: ; preds = %7
%11 = load ptr, ptr %4, align 8
%12 = load i64, ptr %11, align 8
%13 = load i64, ptr %5, align 8
%14 = icmp ne i64 %12, %13
br label %15
15: ; preds = %10, %7
%16 = phi i1 [ false, %7 ], [ %14, %10 ]
br i1 %16, label %17, label %23
17: ; preds = %15
br label %18
18: ; preds = %17
%19 = load i64, ptr %6, align 8
%20 = add i64 %19, -1
store i64 %20, ptr %6, align 8
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds i64, ptr %21, i32 1
store ptr %22, ptr %4, align 8
br label %7, !llvm.loop !6
23: ; preds = %15
%24 = load i64, ptr %6, align 8
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = load ptr, ptr %4, align 8
br label %29
28: ; preds = %23
br label %29
29: ; preds = %28, %26
%30 = phi ptr [ %27, %26 ], [ null, %28 ]
ret ptr %30
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaw2rc7vz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wmemchr(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
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
br label %7
7: ; preds = %18, %3
%8 = load i64, ptr %6, align 8
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %15
10: ; preds = %7
%11 = load ptr, ptr %4, align 8
%12 = load i64, ptr %11, align 8
%13 = load i64, ptr %5, align 8
%14 = icmp ne i64 %12, %13
br label %15
15: ; preds = %10, %7
%16 = phi i1 [ false, %7 ], [ %14, %10 ]
br i1 %16, label %17, label %23
17: ; preds = %15
br label %18
18: ; preds = %17
%19 = load i64, ptr %6, align 8
%20 = add i64 %19, -1
store i64 %20, ptr %6, align 8
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds i64, ptr %21, i32 1
store ptr %22, ptr %4, align 8
br label %7, !llvm.loop !6
23: ; preds = %15
%24 = load i64, ptr %6, align 8
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = load ptr, ptr %4, align 8
br label %29
28: ; preds = %23
br label %29
29: ; preds = %28, %26
%30 = phi ptr [ %27, %26 ], [ null, %28 ]
ret ptr %30
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpbqw73yo4.c'
source_filename = "/tmp/tmpbqw73yo4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global i64 0, align 8
@M_PI_2 = 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/tmpbqw73yo4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global i64 0, align 8
@M_PI_2 = 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/tmp9rcq0d54.c'
source_filename = "/tmp/tmp9rcq0d54.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Enter 3 Numbers: \00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"%d %d %d\00", align 1
@.str.2 = private unnamed_addr constant [43 x i8] c"Sum \09 %d \0AAvg.\09 %.2f \0AMAX \09 %d \0AMIN \09 %d \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%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 %2, ptr noundef %3, ptr noundef %4)
%9 = load i32, ptr %2, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp sgt i32 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %0
%13 = load i32, ptr %2, align 4
br label %16
14: ; preds = %0
%15 = load i32, ptr %3, align 4
br label %16
16: ; preds = %14, %12
%17 = phi i32 [ %13, %12 ], [ %15, %14 ]
store i32 %17, ptr %5, align 4
%18 = load i32, ptr %2, align 4
%19 = load i32, ptr %3, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %23
21: ; preds = %16
%22 = load i32, ptr %2, align 4
br label %25
23: ; preds = %16
%24 = load i32, ptr %3, align 4
br label %25
25: ; preds = %23, %21
%26 = phi i32 [ %22, %21 ], [ %24, %23 ]
store i32 %26, ptr %6, align 4
%27 = load i32, ptr %5, align 4
%28 = load i32, ptr %4, align 4
%29 = icmp sgt i32 %27, %28
br i1 %29, label %30, label %32
30: ; preds = %25
%31 = load i32, ptr %5, align 4
br label %34
32: ; preds = %25
%33 = load i32, ptr %4, align 4
br label %34
34: ; preds = %32, %30
%35 = phi i32 [ %31, %30 ], [ %33, %32 ]
store i32 %35, ptr %5, align 4
%36 = load i32, ptr %6, align 4
%37 = load i32, ptr %4, align 4
%38 = icmp slt i32 %36, %37
br i1 %38, label %39, label %41
39: ; preds = %34
%40 = load i32, ptr %6, align 4
br label %43
41: ; preds = %34
%42 = load i32, ptr %4, align 4
br label %43
43: ; preds = %41, %39
%44 = phi i32 [ %40, %39 ], [ %42, %41 ]
store i32 %44, ptr %6, align 4
%45 = load i32, ptr %2, align 4
%46 = load i32, ptr %3, align 4
%47 = add nsw i32 %45, %46
%48 = load i32, ptr %4, align 4
%49 = add nsw i32 %47, %48
%50 = load i32, ptr %2, align 4
%51 = load i32, ptr %3, align 4
%52 = add nsw i32 %50, %51
%53 = load i32, ptr %4, align 4
%54 = add nsw i32 %52, %53
%55 = sitofp i32 %54 to float
%56 = fdiv float %55, 3.000000e+00
%57 = fpext float %56 to double
%58 = load i32, ptr %5, align 4
%59 = load i32, ptr %6, align 4
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %49, double noundef %57, i32 noundef %58, i32 noundef %59)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9rcq0d54.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Enter 3 Numbers: \00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"%d %d %d\00", align 1
@.str.2 = private unnamed_addr constant [43 x i8] c"Sum \09 %d \0AAvg.\09 %.2f \0AMAX \09 %d \0AMIN \09 %d \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%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 %2, ptr noundef %3, ptr noundef %4)
%9 = load i32, ptr %2, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp sgt i32 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %0
%13 = load i32, ptr %2, align 4
br label %16
14: ; preds = %0
%15 = load i32, ptr %3, align 4
br label %16
16: ; preds = %14, %12
%17 = phi i32 [ %13, %12 ], [ %15, %14 ]
store i32 %17, ptr %5, align 4
%18 = load i32, ptr %2, align 4
%19 = load i32, ptr %3, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %23
21: ; preds = %16
%22 = load i32, ptr %2, align 4
br label %25
23: ; preds = %16
%24 = load i32, ptr %3, align 4
br label %25
25: ; preds = %23, %21
%26 = phi i32 [ %22, %21 ], [ %24, %23 ]
store i32 %26, ptr %6, align 4
%27 = load i32, ptr %5, align 4
%28 = load i32, ptr %4, align 4
%29 = icmp sgt i32 %27, %28
br i1 %29, label %30, label %32
30: ; preds = %25
%31 = load i32, ptr %5, align 4
br label %34
32: ; preds = %25
%33 = load i32, ptr %4, align 4
br label %34
34: ; preds = %32, %30
%35 = phi i32 [ %31, %30 ], [ %33, %32 ]
store i32 %35, ptr %5, align 4
%36 = load i32, ptr %6, align 4
%37 = load i32, ptr %4, align 4
%38 = icmp slt i32 %36, %37
br i1 %38, label %39, label %41
39: ; preds = %34
%40 = load i32, ptr %6, align 4
br label %43
41: ; preds = %34
%42 = load i32, ptr %4, align 4
br label %43
43: ; preds = %41, %39
%44 = phi i32 [ %40, %39 ], [ %42, %41 ]
store i32 %44, ptr %6, align 4
%45 = load i32, ptr %2, align 4
%46 = load i32, ptr %3, align 4
%47 = add nsw i32 %45, %46
%48 = load i32, ptr %4, align 4
%49 = add nsw i32 %47, %48
%50 = load i32, ptr %2, align 4
%51 = load i32, ptr %3, align 4
%52 = add nsw i32 %50, %51
%53 = load i32, ptr %4, align 4
%54 = add nsw i32 %52, %53
%55 = sitofp i32 %54 to float
%56 = fdiv float %55, 3.000000e+00
%57 = fpext float %56 to double
%58 = load i32, ptr %5, align 4
%59 = load i32, ptr %6, align 4
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %49, double noundef %57, i32 noundef %58, i32 noundef %59)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(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"}
|
; ModuleID = '/tmp/tmp0h5na5kp.c'
source_filename = "/tmp/tmp0h5na5kp.c"
target datalayout = "e-m:e-p270: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/tmp0h5na5kp.c"
target datalayout = "e-m:e-p270: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/tmpj3rx1jwu.c'
source_filename = "/tmp/tmpj3rx1jwu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [47 x i8] c"Usage: %s <source> <event-name> [-is <value>]\0A\00", align 1
@.str.1 = private unnamed_addr constant [39 x i8] c" -i - int event_name\0A\00", align 1
@.str.2 = private unnamed_addr constant [42 x i8] c" -s - string event_name\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj3rx1jwu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [47 x i8] c"Usage: %s <source> <event-name> [-is <value>]\0A\00", align 1
@.str.1 = private unnamed_addr constant [39 x i8] c" -i - int event_name\0A\00", align 1
@.str.2 = private unnamed_addr constant [42 x i8] c" -s - string event_name\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgkf069hf.c'
source_filename = "/tmp/tmpgkf069hf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_printable(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = call i64 @isprint(i8 noundef signext %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %11
6: ; preds = %1
%7 = load i8, ptr %2, align 1
%8 = call i32 @isspace(i8 noundef signext %7)
%9 = icmp ne i32 %8, 0
%10 = xor i1 %9, true
br label %11
11: ; preds = %6, %1
%12 = phi i1 [ false, %1 ], [ %10, %6 ]
%13 = zext i1 %12 to i32
ret i32 %13
}
declare i64 @isprint(i8 noundef signext) #1
declare i32 @isspace(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgkf069hf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_printable(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = call i64 @isprint(i8 noundef signext %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %11
6: ; preds = %1
%7 = load i8, ptr %2, align 1
%8 = call i32 @isspace(i8 noundef signext %7)
%9 = icmp ne i32 %8, 0
%10 = xor i1 %9, true
br label %11
11: ; preds = %6, %1
%12 = phi i1 [ false, %1 ], [ %10, %6 ]
%13 = zext i1 %12 to i32
ret i32 %13
}
declare i64 @isprint(i8 noundef signext) #1
declare i32 @isspace(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpa31vjkhy.c'
source_filename = "/tmp/tmpa31vjkhy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa31vjkhy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplnrha76x.c'
source_filename = "/tmp/tmplnrha76x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"localhost\00", align 1
@.str.1 = private unnamed_addr constant [142 x i8] c"%s | %d | bigint TIMESTAMP, string SYMBOL, bigint EXCHTIMESTAMP, bigint RECEIVEDTIME, double BID, double BIDSIZE, double ASK, double ASKSIZE \00", align 1
@.str.2 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"generated_query_2B\00", align 1
@.str.4 = private unnamed_addr constant [52 x i8] c"PAUSING WSQ engine, run compiled query manually...\0A\00", align 1
@.str.5 = private unnamed_addr constant [16 x i8] c"ConnectRemoteIn\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"100\00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c"UDF\00", align 1
@.str.8 = private unnamed_addr constant [4 x i8] c"200\00", align 1
@.str.9 = private unnamed_addr constant [38 x i8] c"output_timer.ws | output_timer | 1.0 \00", align 1
@.str.10 = private unnamed_addr constant [8 x i8] c"Printer\00", align 1
@.str.11 = private unnamed_addr constant [26 x i8] c" Should never see this.. \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 [2048 x i8], align 16
%7 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr @.str, ptr %7, align 8
%8 = getelementptr inbounds [2048 x i8], ptr %6, i64 0, i64 0
%9 = load ptr, ptr %7, align 8
%10 = call i32 @sprintf(ptr noundef %8, ptr noundef @.str.1, ptr noundef %9, i32 noundef 5002)
%11 = call i32 @WSQ_Init(ptr noundef @.str.2)
%12 = call i32 @WSQ_SetQueryName(ptr noundef @.str.3)
%13 = call i32 (...) @WSQ_Pause()
%14 = call i32 @printf(ptr noundef @.str.4)
%15 = call i32 @WSQ_BeginTransaction(i32 noundef 1001)
%16 = call i32 @WSQ_BeginSubgraph(i32 noundef 101)
%17 = getelementptr inbounds [2048 x i8], ptr %6, i64 0, i64 0
%18 = call i32 @WSQ_AddOp(i32 noundef 20, ptr noundef @.str.5, ptr noundef @.str.2, ptr noundef @.str.6, ptr noundef %17)
%19 = call i32 @WSQ_AddOp(i32 noundef 2, ptr noundef @.str.7, ptr noundef @.str.6, ptr noundef @.str.8, ptr noundef @.str.9)
%20 = call i32 @WSQ_AddOp(i32 noundef 3, ptr noundef @.str.10, ptr noundef @.str.8, ptr noundef @.str.2, ptr noundef @.str.11)
%21 = call i32 (...) @WSQ_EndSubgraph()
%22 = call i32 (...) @WSQ_EndTransaction()
ret i32 0
}
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @WSQ_Init(ptr noundef) #1
declare i32 @WSQ_SetQueryName(ptr noundef) #1
declare i32 @WSQ_Pause(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @WSQ_BeginTransaction(i32 noundef) #1
declare i32 @WSQ_BeginSubgraph(i32 noundef) #1
declare i32 @WSQ_AddOp(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @WSQ_EndSubgraph(...) #1
declare i32 @WSQ_EndTransaction(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmplnrha76x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"localhost\00", align 1
@.str.1 = private unnamed_addr constant [142 x i8] c"%s | %d | bigint TIMESTAMP, string SYMBOL, bigint EXCHTIMESTAMP, bigint RECEIVEDTIME, double BID, double BIDSIZE, double ASK, double ASKSIZE \00", align 1
@.str.2 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"generated_query_2B\00", align 1
@.str.4 = private unnamed_addr constant [52 x i8] c"PAUSING WSQ engine, run compiled query manually...\0A\00", align 1
@.str.5 = private unnamed_addr constant [16 x i8] c"ConnectRemoteIn\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"100\00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c"UDF\00", align 1
@.str.8 = private unnamed_addr constant [4 x i8] c"200\00", align 1
@.str.9 = private unnamed_addr constant [38 x i8] c"output_timer.ws | output_timer | 1.0 \00", align 1
@.str.10 = private unnamed_addr constant [8 x i8] c"Printer\00", align 1
@.str.11 = private unnamed_addr constant [26 x i8] c" Should never see this.. \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 [2048 x i8], align 16
%7 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr @.str, ptr %7, align 8
%8 = getelementptr inbounds [2048 x i8], ptr %6, i64 0, i64 0
%9 = load ptr, ptr %7, align 8
%10 = call i32 @sprintf(ptr noundef %8, ptr noundef @.str.1, ptr noundef %9, i32 noundef 5002)
%11 = call i32 @WSQ_Init(ptr noundef @.str.2)
%12 = call i32 @WSQ_SetQueryName(ptr noundef @.str.3)
%13 = call i32 (...) @WSQ_Pause()
%14 = call i32 @printf(ptr noundef @.str.4)
%15 = call i32 @WSQ_BeginTransaction(i32 noundef 1001)
%16 = call i32 @WSQ_BeginSubgraph(i32 noundef 101)
%17 = getelementptr inbounds [2048 x i8], ptr %6, i64 0, i64 0
%18 = call i32 @WSQ_AddOp(i32 noundef 20, ptr noundef @.str.5, ptr noundef @.str.2, ptr noundef @.str.6, ptr noundef %17)
%19 = call i32 @WSQ_AddOp(i32 noundef 2, ptr noundef @.str.7, ptr noundef @.str.6, ptr noundef @.str.8, ptr noundef @.str.9)
%20 = call i32 @WSQ_AddOp(i32 noundef 3, ptr noundef @.str.10, ptr noundef @.str.8, ptr noundef @.str.2, ptr noundef @.str.11)
%21 = call i32 (...) @WSQ_EndSubgraph()
%22 = call i32 (...) @WSQ_EndTransaction()
ret i32 0
}
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @WSQ_Init(ptr noundef) #1
declare i32 @WSQ_SetQueryName(ptr noundef) #1
declare i32 @WSQ_Pause(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @WSQ_BeginTransaction(i32 noundef) #1
declare i32 @WSQ_BeginSubgraph(i32 noundef) #1
declare i32 @WSQ_AddOp(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @WSQ_EndSubgraph(...) #1
declare i32 @WSQ_EndTransaction(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpeacsk0uu.c'
source_filename = "/tmp/tmpeacsk0uu.c"
target datalayout = "e-m:e-p270: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 [29 x i8] c"Usage: wordints dict1 dict2\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeacsk0uu.c"
target datalayout = "e-m:e-p270: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 [29 x i8] c"Usage: wordints dict1 dict2\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdxev0ztl.c'
source_filename = "/tmp/tmpdxev0ztl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"SCRIPT_FILENAME\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 @getenv(ptr noundef @.str)
%3 = call i32 @getenv(ptr noundef @.str)
%4 = call i32 @execl(i32 noundef %2, i32 noundef %3, ptr noundef null)
%5 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @execl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @getenv(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdxev0ztl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"SCRIPT_FILENAME\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 @getenv(ptr noundef @.str)
%3 = call i32 @getenv(ptr noundef @.str)
%4 = call i32 @execl(i32 noundef %2, i32 noundef %3, ptr noundef null)
%5 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @execl(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @getenv(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7iqgx4z6.c'
source_filename = "/tmp/tmp7iqgx4z6.c"
target datalayout = "e-m:e-p270: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/tmp7iqgx4z6.c"
target datalayout = "e-m:e-p270: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/tmpnjcsnlnr.c'
source_filename = "/tmp/tmpnjcsnlnr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ccnl_lambdaParseVar(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %6, align 4
%7 = load ptr, ptr %3, align 8
%8 = load ptr, ptr %7, align 8
store ptr %8, ptr %4, align 8
%9 = load ptr, ptr %4, align 8
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %30
13: ; preds = %1
%14 = load ptr, ptr %4, align 8
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 39
br i1 %17, label %18, label %30
18: ; preds = %13
store i32 1, ptr %6, align 4
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds i8, ptr %19, i32 1
store ptr %20, ptr %4, align 8
br label %21
21: ; preds = %26, %18
%22 = load ptr, ptr %4, align 8
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp ne i32 %24, 39
br i1 %25, label %26, label %29
26: ; preds = %21
%27 = load ptr, ptr %4, align 8
%28 = getelementptr inbounds i8, ptr %27, i32 1
store ptr %28, ptr %4, align 8
br label %21, !llvm.loop !6
29: ; preds = %21
br label %69
30: ; preds = %13, %1
br label %31
31: ; preds = %65, %30
%32 = load ptr, ptr %4, align 8
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %63
36: ; preds = %31
%37 = load ptr, ptr %4, align 8
%38 = load i8, ptr %37, align 1
%39 = call i64 @isalnum(i8 noundef signext %38)
%40 = icmp ne i64 %39, 0
br i1 %40, label %61, label %41
41: ; preds = %36
%42 = load ptr, ptr %4, align 8
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %44, 95
br i1 %45, label %61, label %46
46: ; preds = %41
%47 = load ptr, ptr %4, align 8
%48 = load i8, ptr %47, align 1
%49 = sext i8 %48 to i32
%50 = icmp eq i32 %49, 61
br i1 %50, label %61, label %51
51: ; preds = %46
%52 = load ptr, ptr %4, align 8
%53 = load i8, ptr %52, align 1
%54 = sext i8 %53 to i32
%55 = icmp eq i32 %54, 47
br i1 %55, label %61, label %56
56: ; preds = %51
%57 = load ptr, ptr %4, align 8
%58 = load i8, ptr %57, align 1
%59 = sext i8 %58 to i32
%60 = icmp eq i32 %59, 46
br label %61
61: ; preds = %56, %51, %46, %41, %36
%62 = phi i1 [ true, %51 ], [ true, %46 ], [ true, %41 ], [ true, %36 ], [ %60, %56 ]
br label %63
63: ; preds = %61, %31
%64 = phi i1 [ false, %31 ], [ %62, %61 ]
br i1 %64, label %65, label %68
65: ; preds = %63
%66 = load ptr, ptr %4, align 8
%67 = getelementptr inbounds i8, ptr %66, i32 1
store ptr %67, ptr %4, align 8
br label %31, !llvm.loop !8
68: ; preds = %63
br label %69
69: ; preds = %68, %29
%70 = load ptr, ptr %4, align 8
%71 = load ptr, ptr %3, align 8
%72 = load ptr, ptr %71, align 8
%73 = ptrtoint ptr %70 to i64
%74 = ptrtoint ptr %72 to i64
%75 = sub i64 %73, %74
%76 = load i32, ptr %6, align 4
%77 = sext i32 %76 to i64
%78 = add nsw i64 %75, %77
%79 = trunc i64 %78 to i32
store i32 %79, ptr %5, align 4
%80 = load i32, ptr %5, align 4
%81 = add nsw i32 %80, 1
%82 = call ptr @ccnl_malloc(i32 noundef %81)
store ptr %82, ptr %4, align 8
%83 = load ptr, ptr %4, align 8
%84 = icmp ne ptr %83, null
br i1 %84, label %86, label %85
85: ; preds = %69
store ptr null, ptr %2, align 8
br label %102
86: ; preds = %69
%87 = load ptr, ptr %4, align 8
%88 = load ptr, ptr %3, align 8
%89 = load ptr, ptr %88, align 8
%90 = load i32, ptr %5, align 4
%91 = call i32 @memcpy(ptr noundef %87, ptr noundef %89, i32 noundef %90)
%92 = load ptr, ptr %4, align 8
%93 = load i32, ptr %5, align 4
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds i8, ptr %92, i64 %94
store i8 0, ptr %95, align 1
%96 = load i32, ptr %5, align 4
%97 = load ptr, ptr %3, align 8
%98 = load ptr, ptr %97, align 8
%99 = sext i32 %96 to i64
%100 = getelementptr inbounds i8, ptr %98, i64 %99
store ptr %100, ptr %97, align 8
%101 = load ptr, ptr %4, align 8
store ptr %101, ptr %2, align 8
br label %102
102: ; preds = %86, %85
%103 = load ptr, ptr %2, align 8
ret ptr %103
}
declare i64 @isalnum(i8 noundef signext) #1
declare ptr @ccnl_malloc(i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnjcsnlnr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ccnl_lambdaParseVar(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %6, align 4
%7 = load ptr, ptr %3, align 8
%8 = load ptr, ptr %7, align 8
store ptr %8, ptr %4, align 8
%9 = load ptr, ptr %4, align 8
%10 = load i8, ptr %9, align 1
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %33
13: ; preds = %1
%14 = load ptr, ptr %4, align 8
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 39
br i1 %17, label %18, label %33
18: ; preds = %13
store i32 1, ptr %6, align 4
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds i8, ptr %19, i32 1
store ptr %20, ptr %4, align 8
%21 = load ptr, ptr %4, align 8
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp ne i32 %23, 39
br i1 %24, label %.lr.ph, label %32
.lr.ph: ; preds = %18
br label %25
25: ; preds = %.lr.ph, %25
%26 = load ptr, ptr %4, align 8
%27 = getelementptr inbounds i8, ptr %26, i32 1
store ptr %27, ptr %4, align 8
%28 = load ptr, ptr %4, align 8
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp ne i32 %30, 39
br i1 %31, label %25, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %32
32: ; preds = %._crit_edge, %18
br label %72
33: ; preds = %13, %1
br label %34
34: ; preds = %68, %33
%35 = load ptr, ptr %4, align 8
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp ne i32 %37, 0
br i1 %38, label %39, label %66
39: ; preds = %34
%40 = load ptr, ptr %4, align 8
%41 = load i8, ptr %40, align 1
%42 = call i64 @isalnum(i8 noundef signext %41)
%43 = icmp ne i64 %42, 0
br i1 %43, label %64, label %44
44: ; preds = %39
%45 = load ptr, ptr %4, align 8
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = icmp eq i32 %47, 95
br i1 %48, label %64, label %49
49: ; preds = %44
%50 = load ptr, ptr %4, align 8
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = icmp eq i32 %52, 61
br i1 %53, label %64, label %54
54: ; preds = %49
%55 = load ptr, ptr %4, align 8
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = icmp eq i32 %57, 47
br i1 %58, label %64, label %59
59: ; preds = %54
%60 = load ptr, ptr %4, align 8
%61 = load i8, ptr %60, align 1
%62 = sext i8 %61 to i32
%63 = icmp eq i32 %62, 46
br label %64
64: ; preds = %59, %54, %49, %44, %39
%65 = phi i1 [ true, %54 ], [ true, %49 ], [ true, %44 ], [ true, %39 ], [ %63, %59 ]
br label %66
66: ; preds = %64, %34
%67 = phi i1 [ false, %34 ], [ %65, %64 ]
br i1 %67, label %68, label %71
68: ; preds = %66
%69 = load ptr, ptr %4, align 8
%70 = getelementptr inbounds i8, ptr %69, i32 1
store ptr %70, ptr %4, align 8
br label %34, !llvm.loop !8
71: ; preds = %66
br label %72
72: ; preds = %71, %32
%73 = load ptr, ptr %4, align 8
%74 = load ptr, ptr %3, align 8
%75 = load ptr, ptr %74, align 8
%76 = ptrtoint ptr %73 to i64
%77 = ptrtoint ptr %75 to i64
%78 = sub i64 %76, %77
%79 = load i32, ptr %6, align 4
%80 = sext i32 %79 to i64
%81 = add nsw i64 %78, %80
%82 = trunc i64 %81 to i32
store i32 %82, ptr %5, align 4
%83 = load i32, ptr %5, align 4
%84 = add nsw i32 %83, 1
%85 = call ptr @ccnl_malloc(i32 noundef %84)
store ptr %85, ptr %4, align 8
%86 = load ptr, ptr %4, align 8
%87 = icmp ne ptr %86, null
br i1 %87, label %89, label %88
88: ; preds = %72
store ptr null, ptr %2, align 8
br label %105
89: ; preds = %72
%90 = load ptr, ptr %4, align 8
%91 = load ptr, ptr %3, align 8
%92 = load ptr, ptr %91, align 8
%93 = load i32, ptr %5, align 4
%94 = call i32 @memcpy(ptr noundef %90, ptr noundef %92, i32 noundef %93)
%95 = load ptr, ptr %4, align 8
%96 = load i32, ptr %5, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i8, ptr %95, i64 %97
store i8 0, ptr %98, align 1
%99 = load i32, ptr %5, align 4
%100 = load ptr, ptr %3, align 8
%101 = load ptr, ptr %100, align 8
%102 = sext i32 %99 to i64
%103 = getelementptr inbounds i8, ptr %101, i64 %102
store ptr %103, ptr %100, align 8
%104 = load ptr, ptr %4, align 8
store ptr %104, ptr %2, align 8
br label %105
105: ; preds = %89, %88
%106 = load ptr, ptr %2, align 8
ret ptr %106
}
declare i64 @isalnum(i8 noundef signext) #1
declare ptr @ccnl_malloc(i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpedmmqgu_.c'
source_filename = "/tmp/tmpedmmqgu_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @compare_username(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 @strlen(ptr noundef %8)
store i32 %9, ptr %6, align 4
%10 = load i32, ptr %6, align 4
%11 = load ptr, ptr %5, align 8
%12 = call i32 @strlen(ptr noundef %11)
%13 = icmp ne i32 %10, %12
br i1 %13, label %14, label %15
14: ; preds = %2
store i32 -1, ptr %3, align 4
br label %55
15: ; preds = %2
store i32 0, ptr %7, align 4
br label %16
16: ; preds = %51, %15
%17 = load i32, ptr %7, align 4
%18 = load i32, ptr %6, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %54
20: ; preds = %16
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %7, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %21, i64 %23
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = load ptr, ptr %5, align 8
%28 = load i32, ptr %7, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = icmp ne i32 %26, %32
br i1 %33, label %34, label %50
34: ; preds = %20
%35 = load ptr, ptr %4, align 8
%36 = load i32, ptr %7, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %35, i64 %37
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = load ptr, ptr %5, align 8
%42 = load i32, ptr %7, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %41, i64 %43
%45 = load i8, ptr %44, align 1
%46 = call signext i8 @tolower(i8 noundef signext %45)
%47 = sext i8 %46 to i32
%48 = icmp ne i32 %40, %47
br i1 %48, label %49, label %50
49: ; preds = %34
store i32 -1, ptr %3, align 4
br label %55
50: ; preds = %34, %20
br label %51
51: ; preds = %50
%52 = load i32, ptr %7, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %7, align 4
br label %16, !llvm.loop !6
54: ; preds = %16
store i32 0, ptr %3, align 4
br label %55
55: ; preds = %54, %49, %14
%56 = load i32, ptr %3, align 4
ret i32 %56
}
declare i32 @strlen(ptr noundef) #1
declare signext i8 @tolower(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpedmmqgu_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @compare_username(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%8 = load ptr, ptr %4, align 8
%9 = call i32 @strlen(ptr noundef %8)
store i32 %9, ptr %6, align 4
%10 = load i32, ptr %6, align 4
%11 = load ptr, ptr %5, align 8
%12 = call i32 @strlen(ptr noundef %11)
%13 = icmp ne i32 %10, %12
br i1 %13, label %14, label %15
14: ; preds = %2
store i32 -1, ptr %3, align 4
br label %57
15: ; preds = %2
store i32 0, ptr %7, align 4
%16 = load i32, ptr %7, align 4
%17 = load i32, ptr %6, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %.lr.ph, label %56
.lr.ph: ; preds = %15
br label %19
19: ; preds = %.lr.ph, %50
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr %7, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = load ptr, ptr %5, align 8
%27 = load i32, ptr %7, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp ne i32 %25, %31
br i1 %32, label %33, label %49
33: ; preds = %19
%34 = load ptr, ptr %4, align 8
%35 = load i32, ptr %7, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = load ptr, ptr %5, align 8
%41 = load i32, ptr %7, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %40, i64 %42
%44 = load i8, ptr %43, align 1
%45 = call signext i8 @tolower(i8 noundef signext %44)
%46 = sext i8 %45 to i32
%47 = icmp ne i32 %39, %46
br i1 %47, label %48, label %49
48: ; preds = %33
store i32 -1, ptr %3, align 4
br label %57
49: ; preds = %33, %19
br label %50
50: ; preds = %49
%51 = load i32, ptr %7, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %7, align 4
%53 = load i32, ptr %7, align 4
%54 = load i32, ptr %6, align 4
%55 = icmp slt i32 %53, %54
br i1 %55, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %50
br label %56
56: ; preds = %._crit_edge, %15
store i32 0, ptr %3, align 4
br label %57
57: ; preds = %56, %48, %14
%58 = load i32, ptr %3, align 4
ret i32 %58
}
declare i32 @strlen(ptr noundef) #1
declare signext i8 @tolower(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpu065l5cc.c'
source_filename = "/tmp/tmpu065l5cc.c"
target datalayout = "e-m:e-p270: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/tmpu065l5cc.c"
target datalayout = "e-m:e-p270: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/tmpq4bbxb0c.c'
source_filename = "/tmp/tmpq4bbxb0c.c"
target datalayout = "e-m:e-p270: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/tmpq4bbxb0c.c"
target datalayout = "e-m:e-p270: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/tmpkji3ty0p.c'
source_filename = "/tmp/tmpkji3ty0p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"GET\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"[miku:client do get]\0A\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"/index.html\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"POST\00", align 1
@.str.5 = private unnamed_addr constant [23 x i8] c"[miku:client do post]\0A\00", align 1
@.str.6 = private unnamed_addr constant [15 x i8] c"wrong request\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_path(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1024 x i8], align 16
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%9 = call i32 @my_read(i32 noundef %7, ptr noundef %8, i32 noundef 1024)
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %12
11: ; preds = %2
store i32 -1, ptr %3, align 4
br label %66
12: ; preds = %2
%13 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%14 = call ptr @strstr(ptr noundef %13, ptr noundef @.str)
%15 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%16 = icmp eq ptr %14, %15
br i1 %16, label %17, label %38
17: ; preds = %12
%18 = call i32 @printf(ptr noundef @.str.1)
%19 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 4
%20 = load i8, ptr %19, align 4
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 47
br i1 %22, label %23, label %31
23: ; preds = %17
%24 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 5
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 32
br i1 %27, label %28, label %31
28: ; preds = %23
%29 = load ptr, ptr %5, align 8
%30 = call i32 @strcat(ptr noundef %29, ptr noundef @.str.2)
br label %37
31: ; preds = %23, %17
%32 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 4
%33 = call i32 @strtok(ptr noundef %32, ptr noundef @.str.3)
%34 = load ptr, ptr %5, align 8
%35 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 4
%36 = call i32 @strcat(ptr noundef %34, ptr noundef %35)
br label %37
37: ; preds = %31, %28
store i32 0, ptr %3, align 4
br label %66
38: ; preds = %12
%39 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%40 = call ptr @strstr(ptr noundef %39, ptr noundef @.str.4)
%41 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%42 = icmp eq ptr %40, %41
br i1 %42, label %43, label %64
43: ; preds = %38
%44 = call i32 @printf(ptr noundef @.str.5)
%45 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 5
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = icmp eq i32 %47, 47
br i1 %48, label %49, label %57
49: ; preds = %43
%50 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 6
%51 = load i8, ptr %50, align 2
%52 = sext i8 %51 to i32
%53 = icmp eq i32 %52, 32
br i1 %53, label %54, label %57
54: ; preds = %49
%55 = load ptr, ptr %5, align 8
%56 = call i32 @strcat(ptr noundef %55, ptr noundef @.str.2)
br label %63
57: ; preds = %49, %43
%58 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 5
%59 = call i32 @strtok(ptr noundef %58, ptr noundef @.str.3)
%60 = load ptr, ptr %5, align 8
%61 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 5
%62 = call i32 @strcat(ptr noundef %60, ptr noundef %61)
br label %63
63: ; preds = %57, %54
store i32 0, ptr %3, align 4
br label %66
64: ; preds = %38
%65 = call i32 @printf(ptr noundef @.str.6)
store i32 -1, ptr %3, align 4
br label %66
66: ; preds = %64, %63, %37, %11
%67 = load i32, ptr %3, align 4
ret i32 %67
}
declare i32 @my_read(i32 noundef, ptr noundef, i32 noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @strtok(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/tmpkji3ty0p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"GET\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"[miku:client do get]\0A\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"/index.html\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"POST\00", align 1
@.str.5 = private unnamed_addr constant [23 x i8] c"[miku:client do post]\0A\00", align 1
@.str.6 = private unnamed_addr constant [15 x i8] c"wrong request\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_path(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1024 x i8], align 16
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%9 = call i32 @my_read(i32 noundef %7, ptr noundef %8, i32 noundef 1024)
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %12
11: ; preds = %2
store i32 -1, ptr %3, align 4
br label %66
12: ; preds = %2
%13 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%14 = call ptr @strstr(ptr noundef %13, ptr noundef @.str)
%15 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%16 = icmp eq ptr %14, %15
br i1 %16, label %17, label %38
17: ; preds = %12
%18 = call i32 @printf(ptr noundef @.str.1)
%19 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 4
%20 = load i8, ptr %19, align 4
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 47
br i1 %22, label %23, label %31
23: ; preds = %17
%24 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 5
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 32
br i1 %27, label %28, label %31
28: ; preds = %23
%29 = load ptr, ptr %5, align 8
%30 = call i32 @strcat(ptr noundef %29, ptr noundef @.str.2)
br label %37
31: ; preds = %23, %17
%32 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 4
%33 = call i32 @strtok(ptr noundef %32, ptr noundef @.str.3)
%34 = load ptr, ptr %5, align 8
%35 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 4
%36 = call i32 @strcat(ptr noundef %34, ptr noundef %35)
br label %37
37: ; preds = %31, %28
store i32 0, ptr %3, align 4
br label %66
38: ; preds = %12
%39 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%40 = call ptr @strstr(ptr noundef %39, ptr noundef @.str.4)
%41 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%42 = icmp eq ptr %40, %41
br i1 %42, label %43, label %64
43: ; preds = %38
%44 = call i32 @printf(ptr noundef @.str.5)
%45 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 5
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = icmp eq i32 %47, 47
br i1 %48, label %49, label %57
49: ; preds = %43
%50 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 6
%51 = load i8, ptr %50, align 2
%52 = sext i8 %51 to i32
%53 = icmp eq i32 %52, 32
br i1 %53, label %54, label %57
54: ; preds = %49
%55 = load ptr, ptr %5, align 8
%56 = call i32 @strcat(ptr noundef %55, ptr noundef @.str.2)
br label %63
57: ; preds = %49, %43
%58 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 5
%59 = call i32 @strtok(ptr noundef %58, ptr noundef @.str.3)
%60 = load ptr, ptr %5, align 8
%61 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 5
%62 = call i32 @strcat(ptr noundef %60, ptr noundef %61)
br label %63
63: ; preds = %57, %54
store i32 0, ptr %3, align 4
br label %66
64: ; preds = %38
%65 = call i32 @printf(ptr noundef @.str.6)
store i32 -1, ptr %3, align 4
br label %66
66: ; preds = %64, %63, %37, %11
%67 = load i32, ptr %3, align 4
ret i32 %67
}
declare i32 @my_read(i32 noundef, ptr noundef, i32 noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @strtok(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/tmpkh3lr4cm.c'
source_filename = "/tmp/tmpkh3lr4cm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"error cmatrix: calloc error No. 1 \0A\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c"error cmatrix: calloc error No. 2 \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @cmatrix(i64 noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca ptr, align 8
store i64 %0, ptr %6, align 8
store i64 %1, ptr %7, align 8
store i64 %2, ptr %8, align 8
store i64 %3, ptr %9, align 8
%14 = load i64, ptr %7, align 8
%15 = load i64, ptr %6, align 8
%16 = sub nsw i64 %14, %15
%17 = add nsw i64 %16, 1
store i64 %17, ptr %11, align 8
%18 = load i64, ptr %9, align 8
%19 = load i64, ptr %8, align 8
%20 = sub nsw i64 %18, %19
%21 = add nsw i64 %20, 1
store i64 %21, ptr %12, align 8
%22 = load i64, ptr %11, align 8
%23 = call i64 @calloc(i64 noundef %22, i32 noundef 8)
%24 = inttoptr i64 %23 to ptr
store ptr %24, ptr %13, align 8
%25 = icmp eq ptr %24, null
br i1 %25, label %26, label %28
26: ; preds = %4
%27 = call i32 @printf(ptr noundef @.str)
store ptr null, ptr %5, align 8
br label %81
28: ; preds = %4
%29 = load ptr, ptr %13, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 0
store ptr %30, ptr %13, align 8
%31 = load i64, ptr %8, align 8
%32 = load ptr, ptr %13, align 8
%33 = sub i64 0, %31
%34 = getelementptr inbounds ptr, ptr %32, i64 %33
store ptr %34, ptr %13, align 8
%35 = load i64, ptr %11, align 8
%36 = load i64, ptr %12, align 8
%37 = mul nsw i64 %35, %36
%38 = call i64 @calloc(i64 noundef %37, i32 noundef 1)
%39 = inttoptr i64 %38 to ptr
%40 = load ptr, ptr %13, align 8
%41 = load i64, ptr %6, align 8
%42 = getelementptr inbounds ptr, ptr %40, i64 %41
store ptr %39, ptr %42, align 8
%43 = icmp eq ptr %39, null
br i1 %43, label %44, label %46
44: ; preds = %28
%45 = call i32 @printf(ptr noundef @.str.1)
store ptr null, ptr %5, align 8
br label %81
46: ; preds = %28
%47 = load ptr, ptr %13, align 8
%48 = load i64, ptr %6, align 8
%49 = getelementptr inbounds ptr, ptr %47, i64 %48
%50 = load ptr, ptr %49, align 8
%51 = getelementptr inbounds i8, ptr %50, i64 0
store ptr %51, ptr %49, align 8
%52 = load i64, ptr %6, align 8
%53 = load ptr, ptr %13, align 8
%54 = load i64, ptr %6, align 8
%55 = getelementptr inbounds ptr, ptr %53, i64 %54
%56 = load ptr, ptr %55, align 8
%57 = sub i64 0, %52
%58 = getelementptr inbounds i8, ptr %56, i64 %57
store ptr %58, ptr %55, align 8
%59 = load i64, ptr %6, align 8
%60 = add nsw i64 %59, 1
store i64 %60, ptr %10, align 8
br label %61
61: ; preds = %76, %46
%62 = load i64, ptr %10, align 8
%63 = load i64, ptr %7, align 8
%64 = icmp sle i64 %62, %63
br i1 %64, label %65, label %79
65: ; preds = %61
%66 = load ptr, ptr %13, align 8
%67 = load i64, ptr %10, align 8
%68 = sub nsw i64 %67, 1
%69 = getelementptr inbounds ptr, ptr %66, i64 %68
%70 = load ptr, ptr %69, align 8
%71 = load i64, ptr %12, align 8
%72 = getelementptr inbounds i8, ptr %70, i64 %71
%73 = load ptr, ptr %13, align 8
%74 = load i64, ptr %10, align 8
%75 = getelementptr inbounds ptr, ptr %73, i64 %74
store ptr %72, ptr %75, align 8
br label %76
76: ; preds = %65
%77 = load i64, ptr %10, align 8
%78 = add nsw i64 %77, 1
store i64 %78, ptr %10, align 8
br label %61, !llvm.loop !6
79: ; preds = %61
%80 = load ptr, ptr %13, align 8
store ptr %80, ptr %5, align 8
br label %81
81: ; preds = %79, %44, %26
%82 = load ptr, ptr %5, align 8
ret ptr %82
}
declare i64 @calloc(i64 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkh3lr4cm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"error cmatrix: calloc error No. 1 \0A\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c"error cmatrix: calloc error No. 2 \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @cmatrix(i64 noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca ptr, align 8
store i64 %0, ptr %6, align 8
store i64 %1, ptr %7, align 8
store i64 %2, ptr %8, align 8
store i64 %3, ptr %9, align 8
%14 = load i64, ptr %7, align 8
%15 = load i64, ptr %6, align 8
%16 = sub nsw i64 %14, %15
%17 = add nsw i64 %16, 1
store i64 %17, ptr %11, align 8
%18 = load i64, ptr %9, align 8
%19 = load i64, ptr %8, align 8
%20 = sub nsw i64 %18, %19
%21 = add nsw i64 %20, 1
store i64 %21, ptr %12, align 8
%22 = load i64, ptr %11, align 8
%23 = call i64 @calloc(i64 noundef %22, i32 noundef 8)
%24 = inttoptr i64 %23 to ptr
store ptr %24, ptr %13, align 8
%25 = icmp eq ptr %24, null
br i1 %25, label %26, label %28
26: ; preds = %4
%27 = call i32 @printf(ptr noundef @.str)
store ptr null, ptr %5, align 8
br label %83
28: ; preds = %4
%29 = load ptr, ptr %13, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 0
store ptr %30, ptr %13, align 8
%31 = load i64, ptr %8, align 8
%32 = load ptr, ptr %13, align 8
%33 = sub i64 0, %31
%34 = getelementptr inbounds ptr, ptr %32, i64 %33
store ptr %34, ptr %13, align 8
%35 = load i64, ptr %11, align 8
%36 = load i64, ptr %12, align 8
%37 = mul nsw i64 %35, %36
%38 = call i64 @calloc(i64 noundef %37, i32 noundef 1)
%39 = inttoptr i64 %38 to ptr
%40 = load ptr, ptr %13, align 8
%41 = load i64, ptr %6, align 8
%42 = getelementptr inbounds ptr, ptr %40, i64 %41
store ptr %39, ptr %42, align 8
%43 = icmp eq ptr %39, null
br i1 %43, label %44, label %46
44: ; preds = %28
%45 = call i32 @printf(ptr noundef @.str.1)
store ptr null, ptr %5, align 8
br label %83
46: ; preds = %28
%47 = load ptr, ptr %13, align 8
%48 = load i64, ptr %6, align 8
%49 = getelementptr inbounds ptr, ptr %47, i64 %48
%50 = load ptr, ptr %49, align 8
%51 = getelementptr inbounds i8, ptr %50, i64 0
store ptr %51, ptr %49, align 8
%52 = load i64, ptr %6, align 8
%53 = load ptr, ptr %13, align 8
%54 = load i64, ptr %6, align 8
%55 = getelementptr inbounds ptr, ptr %53, i64 %54
%56 = load ptr, ptr %55, align 8
%57 = sub i64 0, %52
%58 = getelementptr inbounds i8, ptr %56, i64 %57
store ptr %58, ptr %55, align 8
%59 = load i64, ptr %6, align 8
%60 = add nsw i64 %59, 1
store i64 %60, ptr %10, align 8
%61 = load i64, ptr %10, align 8
%62 = load i64, ptr %7, align 8
%63 = icmp sle i64 %61, %62
br i1 %63, label %.lr.ph, label %81
.lr.ph: ; preds = %46
br label %64
64: ; preds = %.lr.ph, %75
%65 = load ptr, ptr %13, align 8
%66 = load i64, ptr %10, align 8
%67 = sub nsw i64 %66, 1
%68 = getelementptr inbounds ptr, ptr %65, i64 %67
%69 = load ptr, ptr %68, align 8
%70 = load i64, ptr %12, align 8
%71 = getelementptr inbounds i8, ptr %69, i64 %70
%72 = load ptr, ptr %13, align 8
%73 = load i64, ptr %10, align 8
%74 = getelementptr inbounds ptr, ptr %72, i64 %73
store ptr %71, ptr %74, align 8
br label %75
75: ; preds = %64
%76 = load i64, ptr %10, align 8
%77 = add nsw i64 %76, 1
store i64 %77, ptr %10, align 8
%78 = load i64, ptr %10, align 8
%79 = load i64, ptr %7, align 8
%80 = icmp sle i64 %78, %79
br i1 %80, label %64, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %75
br label %81
81: ; preds = %._crit_edge, %46
%82 = load ptr, ptr %13, align 8
store ptr %82, ptr %5, align 8
br label %83
83: ; preds = %81, %44, %26
%84 = load ptr, ptr %5, align 8
ret ptr %84
}
declare i64 @calloc(i64 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpvc8m686o.c'
source_filename = "/tmp/tmpvc8m686o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_GETLK = dso_local global i32 0, align 4
@F_UNLCK = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvc8m686o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_GETLK = dso_local global i32 0, align 4
@F_UNLCK = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdfhw_co6.c'
source_filename = "/tmp/tmpdfhw_co6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @array_shuffle(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%8 = load i32, ptr %3, align 4
%9 = sub nsw i32 %8, 1
store i32 %9, ptr %5, align 4
br label %10
10: ; preds = %35, %2
%11 = load i32, ptr %5, align 4
%12 = icmp sge i32 %11, 1
br i1 %12, label %13, label %38
13: ; preds = %10
%14 = load i32, ptr %5, align 4
%15 = call i32 @get_random_number(i32 noundef 0, i32 noundef %14)
store i32 %15, ptr %6, align 4
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %5, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds ptr, ptr %16, i64 %18
%20 = load ptr, ptr %19, align 8
store ptr %20, ptr %7, align 8
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %6, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds ptr, ptr %21, i64 %23
%25 = load ptr, ptr %24, align 8
%26 = load ptr, ptr %4, align 8
%27 = load i32, ptr %5, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds ptr, ptr %26, i64 %28
store ptr %25, ptr %29, align 8
%30 = load ptr, ptr %7, align 8
%31 = load ptr, ptr %4, align 8
%32 = load i32, ptr %6, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds ptr, ptr %31, i64 %33
store ptr %30, ptr %34, align 8
br label %35
35: ; preds = %13
%36 = load i32, ptr %5, align 4
%37 = add nsw i32 %36, -1
store i32 %37, ptr %5, align 4
br label %10, !llvm.loop !6
38: ; preds = %10
ret void
}
declare i32 @get_random_number(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdfhw_co6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @array_shuffle(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%8 = load i32, ptr %3, align 4
%9 = sub nsw i32 %8, 1
store i32 %9, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp sge i32 %10, 1
br i1 %11, label %.lr.ph, label %39
.lr.ph: ; preds = %2
br label %12
12: ; preds = %.lr.ph, %34
%13 = load i32, ptr %5, align 4
%14 = call i32 @get_random_number(i32 noundef 0, i32 noundef %13)
store i32 %14, ptr %6, align 4
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds ptr, ptr %15, i64 %17
%19 = load ptr, ptr %18, align 8
store ptr %19, ptr %7, align 8
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr %6, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds ptr, ptr %20, i64 %22
%24 = load ptr, ptr %23, align 8
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr %5, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds ptr, ptr %25, i64 %27
store ptr %24, ptr %28, align 8
%29 = load ptr, ptr %7, align 8
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %6, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds ptr, ptr %30, i64 %32
store ptr %29, ptr %33, align 8
br label %34
34: ; preds = %12
%35 = load i32, ptr %5, align 4
%36 = add nsw i32 %35, -1
store i32 %36, ptr %5, align 4
%37 = load i32, ptr %5, align 4
%38 = icmp sge i32 %37, 1
br i1 %38, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %34
br label %39
39: ; preds = %._crit_edge, %2
ret void
}
declare i32 @get_random_number(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp9kts6gq9.c'
source_filename = "/tmp/tmp9kts6gq9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @settitle(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @SetTitle51(ptr noundef %3)
ret void
}
declare i32 @SetTitle51(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/tmp9kts6gq9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @settitle(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @SetTitle51(ptr noundef %3)
ret void
}
declare i32 @SetTitle51(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/tmpxt1h8s0y.c'
source_filename = "/tmp/tmpxt1h8s0y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @padcon_get_standard_estimated_distance(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %4, align 4
%6 = load ptr, ptr %5, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i32 @_ada_use_c2phc4c(i32 noundef 887, ptr noundef %4, ptr noundef %6, ptr noundef %7, i32 noundef 0)
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
ret i32 %9
}
declare i32 @_ada_use_c2phc4c(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxt1h8s0y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @padcon_get_standard_estimated_distance(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %4, align 4
%6 = load ptr, ptr %5, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i32 @_ada_use_c2phc4c(i32 noundef 887, ptr noundef %4, ptr noundef %6, ptr noundef %7, i32 noundef 0)
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
ret i32 %9
}
declare i32 @_ada_use_c2phc4c(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvrkjxeo8.c'
source_filename = "/tmp/tmpvrkjxeo8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"Local resource failure: malloc\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @sgetsave(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %8
7: ; preds = %1
store ptr @.str, ptr %2, align 8
br label %8
8: ; preds = %7, %1
%9 = load ptr, ptr %2, align 8
%10 = call i32 @strlen(ptr noundef %9)
%11 = add nsw i32 %10, 1
%12 = sext i32 %11 to i64
store i64 %12, ptr %4, align 8
%13 = load i64, ptr %4, align 8
%14 = call ptr @malloc(i64 noundef %13)
store ptr %14, ptr %3, align 8
%15 = load ptr, ptr %3, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %20
17: ; preds = %8
%18 = call i32 @perror_reply(i32 noundef 421, ptr noundef @.str.1)
%19 = call i32 @dologout(i32 noundef 1)
br label %20
20: ; preds = %17, %8
%21 = load ptr, ptr %3, align 8
%22 = load ptr, ptr %2, align 8
%23 = load i64, ptr %4, align 8
%24 = call i32 @memcpy(ptr noundef %21, ptr noundef %22, i64 noundef %23)
%25 = load ptr, ptr %3, align 8
ret ptr %25
}
declare i32 @strlen(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @perror_reply(i32 noundef, ptr noundef) #1
declare i32 @dologout(i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvrkjxeo8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"Local resource failure: malloc\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @sgetsave(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %8
7: ; preds = %1
store ptr @.str, ptr %2, align 8
br label %8
8: ; preds = %7, %1
%9 = load ptr, ptr %2, align 8
%10 = call i32 @strlen(ptr noundef %9)
%11 = add nsw i32 %10, 1
%12 = sext i32 %11 to i64
store i64 %12, ptr %4, align 8
%13 = load i64, ptr %4, align 8
%14 = call ptr @malloc(i64 noundef %13)
store ptr %14, ptr %3, align 8
%15 = load ptr, ptr %3, align 8
%16 = icmp eq ptr %15, null
br i1 %16, label %17, label %20
17: ; preds = %8
%18 = call i32 @perror_reply(i32 noundef 421, ptr noundef @.str.1)
%19 = call i32 @dologout(i32 noundef 1)
br label %20
20: ; preds = %17, %8
%21 = load ptr, ptr %3, align 8
%22 = load ptr, ptr %2, align 8
%23 = load i64, ptr %4, align 8
%24 = call i32 @memcpy(ptr noundef %21, ptr noundef %22, i64 noundef %23)
%25 = load ptr, ptr %3, align 8
ret ptr %25
}
declare i32 @strlen(ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @perror_reply(i32 noundef, ptr noundef) #1
declare i32 @dologout(i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0fd38057.c'
source_filename = "/tmp/tmp0fd38057.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @find_free_bit(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 1, ptr %7, align 4
store i32 0, ptr %6, align 4
br label %8
8: ; preds = %21, %2
%9 = load i32, ptr %6, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp sle i32 %9, %10
br i1 %11, label %12, label %24
12: ; preds = %8
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %5, align 4
%16 = call i32 @get_bitmap(ptr noundef %13, i32 noundef %14, i32 noundef %15)
store i32 %16, ptr %7, align 4
%17 = load i32, ptr %7, align 4
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %12
br label %24
20: ; preds = %12
br label %21
21: ; preds = %20
%22 = load i32, ptr %6, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %6, align 4
br label %8, !llvm.loop !6
24: ; preds = %19, %8
%25 = load i32, ptr %7, align 4
%26 = icmp eq i32 %25, -1
br i1 %26, label %27, label %29
27: ; preds = %24
%28 = load i32, ptr %7, align 4
store i32 %28, ptr %3, align 4
br label %31
29: ; preds = %24
%30 = load i32, ptr %6, align 4
store i32 %30, ptr %3, align 4
br label %31
31: ; preds = %29, %27
%32 = load i32, ptr %3, align 4
ret i32 %32
}
declare i32 @get_bitmap(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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0fd38057.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @find_free_bit(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 1, ptr %7, align 4
store i32 0, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp sle i32 %8, %9
br i1 %10, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %20
%12 = load ptr, ptr %4, align 8
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %5, align 4
%15 = call i32 @get_bitmap(ptr noundef %12, i32 noundef %13, i32 noundef %14)
store i32 %15, ptr %7, align 4
%16 = load i32, ptr %7, align 4
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %11
br label %26
19: ; preds = %11
br label %20
20: ; preds = %19
%21 = load i32, ptr %6, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %6, align 4
%23 = load i32, ptr %6, align 4
%24 = load i32, ptr %5, align 4
%25 = icmp sle i32 %23, %24
br i1 %25, label %11, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %20
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %2
br label %26
26: ; preds = %.loopexit, %18
%27 = load i32, ptr %7, align 4
%28 = icmp eq i32 %27, -1
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = load i32, ptr %7, align 4
store i32 %30, ptr %3, align 4
br label %33
31: ; preds = %26
%32 = load i32, ptr %6, align 4
store i32 %32, ptr %3, align 4
br label %33
33: ; preds = %31, %29
%34 = load i32, ptr %3, align 4
ret i32 %34
}
declare i32 @get_bitmap(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"}
|
; ModuleID = '/tmp/tmpj5nw8md4.c'
source_filename = "/tmp/tmpj5nw8md4.c"
target datalayout = "e-m:e-p270: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/tmpj5nw8md4.c"
target datalayout = "e-m:e-p270: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/tmpjd_lroy3.c'
source_filename = "/tmp/tmpjd_lroy3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @util_hexToBuf(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%9 = load i32, ptr %5, align 4
%10 = sdiv i32 %9, 2
store i32 %10, ptr %8, align 4
store i32 0, ptr %7, align 4
br label %11
11: ; preds = %27, %3
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %8, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %30
15: ; preds = %11
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %7, align 4
%18 = mul nsw i32 %17, 2
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %16, i64 %19
%21 = call i64 @util_hexToint(ptr noundef %20, i32 noundef 2)
%22 = trunc i64 %21 to i8
%23 = load ptr, ptr %6, align 8
%24 = load i32, ptr %7, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %23, i64 %25
store i8 %22, ptr %26, align 1
br label %27
27: ; preds = %15
%28 = load i32, ptr %7, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %7, align 4
br label %11, !llvm.loop !6
30: ; preds = %11
%31 = load i32, ptr %7, align 4
ret i32 %31
}
declare i64 @util_hexToint(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjd_lroy3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @util_hexToBuf(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%9 = load i32, ptr %5, align 4
%10 = sdiv i32 %9, 2
store i32 %10, ptr %8, align 4
store i32 0, ptr %7, align 4
%11 = load i32, ptr %7, align 4
%12 = load i32, ptr %8, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %.lr.ph, label %32
.lr.ph: ; preds = %3
br label %14
14: ; preds = %.lr.ph, %26
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %7, align 4
%17 = mul nsw i32 %16, 2
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %15, i64 %18
%20 = call i64 @util_hexToint(ptr noundef %19, i32 noundef 2)
%21 = trunc i64 %20 to i8
%22 = load ptr, ptr %6, align 8
%23 = load i32, ptr %7, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %22, i64 %24
store i8 %21, ptr %25, align 1
br label %26
26: ; preds = %14
%27 = load i32, ptr %7, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %7, align 4
%29 = load i32, ptr %7, align 4
%30 = load i32, ptr %8, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %32
32: ; preds = %._crit_edge, %3
%33 = load i32, ptr %7, align 4
ret i32 %33
}
declare i64 @util_hexToint(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpzq6e0tnk.c'
source_filename = "/tmp/tmpzq6e0tnk.c"
target datalayout = "e-m:e-p270: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.winsize = type { i32, i32 }
@STDOUT_FILENO = dso_local global i32 0, align 4
@TIOCGWINSZ = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [37 x i8] c"Error accessing terminal parameters\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getTermSize(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca %struct.winsize, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = load i32, ptr @STDOUT_FILENO, align 4
%8 = load i32, ptr @TIOCGWINSZ, align 4
%9 = call i64 @ioctl(i32 noundef %7, i32 noundef %8, ptr noundef %6)
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 @printf(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %20
13: ; preds = %2
%14 = getelementptr inbounds %struct.winsize, ptr %6, i32 0, i32 0
%15 = load i32, ptr %14, align 4
%16 = load ptr, ptr %4, align 8
store i32 %15, ptr %16, align 4
%17 = getelementptr inbounds %struct.winsize, ptr %6, i32 0, i32 1
%18 = load i32, ptr %17, align 4
%19 = load ptr, ptr %5, align 8
store i32 %18, ptr %19, align 4
store i32 0, ptr %3, align 4
br label %20
20: ; preds = %13, %11
%21 = load i32, ptr %3, align 4
ret i32 %21
}
declare i64 @ioctl(i32 noundef, i32 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/tmpzq6e0tnk.c"
target datalayout = "e-m:e-p270: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.winsize = type { i32, i32 }
@STDOUT_FILENO = dso_local global i32 0, align 4
@TIOCGWINSZ = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [37 x i8] c"Error accessing terminal parameters\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getTermSize(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca %struct.winsize, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = load i32, ptr @STDOUT_FILENO, align 4
%8 = load i32, ptr @TIOCGWINSZ, align 4
%9 = call i64 @ioctl(i32 noundef %7, i32 noundef %8, ptr noundef %6)
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 @printf(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %20
13: ; preds = %2
%14 = getelementptr inbounds %struct.winsize, ptr %6, i32 0, i32 0
%15 = load i32, ptr %14, align 4
%16 = load ptr, ptr %4, align 8
store i32 %15, ptr %16, align 4
%17 = getelementptr inbounds %struct.winsize, ptr %6, i32 0, i32 1
%18 = load i32, ptr %17, align 4
%19 = load ptr, ptr %5, align 8
store i32 %18, ptr %19, align 4
store i32 0, ptr %3, align 4
br label %20
20: ; preds = %13, %11
%21 = load i32, ptr %3, align 4
ret i32 %21
}
declare i64 @ioctl(i32 noundef, i32 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/tmpgnm5obm2.c'
source_filename = "/tmp/tmpgnm5obm2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [67 x i8] c"IClass Cipher version 1.2, Copyright (C) 2014 Martin Holst Swende\0A\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c"Comes with ABSOLUTELY NO WARRANTY\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Released as GPLv2\0A\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"WARNING\00", align 1
@.str.4 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.5 = private unnamed_addr constant [68 x i8] c"THIS TOOL IS CREATED FOR EXPERIMENTATION AND EDUCATIONAL USE ONLY. \00", align 1
@.str.6 = private unnamed_addr constant [69 x i8] c"USAGE OF THIS TOOL IN OTHER WAYS MAY INFRINGE UPON THE INTELLECTUAL \00", align 1
@.str.7 = private unnamed_addr constant [66 x i8] c"PROPERTY OF OTHER PARTIES, SUCH AS INSIDE SECURE AND HID GLOBAL, \00", align 1
@.str.8 = private unnamed_addr constant [66 x i8] c"AND MAY EXPOSE YOU TO AN INFRINGEMENT ACTION FROM THOSE PARTIES. \00", align 1
@.str.9 = private unnamed_addr constant [85 x i8] c"THIS TOOL SHOULD NEVER BE USED TO INFRINGE PATENTS OR INTELLECTUAL PROPERTY RIGHTS. \00", align 1
@.str.10 = private unnamed_addr constant [5 x i8] c"thf:\00", align 1
@optarg = dso_local global ptr null, align 8
@optopt = dso_local global float 0.000000e+00, align 4
@stderr = dso_local global i32 0, align 4
@.str.11 = private unnamed_addr constant [34 x i8] c"Option -%c requires an argument.\0A\00", align 1
@.str.12 = private unnamed_addr constant [23 x i8] c"Unknown option `-%c'.\0A\00", align 1
@.str.13 = private unnamed_addr constant [34 x i8] c"Unknown option character `\\x%x'.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 @prnlog(ptr noundef @.str)
%9 = call i32 @prnlog(ptr noundef @.str.1)
%10 = call i32 @prnlog(ptr noundef @.str.2)
%11 = call i32 @prnlog(ptr noundef @.str.3)
%12 = call i32 @prnlog(ptr noundef @.str.4)
%13 = call i32 @prnlog(ptr noundef @.str.5)
%14 = call i32 @prnlog(ptr noundef @.str.4)
%15 = call i32 @prnlog(ptr noundef @.str.6)
%16 = call i32 @prnlog(ptr noundef @.str.7)
%17 = call i32 @prnlog(ptr noundef @.str.8)
%18 = call i32 @prnlog(ptr noundef @.str.4)
%19 = call i32 @prnlog(ptr noundef @.str.9)
store ptr null, ptr %6, align 8
br label %20
20: ; preds = %56, %2
%21 = load i32, ptr %4, align 4
%22 = load ptr, ptr %5, align 8
%23 = call i32 @getopt(i32 noundef %21, ptr noundef %22, ptr noundef @.str.10)
store i32 %23, ptr %7, align 4
%24 = icmp ne i32 %23, -1
br i1 %24, label %25, label %57
25: ; preds = %20
%26 = load i32, ptr %7, align 4
switch i32 %26, label %56 [
i32 116, label %27
i32 104, label %29
i32 102, label %31
i32 63, label %35
]
27: ; preds = %25
%28 = call i32 (...) @unitTests()
store i32 %28, ptr %3, align 4
br label %59
29: ; preds = %25
%30 = call i32 (...) @showHelp()
store i32 %30, ptr %3, align 4
br label %59
31: ; preds = %25
%32 = load ptr, ptr @optarg, align 8
store ptr %32, ptr %6, align 8
%33 = load ptr, ptr %6, align 8
%34 = call i32 @bruteforceFileNoKeys(ptr noundef %33)
store i32 %34, ptr %3, align 4
br label %59
35: ; preds = %25
%36 = load float, ptr @optopt, align 4
%37 = fcmp oeq float %36, 1.020000e+02
br i1 %37, label %38, label %42
38: ; preds = %35
%39 = load i32, ptr @stderr, align 4
%40 = load float, ptr @optopt, align 4
%41 = call i32 @fprintf(i32 noundef %39, ptr noundef @.str.11, float noundef %40)
br label %55
42: ; preds = %35
%43 = load float, ptr @optopt, align 4
%44 = call i32 @isprint(float noundef %43)
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %50
46: ; preds = %42
%47 = load i32, ptr @stderr, align 4
%48 = load float, ptr @optopt, align 4
%49 = call i32 @fprintf(i32 noundef %47, ptr noundef @.str.12, float noundef %48)
br label %54
50: ; preds = %42
%51 = load i32, ptr @stderr, align 4
%52 = load float, ptr @optopt, align 4
%53 = call i32 @fprintf(i32 noundef %51, ptr noundef @.str.13, float noundef %52)
br label %54
54: ; preds = %50, %46
br label %55
55: ; preds = %54, %38
store i32 1, ptr %3, align 4
br label %59
56: ; preds = %25
br label %20, !llvm.loop !6
57: ; preds = %20
%58 = call i32 (...) @showHelp()
store i32 0, ptr %3, align 4
br label %59
59: ; preds = %57, %55, %31, %29, %27
%60 = load i32, ptr %3, align 4
ret i32 %60
}
declare i32 @prnlog(ptr noundef) #1
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @unitTests(...) #1
declare i32 @showHelp(...) #1
declare i32 @bruteforceFileNoKeys(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, float noundef) #1
declare i32 @isprint(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgnm5obm2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [67 x i8] c"IClass Cipher version 1.2, Copyright (C) 2014 Martin Holst Swende\0A\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c"Comes with ABSOLUTELY NO WARRANTY\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Released as GPLv2\0A\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"WARNING\00", align 1
@.str.4 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.5 = private unnamed_addr constant [68 x i8] c"THIS TOOL IS CREATED FOR EXPERIMENTATION AND EDUCATIONAL USE ONLY. \00", align 1
@.str.6 = private unnamed_addr constant [69 x i8] c"USAGE OF THIS TOOL IN OTHER WAYS MAY INFRINGE UPON THE INTELLECTUAL \00", align 1
@.str.7 = private unnamed_addr constant [66 x i8] c"PROPERTY OF OTHER PARTIES, SUCH AS INSIDE SECURE AND HID GLOBAL, \00", align 1
@.str.8 = private unnamed_addr constant [66 x i8] c"AND MAY EXPOSE YOU TO AN INFRINGEMENT ACTION FROM THOSE PARTIES. \00", align 1
@.str.9 = private unnamed_addr constant [85 x i8] c"THIS TOOL SHOULD NEVER BE USED TO INFRINGE PATENTS OR INTELLECTUAL PROPERTY RIGHTS. \00", align 1
@.str.10 = private unnamed_addr constant [5 x i8] c"thf:\00", align 1
@optarg = dso_local global ptr null, align 8
@optopt = dso_local global float 0.000000e+00, align 4
@stderr = dso_local global i32 0, align 4
@.str.11 = private unnamed_addr constant [34 x i8] c"Option -%c requires an argument.\0A\00", align 1
@.str.12 = private unnamed_addr constant [23 x i8] c"Unknown option `-%c'.\0A\00", align 1
@.str.13 = private unnamed_addr constant [34 x i8] c"Unknown option character `\\x%x'.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 @prnlog(ptr noundef @.str)
%9 = call i32 @prnlog(ptr noundef @.str.1)
%10 = call i32 @prnlog(ptr noundef @.str.2)
%11 = call i32 @prnlog(ptr noundef @.str.3)
%12 = call i32 @prnlog(ptr noundef @.str.4)
%13 = call i32 @prnlog(ptr noundef @.str.5)
%14 = call i32 @prnlog(ptr noundef @.str.4)
%15 = call i32 @prnlog(ptr noundef @.str.6)
%16 = call i32 @prnlog(ptr noundef @.str.7)
%17 = call i32 @prnlog(ptr noundef @.str.8)
%18 = call i32 @prnlog(ptr noundef @.str.4)
%19 = call i32 @prnlog(ptr noundef @.str.9)
store ptr null, ptr %6, align 8
%20 = load i32, ptr %4, align 4
%21 = load ptr, ptr %5, align 8
%22 = call i32 @getopt(i32 noundef %20, ptr noundef %21, ptr noundef @.str.10)
store i32 %22, ptr %7, align 4
%23 = icmp ne i32 %22, -1
br i1 %23, label %.lr.ph, label %60
.lr.ph: ; preds = %2
br label %24
24: ; preds = %.lr.ph, %55
%25 = load i32, ptr %7, align 4
switch i32 %25, label %55 [
i32 116, label %26
i32 104, label %28
i32 102, label %30
i32 63, label %34
]
26: ; preds = %24
%27 = call i32 (...) @unitTests()
store i32 %27, ptr %3, align 4
br label %62
28: ; preds = %24
%29 = call i32 (...) @showHelp()
store i32 %29, ptr %3, align 4
br label %62
30: ; preds = %24
%31 = load ptr, ptr @optarg, align 8
store ptr %31, ptr %6, align 8
%32 = load ptr, ptr %6, align 8
%33 = call i32 @bruteforceFileNoKeys(ptr noundef %32)
store i32 %33, ptr %3, align 4
br label %62
34: ; preds = %24
%35 = load float, ptr @optopt, align 4
%36 = fcmp oeq float %35, 1.020000e+02
br i1 %36, label %37, label %41
37: ; preds = %34
%38 = load i32, ptr @stderr, align 4
%39 = load float, ptr @optopt, align 4
%40 = call i32 @fprintf(i32 noundef %38, ptr noundef @.str.11, float noundef %39)
br label %54
41: ; preds = %34
%42 = load float, ptr @optopt, align 4
%43 = call i32 @isprint(float noundef %42)
%44 = icmp ne i32 %43, 0
br i1 %44, label %45, label %49
45: ; preds = %41
%46 = load i32, ptr @stderr, align 4
%47 = load float, ptr @optopt, align 4
%48 = call i32 @fprintf(i32 noundef %46, ptr noundef @.str.12, float noundef %47)
br label %53
49: ; preds = %41
%50 = load i32, ptr @stderr, align 4
%51 = load float, ptr @optopt, align 4
%52 = call i32 @fprintf(i32 noundef %50, ptr noundef @.str.13, float noundef %51)
br label %53
53: ; preds = %49, %45
br label %54
54: ; preds = %53, %37
store i32 1, ptr %3, align 4
br label %62
55: ; preds = %24
%56 = load i32, ptr %4, align 4
%57 = load ptr, ptr %5, align 8
%58 = call i32 @getopt(i32 noundef %56, ptr noundef %57, ptr noundef @.str.10)
store i32 %58, ptr %7, align 4
%59 = icmp ne i32 %58, -1
br i1 %59, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %55
br label %60
60: ; preds = %._crit_edge, %2
%61 = call i32 (...) @showHelp()
store i32 0, ptr %3, align 4
br label %62
62: ; preds = %60, %54, %30, %28, %26
%63 = load i32, ptr %3, align 4
ret i32 %63
}
declare i32 @prnlog(ptr noundef) #1
declare i32 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @unitTests(...) #1
declare i32 @showHelp(...) #1
declare i32 @bruteforceFileNoKeys(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, float noundef) #1
declare i32 @isprint(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpv336eydb.c'
source_filename = "/tmp/tmpv336eydb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"grades.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [28 x i8] c"ERROR: Could not open file.\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.4 = private unnamed_addr constant [28 x i8] c"Total number of grades: %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"Grades above 50: %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [21 x i8] c"Grades below 50: %d\0A\00", align 1
@.str.7 = private unnamed_addr constant [30 x i8] c"Average grade (mean): %.2f%%\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%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 ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %8, ptr %2, align 8
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%9 = load ptr, ptr %2, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %13
11: ; preds = %0
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 -1, ptr %1, align 4
br label %53
13: ; preds = %0
br label %14
14: ; preds = %31, %13
%15 = load ptr, ptr %2, align 8
%16 = call i64 @fscanf(ptr noundef %15, ptr noundef @.str.3, ptr noundef %3)
%17 = load i64, ptr @EOF, align 8
%18 = icmp ne i64 %16, %17
br i1 %18, label %19, label %37
19: ; preds = %14
%20 = load i32, ptr %3, align 4
%21 = icmp sgt i32 %20, 50
br i1 %21, label %22, label %25
22: ; preds = %19
%23 = load i32, ptr %5, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %5, align 4
br label %25
25: ; preds = %22, %19
%26 = load i32, ptr %3, align 4
%27 = icmp slt i32 %26, 50
br i1 %27, label %28, label %31
28: ; preds = %25
%29 = load i32, ptr %6, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %6, align 4
br label %31
31: ; preds = %28, %25
%32 = load i32, ptr %3, align 4
%33 = load i32, ptr %4, align 4
%34 = add nsw i32 %33, %32
store i32 %34, ptr %4, align 4
%35 = load i32, ptr %7, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %7, align 4
br label %14, !llvm.loop !6
37: ; preds = %14
%38 = load i32, ptr %7, align 4
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %38)
%40 = load i32, ptr %5, align 4
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %40)
%42 = load i32, ptr %6, align 4
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %42)
%44 = load i32, ptr %4, align 4
%45 = sitofp i32 %44 to float
%46 = load i32, ptr %7, align 4
%47 = sitofp i32 %46 to float
%48 = fdiv float %45, %47
%49 = fpext float %48 to double
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, double noundef %49)
%51 = load ptr, ptr %2, align 8
%52 = call i32 @fclose(ptr noundef %51)
store i32 0, ptr %1, align 4
br label %53
53: ; preds = %37, %11
%54 = load i32, ptr %1, align 4
ret i32 %54
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv336eydb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"grades.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [28 x i8] c"ERROR: Could not open file.\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.4 = private unnamed_addr constant [28 x i8] c"Total number of grades: %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"Grades above 50: %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [21 x i8] c"Grades below 50: %d\0A\00", align 1
@.str.7 = private unnamed_addr constant [30 x i8] c"Average grade (mean): %.2f%%\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%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 ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %8, ptr %2, align 8
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%9 = load ptr, ptr %2, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %13
11: ; preds = %0
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 -1, ptr %1, align 4
br label %56
13: ; preds = %0
%14 = load ptr, ptr %2, align 8
%15 = call i64 @fscanf(ptr noundef %14, ptr noundef @.str.3, ptr noundef %3)
%16 = load i64, ptr @EOF, align 8
%17 = icmp ne i64 %15, %16
br i1 %17, label %.lr.ph, label %40
.lr.ph: ; preds = %13
br label %18
18: ; preds = %.lr.ph, %30
%19 = load i32, ptr %3, align 4
%20 = icmp sgt i32 %19, 50
br i1 %20, label %21, label %24
21: ; preds = %18
%22 = load i32, ptr %5, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %5, align 4
br label %24
24: ; preds = %21, %18
%25 = load i32, ptr %3, align 4
%26 = icmp slt i32 %25, 50
br i1 %26, label %27, label %30
27: ; preds = %24
%28 = load i32, ptr %6, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %6, align 4
br label %30
30: ; preds = %27, %24
%31 = load i32, ptr %3, align 4
%32 = load i32, ptr %4, align 4
%33 = add nsw i32 %32, %31
store i32 %33, ptr %4, align 4
%34 = load i32, ptr %7, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %7, align 4
%36 = load ptr, ptr %2, align 8
%37 = call i64 @fscanf(ptr noundef %36, ptr noundef @.str.3, ptr noundef %3)
%38 = load i64, ptr @EOF, align 8
%39 = icmp ne i64 %37, %38
br i1 %39, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %40
40: ; preds = %._crit_edge, %13
%41 = load i32, ptr %7, align 4
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %41)
%43 = load i32, ptr %5, align 4
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %43)
%45 = load i32, ptr %6, align 4
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %45)
%47 = load i32, ptr %4, align 4
%48 = sitofp i32 %47 to float
%49 = load i32, ptr %7, align 4
%50 = sitofp i32 %49 to float
%51 = fdiv float %48, %50
%52 = fpext float %51 to double
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, double noundef %52)
%54 = load ptr, ptr %2, align 8
%55 = call i32 @fclose(ptr noundef %54)
store i32 0, ptr %1, align 4
br label %56
56: ; preds = %40, %11
%57 = load i32, ptr %1, align 4
ret i32 %57
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @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"}
|
; ModuleID = '/tmp/tmpxoczwwyp.c'
source_filename = "/tmp/tmpxoczwwyp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @check_mesh_topology_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%13 = load ptr, ptr %7, align 8
%14 = load i32, ptr %13, align 4
%15 = load ptr, ptr %8, align 8
%16 = load ptr, ptr %9, align 8
%17 = load i32, ptr %16, align 4
%18 = load ptr, ptr %10, align 8
%19 = load ptr, ptr %11, align 8
%20 = load i32, ptr %19, align 4
%21 = load ptr, ptr %12, align 8
%22 = call i32 @checktopology(i32 noundef %14, ptr noundef %15, i32 noundef %17, ptr noundef %18, i32 noundef %20, ptr noundef %21, i32 noundef 1)
ret i32 %22
}
declare i32 @checktopology(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxoczwwyp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @check_mesh_topology_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%13 = load ptr, ptr %7, align 8
%14 = load i32, ptr %13, align 4
%15 = load ptr, ptr %8, align 8
%16 = load ptr, ptr %9, align 8
%17 = load i32, ptr %16, align 4
%18 = load ptr, ptr %10, align 8
%19 = load ptr, ptr %11, align 8
%20 = load i32, ptr %19, align 4
%21 = load ptr, ptr %12, align 8
%22 = call i32 @checktopology(i32 noundef %14, ptr noundef %15, i32 noundef %17, ptr noundef %18, i32 noundef %20, ptr noundef %21, i32 noundef 1)
ret i32 %22
}
declare i32 @checktopology(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpf_0bxsvh.c'
source_filename = "/tmp/tmpf_0bxsvh.c"
target datalayout = "e-m:e-p270: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
@.str = private unnamed_addr constant [27 x i8] c"Could not allocate memory\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @read_entire_file(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = load i32, ptr @SEEK_END, align 4
%7 = call i32 @fseek(ptr noundef %5, i64 noundef 0, i32 noundef %6)
%8 = load ptr, ptr %2, align 8
%9 = call i32 @ftell(ptr noundef %8)
store i32 %9, ptr %3, align 4
%10 = load ptr, ptr %2, align 8
%11 = call i32 @rewind(ptr noundef %10)
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %12, 1
%14 = call ptr @calloc(i32 noundef %13, i32 noundef 1)
store ptr %14, ptr %4, align 8
%15 = load ptr, ptr %4, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %21, label %17
17: ; preds = %1
%18 = call i32 @printf(ptr noundef @.str)
%19 = load i32, ptr @EXIT_FAILURE, align 4
%20 = call i32 @exit(i32 noundef %19) #3
unreachable
21: ; preds = %1
%22 = load ptr, ptr %4, align 8
%23 = load i32, ptr %3, align 4
%24 = load ptr, ptr %2, align 8
%25 = call i32 @fread(ptr noundef %22, i32 noundef %23, i32 noundef 1, ptr noundef %24)
%26 = load ptr, ptr %4, align 8
ret ptr %26
}
declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @ftell(ptr noundef) #1
declare i32 @rewind(ptr noundef) #1
declare ptr @calloc(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpf_0bxsvh.c"
target datalayout = "e-m:e-p270: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
@.str = private unnamed_addr constant [27 x i8] c"Could not allocate memory\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @read_entire_file(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = load i32, ptr @SEEK_END, align 4
%7 = call i32 @fseek(ptr noundef %5, i64 noundef 0, i32 noundef %6)
%8 = load ptr, ptr %2, align 8
%9 = call i32 @ftell(ptr noundef %8)
store i32 %9, ptr %3, align 4
%10 = load ptr, ptr %2, align 8
%11 = call i32 @rewind(ptr noundef %10)
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %12, 1
%14 = call ptr @calloc(i32 noundef %13, i32 noundef 1)
store ptr %14, ptr %4, align 8
%15 = load ptr, ptr %4, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %21, label %17
17: ; preds = %1
%18 = call i32 @printf(ptr noundef @.str)
%19 = load i32, ptr @EXIT_FAILURE, align 4
%20 = call i32 @exit(i32 noundef %19) #3
unreachable
21: ; preds = %1
%22 = load ptr, ptr %4, align 8
%23 = load i32, ptr %3, align 4
%24 = load ptr, ptr %2, align 8
%25 = call i32 @fread(ptr noundef %22, i32 noundef %23, i32 noundef 1, ptr noundef %24)
%26 = load ptr, ptr %4, align 8
ret ptr %26
}
declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @ftell(ptr noundef) #1
declare i32 @rewind(ptr noundef) #1
declare ptr @calloc(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpwgtb3f43.c'
source_filename = "/tmp/tmpwgtb3f43.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"equal\00", align 1
@.str.1 = private unnamed_addr constant [163 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/string/strcmp.c\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"Should be == 0\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @strcmp_equal() #0 {
%1 = call i64 @strcmp(ptr noundef @.str, ptr noundef @.str)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str.1, i32 noundef 12, ptr noundef @.str.2)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwgtb3f43.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"equal\00", align 1
@.str.1 = private unnamed_addr constant [163 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/string/strcmp.c\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"Should be == 0\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @strcmp_equal() #0 {
%1 = call i64 @strcmp(ptr noundef @.str, ptr noundef @.str)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str.1, i32 noundef 12, ptr noundef @.str.2)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxnyxoc8j.c'
source_filename = "/tmp/tmpxnyxoc8j.c"
target datalayout = "e-m:e-p270: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/tmpxnyxoc8j.c"
target datalayout = "e-m:e-p270: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/tmpfbhzpssj.c'
source_filename = "/tmp/tmpfbhzpssj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ft_putnstr_fd(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%8 = load ptr, ptr %5, align 8
%9 = call i32 @ft_strlen(ptr noundef %8)
store i32 %9, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = sext i32 %10 to i64
%12 = load i64, ptr %6, align 8
%13 = icmp ugt i64 %11, %12
br i1 %13, label %14, label %20
14: ; preds = %3
%15 = load i32, ptr %4, align 4
%16 = load ptr, ptr %5, align 8
%17 = load i64, ptr %6, align 8
%18 = trunc i64 %17 to i32
%19 = call i32 @write(i32 noundef %15, ptr noundef %16, i32 noundef %18)
br label %25
20: ; preds = %3
%21 = load i32, ptr %4, align 4
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %7, align 4
%24 = call i32 @write(i32 noundef %21, ptr noundef %22, i32 noundef %23)
br label %25
25: ; preds = %20, %14
ret void
}
declare i32 @ft_strlen(ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfbhzpssj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ft_putnstr_fd(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%8 = load ptr, ptr %5, align 8
%9 = call i32 @ft_strlen(ptr noundef %8)
store i32 %9, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = sext i32 %10 to i64
%12 = load i64, ptr %6, align 8
%13 = icmp ugt i64 %11, %12
br i1 %13, label %14, label %20
14: ; preds = %3
%15 = load i32, ptr %4, align 4
%16 = load ptr, ptr %5, align 8
%17 = load i64, ptr %6, align 8
%18 = trunc i64 %17 to i32
%19 = call i32 @write(i32 noundef %15, ptr noundef %16, i32 noundef %18)
br label %25
20: ; preds = %3
%21 = load i32, ptr %4, align 4
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %7, align 4
%24 = call i32 @write(i32 noundef %21, ptr noundef %22, i32 noundef %23)
br label %25
25: ; preds = %20, %14
ret void
}
declare i32 @ft_strlen(ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9k75ytvk.c'
source_filename = "/tmp/tmp9k75ytvk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Multiplica(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 [20001 x i8], align 16
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i64, align 8
%14 = alloca i64, align 8
%15 = alloca i64, align 8
%16 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i32 0, ptr %11, align 4
store i32 0, ptr %12, align 4
store i64 0, ptr %14, align 8
%17 = load ptr, ptr %4, align 8
%18 = call i64 @atol(ptr noundef %17)
store i64 %18, ptr %15, align 8
%19 = load ptr, ptr %5, align 8
%20 = call i32 @strlen(ptr noundef %19)
store i32 %20, ptr %16, align 4
%21 = load i32, ptr %16, align 4
%22 = add nsw i32 %21, -1
store i32 %22, ptr %16, align 4
br label %23
23: ; preds = %26, %3
%24 = load i32, ptr %16, align 4
%25 = icmp ne i32 %24, -1
br i1 %25, label %26, label %63
26: ; preds = %23
%27 = load ptr, ptr %5, align 8
%28 = load i32, ptr %16, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = sub nsw i32 %32, 48
store i32 %33, ptr %8, align 4
%34 = load ptr, ptr %4, align 8
%35 = load i32, ptr %16, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = sub nsw i32 %39, 48
store i32 %40, ptr %9, align 4
%41 = load i32, ptr %9, align 4
%42 = load i32, ptr %8, align 4
%43 = mul nsw i32 %41, %42
%44 = sext i32 %43 to i64
store i64 %44, ptr %13, align 8
%45 = load i64, ptr %13, align 8
%46 = load i64, ptr %14, align 8
%47 = add nsw i64 %45, %46
store i64 %47, ptr %13, align 8
%48 = load i64, ptr %13, align 8
%49 = sdiv i64 %48, 10
store i64 %49, ptr %14, align 8
%50 = load i64, ptr %13, align 8
%51 = srem i64 %50, 10
%52 = trunc i64 %51 to i32
store i32 %52, ptr %11, align 4
%53 = load i32, ptr %11, align 4
%54 = add nsw i32 %53, 48
%55 = trunc i32 %54 to i8
%56 = load i32, ptr %12, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [20001 x i8], ptr %7, i64 0, i64 %57
store i8 %55, ptr %58, align 1
%59 = load i32, ptr %12, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %12, align 4
%61 = load i32, ptr %16, align 4
%62 = add nsw i32 %61, -1
store i32 %62, ptr %16, align 4
br label %23, !llvm.loop !6
63: ; preds = %23
br label %64
64: ; preds = %67, %63
%65 = load i64, ptr %14, align 8
%66 = icmp sge i64 %65, 10
br i1 %66, label %67, label %81
67: ; preds = %64
%68 = load i64, ptr %14, align 8
%69 = srem i64 %68, 10
%70 = trunc i64 %69 to i32
store i32 %70, ptr %11, align 4
%71 = load i64, ptr %14, align 8
%72 = sdiv i64 %71, 10
store i64 %72, ptr %14, align 8
%73 = load i32, ptr %11, align 4
%74 = add nsw i32 %73, 48
%75 = trunc i32 %74 to i8
%76 = load i32, ptr %12, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [20001 x i8], ptr %7, i64 0, i64 %77
store i8 %75, ptr %78, align 1
%79 = load i32, ptr %12, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %12, align 4
br label %64, !llvm.loop !8
81: ; preds = %64
%82 = load i64, ptr %14, align 8
%83 = icmp sgt i64 %82, 0
br i1 %83, label %84, label %93
84: ; preds = %81
%85 = load i64, ptr %14, align 8
%86 = add nsw i64 %85, 48
%87 = trunc i64 %86 to i8
%88 = load i32, ptr %12, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [20001 x i8], ptr %7, i64 0, i64 %89
store i8 %87, ptr %90, align 1
%91 = load i32, ptr %12, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr %12, align 4
br label %93
93: ; preds = %84, %81
%94 = load i32, ptr %12, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds [20001 x i8], ptr %7, i64 0, i64 %95
store i8 0, ptr %96, align 1
%97 = getelementptr inbounds [20001 x i8], ptr %7, i64 0, i64 0
%98 = call i32 @strlen(ptr noundef %97)
store i32 %98, ptr %16, align 4
store i32 0, ptr %12, align 4
%99 = load i32, ptr %16, align 4
%100 = sub nsw i32 %99, 1
store i32 %100, ptr %10, align 4
br label %101
101: ; preds = %114, %93
%102 = load i32, ptr %12, align 4
%103 = load i32, ptr %16, align 4
%104 = icmp slt i32 %102, %103
br i1 %104, label %105, label %119
105: ; preds = %101
%106 = load i32, ptr %10, align 4
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds [20001 x i8], ptr %7, i64 0, i64 %107
%109 = load i8, ptr %108, align 1
%110 = load ptr, ptr %6, align 8
%111 = load i32, ptr %12, align 4
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds i8, ptr %110, i64 %112
store i8 %109, ptr %113, align 1
br label %114
114: ; preds = %105
%115 = load i32, ptr %12, align 4
%116 = add nsw i32 %115, 1
store i32 %116, ptr %12, align 4
%117 = load i32, ptr %10, align 4
%118 = add nsw i32 %117, -1
store i32 %118, ptr %10, align 4
br label %101, !llvm.loop !9
119: ; preds = %101
%120 = load ptr, ptr %6, align 8
%121 = load i32, ptr %12, align 4
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds i8, ptr %120, i64 %122
store i8 0, ptr %123, align 1
ret void
}
declare i64 @atol(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9k75ytvk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Multiplica(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 [20001 x i8], align 16
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i64, align 8
%14 = alloca i64, align 8
%15 = alloca i64, align 8
%16 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i32 0, ptr %11, align 4
store i32 0, ptr %12, align 4
store i64 0, ptr %14, align 8
%17 = load ptr, ptr %4, align 8
%18 = call i64 @atol(ptr noundef %17)
store i64 %18, ptr %15, align 8
%19 = load ptr, ptr %5, align 8
%20 = call i32 @strlen(ptr noundef %19)
store i32 %20, ptr %16, align 4
%21 = load i32, ptr %16, align 4
%22 = add nsw i32 %21, -1
store i32 %22, ptr %16, align 4
%23 = load i32, ptr %16, align 4
%24 = icmp ne i32 %23, -1
br i1 %24, label %.lr.ph, label %64
.lr.ph: ; preds = %3
br label %25
25: ; preds = %.lr.ph, %25
%26 = load ptr, ptr %5, align 8
%27 = load i32, ptr %16, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = sub nsw i32 %31, 48
store i32 %32, ptr %8, align 4
%33 = load ptr, ptr %4, align 8
%34 = load i32, ptr %16, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = sub nsw i32 %38, 48
store i32 %39, ptr %9, align 4
%40 = load i32, ptr %9, align 4
%41 = load i32, ptr %8, align 4
%42 = mul nsw i32 %40, %41
%43 = sext i32 %42 to i64
store i64 %43, ptr %13, align 8
%44 = load i64, ptr %13, align 8
%45 = load i64, ptr %14, align 8
%46 = add nsw i64 %44, %45
store i64 %46, ptr %13, align 8
%47 = load i64, ptr %13, align 8
%48 = sdiv i64 %47, 10
store i64 %48, ptr %14, align 8
%49 = load i64, ptr %13, align 8
%50 = srem i64 %49, 10
%51 = trunc i64 %50 to i32
store i32 %51, ptr %11, align 4
%52 = load i32, ptr %11, align 4
%53 = add nsw i32 %52, 48
%54 = trunc i32 %53 to i8
%55 = load i32, ptr %12, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [20001 x i8], ptr %7, i64 0, i64 %56
store i8 %54, ptr %57, align 1
%58 = load i32, ptr %12, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %12, align 4
%60 = load i32, ptr %16, align 4
%61 = add nsw i32 %60, -1
store i32 %61, ptr %16, align 4
%62 = load i32, ptr %16, align 4
%63 = icmp ne i32 %62, -1
br i1 %63, label %25, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %64
64: ; preds = %._crit_edge, %3
%65 = load i64, ptr %14, align 8
%66 = icmp sge i64 %65, 10
br i1 %66, label %.lr.ph2, label %83
.lr.ph2: ; preds = %64
br label %67
67: ; preds = %.lr.ph2, %67
%68 = load i64, ptr %14, align 8
%69 = srem i64 %68, 10
%70 = trunc i64 %69 to i32
store i32 %70, ptr %11, align 4
%71 = load i64, ptr %14, align 8
%72 = sdiv i64 %71, 10
store i64 %72, ptr %14, align 8
%73 = load i32, ptr %11, align 4
%74 = add nsw i32 %73, 48
%75 = trunc i32 %74 to i8
%76 = load i32, ptr %12, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [20001 x i8], ptr %7, i64 0, i64 %77
store i8 %75, ptr %78, align 1
%79 = load i32, ptr %12, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %12, align 4
%81 = load i64, ptr %14, align 8
%82 = icmp sge i64 %81, 10
br i1 %82, label %67, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %67
br label %83
83: ; preds = %._crit_edge3, %64
%84 = load i64, ptr %14, align 8
%85 = icmp sgt i64 %84, 0
br i1 %85, label %86, label %95
86: ; preds = %83
%87 = load i64, ptr %14, align 8
%88 = add nsw i64 %87, 48
%89 = trunc i64 %88 to i8
%90 = load i32, ptr %12, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [20001 x i8], ptr %7, i64 0, i64 %91
store i8 %89, ptr %92, align 1
%93 = load i32, ptr %12, align 4
%94 = add nsw i32 %93, 1
store i32 %94, ptr %12, align 4
br label %95
95: ; preds = %86, %83
%96 = load i32, ptr %12, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [20001 x i8], ptr %7, i64 0, i64 %97
store i8 0, ptr %98, align 1
%99 = getelementptr inbounds [20001 x i8], ptr %7, i64 0, i64 0
%100 = call i32 @strlen(ptr noundef %99)
store i32 %100, ptr %16, align 4
store i32 0, ptr %12, align 4
%101 = load i32, ptr %16, align 4
%102 = sub nsw i32 %101, 1
store i32 %102, ptr %10, align 4
%103 = load i32, ptr %12, align 4
%104 = load i32, ptr %16, align 4
%105 = icmp slt i32 %103, %104
br i1 %105, label %.lr.ph5, label %123
.lr.ph5: ; preds = %95
br label %106
106: ; preds = %.lr.ph5, %115
%107 = load i32, ptr %10, align 4
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [20001 x i8], ptr %7, i64 0, i64 %108
%110 = load i8, ptr %109, align 1
%111 = load ptr, ptr %6, align 8
%112 = load i32, ptr %12, align 4
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds i8, ptr %111, i64 %113
store i8 %110, ptr %114, align 1
br label %115
115: ; preds = %106
%116 = load i32, ptr %12, align 4
%117 = add nsw i32 %116, 1
store i32 %117, ptr %12, align 4
%118 = load i32, ptr %10, align 4
%119 = add nsw i32 %118, -1
store i32 %119, ptr %10, align 4
%120 = load i32, ptr %12, align 4
%121 = load i32, ptr %16, align 4
%122 = icmp slt i32 %120, %121
br i1 %122, label %106, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %115
br label %123
123: ; preds = %._crit_edge6, %95
%124 = load ptr, ptr %6, align 8
%125 = load i32, ptr %12, align 4
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds i8, ptr %124, i64 %126
store i8 0, ptr %127, align 1
ret void
}
declare i64 @atol(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp743hykqz.c'
source_filename = "/tmp/tmp743hykqz.c"
target datalayout = "e-m:e-p270: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/tmp743hykqz.c"
target datalayout = "e-m:e-p270: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/tmp4ga7zak6.c'
source_filename = "/tmp/tmp4ga7zak6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"!%18s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @validate_ipv4net_negate(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca [18 x i8], align 16
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %8, label %7
7: ; preds = %1
store i32 0, ptr %2, align 4
br label %21
8: ; preds = %1
%9 = getelementptr inbounds [18 x i8], ptr %4, i64 0, i64 0
%10 = call i32 @memset(ptr noundef %9, i8 noundef signext 0, i32 noundef 18)
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds [18 x i8], ptr %4, i64 0, i64 0
%13 = call i32 @sscanf(ptr noundef %11, ptr noundef @.str, ptr noundef %12)
%14 = icmp ne i32 %13, 1
br i1 %14, label %15, label %18
15: ; preds = %8
%16 = load ptr, ptr %3, align 8
%17 = call i32 @validate_ipv4net(ptr noundef %16)
store i32 %17, ptr %2, align 4
br label %21
18: ; preds = %8
%19 = getelementptr inbounds [18 x i8], ptr %4, i64 0, i64 0
%20 = call i32 @validate_ipv4net(ptr noundef %19)
store i32 %20, ptr %2, align 4
br label %21
21: ; preds = %18, %15, %7
%22 = load i32, ptr %2, align 4
ret i32 %22
}
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @validate_ipv4net(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/tmp4ga7zak6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"!%18s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @validate_ipv4net_negate(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca [18 x i8], align 16
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %8, label %7
7: ; preds = %1
store i32 0, ptr %2, align 4
br label %21
8: ; preds = %1
%9 = getelementptr inbounds [18 x i8], ptr %4, i64 0, i64 0
%10 = call i32 @memset(ptr noundef %9, i8 noundef signext 0, i32 noundef 18)
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds [18 x i8], ptr %4, i64 0, i64 0
%13 = call i32 @sscanf(ptr noundef %11, ptr noundef @.str, ptr noundef %12)
%14 = icmp ne i32 %13, 1
br i1 %14, label %15, label %18
15: ; preds = %8
%16 = load ptr, ptr %3, align 8
%17 = call i32 @validate_ipv4net(ptr noundef %16)
store i32 %17, ptr %2, align 4
br label %21
18: ; preds = %8
%19 = getelementptr inbounds [18 x i8], ptr %4, i64 0, i64 0
%20 = call i32 @validate_ipv4net(ptr noundef %19)
store i32 %20, ptr %2, align 4
br label %21
21: ; preds = %18, %15, %7
%22 = load i32, ptr %2, align 4
ret i32 %22
}
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @validate_ipv4net(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/tmpkuwvyj8w.c'
source_filename = "/tmp/tmpkuwvyj8w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%li\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [200 x i8], align 16
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 200, i1 false)
%3 = getelementptr inbounds [200 x i8], ptr %2, i64 0, i64 0
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%5 = getelementptr inbounds [200 x i8], ptr %2, i64 0, i64 0
%6 = call i32 @hash(ptr noundef %5)
%7 = call i32 @printf(ptr noundef @.str.1, i32 noundef %6)
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
declare i32 @hash(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkuwvyj8w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%li\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [200 x i8], align 16
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 200, i1 false)
%3 = getelementptr inbounds [200 x i8], ptr %2, i64 0, i64 0
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%5 = getelementptr inbounds [200 x i8], ptr %2, i64 0, i64 0
%6 = call i32 @hash(ptr noundef %5)
%7 = call i32 @printf(ptr noundef @.str.1, i32 noundef %6)
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
declare i32 @hash(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcgpal2y7.c'
source_filename = "/tmp/tmpcgpal2y7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sd_bus_can_send(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
%5 = load i32, ptr @EINVAL, align 4
%6 = sub nsw i32 0, %5
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/tmpcgpal2y7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sd_bus_can_send(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
%5 = load i32, ptr @EINVAL, align 4
%6 = sub nsw i32 0, %5
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/tmpf7jmle01.c'
source_filename = "/tmp/tmpf7jmle01.c"
target datalayout = "e-m:e-p270: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/tmpf7jmle01.c"
target datalayout = "e-m:e-p270: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/tmpdbtehc82.c'
source_filename = "/tmp/tmpdbtehc82.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"/dev/mem0\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [24 x i8] c"Cannot open /dev/char0\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [25 x i8] c"Reset /dev/mem0 succeed\0A\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"Cannot reset /dev/mem0\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 = load i32, ptr @O_RDWR, align 4
%5 = call i32 @open(ptr noundef @.str, i32 noundef %4)
store i32 %5, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp eq i32 %6, -1
br i1 %7, label %8, label %12
8: ; preds = %0
%9 = call i32 @printf(ptr noundef @.str.1)
%10 = load i32, ptr @EXIT_FAILURE, align 4
%11 = call i32 @exit(i32 noundef %10) #3
unreachable
12: ; preds = %0
%13 = load i32, ptr %2, align 4
%14 = call i32 @_IO(i8 noundef signext 90, i32 noundef 1)
%15 = call i32 @ioctl(i32 noundef %13, i32 noundef %14)
store i32 %15, ptr %3, align 4
%16 = load i32, ptr %3, align 4
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %12
%19 = call i32 @printf(ptr noundef @.str.2)
%20 = call i32 @exit(i32 noundef 0) #3
unreachable
21: ; preds = %12
%22 = call i32 @printf(ptr noundef @.str.3)
%23 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @ioctl(i32 noundef, i32 noundef) #1
declare i32 @_IO(i8 noundef signext, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpdbtehc82.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"/dev/mem0\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [24 x i8] c"Cannot open /dev/char0\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [25 x i8] c"Reset /dev/mem0 succeed\0A\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"Cannot reset /dev/mem0\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 = load i32, ptr @O_RDWR, align 4
%5 = call i32 @open(ptr noundef @.str, i32 noundef %4)
store i32 %5, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp eq i32 %6, -1
br i1 %7, label %8, label %12
8: ; preds = %0
%9 = call i32 @printf(ptr noundef @.str.1)
%10 = load i32, ptr @EXIT_FAILURE, align 4
%11 = call i32 @exit(i32 noundef %10) #3
unreachable
12: ; preds = %0
%13 = load i32, ptr %2, align 4
%14 = call i32 @_IO(i8 noundef signext 90, i32 noundef 1)
%15 = call i32 @ioctl(i32 noundef %13, i32 noundef %14)
store i32 %15, ptr %3, align 4
%16 = load i32, ptr %3, align 4
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %12
%19 = call i32 @printf(ptr noundef @.str.2)
%20 = call i32 @exit(i32 noundef 0) #3
unreachable
21: ; preds = %12
%22 = call i32 @printf(ptr noundef @.str.3)
%23 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @ioctl(i32 noundef, i32 noundef) #1
declare i32 @_IO(i8 noundef signext, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpuoh16q5z.c'
source_filename = "/tmp/tmpuoh16q5z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"Humidity ratio is negative\00", align 1
@.str.1 = private unnamed_addr constant [153 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/psychrometrics/psychrolib/refs/heads/master/src/c/psychrolib.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @GetMoistAirDensity(double noundef %0, double noundef %1, double noundef %2) #0 {
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
store double %2, ptr %6, align 8
%8 = load double, ptr %5, align 8
%9 = fcmp oge double %8, 0.000000e+00
br i1 %9, label %12, label %10
10: ; preds = %3
%11 = call i32 @Assert(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 920)
br label %12
12: ; preds = %10, %3
%13 = load double, ptr %5, align 8
%14 = fcmp ogt double %13, 0x3E7AD7F29ABCAF48
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = load double, ptr %5, align 8
br label %18
17: ; preds = %12
br label %18
18: ; preds = %17, %15
%19 = phi double [ %16, %15 ], [ 0x3E7AD7F29ABCAF48, %17 ]
store double %19, ptr %7, align 8
%20 = load double, ptr %7, align 8
%21 = fadd double 1.000000e+00, %20
%22 = load double, ptr %4, align 8
%23 = load double, ptr %7, align 8
%24 = load double, ptr %6, align 8
%25 = call i32 @GetMoistAirVolume(double noundef %22, double noundef %23, double noundef %24)
%26 = sitofp i32 %25 to double
%27 = fdiv double %21, %26
ret double %27
}
declare i32 @Assert(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @GetMoistAirVolume(double noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuoh16q5z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"Humidity ratio is negative\00", align 1
@.str.1 = private unnamed_addr constant [153 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/psychrometrics/psychrolib/refs/heads/master/src/c/psychrolib.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @GetMoistAirDensity(double noundef %0, double noundef %1, double noundef %2) #0 {
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
store double %2, ptr %6, align 8
%8 = load double, ptr %5, align 8
%9 = fcmp oge double %8, 0.000000e+00
br i1 %9, label %12, label %10
10: ; preds = %3
%11 = call i32 @Assert(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 920)
br label %12
12: ; preds = %10, %3
%13 = load double, ptr %5, align 8
%14 = fcmp ogt double %13, 0x3E7AD7F29ABCAF48
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = load double, ptr %5, align 8
br label %18
17: ; preds = %12
br label %18
18: ; preds = %17, %15
%19 = phi double [ %16, %15 ], [ 0x3E7AD7F29ABCAF48, %17 ]
store double %19, ptr %7, align 8
%20 = load double, ptr %7, align 8
%21 = fadd double 1.000000e+00, %20
%22 = load double, ptr %4, align 8
%23 = load double, ptr %7, align 8
%24 = load double, ptr %6, align 8
%25 = call i32 @GetMoistAirVolume(double noundef %22, double noundef %23, double noundef %24)
%26 = sitofp i32 %25 to double
%27 = fdiv double %21, %26
ret double %27
}
declare i32 @Assert(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @GetMoistAirVolume(double noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpomvyxe8f.c'
source_filename = "/tmp/tmpomvyxe8f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Str2int(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%6 = load ptr, ptr %2, align 8
%7 = call i32 @strlen(ptr noundef %6)
store i32 %7, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %5, align 4
br label %8
8: ; preds = %23, %1
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %26
12: ; preds = %8
%13 = load i32, ptr %3, align 4
%14 = mul nsw i32 %13, 10
%15 = load ptr, ptr %2, align 8
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = sub nsw i32 %20, 48
%22 = add nsw i32 %14, %21
store i32 %22, ptr %3, align 4
br label %23
23: ; preds = %12
%24 = load i32, ptr %5, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %5, align 4
br label %8, !llvm.loop !6
26: ; preds = %8
%27 = load i32, ptr %3, align 4
ret i32 %27
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpomvyxe8f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Str2int(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%6 = load ptr, ptr %2, align 8
%7 = call i32 @strlen(ptr noundef %6)
store i32 %7, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %28
.lr.ph: ; preds = %1
br label %11
11: ; preds = %.lr.ph, %22
%12 = load i32, ptr %3, align 4
%13 = mul nsw i32 %12, 10
%14 = load ptr, ptr %2, align 8
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = sub nsw i32 %19, 48
%21 = add nsw i32 %13, %20
store i32 %21, ptr %3, align 4
br label %22
22: ; preds = %11
%23 = load i32, ptr %5, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %5, align 4
%25 = load i32, ptr %5, align 4
%26 = load i32, ptr %4, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %28
28: ; preds = %._crit_edge, %1
%29 = load i32, ptr %3, align 4
ret i32 %29
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpsa5oa13c.c'
source_filename = "/tmp/tmpsa5oa13c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Lutfen sayi giiniz: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"Bu sayi pozitifdir...\00", align 1
@.str.3 = private unnamed_addr constant [22 x i8] c"Bu sayi negatifdir...\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"Bu sayi sifirdir...\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = icmp sgt i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @printf(ptr noundef @.str.2)
br label %9
9: ; preds = %7, %0
%10 = load i32, ptr %2, align 4
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = call i32 @printf(ptr noundef @.str.3)
br label %14
14: ; preds = %12, %9
%15 = load i32, ptr %2, align 4
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %14
%18 = call i32 @printf(ptr noundef @.str.4)
br label %19
19: ; preds = %17, %14
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsa5oa13c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Lutfen sayi giiniz: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"Bu sayi pozitifdir...\00", align 1
@.str.3 = private unnamed_addr constant [22 x i8] c"Bu sayi negatifdir...\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"Bu sayi sifirdir...\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%5 = load i32, ptr %2, align 4
%6 = icmp sgt i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @printf(ptr noundef @.str.2)
br label %9
9: ; preds = %7, %0
%10 = load i32, ptr %2, align 4
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = call i32 @printf(ptr noundef @.str.3)
br label %14
14: ; preds = %12, %9
%15 = load i32, ptr %2, align 4
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %14
%18 = call i32 @printf(ptr noundef @.str.4)
br label %19
19: ; preds = %17, %14
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxdqf9rq6.c'
source_filename = "/tmp/tmpxdqf9rq6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ext4_sb_write(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 @ext4_block_writebytes(ptr noundef %5, i32 noundef 1024, ptr noundef %6, i32 noundef 1024)
ret i32 %7
}
declare i32 @ext4_block_writebytes(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxdqf9rq6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ext4_sb_write(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 @ext4_block_writebytes(ptr noundef %5, i32 noundef 1024, ptr noundef %6, i32 noundef 1024)
ret i32 %7
}
declare i32 @ext4_block_writebytes(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9o47u_06.c'
source_filename = "/tmp/tmp9o47u_06.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [155 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/prool/ccx_prool/refs/heads/master/CalculiX/ccx_2.10/src/insert.c\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"mast1\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"next\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @insert(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
store ptr %0, ptr %8, align 8
store ptr %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store ptr %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
store ptr %6, ptr %14, align 8
store ptr null, ptr %18, align 8
store ptr null, ptr %19, align 8
%20 = load ptr, ptr %9, align 8
%21 = load ptr, ptr %20, align 8
store ptr %21, ptr %18, align 8
%22 = load ptr, ptr %10, align 8
%23 = load ptr, ptr %22, align 8
store ptr %23, ptr %19, align 8
%24 = load ptr, ptr %11, align 8
%25 = load i32, ptr %24, align 4
%26 = load ptr, ptr %12, align 8
%27 = load i32, ptr %26, align 4
%28 = icmp eq i32 %25, %27
br i1 %28, label %29, label %30
29: ; preds = %7
br label %105
30: ; preds = %7
%31 = load ptr, ptr %11, align 8
%32 = load i32, ptr %31, align 4
%33 = load ptr, ptr %12, align 8
%34 = load i32, ptr %33, align 4
%35 = icmp slt i32 %32, %34
br i1 %35, label %36, label %42
36: ; preds = %30
%37 = load ptr, ptr %12, align 8
%38 = load i32, ptr %37, align 4
store i32 %38, ptr %15, align 4
%39 = load ptr, ptr %11, align 8
%40 = load i32, ptr %39, align 4
%41 = sub nsw i32 %40, 1
store i32 %41, ptr %16, align 4
br label %48
42: ; preds = %30
%43 = load ptr, ptr %11, align 8
%44 = load i32, ptr %43, align 4
store i32 %44, ptr %15, align 4
%45 = load ptr, ptr %12, align 8
%46 = load i32, ptr %45, align 4
%47 = sub nsw i32 %46, 1
store i32 %47, ptr %16, align 4
br label %48
48: ; preds = %42, %36
%49 = load ptr, ptr %13, align 8
%50 = load i32, ptr %49, align 4
%51 = load ptr, ptr %14, align 8
%52 = load i32, ptr %51, align 4
%53 = icmp sge i32 %50, %52
br i1 %53, label %54, label %77
54: ; preds = %48
%55 = load ptr, ptr %14, align 8
%56 = load i32, ptr %55, align 4
%57 = sitofp i32 %56 to double
%58 = fmul double 1.100000e+00, %57
%59 = fptosi double %58 to i32
%60 = load ptr, ptr %14, align 8
store i32 %59, ptr %60, align 4
%61 = load ptr, ptr %18, align 8
%62 = load ptr, ptr %14, align 8
%63 = load i32, ptr %62, align 4
%64 = sext i32 %63 to i64
%65 = mul i64 %64, 4
%66 = trunc i64 %65 to i32
%67 = call i64 @u_realloc(ptr noundef %61, i32 noundef %66, ptr noundef @.str, i32 noundef 60, ptr noundef @.str.1)
%68 = inttoptr i64 %67 to ptr
store ptr %68, ptr %18, align 8
%69 = load ptr, ptr %19, align 8
%70 = load ptr, ptr %14, align 8
%71 = load i32, ptr %70, align 4
%72 = sext i32 %71 to i64
%73 = mul i64 %72, 4
%74 = trunc i64 %73 to i32
%75 = call i64 @u_realloc(ptr noundef %69, i32 noundef %74, ptr noundef @.str, i32 noundef 61, ptr noundef @.str.2)
%76 = inttoptr i64 %75 to ptr
store ptr %76, ptr %19, align 8
br label %77
77: ; preds = %54, %48
%78 = load i32, ptr %15, align 4
%79 = load ptr, ptr %18, align 8
%80 = load ptr, ptr %13, align 8
%81 = load i32, ptr %80, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i32, ptr %79, i64 %82
store i32 %78, ptr %83, align 4
%84 = load ptr, ptr %8, align 8
%85 = load i32, ptr %16, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i32, ptr %84, i64 %86
%88 = load i32, ptr %87, align 4
%89 = load ptr, ptr %19, align 8
%90 = load ptr, ptr %13, align 8
%91 = load i32, ptr %90, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i32, ptr %89, i64 %92
store i32 %88, ptr %93, align 4
%94 = load ptr, ptr %13, align 8
%95 = load i32, ptr %94, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %94, align 4
%97 = load ptr, ptr %8, align 8
%98 = load i32, ptr %16, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds i32, ptr %97, i64 %99
store i32 %96, ptr %100, align 4
%101 = load ptr, ptr %18, align 8
%102 = load ptr, ptr %9, align 8
store ptr %101, ptr %102, align 8
%103 = load ptr, ptr %19, align 8
%104 = load ptr, ptr %10, align 8
store ptr %103, ptr %104, align 8
br label %105
105: ; preds = %77, %29
ret void
}
declare i64 @u_realloc(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9o47u_06.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [155 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/prool/ccx_prool/refs/heads/master/CalculiX/ccx_2.10/src/insert.c\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"mast1\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"next\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @insert(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
store ptr %0, ptr %8, align 8
store ptr %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store ptr %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
store ptr %6, ptr %14, align 8
store ptr null, ptr %18, align 8
store ptr null, ptr %19, align 8
%20 = load ptr, ptr %9, align 8
%21 = load ptr, ptr %20, align 8
store ptr %21, ptr %18, align 8
%22 = load ptr, ptr %10, align 8
%23 = load ptr, ptr %22, align 8
store ptr %23, ptr %19, align 8
%24 = load ptr, ptr %11, align 8
%25 = load i32, ptr %24, align 4
%26 = load ptr, ptr %12, align 8
%27 = load i32, ptr %26, align 4
%28 = icmp eq i32 %25, %27
br i1 %28, label %29, label %30
29: ; preds = %7
br label %105
30: ; preds = %7
%31 = load ptr, ptr %11, align 8
%32 = load i32, ptr %31, align 4
%33 = load ptr, ptr %12, align 8
%34 = load i32, ptr %33, align 4
%35 = icmp slt i32 %32, %34
br i1 %35, label %36, label %42
36: ; preds = %30
%37 = load ptr, ptr %12, align 8
%38 = load i32, ptr %37, align 4
store i32 %38, ptr %15, align 4
%39 = load ptr, ptr %11, align 8
%40 = load i32, ptr %39, align 4
%41 = sub nsw i32 %40, 1
store i32 %41, ptr %16, align 4
br label %48
42: ; preds = %30
%43 = load ptr, ptr %11, align 8
%44 = load i32, ptr %43, align 4
store i32 %44, ptr %15, align 4
%45 = load ptr, ptr %12, align 8
%46 = load i32, ptr %45, align 4
%47 = sub nsw i32 %46, 1
store i32 %47, ptr %16, align 4
br label %48
48: ; preds = %42, %36
%49 = load ptr, ptr %13, align 8
%50 = load i32, ptr %49, align 4
%51 = load ptr, ptr %14, align 8
%52 = load i32, ptr %51, align 4
%53 = icmp sge i32 %50, %52
br i1 %53, label %54, label %77
54: ; preds = %48
%55 = load ptr, ptr %14, align 8
%56 = load i32, ptr %55, align 4
%57 = sitofp i32 %56 to double
%58 = fmul double 1.100000e+00, %57
%59 = fptosi double %58 to i32
%60 = load ptr, ptr %14, align 8
store i32 %59, ptr %60, align 4
%61 = load ptr, ptr %18, align 8
%62 = load ptr, ptr %14, align 8
%63 = load i32, ptr %62, align 4
%64 = sext i32 %63 to i64
%65 = mul i64 %64, 4
%66 = trunc i64 %65 to i32
%67 = call i64 @u_realloc(ptr noundef %61, i32 noundef %66, ptr noundef @.str, i32 noundef 60, ptr noundef @.str.1)
%68 = inttoptr i64 %67 to ptr
store ptr %68, ptr %18, align 8
%69 = load ptr, ptr %19, align 8
%70 = load ptr, ptr %14, align 8
%71 = load i32, ptr %70, align 4
%72 = sext i32 %71 to i64
%73 = mul i64 %72, 4
%74 = trunc i64 %73 to i32
%75 = call i64 @u_realloc(ptr noundef %69, i32 noundef %74, ptr noundef @.str, i32 noundef 61, ptr noundef @.str.2)
%76 = inttoptr i64 %75 to ptr
store ptr %76, ptr %19, align 8
br label %77
77: ; preds = %54, %48
%78 = load i32, ptr %15, align 4
%79 = load ptr, ptr %18, align 8
%80 = load ptr, ptr %13, align 8
%81 = load i32, ptr %80, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i32, ptr %79, i64 %82
store i32 %78, ptr %83, align 4
%84 = load ptr, ptr %8, align 8
%85 = load i32, ptr %16, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i32, ptr %84, i64 %86
%88 = load i32, ptr %87, align 4
%89 = load ptr, ptr %19, align 8
%90 = load ptr, ptr %13, align 8
%91 = load i32, ptr %90, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i32, ptr %89, i64 %92
store i32 %88, ptr %93, align 4
%94 = load ptr, ptr %13, align 8
%95 = load i32, ptr %94, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %94, align 4
%97 = load ptr, ptr %8, align 8
%98 = load i32, ptr %16, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds i32, ptr %97, i64 %99
store i32 %96, ptr %100, align 4
%101 = load ptr, ptr %18, align 8
%102 = load ptr, ptr %9, align 8
store ptr %101, ptr %102, align 8
%103 = load ptr, ptr %19, align 8
%104 = load ptr, ptr %10, align 8
store ptr %103, ptr %104, align 8
br label %105
105: ; preds = %77, %29
ret void
}
declare i64 @u_realloc(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1bmgkk5i.c'
source_filename = "/tmp/tmp1bmgkk5i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"C\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [14 x i8] c"Error open()\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"B\00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"Error bitio_open()\0A\00", align 1
@.str.4 = private unnamed_addr constant [15 x i8] c"Error write()\0A\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"Error bitio_close()\0A\00", align 1
@.str.6 = private unnamed_addr constant [15 x i8] c"Error close()\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 i8, align 1
%7 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%8 = load i32, ptr @O_WRONLY, align 4
%9 = load i32, ptr @O_CREAT, align 4
%10 = or i32 %8, %9
%11 = call i32 @open(ptr noundef @.str, i32 noundef %10, i32 noundef 438)
store i32 %11, ptr %2, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp slt i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %0
%15 = call i32 @perror(ptr noundef @.str.1)
store i32 1, ptr %1, align 4
br label %76
16: ; preds = %0
%17 = call ptr @bitio_open(ptr noundef @.str.2, i8 noundef signext 114)
store ptr %17, ptr %7, align 8
%18 = load ptr, ptr %7, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %22, label %20
20: ; preds = %16
%21 = call i32 @perror(ptr noundef @.str.3)
store i32 1, ptr %1, align 4
br label %76
22: ; preds = %16
br label %23
23: ; preds = %58, %22
store i8 0, ptr %6, align 1
store i32 0, ptr %3, align 4
br label %24
24: ; preds = %43, %23
%25 = load i32, ptr %3, align 4
%26 = icmp slt i32 %25, 8
br i1 %26, label %27, label %46
27: ; preds = %24
%28 = load ptr, ptr %7, align 8
%29 = call i32 @bitio_read(ptr noundef %28)
store i32 %29, ptr %5, align 4
%30 = load i32, ptr %5, align 4
%31 = icmp slt i32 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %27
br label %46
33: ; preds = %27
%34 = load i32, ptr %5, align 4
%35 = load i32, ptr %3, align 4
%36 = shl i32 %34, %35
%37 = trunc i32 %36 to i8
%38 = zext i8 %37 to i32
%39 = load i8, ptr %6, align 1
%40 = zext i8 %39 to i32
%41 = or i32 %40, %38
%42 = trunc i32 %41 to i8
store i8 %42, ptr %6, align 1
br label %43
43: ; preds = %33
%44 = load i32, ptr %3, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %3, align 4
br label %24, !llvm.loop !6
46: ; preds = %32, %24
%47 = load i32, ptr %5, align 4
%48 = icmp slt i32 %47, 0
br i1 %48, label %49, label %50
49: ; preds = %46
br label %61
50: ; preds = %46
%51 = load i32, ptr %2, align 4
%52 = call i32 @write(i32 noundef %51, ptr noundef %6, i32 noundef 1)
store i32 %52, ptr %4, align 4
%53 = load i32, ptr %4, align 4
%54 = icmp slt i32 %53, 0
br i1 %54, label %55, label %57
55: ; preds = %50
%56 = call i32 @perror(ptr noundef @.str.4)
store i32 1, ptr %1, align 4
br label %76
57: ; preds = %50
br label %58
58: ; preds = %57
%59 = load i32, ptr %5, align 4
%60 = icmp sge i32 %59, 0
br i1 %60, label %23, label %61, !llvm.loop !8
61: ; preds = %58, %49
%62 = load ptr, ptr %7, align 8
%63 = call i32 @bitio_close(ptr noundef %62)
store i32 %63, ptr %4, align 4
%64 = load i32, ptr %4, align 4
%65 = icmp slt i32 %64, 0
br i1 %65, label %66, label %68
66: ; preds = %61
%67 = call i32 @perror(ptr noundef @.str.5)
store i32 1, ptr %1, align 4
br label %76
68: ; preds = %61
%69 = load i32, ptr %2, align 4
%70 = call i32 @close(i32 noundef %69)
store i32 %70, ptr %4, align 4
%71 = load i32, ptr %4, align 4
%72 = icmp slt i32 %71, 0
br i1 %72, label %73, label %75
73: ; preds = %68
%74 = call i32 @perror(ptr noundef @.str.6)
store i32 1, ptr %1, align 4
br label %76
75: ; preds = %68
store i32 0, ptr %1, align 4
br label %76
76: ; preds = %75, %73, %66, %55, %20, %14
%77 = load i32, ptr %1, align 4
ret i32 %77
}
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare ptr @bitio_open(ptr noundef, i8 noundef signext) #1
declare i32 @bitio_read(ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @bitio_close(ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1bmgkk5i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"C\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [14 x i8] c"Error open()\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"B\00", align 1
@.str.3 = private unnamed_addr constant [20 x i8] c"Error bitio_open()\0A\00", align 1
@.str.4 = private unnamed_addr constant [15 x i8] c"Error write()\0A\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"Error bitio_close()\0A\00", align 1
@.str.6 = private unnamed_addr constant [15 x i8] c"Error close()\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 i8, align 1
%7 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%8 = load i32, ptr @O_WRONLY, align 4
%9 = load i32, ptr @O_CREAT, align 4
%10 = or i32 %8, %9
%11 = call i32 @open(ptr noundef @.str, i32 noundef %10, i32 noundef 438)
store i32 %11, ptr %2, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp slt i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %0
%15 = call i32 @perror(ptr noundef @.str.1)
store i32 1, ptr %1, align 4
br label %77
16: ; preds = %0
%17 = call ptr @bitio_open(ptr noundef @.str.2, i8 noundef signext 114)
store ptr %17, ptr %7, align 8
%18 = load ptr, ptr %7, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %22, label %20
20: ; preds = %16
%21 = call i32 @perror(ptr noundef @.str.3)
store i32 1, ptr %1, align 4
br label %77
22: ; preds = %16
br label %23
23: ; preds = %59, %22
store i8 0, ptr %6, align 1
store i32 0, ptr %3, align 4
%24 = load i32, ptr %3, align 4
%25 = icmp slt i32 %24, 8
br i1 %25, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %23
br label %26
26: ; preds = %.lr.ph, %42
%27 = load ptr, ptr %7, align 8
%28 = call i32 @bitio_read(ptr noundef %27)
store i32 %28, ptr %5, align 4
%29 = load i32, ptr %5, align 4
%30 = icmp slt i32 %29, 0
br i1 %30, label %31, label %32
31: ; preds = %26
br label %47
32: ; preds = %26
%33 = load i32, ptr %5, align 4
%34 = load i32, ptr %3, align 4
%35 = shl i32 %33, %34
%36 = trunc i32 %35 to i8
%37 = zext i8 %36 to i32
%38 = load i8, ptr %6, align 1
%39 = zext i8 %38 to i32
%40 = or i32 %39, %37
%41 = trunc i32 %40 to i8
store i8 %41, ptr %6, align 1
br label %42
42: ; preds = %32
%43 = load i32, ptr %3, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %3, align 4
%45 = load i32, ptr %3, align 4
%46 = icmp slt i32 %45, 8
br i1 %46, label %26, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %42
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %23
br label %47
47: ; preds = %.loopexit, %31
%48 = load i32, ptr %5, align 4
%49 = icmp slt i32 %48, 0
br i1 %49, label %50, label %51
50: ; preds = %47
br label %62
51: ; preds = %47
%52 = load i32, ptr %2, align 4
%53 = call i32 @write(i32 noundef %52, ptr noundef %6, i32 noundef 1)
store i32 %53, ptr %4, align 4
%54 = load i32, ptr %4, align 4
%55 = icmp slt i32 %54, 0
br i1 %55, label %56, label %58
56: ; preds = %51
%57 = call i32 @perror(ptr noundef @.str.4)
store i32 1, ptr %1, align 4
br label %77
58: ; preds = %51
br label %59
59: ; preds = %58
%60 = load i32, ptr %5, align 4
%61 = icmp sge i32 %60, 0
br i1 %61, label %23, label %.loopexit1, !llvm.loop !8
.loopexit1: ; preds = %59
br label %62
62: ; preds = %.loopexit1, %50
%63 = load ptr, ptr %7, align 8
%64 = call i32 @bitio_close(ptr noundef %63)
store i32 %64, ptr %4, align 4
%65 = load i32, ptr %4, align 4
%66 = icmp slt i32 %65, 0
br i1 %66, label %67, label %69
67: ; preds = %62
%68 = call i32 @perror(ptr noundef @.str.5)
store i32 1, ptr %1, align 4
br label %77
69: ; preds = %62
%70 = load i32, ptr %2, align 4
%71 = call i32 @close(i32 noundef %70)
store i32 %71, ptr %4, align 4
%72 = load i32, ptr %4, align 4
%73 = icmp slt i32 %72, 0
br i1 %73, label %74, label %76
74: ; preds = %69
%75 = call i32 @perror(ptr noundef @.str.6)
store i32 1, ptr %1, align 4
br label %77
76: ; preds = %69
store i32 0, ptr %1, align 4
br label %77
77: ; preds = %76, %74, %67, %56, %20, %14
%78 = load i32, ptr %1, align 4
ret i32 %78
}
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare ptr @bitio_open(ptr noundef, i8 noundef signext) #1
declare i32 @bitio_read(ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @bitio_close(ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp3phbja45.c'
source_filename = "/tmp/tmp3phbja45.c"
target datalayout = "e-m:e-p270: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.gpio = private unnamed_addr constant [29 x i8] c"/sys/class/gpio/gpio00/value\00", align 16
@__const.main.dir = private unnamed_addr constant [33 x i8] c"/sys/class/gpio/gpio00/direction\00", align 16
@__const.main.wipi = private unnamed_addr constant [55 x i8] c"/usr/local/bin/gpio -g mode 00 up/down/tri 2>/dev/null\00", align 16
@__const.main.wip2 = private unnamed_addr constant [49 x i8] c"/usr/bin/gpio -g mode 00 up/down/tri 2>/dev/null\00", align 16
@__const.main.pin_ports = private unnamed_addr constant [40 x i32] [i32 -1, i32 -1, i32 2, i32 -1, i32 3, i32 -1, i32 4, i32 14, i32 -1, i32 15, i32 17, i32 18, i32 27, i32 -1, i32 22, i32 23, i32 -1, i32 24, i32 10, i32 -1, i32 9, i32 25, i32 11, i32 8, i32 -1, i32 7, i32 -1, i32 -1, i32 5, i32 -1, i32 6, i32 12, i32 13, i32 -1, i32 19, i32 16, i32 26, i32 20, i32 -1, i32 21], align 16
@stderr = dso_local global ptr null, align 8
@.str = private unnamed_addr constant [24 x i8] c"usage: %s port [value]\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"9\0A\00", align 1
@.str.2 = private unnamed_addr constant [28 x i8] c"Unsupported Port Error, %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"%s%d/value\00", align 1
@.str.4 = private unnamed_addr constant [15 x i8] c"%s%d/direction\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.6 = private unnamed_addr constant [23 x i8] c"/sys/class/gpio/export\00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.8 = private unnamed_addr constant [10 x i8] c"IO Error\0A\00", align 1
@.str.9 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.10 = private unnamed_addr constant [13 x i8] c"IO Error %s\0A\00", align 1
@.str.11 = private unnamed_addr constant [4 x i8] c"in\0A\00", align 1
@.str.12 = private unnamed_addr constant [25 x i8] c"IO Error (IO Mode = %s)\0A\00", align 1
@.str.13 = private unnamed_addr constant [3 x i8] c"NC\00", align 1
@.str.14 = private unnamed_addr constant [4 x i8] c"LOW\00", align 1
@.str.15 = private unnamed_addr constant [5 x i8] c"HIGH\00", align 1
@.str.16 = private unnamed_addr constant [4 x i8] c"PUP\00", align 1
@.str.17 = private unnamed_addr constant [6 x i8] c"PDOWN\00", align 1
@.str.18 = private unnamed_addr constant [25 x i8] c"/sys/class/gpio/unexport\00", align 1
@.str.19 = private unnamed_addr constant [4 x i8] c"-1\0A\00", align 1
@.str.20 = private unnamed_addr constant [22 x i8] c"%s %d up 2> /dev/null\00", align 1
@.str.21 = private unnamed_addr constant [9 x i8] c"%s %d up\00", align 1
@.str.22 = private unnamed_addr constant [6 x i8] c"high\0A\00", align 1
@.str.23 = private unnamed_addr constant [24 x i8] c"%s %d down 2> /dev/null\00", align 1
@.str.24 = private unnamed_addr constant [11 x i8] c"%s %d down\00", align 1
@.str.25 = private unnamed_addr constant [5 x i8] c"low\0A\00", align 1
@.str.26 = private unnamed_addr constant [29 x i8] c"Unsupported Value Error, %d\0A\00", align 1
@.str.27 = private unnamed_addr constant [33 x i8] c"Pseudo Pull Up / Down mode (%d)\0A\00", align 1
@.str.28 = private unnamed_addr constant [52 x i8] c"WiringPi\E3\82\92\E3\82\A4\E3\83\B3\E3\82\B9\E3\83\88\E3\83\BC\E3\83\AB\E3\81\97\E3\81\A6\E3\81\8F\E3\81\A0\E3\81\95\E3\81\84\E3\80\82\0A\00", align 1
@.str.29 = private unnamed_addr constant [41 x i8] c"git clone git://git.drogon.net/wiringPi\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 [29 x i8], align 16
%8 = alloca [33 x i8], align 16
%9 = alloca [55 x i8], align 16
%10 = alloca [49 x i8], align 16
%11 = alloca [8 x i8], align 1
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca [40 x i32], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const.main.gpio, i64 29, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %8, ptr align 16 @__const.main.dir, i64 33, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 @__const.main.wipi, i64 55, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 @__const.main.wip2, i64 49, i1 false)
store i32 -1, ptr %15, align 4
store i32 -1, ptr %16, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 @__const.main.pin_ports, i64 160, i1 false)
%18 = load i32, ptr %4, align 4
%19 = icmp slt i32 %18, 2
br i1 %19, label %23, label %20
20: ; preds = %2
%21 = load i32, ptr %4, align 4
%22 = icmp sgt i32 %21, 4
br i1 %22, label %23, label %30
23: ; preds = %20, %2
%24 = load ptr, ptr @stderr, align 8
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 0
%27 = load ptr, ptr %26, align 8
%28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef @.str, ptr noundef %27)
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %504
30: ; preds = %20
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 1
%33 = load ptr, ptr %32, align 8
%34 = call i32 @atoi(ptr noundef %33)
store i32 %34, ptr %13, align 4
store i32 0, ptr %12, align 4
br label %35
35: ; preds = %47, %30
%36 = load i32, ptr %12, align 4
%37 = icmp slt i32 %36, 40
br i1 %37, label %38, label %50
38: ; preds = %35
%39 = load i32, ptr %12, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [40 x i32], ptr %17, i64 0, i64 %40
%42 = load i32, ptr %41, align 4
%43 = load i32, ptr %13, align 4
%44 = icmp eq i32 %42, %43
br i1 %44, label %45, label %46
45: ; preds = %38
br label %50
46: ; preds = %38
br label %47
47: ; preds = %46
%48 = load i32, ptr %12, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %12, align 4
br label %35, !llvm.loop !6
50: ; preds = %45, %35
%51 = load i32, ptr %12, align 4
%52 = icmp eq i32 %51, 40
br i1 %52, label %56, label %53
53: ; preds = %50
%54 = load i32, ptr %13, align 4
%55 = icmp slt i32 %54, 0
br i1 %55, label %56, label %61
56: ; preds = %53, %50
%57 = load ptr, ptr @stderr, align 8
%58 = load i32, ptr %13, align 4
%59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef @.str.2, i32 noundef %58)
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %504
61: ; preds = %53
%62 = getelementptr inbounds [29 x i8], ptr %7, i64 0, i64 20
store i8 0, ptr %62, align 4
%63 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 20
store i8 0, ptr %63, align 4
%64 = getelementptr inbounds [29 x i8], ptr %7, i64 0, i64 0
%65 = getelementptr inbounds [29 x i8], ptr %7, i64 0, i64 0
%66 = load i32, ptr %13, align 4
%67 = call i32 @sprintf(ptr noundef %64, ptr noundef @.str.3, ptr noundef %65, i32 noundef %66)
%68 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
%69 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
%70 = load i32, ptr %13, align 4
%71 = call i32 @sprintf(ptr noundef %68, ptr noundef @.str.4, ptr noundef %69, i32 noundef %70)
%72 = getelementptr inbounds [29 x i8], ptr %7, i64 0, i64 0
%73 = call ptr @fopen(ptr noundef %72, ptr noundef @.str.5)
store ptr %73, ptr %6, align 8
%74 = load ptr, ptr %6, align 8
%75 = icmp eq ptr %74, null
br i1 %75, label %76, label %143
76: ; preds = %61
%77 = call ptr @fopen(ptr noundef @.str.6, ptr noundef @.str.7)
store ptr %77, ptr %6, align 8
%78 = load ptr, ptr %6, align 8
%79 = icmp eq ptr %78, null
br i1 %79, label %80, label %84
80: ; preds = %76
%81 = load ptr, ptr @stderr, align 8
%82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %81, ptr noundef @.str.8)
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %504
84: ; preds = %76
%85 = load ptr, ptr %6, align 8
%86 = load i32, ptr %13, align 4
%87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %85, ptr noundef @.str.9, i32 noundef %86)
%88 = load ptr, ptr %6, align 8
%89 = call i32 @fclose(ptr noundef %88)
store i32 0, ptr %12, align 4
br label %90
90: ; preds = %101, %84
%91 = load i32, ptr %12, align 4
%92 = icmp slt i32 %91, 3
br i1 %92, label %93, label %104
93: ; preds = %90
%94 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
%95 = call ptr @fopen(ptr noundef %94, ptr noundef @.str.7)
store ptr %95, ptr %6, align 8
%96 = load ptr, ptr %6, align 8
%97 = icmp ne ptr %96, null
br i1 %97, label %98, label %99
98: ; preds = %93
br label %104
99: ; preds = %93
%100 = call i32 @usleep(i32 noundef 50000)
br label %101
101: ; preds = %99
%102 = load i32, ptr %12, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %12, align 4
br label %90, !llvm.loop !8
104: ; preds = %98, %90
%105 = load i32, ptr %12, align 4
%106 = icmp eq i32 %105, 3
br i1 %106, label %107, label %112
107: ; preds = %104
%108 = load ptr, ptr @stderr, align 8
%109 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
%110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %108, ptr noundef @.str.10, ptr noundef %109)
%111 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %504
112: ; preds = %104
%113 = load ptr, ptr %6, align 8
%114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %113, ptr noundef @.str.11)
%115 = load ptr, ptr %6, align 8
%116 = call i32 @fclose(ptr noundef %115)
%117 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
%118 = call ptr @fopen(ptr noundef %117, ptr noundef @.str.5)
store ptr %118, ptr %6, align 8
%119 = load ptr, ptr %6, align 8
%120 = icmp eq ptr %119, null
br i1 %120, label %121, label %126
121: ; preds = %112
%122 = load ptr, ptr @stderr, align 8
%123 = getelementptr inbounds [29 x i8], ptr %7, i64 0, i64 0
%124 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef @.str.10, ptr noundef %123)
%125 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %504
126: ; preds = %112
%127 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 0
%128 = load ptr, ptr %6, align 8
%129 = call i32 @fgets(ptr noundef %127, i32 noundef 8, ptr noundef %128)
%130 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 0
%131 = call i64 @strcmp(ptr noundef %130, ptr noundef @.str.11)
%132 = icmp ne i64 %131, 0
br i1 %132, label %133, label %140
133: ; preds = %126
%134 = load ptr, ptr @stderr, align 8
%135 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 0
%136 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %134, ptr noundef @.str.12, ptr noundef %135)
%137 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%138 = load ptr, ptr %6, align 8
%139 = call i32 @fclose(ptr noundef %138)
store i32 -1, ptr %3, align 4
br label %504
140: ; preds = %126
%141 = load ptr, ptr %6, align 8
%142 = call i32 @fclose(ptr noundef %141)
br label %143
143: ; preds = %140, %61
%144 = load ptr, ptr %6, align 8
%145 = call i32 @fclose(ptr noundef %144)
%146 = load i32, ptr %4, align 4
%147 = icmp sge i32 %146, 3
br i1 %147, label %148, label %347
148: ; preds = %143
%149 = load ptr, ptr %5, align 8
%150 = getelementptr inbounds ptr, ptr %149, i64 2
%151 = load ptr, ptr %150, align 8
%152 = call i64 @strcmp(ptr noundef %151, ptr noundef @.str.13)
%153 = icmp ne i64 %152, 0
br i1 %153, label %155, label %154
154: ; preds = %148
store i32 -1, ptr %14, align 4
br label %192
155: ; preds = %148
%156 = load ptr, ptr %5, align 8
%157 = getelementptr inbounds ptr, ptr %156, i64 2
%158 = load ptr, ptr %157, align 8
%159 = call i64 @strcmp(ptr noundef %158, ptr noundef @.str.14)
%160 = icmp ne i64 %159, 0
br i1 %160, label %162, label %161
161: ; preds = %155
store i32 0, ptr %14, align 4
br label %191
162: ; preds = %155
%163 = load ptr, ptr %5, align 8
%164 = getelementptr inbounds ptr, ptr %163, i64 2
%165 = load ptr, ptr %164, align 8
%166 = call i64 @strcmp(ptr noundef %165, ptr noundef @.str.15)
%167 = icmp ne i64 %166, 0
br i1 %167, label %169, label %168
168: ; preds = %162
store i32 1, ptr %14, align 4
br label %190
169: ; preds = %162
%170 = load ptr, ptr %5, align 8
%171 = getelementptr inbounds ptr, ptr %170, i64 2
%172 = load ptr, ptr %171, align 8
%173 = call i64 @strcmp(ptr noundef %172, ptr noundef @.str.16)
%174 = icmp ne i64 %173, 0
br i1 %174, label %176, label %175
175: ; preds = %169
store i32 2, ptr %14, align 4
br label %189
176: ; preds = %169
%177 = load ptr, ptr %5, align 8
%178 = getelementptr inbounds ptr, ptr %177, i64 2
%179 = load ptr, ptr %178, align 8
%180 = call i64 @strcmp(ptr noundef %179, ptr noundef @.str.17)
%181 = icmp ne i64 %180, 0
br i1 %181, label %183, label %182
182: ; preds = %176
store i32 3, ptr %14, align 4
br label %188
183: ; preds = %176
%184 = load ptr, ptr %5, align 8
%185 = getelementptr inbounds ptr, ptr %184, i64 2
%186 = load ptr, ptr %185, align 8
%187 = call i32 @atoi(ptr noundef %186)
store i32 %187, ptr %14, align 4
br label %188
188: ; preds = %183, %182
br label %189
189: ; preds = %188, %175
br label %190
190: ; preds = %189, %168
br label %191
191: ; preds = %190, %161
br label %192
192: ; preds = %191, %154
%193 = load i32, ptr %14, align 4
switch i32 %193, label %341 [
i32 -1, label %194
i32 0, label %209
i32 1, label %209
i32 2, label %211
i32 3, label %276
]
194: ; preds = %192
%195 = call ptr @fopen(ptr noundef @.str.18, ptr noundef @.str.7)
store ptr %195, ptr %6, align 8
%196 = load ptr, ptr %6, align 8
%197 = icmp ne ptr %196, null
br i1 %197, label %198, label %205
198: ; preds = %194
%199 = load ptr, ptr %6, align 8
%200 = load i32, ptr %13, align 4
%201 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %199, ptr noundef @.str.9, i32 noundef %200)
%202 = load ptr, ptr %6, align 8
%203 = call i32 @fclose(ptr noundef %202)
%204 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
store i32 0, ptr %3, align 4
br label %504
205: ; preds = %194
%206 = load ptr, ptr @stderr, align 8
%207 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %206, ptr noundef @.str.8)
%208 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %504
209: ; preds = %192, %192
%210 = load i32, ptr %14, align 4
store i32 %210, ptr %15, align 4
br label %346
211: ; preds = %192
%212 = getelementptr inbounds [55 x i8], ptr %9, i64 0, i64 28
store i8 0, ptr %212, align 4
%213 = getelementptr inbounds [49 x i8], ptr %10, i64 0, i64 22
store i8 0, ptr %213, align 2
%214 = getelementptr inbounds [49 x i8], ptr %10, i64 0, i64 0
%215 = getelementptr inbounds [49 x i8], ptr %10, i64 0, i64 0
%216 = load i32, ptr %13, align 4
%217 = call i32 @sprintf(ptr noundef %214, ptr noundef @.str.20, ptr noundef %215, i32 noundef %216)
%218 = getelementptr inbounds [55 x i8], ptr %9, i64 0, i64 0
%219 = getelementptr inbounds [55 x i8], ptr %9, i64 0, i64 0
%220 = load i32, ptr %13, align 4
%221 = call i32 @sprintf(ptr noundef %218, ptr noundef @.str.21, ptr noundef %219, i32 noundef %220)
%222 = getelementptr inbounds [49 x i8], ptr %10, i64 0, i64 0
%223 = call i32 @system(ptr noundef %222)
%224 = icmp ne i32 %223, 0
br i1 %224, label %225, label %245
225: ; preds = %211
%226 = getelementptr inbounds [55 x i8], ptr %9, i64 0, i64 0
%227 = call i32 @system(ptr noundef %226)
%228 = icmp ne i32 %227, 0
br i1 %228, label %229, label %244
229: ; preds = %225
%230 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
%231 = call ptr @fopen(ptr noundef %230, ptr noundef @.str.7)
store ptr %231, ptr %6, align 8
%232 = load ptr, ptr %6, align 8
%233 = icmp ne ptr %232, null
br i1 %233, label %234, label %239
234: ; preds = %229
%235 = load ptr, ptr %6, align 8
%236 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %235, ptr noundef @.str.22)
%237 = load ptr, ptr %6, align 8
%238 = call i32 @fclose(ptr noundef %237)
store i32 1, ptr %16, align 4
br label %243
239: ; preds = %229
%240 = load ptr, ptr @stderr, align 8
%241 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %240, ptr noundef @.str.8)
%242 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %504
243: ; preds = %234
br label %244
244: ; preds = %243, %225
br label %245
245: ; preds = %244, %211
%246 = load i32, ptr %4, align 4
%247 = icmp eq i32 %246, 4
br i1 %247, label %248, label %275
248: ; preds = %245
%249 = load ptr, ptr %5, align 8
%250 = getelementptr inbounds ptr, ptr %249, i64 3
%251 = load ptr, ptr %250, align 8
%252 = call i64 @strcmp(ptr noundef %251, ptr noundef @.str.14)
%253 = icmp ne i64 %252, 0
br i1 %253, label %255, label %254
254: ; preds = %248
store i32 0, ptr %15, align 4
br label %268
255: ; preds = %248
%256 = load ptr, ptr %5, align 8
%257 = getelementptr inbounds ptr, ptr %256, i64 3
%258 = load ptr, ptr %257, align 8
%259 = call i64 @strcmp(ptr noundef %258, ptr noundef @.str.15)
%260 = icmp ne i64 %259, 0
br i1 %260, label %262, label %261
261: ; preds = %255
store i32 1, ptr %15, align 4
br label %267
262: ; preds = %255
%263 = load ptr, ptr %5, align 8
%264 = getelementptr inbounds ptr, ptr %263, i64 3
%265 = load ptr, ptr %264, align 8
%266 = call i32 @atoi(ptr noundef %265)
store i32 %266, ptr %15, align 4
br label %267
267: ; preds = %262, %261
br label %268
268: ; preds = %267, %254
%269 = load i32, ptr %15, align 4
%270 = srem i32 %269, 2
%271 = load i32, ptr %15, align 4
%272 = icmp ne i32 %270, %271
br i1 %272, label %273, label %274
273: ; preds = %268
store i32 -1, ptr %15, align 4
br label %274
274: ; preds = %273, %268
br label %275
275: ; preds = %274, %245
br label %346
276: ; preds = %192
%277 = getelementptr inbounds [55 x i8], ptr %9, i64 0, i64 28
store i8 0, ptr %277, align 4
%278 = getelementptr inbounds [49 x i8], ptr %10, i64 0, i64 22
store i8 0, ptr %278, align 2
%279 = getelementptr inbounds [49 x i8], ptr %10, i64 0, i64 0
%280 = getelementptr inbounds [49 x i8], ptr %10, i64 0, i64 0
%281 = load i32, ptr %13, align 4
%282 = call i32 @sprintf(ptr noundef %279, ptr noundef @.str.23, ptr noundef %280, i32 noundef %281)
%283 = getelementptr inbounds [55 x i8], ptr %9, i64 0, i64 0
%284 = getelementptr inbounds [55 x i8], ptr %9, i64 0, i64 0
%285 = load i32, ptr %13, align 4
%286 = call i32 @sprintf(ptr noundef %283, ptr noundef @.str.24, ptr noundef %284, i32 noundef %285)
%287 = getelementptr inbounds [49 x i8], ptr %10, i64 0, i64 0
%288 = call i32 @system(ptr noundef %287)
%289 = icmp ne i32 %288, 0
br i1 %289, label %290, label %310
290: ; preds = %276
%291 = getelementptr inbounds [55 x i8], ptr %9, i64 0, i64 0
%292 = call i32 @system(ptr noundef %291)
%293 = icmp ne i32 %292, 0
br i1 %293, label %294, label %309
294: ; preds = %290
%295 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
%296 = call ptr @fopen(ptr noundef %295, ptr noundef @.str.7)
store ptr %296, ptr %6, align 8
%297 = load ptr, ptr %6, align 8
%298 = icmp ne ptr %297, null
br i1 %298, label %299, label %304
299: ; preds = %294
%300 = load ptr, ptr %6, align 8
%301 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %300, ptr noundef @.str.25)
%302 = load ptr, ptr %6, align 8
%303 = call i32 @fclose(ptr noundef %302)
store i32 0, ptr %16, align 4
br label %308
304: ; preds = %294
%305 = load ptr, ptr @stderr, align 8
%306 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %305, ptr noundef @.str.8)
%307 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %504
308: ; preds = %299
br label %309
309: ; preds = %308, %290
br label %310
310: ; preds = %309, %276
%311 = load i32, ptr %4, align 4
%312 = icmp eq i32 %311, 4
br i1 %312, label %313, label %340
313: ; preds = %310
%314 = load ptr, ptr %5, align 8
%315 = getelementptr inbounds ptr, ptr %314, i64 3
%316 = load ptr, ptr %315, align 8
%317 = call i64 @strcmp(ptr noundef %316, ptr noundef @.str.14)
%318 = icmp ne i64 %317, 0
br i1 %318, label %320, label %319
319: ; preds = %313
store i32 0, ptr %15, align 4
br label %333
320: ; preds = %313
%321 = load ptr, ptr %5, align 8
%322 = getelementptr inbounds ptr, ptr %321, i64 3
%323 = load ptr, ptr %322, align 8
%324 = call i64 @strcmp(ptr noundef %323, ptr noundef @.str.15)
%325 = icmp ne i64 %324, 0
br i1 %325, label %327, label %326
326: ; preds = %320
store i32 1, ptr %15, align 4
br label %332
327: ; preds = %320
%328 = load ptr, ptr %5, align 8
%329 = getelementptr inbounds ptr, ptr %328, i64 3
%330 = load ptr, ptr %329, align 8
%331 = call i32 @atoi(ptr noundef %330)
store i32 %331, ptr %15, align 4
br label %332
332: ; preds = %327, %326
br label %333
333: ; preds = %332, %319
%334 = load i32, ptr %15, align 4
%335 = srem i32 %334, 2
%336 = load i32, ptr %15, align 4
%337 = icmp ne i32 %335, %336
br i1 %337, label %338, label %339
338: ; preds = %333
store i32 -1, ptr %15, align 4
br label %339
339: ; preds = %338, %333
br label %340
340: ; preds = %339, %310
br label %346
341: ; preds = %192
%342 = load ptr, ptr @stderr, align 8
%343 = load i32, ptr %14, align 4
%344 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %342, ptr noundef @.str.26, i32 noundef %343)
%345 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %504
346: ; preds = %340, %275, %209
br label %347
347: ; preds = %346, %143
%348 = load i32, ptr %16, align 4
%349 = icmp sge i32 %348, 0
br i1 %349, label %350, label %358
350: ; preds = %347
%351 = load ptr, ptr @stderr, align 8
%352 = load i32, ptr %16, align 4
%353 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %351, ptr noundef @.str.27, i32 noundef %352)
%354 = load ptr, ptr @stderr, align 8
%355 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %354, ptr noundef @.str.28)
%356 = load ptr, ptr @stderr, align 8
%357 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %356, ptr noundef @.str.29)
br label %358
358: ; preds = %350, %347
%359 = getelementptr inbounds [29 x i8], ptr %7, i64 0, i64 0
%360 = call ptr @fopen(ptr noundef %359, ptr noundef @.str.5)
store ptr %360, ptr %6, align 8
%361 = load ptr, ptr %6, align 8
%362 = icmp eq ptr %361, null
br i1 %362, label %363, label %367
363: ; preds = %358
%364 = load ptr, ptr @stderr, align 8
%365 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %364, ptr noundef @.str.8)
%366 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %504
367: ; preds = %358
%368 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 0
%369 = load ptr, ptr %6, align 8
%370 = call i32 @fgets(ptr noundef %368, i32 noundef 8, ptr noundef %369)
%371 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 0
%372 = call i32 @atoi(ptr noundef %371)
store i32 %372, ptr %14, align 4
%373 = load ptr, ptr %6, align 8
%374 = call i32 @fclose(ptr noundef %373)
%375 = load i32, ptr %15, align 4
%376 = icmp sge i32 %375, 0
br i1 %376, label %377, label %439
377: ; preds = %367
store i32 0, ptr %12, align 4
%378 = load i32, ptr %16, align 4
%379 = icmp slt i32 %378, 0
br i1 %379, label %380, label %399
380: ; preds = %377
br label %381
381: ; preds = %385, %380
%382 = load i32, ptr %14, align 4
%383 = load i32, ptr %15, align 4
%384 = icmp ne i32 %382, %383
br i1 %384, label %385, label %398
385: ; preds = %381
%386 = getelementptr inbounds [29 x i8], ptr %7, i64 0, i64 0
%387 = call ptr @fopen(ptr noundef %386, ptr noundef @.str.5)
store ptr %387, ptr %6, align 8
%388 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 0
%389 = load ptr, ptr %6, align 8
%390 = call i32 @fgets(ptr noundef %388, i32 noundef 8, ptr noundef %389)
%391 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 0
%392 = call i32 @atoi(ptr noundef %391)
store i32 %392, ptr %14, align 4
%393 = load i32, ptr %12, align 4
%394 = add nsw i32 %393, 1
store i32 %394, ptr %12, align 4
%395 = load ptr, ptr %6, align 8
%396 = call i32 @fclose(ptr noundef %395)
%397 = call i32 @usleep(i32 noundef 100000)
br label %381, !llvm.loop !9
398: ; preds = %381
br label %437
399: ; preds = %377
br label %400
400: ; preds = %415, %399
%401 = load i32, ptr %14, align 4
%402 = load i32, ptr %15, align 4
%403 = icmp ne i32 %401, %402
br i1 %403, label %404, label %436
404: ; preds = %400
%405 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
%406 = call ptr @fopen(ptr noundef %405, ptr noundef @.str.7)
store ptr %406, ptr %6, align 8
%407 = load i32, ptr %16, align 4
%408 = icmp eq i32 %407, 0
br i1 %408, label %409, label %412
409: ; preds = %404
%410 = load ptr, ptr %6, align 8
%411 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %410, ptr noundef @.str.25)
br label %415
412: ; preds = %404
%413 = load ptr, ptr %6, align 8
%414 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %413, ptr noundef @.str.22)
br label %415
415: ; preds = %412, %409
%416 = load ptr, ptr %6, align 8
%417 = call i32 @fclose(ptr noundef %416)
%418 = getelementptr inbounds [29 x i8], ptr %7, i64 0, i64 0
%419 = call ptr @fopen(ptr noundef %418, ptr noundef @.str.5)
store ptr %419, ptr %6, align 8
%420 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 0
%421 = load ptr, ptr %6, align 8
%422 = call i32 @fgets(ptr noundef %420, i32 noundef 8, ptr noundef %421)
%423 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 0
%424 = call i32 @atoi(ptr noundef %423)
store i32 %424, ptr %14, align 4
%425 = load i32, ptr %12, align 4
%426 = add nsw i32 %425, 1
store i32 %426, ptr %12, align 4
%427 = load ptr, ptr %6, align 8
%428 = call i32 @fclose(ptr noundef %427)
%429 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
%430 = call ptr @fopen(ptr noundef %429, ptr noundef @.str.7)
store ptr %430, ptr %6, align 8
%431 = load ptr, ptr %6, align 8
%432 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %431, ptr noundef @.str.11)
%433 = load ptr, ptr %6, align 8
%434 = call i32 @fclose(ptr noundef %433)
%435 = call i32 @usleep(i32 noundef 100000)
br label %400, !llvm.loop !10
436: ; preds = %400
br label %437
437: ; preds = %436, %398
%438 = load i32, ptr %12, align 4
store i32 %438, ptr %14, align 4
br label %439
439: ; preds = %437, %367
store i32 0, ptr %12, align 4
br label %440
440: ; preds = %451, %439
%441 = load i32, ptr %12, align 4
%442 = icmp slt i32 %441, 3
br i1 %442, label %443, label %454
443: ; preds = %440
%444 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
%445 = call ptr @fopen(ptr noundef %444, ptr noundef @.str.5)
store ptr %445, ptr %6, align 8
%446 = load ptr, ptr %6, align 8
%447 = icmp ne ptr %446, null
br i1 %447, label %448, label %449
448: ; preds = %443
br label %454
449: ; preds = %443
%450 = call i32 @usleep(i32 noundef 50000)
br label %451
451: ; preds = %449
%452 = load i32, ptr %12, align 4
%453 = add nsw i32 %452, 1
store i32 %453, ptr %12, align 4
br label %440, !llvm.loop !11
454: ; preds = %448, %440
%455 = load i32, ptr %12, align 4
%456 = icmp eq i32 %455, 3
br i1 %456, label %457, label %462
457: ; preds = %454
%458 = load ptr, ptr @stderr, align 8
%459 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
%460 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %458, ptr noundef @.str.10, ptr noundef %459)
%461 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %504
462: ; preds = %454
%463 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 0
%464 = load ptr, ptr %6, align 8
%465 = call i32 @fgets(ptr noundef %463, i32 noundef 8, ptr noundef %464)
%466 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 0
%467 = call i64 @strcmp(ptr noundef %466, ptr noundef @.str.11)
%468 = icmp ne i64 %467, 0
br i1 %468, label %469, label %501
469: ; preds = %462
store i32 0, ptr %12, align 4
br label %470
470: ; preds = %481, %469
%471 = load i32, ptr %12, align 4
%472 = icmp slt i32 %471, 3
br i1 %472, label %473, label %484
473: ; preds = %470
%474 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
%475 = call ptr @fopen(ptr noundef %474, ptr noundef @.str.7)
store ptr %475, ptr %6, align 8
%476 = load ptr, ptr %6, align 8
%477 = icmp ne ptr %476, null
br i1 %477, label %478, label %479
478: ; preds = %473
br label %484
479: ; preds = %473
%480 = call i32 @usleep(i32 noundef 50000)
br label %481
481: ; preds = %479
%482 = load i32, ptr %12, align 4
%483 = add nsw i32 %482, 1
store i32 %483, ptr %12, align 4
br label %470, !llvm.loop !12
484: ; preds = %478, %470
%485 = load i32, ptr %12, align 4
%486 = icmp eq i32 %485, 3
br i1 %486, label %487, label %492
487: ; preds = %484
%488 = load ptr, ptr @stderr, align 8
%489 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
%490 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %488, ptr noundef @.str.10, ptr noundef %489)
%491 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %504
492: ; preds = %484
%493 = load ptr, ptr %6, align 8
%494 = icmp ne ptr %493, null
br i1 %494, label %495, label %500
495: ; preds = %492
%496 = load ptr, ptr %6, align 8
%497 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %496, ptr noundef @.str.11)
%498 = load ptr, ptr %6, align 8
%499 = call i32 @fclose(ptr noundef %498)
br label %500
500: ; preds = %495, %492
br label %501
501: ; preds = %500, %462
%502 = load i32, ptr %14, align 4
%503 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %502)
store i32 0, ptr %3, align 4
br label %504
504: ; preds = %501, %487, %457, %363, %341, %304, %239, %205, %198, %133, %121, %107, %80, %56, %23
%505 = load i32, ptr %3, align 4
ret i32 %505
}
; 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(ptr noundef, ptr noundef, ...) #2
declare i32 @printf(ptr noundef, ...) #2
declare i32 @atoi(ptr noundef) #2
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @fclose(ptr noundef) #2
declare i32 @usleep(i32 noundef) #2
declare i32 @fgets(ptr noundef, i32 noundef, ptr noundef) #2
declare i64 @strcmp(ptr noundef, ptr noundef) #2
declare i32 @system(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3phbja45.c"
target datalayout = "e-m:e-p270: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.gpio = private unnamed_addr constant [29 x i8] c"/sys/class/gpio/gpio00/value\00", align 16
@__const.main.dir = private unnamed_addr constant [33 x i8] c"/sys/class/gpio/gpio00/direction\00", align 16
@__const.main.wipi = private unnamed_addr constant [55 x i8] c"/usr/local/bin/gpio -g mode 00 up/down/tri 2>/dev/null\00", align 16
@__const.main.wip2 = private unnamed_addr constant [49 x i8] c"/usr/bin/gpio -g mode 00 up/down/tri 2>/dev/null\00", align 16
@__const.main.pin_ports = private unnamed_addr constant [40 x i32] [i32 -1, i32 -1, i32 2, i32 -1, i32 3, i32 -1, i32 4, i32 14, i32 -1, i32 15, i32 17, i32 18, i32 27, i32 -1, i32 22, i32 23, i32 -1, i32 24, i32 10, i32 -1, i32 9, i32 25, i32 11, i32 8, i32 -1, i32 7, i32 -1, i32 -1, i32 5, i32 -1, i32 6, i32 12, i32 13, i32 -1, i32 19, i32 16, i32 26, i32 20, i32 -1, i32 21], align 16
@stderr = dso_local global ptr null, align 8
@.str = private unnamed_addr constant [24 x i8] c"usage: %s port [value]\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"9\0A\00", align 1
@.str.2 = private unnamed_addr constant [28 x i8] c"Unsupported Port Error, %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"%s%d/value\00", align 1
@.str.4 = private unnamed_addr constant [15 x i8] c"%s%d/direction\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.6 = private unnamed_addr constant [23 x i8] c"/sys/class/gpio/export\00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.8 = private unnamed_addr constant [10 x i8] c"IO Error\0A\00", align 1
@.str.9 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.10 = private unnamed_addr constant [13 x i8] c"IO Error %s\0A\00", align 1
@.str.11 = private unnamed_addr constant [4 x i8] c"in\0A\00", align 1
@.str.12 = private unnamed_addr constant [25 x i8] c"IO Error (IO Mode = %s)\0A\00", align 1
@.str.13 = private unnamed_addr constant [3 x i8] c"NC\00", align 1
@.str.14 = private unnamed_addr constant [4 x i8] c"LOW\00", align 1
@.str.15 = private unnamed_addr constant [5 x i8] c"HIGH\00", align 1
@.str.16 = private unnamed_addr constant [4 x i8] c"PUP\00", align 1
@.str.17 = private unnamed_addr constant [6 x i8] c"PDOWN\00", align 1
@.str.18 = private unnamed_addr constant [25 x i8] c"/sys/class/gpio/unexport\00", align 1
@.str.19 = private unnamed_addr constant [4 x i8] c"-1\0A\00", align 1
@.str.20 = private unnamed_addr constant [22 x i8] c"%s %d up 2> /dev/null\00", align 1
@.str.21 = private unnamed_addr constant [9 x i8] c"%s %d up\00", align 1
@.str.22 = private unnamed_addr constant [6 x i8] c"high\0A\00", align 1
@.str.23 = private unnamed_addr constant [24 x i8] c"%s %d down 2> /dev/null\00", align 1
@.str.24 = private unnamed_addr constant [11 x i8] c"%s %d down\00", align 1
@.str.25 = private unnamed_addr constant [5 x i8] c"low\0A\00", align 1
@.str.26 = private unnamed_addr constant [29 x i8] c"Unsupported Value Error, %d\0A\00", align 1
@.str.27 = private unnamed_addr constant [33 x i8] c"Pseudo Pull Up / Down mode (%d)\0A\00", align 1
@.str.28 = private unnamed_addr constant [52 x i8] c"WiringPi\E3\82\92\E3\82\A4\E3\83\B3\E3\82\B9\E3\83\88\E3\83\BC\E3\83\AB\E3\81\97\E3\81\A6\E3\81\8F\E3\81\A0\E3\81\95\E3\81\84\E3\80\82\0A\00", align 1
@.str.29 = private unnamed_addr constant [41 x i8] c"git clone git://git.drogon.net/wiringPi\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 [29 x i8], align 16
%8 = alloca [33 x i8], align 16
%9 = alloca [55 x i8], align 16
%10 = alloca [49 x i8], align 16
%11 = alloca [8 x i8], align 1
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca [40 x i32], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const.main.gpio, i64 29, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %8, ptr align 16 @__const.main.dir, i64 33, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 @__const.main.wipi, i64 55, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 @__const.main.wip2, i64 49, i1 false)
store i32 -1, ptr %15, align 4
store i32 -1, ptr %16, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 @__const.main.pin_ports, i64 160, i1 false)
%18 = load i32, ptr %4, align 4
%19 = icmp slt i32 %18, 2
br i1 %19, label %23, label %20
20: ; preds = %2
%21 = load i32, ptr %4, align 4
%22 = icmp sgt i32 %21, 4
br i1 %22, label %23, label %30
23: ; preds = %20, %2
%24 = load ptr, ptr @stderr, align 8
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 0
%27 = load ptr, ptr %26, align 8
%28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef @.str, ptr noundef %27)
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %512
30: ; preds = %20
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 1
%33 = load ptr, ptr %32, align 8
%34 = call i32 @atoi(ptr noundef %33)
store i32 %34, ptr %13, align 4
store i32 0, ptr %12, align 4
%35 = load i32, ptr %12, align 4
%36 = icmp slt i32 %35, 40
br i1 %36, label %.lr.ph, label %.loopexit3
.lr.ph: ; preds = %30
br label %37
37: ; preds = %.lr.ph, %46
%38 = load i32, ptr %12, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [40 x i32], ptr %17, i64 0, i64 %39
%41 = load i32, ptr %40, align 4
%42 = load i32, ptr %13, align 4
%43 = icmp eq i32 %41, %42
br i1 %43, label %44, label %45
44: ; preds = %37
br label %51
45: ; preds = %37
br label %46
46: ; preds = %45
%47 = load i32, ptr %12, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %12, align 4
%49 = load i32, ptr %12, align 4
%50 = icmp slt i32 %49, 40
br i1 %50, label %37, label %..loopexit3_crit_edge, !llvm.loop !6
..loopexit3_crit_edge: ; preds = %46
br label %.loopexit3
.loopexit3: ; preds = %..loopexit3_crit_edge, %30
br label %51
51: ; preds = %.loopexit3, %44
%52 = load i32, ptr %12, align 4
%53 = icmp eq i32 %52, 40
br i1 %53, label %57, label %54
54: ; preds = %51
%55 = load i32, ptr %13, align 4
%56 = icmp slt i32 %55, 0
br i1 %56, label %57, label %62
57: ; preds = %54, %51
%58 = load ptr, ptr @stderr, align 8
%59 = load i32, ptr %13, align 4
%60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef @.str.2, i32 noundef %59)
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %512
62: ; preds = %54
%63 = getelementptr inbounds [29 x i8], ptr %7, i64 0, i64 20
store i8 0, ptr %63, align 4
%64 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 20
store i8 0, ptr %64, align 4
%65 = getelementptr inbounds [29 x i8], ptr %7, i64 0, i64 0
%66 = getelementptr inbounds [29 x i8], ptr %7, i64 0, i64 0
%67 = load i32, ptr %13, align 4
%68 = call i32 @sprintf(ptr noundef %65, ptr noundef @.str.3, ptr noundef %66, i32 noundef %67)
%69 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
%70 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
%71 = load i32, ptr %13, align 4
%72 = call i32 @sprintf(ptr noundef %69, ptr noundef @.str.4, ptr noundef %70, i32 noundef %71)
%73 = getelementptr inbounds [29 x i8], ptr %7, i64 0, i64 0
%74 = call ptr @fopen(ptr noundef %73, ptr noundef @.str.5)
store ptr %74, ptr %6, align 8
%75 = load ptr, ptr %6, align 8
%76 = icmp eq ptr %75, null
br i1 %76, label %77, label %145
77: ; preds = %62
%78 = call ptr @fopen(ptr noundef @.str.6, ptr noundef @.str.7)
store ptr %78, ptr %6, align 8
%79 = load ptr, ptr %6, align 8
%80 = icmp eq ptr %79, null
br i1 %80, label %81, label %85
81: ; preds = %77
%82 = load ptr, ptr @stderr, align 8
%83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef @.str.8)
%84 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %512
85: ; preds = %77
%86 = load ptr, ptr %6, align 8
%87 = load i32, ptr %13, align 4
%88 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef @.str.9, i32 noundef %87)
%89 = load ptr, ptr %6, align 8
%90 = call i32 @fclose(ptr noundef %89)
store i32 0, ptr %12, align 4
%91 = load i32, ptr %12, align 4
%92 = icmp slt i32 %91, 3
br i1 %92, label %.lr.ph4, label %.loopexit2
.lr.ph4: ; preds = %85
br label %93
93: ; preds = %.lr.ph4, %101
%94 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
%95 = call ptr @fopen(ptr noundef %94, ptr noundef @.str.7)
store ptr %95, ptr %6, align 8
%96 = load ptr, ptr %6, align 8
%97 = icmp ne ptr %96, null
br i1 %97, label %98, label %99
98: ; preds = %93
br label %106
99: ; preds = %93
%100 = call i32 @usleep(i32 noundef 50000)
br label %101
101: ; preds = %99
%102 = load i32, ptr %12, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %12, align 4
%104 = load i32, ptr %12, align 4
%105 = icmp slt i32 %104, 3
br i1 %105, label %93, label %..loopexit2_crit_edge, !llvm.loop !8
..loopexit2_crit_edge: ; preds = %101
br label %.loopexit2
.loopexit2: ; preds = %..loopexit2_crit_edge, %85
br label %106
106: ; preds = %.loopexit2, %98
%107 = load i32, ptr %12, align 4
%108 = icmp eq i32 %107, 3
br i1 %108, label %109, label %114
109: ; preds = %106
%110 = load ptr, ptr @stderr, align 8
%111 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
%112 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %110, ptr noundef @.str.10, ptr noundef %111)
%113 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %512
114: ; preds = %106
%115 = load ptr, ptr %6, align 8
%116 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef @.str.11)
%117 = load ptr, ptr %6, align 8
%118 = call i32 @fclose(ptr noundef %117)
%119 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
%120 = call ptr @fopen(ptr noundef %119, ptr noundef @.str.5)
store ptr %120, ptr %6, align 8
%121 = load ptr, ptr %6, align 8
%122 = icmp eq ptr %121, null
br i1 %122, label %123, label %128
123: ; preds = %114
%124 = load ptr, ptr @stderr, align 8
%125 = getelementptr inbounds [29 x i8], ptr %7, i64 0, i64 0
%126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %124, ptr noundef @.str.10, ptr noundef %125)
%127 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %512
128: ; preds = %114
%129 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 0
%130 = load ptr, ptr %6, align 8
%131 = call i32 @fgets(ptr noundef %129, i32 noundef 8, ptr noundef %130)
%132 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 0
%133 = call i64 @strcmp(ptr noundef %132, ptr noundef @.str.11)
%134 = icmp ne i64 %133, 0
br i1 %134, label %135, label %142
135: ; preds = %128
%136 = load ptr, ptr @stderr, align 8
%137 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 0
%138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %136, ptr noundef @.str.12, ptr noundef %137)
%139 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%140 = load ptr, ptr %6, align 8
%141 = call i32 @fclose(ptr noundef %140)
store i32 -1, ptr %3, align 4
br label %512
142: ; preds = %128
%143 = load ptr, ptr %6, align 8
%144 = call i32 @fclose(ptr noundef %143)
br label %145
145: ; preds = %142, %62
%146 = load ptr, ptr %6, align 8
%147 = call i32 @fclose(ptr noundef %146)
%148 = load i32, ptr %4, align 4
%149 = icmp sge i32 %148, 3
br i1 %149, label %150, label %349
150: ; preds = %145
%151 = load ptr, ptr %5, align 8
%152 = getelementptr inbounds ptr, ptr %151, i64 2
%153 = load ptr, ptr %152, align 8
%154 = call i64 @strcmp(ptr noundef %153, ptr noundef @.str.13)
%155 = icmp ne i64 %154, 0
br i1 %155, label %157, label %156
156: ; preds = %150
store i32 -1, ptr %14, align 4
br label %194
157: ; preds = %150
%158 = load ptr, ptr %5, align 8
%159 = getelementptr inbounds ptr, ptr %158, i64 2
%160 = load ptr, ptr %159, align 8
%161 = call i64 @strcmp(ptr noundef %160, ptr noundef @.str.14)
%162 = icmp ne i64 %161, 0
br i1 %162, label %164, label %163
163: ; preds = %157
store i32 0, ptr %14, align 4
br label %193
164: ; preds = %157
%165 = load ptr, ptr %5, align 8
%166 = getelementptr inbounds ptr, ptr %165, i64 2
%167 = load ptr, ptr %166, align 8
%168 = call i64 @strcmp(ptr noundef %167, ptr noundef @.str.15)
%169 = icmp ne i64 %168, 0
br i1 %169, label %171, label %170
170: ; preds = %164
store i32 1, ptr %14, align 4
br label %192
171: ; preds = %164
%172 = load ptr, ptr %5, align 8
%173 = getelementptr inbounds ptr, ptr %172, i64 2
%174 = load ptr, ptr %173, align 8
%175 = call i64 @strcmp(ptr noundef %174, ptr noundef @.str.16)
%176 = icmp ne i64 %175, 0
br i1 %176, label %178, label %177
177: ; preds = %171
store i32 2, ptr %14, align 4
br label %191
178: ; preds = %171
%179 = load ptr, ptr %5, align 8
%180 = getelementptr inbounds ptr, ptr %179, i64 2
%181 = load ptr, ptr %180, align 8
%182 = call i64 @strcmp(ptr noundef %181, ptr noundef @.str.17)
%183 = icmp ne i64 %182, 0
br i1 %183, label %185, label %184
184: ; preds = %178
store i32 3, ptr %14, align 4
br label %190
185: ; preds = %178
%186 = load ptr, ptr %5, align 8
%187 = getelementptr inbounds ptr, ptr %186, i64 2
%188 = load ptr, ptr %187, align 8
%189 = call i32 @atoi(ptr noundef %188)
store i32 %189, ptr %14, align 4
br label %190
190: ; preds = %185, %184
br label %191
191: ; preds = %190, %177
br label %192
192: ; preds = %191, %170
br label %193
193: ; preds = %192, %163
br label %194
194: ; preds = %193, %156
%195 = load i32, ptr %14, align 4
switch i32 %195, label %343 [
i32 -1, label %196
i32 0, label %211
i32 1, label %211
i32 2, label %213
i32 3, label %278
]
196: ; preds = %194
%197 = call ptr @fopen(ptr noundef @.str.18, ptr noundef @.str.7)
store ptr %197, ptr %6, align 8
%198 = load ptr, ptr %6, align 8
%199 = icmp ne ptr %198, null
br i1 %199, label %200, label %207
200: ; preds = %196
%201 = load ptr, ptr %6, align 8
%202 = load i32, ptr %13, align 4
%203 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %201, ptr noundef @.str.9, i32 noundef %202)
%204 = load ptr, ptr %6, align 8
%205 = call i32 @fclose(ptr noundef %204)
%206 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
store i32 0, ptr %3, align 4
br label %512
207: ; preds = %196
%208 = load ptr, ptr @stderr, align 8
%209 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %208, ptr noundef @.str.8)
%210 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %512
211: ; preds = %194, %194
%212 = load i32, ptr %14, align 4
store i32 %212, ptr %15, align 4
br label %348
213: ; preds = %194
%214 = getelementptr inbounds [55 x i8], ptr %9, i64 0, i64 28
store i8 0, ptr %214, align 4
%215 = getelementptr inbounds [49 x i8], ptr %10, i64 0, i64 22
store i8 0, ptr %215, align 2
%216 = getelementptr inbounds [49 x i8], ptr %10, i64 0, i64 0
%217 = getelementptr inbounds [49 x i8], ptr %10, i64 0, i64 0
%218 = load i32, ptr %13, align 4
%219 = call i32 @sprintf(ptr noundef %216, ptr noundef @.str.20, ptr noundef %217, i32 noundef %218)
%220 = getelementptr inbounds [55 x i8], ptr %9, i64 0, i64 0
%221 = getelementptr inbounds [55 x i8], ptr %9, i64 0, i64 0
%222 = load i32, ptr %13, align 4
%223 = call i32 @sprintf(ptr noundef %220, ptr noundef @.str.21, ptr noundef %221, i32 noundef %222)
%224 = getelementptr inbounds [49 x i8], ptr %10, i64 0, i64 0
%225 = call i32 @system(ptr noundef %224)
%226 = icmp ne i32 %225, 0
br i1 %226, label %227, label %247
227: ; preds = %213
%228 = getelementptr inbounds [55 x i8], ptr %9, i64 0, i64 0
%229 = call i32 @system(ptr noundef %228)
%230 = icmp ne i32 %229, 0
br i1 %230, label %231, label %246
231: ; preds = %227
%232 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
%233 = call ptr @fopen(ptr noundef %232, ptr noundef @.str.7)
store ptr %233, ptr %6, align 8
%234 = load ptr, ptr %6, align 8
%235 = icmp ne ptr %234, null
br i1 %235, label %236, label %241
236: ; preds = %231
%237 = load ptr, ptr %6, align 8
%238 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %237, ptr noundef @.str.22)
%239 = load ptr, ptr %6, align 8
%240 = call i32 @fclose(ptr noundef %239)
store i32 1, ptr %16, align 4
br label %245
241: ; preds = %231
%242 = load ptr, ptr @stderr, align 8
%243 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %242, ptr noundef @.str.8)
%244 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %512
245: ; preds = %236
br label %246
246: ; preds = %245, %227
br label %247
247: ; preds = %246, %213
%248 = load i32, ptr %4, align 4
%249 = icmp eq i32 %248, 4
br i1 %249, label %250, label %277
250: ; preds = %247
%251 = load ptr, ptr %5, align 8
%252 = getelementptr inbounds ptr, ptr %251, i64 3
%253 = load ptr, ptr %252, align 8
%254 = call i64 @strcmp(ptr noundef %253, ptr noundef @.str.14)
%255 = icmp ne i64 %254, 0
br i1 %255, label %257, label %256
256: ; preds = %250
store i32 0, ptr %15, align 4
br label %270
257: ; preds = %250
%258 = load ptr, ptr %5, align 8
%259 = getelementptr inbounds ptr, ptr %258, i64 3
%260 = load ptr, ptr %259, align 8
%261 = call i64 @strcmp(ptr noundef %260, ptr noundef @.str.15)
%262 = icmp ne i64 %261, 0
br i1 %262, label %264, label %263
263: ; preds = %257
store i32 1, ptr %15, align 4
br label %269
264: ; preds = %257
%265 = load ptr, ptr %5, align 8
%266 = getelementptr inbounds ptr, ptr %265, i64 3
%267 = load ptr, ptr %266, align 8
%268 = call i32 @atoi(ptr noundef %267)
store i32 %268, ptr %15, align 4
br label %269
269: ; preds = %264, %263
br label %270
270: ; preds = %269, %256
%271 = load i32, ptr %15, align 4
%272 = srem i32 %271, 2
%273 = load i32, ptr %15, align 4
%274 = icmp ne i32 %272, %273
br i1 %274, label %275, label %276
275: ; preds = %270
store i32 -1, ptr %15, align 4
br label %276
276: ; preds = %275, %270
br label %277
277: ; preds = %276, %247
br label %348
278: ; preds = %194
%279 = getelementptr inbounds [55 x i8], ptr %9, i64 0, i64 28
store i8 0, ptr %279, align 4
%280 = getelementptr inbounds [49 x i8], ptr %10, i64 0, i64 22
store i8 0, ptr %280, align 2
%281 = getelementptr inbounds [49 x i8], ptr %10, i64 0, i64 0
%282 = getelementptr inbounds [49 x i8], ptr %10, i64 0, i64 0
%283 = load i32, ptr %13, align 4
%284 = call i32 @sprintf(ptr noundef %281, ptr noundef @.str.23, ptr noundef %282, i32 noundef %283)
%285 = getelementptr inbounds [55 x i8], ptr %9, i64 0, i64 0
%286 = getelementptr inbounds [55 x i8], ptr %9, i64 0, i64 0
%287 = load i32, ptr %13, align 4
%288 = call i32 @sprintf(ptr noundef %285, ptr noundef @.str.24, ptr noundef %286, i32 noundef %287)
%289 = getelementptr inbounds [49 x i8], ptr %10, i64 0, i64 0
%290 = call i32 @system(ptr noundef %289)
%291 = icmp ne i32 %290, 0
br i1 %291, label %292, label %312
292: ; preds = %278
%293 = getelementptr inbounds [55 x i8], ptr %9, i64 0, i64 0
%294 = call i32 @system(ptr noundef %293)
%295 = icmp ne i32 %294, 0
br i1 %295, label %296, label %311
296: ; preds = %292
%297 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
%298 = call ptr @fopen(ptr noundef %297, ptr noundef @.str.7)
store ptr %298, ptr %6, align 8
%299 = load ptr, ptr %6, align 8
%300 = icmp ne ptr %299, null
br i1 %300, label %301, label %306
301: ; preds = %296
%302 = load ptr, ptr %6, align 8
%303 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %302, ptr noundef @.str.25)
%304 = load ptr, ptr %6, align 8
%305 = call i32 @fclose(ptr noundef %304)
store i32 0, ptr %16, align 4
br label %310
306: ; preds = %296
%307 = load ptr, ptr @stderr, align 8
%308 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %307, ptr noundef @.str.8)
%309 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %512
310: ; preds = %301
br label %311
311: ; preds = %310, %292
br label %312
312: ; preds = %311, %278
%313 = load i32, ptr %4, align 4
%314 = icmp eq i32 %313, 4
br i1 %314, label %315, label %342
315: ; preds = %312
%316 = load ptr, ptr %5, align 8
%317 = getelementptr inbounds ptr, ptr %316, i64 3
%318 = load ptr, ptr %317, align 8
%319 = call i64 @strcmp(ptr noundef %318, ptr noundef @.str.14)
%320 = icmp ne i64 %319, 0
br i1 %320, label %322, label %321
321: ; preds = %315
store i32 0, ptr %15, align 4
br label %335
322: ; preds = %315
%323 = load ptr, ptr %5, align 8
%324 = getelementptr inbounds ptr, ptr %323, i64 3
%325 = load ptr, ptr %324, align 8
%326 = call i64 @strcmp(ptr noundef %325, ptr noundef @.str.15)
%327 = icmp ne i64 %326, 0
br i1 %327, label %329, label %328
328: ; preds = %322
store i32 1, ptr %15, align 4
br label %334
329: ; preds = %322
%330 = load ptr, ptr %5, align 8
%331 = getelementptr inbounds ptr, ptr %330, i64 3
%332 = load ptr, ptr %331, align 8
%333 = call i32 @atoi(ptr noundef %332)
store i32 %333, ptr %15, align 4
br label %334
334: ; preds = %329, %328
br label %335
335: ; preds = %334, %321
%336 = load i32, ptr %15, align 4
%337 = srem i32 %336, 2
%338 = load i32, ptr %15, align 4
%339 = icmp ne i32 %337, %338
br i1 %339, label %340, label %341
340: ; preds = %335
store i32 -1, ptr %15, align 4
br label %341
341: ; preds = %340, %335
br label %342
342: ; preds = %341, %312
br label %348
343: ; preds = %194
%344 = load ptr, ptr @stderr, align 8
%345 = load i32, ptr %14, align 4
%346 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %344, ptr noundef @.str.26, i32 noundef %345)
%347 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %512
348: ; preds = %342, %277, %211
br label %349
349: ; preds = %348, %145
%350 = load i32, ptr %16, align 4
%351 = icmp sge i32 %350, 0
br i1 %351, label %352, label %360
352: ; preds = %349
%353 = load ptr, ptr @stderr, align 8
%354 = load i32, ptr %16, align 4
%355 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %353, ptr noundef @.str.27, i32 noundef %354)
%356 = load ptr, ptr @stderr, align 8
%357 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %356, ptr noundef @.str.28)
%358 = load ptr, ptr @stderr, align 8
%359 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %358, ptr noundef @.str.29)
br label %360
360: ; preds = %352, %349
%361 = getelementptr inbounds [29 x i8], ptr %7, i64 0, i64 0
%362 = call ptr @fopen(ptr noundef %361, ptr noundef @.str.5)
store ptr %362, ptr %6, align 8
%363 = load ptr, ptr %6, align 8
%364 = icmp eq ptr %363, null
br i1 %364, label %365, label %369
365: ; preds = %360
%366 = load ptr, ptr @stderr, align 8
%367 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %366, ptr noundef @.str.8)
%368 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %512
369: ; preds = %360
%370 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 0
%371 = load ptr, ptr %6, align 8
%372 = call i32 @fgets(ptr noundef %370, i32 noundef 8, ptr noundef %371)
%373 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 0
%374 = call i32 @atoi(ptr noundef %373)
store i32 %374, ptr %14, align 4
%375 = load ptr, ptr %6, align 8
%376 = call i32 @fclose(ptr noundef %375)
%377 = load i32, ptr %15, align 4
%378 = icmp sge i32 %377, 0
br i1 %378, label %379, label %445
379: ; preds = %369
store i32 0, ptr %12, align 4
%380 = load i32, ptr %16, align 4
%381 = icmp slt i32 %380, 0
br i1 %381, label %382, label %403
382: ; preds = %379
%383 = load i32, ptr %14, align 4
%384 = load i32, ptr %15, align 4
%385 = icmp ne i32 %383, %384
br i1 %385, label %.lr.ph7, label %402
.lr.ph7: ; preds = %382
br label %386
386: ; preds = %.lr.ph7, %386
%387 = getelementptr inbounds [29 x i8], ptr %7, i64 0, i64 0
%388 = call ptr @fopen(ptr noundef %387, ptr noundef @.str.5)
store ptr %388, ptr %6, align 8
%389 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 0
%390 = load ptr, ptr %6, align 8
%391 = call i32 @fgets(ptr noundef %389, i32 noundef 8, ptr noundef %390)
%392 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 0
%393 = call i32 @atoi(ptr noundef %392)
store i32 %393, ptr %14, align 4
%394 = load i32, ptr %12, align 4
%395 = add nsw i32 %394, 1
store i32 %395, ptr %12, align 4
%396 = load ptr, ptr %6, align 8
%397 = call i32 @fclose(ptr noundef %396)
%398 = call i32 @usleep(i32 noundef 100000)
%399 = load i32, ptr %14, align 4
%400 = load i32, ptr %15, align 4
%401 = icmp ne i32 %399, %400
br i1 %401, label %386, label %._crit_edge8, !llvm.loop !9
._crit_edge8: ; preds = %386
br label %402
402: ; preds = %._crit_edge8, %382
br label %443
403: ; preds = %379
%404 = load i32, ptr %14, align 4
%405 = load i32, ptr %15, align 4
%406 = icmp ne i32 %404, %405
br i1 %406, label %.lr.ph5, label %442
.lr.ph5: ; preds = %403
br label %407
407: ; preds = %.lr.ph5, %418
%408 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
%409 = call ptr @fopen(ptr noundef %408, ptr noundef @.str.7)
store ptr %409, ptr %6, align 8
%410 = load i32, ptr %16, align 4
%411 = icmp eq i32 %410, 0
br i1 %411, label %412, label %415
412: ; preds = %407
%413 = load ptr, ptr %6, align 8
%414 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %413, ptr noundef @.str.25)
br label %418
415: ; preds = %407
%416 = load ptr, ptr %6, align 8
%417 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %416, ptr noundef @.str.22)
br label %418
418: ; preds = %415, %412
%419 = load ptr, ptr %6, align 8
%420 = call i32 @fclose(ptr noundef %419)
%421 = getelementptr inbounds [29 x i8], ptr %7, i64 0, i64 0
%422 = call ptr @fopen(ptr noundef %421, ptr noundef @.str.5)
store ptr %422, ptr %6, align 8
%423 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 0
%424 = load ptr, ptr %6, align 8
%425 = call i32 @fgets(ptr noundef %423, i32 noundef 8, ptr noundef %424)
%426 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 0
%427 = call i32 @atoi(ptr noundef %426)
store i32 %427, ptr %14, align 4
%428 = load i32, ptr %12, align 4
%429 = add nsw i32 %428, 1
store i32 %429, ptr %12, align 4
%430 = load ptr, ptr %6, align 8
%431 = call i32 @fclose(ptr noundef %430)
%432 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
%433 = call ptr @fopen(ptr noundef %432, ptr noundef @.str.7)
store ptr %433, ptr %6, align 8
%434 = load ptr, ptr %6, align 8
%435 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %434, ptr noundef @.str.11)
%436 = load ptr, ptr %6, align 8
%437 = call i32 @fclose(ptr noundef %436)
%438 = call i32 @usleep(i32 noundef 100000)
%439 = load i32, ptr %14, align 4
%440 = load i32, ptr %15, align 4
%441 = icmp ne i32 %439, %440
br i1 %441, label %407, label %._crit_edge, !llvm.loop !10
._crit_edge: ; preds = %418
br label %442
442: ; preds = %._crit_edge, %403
br label %443
443: ; preds = %442, %402
%444 = load i32, ptr %12, align 4
store i32 %444, ptr %14, align 4
br label %445
445: ; preds = %443, %369
store i32 0, ptr %12, align 4
%446 = load i32, ptr %12, align 4
%447 = icmp slt i32 %446, 3
br i1 %447, label %.lr.ph10, label %.loopexit1
.lr.ph10: ; preds = %445
br label %448
448: ; preds = %.lr.ph10, %456
%449 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
%450 = call ptr @fopen(ptr noundef %449, ptr noundef @.str.5)
store ptr %450, ptr %6, align 8
%451 = load ptr, ptr %6, align 8
%452 = icmp ne ptr %451, null
br i1 %452, label %453, label %454
453: ; preds = %448
br label %461
454: ; preds = %448
%455 = call i32 @usleep(i32 noundef 50000)
br label %456
456: ; preds = %454
%457 = load i32, ptr %12, align 4
%458 = add nsw i32 %457, 1
store i32 %458, ptr %12, align 4
%459 = load i32, ptr %12, align 4
%460 = icmp slt i32 %459, 3
br i1 %460, label %448, label %..loopexit1_crit_edge, !llvm.loop !11
..loopexit1_crit_edge: ; preds = %456
br label %.loopexit1
.loopexit1: ; preds = %..loopexit1_crit_edge, %445
br label %461
461: ; preds = %.loopexit1, %453
%462 = load i32, ptr %12, align 4
%463 = icmp eq i32 %462, 3
br i1 %463, label %464, label %469
464: ; preds = %461
%465 = load ptr, ptr @stderr, align 8
%466 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
%467 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %465, ptr noundef @.str.10, ptr noundef %466)
%468 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %512
469: ; preds = %461
%470 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 0
%471 = load ptr, ptr %6, align 8
%472 = call i32 @fgets(ptr noundef %470, i32 noundef 8, ptr noundef %471)
%473 = getelementptr inbounds [8 x i8], ptr %11, i64 0, i64 0
%474 = call i64 @strcmp(ptr noundef %473, ptr noundef @.str.11)
%475 = icmp ne i64 %474, 0
br i1 %475, label %476, label %509
476: ; preds = %469
store i32 0, ptr %12, align 4
%477 = load i32, ptr %12, align 4
%478 = icmp slt i32 %477, 3
br i1 %478, label %.lr.ph12, label %.loopexit
.lr.ph12: ; preds = %476
br label %479
479: ; preds = %.lr.ph12, %487
%480 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
%481 = call ptr @fopen(ptr noundef %480, ptr noundef @.str.7)
store ptr %481, ptr %6, align 8
%482 = load ptr, ptr %6, align 8
%483 = icmp ne ptr %482, null
br i1 %483, label %484, label %485
484: ; preds = %479
br label %492
485: ; preds = %479
%486 = call i32 @usleep(i32 noundef 50000)
br label %487
487: ; preds = %485
%488 = load i32, ptr %12, align 4
%489 = add nsw i32 %488, 1
store i32 %489, ptr %12, align 4
%490 = load i32, ptr %12, align 4
%491 = icmp slt i32 %490, 3
br i1 %491, label %479, label %..loopexit_crit_edge, !llvm.loop !12
..loopexit_crit_edge: ; preds = %487
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %476
br label %492
492: ; preds = %.loopexit, %484
%493 = load i32, ptr %12, align 4
%494 = icmp eq i32 %493, 3
br i1 %494, label %495, label %500
495: ; preds = %492
%496 = load ptr, ptr @stderr, align 8
%497 = getelementptr inbounds [33 x i8], ptr %8, i64 0, i64 0
%498 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %496, ptr noundef @.str.10, ptr noundef %497)
%499 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %512
500: ; preds = %492
%501 = load ptr, ptr %6, align 8
%502 = icmp ne ptr %501, null
br i1 %502, label %503, label %508
503: ; preds = %500
%504 = load ptr, ptr %6, align 8
%505 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %504, ptr noundef @.str.11)
%506 = load ptr, ptr %6, align 8
%507 = call i32 @fclose(ptr noundef %506)
br label %508
508: ; preds = %503, %500
br label %509
509: ; preds = %508, %469
%510 = load i32, ptr %14, align 4
%511 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %510)
store i32 0, ptr %3, align 4
br label %512
512: ; preds = %509, %495, %464, %365, %343, %306, %241, %207, %200, %135, %123, %109, %81, %57, %23
%513 = load i32, ptr %3, align 4
ret i32 %513
}
; 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(ptr noundef, ptr noundef, ...) #2
declare i32 @printf(ptr noundef, ...) #2
declare i32 @atoi(ptr noundef) #2
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @fclose(ptr noundef) #2
declare i32 @usleep(i32 noundef) #2
declare i32 @fgets(ptr noundef, i32 noundef, ptr noundef) #2
declare i64 @strcmp(ptr noundef, ptr noundef) #2
declare i32 @system(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmpdtiyc02w.c'
source_filename = "/tmp/tmpdtiyc02w.c"
target datalayout = "e-m:e-p270: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
@EINTR = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [24 x i8] c"select error errno=%d \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @select_w(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
br label %12
12: ; preds = %25, %5
%13 = load i32, ptr %6, align 4
%14 = load ptr, ptr %7, align 8
%15 = load ptr, ptr %8, align 8
%16 = load ptr, ptr %9, align 8
%17 = load ptr, ptr %10, align 8
%18 = call i32 @select(i32 noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17)
store i32 %18, ptr %11, align 4
%19 = load i32, ptr %11, align 4
%20 = icmp slt i32 %19, 0
br i1 %20, label %21, label %29
21: ; preds = %12
%22 = load i64, ptr @errno, align 8
%23 = load i64, ptr @EINTR, align 8
%24 = icmp eq i64 %22, %23
br i1 %24, label %25, label %26
25: ; preds = %21
br label %12
26: ; preds = %21
%27 = load i64, ptr @errno, align 8
%28 = call i32 @printf(ptr noundef @.str, i64 noundef %27)
br label %29
29: ; preds = %26, %12
%30 = load i32, ptr %11, align 4
ret i32 %30
}
declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdtiyc02w.c"
target datalayout = "e-m:e-p270: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
@EINTR = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [24 x i8] c"select error errno=%d \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @select_w(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%12 = load i32, ptr %6, align 4
%13 = load ptr, ptr %7, align 8
%14 = load ptr, ptr %8, align 8
%15 = load ptr, ptr %9, align 8
%16 = load ptr, ptr %10, align 8
%17 = call i32 @select(i32 noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16)
store i32 %17, ptr %11, align 4
%18 = load i32, ptr %11, align 4
%19 = icmp slt i32 %18, 0
br i1 %19, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %5
br label %29
20: ; preds = %29
%21 = load i32, ptr %6, align 4
%22 = load ptr, ptr %7, align 8
%23 = load ptr, ptr %8, align 8
%24 = load ptr, ptr %9, align 8
%25 = load ptr, ptr %10, align 8
%26 = call i32 @select(i32 noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %25)
store i32 %26, ptr %11, align 4
%27 = load i32, ptr %11, align 4
%28 = icmp slt i32 %27, 0
br i1 %28, label %29, label %..loopexit_crit_edge
29: ; preds = %.lr.ph, %20
%30 = load i64, ptr @errno, align 8
%31 = load i64, ptr @EINTR, align 8
%32 = icmp eq i64 %30, %31
br i1 %32, label %20, label %33
33: ; preds = %29
%34 = load i64, ptr @errno, align 8
%35 = call i32 @printf(ptr noundef @.str, i64 noundef %34)
br label %36
..loopexit_crit_edge: ; preds = %20
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %5
br label %36
36: ; preds = %.loopexit, %33
%37 = load i32, ptr %11, align 4
ret i32 %37
}
declare i32 @select(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpe2z4y1vk.c'
source_filename = "/tmp/tmpe2z4y1vk.c"
target datalayout = "e-m:e-p270: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/tmpe2z4y1vk.c"
target datalayout = "e-m:e-p270: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/tmpbqppe84o.c'
source_filename = "/tmp/tmpbqppe84o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"Opened PK3 Names: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @CL_OpenedPK3List_f() #0 {
%1 = call i32 @Sys_Gettext(ptr noundef @.str)
%2 = call i32 (...) @FS_LoadedPakNames()
%3 = call i32 @Com_Printf(i32 noundef %1, i32 noundef %2)
ret void
}
declare i32 @Com_Printf(i32 noundef, i32 noundef) #1
declare i32 @Sys_Gettext(ptr noundef) #1
declare i32 @FS_LoadedPakNames(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbqppe84o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"Opened PK3 Names: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @CL_OpenedPK3List_f() #0 {
%1 = call i32 @Sys_Gettext(ptr noundef @.str)
%2 = call i32 (...) @FS_LoadedPakNames()
%3 = call i32 @Com_Printf(i32 noundef %1, i32 noundef %2)
ret void
}
declare i32 @Com_Printf(i32 noundef, i32 noundef) #1
declare i32 @Sys_Gettext(ptr noundef) #1
declare i32 @FS_LoadedPakNames(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp65_chv4k.c'
source_filename = "/tmp/tmp65_chv4k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.x = private unnamed_addr constant [8 x double] [double 0.000000e+00, double 4.000000e+00, double 9.000000e+00, double 1.200000e+01, double 2.400000e+01, double 6.400000e+01, double 8.100000e+01, double 1.010000e+02], align 16
@__const.main.m = private unnamed_addr constant [8 x i32] [i32 0, i32 0, i32 1, i32 0, i32 1, i32 1, i32 0, i32 0], align 16
@.str = private unnamed_addr constant [15 x i8] c"y[ %i ] = %lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [8 x double], align 16
%3 = alloca [8 x i32], align 16
%4 = alloca [8 x double], align 16
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.x, i64 64, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.m, i64 32, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %4, i8 0, i64 64, i1 false)
store i32 4, ptr %5, align 4
store i32 2, ptr %6, align 4
store i32 2, ptr %7, align 4
store i32 2, ptr %8, align 4
%10 = load i32, ptr %5, align 4
%11 = getelementptr inbounds [8 x double], ptr %2, i64 0, i64 0
%12 = load i32, ptr %6, align 4
%13 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 0
%14 = load i32, ptr %7, align 4
%15 = getelementptr inbounds [8 x double], ptr %4, i64 0, i64 0
%16 = load i32, ptr %8, align 4
%17 = call i32 @stdlib_strided_dmsksqrt(i32 noundef %10, ptr noundef %11, i32 noundef %12, ptr noundef %13, i32 noundef %14, ptr noundef %15, i32 noundef %16)
store i32 0, ptr %9, align 4
br label %18
18: ; preds = %28, %0
%19 = load i32, ptr %9, align 4
%20 = icmp slt i32 %19, 8
br i1 %20, label %21, label %31
21: ; preds = %18
%22 = load i32, ptr %9, align 4
%23 = load i32, ptr %9, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [8 x double], ptr %4, i64 0, i64 %24
%26 = load double, ptr %25, align 8
%27 = call i32 @printf(ptr noundef @.str, i32 noundef %22, double noundef %26)
br label %28
28: ; preds = %21
%29 = load i32, ptr %9, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %9, align 4
br label %18, !llvm.loop !6
31: ; preds = %18
%32 = load i32, ptr %1, align 4
ret i32 %32
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @stdlib_strided_dmsksqrt(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #3
declare i32 @printf(ptr noundef, i32 noundef, double noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp65_chv4k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.x = private unnamed_addr constant [8 x double] [double 0.000000e+00, double 4.000000e+00, double 9.000000e+00, double 1.200000e+01, double 2.400000e+01, double 6.400000e+01, double 8.100000e+01, double 1.010000e+02], align 16
@__const.main.m = private unnamed_addr constant [8 x i32] [i32 0, i32 0, i32 1, i32 0, i32 1, i32 1, i32 0, i32 0], align 16
@.str = private unnamed_addr constant [15 x i8] c"y[ %i ] = %lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [8 x double], align 16
%3 = alloca [8 x i32], align 16
%4 = alloca [8 x double], align 16
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.x, i64 64, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.m, i64 32, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %4, i8 0, i64 64, i1 false)
store i32 4, ptr %5, align 4
store i32 2, ptr %6, align 4
store i32 2, ptr %7, align 4
store i32 2, ptr %8, align 4
%10 = load i32, ptr %5, align 4
%11 = getelementptr inbounds [8 x double], ptr %2, i64 0, i64 0
%12 = load i32, ptr %6, align 4
%13 = getelementptr inbounds [8 x i32], ptr %3, i64 0, i64 0
%14 = load i32, ptr %7, align 4
%15 = getelementptr inbounds [8 x double], ptr %4, i64 0, i64 0
%16 = load i32, ptr %8, align 4
%17 = call i32 @stdlib_strided_dmsksqrt(i32 noundef %10, ptr noundef %11, i32 noundef %12, ptr noundef %13, i32 noundef %14, ptr noundef %15, i32 noundef %16)
store i32 0, ptr %9, align 4
%18 = load i32, ptr %9, align 4
%19 = icmp slt i32 %18, 8
br i1 %19, label %.lr.ph, label %32
.lr.ph: ; preds = %0
br label %20
20: ; preds = %.lr.ph, %27
%21 = load i32, ptr %9, align 4
%22 = load i32, ptr %9, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [8 x double], ptr %4, i64 0, i64 %23
%25 = load double, ptr %24, align 8
%26 = call i32 @printf(ptr noundef @.str, i32 noundef %21, double noundef %25)
br label %27
27: ; preds = %20
%28 = load i32, ptr %9, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %9, align 4
%30 = load i32, ptr %9, align 4
%31 = icmp slt i32 %30, 8
br i1 %31, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %32
32: ; preds = %._crit_edge, %0
%33 = load i32, ptr %1, align 4
ret i32 %33
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @stdlib_strided_dmsksqrt(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #3
declare i32 @printf(ptr noundef, i32 noundef, double noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpqq8zdf68.c'
source_filename = "/tmp/tmpqq8zdf68.c"
target datalayout = "e-m:e-p270: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/tmpqq8zdf68.c"
target datalayout = "e-m:e-p270: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/tmptf38tcog.c'
source_filename = "/tmp/tmptf38tcog.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [23 x i8] c"Horizontal histogram\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c" %2d: \00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c">%d: \00", align 1
@.str.3 = private unnamed_addr constant [22 x i8] c"\0AVertical histogram\0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c" %2d |\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c" #\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c" \00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.8 = private unnamed_addr constant [6 x i8] c" \00", align 1
@.str.9 = private unnamed_addr constant [4 x i8] c"---\00", align 1
@.str.10 = private unnamed_addr constant [3 x i8] c"-\0A\00", align 1
@.str.11 = private unnamed_addr constant [5 x i8] c" %2d\00", align 1
@.str.12 = private unnamed_addr constant [6 x i8] c" %2d>\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [16 x i32], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %9
9: ; preds = %16, %0
%10 = load i32, ptr %2, align 4
%11 = icmp sle i32 %10, 15
br i1 %11, label %12, label %19
12: ; preds = %9
%13 = load i32, ptr %2, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [16 x i32], ptr %8, i64 0, i64 %14
store i32 0, ptr %15, align 4
br label %16
16: ; preds = %12
%17 = load i32, ptr %2, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %2, align 4
br label %9, !llvm.loop !6
19: ; preds = %9
store i32 0, ptr %6, align 4
br label %20
20: ; preds = %63, %19
%21 = call i32 (...) @getchar()
store i32 %21, ptr %4, align 4
%22 = load i32, ptr @EOF, align 4
%23 = icmp ne i32 %21, %22
br i1 %23, label %24, label %64
24: ; preds = %20
%25 = load i32, ptr %4, align 4
%26 = icmp eq i32 %25, 46
br i1 %26, label %27, label %28
27: ; preds = %24
br label %64
28: ; preds = %24
%29 = load i32, ptr %4, align 4
%30 = icmp eq i32 %29, 32
br i1 %30, label %37, label %31
31: ; preds = %28
%32 = load i32, ptr %4, align 4
%33 = icmp eq i32 %32, 9
br i1 %33, label %37, label %34
34: ; preds = %31
%35 = load i32, ptr %4, align 4
%36 = icmp eq i32 %35, 10
br i1 %36, label %37, label %56
37: ; preds = %34, %31, %28
%38 = load i32, ptr %6, align 4
%39 = icmp eq i32 %38, 1
br i1 %39, label %40, label %55
40: ; preds = %37
%41 = load i32, ptr %5, align 4
%42 = icmp sle i32 %41, 15
br i1 %42, label %43, label %50
43: ; preds = %40
%44 = load i32, ptr %5, align 4
%45 = sub nsw i32 %44, 1
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [16 x i32], ptr %8, i64 0, i64 %46
%48 = load i32, ptr %47, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %47, align 4
br label %54
50: ; preds = %40
%51 = getelementptr inbounds [16 x i32], ptr %8, i64 0, i64 15
%52 = load i32, ptr %51, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %51, align 4
br label %54
54: ; preds = %50, %43
store i32 0, ptr %6, align 4
br label %55
55: ; preds = %54, %37
br label %63
56: ; preds = %34
%57 = load i32, ptr %6, align 4
%58 = icmp eq i32 %57, 0
br i1 %58, label %59, label %60
59: ; preds = %56
store i32 0, ptr %5, align 4
store i32 1, ptr %6, align 4
br label %60
60: ; preds = %59, %56
%61 = load i32, ptr %5, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %5, align 4
br label %63
63: ; preds = %60, %55
br label %20, !llvm.loop !8
64: ; preds = %27, %20
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %2, align 4
br label %66
66: ; preds = %93, %64
%67 = load i32, ptr %2, align 4
%68 = icmp sle i32 %67, 15
br i1 %68, label %69, label %96
69: ; preds = %66
%70 = load i32, ptr %2, align 4
%71 = icmp ne i32 %70, 15
br i1 %71, label %72, label %76
72: ; preds = %69
%73 = load i32, ptr %2, align 4
%74 = add nsw i32 %73, 1
%75 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %74)
br label %78
76: ; preds = %69
%77 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 15)
br label %78
78: ; preds = %76, %72
store i32 0, ptr %3, align 4
br label %79
79: ; preds = %88, %78
%80 = load i32, ptr %3, align 4
%81 = load i32, ptr %2, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [16 x i32], ptr %8, i64 0, i64 %82
%84 = load i32, ptr %83, align 4
%85 = icmp slt i32 %80, %84
br i1 %85, label %86, label %91
86: ; preds = %79
%87 = call i32 @putchar(i8 noundef signext 35)
br label %88
88: ; preds = %86
%89 = load i32, ptr %3, align 4
%90 = add nsw i32 %89, 1
store i32 %90, ptr %3, align 4
br label %79, !llvm.loop !9
91: ; preds = %79
%92 = call i32 @putchar(i8 noundef signext 10)
br label %93
93: ; preds = %91
%94 = load i32, ptr %2, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %2, align 4
br label %66, !llvm.loop !10
96: ; preds = %66
%97 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %7, align 4
store i32 0, ptr %2, align 4
br label %98
98: ; preds = %114, %96
%99 = load i32, ptr %2, align 4
%100 = icmp sle i32 %99, 15
br i1 %100, label %101, label %117
101: ; preds = %98
%102 = load i32, ptr %2, align 4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [16 x i32], ptr %8, i64 0, i64 %103
%105 = load i32, ptr %104, align 4
%106 = load i32, ptr %7, align 4
%107 = icmp sgt i32 %105, %106
br i1 %107, label %108, label %113
108: ; preds = %101
%109 = load i32, ptr %2, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [16 x i32], ptr %8, i64 0, i64 %110
%112 = load i32, ptr %111, align 4
store i32 %112, ptr %7, align 4
br label %113
113: ; preds = %108, %101
br label %114
114: ; preds = %113
%115 = load i32, ptr %2, align 4
%116 = add nsw i32 %115, 1
store i32 %116, ptr %2, align 4
br label %98, !llvm.loop !11
117: ; preds = %98
store i32 0, ptr %2, align 4
br label %118
118: ; preds = %149, %117
%119 = load i32, ptr %2, align 4
%120 = load i32, ptr %7, align 4
%121 = icmp slt i32 %119, %120
br i1 %121, label %122, label %152
122: ; preds = %118
%123 = load i32, ptr %7, align 4
%124 = load i32, ptr %2, align 4
%125 = sub nsw i32 %123, %124
%126 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %125)
store i32 0, ptr %3, align 4
br label %127
127: ; preds = %144, %122
%128 = load i32, ptr %3, align 4
%129 = icmp sle i32 %128, 15
br i1 %129, label %130, label %147
130: ; preds = %127
%131 = load i32, ptr %3, align 4
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds [16 x i32], ptr %8, i64 0, i64 %132
%134 = load i32, ptr %133, align 4
%135 = load i32, ptr %7, align 4
%136 = load i32, ptr %2, align 4
%137 = sub nsw i32 %135, %136
%138 = icmp sge i32 %134, %137
br i1 %138, label %139, label %141
139: ; preds = %130
%140 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %143
141: ; preds = %130
%142 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %143
143: ; preds = %141, %139
br label %144
144: ; preds = %143
%145 = load i32, ptr %3, align 4
%146 = add nsw i32 %145, 1
store i32 %146, ptr %3, align 4
br label %127, !llvm.loop !12
147: ; preds = %127
%148 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %149
149: ; preds = %147
%150 = load i32, ptr %2, align 4
%151 = add nsw i32 %150, 1
store i32 %151, ptr %2, align 4
br label %118, !llvm.loop !13
152: ; preds = %118
%153 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
store i32 0, ptr %2, align 4
br label %154
154: ; preds = %159, %152
%155 = load i32, ptr %2, align 4
%156 = icmp sle i32 %155, 15
br i1 %156, label %157, label %162
157: ; preds = %154
%158 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %159
159: ; preds = %157
%160 = load i32, ptr %2, align 4
%161 = add nsw i32 %160, 1
store i32 %161, ptr %2, align 4
br label %154, !llvm.loop !14
162: ; preds = %154
%163 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%164 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
store i32 0, ptr %2, align 4
br label %165
165: ; preds = %179, %162
%166 = load i32, ptr %2, align 4
%167 = icmp sle i32 %166, 15
br i1 %167, label %168, label %182
168: ; preds = %165
%169 = load i32, ptr %2, align 4
%170 = icmp ne i32 %169, 15
br i1 %170, label %171, label %175
171: ; preds = %168
%172 = load i32, ptr %2, align 4
%173 = add nsw i32 %172, 1
%174 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %173)
br label %178
175: ; preds = %168
%176 = load i32, ptr %2, align 4
%177 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %176)
br label %178
178: ; preds = %175, %171
br label %179
179: ; preds = %178
%180 = load i32, ptr %2, align 4
%181 = add nsw i32 %180, 1
store i32 %181, ptr %2, align 4
br label %165, !llvm.loop !15
182: ; preds = %165
%183 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%184 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %184
}
declare i32 @getchar(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmptf38tcog.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [23 x i8] c"Horizontal histogram\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c" %2d: \00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c">%d: \00", align 1
@.str.3 = private unnamed_addr constant [22 x i8] c"\0AVertical histogram\0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c" %2d |\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c" #\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c" \00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.8 = private unnamed_addr constant [6 x i8] c" \00", align 1
@.str.9 = private unnamed_addr constant [4 x i8] c"---\00", align 1
@.str.10 = private unnamed_addr constant [3 x i8] c"-\0A\00", align 1
@.str.11 = private unnamed_addr constant [5 x i8] c" %2d\00", align 1
@.str.12 = private unnamed_addr constant [6 x i8] c" %2d>\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [16 x i32], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp sle i32 %9, 15
br i1 %10, label %.lr.ph, label %20
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %15
%12 = load i32, ptr %2, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [16 x i32], ptr %8, i64 0, i64 %13
store i32 0, ptr %14, align 4
br label %15
15: ; preds = %11
%16 = load i32, ptr %2, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %2, align 4
%18 = load i32, ptr %2, align 4
%19 = icmp sle i32 %18, 15
br i1 %19, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %20
20: ; preds = %._crit_edge, %0
store i32 0, ptr %6, align 4
%21 = call i32 (...) @getchar()
store i32 %21, ptr %4, align 4
%22 = load i32, ptr @EOF, align 4
%23 = icmp ne i32 %21, %22
br i1 %23, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %20
br label %24
24: ; preds = %.lr.ph2, %63
%25 = load i32, ptr %4, align 4
%26 = icmp eq i32 %25, 46
br i1 %26, label %27, label %28
27: ; preds = %24
br label %67
28: ; preds = %24
%29 = load i32, ptr %4, align 4
%30 = icmp eq i32 %29, 32
br i1 %30, label %37, label %31
31: ; preds = %28
%32 = load i32, ptr %4, align 4
%33 = icmp eq i32 %32, 9
br i1 %33, label %37, label %34
34: ; preds = %31
%35 = load i32, ptr %4, align 4
%36 = icmp eq i32 %35, 10
br i1 %36, label %37, label %56
37: ; preds = %34, %31, %28
%38 = load i32, ptr %6, align 4
%39 = icmp eq i32 %38, 1
br i1 %39, label %40, label %55
40: ; preds = %37
%41 = load i32, ptr %5, align 4
%42 = icmp sle i32 %41, 15
br i1 %42, label %43, label %50
43: ; preds = %40
%44 = load i32, ptr %5, align 4
%45 = sub nsw i32 %44, 1
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [16 x i32], ptr %8, i64 0, i64 %46
%48 = load i32, ptr %47, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %47, align 4
br label %54
50: ; preds = %40
%51 = getelementptr inbounds [16 x i32], ptr %8, i64 0, i64 15
%52 = load i32, ptr %51, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %51, align 4
br label %54
54: ; preds = %50, %43
store i32 0, ptr %6, align 4
br label %55
55: ; preds = %54, %37
br label %63
56: ; preds = %34
%57 = load i32, ptr %6, align 4
%58 = icmp eq i32 %57, 0
br i1 %58, label %59, label %60
59: ; preds = %56
store i32 0, ptr %5, align 4
store i32 1, ptr %6, align 4
br label %60
60: ; preds = %59, %56
%61 = load i32, ptr %5, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %5, align 4
br label %63
63: ; preds = %60, %55
%64 = call i32 (...) @getchar()
store i32 %64, ptr %4, align 4
%65 = load i32, ptr @EOF, align 4
%66 = icmp ne i32 %64, %65
br i1 %66, label %24, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %63
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %20
br label %67
67: ; preds = %.loopexit, %27
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %2, align 4
%69 = load i32, ptr %2, align 4
%70 = icmp sle i32 %69, 15
br i1 %70, label %.lr.ph7, label %105
.lr.ph7: ; preds = %67
br label %71
71: ; preds = %.lr.ph7, %100
%72 = load i32, ptr %2, align 4
%73 = icmp ne i32 %72, 15
br i1 %73, label %74, label %78
74: ; preds = %71
%75 = load i32, ptr %2, align 4
%76 = add nsw i32 %75, 1
%77 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %76)
br label %80
78: ; preds = %71
%79 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef 15)
br label %80
80: ; preds = %78, %74
store i32 0, ptr %3, align 4
%81 = load i32, ptr %3, align 4
%82 = load i32, ptr %2, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [16 x i32], ptr %8, i64 0, i64 %83
%85 = load i32, ptr %84, align 4
%86 = icmp slt i32 %81, %85
br i1 %86, label %.lr.ph4, label %98
.lr.ph4: ; preds = %80
br label %87
87: ; preds = %.lr.ph4, %89
%88 = call i32 @putchar(i8 noundef signext 35)
br label %89
89: ; preds = %87
%90 = load i32, ptr %3, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %3, align 4
%92 = load i32, ptr %3, align 4
%93 = load i32, ptr %2, align 4
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds [16 x i32], ptr %8, i64 0, i64 %94
%96 = load i32, ptr %95, align 4
%97 = icmp slt i32 %92, %96
br i1 %97, label %87, label %._crit_edge5, !llvm.loop !9
._crit_edge5: ; preds = %89
br label %98
98: ; preds = %._crit_edge5, %80
%99 = call i32 @putchar(i8 noundef signext 10)
br label %100
100: ; preds = %98
%101 = load i32, ptr %2, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %2, align 4
%103 = load i32, ptr %2, align 4
%104 = icmp sle i32 %103, 15
br i1 %104, label %71, label %._crit_edge8, !llvm.loop !10
._crit_edge8: ; preds = %100
br label %105
105: ; preds = %._crit_edge8, %67
%106 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %7, align 4
store i32 0, ptr %2, align 4
%107 = load i32, ptr %2, align 4
%108 = icmp sle i32 %107, 15
br i1 %108, label %.lr.ph10, label %127
.lr.ph10: ; preds = %105
br label %109
109: ; preds = %.lr.ph10, %122
%110 = load i32, ptr %2, align 4
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds [16 x i32], ptr %8, i64 0, i64 %111
%113 = load i32, ptr %112, align 4
%114 = load i32, ptr %7, align 4
%115 = icmp sgt i32 %113, %114
br i1 %115, label %116, label %121
116: ; preds = %109
%117 = load i32, ptr %2, align 4
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds [16 x i32], ptr %8, i64 0, i64 %118
%120 = load i32, ptr %119, align 4
store i32 %120, ptr %7, align 4
br label %121
121: ; preds = %116, %109
br label %122
122: ; preds = %121
%123 = load i32, ptr %2, align 4
%124 = add nsw i32 %123, 1
store i32 %124, ptr %2, align 4
%125 = load i32, ptr %2, align 4
%126 = icmp sle i32 %125, 15
br i1 %126, label %109, label %._crit_edge11, !llvm.loop !11
._crit_edge11: ; preds = %122
br label %127
127: ; preds = %._crit_edge11, %105
store i32 0, ptr %2, align 4
%128 = load i32, ptr %2, align 4
%129 = load i32, ptr %7, align 4
%130 = icmp slt i32 %128, %129
br i1 %130, label %.lr.ph16, label %165
.lr.ph16: ; preds = %127
br label %131
131: ; preds = %.lr.ph16, %159
%132 = load i32, ptr %7, align 4
%133 = load i32, ptr %2, align 4
%134 = sub nsw i32 %132, %133
%135 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %134)
store i32 0, ptr %3, align 4
%136 = load i32, ptr %3, align 4
%137 = icmp sle i32 %136, 15
br i1 %137, label %.lr.ph13, label %157
.lr.ph13: ; preds = %131
br label %138
138: ; preds = %.lr.ph13, %152
%139 = load i32, ptr %3, align 4
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds [16 x i32], ptr %8, i64 0, i64 %140
%142 = load i32, ptr %141, align 4
%143 = load i32, ptr %7, align 4
%144 = load i32, ptr %2, align 4
%145 = sub nsw i32 %143, %144
%146 = icmp sge i32 %142, %145
br i1 %146, label %147, label %149
147: ; preds = %138
%148 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %151
149: ; preds = %138
%150 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %151
151: ; preds = %149, %147
br label %152
152: ; preds = %151
%153 = load i32, ptr %3, align 4
%154 = add nsw i32 %153, 1
store i32 %154, ptr %3, align 4
%155 = load i32, ptr %3, align 4
%156 = icmp sle i32 %155, 15
br i1 %156, label %138, label %._crit_edge14, !llvm.loop !12
._crit_edge14: ; preds = %152
br label %157
157: ; preds = %._crit_edge14, %131
%158 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %159
159: ; preds = %157
%160 = load i32, ptr %2, align 4
%161 = add nsw i32 %160, 1
store i32 %161, ptr %2, align 4
%162 = load i32, ptr %2, align 4
%163 = load i32, ptr %7, align 4
%164 = icmp slt i32 %162, %163
br i1 %164, label %131, label %._crit_edge17, !llvm.loop !13
._crit_edge17: ; preds = %159
br label %165
165: ; preds = %._crit_edge17, %127
%166 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
store i32 0, ptr %2, align 4
%167 = load i32, ptr %2, align 4
%168 = icmp sle i32 %167, 15
br i1 %168, label %.lr.ph19, label %176
.lr.ph19: ; preds = %165
br label %169
169: ; preds = %.lr.ph19, %171
%170 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %171
171: ; preds = %169
%172 = load i32, ptr %2, align 4
%173 = add nsw i32 %172, 1
store i32 %173, ptr %2, align 4
%174 = load i32, ptr %2, align 4
%175 = icmp sle i32 %174, 15
br i1 %175, label %169, label %._crit_edge20, !llvm.loop !14
._crit_edge20: ; preds = %171
br label %176
176: ; preds = %._crit_edge20, %165
%177 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%178 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
store i32 0, ptr %2, align 4
%179 = load i32, ptr %2, align 4
%180 = icmp sle i32 %179, 15
br i1 %180, label %.lr.ph22, label %197
.lr.ph22: ; preds = %176
br label %181
181: ; preds = %.lr.ph22, %192
%182 = load i32, ptr %2, align 4
%183 = icmp ne i32 %182, 15
br i1 %183, label %184, label %188
184: ; preds = %181
%185 = load i32, ptr %2, align 4
%186 = add nsw i32 %185, 1
%187 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %186)
br label %191
188: ; preds = %181
%189 = load i32, ptr %2, align 4
%190 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %189)
br label %191
191: ; preds = %188, %184
br label %192
192: ; preds = %191
%193 = load i32, ptr %2, align 4
%194 = add nsw i32 %193, 1
store i32 %194, ptr %2, align 4
%195 = load i32, ptr %2, align 4
%196 = icmp sle i32 %195, 15
br i1 %196, label %181, label %._crit_edge23, !llvm.loop !15
._crit_edge23: ; preds = %192
br label %197
197: ; preds = %._crit_edge23, %176
%198 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%199 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %199
}
declare i32 @getchar(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
|
; ModuleID = '/tmp/tmpo393izhq.c'
source_filename = "/tmp/tmpo393izhq.c"
target datalayout = "e-m:e-p270: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/tmpo393izhq.c"
target datalayout = "e-m:e-p270: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/tmp8mm9xby2.c'
source_filename = "/tmp/tmp8mm9xby2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @base_convert(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
%9 = load i32, ptr %5, align 4
%10 = sub nsw i32 %9, 1
store i32 %10, ptr %8, align 4
br label %11
11: ; preds = %29, %3
%12 = load i32, ptr %8, align 4
%13 = icmp sge i32 %12, 0
br i1 %13, label %14, label %32
14: ; preds = %11
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %8, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i32, ptr %15, i64 %17
%19 = load i32, ptr %18, align 4
%20 = load i32, ptr %6, align 4
%21 = load i32, ptr %5, align 4
%22 = load i32, ptr %8, align 4
%23 = sub nsw i32 %21, %22
%24 = sub nsw i32 %23, 1
%25 = call i32 @pow(i32 noundef %20, i32 noundef %24)
%26 = mul nsw i32 %19, %25
%27 = load i32, ptr %7, align 4
%28 = add nsw i32 %27, %26
store i32 %28, ptr %7, align 4
br label %29
29: ; preds = %14
%30 = load i32, ptr %8, align 4
%31 = add nsw i32 %30, -1
store i32 %31, ptr %8, align 4
br label %11, !llvm.loop !6
32: ; preds = %11
%33 = load i32, ptr %7, align 4
%34 = call i32 @printf(ptr noundef @.str, i32 noundef %33)
ret void
}
declare i32 @pow(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8mm9xby2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @base_convert(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
%9 = load i32, ptr %5, align 4
%10 = sub nsw i32 %9, 1
store i32 %10, ptr %8, align 4
%11 = load i32, ptr %8, align 4
%12 = icmp sge i32 %11, 0
br i1 %12, label %.lr.ph, label %33
.lr.ph: ; preds = %3
br label %13
13: ; preds = %.lr.ph, %28
%14 = load ptr, ptr %4, align 8
%15 = load i32, ptr %8, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i32, ptr %14, i64 %16
%18 = load i32, ptr %17, align 4
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %8, align 4
%22 = sub nsw i32 %20, %21
%23 = sub nsw i32 %22, 1
%24 = call i32 @pow(i32 noundef %19, i32 noundef %23)
%25 = mul nsw i32 %18, %24
%26 = load i32, ptr %7, align 4
%27 = add nsw i32 %26, %25
store i32 %27, ptr %7, align 4
br label %28
28: ; preds = %13
%29 = load i32, ptr %8, align 4
%30 = add nsw i32 %29, -1
store i32 %30, ptr %8, align 4
%31 = load i32, ptr %8, align 4
%32 = icmp sge i32 %31, 0
br i1 %32, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %33
33: ; preds = %._crit_edge, %3
%34 = load i32, ptr %7, align 4
%35 = call i32 @printf(ptr noundef @.str, i32 noundef %34)
ret void
}
declare i32 @pow(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp949gqsag.c'
source_filename = "/tmp/tmp949gqsag.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @slaPlante(double noundef %0, double noundef %1, double noundef %2, i32 noundef %3, double noundef %4, double noundef %5, double noundef %6, double noundef %7, double noundef %8, double noundef %9, double noundef %10, double noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15) #0 {
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca i32, align 4
%21 = alloca double, align 8
%22 = alloca double, align 8
%23 = alloca double, align 8
%24 = alloca double, align 8
%25 = alloca double, align 8
%26 = alloca double, align 8
%27 = alloca double, align 8
%28 = alloca double, align 8
%29 = alloca ptr, align 8
%30 = alloca ptr, align 8
%31 = alloca ptr, align 8
%32 = alloca ptr, align 8
%33 = alloca [13 x double], align 16
store double %0, ptr %17, align 8
store double %1, ptr %18, align 8
store double %2, ptr %19, align 8
store i32 %3, ptr %20, align 4
store double %4, ptr %21, align 8
store double %5, ptr %22, align 8
store double %6, ptr %23, align 8
store double %7, ptr %24, align 8
store double %8, ptr %25, align 8
store double %9, ptr %26, align 8
store double %10, ptr %27, align 8
store double %11, ptr %28, align 8
store ptr %12, ptr %29, align 8
store ptr %13, ptr %30, align 8
store ptr %14, ptr %31, align 8
store ptr %15, ptr %32, align 8
%34 = load double, ptr %17, align 8
%35 = load i32, ptr %20, align 4
%36 = load double, ptr %21, align 8
%37 = load double, ptr %22, align 8
%38 = load double, ptr %23, align 8
%39 = load double, ptr %24, align 8
%40 = load double, ptr %25, align 8
%41 = load double, ptr %26, align 8
%42 = load double, ptr %27, align 8
%43 = load double, ptr %28, align 8
%44 = getelementptr inbounds [13 x double], ptr %33, i64 0, i64 0
%45 = load ptr, ptr %32, align 8
%46 = call i32 @slaEl2ue(double noundef %34, i32 noundef %35, double noundef %36, double noundef %37, double noundef %38, double noundef %39, double noundef %40, double noundef %41, double noundef %42, double noundef %43, ptr noundef %44, ptr noundef %45)
%47 = load ptr, ptr %32, align 8
%48 = load i32, ptr %47, align 4
%49 = icmp ne i32 %48, 0
br i1 %49, label %60, label %50
50: ; preds = %16
%51 = load double, ptr %17, align 8
%52 = load double, ptr %18, align 8
%53 = load double, ptr %19, align 8
%54 = getelementptr inbounds [13 x double], ptr %33, i64 0, i64 0
%55 = load ptr, ptr %29, align 8
%56 = load ptr, ptr %30, align 8
%57 = load ptr, ptr %31, align 8
%58 = load ptr, ptr %32, align 8
%59 = call i32 @slaPlantu(double noundef %51, double noundef %52, double noundef %53, ptr noundef %54, ptr noundef %55, ptr noundef %56, ptr noundef %57, ptr noundef %58)
br label %60
60: ; preds = %50, %16
ret void
}
declare i32 @slaEl2ue(double noundef, i32 noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, ptr noundef, ptr noundef) #1
declare i32 @slaPlantu(double noundef, double noundef, double noundef, 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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp949gqsag.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @slaPlante(double noundef %0, double noundef %1, double noundef %2, i32 noundef %3, double noundef %4, double noundef %5, double noundef %6, double noundef %7, double noundef %8, double noundef %9, double noundef %10, double noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15) #0 {
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca i32, align 4
%21 = alloca double, align 8
%22 = alloca double, align 8
%23 = alloca double, align 8
%24 = alloca double, align 8
%25 = alloca double, align 8
%26 = alloca double, align 8
%27 = alloca double, align 8
%28 = alloca double, align 8
%29 = alloca ptr, align 8
%30 = alloca ptr, align 8
%31 = alloca ptr, align 8
%32 = alloca ptr, align 8
%33 = alloca [13 x double], align 16
store double %0, ptr %17, align 8
store double %1, ptr %18, align 8
store double %2, ptr %19, align 8
store i32 %3, ptr %20, align 4
store double %4, ptr %21, align 8
store double %5, ptr %22, align 8
store double %6, ptr %23, align 8
store double %7, ptr %24, align 8
store double %8, ptr %25, align 8
store double %9, ptr %26, align 8
store double %10, ptr %27, align 8
store double %11, ptr %28, align 8
store ptr %12, ptr %29, align 8
store ptr %13, ptr %30, align 8
store ptr %14, ptr %31, align 8
store ptr %15, ptr %32, align 8
%34 = load double, ptr %17, align 8
%35 = load i32, ptr %20, align 4
%36 = load double, ptr %21, align 8
%37 = load double, ptr %22, align 8
%38 = load double, ptr %23, align 8
%39 = load double, ptr %24, align 8
%40 = load double, ptr %25, align 8
%41 = load double, ptr %26, align 8
%42 = load double, ptr %27, align 8
%43 = load double, ptr %28, align 8
%44 = getelementptr inbounds [13 x double], ptr %33, i64 0, i64 0
%45 = load ptr, ptr %32, align 8
%46 = call i32 @slaEl2ue(double noundef %34, i32 noundef %35, double noundef %36, double noundef %37, double noundef %38, double noundef %39, double noundef %40, double noundef %41, double noundef %42, double noundef %43, ptr noundef %44, ptr noundef %45)
%47 = load ptr, ptr %32, align 8
%48 = load i32, ptr %47, align 4
%49 = icmp ne i32 %48, 0
br i1 %49, label %60, label %50
50: ; preds = %16
%51 = load double, ptr %17, align 8
%52 = load double, ptr %18, align 8
%53 = load double, ptr %19, align 8
%54 = getelementptr inbounds [13 x double], ptr %33, i64 0, i64 0
%55 = load ptr, ptr %29, align 8
%56 = load ptr, ptr %30, align 8
%57 = load ptr, ptr %31, align 8
%58 = load ptr, ptr %32, align 8
%59 = call i32 @slaPlantu(double noundef %51, double noundef %52, double noundef %53, ptr noundef %54, ptr noundef %55, ptr noundef %56, ptr noundef %57, ptr noundef %58)
br label %60
60: ; preds = %50, %16
ret void
}
declare i32 @slaEl2ue(double noundef, i32 noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, ptr noundef, ptr noundef) #1
declare i32 @slaPlantu(double noundef, double noundef, double noundef, 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"}
|
; ModuleID = '/tmp/tmpoimy1xun.c'
source_filename = "/tmp/tmpoimy1xun.c"
target datalayout = "e-m:e-p270: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/tmpoimy1xun.c"
target datalayout = "e-m:e-p270: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/tmpo0hoziao.c'
source_filename = "/tmp/tmpo0hoziao.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"MVKL.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @C67_MVKL(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = call i32 @C67_asm(ptr noundef @.str, i32 noundef %5, i32 noundef %6, i32 noundef 0)
ret void
}
declare i32 @C67_asm(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/tmpo0hoziao.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"MVKL.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @C67_MVKL(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = call i32 @C67_asm(ptr noundef @.str, i32 noundef %5, i32 noundef %6, i32 noundef 0)
ret void
}
declare i32 @C67_asm(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/tmpkf_kvlqw.c'
source_filename = "/tmp/tmpkf_kvlqw.c"
target datalayout = "e-m:e-p270: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/tmpkf_kvlqw.c"
target datalayout = "e-m:e-p270: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/tmpw_l8fmtg.c'
source_filename = "/tmp/tmpw_l8fmtg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw_l8fmtg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1ohrl26j.c'
source_filename = "/tmp/tmp1ohrl26j.c"
target datalayout = "e-m:e-p270: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/tmp1ohrl26j.c"
target datalayout = "e-m:e-p270: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/tmpm8suyn1c.c'
source_filename = "/tmp/tmpm8suyn1c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"Fail to allocate memory!\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @allocMemory(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
store i64 %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%8 = load i64, ptr %4, align 8
%9 = load i64, ptr %5, align 8
%10 = mul i64 %8, %9
store i64 %10, ptr %7, align 8
%11 = load i64, ptr %7, align 8
%12 = call ptr @malloc(i64 noundef %11) #3
store ptr %12, ptr %6, align 8
%13 = load ptr, ptr %6, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %17, label %15
15: ; preds = %2
%16 = call i32 @logError(ptr noundef @.str)
store ptr null, ptr %3, align 8
br label %22
17: ; preds = %2
%18 = load ptr, ptr %6, align 8
%19 = load i64, ptr %7, align 8
%20 = call i32 @bzero(ptr noundef %18, i64 noundef %19)
%21 = load ptr, ptr %6, align 8
store ptr %21, ptr %3, align 8
br label %22
22: ; preds = %17, %15
%23 = load ptr, ptr %3, align 8
ret ptr %23
}
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #1
declare i32 @logError(ptr noundef) #2
declare i32 @bzero(ptr noundef, i64 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 = { allocsize(0) "frame-pointer"="all" "no-trapping-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 = { allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm8suyn1c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"Fail to allocate memory!\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @allocMemory(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
store i64 %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%8 = load i64, ptr %4, align 8
%9 = load i64, ptr %5, align 8
%10 = mul i64 %8, %9
store i64 %10, ptr %7, align 8
%11 = load i64, ptr %7, align 8
%12 = call ptr @malloc(i64 noundef %11) #3
store ptr %12, ptr %6, align 8
%13 = load ptr, ptr %6, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %17, label %15
15: ; preds = %2
%16 = call i32 @logError(ptr noundef @.str)
store ptr null, ptr %3, align 8
br label %22
17: ; preds = %2
%18 = load ptr, ptr %6, align 8
%19 = load i64, ptr %7, align 8
%20 = call i32 @bzero(ptr noundef %18, i64 noundef %19)
%21 = load ptr, ptr %6, align 8
store ptr %21, ptr %3, align 8
br label %22
22: ; preds = %17, %15
%23 = load ptr, ptr %3, align 8
ret ptr %23
}
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #1
declare i32 @logError(ptr noundef) #2
declare i32 @bzero(ptr noundef, i64 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 = { allocsize(0) "frame-pointer"="all" "no-trapping-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 = { allocsize(0) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwgcay3z_.c'
source_filename = "/tmp/tmpwgcay3z_.c"
target datalayout = "e-m:e-p270: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/tmpwgcay3z_.c"
target datalayout = "e-m:e-p270: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/tmp4l8velys.c'
source_filename = "/tmp/tmp4l8velys.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mygetline(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %27, %2
%8 = load i32, ptr %6, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %18
11: ; preds = %7
%12 = call i32 (...) @getchar()
store i32 %12, ptr %5, align 4
%13 = load i32, ptr @EOF, align 4
%14 = icmp ne i32 %12, %13
br i1 %14, label %15, label %18
15: ; preds = %11
%16 = load i32, ptr %5, align 4
%17 = icmp ne i32 %16, 10
br label %18
18: ; preds = %15, %11, %7
%19 = phi i1 [ false, %11 ], [ false, %7 ], [ %17, %15 ]
br i1 %19, label %20, label %30
20: ; preds = %18
%21 = load i32, ptr %5, align 4
%22 = trunc i32 %21 to i8
%23 = load ptr, ptr %3, align 8
%24 = load i32, ptr %6, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %23, i64 %25
store i8 %22, ptr %26, align 1
br label %27
27: ; preds = %20
%28 = load i32, ptr %6, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %6, align 4
br label %7, !llvm.loop !6
30: ; preds = %18
%31 = load i32, ptr %5, align 4
%32 = icmp eq i32 %31, 10
br i1 %32, label %33, label %41
33: ; preds = %30
%34 = load i32, ptr %5, align 4
%35 = trunc i32 %34 to i8
%36 = load ptr, ptr %3, align 8
%37 = load i32, ptr %6, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %6, align 4
%39 = sext i32 %37 to i64
%40 = getelementptr inbounds i8, ptr %36, i64 %39
store i8 %35, ptr %40, align 1
br label %41
41: ; preds = %33, %30
%42 = load ptr, ptr %3, align 8
%43 = load i32, ptr %6, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, ptr %42, i64 %44
store i8 0, ptr %45, align 1
%46 = load i32, ptr %6, align 4
ret i32 %46
}
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp4l8velys.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mygetline(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %27, %2
%8 = load i32, ptr %6, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %18
11: ; preds = %7
%12 = call i32 (...) @getchar()
store i32 %12, ptr %5, align 4
%13 = load i32, ptr @EOF, align 4
%14 = icmp ne i32 %12, %13
br i1 %14, label %15, label %18
15: ; preds = %11
%16 = load i32, ptr %5, align 4
%17 = icmp ne i32 %16, 10
br label %18
18: ; preds = %15, %11, %7
%19 = phi i1 [ false, %11 ], [ false, %7 ], [ %17, %15 ]
br i1 %19, label %20, label %30
20: ; preds = %18
%21 = load i32, ptr %5, align 4
%22 = trunc i32 %21 to i8
%23 = load ptr, ptr %3, align 8
%24 = load i32, ptr %6, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %23, i64 %25
store i8 %22, ptr %26, align 1
br label %27
27: ; preds = %20
%28 = load i32, ptr %6, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %6, align 4
br label %7, !llvm.loop !6
30: ; preds = %18
%31 = load i32, ptr %5, align 4
%32 = icmp eq i32 %31, 10
br i1 %32, label %33, label %41
33: ; preds = %30
%34 = load i32, ptr %5, align 4
%35 = trunc i32 %34 to i8
%36 = load ptr, ptr %3, align 8
%37 = load i32, ptr %6, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %6, align 4
%39 = sext i32 %37 to i64
%40 = getelementptr inbounds i8, ptr %36, i64 %39
store i8 %35, ptr %40, align 1
br label %41
41: ; preds = %33, %30
%42 = load ptr, ptr %3, align 8
%43 = load i32, ptr %6, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, ptr %42, i64 %44
store i8 0, ptr %45, align 1
%46 = load i32, ptr %6, align 4
ret i32 %46
}
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp5_c65shj.c'
source_filename = "/tmp/tmp5_c65shj.c"
target datalayout = "e-m:e-p270: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/tmp5_c65shj.c"
target datalayout = "e-m:e-p270: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_oiey8fq.c'
source_filename = "/tmp/tmp_oiey8fq.c"
target datalayout = "e-m:e-p270: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 [34 x i8] c"Starting..\0A Packets to send: %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c" Frame size: %d bytes (%d bits)\0A\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c" Requested BER: %.04f%%\0A\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c" Error burstsize: %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c" Linkutil for 100Mbit: %d%%\0A\00", align 1
@.str.5 = private unnamed_addr constant [26 x i8] c" IPG on SGMII: %d bits\0A\0A\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.8 = private unnamed_addr constant [12 x i8] c"\0A\0AFinished\0A\00", align 1
@.str.9 = private unnamed_addr constant [24 x i8] c" Total bits sent %llu\0A\00", align 1
@.str.10 = private unnamed_addr constant [20 x i8] c" Total bit errors\0A\00", align 1
@.str.11 = private unnamed_addr constant [21 x i8] c" in 100Mbit:%llu\0A\00", align 1
@.str.12 = private unnamed_addr constant [23 x i8] c" in 1000Mbits:%llu\0A\00", align 1
@.str.13 = private unnamed_addr constant [25 x i8] c" including idle:%llu\0A\00", align 1
@.str.14 = private unnamed_addr constant [22 x i8] c" Total frame errors\0A\00", align 1
@.str.15 = private unnamed_addr constant [24 x i8] c" in 1000Mbits:%llu\0A\0A\00", align 1
@.str.16 = private unnamed_addr constant [10 x i8] c"BLER(%%)\0A\00", align 1
@.str.17 = private unnamed_addr constant [17 x i8] c" 100Mbit:%.05f\0A\00", align 1
@.str.18 = private unnamed_addr constant [19 x i8] c" 1000Mbit:%.05f\0A\0A\00", align 1
@.str.19 = private unnamed_addr constant [9 x i8] c"BER(%%)\0A\00", align 1
@.str.20 = private unnamed_addr constant [18 x i8] c" 1000Mbit:%.05f\0A\00", align 1
@.str.21 = private unnamed_addr constant [24 x i8] c" Including idle:%.05f\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i64, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i64 0, ptr %2, align 8
store i64 0, ptr %3, align 8
store i64 0, ptr %4, align 8
store i64 0, ptr %5, align 8
store i64 0, ptr %6, align 8
store i64 0, ptr %7, align 8
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i64 0, ptr %10, align 8
store i32 0, ptr %11, align 4
store i32 0, ptr %12, align 4
%14 = load i32, ptr @stdout, align 4
%15 = call i32 @setbuf(i32 noundef %14, ptr noundef null)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 100000)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef 124, i32 noundef 992)
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef 1.000000e-02)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef 2)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef 20)
%21 = call i32 @lround(i32 noundef 48608)
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %21)
%23 = call i32 @time(ptr noundef null)
%24 = call i32 @srandom(i32 noundef %23)
br label %25
25: ; preds = %103, %0
%26 = load i64, ptr %10, align 8
%27 = add i64 %26, 1
store i64 %27, ptr %10, align 8
%28 = icmp ult i64 %26, 100000
br i1 %28, label %29, label %104
29: ; preds = %25
br label %30
30: ; preds = %64, %47, %39, %29
%31 = load i32, ptr %11, align 4
%32 = call i32 @lround(i32 noundef 48608)
%33 = add nsw i32 992, %32
%34 = icmp slt i32 %31, %33
br i1 %34, label %35, label %67
35: ; preds = %30
%36 = call i32 (...) @errorgen()
store i32 %36, ptr %12, align 4
%37 = load i32, ptr %12, align 4
%38 = icmp eq i32 %37, 0
br i1 %38, label %39, label %44
39: ; preds = %35
%40 = load i32, ptr %11, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %11, align 4
%42 = load i64, ptr %6, align 8
%43 = add i64 %42, 1
store i64 %43, ptr %6, align 8
br label %30, !llvm.loop !6
44: ; preds = %35
%45 = load i32, ptr %11, align 4
%46 = icmp sge i32 %45, 9920
br i1 %46, label %47, label %50
47: ; preds = %44
%48 = load i32, ptr %11, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %11, align 4
br label %30, !llvm.loop !6
50: ; preds = %44
%51 = load i32, ptr %11, align 4
%52 = icmp slt i32 %51, 992
br i1 %52, label %53, label %56
53: ; preds = %50
%54 = load i32, ptr %9, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %9, align 4
br label %56
56: ; preds = %53, %50
%57 = load i32, ptr %11, align 4
%58 = srem i32 %57, 80
store i32 %58, ptr %13, align 4
%59 = load i32, ptr %13, align 4
%60 = icmp sle i32 %59, 7
br i1 %60, label %61, label %64
61: ; preds = %56
%62 = load i32, ptr %8, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %8, align 4
br label %64
64: ; preds = %61, %56
%65 = load i32, ptr %11, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %11, align 4
br label %30, !llvm.loop !6
67: ; preds = %30
%68 = load i32, ptr %8, align 4
%69 = sext i32 %68 to i64
%70 = load i64, ptr %4, align 8
%71 = add i64 %70, %69
store i64 %71, ptr %4, align 8
%72 = load i32, ptr %9, align 4
%73 = sext i32 %72 to i64
%74 = load i64, ptr %5, align 8
%75 = add i64 %74, %73
store i64 %75, ptr %5, align 8
%76 = load i32, ptr %8, align 4
%77 = icmp ne i32 %76, 0
br i1 %77, label %78, label %81
78: ; preds = %67
%79 = load i64, ptr %2, align 8
%80 = add i64 %79, 1
store i64 %80, ptr %2, align 8
br label %81
81: ; preds = %78, %67
%82 = load i32, ptr %9, align 4
%83 = icmp ne i32 %82, 0
br i1 %83, label %84, label %87
84: ; preds = %81
%85 = load i64, ptr %3, align 8
%86 = add i64 %85, 1
store i64 %86, ptr %3, align 8
br label %87
87: ; preds = %84, %81
%88 = load i32, ptr %11, align 4
%89 = sext i32 %88 to i64
%90 = load i64, ptr %7, align 8
%91 = add i64 %90, %89
store i64 %91, ptr %7, align 8
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %11, align 4
%92 = load i64, ptr %10, align 8
%93 = urem i64 %92, 1000
%94 = icmp eq i64 %93, 0
br i1 %94, label %95, label %97
95: ; preds = %87
%96 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %97
97: ; preds = %95, %87
%98 = load i64, ptr %10, align 8
%99 = urem i64 %98, 100000
%100 = icmp eq i64 %99, 0
br i1 %100, label %101, label %103
101: ; preds = %97
%102 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %103
103: ; preds = %101, %97
br label %25, !llvm.loop !8
104: ; preds = %25
%105 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%106 = load i64, ptr %7, align 8
%107 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i64 noundef %106)
%108 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%109 = load i64, ptr %4, align 8
%110 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i64 noundef %109)
%111 = load i64, ptr %5, align 8
%112 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i64 noundef %111)
%113 = load i64, ptr %7, align 8
%114 = load i64, ptr %6, align 8
%115 = sub i64 %113, %114
%116 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i64 noundef %115)
%117 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
%118 = load i64, ptr %2, align 8
%119 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i64 noundef %118)
%120 = load i64, ptr %3, align 8
%121 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i64 noundef %120)
%122 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
%123 = load i64, ptr %2, align 8
%124 = uitofp i64 %123 to float
%125 = fdiv float %124, 1.000000e+05
%126 = fmul float %125, 1.000000e+02
%127 = fpext float %126 to double
%128 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, double noundef %127)
%129 = load i64, ptr %3, align 8
%130 = uitofp i64 %129 to float
%131 = fdiv float %130, 1.000000e+05
%132 = fmul float %131, 1.000000e+02
%133 = fpext float %132 to double
%134 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef %133)
%135 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
%136 = load i64, ptr %4, align 8
%137 = uitofp i64 %136 to float
%138 = fdiv float %137, 9.920000e+07
%139 = fmul float %138, 1.000000e+02
%140 = fpext float %139 to double
%141 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, double noundef %140)
%142 = load i64, ptr %5, align 8
%143 = uitofp i64 %142 to float
%144 = fdiv float %143, 9.920000e+07
%145 = fmul float %144, 1.000000e+02
%146 = fpext float %145 to double
%147 = call i32 (ptr, ...) @printf(ptr noundef @.str.20, double noundef %146)
%148 = load i64, ptr %6, align 8
%149 = uitofp i64 %148 to float
%150 = load i64, ptr %7, align 8
%151 = uitofp i64 %150 to float
%152 = fdiv float %149, %151
%153 = fpext float %152 to double
%154 = fsub double 1.000000e+00, %153
%155 = fmul double %154, 1.000000e+02
%156 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, double noundef %155)
%157 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %157
}
declare i32 @setbuf(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @lround(i32 noundef) #1
declare i32 @srandom(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @errorgen(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp_oiey8fq.c"
target datalayout = "e-m:e-p270: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 [34 x i8] c"Starting..\0A Packets to send: %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c" Frame size: %d bytes (%d bits)\0A\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c" Requested BER: %.04f%%\0A\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c" Error burstsize: %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c" Linkutil for 100Mbit: %d%%\0A\00", align 1
@.str.5 = private unnamed_addr constant [26 x i8] c" IPG on SGMII: %d bits\0A\0A\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.8 = private unnamed_addr constant [12 x i8] c"\0A\0AFinished\0A\00", align 1
@.str.9 = private unnamed_addr constant [24 x i8] c" Total bits sent %llu\0A\00", align 1
@.str.10 = private unnamed_addr constant [20 x i8] c" Total bit errors\0A\00", align 1
@.str.11 = private unnamed_addr constant [21 x i8] c" in 100Mbit:%llu\0A\00", align 1
@.str.12 = private unnamed_addr constant [23 x i8] c" in 1000Mbits:%llu\0A\00", align 1
@.str.13 = private unnamed_addr constant [25 x i8] c" including idle:%llu\0A\00", align 1
@.str.14 = private unnamed_addr constant [22 x i8] c" Total frame errors\0A\00", align 1
@.str.15 = private unnamed_addr constant [24 x i8] c" in 1000Mbits:%llu\0A\0A\00", align 1
@.str.16 = private unnamed_addr constant [10 x i8] c"BLER(%%)\0A\00", align 1
@.str.17 = private unnamed_addr constant [17 x i8] c" 100Mbit:%.05f\0A\00", align 1
@.str.18 = private unnamed_addr constant [19 x i8] c" 1000Mbit:%.05f\0A\0A\00", align 1
@.str.19 = private unnamed_addr constant [9 x i8] c"BER(%%)\0A\00", align 1
@.str.20 = private unnamed_addr constant [18 x i8] c" 1000Mbit:%.05f\0A\00", align 1
@.str.21 = private unnamed_addr constant [24 x i8] c" Including idle:%.05f\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i64, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i64 0, ptr %2, align 8
store i64 0, ptr %3, align 8
store i64 0, ptr %4, align 8
store i64 0, ptr %5, align 8
store i64 0, ptr %6, align 8
store i64 0, ptr %7, align 8
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i64 0, ptr %10, align 8
store i32 0, ptr %11, align 4
store i32 0, ptr %12, align 4
%14 = load i32, ptr @stdout, align 4
%15 = call i32 @setbuf(i32 noundef %14, ptr noundef null)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 100000)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef 124, i32 noundef 992)
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef 1.000000e-02)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef 2)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef 20)
%21 = call i32 @lround(i32 noundef 48608)
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %21)
%23 = call i32 @time(ptr noundef null)
%24 = call i32 @srandom(i32 noundef %23)
%25 = load i64, ptr %10, align 8
%26 = add i64 %25, 1
store i64 %26, ptr %10, align 8
%27 = icmp ult i64 %25, 100000
br i1 %27, label %.lr.ph2, label %109
.lr.ph2: ; preds = %0
br label %28
28: ; preds = %.lr.ph2, %105
%29 = load i32, ptr %11, align 4
%30 = call i32 @lround(i32 noundef 48608)
%31 = add nsw i32 992, %30
%32 = icmp slt i32 %29, %31
br i1 %32, label %.lr.ph, label %69
.lr.ph: ; preds = %28
br label %33
33: ; preds = %.lr.ph, %.backedge
%34 = call i32 (...) @errorgen()
store i32 %34, ptr %12, align 4
%35 = load i32, ptr %12, align 4
%36 = icmp eq i32 %35, 0
br i1 %36, label %37, label %46
37: ; preds = %33
%38 = load i32, ptr %11, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %11, align 4
%40 = load i64, ptr %6, align 8
%41 = add i64 %40, 1
store i64 %41, ptr %6, align 8
br label %.backedge
.backedge: ; preds = %37, %49, %66
%42 = load i32, ptr %11, align 4
%43 = call i32 @lround(i32 noundef 48608)
%44 = add nsw i32 992, %43
%45 = icmp slt i32 %42, %44
br i1 %45, label %33, label %._crit_edge, !llvm.loop !6
46: ; preds = %33
%47 = load i32, ptr %11, align 4
%48 = icmp sge i32 %47, 9920
br i1 %48, label %49, label %52
49: ; preds = %46
%50 = load i32, ptr %11, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %11, align 4
br label %.backedge
52: ; preds = %46
%53 = load i32, ptr %11, align 4
%54 = icmp slt i32 %53, 992
br i1 %54, label %55, label %58
55: ; preds = %52
%56 = load i32, ptr %9, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %9, align 4
br label %58
58: ; preds = %55, %52
%59 = load i32, ptr %11, align 4
%60 = srem i32 %59, 80
store i32 %60, ptr %13, align 4
%61 = load i32, ptr %13, align 4
%62 = icmp sle i32 %61, 7
br i1 %62, label %63, label %66
63: ; preds = %58
%64 = load i32, ptr %8, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %8, align 4
br label %66
66: ; preds = %63, %58
%67 = load i32, ptr %11, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %11, align 4
br label %.backedge
._crit_edge: ; preds = %.backedge
br label %69
69: ; preds = %._crit_edge, %28
%70 = load i32, ptr %8, align 4
%71 = sext i32 %70 to i64
%72 = load i64, ptr %4, align 8
%73 = add i64 %72, %71
store i64 %73, ptr %4, align 8
%74 = load i32, ptr %9, align 4
%75 = sext i32 %74 to i64
%76 = load i64, ptr %5, align 8
%77 = add i64 %76, %75
store i64 %77, ptr %5, align 8
%78 = load i32, ptr %8, align 4
%79 = icmp ne i32 %78, 0
br i1 %79, label %80, label %83
80: ; preds = %69
%81 = load i64, ptr %2, align 8
%82 = add i64 %81, 1
store i64 %82, ptr %2, align 8
br label %83
83: ; preds = %80, %69
%84 = load i32, ptr %9, align 4
%85 = icmp ne i32 %84, 0
br i1 %85, label %86, label %89
86: ; preds = %83
%87 = load i64, ptr %3, align 8
%88 = add i64 %87, 1
store i64 %88, ptr %3, align 8
br label %89
89: ; preds = %86, %83
%90 = load i32, ptr %11, align 4
%91 = sext i32 %90 to i64
%92 = load i64, ptr %7, align 8
%93 = add i64 %92, %91
store i64 %93, ptr %7, align 8
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %11, align 4
%94 = load i64, ptr %10, align 8
%95 = urem i64 %94, 1000
%96 = icmp eq i64 %95, 0
br i1 %96, label %97, label %99
97: ; preds = %89
%98 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %99
99: ; preds = %97, %89
%100 = load i64, ptr %10, align 8
%101 = urem i64 %100, 100000
%102 = icmp eq i64 %101, 0
br i1 %102, label %103, label %105
103: ; preds = %99
%104 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %105
105: ; preds = %103, %99
%106 = load i64, ptr %10, align 8
%107 = add i64 %106, 1
store i64 %107, ptr %10, align 8
%108 = icmp ult i64 %106, 100000
br i1 %108, label %28, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %105
br label %109
109: ; preds = %._crit_edge3, %0
%110 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%111 = load i64, ptr %7, align 8
%112 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i64 noundef %111)
%113 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%114 = load i64, ptr %4, align 8
%115 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i64 noundef %114)
%116 = load i64, ptr %5, align 8
%117 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i64 noundef %116)
%118 = load i64, ptr %7, align 8
%119 = load i64, ptr %6, align 8
%120 = sub i64 %118, %119
%121 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i64 noundef %120)
%122 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
%123 = load i64, ptr %2, align 8
%124 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i64 noundef %123)
%125 = load i64, ptr %3, align 8
%126 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i64 noundef %125)
%127 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
%128 = load i64, ptr %2, align 8
%129 = uitofp i64 %128 to float
%130 = fdiv float %129, 1.000000e+05
%131 = fmul float %130, 1.000000e+02
%132 = fpext float %131 to double
%133 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, double noundef %132)
%134 = load i64, ptr %3, align 8
%135 = uitofp i64 %134 to float
%136 = fdiv float %135, 1.000000e+05
%137 = fmul float %136, 1.000000e+02
%138 = fpext float %137 to double
%139 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef %138)
%140 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
%141 = load i64, ptr %4, align 8
%142 = uitofp i64 %141 to float
%143 = fdiv float %142, 9.920000e+07
%144 = fmul float %143, 1.000000e+02
%145 = fpext float %144 to double
%146 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, double noundef %145)
%147 = load i64, ptr %5, align 8
%148 = uitofp i64 %147 to float
%149 = fdiv float %148, 9.920000e+07
%150 = fmul float %149, 1.000000e+02
%151 = fpext float %150 to double
%152 = call i32 (ptr, ...) @printf(ptr noundef @.str.20, double noundef %151)
%153 = load i64, ptr %6, align 8
%154 = uitofp i64 %153 to float
%155 = load i64, ptr %7, align 8
%156 = uitofp i64 %155 to float
%157 = fdiv float %154, %156
%158 = fpext float %157 to double
%159 = fsub double 1.000000e+00, %158
%160 = fmul double %159, 1.000000e+02
%161 = call i32 (ptr, ...) @printf(ptr noundef @.str.21, double noundef %160)
%162 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %162
}
declare i32 @setbuf(i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @lround(i32 noundef) #1
declare i32 @srandom(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @errorgen(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpc939mlfx.c'
source_filename = "/tmp/tmpc939mlfx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"Result %i^2 - 4*%i*%i = %i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 5, ptr %2, align 4
store i32 4, ptr %3, align 4
store i32 3, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = mul nsw i32 %6, %7
%9 = load i32, ptr %2, align 4
%10 = mul nsw i32 4, %9
%11 = load i32, ptr %4, align 4
%12 = mul nsw i32 %10, %11
%13 = sub nsw i32 %8, %12
store i32 %13, ptr %5, align 4
%14 = load i32, ptr %3, align 4
%15 = load i32, ptr %2, align 4
%16 = load i32, ptr %4, align 4
%17 = load i32, ptr %5, align 4
%18 = call i32 @printf(ptr noundef @.str, i32 noundef %14, i32 noundef %15, i32 noundef %16, i32 noundef %17)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc939mlfx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"Result %i^2 - 4*%i*%i = %i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 5, ptr %2, align 4
store i32 4, ptr %3, align 4
store i32 3, ptr %4, align 4
%6 = load i32, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = mul nsw i32 %6, %7
%9 = load i32, ptr %2, align 4
%10 = mul nsw i32 4, %9
%11 = load i32, ptr %4, align 4
%12 = mul nsw i32 %10, %11
%13 = sub nsw i32 %8, %12
store i32 %13, ptr %5, align 4
%14 = load i32, ptr %3, align 4
%15 = load i32, ptr %2, align 4
%16 = load i32, ptr %4, align 4
%17 = load i32, ptr %5, align 4
%18 = call i32 @printf(ptr noundef @.str, i32 noundef %14, i32 noundef %15, i32 noundef %16, i32 noundef %17)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpc4wn361f.c'
source_filename = "/tmp/tmpc4wn361f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @itob(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%10 = load i32, ptr %4, align 4
store i32 %10, ptr %9, align 4
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %3
%13 = load i32, ptr %4, align 4
%14 = sub nsw i32 0, %13
store i32 %14, ptr %4, align 4
br label %15
15: ; preds = %12, %3
store i32 0, ptr %7, align 4
br label %16
16: ; preds = %37, %15
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %6, align 4
%19 = srem i32 %17, %18
store i32 %19, ptr %8, align 4
%20 = load i32, ptr %8, align 4
%21 = icmp sle i32 %20, 9
br i1 %21, label %22, label %25
22: ; preds = %16
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %23, 48
br label %29
25: ; preds = %16
%26 = load i32, ptr %8, align 4
%27 = add nsw i32 %26, 97
%28 = sub nsw i32 %27, 10
br label %29
29: ; preds = %25, %22
%30 = phi i32 [ %24, %22 ], [ %28, %25 ]
%31 = trunc i32 %30 to i8
%32 = load ptr, ptr %5, align 8
%33 = load i32, ptr %7, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %7, align 4
%35 = sext i32 %33 to i64
%36 = getelementptr inbounds i8, ptr %32, i64 %35
store i8 %31, ptr %36, align 1
br label %37
37: ; preds = %29
%38 = load i32, ptr %6, align 4
%39 = load i32, ptr %4, align 4
%40 = sdiv i32 %39, %38
store i32 %40, ptr %4, align 4
%41 = icmp sgt i32 %40, 0
br i1 %41, label %16, label %42, !llvm.loop !6
42: ; preds = %37
%43 = load i32, ptr %9, align 4
%44 = icmp slt i32 %43, 0
br i1 %44, label %45, label %51
45: ; preds = %42
%46 = load ptr, ptr %5, align 8
%47 = load i32, ptr %7, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %7, align 4
%49 = sext i32 %47 to i64
%50 = getelementptr inbounds i8, ptr %46, i64 %49
store i8 45, ptr %50, align 1
br label %51
51: ; preds = %45, %42
%52 = load ptr, ptr %5, align 8
%53 = load i32, ptr %7, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %52, i64 %54
store i8 0, ptr %55, align 1
%56 = load ptr, ptr %5, align 8
%57 = call i32 @reverse(ptr noundef %56)
ret void
}
declare i32 @reverse(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/tmpc4wn361f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @itob(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%10 = load i32, ptr %4, align 4
store i32 %10, ptr %9, align 4
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %3
%13 = load i32, ptr %4, align 4
%14 = sub nsw i32 0, %13
store i32 %14, ptr %4, align 4
br label %15
15: ; preds = %12, %3
store i32 0, ptr %7, align 4
br label %16
16: ; preds = %37, %15
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %6, align 4
%19 = srem i32 %17, %18
store i32 %19, ptr %8, align 4
%20 = load i32, ptr %8, align 4
%21 = icmp sle i32 %20, 9
br i1 %21, label %22, label %25
22: ; preds = %16
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %23, 48
br label %29
25: ; preds = %16
%26 = load i32, ptr %8, align 4
%27 = add nsw i32 %26, 97
%28 = sub nsw i32 %27, 10
br label %29
29: ; preds = %25, %22
%30 = phi i32 [ %24, %22 ], [ %28, %25 ]
%31 = trunc i32 %30 to i8
%32 = load ptr, ptr %5, align 8
%33 = load i32, ptr %7, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %7, align 4
%35 = sext i32 %33 to i64
%36 = getelementptr inbounds i8, ptr %32, i64 %35
store i8 %31, ptr %36, align 1
br label %37
37: ; preds = %29
%38 = load i32, ptr %6, align 4
%39 = load i32, ptr %4, align 4
%40 = sdiv i32 %39, %38
store i32 %40, ptr %4, align 4
%41 = icmp sgt i32 %40, 0
br i1 %41, label %16, label %42, !llvm.loop !6
42: ; preds = %37
%43 = load i32, ptr %9, align 4
%44 = icmp slt i32 %43, 0
br i1 %44, label %45, label %51
45: ; preds = %42
%46 = load ptr, ptr %5, align 8
%47 = load i32, ptr %7, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %7, align 4
%49 = sext i32 %47 to i64
%50 = getelementptr inbounds i8, ptr %46, i64 %49
store i8 45, ptr %50, align 1
br label %51
51: ; preds = %45, %42
%52 = load ptr, ptr %5, align 8
%53 = load i32, ptr %7, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %52, i64 %54
store i8 0, ptr %55, align 1
%56 = load ptr, ptr %5, align 8
%57 = call i32 @reverse(ptr noundef %56)
ret void
}
declare i32 @reverse(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/tmpl6uojs95.c'
source_filename = "/tmp/tmpl6uojs95.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"0123456789ABCDEF\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @hexdup(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%9 = load i64, ptr %5, align 8
%10 = mul i64 %9, 2
%11 = add i64 %10, 1
%12 = call ptr @malloc(i64 noundef %11)
store ptr %12, ptr %6, align 8
%13 = load ptr, ptr %6, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %16, label %15
15: ; preds = %2
store ptr null, ptr %3, align 8
br label %49
16: ; preds = %2
%17 = load ptr, ptr %6, align 8
store ptr %17, ptr %7, align 8
store i64 0, ptr %8, align 8
br label %18
18: ; preds = %43, %16
%19 = load i64, ptr %8, align 8
%20 = load i64, ptr %5, align 8
%21 = icmp ult i64 %19, %20
br i1 %21, label %22, label %46
22: ; preds = %18
%23 = load ptr, ptr %4, align 8
%24 = load i64, ptr %8, align 8
%25 = getelementptr inbounds i32, ptr %23, i64 %24
%26 = load i32, ptr %25, align 4
%27 = ashr i32 %26, 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [17 x i8], ptr @.str, i64 0, i64 %28
%30 = load i8, ptr %29, align 1
%31 = load ptr, ptr %7, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 1
store ptr %32, ptr %7, align 8
store i8 %30, ptr %31, align 1
%33 = load ptr, ptr %4, align 8
%34 = load i64, ptr %8, align 8
%35 = getelementptr inbounds i32, ptr %33, i64 %34
%36 = load i32, ptr %35, align 4
%37 = and i32 %36, 15
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [17 x i8], ptr @.str, i64 0, i64 %38
%40 = load i8, ptr %39, 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
br label %43
43: ; preds = %22
%44 = load i64, ptr %8, align 8
%45 = add i64 %44, 1
store i64 %45, ptr %8, align 8
br label %18, !llvm.loop !6
46: ; preds = %18
%47 = load ptr, ptr %7, align 8
store i8 0, ptr %47, align 1
%48 = load ptr, ptr %6, align 8
store ptr %48, ptr %3, align 8
br label %49
49: ; preds = %46, %15
%50 = load ptr, ptr %3, align 8
ret ptr %50
}
declare ptr @malloc(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl6uojs95.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"0123456789ABCDEF\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @hexdup(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%9 = load i64, ptr %5, align 8
%10 = mul i64 %9, 2
%11 = add i64 %10, 1
%12 = call ptr @malloc(i64 noundef %11)
store ptr %12, ptr %6, align 8
%13 = load ptr, ptr %6, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %16, label %15
15: ; preds = %2
store ptr null, ptr %3, align 8
br label %51
16: ; preds = %2
%17 = load ptr, ptr %6, align 8
store ptr %17, ptr %7, align 8
store i64 0, ptr %8, align 8
%18 = load i64, ptr %8, align 8
%19 = load i64, ptr %5, align 8
%20 = icmp ult i64 %18, %19
br i1 %20, label %.lr.ph, label %48
.lr.ph: ; preds = %16
br label %21
21: ; preds = %.lr.ph, %42
%22 = load ptr, ptr %4, align 8
%23 = load i64, ptr %8, align 8
%24 = getelementptr inbounds i32, ptr %22, i64 %23
%25 = load i32, ptr %24, align 4
%26 = ashr i32 %25, 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [17 x i8], ptr @.str, i64 0, i64 %27
%29 = load i8, ptr %28, align 1
%30 = load ptr, ptr %7, align 8
%31 = getelementptr inbounds i8, ptr %30, i32 1
store ptr %31, ptr %7, align 8
store i8 %29, ptr %30, align 1
%32 = load ptr, ptr %4, align 8
%33 = load i64, ptr %8, align 8
%34 = getelementptr inbounds i32, ptr %32, i64 %33
%35 = load i32, ptr %34, align 4
%36 = and i32 %35, 15
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [17 x i8], ptr @.str, i64 0, i64 %37
%39 = load i8, ptr %38, align 1
%40 = load ptr, ptr %7, align 8
%41 = getelementptr inbounds i8, ptr %40, i32 1
store ptr %41, ptr %7, align 8
store i8 %39, ptr %40, align 1
br label %42
42: ; preds = %21
%43 = load i64, ptr %8, align 8
%44 = add i64 %43, 1
store i64 %44, ptr %8, align 8
%45 = load i64, ptr %8, align 8
%46 = load i64, ptr %5, align 8
%47 = icmp ult i64 %45, %46
br i1 %47, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %42
br label %48
48: ; preds = %._crit_edge, %16
%49 = load ptr, ptr %7, align 8
store i8 0, ptr %49, align 1
%50 = load ptr, ptr %6, align 8
store ptr %50, ptr %3, align 8
br label %51
51: ; preds = %48, %15
%52 = load ptr, ptr %3, align 8
ret ptr %52
}
declare ptr @malloc(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpcjl4kzue.c'
source_filename = "/tmp/tmpcjl4kzue.c"
target datalayout = "e-m:e-p270: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/tmpcjl4kzue.c"
target datalayout = "e-m:e-p270: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/tmpoefl4dyz.c'
source_filename = "/tmp/tmpoefl4dyz.c"
target datalayout = "e-m:e-p270: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/tmpoefl4dyz.c"
target datalayout = "e-m:e-p270: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/tmprjq_2_nr.c'
source_filename = "/tmp/tmprjq_2_nr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local x86_fp80 @__cqabs(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 x86_fp80 @__qhypot(x86_fp80 noundef %5, x86_fp80 noundef %6)
ret x86_fp80 %7
}
declare x86_fp80 @__qhypot(x86_fp80 noundef, x86_fp80 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmprjq_2_nr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local x86_fp80 @__cqabs(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 x86_fp80 @__qhypot(x86_fp80 noundef %5, x86_fp80 noundef %6)
ret x86_fp80 %7
}
declare x86_fp80 @__qhypot(x86_fp80 noundef, x86_fp80 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwy4nbb8w.c'
source_filename = "/tmp/tmpwy4nbb8w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test_mm_castsi128_pd(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 @_mm_castsi128_pd(i32 noundef %3)
ret i32 %4
}
declare i32 @_mm_castsi128_pd(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/tmpwy4nbb8w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test_mm_castsi128_pd(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 @_mm_castsi128_pd(i32 noundef %3)
ret i32 %4
}
declare i32 @_mm_castsi128_pd(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/tmpumddfr9g.c'
source_filename = "/tmp/tmpumddfr9g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @video_init() #0 {
%1 = call i32 (...) @video_open()
%2 = call i32 (...) @video_set_format()
%3 = call i32 (...) @buffer_init()
%4 = call i32 (...) @video_streamon()
ret void
}
declare i32 @video_open(...) #1
declare i32 @video_set_format(...) #1
declare i32 @buffer_init(...) #1
declare i32 @video_streamon(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpumddfr9g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @video_init() #0 {
%1 = call i32 (...) @video_open()
%2 = call i32 (...) @video_set_format()
%3 = call i32 (...) @buffer_init()
%4 = call i32 (...) @video_streamon()
ret void
}
declare i32 @video_open(...) #1
declare i32 @video_set_format(...) #1
declare i32 @buffer_init(...) #1
declare i32 @video_streamon(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpuzmjy0bh.c'
source_filename = "/tmp/tmpuzmjy0bh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"\0A#### Jugada n\C2\BA %d #### \0A\00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"\0AIntrodueix una fila (1-%d): \0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [43 x i8] c"\0AFila incorrecta. Ha de ser entre (1-%d) \0A\00", align 1
@.str.4 = private unnamed_addr constant [34 x i8] c"\0AIntrodueix una columna (1-%d): \0A\00", align 1
@.str.5 = private unnamed_addr constant [46 x i8] c"\0AColumna incorrecta. Ha de ser entre (1-%d) \0A\00", align 1
@.str.6 = private unnamed_addr constant [9 x i8] c"\0AAigua!!\00", align 1
@.str.7 = private unnamed_addr constant [7 x i8] c"\0ATocat\00", align 1
@.str.8 = private unnamed_addr constant [13 x i8] c" i afonat!!\0A\00", align 1
@.str.9 = private unnamed_addr constant [24 x i8] c"T'has costat %d intents\00", align 1
@.str.10 = private unnamed_addr constant [4 x i8] c"!!\0A\00", align 1
@.str.11 = private unnamed_addr constant [37 x i8] c"\0AJa has disparat aqu\C3\AD i hi ha aigua\00", align 1
@.str.12 = private unnamed_addr constant [40 x i8] c"\0AJa has disparat aqu\C3\AD i hi ha un barco\00", align 1
@.str.13 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.14 = private unnamed_addr constant [3 x i8] c"? \00", align 1
@.str.15 = private unnamed_addr constant [3 x i8] c"~ \00", align 1
@.str.16 = private unnamed_addr constant [3 x i8] c"X \00", align 1
@.str.17 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [5 x [5 x i32]], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 100, i1 false)
store i32 0, ptr %9, align 4
store i32 0, ptr %15, align 4
%17 = call i32 @time(i32 noundef 0)
%18 = call i32 @srandom(i32 noundef %17)
br label %19
19: ; preds = %131, %2
%20 = call i32 (...) @random()
%21 = srem i32 %20, 5
store i32 %21, ptr %10, align 4
%22 = call i32 (...) @random()
%23 = srem i32 %22, 5
store i32 %23, ptr %11, align 4
%24 = call i32 (...) @random()
%25 = srem i32 %24, 4
store i32 %25, ptr %14, align 4
store i32 1, ptr %8, align 4
br label %26
26: ; preds = %129, %19
%27 = load i32, ptr %15, align 4
%28 = icmp ne i32 %27, 0
br i1 %28, label %32, label %29
29: ; preds = %26
%30 = load i32, ptr %8, align 4
%31 = icmp sle i32 %30, 4
br label %32
32: ; preds = %29, %26
%33 = phi i1 [ false, %26 ], [ %31, %29 ]
br i1 %33, label %34, label %130
34: ; preds = %32
%35 = load i32, ptr %14, align 4
switch i32 %35, label %120 [
i32 0, label %36
i32 1, label %57
i32 2, label %78
i32 3, label %99
]
36: ; preds = %34
%37 = load i32, ptr %11, align 4
%38 = icmp slt i32 %37, 2
br i1 %38, label %39, label %56
39: ; preds = %36
store i32 0, ptr %7, align 4
br label %40
40: ; preds = %52, %39
%41 = load i32, ptr %7, align 4
%42 = icmp slt i32 %41, 4
br i1 %42, label %43, label %55
43: ; preds = %40
%44 = load i32, ptr %10, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [5 x [5 x i32]], ptr %6, i64 0, i64 %45
%47 = load i32, ptr %11, align 4
%48 = load i32, ptr %7, align 4
%49 = add nsw i32 %47, %48
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [5 x i32], ptr %46, i64 0, i64 %50
store i32 1, ptr %51, align 4
br label %52
52: ; preds = %43
%53 = load i32, ptr %7, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %7, align 4
br label %40, !llvm.loop !6
55: ; preds = %40
store i32 1, ptr %15, align 4
br label %56
56: ; preds = %55, %36
br label %120
57: ; preds = %34
%58 = load i32, ptr %10, align 4
%59 = icmp slt i32 %58, 2
br i1 %59, label %60, label %77
60: ; preds = %57
store i32 0, ptr %7, align 4
br label %61
61: ; preds = %73, %60
%62 = load i32, ptr %7, align 4
%63 = icmp slt i32 %62, 4
br i1 %63, label %64, label %76
64: ; preds = %61
%65 = load i32, ptr %10, align 4
%66 = load i32, ptr %7, align 4
%67 = add nsw i32 %65, %66
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [5 x [5 x i32]], ptr %6, i64 0, i64 %68
%70 = load i32, ptr %11, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [5 x i32], ptr %69, i64 0, i64 %71
store i32 1, ptr %72, align 4
br label %73
73: ; preds = %64
%74 = load i32, ptr %7, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %7, align 4
br label %61, !llvm.loop !8
76: ; preds = %61
store i32 1, ptr %15, align 4
br label %77
77: ; preds = %76, %57
br label %120
78: ; preds = %34
%79 = load i32, ptr %11, align 4
%80 = icmp sge i32 %79, 3
br i1 %80, label %81, label %98
81: ; preds = %78
store i32 0, ptr %7, align 4
br label %82
82: ; preds = %94, %81
%83 = load i32, ptr %7, align 4
%84 = icmp slt i32 %83, 4
br i1 %84, label %85, label %97
85: ; preds = %82
%86 = load i32, ptr %10, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [5 x [5 x i32]], ptr %6, i64 0, i64 %87
%89 = load i32, ptr %11, align 4
%90 = load i32, ptr %7, align 4
%91 = sub nsw i32 %89, %90
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [5 x i32], ptr %88, i64 0, i64 %92
store i32 1, ptr %93, align 4
br label %94
94: ; preds = %85
%95 = load i32, ptr %7, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %7, align 4
br label %82, !llvm.loop !9
97: ; preds = %82
store i32 1, ptr %15, align 4
br label %98
98: ; preds = %97, %78
br label %120
99: ; preds = %34
%100 = load i32, ptr %10, align 4
%101 = icmp sge i32 %100, 3
br i1 %101, label %102, label %119
102: ; preds = %99
store i32 0, ptr %7, align 4
br label %103
103: ; preds = %115, %102
%104 = load i32, ptr %7, align 4
%105 = icmp slt i32 %104, 4
br i1 %105, label %106, label %118
106: ; preds = %103
%107 = load i32, ptr %10, align 4
%108 = load i32, ptr %7, align 4
%109 = sub nsw i32 %107, %108
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [5 x [5 x i32]], ptr %6, i64 0, i64 %110
%112 = load i32, ptr %11, align 4
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds [5 x i32], ptr %111, i64 0, i64 %113
store i32 1, ptr %114, align 4
br label %115
115: ; preds = %106
%116 = load i32, ptr %7, align 4
%117 = add nsw i32 %116, 1
store i32 %117, ptr %7, align 4
br label %103, !llvm.loop !10
118: ; preds = %103
store i32 1, ptr %15, align 4
br label %119
119: ; preds = %118, %99
br label %120
120: ; preds = %119, %34, %98, %77, %56
%121 = load i32, ptr %15, align 4
%122 = icmp ne i32 %121, 0
br i1 %122, label %129, label %123
123: ; preds = %120
%124 = load i32, ptr %14, align 4
%125 = add nsw i32 %124, 1
store i32 %125, ptr %14, align 4
%126 = srem i32 %125, 4
store i32 %126, ptr %14, align 4
%127 = load i32, ptr %8, align 4
%128 = add nsw i32 %127, 1
store i32 %128, ptr %8, align 4
br label %129
129: ; preds = %123, %120
br label %26, !llvm.loop !11
130: ; preds = %32
br label %131
131: ; preds = %130
%132 = load i32, ptr %15, align 4
%133 = icmp ne i32 %132, 0
%134 = xor i1 %133, true
br i1 %134, label %19, label %135, !llvm.loop !12
135: ; preds = %131
store i32 1, ptr %8, align 4
br label %136
136: ; preds = %366, %135
%137 = load i32, ptr %9, align 4
%138 = icmp ne i32 %137, 0
%139 = xor i1 %138, true
br i1 %139, label %140, label %369
140: ; preds = %136
%141 = load i32, ptr %8, align 4
%142 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %141)
br label %143
143: ; preds = %160, %140
%144 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef 5)
%145 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %12)
%146 = load i32, ptr %12, align 4
%147 = icmp slt i32 %146, 1
br i1 %147, label %151, label %148
148: ; preds = %143
%149 = load i32, ptr %12, align 4
%150 = icmp sgt i32 %149, 5
br i1 %150, label %151, label %153
151: ; preds = %148, %143
%152 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef 5)
br label %153
153: ; preds = %151, %148
br label %154
154: ; preds = %153
%155 = load i32, ptr %12, align 4
%156 = icmp slt i32 %155, 1
br i1 %156, label %160, label %157
157: ; preds = %154
%158 = load i32, ptr %12, align 4
%159 = icmp sgt i32 %158, 5
br label %160
160: ; preds = %157, %154
%161 = phi i1 [ true, %154 ], [ %159, %157 ]
br i1 %161, label %143, label %162, !llvm.loop !13
162: ; preds = %160
br label %163
163: ; preds = %180, %162
%164 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef 5)
%165 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %13)
%166 = load i32, ptr %13, align 4
%167 = icmp slt i32 %166, 1
br i1 %167, label %171, label %168
168: ; preds = %163
%169 = load i32, ptr %13, align 4
%170 = icmp sgt i32 %169, 5
br i1 %170, label %171, label %173
171: ; preds = %168, %163
%172 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef 5)
br label %173
173: ; preds = %171, %168
br label %174
174: ; preds = %173
%175 = load i32, ptr %13, align 4
%176 = icmp slt i32 %175, 1
br i1 %176, label %180, label %177
177: ; preds = %174
%178 = load i32, ptr %13, align 4
%179 = icmp sgt i32 %178, 5
br label %180
180: ; preds = %177, %174
%181 = phi i1 [ true, %174 ], [ %179, %177 ]
br i1 %181, label %163, label %182, !llvm.loop !14
182: ; preds = %180
%183 = load i32, ptr %12, align 4
%184 = add nsw i32 %183, -1
store i32 %184, ptr %12, align 4
%185 = load i32, ptr %13, align 4
%186 = add nsw i32 %185, -1
store i32 %186, ptr %13, align 4
%187 = load i32, ptr %12, align 4
%188 = sext i32 %187 to i64
%189 = getelementptr inbounds [5 x [5 x i32]], ptr %6, i64 0, i64 %188
%190 = load i32, ptr %13, align 4
%191 = sext i32 %190 to i64
%192 = getelementptr inbounds [5 x i32], ptr %189, i64 0, i64 %191
%193 = load i32, ptr %192, align 4
switch i32 %193, label %334 [
i32 0, label %194
i32 1, label %202
i32 2, label %326
i32 3, label %330
]
194: ; preds = %182
%195 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%196 = load i32, ptr %12, align 4
%197 = sext i32 %196 to i64
%198 = getelementptr inbounds [5 x [5 x i32]], ptr %6, i64 0, i64 %197
%199 = load i32, ptr %13, align 4
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds [5 x i32], ptr %198, i64 0, i64 %200
store i32 2, ptr %201, align 4
br label %334
202: ; preds = %182
%203 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%204 = load i32, ptr %12, align 4
%205 = sext i32 %204 to i64
%206 = getelementptr inbounds [5 x [5 x i32]], ptr %6, i64 0, i64 %205
%207 = load i32, ptr %13, align 4
%208 = sext i32 %207 to i64
%209 = getelementptr inbounds [5 x i32], ptr %206, i64 0, i64 %208
store i32 3, ptr %209, align 4
store i32 1, ptr %16, align 4
%210 = load i32, ptr %14, align 4
switch i32 %210, label %315 [
i32 0, label %211
i32 1, label %237
i32 2, label %263
i32 3, label %289
]
211: ; preds = %202
store i32 0, ptr %7, align 4
br label %212
212: ; preds = %233, %211
%213 = load i32, ptr %7, align 4
%214 = icmp slt i32 %213, 4
br i1 %214, label %215, label %218
215: ; preds = %212
%216 = load i32, ptr %16, align 4
%217 = icmp ne i32 %216, 0
br label %218
218: ; preds = %215, %212
%219 = phi i1 [ false, %212 ], [ %217, %215 ]
br i1 %219, label %220, label %236
220: ; preds = %218
%221 = load i32, ptr %10, align 4
%222 = sext i32 %221 to i64
%223 = getelementptr inbounds [5 x [5 x i32]], ptr %6, i64 0, i64 %222
%224 = load i32, ptr %11, align 4
%225 = load i32, ptr %7, align 4
%226 = add nsw i32 %224, %225
%227 = sext i32 %226 to i64
%228 = getelementptr inbounds [5 x i32], ptr %223, i64 0, i64 %227
%229 = load i32, ptr %228, align 4
%230 = icmp eq i32 %229, 1
br i1 %230, label %231, label %232
231: ; preds = %220
store i32 0, ptr %16, align 4
br label %232
232: ; preds = %231, %220
br label %233
233: ; preds = %232
%234 = load i32, ptr %7, align 4
%235 = add nsw i32 %234, 1
store i32 %235, ptr %7, align 4
br label %212, !llvm.loop !15
236: ; preds = %218
br label %315
237: ; preds = %202
store i32 0, ptr %7, align 4
br label %238
238: ; preds = %259, %237
%239 = load i32, ptr %7, align 4
%240 = icmp slt i32 %239, 4
br i1 %240, label %241, label %244
241: ; preds = %238
%242 = load i32, ptr %16, align 4
%243 = icmp ne i32 %242, 0
br label %244
244: ; preds = %241, %238
%245 = phi i1 [ false, %238 ], [ %243, %241 ]
br i1 %245, label %246, label %262
246: ; preds = %244
%247 = load i32, ptr %10, align 4
%248 = load i32, ptr %7, align 4
%249 = add nsw i32 %247, %248
%250 = sext i32 %249 to i64
%251 = getelementptr inbounds [5 x [5 x i32]], ptr %6, i64 0, i64 %250
%252 = load i32, ptr %11, align 4
%253 = sext i32 %252 to i64
%254 = getelementptr inbounds [5 x i32], ptr %251, i64 0, i64 %253
%255 = load i32, ptr %254, align 4
%256 = icmp eq i32 %255, 1
br i1 %256, label %257, label %258
257: ; preds = %246
store i32 0, ptr %16, align 4
br label %258
258: ; preds = %257, %246
br label %259
259: ; preds = %258
%260 = load i32, ptr %7, align 4
%261 = add nsw i32 %260, 1
store i32 %261, ptr %7, align 4
br label %238, !llvm.loop !16
262: ; preds = %244
br label %315
263: ; preds = %202
store i32 0, ptr %7, align 4
br label %264
264: ; preds = %285, %263
%265 = load i32, ptr %7, align 4
%266 = icmp slt i32 %265, 4
br i1 %266, label %267, label %270
267: ; preds = %264
%268 = load i32, ptr %16, align 4
%269 = icmp ne i32 %268, 0
br label %270
270: ; preds = %267, %264
%271 = phi i1 [ false, %264 ], [ %269, %267 ]
br i1 %271, label %272, label %288
272: ; preds = %270
%273 = load i32, ptr %10, align 4
%274 = sext i32 %273 to i64
%275 = getelementptr inbounds [5 x [5 x i32]], ptr %6, i64 0, i64 %274
%276 = load i32, ptr %11, align 4
%277 = load i32, ptr %7, align 4
%278 = sub nsw i32 %276, %277
%279 = sext i32 %278 to i64
%280 = getelementptr inbounds [5 x i32], ptr %275, i64 0, i64 %279
%281 = load i32, ptr %280, align 4
%282 = icmp eq i32 %281, 1
br i1 %282, label %283, label %284
283: ; preds = %272
store i32 0, ptr %16, align 4
br label %284
284: ; preds = %283, %272
br label %285
285: ; preds = %284
%286 = load i32, ptr %7, align 4
%287 = add nsw i32 %286, 1
store i32 %287, ptr %7, align 4
br label %264, !llvm.loop !17
288: ; preds = %270
br label %315
289: ; preds = %202
store i32 0, ptr %7, align 4
br label %290
290: ; preds = %311, %289
%291 = load i32, ptr %7, align 4
%292 = icmp slt i32 %291, 4
br i1 %292, label %293, label %296
293: ; preds = %290
%294 = load i32, ptr %16, align 4
%295 = icmp ne i32 %294, 0
br label %296
296: ; preds = %293, %290
%297 = phi i1 [ false, %290 ], [ %295, %293 ]
br i1 %297, label %298, label %314
298: ; preds = %296
%299 = load i32, ptr %10, align 4
%300 = load i32, ptr %7, align 4
%301 = sub nsw i32 %299, %300
%302 = sext i32 %301 to i64
%303 = getelementptr inbounds [5 x [5 x i32]], ptr %6, i64 0, i64 %302
%304 = load i32, ptr %11, align 4
%305 = sext i32 %304 to i64
%306 = getelementptr inbounds [5 x i32], ptr %303, i64 0, i64 %305
%307 = load i32, ptr %306, align 4
%308 = icmp eq i32 %307, 1
br i1 %308, label %309, label %310
309: ; preds = %298
store i32 0, ptr %16, align 4
br label %310
310: ; preds = %309, %298
br label %311
311: ; preds = %310
%312 = load i32, ptr %7, align 4
%313 = add nsw i32 %312, 1
store i32 %313, ptr %7, align 4
br label %290, !llvm.loop !18
314: ; preds = %296
br label %315
315: ; preds = %202, %314, %288, %262, %236
%316 = load i32, ptr %16, align 4
%317 = icmp ne i32 %316, 0
br i1 %317, label %318, label %322
318: ; preds = %315
%319 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%320 = load i32, ptr %8, align 4
%321 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %320)
br label %324
322: ; preds = %315
%323 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
br label %324
324: ; preds = %322, %318
%325 = load i32, ptr %16, align 4
store i32 %325, ptr %9, align 4
br label %334
326: ; preds = %182
%327 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%328 = load i32, ptr %8, align 4
%329 = add nsw i32 %328, -1
store i32 %329, ptr %8, align 4
br label %334
330: ; preds = %182
%331 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
%332 = load i32, ptr %8, align 4
%333 = add nsw i32 %332, -1
store i32 %333, ptr %8, align 4
br label %334
334: ; preds = %182, %330, %326, %324, %194
%335 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
store i32 0, ptr %12, align 4
br label %336
336: ; preds = %363, %334
%337 = load i32, ptr %12, align 4
%338 = icmp slt i32 %337, 5
br i1 %338, label %339, label %366
339: ; preds = %336
store i32 0, ptr %13, align 4
br label %340
340: ; preds = %358, %339
%341 = load i32, ptr %13, align 4
%342 = icmp slt i32 %341, 5
br i1 %342, label %343, label %361
343: ; preds = %340
%344 = load i32, ptr %12, align 4
%345 = sext i32 %344 to i64
%346 = getelementptr inbounds [5 x [5 x i32]], ptr %6, i64 0, i64 %345
%347 = load i32, ptr %13, align 4
%348 = sext i32 %347 to i64
%349 = getelementptr inbounds [5 x i32], ptr %346, i64 0, i64 %348
%350 = load i32, ptr %349, align 4
switch i32 %350, label %357 [
i32 0, label %351
i32 1, label %351
i32 2, label %353
i32 3, label %355
]
351: ; preds = %343, %343
%352 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
br label %357
353: ; preds = %343
%354 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
br label %357
355: ; preds = %343
%356 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
br label %357
357: ; preds = %343, %355, %353, %351
br label %358
358: ; preds = %357
%359 = load i32, ptr %13, align 4
%360 = add nsw i32 %359, 1
store i32 %360, ptr %13, align 4
br label %340, !llvm.loop !19
361: ; preds = %340
%362 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
br label %363
363: ; preds = %361
%364 = load i32, ptr %12, align 4
%365 = add nsw i32 %364, 1
store i32 %365, ptr %12, align 4
br label %336, !llvm.loop !20
366: ; preds = %336
%367 = load i32, ptr %8, align 4
%368 = add nsw i32 %367, 1
store i32 %368, ptr %8, align 4
br label %136, !llvm.loop !21
369: ; preds = %136
%370 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %370
}
; 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 @srandom(i32 noundef) #2
declare i32 @time(i32 noundef) #2
declare i32 @random(...) #2
declare i32 @printf(ptr noundef, ...) #2
declare i32 @scanf(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
!16 = distinct !{!16, !7}
!17 = distinct !{!17, !7}
!18 = distinct !{!18, !7}
!19 = distinct !{!19, !7}
!20 = distinct !{!20, !7}
!21 = distinct !{!21, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuzmjy0bh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"\0A#### Jugada n\C2\BA %d #### \0A\00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"\0AIntrodueix una fila (1-%d): \0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [43 x i8] c"\0AFila incorrecta. Ha de ser entre (1-%d) \0A\00", align 1
@.str.4 = private unnamed_addr constant [34 x i8] c"\0AIntrodueix una columna (1-%d): \0A\00", align 1
@.str.5 = private unnamed_addr constant [46 x i8] c"\0AColumna incorrecta. Ha de ser entre (1-%d) \0A\00", align 1
@.str.6 = private unnamed_addr constant [9 x i8] c"\0AAigua!!\00", align 1
@.str.7 = private unnamed_addr constant [7 x i8] c"\0ATocat\00", align 1
@.str.8 = private unnamed_addr constant [13 x i8] c" i afonat!!\0A\00", align 1
@.str.9 = private unnamed_addr constant [24 x i8] c"T'has costat %d intents\00", align 1
@.str.10 = private unnamed_addr constant [4 x i8] c"!!\0A\00", align 1
@.str.11 = private unnamed_addr constant [37 x i8] c"\0AJa has disparat aqu\C3\AD i hi ha aigua\00", align 1
@.str.12 = private unnamed_addr constant [40 x i8] c"\0AJa has disparat aqu\C3\AD i hi ha un barco\00", align 1
@.str.13 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.14 = private unnamed_addr constant [3 x i8] c"? \00", align 1
@.str.15 = private unnamed_addr constant [3 x i8] c"~ \00", align 1
@.str.16 = private unnamed_addr constant [3 x i8] c"X \00", align 1
@.str.17 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [5 x [5 x i32]], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 100, i1 false)
store i32 0, ptr %9, align 4
store i32 0, ptr %15, align 4
%17 = call i32 @time(i32 noundef 0)
%18 = call i32 @srandom(i32 noundef %17)
br label %19
19: ; preds = %135, %2
%20 = call i32 (...) @random()
%21 = srem i32 %20, 5
store i32 %21, ptr %10, align 4
%22 = call i32 (...) @random()
%23 = srem i32 %22, 5
store i32 %23, ptr %11, align 4
%24 = call i32 (...) @random()
%25 = srem i32 %24, 4
store i32 %25, ptr %14, align 4
store i32 1, ptr %8, align 4
br label %26
26: ; preds = %133, %19
%27 = load i32, ptr %15, align 4
%28 = icmp ne i32 %27, 0
br i1 %28, label %32, label %29
29: ; preds = %26
%30 = load i32, ptr %8, align 4
%31 = icmp sle i32 %30, 4
br label %32
32: ; preds = %29, %26
%33 = phi i1 [ false, %26 ], [ %31, %29 ]
br i1 %33, label %34, label %134
34: ; preds = %32
%35 = load i32, ptr %14, align 4
switch i32 %35, label %124 [
i32 0, label %36
i32 1, label %58
i32 2, label %80
i32 3, label %102
]
36: ; preds = %34
%37 = load i32, ptr %11, align 4
%38 = icmp slt i32 %37, 2
br i1 %38, label %39, label %57
39: ; preds = %36
store i32 0, ptr %7, align 4
%40 = load i32, ptr %7, align 4
%41 = icmp slt i32 %40, 4
br i1 %41, label %.lr.ph8, label %56
.lr.ph8: ; preds = %39
br label %42
42: ; preds = %.lr.ph8, %51
%43 = load i32, ptr %10, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [5 x [5 x i32]], ptr %6, i64 0, i64 %44
%46 = load i32, ptr %11, align 4
%47 = load i32, ptr %7, align 4
%48 = add nsw i32 %46, %47
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [5 x i32], ptr %45, i64 0, i64 %49
store i32 1, ptr %50, align 4
br label %51
51: ; preds = %42
%52 = load i32, ptr %7, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %7, align 4
%54 = load i32, ptr %7, align 4
%55 = icmp slt i32 %54, 4
br i1 %55, label %42, label %._crit_edge9, !llvm.loop !6
._crit_edge9: ; preds = %51
br label %56
56: ; preds = %._crit_edge9, %39
store i32 1, ptr %15, align 4
br label %57
57: ; preds = %56, %36
br label %124
58: ; preds = %34
%59 = load i32, ptr %10, align 4
%60 = icmp slt i32 %59, 2
br i1 %60, label %61, label %79
61: ; preds = %58
store i32 0, ptr %7, align 4
%62 = load i32, ptr %7, align 4
%63 = icmp slt i32 %62, 4
br i1 %63, label %.lr.ph5, label %78
.lr.ph5: ; preds = %61
br label %64
64: ; preds = %.lr.ph5, %73
%65 = load i32, ptr %10, align 4
%66 = load i32, ptr %7, align 4
%67 = add nsw i32 %65, %66
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [5 x [5 x i32]], ptr %6, i64 0, i64 %68
%70 = load i32, ptr %11, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [5 x i32], ptr %69, i64 0, i64 %71
store i32 1, ptr %72, align 4
br label %73
73: ; preds = %64
%74 = load i32, ptr %7, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %7, align 4
%76 = load i32, ptr %7, align 4
%77 = icmp slt i32 %76, 4
br i1 %77, label %64, label %._crit_edge6, !llvm.loop !8
._crit_edge6: ; preds = %73
br label %78
78: ; preds = %._crit_edge6, %61
store i32 1, ptr %15, align 4
br label %79
79: ; preds = %78, %58
br label %124
80: ; preds = %34
%81 = load i32, ptr %11, align 4
%82 = icmp sge i32 %81, 3
br i1 %82, label %83, label %101
83: ; preds = %80
store i32 0, ptr %7, align 4
%84 = load i32, ptr %7, align 4
%85 = icmp slt i32 %84, 4
br i1 %85, label %.lr.ph2, label %100
.lr.ph2: ; preds = %83
br label %86
86: ; preds = %.lr.ph2, %95
%87 = load i32, ptr %10, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [5 x [5 x i32]], ptr %6, i64 0, i64 %88
%90 = load i32, ptr %11, align 4
%91 = load i32, ptr %7, align 4
%92 = sub nsw i32 %90, %91
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [5 x i32], ptr %89, i64 0, i64 %93
store i32 1, ptr %94, align 4
br label %95
95: ; preds = %86
%96 = load i32, ptr %7, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %7, align 4
%98 = load i32, ptr %7, align 4
%99 = icmp slt i32 %98, 4
br i1 %99, label %86, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %95
br label %100
100: ; preds = %._crit_edge3, %83
store i32 1, ptr %15, align 4
br label %101
101: ; preds = %100, %80
br label %124
102: ; preds = %34
%103 = load i32, ptr %10, align 4
%104 = icmp sge i32 %103, 3
br i1 %104, label %105, label %123
105: ; preds = %102
store i32 0, ptr %7, align 4
%106 = load i32, ptr %7, align 4
%107 = icmp slt i32 %106, 4
br i1 %107, label %.lr.ph, label %122
.lr.ph: ; preds = %105
br label %108
108: ; preds = %.lr.ph, %117
%109 = load i32, ptr %10, align 4
%110 = load i32, ptr %7, align 4
%111 = sub nsw i32 %109, %110
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds [5 x [5 x i32]], ptr %6, i64 0, i64 %112
%114 = load i32, ptr %11, align 4
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds [5 x i32], ptr %113, i64 0, i64 %115
store i32 1, ptr %116, align 4
br label %117
117: ; preds = %108
%118 = load i32, ptr %7, align 4
%119 = add nsw i32 %118, 1
store i32 %119, ptr %7, align 4
%120 = load i32, ptr %7, align 4
%121 = icmp slt i32 %120, 4
br i1 %121, label %108, label %._crit_edge, !llvm.loop !10
._crit_edge: ; preds = %117
br label %122
122: ; preds = %._crit_edge, %105
store i32 1, ptr %15, align 4
br label %123
123: ; preds = %122, %102
br label %124
124: ; preds = %123, %101, %79, %57, %34
%125 = load i32, ptr %15, align 4
%126 = icmp ne i32 %125, 0
br i1 %126, label %133, label %127
127: ; preds = %124
%128 = load i32, ptr %14, align 4
%129 = add nsw i32 %128, 1
store i32 %129, ptr %14, align 4
%130 = srem i32 %129, 4
store i32 %130, ptr %14, align 4
%131 = load i32, ptr %8, align 4
%132 = add nsw i32 %131, 1
store i32 %132, ptr %8, align 4
br label %133
133: ; preds = %127, %124
br label %26, !llvm.loop !11
134: ; preds = %32
br label %135
135: ; preds = %134
%136 = load i32, ptr %15, align 4
%137 = icmp ne i32 %136, 0
%138 = xor i1 %137, true
br i1 %138, label %19, label %139, !llvm.loop !12
139: ; preds = %135
store i32 1, ptr %8, align 4
%140 = load i32, ptr %9, align 4
%141 = icmp ne i32 %140, 0
%142 = xor i1 %141, true
br i1 %142, label %.lr.ph17, label %377
.lr.ph17: ; preds = %139
br label %143
143: ; preds = %.lr.ph17, %371
%144 = load i32, ptr %8, align 4
%145 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %144)
br label %146
146: ; preds = %163, %143
%147 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef 5)
%148 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %12)
%149 = load i32, ptr %12, align 4
%150 = icmp slt i32 %149, 1
br i1 %150, label %154, label %151
151: ; preds = %146
%152 = load i32, ptr %12, align 4
%153 = icmp sgt i32 %152, 5
br i1 %153, label %154, label %156
154: ; preds = %151, %146
%155 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef 5)
br label %156
156: ; preds = %154, %151
br label %157
157: ; preds = %156
%158 = load i32, ptr %12, align 4
%159 = icmp slt i32 %158, 1
br i1 %159, label %163, label %160
160: ; preds = %157
%161 = load i32, ptr %12, align 4
%162 = icmp sgt i32 %161, 5
br label %163
163: ; preds = %160, %157
%164 = phi i1 [ true, %157 ], [ %162, %160 ]
br i1 %164, label %146, label %165, !llvm.loop !13
165: ; preds = %163
br label %166
166: ; preds = %183, %165
%167 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef 5)
%168 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %13)
%169 = load i32, ptr %13, align 4
%170 = icmp slt i32 %169, 1
br i1 %170, label %174, label %171
171: ; preds = %166
%172 = load i32, ptr %13, align 4
%173 = icmp sgt i32 %172, 5
br i1 %173, label %174, label %176
174: ; preds = %171, %166
%175 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef 5)
br label %176
176: ; preds = %174, %171
br label %177
177: ; preds = %176
%178 = load i32, ptr %13, align 4
%179 = icmp slt i32 %178, 1
br i1 %179, label %183, label %180
180: ; preds = %177
%181 = load i32, ptr %13, align 4
%182 = icmp sgt i32 %181, 5
br label %183
183: ; preds = %180, %177
%184 = phi i1 [ true, %177 ], [ %182, %180 ]
br i1 %184, label %166, label %185, !llvm.loop !14
185: ; preds = %183
%186 = load i32, ptr %12, align 4
%187 = add nsw i32 %186, -1
store i32 %187, ptr %12, align 4
%188 = load i32, ptr %13, align 4
%189 = add nsw i32 %188, -1
store i32 %189, ptr %13, align 4
%190 = load i32, ptr %12, align 4
%191 = sext i32 %190 to i64
%192 = getelementptr inbounds [5 x [5 x i32]], ptr %6, i64 0, i64 %191
%193 = load i32, ptr %13, align 4
%194 = sext i32 %193 to i64
%195 = getelementptr inbounds [5 x i32], ptr %192, i64 0, i64 %194
%196 = load i32, ptr %195, align 4
switch i32 %196, label %337 [
i32 0, label %197
i32 1, label %205
i32 2, label %329
i32 3, label %333
]
197: ; preds = %185
%198 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%199 = load i32, ptr %12, align 4
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds [5 x [5 x i32]], ptr %6, i64 0, i64 %200
%202 = load i32, ptr %13, align 4
%203 = sext i32 %202 to i64
%204 = getelementptr inbounds [5 x i32], ptr %201, i64 0, i64 %203
store i32 2, ptr %204, align 4
br label %337
205: ; preds = %185
%206 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%207 = load i32, ptr %12, align 4
%208 = sext i32 %207 to i64
%209 = getelementptr inbounds [5 x [5 x i32]], ptr %6, i64 0, i64 %208
%210 = load i32, ptr %13, align 4
%211 = sext i32 %210 to i64
%212 = getelementptr inbounds [5 x i32], ptr %209, i64 0, i64 %211
store i32 3, ptr %212, align 4
store i32 1, ptr %16, align 4
%213 = load i32, ptr %14, align 4
switch i32 %213, label %318 [
i32 0, label %214
i32 1, label %240
i32 2, label %266
i32 3, label %292
]
214: ; preds = %205
store i32 0, ptr %7, align 4
br label %215
215: ; preds = %236, %214
%216 = load i32, ptr %7, align 4
%217 = icmp slt i32 %216, 4
br i1 %217, label %218, label %221
218: ; preds = %215
%219 = load i32, ptr %16, align 4
%220 = icmp ne i32 %219, 0
br label %221
221: ; preds = %218, %215
%222 = phi i1 [ false, %215 ], [ %220, %218 ]
br i1 %222, label %223, label %239
223: ; preds = %221
%224 = load i32, ptr %10, align 4
%225 = sext i32 %224 to i64
%226 = getelementptr inbounds [5 x [5 x i32]], ptr %6, i64 0, i64 %225
%227 = load i32, ptr %11, align 4
%228 = load i32, ptr %7, align 4
%229 = add nsw i32 %227, %228
%230 = sext i32 %229 to i64
%231 = getelementptr inbounds [5 x i32], ptr %226, i64 0, i64 %230
%232 = load i32, ptr %231, align 4
%233 = icmp eq i32 %232, 1
br i1 %233, label %234, label %235
234: ; preds = %223
store i32 0, ptr %16, align 4
br label %235
235: ; preds = %234, %223
br label %236
236: ; preds = %235
%237 = load i32, ptr %7, align 4
%238 = add nsw i32 %237, 1
store i32 %238, ptr %7, align 4
br label %215, !llvm.loop !15
239: ; preds = %221
br label %318
240: ; preds = %205
store i32 0, ptr %7, align 4
br label %241
241: ; preds = %262, %240
%242 = load i32, ptr %7, align 4
%243 = icmp slt i32 %242, 4
br i1 %243, label %244, label %247
244: ; preds = %241
%245 = load i32, ptr %16, align 4
%246 = icmp ne i32 %245, 0
br label %247
247: ; preds = %244, %241
%248 = phi i1 [ false, %241 ], [ %246, %244 ]
br i1 %248, label %249, label %265
249: ; preds = %247
%250 = load i32, ptr %10, align 4
%251 = load i32, ptr %7, align 4
%252 = add nsw i32 %250, %251
%253 = sext i32 %252 to i64
%254 = getelementptr inbounds [5 x [5 x i32]], ptr %6, i64 0, i64 %253
%255 = load i32, ptr %11, align 4
%256 = sext i32 %255 to i64
%257 = getelementptr inbounds [5 x i32], ptr %254, i64 0, i64 %256
%258 = load i32, ptr %257, align 4
%259 = icmp eq i32 %258, 1
br i1 %259, label %260, label %261
260: ; preds = %249
store i32 0, ptr %16, align 4
br label %261
261: ; preds = %260, %249
br label %262
262: ; preds = %261
%263 = load i32, ptr %7, align 4
%264 = add nsw i32 %263, 1
store i32 %264, ptr %7, align 4
br label %241, !llvm.loop !16
265: ; preds = %247
br label %318
266: ; preds = %205
store i32 0, ptr %7, align 4
br label %267
267: ; preds = %288, %266
%268 = load i32, ptr %7, align 4
%269 = icmp slt i32 %268, 4
br i1 %269, label %270, label %273
270: ; preds = %267
%271 = load i32, ptr %16, align 4
%272 = icmp ne i32 %271, 0
br label %273
273: ; preds = %270, %267
%274 = phi i1 [ false, %267 ], [ %272, %270 ]
br i1 %274, label %275, label %291
275: ; preds = %273
%276 = load i32, ptr %10, align 4
%277 = sext i32 %276 to i64
%278 = getelementptr inbounds [5 x [5 x i32]], ptr %6, i64 0, i64 %277
%279 = load i32, ptr %11, align 4
%280 = load i32, ptr %7, align 4
%281 = sub nsw i32 %279, %280
%282 = sext i32 %281 to i64
%283 = getelementptr inbounds [5 x i32], ptr %278, i64 0, i64 %282
%284 = load i32, ptr %283, align 4
%285 = icmp eq i32 %284, 1
br i1 %285, label %286, label %287
286: ; preds = %275
store i32 0, ptr %16, align 4
br label %287
287: ; preds = %286, %275
br label %288
288: ; preds = %287
%289 = load i32, ptr %7, align 4
%290 = add nsw i32 %289, 1
store i32 %290, ptr %7, align 4
br label %267, !llvm.loop !17
291: ; preds = %273
br label %318
292: ; preds = %205
store i32 0, ptr %7, align 4
br label %293
293: ; preds = %314, %292
%294 = load i32, ptr %7, align 4
%295 = icmp slt i32 %294, 4
br i1 %295, label %296, label %299
296: ; preds = %293
%297 = load i32, ptr %16, align 4
%298 = icmp ne i32 %297, 0
br label %299
299: ; preds = %296, %293
%300 = phi i1 [ false, %293 ], [ %298, %296 ]
br i1 %300, label %301, label %317
301: ; preds = %299
%302 = load i32, ptr %10, align 4
%303 = load i32, ptr %7, align 4
%304 = sub nsw i32 %302, %303
%305 = sext i32 %304 to i64
%306 = getelementptr inbounds [5 x [5 x i32]], ptr %6, i64 0, i64 %305
%307 = load i32, ptr %11, align 4
%308 = sext i32 %307 to i64
%309 = getelementptr inbounds [5 x i32], ptr %306, i64 0, i64 %308
%310 = load i32, ptr %309, align 4
%311 = icmp eq i32 %310, 1
br i1 %311, label %312, label %313
312: ; preds = %301
store i32 0, ptr %16, align 4
br label %313
313: ; preds = %312, %301
br label %314
314: ; preds = %313
%315 = load i32, ptr %7, align 4
%316 = add nsw i32 %315, 1
store i32 %316, ptr %7, align 4
br label %293, !llvm.loop !18
317: ; preds = %299
br label %318
318: ; preds = %317, %291, %265, %239, %205
%319 = load i32, ptr %16, align 4
%320 = icmp ne i32 %319, 0
br i1 %320, label %321, label %325
321: ; preds = %318
%322 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%323 = load i32, ptr %8, align 4
%324 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %323)
br label %327
325: ; preds = %318
%326 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
br label %327
327: ; preds = %325, %321
%328 = load i32, ptr %16, align 4
store i32 %328, ptr %9, align 4
br label %337
329: ; preds = %185
%330 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%331 = load i32, ptr %8, align 4
%332 = add nsw i32 %331, -1
store i32 %332, ptr %8, align 4
br label %337
333: ; preds = %185
%334 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
%335 = load i32, ptr %8, align 4
%336 = add nsw i32 %335, -1
store i32 %336, ptr %8, align 4
br label %337
337: ; preds = %333, %329, %327, %197, %185
%338 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
store i32 0, ptr %12, align 4
%339 = load i32, ptr %12, align 4
%340 = icmp slt i32 %339, 5
br i1 %340, label %.lr.ph14, label %371
.lr.ph14: ; preds = %337
br label %341
341: ; preds = %.lr.ph14, %366
store i32 0, ptr %13, align 4
%342 = load i32, ptr %13, align 4
%343 = icmp slt i32 %342, 5
br i1 %343, label %.lr.ph11, label %364
.lr.ph11: ; preds = %341
br label %344
344: ; preds = %.lr.ph11, %359
%345 = load i32, ptr %12, align 4
%346 = sext i32 %345 to i64
%347 = getelementptr inbounds [5 x [5 x i32]], ptr %6, i64 0, i64 %346
%348 = load i32, ptr %13, align 4
%349 = sext i32 %348 to i64
%350 = getelementptr inbounds [5 x i32], ptr %347, i64 0, i64 %349
%351 = load i32, ptr %350, align 4
switch i32 %351, label %358 [
i32 0, label %352
i32 1, label %352
i32 2, label %354
i32 3, label %356
]
352: ; preds = %344, %344
%353 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
br label %358
354: ; preds = %344
%355 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
br label %358
356: ; preds = %344
%357 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
br label %358
358: ; preds = %356, %354, %352, %344
br label %359
359: ; preds = %358
%360 = load i32, ptr %13, align 4
%361 = add nsw i32 %360, 1
store i32 %361, ptr %13, align 4
%362 = load i32, ptr %13, align 4
%363 = icmp slt i32 %362, 5
br i1 %363, label %344, label %._crit_edge12, !llvm.loop !19
._crit_edge12: ; preds = %359
br label %364
364: ; preds = %._crit_edge12, %341
%365 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
br label %366
366: ; preds = %364
%367 = load i32, ptr %12, align 4
%368 = add nsw i32 %367, 1
store i32 %368, ptr %12, align 4
%369 = load i32, ptr %12, align 4
%370 = icmp slt i32 %369, 5
br i1 %370, label %341, label %._crit_edge15, !llvm.loop !20
._crit_edge15: ; preds = %366
br label %371
371: ; preds = %._crit_edge15, %337
%372 = load i32, ptr %8, align 4
%373 = add nsw i32 %372, 1
store i32 %373, ptr %8, align 4
%374 = load i32, ptr %9, align 4
%375 = icmp ne i32 %374, 0
%376 = xor i1 %375, true
br i1 %376, label %143, label %._crit_edge18, !llvm.loop !21
._crit_edge18: ; preds = %371
br label %377
377: ; preds = %._crit_edge18, %139
%378 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %378
}
; 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 @srandom(i32 noundef) #2
declare i32 @time(i32 noundef) #2
declare i32 @random(...) #2
declare i32 @printf(ptr noundef, ...) #2
declare i32 @scanf(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
!16 = distinct !{!16, !7}
!17 = distinct !{!17, !7}
!18 = distinct !{!18, !7}
!19 = distinct !{!19, !7}
!20 = distinct !{!20, !7}
!21 = distinct !{!21, !7}
|
; ModuleID = '/tmp/tmp6jo00r88.c'
source_filename = "/tmp/tmp6jo00r88.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"malloc\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @Malloc(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
store i64 %0, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = call ptr @malloc(i64 noundef %4)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = call i32 @exits(ptr noundef @.str)
br label %10
10: ; preds = %8, %1
%11 = load ptr, ptr %3, align 8
ret ptr %11
}
declare ptr @malloc(i64 noundef) #1
declare i32 @exits(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/tmp6jo00r88.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"malloc\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @Malloc(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
store i64 %0, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = call ptr @malloc(i64 noundef %4)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = call i32 @exits(ptr noundef @.str)
br label %10
10: ; preds = %8, %1
%11 = load ptr, ptr %3, align 8
ret ptr %11
}
declare ptr @malloc(i64 noundef) #1
declare i32 @exits(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/tmpsptthutr.c'
source_filename = "/tmp/tmpsptthutr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SHUT_RDWR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @uptcp_close(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = load i32, ptr @SHUT_RDWR, align 4
%5 = call i32 @uptcp_shutdown(i32 noundef %3, i32 noundef %4)
ret i32 %5
}
declare i32 @uptcp_shutdown(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/tmpsptthutr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SHUT_RDWR = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @uptcp_close(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = load i32, ptr @SHUT_RDWR, align 4
%5 = call i32 @uptcp_shutdown(i32 noundef %3, i32 noundef %4)
ret i32 %5
}
declare i32 @uptcp_shutdown(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/tmpduqpipz3.c'
source_filename = "/tmp/tmpduqpipz3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"Programdan cikmak icin -1 giriniz.\0A\00", align 1
@.str.1 = private unnamed_addr constant [63 x i8] c"e sabitinin hesaplanacagi derinligi giriniz(pozitif tam sayi):\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [34 x i8] c"Pozitif bir tam sayi girmediniz.\0A\00", align 1
@.str.4 = private unnamed_addr constant [47 x i8] c"e sabitinin %d derilikteki degeri %.15Lf dir.\0A\00", align 1
@.str.5 = private unnamed_addr constant [34 x i8] c"Programdan basariyla cikilmistir.\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 i64, align 8
%5 = alloca x86_fp80, align 16
%6 = alloca x86_fp80, align 16
store i32 0, ptr %1, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%9 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2)
br label %10
10: ; preds = %41, %0
%11 = load i32, ptr %2, align 4
%12 = icmp ne i32 %11, -1
br i1 %12, label %13, label %44
13: ; preds = %10
%14 = load i32, ptr %2, align 4
%15 = icmp sle i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %41
18: ; preds = %13
store x86_fp80 0xK00000000000000000000, ptr %5, align 16
store i64 1, ptr %4, align 8
store i32 1, ptr %3, align 4
br label %19
19: ; preds = %23, %18
%20 = load i32, ptr %2, align 4
%21 = load i32, ptr %3, align 4
%22 = icmp sge i32 %20, %21
br i1 %22, label %23, label %36
23: ; preds = %19
%24 = load i64, ptr %4, align 8
%25 = load i32, ptr %3, align 4
%26 = sext i32 %25 to i64
%27 = mul nsw i64 %24, %26
store i64 %27, ptr %4, align 8
%28 = load i64, ptr %4, align 8
%29 = sitofp i64 %28 to x86_fp80
%30 = fdiv x86_fp80 0xK3FFF8000000000000000, %29
store x86_fp80 %30, ptr %6, align 16
%31 = load x86_fp80, ptr %5, align 16
%32 = load x86_fp80, ptr %6, align 16
%33 = fadd x86_fp80 %31, %32
store x86_fp80 %33, ptr %5, align 16
%34 = load i32, ptr %3, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %3, align 4
br label %19, !llvm.loop !6
36: ; preds = %19
%37 = load i32, ptr %2, align 4
%38 = load x86_fp80, ptr %5, align 16
%39 = fadd x86_fp80 %38, 0xK3FFF8000000000000000
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %37, x86_fp80 noundef %39)
br label %41
41: ; preds = %36, %16
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%43 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2)
br label %10, !llvm.loop !8
44: ; preds = %10
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpduqpipz3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"Programdan cikmak icin -1 giriniz.\0A\00", align 1
@.str.1 = private unnamed_addr constant [63 x i8] c"e sabitinin hesaplanacagi derinligi giriniz(pozitif tam sayi):\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [34 x i8] c"Pozitif bir tam sayi girmediniz.\0A\00", align 1
@.str.4 = private unnamed_addr constant [47 x i8] c"e sabitinin %d derilikteki degeri %.15Lf dir.\0A\00", align 1
@.str.5 = private unnamed_addr constant [34 x i8] c"Programdan basariyla cikilmistir.\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 i64, align 8
%5 = alloca x86_fp80, align 16
%6 = alloca x86_fp80, align 16
store i32 0, ptr %1, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%9 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2)
%10 = load i32, ptr %2, align 4
%11 = icmp ne i32 %10, -1
br i1 %11, label %.lr.ph2, label %47
.lr.ph2: ; preds = %0
br label %12
12: ; preds = %.lr.ph2, %42
%13 = load i32, ptr %2, align 4
%14 = icmp sle i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %42
17: ; preds = %12
store x86_fp80 0xK00000000000000000000, ptr %5, align 16
store i64 1, ptr %4, align 8
store i32 1, ptr %3, align 4
%18 = load i32, ptr %2, align 4
%19 = load i32, ptr %3, align 4
%20 = icmp sge i32 %18, %19
br i1 %20, label %.lr.ph, label %37
.lr.ph: ; preds = %17
br label %21
21: ; preds = %.lr.ph, %21
%22 = load i64, ptr %4, align 8
%23 = load i32, ptr %3, align 4
%24 = sext i32 %23 to i64
%25 = mul nsw i64 %22, %24
store i64 %25, ptr %4, align 8
%26 = load i64, ptr %4, align 8
%27 = sitofp i64 %26 to x86_fp80
%28 = fdiv x86_fp80 0xK3FFF8000000000000000, %27
store x86_fp80 %28, ptr %6, align 16
%29 = load x86_fp80, ptr %5, align 16
%30 = load x86_fp80, ptr %6, align 16
%31 = fadd x86_fp80 %29, %30
store x86_fp80 %31, ptr %5, align 16
%32 = load i32, ptr %3, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %3, align 4
%34 = load i32, ptr %2, align 4
%35 = load i32, ptr %3, align 4
%36 = icmp sge i32 %34, %35
br i1 %36, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %37
37: ; preds = %._crit_edge, %17
%38 = load i32, ptr %2, align 4
%39 = load x86_fp80, ptr %5, align 16
%40 = fadd x86_fp80 %39, 0xK3FFF8000000000000000
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %38, x86_fp80 noundef %40)
br label %42
42: ; preds = %37, %15
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%44 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %2)
%45 = load i32, ptr %2, align 4
%46 = icmp ne i32 %45, -1
br i1 %46, label %12, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %42
br label %47
47: ; preds = %._crit_edge3, %0
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp5r6h9b2o.c'
source_filename = "/tmp/tmp5r6h9b2o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"- start: 0x%08x size: 0x%08x\0A\00", align 1
@.str.1 = private unnamed_addr constant [43 x i8] c"- start: 0x%08x size: 0x%08x last: 0x%08x\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_size(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = icmp ne i32 %5, 0
br i1 %6, label %11, label %7
7: ; preds = %2
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %4, align 4
%10 = call i32 (ptr, i32, i32, ...) @printf(ptr noundef @.str, i32 noundef %8, i32 noundef %9)
br label %19
11: ; preds = %2
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr %3, align 4
%15 = load i32, ptr %4, align 4
%16 = add i32 %14, %15
%17 = sub i32 %16, 1
%18 = call i32 (ptr, i32, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %12, i32 noundef %13, i32 noundef %17)
br label %19
19: ; preds = %11, %7
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5r6h9b2o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"- start: 0x%08x size: 0x%08x\0A\00", align 1
@.str.1 = private unnamed_addr constant [43 x i8] c"- start: 0x%08x size: 0x%08x last: 0x%08x\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_size(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = icmp ne i32 %5, 0
br i1 %6, label %11, label %7
7: ; preds = %2
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %4, align 4
%10 = call i32 (ptr, i32, i32, ...) @printf(ptr noundef @.str, i32 noundef %8, i32 noundef %9)
br label %19
11: ; preds = %2
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr %3, align 4
%15 = load i32, ptr %4, align 4
%16 = add i32 %14, %15
%17 = sub i32 %16, 1
%18 = call i32 (ptr, i32, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %12, i32 noundef %13, i32 noundef %17)
br label %19
19: ; preds = %11, %7
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpuyy87ito.c'
source_filename = "/tmp/tmpuyy87ito.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [45 x i8] c"How many number would you like to input? \0A> \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Enter the number: \0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"> \00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"The sum is: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [5 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %5, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %4)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %3, align 4
br label %9
9: ; preds = %19, %0
%10 = load i32, ptr %3, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %22
13: ; preds = %9
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%15 = load i32, ptr %3, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %16
%18 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %17)
br label %19
19: ; preds = %13
%20 = load i32, ptr %3, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %3, align 4
br label %9, !llvm.loop !6
22: ; preds = %9
store i32 0, ptr %3, align 4
br label %23
23: ; preds = %34, %22
%24 = load i32, ptr %3, align 4
%25 = load i32, ptr %4, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %37
27: ; preds = %23
%28 = load i32, ptr %3, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %29
%31 = load i32, ptr %30, align 4
%32 = load i32, ptr %5, align 4
%33 = add nsw i32 %32, %31
store i32 %33, ptr %5, align 4
br label %34
34: ; preds = %27
%35 = load i32, ptr %3, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %3, align 4
br label %23, !llvm.loop !8
37: ; preds = %23
%38 = load i32, ptr %5, align 4
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %38)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuyy87ito.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [45 x i8] c"How many number would you like to input? \0A> \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Enter the number: \0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"> \00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"The sum is: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [5 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %5, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %4)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %24
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %18
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%14 = load i32, ptr %3, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %15
%17 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %16)
br label %18
18: ; preds = %12
%19 = load i32, ptr %3, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %3, align 4
%21 = load i32, ptr %3, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %24
24: ; preds = %._crit_edge, %0
store i32 0, ptr %3, align 4
%25 = load i32, ptr %3, align 4
%26 = load i32, ptr %4, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %.lr.ph2, label %41
.lr.ph2: ; preds = %24
br label %28
28: ; preds = %.lr.ph2, %35
%29 = load i32, ptr %3, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %30
%32 = load i32, ptr %31, align 4
%33 = load i32, ptr %5, align 4
%34 = add nsw i32 %33, %32
store i32 %34, ptr %5, align 4
br label %35
35: ; preds = %28
%36 = load i32, ptr %3, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %3, align 4
%38 = load i32, ptr %3, align 4
%39 = load i32, ptr %4, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %28, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %35
br label %41
41: ; preds = %._crit_edge3, %24
%42 = load i32, ptr %5, align 4
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %42)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmprq_36m13.c'
source_filename = "/tmp/tmprq_36m13.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @plugin_api_infolist_hook_cb(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%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 ptr, align 8
%12 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
%13 = load ptr, ptr %7, align 8
%14 = load ptr, ptr %8, align 8
%15 = load ptr, ptr %9, align 8
%16 = load ptr, ptr %10, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %23
18: ; preds = %5
%19 = load ptr, ptr %10, align 8
%20 = call i32 @hook_valid(ptr noundef %19)
%21 = icmp ne i32 %20, 0
br i1 %21, label %23, label %22
22: ; preds = %18
store ptr null, ptr %6, align 8
br label %39
23: ; preds = %18, %5
%24 = call ptr @infolist_new(ptr noundef null)
store ptr %24, ptr %12, align 8
%25 = load ptr, ptr %12, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %28, label %27
27: ; preds = %23
store ptr null, ptr %6, align 8
br label %39
28: ; preds = %23
%29 = load ptr, ptr %12, align 8
%30 = load ptr, ptr %10, align 8
%31 = load ptr, ptr %11, align 8
%32 = call i32 @hook_add_to_infolist(ptr noundef %29, ptr noundef %30, ptr noundef %31)
%33 = icmp ne i32 %32, 0
br i1 %33, label %37, label %34
34: ; preds = %28
%35 = load ptr, ptr %12, align 8
%36 = call i32 @infolist_free(ptr noundef %35)
store ptr null, ptr %6, align 8
br label %39
37: ; preds = %28
%38 = load ptr, ptr %12, align 8
store ptr %38, ptr %6, align 8
br label %39
39: ; preds = %37, %34, %27, %22
%40 = load ptr, ptr %6, align 8
ret ptr %40
}
declare i32 @hook_valid(ptr noundef) #1
declare ptr @infolist_new(ptr noundef) #1
declare i32 @hook_add_to_infolist(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @infolist_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/tmprq_36m13.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @plugin_api_infolist_hook_cb(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%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 ptr, align 8
%12 = alloca ptr, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
%13 = load ptr, ptr %7, align 8
%14 = load ptr, ptr %8, align 8
%15 = load ptr, ptr %9, align 8
%16 = load ptr, ptr %10, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %23
18: ; preds = %5
%19 = load ptr, ptr %10, align 8
%20 = call i32 @hook_valid(ptr noundef %19)
%21 = icmp ne i32 %20, 0
br i1 %21, label %23, label %22
22: ; preds = %18
store ptr null, ptr %6, align 8
br label %39
23: ; preds = %18, %5
%24 = call ptr @infolist_new(ptr noundef null)
store ptr %24, ptr %12, align 8
%25 = load ptr, ptr %12, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %28, label %27
27: ; preds = %23
store ptr null, ptr %6, align 8
br label %39
28: ; preds = %23
%29 = load ptr, ptr %12, align 8
%30 = load ptr, ptr %10, align 8
%31 = load ptr, ptr %11, align 8
%32 = call i32 @hook_add_to_infolist(ptr noundef %29, ptr noundef %30, ptr noundef %31)
%33 = icmp ne i32 %32, 0
br i1 %33, label %37, label %34
34: ; preds = %28
%35 = load ptr, ptr %12, align 8
%36 = call i32 @infolist_free(ptr noundef %35)
store ptr null, ptr %6, align 8
br label %39
37: ; preds = %28
%38 = load ptr, ptr %12, align 8
store ptr %38, ptr %6, align 8
br label %39
39: ; preds = %37, %34, %27, %22
%40 = load ptr, ptr %6, align 8
ret ptr %40
}
declare i32 @hook_valid(ptr noundef) #1
declare ptr @infolist_new(ptr noundef) #1
declare i32 @hook_add_to_infolist(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @infolist_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/tmpc6qjfzq1.c'
source_filename = "/tmp/tmpc6qjfzq1.c"
target datalayout = "e-m:e-p270: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/tmpc6qjfzq1.c"
target datalayout = "e-m:e-p270: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/tmpajcycb8o.c'
source_filename = "/tmp/tmpajcycb8o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_discontig_io_irq(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 31, ptr %5, align 4
store i32 20, ptr %7, align 4
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %7, align 4
%10 = call i32 @ioctl_reap_inquiry(i32 noundef %8, i32 noundef %9)
store i32 %10, ptr %6, align 4
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %5, align 4
%13 = load ptr, ptr %4, align 8
%14 = call i32 @send_nvme_read(i32 noundef %11, i32 noundef %12, ptr noundef %13)
%15 = load i32, ptr %3, align 4
%16 = load i32, ptr %5, align 4
%17 = call i32 @ioctl_tst_ring_dbl(i32 noundef %15, i32 noundef %16)
br label %18
18: ; preds = %25, %2
%19 = load i32, ptr %3, align 4
%20 = load i32, ptr %7, align 4
%21 = call i32 @ioctl_reap_inquiry(i32 noundef %19, i32 noundef %20)
%22 = load i32, ptr %6, align 4
%23 = add nsw i32 %22, 1
%24 = icmp ne i32 %21, %23
br i1 %24, label %25, label %26
25: ; preds = %18
br label %18, !llvm.loop !6
26: ; preds = %18
%27 = load i32, ptr %3, align 4
%28 = load i32, ptr %7, align 4
%29 = call i32 @ioctl_reap_cq(i32 noundef %27, i32 noundef %28, i32 noundef 1, i32 noundef 16, i32 noundef 0)
ret void
}
declare i32 @ioctl_reap_inquiry(i32 noundef, i32 noundef) #1
declare i32 @send_nvme_read(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @ioctl_tst_ring_dbl(i32 noundef, i32 noundef) #1
declare i32 @ioctl_reap_cq(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpajcycb8o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_discontig_io_irq(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 31, ptr %5, align 4
store i32 20, ptr %7, align 4
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %7, align 4
%10 = call i32 @ioctl_reap_inquiry(i32 noundef %8, i32 noundef %9)
store i32 %10, ptr %6, align 4
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %5, align 4
%13 = load ptr, ptr %4, align 8
%14 = call i32 @send_nvme_read(i32 noundef %11, i32 noundef %12, ptr noundef %13)
%15 = load i32, ptr %3, align 4
%16 = load i32, ptr %5, align 4
%17 = call i32 @ioctl_tst_ring_dbl(i32 noundef %15, i32 noundef %16)
br label %18
18: ; preds = %18, %2
%19 = load i32, ptr %3, align 4
%20 = load i32, ptr %7, align 4
%21 = call i32 @ioctl_reap_inquiry(i32 noundef %19, i32 noundef %20)
%22 = load i32, ptr %6, align 4
%23 = add nsw i32 %22, 1
%24 = icmp ne i32 %21, %23
br i1 %24, label %18, label %25, !llvm.loop !6
25: ; preds = %18
%26 = load i32, ptr %3, align 4
%27 = load i32, ptr %7, align 4
%28 = call i32 @ioctl_reap_cq(i32 noundef %26, i32 noundef %27, i32 noundef 1, i32 noundef 16, i32 noundef 0)
ret void
}
declare i32 @ioctl_reap_inquiry(i32 noundef, i32 noundef) #1
declare i32 @send_nvme_read(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @ioctl_tst_ring_dbl(i32 noundef, i32 noundef) #1
declare i32 @ioctl_reap_cq(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpke_r2syk.c'
source_filename = "/tmp/tmpke_r2syk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@procprt_ENTIME_a.buf = internal global [9 x i8] zeroinitializer, align 1
@.str = private unnamed_addr constant [9 x i8] c" active \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @procprt_ENTIME_a(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = call i32 @strcpy(ptr noundef @procprt_ENTIME_a.buf, ptr noundef @.str)
ret ptr @procprt_ENTIME_a.buf
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpke_r2syk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@procprt_ENTIME_a.buf = internal global [9 x i8] zeroinitializer, align 1
@.str = private unnamed_addr constant [9 x i8] c" active \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @procprt_ENTIME_a(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = call i32 @strcpy(ptr noundef @procprt_ENTIME_a.buf, ptr noundef @.str)
ret ptr @procprt_ENTIME_a.buf
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprn7j1d9_.c'
source_filename = "/tmp/tmprn7j1d9_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [4 x i8] c" %d\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\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 ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 10001, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%9 = load i32, ptr %2, align 4
%10 = zext i32 %9 to i64
%11 = call ptr @llvm.stacksave()
store ptr %11, ptr %5, align 8
%12 = alloca i32, i64 %10, align 16
store i64 %10, ptr %6, align 8
store i32 0, ptr %4, align 4
br label %13
13: ; preds = %21, %0
%14 = load i32, ptr %4, align 4
%15 = load i32, ptr %2, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %24
17: ; preds = %13
%18 = load i32, ptr %4, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %12, i64 %19
store i32 0, ptr %20, align 4
br label %21
21: ; preds = %17
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %4, align 4
br label %13, !llvm.loop !6
24: ; preds = %13
%25 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
br label %26
26: ; preds = %30, %24
%27 = load i32, ptr %3, align 4
%28 = add nsw i32 %27, -1
store i32 %28, ptr %3, align 4
%29 = icmp sgt i32 %27, 0
br i1 %29, label %30, label %35
30: ; preds = %26
store i32 0, ptr %7, align 4
%31 = call i32 @scanf(ptr noundef @.str, ptr noundef %7)
%32 = load i32, ptr %7, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i32, ptr %12, i64 %33
store i32 1, ptr %34, align 4
br label %26, !llvm.loop !8
35: ; preds = %26
store i32 0, ptr %8, align 4
store i32 0, ptr %4, align 4
br label %36
36: ; preds = %57, %35
%37 = load i32, ptr %4, align 4
%38 = load i32, ptr %2, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %40, label %60
40: ; preds = %36
%41 = load i32, ptr %4, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %12, i64 %42
%44 = load i32, ptr %43, align 4
%45 = icmp eq i32 %44, 1
br i1 %45, label %46, label %56
46: ; preds = %40
%47 = load i32, ptr %8, align 4
%48 = icmp eq i32 %47, 0
br i1 %48, label %49, label %52
49: ; preds = %46
store i32 1, ptr %8, align 4
%50 = load i32, ptr %4, align 4
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %50)
br label %55
52: ; preds = %46
%53 = load i32, ptr %4, align 4
%54 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %53)
br label %55
55: ; preds = %52, %49
br label %56
56: ; preds = %55, %40
br label %57
57: ; preds = %56
%58 = load i32, ptr %4, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %4, align 4
br label %36, !llvm.loop !9
60: ; preds = %36
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %1, align 4
%62 = load ptr, ptr %5, align 8
call void @llvm.stackrestore(ptr %62)
%63 = load i32, ptr %1, align 4
ret i32 %63
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @scanf(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ...) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmprn7j1d9_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [4 x i8] c" %d\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\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 ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 10001, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%9 = load i32, ptr %2, align 4
%10 = zext i32 %9 to i64
%11 = call ptr @llvm.stacksave()
store ptr %11, ptr %5, align 8
%12 = alloca i32, i64 %10, align 16
store i64 %10, ptr %6, align 8
store i32 0, ptr %4, align 4
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr %2, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %26
.lr.ph: ; preds = %0
br label %16
16: ; preds = %.lr.ph, %20
%17 = load i32, ptr %4, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i32, ptr %12, i64 %18
store i32 0, ptr %19, align 4
br label %20
20: ; preds = %16
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %4, align 4
%23 = load i32, ptr %4, align 4
%24 = load i32, ptr %2, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %26
26: ; preds = %._crit_edge, %0
%27 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%28 = load i32, ptr %3, align 4
%29 = add nsw i32 %28, -1
store i32 %29, ptr %3, align 4
%30 = icmp sgt i32 %28, 0
br i1 %30, label %.lr.ph2, label %39
.lr.ph2: ; preds = %26
br label %31
31: ; preds = %.lr.ph2, %31
store i32 0, ptr %7, align 4
%32 = call i32 @scanf(ptr noundef @.str, ptr noundef %7)
%33 = load i32, ptr %7, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i32, ptr %12, i64 %34
store i32 1, ptr %35, align 4
%36 = load i32, ptr %3, align 4
%37 = add nsw i32 %36, -1
store i32 %37, ptr %3, align 4
%38 = icmp sgt i32 %36, 0
br i1 %38, label %31, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %31
br label %39
39: ; preds = %._crit_edge3, %26
store i32 0, ptr %8, align 4
store i32 0, ptr %4, align 4
%40 = load i32, ptr %4, align 4
%41 = load i32, ptr %2, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %.lr.ph5, label %66
.lr.ph5: ; preds = %39
br label %43
43: ; preds = %.lr.ph5, %60
%44 = load i32, ptr %4, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i32, ptr %12, i64 %45
%47 = load i32, ptr %46, align 4
%48 = icmp eq i32 %47, 1
br i1 %48, label %49, label %59
49: ; preds = %43
%50 = load i32, ptr %8, align 4
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %55
52: ; preds = %49
store i32 1, ptr %8, align 4
%53 = load i32, ptr %4, align 4
%54 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %53)
br label %58
55: ; preds = %49
%56 = load i32, ptr %4, align 4
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %56)
br label %58
58: ; preds = %55, %52
br label %59
59: ; preds = %58, %43
br label %60
60: ; preds = %59
%61 = load i32, ptr %4, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %4, align 4
%63 = load i32, ptr %4, align 4
%64 = load i32, ptr %2, align 4
%65 = icmp slt i32 %63, %64
br i1 %65, label %43, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %60
br label %66
66: ; preds = %._crit_edge6, %39
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %1, align 4
%68 = load ptr, ptr %5, align 8
call void @llvm.stackrestore(ptr %68)
%69 = load i32, ptr %1, align 4
ret i32 %69
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @scanf(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ...) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpcymha2xw.c'
source_filename = "/tmp/tmpcymha2xw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @f(double noundef -0.000000e+00)
ret i32 0
}
declare i32 @f(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcymha2xw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @f(double noundef -0.000000e+00)
ret i32 0
}
declare i32 @f(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpf5z4ktym.c'
source_filename = "/tmp/tmpf5z4ktym.c"
target datalayout = "e-m:e-p270: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/tmpf5z4ktym.c"
target datalayout = "e-m:e-p270: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/tmpprba8cvw.c'
source_filename = "/tmp/tmpprba8cvw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @error_exit(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @perror(ptr noundef %3)
%5 = load i32, ptr @errno, align 4
%6 = call i32 @exit(i32 noundef %5) #3
unreachable
}
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpprba8cvw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @error_exit(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @perror(ptr noundef %3)
%5 = load i32, ptr @errno, align 4
%6 = call i32 @exit(i32 noundef %5) #3
unreachable
}
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjdq7jnop.c'
source_filename = "/tmp/tmpjdq7jnop.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"Could not initialize.\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 i64 (...) @init_test()
%3 = icmp eq i64 %2, 0
br i1 %3, label %4, label %5
4: ; preds = %0
br label %5
5: ; preds = %4, %0
%6 = phi i1 [ false, %0 ], [ true, %4 ]
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 noundef %7)
%9 = call i32 @print_rdwr(i32 noundef 1024)
%10 = call i32 @print_rdwr(i32 noundef 2048)
%11 = call i32 @print_rdwr(i32 noundef 8192)
ret i32 0
}
declare i32 @assert(i32 noundef) #1
declare i64 @init_test(...) #1
declare i32 @print_rdwr(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/tmpjdq7jnop.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"Could not initialize.\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 i64 (...) @init_test()
%3 = icmp eq i64 %2, 0
br i1 %3, label %4, label %5
4: ; preds = %0
br label %5
5: ; preds = %4, %0
%6 = phi i1 [ false, %0 ], [ true, %4 ]
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 noundef %7)
%9 = call i32 @print_rdwr(i32 noundef 1024)
%10 = call i32 @print_rdwr(i32 noundef 2048)
%11 = call i32 @print_rdwr(i32 noundef 8192)
ret i32 0
}
declare i32 @assert(i32 noundef) #1
declare i64 @init_test(...) #1
declare i32 @print_rdwr(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/tmp62aoztcd.c'
source_filename = "/tmp/tmp62aoztcd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @get_screen_string_length(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i64 0, ptr %3, align 8
br label %6
6: ; preds = %11, %1
%7 = load ptr, ptr %2, align 8
%8 = load i8, ptr %7, align 1
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %23
11: ; preds = %6
%12 = load ptr, ptr %2, align 8
%13 = call i64 @get_char_width(ptr noundef %12)
store i64 %13, ptr %4, align 8
%14 = load ptr, ptr %2, align 8
%15 = load i64, ptr %4, align 8
%16 = call i64 @get_char_screen_width(ptr noundef %14, i64 noundef %15)
store i64 %16, ptr %5, align 8
%17 = load i64, ptr %4, align 8
%18 = load ptr, ptr %2, align 8
%19 = getelementptr inbounds i8, ptr %18, i64 %17
store ptr %19, ptr %2, align 8
%20 = load i64, ptr %5, align 8
%21 = load i64, ptr %3, align 8
%22 = add i64 %21, %20
store i64 %22, ptr %3, align 8
br label %6, !llvm.loop !6
23: ; preds = %6
%24 = load i64, ptr %3, align 8
ret i64 %24
}
declare i64 @get_char_width(ptr noundef) #1
declare i64 @get_char_screen_width(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp62aoztcd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @get_screen_string_length(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i64 0, ptr %3, align 8
%6 = load ptr, ptr %2, align 8
%7 = load i8, ptr %6, align 1
%8 = sext i8 %7 to i32
%9 = icmp ne i32 %8, 0
br i1 %9, label %.lr.ph, label %26
.lr.ph: ; preds = %1
br label %10
10: ; preds = %.lr.ph, %10
%11 = load ptr, ptr %2, align 8
%12 = call i64 @get_char_width(ptr noundef %11)
store i64 %12, ptr %4, align 8
%13 = load ptr, ptr %2, align 8
%14 = load i64, ptr %4, align 8
%15 = call i64 @get_char_screen_width(ptr noundef %13, i64 noundef %14)
store i64 %15, ptr %5, align 8
%16 = load i64, ptr %4, align 8
%17 = load ptr, ptr %2, align 8
%18 = getelementptr inbounds i8, ptr %17, i64 %16
store ptr %18, ptr %2, align 8
%19 = load i64, ptr %5, align 8
%20 = load i64, ptr %3, align 8
%21 = add i64 %20, %19
store i64 %21, ptr %3, align 8
%22 = load ptr, ptr %2, align 8
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp ne i32 %24, 0
br i1 %25, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %26
26: ; preds = %._crit_edge, %1
%27 = load i64, ptr %3, align 8
ret i64 %27
}
declare i64 @get_char_width(ptr noundef) #1
declare i64 @get_char_screen_width(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp4d22e4wl.c'
source_filename = "/tmp/tmp4d22e4wl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dcn_bw_ceil2(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
store float %0, ptr %4, align 4
store float %1, ptr %5, align 4
%7 = load float, ptr %4, align 4
%8 = load float, ptr %5, align 4
%9 = call float @dcn_bw_floor2(float noundef %7, float noundef %8)
store float %9, ptr %6, align 4
%10 = load float, ptr %5, align 4
%11 = fcmp oeq float %10, 0.000000e+00
br i1 %11, label %12, label %13
12: ; preds = %2
store float 0.000000e+00, ptr %3, align 4
br label %28
13: ; preds = %2
%14 = load float, ptr %6, align 4
%15 = fpext float %14 to double
%16 = fadd double %15, 1.000000e-05
%17 = load float, ptr %4, align 4
%18 = fpext float %17 to double
%19 = fcmp oge double %16, %18
br i1 %19, label %20, label %22
20: ; preds = %13
%21 = load float, ptr %4, align 4
br label %26
22: ; preds = %13
%23 = load float, ptr %6, align 4
%24 = load float, ptr %5, align 4
%25 = fadd float %23, %24
br label %26
26: ; preds = %22, %20
%27 = phi float [ %21, %20 ], [ %25, %22 ]
store float %27, ptr %3, align 4
br label %28
28: ; preds = %26, %12
%29 = load float, ptr %3, align 4
ret float %29
}
declare float @dcn_bw_floor2(float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4d22e4wl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dcn_bw_ceil2(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
store float %0, ptr %4, align 4
store float %1, ptr %5, align 4
%7 = load float, ptr %4, align 4
%8 = load float, ptr %5, align 4
%9 = call float @dcn_bw_floor2(float noundef %7, float noundef %8)
store float %9, ptr %6, align 4
%10 = load float, ptr %5, align 4
%11 = fcmp oeq float %10, 0.000000e+00
br i1 %11, label %12, label %13
12: ; preds = %2
store float 0.000000e+00, ptr %3, align 4
br label %28
13: ; preds = %2
%14 = load float, ptr %6, align 4
%15 = fpext float %14 to double
%16 = fadd double %15, 1.000000e-05
%17 = load float, ptr %4, align 4
%18 = fpext float %17 to double
%19 = fcmp oge double %16, %18
br i1 %19, label %20, label %22
20: ; preds = %13
%21 = load float, ptr %4, align 4
br label %26
22: ; preds = %13
%23 = load float, ptr %6, align 4
%24 = load float, ptr %5, align 4
%25 = fadd float %23, %24
br label %26
26: ; preds = %22, %20
%27 = phi float [ %21, %20 ], [ %25, %22 ]
store float %27, ptr %3, align 4
br label %28
28: ; preds = %26, %12
%29 = load float, ptr %3, align 4
ret float %29
}
declare float @dcn_bw_floor2(float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpk2yyum7w.c'
source_filename = "/tmp/tmpk2yyum7w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @VWB_DrawTile8(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = add nsw i32 %9, 7
%11 = load i32, ptr %5, align 4
%12 = add nsw i32 %11, 7
%13 = call i64 @VW_MarkUpdateBlock(i32 noundef %7, i32 noundef %8, i32 noundef %10, i32 noundef %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %20
15: ; preds = %3
%16 = load i32, ptr %4, align 4
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %6, align 4
%19 = call i32 @LatchDrawChar(i32 noundef %16, i32 noundef %17, i32 noundef %18)
br label %20
20: ; preds = %15, %3
ret void
}
declare i64 @VW_MarkUpdateBlock(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @LatchDrawChar(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/tmpk2yyum7w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @VWB_DrawTile8(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = add nsw i32 %9, 7
%11 = load i32, ptr %5, align 4
%12 = add nsw i32 %11, 7
%13 = call i64 @VW_MarkUpdateBlock(i32 noundef %7, i32 noundef %8, i32 noundef %10, i32 noundef %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %20
15: ; preds = %3
%16 = load i32, ptr %4, align 4
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %6, align 4
%19 = call i32 @LatchDrawChar(i32 noundef %16, i32 noundef %17, i32 noundef %18)
br label %20
20: ; preds = %15, %3
ret void
}
declare i64 @VW_MarkUpdateBlock(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @LatchDrawChar(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/tmpfe2s3_ej.c'
source_filename = "/tmp/tmpfe2s3_ej.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_4() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store ptr %1, ptr %2, align 8
store i32 1, ptr %1, align 4
%3 = load ptr, ptr %2, align 8
store i32 2, ptr %3, align 4
%4 = load i32, ptr %1, align 4
%5 = icmp eq i32 %4, 2
%6 = zext i1 %5 to i32
%7 = call i32 @__analyzer_eval(i32 noundef %6)
ret void
}
declare i32 @__analyzer_eval(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/tmpfe2s3_ej.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_4() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store ptr %1, ptr %2, align 8
store i32 1, ptr %1, align 4
%3 = load ptr, ptr %2, align 8
store i32 2, ptr %3, align 4
%4 = load i32, ptr %1, align 4
%5 = icmp eq i32 %4, 2
%6 = zext i1 %5 to i32
%7 = call i32 @__analyzer_eval(i32 noundef %6)
ret void
}
declare i32 @__analyzer_eval(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/tmp1o1nr608.c'
source_filename = "/tmp/tmp1o1nr608.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_line(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%9 = load i32, ptr %6, align 4
store i32 %9, ptr %8, align 4
%10 = call i32 @printf(ptr noundef @.str, i8 noundef signext 46)
store i32 3, ptr %7, align 4
br label %11
11: ; preds = %52, %3
%12 = load i32, ptr %7, align 4
%13 = load ptr, ptr %4, align 8
%14 = getelementptr inbounds i32, ptr %13, i64 2
%15 = load i32, ptr %14, align 4
%16 = add nsw i32 %15, 3
%17 = icmp slt i32 %12, %16
br i1 %17, label %18, label %55
18: ; preds = %11
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %7, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, ptr %19, i64 %21
%23 = load i32, ptr %22, align 4
%24 = load i32, ptr %6, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %26, label %27
26: ; preds = %18
br label %52
27: ; preds = %18
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %7, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i32, ptr %28, i64 %30
%32 = load i32, ptr %31, align 4
%33 = load i32, ptr %5, align 4
%34 = icmp sge i32 %32, %33
br i1 %34, label %35, label %36
35: ; preds = %27
br label %55
36: ; preds = %27
br label %37
37: ; preds = %46, %36
%38 = load i32, ptr %8, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %8, align 4
%40 = load ptr, ptr %4, align 8
%41 = load i32, ptr %7, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %40, i64 %42
%44 = load i32, ptr %43, align 4
%45 = icmp slt i32 %38, %44
br i1 %45, label %46, label %48
46: ; preds = %37
%47 = call i32 @printf(ptr noundef @.str, i8 noundef signext 32)
br label %37, !llvm.loop !6
48: ; preds = %37
%49 = call i32 @printf(ptr noundef @.str, i8 noundef signext 48)
br label %50
50: ; preds = %48
br label %51
51: ; preds = %50
br label %52
52: ; preds = %51, %26
%53 = load i32, ptr %7, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %7, align 4
br label %11, !llvm.loop !8
55: ; preds = %35, %11
br label %56
56: ; preds = %61, %55
%57 = load i32, ptr %8, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %8, align 4
%59 = load i32, ptr %5, align 4
%60 = icmp slt i32 %57, %59
br i1 %60, label %61, label %63
61: ; preds = %56
%62 = call i32 @printf(ptr noundef @.str, i8 noundef signext 32)
br label %56, !llvm.loop !9
63: ; preds = %56
%64 = call i32 @printf(ptr noundef @.str.1, i8 noundef signext 46)
ret void
}
declare i32 @printf(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1o1nr608.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_line(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%9 = load i32, ptr %6, align 4
store i32 %9, ptr %8, align 4
%10 = call i32 @printf(ptr noundef @.str, i8 noundef signext 46)
store i32 3, ptr %7, align 4
%11 = load i32, ptr %7, align 4
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds i32, ptr %12, i64 2
%14 = load i32, ptr %13, align 4
%15 = add nsw i32 %14, 3
%16 = icmp slt i32 %11, %15
br i1 %16, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %3
br label %17
17: ; preds = %.lr.ph2, %58
%18 = load ptr, ptr %4, align 8
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i32, ptr %18, i64 %20
%22 = load i32, ptr %21, align 4
%23 = load i32, ptr %6, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %26
25: ; preds = %17
br label %58
26: ; preds = %17
%27 = load ptr, ptr %4, align 8
%28 = load i32, ptr %7, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i32, ptr %27, i64 %29
%31 = load i32, ptr %30, align 4
%32 = load i32, ptr %5, align 4
%33 = icmp sge i32 %31, %32
br i1 %33, label %34, label %35
34: ; preds = %26
br label %67
35: ; preds = %26
%36 = load i32, ptr %8, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %8, align 4
%38 = load ptr, ptr %4, align 8
%39 = load i32, ptr %7, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, ptr %38, i64 %40
%42 = load i32, ptr %41, align 4
%43 = icmp slt i32 %36, %42
br i1 %43, label %.lr.ph, label %54
.lr.ph: ; preds = %35
br label %44
44: ; preds = %.lr.ph, %44
%45 = call i32 @printf(ptr noundef @.str, i8 noundef signext 32)
%46 = load i32, ptr %8, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %8, align 4
%48 = load ptr, ptr %4, align 8
%49 = load i32, ptr %7, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i32, ptr %48, i64 %50
%52 = load i32, ptr %51, align 4
%53 = icmp slt i32 %46, %52
br i1 %53, label %44, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %44
br label %54
54: ; preds = %._crit_edge, %35
%55 = call i32 @printf(ptr noundef @.str, i8 noundef signext 48)
br label %56
56: ; preds = %54
br label %57
57: ; preds = %56
br label %58
58: ; preds = %57, %25
%59 = load i32, ptr %7, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %7, align 4
%61 = load i32, ptr %7, align 4
%62 = load ptr, ptr %4, align 8
%63 = getelementptr inbounds i32, ptr %62, i64 2
%64 = load i32, ptr %63, align 4
%65 = add nsw i32 %64, 3
%66 = icmp slt i32 %61, %65
br i1 %66, label %17, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %58
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %3
br label %67
67: ; preds = %.loopexit, %34
%68 = load i32, ptr %8, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %8, align 4
%70 = load i32, ptr %5, align 4
%71 = icmp slt i32 %68, %70
br i1 %71, label %.lr.ph4, label %78
.lr.ph4: ; preds = %67
br label %72
72: ; preds = %.lr.ph4, %72
%73 = call i32 @printf(ptr noundef @.str, i8 noundef signext 32)
%74 = load i32, ptr %8, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %8, align 4
%76 = load i32, ptr %5, align 4
%77 = icmp slt i32 %74, %76
br i1 %77, label %72, label %._crit_edge5, !llvm.loop !9
._crit_edge5: ; preds = %72
br label %78
78: ; preds = %._crit_edge5, %67
%79 = call i32 @printf(ptr noundef @.str.1, i8 noundef signext 46)
ret void
}
declare i32 @printf(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpwhlf2103.c'
source_filename = "/tmp/tmpwhlf2103.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_hel_lo() #0 {
%1 = alloca ptr, align 8
store ptr null, ptr %1, align 8
%2 = load ptr, ptr %1, align 8
store i32 42, ptr %2, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwhlf2103.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_hel_lo() #0 {
%1 = alloca ptr, align 8
store ptr null, ptr %1, align 8
%2 = load ptr, ptr %1, align 8
store i32 42, ptr %2, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp76e43qlg.c'
source_filename = "/tmp/tmp76e43qlg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"Enter the number of allocations: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"\0Amalloc() failed\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store ptr null, ptr %2, align 8
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%7 = load i32, ptr %3, align 4
%8 = sext i32 %7 to i64
%9 = mul i64 %8, 4
%10 = trunc i64 %9 to i32
%11 = call i64 @malloc(i32 noundef %10)
%12 = inttoptr i64 %11 to ptr
store ptr %12, ptr %2, align 8
%13 = load ptr, ptr %2, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %18
15: ; preds = %0
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%17 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %17, ptr %1, align 4
br label %54
18: ; preds = %0
store i32 0, ptr %4, align 4
br label %19
19: ; preds = %30, %18
%20 = load i32, ptr %4, align 4
%21 = load i32, ptr %3, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %33
23: ; preds = %19
%24 = load i32, ptr %4, align 4
%25 = add nsw i32 %24, 1
%26 = load ptr, ptr %2, align 8
%27 = load i32, ptr %4, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i32, ptr %26, i64 %28
store i32 %25, ptr %29, align 4
br label %30
30: ; preds = %23
%31 = load i32, ptr %4, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %4, align 4
br label %19, !llvm.loop !6
33: ; preds = %19
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %4, align 4
br label %35
35: ; preds = %46, %33
%36 = load i32, ptr %4, align 4
%37 = load i32, ptr %3, align 4
%38 = icmp slt i32 %36, %37
br i1 %38, label %39, label %49
39: ; preds = %35
%40 = load ptr, ptr %2, align 8
%41 = load i32, ptr %4, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %40, i64 %42
%44 = load i32, ptr %43, align 4
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %44)
br label %46
46: ; preds = %39
%47 = load i32, ptr %4, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %4, align 4
br label %35, !llvm.loop !8
49: ; preds = %35
%50 = load ptr, ptr %2, align 8
%51 = call i32 @free(ptr noundef %50)
store ptr null, ptr %2, align 8
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%53 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %53, ptr %1, align 4
br label %54
54: ; preds = %49, %15
%55 = load i32, ptr %1, align 4
ret i32 %55
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp76e43qlg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"Enter the number of allocations: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"\0Amalloc() failed\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store ptr null, ptr %2, align 8
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%7 = load i32, ptr %3, align 4
%8 = sext i32 %7 to i64
%9 = mul i64 %8, 4
%10 = trunc i64 %9 to i32
%11 = call i64 @malloc(i32 noundef %10)
%12 = inttoptr i64 %11 to ptr
store ptr %12, ptr %2, align 8
%13 = load ptr, ptr %2, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %18
15: ; preds = %0
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%17 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %17, ptr %1, align 4
br label %58
18: ; preds = %0
store i32 0, ptr %4, align 4
%19 = load i32, ptr %4, align 4
%20 = load i32, ptr %3, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %.lr.ph, label %35
.lr.ph: ; preds = %18
br label %22
22: ; preds = %.lr.ph, %29
%23 = load i32, ptr %4, align 4
%24 = add nsw i32 %23, 1
%25 = load ptr, ptr %2, align 8
%26 = load i32, ptr %4, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, ptr %25, i64 %27
store i32 %24, ptr %28, align 4
br label %29
29: ; preds = %22
%30 = load i32, ptr %4, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %4, align 4
%32 = load i32, ptr %4, align 4
%33 = load i32, ptr %3, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %35
35: ; preds = %._crit_edge, %18
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %4, align 4
%37 = load i32, ptr %4, align 4
%38 = load i32, ptr %3, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %.lr.ph2, label %53
.lr.ph2: ; preds = %35
br label %40
40: ; preds = %.lr.ph2, %47
%41 = load ptr, ptr %2, align 8
%42 = load i32, ptr %4, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %41, i64 %43
%45 = load i32, ptr %44, align 4
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %45)
br label %47
47: ; preds = %40
%48 = load i32, ptr %4, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %4, align 4
%50 = load i32, ptr %4, align 4
%51 = load i32, ptr %3, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %40, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %47
br label %53
53: ; preds = %._crit_edge3, %35
%54 = load ptr, ptr %2, align 8
%55 = call i32 @free(ptr noundef %54)
store ptr null, ptr %2, align 8
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%57 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %57, ptr %1, align 4
br label %58
58: ; preds = %53, %15
%59 = load i32, ptr %1, align 4
ret i32 %59
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.