llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmpnclol418.c'
source_filename = "/tmp/tmpnclol418.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @io_in_i4(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 [4 x i8], align 1
%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 ptr, ptr %4, align 8
%10 = load i32, ptr %5, align 4
%11 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 0
%12 = call i32 @io_in(ptr noundef %9, i32 noundef %10, ptr noundef %11, i32 noundef 4)
store i32 %12, ptr %8, align 4
%13 = load ptr, ptr %6, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %35
15: ; preds = %3
%16 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 0
%17 = load i8, ptr %16, align 1
%18 = zext i8 %17 to i32
%19 = shl i32 %18, 24
%20 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 1
%21 = load i8, ptr %20, align 1
%22 = zext i8 %21 to i32
%23 = shl i32 %22, 16
%24 = or i32 %19, %23
%25 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 2
%26 = load i8, ptr %25, align 1
%27 = zext i8 %26 to i32
%28 = shl i32 %27, 8
%29 = or i32 %24, %28
%30 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 3
%31 = load i8, ptr %30, align 1
%32 = zext i8 %31 to i32
%33 = or i32 %29, %32
%34 = load ptr, ptr %6, align 8
store i32 %33, ptr %34, align 4
br label %35
35: ; preds = %15, %3
%36 = load i32, ptr %8, align 4
ret i32 %36
}
declare i32 @io_in(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/tmpnclol418.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @io_in_i4(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 [4 x i8], align 1
%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 ptr, ptr %4, align 8
%10 = load i32, ptr %5, align 4
%11 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 0
%12 = call i32 @io_in(ptr noundef %9, i32 noundef %10, ptr noundef %11, i32 noundef 4)
store i32 %12, ptr %8, align 4
%13 = load ptr, ptr %6, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %35
15: ; preds = %3
%16 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 0
%17 = load i8, ptr %16, align 1
%18 = zext i8 %17 to i32
%19 = shl i32 %18, 24
%20 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 1
%21 = load i8, ptr %20, align 1
%22 = zext i8 %21 to i32
%23 = shl i32 %22, 16
%24 = or i32 %19, %23
%25 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 2
%26 = load i8, ptr %25, align 1
%27 = zext i8 %26 to i32
%28 = shl i32 %27, 8
%29 = or i32 %24, %28
%30 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 3
%31 = load i8, ptr %30, align 1
%32 = zext i8 %31 to i32
%33 = or i32 %29, %32
%34 = load ptr, ptr %6, align 8
store i32 %33, ptr %34, align 4
br label %35
35: ; preds = %15, %3
%36 = load i32, ptr %8, align 4
ret i32 %36
}
declare i32 @io_in(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/tmpmcjl6yl5.c'
source_filename = "/tmp/tmpmcjl6yl5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [14 x i8] c"/bin:/usr/bin\00", align 1
@_CS_POSIX_V6_ILP32_OFF32_CFLAGS = dso_local global i32 0, align 4
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @confstr(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store ptr @.str, ptr %8, align 8
%9 = load i32, ptr %5, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %12, label %11
11: ; preds = %3
store ptr @.str.1, ptr %8, align 8
br label %24
12: ; preds = %3
%13 = load i32, ptr %5, align 4
%14 = and i32 %13, -5
%15 = icmp ne i32 %14, 1
br i1 %15, label %16, label %23
16: ; preds = %12
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr @_CS_POSIX_V6_ILP32_OFF32_CFLAGS, align 4
%19 = sub nsw i32 %17, %18
%20 = icmp ugt i32 %19, 31
br i1 %20, label %21, label %23
21: ; preds = %16
%22 = load i32, ptr @EINVAL, align 4
store i32 %22, ptr @errno, align 4
store i64 0, ptr %4, align 8
br label %29
23: ; preds = %16, %12
br label %24
24: ; preds = %23, %11
%25 = load ptr, ptr %6, align 8
%26 = load i64, ptr %7, align 8
%27 = load ptr, ptr %8, align 8
%28 = call i64 @snprintf(ptr noundef %25, i64 noundef %26, ptr noundef @.str.2, ptr noundef %27)
store i64 %28, ptr %4, align 8
br label %29
29: ; preds = %24, %21
%30 = load i64, ptr %4, align 8
ret i64 %30
}
declare i64 @snprintf(ptr noundef, i64 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmcjl6yl5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [14 x i8] c"/bin:/usr/bin\00", align 1
@_CS_POSIX_V6_ILP32_OFF32_CFLAGS = dso_local global i32 0, align 4
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @confstr(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store ptr @.str, ptr %8, align 8
%9 = load i32, ptr %5, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %12, label %11
11: ; preds = %3
store ptr @.str.1, ptr %8, align 8
br label %24
12: ; preds = %3
%13 = load i32, ptr %5, align 4
%14 = and i32 %13, -5
%15 = icmp ne i32 %14, 1
br i1 %15, label %16, label %23
16: ; preds = %12
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr @_CS_POSIX_V6_ILP32_OFF32_CFLAGS, align 4
%19 = sub nsw i32 %17, %18
%20 = icmp ugt i32 %19, 31
br i1 %20, label %21, label %23
21: ; preds = %16
%22 = load i32, ptr @EINVAL, align 4
store i32 %22, ptr @errno, align 4
store i64 0, ptr %4, align 8
br label %29
23: ; preds = %16, %12
br label %24
24: ; preds = %23, %11
%25 = load ptr, ptr %6, align 8
%26 = load i64, ptr %7, align 8
%27 = load ptr, ptr %8, align 8
%28 = call i64 @snprintf(ptr noundef %25, i64 noundef %26, ptr noundef @.str.2, ptr noundef %27)
store i64 %28, ptr %4, align 8
br label %29
29: ; preds = %24, %21
%30 = load i64, ptr %4, align 8
ret i64 %30
}
declare i64 @snprintf(ptr noundef, i64 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpuw2k1ujt.c'
source_filename = "/tmp/tmpuw2k1ujt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gdb_write_hex_data(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
%14 = load ptr, ptr %5, align 8
store ptr %14, ptr %12, align 8
%15 = load ptr, ptr %7, align 8
store ptr %15, ptr %13, align 8
br label %16
16: ; preds = %26, %4
%17 = load i32, ptr %9, align 4
%18 = load i32, ptr %6, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %40
20: ; preds = %16
%21 = load i32, ptr %10, align 4
%22 = add nsw i32 %21, 2
%23 = load i32, ptr %8, align 4
%24 = icmp sgt i32 %22, %23
br i1 %24, label %25, label %26
25: ; preds = %20
br label %40
26: ; preds = %20
%27 = load ptr, ptr %12, align 8
%28 = getelementptr inbounds i8, ptr %27, i32 1
store ptr %28, ptr %12, align 8
%29 = load i8, ptr %27, align 1
%30 = zext i8 %29 to i32
store i32 %30, ptr %11, align 4
%31 = load ptr, ptr %13, align 8
%32 = load i32, ptr %11, align 4
%33 = call i32 @util_byte_to_hex(ptr noundef %31, i32 noundef %32)
%34 = load ptr, ptr %13, align 8
%35 = getelementptr inbounds i8, ptr %34, i64 2
store ptr %35, ptr %13, align 8
%36 = load i32, ptr %10, align 4
%37 = add nsw i32 %36, 2
store i32 %37, ptr %10, align 4
%38 = load i32, ptr %9, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %9, align 4
br label %16, !llvm.loop !6
40: ; preds = %25, %16
%41 = load ptr, ptr %13, align 8
store i8 0, ptr %41, align 1
%42 = load i32, ptr %10, align 4
ret i32 %42
}
declare i32 @util_byte_to_hex(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/tmpuw2k1ujt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gdb_write_hex_data(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
%14 = load ptr, ptr %5, align 8
store ptr %14, ptr %12, align 8
%15 = load ptr, ptr %7, align 8
store ptr %15, ptr %13, align 8
%16 = load i32, ptr %9, align 4
%17 = load i32, ptr %6, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %4
br label %19
19: ; preds = %.lr.ph, %25
%20 = load i32, ptr %10, align 4
%21 = add nsw i32 %20, 2
%22 = load i32, ptr %8, align 4
%23 = icmp sgt i32 %21, %22
br i1 %23, label %24, label %25
24: ; preds = %19
br label %42
25: ; preds = %19
%26 = load ptr, ptr %12, align 8
%27 = getelementptr inbounds i8, ptr %26, i32 1
store ptr %27, ptr %12, align 8
%28 = load i8, ptr %26, align 1
%29 = zext i8 %28 to i32
store i32 %29, ptr %11, align 4
%30 = load ptr, ptr %13, align 8
%31 = load i32, ptr %11, align 4
%32 = call i32 @util_byte_to_hex(ptr noundef %30, i32 noundef %31)
%33 = load ptr, ptr %13, align 8
%34 = getelementptr inbounds i8, ptr %33, i64 2
store ptr %34, ptr %13, align 8
%35 = load i32, ptr %10, align 4
%36 = add nsw i32 %35, 2
store i32 %36, ptr %10, align 4
%37 = load i32, ptr %9, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %9, align 4
%39 = load i32, ptr %9, align 4
%40 = load i32, ptr %6, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %19, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %25
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %4
br label %42
42: ; preds = %.loopexit, %24
%43 = load ptr, ptr %13, align 8
store i8 0, ptr %43, align 1
%44 = load i32, ptr %10, align 4
ret i32 %44
}
declare i32 @util_byte_to_hex(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/tmp47j4uw_r.c'
source_filename = "/tmp/tmp47j4uw_r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%.4e\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca float, align 4
%2 = call i32 @scanf(ptr noundef @.str, ptr noundef %1)
%3 = load float, ptr %1, align 4
%4 = call i32 @printf(ptr noundef @.str.1, float noundef %3)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp47j4uw_r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%.4e\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca float, align 4
%2 = call i32 @scanf(ptr noundef @.str, ptr noundef %1)
%3 = load float, ptr %1, align 4
%4 = call i32 @printf(ptr noundef @.str.1, float noundef %3)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbpnqsg2n.c'
source_filename = "/tmp/tmpbpnqsg2n.c"
target datalayout = "e-m:e-p270: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/tmpbpnqsg2n.c"
target datalayout = "e-m:e-p270: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/tmppasac9xc.c'
source_filename = "/tmp/tmppasac9xc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"aaa_bbCccDdd\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"aaa_bb_ccc_ddd\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"Input is %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"result is %s \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test2() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr @.str, ptr %2, align 8
store ptr @.str.1, ptr %3, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @printf(ptr noundef @.str.2, ptr noundef %5)
%7 = load ptr, ptr %2, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = mul nsw i32 %8, 2
%10 = call i64 @malloc(i32 noundef %9)
%11 = inttoptr i64 %10 to ptr
store ptr %11, ptr %4, align 8
%12 = load ptr, ptr %4, align 8
%13 = load ptr, ptr %2, align 8
%14 = call i32 @strlen(ptr noundef %13)
%15 = mul nsw i32 %14, 2
%16 = call i32 @memset(ptr noundef %12, i32 noundef 0, i32 noundef %15)
%17 = load ptr, ptr %2, align 8
%18 = call i32 @Hungary2DownLineX(ptr noundef %17, ptr noundef %4)
%19 = load ptr, ptr %4, align 8
%20 = call i32 @printf(ptr noundef @.str.3, ptr noundef %19)
%21 = load ptr, ptr %3, align 8
%22 = load ptr, ptr %4, align 8
%23 = call i64 @strcmp(ptr noundef %21, ptr noundef %22)
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %28
25: ; preds = %0
%26 = load ptr, ptr %4, align 8
%27 = call i32 @free(ptr noundef %26)
store i32 1, ptr %1, align 4
br label %29
28: ; preds = %0
store i32 0, ptr %1, align 4
br label %29
29: ; preds = %28, %25
%30 = load i32, ptr %1, align 4
ret i32 %30
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @Hungary2DownLineX(ptr noundef, ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppasac9xc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"aaa_bbCccDdd\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"aaa_bb_ccc_ddd\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"Input is %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"result is %s \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test2() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr @.str, ptr %2, align 8
store ptr @.str.1, ptr %3, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @printf(ptr noundef @.str.2, ptr noundef %5)
%7 = load ptr, ptr %2, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = mul nsw i32 %8, 2
%10 = call i64 @malloc(i32 noundef %9)
%11 = inttoptr i64 %10 to ptr
store ptr %11, ptr %4, align 8
%12 = load ptr, ptr %4, align 8
%13 = load ptr, ptr %2, align 8
%14 = call i32 @strlen(ptr noundef %13)
%15 = mul nsw i32 %14, 2
%16 = call i32 @memset(ptr noundef %12, i32 noundef 0, i32 noundef %15)
%17 = load ptr, ptr %2, align 8
%18 = call i32 @Hungary2DownLineX(ptr noundef %17, ptr noundef %4)
%19 = load ptr, ptr %4, align 8
%20 = call i32 @printf(ptr noundef @.str.3, ptr noundef %19)
%21 = load ptr, ptr %3, align 8
%22 = load ptr, ptr %4, align 8
%23 = call i64 @strcmp(ptr noundef %21, ptr noundef %22)
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %28
25: ; preds = %0
%26 = load ptr, ptr %4, align 8
%27 = call i32 @free(ptr noundef %26)
store i32 1, ptr %1, align 4
br label %29
28: ; preds = %0
store i32 0, ptr %1, align 4
br label %29
29: ; preds = %28, %25
%30 = load i32, ptr %1, align 4
ret i32 %30
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @Hungary2DownLineX(ptr noundef, ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp57l25g9x.c'
source_filename = "/tmp/tmp57l25g9x.c"
target datalayout = "e-m:e-p270: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
@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/tmp57l25g9x.c"
target datalayout = "e-m:e-p270: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
@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/tmpfavo50_1.c'
source_filename = "/tmp/tmpfavo50_1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"-1\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%ld\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 [400 x i8], align 16
%7 = alloca i64, align 8
%8 = alloca i8, align 1
%9 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 400, ptr %7, align 8
%10 = getelementptr inbounds [400 x i8], ptr %6, i64 0, i64 0
%11 = load i64, ptr %7, align 8
%12 = load i32, ptr @stdin, align 4
%13 = call i32 @fgets(ptr noundef %10, i64 noundef %11, i32 noundef %12)
%14 = call i32 @scanf(ptr noundef @.str, ptr noundef %8)
%15 = getelementptr inbounds [400 x i8], ptr %6, i64 0, i64 0
%16 = load i8, ptr %8, align 1
%17 = call ptr @find(ptr noundef %15, i8 noundef signext %16)
store ptr %17, ptr %9, align 8
%18 = load ptr, ptr %9, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %22
20: ; preds = %2
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %29
22: ; preds = %2
%23 = load ptr, ptr %9, align 8
%24 = getelementptr inbounds [400 x i8], ptr %6, i64 0, i64 0
%25 = ptrtoint ptr %23 to i64
%26 = ptrtoint ptr %24 to i64
%27 = sub i64 %25, %26
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %27)
br label %29
29: ; preds = %22, %20
ret i32 0
}
declare i32 @fgets(ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare ptr @find(ptr noundef, i8 noundef signext) #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/tmpfavo50_1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"-1\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%ld\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 [400 x i8], align 16
%7 = alloca i64, align 8
%8 = alloca i8, align 1
%9 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i64 400, ptr %7, align 8
%10 = getelementptr inbounds [400 x i8], ptr %6, i64 0, i64 0
%11 = load i64, ptr %7, align 8
%12 = load i32, ptr @stdin, align 4
%13 = call i32 @fgets(ptr noundef %10, i64 noundef %11, i32 noundef %12)
%14 = call i32 @scanf(ptr noundef @.str, ptr noundef %8)
%15 = getelementptr inbounds [400 x i8], ptr %6, i64 0, i64 0
%16 = load i8, ptr %8, align 1
%17 = call ptr @find(ptr noundef %15, i8 noundef signext %16)
store ptr %17, ptr %9, align 8
%18 = load ptr, ptr %9, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %22
20: ; preds = %2
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %29
22: ; preds = %2
%23 = load ptr, ptr %9, align 8
%24 = getelementptr inbounds [400 x i8], ptr %6, i64 0, i64 0
%25 = ptrtoint ptr %23 to i64
%26 = ptrtoint ptr %24 to i64
%27 = sub i64 %25, %26
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %27)
br label %29
29: ; preds = %22, %20
ret i32 0
}
declare i32 @fgets(ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare ptr @find(ptr noundef, i8 noundef signext) #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/tmp6afzh7th.c'
source_filename = "/tmp/tmp6afzh7th.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Rec709_OETF(float noundef %0) #0 {
%2 = alloca float, align 4
%3 = alloca float, align 4
store float %0, ptr %2, align 4
%4 = load float, ptr %2, align 4
%5 = fpext float %4 to double
%6 = fcmp ogt double %5, 8.100000e-02
br i1 %6, label %7, label %12
7: ; preds = %1
%8 = load float, ptr %2, align 4
%9 = call double @pow(float noundef %8, double noundef 4.500000e-01)
%10 = call double @llvm.fmuladd.f64(double 1.099000e+00, double %9, double -9.900000e-02)
%11 = fptrunc double %10 to float
store float %11, ptr %3, align 4
br label %22
12: ; preds = %1
%13 = load float, ptr %2, align 4
%14 = fcmp ogt float %13, 0.000000e+00
br i1 %14, label %15, label %20
15: ; preds = %12
%16 = load float, ptr %2, align 4
%17 = fpext float %16 to double
%18 = fmul double %17, 4.500000e+00
%19 = fptrunc double %18 to float
store float %19, ptr %3, align 4
br label %21
20: ; preds = %12
store float 0.000000e+00, ptr %3, align 4
br label %21
21: ; preds = %20, %15
br label %22
22: ; preds = %21, %7
%23 = load float, ptr %3, align 4
ret float %23
}
declare double @pow(float noundef, double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6afzh7th.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Rec709_OETF(float noundef %0) #0 {
%2 = alloca float, align 4
%3 = alloca float, align 4
store float %0, ptr %2, align 4
%4 = load float, ptr %2, align 4
%5 = fpext float %4 to double
%6 = fcmp ogt double %5, 8.100000e-02
br i1 %6, label %7, label %12
7: ; preds = %1
%8 = load float, ptr %2, align 4
%9 = call double @pow(float noundef %8, double noundef 4.500000e-01)
%10 = call double @llvm.fmuladd.f64(double 1.099000e+00, double %9, double -9.900000e-02)
%11 = fptrunc double %10 to float
store float %11, ptr %3, align 4
br label %22
12: ; preds = %1
%13 = load float, ptr %2, align 4
%14 = fcmp ogt float %13, 0.000000e+00
br i1 %14, label %15, label %20
15: ; preds = %12
%16 = load float, ptr %2, align 4
%17 = fpext float %16 to double
%18 = fmul double %17, 4.500000e+00
%19 = fptrunc double %18 to float
store float %19, ptr %3, align 4
br label %21
20: ; preds = %12
store float 0.000000e+00, ptr %3, align 4
br label %21
21: ; preds = %20, %15
br label %22
22: ; preds = %21, %7
%23 = load float, ptr %3, align 4
ret float %23
}
declare double @pow(float noundef, double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpk_865xus.c'
source_filename = "/tmp/tmpk_865xus.c"
target datalayout = "e-m:e-p270: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/tmpk_865xus.c"
target datalayout = "e-m:e-p270: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/tmpc3wm_iyb.c'
source_filename = "/tmp/tmpc3wm_iyb.c"
target datalayout = "e-m:e-p270: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/tmpc3wm_iyb.c"
target datalayout = "e-m:e-p270: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_qgsplfc.c'
source_filename = "/tmp/tmp_qgsplfc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fgmvwrite_nodes_fromfile_(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i32 @fortchartoc(ptr noundef %5)
%7 = load i64, ptr %4, align 8
%8 = call i32 @gmvwrite_nodes_fromfile(i32 noundef %6, i64 noundef %7)
ret void
}
declare i32 @gmvwrite_nodes_fromfile(i32 noundef, i64 noundef) #1
declare i32 @fortchartoc(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_qgsplfc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fgmvwrite_nodes_fromfile_(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i32 @fortchartoc(ptr noundef %5)
%7 = load i64, ptr %4, align 8
%8 = call i32 @gmvwrite_nodes_fromfile(i32 noundef %6, i64 noundef %7)
ret void
}
declare i32 @gmvwrite_nodes_fromfile(i32 noundef, i64 noundef) #1
declare i32 @fortchartoc(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/tmpqen7rjbx.c'
source_filename = "/tmp/tmpqen7rjbx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_floor2(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
store float %0, ptr %4, align 4
store float %1, ptr %5, align 4
%6 = load float, ptr %5, align 4
%7 = fcmp oeq float %6, 0.000000e+00
br i1 %7, label %8, label %9
8: ; preds = %2
store float 0.000000e+00, ptr %3, align 4
br label %17
9: ; preds = %2
%10 = load float, ptr %4, align 4
%11 = load float, ptr %5, align 4
%12 = fdiv float %10, %11
%13 = fptosi float %12 to i32
%14 = sitofp i32 %13 to float
%15 = load float, ptr %5, align 4
%16 = fmul float %14, %15
store float %16, ptr %3, align 4
br label %17
17: ; preds = %9, %8
%18 = load float, ptr %3, align 4
ret float %18
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqen7rjbx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_floor2(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
store float %0, ptr %4, align 4
store float %1, ptr %5, align 4
%6 = load float, ptr %5, align 4
%7 = fcmp oeq float %6, 0.000000e+00
br i1 %7, label %8, label %9
8: ; preds = %2
store float 0.000000e+00, ptr %3, align 4
br label %17
9: ; preds = %2
%10 = load float, ptr %4, align 4
%11 = load float, ptr %5, align 4
%12 = fdiv float %10, %11
%13 = fptosi float %12 to i32
%14 = sitofp i32 %13 to float
%15 = load float, ptr %5, align 4
%16 = fmul float %14, %15
store float %16, ptr %3, align 4
br label %17
17: ; preds = %9, %8
%18 = load float, ptr %3, align 4
ret float %18
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprvb8v236.c'
source_filename = "/tmp/tmprvb8v236.c"
target datalayout = "e-m:e-p270: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/tmprvb8v236.c"
target datalayout = "e-m:e-p270: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/tmp8s9x49rq.c'
source_filename = "/tmp/tmp8s9x49rq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 @show_tab(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %17, %2
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %20
10: ; preds = %6
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i32, ptr %11, i64 %13
%15 = load i32, ptr %14, align 4
%16 = call i32 @printf(ptr noundef @.str, i32 noundef %15)
br label %17
17: ; preds = %10
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %5, align 4
br label %6, !llvm.loop !6
20: ; preds = %6
ret void
}
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/tmp8s9x49rq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 @show_tab(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %22
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %16
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i32, ptr %10, i64 %12
%14 = load i32, ptr %13, align 4
%15 = call i32 @printf(ptr noundef @.str, i32 noundef %14)
br label %16
16: ; preds = %9
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %5, align 4
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %22
22: ; preds = %._crit_edge, %2
ret void
}
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/tmpp29dx5fz.c'
source_filename = "/tmp/tmpp29dx5fz.c"
target datalayout = "e-m:e-p270: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/tmpp29dx5fz.c"
target datalayout = "e-m:e-p270: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/tmpswdm2phs.c'
source_filename = "/tmp/tmpswdm2phs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @logInit() #0 {
%1 = call i32 (...) @private_log_init()
ret void
}
declare i32 @private_log_init(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpswdm2phs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @logInit() #0 {
%1 = call i32 (...) @private_log_init()
ret void
}
declare i32 @private_log_init(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1celp3st.c'
source_filename = "/tmp/tmp1celp3st.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@ERANGE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mx_strtobytes(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 0, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %15
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = load i8, ptr %12, align 1
%14 = icmp ne i8 %13, 0
br i1 %14, label %18, label %15
15: ; preds = %11, %2
%16 = load i32, ptr @EINVAL, align 4
store i32 %16, ptr @errno, align 4
%17 = sub nsw i32 0, %16
store i32 %17, ptr %3, align 4
br label %118
18: ; preds = %11
%19 = load ptr, ptr %4, align 8
%20 = call i64 @strchr(ptr noundef %19, i8 noundef signext 45)
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %18
%23 = load i32, ptr @ERANGE, align 4
store i32 %23, ptr @errno, align 4
%24 = sub nsw i32 0, %23
store i32 %24, ptr %3, align 4
br label %118
25: ; preds = %18
br label %26
26: ; preds = %111, %25
store i32 0, ptr @errno, align 4
%27 = load ptr, ptr %4, align 8
%28 = call i64 @strtoull(ptr noundef %27, ptr noundef %8, i32 noundef 10)
store i64 %28, ptr %7, align 8
%29 = load i32, ptr @errno, align 4
%30 = icmp ne i32 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %26
%32 = load i32, ptr @errno, align 4
%33 = sub nsw i32 0, %32
store i32 %33, ptr %3, align 4
br label %118
34: ; preds = %26
%35 = load ptr, ptr %4, align 8
%36 = load ptr, ptr %8, align 8
%37 = icmp eq ptr %35, %36
br i1 %37, label %38, label %41
38: ; preds = %34
%39 = load i32, ptr @EINVAL, align 4
store i32 %39, ptr @errno, align 4
%40 = sub nsw i32 0, %39
store i32 %40, ptr %3, align 4
br label %118
41: ; preds = %34
br label %42
42: ; preds = %55, %41
%43 = load ptr, ptr %8, align 8
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %52
47: ; preds = %42
%48 = load ptr, ptr %8, align 8
%49 = load i8, ptr %48, align 1
%50 = sext i8 %49 to i32
%51 = icmp eq i32 %50, 32
br label %52
52: ; preds = %47, %42
%53 = phi i1 [ false, %42 ], [ %51, %47 ]
br i1 %53, label %54, label %58
54: ; preds = %52
br label %55
55: ; preds = %54
%56 = load ptr, ptr %8, align 8
%57 = getelementptr inbounds i8, ptr %56, i32 1
store ptr %57, ptr %8, align 8
br label %42, !llvm.loop !6
58: ; preds = %52
%59 = load ptr, ptr %8, align 8
%60 = load i8, ptr %59, align 1
%61 = sext i8 %60 to i32
switch i32 %61, label %77 [
i32 84, label %62
i32 71, label %65
i32 77, label %68
i32 107, label %71
i32 75, label %71
i32 66, label %74
]
62: ; preds = %58
%63 = load i64, ptr %7, align 8
%64 = mul i64 %63, 1024
store i64 %64, ptr %7, align 8
br label %65
65: ; preds = %58, %62
%66 = load i64, ptr %7, align 8
%67 = mul i64 %66, 1024
store i64 %67, ptr %7, align 8
br label %68
68: ; preds = %58, %65
%69 = load i64, ptr %7, align 8
%70 = mul i64 %69, 1024
store i64 %70, ptr %7, align 8
br label %71
71: ; preds = %58, %58, %68
%72 = load i64, ptr %7, align 8
%73 = mul i64 %72, 1024
store i64 %73, ptr %7, align 8
br label %74
74: ; preds = %58, %71
%75 = load ptr, ptr %8, align 8
%76 = getelementptr inbounds i8, ptr %75, i32 1
store ptr %76, ptr %8, align 8
br label %80
77: ; preds = %58
%78 = load i32, ptr @EINVAL, align 4
store i32 %78, ptr @errno, align 4
%79 = sub nsw i32 0, %78
store i32 %79, ptr %3, align 4
br label %118
80: ; preds = %74
%81 = load i64, ptr %6, align 8
%82 = load i64, ptr %7, align 8
%83 = add i64 %81, %82
%84 = load i64, ptr %6, align 8
%85 = icmp ult i64 %83, %84
br i1 %85, label %86, label %89
86: ; preds = %80
%87 = load i32, ptr @ERANGE, align 4
store i32 %87, ptr @errno, align 4
%88 = sub nsw i32 0, %87
store i32 %88, ptr %3, align 4
br label %118
89: ; preds = %80
%90 = load i64, ptr %7, align 8
%91 = load i64, ptr %6, align 8
%92 = add i64 %91, %90
store i64 %92, ptr %6, align 8
br label %93
93: ; preds = %106, %89
%94 = load ptr, ptr %8, align 8
%95 = load i8, ptr %94, align 1
%96 = sext i8 %95 to i32
%97 = icmp ne i32 %96, 0
br i1 %97, label %98, label %103
98: ; preds = %93
%99 = load ptr, ptr %8, align 8
%100 = load i8, ptr %99, align 1
%101 = sext i8 %100 to i32
%102 = icmp eq i32 %101, 32
br label %103
103: ; preds = %98, %93
%104 = phi i1 [ false, %93 ], [ %102, %98 ]
br i1 %104, label %105, label %109
105: ; preds = %103
br label %106
106: ; preds = %105
%107 = load ptr, ptr %8, align 8
%108 = getelementptr inbounds i8, ptr %107, i32 1
store ptr %108, ptr %8, align 8
br label %93, !llvm.loop !8
109: ; preds = %103
%110 = load ptr, ptr %8, align 8
store ptr %110, ptr %4, align 8
br label %111
111: ; preds = %109
%112 = load ptr, ptr %4, align 8
%113 = load i8, ptr %112, align 1
%114 = icmp ne i8 %113, 0
br i1 %114, label %26, label %115, !llvm.loop !9
115: ; preds = %111
%116 = load i64, ptr %6, align 8
%117 = load ptr, ptr %5, align 8
store i64 %116, ptr %117, align 8
store i32 0, ptr %3, align 4
br label %118
118: ; preds = %115, %86, %77, %38, %31, %22, %15
%119 = load i32, ptr %3, align 4
ret i32 %119
}
declare i64 @strchr(ptr noundef, i8 noundef signext) #1
declare i64 @strtoull(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1celp3st.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@ERANGE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mx_strtobytes(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 0, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %15
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = load i8, ptr %12, align 1
%14 = icmp ne i8 %13, 0
br i1 %14, label %18, label %15
15: ; preds = %11, %2
%16 = load i32, ptr @EINVAL, align 4
store i32 %16, ptr @errno, align 4
%17 = sub nsw i32 0, %16
store i32 %17, ptr %3, align 4
br label %118
18: ; preds = %11
%19 = load ptr, ptr %4, align 8
%20 = call i64 @strchr(ptr noundef %19, i8 noundef signext 45)
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %18
%23 = load i32, ptr @ERANGE, align 4
store i32 %23, ptr @errno, align 4
%24 = sub nsw i32 0, %23
store i32 %24, ptr %3, align 4
br label %118
25: ; preds = %18
br label %26
26: ; preds = %111, %25
store i32 0, ptr @errno, align 4
%27 = load ptr, ptr %4, align 8
%28 = call i64 @strtoull(ptr noundef %27, ptr noundef %8, i32 noundef 10)
store i64 %28, ptr %7, align 8
%29 = load i32, ptr @errno, align 4
%30 = icmp ne i32 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %26
%32 = load i32, ptr @errno, align 4
%33 = sub nsw i32 0, %32
store i32 %33, ptr %3, align 4
br label %118
34: ; preds = %26
%35 = load ptr, ptr %4, align 8
%36 = load ptr, ptr %8, align 8
%37 = icmp eq ptr %35, %36
br i1 %37, label %38, label %41
38: ; preds = %34
%39 = load i32, ptr @EINVAL, align 4
store i32 %39, ptr @errno, align 4
%40 = sub nsw i32 0, %39
store i32 %40, ptr %3, align 4
br label %118
41: ; preds = %34
br label %42
42: ; preds = %55, %41
%43 = load ptr, ptr %8, align 8
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %52
47: ; preds = %42
%48 = load ptr, ptr %8, align 8
%49 = load i8, ptr %48, align 1
%50 = sext i8 %49 to i32
%51 = icmp eq i32 %50, 32
br label %52
52: ; preds = %47, %42
%53 = phi i1 [ false, %42 ], [ %51, %47 ]
br i1 %53, label %54, label %58
54: ; preds = %52
br label %55
55: ; preds = %54
%56 = load ptr, ptr %8, align 8
%57 = getelementptr inbounds i8, ptr %56, i32 1
store ptr %57, ptr %8, align 8
br label %42, !llvm.loop !6
58: ; preds = %52
%59 = load ptr, ptr %8, align 8
%60 = load i8, ptr %59, align 1
%61 = sext i8 %60 to i32
switch i32 %61, label %77 [
i32 84, label %62
i32 71, label %65
i32 77, label %68
i32 107, label %71
i32 75, label %71
i32 66, label %74
]
62: ; preds = %58
%63 = load i64, ptr %7, align 8
%64 = mul i64 %63, 1024
store i64 %64, ptr %7, align 8
br label %65
65: ; preds = %62, %58
%66 = load i64, ptr %7, align 8
%67 = mul i64 %66, 1024
store i64 %67, ptr %7, align 8
br label %68
68: ; preds = %65, %58
%69 = load i64, ptr %7, align 8
%70 = mul i64 %69, 1024
store i64 %70, ptr %7, align 8
br label %71
71: ; preds = %68, %58, %58
%72 = load i64, ptr %7, align 8
%73 = mul i64 %72, 1024
store i64 %73, ptr %7, align 8
br label %74
74: ; preds = %71, %58
%75 = load ptr, ptr %8, align 8
%76 = getelementptr inbounds i8, ptr %75, i32 1
store ptr %76, ptr %8, align 8
br label %80
77: ; preds = %58
%78 = load i32, ptr @EINVAL, align 4
store i32 %78, ptr @errno, align 4
%79 = sub nsw i32 0, %78
store i32 %79, ptr %3, align 4
br label %118
80: ; preds = %74
%81 = load i64, ptr %6, align 8
%82 = load i64, ptr %7, align 8
%83 = add i64 %81, %82
%84 = load i64, ptr %6, align 8
%85 = icmp ult i64 %83, %84
br i1 %85, label %86, label %89
86: ; preds = %80
%87 = load i32, ptr @ERANGE, align 4
store i32 %87, ptr @errno, align 4
%88 = sub nsw i32 0, %87
store i32 %88, ptr %3, align 4
br label %118
89: ; preds = %80
%90 = load i64, ptr %7, align 8
%91 = load i64, ptr %6, align 8
%92 = add i64 %91, %90
store i64 %92, ptr %6, align 8
br label %93
93: ; preds = %106, %89
%94 = load ptr, ptr %8, align 8
%95 = load i8, ptr %94, align 1
%96 = sext i8 %95 to i32
%97 = icmp ne i32 %96, 0
br i1 %97, label %98, label %103
98: ; preds = %93
%99 = load ptr, ptr %8, align 8
%100 = load i8, ptr %99, align 1
%101 = sext i8 %100 to i32
%102 = icmp eq i32 %101, 32
br label %103
103: ; preds = %98, %93
%104 = phi i1 [ false, %93 ], [ %102, %98 ]
br i1 %104, label %105, label %109
105: ; preds = %103
br label %106
106: ; preds = %105
%107 = load ptr, ptr %8, align 8
%108 = getelementptr inbounds i8, ptr %107, i32 1
store ptr %108, ptr %8, align 8
br label %93, !llvm.loop !8
109: ; preds = %103
%110 = load ptr, ptr %8, align 8
store ptr %110, ptr %4, align 8
br label %111
111: ; preds = %109
%112 = load ptr, ptr %4, align 8
%113 = load i8, ptr %112, align 1
%114 = icmp ne i8 %113, 0
br i1 %114, label %26, label %115, !llvm.loop !9
115: ; preds = %111
%116 = load i64, ptr %6, align 8
%117 = load ptr, ptr %5, align 8
store i64 %116, ptr %117, align 8
store i32 0, ptr %3, align 4
br label %118
118: ; preds = %115, %86, %77, %38, %31, %22, %15
%119 = load i32, ptr %3, align 4
ret i32 %119
}
declare i64 @strchr(ptr noundef, i8 noundef signext) #1
declare i64 @strtoull(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpyvmi5wop.c'
source_filename = "/tmp/tmpyvmi5wop.c"
target datalayout = "e-m:e-p270: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/tmpyvmi5wop.c"
target datalayout = "e-m:e-p270: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/tmpyltomxdy.c'
source_filename = "/tmp/tmpyltomxdy.c"
target datalayout = "e-m:e-p270: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/tmpyltomxdy.c"
target datalayout = "e-m:e-p270: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/tmp8nehqbd0.c'
source_filename = "/tmp/tmp8nehqbd0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"strlen(NULL) = %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @strlen(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str, i32 noundef %2)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8nehqbd0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"strlen(NULL) = %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @strlen(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str, i32 noundef %2)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp35x7_w7m.c'
source_filename = "/tmp/tmp35x7_w7m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @ellk(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
store double %0, ptr %2, align 8
%16 = load double, ptr %2, align 8
%17 = load double, ptr %2, align 8
%18 = fneg double %16
%19 = call double @llvm.fmuladd.f64(double %18, double %17, double 1.000000e+00)
store double %19, ptr %15, align 8
store double 0x3FF62E42FEFA3BDC, ptr %3, align 8
store double 0x3FB8BEEF74A49015, ptr %4, align 8
store double 0x3FA2619B1B7DF892, ptr %5, align 8
store double 0x3FA32973FF02B86D, ptr %6, align 8
store double 0x3F8DB87295A64760, ptr %7, align 8
store double 5.000000e-01, ptr %8, align 8
store double 0x3FBFFF140B737B4B, ptr %9, align 8
store double 0x3FB19D0A2A39033E, ptr %10, align 8
store double 0x3FA10A8ABB35F2BF, ptr %11, align 8
store double 0x3F721878FAEF1B40, ptr %12, align 8
%20 = load double, ptr %3, align 8
%21 = load double, ptr %15, align 8
%22 = load double, ptr %4, align 8
%23 = load double, ptr %15, align 8
%24 = load double, ptr %5, align 8
%25 = load double, ptr %15, align 8
%26 = load double, ptr %6, align 8
%27 = load double, ptr %15, align 8
%28 = load double, ptr %7, align 8
%29 = call double @llvm.fmuladd.f64(double %27, double %28, double %26)
%30 = call double @llvm.fmuladd.f64(double %25, double %29, double %24)
%31 = call double @llvm.fmuladd.f64(double %23, double %30, double %22)
%32 = call double @llvm.fmuladd.f64(double %21, double %31, double %20)
store double %32, ptr %13, align 8
%33 = load double, ptr %8, align 8
%34 = load double, ptr %15, align 8
%35 = load double, ptr %9, align 8
%36 = load double, ptr %15, align 8
%37 = load double, ptr %10, align 8
%38 = load double, ptr %15, align 8
%39 = load double, ptr %11, align 8
%40 = load double, ptr %15, align 8
%41 = load double, ptr %12, align 8
%42 = call double @llvm.fmuladd.f64(double %40, double %41, double %39)
%43 = call double @llvm.fmuladd.f64(double %38, double %42, double %37)
%44 = call double @llvm.fmuladd.f64(double %36, double %43, double %35)
%45 = call double @llvm.fmuladd.f64(double %34, double %44, double %33)
%46 = load double, ptr %15, align 8
%47 = call double @log(double noundef %46) #3
%48 = fmul double %45, %47
store double %48, ptr %14, align 8
%49 = load double, ptr %13, align 8
%50 = load double, ptr %14, align 8
%51 = fsub double %49, %50
ret double %51
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
; Function Attrs: nounwind
declare double @log(double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp35x7_w7m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @ellk(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
store double %0, ptr %2, align 8
%16 = load double, ptr %2, align 8
%17 = load double, ptr %2, align 8
%18 = fneg double %16
%19 = call double @llvm.fmuladd.f64(double %18, double %17, double 1.000000e+00)
store double %19, ptr %15, align 8
store double 0x3FF62E42FEFA3BDC, ptr %3, align 8
store double 0x3FB8BEEF74A49015, ptr %4, align 8
store double 0x3FA2619B1B7DF892, ptr %5, align 8
store double 0x3FA32973FF02B86D, ptr %6, align 8
store double 0x3F8DB87295A64760, ptr %7, align 8
store double 5.000000e-01, ptr %8, align 8
store double 0x3FBFFF140B737B4B, ptr %9, align 8
store double 0x3FB19D0A2A39033E, ptr %10, align 8
store double 0x3FA10A8ABB35F2BF, ptr %11, align 8
store double 0x3F721878FAEF1B40, ptr %12, align 8
%20 = load double, ptr %3, align 8
%21 = load double, ptr %15, align 8
%22 = load double, ptr %4, align 8
%23 = load double, ptr %15, align 8
%24 = load double, ptr %5, align 8
%25 = load double, ptr %15, align 8
%26 = load double, ptr %6, align 8
%27 = load double, ptr %15, align 8
%28 = load double, ptr %7, align 8
%29 = call double @llvm.fmuladd.f64(double %27, double %28, double %26)
%30 = call double @llvm.fmuladd.f64(double %25, double %29, double %24)
%31 = call double @llvm.fmuladd.f64(double %23, double %30, double %22)
%32 = call double @llvm.fmuladd.f64(double %21, double %31, double %20)
store double %32, ptr %13, align 8
%33 = load double, ptr %8, align 8
%34 = load double, ptr %15, align 8
%35 = load double, ptr %9, align 8
%36 = load double, ptr %15, align 8
%37 = load double, ptr %10, align 8
%38 = load double, ptr %15, align 8
%39 = load double, ptr %11, align 8
%40 = load double, ptr %15, align 8
%41 = load double, ptr %12, align 8
%42 = call double @llvm.fmuladd.f64(double %40, double %41, double %39)
%43 = call double @llvm.fmuladd.f64(double %38, double %42, double %37)
%44 = call double @llvm.fmuladd.f64(double %36, double %43, double %35)
%45 = call double @llvm.fmuladd.f64(double %34, double %44, double %33)
%46 = load double, ptr %15, align 8
%47 = call double @log(double noundef %46) #3
%48 = fmul double %45, %47
store double %48, ptr %14, align 8
%49 = load double, ptr %13, align 8
%50 = load double, ptr %14, align 8
%51 = fsub double %49, %50
ret double %51
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
; Function Attrs: nounwind
declare double @log(double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmonpfzpf.c'
source_filename = "/tmp/tmpmonpfzpf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [6 x i32], align 16
%3 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%4 = call i32 @printf(ptr noundef @.str, i32 noundef 24)
ret i32 0
}
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmonpfzpf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [6 x i32], align 16
%3 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%4 = call i32 @printf(ptr noundef @.str, i32 noundef 24)
ret i32 0
}
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"}
|
; ModuleID = '/tmp/tmp021fmar9.c'
source_filename = "/tmp/tmp021fmar9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gdb_flush_cache() #0 {
%1 = call i32 @mfspr(i32 noundef 17)
%2 = or i32 %1, 131072
%3 = or i32 %2, 262144
%4 = call i32 @mtspr(i32 noundef 17, i32 noundef %3)
ret void
}
declare i32 @mtspr(i32 noundef, i32 noundef) #1
declare i32 @mfspr(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/tmp021fmar9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gdb_flush_cache() #0 {
%1 = call i32 @mfspr(i32 noundef 17)
%2 = or i32 %1, 131072
%3 = or i32 %2, 262144
%4 = call i32 @mtspr(i32 noundef 17, i32 noundef %3)
ret void
}
declare i32 @mtspr(i32 noundef, i32 noundef) #1
declare i32 @mfspr(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/tmpzhqcea6t.c'
source_filename = "/tmp/tmpzhqcea6t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Need to provide the file's name.\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"fopen fail.\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%5s\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%s\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 ptr, align 8
%7 = alloca [6 x i8], align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 2
br i1 %9, label %10, label %13
10: ; preds = %2
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%12 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %12, ptr %3, align 4
br label %36
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
%17 = call ptr @fopen(ptr noundef %16, ptr noundef @.str.1)
store ptr %17, ptr %6, align 8
%18 = load ptr, ptr %6, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %23
20: ; preds = %13
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%22 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %22, ptr %3, align 4
br label %36
23: ; preds = %13
br label %24
24: ; preds = %29, %23
%25 = load ptr, ptr %6, align 8
%26 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
%27 = call i32 @fscanf(ptr noundef %25, ptr noundef @.str.3, ptr noundef %26)
%28 = icmp eq i32 %27, 1
br i1 %28, label %29, label %32
29: ; preds = %24
%30 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %30)
br label %24, !llvm.loop !6
32: ; preds = %24
%33 = load ptr, ptr %6, align 8
%34 = call i32 @fclose(ptr noundef %33)
%35 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %35, ptr %3, align 4
br label %36
36: ; preds = %32, %20, %10
%37 = load i32, ptr %3, align 4
ret i32 %37
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzhqcea6t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Need to provide the file's name.\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"fopen fail.\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%5s\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%s\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 ptr, align 8
%7 = alloca [6 x i8], align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 2
br i1 %9, label %10, label %13
10: ; preds = %2
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%12 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %12, ptr %3, align 4
br label %38
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
%17 = call ptr @fopen(ptr noundef %16, ptr noundef @.str.1)
store ptr %17, ptr %6, align 8
%18 = load ptr, ptr %6, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %23
20: ; preds = %13
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%22 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %22, ptr %3, align 4
br label %38
23: ; preds = %13
%24 = load ptr, ptr %6, align 8
%25 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
%26 = call i32 @fscanf(ptr noundef %24, ptr noundef @.str.3, ptr noundef %25)
%27 = icmp eq i32 %26, 1
br i1 %27, label %.lr.ph, label %34
.lr.ph: ; preds = %23
br label %28
28: ; preds = %.lr.ph, %28
%29 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %29)
%31 = load ptr, ptr %6, align 8
%32 = call i32 @fscanf(ptr noundef %31, ptr noundef @.str.3, ptr noundef %25)
%33 = icmp eq i32 %32, 1
br i1 %33, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %34
34: ; preds = %._crit_edge, %23
%35 = load ptr, ptr %6, align 8
%36 = call i32 @fclose(ptr noundef %35)
%37 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %37, ptr %3, align 4
br label %38
38: ; preds = %34, %20, %10
%39 = load i32, ptr %3, align 4
ret i32 %39
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp1dgx7xrl.c'
source_filename = "/tmp/tmp1dgx7xrl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 0, ptr %4, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 0, ptr %8, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp sgt i32 %9, 0
br i1 %10, label %11, label %27
11: ; preds = %3
store i32 0, ptr %8, align 4
br label %12
12: ; preds = %23, %11
%13 = load i32, ptr %8, align 4
%14 = load i32, ptr %5, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %26
16: ; preds = %12
%17 = load ptr, ptr %6, align 8
%18 = load i32, ptr %8, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds ptr, ptr %17, i64 %19
%21 = load ptr, ptr %20, align 8
%22 = call i32 @printf(ptr noundef @.str, ptr noundef %21)
br label %23
23: ; preds = %16
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %8, align 4
br label %12, !llvm.loop !6
26: ; preds = %12
br label %27
27: ; preds = %26, %3
br label %28
28: ; preds = %32, %27
%29 = load ptr, ptr %7, align 8
%30 = load ptr, ptr %29, align 8
%31 = icmp ne ptr %30, null
br i1 %31, label %32, label %39
32: ; preds = %28
%33 = load ptr, ptr %7, align 8
%34 = load ptr, ptr %33, align 8
%35 = call i32 @printf(ptr noundef @.str, ptr noundef %34)
%36 = load ptr, ptr %7, align 8
%37 = getelementptr inbounds ptr, ptr %36, i32 1
store ptr %37, ptr %7, align 8
%38 = load ptr, ptr %36, align 8
br label %28, !llvm.loop !8
39: ; preds = %28
ret i32 0
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1dgx7xrl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 0, ptr %4, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 0, ptr %8, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp sgt i32 %9, 0
br i1 %10, label %11, label %29
11: ; preds = %3
store i32 0, ptr %8, align 4
%12 = load i32, ptr %8, align 4
%13 = load i32, ptr %5, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %.lr.ph, label %28
.lr.ph: ; preds = %11
br label %15
15: ; preds = %.lr.ph, %22
%16 = load ptr, ptr %6, align 8
%17 = load i32, ptr %8, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds ptr, ptr %16, i64 %18
%20 = load ptr, ptr %19, align 8
%21 = call i32 @printf(ptr noundef @.str, ptr noundef %20)
br label %22
22: ; preds = %15
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %8, align 4
%25 = load i32, ptr %8, align 4
%26 = load i32, ptr %5, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %28
28: ; preds = %._crit_edge, %11
br label %29
29: ; preds = %28, %3
%30 = load ptr, ptr %7, align 8
%31 = load ptr, ptr %30, align 8
%32 = icmp ne ptr %31, null
br i1 %32, label %.lr.ph2, label %43
.lr.ph2: ; preds = %29
br label %33
33: ; preds = %.lr.ph2, %33
%34 = load ptr, ptr %7, align 8
%35 = load ptr, ptr %34, align 8
%36 = call i32 @printf(ptr noundef @.str, ptr noundef %35)
%37 = load ptr, ptr %7, align 8
%38 = getelementptr inbounds ptr, ptr %37, i32 1
store ptr %38, ptr %7, align 8
%39 = load ptr, ptr %37, align 8
%40 = load ptr, ptr %7, align 8
%41 = load ptr, ptr %40, align 8
%42 = icmp ne ptr %41, null
br i1 %42, label %33, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %33
br label %43
43: ; preds = %._crit_edge3, %29
ret i32 0
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp463yx6g6.c'
source_filename = "/tmp/tmp463yx6g6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"__\0A\00", align 1
@.str.1 = private unnamed_addr constant [57 x i8] c"( * dest = * source ) == '%c'; * source = '%c'; i = %d;\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @strcpy_argv(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i8, align 1
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
store i8 0, ptr %6, align 1
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %8
8: ; preds = %49, %2
%9 = load i8, ptr %6, align 1
%10 = sext i8 %9 to i32
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %52
12: ; preds = %8
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %5, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i8, ptr %16, align 1
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %5, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
store i8 %17, ptr %21, align 1
%22 = load ptr, ptr %3, align 8
%23 = load i32, ptr %5, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %22, i64 %24
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %5, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %28, i64 %30
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = load i32, ptr %5, align 4
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %27, i32 noundef %33, i32 noundef %34)
%36 = load ptr, ptr %4, align 8
%37 = load i32, ptr %5, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %49
43: ; preds = %12
%44 = load i32, ptr %5, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %5, align 4
%46 = load ptr, ptr %4, align 8
%47 = load i8, ptr %46, align 1
%48 = load ptr, ptr %3, align 8
store i8 %47, ptr %48, align 1
store i8 1, ptr %6, align 1
br label %49
49: ; preds = %43, %12
%50 = load i32, ptr %5, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %5, align 4
br label %8, !llvm.loop !6
52: ; preds = %8
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/tmp463yx6g6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"__\0A\00", align 1
@.str.1 = private unnamed_addr constant [57 x i8] c"( * dest = * source ) == '%c'; * source = '%c'; i = %d;\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @strcpy_argv(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i8, align 1
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
store i8 0, ptr %6, align 1
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = load i8, ptr %6, align 1
%9 = sext i8 %8 to i32
%10 = icmp eq i32 %9, 0
br i1 %10, label %.lr.ph, label %54
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %48
%12 = load ptr, ptr %4, align 8
%13 = load i32, ptr %5, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = load i8, ptr %15, align 1
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %5, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
store i8 %16, ptr %20, align 1
%21 = load ptr, ptr %3, align 8
%22 = load i32, ptr %5, 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 %4, align 8
%28 = load i32, ptr %5, 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 = load i32, ptr %5, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %26, i32 noundef %32, i32 noundef %33)
%35 = load ptr, ptr %4, align 8
%36 = load i32, ptr %5, 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 = icmp eq i32 %40, 0
br i1 %41, label %42, label %48
42: ; preds = %11
%43 = load i32, ptr %5, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %5, align 4
%45 = load ptr, ptr %4, align 8
%46 = load i8, ptr %45, align 1
%47 = load ptr, ptr %3, align 8
store i8 %46, ptr %47, align 1
store i8 1, ptr %6, align 1
br label %48
48: ; preds = %42, %11
%49 = load i32, ptr %5, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %5, align 4
%51 = load i8, ptr %6, align 1
%52 = sext i8 %51 to i32
%53 = icmp eq i32 %52, 0
br i1 %53, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %48
br label %54
54: ; preds = %._crit_edge, %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/tmplix4jkzt.c'
source_filename = "/tmp/tmplix4jkzt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i32 }
@__const.settimeout.timeout = private unnamed_addr constant %struct.timeval { i32 10, i32 0 }, align 4
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_SNDTIMEO = dso_local global i32 0, align 4
@SO_RCVTIMEO = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @settimeout(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %struct.timeval, align 4
store i32 %0, ptr %3, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %4, ptr align 4 @__const.settimeout.timeout, i64 8, i1 false)
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr @SOL_SOCKET, align 4
%7 = load i32, ptr @SO_SNDTIMEO, align 4
%8 = call i64 @setsockopt(i32 noundef %5, i32 noundef %6, i32 noundef %7, ptr noundef %4, i32 noundef 8)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %1
store i32 -1, ptr %2, align 4
br label %19
11: ; preds = %1
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr @SOL_SOCKET, align 4
%14 = load i32, ptr @SO_RCVTIMEO, align 4
%15 = call i64 @setsockopt(i32 noundef %12, i32 noundef %13, i32 noundef %14, ptr noundef %4, i32 noundef 8)
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %11
store i32 -1, ptr %2, align 4
br label %19
18: ; preds = %11
store i32 0, ptr %2, align 4
br label %19
19: ; preds = %18, %17, %10
%20 = load i32, ptr %2, align 4
ret i32 %20
}
; 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 i64 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplix4jkzt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i32, i32 }
@__const.settimeout.timeout = private unnamed_addr constant %struct.timeval { i32 10, i32 0 }, align 4
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_SNDTIMEO = dso_local global i32 0, align 4
@SO_RCVTIMEO = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @settimeout(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca %struct.timeval, align 4
store i32 %0, ptr %3, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %4, ptr align 4 @__const.settimeout.timeout, i64 8, i1 false)
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr @SOL_SOCKET, align 4
%7 = load i32, ptr @SO_SNDTIMEO, align 4
%8 = call i64 @setsockopt(i32 noundef %5, i32 noundef %6, i32 noundef %7, ptr noundef %4, i32 noundef 8)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %1
store i32 -1, ptr %2, align 4
br label %19
11: ; preds = %1
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr @SOL_SOCKET, align 4
%14 = load i32, ptr @SO_RCVTIMEO, align 4
%15 = call i64 @setsockopt(i32 noundef %12, i32 noundef %13, i32 noundef %14, ptr noundef %4, i32 noundef 8)
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %11
store i32 -1, ptr %2, align 4
br label %19
18: ; preds = %11
store i32 0, ptr %2, align 4
br label %19
19: ; preds = %18, %17, %10
%20 = load i32, ptr %2, align 4
ret i32 %20
}
; 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 i64 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprq1rd0t4.c'
source_filename = "/tmp/tmprq1rd0t4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @theft_mt_free(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprq1rd0t4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @theft_mt_free(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzgcxa4wv.c'
source_filename = "/tmp/tmpzgcxa4wv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @buff2long(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
store ptr %4, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = load i8, ptr %5, align 1
%7 = zext i8 %6 to i32
%8 = shl i32 %7, 56
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 1
%11 = load i8, ptr %10, align 1
%12 = zext i8 %11 to i32
%13 = shl i32 %12, 48
%14 = or i32 %8, %13
%15 = load ptr, ptr %3, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 2
%17 = load i8, ptr %16, align 1
%18 = zext i8 %17 to i32
%19 = shl i32 %18, 40
%20 = or i32 %14, %19
%21 = load ptr, ptr %3, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 3
%23 = load i8, ptr %22, align 1
%24 = zext i8 %23 to i32
%25 = shl i32 %24, 32
%26 = or i32 %20, %25
%27 = load ptr, ptr %3, align 8
%28 = getelementptr inbounds i8, ptr %27, i64 4
%29 = load i8, ptr %28, align 1
%30 = zext i8 %29 to i32
%31 = shl i32 %30, 24
%32 = or i32 %26, %31
%33 = load ptr, ptr %3, align 8
%34 = getelementptr inbounds i8, ptr %33, i64 5
%35 = load i8, ptr %34, align 1
%36 = zext i8 %35 to i32
%37 = shl i32 %36, 16
%38 = or i32 %32, %37
%39 = load ptr, ptr %3, align 8
%40 = getelementptr inbounds i8, ptr %39, i64 6
%41 = load i8, ptr %40, align 1
%42 = zext i8 %41 to i32
%43 = shl i32 %42, 8
%44 = or i32 %38, %43
%45 = load ptr, ptr %3, align 8
%46 = getelementptr inbounds i8, ptr %45, i64 7
%47 = load i8, ptr %46, align 1
%48 = zext i8 %47 to i32
%49 = or i32 %44, %48
ret i32 %49
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzgcxa4wv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @buff2long(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
store ptr %4, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = load i8, ptr %5, align 1
%7 = zext i8 %6 to i32
%8 = shl i32 %7, 56
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 1
%11 = load i8, ptr %10, align 1
%12 = zext i8 %11 to i32
%13 = shl i32 %12, 48
%14 = or i32 %8, %13
%15 = load ptr, ptr %3, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 2
%17 = load i8, ptr %16, align 1
%18 = zext i8 %17 to i32
%19 = shl i32 %18, 40
%20 = or i32 %14, %19
%21 = load ptr, ptr %3, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 3
%23 = load i8, ptr %22, align 1
%24 = zext i8 %23 to i32
%25 = shl i32 %24, 32
%26 = or i32 %20, %25
%27 = load ptr, ptr %3, align 8
%28 = getelementptr inbounds i8, ptr %27, i64 4
%29 = load i8, ptr %28, align 1
%30 = zext i8 %29 to i32
%31 = shl i32 %30, 24
%32 = or i32 %26, %31
%33 = load ptr, ptr %3, align 8
%34 = getelementptr inbounds i8, ptr %33, i64 5
%35 = load i8, ptr %34, align 1
%36 = zext i8 %35 to i32
%37 = shl i32 %36, 16
%38 = or i32 %32, %37
%39 = load ptr, ptr %3, align 8
%40 = getelementptr inbounds i8, ptr %39, i64 6
%41 = load i8, ptr %40, align 1
%42 = zext i8 %41 to i32
%43 = shl i32 %42, 8
%44 = or i32 %38, %43
%45 = load ptr, ptr %3, align 8
%46 = getelementptr inbounds i8, ptr %45, i64 7
%47 = load i8, ptr %46, align 1
%48 = zext i8 %47 to i32
%49 = or i32 %44, %48
ret i32 %49
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7a3r_6iz.c'
source_filename = "/tmp/tmp7a3r_6iz.c"
target datalayout = "e-m:e-p270: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/tmp7a3r_6iz.c"
target datalayout = "e-m:e-p270: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/tmpn8m7lmtd.c'
source_filename = "/tmp/tmpn8m7lmtd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.a = private unnamed_addr constant [16 x i8] c"\11\223DUfw\88\99\00\00\00\00\00\00\00", align 16
@.str = private unnamed_addr constant [21 x i8] c"########### a = %p.\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"########### p = %p.\0A\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"########### *p = %d.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [16 x i8], align 16
%3 = alloca ptr, align 8
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.a, i64 16, i1 false)
%4 = getelementptr inbounds [16 x i8], ptr %2, i64 0, i64 0
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %4)
%6 = getelementptr inbounds [16 x i8], ptr %2, i64 0, i64 1
store ptr %6, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %7)
%9 = load ptr, ptr %3, align 8
store i32 1, ptr %9, align 4
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %10, align 4
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %11)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn8m7lmtd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.a = private unnamed_addr constant [16 x i8] c"\11\223DUfw\88\99\00\00\00\00\00\00\00", align 16
@.str = private unnamed_addr constant [21 x i8] c"########### a = %p.\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"########### p = %p.\0A\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"########### *p = %d.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [16 x i8], align 16
%3 = alloca ptr, align 8
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.a, i64 16, i1 false)
%4 = getelementptr inbounds [16 x i8], ptr %2, i64 0, i64 0
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %4)
%6 = getelementptr inbounds [16 x i8], ptr %2, i64 0, i64 1
store ptr %6, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %7)
%9 = load ptr, ptr %3, align 8
store i32 1, ptr %9, align 4
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %10, align 4
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %11)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_x96sjlm.c'
source_filename = "/tmp/tmp_x96sjlm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @CE_Activity(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call double @sqrt(double noundef %3) #4
%5 = fmul double 5.000000e-01, %4
%6 = call double @sqrt(double noundef 1.000000e+03) #4
%7 = load double, ptr %2, align 8
%8 = call double @sqrt(double noundef %7) #4
%9 = fadd double %6, %8
%10 = fdiv double %5, %9
%11 = load double, ptr %2, align 8
%12 = call double @llvm.fmuladd.f64(double -1.500000e-04, double %11, double %10)
%13 = fmul double -1.000000e+00, %12
%14 = call double @pow(i32 noundef 10, double noundef %13)
ret double %14
}
declare double @pow(i32 noundef, double noundef) #1
; Function Attrs: nounwind
declare double @sqrt(double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_x96sjlm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @CE_Activity(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call double @sqrt(double noundef %3) #4
%5 = fmul double 5.000000e-01, %4
%6 = call double @sqrt(double noundef 1.000000e+03) #4
%7 = load double, ptr %2, align 8
%8 = call double @sqrt(double noundef %7) #4
%9 = fadd double %6, %8
%10 = fdiv double %5, %9
%11 = load double, ptr %2, align 8
%12 = call double @llvm.fmuladd.f64(double -1.500000e-04, double %11, double %10)
%13 = fmul double -1.000000e+00, %12
%14 = call double @pow(i32 noundef 10, double noundef %13)
ret double %14
}
declare double @pow(i32 noundef, double noundef) #1
; Function Attrs: nounwind
declare double @sqrt(double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpx4l5qeh_.c'
source_filename = "/tmp/tmpx4l5qeh_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"res %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @call_method2()
%3 = call double @my_sin(i32 noundef 360)
%4 = call i32 @printf(ptr noundef @.str, double noundef %3)
ret i32 0
}
declare i32 @call_method2(...) #1
declare i32 @printf(ptr noundef, double noundef) #1
declare double @my_sin(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/tmpx4l5qeh_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"res %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @call_method2()
%3 = call double @my_sin(i32 noundef 360)
%4 = call i32 @printf(ptr noundef @.str, double noundef %3)
ret i32 0
}
declare i32 @call_method2(...) #1
declare i32 @printf(ptr noundef, double noundef) #1
declare double @my_sin(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/tmpbd5snhkq.c'
source_filename = "/tmp/tmpbd5snhkq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong allocsize(0,1) uwtable
define dso_local ptr @calloc(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
store i64 %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%7 = load i64, ptr %5, align 8
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %18
9: ; preds = %2
%10 = load i64, ptr %4, align 8
%11 = load i64, ptr %5, align 8
%12 = mul i64 %10, %11
%13 = load i64, ptr %5, align 8
%14 = udiv i64 %12, %13
%15 = load i64, ptr %4, align 8
%16 = icmp ne i64 %14, %15
br i1 %16, label %17, label %18
17: ; preds = %9
store ptr null, ptr %3, align 8
br label %32
18: ; preds = %9, %2
%19 = load i64, ptr %4, align 8
%20 = load i64, ptr %5, align 8
%21 = mul i64 %19, %20
%22 = call ptr @malloc(i64 noundef %21) #3
store ptr %22, ptr %6, align 8
%23 = icmp ne ptr %22, null
br i1 %23, label %24, label %30
24: ; preds = %18
%25 = load ptr, ptr %6, align 8
%26 = load i64, ptr %4, align 8
%27 = load i64, ptr %5, align 8
%28 = mul i64 %26, %27
%29 = call i32 @memset(ptr noundef %25, i32 noundef 0, i64 noundef %28)
br label %30
30: ; preds = %24, %18
%31 = load ptr, ptr %6, align 8
store ptr %31, ptr %3, align 8
br label %32
32: ; preds = %30, %17
%33 = load ptr, ptr %3, align 8
ret ptr %33
}
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i64 noundef) #2
attributes #0 = { noinline nounwind sspstrong allocsize(0,1) uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="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/tmpbd5snhkq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong allocsize(0,1) uwtable
define dso_local ptr @calloc(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
store i64 %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%7 = load i64, ptr %5, align 8
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %18
9: ; preds = %2
%10 = load i64, ptr %4, align 8
%11 = load i64, ptr %5, align 8
%12 = mul i64 %10, %11
%13 = load i64, ptr %5, align 8
%14 = udiv i64 %12, %13
%15 = load i64, ptr %4, align 8
%16 = icmp ne i64 %14, %15
br i1 %16, label %17, label %18
17: ; preds = %9
store ptr null, ptr %3, align 8
br label %32
18: ; preds = %9, %2
%19 = load i64, ptr %4, align 8
%20 = load i64, ptr %5, align 8
%21 = mul i64 %19, %20
%22 = call ptr @malloc(i64 noundef %21) #3
store ptr %22, ptr %6, align 8
%23 = icmp ne ptr %22, null
br i1 %23, label %24, label %30
24: ; preds = %18
%25 = load ptr, ptr %6, align 8
%26 = load i64, ptr %4, align 8
%27 = load i64, ptr %5, align 8
%28 = mul i64 %26, %27
%29 = call i32 @memset(ptr noundef %25, i32 noundef 0, i64 noundef %28)
br label %30
30: ; preds = %24, %18
%31 = load ptr, ptr %6, align 8
store ptr %31, ptr %3, align 8
br label %32
32: ; preds = %30, %17
%33 = load ptr, ptr %3, align 8
ret ptr %33
}
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i64 noundef) #2
attributes #0 = { noinline nounwind sspstrong allocsize(0,1) uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="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/tmp88914sjq.c'
source_filename = "/tmp/tmp88914sjq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @randInt(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 (...) @rand()
%4 = load i32, ptr %2, align 4
%5 = srem i32 %3, %4
%6 = add nsw i32 %5, 1
ret i32 %6
}
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp88914sjq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @randInt(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 (...) @rand()
%4 = load i32, ptr %2, align 4
%5 = srem i32 %3, %4
%6 = add nsw i32 %5, 1
ret i32 %6
}
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpuu1kv97d.c'
source_filename = "/tmp/tmpuu1kv97d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GL_NEAREST = dso_local global i32 0, align 4
@GL_REPLACE = dso_local global i32 0, align 4
@GL_TEXTURE_2D = dso_local global i32 0, align 4
@GL_TEXTURE_ENV = dso_local global i32 0, align 4
@GL_TEXTURE_ENV_MODE = dso_local global i32 0, align 4
@GL_TEXTURE_MAG_FILTER = dso_local global i32 0, align 4
@GL_TEXTURE_MIN_FILTER = 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/tmpuu1kv97d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GL_NEAREST = dso_local global i32 0, align 4
@GL_REPLACE = dso_local global i32 0, align 4
@GL_TEXTURE_2D = dso_local global i32 0, align 4
@GL_TEXTURE_ENV = dso_local global i32 0, align 4
@GL_TEXTURE_ENV_MODE = dso_local global i32 0, align 4
@GL_TEXTURE_MAG_FILTER = dso_local global i32 0, align 4
@GL_TEXTURE_MIN_FILTER = 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/tmp5amt3zvv.c'
source_filename = "/tmp/tmp5amt3zvv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"bar in u2\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @bar() #0 {
%1 = call i32 @puts(ptr noundef @.str)
ret void
}
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5amt3zvv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"bar in u2\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @bar() #0 {
%1 = call i32 @puts(ptr noundef @.str)
ret void
}
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxhc_hecv.c'
source_filename = "/tmp/tmpxhc_hecv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_iscntrl.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"iscntrl should be 0 for 0x90\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_iscntrl_0x90() #0 {
%1 = call i64 @iscntrl(i32 noundef 144)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 725, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @iscntrl(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/tmpxhc_hecv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_iscntrl.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"iscntrl should be 0 for 0x90\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_iscntrl_0x90() #0 {
%1 = call i64 @iscntrl(i32 noundef 144)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 725, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @iscntrl(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/tmp5tv__wg4.c'
source_filename = "/tmp/tmp5tv__wg4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@_SC_OPEN_MAX = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [7 x i8] c"i: %d\0A\00", align 1
@errno = dso_local global i64 0, align 8
@EMFILE = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [5 x i8] c"pipe\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"pass\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 [2 x i32], align 4
store i32 0, ptr %1, align 4
%5 = load i32, ptr @_SC_OPEN_MAX, align 4
%6 = call i32 @sysconf(i32 noundef %5)
store i32 %6, ptr %3, align 4
store i32 0, ptr %2, align 4
br label %7
7: ; preds = %37, %0
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = add nsw i32 %9, 1
%11 = icmp slt i32 %8, %10
br i1 %11, label %12, label %40
12: ; preds = %7
%13 = getelementptr inbounds [2 x i32], ptr %4, i64 0, i64 0
%14 = call i64 @pipe(ptr noundef %13)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %36
16: ; preds = %12
%17 = load i32, ptr %2, align 4
%18 = load i32, ptr %3, align 4
%19 = sdiv i32 %18, 2
%20 = sub nsw i32 %19, 3
%21 = sub nsw i32 %20, 1
%22 = icmp slt i32 %17, %21
br i1 %22, label %23, label %28
23: ; preds = %16
%24 = load i32, ptr @stderr, align 4
%25 = load i32, ptr %2, align 4
%26 = call i32 @fprintf(i32 noundef %24, ptr noundef @.str, i32 noundef %25)
%27 = call i32 (...) @abort() #3
unreachable
28: ; preds = %16
%29 = load i64, ptr @errno, align 8
%30 = load i64, ptr @EMFILE, align 8
%31 = icmp ne i64 %29, %30
br i1 %31, label %32, label %35
32: ; preds = %28
%33 = call i32 @perror(ptr noundef @.str.1)
%34 = call i32 (...) @abort() #3
unreachable
35: ; preds = %28
br label %42
36: ; preds = %12
br label %37
37: ; preds = %36
%38 = load i32, ptr %2, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %2, align 4
br label %7, !llvm.loop !6
40: ; preds = %7
%41 = call i32 (...) @abort() #3
unreachable
42: ; preds = %35
%43 = call i32 @printf(ptr noundef @.str.2)
%44 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @sysconf(i32 noundef) #1
declare i64 @pipe(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare i32 @perror(ptr noundef) #1
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5tv__wg4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@_SC_OPEN_MAX = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [7 x i8] c"i: %d\0A\00", align 1
@errno = dso_local global i64 0, align 8
@EMFILE = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [5 x i8] c"pipe\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"pass\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 [2 x i32], align 4
store i32 0, ptr %1, align 4
%5 = load i32, ptr @_SC_OPEN_MAX, align 4
%6 = call i32 @sysconf(i32 noundef %5)
store i32 %6, ptr %3, align 4
store i32 0, ptr %2, align 4
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = add nsw i32 %8, 1
%10 = icmp slt i32 %7, %9
br i1 %10, label %.lr.ph, label %43
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %36
%12 = getelementptr inbounds [2 x i32], ptr %4, i64 0, i64 0
%13 = call i64 @pipe(ptr noundef %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %35
15: ; preds = %11
%16 = load i32, ptr %2, align 4
%17 = load i32, ptr %3, align 4
%18 = sdiv i32 %17, 2
%19 = sub nsw i32 %18, 3
%20 = sub nsw i32 %19, 1
%21 = icmp slt i32 %16, %20
br i1 %21, label %22, label %27
22: ; preds = %15
%23 = load i32, ptr @stderr, align 4
%24 = load i32, ptr %2, align 4
%25 = call i32 @fprintf(i32 noundef %23, ptr noundef @.str, i32 noundef %24)
%26 = call i32 (...) @abort() #3
unreachable
27: ; preds = %15
%28 = load i64, ptr @errno, align 8
%29 = load i64, ptr @EMFILE, align 8
%30 = icmp ne i64 %28, %29
br i1 %30, label %31, label %34
31: ; preds = %27
%32 = call i32 @perror(ptr noundef @.str.1)
%33 = call i32 (...) @abort() #3
unreachable
34: ; preds = %27
br label %45
35: ; preds = %11
br label %36
36: ; preds = %35
%37 = load i32, ptr %2, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %2, align 4
%39 = load i32, ptr %2, align 4
%40 = load i32, ptr %3, align 4
%41 = add nsw i32 %40, 1
%42 = icmp slt i32 %39, %41
br i1 %42, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %36
br label %43
43: ; preds = %._crit_edge, %0
%44 = call i32 (...) @abort() #3
unreachable
45: ; preds = %34
%46 = call i32 @printf(ptr noundef @.str.2)
%47 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @sysconf(i32 noundef) #1
declare i64 @pipe(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare i32 @perror(ptr noundef) #1
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmply1a7mqu.c'
source_filename = "/tmp/tmply1a7mqu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isdigit.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isdigit should be 0 for 0xa7\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isdigit_0xa7() #0 {
%1 = call i64 @isdigit(i32 noundef 167)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 840, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isdigit(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/tmply1a7mqu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isdigit.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isdigit should be 0 for 0xa7\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isdigit_0xa7() #0 {
%1 = call i64 @isdigit(i32 noundef 167)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 840, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isdigit(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/tmp2tjw0phx.c'
source_filename = "/tmp/tmp2tjw0phx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"%s%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @quickcat(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i64 @strlen(ptr noundef %6)
%8 = load ptr, ptr %4, align 8
%9 = call i64 @strlen(ptr noundef %8)
%10 = add nsw i64 %7, %9
%11 = add nsw i64 %10, 1
%12 = call i64 @malloc(i64 noundef %11)
%13 = inttoptr i64 %12 to ptr
store ptr %13, ptr %5, align 8
%14 = load ptr, ptr %5, align 8
%15 = load ptr, ptr %3, align 8
%16 = load ptr, ptr %4, align 8
%17 = call i32 @sprintf(ptr noundef %14, ptr noundef @.str, ptr noundef %15, ptr noundef %16)
%18 = load ptr, ptr %5, align 8
ret ptr %18
}
declare i64 @malloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @sprintf(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/tmp2tjw0phx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"%s%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @quickcat(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i64 @strlen(ptr noundef %6)
%8 = load ptr, ptr %4, align 8
%9 = call i64 @strlen(ptr noundef %8)
%10 = add nsw i64 %7, %9
%11 = add nsw i64 %10, 1
%12 = call i64 @malloc(i64 noundef %11)
%13 = inttoptr i64 %12 to ptr
store ptr %13, ptr %5, align 8
%14 = load ptr, ptr %5, align 8
%15 = load ptr, ptr %3, align 8
%16 = load ptr, ptr %4, align 8
%17 = call i32 @sprintf(ptr noundef %14, ptr noundef @.str, ptr noundef %15, ptr noundef %16)
%18 = load ptr, ptr %5, align 8
ret ptr %18
}
declare i64 @malloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @sprintf(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/tmptncv_ni5.c'
source_filename = "/tmp/tmptncv_ni5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @eddy(i32 noundef %0, double noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, double noundef %5, i32 noundef %6, double noundef %7, double noundef %8) #0 {
%10 = alloca i32, align 4
%11 = alloca double, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca double, align 8
%16 = alloca i32, align 4
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca double, align 8
%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 [20 x double], align 16
%27 = alloca i32, align 4
%28 = alloca double, align 8
%29 = alloca double, align 8
store i32 %0, ptr %10, align 4
store double %1, ptr %11, align 8
store ptr %2, ptr %12, align 8
store ptr %3, ptr %13, align 8
store ptr %4, ptr %14, align 8
store double %5, ptr %15, align 8
store i32 %6, ptr %16, align 4
store double %7, ptr %17, align 8
store double %8, ptr %18, align 8
store i32 0, ptr %27, align 4
br label %30
30: ; preds = %39, %9
%31 = load i32, ptr %27, align 4
%32 = load i32, ptr %16, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %34, label %42
34: ; preds = %30
%35 = load double, ptr %17, align 8
%36 = load i32, ptr %27, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [20 x double], ptr %26, i64 0, i64 %37
store double %35, ptr %38, align 8
br label %39
39: ; preds = %34
%40 = load i32, ptr %27, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %27, align 4
br label %30, !llvm.loop !6
42: ; preds = %30
%43 = load double, ptr %18, align 8
%44 = load double, ptr %17, align 8
%45 = fadd double %43, %44
%46 = fmul double %45, 5.000000e-01
%47 = getelementptr inbounds [20 x double], ptr %26, i64 0, i64 0
store double %46, ptr %47, align 16
%48 = load i32, ptr %10, align 4
%49 = icmp ne i32 %48, 1
br i1 %49, label %50, label %64
50: ; preds = %42
store i32 0, ptr %27, align 4
br label %51
51: ; preds = %60, %50
%52 = load i32, ptr %27, align 4
%53 = load i32, ptr %16, align 4
%54 = icmp slt i32 %52, %53
br i1 %54, label %55, label %63
55: ; preds = %51
%56 = load ptr, ptr %14, align 8
%57 = load i32, ptr %27, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds double, ptr %56, i64 %58
store double 1.388890e-07, ptr %59, align 8
br label %60
60: ; preds = %55
%61 = load i32, ptr %27, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %27, align 4
br label %51, !llvm.loop !8
63: ; preds = %51
br label %203
64: ; preds = %42
%65 = load double, ptr %11, align 8
%66 = fcmp olt double %65, 1.000000e+00
br i1 %66, label %67, label %68
67: ; preds = %64
store double 1.000000e+00, ptr %11, align 8
br label %68
68: ; preds = %67, %64
%69 = load double, ptr %15, align 8
%70 = call i64 @fabs(double noundef %69)
%71 = sitofp i64 %70 to double
%72 = fmul double %71, 0x400921FB5A7ED197
%73 = fdiv double %72, 1.800000e+02
%74 = call double @sin(double noundef %73) #4
%75 = call double @pow(double noundef %74, double noundef 5.000000e-01) #4
%76 = fmul double 6.600000e+00, %75
%77 = load double, ptr %11, align 8
%78 = call double @pow(double noundef %77, double noundef -1.840000e+00) #4
%79 = fmul double %76, %78
store double %79, ptr %19, align 8
%80 = load double, ptr %11, align 8
%81 = fmul double 1.200000e-03, %80
store double %81, ptr %21, align 8
store double 1.000000e+00, ptr %23, align 8
store double 4.000000e+04, ptr %22, align 8
store i32 0, ptr %27, align 4
br label %82
82: ; preds = %188, %68
%83 = load i32, ptr %27, align 4
%84 = load i32, ptr %16, align 4
%85 = sub nsw i32 %84, 1
%86 = icmp slt i32 %83, %85
br i1 %86, label %87, label %191
87: ; preds = %82
%88 = load ptr, ptr %13, align 8
%89 = load i32, ptr %27, align 4
%90 = add nsw i32 %89, 1
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds double, ptr %88, i64 %91
%93 = load double, ptr %92, align 8
%94 = load ptr, ptr %13, align 8
%95 = load i32, ptr %27, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds double, ptr %94, i64 %96
%98 = load double, ptr %97, align 8
%99 = fsub double %93, %98
%100 = load i32, ptr %27, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds [20 x double], ptr %26, i64 0, i64 %101
%103 = load double, ptr %102, align 8
%104 = fdiv double %99, %103
store double %104, ptr %24, align 8
%105 = load double, ptr %24, align 8
%106 = load ptr, ptr %13, align 8
%107 = load i32, ptr %27, align 4
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds double, ptr %106, i64 %108
%110 = load double, ptr %109, align 8
%111 = fadd double 1.000000e+03, %110
%112 = fdiv double %105, %111
%113 = fmul double %112, 9.800000e+00
store double %113, ptr %20, align 8
%114 = load double, ptr %18, align 8
%115 = load i32, ptr %27, align 4
%116 = sitofp i32 %115 to float
%117 = fpext float %116 to double
%118 = load double, ptr %17, align 8
%119 = call double @llvm.fmuladd.f64(double %117, double %118, double %114)
store double %119, ptr %28, align 8
%120 = load double, ptr %28, align 8
%121 = load double, ptr %19, align 8
%122 = load double, ptr %28, align 8
%123 = fmul double %121, %122
%124 = call double @exp(double noundef %123) #4
%125 = fmul double %120, %124
%126 = load double, ptr %21, align 8
%127 = fdiv double %125, %126
%128 = fcmp ogt double %127, 1.000000e+08
br i1 %128, label %129, label %131
129: ; preds = %87
%130 = load double, ptr %22, align 8
store double %130, ptr %25, align 8
br label %161
131: ; preds = %87
%132 = load double, ptr %20, align 8
%133 = fmul double 4.000000e+01, %132
%134 = load double, ptr %28, align 8
%135 = fmul double 4.000000e-01, %134
%136 = fmul double %133, %135
%137 = load double, ptr %28, align 8
%138 = fmul double 4.000000e-01, %137
%139 = fmul double %136, %138
%140 = load double, ptr %21, align 8
%141 = load double, ptr %21, align 8
%142 = fmul double %140, %141
%143 = load double, ptr %19, align 8
%144 = fmul double -2.000000e+00, %143
%145 = load double, ptr %28, align 8
%146 = fmul double %144, %145
%147 = call double @exp(double noundef %146) #4
%148 = fmul double %142, %147
%149 = fdiv double %139, %148
%150 = fadd double 1.000000e+00, %149
store double %150, ptr %25, align 8
%151 = load double, ptr %25, align 8
%152 = load double, ptr %22, align 8
%153 = fcmp ogt double %151, %152
br i1 %153, label %154, label %156
154: ; preds = %131
%155 = load double, ptr %22, align 8
store double %155, ptr %25, align 8
br label %156
156: ; preds = %154, %131
%157 = load double, ptr %25, align 8
%158 = fcmp olt double %157, 1.000000e+00
br i1 %158, label %159, label %160
159: ; preds = %156
store double 1.000000e+00, ptr %25, align 8
br label %160
160: ; preds = %159, %156
br label %161
161: ; preds = %160, %129
%162 = load double, ptr %25, align 8
%163 = call double @sqrt(double noundef %162) #4
%164 = fadd double -1.000000e+00, %163
%165 = fdiv double %164, 2.000000e+01
store double %165, ptr %29, align 8
%166 = load double, ptr %21, align 8
%167 = fmul double 4.000000e-01, %166
%168 = load double, ptr %28, align 8
%169 = fmul double %167, %168
%170 = load double, ptr %23, align 8
%171 = fdiv double %169, %170
%172 = load double, ptr %19, align 8
%173 = fneg double %172
%174 = load double, ptr %28, align 8
%175 = fmul double %173, %174
%176 = call double @exp(double noundef %175) #4
%177 = fmul double %171, %176
%178 = load double, ptr %29, align 8
%179 = fmul double 3.700000e+01, %178
%180 = load double, ptr %29, align 8
%181 = call double @llvm.fmuladd.f64(double %179, double %180, double 1.000000e+00)
%182 = fdiv double %177, %181
%183 = fadd double 1.388890e-07, %182
%184 = load ptr, ptr %14, align 8
%185 = load i32, ptr %27, align 4
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds double, ptr %184, i64 %186
store double %183, ptr %187, align 8
br label %188
188: ; preds = %161
%189 = load i32, ptr %27, align 4
%190 = add nsw i32 %189, 1
store i32 %190, ptr %27, align 4
br label %82, !llvm.loop !9
191: ; preds = %82
%192 = load ptr, ptr %14, align 8
%193 = load i32, ptr %16, align 4
%194 = sub nsw i32 %193, 2
%195 = sext i32 %194 to i64
%196 = getelementptr inbounds double, ptr %192, i64 %195
%197 = load double, ptr %196, align 8
%198 = load ptr, ptr %14, align 8
%199 = load i32, ptr %16, align 4
%200 = sub nsw i32 %199, 1
%201 = sext i32 %200 to i64
%202 = getelementptr inbounds double, ptr %198, i64 %201
store double %197, ptr %202, align 8
br label %203
203: ; preds = %191, %63
ret void
}
; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #1
; Function Attrs: nounwind
declare double @sin(double noundef) #1
declare i64 @fabs(double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
; Function Attrs: nounwind
declare double @exp(double noundef) #1
; Function Attrs: nounwind
declare double @sqrt(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 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptncv_ni5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @eddy(i32 noundef %0, double noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, double noundef %5, i32 noundef %6, double noundef %7, double noundef %8) #0 {
%10 = alloca i32, align 4
%11 = alloca double, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca double, align 8
%16 = alloca i32, align 4
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca double, align 8
%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 [20 x double], align 16
%27 = alloca i32, align 4
%28 = alloca double, align 8
%29 = alloca double, align 8
store i32 %0, ptr %10, align 4
store double %1, ptr %11, align 8
store ptr %2, ptr %12, align 8
store ptr %3, ptr %13, align 8
store ptr %4, ptr %14, align 8
store double %5, ptr %15, align 8
store i32 %6, ptr %16, align 4
store double %7, ptr %17, align 8
store double %8, ptr %18, align 8
store i32 0, ptr %27, align 4
%30 = load i32, ptr %27, align 4
%31 = load i32, ptr %16, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %.lr.ph, label %44
.lr.ph: ; preds = %9
br label %33
33: ; preds = %.lr.ph, %38
%34 = load double, ptr %17, align 8
%35 = load i32, ptr %27, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [20 x double], ptr %26, i64 0, i64 %36
store double %34, ptr %37, align 8
br label %38
38: ; preds = %33
%39 = load i32, ptr %27, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %27, align 4
%41 = load i32, ptr %27, align 4
%42 = load i32, ptr %16, align 4
%43 = icmp slt i32 %41, %42
br i1 %43, label %33, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %38
br label %44
44: ; preds = %._crit_edge, %9
%45 = load double, ptr %18, align 8
%46 = load double, ptr %17, align 8
%47 = fadd double %45, %46
%48 = fmul double %47, 5.000000e-01
%49 = getelementptr inbounds [20 x double], ptr %26, i64 0, i64 0
store double %48, ptr %49, align 16
%50 = load i32, ptr %10, align 4
%51 = icmp ne i32 %50, 1
br i1 %51, label %52, label %68
52: ; preds = %44
store i32 0, ptr %27, align 4
%53 = load i32, ptr %27, align 4
%54 = load i32, ptr %16, align 4
%55 = icmp slt i32 %53, %54
br i1 %55, label %.lr.ph5, label %67
.lr.ph5: ; preds = %52
br label %56
56: ; preds = %.lr.ph5, %61
%57 = load ptr, ptr %14, align 8
%58 = load i32, ptr %27, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds double, ptr %57, i64 %59
store double 1.388890e-07, ptr %60, align 8
br label %61
61: ; preds = %56
%62 = load i32, ptr %27, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %27, align 4
%64 = load i32, ptr %27, align 4
%65 = load i32, ptr %16, align 4
%66 = icmp slt i32 %64, %65
br i1 %66, label %56, label %._crit_edge6, !llvm.loop !8
._crit_edge6: ; preds = %61
br label %67
67: ; preds = %._crit_edge6, %52
br label %210
68: ; preds = %44
%69 = load double, ptr %11, align 8
%70 = fcmp olt double %69, 1.000000e+00
br i1 %70, label %71, label %72
71: ; preds = %68
store double 1.000000e+00, ptr %11, align 8
br label %72
72: ; preds = %71, %68
%73 = load double, ptr %15, align 8
%74 = call i64 @fabs(double noundef %73)
%75 = sitofp i64 %74 to double
%76 = fmul double %75, 0x400921FB5A7ED197
%77 = fdiv double %76, 1.800000e+02
%78 = call double @sin(double noundef %77) #4
%79 = call double @pow(double noundef %78, double noundef 5.000000e-01) #4
%80 = fmul double 6.600000e+00, %79
%81 = load double, ptr %11, align 8
%82 = call double @pow(double noundef %81, double noundef -1.840000e+00) #4
%83 = fmul double %80, %82
store double %83, ptr %19, align 8
%84 = load double, ptr %11, align 8
%85 = fmul double 1.200000e-03, %84
store double %85, ptr %21, align 8
store double 1.000000e+00, ptr %23, align 8
store double 4.000000e+04, ptr %22, align 8
store i32 0, ptr %27, align 4
%86 = load i32, ptr %27, align 4
%87 = load i32, ptr %16, align 4
%88 = sub nsw i32 %87, 1
%89 = icmp slt i32 %86, %88
br i1 %89, label %.lr.ph2, label %198
.lr.ph2: ; preds = %72
br label %90
90: ; preds = %.lr.ph2, %191
%91 = load ptr, ptr %13, align 8
%92 = load i32, ptr %27, align 4
%93 = add nsw i32 %92, 1
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds double, ptr %91, i64 %94
%96 = load double, ptr %95, align 8
%97 = load ptr, ptr %13, align 8
%98 = load i32, ptr %27, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds double, ptr %97, i64 %99
%101 = load double, ptr %100, align 8
%102 = fsub double %96, %101
%103 = load i32, ptr %27, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds [20 x double], ptr %26, i64 0, i64 %104
%106 = load double, ptr %105, align 8
%107 = fdiv double %102, %106
store double %107, ptr %24, align 8
%108 = load double, ptr %24, align 8
%109 = load ptr, ptr %13, align 8
%110 = load i32, ptr %27, align 4
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds double, ptr %109, i64 %111
%113 = load double, ptr %112, align 8
%114 = fadd double 1.000000e+03, %113
%115 = fdiv double %108, %114
%116 = fmul double %115, 9.800000e+00
store double %116, ptr %20, align 8
%117 = load double, ptr %18, align 8
%118 = load i32, ptr %27, align 4
%119 = sitofp i32 %118 to float
%120 = fpext float %119 to double
%121 = load double, ptr %17, align 8
%122 = call double @llvm.fmuladd.f64(double %120, double %121, double %117)
store double %122, ptr %28, align 8
%123 = load double, ptr %28, align 8
%124 = load double, ptr %19, align 8
%125 = load double, ptr %28, align 8
%126 = fmul double %124, %125
%127 = call double @exp(double noundef %126) #4
%128 = fmul double %123, %127
%129 = load double, ptr %21, align 8
%130 = fdiv double %128, %129
%131 = fcmp ogt double %130, 1.000000e+08
br i1 %131, label %132, label %134
132: ; preds = %90
%133 = load double, ptr %22, align 8
store double %133, ptr %25, align 8
br label %164
134: ; preds = %90
%135 = load double, ptr %20, align 8
%136 = fmul double 4.000000e+01, %135
%137 = load double, ptr %28, align 8
%138 = fmul double 4.000000e-01, %137
%139 = fmul double %136, %138
%140 = load double, ptr %28, align 8
%141 = fmul double 4.000000e-01, %140
%142 = fmul double %139, %141
%143 = load double, ptr %21, align 8
%144 = load double, ptr %21, align 8
%145 = fmul double %143, %144
%146 = load double, ptr %19, align 8
%147 = fmul double -2.000000e+00, %146
%148 = load double, ptr %28, align 8
%149 = fmul double %147, %148
%150 = call double @exp(double noundef %149) #4
%151 = fmul double %145, %150
%152 = fdiv double %142, %151
%153 = fadd double 1.000000e+00, %152
store double %153, ptr %25, align 8
%154 = load double, ptr %25, align 8
%155 = load double, ptr %22, align 8
%156 = fcmp ogt double %154, %155
br i1 %156, label %157, label %159
157: ; preds = %134
%158 = load double, ptr %22, align 8
store double %158, ptr %25, align 8
br label %159
159: ; preds = %157, %134
%160 = load double, ptr %25, align 8
%161 = fcmp olt double %160, 1.000000e+00
br i1 %161, label %162, label %163
162: ; preds = %159
store double 1.000000e+00, ptr %25, align 8
br label %163
163: ; preds = %162, %159
br label %164
164: ; preds = %163, %132
%165 = load double, ptr %25, align 8
%166 = call double @sqrt(double noundef %165) #4
%167 = fadd double -1.000000e+00, %166
%168 = fdiv double %167, 2.000000e+01
store double %168, ptr %29, align 8
%169 = load double, ptr %21, align 8
%170 = fmul double 4.000000e-01, %169
%171 = load double, ptr %28, align 8
%172 = fmul double %170, %171
%173 = load double, ptr %23, align 8
%174 = fdiv double %172, %173
%175 = load double, ptr %19, align 8
%176 = fneg double %175
%177 = load double, ptr %28, align 8
%178 = fmul double %176, %177
%179 = call double @exp(double noundef %178) #4
%180 = fmul double %174, %179
%181 = load double, ptr %29, align 8
%182 = fmul double 3.700000e+01, %181
%183 = load double, ptr %29, align 8
%184 = call double @llvm.fmuladd.f64(double %182, double %183, double 1.000000e+00)
%185 = fdiv double %180, %184
%186 = fadd double 1.388890e-07, %185
%187 = load ptr, ptr %14, align 8
%188 = load i32, ptr %27, align 4
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds double, ptr %187, i64 %189
store double %186, ptr %190, align 8
br label %191
191: ; preds = %164
%192 = load i32, ptr %27, align 4
%193 = add nsw i32 %192, 1
store i32 %193, ptr %27, align 4
%194 = load i32, ptr %27, align 4
%195 = load i32, ptr %16, align 4
%196 = sub nsw i32 %195, 1
%197 = icmp slt i32 %194, %196
br i1 %197, label %90, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %191
br label %198
198: ; preds = %._crit_edge3, %72
%199 = load ptr, ptr %14, align 8
%200 = load i32, ptr %16, align 4
%201 = sub nsw i32 %200, 2
%202 = sext i32 %201 to i64
%203 = getelementptr inbounds double, ptr %199, i64 %202
%204 = load double, ptr %203, align 8
%205 = load ptr, ptr %14, align 8
%206 = load i32, ptr %16, align 4
%207 = sub nsw i32 %206, 1
%208 = sext i32 %207 to i64
%209 = getelementptr inbounds double, ptr %205, i64 %208
store double %204, ptr %209, align 8
br label %210
210: ; preds = %198, %67
ret void
}
; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #1
; Function Attrs: nounwind
declare double @sin(double noundef) #1
declare i64 @fabs(double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
; Function Attrs: nounwind
declare double @exp(double noundef) #1
; Function Attrs: nounwind
declare double @sqrt(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 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp69cxl33x.c'
source_filename = "/tmp/tmp69cxl33x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"Insert Element at 2nd Position: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"Insert Element at 5th Position: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @insert(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = icmp sge i32 %5, 1
br i1 %6, label %7, label %12
7: ; preds = %2
%8 = call i32 @printf(ptr noundef @.str)
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds i32, ptr %9, i64 1
%11 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %10)
br label %12
12: ; preds = %7, %2
%13 = load i32, ptr %4, align 4
%14 = icmp sge i32 %13, 4
br i1 %14, label %15, label %20
15: ; preds = %12
%16 = call i32 @printf(ptr noundef @.str.2)
%17 = load ptr, ptr %3, align 8
%18 = getelementptr inbounds i32, ptr %17, i64 4
%19 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %18)
br label %20
20: ; preds = %15, %12
ret void
}
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/tmp69cxl33x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"Insert Element at 2nd Position: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"Insert Element at 5th Position: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @insert(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = icmp sge i32 %5, 1
br i1 %6, label %7, label %12
7: ; preds = %2
%8 = call i32 @printf(ptr noundef @.str)
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds i32, ptr %9, i64 1
%11 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %10)
br label %12
12: ; preds = %7, %2
%13 = load i32, ptr %4, align 4
%14 = icmp sge i32 %13, 4
br i1 %14, label %15, label %20
15: ; preds = %12
%16 = call i32 @printf(ptr noundef @.str.2)
%17 = load ptr, ptr %3, align 8
%18 = getelementptr inbounds i32, ptr %17, i64 4
%19 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %18)
br label %20
20: ; preds = %15, %12
ret void
}
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/tmplj97d_v2.c'
source_filename = "/tmp/tmplj97d_v2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"%d%f%ld\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"103\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"985.3\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"12141312\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @_stdlib(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @time(ptr noundef null)
%4 = call i32 @srand(i32 noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @atoi(ptr noundef @.str.1)
%7 = call i32 @atof(ptr noundef @.str.2)
%8 = call i32 @atol(ptr noundef @.str.3)
%9 = call i32 @fprintf(ptr noundef %5, ptr noundef @.str, i32 noundef %6, i32 noundef %7, i32 noundef %8)
ret i32 5
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @atof(ptr noundef) #1
declare i32 @atol(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/tmplj97d_v2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"%d%f%ld\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"103\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"985.3\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"12141312\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @_stdlib(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @time(ptr noundef null)
%4 = call i32 @srand(i32 noundef %3)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @atoi(ptr noundef @.str.1)
%7 = call i32 @atof(ptr noundef @.str.2)
%8 = call i32 @atol(ptr noundef @.str.3)
%9 = call i32 @fprintf(ptr noundef %5, ptr noundef @.str, i32 noundef %6, i32 noundef %7, i32 noundef %8)
ret i32 5
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @atof(ptr noundef) #1
declare i32 @atol(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/tmplpi7ma8f.c'
source_filename = "/tmp/tmplpi7ma8f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [4 x i8] c"d:t\00", align 1
@EOF = dso_local global i8 0, align 1
@optarg = dso_local global ptr null, align 8
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [22 x i8] c"unknown option: '%s'\0A\00", align 1
@optind = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [13 x i8] c"Thick crust.\00", align 1
@.str.4 = private unnamed_addr constant [21 x i8] c"To be delivered %s.\0A\00", align 1
@.str.5 = private unnamed_addr constant [13 x i8] c"Ingredients:\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
%8 = alloca i32, align 4
%9 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr @.str, ptr %6, align 8
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %10
10: ; preds = %28, %2
%11 = load i32, ptr %4, align 4
%12 = load ptr, ptr %5, align 8
%13 = call signext i8 @getopt(i32 noundef %11, ptr noundef %12, ptr noundef @.str.1)
store i8 %13, ptr %9, align 1
%14 = sext i8 %13 to i32
%15 = load i8, ptr @EOF, align 1
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %14, %16
br i1 %17, label %18, label %29
18: ; preds = %10
%19 = load i8, ptr %9, align 1
%20 = sext i8 %19 to i32
switch i32 %20, label %24 [
i32 100, label %21
i32 116, label %23
]
21: ; preds = %18
%22 = load ptr, ptr @optarg, align 8
store ptr %22, ptr %6, align 8
br label %28
23: ; preds = %18
store i32 1, ptr %7, align 4
br label %28
24: ; preds = %18
%25 = load i32, ptr @stderr, align 4
%26 = load ptr, ptr @optarg, align 8
%27 = call i32 @fprintf(i32 noundef %25, ptr noundef @.str.2, ptr noundef %26)
store i32 1, ptr %3, align 4
br label %67
28: ; preds = %23, %21
br label %10, !llvm.loop !6
29: ; preds = %10
%30 = load i64, ptr @optind, align 8
%31 = load i32, ptr %4, align 4
%32 = sext i32 %31 to i64
%33 = sub nsw i64 %32, %30
%34 = trunc i64 %33 to i32
store i32 %34, ptr %4, align 4
%35 = load i64, ptr @optind, align 8
%36 = load ptr, ptr %5, align 8
%37 = getelementptr inbounds ptr, ptr %36, i64 %35
store ptr %37, ptr %5, align 8
%38 = load i32, ptr %7, align 4
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %42
40: ; preds = %29
%41 = call i32 @puts(ptr noundef @.str.3)
br label %42
42: ; preds = %40, %29
%43 = load ptr, ptr %6, align 8
%44 = getelementptr inbounds i8, ptr %43, i64 0
%45 = load i8, ptr %44, align 1
%46 = icmp ne i8 %45, 0
br i1 %46, label %47, label %50
47: ; preds = %42
%48 = load ptr, ptr %6, align 8
%49 = call i32 @printf(ptr noundef @.str.4, ptr noundef %48)
br label %50
50: ; preds = %47, %42
%51 = call i32 @puts(ptr noundef @.str.5)
store i32 0, ptr %8, align 4
br label %52
52: ; preds = %63, %50
%53 = load i32, ptr %8, align 4
%54 = load i32, ptr %4, align 4
%55 = icmp slt i32 %53, %54
br i1 %55, label %56, label %66
56: ; preds = %52
%57 = load ptr, ptr %5, align 8
%58 = load i32, ptr %8, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds ptr, ptr %57, i64 %59
%61 = load ptr, ptr %60, align 8
%62 = call i32 @puts(ptr noundef %61)
br label %63
63: ; preds = %56
%64 = load i32, ptr %8, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %8, align 4
br label %52, !llvm.loop !8
66: ; preds = %52
store i32 0, ptr %3, align 4
br label %67
67: ; preds = %66, %24
%68 = load i32, ptr %3, align 4
ret i32 %68
}
declare signext i8 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @puts(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplpi7ma8f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [4 x i8] c"d:t\00", align 1
@EOF = dso_local global i8 0, align 1
@optarg = dso_local global ptr null, align 8
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [22 x i8] c"unknown option: '%s'\0A\00", align 1
@optind = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [13 x i8] c"Thick crust.\00", align 1
@.str.4 = private unnamed_addr constant [21 x i8] c"To be delivered %s.\0A\00", align 1
@.str.5 = private unnamed_addr constant [13 x i8] c"Ingredients:\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
%8 = alloca i32, align 4
%9 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr @.str, ptr %6, align 8
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
%10 = load i32, ptr %4, align 4
%11 = load ptr, ptr %5, align 8
%12 = call signext i8 @getopt(i32 noundef %10, ptr noundef %11, ptr noundef @.str.1)
store i8 %12, ptr %9, align 1
%13 = sext i8 %12 to i32
%14 = load i8, ptr @EOF, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %13, %15
br i1 %16, label %.lr.ph, label %35
.lr.ph: ; preds = %2
br label %17
17: ; preds = %.lr.ph, %27
%18 = load i8, ptr %9, align 1
%19 = sext i8 %18 to i32
switch i32 %19, label %23 [
i32 100, label %20
i32 116, label %22
]
20: ; preds = %17
%21 = load ptr, ptr @optarg, align 8
store ptr %21, ptr %6, align 8
br label %27
22: ; preds = %17
store i32 1, ptr %7, align 4
br label %27
23: ; preds = %17
%24 = load i32, ptr @stderr, align 4
%25 = load ptr, ptr @optarg, align 8
%26 = call i32 @fprintf(i32 noundef %24, ptr noundef @.str.2, ptr noundef %25)
store i32 1, ptr %3, align 4
br label %75
27: ; preds = %22, %20
%28 = load i32, ptr %4, align 4
%29 = load ptr, ptr %5, align 8
%30 = call signext i8 @getopt(i32 noundef %28, ptr noundef %29, ptr noundef @.str.1)
store i8 %30, ptr %9, align 1
%31 = sext i8 %30 to i32
%32 = load i8, ptr @EOF, align 1
%33 = sext i8 %32 to i32
%34 = icmp ne i32 %31, %33
br i1 %34, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %35
35: ; preds = %._crit_edge, %2
%36 = load i64, ptr @optind, align 8
%37 = load i32, ptr %4, align 4
%38 = sext i32 %37 to i64
%39 = sub nsw i64 %38, %36
%40 = trunc i64 %39 to i32
store i32 %40, ptr %4, align 4
%41 = load i64, ptr @optind, align 8
%42 = load ptr, ptr %5, align 8
%43 = getelementptr inbounds ptr, ptr %42, i64 %41
store ptr %43, ptr %5, align 8
%44 = load i32, ptr %7, align 4
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %48
46: ; preds = %35
%47 = call i32 @puts(ptr noundef @.str.3)
br label %48
48: ; preds = %46, %35
%49 = load ptr, ptr %6, align 8
%50 = getelementptr inbounds i8, ptr %49, i64 0
%51 = load i8, ptr %50, align 1
%52 = icmp ne i8 %51, 0
br i1 %52, label %53, label %56
53: ; preds = %48
%54 = load ptr, ptr %6, align 8
%55 = call i32 @printf(ptr noundef @.str.4, ptr noundef %54)
br label %56
56: ; preds = %53, %48
%57 = call i32 @puts(ptr noundef @.str.5)
store i32 0, ptr %8, align 4
%58 = load i32, ptr %8, align 4
%59 = load i32, ptr %4, align 4
%60 = icmp slt i32 %58, %59
br i1 %60, label %.lr.ph2, label %74
.lr.ph2: ; preds = %56
br label %61
61: ; preds = %.lr.ph2, %68
%62 = load ptr, ptr %5, align 8
%63 = load i32, ptr %8, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds ptr, ptr %62, i64 %64
%66 = load ptr, ptr %65, align 8
%67 = call i32 @puts(ptr noundef %66)
br label %68
68: ; preds = %61
%69 = load i32, ptr %8, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %8, align 4
%71 = load i32, ptr %8, align 4
%72 = load i32, ptr %4, align 4
%73 = icmp slt i32 %71, %72
br i1 %73, label %61, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %68
br label %74
74: ; preds = %._crit_edge3, %56
store i32 0, ptr %3, align 4
br label %75
75: ; preds = %74, %23
%76 = load i32, ptr %3, align 4
ret i32 %76
}
declare signext i8 @getopt(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @puts(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmptbr33_ww.c'
source_filename = "/tmp/tmptbr33_ww.c"
target datalayout = "e-m:e-p270: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/tmptbr33_ww.c"
target datalayout = "e-m:e-p270: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/tmpk_138nxf.c'
source_filename = "/tmp/tmpk_138nxf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
%struct.group = type { ptr }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [29 x i8] c"could not get group of file\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getgroup(i32 %0) #0 {
%2 = alloca %struct.stat, align 4
%3 = alloca ptr, align 8
%4 = getelementptr inbounds %struct.stat, ptr %2, i32 0, i32 0
store i32 %0, ptr %4, align 4
%5 = getelementptr inbounds %struct.stat, ptr %2, i32 0, i32 0
%6 = load i32, ptr %5, align 4
%7 = call ptr @getgrgid(i32 noundef %6)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %14
10: ; preds = %1
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str)
%13 = call i32 @exit(i32 noundef 1) #3
unreachable
14: ; preds = %1
%15 = load ptr, ptr %3, align 8
%16 = getelementptr inbounds %struct.group, ptr %15, i32 0, i32 0
%17 = load ptr, ptr %16, align 8
ret ptr %17
}
declare ptr @getgrgid(i32 noundef) #1
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/tmpk_138nxf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
%struct.group = type { ptr }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [29 x i8] c"could not get group of file\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @getgroup(i32 %0) #0 {
%2 = alloca %struct.stat, align 4
%3 = alloca ptr, align 8
%4 = getelementptr inbounds %struct.stat, ptr %2, i32 0, i32 0
store i32 %0, ptr %4, align 4
%5 = getelementptr inbounds %struct.stat, ptr %2, i32 0, i32 0
%6 = load i32, ptr %5, align 4
%7 = call ptr @getgrgid(i32 noundef %6)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %14
10: ; preds = %1
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str)
%13 = call i32 @exit(i32 noundef 1) #3
unreachable
14: ; preds = %1
%15 = load ptr, ptr %3, align 8
%16 = getelementptr inbounds %struct.group, ptr %15, i32 0, i32 0
%17 = load ptr, ptr %16, align 8
ret ptr %17
}
declare ptr @getgrgid(i32 noundef) #1
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/tmpl5gho6m1.c'
source_filename = "/tmp/tmpl5gho6m1.c"
target datalayout = "e-m:e-p270: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/tmpl5gho6m1.c"
target datalayout = "e-m:e-p270: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/tmps6b0ptzy.c'
source_filename = "/tmp/tmps6b0ptzy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"USAGE:ex17 <dbfile> <action> [action params]\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"There is not that many records.\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"Need an id to get\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"Need id, name, email to set\00", align 1
@.str.4 = private unnamed_addr constant [18 x i8] c"Need id to delete\00", align 1
@.str.5 = private unnamed_addr constant [54 x i8] c"Invalid action: c=create, g=get, s=set, d=del, l=list\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 i8, align 1
%8 = alloca ptr, align 8
%9 = 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
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 3
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 @die(ptr noundef @.str, ptr noundef null)
br label %14
14: ; preds = %12, %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
store ptr %17, ptr %6, align 8
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 2
%20 = load ptr, ptr %19, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 0
%22 = load i8, ptr %21, align 1
store i8 %22, ptr %7, align 1
%23 = load ptr, ptr %6, align 8
%24 = load i8, ptr %7, align 1
%25 = call ptr @Database_open(ptr noundef %23, i8 noundef signext %24)
store ptr %25, ptr %8, align 8
store i32 0, ptr %9, align 4
%26 = load i32, ptr %4, align 4
%27 = icmp sgt i32 %26, 3
br i1 %27, label %28, label %33
28: ; preds = %14
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 3
%31 = load ptr, ptr %30, align 8
%32 = call i32 @atoi(ptr noundef %31)
store i32 %32, ptr %9, align 4
br label %33
33: ; preds = %28, %14
%34 = load i32, ptr %9, align 4
%35 = icmp sge i32 %34, 100
br i1 %35, label %36, label %39
36: ; preds = %33
%37 = load ptr, ptr %8, align 8
%38 = call i32 @die(ptr noundef @.str.1, ptr noundef %37)
br label %39
39: ; preds = %36, %33
%40 = load i8, ptr %7, align 1
%41 = sext i8 %40 to i32
switch i32 %41, label %90 [
i32 99, label %42
i32 103, label %47
i32 115, label %57
i32 100, label %75
i32 108, label %87
]
42: ; preds = %39
%43 = load ptr, ptr %8, align 8
%44 = call i32 @Database_create(ptr noundef %43)
%45 = load ptr, ptr %8, align 8
%46 = call i32 @Database_write(ptr noundef %45)
br label %93
47: ; preds = %39
%48 = load i32, ptr %4, align 4
%49 = icmp ne i32 %48, 4
br i1 %49, label %50, label %53
50: ; preds = %47
%51 = load ptr, ptr %8, align 8
%52 = call i32 @die(ptr noundef @.str.2, ptr noundef %51)
br label %53
53: ; preds = %50, %47
%54 = load ptr, ptr %8, align 8
%55 = load i32, ptr %9, align 4
%56 = call i32 @Database_get(ptr noundef %54, i32 noundef %55)
br label %93
57: ; preds = %39
%58 = load i32, ptr %4, align 4
%59 = icmp ne i32 %58, 6
br i1 %59, label %60, label %63
60: ; preds = %57
%61 = load ptr, ptr %8, align 8
%62 = call i32 @die(ptr noundef @.str.3, ptr noundef %61)
br label %63
63: ; preds = %60, %57
%64 = load ptr, ptr %8, align 8
%65 = load i32, ptr %9, align 4
%66 = load ptr, ptr %5, align 8
%67 = getelementptr inbounds ptr, ptr %66, i64 4
%68 = load ptr, ptr %67, align 8
%69 = load ptr, ptr %5, align 8
%70 = getelementptr inbounds ptr, ptr %69, i64 5
%71 = load ptr, ptr %70, align 8
%72 = call i32 @Database_set(ptr noundef %64, i32 noundef %65, ptr noundef %68, ptr noundef %71)
%73 = load ptr, ptr %8, align 8
%74 = call i32 @Database_write(ptr noundef %73)
br label %93
75: ; preds = %39
%76 = load i32, ptr %4, align 4
%77 = icmp ne i32 %76, 4
br i1 %77, label %78, label %81
78: ; preds = %75
%79 = load ptr, ptr %8, align 8
%80 = call i32 @die(ptr noundef @.str.4, ptr noundef %79)
br label %81
81: ; preds = %78, %75
%82 = load ptr, ptr %8, align 8
%83 = load i32, ptr %9, align 4
%84 = call i32 @Database_delete(ptr noundef %82, i32 noundef %83)
%85 = load ptr, ptr %8, align 8
%86 = call i32 @Database_write(ptr noundef %85)
br label %93
87: ; preds = %39
%88 = load ptr, ptr %8, align 8
%89 = call i32 @Database_list(ptr noundef %88)
br label %93
90: ; preds = %39
%91 = load ptr, ptr %8, align 8
%92 = call i32 @die(ptr noundef @.str.5, ptr noundef %91)
br label %93
93: ; preds = %90, %87, %81, %63, %53, %42
%94 = load ptr, ptr %8, align 8
%95 = call i32 @Database_close(ptr noundef %94)
ret i32 0
}
declare i32 @die(ptr noundef, ptr noundef) #1
declare ptr @Database_open(ptr noundef, i8 noundef signext) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @Database_create(ptr noundef) #1
declare i32 @Database_write(ptr noundef) #1
declare i32 @Database_get(ptr noundef, i32 noundef) #1
declare i32 @Database_set(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @Database_delete(ptr noundef, i32 noundef) #1
declare i32 @Database_list(ptr noundef) #1
declare i32 @Database_close(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/tmps6b0ptzy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"USAGE:ex17 <dbfile> <action> [action params]\00", align 1
@.str.1 = private unnamed_addr constant [32 x i8] c"There is not that many records.\00", align 1
@.str.2 = private unnamed_addr constant [18 x i8] c"Need an id to get\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"Need id, name, email to set\00", align 1
@.str.4 = private unnamed_addr constant [18 x i8] c"Need id to delete\00", align 1
@.str.5 = private unnamed_addr constant [54 x i8] c"Invalid action: c=create, g=get, s=set, d=del, l=list\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 i8, align 1
%8 = alloca ptr, align 8
%9 = 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
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 3
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 @die(ptr noundef @.str, ptr noundef null)
br label %14
14: ; preds = %12, %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
store ptr %17, ptr %6, align 8
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 2
%20 = load ptr, ptr %19, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 0
%22 = load i8, ptr %21, align 1
store i8 %22, ptr %7, align 1
%23 = load ptr, ptr %6, align 8
%24 = load i8, ptr %7, align 1
%25 = call ptr @Database_open(ptr noundef %23, i8 noundef signext %24)
store ptr %25, ptr %8, align 8
store i32 0, ptr %9, align 4
%26 = load i32, ptr %4, align 4
%27 = icmp sgt i32 %26, 3
br i1 %27, label %28, label %33
28: ; preds = %14
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 3
%31 = load ptr, ptr %30, align 8
%32 = call i32 @atoi(ptr noundef %31)
store i32 %32, ptr %9, align 4
br label %33
33: ; preds = %28, %14
%34 = load i32, ptr %9, align 4
%35 = icmp sge i32 %34, 100
br i1 %35, label %36, label %39
36: ; preds = %33
%37 = load ptr, ptr %8, align 8
%38 = call i32 @die(ptr noundef @.str.1, ptr noundef %37)
br label %39
39: ; preds = %36, %33
%40 = load i8, ptr %7, align 1
%41 = sext i8 %40 to i32
switch i32 %41, label %90 [
i32 99, label %42
i32 103, label %47
i32 115, label %57
i32 100, label %75
i32 108, label %87
]
42: ; preds = %39
%43 = load ptr, ptr %8, align 8
%44 = call i32 @Database_create(ptr noundef %43)
%45 = load ptr, ptr %8, align 8
%46 = call i32 @Database_write(ptr noundef %45)
br label %93
47: ; preds = %39
%48 = load i32, ptr %4, align 4
%49 = icmp ne i32 %48, 4
br i1 %49, label %50, label %53
50: ; preds = %47
%51 = load ptr, ptr %8, align 8
%52 = call i32 @die(ptr noundef @.str.2, ptr noundef %51)
br label %53
53: ; preds = %50, %47
%54 = load ptr, ptr %8, align 8
%55 = load i32, ptr %9, align 4
%56 = call i32 @Database_get(ptr noundef %54, i32 noundef %55)
br label %93
57: ; preds = %39
%58 = load i32, ptr %4, align 4
%59 = icmp ne i32 %58, 6
br i1 %59, label %60, label %63
60: ; preds = %57
%61 = load ptr, ptr %8, align 8
%62 = call i32 @die(ptr noundef @.str.3, ptr noundef %61)
br label %63
63: ; preds = %60, %57
%64 = load ptr, ptr %8, align 8
%65 = load i32, ptr %9, align 4
%66 = load ptr, ptr %5, align 8
%67 = getelementptr inbounds ptr, ptr %66, i64 4
%68 = load ptr, ptr %67, align 8
%69 = load ptr, ptr %5, align 8
%70 = getelementptr inbounds ptr, ptr %69, i64 5
%71 = load ptr, ptr %70, align 8
%72 = call i32 @Database_set(ptr noundef %64, i32 noundef %65, ptr noundef %68, ptr noundef %71)
%73 = load ptr, ptr %8, align 8
%74 = call i32 @Database_write(ptr noundef %73)
br label %93
75: ; preds = %39
%76 = load i32, ptr %4, align 4
%77 = icmp ne i32 %76, 4
br i1 %77, label %78, label %81
78: ; preds = %75
%79 = load ptr, ptr %8, align 8
%80 = call i32 @die(ptr noundef @.str.4, ptr noundef %79)
br label %81
81: ; preds = %78, %75
%82 = load ptr, ptr %8, align 8
%83 = load i32, ptr %9, align 4
%84 = call i32 @Database_delete(ptr noundef %82, i32 noundef %83)
%85 = load ptr, ptr %8, align 8
%86 = call i32 @Database_write(ptr noundef %85)
br label %93
87: ; preds = %39
%88 = load ptr, ptr %8, align 8
%89 = call i32 @Database_list(ptr noundef %88)
br label %93
90: ; preds = %39
%91 = load ptr, ptr %8, align 8
%92 = call i32 @die(ptr noundef @.str.5, ptr noundef %91)
br label %93
93: ; preds = %90, %87, %81, %63, %53, %42
%94 = load ptr, ptr %8, align 8
%95 = call i32 @Database_close(ptr noundef %94)
ret i32 0
}
declare i32 @die(ptr noundef, ptr noundef) #1
declare ptr @Database_open(ptr noundef, i8 noundef signext) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @Database_create(ptr noundef) #1
declare i32 @Database_write(ptr noundef) #1
declare i32 @Database_get(ptr noundef, i32 noundef) #1
declare i32 @Database_set(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @Database_delete(ptr noundef, i32 noundef) #1
declare i32 @Database_list(ptr noundef) #1
declare i32 @Database_close(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/tmpnb1z1tvn.c'
source_filename = "/tmp/tmpnb1z1tvn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [40 x i8] c"strchr/1-1.c failed to allocate memory\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @random_string(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%7 = load i32, ptr %3, align 4
%8 = add nsw i32 %7, 1
%9 = call ptr @malloc(i32 noundef %8)
store ptr %9, ptr %6, align 8
%10 = load ptr, ptr %6, align 8
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = call i32 @printf(ptr noundef @.str)
%14 = call i32 @exit(i32 noundef 2) #3
unreachable
15: ; preds = %2
store i32 0, ptr %5, align 4
br label %16
16: ; preds = %58, %15
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %3, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %61
20: ; preds = %16
%21 = call i32 (...) @rand()
%22 = srem i32 %21, 254
%23 = add nsw i32 %22, 1
%24 = trunc i32 %23 to i8
%25 = load ptr, ptr %6, align 8
%26 = load i32, ptr %5, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
store i8 %24, ptr %28, align 1
%29 = load i32, ptr %5, align 4
%30 = load i32, ptr %4, align 4
%31 = icmp eq i32 %29, %30
br i1 %31, label %32, label %37
32: ; preds = %20
%33 = load ptr, ptr %6, align 8
%34 = load i32, ptr %5, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
store i8 115, ptr %36, align 1
br label %57
37: ; preds = %20
%38 = load ptr, ptr %6, align 8
%39 = load i32, ptr %5, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, ptr %38, i64 %40
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
%44 = icmp eq i32 %43, 110
br i1 %44, label %53, label %45
45: ; preds = %37
%46 = load ptr, ptr %6, align 8
%47 = load i32, ptr %5, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8, ptr %46, i64 %48
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = icmp eq i32 %51, 115
br i1 %52, label %53, label %56
53: ; preds = %45, %37
%54 = load i32, ptr %5, align 4
%55 = add nsw i32 %54, -1
store i32 %55, ptr %5, align 4
br label %56
56: ; preds = %53, %45
br label %57
57: ; preds = %56, %32
br label %58
58: ; preds = %57
%59 = load i32, ptr %5, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %5, align 4
br label %16, !llvm.loop !6
61: ; preds = %16
%62 = load ptr, ptr %6, align 8
%63 = load i32, ptr %3, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i8, ptr %62, i64 %64
store i8 0, ptr %65, align 1
%66 = load ptr, ptr %6, align 8
ret ptr %66
}
declare ptr @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnb1z1tvn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [40 x i8] c"strchr/1-1.c failed to allocate memory\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @random_string(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%7 = load i32, ptr %3, align 4
%8 = add nsw i32 %7, 1
%9 = call ptr @malloc(i32 noundef %8)
store ptr %9, ptr %6, align 8
%10 = load ptr, ptr %6, align 8
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = call i32 @printf(ptr noundef @.str)
%14 = call i32 @exit(i32 noundef 2) #3
unreachable
15: ; preds = %2
store i32 0, ptr %5, align 4
%16 = load i32, ptr %5, align 4
%17 = load i32, ptr %3, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %.lr.ph, label %63
.lr.ph: ; preds = %15
br label %19
19: ; preds = %.lr.ph, %57
%20 = call i32 (...) @rand()
%21 = srem i32 %20, 254
%22 = add nsw i32 %21, 1
%23 = trunc i32 %22 to i8
%24 = load ptr, ptr %6, align 8
%25 = load i32, ptr %5, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %24, i64 %26
store i8 %23, ptr %27, align 1
%28 = load i32, ptr %5, align 4
%29 = load i32, ptr %4, align 4
%30 = icmp eq i32 %28, %29
br i1 %30, label %31, label %36
31: ; preds = %19
%32 = load ptr, ptr %6, align 8
%33 = load i32, ptr %5, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
store i8 115, ptr %35, align 1
br label %56
36: ; preds = %19
%37 = load ptr, ptr %6, align 8
%38 = load i32, ptr %5, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %37, i64 %39
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
%43 = icmp eq i32 %42, 110
br i1 %43, label %52, label %44
44: ; preds = %36
%45 = load ptr, ptr %6, align 8
%46 = load i32, ptr %5, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8, ptr %45, i64 %47
%49 = load i8, ptr %48, align 1
%50 = sext i8 %49 to i32
%51 = icmp eq i32 %50, 115
br i1 %51, label %52, label %55
52: ; preds = %44, %36
%53 = load i32, ptr %5, align 4
%54 = add nsw i32 %53, -1
store i32 %54, ptr %5, align 4
br label %55
55: ; preds = %52, %44
br label %56
56: ; preds = %55, %31
br label %57
57: ; preds = %56
%58 = load i32, ptr %5, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %5, align 4
%60 = load i32, ptr %5, align 4
%61 = load i32, ptr %3, align 4
%62 = icmp slt i32 %60, %61
br i1 %62, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %57
br label %63
63: ; preds = %._crit_edge, %15
%64 = load ptr, ptr %6, align 8
%65 = load i32, ptr %3, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i8, ptr %64, i64 %66
store i8 0, ptr %67, align 1
%68 = load ptr, ptr %6, align 8
ret ptr %68
}
declare ptr @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpwx7y1mi1.c'
source_filename = "/tmp/tmpwx7y1mi1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @drop_wave(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
store float %0, ptr %3, align 4
store float %1, ptr %4, align 4
%6 = load float, ptr %3, align 4
%7 = load float, ptr %4, align 4
%8 = call float @de_jongs(float noundef %6, float noundef %7)
store float %8, ptr %5, align 4
%9 = load float, ptr %5, align 4
%10 = call double @sqrt(float noundef %9)
%11 = fmul double 1.200000e+01, %10
%12 = call double @cos(double noundef %11) #4
%13 = fadd double 1.000000e+00, %12
%14 = load float, ptr %5, align 4
%15 = fpext float %14 to double
%16 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %15, double 2.000000e+00)
%17 = fdiv double %13, %16
%18 = fneg double %17
%19 = fptrunc double %18 to float
ret float %19
}
declare float @de_jongs(float noundef, float noundef) #1
; Function Attrs: nounwind
declare double @cos(double noundef) #2
declare double @sqrt(float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwx7y1mi1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @drop_wave(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
store float %0, ptr %3, align 4
store float %1, ptr %4, align 4
%6 = load float, ptr %3, align 4
%7 = load float, ptr %4, align 4
%8 = call float @de_jongs(float noundef %6, float noundef %7)
store float %8, ptr %5, align 4
%9 = load float, ptr %5, align 4
%10 = call double @sqrt(float noundef %9)
%11 = fmul double 1.200000e+01, %10
%12 = call double @cos(double noundef %11) #4
%13 = fadd double 1.000000e+00, %12
%14 = load float, ptr %5, align 4
%15 = fpext float %14 to double
%16 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %15, double 2.000000e+00)
%17 = fdiv double %13, %16
%18 = fneg double %17
%19 = fptrunc double %18 to float
ret float %19
}
declare float @de_jongs(float noundef, float noundef) #1
; Function Attrs: nounwind
declare double @cos(double noundef) #2
declare double @sqrt(float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #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 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg_8tpx4j.c'
source_filename = "/tmp/tmpg_8tpx4j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @alloc_re(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
%9 = load i32, ptr %7, align 4
%10 = call ptr @alloc(i32 noundef %9)
store ptr %10, ptr %8, align 8
%11 = load ptr, ptr %8, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %14, label %13
13: ; preds = %3
store i32 0, ptr %4, align 4
br label %25
14: ; preds = %3
%15 = load ptr, ptr %8, align 8
%16 = load i32, ptr %6, align 4
%17 = load ptr, ptr %5, align 8
%18 = load ptr, ptr %17, align 8
%19 = call i32 @byte_copy(ptr noundef %15, i32 noundef %16, ptr noundef %18)
%20 = load ptr, ptr %5, align 8
%21 = load ptr, ptr %20, align 8
%22 = call i32 @alloc_free(ptr noundef %21)
%23 = load ptr, ptr %8, align 8
%24 = load ptr, ptr %5, align 8
store ptr %23, ptr %24, align 8
store i32 1, ptr %4, align 4
br label %25
25: ; preds = %14, %13
%26 = load i32, ptr %4, align 4
ret i32 %26
}
declare ptr @alloc(i32 noundef) #1
declare i32 @byte_copy(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @alloc_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/tmpg_8tpx4j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @alloc_re(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
%9 = load i32, ptr %7, align 4
%10 = call ptr @alloc(i32 noundef %9)
store ptr %10, ptr %8, align 8
%11 = load ptr, ptr %8, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %14, label %13
13: ; preds = %3
store i32 0, ptr %4, align 4
br label %25
14: ; preds = %3
%15 = load ptr, ptr %8, align 8
%16 = load i32, ptr %6, align 4
%17 = load ptr, ptr %5, align 8
%18 = load ptr, ptr %17, align 8
%19 = call i32 @byte_copy(ptr noundef %15, i32 noundef %16, ptr noundef %18)
%20 = load ptr, ptr %5, align 8
%21 = load ptr, ptr %20, align 8
%22 = call i32 @alloc_free(ptr noundef %21)
%23 = load ptr, ptr %8, align 8
%24 = load ptr, ptr %5, align 8
store ptr %23, ptr %24, align 8
store i32 1, ptr %4, align 4
br label %25
25: ; preds = %14, %13
%26 = load i32, ptr %4, align 4
ret i32 %26
}
declare ptr @alloc(i32 noundef) #1
declare i32 @byte_copy(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @alloc_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/tmpqtkuf3d7.c'
source_filename = "/tmp/tmpqtkuf3d7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"pause\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 (...) @priklad_jedna()
%2 = call i32 (...) @priklad_dva()
%3 = call i32 @system(ptr noundef @.str)
ret i32 0
}
declare i32 @priklad_jedna(...) #1
declare i32 @priklad_dva(...) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqtkuf3d7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"pause\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 (...) @priklad_jedna()
%2 = call i32 (...) @priklad_dva()
%3 = call i32 @system(ptr noundef @.str)
ret i32 0
}
declare i32 @priklad_jedna(...) #1
declare i32 @priklad_dva(...) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2vn52ijc.c'
source_filename = "/tmp/tmp2vn52ijc.c"
target datalayout = "e-m:e-p270: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/tmp2vn52ijc.c"
target datalayout = "e-m:e-p270: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/tmp71gt3k3a.c'
source_filename = "/tmp/tmp71gt3k3a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"NOT IMPLEMENTED:pa_proplist_size\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pa_proplist_size() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
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/tmp71gt3k3a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"NOT IMPLEMENTED:pa_proplist_size\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pa_proplist_size() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
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/tmp8tx05jwz.c'
source_filename = "/tmp/tmp8tx05jwz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"%d brides for %d brothers\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
store i32 7, ptr %2, align 4
store i32 7, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = call i32 @printf(ptr noundef @.str, i32 noundef %4, i32 noundef %5)
ret i32 0
}
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/tmp8tx05jwz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"%d brides for %d brothers\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
store i32 7, ptr %2, align 4
store i32 7, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = call i32 @printf(ptr noundef @.str, i32 noundef %4, i32 noundef %5)
ret i32 0
}
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/tmpxw7jov6_.c'
source_filename = "/tmp/tmpxw7jov6_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\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 i32, align 4
%6 = alloca [200 x i32], align 16
%7 = alloca i8, align 1
%8 = alloca [200 x i8], align 16
store i32 0, ptr %1, align 4
store i32 97, ptr %2, align 4
store i32 0, ptr %4, align 4
%9 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %5)
%10 = call i32 (...) @getchar()
br label %11
11: ; preds = %78, %0
%12 = load i32, ptr %5, align 4
%13 = icmp sgt i32 %12, 0
br i1 %13, label %14, label %81
14: ; preds = %11
%15 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %7)
br label %16
16: ; preds = %72, %14
%17 = load i8, ptr %7, align 1
%18 = sext i8 %17 to i32
%19 = icmp ne i32 %18, 10
br i1 %19, label %20, label %76
20: ; preds = %16
%21 = load i8, ptr %7, align 1
%22 = load i32, ptr %4, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [200 x i8], ptr %8, i64 0, i64 %23
store i8 %21, ptr %24, align 1
store i32 0, ptr %3, align 4
br label %25
25: ; preds = %54, %20
%26 = load i32, ptr %3, align 4
%27 = load i32, ptr %4, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %57
29: ; preds = %25
%30 = load i8, ptr %7, align 1
%31 = sext i8 %30 to i32
%32 = load i32, ptr %3, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [200 x i8], ptr %8, i64 0, i64 %33
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = icmp eq i32 %31, %36
br i1 %37, label %38, label %53
38: ; preds = %29
%39 = load i32, ptr %3, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [200 x i32], ptr %6, i64 0, i64 %40
%42 = load i32, ptr %41, align 4
%43 = trunc i32 %42 to i8
%44 = sext i8 %43 to i32
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %44)
%46 = load i32, ptr %3, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [200 x i32], ptr %6, i64 0, i64 %47
%49 = load i32, ptr %48, align 4
%50 = load i32, ptr %4, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [200 x i32], ptr %6, i64 0, i64 %51
store i32 %49, ptr %52, align 4
br label %57
53: ; preds = %29
br label %54
54: ; preds = %53
%55 = load i32, ptr %3, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %3, align 4
br label %25, !llvm.loop !6
57: ; preds = %38, %25
%58 = load i32, ptr %3, align 4
%59 = load i32, ptr %4, align 4
%60 = icmp eq i32 %58, %59
br i1 %60, label %61, label %72
61: ; preds = %57
%62 = load i32, ptr %2, align 4
%63 = trunc i32 %62 to i8
%64 = sext i8 %63 to i32
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %64)
%66 = load i32, ptr %2, align 4
%67 = load i32, ptr %4, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [200 x i32], ptr %6, i64 0, i64 %68
store i32 %66, ptr %69, align 4
%70 = load i32, ptr %2, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %2, align 4
br label %72
72: ; preds = %61, %57
%73 = load i32, ptr %4, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %4, align 4
%75 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %7)
br label %16, !llvm.loop !8
76: ; preds = %16
%77 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %4, align 4
store i32 97, ptr %2, align 4
br label %78
78: ; preds = %76
%79 = load i32, ptr %5, align 4
%80 = add nsw i32 %79, -1
store i32 %80, ptr %5, align 4
br label %11, !llvm.loop !9
81: ; preds = %11
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @getchar(...) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxw7jov6_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%c\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 i32, align 4
%6 = alloca [200 x i32], align 16
%7 = alloca i8, align 1
%8 = alloca [200 x i8], align 16
store i32 0, ptr %1, align 4
store i32 97, ptr %2, align 4
store i32 0, ptr %4, align 4
%9 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %5)
%10 = call i32 (...) @getchar()
%11 = load i32, ptr %5, align 4
%12 = icmp sgt i32 %11, 0
br i1 %12, label %.lr.ph3, label %86
.lr.ph3: ; preds = %0
br label %13
13: ; preds = %.lr.ph3, %81
%14 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %7)
%15 = load i8, ptr %7, align 1
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %16, 10
br i1 %17, label %.lr.ph1, label %79
.lr.ph1: ; preds = %13
br label %18
18: ; preds = %.lr.ph1, %72
%19 = load i8, ptr %7, align 1
%20 = load i32, ptr %4, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [200 x i8], ptr %8, i64 0, i64 %21
store i8 %19, ptr %22, align 1
store i32 0, ptr %3, align 4
%23 = load i32, ptr %3, align 4
%24 = load i32, ptr %4, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %18
br label %26
26: ; preds = %.lr.ph, %51
%27 = load i8, ptr %7, align 1
%28 = sext i8 %27 to i32
%29 = load i32, ptr %3, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [200 x i8], ptr %8, i64 0, i64 %30
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %28, %33
br i1 %34, label %35, label %50
35: ; preds = %26
%36 = load i32, ptr %3, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [200 x i32], ptr %6, i64 0, i64 %37
%39 = load i32, ptr %38, align 4
%40 = trunc i32 %39 to i8
%41 = sext i8 %40 to i32
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %41)
%43 = load i32, ptr %3, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [200 x i32], ptr %6, i64 0, i64 %44
%46 = load i32, ptr %45, align 4
%47 = load i32, ptr %4, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [200 x i32], ptr %6, i64 0, i64 %48
store i32 %46, ptr %49, align 4
br label %57
50: ; preds = %26
br label %51
51: ; preds = %50
%52 = load i32, ptr %3, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %3, align 4
%54 = load i32, ptr %3, align 4
%55 = load i32, ptr %4, align 4
%56 = icmp slt i32 %54, %55
br i1 %56, label %26, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %51
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %18
br label %57
57: ; preds = %.loopexit, %35
%58 = load i32, ptr %3, align 4
%59 = load i32, ptr %4, align 4
%60 = icmp eq i32 %58, %59
br i1 %60, label %61, label %72
61: ; preds = %57
%62 = load i32, ptr %2, align 4
%63 = trunc i32 %62 to i8
%64 = sext i8 %63 to i32
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %64)
%66 = load i32, ptr %2, align 4
%67 = load i32, ptr %4, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [200 x i32], ptr %6, i64 0, i64 %68
store i32 %66, ptr %69, align 4
%70 = load i32, ptr %2, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %2, align 4
br label %72
72: ; preds = %61, %57
%73 = load i32, ptr %4, align 4
%74 = add nsw i32 %73, 1
store i32 %74, ptr %4, align 4
%75 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %7)
%76 = load i8, ptr %7, align 1
%77 = sext i8 %76 to i32
%78 = icmp ne i32 %77, 10
br i1 %78, label %18, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %72
br label %79
79: ; preds = %._crit_edge, %13
%80 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %4, align 4
store i32 97, ptr %2, align 4
br label %81
81: ; preds = %79
%82 = load i32, ptr %5, align 4
%83 = add nsw i32 %82, -1
store i32 %83, ptr %5, align 4
%84 = load i32, ptr %5, align 4
%85 = icmp sgt i32 %84, 0
br i1 %85, label %13, label %._crit_edge4, !llvm.loop !9
._crit_edge4: ; preds = %81
br label %86
86: ; preds = %._crit_edge4, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @getchar(...) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpnlrzue64.c'
source_filename = "/tmp/tmpnlrzue64.c"
target datalayout = "e-m:e-p270: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/tmpnlrzue64.c"
target datalayout = "e-m:e-p270: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/tmpqe6u08h1.c'
source_filename = "/tmp/tmpqe6u08h1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mprotect(ptr noundef %0, i64 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
ret i32 -1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqe6u08h1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mprotect(ptr noundef %0, i64 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
ret i32 -1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbnp3ww8i.c'
source_filename = "/tmp/tmpbnp3ww8i.c"
target datalayout = "e-m:e-p270: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.timespec = type { i64, i64 }
@.str = private unnamed_addr constant [10 x i8] c"nanosleep\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @waitatick() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.timespec, align 8
%3 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 1
store i64 0, ptr %3, align 8
%4 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 0
store i64 500000000, ptr %4, align 8
%5 = call i64 @nanosleep(ptr noundef %2, ptr noundef null)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @perror(ptr noundef @.str)
store i32 1, ptr %1, align 4
br label %10
9: ; preds = %0
store i32 0, ptr %1, align 4
br label %10
10: ; preds = %9, %7
%11 = load i32, ptr %1, align 4
ret i32 %11
}
declare i64 @nanosleep(ptr noundef, ptr 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/tmpbnp3ww8i.c"
target datalayout = "e-m:e-p270: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.timespec = type { i64, i64 }
@.str = private unnamed_addr constant [10 x i8] c"nanosleep\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @waitatick() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.timespec, align 8
%3 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 1
store i64 0, ptr %3, align 8
%4 = getelementptr inbounds %struct.timespec, ptr %2, i32 0, i32 0
store i64 500000000, ptr %4, align 8
%5 = call i64 @nanosleep(ptr noundef %2, ptr noundef null)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @perror(ptr noundef @.str)
store i32 1, ptr %1, align 4
br label %10
9: ; preds = %0
store i32 0, ptr %1, align 4
br label %10
10: ; preds = %9, %7
%11 = load i32, ptr %1, align 4
ret i32 %11
}
declare i64 @nanosleep(ptr noundef, ptr 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/tmpdj7cn6lu.c'
source_filename = "/tmp/tmpdj7cn6lu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ResetISR() #0 {
%1 = load volatile i32, ptr inttoptr (i64 3758157192 to ptr), align 4
%2 = and i32 %1, -15728641
%3 = or i32 %2, 3145728
%4 = or i32 %3, 12582912
store volatile i32 %4, ptr inttoptr (i64 3758157192 to ptr), align 4
%5 = call i32 (...) @__iar_program_start()
ret void
}
declare i32 @__iar_program_start(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdj7cn6lu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ResetISR() #0 {
%1 = load volatile i32, ptr inttoptr (i64 3758157192 to ptr), align 4
%2 = and i32 %1, -15728641
%3 = or i32 %2, 3145728
%4 = or i32 %3, 12582912
store volatile i32 %4, ptr inttoptr (i64 3758157192 to ptr), align 4
%5 = call i32 (...) @__iar_program_start()
ret void
}
declare i32 @__iar_program_start(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfdu_8db_.c'
source_filename = "/tmp/tmpfdu_8db_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @udpClose(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @close(i32 noundef %3)
ret i32 %4
}
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfdu_8db_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @udpClose(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @close(i32 noundef %3)
ret i32 %4
}
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp17jk84ob.c'
source_filename = "/tmp/tmp17jk84ob.c"
target datalayout = "e-m:e-p270: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/tmp17jk84ob.c"
target datalayout = "e-m:e-p270: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/tmpa6og7nsz.c'
source_filename = "/tmp/tmpa6og7nsz.c"
target datalayout = "e-m:e-p270: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 @getword(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
br label %6
6: ; preds = %15, %1
%7 = call i32 (...) @getchar()
store i32 %7, ptr %5, align 4
%8 = icmp eq i32 %7, 32
br i1 %8, label %13, label %9
9: ; preds = %6
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr @EOF, align 4
%12 = icmp eq i32 %10, %11
br label %13
13: ; preds = %9, %6
%14 = phi i1 [ true, %6 ], [ %12, %9 ]
br i1 %14, label %15, label %16
15: ; preds = %13
br label %6, !llvm.loop !6
16: ; preds = %13
%17 = load i32, ptr %5, align 4
%18 = trunc i32 %17 to i8
%19 = load ptr, ptr %3, align 8
%20 = load i32, ptr %4, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %4, align 4
%22 = sext i32 %20 to i64
%23 = getelementptr inbounds i8, ptr %19, i64 %22
store i8 %18, ptr %23, align 1
br label %24
24: ; preds = %32, %16
%25 = call i32 (...) @getchar()
store i32 %25, ptr %5, align 4
%26 = icmp ne i32 %25, 32
br i1 %26, label %27, label %30
27: ; preds = %24
%28 = load i32, ptr %5, align 4
%29 = icmp ne i32 %28, 10
br label %30
30: ; preds = %27, %24
%31 = phi i1 [ false, %24 ], [ %29, %27 ]
br i1 %31, label %32, label %40
32: ; preds = %30
%33 = load i32, ptr %5, align 4
%34 = trunc i32 %33 to i8
%35 = load ptr, ptr %3, align 8
%36 = load i32, ptr %4, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %4, align 4
%38 = sext i32 %36 to i64
%39 = getelementptr inbounds i8, ptr %35, i64 %38
store i8 %34, ptr %39, align 1
br label %24, !llvm.loop !8
40: ; preds = %30
%41 = load ptr, ptr %3, align 8
%42 = load i32, ptr %4, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %41, i64 %43
store i8 0, ptr %44, align 1
%45 = load i32, ptr %5, align 4
%46 = icmp eq i32 %45, 10
br i1 %46, label %47, label %48
47: ; preds = %40
store i32 0, ptr %2, align 4
br label %49
48: ; preds = %40
store i32 1, ptr %2, align 4
br label %49
49: ; preds = %48, %47
%50 = load i32, ptr %2, align 4
ret i32 %50
}
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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa6og7nsz.c"
target datalayout = "e-m:e-p270: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 @getword(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
br label %6
6: ; preds = %13, %1
%7 = call i32 (...) @getchar()
store i32 %7, ptr %5, align 4
%8 = icmp eq i32 %7, 32
br i1 %8, label %13, label %9
9: ; preds = %6
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr @EOF, align 4
%12 = icmp eq i32 %10, %11
br label %13
13: ; preds = %9, %6
%14 = phi i1 [ true, %6 ], [ %12, %9 ]
br i1 %14, label %6, label %15, !llvm.loop !6
15: ; preds = %13
%16 = load i32, ptr %5, align 4
%17 = trunc i32 %16 to i8
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %4, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %4, align 4
%21 = sext i32 %19 to i64
%22 = getelementptr inbounds i8, ptr %18, i64 %21
store i8 %17, ptr %22, align 1
br label %23
23: ; preds = %31, %15
%24 = call i32 (...) @getchar()
store i32 %24, ptr %5, align 4
%25 = icmp ne i32 %24, 32
br i1 %25, label %26, label %29
26: ; preds = %23
%27 = load i32, ptr %5, align 4
%28 = icmp ne i32 %27, 10
br label %29
29: ; preds = %26, %23
%30 = phi i1 [ false, %23 ], [ %28, %26 ]
br i1 %30, label %31, label %39
31: ; preds = %29
%32 = load i32, ptr %5, align 4
%33 = trunc i32 %32 to i8
%34 = load ptr, ptr %3, align 8
%35 = load i32, ptr %4, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %4, align 4
%37 = sext i32 %35 to i64
%38 = getelementptr inbounds i8, ptr %34, i64 %37
store i8 %33, ptr %38, align 1
br label %23, !llvm.loop !8
39: ; preds = %29
%40 = load ptr, ptr %3, align 8
%41 = load i32, ptr %4, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %40, i64 %42
store i8 0, ptr %43, align 1
%44 = load i32, ptr %5, align 4
%45 = icmp eq i32 %44, 10
br i1 %45, label %46, label %47
46: ; preds = %39
store i32 0, ptr %2, align 4
br label %48
47: ; preds = %39
store i32 1, ptr %2, align 4
br label %48
48: ; preds = %47, %46
%49 = load i32, ptr %2, align 4
ret i32 %49
}
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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpeq9vgna_.c'
source_filename = "/tmp/tmpeq9vgna_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @quantile_Gamma_Distribution(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
store double 1.000000e+01, ptr %5, align 8
store double 1.000000e+01, ptr %6, align 8
%8 = load double, ptr %5, align 8
%9 = load double, ptr %4, align 8
%10 = call double @Gamma_Distribution(double noundef %8, double noundef %9)
store double %10, ptr %7, align 8
br label %11
11: ; preds = %41, %2
%12 = load double, ptr %7, align 8
%13 = load double, ptr %3, align 8
%14 = fsub double %12, %13
%15 = call i32 @fabs(double noundef %14)
%16 = load double, ptr %3, align 8
%17 = call i32 @fabs(double noundef %16)
%18 = sdiv i32 %15, %17
%19 = sitofp i32 %18 to double
%20 = fcmp ogt double %19, 1.000000e-10
br i1 %20, label %21, label %42
21: ; preds = %11
%22 = load double, ptr %6, align 8
%23 = fdiv double %22, 2.000000e+00
store double %23, ptr %6, align 8
%24 = load double, ptr %7, align 8
%25 = load double, ptr %3, align 8
%26 = fcmp olt double %24, %25
br i1 %26, label %27, label %34
27: ; preds = %21
%28 = load double, ptr %6, align 8
%29 = load double, ptr %5, align 8
%30 = fadd double %29, %28
store double %30, ptr %5, align 8
%31 = load double, ptr %5, align 8
%32 = load double, ptr %4, align 8
%33 = call double @Gamma_Distribution(double noundef %31, double noundef %32)
store double %33, ptr %7, align 8
br label %41
34: ; preds = %21
%35 = load double, ptr %6, align 8
%36 = load double, ptr %5, align 8
%37 = fsub double %36, %35
store double %37, ptr %5, align 8
%38 = load double, ptr %5, align 8
%39 = load double, ptr %4, align 8
%40 = call double @Gamma_Distribution(double noundef %38, double noundef %39)
store double %40, ptr %7, align 8
br label %41
41: ; preds = %34, %27
br label %11, !llvm.loop !6
42: ; preds = %11
%43 = load double, ptr %5, align 8
%44 = fmul double %43, 2.000000e+00
ret double %44
}
declare double @Gamma_Distribution(double noundef, double noundef) #1
declare i32 @fabs(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeq9vgna_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @quantile_Gamma_Distribution(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
store double 1.000000e+01, ptr %5, align 8
store double 1.000000e+01, ptr %6, align 8
%8 = load double, ptr %5, align 8
%9 = load double, ptr %4, align 8
%10 = call double @Gamma_Distribution(double noundef %8, double noundef %9)
store double %10, ptr %7, align 8
%11 = load double, ptr %7, align 8
%12 = load double, ptr %3, align 8
%13 = fsub double %11, %12
%14 = call i32 @fabs(double noundef %13)
%15 = load double, ptr %3, align 8
%16 = call i32 @fabs(double noundef %15)
%17 = sdiv i32 %14, %16
%18 = sitofp i32 %17 to double
%19 = fcmp ogt double %18, 1.000000e-10
br i1 %19, label %.lr.ph, label %50
.lr.ph: ; preds = %2
br label %20
20: ; preds = %.lr.ph, %40
%21 = load double, ptr %6, align 8
%22 = fdiv double %21, 2.000000e+00
store double %22, ptr %6, align 8
%23 = load double, ptr %7, align 8
%24 = load double, ptr %3, align 8
%25 = fcmp olt double %23, %24
br i1 %25, label %26, label %33
26: ; preds = %20
%27 = load double, ptr %6, align 8
%28 = load double, ptr %5, align 8
%29 = fadd double %28, %27
store double %29, ptr %5, align 8
%30 = load double, ptr %5, align 8
%31 = load double, ptr %4, align 8
%32 = call double @Gamma_Distribution(double noundef %30, double noundef %31)
store double %32, ptr %7, align 8
br label %40
33: ; preds = %20
%34 = load double, ptr %6, align 8
%35 = load double, ptr %5, align 8
%36 = fsub double %35, %34
store double %36, ptr %5, align 8
%37 = load double, ptr %5, align 8
%38 = load double, ptr %4, align 8
%39 = call double @Gamma_Distribution(double noundef %37, double noundef %38)
store double %39, ptr %7, align 8
br label %40
40: ; preds = %33, %26
%41 = load double, ptr %7, align 8
%42 = load double, ptr %3, align 8
%43 = fsub double %41, %42
%44 = call i32 @fabs(double noundef %43)
%45 = load double, ptr %3, align 8
%46 = call i32 @fabs(double noundef %45)
%47 = sdiv i32 %44, %46
%48 = sitofp i32 %47 to double
%49 = fcmp ogt double %48, 1.000000e-10
br i1 %49, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %40
br label %50
50: ; preds = %._crit_edge, %2
%51 = load double, ptr %5, align 8
%52 = fmul double %51, 2.000000e+00
ret double %52
}
declare double @Gamma_Distribution(double noundef, double noundef) #1
declare i32 @fabs(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpo7hs4j9w.c'
source_filename = "/tmp/tmpo7hs4j9w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @asinl(x86_fp80 noundef %0) #0 {
%2 = alloca x86_fp80, align 16
store x86_fp80 %0, ptr %2, align 16
%3 = load x86_fp80, ptr %2, align 16
%4 = load x86_fp80, ptr %2, align 16
%5 = load x86_fp80, ptr %2, align 16
%6 = fneg x86_fp80 %4
%7 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %6, x86_fp80 %5, x86_fp80 0xK3FFF8000000000000000)
%8 = fptrunc x86_fp80 %7 to double
%9 = call i32 @sqrtl(double noundef %8)
%10 = call x86_fp80 @__atan2l(x86_fp80 noundef %3, i32 noundef %9)
ret x86_fp80 %10
}
declare x86_fp80 @__atan2l(x86_fp80 noundef, i32 noundef) #1
declare i32 @sqrtl(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.fmuladd.f80(x86_fp80, x86_fp80, x86_fp80) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo7hs4j9w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @asinl(x86_fp80 noundef %0) #0 {
%2 = alloca x86_fp80, align 16
store x86_fp80 %0, ptr %2, align 16
%3 = load x86_fp80, ptr %2, align 16
%4 = load x86_fp80, ptr %2, align 16
%5 = load x86_fp80, ptr %2, align 16
%6 = fneg x86_fp80 %4
%7 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %6, x86_fp80 %5, x86_fp80 0xK3FFF8000000000000000)
%8 = fptrunc x86_fp80 %7 to double
%9 = call i32 @sqrtl(double noundef %8)
%10 = call x86_fp80 @__atan2l(x86_fp80 noundef %3, i32 noundef %9)
ret x86_fp80 %10
}
declare x86_fp80 @__atan2l(x86_fp80 noundef, i32 noundef) #1
declare i32 @sqrtl(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.fmuladd.f80(x86_fp80, x86_fp80, x86_fp80) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptmlq4kmq.c'
source_filename = "/tmp/tmptmlq4kmq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%f\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"a is %f, b is %f\0A\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"Equal\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"Not Equal\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"Greater\00", align 1
@.str.5 = private unnamed_addr constant [14 x i8] c"Less or Equal\00", align 1
@.str.6 = private unnamed_addr constant [17 x i8] c"Greater or Equal\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"Less\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca float, align 4
%9 = alloca double, align 8
%10 = alloca double, align 8
store i32 0, ptr %4, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%11 = call i32 @scanf(ptr noundef @.str, ptr noundef %8)
%12 = load double, ptr %9, align 8
%13 = call i32 @printf(ptr noundef @.str.1, i32 noundef 5, double noundef %12)
%14 = load float, ptr %8, align 4
%15 = fpext float %14 to double
store double %15, ptr %10, align 8
%16 = load double, ptr %10, align 8
%17 = fcmp oeq double 0x41D0280000000000, %16
br i1 %17, label %18, label %20
18: ; preds = %3
%19 = call i32 @puts(ptr noundef @.str.2)
br label %20
20: ; preds = %18, %3
%21 = load float, ptr %8, align 4
%22 = fpext float %21 to double
store double %22, ptr %10, align 8
%23 = load double, ptr %10, align 8
%24 = fcmp une double 0x41D0280000000000, %23
br i1 %24, label %25, label %27
25: ; preds = %20
%26 = call i32 @puts(ptr noundef @.str.3)
br label %27
27: ; preds = %25, %20
%28 = load float, ptr %8, align 4
%29 = fpext float %28 to double
store double %29, ptr %10, align 8
%30 = load double, ptr %10, align 8
%31 = fcmp ogt double 5.000000e+00, %30
br i1 %31, label %32, label %34
32: ; preds = %27
%33 = call i32 @puts(ptr noundef @.str.4)
br label %34
34: ; preds = %32, %27
%35 = load float, ptr %8, align 4
%36 = fpext float %35 to double
store double %36, ptr %10, align 8
%37 = load double, ptr %10, align 8
%38 = fcmp oge double %37, 5.000000e+00
br i1 %38, label %39, label %41
39: ; preds = %34
%40 = call i32 @puts(ptr noundef @.str.5)
br label %41
41: ; preds = %39, %34
%42 = load float, ptr %8, align 4
%43 = fpext float %42 to double
store double %43, ptr %10, align 8
%44 = load double, ptr %10, align 8
%45 = fcmp oge double 5.000000e+00, %44
br i1 %45, label %46, label %48
46: ; preds = %41
%47 = call i32 @puts(ptr noundef @.str.6)
br label %48
48: ; preds = %46, %41
%49 = load float, ptr %8, align 4
%50 = fpext float %49 to double
store double %50, ptr %10, align 8
%51 = load double, ptr %10, align 8
%52 = fcmp ogt double %51, 5.000000e+00
br i1 %52, label %53, label %55
53: ; preds = %48
%54 = call i32 @puts(ptr noundef @.str.7)
br label %55
55: ; preds = %53, %48
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, double noundef) #1
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptmlq4kmq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%f\00", align 1
@.str.1 = private unnamed_addr constant [18 x i8] c"a is %f, b is %f\0A\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"Equal\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"Not Equal\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"Greater\00", align 1
@.str.5 = private unnamed_addr constant [14 x i8] c"Less or Equal\00", align 1
@.str.6 = private unnamed_addr constant [17 x i8] c"Greater or Equal\00", align 1
@.str.7 = private unnamed_addr constant [5 x i8] c"Less\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca float, align 4
%9 = alloca double, align 8
%10 = alloca double, align 8
store i32 0, ptr %4, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%11 = call i32 @scanf(ptr noundef @.str, ptr noundef %8)
%12 = load double, ptr %9, align 8
%13 = call i32 @printf(ptr noundef @.str.1, i32 noundef 5, double noundef %12)
%14 = load float, ptr %8, align 4
%15 = fpext float %14 to double
store double %15, ptr %10, align 8
%16 = load double, ptr %10, align 8
%17 = fcmp oeq double 0x41D0280000000000, %16
br i1 %17, label %18, label %20
18: ; preds = %3
%19 = call i32 @puts(ptr noundef @.str.2)
br label %20
20: ; preds = %18, %3
%21 = load float, ptr %8, align 4
%22 = fpext float %21 to double
store double %22, ptr %10, align 8
%23 = load double, ptr %10, align 8
%24 = fcmp une double 0x41D0280000000000, %23
br i1 %24, label %25, label %27
25: ; preds = %20
%26 = call i32 @puts(ptr noundef @.str.3)
br label %27
27: ; preds = %25, %20
%28 = load float, ptr %8, align 4
%29 = fpext float %28 to double
store double %29, ptr %10, align 8
%30 = load double, ptr %10, align 8
%31 = fcmp ogt double 5.000000e+00, %30
br i1 %31, label %32, label %34
32: ; preds = %27
%33 = call i32 @puts(ptr noundef @.str.4)
br label %34
34: ; preds = %32, %27
%35 = load float, ptr %8, align 4
%36 = fpext float %35 to double
store double %36, ptr %10, align 8
%37 = load double, ptr %10, align 8
%38 = fcmp oge double %37, 5.000000e+00
br i1 %38, label %39, label %41
39: ; preds = %34
%40 = call i32 @puts(ptr noundef @.str.5)
br label %41
41: ; preds = %39, %34
%42 = load float, ptr %8, align 4
%43 = fpext float %42 to double
store double %43, ptr %10, align 8
%44 = load double, ptr %10, align 8
%45 = fcmp oge double 5.000000e+00, %44
br i1 %45, label %46, label %48
46: ; preds = %41
%47 = call i32 @puts(ptr noundef @.str.6)
br label %48
48: ; preds = %46, %41
%49 = load float, ptr %8, align 4
%50 = fpext float %49 to double
store double %50, ptr %10, align 8
%51 = load double, ptr %10, align 8
%52 = fcmp ogt double %51, 5.000000e+00
br i1 %52, label %53, label %55
53: ; preds = %48
%54 = call i32 @puts(ptr noundef @.str.7)
br label %55
55: ; preds = %53, %48
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, double noundef) #1
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpecwwozfy.c'
source_filename = "/tmp/tmpecwwozfy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"%d=========%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"%d %d %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @trap(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %10
10: ; preds = %31, %2
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %4, align 4
%13 = sub nsw i32 %12, 1
%14 = icmp slt i32 %11, %13
br i1 %14, label %15, label %28
15: ; preds = %10
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %6, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i32, ptr %16, i64 %18
%20 = load i32, ptr %19, align 4
%21 = load ptr, ptr %3, align 8
%22 = load i32, ptr %6, align 4
%23 = add nsw i32 %22, 1
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i32, ptr %21, i64 %24
%26 = load i32, ptr %25, align 4
%27 = icmp sle i32 %20, %26
br label %28
28: ; preds = %15, %10
%29 = phi i1 [ false, %10 ], [ %27, %15 ]
br i1 %29, label %30, label %34
30: ; preds = %28
br label %31
31: ; preds = %30
%32 = load i32, ptr %6, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %6, align 4
br label %10, !llvm.loop !6
34: ; preds = %28
%35 = load i32, ptr %4, align 4
%36 = sub nsw i32 %35, 1
store i32 %36, ptr %7, align 4
br label %37
37: ; preds = %57, %34
%38 = load i32, ptr %7, align 4
%39 = load i32, ptr %6, align 4
%40 = icmp sgt i32 %38, %39
br i1 %40, label %41, label %54
41: ; preds = %37
%42 = load ptr, ptr %3, align 8
%43 = load i32, ptr %7, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i32, ptr %42, i64 %44
%46 = load i32, ptr %45, align 4
%47 = load ptr, ptr %3, align 8
%48 = load i32, ptr %7, align 4
%49 = sub nsw i32 %48, 1
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i32, ptr %47, i64 %50
%52 = load i32, ptr %51, align 4
%53 = icmp sle i32 %46, %52
br label %54
54: ; preds = %41, %37
%55 = phi i1 [ false, %37 ], [ %53, %41 ]
br i1 %55, label %56, label %60
56: ; preds = %54
br label %57
57: ; preds = %56
%58 = load i32, ptr %7, align 4
%59 = add nsw i32 %58, -1
store i32 %59, ptr %7, align 4
br label %37, !llvm.loop !8
60: ; preds = %54
%61 = load i32, ptr %6, align 4
%62 = load i32, ptr %7, align 4
%63 = call i32 (ptr, i32, i32, ...) @printf(ptr noundef @.str, i32 noundef %61, i32 noundef %62)
br label %64
64: ; preds = %162, %60
%65 = load i32, ptr %6, align 4
%66 = load i32, ptr %7, align 4
%67 = icmp slt i32 %65, %66
br i1 %67, label %68, label %163
68: ; preds = %64
store i32 0, ptr %8, align 4
%69 = load i32, ptr %6, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %9, align 4
br label %71
71: ; preds = %152, %68
%72 = load i32, ptr %9, align 4
%73 = load i32, ptr %7, align 4
%74 = icmp sle i32 %72, %73
br i1 %74, label %75, label %155
75: ; preds = %71
%76 = load i32, ptr %9, align 4
%77 = load i32, ptr %4, align 4
%78 = sub nsw i32 %77, 1
%79 = icmp eq i32 %76, %78
br i1 %79, label %106, label %80
80: ; preds = %75
%81 = load ptr, ptr %3, align 8
%82 = load i32, ptr %9, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i32, ptr %81, i64 %83
%85 = load i32, ptr %84, align 4
%86 = load ptr, ptr %3, align 8
%87 = load i32, ptr %9, align 4
%88 = add nsw i32 %87, 1
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i32, ptr %86, i64 %89
%91 = load i32, ptr %90, align 4
%92 = icmp sgt i32 %85, %91
br i1 %92, label %93, label %144
93: ; preds = %80
%94 = load ptr, ptr %3, align 8
%95 = load i32, ptr %9, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds i32, ptr %94, i64 %96
%98 = load i32, ptr %97, align 4
%99 = load ptr, ptr %3, align 8
%100 = load i32, ptr %9, align 4
%101 = sub nsw i32 %100, 1
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i32, ptr %99, i64 %102
%104 = load i32, ptr %103, align 4
%105 = icmp sge i32 %98, %104
br i1 %105, label %106, label %144
106: ; preds = %93, %75
%107 = load ptr, ptr %3, align 8
%108 = load i32, ptr %6, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds i32, ptr %107, i64 %109
%111 = load i32, ptr %110, align 4
%112 = load ptr, ptr %3, align 8
%113 = load i32, ptr %9, align 4
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds i32, ptr %112, i64 %114
%116 = load i32, ptr %115, align 4
%117 = icmp sgt i32 %111, %116
br i1 %117, label %118, label %124
118: ; preds = %106
%119 = load ptr, ptr %3, align 8
%120 = load i32, ptr %9, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds i32, ptr %119, i64 %121
%123 = load i32, ptr %122, align 4
br label %130
124: ; preds = %106
%125 = load ptr, ptr %3, align 8
%126 = load i32, ptr %6, align 4
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds i32, ptr %125, i64 %127
%129 = load i32, ptr %128, align 4
br label %130
130: ; preds = %124, %118
%131 = phi i32 [ %123, %118 ], [ %129, %124 ]
%132 = load i32, ptr %9, align 4
%133 = load i32, ptr %6, align 4
%134 = sub nsw i32 %132, %133
%135 = sub nsw i32 %134, 1
%136 = mul nsw i32 %131, %135
%137 = load i32, ptr %8, align 4
%138 = sub nsw i32 %136, %137
store i32 %138, ptr %8, align 4
%139 = load i32, ptr %6, align 4
%140 = load i32, ptr %9, align 4
%141 = load i32, ptr %8, align 4
%142 = call i32 (ptr, i32, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %139, i32 noundef %140, i32 noundef %141)
%143 = load i32, ptr %9, align 4
store i32 %143, ptr %6, align 4
br label %155
144: ; preds = %93, %80
%145 = load ptr, ptr %3, align 8
%146 = load i32, ptr %9, align 4
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds i32, ptr %145, i64 %147
%149 = load i32, ptr %148, align 4
%150 = load i32, ptr %8, align 4
%151 = add nsw i32 %150, %149
store i32 %151, ptr %8, align 4
br label %152
152: ; preds = %144
%153 = load i32, ptr %9, align 4
%154 = add nsw i32 %153, 1
store i32 %154, ptr %9, align 4
br label %71, !llvm.loop !9
155: ; preds = %130, %71
%156 = load i32, ptr %8, align 4
%157 = icmp sgt i32 %156, 0
br i1 %157, label %158, label %162
158: ; preds = %155
%159 = load i32, ptr %8, align 4
%160 = load i32, ptr %5, align 4
%161 = add nsw i32 %160, %159
store i32 %161, ptr %5, align 4
br label %162
162: ; preds = %158, %155
br label %64, !llvm.loop !10
163: ; preds = %64
%164 = load i32, ptr %5, align 4
ret i32 %164
}
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpecwwozfy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"%d=========%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"%d %d %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @trap(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %10
10: ; preds = %31, %2
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %4, align 4
%13 = sub nsw i32 %12, 1
%14 = icmp slt i32 %11, %13
br i1 %14, label %15, label %28
15: ; preds = %10
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %6, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i32, ptr %16, i64 %18
%20 = load i32, ptr %19, align 4
%21 = load ptr, ptr %3, align 8
%22 = load i32, ptr %6, align 4
%23 = add nsw i32 %22, 1
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i32, ptr %21, i64 %24
%26 = load i32, ptr %25, align 4
%27 = icmp sle i32 %20, %26
br label %28
28: ; preds = %15, %10
%29 = phi i1 [ false, %10 ], [ %27, %15 ]
br i1 %29, label %30, label %34
30: ; preds = %28
br label %31
31: ; preds = %30
%32 = load i32, ptr %6, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %6, align 4
br label %10, !llvm.loop !6
34: ; preds = %28
%35 = load i32, ptr %4, align 4
%36 = sub nsw i32 %35, 1
store i32 %36, ptr %7, align 4
br label %37
37: ; preds = %57, %34
%38 = load i32, ptr %7, align 4
%39 = load i32, ptr %6, align 4
%40 = icmp sgt i32 %38, %39
br i1 %40, label %41, label %54
41: ; preds = %37
%42 = load ptr, ptr %3, align 8
%43 = load i32, ptr %7, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i32, ptr %42, i64 %44
%46 = load i32, ptr %45, align 4
%47 = load ptr, ptr %3, align 8
%48 = load i32, ptr %7, align 4
%49 = sub nsw i32 %48, 1
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i32, ptr %47, i64 %50
%52 = load i32, ptr %51, align 4
%53 = icmp sle i32 %46, %52
br label %54
54: ; preds = %41, %37
%55 = phi i1 [ false, %37 ], [ %53, %41 ]
br i1 %55, label %56, label %60
56: ; preds = %54
br label %57
57: ; preds = %56
%58 = load i32, ptr %7, align 4
%59 = add nsw i32 %58, -1
store i32 %59, ptr %7, align 4
br label %37, !llvm.loop !8
60: ; preds = %54
%61 = load i32, ptr %6, align 4
%62 = load i32, ptr %7, align 4
%63 = call i32 (ptr, i32, i32, ...) @printf(ptr noundef @.str, i32 noundef %61, i32 noundef %62)
%64 = load i32, ptr %6, align 4
%65 = load i32, ptr %7, align 4
%66 = icmp slt i32 %64, %65
br i1 %66, label %.lr.ph1, label %167
.lr.ph1: ; preds = %60
br label %67
67: ; preds = %.lr.ph1, %163
store i32 0, ptr %8, align 4
%68 = load i32, ptr %6, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %9, align 4
%70 = load i32, ptr %9, align 4
%71 = load i32, ptr %7, align 4
%72 = icmp sle i32 %70, %71
br i1 %72, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %67
br label %73
73: ; preds = %.lr.ph, %150
%74 = load i32, ptr %9, align 4
%75 = load i32, ptr %4, align 4
%76 = sub nsw i32 %75, 1
%77 = icmp eq i32 %74, %76
br i1 %77, label %104, label %78
78: ; preds = %73
%79 = load ptr, ptr %3, align 8
%80 = load i32, ptr %9, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds i32, ptr %79, i64 %81
%83 = load i32, ptr %82, align 4
%84 = load ptr, ptr %3, align 8
%85 = load i32, ptr %9, align 4
%86 = add nsw i32 %85, 1
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i32, ptr %84, i64 %87
%89 = load i32, ptr %88, align 4
%90 = icmp sgt i32 %83, %89
br i1 %90, label %91, label %142
91: ; preds = %78
%92 = load ptr, ptr %3, align 8
%93 = load i32, ptr %9, align 4
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds i32, ptr %92, i64 %94
%96 = load i32, ptr %95, align 4
%97 = load ptr, ptr %3, align 8
%98 = load i32, ptr %9, align 4
%99 = sub nsw i32 %98, 1
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i32, ptr %97, i64 %100
%102 = load i32, ptr %101, align 4
%103 = icmp sge i32 %96, %102
br i1 %103, label %104, label %142
104: ; preds = %91, %73
%105 = load ptr, ptr %3, align 8
%106 = load i32, ptr %6, align 4
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds i32, ptr %105, i64 %107
%109 = load i32, ptr %108, align 4
%110 = load ptr, ptr %3, align 8
%111 = load i32, ptr %9, align 4
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds i32, ptr %110, i64 %112
%114 = load i32, ptr %113, align 4
%115 = icmp sgt i32 %109, %114
br i1 %115, label %116, label %122
116: ; preds = %104
%117 = load ptr, ptr %3, align 8
%118 = load i32, ptr %9, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds i32, ptr %117, i64 %119
%121 = load i32, ptr %120, align 4
br label %128
122: ; preds = %104
%123 = load ptr, ptr %3, align 8
%124 = load i32, ptr %6, align 4
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds i32, ptr %123, i64 %125
%127 = load i32, ptr %126, align 4
br label %128
128: ; preds = %122, %116
%129 = phi i32 [ %121, %116 ], [ %127, %122 ]
%130 = load i32, ptr %9, align 4
%131 = load i32, ptr %6, align 4
%132 = sub nsw i32 %130, %131
%133 = sub nsw i32 %132, 1
%134 = mul nsw i32 %129, %133
%135 = load i32, ptr %8, align 4
%136 = sub nsw i32 %134, %135
store i32 %136, ptr %8, align 4
%137 = load i32, ptr %6, align 4
%138 = load i32, ptr %9, align 4
%139 = load i32, ptr %8, align 4
%140 = call i32 (ptr, i32, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %137, i32 noundef %138, i32 noundef %139)
%141 = load i32, ptr %9, align 4
store i32 %141, ptr %6, align 4
br label %156
142: ; preds = %91, %78
%143 = load ptr, ptr %3, align 8
%144 = load i32, ptr %9, align 4
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds i32, ptr %143, i64 %145
%147 = load i32, ptr %146, align 4
%148 = load i32, ptr %8, align 4
%149 = add nsw i32 %148, %147
store i32 %149, ptr %8, align 4
br label %150
150: ; preds = %142
%151 = load i32, ptr %9, align 4
%152 = add nsw i32 %151, 1
store i32 %152, ptr %9, align 4
%153 = load i32, ptr %9, align 4
%154 = load i32, ptr %7, align 4
%155 = icmp sle i32 %153, %154
br i1 %155, label %73, label %..loopexit_crit_edge, !llvm.loop !9
..loopexit_crit_edge: ; preds = %150
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %67
br label %156
156: ; preds = %.loopexit, %128
%157 = load i32, ptr %8, align 4
%158 = icmp sgt i32 %157, 0
br i1 %158, label %159, label %163
159: ; preds = %156
%160 = load i32, ptr %8, align 4
%161 = load i32, ptr %5, align 4
%162 = add nsw i32 %161, %160
store i32 %162, ptr %5, align 4
br label %163
163: ; preds = %159, %156
%164 = load i32, ptr %6, align 4
%165 = load i32, ptr %7, align 4
%166 = icmp slt i32 %164, %165
br i1 %166, label %67, label %._crit_edge, !llvm.loop !10
._crit_edge: ; preds = %163
br label %167
167: ; preds = %._crit_edge, %60
%168 = load i32, ptr %5, align 4
ret i32 %168
}
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpxpque9p4.c'
source_filename = "/tmp/tmpxpque9p4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [30 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 21, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 1, ptr %3, align 4
br label %6
6: ; preds = %13, %0
%7 = load i32, ptr %3, align 4
%8 = icmp sle i32 %7, 21
br i1 %8, label %9, label %16
9: ; preds = %6
%10 = load i32, ptr %3, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [30 x i32], ptr %2, i64 0, i64 %11
store i32 1, ptr %12, align 4
br label %13
13: ; preds = %9
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %3, align 4
br label %6, !llvm.loop !6
16: ; preds = %6
br label %17
17: ; preds = %46, %16
%18 = load i32, ptr %4, align 4
%19 = icmp ne i32 %18, 1
br i1 %19, label %20, label %47
20: ; preds = %17
store i32 1, ptr %3, align 4
br label %21
21: ; preds = %43, %20
%22 = load i32, ptr %3, align 4
%23 = icmp sle i32 %22, 21
br i1 %23, label %24, label %46
24: ; preds = %21
%25 = load i32, ptr %3, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [30 x i32], ptr %2, i64 0, i64 %26
%28 = load i32, ptr %27, align 4
%29 = icmp eq i32 %28, 1
br i1 %29, label %30, label %33
30: ; preds = %24
%31 = load i32, ptr %5, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %5, align 4
br label %33
33: ; preds = %30, %24
%34 = load i32, ptr %5, align 4
%35 = icmp eq i32 %34, 17
br i1 %35, label %36, label %42
36: ; preds = %33
store i32 0, ptr %5, align 4
%37 = load i32, ptr %3, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [30 x i32], ptr %2, i64 0, i64 %38
store i32 0, ptr %39, align 4
%40 = load i32, ptr %4, align 4
%41 = add nsw i32 %40, -1
store i32 %41, ptr %4, align 4
br label %42
42: ; preds = %36, %33
br label %43
43: ; preds = %42
%44 = load i32, ptr %3, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %3, align 4
br label %21, !llvm.loop !8
46: ; preds = %21
br label %17, !llvm.loop !9
47: ; preds = %17
store i32 1, ptr %3, align 4
br label %48
48: ; preds = %61, %47
%49 = load i32, ptr %3, align 4
%50 = icmp sle i32 %49, 21
br i1 %50, label %51, label %64
51: ; preds = %48
%52 = load i32, ptr %3, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [30 x i32], ptr %2, i64 0, i64 %53
%55 = load i32, ptr %54, align 4
%56 = icmp ne i32 %55, 0
br i1 %56, label %57, label %60
57: ; preds = %51
%58 = load i32, ptr %3, align 4
%59 = call i32 @printf(ptr noundef @.str, i32 noundef %58)
br label %60
60: ; preds = %57, %51
br label %61
61: ; preds = %60
%62 = load i32, ptr %3, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %3, align 4
br label %48, !llvm.loop !10
64: ; preds = %48
ret i32 0
}
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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxpque9p4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [30 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 21, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 1, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = icmp sle i32 %6, 21
br i1 %7, label %.lr.ph, label %17
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %12
%9 = load i32, ptr %3, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [30 x i32], ptr %2, i64 0, i64 %10
store i32 1, ptr %11, align 4
br label %12
12: ; preds = %8
%13 = load i32, ptr %3, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %3, align 4
%15 = load i32, ptr %3, align 4
%16 = icmp sle i32 %15, 21
br i1 %16, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %17
17: ; preds = %._crit_edge, %0
%18 = load i32, ptr %4, align 4
%19 = icmp ne i32 %18, 1
br i1 %19, label %.lr.ph5, label %50
.lr.ph5: ; preds = %17
br label %20
20: ; preds = %.lr.ph5, %47
store i32 1, ptr %3, align 4
%21 = load i32, ptr %3, align 4
%22 = icmp sle i32 %21, 21
br i1 %22, label %.lr.ph2, label %47
.lr.ph2: ; preds = %20
br label %23
23: ; preds = %.lr.ph2, %42
%24 = load i32, ptr %3, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [30 x i32], ptr %2, i64 0, i64 %25
%27 = load i32, ptr %26, align 4
%28 = icmp eq i32 %27, 1
br i1 %28, label %29, label %32
29: ; preds = %23
%30 = load i32, ptr %5, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %5, align 4
br label %32
32: ; preds = %29, %23
%33 = load i32, ptr %5, align 4
%34 = icmp eq i32 %33, 17
br i1 %34, label %35, label %41
35: ; preds = %32
store i32 0, ptr %5, align 4
%36 = load i32, ptr %3, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [30 x i32], ptr %2, i64 0, i64 %37
store i32 0, ptr %38, align 4
%39 = load i32, ptr %4, align 4
%40 = add nsw i32 %39, -1
store i32 %40, ptr %4, align 4
br label %41
41: ; preds = %35, %32
br label %42
42: ; preds = %41
%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 sle i32 %45, 21
br i1 %46, label %23, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %42
br label %47
47: ; preds = %._crit_edge3, %20
%48 = load i32, ptr %4, align 4
%49 = icmp ne i32 %48, 1
br i1 %49, label %20, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %47
br label %50
50: ; preds = %._crit_edge6, %17
store i32 1, ptr %3, align 4
%51 = load i32, ptr %3, align 4
%52 = icmp sle i32 %51, 21
br i1 %52, label %.lr.ph8, label %68
.lr.ph8: ; preds = %50
br label %53
53: ; preds = %.lr.ph8, %63
%54 = load i32, ptr %3, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [30 x i32], ptr %2, i64 0, i64 %55
%57 = load i32, ptr %56, align 4
%58 = icmp ne i32 %57, 0
br i1 %58, label %59, label %62
59: ; preds = %53
%60 = load i32, ptr %3, align 4
%61 = call i32 @printf(ptr noundef @.str, i32 noundef %60)
br label %62
62: ; preds = %59, %53
br label %63
63: ; preds = %62
%64 = load i32, ptr %3, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %3, align 4
%66 = load i32, ptr %3, align 4
%67 = icmp sle i32 %66, 21
br i1 %67, label %53, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %63
br label %68
68: ; preds = %._crit_edge9, %50
ret i32 0
}
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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmprpidmb5f.c'
source_filename = "/tmp/tmprpidmb5f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%4 = call i32 (...) @__VERIFIER_nondet_uint()
store i32 %4, ptr %3, align 4
br label %5
5: ; preds = %18, %0
%6 = load i32, ptr %2, align 4
%7 = icmp ult i32 %6, 99
br i1 %7, label %8, label %19
8: ; preds = %5
%9 = load i32, ptr %3, align 4
%10 = urem i32 %9, 2
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %8
%13 = load i32, ptr %2, align 4
%14 = add i32 %13, 1
store i32 %14, ptr %2, align 4
br label %18
15: ; preds = %8
%16 = load i32, ptr %2, align 4
%17 = add i32 %16, 2
store i32 %17, ptr %2, align 4
br label %18
18: ; preds = %15, %12
br label %5, !llvm.loop !6
19: ; preds = %5
%20 = load i32, ptr %2, align 4
%21 = urem i32 %20, 2
%22 = load i32, ptr %3, align 4
%23 = urem i32 %22, 2
%24 = icmp eq i32 %21, %23
%25 = zext i1 %24 to i32
%26 = call i32 @__VERIFIER_assert(i32 noundef %25)
%27 = load i32, ptr %1, align 4
ret i32 %27
}
declare i32 @__VERIFIER_nondet_uint(...) #1
declare i32 @__VERIFIER_assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprpidmb5f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%4 = call i32 (...) @__VERIFIER_nondet_uint()
store i32 %4, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp ult i32 %5, 99
br i1 %6, label %.lr.ph, label %20
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %17
%8 = load i32, ptr %3, align 4
%9 = urem i32 %8, 2
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %7
%12 = load i32, ptr %2, align 4
%13 = add i32 %12, 1
store i32 %13, ptr %2, align 4
br label %17
14: ; preds = %7
%15 = load i32, ptr %2, align 4
%16 = add i32 %15, 2
store i32 %16, ptr %2, align 4
br label %17
17: ; preds = %14, %11
%18 = load i32, ptr %2, align 4
%19 = icmp ult i32 %18, 99
br i1 %19, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %20
20: ; preds = %._crit_edge, %0
%21 = load i32, ptr %2, align 4
%22 = urem i32 %21, 2
%23 = load i32, ptr %3, align 4
%24 = urem i32 %23, 2
%25 = icmp eq i32 %22, %24
%26 = zext i1 %25 to i32
%27 = call i32 @__VERIFIER_assert(i32 noundef %26)
%28 = load i32, ptr %1, align 4
ret i32 %28
}
declare i32 @__VERIFIER_nondet_uint(...) #1
declare i32 @__VERIFIER_assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp3fhh_9or.c'
source_filename = "/tmp/tmp3fhh_9or.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"\0A Rec Count at rank %2d is %d.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printRecCount(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 1, ptr %5, align 4
br label %6
6: ; preds = %19, %2
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp sle i32 %7, %8
br i1 %9, label %10, label %22
10: ; preds = %6
%11 = load i32, ptr %5, align 4
%12 = add nsw i32 %11, 1
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %5, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i32, ptr %13, i64 %15
%17 = load i32, ptr %16, align 4
%18 = call i32 @printf(ptr noundef @.str, i32 noundef %12, i32 noundef %17)
br label %19
19: ; preds = %10
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %5, align 4
br label %6, !llvm.loop !6
22: ; preds = %6
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3fhh_9or.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"\0A Rec Count at rank %2d is %d.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printRecCount(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 1, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp sle i32 %6, %7
br i1 %8, label %.lr.ph, label %24
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %18
%10 = load i32, ptr %5, align 4
%11 = add nsw i32 %10, 1
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %5, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i32, ptr %12, i64 %14
%16 = load i32, ptr %15, align 4
%17 = call i32 @printf(ptr noundef @.str, i32 noundef %11, i32 noundef %16)
br label %18
18: ; preds = %9
%19 = load i32, ptr %5, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %5, align 4
%21 = load i32, ptr %5, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp sle i32 %21, %22
br i1 %23, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %24
24: ; preds = %._crit_edge, %2
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpobo050fw.c'
source_filename = "/tmp/tmpobo050fw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @solcon_length_current_dobldobl_solution_string(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
%8 = load ptr, ptr %4, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @_ada_use_c2phc(i32 noundef 526, ptr noundef %7, ptr noundef %8, ptr noundef %9)
store i32 %10, ptr %5, align 4
%11 = load i32, ptr %5, align 4
ret i32 %11
}
declare i32 @_ada_use_c2phc(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpobo050fw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @solcon_length_current_dobldobl_solution_string(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
%8 = load ptr, ptr %4, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @_ada_use_c2phc(i32 noundef 526, ptr noundef %7, ptr noundef %8, ptr noundef %9)
store i32 %10, ptr %5, align 4
%11 = load i32, ptr %5, align 4
ret i32 %11
}
declare i32 @_ada_use_c2phc(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8k9ni0sw.c'
source_filename = "/tmp/tmp8k9ni0sw.c"
target datalayout = "e-m:e-p270: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.student = type { i64, [20 x i8], i8, i32 }
@__const.main.stu = private unnamed_addr constant [3 x %struct.student] [%struct.student { i64 10101, [20 x i8] c"Li Lin\00\00\00\00\00\00\00\00\00\00\00\00\00\00", i8 77, i32 18 }, %struct.student { i64 10102, [20 x i8] c"Zhang Fun\00\00\00\00\00\00\00\00\00\00\00", i8 77, i32 19 }, %struct.student { i64 10104, [20 x i8] c"Wang Min\00\00\00\00\00\00\00\00\00\00\00\00", i8 70, i32 20 }], align 16
@.str = private unnamed_addr constant [39 x i8] c"No. Name Sex age\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"%5d %-20s %2c %4d\0A\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"\0AAddress type change:\0A\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"name = %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [3 x %struct.student], align 16
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.stu, i64 120, i1 false)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = getelementptr inbounds [3 x %struct.student], ptr %2, i64 0, i64 0
store ptr %6, ptr %3, align 8
br label %7
7: ; preds = %27, %0
%8 = load ptr, ptr %3, align 8
%9 = getelementptr inbounds [3 x %struct.student], ptr %2, i64 0, i64 0
%10 = getelementptr inbounds %struct.student, ptr %9, i64 3
%11 = icmp ult ptr %8, %10
br i1 %11, label %12, label %30
12: ; preds = %7
%13 = load ptr, ptr %3, align 8
%14 = getelementptr inbounds %struct.student, ptr %13, i32 0, i32 0
%15 = load i64, ptr %14, align 8
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds %struct.student, ptr %16, i32 0, i32 1
%18 = getelementptr inbounds [20 x i8], ptr %17, i64 0, i64 0
%19 = load ptr, ptr %3, align 8
%20 = getelementptr inbounds %struct.student, ptr %19, i32 0, i32 2
%21 = load i8, ptr %20, align 4
%22 = sext i8 %21 to i32
%23 = load ptr, ptr %3, align 8
%24 = getelementptr inbounds %struct.student, ptr %23, i32 0, i32 3
%25 = load i32, ptr %24, align 8
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %15, ptr noundef %18, i32 noundef %22, i32 noundef %25)
br label %27
27: ; preds = %12
%28 = load ptr, ptr %3, align 8
%29 = getelementptr inbounds %struct.student, ptr %28, i32 1
store ptr %29, ptr %3, align 8
br label %7, !llvm.loop !6
30: ; preds = %7
%31 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%32 = getelementptr inbounds [3 x %struct.student], ptr %2, i64 0, i64 0
%33 = getelementptr inbounds %struct.student, ptr %32, i32 0, i32 1
%34 = getelementptr inbounds [20 x i8], ptr %33, i64 0, i64 0
store ptr %34, ptr %4, align 8
store i32 0, ptr %1, align 4
br label %35
35: ; preds = %42, %30
%36 = load i32, ptr %1, align 4
%37 = icmp slt i32 %36, 3
br i1 %37, label %38, label %45
38: ; preds = %35
%39 = load ptr, ptr %4, align 8
%40 = getelementptr inbounds %struct.student, ptr %39, i32 1
store ptr %40, ptr %4, align 8
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %39)
br label %42
42: ; preds = %38
%43 = load i32, ptr %1, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %1, align 4
br label %35, !llvm.loop !8
45: ; preds = %35
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #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}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8k9ni0sw.c"
target datalayout = "e-m:e-p270: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.student = type { i64, [20 x i8], i8, i32 }
@__const.main.stu = private unnamed_addr constant [3 x %struct.student] [%struct.student { i64 10101, [20 x i8] c"Li Lin\00\00\00\00\00\00\00\00\00\00\00\00\00\00", i8 77, i32 18 }, %struct.student { i64 10102, [20 x i8] c"Zhang Fun\00\00\00\00\00\00\00\00\00\00\00", i8 77, i32 19 }, %struct.student { i64 10104, [20 x i8] c"Wang Min\00\00\00\00\00\00\00\00\00\00\00\00", i8 70, i32 20 }], align 16
@.str = private unnamed_addr constant [39 x i8] c"No. Name Sex age\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"%5d %-20s %2c %4d\0A\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"\0AAddress type change:\0A\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"name = %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [3 x %struct.student], align 16
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.stu, i64 120, i1 false)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = getelementptr inbounds [3 x %struct.student], ptr %2, i64 0, i64 0
store ptr %6, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = getelementptr inbounds [3 x %struct.student], ptr %2, i64 0, i64 0
%9 = getelementptr inbounds %struct.student, ptr %8, i64 3
%10 = icmp ult ptr %7, %9
br i1 %10, label %.lr.ph, label %31
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %26
%12 = load ptr, ptr %3, align 8
%13 = getelementptr inbounds %struct.student, ptr %12, i32 0, i32 0
%14 = load i64, ptr %13, align 8
%15 = load ptr, ptr %3, align 8
%16 = getelementptr inbounds %struct.student, ptr %15, i32 0, i32 1
%17 = getelementptr inbounds [20 x i8], ptr %16, i64 0, i64 0
%18 = load ptr, ptr %3, align 8
%19 = getelementptr inbounds %struct.student, ptr %18, i32 0, i32 2
%20 = load i8, ptr %19, align 4
%21 = sext i8 %20 to i32
%22 = load ptr, ptr %3, align 8
%23 = getelementptr inbounds %struct.student, ptr %22, i32 0, i32 3
%24 = load i32, ptr %23, align 8
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %14, ptr noundef %17, i32 noundef %21, i32 noundef %24)
br label %26
26: ; preds = %11
%27 = load ptr, ptr %3, align 8
%28 = getelementptr inbounds %struct.student, ptr %27, i32 1
store ptr %28, ptr %3, align 8
%29 = load ptr, ptr %3, align 8
%30 = icmp ult ptr %29, %9
br i1 %30, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %31
31: ; preds = %._crit_edge, %0
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%33 = getelementptr inbounds [3 x %struct.student], ptr %2, i64 0, i64 0
%34 = getelementptr inbounds %struct.student, ptr %33, i32 0, i32 1
%35 = getelementptr inbounds [20 x i8], ptr %34, i64 0, i64 0
store ptr %35, ptr %4, align 8
store i32 0, ptr %1, align 4
%36 = load i32, ptr %1, align 4
%37 = icmp slt i32 %36, 3
br i1 %37, label %.lr.ph2, label %47
.lr.ph2: ; preds = %31
br label %38
38: ; preds = %.lr.ph2, %42
%39 = load ptr, ptr %4, align 8
%40 = getelementptr inbounds %struct.student, ptr %39, i32 1
store ptr %40, ptr %4, align 8
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %39)
br label %42
42: ; preds = %38
%43 = load i32, ptr %1, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %1, align 4
%45 = load i32, ptr %1, align 4
%46 = icmp slt i32 %45, 3
br i1 %46, label %38, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %42
br label %47
47: ; preds = %._crit_edge3, %31
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #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}
|
; ModuleID = '/tmp/tmpvm3g38gt.c'
source_filename = "/tmp/tmpvm3g38gt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [42 x i8] c"\0ATesting check_configuration_permissions\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"/etc/passwd\00", align 1
@.str.2 = private unnamed_addr constant [46 x i8] c"FAIL: failed permission check on /etc/passwd\0A\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"/tmp/test-container-executor\00", align 1
@.str.4 = private unnamed_addr constant [37 x i8] c"FAIL: failed permission check on %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_check_configuration_permissions() #0 {
%1 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%2 = call i64 @check_configuration_permissions(ptr noundef @.str.1)
%3 = icmp ne i64 %2, 0
br i1 %3, label %4, label %7
4: ; preds = %0
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%6 = call i32 @exit(i32 noundef 1) #3
unreachable
7: ; preds = %0
%8 = call i64 @check_configuration_permissions(ptr noundef @.str.3)
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %7
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef @.str.3)
%12 = call i32 @exit(i32 noundef 1) #3
unreachable
13: ; preds = %7
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i64 @check_configuration_permissions(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/tmpvm3g38gt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [42 x i8] c"\0ATesting check_configuration_permissions\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"/etc/passwd\00", align 1
@.str.2 = private unnamed_addr constant [46 x i8] c"FAIL: failed permission check on /etc/passwd\0A\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"/tmp/test-container-executor\00", align 1
@.str.4 = private unnamed_addr constant [37 x i8] c"FAIL: failed permission check on %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_check_configuration_permissions() #0 {
%1 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%2 = call i64 @check_configuration_permissions(ptr noundef @.str.1)
%3 = icmp ne i64 %2, 0
br i1 %3, label %4, label %7
4: ; preds = %0
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%6 = call i32 @exit(i32 noundef 1) #3
unreachable
7: ; preds = %0
%8 = call i64 @check_configuration_permissions(ptr noundef @.str.3)
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %7
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef @.str.3)
%12 = call i32 @exit(i32 noundef 1) #3
unreachable
13: ; preds = %7
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i64 @check_configuration_permissions(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/tmpuw3prwpe.c'
source_filename = "/tmp/tmpuw3prwpe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"sub\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cgdecpl(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @cgincloc(ptr noundef @.str, i32 noundef %5, i32 noundef %6)
ret void
}
declare i32 @cgincloc(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/tmpuw3prwpe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"sub\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cgdecpl(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @cgincloc(ptr noundef @.str, i32 noundef %5, i32 noundef %6)
ret void
}
declare i32 @cgincloc(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/tmpcw8peipx.c'
source_filename = "/tmp/tmpcw8peipx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"%s%s%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"\1B[31m\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"\1B[0m\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @redm(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1, ptr noundef %3, ptr noundef @.str.2)
ret void
}
declare i32 @printf(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/tmpcw8peipx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"%s%s%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"\1B[31m\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"\1B[0m\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @redm(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1, ptr noundef %3, ptr noundef @.str.2)
ret void
}
declare i32 @printf(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/tmpt7pih49_.c'
source_filename = "/tmp/tmpt7pih49_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_2__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_XGravityEvent_serial(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.TYPE_2__, ptr %6, i32 0, i32 0
store i64 %5, ptr %7, align 8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt7pih49_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_2__ = type { i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_XGravityEvent_serial(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.TYPE_2__, ptr %6, i32 0, i32 0
store i64 %5, ptr %7, align 8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1wyqrzdh.c'
source_filename = "/tmp/tmp1wyqrzdh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_int(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 2
br i1 %8, label %9, label %10
9: ; preds = %2
store i32 -1, ptr %3, align 4
br label %19
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 1
%13 = load ptr, ptr %12, align 8
%14 = call i32 @sscanf(ptr noundef %13, ptr noundef @.str, ptr noundef %6)
%15 = icmp eq i32 %14, 1
br i1 %15, label %16, label %18
16: ; preds = %10
%17 = load i32, ptr %6, align 4
store i32 %17, ptr %3, align 4
br label %19
18: ; preds = %10
store i32 -1, ptr %3, align 4
br label %19
19: ; preds = %18, %16, %9
%20 = load i32, ptr %3, align 4
ret i32 %20
}
declare i32 @sscanf(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/tmp1wyqrzdh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_int(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 2
br i1 %8, label %9, label %10
9: ; preds = %2
store i32 -1, ptr %3, align 4
br label %19
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 1
%13 = load ptr, ptr %12, align 8
%14 = call i32 @sscanf(ptr noundef %13, ptr noundef @.str, ptr noundef %6)
%15 = icmp eq i32 %14, 1
br i1 %15, label %16, label %18
16: ; preds = %10
%17 = load i32, ptr %6, align 4
store i32 %17, ptr %3, align 4
br label %19
18: ; preds = %10
store i32 -1, ptr %3, align 4
br label %19
19: ; preds = %18, %16, %9
%20 = load i32, ptr %3, align 4
ret i32 %20
}
declare i32 @sscanf(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/tmpae2utt7m.c'
source_filename = "/tmp/tmpae2utt7m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @binomial(i64 noundef %0, ptr noundef %1, i8 noundef zeroext %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i8, align 1
%7 = alloca i32, align 4
store i64 %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i8 %2, ptr %6, align 1
store i32 0, ptr %7, align 4
br label %8
8: ; preds = %50, %3
%9 = load i32, ptr %7, align 4
%10 = sext i32 %9 to i64
%11 = load i64, ptr %4, align 8
%12 = icmp ult i64 %10, %11
br i1 %12, label %13, label %53
13: ; preds = %8
%14 = load ptr, ptr %5, align 8
%15 = load i32, ptr %7, align 4
%16 = add nsw i32 %15, 1
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %14, i64 %17
%19 = load i8, ptr %18, align 1
%20 = zext i8 %19 to i32
%21 = load ptr, ptr %5, 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 = zext i8 %25 to i32
%27 = add nsw i32 %26, %20
%28 = trunc i32 %27 to i8
store i8 %28, ptr %24, align 1
%29 = load i8, ptr %6, align 1
%30 = zext i8 %29 to i32
%31 = load ptr, ptr %5, align 8
%32 = load i32, ptr %7, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %31, i64 %33
%35 = load i8, ptr %34, align 1
%36 = zext i8 %35 to i32
%37 = icmp sle i32 %30, %36
br i1 %37, label %38, label %49
38: ; preds = %13
%39 = load i8, ptr %6, align 1
%40 = zext 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 = zext i8 %45 to i32
%47 = sub nsw i32 %46, %40
%48 = trunc i32 %47 to i8
store i8 %48, ptr %44, align 1
br label %49
49: ; preds = %38, %13
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
br label %8, !llvm.loop !6
53: ; preds = %8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpae2utt7m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @binomial(i64 noundef %0, ptr noundef %1, i8 noundef zeroext %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i8, align 1
%7 = alloca i32, align 4
store i64 %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i8 %2, ptr %6, align 1
store i32 0, ptr %7, align 4
%8 = load i32, ptr %7, align 4
%9 = sext i32 %8 to i64
%10 = load i64, ptr %4, align 8
%11 = icmp ult i64 %9, %10
br i1 %11, label %.lr.ph, label %56
.lr.ph: ; preds = %3
br label %12
12: ; preds = %.lr.ph, %49
%13 = load ptr, ptr %5, align 8
%14 = load i32, ptr %7, align 4
%15 = add nsw i32 %14, 1
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %13, i64 %16
%18 = load i8, ptr %17, align 1
%19 = zext i8 %18 to i32
%20 = load ptr, ptr %5, 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 = zext i8 %24 to i32
%26 = add nsw i32 %25, %19
%27 = trunc i32 %26 to i8
store i8 %27, ptr %23, align 1
%28 = load i8, ptr %6, align 1
%29 = zext i8 %28 to i32
%30 = load ptr, ptr %5, align 8
%31 = load i32, ptr %7, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %30, i64 %32
%34 = load i8, ptr %33, align 1
%35 = zext i8 %34 to i32
%36 = icmp sle i32 %29, %35
br i1 %36, label %37, label %48
37: ; preds = %12
%38 = load i8, ptr %6, align 1
%39 = zext 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 = zext i8 %44 to i32
%46 = sub nsw i32 %45, %39
%47 = trunc i32 %46 to i8
store i8 %47, ptr %43, align 1
br label %48
48: ; preds = %37, %12
br label %49
49: ; preds = %48
%50 = load i32, ptr %7, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %7, align 4
%52 = load i32, ptr %7, align 4
%53 = sext i32 %52 to i64
%54 = load i64, ptr %4, align 8
%55 = icmp ult i64 %53, %54
br i1 %55, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %49
br label %56
56: ; preds = %._crit_edge, %3
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpb7n8oy_r.c'
source_filename = "/tmp/tmpb7n8oy_r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [50 x i8] c"Initial miscount of the number of words in a line\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @wordvbuild(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 ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = 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 %9, align 4
%11 = load ptr, ptr %4, align 8
store ptr %11, ptr %7, align 8
br label %12
12: ; preds = %56, %3
%13 = load ptr, ptr %7, align 8
%14 = load i8, ptr %13, align 1
%15 = icmp ne i8 %14, 0
br i1 %15, label %16, label %59
16: ; preds = %12
br label %17
17: ; preds = %29, %16
%18 = load ptr, ptr %7, align 8
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %27
22: ; preds = %17
%23 = load ptr, ptr %7, align 8
%24 = load i8, ptr %23, align 1
%25 = call i64 @isspace(i8 noundef zeroext %24)
%26 = icmp ne i64 %25, 0
br label %27
27: ; preds = %22, %17
%28 = phi i1 [ false, %17 ], [ %26, %22 ]
br i1 %28, label %29, label %32
29: ; preds = %27
%30 = load ptr, ptr %7, align 8
%31 = getelementptr inbounds i8, ptr %30, i32 1
store ptr %31, ptr %7, align 8
br label %17, !llvm.loop !6
32: ; preds = %27
%33 = load ptr, ptr %7, align 8
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %32
br label %59
38: ; preds = %32
br label %39
39: ; preds = %52, %38
%40 = load ptr, ptr %7, align 8
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %50
44: ; preds = %39
%45 = load ptr, ptr %7, align 8
%46 = load i8, ptr %45, align 1
%47 = call i64 @isspace(i8 noundef zeroext %46)
%48 = icmp ne i64 %47, 0
%49 = xor i1 %48, true
br label %50
50: ; preds = %44, %39
%51 = phi i1 [ false, %39 ], [ %49, %44 ]
br i1 %51, label %52, label %55
52: ; preds = %50
%53 = load ptr, ptr %7, align 8
%54 = getelementptr inbounds i8, ptr %53, i32 1
store ptr %54, ptr %7, align 8
br label %39, !llvm.loop !8
55: ; preds = %50
br label %56
56: ; preds = %55
%57 = load i32, ptr %9, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %9, align 4
br label %12, !llvm.loop !9
59: ; preds = %37, %12
%60 = load i32, ptr %9, align 4
%61 = add nsw i32 %60, 1
%62 = call ptr @Calloc(i32 noundef %61, i32 noundef 8)
store ptr %62, ptr %8, align 8
%63 = load ptr, ptr %4, align 8
store ptr %63, ptr %7, align 8
store i32 0, ptr %10, align 4
br label %64
64: ; preds = %114, %59
%65 = load i32, ptr %9, align 4
%66 = icmp ne i32 %65, 0
br i1 %66, label %67, label %119
67: ; preds = %64
br label %68
68: ; preds = %80, %67
%69 = load ptr, ptr %7, align 8
%70 = load i8, ptr %69, align 1
%71 = sext i8 %70 to i32
%72 = icmp ne i32 %71, 0
br i1 %72, label %73, label %78
73: ; preds = %68
%74 = load ptr, ptr %7, align 8
%75 = load i8, ptr %74, align 1
%76 = call i64 @isspace(i8 noundef zeroext %75)
%77 = icmp ne i64 %76, 0
br label %78
78: ; preds = %73, %68
%79 = phi i1 [ false, %68 ], [ %77, %73 ]
br i1 %79, label %80, label %83
80: ; preds = %78
%81 = load ptr, ptr %7, align 8
%82 = getelementptr inbounds i8, ptr %81, i32 1
store ptr %82, ptr %7, align 8
br label %68, !llvm.loop !10
83: ; preds = %78
%84 = load ptr, ptr %7, align 8
%85 = load i8, ptr %84, align 1
%86 = sext i8 %85 to i32
%87 = icmp eq i32 %86, 0
br i1 %87, label %88, label %89
88: ; preds = %83
br label %119
89: ; preds = %83
%90 = load ptr, ptr %7, align 8
%91 = load ptr, ptr %8, align 8
%92 = load i32, ptr %10, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds ptr, ptr %91, i64 %93
store ptr %90, ptr %94, align 8
br label %95
95: ; preds = %108, %89
%96 = load ptr, ptr %7, align 8
%97 = load i8, ptr %96, align 1
%98 = sext i8 %97 to i32
%99 = icmp ne i32 %98, 0
br i1 %99, label %100, label %106
100: ; preds = %95
%101 = load ptr, ptr %7, align 8
%102 = load i8, ptr %101, align 1
%103 = call i64 @isspace(i8 noundef zeroext %102)
%104 = icmp ne i64 %103, 0
%105 = xor i1 %104, true
br label %106
106: ; preds = %100, %95
%107 = phi i1 [ false, %95 ], [ %105, %100 ]
br i1 %107, label %108, label %111
108: ; preds = %106
%109 = load ptr, ptr %7, align 8
%110 = getelementptr inbounds i8, ptr %109, i32 1
store ptr %110, ptr %7, align 8
br label %95, !llvm.loop !11
111: ; preds = %106
%112 = load ptr, ptr %7, align 8
%113 = getelementptr inbounds i8, ptr %112, i32 1
store ptr %113, ptr %7, align 8
store i8 0, ptr %112, align 1
br label %114
114: ; preds = %111
%115 = load i32, ptr %10, align 4
%116 = add nsw i32 %115, 1
store i32 %116, ptr %10, align 4
%117 = load i32, ptr %9, align 4
%118 = add nsw i32 %117, -1
store i32 %118, ptr %9, align 4
br label %64, !llvm.loop !12
119: ; preds = %88, %64
%120 = load i32, ptr %9, align 4
%121 = icmp ne i32 %120, 0
br i1 %121, label %122, label %124
122: ; preds = %119
%123 = call i32 @errx(i32 noundef 6, ptr noundef @.str)
br label %124
124: ; preds = %122, %119
%125 = load ptr, ptr %8, align 8
%126 = load i32, ptr %10, align 4
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds ptr, ptr %125, i64 %127
store ptr null, ptr %128, align 8
%129 = load i32, ptr %10, align 4
%130 = load ptr, ptr %5, align 8
store i32 %129, ptr %130, align 4
%131 = load ptr, ptr %8, align 8
%132 = load ptr, ptr %6, align 8
store ptr %131, ptr %132, align 8
ret void
}
declare i64 @isspace(i8 noundef zeroext) #1
declare ptr @Calloc(i32 noundef, i32 noundef) #1
declare i32 @errx(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb7n8oy_r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [50 x i8] c"Initial miscount of the number of words in a line\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @wordvbuild(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 ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = 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 %9, align 4
%11 = load ptr, ptr %4, align 8
store ptr %11, ptr %7, align 8
%12 = load ptr, ptr %7, align 8
%13 = load i8, ptr %12, align 1
%14 = icmp ne i8 %13, 0
br i1 %14, label %.lr.ph, label %.loopexit1
.lr.ph: ; preds = %3
br label %15
15: ; preds = %.lr.ph, %55
br label %16
16: ; preds = %28, %15
%17 = load ptr, ptr %7, align 8
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %26
21: ; preds = %16
%22 = load ptr, ptr %7, align 8
%23 = load i8, ptr %22, align 1
%24 = call i64 @isspace(i8 noundef zeroext %23)
%25 = icmp ne i64 %24, 0
br label %26
26: ; preds = %21, %16
%27 = phi i1 [ false, %16 ], [ %25, %21 ]
br i1 %27, label %28, label %31
28: ; preds = %26
%29 = load ptr, ptr %7, align 8
%30 = getelementptr inbounds i8, ptr %29, i32 1
store ptr %30, ptr %7, align 8
br label %16, !llvm.loop !6
31: ; preds = %26
%32 = load ptr, ptr %7, align 8
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %31
br label %61
37: ; preds = %31
br label %38
38: ; preds = %51, %37
%39 = load ptr, ptr %7, align 8
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %49
43: ; preds = %38
%44 = load ptr, ptr %7, align 8
%45 = load i8, ptr %44, align 1
%46 = call i64 @isspace(i8 noundef zeroext %45)
%47 = icmp ne i64 %46, 0
%48 = xor i1 %47, true
br label %49
49: ; preds = %43, %38
%50 = phi i1 [ false, %38 ], [ %48, %43 ]
br i1 %50, label %51, label %54
51: ; preds = %49
%52 = load ptr, ptr %7, align 8
%53 = getelementptr inbounds i8, ptr %52, i32 1
store ptr %53, ptr %7, align 8
br label %38, !llvm.loop !8
54: ; preds = %49
br label %55
55: ; preds = %54
%56 = load i32, ptr %9, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %9, align 4
%58 = load ptr, ptr %7, align 8
%59 = load i8, ptr %58, align 1
%60 = icmp ne i8 %59, 0
br i1 %60, label %15, label %..loopexit1_crit_edge, !llvm.loop !9
..loopexit1_crit_edge: ; preds = %55
br label %.loopexit1
.loopexit1: ; preds = %..loopexit1_crit_edge, %3
br label %61
61: ; preds = %.loopexit1, %36
%62 = load i32, ptr %9, align 4
%63 = add nsw i32 %62, 1
%64 = call ptr @Calloc(i32 noundef %63, i32 noundef 8)
store ptr %64, ptr %8, align 8
%65 = load ptr, ptr %4, align 8
store ptr %65, ptr %7, align 8
store i32 0, ptr %10, align 4
%66 = load i32, ptr %9, align 4
%67 = icmp ne i32 %66, 0
br i1 %67, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %61
br label %68
68: ; preds = %.lr.ph2, %115
br label %69
69: ; preds = %81, %68
%70 = load ptr, ptr %7, align 8
%71 = load i8, ptr %70, align 1
%72 = sext i8 %71 to i32
%73 = icmp ne i32 %72, 0
br i1 %73, label %74, label %79
74: ; preds = %69
%75 = load ptr, ptr %7, align 8
%76 = load i8, ptr %75, align 1
%77 = call i64 @isspace(i8 noundef zeroext %76)
%78 = icmp ne i64 %77, 0
br label %79
79: ; preds = %74, %69
%80 = phi i1 [ false, %69 ], [ %78, %74 ]
br i1 %80, label %81, label %84
81: ; preds = %79
%82 = load ptr, ptr %7, align 8
%83 = getelementptr inbounds i8, ptr %82, i32 1
store ptr %83, ptr %7, align 8
br label %69, !llvm.loop !10
84: ; preds = %79
%85 = load ptr, ptr %7, align 8
%86 = load i8, ptr %85, align 1
%87 = sext i8 %86 to i32
%88 = icmp eq i32 %87, 0
br i1 %88, label %89, label %90
89: ; preds = %84
br label %122
90: ; preds = %84
%91 = load ptr, ptr %7, align 8
%92 = load ptr, ptr %8, align 8
%93 = load i32, ptr %10, align 4
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds ptr, ptr %92, i64 %94
store ptr %91, ptr %95, align 8
br label %96
96: ; preds = %109, %90
%97 = load ptr, ptr %7, align 8
%98 = load i8, ptr %97, align 1
%99 = sext i8 %98 to i32
%100 = icmp ne i32 %99, 0
br i1 %100, label %101, label %107
101: ; preds = %96
%102 = load ptr, ptr %7, align 8
%103 = load i8, ptr %102, align 1
%104 = call i64 @isspace(i8 noundef zeroext %103)
%105 = icmp ne i64 %104, 0
%106 = xor i1 %105, true
br label %107
107: ; preds = %101, %96
%108 = phi i1 [ false, %96 ], [ %106, %101 ]
br i1 %108, label %109, label %112
109: ; preds = %107
%110 = load ptr, ptr %7, align 8
%111 = getelementptr inbounds i8, ptr %110, i32 1
store ptr %111, ptr %7, align 8
br label %96, !llvm.loop !11
112: ; preds = %107
%113 = load ptr, ptr %7, align 8
%114 = getelementptr inbounds i8, ptr %113, i32 1
store ptr %114, ptr %7, align 8
store i8 0, ptr %113, align 1
br label %115
115: ; preds = %112
%116 = load i32, ptr %10, align 4
%117 = add nsw i32 %116, 1
store i32 %117, ptr %10, align 4
%118 = load i32, ptr %9, align 4
%119 = add nsw i32 %118, -1
store i32 %119, ptr %9, align 4
%120 = load i32, ptr %9, align 4
%121 = icmp ne i32 %120, 0
br i1 %121, label %68, label %..loopexit_crit_edge, !llvm.loop !12
..loopexit_crit_edge: ; preds = %115
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %61
br label %122
122: ; preds = %.loopexit, %89
%123 = load i32, ptr %9, align 4
%124 = icmp ne i32 %123, 0
br i1 %124, label %125, label %127
125: ; preds = %122
%126 = call i32 @errx(i32 noundef 6, ptr noundef @.str)
br label %127
127: ; preds = %125, %122
%128 = load ptr, ptr %8, align 8
%129 = load i32, ptr %10, align 4
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds ptr, ptr %128, i64 %130
store ptr null, ptr %131, align 8
%132 = load i32, ptr %10, align 4
%133 = load ptr, ptr %5, align 8
store i32 %132, ptr %133, align 4
%134 = load ptr, ptr %8, align 8
%135 = load ptr, ptr %6, align 8
store ptr %134, ptr %135, align 8
ret void
}
declare i64 @isspace(i8 noundef zeroext) #1
declare ptr @Calloc(i32 noundef, i32 noundef) #1
declare i32 @errx(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmp2fkeehmw.c'
source_filename = "/tmp/tmp2fkeehmw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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() #0 {
%1 = alloca i32, align 4
store i32 42, ptr %1, align 4
%2 = call i32 @increment(ptr noundef %1)
ret void
}
declare i32 @increment(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/tmp2fkeehmw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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() #0 {
%1 = alloca i32, align 4
store i32 42, ptr %1, align 4
%2 = call i32 @increment(ptr noundef %1)
ret void
}
declare i32 @increment(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/tmp9wdy0xn5.c'
source_filename = "/tmp/tmp9wdy0xn5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ERROR: %f != %f\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"SUCCESS\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca 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 %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 40, ptr %6, align 4
%12 = call i64 @posix_memalign(ptr noundef %7, i32 noundef 64, i32 noundef 160)
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = call i32 @exit(i32 noundef 1) #3
unreachable
16: ; preds = %2
%17 = call i64 @posix_memalign(ptr noundef %8, i32 noundef 64, i32 noundef 160)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 @exit(i32 noundef 1) #3
unreachable
21: ; preds = %16
%22 = call i64 @posix_memalign(ptr noundef %9, i32 noundef 64, i32 noundef 160)
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 @exit(i32 noundef 1) #3
unreachable
26: ; preds = %21
%27 = call i64 @posix_memalign(ptr noundef %10, i32 noundef 64, i32 noundef 160)
%28 = icmp ne i64 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = call i32 @exit(i32 noundef 1) #3
unreachable
31: ; preds = %26
store i32 0, ptr %11, align 4
br label %32
32: ; preds = %58, %31
%33 = load i32, ptr %11, align 4
%34 = icmp slt i32 %33, 40
br i1 %34, label %35, label %61
35: ; preds = %32
%36 = load i32, ptr %11, align 4
%37 = sitofp i32 %36 to float
%38 = fmul float %37, 0x3FECCCCCC0000000
%39 = load i32, ptr %11, align 4
%40 = add nsw i32 %39, 1
%41 = sitofp i32 %40 to float
%42 = fdiv float %38, %41
%43 = load ptr, ptr %7, align 8
%44 = load i32, ptr %11, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds float, ptr %43, i64 %45
store float %42, ptr %46, align 4
%47 = load i32, ptr %11, align 4
%48 = sitofp i32 %47 to float
%49 = fmul float %48, 0x3FECCCCCC0000000
%50 = load i32, ptr %11, align 4
%51 = add nsw i32 %50, 1
%52 = sitofp i32 %51 to float
%53 = fdiv float %49, %52
%54 = load ptr, ptr %9, align 8
%55 = load i32, ptr %11, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds float, ptr %54, i64 %56
store float %53, ptr %57, align 4
br label %58
58: ; preds = %35
%59 = load i32, ptr %11, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %11, align 4
br label %32, !llvm.loop !6
61: ; preds = %32
%62 = load ptr, ptr %7, align 8
%63 = load ptr, ptr %8, align 8
%64 = call i32 @test_vec(ptr noundef %62, ptr noundef %63)
%65 = load ptr, ptr %9, align 8
%66 = load ptr, ptr %10, align 8
%67 = call i32 @test_sc(ptr noundef %65, ptr noundef %66)
store i32 0, ptr %11, align 4
br label %68
68: ; preds = %126, %61
%69 = load i32, ptr %11, align 4
%70 = icmp slt i32 %69, 40
br i1 %70, label %71, label %129
71: ; preds = %68
%72 = load ptr, ptr %9, align 8
%73 = load i32, ptr %11, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds float, ptr %72, i64 %74
%76 = load float, ptr %75, align 4
%77 = load ptr, ptr %7, align 8
%78 = load i32, ptr %11, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds float, ptr %77, i64 %79
%81 = load float, ptr %80, align 4
%82 = fcmp une float %76, %81
br i1 %82, label %83, label %98
83: ; preds = %71
%84 = load ptr, ptr %9, align 8
%85 = load i32, ptr %11, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds float, ptr %84, i64 %86
%88 = load float, ptr %87, align 4
%89 = fpext float %88 to double
%90 = load ptr, ptr %7, align 8
%91 = load i32, ptr %11, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds float, ptr %90, i64 %92
%94 = load float, ptr %93, align 4
%95 = fpext float %94 to double
%96 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %89, double noundef %95)
%97 = call i32 @exit(i32 noundef 1) #3
unreachable
98: ; preds = %71
%99 = load ptr, ptr %10, align 8
%100 = load i32, ptr %11, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds float, ptr %99, i64 %101
%103 = load float, ptr %102, align 4
%104 = load ptr, ptr %8, align 8
%105 = load i32, ptr %11, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds float, ptr %104, i64 %106
%108 = load float, ptr %107, align 4
%109 = fcmp une float %103, %108
br i1 %109, label %110, label %125
110: ; preds = %98
%111 = load ptr, ptr %10, align 8
%112 = load i32, ptr %11, align 4
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds float, ptr %111, i64 %113
%115 = load float, ptr %114, align 4
%116 = fpext float %115 to double
%117 = load ptr, ptr %8, align 8
%118 = load i32, ptr %11, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds float, ptr %117, i64 %119
%121 = load float, ptr %120, align 4
%122 = fpext float %121 to double
%123 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %116, double noundef %122)
%124 = call i32 @exit(i32 noundef 1) #3
unreachable
125: ; preds = %98
br label %126
126: ; preds = %125
%127 = load i32, ptr %11, align 4
%128 = add nsw i32 %127, 1
store i32 %128, ptr %11, align 4
br label %68, !llvm.loop !8
129: ; preds = %68
%130 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret i32 0
}
declare i64 @posix_memalign(ptr noundef, i32 noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @test_vec(ptr noundef, ptr noundef) #1
declare i32 @test_sc(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9wdy0xn5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ERROR: %f != %f\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"SUCCESS\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca 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 %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 40, ptr %6, align 4
%12 = call i64 @posix_memalign(ptr noundef %7, i32 noundef 64, i32 noundef 160)
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = call i32 @exit(i32 noundef 1) #3
unreachable
16: ; preds = %2
%17 = call i64 @posix_memalign(ptr noundef %8, i32 noundef 64, i32 noundef 160)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 @exit(i32 noundef 1) #3
unreachable
21: ; preds = %16
%22 = call i64 @posix_memalign(ptr noundef %9, i32 noundef 64, i32 noundef 160)
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 @exit(i32 noundef 1) #3
unreachable
26: ; preds = %21
%27 = call i64 @posix_memalign(ptr noundef %10, i32 noundef 64, i32 noundef 160)
%28 = icmp ne i64 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = call i32 @exit(i32 noundef 1) #3
unreachable
31: ; preds = %26
store i32 0, ptr %11, align 4
%32 = load i32, ptr %11, align 4
%33 = icmp slt i32 %32, 40
br i1 %33, label %.lr.ph, label %62
.lr.ph: ; preds = %31
br label %34
34: ; preds = %.lr.ph, %57
%35 = load i32, ptr %11, align 4
%36 = sitofp i32 %35 to float
%37 = fmul float %36, 0x3FECCCCCC0000000
%38 = load i32, ptr %11, align 4
%39 = add nsw i32 %38, 1
%40 = sitofp i32 %39 to float
%41 = fdiv float %37, %40
%42 = load ptr, ptr %7, align 8
%43 = load i32, ptr %11, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds float, ptr %42, i64 %44
store float %41, ptr %45, align 4
%46 = load i32, ptr %11, align 4
%47 = sitofp i32 %46 to float
%48 = fmul float %47, 0x3FECCCCCC0000000
%49 = load i32, ptr %11, align 4
%50 = add nsw i32 %49, 1
%51 = sitofp i32 %50 to float
%52 = fdiv float %48, %51
%53 = load ptr, ptr %9, align 8
%54 = load i32, ptr %11, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds float, ptr %53, i64 %55
store float %52, ptr %56, align 4
br label %57
57: ; preds = %34
%58 = load i32, ptr %11, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %11, align 4
%60 = load i32, ptr %11, align 4
%61 = icmp slt i32 %60, 40
br i1 %61, label %34, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %57
br label %62
62: ; preds = %._crit_edge, %31
%63 = load ptr, ptr %7, align 8
%64 = load ptr, ptr %8, align 8
%65 = call i32 @test_vec(ptr noundef %63, ptr noundef %64)
%66 = load ptr, ptr %9, align 8
%67 = load ptr, ptr %10, align 8
%68 = call i32 @test_sc(ptr noundef %66, ptr noundef %67)
store i32 0, ptr %11, align 4
%69 = load i32, ptr %11, align 4
%70 = icmp slt i32 %69, 40
br i1 %70, label %.lr.ph2, label %131
.lr.ph2: ; preds = %62
br label %71
71: ; preds = %.lr.ph2, %126
%72 = load ptr, ptr %9, align 8
%73 = load i32, ptr %11, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds float, ptr %72, i64 %74
%76 = load float, ptr %75, align 4
%77 = load ptr, ptr %7, align 8
%78 = load i32, ptr %11, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds float, ptr %77, i64 %79
%81 = load float, ptr %80, align 4
%82 = fcmp une float %76, %81
br i1 %82, label %83, label %98
83: ; preds = %71
%84 = load ptr, ptr %9, align 8
%85 = load i32, ptr %11, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds float, ptr %84, i64 %86
%88 = load float, ptr %87, align 4
%89 = fpext float %88 to double
%90 = load ptr, ptr %7, align 8
%91 = load i32, ptr %11, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds float, ptr %90, i64 %92
%94 = load float, ptr %93, align 4
%95 = fpext float %94 to double
%96 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %89, double noundef %95)
%97 = call i32 @exit(i32 noundef 1) #3
unreachable
98: ; preds = %71
%99 = load ptr, ptr %10, align 8
%100 = load i32, ptr %11, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds float, ptr %99, i64 %101
%103 = load float, ptr %102, align 4
%104 = load ptr, ptr %8, align 8
%105 = load i32, ptr %11, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds float, ptr %104, i64 %106
%108 = load float, ptr %107, align 4
%109 = fcmp une float %103, %108
br i1 %109, label %110, label %125
110: ; preds = %98
%111 = load ptr, ptr %10, align 8
%112 = load i32, ptr %11, align 4
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds float, ptr %111, i64 %113
%115 = load float, ptr %114, align 4
%116 = fpext float %115 to double
%117 = load ptr, ptr %8, align 8
%118 = load i32, ptr %11, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds float, ptr %117, i64 %119
%121 = load float, ptr %120, align 4
%122 = fpext float %121 to double
%123 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %116, double noundef %122)
%124 = call i32 @exit(i32 noundef 1) #3
unreachable
125: ; preds = %98
br label %126
126: ; preds = %125
%127 = load i32, ptr %11, align 4
%128 = add nsw i32 %127, 1
store i32 %128, ptr %11, align 4
%129 = load i32, ptr %11, align 4
%130 = icmp slt i32 %129, 40
br i1 %130, label %71, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %126
br label %131
131: ; preds = %._crit_edge3, %62
%132 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret i32 0
}
declare i64 @posix_memalign(ptr noundef, i32 noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @test_vec(ptr noundef, ptr noundef) #1
declare i32 @test_sc(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp0dmvda_b.c'
source_filename = "/tmp/tmp0dmvda_b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @free_lmatrix(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
%7 = load ptr, ptr %4, align 8
%8 = load i64, ptr %5, align 8
%9 = getelementptr inbounds ptr, ptr %7, i64 %8
%10 = load ptr, ptr %9, align 8
%11 = load i64, ptr %6, align 8
%12 = getelementptr inbounds i64, ptr %10, i64 %11
%13 = getelementptr inbounds i64, ptr %12, i64 -1
%14 = call i32 @free(ptr noundef %13)
%15 = load ptr, ptr %4, align 8
%16 = load i64, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %15, i64 %16
%18 = getelementptr inbounds ptr, ptr %17, i64 -1
%19 = call i32 @free(ptr noundef %18)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0dmvda_b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @free_lmatrix(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
%7 = load ptr, ptr %4, align 8
%8 = load i64, ptr %5, align 8
%9 = getelementptr inbounds ptr, ptr %7, i64 %8
%10 = load ptr, ptr %9, align 8
%11 = load i64, ptr %6, align 8
%12 = getelementptr inbounds i64, ptr %10, i64 %11
%13 = getelementptr inbounds i64, ptr %12, i64 -1
%14 = call i32 @free(ptr noundef %13)
%15 = load ptr, ptr %4, align 8
%16 = load i64, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %15, i64 %16
%18 = getelementptr inbounds ptr, ptr %17, i64 -1
%19 = call i32 @free(ptr noundef %18)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg36y6vs0.c'
source_filename = "/tmp/tmpg36y6vs0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_prime(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = call i64 @sqrt(i32 noundef %6)
%8 = trunc i64 %7 to i32
store i32 %8, ptr %5, align 4
store i32 2, ptr %4, align 4
br label %9
9: ; preds = %20, %1
%10 = load i32, ptr %4, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp sle i32 %10, %11
br i1 %12, label %13, label %23
13: ; preds = %9
%14 = load i32, ptr %3, align 4
%15 = load i32, ptr %4, align 4
%16 = srem i32 %14, %15
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %13
store i32 0, ptr %2, align 4
br label %24
19: ; preds = %13
br label %20
20: ; preds = %19
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %4, align 4
br label %9, !llvm.loop !6
23: ; preds = %9
store i32 1, ptr %2, align 4
br label %24
24: ; preds = %23, %18
%25 = load i32, ptr %2, align 4
ret i32 %25
}
declare i64 @sqrt(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg36y6vs0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_prime(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = call i64 @sqrt(i32 noundef %6)
%8 = trunc i64 %7 to i32
store i32 %8, ptr %5, align 4
store i32 2, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp sle i32 %9, %10
br i1 %11, label %.lr.ph, label %25
.lr.ph: ; preds = %1
br label %12
12: ; preds = %.lr.ph, %19
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %4, align 4
%15 = srem i32 %13, %14
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %12
store i32 0, ptr %2, align 4
br label %26
18: ; preds = %12
br label %19
19: ; preds = %18
%20 = load i32, ptr %4, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %4, align 4
%22 = load i32, ptr %4, align 4
%23 = load i32, ptr %5, align 4
%24 = icmp sle i32 %22, %23
br i1 %24, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %25
25: ; preds = %._crit_edge, %1
store i32 1, ptr %2, align 4
br label %26
26: ; preds = %25, %17
%27 = load i32, ptr %2, align 4
ret i32 %27
}
declare i64 @sqrt(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpqbkro6rh.c'
source_filename = "/tmp/tmpqbkro6rh.c"
target datalayout = "e-m:e-p270: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/tmpqbkro6rh.c"
target datalayout = "e-m:e-p270: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/tmpxmfnzr7v.c'
source_filename = "/tmp/tmpxmfnzr7v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @catgets(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %8, align 8
ret ptr %9
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxmfnzr7v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @catgets(i32 noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %8, align 8
ret ptr %9
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjia1cw7p.c'
source_filename = "/tmp/tmpjia1cw7p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"Usage: powertop [OPTION...]\0A\00", align 1
@.str.1 = private unnamed_addr constant [75 x i8] c" -d, --dump read wakeups once and print list of top offenders\0A\00", align 1
@.str.2 = private unnamed_addr constant [64 x i8] c" -t, --time=DOUBLE default time to gather data in seconds\0A\00", align 1
@.str.3 = private unnamed_addr constant [48 x i8] c" -h, --help Show this help message\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = call ptr @gettext(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef %1)
%3 = call ptr @gettext(ptr noundef @.str.1)
%4 = call i32 @printf(ptr noundef %3)
%5 = call ptr @gettext(ptr noundef @.str.2)
%6 = call i32 @printf(ptr noundef %5)
%7 = call ptr @gettext(ptr noundef @.str.3)
%8 = call i32 @printf(ptr noundef %7)
%9 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
declare ptr @gettext(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/tmpjia1cw7p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"Usage: powertop [OPTION...]\0A\00", align 1
@.str.1 = private unnamed_addr constant [75 x i8] c" -d, --dump read wakeups once and print list of top offenders\0A\00", align 1
@.str.2 = private unnamed_addr constant [64 x i8] c" -t, --time=DOUBLE default time to gather data in seconds\0A\00", align 1
@.str.3 = private unnamed_addr constant [48 x i8] c" -h, --help Show this help message\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = call ptr @gettext(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef %1)
%3 = call ptr @gettext(ptr noundef @.str.1)
%4 = call i32 @printf(ptr noundef %3)
%5 = call ptr @gettext(ptr noundef @.str.2)
%6 = call i32 @printf(ptr noundef %5)
%7 = call ptr @gettext(ptr noundef @.str.3)
%8 = call i32 @printf(ptr noundef %7)
%9 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
declare ptr @gettext(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/tmpill0_avd.c'
source_filename = "/tmp/tmpill0_avd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [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() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 1, ptr %2, align 4
br label %3
3: ; preds = %15, %0
%4 = load i32, ptr %2, align 4
%5 = icmp sle i32 %4, 100
br i1 %5, label %6, label %18
6: ; preds = %3
%7 = load i32, ptr %2, align 4
%8 = call i64 @fizzbuzz(i32 noundef %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %6
%11 = load i32, ptr %2, align 4
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %11)
br label %13
13: ; preds = %10, %6
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %15
15: ; preds = %13
%16 = load i32, ptr %2, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %2, align 4
br label %3, !llvm.loop !6
18: ; preds = %3
%19 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %19
}
declare i64 @fizzbuzz(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/tmpill0_avd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [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() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 1, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp sle i32 %3, 100
br i1 %4, label %.lr.ph, label %19
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %14
%6 = load i32, ptr %2, align 4
%7 = call i64 @fizzbuzz(i32 noundef %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %5
%10 = load i32, ptr %2, align 4
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %10)
br label %12
12: ; preds = %9, %5
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %14
14: ; preds = %12
%15 = load i32, ptr %2, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %2, align 4
%17 = load i32, ptr %2, align 4
%18 = icmp sle i32 %17, 100
br i1 %18, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %19
19: ; preds = %._crit_edge, %0
%20 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %20
}
declare i64 @fizzbuzz(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/tmpzp_18fq1.c'
source_filename = "/tmp/tmpzp_18fq1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @custom_printstring(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
br label %3
3: ; preds = %8, %1
%4 = load ptr, ptr %2, align 8
%5 = load i8, ptr %4, align 1
%6 = sext i8 %5 to i32
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %14
8: ; preds = %3
%9 = load ptr, ptr %2, align 8
%10 = getelementptr inbounds i8, ptr %9, i32 1
store ptr %10, ptr %2, align 8
%11 = load i8, ptr %9, align 1
%12 = sext i8 %11 to i32
%13 = call i32 @custom_iowrite(i32 noundef %12)
br label %3, !llvm.loop !6
14: ; preds = %3
ret i32 0
}
declare i32 @custom_iowrite(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/tmpzp_18fq1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @custom_printstring(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i8, ptr %3, align 1
%5 = sext i8 %4 to i32
%6 = icmp ne i32 %5, 0
br i1 %6, label %.lr.ph, label %17
.lr.ph: ; preds = %1
br label %7
7: ; preds = %.lr.ph, %7
%8 = load ptr, ptr %2, align 8
%9 = getelementptr inbounds i8, ptr %8, i32 1
store ptr %9, ptr %2, align 8
%10 = load i8, ptr %8, align 1
%11 = sext i8 %10 to i32
%12 = call i32 @custom_iowrite(i32 noundef %11)
%13 = load ptr, ptr %2, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 0
br i1 %16, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %7
br label %17
17: ; preds = %._crit_edge, %1
ret i32 0
}
declare i32 @custom_iowrite(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/tmph17ybgv1.c'
source_filename = "/tmp/tmph17ybgv1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ceil_log2(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = call i64 @log2(i64 noundef %4)
store i64 %5, ptr %3, align 8
%6 = load i64, ptr %3, align 8
%7 = shl i64 1, %6
%8 = load i64, ptr %2, align 8
%9 = icmp ult i64 %7, %8
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = load i64, ptr %3, align 8
%12 = add i64 %11, 1
store i64 %12, ptr %3, align 8
br label %13
13: ; preds = %10, %1
%14 = load i64, ptr %3, align 8
ret i64 %14
}
declare i64 @log2(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/tmph17ybgv1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ceil_log2(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = call i64 @log2(i64 noundef %4)
store i64 %5, ptr %3, align 8
%6 = load i64, ptr %3, align 8
%7 = shl i64 1, %6
%8 = load i64, ptr %2, align 8
%9 = icmp ult i64 %7, %8
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = load i64, ptr %3, align 8
%12 = add i64 %11, 1
store i64 %12, ptr %3, align 8
br label %13
13: ; preds = %10, %1
%14 = load i64, ptr %3, align 8
ret i64 %14
}
declare i64 @log2(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/tmpd7qtjam8.c'
source_filename = "/tmp/tmpd7qtjam8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [51 x i8] c"Wet bulb temperature is above dry bulb temperature\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 @GetRelHumFromTWetBulb(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 = load double, ptr %4, align 8
%10 = fcmp ole double %8, %9
br i1 %10, label %13, label %11
11: ; preds = %3
%12 = call i32 @Assert(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 253)
br label %13
13: ; preds = %11, %3
%14 = load double, ptr %4, align 8
%15 = load double, ptr %5, align 8
%16 = load double, ptr %6, align 8
%17 = call double @GetHumRatioFromTWetBulb(double noundef %14, double noundef %15, double noundef %16)
store double %17, ptr %7, align 8
%18 = load double, ptr %4, align 8
%19 = load double, ptr %7, align 8
%20 = load double, ptr %6, align 8
%21 = call double @GetRelHumFromHumRatio(double noundef %18, double noundef %19, double noundef %20)
ret double %21
}
declare i32 @Assert(ptr noundef, ptr noundef, i32 noundef) #1
declare double @GetHumRatioFromTWetBulb(double noundef, double noundef, double noundef) #1
declare double @GetRelHumFromHumRatio(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/tmpd7qtjam8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [51 x i8] c"Wet bulb temperature is above dry bulb temperature\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 @GetRelHumFromTWetBulb(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 = load double, ptr %4, align 8
%10 = fcmp ole double %8, %9
br i1 %10, label %13, label %11
11: ; preds = %3
%12 = call i32 @Assert(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 253)
br label %13
13: ; preds = %11, %3
%14 = load double, ptr %4, align 8
%15 = load double, ptr %5, align 8
%16 = load double, ptr %6, align 8
%17 = call double @GetHumRatioFromTWetBulb(double noundef %14, double noundef %15, double noundef %16)
store double %17, ptr %7, align 8
%18 = load double, ptr %4, align 8
%19 = load double, ptr %7, align 8
%20 = load double, ptr %6, align 8
%21 = call double @GetRelHumFromHumRatio(double noundef %18, double noundef %19, double noundef %20)
ret double %21
}
declare i32 @Assert(ptr noundef, ptr noundef, i32 noundef) #1
declare double @GetHumRatioFromTWetBulb(double noundef, double noundef, double noundef) #1
declare double @GetRelHumFromHumRatio(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/tmp6sj6pioy.c'
source_filename = "/tmp/tmp6sj6pioy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @quickSort(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
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp sge i32 %8, %9
br i1 %10, label %11, label %12
11: ; preds = %3
br label %25
12: ; preds = %3
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %6, align 4
%16 = call i32 @partition(ptr noundef %13, i32 noundef %14, i32 noundef %15)
store i32 %16, ptr %7, align 4
%17 = load ptr, ptr %4, align 8
%18 = load i32, ptr %5, align 4
%19 = load i32, ptr %7, align 4
%20 = sub nsw i32 %19, 1
call void @quickSort(ptr noundef %17, i32 noundef %18, i32 noundef %20)
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %7, align 4
%23 = add nsw i32 %22, 1
%24 = load i32, ptr %6, align 4
call void @quickSort(ptr noundef %21, i32 noundef %23, i32 noundef %24)
br label %25
25: ; preds = %12, %11
ret void
}
declare i32 @partition(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/tmp6sj6pioy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @quickSort(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
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp sge i32 %8, %9
br i1 %10, label %11, label %12
11: ; preds = %3
br label %25
12: ; preds = %3
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %6, align 4
%16 = call i32 @partition(ptr noundef %13, i32 noundef %14, i32 noundef %15)
store i32 %16, ptr %7, align 4
%17 = load ptr, ptr %4, align 8
%18 = load i32, ptr %5, align 4
%19 = load i32, ptr %7, align 4
%20 = sub nsw i32 %19, 1
call void @quickSort(ptr noundef %17, i32 noundef %18, i32 noundef %20)
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %7, align 4
%23 = add nsw i32 %22, 1
%24 = load i32, ptr %6, align 4
call void @quickSort(ptr noundef %21, i32 noundef %23, i32 noundef %24)
br label %25
25: ; preds = %12, %11
ret void
}
declare i32 @partition(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/tmpepddhnx3.c'
source_filename = "/tmp/tmpepddhnx3.c"
target datalayout = "e-m:e-p270: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/tmpepddhnx3.c"
target datalayout = "e-m:e-p270: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/tmp9gfufr_p.c'
source_filename = "/tmp/tmp9gfufr_p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOMEM = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ft_strndup(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
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%7 = load i64, ptr %5, align 8
%8 = add i64 %7, 1
%9 = mul i64 1, %8
%10 = trunc i64 %9 to i32
%11 = call i64 @malloc(i32 noundef %10)
%12 = inttoptr i64 %11 to ptr
store ptr %12, ptr %6, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %16, label %14
14: ; preds = %2
%15 = load i32, ptr @ENOMEM, align 4
store i32 %15, ptr @errno, align 4
store ptr null, ptr %3, align 8
br label %35
16: ; preds = %2
%17 = load ptr, ptr %6, align 8
%18 = load i64, ptr %5, align 8
%19 = getelementptr inbounds i8, ptr %17, i64 %18
store i8 0, ptr %19, align 1
br label %20
20: ; preds = %23, %16
%21 = load i64, ptr %5, align 8
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %33
23: ; preds = %20
%24 = load i64, ptr %5, align 8
%25 = add i64 %24, -1
store i64 %25, ptr %5, align 8
%26 = load ptr, ptr %4, align 8
%27 = load i64, ptr %5, align 8
%28 = getelementptr inbounds i8, ptr %26, i64 %27
%29 = load i8, ptr %28, align 1
%30 = load ptr, ptr %6, align 8
%31 = load i64, ptr %5, align 8
%32 = getelementptr inbounds i8, ptr %30, i64 %31
store i8 %29, ptr %32, align 1
br label %20, !llvm.loop !6
33: ; preds = %20
%34 = load ptr, ptr %6, align 8
store ptr %34, ptr %3, align 8
br label %35
35: ; preds = %33, %14
%36 = load ptr, ptr %3, align 8
ret ptr %36
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9gfufr_p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOMEM = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ft_strndup(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
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%7 = load i64, ptr %5, align 8
%8 = add i64 %7, 1
%9 = mul i64 1, %8
%10 = trunc i64 %9 to i32
%11 = call i64 @malloc(i32 noundef %10)
%12 = inttoptr i64 %11 to ptr
store ptr %12, ptr %6, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %16, label %14
14: ; preds = %2
%15 = load i32, ptr @ENOMEM, align 4
store i32 %15, ptr @errno, align 4
store ptr null, ptr %3, align 8
br label %36
16: ; preds = %2
%17 = load ptr, ptr %6, align 8
%18 = load i64, ptr %5, align 8
%19 = getelementptr inbounds i8, ptr %17, i64 %18
store i8 0, ptr %19, align 1
%20 = load i64, ptr %5, align 8
%21 = icmp ne i64 %20, 0
br i1 %21, label %.lr.ph, label %34
.lr.ph: ; preds = %16
br label %22
22: ; preds = %.lr.ph, %22
%23 = load i64, ptr %5, align 8
%24 = add i64 %23, -1
store i64 %24, ptr %5, align 8
%25 = load ptr, ptr %4, align 8
%26 = load i64, ptr %5, align 8
%27 = getelementptr inbounds i8, ptr %25, i64 %26
%28 = load i8, ptr %27, align 1
%29 = load ptr, ptr %6, align 8
%30 = load i64, ptr %5, align 8
%31 = getelementptr inbounds i8, ptr %29, i64 %30
store i8 %28, ptr %31, align 1
%32 = load i64, ptr %5, align 8
%33 = icmp ne i64 %32, 0
br i1 %33, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %34
34: ; preds = %._crit_edge, %16
%35 = load ptr, ptr %6, align 8
store ptr %35, ptr %3, align 8
br label %36
36: ; preds = %34, %14
%37 = load ptr, ptr %3, align 8
ret ptr %37
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp5temoqfm.c'
source_filename = "/tmp/tmp5temoqfm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @RTTrafficInfo_Reset() #0 {
%1 = call i32 (...) @RTTrafficInfo_ClearAll()
ret void
}
declare i32 @RTTrafficInfo_ClearAll(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5temoqfm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @RTTrafficInfo_Reset() #0 {
%1 = call i32 (...) @RTTrafficInfo_ClearAll()
ret void
}
declare i32 @RTTrafficInfo_ClearAll(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpiw6ky24o.c'
source_filename = "/tmp/tmpiw6ky24o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @neuralops_conv2d_bias_fwd(i64 noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca i64, align 8
%16 = alloca i64, align 8
%17 = alloca i64, align 8
%18 = alloca float, align 4
%19 = alloca i64, align 8
%20 = alloca i64, align 8
store i64 %0, ptr %8, align 8
store i64 %1, ptr %9, align 8
store i64 %2, ptr %10, align 8
store i64 %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
store ptr %6, ptr %14, align 8
store i64 0, ptr %15, align 8
store i64 0, ptr %16, align 8
br label %21
21: ; preds = %68, %7
%22 = load i64, ptr %16, align 8
%23 = load i64, ptr %8, align 8
%24 = icmp ult i64 %22, %23
br i1 %24, label %25, label %71
25: ; preds = %21
store i64 0, ptr %17, align 8
br label %26
26: ; preds = %64, %25
%27 = load i64, ptr %17, align 8
%28 = load i64, ptr %11, align 8
%29 = icmp ult i64 %27, %28
br i1 %29, label %30, label %67
30: ; preds = %26
%31 = load ptr, ptr %13, align 8
%32 = load i64, ptr %17, align 8
%33 = getelementptr inbounds float, ptr %31, i64 %32
%34 = load float, ptr %33, align 4
store float %34, ptr %18, align 4
store i64 0, ptr %19, align 8
br label %35
35: ; preds = %60, %30
%36 = load i64, ptr %19, align 8
%37 = load i64, ptr %10, align 8
%38 = icmp ult i64 %36, %37
br i1 %38, label %39, label %63
39: ; preds = %35
store i64 0, ptr %20, align 8
br label %40
40: ; preds = %56, %39
%41 = load i64, ptr %20, align 8
%42 = load i64, ptr %9, align 8
%43 = icmp ult i64 %41, %42
br i1 %43, label %44, label %59
44: ; preds = %40
%45 = load ptr, ptr %12, align 8
%46 = load i64, ptr %15, align 8
%47 = getelementptr inbounds float, ptr %45, i64 %46
%48 = load float, ptr %47, align 4
%49 = load float, ptr %18, align 4
%50 = fadd float %48, %49
%51 = load ptr, ptr %14, align 8
%52 = load i64, ptr %15, align 8
%53 = getelementptr inbounds float, ptr %51, i64 %52
store float %50, ptr %53, align 4
%54 = load i64, ptr %15, align 8
%55 = add i64 %54, 1
store i64 %55, ptr %15, align 8
br label %56
56: ; preds = %44
%57 = load i64, ptr %20, align 8
%58 = add i64 %57, 1
store i64 %58, ptr %20, align 8
br label %40, !llvm.loop !6
59: ; preds = %40
br label %60
60: ; preds = %59
%61 = load i64, ptr %19, align 8
%62 = add i64 %61, 1
store i64 %62, ptr %19, align 8
br label %35, !llvm.loop !8
63: ; preds = %35
br label %64
64: ; preds = %63
%65 = load i64, ptr %17, align 8
%66 = add i64 %65, 1
store i64 %66, ptr %17, align 8
br label %26, !llvm.loop !9
67: ; preds = %26
br label %68
68: ; preds = %67
%69 = load i64, ptr %16, align 8
%70 = add i64 %69, 1
store i64 %70, ptr %16, align 8
br label %21, !llvm.loop !10
71: ; preds = %21
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpiw6ky24o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @neuralops_conv2d_bias_fwd(i64 noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca i64, align 8
%16 = alloca i64, align 8
%17 = alloca i64, align 8
%18 = alloca float, align 4
%19 = alloca i64, align 8
%20 = alloca i64, align 8
store i64 %0, ptr %8, align 8
store i64 %1, ptr %9, align 8
store i64 %2, ptr %10, align 8
store i64 %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
store ptr %6, ptr %14, align 8
store i64 0, ptr %15, align 8
store i64 0, ptr %16, align 8
%21 = load i64, ptr %16, align 8
%22 = load i64, ptr %8, align 8
%23 = icmp ult i64 %21, %22
br i1 %23, label %.lr.ph8, label %79
.lr.ph8: ; preds = %7
br label %24
24: ; preds = %.lr.ph8, %73
store i64 0, ptr %17, align 8
%25 = load i64, ptr %17, align 8
%26 = load i64, ptr %11, align 8
%27 = icmp ult i64 %25, %26
br i1 %27, label %.lr.ph5, label %72
.lr.ph5: ; preds = %24
br label %28
28: ; preds = %.lr.ph5, %66
%29 = load ptr, ptr %13, align 8
%30 = load i64, ptr %17, align 8
%31 = getelementptr inbounds float, ptr %29, i64 %30
%32 = load float, ptr %31, align 4
store float %32, ptr %18, align 4
store i64 0, ptr %19, align 8
%33 = load i64, ptr %19, align 8
%34 = load i64, ptr %10, align 8
%35 = icmp ult i64 %33, %34
br i1 %35, label %.lr.ph2, label %65
.lr.ph2: ; preds = %28
br label %36
36: ; preds = %.lr.ph2, %59
store i64 0, ptr %20, align 8
%37 = load i64, ptr %20, align 8
%38 = load i64, ptr %9, align 8
%39 = icmp ult i64 %37, %38
br i1 %39, label %.lr.ph, label %58
.lr.ph: ; preds = %36
br label %40
40: ; preds = %.lr.ph, %52
%41 = load ptr, ptr %12, align 8
%42 = load i64, ptr %15, align 8
%43 = getelementptr inbounds float, ptr %41, i64 %42
%44 = load float, ptr %43, align 4
%45 = load float, ptr %18, align 4
%46 = fadd float %44, %45
%47 = load ptr, ptr %14, align 8
%48 = load i64, ptr %15, align 8
%49 = getelementptr inbounds float, ptr %47, i64 %48
store float %46, ptr %49, align 4
%50 = load i64, ptr %15, align 8
%51 = add i64 %50, 1
store i64 %51, ptr %15, align 8
br label %52
52: ; preds = %40
%53 = load i64, ptr %20, align 8
%54 = add i64 %53, 1
store i64 %54, ptr %20, align 8
%55 = load i64, ptr %20, align 8
%56 = load i64, ptr %9, align 8
%57 = icmp ult i64 %55, %56
br i1 %57, label %40, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %52
br label %58
58: ; preds = %._crit_edge, %36
br label %59
59: ; preds = %58
%60 = load i64, ptr %19, align 8
%61 = add i64 %60, 1
store i64 %61, ptr %19, align 8
%62 = load i64, ptr %19, align 8
%63 = load i64, ptr %10, align 8
%64 = icmp ult i64 %62, %63
br i1 %64, label %36, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %59
br label %65
65: ; preds = %._crit_edge3, %28
br label %66
66: ; preds = %65
%67 = load i64, ptr %17, align 8
%68 = add i64 %67, 1
store i64 %68, ptr %17, align 8
%69 = load i64, ptr %17, align 8
%70 = load i64, ptr %11, align 8
%71 = icmp ult i64 %69, %70
br i1 %71, label %28, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %66
br label %72
72: ; preds = %._crit_edge6, %24
br label %73
73: ; preds = %72
%74 = load i64, ptr %16, align 8
%75 = add i64 %74, 1
store i64 %75, ptr %16, align 8
%76 = load i64, ptr %16, align 8
%77 = load i64, ptr %8, align 8
%78 = icmp ult i64 %76, %77
br i1 %78, label %24, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %73
br label %79
79: ; preds = %._crit_edge9, %7
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpnw8z8xbb.c'
source_filename = "/tmp/tmpnw8z8xbb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@.str.1 = private unnamed_addr constant [23 x i8] c"Prime: %d \09 Place: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %5, align 4
%6 = call ptr @malloc(i32 noundef 420000)
store ptr %6, ptr %4, align 8
store i64 2, ptr %2, align 8
br label %7
7: ; preds = %14, %0
%8 = load i64, ptr %2, align 8
%9 = icmp slt i64 %8, 105000
br i1 %9, label %10, label %17
10: ; preds = %7
%11 = load ptr, ptr %4, align 8
%12 = load i64, ptr %2, align 8
%13 = getelementptr inbounds i32, ptr %11, i64 %12
store i32 1, ptr %13, align 4
br label %14
14: ; preds = %10
%15 = load i64, ptr %2, align 8
%16 = add nsw i64 %15, 1
store i64 %16, ptr %2, align 8
br label %7, !llvm.loop !6
17: ; preds = %7
store i64 2, ptr %2, align 8
br label %18
18: ; preds = %53, %17
%19 = load i64, ptr %2, align 8
%20 = icmp slt i64 %19, 105000
br i1 %20, label %21, label %56
21: ; preds = %18
%22 = load ptr, ptr %4, align 8
%23 = load i64, ptr %2, align 8
%24 = getelementptr inbounds i32, ptr %22, i64 %23
%25 = load i32, ptr %24, align 4
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %52
27: ; preds = %21
%28 = load i64, ptr %2, align 8
store i64 %28, ptr %3, align 8
br label %29
29: ; preds = %48, %27
%30 = load i64, ptr %2, align 8
%31 = load i64, ptr %3, align 8
%32 = mul nsw i64 %30, %31
%33 = icmp slt i64 %32, 105000
br i1 %33, label %34, label %51
34: ; preds = %29
%35 = load ptr, ptr %4, align 8
%36 = load i64, ptr %2, align 8
%37 = load i64, ptr %3, align 8
%38 = mul nsw i64 %36, %37
%39 = getelementptr inbounds i32, ptr %35, i64 %38
store i32 0, ptr %39, align 4
%40 = load ptr, ptr %4, align 8
%41 = load i64, ptr %2, align 8
%42 = load i64, ptr %3, align 8
%43 = mul nsw i64 %41, %42
%44 = getelementptr inbounds i32, ptr %40, i64 %43
%45 = load i32, ptr %44, align 4
%46 = sext i32 %45 to i64
%47 = call i32 (ptr, i64, ...) @printf(ptr noundef @.str, i64 noundef %46)
br label %48
48: ; preds = %34
%49 = load i64, ptr %3, align 8
%50 = add nsw i64 %49, 1
store i64 %50, ptr %3, align 8
br label %29, !llvm.loop !8
51: ; preds = %29
br label %52
52: ; preds = %51, %21
br label %53
53: ; preds = %52
%54 = load i64, ptr %2, align 8
%55 = add nsw i64 %54, 1
store i64 %55, ptr %2, align 8
br label %18, !llvm.loop !9
56: ; preds = %18
store i64 2, ptr %2, align 8
br label %57
57: ; preds = %80, %56
%58 = load i64, ptr %2, align 8
%59 = icmp slt i64 %58, 105000
br i1 %59, label %60, label %83
60: ; preds = %57
%61 = load i32, ptr %5, align 4
%62 = icmp eq i32 %61, 10001
br i1 %62, label %63, label %69
63: ; preds = %60
%64 = load i64, ptr %2, align 8
%65 = load i32, ptr %5, align 4
%66 = call i32 (ptr, i64, ...) @printf(ptr noundef @.str.1, i64 noundef %64, i32 noundef %65)
%67 = load i32, ptr %5, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %5, align 4
br label %79
69: ; preds = %60
%70 = load ptr, ptr %4, align 8
%71 = load i64, ptr %2, align 8
%72 = getelementptr inbounds i32, ptr %70, i64 %71
%73 = load i32, ptr %72, align 4
%74 = icmp ne i32 %73, 0
br i1 %74, label %75, label %78
75: ; preds = %69
%76 = load i32, ptr %5, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %5, align 4
br label %78
78: ; preds = %75, %69
br label %79
79: ; preds = %78, %63
br label %80
80: ; preds = %79
%81 = load i64, ptr %2, align 8
%82 = add nsw i64 %81, 1
store i64 %82, ptr %2, align 8
br label %57, !llvm.loop !10
83: ; preds = %57
ret i32 0
}
declare ptr @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, i64 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnw8z8xbb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@.str.1 = private unnamed_addr constant [23 x i8] c"Prime: %d \09 Place: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %5, align 4
%6 = call ptr @malloc(i32 noundef 420000)
store ptr %6, ptr %4, align 8
store i64 2, ptr %2, align 8
%7 = load i64, ptr %2, align 8
%8 = icmp slt i64 %7, 105000
br i1 %8, label %.lr.ph, label %18
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %13
%10 = load ptr, ptr %4, align 8
%11 = load i64, ptr %2, align 8
%12 = getelementptr inbounds i32, ptr %10, i64 %11
store i32 1, ptr %12, align 4
br label %13
13: ; preds = %9
%14 = load i64, ptr %2, align 8
%15 = add nsw i64 %14, 1
store i64 %15, ptr %2, align 8
%16 = load i64, ptr %2, align 8
%17 = icmp slt i64 %16, 105000
br i1 %17, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %18
18: ; preds = %._crit_edge, %0
store i64 2, ptr %2, align 8
%19 = load i64, ptr %2, align 8
%20 = icmp slt i64 %19, 105000
br i1 %20, label %.lr.ph5, label %61
.lr.ph5: ; preds = %18
br label %21
21: ; preds = %.lr.ph5, %56
%22 = load ptr, ptr %4, align 8
%23 = load i64, ptr %2, align 8
%24 = getelementptr inbounds i32, ptr %22, i64 %23
%25 = load i32, ptr %24, align 4
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %55
27: ; preds = %21
%28 = load i64, ptr %2, align 8
store i64 %28, ptr %3, align 8
%29 = load i64, ptr %2, align 8
%30 = load i64, ptr %3, align 8
%31 = mul nsw i64 %29, %30
%32 = icmp slt i64 %31, 105000
br i1 %32, label %.lr.ph2, label %54
.lr.ph2: ; preds = %27
br label %33
33: ; preds = %.lr.ph2, %47
%34 = load ptr, ptr %4, align 8
%35 = load i64, ptr %2, align 8
%36 = load i64, ptr %3, align 8
%37 = mul nsw i64 %35, %36
%38 = getelementptr inbounds i32, ptr %34, i64 %37
store i32 0, ptr %38, align 4
%39 = load ptr, ptr %4, align 8
%40 = load i64, ptr %2, align 8
%41 = load i64, ptr %3, align 8
%42 = mul nsw i64 %40, %41
%43 = getelementptr inbounds i32, ptr %39, i64 %42
%44 = load i32, ptr %43, align 4
%45 = sext i32 %44 to i64
%46 = call i32 (ptr, i64, ...) @printf(ptr noundef @.str, i64 noundef %45)
br label %47
47: ; preds = %33
%48 = load i64, ptr %3, align 8
%49 = add nsw i64 %48, 1
store i64 %49, ptr %3, align 8
%50 = load i64, ptr %2, align 8
%51 = load i64, ptr %3, align 8
%52 = mul nsw i64 %50, %51
%53 = icmp slt i64 %52, 105000
br i1 %53, label %33, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %47
br label %54
54: ; preds = %._crit_edge3, %27
br label %55
55: ; preds = %54, %21
br label %56
56: ; preds = %55
%57 = load i64, ptr %2, align 8
%58 = add nsw i64 %57, 1
store i64 %58, ptr %2, align 8
%59 = load i64, ptr %2, align 8
%60 = icmp slt i64 %59, 105000
br i1 %60, label %21, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %56
br label %61
61: ; preds = %._crit_edge6, %18
store i64 2, ptr %2, align 8
%62 = load i64, ptr %2, align 8
%63 = icmp slt i64 %62, 105000
br i1 %63, label %.lr.ph8, label %89
.lr.ph8: ; preds = %61
br label %64
64: ; preds = %.lr.ph8, %84
%65 = load i32, ptr %5, align 4
%66 = icmp eq i32 %65, 10001
br i1 %66, label %67, label %73
67: ; preds = %64
%68 = load i64, ptr %2, align 8
%69 = load i32, ptr %5, align 4
%70 = call i32 (ptr, i64, ...) @printf(ptr noundef @.str.1, i64 noundef %68, i32 noundef %69)
%71 = load i32, ptr %5, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %5, align 4
br label %83
73: ; preds = %64
%74 = load ptr, ptr %4, align 8
%75 = load i64, ptr %2, align 8
%76 = getelementptr inbounds i32, ptr %74, i64 %75
%77 = load i32, ptr %76, align 4
%78 = icmp ne i32 %77, 0
br i1 %78, label %79, label %82
79: ; preds = %73
%80 = load i32, ptr %5, align 4
%81 = add nsw i32 %80, 1
store i32 %81, ptr %5, align 4
br label %82
82: ; preds = %79, %73
br label %83
83: ; preds = %82, %67
br label %84
84: ; preds = %83
%85 = load i64, ptr %2, align 8
%86 = add nsw i64 %85, 1
store i64 %86, ptr %2, align 8
%87 = load i64, ptr %2, align 8
%88 = icmp slt i64 %87, 105000
br i1 %88, label %64, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %84
br label %89
89: ; preds = %._crit_edge9, %61
ret i32 0
}
declare ptr @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, i64 noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmprzln3j5m.c'
source_filename = "/tmp/tmprzln3j5m.c"
target datalayout = "e-m:e-p270: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.str_rand.alphanum = private unnamed_addr constant [64 x i8] c"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\00\00", align 16
@str_rand.seq = internal global i32 0, align 4
@RAND_MAX = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @str_rand(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca [64 x i8], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.str_rand.alphanum, i64 64, i1 false)
%10 = load ptr, ptr %4, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %13, label %12
12: ; preds = %2
store i32 -1, ptr %3, align 4
br label %52
13: ; preds = %2
%14 = call i32 @time(ptr noundef null)
store i32 %14, ptr %9, align 4
%15 = load i32, ptr %9, align 4
%16 = call i32 @srand(i32 noundef %15)
store i32 0, ptr %8, align 4
br label %17
17: ; preds = %40, %13
%18 = load i32, ptr %8, align 4
%19 = load i32, ptr %5, align 4
%20 = icmp ult i32 %18, %19
br i1 %20, label %21, label %43
21: ; preds = %17
%22 = call double (...) @rand()
%23 = fmul double 6.100000e+01, %22
%24 = load double, ptr @RAND_MAX, align 8
%25 = fdiv double %23, %24
%26 = fptosi double %25 to i32
store i32 %26, ptr %7, align 4
%27 = load i32, ptr @str_rand.seq, align 4
%28 = load i32, ptr %7, align 4
%29 = add i32 %28, %27
store i32 %29, ptr %7, align 4
%30 = load i32, ptr %7, align 4
%31 = urem i32 %30, 62
store i32 %31, ptr %7, align 4
%32 = load i32, ptr %7, align 4
%33 = zext i32 %32 to i64
%34 = getelementptr inbounds [64 x i8], ptr %6, i64 0, i64 %33
%35 = load i8, ptr %34, align 1
%36 = load ptr, ptr %4, align 8
%37 = load i32, ptr %8, align 4
%38 = zext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
store i8 %35, ptr %39, align 1
br label %40
40: ; preds = %21
%41 = load i32, ptr %8, align 4
%42 = add i32 %41, 1
store i32 %42, ptr %8, align 4
br label %17, !llvm.loop !6
43: ; preds = %17
%44 = load ptr, ptr %4, align 8
%45 = load i32, ptr %8, align 4
%46 = zext i32 %45 to i64
%47 = getelementptr inbounds i8, ptr %44, i64 %46
store i8 0, ptr %47, align 1
%48 = load i32, ptr @str_rand.seq, align 4
%49 = add i32 %48, 1
store i32 %49, ptr @str_rand.seq, align 4
%50 = load i32, ptr @str_rand.seq, align 4
%51 = urem i32 %50, 62
store i32 %51, ptr @str_rand.seq, align 4
store i32 0, ptr %3, align 4
br label %52
52: ; preds = %43, %12
%53 = load i32, ptr %3, align 4
ret i32 %53
}
; 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 @time(ptr noundef) #2
declare i32 @srand(i32 noundef) #2
declare double @rand(...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprzln3j5m.c"
target datalayout = "e-m:e-p270: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.str_rand.alphanum = private unnamed_addr constant [64 x i8] c"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\00\00", align 16
@str_rand.seq = internal global i32 0, align 4
@RAND_MAX = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @str_rand(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca [64 x i8], align 16
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const.str_rand.alphanum, i64 64, i1 false)
%10 = load ptr, ptr %4, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %13, label %12
12: ; preds = %2
store i32 -1, ptr %3, align 4
br label %54
13: ; preds = %2
%14 = call i32 @time(ptr noundef null)
store i32 %14, ptr %9, align 4
%15 = load i32, ptr %9, align 4
%16 = call i32 @srand(i32 noundef %15)
store i32 0, ptr %8, align 4
%17 = load i32, ptr %8, align 4
%18 = load i32, ptr %5, align 4
%19 = icmp ult i32 %17, %18
br i1 %19, label %.lr.ph, label %45
.lr.ph: ; preds = %13
br label %20
20: ; preds = %.lr.ph, %39
%21 = call double (...) @rand()
%22 = fmul double 6.100000e+01, %21
%23 = load double, ptr @RAND_MAX, align 8
%24 = fdiv double %22, %23
%25 = fptosi double %24 to i32
store i32 %25, ptr %7, align 4
%26 = load i32, ptr @str_rand.seq, align 4
%27 = load i32, ptr %7, align 4
%28 = add i32 %27, %26
store i32 %28, ptr %7, align 4
%29 = load i32, ptr %7, align 4
%30 = urem i32 %29, 62
store i32 %30, ptr %7, align 4
%31 = load i32, ptr %7, align 4
%32 = zext i32 %31 to i64
%33 = getelementptr inbounds [64 x i8], ptr %6, i64 0, i64 %32
%34 = load i8, ptr %33, align 1
%35 = load ptr, ptr %4, align 8
%36 = load i32, ptr %8, align 4
%37 = zext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %35, i64 %37
store i8 %34, ptr %38, align 1
br label %39
39: ; preds = %20
%40 = load i32, ptr %8, align 4
%41 = add i32 %40, 1
store i32 %41, ptr %8, align 4
%42 = load i32, ptr %8, align 4
%43 = load i32, ptr %5, align 4
%44 = icmp ult i32 %42, %43
br i1 %44, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %39
br label %45
45: ; preds = %._crit_edge, %13
%46 = load ptr, ptr %4, align 8
%47 = load i32, ptr %8, align 4
%48 = zext i32 %47 to i64
%49 = getelementptr inbounds i8, ptr %46, i64 %48
store i8 0, ptr %49, align 1
%50 = load i32, ptr @str_rand.seq, align 4
%51 = add i32 %50, 1
store i32 %51, ptr @str_rand.seq, align 4
%52 = load i32, ptr @str_rand.seq, align 4
%53 = urem i32 %52, 62
store i32 %53, ptr @str_rand.seq, align 4
store i32 0, ptr %3, align 4
br label %54
54: ; preds = %45, %12
%55 = load i32, ptr %3, align 4
ret i32 %55
}
; 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 @time(ptr noundef) #2
declare i32 @srand(i32 noundef) #2
declare double @rand(...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_28jc20m.c'
source_filename = "/tmp/tmp_28jc20m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"search %d l=%d h=%d \0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"l=%d, h=%d, m=%d \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @bsearch(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
%11 = load i32, ptr %6, align 4
%12 = sub nsw i32 %11, 1
store i32 %12, ptr %10, align 4
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %8, align 4
%15 = load i32, ptr %10, align 4
%16 = call i32 @printf(ptr noundef @.str, i32 noundef %13, i32 noundef %14, i32 noundef %15)
br label %17
17: ; preds = %56, %3
%18 = load i32, ptr %8, align 4
%19 = load i32, ptr %10, align 4
%20 = icmp sle i32 %18, %19
br i1 %20, label %21, label %57
21: ; preds = %17
%22 = load i32, ptr %8, align 4
%23 = load i32, ptr %10, align 4
%24 = load i32, ptr %8, align 4
%25 = sub nsw i32 %23, %24
%26 = sdiv i32 %25, 2
%27 = add nsw i32 %22, %26
store i32 %27, ptr %9, align 4
%28 = load i32, ptr %8, align 4
%29 = load i32, ptr %10, align 4
%30 = load i32, ptr %9, align 4
%31 = call i32 @printf(ptr noundef @.str.1, i32 noundef %28, i32 noundef %29, i32 noundef %30)
%32 = load ptr, ptr %5, align 8
%33 = load i32, ptr %9, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i32, ptr %32, i64 %34
%36 = load i32, ptr %35, align 4
%37 = load i32, ptr %7, align 4
%38 = icmp eq i32 %36, %37
br i1 %38, label %39, label %41
39: ; preds = %21
%40 = load i32, ptr %9, align 4
store i32 %40, ptr %4, align 4
br label %58
41: ; preds = %21
%42 = load ptr, ptr %5, align 8
%43 = load i32, ptr %9, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i32, ptr %42, i64 %44
%46 = load i32, ptr %45, align 4
%47 = load i32, ptr %7, align 4
%48 = icmp sgt i32 %46, %47
br i1 %48, label %49, label %52
49: ; preds = %41
%50 = load i32, ptr %9, align 4
%51 = sub nsw i32 %50, 1
store i32 %51, ptr %10, align 4
br label %55
52: ; preds = %41
%53 = load i32, ptr %9, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %8, align 4
br label %55
55: ; preds = %52, %49
br label %56
56: ; preds = %55
br label %17, !llvm.loop !6
57: ; preds = %17
store i32 -1, ptr %4, align 4
br label %58
58: ; preds = %57, %39
%59 = load i32, ptr %4, align 4
ret i32 %59
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_28jc20m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"search %d l=%d h=%d \0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"l=%d, h=%d, m=%d \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @bsearch(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
%11 = load i32, ptr %6, align 4
%12 = sub nsw i32 %11, 1
store i32 %12, ptr %10, align 4
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %8, align 4
%15 = load i32, ptr %10, align 4
%16 = call i32 @printf(ptr noundef @.str, i32 noundef %13, i32 noundef %14, i32 noundef %15)
%17 = load i32, ptr %8, align 4
%18 = load i32, ptr %10, align 4
%19 = icmp sle i32 %17, %18
br i1 %19, label %.lr.ph, label %59
.lr.ph: ; preds = %3
br label %20
20: ; preds = %.lr.ph, %55
%21 = load i32, ptr %8, align 4
%22 = load i32, ptr %10, align 4
%23 = load i32, ptr %8, align 4
%24 = sub nsw i32 %22, %23
%25 = sdiv i32 %24, 2
%26 = add nsw i32 %21, %25
store i32 %26, ptr %9, align 4
%27 = load i32, ptr %8, align 4
%28 = load i32, ptr %10, align 4
%29 = load i32, ptr %9, align 4
%30 = call i32 @printf(ptr noundef @.str.1, i32 noundef %27, i32 noundef %28, i32 noundef %29)
%31 = load ptr, ptr %5, align 8
%32 = load i32, ptr %9, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i32, ptr %31, i64 %33
%35 = load i32, ptr %34, align 4
%36 = load i32, ptr %7, align 4
%37 = icmp eq i32 %35, %36
br i1 %37, label %38, label %40
38: ; preds = %20
%39 = load i32, ptr %9, align 4
store i32 %39, ptr %4, align 4
br label %60
40: ; preds = %20
%41 = load ptr, ptr %5, align 8
%42 = load i32, ptr %9, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %41, i64 %43
%45 = load i32, ptr %44, align 4
%46 = load i32, ptr %7, align 4
%47 = icmp sgt i32 %45, %46
br i1 %47, label %48, label %51
48: ; preds = %40
%49 = load i32, ptr %9, align 4
%50 = sub nsw i32 %49, 1
store i32 %50, ptr %10, align 4
br label %54
51: ; preds = %40
%52 = load i32, ptr %9, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %8, align 4
br label %54
54: ; preds = %51, %48
br label %55
55: ; preds = %54
%56 = load i32, ptr %8, align 4
%57 = load i32, ptr %10, align 4
%58 = icmp sle i32 %56, %57
br i1 %58, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %55
br label %59
59: ; preds = %._crit_edge, %3
store i32 -1, ptr %4, align 4
br label %60
60: ; preds = %59, %38
%61 = load i32, ptr %4, align 4
ret i32 %61
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.