llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
|---|---|
; ModuleID = '/tmp/tmp8270170t.c'
source_filename = "/tmp/tmp8270170t.c"
target datalayout = "e-m:e-p270: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/tmp8270170t.c"
target datalayout = "e-m:e-p270: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/tmp5s2ad900.c'
source_filename = "/tmp/tmp5s2ad900.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"0x%.16llX\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @create_descriptor(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %5, align 4
%9 = and i32 %8, 983040
store i32 %9, ptr %7, align 4
%10 = load i32, ptr %6, align 4
%11 = shl i32 %10, 8
%12 = and i32 %11, 15793920
%13 = load i32, ptr %7, align 4
%14 = or i32 %13, %12
store i32 %14, ptr %7, align 4
%15 = load i32, ptr %4, align 4
%16 = ashr i32 %15, 16
%17 = and i32 %16, 255
%18 = load i32, ptr %7, align 4
%19 = or i32 %18, %17
store i32 %19, ptr %7, align 4
%20 = load i32, ptr %4, align 4
%21 = and i32 %20, -16777216
%22 = load i32, ptr %7, align 4
%23 = or i32 %22, %21
store i32 %23, ptr %7, align 4
%24 = load i32, ptr %7, align 4
%25 = shl i32 %24, 32
store i32 %25, ptr %7, align 4
%26 = load i32, ptr %4, align 4
%27 = shl i32 %26, 16
%28 = load i32, ptr %7, align 4
%29 = or i32 %28, %27
store i32 %29, ptr %7, align 4
%30 = load i32, ptr %5, align 4
%31 = and i32 %30, 65535
%32 = load i32, ptr %7, align 4
%33 = or i32 %32, %31
store i32 %33, ptr %7, align 4
%34 = load i32, ptr %7, align 4
%35 = call i32 @printf(ptr noundef @.str, i32 noundef %34)
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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5s2ad900.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"0x%.16llX\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @create_descriptor(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %5, align 4
%9 = and i32 %8, 983040
store i32 %9, ptr %7, align 4
%10 = load i32, ptr %6, align 4
%11 = shl i32 %10, 8
%12 = and i32 %11, 15793920
%13 = load i32, ptr %7, align 4
%14 = or i32 %13, %12
store i32 %14, ptr %7, align 4
%15 = load i32, ptr %4, align 4
%16 = ashr i32 %15, 16
%17 = and i32 %16, 255
%18 = load i32, ptr %7, align 4
%19 = or i32 %18, %17
store i32 %19, ptr %7, align 4
%20 = load i32, ptr %4, align 4
%21 = and i32 %20, -16777216
%22 = load i32, ptr %7, align 4
%23 = or i32 %22, %21
store i32 %23, ptr %7, align 4
%24 = load i32, ptr %7, align 4
%25 = shl i32 %24, 32
store i32 %25, ptr %7, align 4
%26 = load i32, ptr %4, align 4
%27 = shl i32 %26, 16
%28 = load i32, ptr %7, align 4
%29 = or i32 %28, %27
store i32 %29, ptr %7, align 4
%30 = load i32, ptr %5, align 4
%31 = and i32 %30, 65535
%32 = load i32, ptr %7, align 4
%33 = or i32 %32, %31
store i32 %33, ptr %7, align 4
%34 = load i32, ptr %7, align 4
%35 = call i32 @printf(ptr noundef @.str, i32 noundef %34)
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"}
|
; ModuleID = '/tmp/tmp1o3c9yga.c'
source_filename = "/tmp/tmp1o3c9yga.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strCount(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
store i32 0, ptr %5, align 4
%7 = load ptr, ptr %3, align 8
%8 = icmp ne ptr %7, null
%9 = zext i1 %8 to i32
%10 = call i32 @assert(i32 noundef %9)
%11 = load ptr, ptr %4, align 8
%12 = icmp ne ptr %11, null
%13 = zext i1 %12 to i32
%14 = call i32 @assert(i32 noundef %13)
%15 = load ptr, ptr %3, align 8
%16 = load ptr, ptr %4, align 8
%17 = call ptr @strstr(ptr noundef %15, ptr noundef %16)
store ptr %17, ptr %6, align 8
br label %18
18: ; preds = %21, %2
%19 = load ptr, ptr %6, align 8
%20 = icmp ne ptr %19, null
br i1 %20, label %21, label %28
21: ; preds = %18
%22 = load i32, ptr %5, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %5, align 4
%24 = load ptr, ptr %6, align 8
%25 = getelementptr inbounds i8, ptr %24, i64 1
%26 = load ptr, ptr %4, align 8
%27 = call ptr @strstr(ptr noundef %25, ptr noundef %26)
store ptr %27, ptr %6, align 8
br label %18, !llvm.loop !6
28: ; preds = %18
%29 = load i32, ptr %5, align 4
ret i32 %29
}
declare i32 @assert(i32 noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1o3c9yga.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strCount(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
store i32 0, ptr %5, align 4
%7 = load ptr, ptr %3, align 8
%8 = icmp ne ptr %7, null
%9 = zext i1 %8 to i32
%10 = call i32 @assert(i32 noundef %9)
%11 = load ptr, ptr %4, align 8
%12 = icmp ne ptr %11, null
%13 = zext i1 %12 to i32
%14 = call i32 @assert(i32 noundef %13)
%15 = load ptr, ptr %3, align 8
%16 = load ptr, ptr %4, align 8
%17 = call ptr @strstr(ptr noundef %15, ptr noundef %16)
store ptr %17, ptr %6, align 8
%18 = load ptr, ptr %6, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %.lr.ph, label %29
.lr.ph: ; preds = %2
br label %20
20: ; preds = %.lr.ph, %20
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %5, align 4
%23 = load ptr, ptr %6, align 8
%24 = getelementptr inbounds i8, ptr %23, i64 1
%25 = load ptr, ptr %4, align 8
%26 = call ptr @strstr(ptr noundef %24, ptr noundef %25)
store ptr %26, ptr %6, align 8
%27 = load ptr, ptr %6, align 8
%28 = icmp ne ptr %27, null
br i1 %28, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %29
29: ; preds = %._crit_edge, %2
%30 = load i32, ptr %5, align 4
ret i32 %30
}
declare i32 @assert(i32 noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpru1__u3i.c'
source_filename = "/tmp/tmpru1__u3i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"TestString\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"ing\00", align 1
@.str.2 = private unnamed_addr constant [164 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/string/strrstr.c\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"String should be found at end\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @strrstr_end() #0 {
%1 = alloca ptr, align 8
store ptr @.str, ptr %1, align 8
%2 = load ptr, ptr %1, align 8
%3 = call ptr @strrstr(ptr noundef %2, ptr noundef @.str.1)
%4 = load ptr, ptr %1, align 8
%5 = getelementptr inbounds i8, ptr %4, i64 7
%6 = icmp eq ptr %3, %5
%7 = zext i1 %6 to i32
%8 = call i32 @Assert_real(i32 noundef %7, ptr noundef @.str.2, i32 noundef 29, ptr noundef @.str.3)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare ptr @strrstr(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/tmpru1__u3i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"TestString\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"ing\00", align 1
@.str.2 = private unnamed_addr constant [164 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/string/strrstr.c\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"String should be found at end\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @strrstr_end() #0 {
%1 = alloca ptr, align 8
store ptr @.str, ptr %1, align 8
%2 = load ptr, ptr %1, align 8
%3 = call ptr @strrstr(ptr noundef %2, ptr noundef @.str.1)
%4 = load ptr, ptr %1, align 8
%5 = getelementptr inbounds i8, ptr %4, i64 7
%6 = icmp eq ptr %3, %5
%7 = zext i1 %6 to i32
%8 = call i32 @Assert_real(i32 noundef %7, ptr noundef @.str.2, i32 noundef 29, ptr noundef @.str.3)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare ptr @strrstr(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/tmpdtmshkum.c'
source_filename = "/tmp/tmpdtmshkum.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"File name? \00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c".sav\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @advsave(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca [50 x i8], align 16
%11 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
%12 = call i32 @trm_str(ptr noundef @.str)
%13 = getelementptr inbounds [50 x i8], ptr %10, i64 0, i64 0
%14 = call i32 @trm_get(ptr noundef %13)
%15 = getelementptr inbounds [50 x i8], ptr %10, i64 0, i64 0
%16 = call i32 @strcat(ptr noundef %15, ptr noundef @.str.1)
%17 = getelementptr inbounds [50 x i8], ptr %10, i64 0, i64 0
%18 = load i32, ptr @O_WRONLY, align 4
%19 = load i32, ptr @O_TRUNC, align 4
%20 = or i32 %18, %19
%21 = load i32, ptr @O_CREAT, align 4
%22 = or i32 %20, %21
%23 = call i32 @open(ptr noundef %17, i32 noundef %22, i32 noundef 384)
store i32 %23, ptr %11, align 4
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %4
store i32 0, ptr %5, align 4
br label %49
26: ; preds = %4
%27 = load i32, ptr %11, align 4
%28 = load ptr, ptr %6, align 8
%29 = load i32, ptr %7, align 4
%30 = call i32 @write(i32 noundef %27, ptr noundef %28, i32 noundef %29)
%31 = load i32, ptr %7, align 4
%32 = icmp ne i32 %30, %31
br i1 %32, label %33, label %36
33: ; preds = %26
%34 = load i32, ptr %11, align 4
%35 = call i32 @close(i32 noundef %34)
store i32 0, ptr %5, align 4
br label %49
36: ; preds = %26
%37 = load i32, ptr %11, align 4
%38 = load ptr, ptr %8, align 8
%39 = load i32, ptr %9, align 4
%40 = call i32 @write(i32 noundef %37, ptr noundef %38, i32 noundef %39)
%41 = load i32, ptr %9, align 4
%42 = icmp ne i32 %40, %41
br i1 %42, label %43, label %46
43: ; preds = %36
%44 = load i32, ptr %11, align 4
%45 = call i32 @close(i32 noundef %44)
store i32 0, ptr %5, align 4
br label %49
46: ; preds = %36
%47 = load i32, ptr %11, align 4
%48 = call i32 @close(i32 noundef %47)
store i32 1, ptr %5, align 4
br label %49
49: ; preds = %46, %43, %33, %25
%50 = load i32, ptr %5, align 4
ret i32 %50
}
declare i32 @trm_str(ptr noundef) #1
declare i32 @trm_get(ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdtmshkum.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"File name? \00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c".sav\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @advsave(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca [50 x i8], align 16
%11 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
%12 = call i32 @trm_str(ptr noundef @.str)
%13 = getelementptr inbounds [50 x i8], ptr %10, i64 0, i64 0
%14 = call i32 @trm_get(ptr noundef %13)
%15 = getelementptr inbounds [50 x i8], ptr %10, i64 0, i64 0
%16 = call i32 @strcat(ptr noundef %15, ptr noundef @.str.1)
%17 = getelementptr inbounds [50 x i8], ptr %10, i64 0, i64 0
%18 = load i32, ptr @O_WRONLY, align 4
%19 = load i32, ptr @O_TRUNC, align 4
%20 = or i32 %18, %19
%21 = load i32, ptr @O_CREAT, align 4
%22 = or i32 %20, %21
%23 = call i32 @open(ptr noundef %17, i32 noundef %22, i32 noundef 384)
store i32 %23, ptr %11, align 4
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %4
store i32 0, ptr %5, align 4
br label %49
26: ; preds = %4
%27 = load i32, ptr %11, align 4
%28 = load ptr, ptr %6, align 8
%29 = load i32, ptr %7, align 4
%30 = call i32 @write(i32 noundef %27, ptr noundef %28, i32 noundef %29)
%31 = load i32, ptr %7, align 4
%32 = icmp ne i32 %30, %31
br i1 %32, label %33, label %36
33: ; preds = %26
%34 = load i32, ptr %11, align 4
%35 = call i32 @close(i32 noundef %34)
store i32 0, ptr %5, align 4
br label %49
36: ; preds = %26
%37 = load i32, ptr %11, align 4
%38 = load ptr, ptr %8, align 8
%39 = load i32, ptr %9, align 4
%40 = call i32 @write(i32 noundef %37, ptr noundef %38, i32 noundef %39)
%41 = load i32, ptr %9, align 4
%42 = icmp ne i32 %40, %41
br i1 %42, label %43, label %46
43: ; preds = %36
%44 = load i32, ptr %11, align 4
%45 = call i32 @close(i32 noundef %44)
store i32 0, ptr %5, align 4
br label %49
46: ; preds = %36
%47 = load i32, ptr %11, align 4
%48 = call i32 @close(i32 noundef %47)
store i32 1, ptr %5, align 4
br label %49
49: ; preds = %46, %43, %33, %25
%50 = load i32, ptr %5, align 4
ret i32 %50
}
declare i32 @trm_str(ptr noundef) #1
declare i32 @trm_get(ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxecux23_.c'
source_filename = "/tmp/tmpxecux23_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @bar(i32 noundef 1)
%3 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @bar(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxecux23_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @bar(i32 noundef 1)
%3 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @bar(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpiqr_urv7.c'
source_filename = "/tmp/tmpiqr_urv7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @clean() #0 {
br label %1
1: ; preds = %5, %0
%2 = call signext i8 (...) @getchar()
%3 = sext i8 %2 to i32
%4 = icmp ne i32 %3, 10
br i1 %4, label %5, label %6
5: ; preds = %1
br label %1, !llvm.loop !6
6: ; preds = %1
ret void
}
declare signext i8 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpiqr_urv7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @clean() #0 {
br label %1
1: ; preds = %1, %0
%2 = call signext i8 (...) @getchar()
%3 = sext i8 %2 to i32
%4 = icmp ne i32 %3, 10
br i1 %4, label %1, label %5, !llvm.loop !6
5: ; preds = %1
ret void
}
declare signext i8 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpmu_b2pbs.c'
source_filename = "/tmp/tmpmu_b2pbs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @slaRvgalc(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
store float %0, ptr %3, align 4
store float %1, ptr %4, align 4
%8 = load float, ptr %3, align 4
store float %8, ptr %5, align 4
%9 = load float, ptr %4, align 4
store float %9, ptr %6, align 4
%10 = call float @sla_rvgalc_(ptr noundef %5, ptr noundef %6)
store float %10, ptr %7, align 4
%11 = load float, ptr %7, align 4
ret float %11
}
declare float @sla_rvgalc_(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/tmpmu_b2pbs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @slaRvgalc(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
store float %0, ptr %3, align 4
store float %1, ptr %4, align 4
%8 = load float, ptr %3, align 4
store float %8, ptr %5, align 4
%9 = load float, ptr %4, align 4
store float %9, ptr %6, align 4
%10 = call float @sla_rvgalc_(ptr noundef %5, ptr noundef %6)
store float %10, ptr %7, align 4
%11 = load float, ptr %7, align 4
ret float %11
}
declare float @sla_rvgalc_(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/tmpuqbwm5ej.c'
source_filename = "/tmp/tmpuqbwm5ej.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getinteger() #0 {
%1 = call i64 (...) @GetInteger322()
ret i64 %1
}
declare i64 @GetInteger322(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuqbwm5ej.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getinteger() #0 {
%1 = call i64 (...) @GetInteger322()
ret i64 %1
}
declare i64 @GetInteger322(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp33uis0fo.c'
source_filename = "/tmp/tmp33uis0fo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [27 x i8] c"Content-type:text/html\0D\0A\0D\0A\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c"<html><title>art upgrade</title>\0A\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"<body>\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"CONTENT_LENGTH\00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c"<br>malloc failed <br>\00", align 1
@stdin = dso_local global ptr null, align 8
@.str.5 = private unnamed_addr constant [22 x i8] c"<br>fread failed <br>\00", align 1
@.str.6 = private unnamed_addr constant [33 x i8] c"<br>find head offset failed <br>\00", align 1
@.str.7 = private unnamed_addr constant [18 x i8] c"invalid art! <br>\00", align 1
@.str.8 = private unnamed_addr constant [15 x i8] c"/dev/mtdblock4\00", align 1
@.str.9 = private unnamed_addr constant [4 x i8] c"rb+\00", align 1
@.str.10 = private unnamed_addr constant [28 x i8] c"open /dev/mtdblock4 failed\0A\00", align 1
@.str.11 = private unnamed_addr constant [23 x i8] c"<br>fwrite failed <br>\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.12 = private unnamed_addr constant [42 x i8] c"<br>read uboot from mtdblock4 failed <br>\00", align 1
@.str.13 = private unnamed_addr constant [28 x i8] c"<br>uboot check failed <br>\00", align 1
@.str.14 = private unnamed_addr constant [34 x i8] c"<br>ART upgrade successful :)<br>\00", align 1
@.str.15 = private unnamed_addr constant [9 x i8] c"</body>\0A\00", align 1
@.str.16 = private unnamed_addr constant [10 x i8] c"\0A</html>\0A\00", align 1
@.str.17 = private unnamed_addr constant [30 x i8] c"<br>ART upgrade failed :(<br>\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%15 = load i32, ptr @stdout, align 4
%16 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str)
%17 = load i32, ptr @stdout, align 4
%18 = call i32 @fprintf(i32 noundef %17, ptr noundef @.str.1)
%19 = load i32, ptr @stdout, align 4
%20 = call i32 @fprintf(i32 noundef %19, ptr noundef @.str.2)
%21 = call i32 @getenv(ptr noundef @.str.3)
%22 = call i32 @atoi(i32 noundef %21)
store i32 %22, ptr %3, align 4
%23 = load i32, ptr %3, align 4
%24 = sext i32 %23 to i64
%25 = mul i64 1, %24
%26 = trunc i64 %25 to i32
%27 = call i64 @malloc(i32 noundef %26)
%28 = inttoptr i64 %27 to ptr
store ptr %28, ptr %4, align 8
%29 = load ptr, ptr %4, align 8
%30 = icmp eq ptr %29, null
br i1 %30, label %31, label %33
31: ; preds = %0
%32 = call i32 @printf(ptr noundef @.str.4)
br label %128
33: ; preds = %0
%34 = load ptr, ptr %4, align 8
%35 = load i32, ptr %3, align 4
%36 = load ptr, ptr @stdin, align 8
%37 = call i32 @fread(ptr noundef %34, i32 noundef 1, i32 noundef %35, ptr noundef %36)
store i32 %37, ptr %6, align 4
%38 = load i32, ptr %6, align 4
%39 = load i32, ptr %3, align 4
%40 = icmp ne i32 %38, %39
br i1 %40, label %41, label %43
41: ; preds = %33
%42 = call i32 @printf(ptr noundef @.str.5)
br label %128
43: ; preds = %33
store i32 0, ptr %6, align 4
%44 = load ptr, ptr %4, align 8
%45 = call i32 @find_head_offset(ptr noundef %44)
store i32 %45, ptr %5, align 4
%46 = load i32, ptr %5, align 4
%47 = icmp eq i32 %46, -1
br i1 %47, label %48, label %50
48: ; preds = %43
%49 = call i32 @printf(ptr noundef @.str.6)
br label %128
50: ; preds = %43
%51 = load i32, ptr %5, align 4
%52 = load ptr, ptr %4, align 8
%53 = sext i32 %51 to i64
%54 = getelementptr inbounds i8, ptr %52, i64 %53
store ptr %54, ptr %4, align 8
store i32 65548, ptr %7, align 4
%55 = load ptr, ptr %4, align 8
%56 = load i32, ptr %7, align 4
%57 = call i64 @decode_boot(ptr noundef %55, i32 noundef %56)
%58 = icmp ne i64 %57, 0
br i1 %58, label %59, label %61
59: ; preds = %50
%60 = call i32 @printf(ptr noundef @.str.7)
br label %128
61: ; preds = %50
store ptr null, ptr %8, align 8
%62 = call ptr @fopen(ptr noundef @.str.8, ptr noundef @.str.9)
store ptr %62, ptr %8, align 8
%63 = load ptr, ptr %8, align 8
%64 = icmp eq ptr %63, null
br i1 %64, label %65, label %67
65: ; preds = %61
%66 = call i32 @printf(ptr noundef @.str.10)
br label %128
67: ; preds = %61
store i32 0, ptr %6, align 4
%68 = load ptr, ptr %4, align 8
%69 = getelementptr inbounds i8, ptr %68, i64 12
%70 = load ptr, ptr %8, align 8
%71 = call i32 @fwrite(ptr noundef %69, i32 noundef 1, i32 noundef 65536, ptr noundef %70)
store i32 %71, ptr %6, align 4
%72 = load i32, ptr %6, align 4
%73 = icmp ne i32 %72, 65536
br i1 %73, label %74, label %76
74: ; preds = %67
%75 = call i32 @printf(ptr noundef @.str.11)
br label %128
76: ; preds = %67
%77 = load ptr, ptr %8, align 8
%78 = load i32, ptr @SEEK_SET, align 4
%79 = call i32 @fseek(ptr noundef %77, i32 noundef 0, i32 noundef %78)
store ptr null, ptr %9, align 8
store i32 0, ptr %10, align 4
store i32 0, ptr %11, align 4
store ptr null, ptr %12, align 8
store i32 0, ptr %13, align 4
%80 = load ptr, ptr %4, align 8
%81 = getelementptr inbounds i8, ptr %80, i64 8
%82 = load i32, ptr %81, align 4
store i32 %82, ptr %10, align 4
store i32 0, ptr %14, align 4
%83 = call i64 @malloc(i32 noundef 65536)
%84 = inttoptr i64 %83 to ptr
store ptr %84, ptr %9, align 8
%85 = load ptr, ptr %9, align 8
%86 = call i32 @memset(ptr noundef %85, i32 noundef 0, i32 noundef 65536)
%87 = load ptr, ptr %9, align 8
%88 = load ptr, ptr %8, align 8
%89 = call i32 @fread(ptr noundef %87, i32 noundef 1, i32 noundef 65536, ptr noundef %88)
store i32 %89, ptr %14, align 4
%90 = load i32, ptr %14, align 4
%91 = icmp ne i32 %90, 65536
br i1 %91, label %92, label %94
92: ; preds = %76
%93 = call i32 @printf(ptr noundef @.str.12)
br label %128
94: ; preds = %76
%95 = load ptr, ptr %9, align 8
store ptr %95, ptr %12, align 8
store i32 0, ptr %13, align 4
br label %96
96: ; preds = %107, %94
%97 = load i32, ptr %13, align 4
%98 = icmp slt i32 %97, 16384
br i1 %98, label %99, label %110
99: ; preds = %96
%100 = load ptr, ptr %12, align 8
%101 = load i32, ptr %13, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i32, ptr %100, i64 %102
%104 = load i32, ptr %103, align 4
%105 = load i32, ptr %11, align 4
%106 = xor i32 %105, %104
store i32 %106, ptr %11, align 4
br label %107
107: ; preds = %99
%108 = load i32, ptr %13, align 4
%109 = add nsw i32 %108, 1
store i32 %109, ptr %13, align 4
br label %96, !llvm.loop !6
110: ; preds = %96
%111 = load i32, ptr %11, align 4
%112 = load i32, ptr %10, align 4
%113 = icmp ne i32 %111, %112
br i1 %113, label %114, label %116
114: ; preds = %110
%115 = call i32 @printf(ptr noundef @.str.13)
br label %128
116: ; preds = %110
%117 = load ptr, ptr %8, align 8
%118 = call i32 @fclose(ptr noundef %117)
%119 = load ptr, ptr %4, align 8
%120 = call i32 @free(ptr noundef %119)
%121 = load ptr, ptr %9, align 8
%122 = call i32 @free(ptr noundef %121)
%123 = call i32 @printf(ptr noundef @.str.14)
%124 = load i32, ptr @stdout, align 4
%125 = call i32 @fprintf(i32 noundef %124, ptr noundef @.str.15)
%126 = load i32, ptr @stdout, align 4
%127 = call i32 @fprintf(i32 noundef %126, ptr noundef @.str.16)
store i32 0, ptr %1, align 4
br label %134
128: ; preds = %114, %92, %74, %65, %59, %48, %41, %31
%129 = call i32 @printf(ptr noundef @.str.17)
%130 = load i32, ptr @stdout, align 4
%131 = call i32 @fprintf(i32 noundef %130, ptr noundef @.str.15)
%132 = load i32, ptr @stdout, align 4
%133 = call i32 @fprintf(i32 noundef %132, ptr noundef @.str.16)
store i32 1, ptr %1, align 4
br label %134
134: ; preds = %128, %116
%135 = load i32, ptr %1, align 4
ret i32 %135
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @atoi(i32 noundef) #1
declare i32 @getenv(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @find_head_offset(ptr noundef) #1
declare i64 @decode_boot(ptr noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp33uis0fo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [27 x i8] c"Content-type:text/html\0D\0A\0D\0A\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c"<html><title>art upgrade</title>\0A\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"<body>\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"CONTENT_LENGTH\00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c"<br>malloc failed <br>\00", align 1
@stdin = dso_local global ptr null, align 8
@.str.5 = private unnamed_addr constant [22 x i8] c"<br>fread failed <br>\00", align 1
@.str.6 = private unnamed_addr constant [33 x i8] c"<br>find head offset failed <br>\00", align 1
@.str.7 = private unnamed_addr constant [18 x i8] c"invalid art! <br>\00", align 1
@.str.8 = private unnamed_addr constant [15 x i8] c"/dev/mtdblock4\00", align 1
@.str.9 = private unnamed_addr constant [4 x i8] c"rb+\00", align 1
@.str.10 = private unnamed_addr constant [28 x i8] c"open /dev/mtdblock4 failed\0A\00", align 1
@.str.11 = private unnamed_addr constant [23 x i8] c"<br>fwrite failed <br>\00", align 1
@SEEK_SET = dso_local global i32 0, align 4
@.str.12 = private unnamed_addr constant [42 x i8] c"<br>read uboot from mtdblock4 failed <br>\00", align 1
@.str.13 = private unnamed_addr constant [28 x i8] c"<br>uboot check failed <br>\00", align 1
@.str.14 = private unnamed_addr constant [34 x i8] c"<br>ART upgrade successful :)<br>\00", align 1
@.str.15 = private unnamed_addr constant [9 x i8] c"</body>\0A\00", align 1
@.str.16 = private unnamed_addr constant [10 x i8] c"\0A</html>\0A\00", align 1
@.str.17 = private unnamed_addr constant [30 x i8] c"<br>ART upgrade failed :(<br>\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%15 = load i32, ptr @stdout, align 4
%16 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str)
%17 = load i32, ptr @stdout, align 4
%18 = call i32 @fprintf(i32 noundef %17, ptr noundef @.str.1)
%19 = load i32, ptr @stdout, align 4
%20 = call i32 @fprintf(i32 noundef %19, ptr noundef @.str.2)
%21 = call i32 @getenv(ptr noundef @.str.3)
%22 = call i32 @atoi(i32 noundef %21)
store i32 %22, ptr %3, align 4
%23 = load i32, ptr %3, align 4
%24 = sext i32 %23 to i64
%25 = mul i64 1, %24
%26 = trunc i64 %25 to i32
%27 = call i64 @malloc(i32 noundef %26)
%28 = inttoptr i64 %27 to ptr
store ptr %28, ptr %4, align 8
%29 = load ptr, ptr %4, align 8
%30 = icmp eq ptr %29, null
br i1 %30, label %31, label %33
31: ; preds = %0
%32 = call i32 @printf(ptr noundef @.str.4)
br label %129
33: ; preds = %0
%34 = load ptr, ptr %4, align 8
%35 = load i32, ptr %3, align 4
%36 = load ptr, ptr @stdin, align 8
%37 = call i32 @fread(ptr noundef %34, i32 noundef 1, i32 noundef %35, ptr noundef %36)
store i32 %37, ptr %6, align 4
%38 = load i32, ptr %6, align 4
%39 = load i32, ptr %3, align 4
%40 = icmp ne i32 %38, %39
br i1 %40, label %41, label %43
41: ; preds = %33
%42 = call i32 @printf(ptr noundef @.str.5)
br label %129
43: ; preds = %33
store i32 0, ptr %6, align 4
%44 = load ptr, ptr %4, align 8
%45 = call i32 @find_head_offset(ptr noundef %44)
store i32 %45, ptr %5, align 4
%46 = load i32, ptr %5, align 4
%47 = icmp eq i32 %46, -1
br i1 %47, label %48, label %50
48: ; preds = %43
%49 = call i32 @printf(ptr noundef @.str.6)
br label %129
50: ; preds = %43
%51 = load i32, ptr %5, align 4
%52 = load ptr, ptr %4, align 8
%53 = sext i32 %51 to i64
%54 = getelementptr inbounds i8, ptr %52, i64 %53
store ptr %54, ptr %4, align 8
store i32 65548, ptr %7, align 4
%55 = load ptr, ptr %4, align 8
%56 = load i32, ptr %7, align 4
%57 = call i64 @decode_boot(ptr noundef %55, i32 noundef %56)
%58 = icmp ne i64 %57, 0
br i1 %58, label %59, label %61
59: ; preds = %50
%60 = call i32 @printf(ptr noundef @.str.7)
br label %129
61: ; preds = %50
store ptr null, ptr %8, align 8
%62 = call ptr @fopen(ptr noundef @.str.8, ptr noundef @.str.9)
store ptr %62, ptr %8, align 8
%63 = load ptr, ptr %8, align 8
%64 = icmp eq ptr %63, null
br i1 %64, label %65, label %67
65: ; preds = %61
%66 = call i32 @printf(ptr noundef @.str.10)
br label %129
67: ; preds = %61
store i32 0, ptr %6, align 4
%68 = load ptr, ptr %4, align 8
%69 = getelementptr inbounds i8, ptr %68, i64 12
%70 = load ptr, ptr %8, align 8
%71 = call i32 @fwrite(ptr noundef %69, i32 noundef 1, i32 noundef 65536, ptr noundef %70)
store i32 %71, ptr %6, align 4
%72 = load i32, ptr %6, align 4
%73 = icmp ne i32 %72, 65536
br i1 %73, label %74, label %76
74: ; preds = %67
%75 = call i32 @printf(ptr noundef @.str.11)
br label %129
76: ; preds = %67
%77 = load ptr, ptr %8, align 8
%78 = load i32, ptr @SEEK_SET, align 4
%79 = call i32 @fseek(ptr noundef %77, i32 noundef 0, i32 noundef %78)
store ptr null, ptr %9, align 8
store i32 0, ptr %10, align 4
store i32 0, ptr %11, align 4
store ptr null, ptr %12, align 8
store i32 0, ptr %13, align 4
%80 = load ptr, ptr %4, align 8
%81 = getelementptr inbounds i8, ptr %80, i64 8
%82 = load i32, ptr %81, align 4
store i32 %82, ptr %10, align 4
store i32 0, ptr %14, align 4
%83 = call i64 @malloc(i32 noundef 65536)
%84 = inttoptr i64 %83 to ptr
store ptr %84, ptr %9, align 8
%85 = load ptr, ptr %9, align 8
%86 = call i32 @memset(ptr noundef %85, i32 noundef 0, i32 noundef 65536)
%87 = load ptr, ptr %9, align 8
%88 = load ptr, ptr %8, align 8
%89 = call i32 @fread(ptr noundef %87, i32 noundef 1, i32 noundef 65536, ptr noundef %88)
store i32 %89, ptr %14, align 4
%90 = load i32, ptr %14, align 4
%91 = icmp ne i32 %90, 65536
br i1 %91, label %92, label %94
92: ; preds = %76
%93 = call i32 @printf(ptr noundef @.str.12)
br label %129
94: ; preds = %76
%95 = load ptr, ptr %9, align 8
store ptr %95, ptr %12, align 8
store i32 0, ptr %13, align 4
%96 = load i32, ptr %13, align 4
%97 = icmp slt i32 %96, 16384
br i1 %97, label %.lr.ph, label %111
.lr.ph: ; preds = %94
br label %98
98: ; preds = %.lr.ph, %106
%99 = load ptr, ptr %12, align 8
%100 = load i32, ptr %13, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds i32, ptr %99, i64 %101
%103 = load i32, ptr %102, align 4
%104 = load i32, ptr %11, align 4
%105 = xor i32 %104, %103
store i32 %105, ptr %11, align 4
br label %106
106: ; preds = %98
%107 = load i32, ptr %13, align 4
%108 = add nsw i32 %107, 1
store i32 %108, ptr %13, align 4
%109 = load i32, ptr %13, align 4
%110 = icmp slt i32 %109, 16384
br i1 %110, label %98, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %106
br label %111
111: ; preds = %._crit_edge, %94
%112 = load i32, ptr %11, align 4
%113 = load i32, ptr %10, align 4
%114 = icmp ne i32 %112, %113
br i1 %114, label %115, label %117
115: ; preds = %111
%116 = call i32 @printf(ptr noundef @.str.13)
br label %129
117: ; preds = %111
%118 = load ptr, ptr %8, align 8
%119 = call i32 @fclose(ptr noundef %118)
%120 = load ptr, ptr %4, align 8
%121 = call i32 @free(ptr noundef %120)
%122 = load ptr, ptr %9, align 8
%123 = call i32 @free(ptr noundef %122)
%124 = call i32 @printf(ptr noundef @.str.14)
%125 = load i32, ptr @stdout, align 4
%126 = call i32 @fprintf(i32 noundef %125, ptr noundef @.str.15)
%127 = load i32, ptr @stdout, align 4
%128 = call i32 @fprintf(i32 noundef %127, ptr noundef @.str.16)
store i32 0, ptr %1, align 4
br label %135
129: ; preds = %115, %92, %74, %65, %59, %48, %41, %31
%130 = call i32 @printf(ptr noundef @.str.17)
%131 = load i32, ptr @stdout, align 4
%132 = call i32 @fprintf(i32 noundef %131, ptr noundef @.str.15)
%133 = load i32, ptr @stdout, align 4
%134 = call i32 @fprintf(i32 noundef %133, ptr noundef @.str.16)
store i32 1, ptr %1, align 4
br label %135
135: ; preds = %129, %117
%136 = load i32, ptr %1, align 4
ret i32 %136
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @atoi(i32 noundef) #1
declare i32 @getenv(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @find_head_offset(ptr noundef) #1
declare i64 @decode_boot(ptr noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp1y51l8ha.c'
source_filename = "/tmp/tmp1y51l8ha.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 i16, align 2
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %4
4: ; preds = %9, %0
%5 = load i32, ptr %2, align 4
%6 = load i16, ptr %3, align 2
%7 = zext i16 %6 to i32
%8 = icmp ult i32 %5, %7
br i1 %8, label %9, label %12
9: ; preds = %4
%10 = load i32, ptr %2, align 4
%11 = add i32 %10, 2
store i32 %11, ptr %2, align 4
br label %4, !llvm.loop !6
12: ; preds = %4
%13 = load i32, ptr %2, align 4
%14 = urem i32 %13, 2
%15 = icmp ne i32 %14, 0
%16 = xor i1 %15, true
%17 = zext i1 %16 to i32
%18 = call i32 @__VERIFIER_assert(i32 noundef %17)
%19 = load i32, ptr %1, align 4
ret i32 %19
}
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/tmp1y51l8ha.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 i16, align 2
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = load i16, ptr %3, align 2
%6 = zext i16 %5 to i32
%7 = icmp ult i32 %4, %6
br i1 %7, label %.lr.ph, label %15
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %8
%9 = load i32, ptr %2, align 4
%10 = add i32 %9, 2
store i32 %10, ptr %2, align 4
%11 = load i32, ptr %2, align 4
%12 = load i16, ptr %3, align 2
%13 = zext i16 %12 to i32
%14 = icmp ult i32 %11, %13
br i1 %14, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %8
br label %15
15: ; preds = %._crit_edge, %0
%16 = load i32, ptr %2, align 4
%17 = urem i32 %16, 2
%18 = icmp ne i32 %17, 0
%19 = xor i1 %18, true
%20 = zext i1 %19 to i32
%21 = call i32 @__VERIFIER_assert(i32 noundef %20)
%22 = load i32, ptr %1, align 4
ret i32 %22
}
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/tmp7vfj50v0.c'
source_filename = "/tmp/tmp7vfj50v0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @densearray_kernel_cast_1d_u8_to_f32(i64 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
store i64 %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i64 0, ptr %7, align 8
br label %8
8: ; preds = %21, %3
%9 = load i64, ptr %7, align 8
%10 = load i64, ptr %4, align 8
%11 = icmp ult i64 %9, %10
br i1 %11, label %12, label %24
12: ; preds = %8
%13 = load ptr, ptr %5, align 8
%14 = load i64, ptr %7, align 8
%15 = getelementptr inbounds i64, ptr %13, i64 %14
%16 = load i64, ptr %15, align 8
%17 = sitofp i64 %16 to float
%18 = load ptr, ptr %6, align 8
%19 = load i64, ptr %7, align 8
%20 = getelementptr inbounds float, ptr %18, i64 %19
store float %17, ptr %20, align 4
br label %21
21: ; preds = %12
%22 = load i64, ptr %7, align 8
%23 = add i64 %22, 1
store i64 %23, ptr %7, align 8
br label %8, !llvm.loop !6
24: ; 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/tmp7vfj50v0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @densearray_kernel_cast_1d_u8_to_f32(i64 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
store i64 %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i64 0, ptr %7, align 8
%8 = load i64, ptr %7, align 8
%9 = load i64, ptr %4, align 8
%10 = icmp ult i64 %8, %9
br i1 %10, label %.lr.ph, label %26
.lr.ph: ; preds = %3
br label %11
11: ; preds = %.lr.ph, %20
%12 = load ptr, ptr %5, align 8
%13 = load i64, ptr %7, align 8
%14 = getelementptr inbounds i64, ptr %12, i64 %13
%15 = load i64, ptr %14, align 8
%16 = sitofp i64 %15 to float
%17 = load ptr, ptr %6, align 8
%18 = load i64, ptr %7, align 8
%19 = getelementptr inbounds float, ptr %17, i64 %18
store float %16, ptr %19, align 4
br label %20
20: ; preds = %11
%21 = load i64, ptr %7, align 8
%22 = add i64 %21, 1
store i64 %22, ptr %7, align 8
%23 = load i64, ptr %7, align 8
%24 = load i64, ptr %4, align 8
%25 = icmp ult i64 %23, %24
br i1 %25, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %26
26: ; 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/tmp8aldhbfs.c'
source_filename = "/tmp/tmp8aldhbfs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [71 x i8] c" rndm_walker requires 6 arguments and has a seventh optional argument\0A\00", align 1
@.str.1 = private unnamed_addr constant [97 x i8] c" -iN -i signifies intialization N indicates the core on which the buffer should be initialized\0A\00", align 1
@.str.2 = private unnamed_addr constant [88 x i8] c" -rM -r signifies run M indicates which core the pointer walker should be executed on\0A\00", align 1
@.str.3 = private unnamed_addr constant [163 x i8] c" -lN -l signifies lines N indicates the number of lines used in the pointer chase loop, this size controls in which level of cache/memory the buffer will reside\0A\00", align 1
@.str.4 = private unnamed_addr constant [146 x i8] c" -sN -s signifies stride N indicates the number of pages in the stride. thus the stride = N*page_size + 64. N should be 0 to avoid DTLB effects\0A\00", align 1
@.str.5 = private unnamed_addr constant [102 x i8] c" -SN -S signifies segments N indicates the number of segments that the buffer will be divided into.\0A\00", align 1
@.str.6 = private unnamed_addr constant [169 x i8] c" The number of segments must be greater than the number of memory access streams the HW prefetcher can track for the randomization to defeat the HW prefetcher.\0A\00", align 1
@.str.7 = private unnamed_addr constant [90 x i8] c" if it is set to 1 then the linked list will walk through the buffer in order. \0A\00", align 1
@.str.8 = private unnamed_addr constant [138 x i8] c" This will yield an open page latency if the HW prefetchers are completely disabled and the buffer is much larger than the LLC.\0A\00", align 1
@.str.9 = private unnamed_addr constant [148 x i8] c" if it is set to a reasonably large value (32/64) then the linked list will walk through the segments of the buffer in randomized order.\0A\00", align 1
@.str.10 = private unnamed_addr constant [139 x i8] c" This will yield a closed dram latency if the HW prefetchers are enabled or disabled and the buffer is much larger than the LLC.\0A\00", align 1
@.str.11 = private unnamed_addr constant [59 x i8] c" The line count must be a multiple of this value\0A\00", align 1
@.str.12 = private unnamed_addr constant [104 x i8] c" -mN -m signifies multiplier N indicates the multiplying factor applied to the outer loop tripcount. \0A\00", align 1
@.str.13 = private unnamed_addr constant [102 x i8] c" By default a total of 1.024 Billion iterations of the cacheline walk are executed. N >= 1\0A\00", align 1
@.str.14 = private unnamed_addr constant [146 x i8] c" -L -L signifies that mmap should be invoked with HUGE_PAGE option. For this to work the machine must have been booted with a hugepages option\0A\00", align 1
@.str.15 = private unnamed_addr constant [152 x i8] c" locking down some number of contiguous memory for allocation as huge pages. This option changes the page_size used by the stride evaluation\0A\00", align 1
@.str.16 = private unnamed_addr constant [46 x i8] c" -pN -p signifies page size (defaults to 4K\0A\00", align 1
@.str.17 = private unnamed_addr constant [55 x i8] c" -IN -I signifies number of iterations (default 100)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = load i32, ptr @stderr, align 4
%4 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str.1)
%5 = load i32, ptr @stderr, align 4
%6 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str.2)
%7 = load i32, ptr @stderr, align 4
%8 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str.3)
%9 = load i32, ptr @stderr, align 4
%10 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str.4)
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.5)
%13 = load i32, ptr @stderr, align 4
%14 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.6)
%15 = load i32, ptr @stderr, align 4
%16 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str.7)
%17 = load i32, ptr @stderr, align 4
%18 = call i32 @fprintf(i32 noundef %17, ptr noundef @.str.8)
%19 = load i32, ptr @stderr, align 4
%20 = call i32 @fprintf(i32 noundef %19, ptr noundef @.str.9)
%21 = load i32, ptr @stderr, align 4
%22 = call i32 @fprintf(i32 noundef %21, ptr noundef @.str.10)
%23 = load i32, ptr @stderr, align 4
%24 = call i32 @fprintf(i32 noundef %23, ptr noundef @.str.11)
%25 = load i32, ptr @stderr, align 4
%26 = call i32 @fprintf(i32 noundef %25, ptr noundef @.str.12)
%27 = load i32, ptr @stderr, align 4
%28 = call i32 @fprintf(i32 noundef %27, ptr noundef @.str.13)
%29 = load i32, ptr @stderr, align 4
%30 = call i32 @fprintf(i32 noundef %29, ptr noundef @.str.14)
%31 = load i32, ptr @stderr, align 4
%32 = call i32 @fprintf(i32 noundef %31, ptr noundef @.str.15)
%33 = load i32, ptr @stderr, align 4
%34 = call i32 @fprintf(i32 noundef %33, ptr noundef @.str.16)
%35 = load i32, ptr @stderr, align 4
%36 = call i32 @fprintf(i32 noundef %35, ptr noundef @.str.17)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8aldhbfs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [71 x i8] c" rndm_walker requires 6 arguments and has a seventh optional argument\0A\00", align 1
@.str.1 = private unnamed_addr constant [97 x i8] c" -iN -i signifies intialization N indicates the core on which the buffer should be initialized\0A\00", align 1
@.str.2 = private unnamed_addr constant [88 x i8] c" -rM -r signifies run M indicates which core the pointer walker should be executed on\0A\00", align 1
@.str.3 = private unnamed_addr constant [163 x i8] c" -lN -l signifies lines N indicates the number of lines used in the pointer chase loop, this size controls in which level of cache/memory the buffer will reside\0A\00", align 1
@.str.4 = private unnamed_addr constant [146 x i8] c" -sN -s signifies stride N indicates the number of pages in the stride. thus the stride = N*page_size + 64. N should be 0 to avoid DTLB effects\0A\00", align 1
@.str.5 = private unnamed_addr constant [102 x i8] c" -SN -S signifies segments N indicates the number of segments that the buffer will be divided into.\0A\00", align 1
@.str.6 = private unnamed_addr constant [169 x i8] c" The number of segments must be greater than the number of memory access streams the HW prefetcher can track for the randomization to defeat the HW prefetcher.\0A\00", align 1
@.str.7 = private unnamed_addr constant [90 x i8] c" if it is set to 1 then the linked list will walk through the buffer in order. \0A\00", align 1
@.str.8 = private unnamed_addr constant [138 x i8] c" This will yield an open page latency if the HW prefetchers are completely disabled and the buffer is much larger than the LLC.\0A\00", align 1
@.str.9 = private unnamed_addr constant [148 x i8] c" if it is set to a reasonably large value (32/64) then the linked list will walk through the segments of the buffer in randomized order.\0A\00", align 1
@.str.10 = private unnamed_addr constant [139 x i8] c" This will yield a closed dram latency if the HW prefetchers are enabled or disabled and the buffer is much larger than the LLC.\0A\00", align 1
@.str.11 = private unnamed_addr constant [59 x i8] c" The line count must be a multiple of this value\0A\00", align 1
@.str.12 = private unnamed_addr constant [104 x i8] c" -mN -m signifies multiplier N indicates the multiplying factor applied to the outer loop tripcount. \0A\00", align 1
@.str.13 = private unnamed_addr constant [102 x i8] c" By default a total of 1.024 Billion iterations of the cacheline walk are executed. N >= 1\0A\00", align 1
@.str.14 = private unnamed_addr constant [146 x i8] c" -L -L signifies that mmap should be invoked with HUGE_PAGE option. For this to work the machine must have been booted with a hugepages option\0A\00", align 1
@.str.15 = private unnamed_addr constant [152 x i8] c" locking down some number of contiguous memory for allocation as huge pages. This option changes the page_size used by the stride evaluation\0A\00", align 1
@.str.16 = private unnamed_addr constant [46 x i8] c" -pN -p signifies page size (defaults to 4K\0A\00", align 1
@.str.17 = private unnamed_addr constant [55 x i8] c" -IN -I signifies number of iterations (default 100)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = load i32, ptr @stderr, align 4
%4 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str.1)
%5 = load i32, ptr @stderr, align 4
%6 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str.2)
%7 = load i32, ptr @stderr, align 4
%8 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str.3)
%9 = load i32, ptr @stderr, align 4
%10 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str.4)
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.5)
%13 = load i32, ptr @stderr, align 4
%14 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.6)
%15 = load i32, ptr @stderr, align 4
%16 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str.7)
%17 = load i32, ptr @stderr, align 4
%18 = call i32 @fprintf(i32 noundef %17, ptr noundef @.str.8)
%19 = load i32, ptr @stderr, align 4
%20 = call i32 @fprintf(i32 noundef %19, ptr noundef @.str.9)
%21 = load i32, ptr @stderr, align 4
%22 = call i32 @fprintf(i32 noundef %21, ptr noundef @.str.10)
%23 = load i32, ptr @stderr, align 4
%24 = call i32 @fprintf(i32 noundef %23, ptr noundef @.str.11)
%25 = load i32, ptr @stderr, align 4
%26 = call i32 @fprintf(i32 noundef %25, ptr noundef @.str.12)
%27 = load i32, ptr @stderr, align 4
%28 = call i32 @fprintf(i32 noundef %27, ptr noundef @.str.13)
%29 = load i32, ptr @stderr, align 4
%30 = call i32 @fprintf(i32 noundef %29, ptr noundef @.str.14)
%31 = load i32, ptr @stderr, align 4
%32 = call i32 @fprintf(i32 noundef %31, ptr noundef @.str.15)
%33 = load i32, ptr @stderr, align 4
%34 = call i32 @fprintf(i32 noundef %33, ptr noundef @.str.16)
%35 = load i32, ptr @stderr, align 4
%36 = call i32 @fprintf(i32 noundef %35, ptr noundef @.str.17)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpl42hvaqh.c'
source_filename = "/tmp/tmpl42hvaqh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [44 x i8] c"\0A****************************************\0A\0D\00", align 1
@.str.1 = private unnamed_addr constant [44 x i8] c"\0A*****************GBOOT******************\0A\0D\00", align 1
@.str.2 = private unnamed_addr constant [44 x i8] c"1:Download Linux Kernel from TFTP Server!\0A\0D\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"2:Boot Linux from RAM !\0A\0D\00", align 1
@.str.4 = private unnamed_addr constant [33 x i8] c"3:Boot Linux from Nand Flash !\0A\0D\00", align 1
@.str.5 = private unnamed_addr constant [18 x i8] c"\0APlease Select : \00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.7 = private unnamed_addr constant [15 x i8] c"selected 1 !\0A\0D\00", align 1
@.str.8 = private unnamed_addr constant [15 x i8] c"selected 2 !\0A\0D\00", align 1
@.str.9 = private unnamed_addr constant [15 x i8] c"selected 3 !\0A\0D\00", align 1
@.str.10 = private unnamed_addr constant [37 x i8] c"Error : This is a wrong slection !\0A\0D\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @gboot_main() #0 {
%1 = alloca [10 x i8], align 1
%2 = alloca i32, align 4
store i32 0, ptr %2, align 4
%3 = call i32 (...) @led_init()
%4 = call i32 (...) @button_init()
%5 = call i32 (...) @irq_init()
%6 = call i32 (...) @uart_init()
%7 = call i32 (...) @dma_init()
%8 = call i32 (...) @dma_start()
%9 = call i32 (...) @lcd_init()
%10 = call i32 (...) @lcd_test()
%11 = call i32 (...) @touchscreen_init()
br label %12
12: ; preds = %0, %29
%13 = call i32 @printf(ptr noundef @.str)
%14 = call i32 @printf(ptr noundef @.str.1)
%15 = call i32 @printf(ptr noundef @.str.2)
%16 = call i32 @printf(ptr noundef @.str.3)
%17 = call i32 @printf(ptr noundef @.str.4)
%18 = call i32 @printf(ptr noundef @.str.5)
%19 = call i32 @scanf(ptr noundef @.str.6, ptr noundef %2)
%20 = load i32, ptr %2, align 4
switch i32 %20, label %27 [
i32 1, label %21
i32 2, label %23
i32 3, label %25
]
21: ; preds = %12
%22 = call i32 @printf(ptr noundef @.str.7)
br label %29
23: ; preds = %12
%24 = call i32 @printf(ptr noundef @.str.8)
br label %29
25: ; preds = %12
%26 = call i32 @printf(ptr noundef @.str.9)
br label %29
27: ; preds = %12
%28 = call i32 @printf(ptr noundef @.str.10)
br label %29
29: ; preds = %27, %25, %23, %21
br label %12
}
declare i32 @led_init(...) #1
declare i32 @button_init(...) #1
declare i32 @irq_init(...) #1
declare i32 @uart_init(...) #1
declare i32 @dma_init(...) #1
declare i32 @dma_start(...) #1
declare i32 @lcd_init(...) #1
declare i32 @lcd_test(...) #1
declare i32 @touchscreen_init(...) #1
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/tmpl42hvaqh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [44 x i8] c"\0A****************************************\0A\0D\00", align 1
@.str.1 = private unnamed_addr constant [44 x i8] c"\0A*****************GBOOT******************\0A\0D\00", align 1
@.str.2 = private unnamed_addr constant [44 x i8] c"1:Download Linux Kernel from TFTP Server!\0A\0D\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"2:Boot Linux from RAM !\0A\0D\00", align 1
@.str.4 = private unnamed_addr constant [33 x i8] c"3:Boot Linux from Nand Flash !\0A\0D\00", align 1
@.str.5 = private unnamed_addr constant [18 x i8] c"\0APlease Select : \00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.7 = private unnamed_addr constant [15 x i8] c"selected 1 !\0A\0D\00", align 1
@.str.8 = private unnamed_addr constant [15 x i8] c"selected 2 !\0A\0D\00", align 1
@.str.9 = private unnamed_addr constant [15 x i8] c"selected 3 !\0A\0D\00", align 1
@.str.10 = private unnamed_addr constant [37 x i8] c"Error : This is a wrong slection !\0A\0D\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @gboot_main() #0 {
%1 = alloca [10 x i8], align 1
%2 = alloca i32, align 4
store i32 0, ptr %2, align 4
%3 = call i32 (...) @led_init()
%4 = call i32 (...) @button_init()
%5 = call i32 (...) @irq_init()
%6 = call i32 (...) @uart_init()
%7 = call i32 (...) @dma_init()
%8 = call i32 (...) @dma_start()
%9 = call i32 (...) @lcd_init()
%10 = call i32 (...) @lcd_test()
%11 = call i32 (...) @touchscreen_init()
br label %12
12: ; preds = %29, %0
%13 = call i32 @printf(ptr noundef @.str)
%14 = call i32 @printf(ptr noundef @.str.1)
%15 = call i32 @printf(ptr noundef @.str.2)
%16 = call i32 @printf(ptr noundef @.str.3)
%17 = call i32 @printf(ptr noundef @.str.4)
%18 = call i32 @printf(ptr noundef @.str.5)
%19 = call i32 @scanf(ptr noundef @.str.6, ptr noundef %2)
%20 = load i32, ptr %2, align 4
switch i32 %20, label %27 [
i32 1, label %21
i32 2, label %23
i32 3, label %25
]
21: ; preds = %12
%22 = call i32 @printf(ptr noundef @.str.7)
br label %29
23: ; preds = %12
%24 = call i32 @printf(ptr noundef @.str.8)
br label %29
25: ; preds = %12
%26 = call i32 @printf(ptr noundef @.str.9)
br label %29
27: ; preds = %12
%28 = call i32 @printf(ptr noundef @.str.10)
br label %29
29: ; preds = %27, %25, %23, %21
br label %12
}
declare i32 @led_init(...) #1
declare i32 @button_init(...) #1
declare i32 @irq_init(...) #1
declare i32 @uart_init(...) #1
declare i32 @dma_init(...) #1
declare i32 @dma_start(...) #1
declare i32 @lcd_init(...) #1
declare i32 @lcd_test(...) #1
declare i32 @touchscreen_init(...) #1
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/tmpfni3ggxq.c'
source_filename = "/tmp/tmpfni3ggxq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @processo() #0 {
%1 = call i32 @sleep(i32 noundef 3)
ret void
}
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfni3ggxq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @processo() #0 {
%1 = call i32 @sleep(i32 noundef 3)
ret void
}
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpecxhhzye.c'
source_filename = "/tmp/tmpecxhhzye.c"
target datalayout = "e-m:e-p270: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/tmpecxhhzye.c"
target datalayout = "e-m:e-p270: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/tmpc4z60v98.c'
source_filename = "/tmp/tmpc4z60v98.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @USBHostResume(i64 noundef %0, i32 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i32, align 4
store i64 %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %13
7: ; preds = %2
%8 = load i64, ptr %3, align 8
%9 = add nsw i64 %8, 1
%10 = inttoptr i64 %9 to ptr
%11 = load volatile i32, ptr %10, align 4
%12 = or i32 %11, 4
store volatile i32 %12, ptr %10, align 4
br label %19
13: ; preds = %2
%14 = load i64, ptr %3, align 8
%15 = add nsw i64 %14, 1
%16 = inttoptr i64 %15 to ptr
%17 = load volatile i32, ptr %16, align 4
%18 = and i32 %17, -5
store volatile i32 %18, ptr %16, align 4
br label %19
19: ; preds = %13, %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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc4z60v98.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @USBHostResume(i64 noundef %0, i32 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i32, align 4
store i64 %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %13
7: ; preds = %2
%8 = load i64, ptr %3, align 8
%9 = add nsw i64 %8, 1
%10 = inttoptr i64 %9 to ptr
%11 = load volatile i32, ptr %10, align 4
%12 = or i32 %11, 4
store volatile i32 %12, ptr %10, align 4
br label %19
13: ; preds = %2
%14 = load i64, ptr %3, align 8
%15 = add nsw i64 %14, 1
%16 = inttoptr i64 %15 to ptr
%17 = load volatile i32, ptr %16, align 4
%18 = and i32 %17, -5
store volatile i32 %18, ptr %16, align 4
br label %19
19: ; preds = %13, %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"}
|
; ModuleID = '/tmp/tmppbfn6g5c.c'
source_filename = "/tmp/tmppbfn6g5c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"csv-task.csv\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s,\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @function_uname(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 @write(ptr noundef @.str, ptr noundef @.str.1, ptr noundef %3)
ret void
}
declare i32 @write(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/tmppbfn6g5c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"csv-task.csv\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s,\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @function_uname(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 @write(ptr noundef @.str, ptr noundef @.str.1, ptr noundef %3)
ret void
}
declare i32 @write(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/tmpgafeygzr.c'
source_filename = "/tmp/tmpgafeygzr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @parse_read_int(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
ret ptr null
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgafeygzr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @parse_read_int(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
ret ptr null
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzihf4en2.c'
source_filename = "/tmp/tmpzihf4en2.c"
target datalayout = "e-m:e-p270: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.test_simple_fmerge_sort.a = private unnamed_addr constant [16 x i32] [i32 16, i32 15, i32 14, i32 13, i32 12, i32 11, i32 10, i32 9, i32 8, i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1], align 16
@.str = private unnamed_addr constant [10 x i8] c"file.temp\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_simple_fmerge_sort() #0 {
%1 = alloca [16 x i32], align 16
%2 = alloca [16 x i32], align 16
%3 = alloca ptr, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.test_simple_fmerge_sort.a, i64 64, i1 false)
store ptr null, ptr %3, align 8
%4 = getelementptr inbounds [16 x i32], ptr %1, i64 0, i64 0
%5 = call i32 @merge_sort(ptr noundef %4, i32 noundef 0, i32 noundef 5)
%6 = getelementptr inbounds [16 x i32], ptr %1, i64 0, i64 0
%7 = call ptr @write_file(ptr noundef @.str, ptr noundef %6, i32 noundef 16)
%8 = call i32 @assert(ptr noundef %7)
%9 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
%11 = call i32 @assert(ptr noundef %10)
%12 = load ptr, ptr %3, align 8
%13 = call i32 @fmerge_sort(ptr noundef %12, i32 noundef 8, i32 noundef 64)
%14 = load ptr, ptr %3, align 8
%15 = call i32 @fclose(ptr noundef %14)
%16 = getelementptr inbounds [16 x i32], ptr %2, i64 0, i64 0
%17 = call ptr @read_file(ptr noundef @.str, ptr noundef %16, i32 noundef 16)
%18 = call i32 @assert(ptr noundef %17)
%19 = getelementptr inbounds [16 x i32], ptr %1, i64 0, i64 0
%20 = call i32 @merge_sort(ptr noundef %19, i32 noundef 0, i32 noundef 15)
%21 = getelementptr inbounds [16 x i32], ptr %1, i64 0, i64 0
%22 = getelementptr inbounds [16 x i32], ptr %2, i64 0, i64 0
%23 = call ptr @compare_array(ptr noundef %21, ptr noundef %22, i32 noundef 16)
%24 = call i32 @assert(ptr noundef %23)
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 @merge_sort(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @assert(ptr noundef) #2
declare ptr @write_file(ptr noundef, ptr noundef, i32 noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @fmerge_sort(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @fclose(ptr noundef) #2
declare ptr @read_file(ptr noundef, ptr noundef, i32 noundef) #2
declare ptr @compare_array(ptr noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzihf4en2.c"
target datalayout = "e-m:e-p270: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.test_simple_fmerge_sort.a = private unnamed_addr constant [16 x i32] [i32 16, i32 15, i32 14, i32 13, i32 12, i32 11, i32 10, i32 9, i32 8, i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1], align 16
@.str = private unnamed_addr constant [10 x i8] c"file.temp\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_simple_fmerge_sort() #0 {
%1 = alloca [16 x i32], align 16
%2 = alloca [16 x i32], align 16
%3 = alloca ptr, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.test_simple_fmerge_sort.a, i64 64, i1 false)
store ptr null, ptr %3, align 8
%4 = getelementptr inbounds [16 x i32], ptr %1, i64 0, i64 0
%5 = call i32 @merge_sort(ptr noundef %4, i32 noundef 0, i32 noundef 5)
%6 = getelementptr inbounds [16 x i32], ptr %1, i64 0, i64 0
%7 = call ptr @write_file(ptr noundef @.str, ptr noundef %6, i32 noundef 16)
%8 = call i32 @assert(ptr noundef %7)
%9 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
%11 = call i32 @assert(ptr noundef %10)
%12 = load ptr, ptr %3, align 8
%13 = call i32 @fmerge_sort(ptr noundef %12, i32 noundef 8, i32 noundef 64)
%14 = load ptr, ptr %3, align 8
%15 = call i32 @fclose(ptr noundef %14)
%16 = getelementptr inbounds [16 x i32], ptr %2, i64 0, i64 0
%17 = call ptr @read_file(ptr noundef @.str, ptr noundef %16, i32 noundef 16)
%18 = call i32 @assert(ptr noundef %17)
%19 = getelementptr inbounds [16 x i32], ptr %1, i64 0, i64 0
%20 = call i32 @merge_sort(ptr noundef %19, i32 noundef 0, i32 noundef 15)
%21 = getelementptr inbounds [16 x i32], ptr %1, i64 0, i64 0
%22 = getelementptr inbounds [16 x i32], ptr %2, i64 0, i64 0
%23 = call ptr @compare_array(ptr noundef %21, ptr noundef %22, i32 noundef 16)
%24 = call i32 @assert(ptr noundef %23)
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 @merge_sort(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @assert(ptr noundef) #2
declare ptr @write_file(ptr noundef, ptr noundef, i32 noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @fmerge_sort(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @fclose(ptr noundef) #2
declare ptr @read_file(ptr noundef, ptr noundef, i32 noundef) #2
declare ptr @compare_array(ptr noundef, ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7pe8jree.c'
source_filename = "/tmp/tmp7pe8jree.c"
target datalayout = "e-m:e-p270: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/tmp7pe8jree.c"
target datalayout = "e-m:e-p270: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/tmpu6wdotw3.c'
source_filename = "/tmp/tmpu6wdotw3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @g_getgid() #0 {
%1 = call i32 (...) @getgid()
ret i32 %1
}
declare i32 @getgid(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu6wdotw3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @g_getgid() #0 {
%1 = call i32 (...) @getgid()
ret i32 %1
}
declare i32 @getgid(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptodhfrvd.c'
source_filename = "/tmp/tmptodhfrvd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sshbuf_get_cstring8(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%12 = load ptr, ptr %6, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %16
14: ; preds = %3
%15 = load ptr, ptr %6, align 8
store ptr null, ptr %15, align 8
br label %16
16: ; preds = %14, %3
%17 = load ptr, ptr %7, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = load ptr, ptr %7, align 8
store i64 0, ptr %20, align 8
br label %21
21: ; preds = %19, %16
%22 = load ptr, ptr %5, align 8
%23 = call i32 @sshbuf_peek_string8_direct(ptr noundef %22, ptr noundef %9, ptr noundef %8)
store i32 %23, ptr %11, align 4
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = load i32, ptr %11, align 4
store i32 %26, ptr %4, align 4
br label %79
27: ; preds = %21
%28 = load i64, ptr %8, align 8
%29 = icmp ugt i64 %28, 0
br i1 %29, label %30, label %43
30: ; preds = %27
%31 = load ptr, ptr %9, align 8
%32 = load i64, ptr %8, align 8
%33 = call ptr @memchr(ptr noundef %31, i8 noundef signext 0, i64 noundef %32)
store ptr %33, ptr %10, align 8
%34 = icmp ne ptr %33, null
br i1 %34, label %35, label %43
35: ; preds = %30
%36 = load ptr, ptr %10, align 8
%37 = load ptr, ptr %9, align 8
%38 = load i64, ptr %8, align 8
%39 = getelementptr inbounds i32, ptr %37, i64 %38
%40 = getelementptr inbounds i32, ptr %39, i64 -1
%41 = icmp ult ptr %36, %40
br i1 %41, label %42, label %43
42: ; preds = %35
store i32 -4, ptr %4, align 4
br label %79
43: ; preds = %35, %30, %27
%44 = load ptr, ptr %5, align 8
%45 = call i32 @sshbuf_get_string8_direct(ptr noundef %44, ptr noundef null, ptr noundef null)
store i32 %45, ptr %11, align 4
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %48
47: ; preds = %43
store i32 -1, ptr %4, align 4
br label %79
48: ; preds = %43
%49 = load ptr, ptr %6, align 8
%50 = icmp ne ptr %49, null
br i1 %50, label %51, label %72
51: ; preds = %48
%52 = load i64, ptr %8, align 8
%53 = add i64 %52, 1
%54 = call ptr @malloc(i64 noundef %53)
%55 = load ptr, ptr %6, align 8
store ptr %54, ptr %55, align 8
%56 = icmp eq ptr %54, null
br i1 %56, label %57, label %58
57: ; preds = %51
store i32 -2, ptr %4, align 4
br label %79
58: ; preds = %51
%59 = load i64, ptr %8, align 8
%60 = icmp ne i64 %59, 0
br i1 %60, label %61, label %67
61: ; preds = %58
%62 = load ptr, ptr %6, align 8
%63 = load ptr, ptr %62, align 8
%64 = load ptr, ptr %9, align 8
%65 = load i64, ptr %8, align 8
%66 = call i32 @memcpy(ptr noundef %63, ptr noundef %64, i64 noundef %65)
br label %67
67: ; preds = %61, %58
%68 = load ptr, ptr %6, align 8
%69 = load ptr, ptr %68, align 8
%70 = load i64, ptr %8, align 8
%71 = getelementptr inbounds i8, ptr %69, i64 %70
store i8 0, ptr %71, align 1
br label %72
72: ; preds = %67, %48
%73 = load ptr, ptr %7, align 8
%74 = icmp ne ptr %73, null
br i1 %74, label %75, label %78
75: ; preds = %72
%76 = load i64, ptr %8, align 8
%77 = load ptr, ptr %7, align 8
store i64 %76, ptr %77, align 8
br label %78
78: ; preds = %75, %72
store i32 0, ptr %4, align 4
br label %79
79: ; preds = %78, %57, %47, %42, %25
%80 = load i32, ptr %4, align 4
ret i32 %80
}
declare i32 @sshbuf_peek_string8_direct(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @memchr(ptr noundef, i8 noundef signext, i64 noundef) #1
declare i32 @sshbuf_get_string8_direct(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmptodhfrvd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sshbuf_get_cstring8(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%12 = load ptr, ptr %6, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %16
14: ; preds = %3
%15 = load ptr, ptr %6, align 8
store ptr null, ptr %15, align 8
br label %16
16: ; preds = %14, %3
%17 = load ptr, ptr %7, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = load ptr, ptr %7, align 8
store i64 0, ptr %20, align 8
br label %21
21: ; preds = %19, %16
%22 = load ptr, ptr %5, align 8
%23 = call i32 @sshbuf_peek_string8_direct(ptr noundef %22, ptr noundef %9, ptr noundef %8)
store i32 %23, ptr %11, align 4
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = load i32, ptr %11, align 4
store i32 %26, ptr %4, align 4
br label %79
27: ; preds = %21
%28 = load i64, ptr %8, align 8
%29 = icmp ugt i64 %28, 0
br i1 %29, label %30, label %43
30: ; preds = %27
%31 = load ptr, ptr %9, align 8
%32 = load i64, ptr %8, align 8
%33 = call ptr @memchr(ptr noundef %31, i8 noundef signext 0, i64 noundef %32)
store ptr %33, ptr %10, align 8
%34 = icmp ne ptr %33, null
br i1 %34, label %35, label %43
35: ; preds = %30
%36 = load ptr, ptr %10, align 8
%37 = load ptr, ptr %9, align 8
%38 = load i64, ptr %8, align 8
%39 = getelementptr inbounds i32, ptr %37, i64 %38
%40 = getelementptr inbounds i32, ptr %39, i64 -1
%41 = icmp ult ptr %36, %40
br i1 %41, label %42, label %43
42: ; preds = %35
store i32 -4, ptr %4, align 4
br label %79
43: ; preds = %35, %30, %27
%44 = load ptr, ptr %5, align 8
%45 = call i32 @sshbuf_get_string8_direct(ptr noundef %44, ptr noundef null, ptr noundef null)
store i32 %45, ptr %11, align 4
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %48
47: ; preds = %43
store i32 -1, ptr %4, align 4
br label %79
48: ; preds = %43
%49 = load ptr, ptr %6, align 8
%50 = icmp ne ptr %49, null
br i1 %50, label %51, label %72
51: ; preds = %48
%52 = load i64, ptr %8, align 8
%53 = add i64 %52, 1
%54 = call ptr @malloc(i64 noundef %53)
%55 = load ptr, ptr %6, align 8
store ptr %54, ptr %55, align 8
%56 = icmp eq ptr %54, null
br i1 %56, label %57, label %58
57: ; preds = %51
store i32 -2, ptr %4, align 4
br label %79
58: ; preds = %51
%59 = load i64, ptr %8, align 8
%60 = icmp ne i64 %59, 0
br i1 %60, label %61, label %67
61: ; preds = %58
%62 = load ptr, ptr %6, align 8
%63 = load ptr, ptr %62, align 8
%64 = load ptr, ptr %9, align 8
%65 = load i64, ptr %8, align 8
%66 = call i32 @memcpy(ptr noundef %63, ptr noundef %64, i64 noundef %65)
br label %67
67: ; preds = %61, %58
%68 = load ptr, ptr %6, align 8
%69 = load ptr, ptr %68, align 8
%70 = load i64, ptr %8, align 8
%71 = getelementptr inbounds i8, ptr %69, i64 %70
store i8 0, ptr %71, align 1
br label %72
72: ; preds = %67, %48
%73 = load ptr, ptr %7, align 8
%74 = icmp ne ptr %73, null
br i1 %74, label %75, label %78
75: ; preds = %72
%76 = load i64, ptr %8, align 8
%77 = load ptr, ptr %7, align 8
store i64 %76, ptr %77, align 8
br label %78
78: ; preds = %75, %72
store i32 0, ptr %4, align 4
br label %79
79: ; preds = %78, %57, %47, %42, %25
%80 = load i32, ptr %4, align 4
ret i32 %80
}
declare i32 @sshbuf_peek_string8_direct(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @memchr(ptr noundef, i8 noundef signext, i64 noundef) #1
declare i32 @sshbuf_get_string8_direct(ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9shp3ppc.c'
source_filename = "/tmp/tmp9shp3ppc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @uninitvar_putchar() #0 {
%1 = alloca i8, align 1
%2 = load i8, ptr %1, align 1
%3 = call i32 @putchar(i8 noundef signext %2)
ret void
}
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9shp3ppc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @uninitvar_putchar() #0 {
%1 = alloca i8, align 1
%2 = load i8, ptr %1, align 1
%3 = call i32 @putchar(i8 noundef signext %2)
ret void
}
declare i32 @putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpn_z6sb4k.c'
source_filename = "/tmp/tmpn_z6sb4k.c"
target datalayout = "e-m:e-p270: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/tmpn_z6sb4k.c"
target datalayout = "e-m:e-p270: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/tmpw0yk0o1n.c'
source_filename = "/tmp/tmpw0yk0o1n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"kenos panic: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"\0A\0D\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @panic(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @disp_color_str(ptr noundef @.str, i32 noundef 4)
%4 = load ptr, ptr %2, align 8
%5 = call i32 @disp_str(ptr noundef %4)
%6 = call i32 @disp_str(ptr noundef @.str.1)
br label %7
7: ; preds = %7, %1
br label %7
}
declare i32 @disp_color_str(ptr noundef, i32 noundef) #1
declare i32 @disp_str(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/tmpw0yk0o1n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"kenos panic: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"\0A\0D\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @panic(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 @disp_color_str(ptr noundef @.str, i32 noundef 4)
%4 = load ptr, ptr %2, align 8
%5 = call i32 @disp_str(ptr noundef %4)
%6 = call i32 @disp_str(ptr noundef @.str.1)
br label %7
7: ; preds = %7, %1
br label %7
}
declare i32 @disp_color_str(ptr noundef, i32 noundef) #1
declare i32 @disp_str(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/tmphvcxgqip.c'
source_filename = "/tmp/tmphvcxgqip.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stringintersect(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
%9 = call i32 @strlen(ptr noundef %8)
store i32 %9, ptr %5, align 4
%10 = load ptr, ptr %4, align 8
%11 = call i32 @strlen(ptr noundef %10)
store i32 %11, ptr %6, align 4
%12 = load i32, ptr %6, align 4
%13 = load i32, ptr %5, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = load i32, ptr %6, align 4
store i32 %16, ptr %5, align 4
br label %17
17: ; preds = %15, %2
store i32 0, ptr %7, align 4
br label %18
18: ; preds = %37, %17
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %5, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %40
22: ; preds = %18
%23 = load ptr, ptr %3, align 8
%24 = load i32, ptr %7, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %23, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = load ptr, ptr %4, align 8
%30 = load i32, ptr %7, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp ne i32 %28, %34
br i1 %35, label %36, label %37
36: ; preds = %22
br label %40
37: ; preds = %22
%38 = load i32, ptr %7, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %7, align 4
br label %18, !llvm.loop !6
40: ; preds = %36, %18
%41 = load ptr, ptr %3, align 8
%42 = load i32, ptr %7, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %41, i64 %43
store i8 0, ptr %44, align 1
ret void
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmphvcxgqip.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stringintersect(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
%9 = call i32 @strlen(ptr noundef %8)
store i32 %9, ptr %5, align 4
%10 = load ptr, ptr %4, align 8
%11 = call i32 @strlen(ptr noundef %10)
store i32 %11, ptr %6, align 4
%12 = load i32, ptr %6, align 4
%13 = load i32, ptr %5, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = load i32, ptr %6, align 4
store i32 %16, ptr %5, align 4
br label %17
17: ; preds = %15, %2
store i32 0, ptr %7, align 4
%18 = load i32, ptr %7, align 4
%19 = load i32, ptr %5, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %17
br label %21
21: ; preds = %.lr.ph, %36
%22 = load ptr, ptr %3, align 8
%23 = load i32, ptr %7, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %22, i64 %24
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %7, 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 = icmp ne i32 %27, %33
br i1 %34, label %35, label %36
35: ; preds = %21
br label %42
36: ; preds = %21
%37 = load i32, ptr %7, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %7, align 4
%39 = load i32, ptr %7, align 4
%40 = load i32, ptr %5, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %21, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %36
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %17
br label %42
42: ; preds = %.loopexit, %35
%43 = load ptr, ptr %3, align 8
%44 = load i32, ptr %7, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i8, ptr %43, i64 %45
store i8 0, ptr %46, align 1
ret void
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpiw2b9m0l.c'
source_filename = "/tmp/tmpiw2b9m0l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter Array Size \0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Enter %d Integers \0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2)
%8 = load i32, ptr %2, align 4
%9 = zext i32 %8 to i64
%10 = call ptr @llvm.stacksave()
store ptr %10, ptr %3, align 8
%11 = alloca float, i64 %9, align 16
store i64 %9, ptr %4, align 8
%12 = load i32, ptr %2, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %12)
store i32 0, ptr %5, align 4
br label %14
14: ; preds = %23, %0
%15 = load i32, ptr %5, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %26
18: ; preds = %14
%19 = load i32, ptr %5, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds float, ptr %11, i64 %20
%22 = call i32 (ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %21)
br label %23
23: ; preds = %18
%24 = load i32, ptr %5, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %5, align 4
br label %14, !llvm.loop !6
26: ; preds = %14
%27 = load i32, ptr %2, align 4
%28 = call i32 @streamAvg(ptr noundef %11, i32 noundef %27)
store i32 0, ptr %1, align 4
%29 = load ptr, ptr %3, align 8
call void @llvm.stackrestore(ptr %29)
%30 = load i32, ptr %1, align 4
ret i32 %30
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @streamAvg(ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #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 willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpiw2b9m0l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter Array Size \0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Enter %d Integers \0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2)
%8 = load i32, ptr %2, align 4
%9 = zext i32 %8 to i64
%10 = call ptr @llvm.stacksave()
store ptr %10, ptr %3, align 8
%11 = alloca float, i64 %9, align 16
store i64 %9, ptr %4, align 8
%12 = load i32, ptr %2, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %12)
store i32 0, ptr %5, align 4
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %2, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %.lr.ph, label %28
.lr.ph: ; preds = %0
br label %17
17: ; preds = %.lr.ph, %22
%18 = load i32, ptr %5, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds float, ptr %11, i64 %19
%21 = call i32 (ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %20)
br label %22
22: ; preds = %17
%23 = load i32, ptr %5, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %5, align 4
%25 = load i32, ptr %5, align 4
%26 = load i32, ptr %2, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %28
28: ; preds = %._crit_edge, %0
%29 = load i32, ptr %2, align 4
%30 = call i32 @streamAvg(ptr noundef %11, i32 noundef %29)
store i32 0, ptr %1, align 4
%31 = load ptr, ptr %3, align 8
call void @llvm.stackrestore(ptr %31)
%32 = load i32, ptr %1, align 4
ret i32 %32
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @streamAvg(ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #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 willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpwvdri4r3.c'
source_filename = "/tmp/tmpwvdri4r3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"so\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check_is_lib(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [255 x i8], align 16
store ptr %0, ptr %3, align 8
store ptr null, ptr %4, align 8
%6 = getelementptr inbounds [255 x i8], ptr %5, i64 0, i64 0
%7 = load ptr, ptr %3, align 8
%8 = call i32 @strncpy(ptr noundef %6, ptr noundef %7, i32 noundef 255)
%9 = getelementptr inbounds [255 x i8], ptr %5, i64 0, i64 0
%10 = call ptr @strtok(ptr noundef %9, ptr noundef @.str)
store ptr %10, ptr %4, align 8
%11 = load ptr, ptr %4, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %14
13: ; preds = %1
store i32 0, ptr %2, align 4
br label %25
14: ; preds = %1
%15 = call ptr @strtok(ptr noundef null, ptr noundef @.str)
store ptr %15, ptr %4, align 8
%16 = load ptr, ptr %4, align 8
%17 = icmp eq ptr %16, null
br i1 %17, label %18, label %19
18: ; preds = %14
store i32 0, ptr %2, align 4
br label %25
19: ; preds = %14
%20 = load ptr, ptr %4, align 8
%21 = call i32 @strcmp(ptr noundef %20, ptr noundef @.str.1)
%22 = icmp ne i32 %21, 0
br i1 %22, label %24, label %23
23: ; preds = %19
store i32 1, ptr %2, align 4
br label %25
24: ; preds = %19
store i32 0, ptr %2, align 4
br label %25
25: ; preds = %24, %23, %18, %13
%26 = load i32, ptr %2, align 4
ret i32 %26
}
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @strtok(ptr noundef, ptr noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwvdri4r3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"so\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check_is_lib(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [255 x i8], align 16
store ptr %0, ptr %3, align 8
store ptr null, ptr %4, align 8
%6 = getelementptr inbounds [255 x i8], ptr %5, i64 0, i64 0
%7 = load ptr, ptr %3, align 8
%8 = call i32 @strncpy(ptr noundef %6, ptr noundef %7, i32 noundef 255)
%9 = getelementptr inbounds [255 x i8], ptr %5, i64 0, i64 0
%10 = call ptr @strtok(ptr noundef %9, ptr noundef @.str)
store ptr %10, ptr %4, align 8
%11 = load ptr, ptr %4, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %14
13: ; preds = %1
store i32 0, ptr %2, align 4
br label %25
14: ; preds = %1
%15 = call ptr @strtok(ptr noundef null, ptr noundef @.str)
store ptr %15, ptr %4, align 8
%16 = load ptr, ptr %4, align 8
%17 = icmp eq ptr %16, null
br i1 %17, label %18, label %19
18: ; preds = %14
store i32 0, ptr %2, align 4
br label %25
19: ; preds = %14
%20 = load ptr, ptr %4, align 8
%21 = call i32 @strcmp(ptr noundef %20, ptr noundef @.str.1)
%22 = icmp ne i32 %21, 0
br i1 %22, label %24, label %23
23: ; preds = %19
store i32 1, ptr %2, align 4
br label %25
24: ; preds = %19
store i32 0, ptr %2, align 4
br label %25
25: ; preds = %24, %23, %18, %13
%26 = load i32, ptr %2, align 4
ret i32 %26
}
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @strtok(ptr noundef, ptr noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv_3d7_wa.c'
source_filename = "/tmp/tmpv_3d7_wa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1 x i32], align 4
%7 = alloca [1 x i32], align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
br label %19
19: ; preds = %22, %18
%20 = load i32, ptr %8, align 4
%21 = icmp slt i32 %20, 1
br i1 %21, label %22, label %37
22: ; preds = %19
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %23, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = call i64 @strtoul(ptr noundef %28, i32 noundef 0, i32 noundef 10)
%30 = trunc i64 %29 to i32
store i32 %30, ptr %9, align 4
%31 = load i32, ptr %9, align 4
%32 = load i32, ptr %8, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [1 x i32], ptr %6, i64 0, i64 %33
store i32 %31, ptr %34, align 4
%35 = load i32, ptr %8, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %8, align 4
br label %19, !llvm.loop !6
37: ; preds = %19
%38 = getelementptr inbounds [1 x i32], ptr %6, i64 0, i64 0
%39 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 0
%40 = call i32 @RandomFunc(ptr noundef %38, ptr noundef %39)
%41 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 0
%42 = load i32, ptr %41, align 4
%43 = icmp eq i32 %42, 179220618
br i1 %43, label %44, label %46
44: ; preds = %37
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %47
46: ; preds = %37
br label %47
47: ; preds = %46, %44
store i32 0, ptr %10, align 4
br label %48
48: ; preds = %51, %47
%49 = load i32, ptr %10, align 4
%50 = icmp slt i32 %49, 1
br i1 %50, label %51, label %59
51: ; preds = %48
%52 = load i32, ptr %10, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 %53
%55 = load i32, ptr %54, align 4
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %55)
%57 = load i32, ptr %10, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %10, align 4
br label %48, !llvm.loop !8
59: ; preds = %48
%60 = load i32, ptr %3, align 4
ret i32 %60
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv_3d7_wa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1 x i32], align 4
%7 = alloca [1 x i32], align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp slt i32 %19, 1
br i1 %20, label %.lr.ph, label %38
.lr.ph: ; preds = %18
br label %21
21: ; preds = %.lr.ph, %21
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %22, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = call i64 @strtoul(ptr noundef %27, i32 noundef 0, i32 noundef 10)
%29 = trunc i64 %28 to i32
store i32 %29, ptr %9, align 4
%30 = load i32, ptr %9, align 4
%31 = load i32, ptr %8, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [1 x i32], ptr %6, i64 0, i64 %32
store i32 %30, ptr %33, align 4
%34 = load i32, ptr %8, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %8, align 4
%36 = load i32, ptr %8, align 4
%37 = icmp slt i32 %36, 1
br i1 %37, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %38
38: ; preds = %._crit_edge, %18
%39 = getelementptr inbounds [1 x i32], ptr %6, i64 0, i64 0
%40 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 0
%41 = call i32 @RandomFunc(ptr noundef %39, ptr noundef %40)
%42 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 0
%43 = load i32, ptr %42, align 4
%44 = icmp eq i32 %43, 179220618
br i1 %44, label %45, label %47
45: ; preds = %38
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %48
47: ; preds = %38
br label %48
48: ; preds = %47, %45
store i32 0, ptr %10, align 4
%49 = load i32, ptr %10, align 4
%50 = icmp slt i32 %49, 1
br i1 %50, label %.lr.ph2, label %61
.lr.ph2: ; preds = %48
br label %51
51: ; preds = %.lr.ph2, %51
%52 = load i32, ptr %10, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 %53
%55 = load i32, ptr %54, align 4
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %55)
%57 = load i32, ptr %10, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %10, align 4
%59 = load i32, ptr %10, align 4
%60 = icmp slt i32 %59, 1
br i1 %60, label %51, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %51
br label %61
61: ; preds = %._crit_edge3, %48
%62 = load i32, ptr %3, align 4
ret i32 %62
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpzodjxhqd.c'
source_filename = "/tmp/tmpzodjxhqd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 i16, align 2
store i32 0, ptr %1, align 4
store i16 -1, ptr %2, align 2
%3 = load i16, ptr %2, align 2
%4 = call i32 @printf(ptr noundef @.str, i16 noundef signext %3)
%5 = load i16, ptr %2, align 2
%6 = sext i16 %5 to i32
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = call i32 @exit(i32 noundef 1) #3
unreachable
10: ; preds = %0
%11 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef, i16 noundef signext) #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/tmpzodjxhqd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 i16, align 2
store i32 0, ptr %1, align 4
store i16 -1, ptr %2, align 2
%3 = load i16, ptr %2, align 2
%4 = call i32 @printf(ptr noundef @.str, i16 noundef signext %3)
%5 = load i16, ptr %2, align 2
%6 = sext i16 %5 to i32
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = call i32 @exit(i32 noundef 1) #3
unreachable
10: ; preds = %0
%11 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef, i16 noundef signext) #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/tmpf9on3xm8.c'
source_filename = "/tmp/tmpf9on3xm8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @QEIFilterEnable(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = add nsw i32 %3, 0
%5 = sext i32 %4 to i64
%6 = inttoptr i64 %5 to ptr
%7 = load volatile i32, ptr %6, align 4
%8 = or i32 %7, 8192
store volatile i32 %8, ptr %6, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf9on3xm8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @QEIFilterEnable(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = add nsw i32 %3, 0
%5 = sext i32 %4 to i64
%6 = inttoptr i64 %5 to ptr
%7 = load volatile i32, ptr %6, align 4
%8 = or i32 %7, 8192
store volatile i32 %8, ptr %6, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp46x1sn62.c'
source_filename = "/tmp/tmp46x1sn62.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f_sub_uint8_t(ptr noalias noundef %0, ptr noalias noundef %1, i64 noundef %2, ptr noalias noundef %3, i64 noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i64, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i64 %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store i64 %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
store i32 0, ptr %13, align 4
br label %15
15: ; preds = %48, %6
%16 = load i32, ptr %13, align 4
%17 = load i32, ptr %12, align 4
%18 = icmp ult i32 %16, %17
br i1 %18, label %19, label %51
19: ; preds = %15
%20 = load ptr, ptr %10, align 8
%21 = load i32, ptr %13, align 4
%22 = zext i32 %21 to i64
%23 = getelementptr inbounds i64, ptr %20, i64 %22
%24 = load i64, ptr %23, align 8
%25 = load i64, ptr %11, align 8
%26 = sub nsw i64 %24, %25
store i64 %26, ptr %14, align 8
%27 = load ptr, ptr %8, align 8
%28 = load i32, ptr %13, align 4
%29 = zext i32 %28 to i64
%30 = getelementptr inbounds i64, ptr %27, i64 %29
%31 = load i64, ptr %30, align 8
%32 = load i64, ptr %9, align 8
%33 = icmp slt i64 %31, %32
br i1 %33, label %34, label %36
34: ; preds = %19
%35 = load i64, ptr %14, align 8
br label %42
36: ; preds = %19
%37 = load ptr, ptr %10, align 8
%38 = load i32, ptr %13, align 4
%39 = zext i32 %38 to i64
%40 = getelementptr inbounds i64, ptr %37, i64 %39
%41 = load i64, ptr %40, align 8
br label %42
42: ; preds = %36, %34
%43 = phi i64 [ %35, %34 ], [ %41, %36 ]
%44 = load ptr, ptr %7, align 8
%45 = load i32, ptr %13, align 4
%46 = zext i32 %45 to i64
%47 = getelementptr inbounds i64, ptr %44, i64 %46
store i64 %43, ptr %47, align 8
br label %48
48: ; preds = %42
%49 = load i32, ptr %13, align 4
%50 = add i32 %49, 1
store i32 %50, ptr %13, align 4
br label %15, !llvm.loop !6
51: ; preds = %15
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/tmp46x1sn62.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f_sub_uint8_t(ptr noalias noundef %0, ptr noalias noundef %1, i64 noundef %2, ptr noalias noundef %3, i64 noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i64, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i64 %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store i64 %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
store i32 0, ptr %13, align 4
%15 = load i32, ptr %13, align 4
%16 = load i32, ptr %12, align 4
%17 = icmp ult i32 %15, %16
br i1 %17, label %.lr.ph, label %53
.lr.ph: ; preds = %6
br label %18
18: ; preds = %.lr.ph, %47
%19 = load ptr, ptr %10, align 8
%20 = load i32, ptr %13, align 4
%21 = zext i32 %20 to i64
%22 = getelementptr inbounds i64, ptr %19, i64 %21
%23 = load i64, ptr %22, align 8
%24 = load i64, ptr %11, align 8
%25 = sub nsw i64 %23, %24
store i64 %25, ptr %14, align 8
%26 = load ptr, ptr %8, align 8
%27 = load i32, ptr %13, align 4
%28 = zext i32 %27 to i64
%29 = getelementptr inbounds i64, ptr %26, i64 %28
%30 = load i64, ptr %29, align 8
%31 = load i64, ptr %9, align 8
%32 = icmp slt i64 %30, %31
br i1 %32, label %33, label %35
33: ; preds = %18
%34 = load i64, ptr %14, align 8
br label %41
35: ; preds = %18
%36 = load ptr, ptr %10, align 8
%37 = load i32, ptr %13, align 4
%38 = zext i32 %37 to i64
%39 = getelementptr inbounds i64, ptr %36, i64 %38
%40 = load i64, ptr %39, align 8
br label %41
41: ; preds = %35, %33
%42 = phi i64 [ %34, %33 ], [ %40, %35 ]
%43 = load ptr, ptr %7, align 8
%44 = load i32, ptr %13, align 4
%45 = zext i32 %44 to i64
%46 = getelementptr inbounds i64, ptr %43, i64 %45
store i64 %42, ptr %46, align 8
br label %47
47: ; preds = %41
%48 = load i32, ptr %13, align 4
%49 = add i32 %48, 1
store i32 %49, ptr %13, align 4
%50 = load i32, ptr %13, align 4
%51 = load i32, ptr %12, align 4
%52 = icmp ult i32 %50, %51
br i1 %52, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %47
br label %53
53: ; preds = %._crit_edge, %6
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/tmpawgwfw9d.c'
source_filename = "/tmp/tmpawgwfw9d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printBorder(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %11, %1
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %2, align 4
%7 = add nsw i32 %6, 2
%8 = icmp slt i32 %5, %7
br i1 %8, label %9, label %14
9: ; preds = %4
%10 = call i32 @printf(ptr noundef @.str)
br label %11
11: ; preds = %9
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %3, align 4
br label %4, !llvm.loop !6
14: ; preds = %4
%15 = call i32 @printf(ptr noundef @.str.1)
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/tmpawgwfw9d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printBorder(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = add nsw i32 %5, 2
%7 = icmp slt i32 %4, %6
br i1 %7, label %.lr.ph, label %17
.lr.ph: ; preds = %1
br label %8
8: ; preds = %.lr.ph, %10
%9 = call i32 @printf(ptr noundef @.str)
br label %10
10: ; preds = %8
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %3, align 4
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %2, align 4
%15 = add nsw i32 %14, 2
%16 = icmp slt i32 %13, %15
br i1 %16, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %17
17: ; preds = %._crit_edge, %1
%18 = call i32 @printf(ptr noundef @.str.1)
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/tmppv6ouw62.c'
source_filename = "/tmp/tmppv6ouw62.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"nxgrid is greater than MAXXGRID, increase MAXXGRID\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @create_xgrid_1dx2d_order2(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15) #0 {
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca ptr, align 8
%22 = alloca ptr, align 8
%23 = alloca ptr, align 8
%24 = alloca ptr, align 8
%25 = alloca ptr, align 8
%26 = alloca ptr, align 8
%27 = alloca ptr, align 8
%28 = alloca ptr, align 8
%29 = alloca ptr, align 8
%30 = alloca ptr, align 8
%31 = alloca ptr, align 8
%32 = alloca ptr, align 8
%33 = alloca i32, align 4
%34 = alloca i32, align 4
%35 = alloca i32, align 4
%36 = alloca i32, align 4
%37 = alloca i32, align 4
%38 = alloca i32, align 4
%39 = alloca i32, align 4
%40 = alloca i32, align 4
%41 = alloca i32, align 4
%42 = alloca i32, align 4
%43 = alloca i32, align 4
%44 = alloca i32, align 4
%45 = alloca double, align 8
%46 = alloca double, align 8
%47 = alloca double, align 8
%48 = alloca double, align 8
%49 = alloca [50 x double], align 16
%50 = alloca [50 x double], align 16
%51 = alloca [50 x double], align 16
%52 = alloca [50 x double], align 16
%53 = alloca ptr, align 8
%54 = alloca ptr, align 8
%55 = alloca double, align 8
%56 = alloca ptr, align 8
%57 = alloca ptr, align 8
%58 = alloca i32, align 4
%59 = alloca i32, align 4
%60 = alloca double, align 8
%61 = alloca double, align 8
store ptr %0, ptr %17, align 8
store ptr %1, ptr %18, align 8
store ptr %2, ptr %19, align 8
store ptr %3, ptr %20, align 8
store ptr %4, ptr %21, align 8
store ptr %5, ptr %22, align 8
store ptr %6, ptr %23, align 8
store ptr %7, ptr %24, align 8
store ptr %8, ptr %25, align 8
store ptr %9, ptr %26, align 8
store ptr %10, ptr %27, align 8
store ptr %11, ptr %28, align 8
store ptr %12, ptr %29, align 8
store ptr %13, ptr %30, align 8
store ptr %14, ptr %31, align 8
store ptr %15, ptr %32, align 8
%62 = load ptr, ptr %17, align 8
%63 = load i32, ptr %62, align 4
store i32 %63, ptr %33, align 4
%64 = load ptr, ptr %18, align 8
%65 = load i32, ptr %64, align 4
store i32 %65, ptr %34, align 4
%66 = load ptr, ptr %19, align 8
%67 = load i32, ptr %66, align 4
store i32 %67, ptr %35, align 4
%68 = load ptr, ptr %20, align 8
%69 = load i32, ptr %68, align 4
store i32 %69, ptr %36, align 4
store i32 0, ptr %43, align 4
%70 = load i32, ptr %33, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %37, align 4
%72 = load i32, ptr %35, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %38, align 4
%74 = load i32, ptr %33, align 4
%75 = load i32, ptr %34, align 4
%76 = mul nsw i32 %74, %75
%77 = sext i32 %76 to i64
%78 = mul i64 %77, 8
%79 = trunc i64 %78 to i32
%80 = call i64 @malloc(i32 noundef %79)
%81 = inttoptr i64 %80 to ptr
store ptr %81, ptr %53, align 8
%82 = load i32, ptr %35, align 4
%83 = load i32, ptr %36, align 4
%84 = mul nsw i32 %82, %83
%85 = sext i32 %84 to i64
%86 = mul i64 %85, 8
%87 = trunc i64 %86 to i32
%88 = call i64 @malloc(i32 noundef %87)
%89 = inttoptr i64 %88 to ptr
store ptr %89, ptr %54, align 8
%90 = load i32, ptr %33, align 4
%91 = add nsw i32 %90, 1
%92 = load i32, ptr %34, align 4
%93 = add nsw i32 %92, 1
%94 = mul nsw i32 %91, %93
%95 = sext i32 %94 to i64
%96 = mul i64 %95, 8
%97 = trunc i64 %96 to i32
%98 = call i64 @malloc(i32 noundef %97)
%99 = inttoptr i64 %98 to ptr
store ptr %99, ptr %56, align 8
%100 = load i32, ptr %33, align 4
%101 = add nsw i32 %100, 1
%102 = load i32, ptr %34, align 4
%103 = add nsw i32 %102, 1
%104 = mul nsw i32 %101, %103
%105 = sext i32 %104 to i64
%106 = mul i64 %105, 8
%107 = trunc i64 %106 to i32
%108 = call i64 @malloc(i32 noundef %107)
%109 = inttoptr i64 %108 to ptr
store ptr %109, ptr %57, align 8
store i32 0, ptr %40, align 4
br label %110
110: ; preds = %150, %16
%111 = load i32, ptr %40, align 4
%112 = load i32, ptr %34, align 4
%113 = icmp sle i32 %111, %112
br i1 %113, label %114, label %153
114: ; preds = %110
store i32 0, ptr %39, align 4
br label %115
115: ; preds = %146, %114
%116 = load i32, ptr %39, align 4
%117 = load i32, ptr %33, align 4
%118 = icmp sle i32 %116, %117
br i1 %118, label %119, label %149
119: ; preds = %115
%120 = load ptr, ptr %21, align 8
%121 = load i32, ptr %39, align 4
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds double, ptr %120, i64 %122
%124 = load double, ptr %123, align 8
%125 = load ptr, ptr %56, align 8
%126 = load i32, ptr %40, align 4
%127 = load i32, ptr %37, align 4
%128 = mul nsw i32 %126, %127
%129 = load i32, ptr %39, align 4
%130 = add nsw i32 %128, %129
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds double, ptr %125, i64 %131
store double %124, ptr %132, align 8
%133 = load ptr, ptr %22, align 8
%134 = load i32, ptr %40, align 4
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds double, ptr %133, i64 %135
%137 = load double, ptr %136, align 8
%138 = load ptr, ptr %57, align 8
%139 = load i32, ptr %40, align 4
%140 = load i32, ptr %37, align 4
%141 = mul nsw i32 %139, %140
%142 = load i32, ptr %39, align 4
%143 = add nsw i32 %141, %142
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds double, ptr %138, i64 %144
store double %137, ptr %145, align 8
br label %146
146: ; preds = %119
%147 = load i32, ptr %39, align 4
%148 = add nsw i32 %147, 1
store i32 %148, ptr %39, align 4
br label %115, !llvm.loop !6
149: ; preds = %115
br label %150
150: ; preds = %149
%151 = load i32, ptr %40, align 4
%152 = add nsw i32 %151, 1
store i32 %152, ptr %40, align 4
br label %110, !llvm.loop !8
153: ; preds = %110
%154 = load ptr, ptr %17, align 8
%155 = load ptr, ptr %18, align 8
%156 = load ptr, ptr %56, align 8
%157 = load ptr, ptr %57, align 8
%158 = load ptr, ptr %53, align 8
%159 = call i32 @get_grid_area(ptr noundef %154, ptr noundef %155, ptr noundef %156, ptr noundef %157, ptr noundef %158)
%160 = load ptr, ptr %19, align 8
%161 = load ptr, ptr %20, align 8
%162 = load ptr, ptr %23, align 8
%163 = load ptr, ptr %24, align 8
%164 = load ptr, ptr %54, align 8
%165 = call i32 @get_grid_area(ptr noundef %160, ptr noundef %161, ptr noundef %162, ptr noundef %163, ptr noundef %164)
%166 = load ptr, ptr %56, align 8
%167 = call i32 @free(ptr noundef %166)
%168 = load ptr, ptr %57, align 8
%169 = call i32 @free(ptr noundef %168)
store i32 0, ptr %40, align 4
br label %170
170: ; preds = %500, %153
%171 = load i32, ptr %40, align 4
%172 = load i32, ptr %34, align 4
%173 = icmp slt i32 %171, %172
br i1 %173, label %174, label %503
174: ; preds = %170
store i32 0, ptr %39, align 4
br label %175
175: ; preds = %496, %174
%176 = load i32, ptr %39, align 4
%177 = load i32, ptr %33, align 4
%178 = icmp slt i32 %176, %177
br i1 %178, label %179, label %499
179: ; preds = %175
%180 = load ptr, ptr %25, align 8
%181 = load i32, ptr %40, align 4
%182 = load i32, ptr %33, align 4
%183 = mul nsw i32 %181, %182
%184 = load i32, ptr %39, align 4
%185 = add nsw i32 %183, %184
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds double, ptr %180, i64 %186
%188 = load double, ptr %187, align 8
%189 = fcmp ogt double %188, 5.000000e-01
br i1 %189, label %190, label %495
190: ; preds = %179
%191 = load ptr, ptr %21, align 8
%192 = load i32, ptr %39, align 4
%193 = sext i32 %192 to i64
%194 = getelementptr inbounds double, ptr %191, i64 %193
%195 = load double, ptr %194, align 8
store double %195, ptr %45, align 8
%196 = load ptr, ptr %22, align 8
%197 = load i32, ptr %40, align 4
%198 = sext i32 %197 to i64
%199 = getelementptr inbounds double, ptr %196, i64 %198
%200 = load double, ptr %199, align 8
store double %200, ptr %46, align 8
%201 = load ptr, ptr %21, align 8
%202 = load i32, ptr %39, align 4
%203 = add nsw i32 %202, 1
%204 = sext i32 %203 to i64
%205 = getelementptr inbounds double, ptr %201, i64 %204
%206 = load double, ptr %205, align 8
store double %206, ptr %47, align 8
%207 = load ptr, ptr %22, align 8
%208 = load i32, ptr %40, align 4
%209 = add nsw i32 %208, 1
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds double, ptr %207, i64 %210
%212 = load double, ptr %211, align 8
store double %212, ptr %48, align 8
store i32 0, ptr %42, align 4
br label %213
213: ; preds = %491, %190
%214 = load i32, ptr %42, align 4
%215 = load i32, ptr %36, align 4
%216 = icmp slt i32 %214, %215
br i1 %216, label %217, label %494
217: ; preds = %213
store i32 0, ptr %41, align 4
br label %218
218: ; preds = %487, %217
%219 = load i32, ptr %41, align 4
%220 = load i32, ptr %35, align 4
%221 = icmp slt i32 %219, %220
br i1 %221, label %222, label %490
222: ; preds = %218
%223 = load ptr, ptr %24, align 8
%224 = load i32, ptr %42, align 4
%225 = load i32, ptr %38, align 4
%226 = mul nsw i32 %224, %225
%227 = load i32, ptr %41, align 4
%228 = add nsw i32 %226, %227
%229 = sext i32 %228 to i64
%230 = getelementptr inbounds double, ptr %223, i64 %229
%231 = load double, ptr %230, align 8
%232 = getelementptr inbounds [50 x double], ptr %50, i64 0, i64 0
store double %231, ptr %232, align 16
%233 = load ptr, ptr %24, align 8
%234 = load i32, ptr %42, align 4
%235 = load i32, ptr %38, align 4
%236 = mul nsw i32 %234, %235
%237 = load i32, ptr %41, align 4
%238 = add nsw i32 %236, %237
%239 = add nsw i32 %238, 1
%240 = sext i32 %239 to i64
%241 = getelementptr inbounds double, ptr %233, i64 %240
%242 = load double, ptr %241, align 8
%243 = getelementptr inbounds [50 x double], ptr %50, i64 0, i64 1
store double %242, ptr %243, align 8
%244 = load ptr, ptr %24, align 8
%245 = load i32, ptr %42, align 4
%246 = add nsw i32 %245, 1
%247 = load i32, ptr %38, align 4
%248 = mul nsw i32 %246, %247
%249 = load i32, ptr %41, align 4
%250 = add nsw i32 %248, %249
%251 = add nsw i32 %250, 1
%252 = sext i32 %251 to i64
%253 = getelementptr inbounds double, ptr %244, i64 %252
%254 = load double, ptr %253, align 8
%255 = getelementptr inbounds [50 x double], ptr %50, i64 0, i64 2
store double %254, ptr %255, align 16
%256 = load ptr, ptr %24, align 8
%257 = load i32, ptr %42, align 4
%258 = add nsw i32 %257, 1
%259 = load i32, ptr %38, align 4
%260 = mul nsw i32 %258, %259
%261 = load i32, ptr %41, align 4
%262 = add nsw i32 %260, %261
%263 = sext i32 %262 to i64
%264 = getelementptr inbounds double, ptr %256, i64 %263
%265 = load double, ptr %264, align 8
%266 = getelementptr inbounds [50 x double], ptr %50, i64 0, i64 3
store double %265, ptr %266, align 8
%267 = getelementptr inbounds [50 x double], ptr %50, i64 0, i64 0
%268 = load double, ptr %267, align 16
%269 = load double, ptr %46, align 8
%270 = fcmp ole double %268, %269
br i1 %270, label %271, label %287
271: ; preds = %222
%272 = getelementptr inbounds [50 x double], ptr %50, i64 0, i64 1
%273 = load double, ptr %272, align 8
%274 = load double, ptr %46, align 8
%275 = fcmp ole double %273, %274
br i1 %275, label %276, label %287
276: ; preds = %271
%277 = getelementptr inbounds [50 x double], ptr %50, i64 0, i64 2
%278 = load double, ptr %277, align 16
%279 = load double, ptr %46, align 8
%280 = fcmp ole double %278, %279
br i1 %280, label %281, label %287
281: ; preds = %276
%282 = getelementptr inbounds [50 x double], ptr %50, i64 0, i64 3
%283 = load double, ptr %282, align 8
%284 = load double, ptr %46, align 8
%285 = fcmp ole double %283, %284
br i1 %285, label %286, label %287
286: ; preds = %281
br label %487
287: ; preds = %281, %276, %271, %222
%288 = getelementptr inbounds [50 x double], ptr %50, i64 0, i64 0
%289 = load double, ptr %288, align 16
%290 = load double, ptr %48, align 8
%291 = fcmp oge double %289, %290
br i1 %291, label %292, label %308
292: ; preds = %287
%293 = getelementptr inbounds [50 x double], ptr %50, i64 0, i64 1
%294 = load double, ptr %293, align 8
%295 = load double, ptr %48, align 8
%296 = fcmp oge double %294, %295
br i1 %296, label %297, label %308
297: ; preds = %292
%298 = getelementptr inbounds [50 x double], ptr %50, i64 0, i64 2
%299 = load double, ptr %298, align 16
%300 = load double, ptr %48, align 8
%301 = fcmp oge double %299, %300
br i1 %301, label %302, label %308
302: ; preds = %297
%303 = getelementptr inbounds [50 x double], ptr %50, i64 0, i64 3
%304 = load double, ptr %303, align 8
%305 = load double, ptr %48, align 8
%306 = fcmp oge double %304, %305
br i1 %306, label %307, label %308
307: ; preds = %302
br label %487
308: ; preds = %302, %297, %292, %287
%309 = load ptr, ptr %23, align 8
%310 = load i32, ptr %42, align 4
%311 = load i32, ptr %38, align 4
%312 = mul nsw i32 %310, %311
%313 = load i32, ptr %41, align 4
%314 = add nsw i32 %312, %313
%315 = sext i32 %314 to i64
%316 = getelementptr inbounds double, ptr %309, i64 %315
%317 = load double, ptr %316, align 8
%318 = getelementptr inbounds [50 x double], ptr %49, i64 0, i64 0
store double %317, ptr %318, align 16
%319 = load ptr, ptr %23, align 8
%320 = load i32, ptr %42, align 4
%321 = load i32, ptr %38, align 4
%322 = mul nsw i32 %320, %321
%323 = load i32, ptr %41, align 4
%324 = add nsw i32 %322, %323
%325 = add nsw i32 %324, 1
%326 = sext i32 %325 to i64
%327 = getelementptr inbounds double, ptr %319, i64 %326
%328 = load double, ptr %327, align 8
%329 = getelementptr inbounds [50 x double], ptr %49, i64 0, i64 1
store double %328, ptr %329, align 8
%330 = load ptr, ptr %23, align 8
%331 = load i32, ptr %42, align 4
%332 = add nsw i32 %331, 1
%333 = load i32, ptr %38, align 4
%334 = mul nsw i32 %332, %333
%335 = load i32, ptr %41, align 4
%336 = add nsw i32 %334, %335
%337 = add nsw i32 %336, 1
%338 = sext i32 %337 to i64
%339 = getelementptr inbounds double, ptr %330, i64 %338
%340 = load double, ptr %339, align 8
%341 = getelementptr inbounds [50 x double], ptr %49, i64 0, i64 2
store double %340, ptr %341, align 16
%342 = load ptr, ptr %23, align 8
%343 = load i32, ptr %42, align 4
%344 = add nsw i32 %343, 1
%345 = load i32, ptr %38, align 4
%346 = mul nsw i32 %344, %345
%347 = load i32, ptr %41, align 4
%348 = add nsw i32 %346, %347
%349 = sext i32 %348 to i64
%350 = getelementptr inbounds double, ptr %342, i64 %349
%351 = load double, ptr %350, align 8
%352 = getelementptr inbounds [50 x double], ptr %49, i64 0, i64 3
store double %351, ptr %352, align 8
%353 = getelementptr inbounds [50 x double], ptr %49, i64 0, i64 0
%354 = getelementptr inbounds [50 x double], ptr %50, i64 0, i64 0
%355 = load double, ptr %45, align 8
%356 = load double, ptr %47, align 8
%357 = fadd double %355, %356
%358 = fdiv double %357, 2.000000e+00
%359 = call i32 @fix_lon(ptr noundef %353, ptr noundef %354, i32 noundef 4, double noundef %358)
store i32 %359, ptr %58, align 4
%360 = load i32, ptr %58, align 4
%361 = getelementptr inbounds [50 x double], ptr %49, i64 0, i64 0
%362 = call double @avgval_double(i32 noundef %360, ptr noundef %361)
store double %362, ptr %61, align 8
%363 = getelementptr inbounds [50 x double], ptr %49, i64 0, i64 0
%364 = getelementptr inbounds [50 x double], ptr %50, i64 0, i64 0
%365 = load i32, ptr %58, align 4
%366 = load double, ptr %45, align 8
%367 = load double, ptr %46, align 8
%368 = load double, ptr %47, align 8
%369 = load double, ptr %48, align 8
%370 = getelementptr inbounds [50 x double], ptr %51, i64 0, i64 0
%371 = getelementptr inbounds [50 x double], ptr %52, i64 0, i64 0
%372 = call i32 @clip(ptr noundef %363, ptr noundef %364, i32 noundef %365, double noundef %366, double noundef %367, double noundef %368, double noundef %369, ptr noundef %370, ptr noundef %371)
store i32 %372, ptr %59, align 4
%373 = icmp sgt i32 %372, 0
br i1 %373, label %374, label %486
374: ; preds = %308
%375 = getelementptr inbounds [50 x double], ptr %51, i64 0, i64 0
%376 = getelementptr inbounds [50 x double], ptr %52, i64 0, i64 0
%377 = load i32, ptr %59, align 4
%378 = call double @poly_area(ptr noundef %375, ptr noundef %376, i32 noundef %377)
%379 = load ptr, ptr %25, align 8
%380 = load i32, ptr %40, align 4
%381 = load i32, ptr %33, align 4
%382 = mul nsw i32 %380, %381
%383 = load i32, ptr %39, align 4
%384 = add nsw i32 %382, %383
%385 = sext i32 %384 to i64
%386 = getelementptr inbounds double, ptr %379, i64 %385
%387 = load double, ptr %386, align 8
%388 = fmul double %378, %387
store double %388, ptr %60, align 8
%389 = load ptr, ptr %53, align 8
%390 = load i32, ptr %40, align 4
%391 = load i32, ptr %33, align 4
%392 = mul nsw i32 %390, %391
%393 = load i32, ptr %39, align 4
%394 = add nsw i32 %392, %393
%395 = sext i32 %394 to i64
%396 = getelementptr inbounds double, ptr %389, i64 %395
%397 = load double, ptr %396, align 8
%398 = load ptr, ptr %54, align 8
%399 = load i32, ptr %42, align 4
%400 = load i32, ptr %35, align 4
%401 = mul nsw i32 %399, %400
%402 = load i32, ptr %41, align 4
%403 = add nsw i32 %401, %402
%404 = sext i32 %403 to i64
%405 = getelementptr inbounds double, ptr %398, i64 %404
%406 = load double, ptr %405, align 8
%407 = fcmp olt double %397, %406
br i1 %407, label %408, label %418
408: ; preds = %374
%409 = load ptr, ptr %53, align 8
%410 = load i32, ptr %40, align 4
%411 = load i32, ptr %33, align 4
%412 = mul nsw i32 %410, %411
%413 = load i32, ptr %39, align 4
%414 = add nsw i32 %412, %413
%415 = sext i32 %414 to i64
%416 = getelementptr inbounds double, ptr %409, i64 %415
%417 = load double, ptr %416, align 8
br label %428
418: ; preds = %374
%419 = load ptr, ptr %54, align 8
%420 = load i32, ptr %42, align 4
%421 = load i32, ptr %35, align 4
%422 = mul nsw i32 %420, %421
%423 = load i32, ptr %41, align 4
%424 = add nsw i32 %422, %423
%425 = sext i32 %424 to i64
%426 = getelementptr inbounds double, ptr %419, i64 %425
%427 = load double, ptr %426, align 8
br label %428
428: ; preds = %418, %408
%429 = phi double [ %417, %408 ], [ %427, %418 ]
store double %429, ptr %55, align 8
%430 = load double, ptr %60, align 8
%431 = load double, ptr %55, align 8
%432 = fdiv double %430, %431
%433 = fcmp ogt double %432, 0x3EB0C6F7A0B5ED8D
br i1 %433, label %434, label %485
434: ; preds = %428
%435 = load double, ptr %60, align 8
%436 = load ptr, ptr %30, align 8
%437 = load i32, ptr %43, align 4
%438 = sext i32 %437 to i64
%439 = getelementptr inbounds double, ptr %436, i64 %438
store double %435, ptr %439, align 8
%440 = getelementptr inbounds [50 x double], ptr %51, i64 0, i64 0
%441 = getelementptr inbounds [50 x double], ptr %52, i64 0, i64 0
%442 = load i32, ptr %59, align 4
%443 = load double, ptr %61, align 8
%444 = call double @poly_ctrlon(ptr noundef %440, ptr noundef %441, i32 noundef %442, double noundef %443)
%445 = load ptr, ptr %31, align 8
%446 = load i32, ptr %43, align 4
%447 = sext i32 %446 to i64
%448 = getelementptr inbounds double, ptr %445, i64 %447
store double %444, ptr %448, align 8
%449 = getelementptr inbounds [50 x double], ptr %51, i64 0, i64 0
%450 = getelementptr inbounds [50 x double], ptr %52, i64 0, i64 0
%451 = load i32, ptr %59, align 4
%452 = call double @poly_ctrlat(ptr noundef %449, ptr noundef %450, i32 noundef %451)
%453 = load ptr, ptr %32, align 8
%454 = load i32, ptr %43, align 4
%455 = sext i32 %454 to i64
%456 = getelementptr inbounds double, ptr %453, i64 %455
store double %452, ptr %456, align 8
%457 = load i32, ptr %39, align 4
%458 = load ptr, ptr %26, align 8
%459 = load i32, ptr %43, align 4
%460 = sext i32 %459 to i64
%461 = getelementptr inbounds i32, ptr %458, i64 %460
store i32 %457, ptr %461, align 4
%462 = load i32, ptr %40, align 4
%463 = load ptr, ptr %27, align 8
%464 = load i32, ptr %43, align 4
%465 = sext i32 %464 to i64
%466 = getelementptr inbounds i32, ptr %463, i64 %465
store i32 %462, ptr %466, align 4
%467 = load i32, ptr %41, align 4
%468 = load ptr, ptr %28, align 8
%469 = load i32, ptr %43, align 4
%470 = sext i32 %469 to i64
%471 = getelementptr inbounds i32, ptr %468, i64 %470
store i32 %467, ptr %471, align 4
%472 = load i32, ptr %42, align 4
%473 = load ptr, ptr %29, align 8
%474 = load i32, ptr %43, align 4
%475 = sext i32 %474 to i64
%476 = getelementptr inbounds i32, ptr %473, i64 %475
store i32 %472, ptr %476, align 4
%477 = load i32, ptr %43, align 4
%478 = add nsw i32 %477, 1
store i32 %478, ptr %43, align 4
%479 = load i32, ptr %43, align 4
%480 = sitofp i32 %479 to double
%481 = fcmp ogt double %480, 1.000000e+06
br i1 %481, label %482, label %484
482: ; preds = %434
%483 = call i32 @error_handler(ptr noundef @.str)
br label %484
484: ; preds = %482, %434
br label %485
485: ; preds = %484, %428
br label %486
486: ; preds = %485, %308
br label %487
487: ; preds = %486, %307, %286
%488 = load i32, ptr %41, align 4
%489 = add nsw i32 %488, 1
store i32 %489, ptr %41, align 4
br label %218, !llvm.loop !9
490: ; preds = %218
br label %491
491: ; preds = %490
%492 = load i32, ptr %42, align 4
%493 = add nsw i32 %492, 1
store i32 %493, ptr %42, align 4
br label %213, !llvm.loop !10
494: ; preds = %213
br label %495
495: ; preds = %494, %179
br label %496
496: ; preds = %495
%497 = load i32, ptr %39, align 4
%498 = add nsw i32 %497, 1
store i32 %498, ptr %39, align 4
br label %175, !llvm.loop !11
499: ; preds = %175
br label %500
500: ; preds = %499
%501 = load i32, ptr %40, align 4
%502 = add nsw i32 %501, 1
store i32 %502, ptr %40, align 4
br label %170, !llvm.loop !12
503: ; preds = %170
%504 = load ptr, ptr %53, align 8
%505 = call i32 @free(ptr noundef %504)
%506 = load ptr, ptr %54, align 8
%507 = call i32 @free(ptr noundef %506)
%508 = load i32, ptr %43, align 4
ret i32 %508
}
declare i64 @malloc(i32 noundef) #1
declare i32 @get_grid_area(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @fix_lon(ptr noundef, ptr noundef, i32 noundef, double noundef) #1
declare double @avgval_double(i32 noundef, ptr noundef) #1
declare i32 @clip(ptr noundef, ptr noundef, i32 noundef, double noundef, double noundef, double noundef, double noundef, ptr noundef, ptr noundef) #1
declare double @poly_area(ptr noundef, ptr noundef, i32 noundef) #1
declare double @poly_ctrlon(ptr noundef, ptr noundef, i32 noundef, double noundef) #1
declare double @poly_ctrlat(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @error_handler(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/tmppv6ouw62.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"nxgrid is greater than MAXXGRID, increase MAXXGRID\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @create_xgrid_1dx2d_order2(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15) #0 {
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca ptr, align 8
%22 = alloca ptr, align 8
%23 = alloca ptr, align 8
%24 = alloca ptr, align 8
%25 = alloca ptr, align 8
%26 = alloca ptr, align 8
%27 = alloca ptr, align 8
%28 = alloca ptr, align 8
%29 = alloca ptr, align 8
%30 = alloca ptr, align 8
%31 = alloca ptr, align 8
%32 = alloca ptr, align 8
%33 = alloca i32, align 4
%34 = alloca i32, align 4
%35 = alloca i32, align 4
%36 = alloca i32, align 4
%37 = alloca i32, align 4
%38 = alloca i32, align 4
%39 = alloca i32, align 4
%40 = alloca i32, align 4
%41 = alloca i32, align 4
%42 = alloca i32, align 4
%43 = alloca i32, align 4
%44 = alloca i32, align 4
%45 = alloca double, align 8
%46 = alloca double, align 8
%47 = alloca double, align 8
%48 = alloca double, align 8
%49 = alloca [50 x double], align 16
%50 = alloca [50 x double], align 16
%51 = alloca [50 x double], align 16
%52 = alloca [50 x double], align 16
%53 = alloca ptr, align 8
%54 = alloca ptr, align 8
%55 = alloca double, align 8
%56 = alloca ptr, align 8
%57 = alloca ptr, align 8
%58 = alloca i32, align 4
%59 = alloca i32, align 4
%60 = alloca double, align 8
%61 = alloca double, align 8
store ptr %0, ptr %17, align 8
store ptr %1, ptr %18, align 8
store ptr %2, ptr %19, align 8
store ptr %3, ptr %20, align 8
store ptr %4, ptr %21, align 8
store ptr %5, ptr %22, align 8
store ptr %6, ptr %23, align 8
store ptr %7, ptr %24, align 8
store ptr %8, ptr %25, align 8
store ptr %9, ptr %26, align 8
store ptr %10, ptr %27, align 8
store ptr %11, ptr %28, align 8
store ptr %12, ptr %29, align 8
store ptr %13, ptr %30, align 8
store ptr %14, ptr %31, align 8
store ptr %15, ptr %32, align 8
%62 = load ptr, ptr %17, align 8
%63 = load i32, ptr %62, align 4
store i32 %63, ptr %33, align 4
%64 = load ptr, ptr %18, align 8
%65 = load i32, ptr %64, align 4
store i32 %65, ptr %34, align 4
%66 = load ptr, ptr %19, align 8
%67 = load i32, ptr %66, align 4
store i32 %67, ptr %35, align 4
%68 = load ptr, ptr %20, align 8
%69 = load i32, ptr %68, align 4
store i32 %69, ptr %36, align 4
store i32 0, ptr %43, align 4
%70 = load i32, ptr %33, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %37, align 4
%72 = load i32, ptr %35, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %38, align 4
%74 = load i32, ptr %33, align 4
%75 = load i32, ptr %34, align 4
%76 = mul nsw i32 %74, %75
%77 = sext i32 %76 to i64
%78 = mul i64 %77, 8
%79 = trunc i64 %78 to i32
%80 = call i64 @malloc(i32 noundef %79)
%81 = inttoptr i64 %80 to ptr
store ptr %81, ptr %53, align 8
%82 = load i32, ptr %35, align 4
%83 = load i32, ptr %36, align 4
%84 = mul nsw i32 %82, %83
%85 = sext i32 %84 to i64
%86 = mul i64 %85, 8
%87 = trunc i64 %86 to i32
%88 = call i64 @malloc(i32 noundef %87)
%89 = inttoptr i64 %88 to ptr
store ptr %89, ptr %54, align 8
%90 = load i32, ptr %33, align 4
%91 = add nsw i32 %90, 1
%92 = load i32, ptr %34, align 4
%93 = add nsw i32 %92, 1
%94 = mul nsw i32 %91, %93
%95 = sext i32 %94 to i64
%96 = mul i64 %95, 8
%97 = trunc i64 %96 to i32
%98 = call i64 @malloc(i32 noundef %97)
%99 = inttoptr i64 %98 to ptr
store ptr %99, ptr %56, align 8
%100 = load i32, ptr %33, align 4
%101 = add nsw i32 %100, 1
%102 = load i32, ptr %34, align 4
%103 = add nsw i32 %102, 1
%104 = mul nsw i32 %101, %103
%105 = sext i32 %104 to i64
%106 = mul i64 %105, 8
%107 = trunc i64 %106 to i32
%108 = call i64 @malloc(i32 noundef %107)
%109 = inttoptr i64 %108 to ptr
store ptr %109, ptr %57, align 8
store i32 0, ptr %40, align 4
%110 = load i32, ptr %40, align 4
%111 = load i32, ptr %34, align 4
%112 = icmp sle i32 %110, %111
br i1 %112, label %.lr.ph2, label %157
.lr.ph2: ; preds = %16
br label %113
113: ; preds = %.lr.ph2, %151
store i32 0, ptr %39, align 4
%114 = load i32, ptr %39, align 4
%115 = load i32, ptr %33, align 4
%116 = icmp sle i32 %114, %115
br i1 %116, label %.lr.ph, label %150
.lr.ph: ; preds = %113
br label %117
117: ; preds = %.lr.ph, %144
%118 = load ptr, ptr %21, align 8
%119 = load i32, ptr %39, align 4
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds double, ptr %118, i64 %120
%122 = load double, ptr %121, align 8
%123 = load ptr, ptr %56, align 8
%124 = load i32, ptr %40, align 4
%125 = load i32, ptr %37, align 4
%126 = mul nsw i32 %124, %125
%127 = load i32, ptr %39, align 4
%128 = add nsw i32 %126, %127
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds double, ptr %123, i64 %129
store double %122, ptr %130, align 8
%131 = load ptr, ptr %22, align 8
%132 = load i32, ptr %40, align 4
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds double, ptr %131, i64 %133
%135 = load double, ptr %134, align 8
%136 = load ptr, ptr %57, align 8
%137 = load i32, ptr %40, align 4
%138 = load i32, ptr %37, align 4
%139 = mul nsw i32 %137, %138
%140 = load i32, ptr %39, align 4
%141 = add nsw i32 %139, %140
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds double, ptr %136, i64 %142
store double %135, ptr %143, align 8
br label %144
144: ; preds = %117
%145 = load i32, ptr %39, align 4
%146 = add nsw i32 %145, 1
store i32 %146, ptr %39, align 4
%147 = load i32, ptr %39, align 4
%148 = load i32, ptr %33, align 4
%149 = icmp sle i32 %147, %148
br i1 %149, label %117, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %144
br label %150
150: ; preds = %._crit_edge, %113
br label %151
151: ; preds = %150
%152 = load i32, ptr %40, align 4
%153 = add nsw i32 %152, 1
store i32 %153, ptr %40, align 4
%154 = load i32, ptr %40, align 4
%155 = load i32, ptr %34, align 4
%156 = icmp sle i32 %154, %155
br i1 %156, label %113, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %151
br label %157
157: ; preds = %._crit_edge3, %16
%158 = load ptr, ptr %17, align 8
%159 = load ptr, ptr %18, align 8
%160 = load ptr, ptr %56, align 8
%161 = load ptr, ptr %57, align 8
%162 = load ptr, ptr %53, align 8
%163 = call i32 @get_grid_area(ptr noundef %158, ptr noundef %159, ptr noundef %160, ptr noundef %161, ptr noundef %162)
%164 = load ptr, ptr %19, align 8
%165 = load ptr, ptr %20, align 8
%166 = load ptr, ptr %23, align 8
%167 = load ptr, ptr %24, align 8
%168 = load ptr, ptr %54, align 8
%169 = call i32 @get_grid_area(ptr noundef %164, ptr noundef %165, ptr noundef %166, ptr noundef %167, ptr noundef %168)
%170 = load ptr, ptr %56, align 8
%171 = call i32 @free(ptr noundef %170)
%172 = load ptr, ptr %57, align 8
%173 = call i32 @free(ptr noundef %172)
store i32 0, ptr %40, align 4
%174 = load i32, ptr %40, align 4
%175 = load i32, ptr %34, align 4
%176 = icmp slt i32 %174, %175
br i1 %176, label %.lr.ph14, label %515
.lr.ph14: ; preds = %157
br label %177
177: ; preds = %.lr.ph14, %509
store i32 0, ptr %39, align 4
%178 = load i32, ptr %39, align 4
%179 = load i32, ptr %33, align 4
%180 = icmp slt i32 %178, %179
br i1 %180, label %.lr.ph11, label %508
.lr.ph11: ; preds = %177
br label %181
181: ; preds = %.lr.ph11, %502
%182 = load ptr, ptr %25, align 8
%183 = load i32, ptr %40, align 4
%184 = load i32, ptr %33, align 4
%185 = mul nsw i32 %183, %184
%186 = load i32, ptr %39, align 4
%187 = add nsw i32 %185, %186
%188 = sext i32 %187 to i64
%189 = getelementptr inbounds double, ptr %182, i64 %188
%190 = load double, ptr %189, align 8
%191 = fcmp ogt double %190, 5.000000e-01
br i1 %191, label %192, label %501
192: ; preds = %181
%193 = load ptr, ptr %21, align 8
%194 = load i32, ptr %39, align 4
%195 = sext i32 %194 to i64
%196 = getelementptr inbounds double, ptr %193, i64 %195
%197 = load double, ptr %196, align 8
store double %197, ptr %45, align 8
%198 = load ptr, ptr %22, align 8
%199 = load i32, ptr %40, align 4
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds double, ptr %198, i64 %200
%202 = load double, ptr %201, align 8
store double %202, ptr %46, align 8
%203 = load ptr, ptr %21, align 8
%204 = load i32, ptr %39, align 4
%205 = add nsw i32 %204, 1
%206 = sext i32 %205 to i64
%207 = getelementptr inbounds double, ptr %203, i64 %206
%208 = load double, ptr %207, align 8
store double %208, ptr %47, align 8
%209 = load ptr, ptr %22, align 8
%210 = load i32, ptr %40, align 4
%211 = add nsw i32 %210, 1
%212 = sext i32 %211 to i64
%213 = getelementptr inbounds double, ptr %209, i64 %212
%214 = load double, ptr %213, align 8
store double %214, ptr %48, align 8
store i32 0, ptr %42, align 4
%215 = load i32, ptr %42, align 4
%216 = load i32, ptr %36, align 4
%217 = icmp slt i32 %215, %216
br i1 %217, label %.lr.ph8, label %500
.lr.ph8: ; preds = %192
br label %218
218: ; preds = %.lr.ph8, %494
store i32 0, ptr %41, align 4
%219 = load i32, ptr %41, align 4
%220 = load i32, ptr %35, align 4
%221 = icmp slt i32 %219, %220
br i1 %221, label %.lr.ph5, label %493
.lr.ph5: ; preds = %218
br label %222
222: ; preds = %.lr.ph5, %487
%223 = load ptr, ptr %24, align 8
%224 = load i32, ptr %42, align 4
%225 = load i32, ptr %38, align 4
%226 = mul nsw i32 %224, %225
%227 = load i32, ptr %41, align 4
%228 = add nsw i32 %226, %227
%229 = sext i32 %228 to i64
%230 = getelementptr inbounds double, ptr %223, i64 %229
%231 = load double, ptr %230, align 8
%232 = getelementptr inbounds [50 x double], ptr %50, i64 0, i64 0
store double %231, ptr %232, align 16
%233 = load ptr, ptr %24, align 8
%234 = load i32, ptr %42, align 4
%235 = load i32, ptr %38, align 4
%236 = mul nsw i32 %234, %235
%237 = load i32, ptr %41, align 4
%238 = add nsw i32 %236, %237
%239 = add nsw i32 %238, 1
%240 = sext i32 %239 to i64
%241 = getelementptr inbounds double, ptr %233, i64 %240
%242 = load double, ptr %241, align 8
%243 = getelementptr inbounds [50 x double], ptr %50, i64 0, i64 1
store double %242, ptr %243, align 8
%244 = load ptr, ptr %24, align 8
%245 = load i32, ptr %42, align 4
%246 = add nsw i32 %245, 1
%247 = load i32, ptr %38, align 4
%248 = mul nsw i32 %246, %247
%249 = load i32, ptr %41, align 4
%250 = add nsw i32 %248, %249
%251 = add nsw i32 %250, 1
%252 = sext i32 %251 to i64
%253 = getelementptr inbounds double, ptr %244, i64 %252
%254 = load double, ptr %253, align 8
%255 = getelementptr inbounds [50 x double], ptr %50, i64 0, i64 2
store double %254, ptr %255, align 16
%256 = load ptr, ptr %24, align 8
%257 = load i32, ptr %42, align 4
%258 = add nsw i32 %257, 1
%259 = load i32, ptr %38, align 4
%260 = mul nsw i32 %258, %259
%261 = load i32, ptr %41, align 4
%262 = add nsw i32 %260, %261
%263 = sext i32 %262 to i64
%264 = getelementptr inbounds double, ptr %256, i64 %263
%265 = load double, ptr %264, align 8
%266 = getelementptr inbounds [50 x double], ptr %50, i64 0, i64 3
store double %265, ptr %266, align 8
%267 = getelementptr inbounds [50 x double], ptr %50, i64 0, i64 0
%268 = load double, ptr %267, align 16
%269 = load double, ptr %46, align 8
%270 = fcmp ole double %268, %269
br i1 %270, label %271, label %287
271: ; preds = %222
%272 = getelementptr inbounds [50 x double], ptr %50, i64 0, i64 1
%273 = load double, ptr %272, align 8
%274 = load double, ptr %46, align 8
%275 = fcmp ole double %273, %274
br i1 %275, label %276, label %287
276: ; preds = %271
%277 = getelementptr inbounds [50 x double], ptr %50, i64 0, i64 2
%278 = load double, ptr %277, align 16
%279 = load double, ptr %46, align 8
%280 = fcmp ole double %278, %279
br i1 %280, label %281, label %287
281: ; preds = %276
%282 = getelementptr inbounds [50 x double], ptr %50, i64 0, i64 3
%283 = load double, ptr %282, align 8
%284 = load double, ptr %46, align 8
%285 = fcmp ole double %283, %284
br i1 %285, label %286, label %287
286: ; preds = %281
br label %487
287: ; preds = %281, %276, %271, %222
%288 = getelementptr inbounds [50 x double], ptr %50, i64 0, i64 0
%289 = load double, ptr %288, align 16
%290 = load double, ptr %48, align 8
%291 = fcmp oge double %289, %290
br i1 %291, label %292, label %308
292: ; preds = %287
%293 = getelementptr inbounds [50 x double], ptr %50, i64 0, i64 1
%294 = load double, ptr %293, align 8
%295 = load double, ptr %48, align 8
%296 = fcmp oge double %294, %295
br i1 %296, label %297, label %308
297: ; preds = %292
%298 = getelementptr inbounds [50 x double], ptr %50, i64 0, i64 2
%299 = load double, ptr %298, align 16
%300 = load double, ptr %48, align 8
%301 = fcmp oge double %299, %300
br i1 %301, label %302, label %308
302: ; preds = %297
%303 = getelementptr inbounds [50 x double], ptr %50, i64 0, i64 3
%304 = load double, ptr %303, align 8
%305 = load double, ptr %48, align 8
%306 = fcmp oge double %304, %305
br i1 %306, label %307, label %308
307: ; preds = %302
br label %487
308: ; preds = %302, %297, %292, %287
%309 = load ptr, ptr %23, align 8
%310 = load i32, ptr %42, align 4
%311 = load i32, ptr %38, align 4
%312 = mul nsw i32 %310, %311
%313 = load i32, ptr %41, align 4
%314 = add nsw i32 %312, %313
%315 = sext i32 %314 to i64
%316 = getelementptr inbounds double, ptr %309, i64 %315
%317 = load double, ptr %316, align 8
%318 = getelementptr inbounds [50 x double], ptr %49, i64 0, i64 0
store double %317, ptr %318, align 16
%319 = load ptr, ptr %23, align 8
%320 = load i32, ptr %42, align 4
%321 = load i32, ptr %38, align 4
%322 = mul nsw i32 %320, %321
%323 = load i32, ptr %41, align 4
%324 = add nsw i32 %322, %323
%325 = add nsw i32 %324, 1
%326 = sext i32 %325 to i64
%327 = getelementptr inbounds double, ptr %319, i64 %326
%328 = load double, ptr %327, align 8
%329 = getelementptr inbounds [50 x double], ptr %49, i64 0, i64 1
store double %328, ptr %329, align 8
%330 = load ptr, ptr %23, align 8
%331 = load i32, ptr %42, align 4
%332 = add nsw i32 %331, 1
%333 = load i32, ptr %38, align 4
%334 = mul nsw i32 %332, %333
%335 = load i32, ptr %41, align 4
%336 = add nsw i32 %334, %335
%337 = add nsw i32 %336, 1
%338 = sext i32 %337 to i64
%339 = getelementptr inbounds double, ptr %330, i64 %338
%340 = load double, ptr %339, align 8
%341 = getelementptr inbounds [50 x double], ptr %49, i64 0, i64 2
store double %340, ptr %341, align 16
%342 = load ptr, ptr %23, align 8
%343 = load i32, ptr %42, align 4
%344 = add nsw i32 %343, 1
%345 = load i32, ptr %38, align 4
%346 = mul nsw i32 %344, %345
%347 = load i32, ptr %41, align 4
%348 = add nsw i32 %346, %347
%349 = sext i32 %348 to i64
%350 = getelementptr inbounds double, ptr %342, i64 %349
%351 = load double, ptr %350, align 8
%352 = getelementptr inbounds [50 x double], ptr %49, i64 0, i64 3
store double %351, ptr %352, align 8
%353 = getelementptr inbounds [50 x double], ptr %49, i64 0, i64 0
%354 = getelementptr inbounds [50 x double], ptr %50, i64 0, i64 0
%355 = load double, ptr %45, align 8
%356 = load double, ptr %47, align 8
%357 = fadd double %355, %356
%358 = fdiv double %357, 2.000000e+00
%359 = call i32 @fix_lon(ptr noundef %353, ptr noundef %354, i32 noundef 4, double noundef %358)
store i32 %359, ptr %58, align 4
%360 = load i32, ptr %58, align 4
%361 = getelementptr inbounds [50 x double], ptr %49, i64 0, i64 0
%362 = call double @avgval_double(i32 noundef %360, ptr noundef %361)
store double %362, ptr %61, align 8
%363 = getelementptr inbounds [50 x double], ptr %49, i64 0, i64 0
%364 = getelementptr inbounds [50 x double], ptr %50, i64 0, i64 0
%365 = load i32, ptr %58, align 4
%366 = load double, ptr %45, align 8
%367 = load double, ptr %46, align 8
%368 = load double, ptr %47, align 8
%369 = load double, ptr %48, align 8
%370 = getelementptr inbounds [50 x double], ptr %51, i64 0, i64 0
%371 = getelementptr inbounds [50 x double], ptr %52, i64 0, i64 0
%372 = call i32 @clip(ptr noundef %363, ptr noundef %364, i32 noundef %365, double noundef %366, double noundef %367, double noundef %368, double noundef %369, ptr noundef %370, ptr noundef %371)
store i32 %372, ptr %59, align 4
%373 = icmp sgt i32 %372, 0
br i1 %373, label %374, label %486
374: ; preds = %308
%375 = getelementptr inbounds [50 x double], ptr %51, i64 0, i64 0
%376 = getelementptr inbounds [50 x double], ptr %52, i64 0, i64 0
%377 = load i32, ptr %59, align 4
%378 = call double @poly_area(ptr noundef %375, ptr noundef %376, i32 noundef %377)
%379 = load ptr, ptr %25, align 8
%380 = load i32, ptr %40, align 4
%381 = load i32, ptr %33, align 4
%382 = mul nsw i32 %380, %381
%383 = load i32, ptr %39, align 4
%384 = add nsw i32 %382, %383
%385 = sext i32 %384 to i64
%386 = getelementptr inbounds double, ptr %379, i64 %385
%387 = load double, ptr %386, align 8
%388 = fmul double %378, %387
store double %388, ptr %60, align 8
%389 = load ptr, ptr %53, align 8
%390 = load i32, ptr %40, align 4
%391 = load i32, ptr %33, align 4
%392 = mul nsw i32 %390, %391
%393 = load i32, ptr %39, align 4
%394 = add nsw i32 %392, %393
%395 = sext i32 %394 to i64
%396 = getelementptr inbounds double, ptr %389, i64 %395
%397 = load double, ptr %396, align 8
%398 = load ptr, ptr %54, align 8
%399 = load i32, ptr %42, align 4
%400 = load i32, ptr %35, align 4
%401 = mul nsw i32 %399, %400
%402 = load i32, ptr %41, align 4
%403 = add nsw i32 %401, %402
%404 = sext i32 %403 to i64
%405 = getelementptr inbounds double, ptr %398, i64 %404
%406 = load double, ptr %405, align 8
%407 = fcmp olt double %397, %406
br i1 %407, label %408, label %418
408: ; preds = %374
%409 = load ptr, ptr %53, align 8
%410 = load i32, ptr %40, align 4
%411 = load i32, ptr %33, align 4
%412 = mul nsw i32 %410, %411
%413 = load i32, ptr %39, align 4
%414 = add nsw i32 %412, %413
%415 = sext i32 %414 to i64
%416 = getelementptr inbounds double, ptr %409, i64 %415
%417 = load double, ptr %416, align 8
br label %428
418: ; preds = %374
%419 = load ptr, ptr %54, align 8
%420 = load i32, ptr %42, align 4
%421 = load i32, ptr %35, align 4
%422 = mul nsw i32 %420, %421
%423 = load i32, ptr %41, align 4
%424 = add nsw i32 %422, %423
%425 = sext i32 %424 to i64
%426 = getelementptr inbounds double, ptr %419, i64 %425
%427 = load double, ptr %426, align 8
br label %428
428: ; preds = %418, %408
%429 = phi double [ %417, %408 ], [ %427, %418 ]
store double %429, ptr %55, align 8
%430 = load double, ptr %60, align 8
%431 = load double, ptr %55, align 8
%432 = fdiv double %430, %431
%433 = fcmp ogt double %432, 0x3EB0C6F7A0B5ED8D
br i1 %433, label %434, label %485
434: ; preds = %428
%435 = load double, ptr %60, align 8
%436 = load ptr, ptr %30, align 8
%437 = load i32, ptr %43, align 4
%438 = sext i32 %437 to i64
%439 = getelementptr inbounds double, ptr %436, i64 %438
store double %435, ptr %439, align 8
%440 = getelementptr inbounds [50 x double], ptr %51, i64 0, i64 0
%441 = getelementptr inbounds [50 x double], ptr %52, i64 0, i64 0
%442 = load i32, ptr %59, align 4
%443 = load double, ptr %61, align 8
%444 = call double @poly_ctrlon(ptr noundef %440, ptr noundef %441, i32 noundef %442, double noundef %443)
%445 = load ptr, ptr %31, align 8
%446 = load i32, ptr %43, align 4
%447 = sext i32 %446 to i64
%448 = getelementptr inbounds double, ptr %445, i64 %447
store double %444, ptr %448, align 8
%449 = getelementptr inbounds [50 x double], ptr %51, i64 0, i64 0
%450 = getelementptr inbounds [50 x double], ptr %52, i64 0, i64 0
%451 = load i32, ptr %59, align 4
%452 = call double @poly_ctrlat(ptr noundef %449, ptr noundef %450, i32 noundef %451)
%453 = load ptr, ptr %32, align 8
%454 = load i32, ptr %43, align 4
%455 = sext i32 %454 to i64
%456 = getelementptr inbounds double, ptr %453, i64 %455
store double %452, ptr %456, align 8
%457 = load i32, ptr %39, align 4
%458 = load ptr, ptr %26, align 8
%459 = load i32, ptr %43, align 4
%460 = sext i32 %459 to i64
%461 = getelementptr inbounds i32, ptr %458, i64 %460
store i32 %457, ptr %461, align 4
%462 = load i32, ptr %40, align 4
%463 = load ptr, ptr %27, align 8
%464 = load i32, ptr %43, align 4
%465 = sext i32 %464 to i64
%466 = getelementptr inbounds i32, ptr %463, i64 %465
store i32 %462, ptr %466, align 4
%467 = load i32, ptr %41, align 4
%468 = load ptr, ptr %28, align 8
%469 = load i32, ptr %43, align 4
%470 = sext i32 %469 to i64
%471 = getelementptr inbounds i32, ptr %468, i64 %470
store i32 %467, ptr %471, align 4
%472 = load i32, ptr %42, align 4
%473 = load ptr, ptr %29, align 8
%474 = load i32, ptr %43, align 4
%475 = sext i32 %474 to i64
%476 = getelementptr inbounds i32, ptr %473, i64 %475
store i32 %472, ptr %476, align 4
%477 = load i32, ptr %43, align 4
%478 = add nsw i32 %477, 1
store i32 %478, ptr %43, align 4
%479 = load i32, ptr %43, align 4
%480 = sitofp i32 %479 to double
%481 = fcmp ogt double %480, 1.000000e+06
br i1 %481, label %482, label %484
482: ; preds = %434
%483 = call i32 @error_handler(ptr noundef @.str)
br label %484
484: ; preds = %482, %434
br label %485
485: ; preds = %484, %428
br label %486
486: ; preds = %485, %308
br label %487
487: ; preds = %486, %307, %286
%488 = load i32, ptr %41, align 4
%489 = add nsw i32 %488, 1
store i32 %489, ptr %41, align 4
%490 = load i32, ptr %41, align 4
%491 = load i32, ptr %35, align 4
%492 = icmp slt i32 %490, %491
br i1 %492, label %222, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %487
br label %493
493: ; preds = %._crit_edge6, %218
br label %494
494: ; preds = %493
%495 = load i32, ptr %42, align 4
%496 = add nsw i32 %495, 1
store i32 %496, ptr %42, align 4
%497 = load i32, ptr %42, align 4
%498 = load i32, ptr %36, align 4
%499 = icmp slt i32 %497, %498
br i1 %499, label %218, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %494
br label %500
500: ; preds = %._crit_edge9, %192
br label %501
501: ; preds = %500, %181
br label %502
502: ; preds = %501
%503 = load i32, ptr %39, align 4
%504 = add nsw i32 %503, 1
store i32 %504, ptr %39, align 4
%505 = load i32, ptr %39, align 4
%506 = load i32, ptr %33, align 4
%507 = icmp slt i32 %505, %506
br i1 %507, label %181, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %502
br label %508
508: ; preds = %._crit_edge12, %177
br label %509
509: ; preds = %508
%510 = load i32, ptr %40, align 4
%511 = add nsw i32 %510, 1
store i32 %511, ptr %40, align 4
%512 = load i32, ptr %40, align 4
%513 = load i32, ptr %34, align 4
%514 = icmp slt i32 %512, %513
br i1 %514, label %177, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %509
br label %515
515: ; preds = %._crit_edge15, %157
%516 = load ptr, ptr %53, align 8
%517 = call i32 @free(ptr noundef %516)
%518 = load ptr, ptr %54, align 8
%519 = call i32 @free(ptr noundef %518)
%520 = load i32, ptr %43, align 4
ret i32 %520
}
declare i64 @malloc(i32 noundef) #1
declare i32 @get_grid_area(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @fix_lon(ptr noundef, ptr noundef, i32 noundef, double noundef) #1
declare double @avgval_double(i32 noundef, ptr noundef) #1
declare i32 @clip(ptr noundef, ptr noundef, i32 noundef, double noundef, double noundef, double noundef, double noundef, ptr noundef, ptr noundef) #1
declare double @poly_area(ptr noundef, ptr noundef, i32 noundef) #1
declare double @poly_ctrlon(ptr noundef, ptr noundef, i32 noundef, double noundef) #1
declare double @poly_ctrlat(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @error_handler(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/tmppprk6zzq.c'
source_filename = "/tmp/tmppprk6zzq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [44 x i8] c"Usage: %s [input_file] [output_file] <key>\0A\00", align 1
@EINVAL = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stdin = dso_local global ptr null, align 8
@.str.2 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@stdout = dso_local global ptr null, align 8
@EBADF = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %8, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp ne i32 %9, 2
br i1 %10, label %11, label %22
11: ; preds = %2
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 4
br i1 %13, label %14, label %22
14: ; preds = %11
%15 = load i32, ptr @stderr, align 4
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 0
%18 = load ptr, ptr %17, align 8
%19 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str, ptr noundef %18)
%20 = load i32, ptr @EINVAL, align 4
%21 = sub nsw i32 0, %20
store i32 %21, ptr %3, align 4
br label %68
22: ; preds = %11, %2
%23 = load i32, ptr %4, align 4
%24 = icmp sgt i32 %23, 2
br i1 %24, label %25, label %30
25: ; preds = %22
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 2
%28 = load ptr, ptr %27, align 8
%29 = call ptr @fopen(ptr noundef %28, ptr noundef @.str.1)
br label %32
30: ; preds = %22
%31 = load ptr, ptr @stdin, align 8
br label %32
32: ; preds = %30, %25
%33 = phi ptr [ %29, %25 ], [ %31, %30 ]
store ptr %33, ptr %6, align 8
%34 = load i32, ptr %4, align 4
%35 = icmp sgt i32 %34, 2
br i1 %35, label %36, label %41
36: ; preds = %32
%37 = load ptr, ptr %5, align 8
%38 = getelementptr inbounds ptr, ptr %37, i64 3
%39 = load ptr, ptr %38, align 8
%40 = call ptr @fopen(ptr noundef %39, ptr noundef @.str.2)
br label %43
41: ; preds = %32
%42 = load ptr, ptr @stdout, align 8
br label %43
43: ; preds = %41, %36
%44 = phi ptr [ %40, %36 ], [ %42, %41 ]
store ptr %44, ptr %7, align 8
%45 = load ptr, ptr %6, align 8
%46 = icmp ne ptr %45, null
br i1 %46, label %47, label %50
47: ; preds = %43
%48 = load ptr, ptr %7, align 8
%49 = icmp ne ptr %48, null
br i1 %49, label %55, label %50
50: ; preds = %47, %43
%51 = load i32, ptr @EBADF, align 4
store i32 %51, ptr @errno, align 4
%52 = load i32, ptr @errno, align 4
%53 = sub nsw i32 0, %52
store i32 %53, ptr %8, align 4
%54 = call i32 @perror(ptr noundef null)
br label %62
55: ; preds = %47
%56 = load ptr, ptr %6, align 8
%57 = load ptr, ptr %7, align 8
%58 = load ptr, ptr %5, align 8
%59 = getelementptr inbounds ptr, ptr %58, i64 1
%60 = load ptr, ptr %59, align 8
%61 = call i32 @myxor(ptr noundef %56, ptr noundef %57, ptr noundef %60)
br label %62
62: ; preds = %55, %50
%63 = load ptr, ptr %6, align 8
%64 = call i32 @fclose(ptr noundef %63)
%65 = load ptr, ptr %7, align 8
%66 = call i32 @fclose(ptr noundef %65)
%67 = load i32, ptr %8, align 4
store i32 %67, ptr %3, align 4
br label %68
68: ; preds = %62, %14
%69 = load i32, ptr %3, align 4
ret i32 %69
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @myxor(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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmppprk6zzq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [44 x i8] c"Usage: %s [input_file] [output_file] <key>\0A\00", align 1
@EINVAL = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stdin = dso_local global ptr null, align 8
@.str.2 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@stdout = dso_local global ptr null, align 8
@EBADF = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %8, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp ne i32 %9, 2
br i1 %10, label %11, label %22
11: ; preds = %2
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 4
br i1 %13, label %14, label %22
14: ; preds = %11
%15 = load i32, ptr @stderr, align 4
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 0
%18 = load ptr, ptr %17, align 8
%19 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str, ptr noundef %18)
%20 = load i32, ptr @EINVAL, align 4
%21 = sub nsw i32 0, %20
store i32 %21, ptr %3, align 4
br label %68
22: ; preds = %11, %2
%23 = load i32, ptr %4, align 4
%24 = icmp sgt i32 %23, 2
br i1 %24, label %25, label %30
25: ; preds = %22
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 2
%28 = load ptr, ptr %27, align 8
%29 = call ptr @fopen(ptr noundef %28, ptr noundef @.str.1)
br label %32
30: ; preds = %22
%31 = load ptr, ptr @stdin, align 8
br label %32
32: ; preds = %30, %25
%33 = phi ptr [ %29, %25 ], [ %31, %30 ]
store ptr %33, ptr %6, align 8
%34 = load i32, ptr %4, align 4
%35 = icmp sgt i32 %34, 2
br i1 %35, label %36, label %41
36: ; preds = %32
%37 = load ptr, ptr %5, align 8
%38 = getelementptr inbounds ptr, ptr %37, i64 3
%39 = load ptr, ptr %38, align 8
%40 = call ptr @fopen(ptr noundef %39, ptr noundef @.str.2)
br label %43
41: ; preds = %32
%42 = load ptr, ptr @stdout, align 8
br label %43
43: ; preds = %41, %36
%44 = phi ptr [ %40, %36 ], [ %42, %41 ]
store ptr %44, ptr %7, align 8
%45 = load ptr, ptr %6, align 8
%46 = icmp ne ptr %45, null
br i1 %46, label %47, label %50
47: ; preds = %43
%48 = load ptr, ptr %7, align 8
%49 = icmp ne ptr %48, null
br i1 %49, label %55, label %50
50: ; preds = %47, %43
%51 = load i32, ptr @EBADF, align 4
store i32 %51, ptr @errno, align 4
%52 = load i32, ptr @errno, align 4
%53 = sub nsw i32 0, %52
store i32 %53, ptr %8, align 4
%54 = call i32 @perror(ptr noundef null)
br label %62
55: ; preds = %47
%56 = load ptr, ptr %6, align 8
%57 = load ptr, ptr %7, align 8
%58 = load ptr, ptr %5, align 8
%59 = getelementptr inbounds ptr, ptr %58, i64 1
%60 = load ptr, ptr %59, align 8
%61 = call i32 @myxor(ptr noundef %56, ptr noundef %57, ptr noundef %60)
br label %62
62: ; preds = %55, %50
%63 = load ptr, ptr %6, align 8
%64 = call i32 @fclose(ptr noundef %63)
%65 = load ptr, ptr %7, align 8
%66 = call i32 @fclose(ptr noundef %65)
%67 = load i32, ptr %8, align 4
store i32 %67, ptr %3, align 4
br label %68
68: ; preds = %62, %14
%69 = load i32, ptr %3, align 4
ret i32 %69
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @myxor(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"}
|
; ModuleID = '/tmp/tmptlvh_tff.c'
source_filename = "/tmp/tmptlvh_tff.c"
target datalayout = "e-m:e-p270: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/tmptlvh_tff.c"
target datalayout = "e-m:e-p270: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/tmpuh09p6ou.c'
source_filename = "/tmp/tmpuh09p6ou.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cbmarch_iec_setrelease(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = call i32 @_IO(i32 noundef 203, i32 noundef 16)
%9 = load i32, ptr %5, align 4
%10 = shl i32 %9, 8
%11 = load i32, ptr %6, align 4
%12 = or i32 %10, %11
%13 = call i32 @ioctl(i32 noundef %7, i32 noundef %8, i32 noundef %12)
ret void
}
declare i32 @ioctl(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @_IO(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/tmpuh09p6ou.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cbmarch_iec_setrelease(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = call i32 @_IO(i32 noundef 203, i32 noundef 16)
%9 = load i32, ptr %5, align 4
%10 = shl i32 %9, 8
%11 = load i32, ptr %6, align 4
%12 = or i32 %10, %11
%13 = call i32 @ioctl(i32 noundef %7, i32 noundef %8, i32 noundef %12)
ret void
}
declare i32 @ioctl(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @_IO(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/tmpxhkcw3cm.c'
source_filename = "/tmp/tmpxhkcw3cm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"No of terms to be entered: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [32 x i8] c"Enter coefficient for term %d: \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.4 = private unnamed_addr constant [29 x i8] c"Enter exponent for term %d: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @input(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca float, align 4
store ptr %0, ptr %2, align 8
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %4)
store i32 1, ptr %3, align 4
br label %9
9: ; preds = %24, %1
%10 = load i32, ptr %3, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp sle i32 %10, %11
br i1 %12, label %13, label %27
13: ; preds = %9
%14 = load i32, ptr %3, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %14)
%16 = call i32 (ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %6)
%17 = load i32, ptr %3, align 4
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %17)
%19 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %5)
%20 = load ptr, ptr %2, align 8
%21 = load float, ptr %6, align 4
%22 = load i32, ptr %5, align 4
%23 = call ptr @create(ptr noundef %20, float noundef %21, i32 noundef %22)
store ptr %23, ptr %2, align 8
br label %24
24: ; preds = %13
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %3, align 4
br label %9, !llvm.loop !6
27: ; preds = %9
%28 = load ptr, ptr %2, align 8
ret ptr %28
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
declare ptr @create(ptr noundef, float noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxhkcw3cm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"No of terms to be entered: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [32 x i8] c"Enter coefficient for term %d: \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.4 = private unnamed_addr constant [29 x i8] c"Enter exponent for term %d: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @input(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca float, align 4
store ptr %0, ptr %2, align 8
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %4)
store i32 1, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp sle i32 %9, %10
br i1 %11, label %.lr.ph, label %29
.lr.ph: ; preds = %1
br label %12
12: ; preds = %.lr.ph, %23
%13 = load i32, ptr %3, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %13)
%15 = call i32 (ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %6)
%16 = load i32, ptr %3, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %16)
%18 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %5)
%19 = load ptr, ptr %2, align 8
%20 = load float, ptr %6, align 4
%21 = load i32, ptr %5, align 4
%22 = call ptr @create(ptr noundef %19, float noundef %20, i32 noundef %21)
store ptr %22, ptr %2, align 8
br label %23
23: ; preds = %12
%24 = load i32, ptr %3, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %3, align 4
%26 = load i32, ptr %3, align 4
%27 = load i32, ptr %4, align 4
%28 = icmp sle i32 %26, %27
br i1 %28, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %29
29: ; preds = %._crit_edge, %1
%30 = load ptr, ptr %2, align 8
ret ptr %30
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
declare ptr @create(ptr noundef, float noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpwuy7qvbs.c'
source_filename = "/tmp/tmpwuy7qvbs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%u %u %u\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
store i32 0, ptr %1, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %3, align 4
%8 = add i32 %6, %7
%9 = load i32, ptr %4, align 4
%10 = call i32 @print_n(i32 noundef %8, i32 noundef %9)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @print_n(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/tmpwuy7qvbs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%u %u %u\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
store i32 0, ptr %1, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %3, align 4
%8 = add i32 %6, %7
%9 = load i32, ptr %4, align 4
%10 = call i32 @print_n(i32 noundef %8, i32 noundef %9)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @print_n(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/tmpjc8nr_ta.c'
source_filename = "/tmp/tmpjc8nr_ta.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"rand_exp.dat\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@RAND_MAX = dso_local global i64 0, align 8
@.str.2 = private unnamed_addr constant [7 x i8] c"%.12e\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%6 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %6, ptr %5, align 8
store i32 0, ptr %4, align 4
br label %7
7: ; preds = %24, %0
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 100000
br i1 %9, label %10, label %27
10: ; preds = %7
%11 = call i64 (...) @rand()
%12 = sitofp i64 %11 to double
%13 = load i64, ptr @RAND_MAX, align 8
%14 = sitofp i64 %13 to double
%15 = fdiv double %12, %14
%16 = fmul double %15, 0x3FD5555555555555
store double %16, ptr %2, align 8
%17 = load double, ptr %2, align 8
%18 = fmul double 3.000000e+00, %17
%19 = call double @log(double noundef %18) #3
%20 = fmul double -3.000000e+00, %19
store double %20, ptr %3, align 8
%21 = load ptr, ptr %5, align 8
%22 = load double, ptr %3, align 8
%23 = call i32 @fprintf(ptr noundef %21, ptr noundef @.str.2, double noundef %22)
br label %24
24: ; preds = %10
%25 = load i32, ptr %4, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %4, align 4
br label %7, !llvm.loop !6
27: ; preds = %7
%28 = load ptr, ptr %5, align 8
%29 = call i32 @fclose(ptr noundef %28)
ret i32 -1
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @rand(...) #1
; Function Attrs: nounwind
declare double @log(double noundef) #2
declare i32 @fprintf(ptr noundef, ptr noundef, double noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjc8nr_ta.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"rand_exp.dat\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@RAND_MAX = dso_local global i64 0, align 8
@.str.2 = private unnamed_addr constant [7 x i8] c"%.12e\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%6 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %6, ptr %5, align 8
store i32 0, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 100000
br i1 %8, label %.lr.ph, label %28
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %23
%10 = call i64 (...) @rand()
%11 = sitofp i64 %10 to double
%12 = load i64, ptr @RAND_MAX, align 8
%13 = sitofp i64 %12 to double
%14 = fdiv double %11, %13
%15 = fmul double %14, 0x3FD5555555555555
store double %15, ptr %2, align 8
%16 = load double, ptr %2, align 8
%17 = fmul double 3.000000e+00, %16
%18 = call double @log(double noundef %17) #3
%19 = fmul double -3.000000e+00, %18
store double %19, ptr %3, align 8
%20 = load ptr, ptr %5, align 8
%21 = load double, ptr %3, align 8
%22 = call i32 @fprintf(ptr noundef %20, ptr noundef @.str.2, double noundef %21)
br label %23
23: ; preds = %9
%24 = load i32, ptr %4, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %4, align 4
%26 = load i32, ptr %4, align 4
%27 = icmp slt i32 %26, 100000
br i1 %27, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %28
28: ; preds = %._crit_edge, %0
%29 = load ptr, ptr %5, align 8
%30 = call i32 @fclose(ptr noundef %29)
ret i32 -1
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @rand(...) #1
; Function Attrs: nounwind
declare double @log(double noundef) #2
declare i32 @fprintf(ptr noundef, ptr noundef, double noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpgicn_w0_.c'
source_filename = "/tmp/tmpgicn_w0_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"rtminit:%lu\0A\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"rtmabortcnt:%lu\0A\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"begun\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"ended\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
store i32 0, ptr %1, align 4
%3 = call i64 (...) @rtminit()
store i64 %3, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = call i32 @printf(ptr noundef @.str, i64 noundef %4)
%6 = load i64, ptr %2, align 8
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %0
store i32 1, ptr %1, align 4
br label %17
9: ; preds = %0
%10 = call i64 (...) @rtmabortcnt()
store i64 %10, ptr %2, align 8
%11 = load i64, ptr %2, align 8
%12 = call i32 @printf(ptr noundef @.str.1, i64 noundef %11)
%13 = call i32 (...) @rtmxbegin()
%14 = call i32 @puts(ptr noundef @.str.2)
%15 = call i32 (...) @rtmxend()
%16 = call i32 @puts(ptr noundef @.str.3)
store i32 0, ptr %1, align 4
br label %17
17: ; preds = %9, %8
%18 = load i32, ptr %1, align 4
ret i32 %18
}
declare i64 @rtminit(...) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
declare i64 @rtmabortcnt(...) #1
declare i32 @rtmxbegin(...) #1
declare i32 @puts(ptr noundef) #1
declare i32 @rtmxend(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgicn_w0_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"rtminit:%lu\0A\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"rtmabortcnt:%lu\0A\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"begun\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"ended\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
store i32 0, ptr %1, align 4
%3 = call i64 (...) @rtminit()
store i64 %3, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = call i32 @printf(ptr noundef @.str, i64 noundef %4)
%6 = load i64, ptr %2, align 8
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %0
store i32 1, ptr %1, align 4
br label %17
9: ; preds = %0
%10 = call i64 (...) @rtmabortcnt()
store i64 %10, ptr %2, align 8
%11 = load i64, ptr %2, align 8
%12 = call i32 @printf(ptr noundef @.str.1, i64 noundef %11)
%13 = call i32 (...) @rtmxbegin()
%14 = call i32 @puts(ptr noundef @.str.2)
%15 = call i32 (...) @rtmxend()
%16 = call i32 @puts(ptr noundef @.str.3)
store i32 0, ptr %1, align 4
br label %17
17: ; preds = %9, %8
%18 = load i32, ptr %1, align 4
ret i32 %18
}
declare i64 @rtminit(...) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
declare i64 @rtmabortcnt(...) #1
declare i32 @rtmxbegin(...) #1
declare i32 @puts(ptr noundef) #1
declare i32 @rtmxend(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3yzhw3wp.c'
source_filename = "/tmp/tmp3yzhw3wp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@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/tmp3yzhw3wp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i64 0, align 8
@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/tmpex0jdd6t.c'
source_filename = "/tmp/tmpex0jdd6t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c" the first integer is \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c" %d\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"The second integer is \00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"The sum is %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [22 x i8] c"The difference is %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [19 x i8] c"The product is %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [20 x i8] c"The quotient is %d\0A\00", align 1
@.str.7 = private unnamed_addr constant [19 x i8] c"The modulus is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%10 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%12 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%13 = load i32, ptr %2, align 4
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %13, %14
store i32 %15, ptr %4, align 4
%16 = load i32, ptr %4, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %16)
%18 = load i32, ptr %2, align 4
%19 = load i32, ptr %3, align 4
%20 = sub nsw i32 %18, %19
store i32 %20, ptr %5, align 4
%21 = load i32, ptr %5, align 4
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %21)
%23 = load i32, ptr %2, align 4
%24 = load i32, ptr %3, align 4
%25 = mul nsw i32 %23, %24
store i32 %25, ptr %6, align 4
%26 = load i32, ptr %6, align 4
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %26)
%28 = load i32, ptr %2, align 4
%29 = load i32, ptr %3, align 4
%30 = sdiv i32 %28, %29
store i32 %30, ptr %7, align 4
%31 = load i32, ptr %7, align 4
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %31)
%33 = load i32, ptr %2, align 4
%34 = load i32, ptr %3, align 4
%35 = srem i32 %33, %34
store i32 %35, ptr %8, align 4
%36 = load i32, ptr %8, align 4
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %36)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpex0jdd6t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c" the first integer is \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c" %d\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"The second integer is \00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"The sum is %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [22 x i8] c"The difference is %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [19 x i8] c"The product is %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [20 x i8] c"The quotient is %d\0A\00", align 1
@.str.7 = private unnamed_addr constant [19 x i8] c"The modulus is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%10 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%12 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%13 = load i32, ptr %2, align 4
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %13, %14
store i32 %15, ptr %4, align 4
%16 = load i32, ptr %4, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %16)
%18 = load i32, ptr %2, align 4
%19 = load i32, ptr %3, align 4
%20 = sub nsw i32 %18, %19
store i32 %20, ptr %5, align 4
%21 = load i32, ptr %5, align 4
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %21)
%23 = load i32, ptr %2, align 4
%24 = load i32, ptr %3, align 4
%25 = mul nsw i32 %23, %24
store i32 %25, ptr %6, align 4
%26 = load i32, ptr %6, align 4
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %26)
%28 = load i32, ptr %2, align 4
%29 = load i32, ptr %3, align 4
%30 = sdiv i32 %28, %29
store i32 %30, ptr %7, align 4
%31 = load i32, ptr %7, align 4
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %31)
%33 = load i32, ptr %2, align 4
%34 = load i32, ptr %3, align 4
%35 = srem i32 %33, %34
store i32 %35, ptr %8, align 4
%36 = load i32, ptr %8, align 4
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %36)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpd8s7boc_.c'
source_filename = "/tmp/tmpd8s7boc_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Usage: %s [FILE]\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@EOF = dso_local global i8 0, align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@SEEK_CUR = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [2 x i8] c"0\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [100 x float], align 16
%8 = alloca [100 x float], align 16
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca float, align 4
%15 = alloca float, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp ne i32 %16, 2
br i1 %17, label %18, label %23
18: ; preds = %2
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 0
%21 = load ptr, ptr %20, align 8
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %21)
store i32 1, ptr %3, align 4
br label %205
23: ; preds = %2
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i32 1
store ptr %25, ptr %5, align 8
%26 = load ptr, ptr %25, align 8
%27 = call ptr @fopen(ptr noundef %26, ptr noundef @.str.1)
store ptr %27, ptr %6, align 8
br label %28
28: ; preds = %203, %23
%29 = load ptr, ptr %6, align 8
%30 = call signext i8 @getc(ptr noundef %29)
%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 %35, label %204
35: ; preds = %28
br label %36
36: ; preds = %43, %35
%37 = load ptr, ptr %6, align 8
%38 = load i32, ptr %9, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %9, align 4
%40 = sext i32 %38 to i64
%41 = getelementptr inbounds [100 x float], ptr %7, i64 0, i64 %40
%42 = call i32 @fscanf(ptr noundef %37, ptr noundef @.str.2, ptr noundef %41)
br label %43
43: ; preds = %36
%44 = load ptr, ptr %6, align 8
%45 = call signext i8 @getc(ptr noundef %44)
%46 = sext i8 %45 to i32
%47 = icmp ne i32 %46, 41
br i1 %47, label %36, label %48, !llvm.loop !6
48: ; preds = %43
%49 = load ptr, ptr %6, align 8
%50 = load i32, ptr @SEEK_CUR, align 4
%51 = call i32 @fseek(ptr noundef %49, i32 noundef 2, i32 noundef %50)
br label %52
52: ; preds = %59, %48
%53 = load ptr, ptr %6, align 8
%54 = load i32, ptr %10, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %10, align 4
%56 = sext i32 %54 to i64
%57 = getelementptr inbounds [100 x float], ptr %8, i64 0, i64 %56
%58 = call i32 @fscanf(ptr noundef %53, ptr noundef @.str.2, ptr noundef %57)
br label %59
59: ; preds = %52
%60 = load ptr, ptr %6, align 8
%61 = call signext i8 @getc(ptr noundef %60)
%62 = sext i8 %61 to i32
%63 = icmp ne i32 %62, 41
br i1 %63, label %52, label %64, !llvm.loop !8
64: ; preds = %59
%65 = load ptr, ptr %6, align 8
%66 = load i32, ptr @SEEK_CUR, align 4
%67 = call i32 @fseek(ptr noundef %65, i32 noundef 1, i32 noundef %66)
%68 = load i32, ptr %9, align 4
%69 = icmp slt i32 %68, 2
br i1 %69, label %73, label %70
70: ; preds = %64
%71 = load i32, ptr %10, align 4
%72 = icmp slt i32 %71, 2
br i1 %72, label %73, label %75
73: ; preds = %70, %64
%74 = call i32 @puts(ptr noundef @.str.3)
br label %203
75: ; preds = %70
store i32 0, ptr %13, align 4
%76 = getelementptr inbounds [100 x float], ptr %7, i64 0, i64 0
%77 = load float, ptr %76, align 16
%78 = fcmp une float %77, 0.000000e+00
br i1 %78, label %79, label %97
79: ; preds = %75
%80 = load i32, ptr %9, align 4
%81 = sub nsw i32 %80, 1
store i32 %81, ptr %11, align 4
br label %82
82: ; preds = %93, %79
%83 = load i32, ptr %11, align 4
%84 = icmp sge i32 %83, 0
br i1 %84, label %85, label %96
85: ; preds = %82
%86 = getelementptr inbounds [100 x float], ptr %7, i64 0, i64 0
%87 = load float, ptr %86, align 16
%88 = load i32, ptr %11, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [100 x float], ptr %7, i64 0, i64 %89
%91 = load float, ptr %90, align 4
%92 = fsub float %91, %87
store float %92, ptr %90, align 4
br label %93
93: ; preds = %85
%94 = load i32, ptr %11, align 4
%95 = add nsw i32 %94, -1
store i32 %95, ptr %11, align 4
br label %82, !llvm.loop !9
96: ; preds = %82
br label %97
97: ; preds = %96, %75
%98 = getelementptr inbounds [100 x float], ptr %8, i64 0, i64 0
%99 = load float, ptr %98, align 16
%100 = fcmp une float %99, 0.000000e+00
br i1 %100, label %101, label %119
101: ; preds = %97
%102 = load i32, ptr %10, align 4
%103 = sub nsw i32 %102, 1
store i32 %103, ptr %11, align 4
br label %104
104: ; preds = %115, %101
%105 = load i32, ptr %11, align 4
%106 = icmp sge i32 %105, 0
br i1 %106, label %107, label %118
107: ; preds = %104
%108 = getelementptr inbounds [100 x float], ptr %8, i64 0, i64 0
%109 = load float, ptr %108, align 16
%110 = load i32, ptr %11, align 4
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds [100 x float], ptr %8, i64 0, i64 %111
%113 = load float, ptr %112, align 4
%114 = fsub float %113, %109
store float %114, ptr %112, align 4
br label %115
115: ; preds = %107
%116 = load i32, ptr %11, align 4
%117 = add nsw i32 %116, -1
store i32 %117, ptr %11, align 4
br label %104, !llvm.loop !10
118: ; preds = %104
br label %119
119: ; preds = %118, %97
%120 = load i32, ptr %9, align 4
%121 = sub nsw i32 %120, 1
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds [100 x float], ptr %7, i64 0, i64 %122
%124 = load float, ptr %123, align 4
store float %124, ptr %14, align 4
%125 = load i32, ptr %10, align 4
%126 = sub nsw i32 %125, 1
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds [100 x float], ptr %8, i64 0, i64 %127
%129 = load float, ptr %128, align 4
store float %129, ptr %15, align 4
store i32 0, ptr %11, align 4
br label %130
130: ; preds = %146, %119
%131 = load i32, ptr %11, align 4
%132 = load i32, ptr %10, align 4
%133 = icmp slt i32 %131, %132
br i1 %133, label %134, label %149
134: ; preds = %130
%135 = load i32, ptr %11, align 4
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds [100 x float], ptr %8, i64 0, i64 %136
%138 = load float, ptr %137, align 4
%139 = load float, ptr %14, align 4
%140 = fmul float %138, %139
%141 = load float, ptr %15, align 4
%142 = fdiv float %140, %141
%143 = load i32, ptr %11, align 4
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds [100 x float], ptr %8, i64 0, i64 %144
store float %142, ptr %145, align 4
br label %146
146: ; preds = %134
%147 = load i32, ptr %11, align 4
%148 = add nsw i32 %147, 1
store i32 %148, ptr %11, align 4
br label %130, !llvm.loop !11
149: ; preds = %130
store i32 0, ptr %11, align 4
store i32 0, ptr %12, align 4
br label %150
150: ; preds = %194, %149
%151 = load i32, ptr %11, align 4
%152 = load i32, ptr %9, align 4
%153 = icmp slt i32 %151, %152
br i1 %153, label %154, label %158
154: ; preds = %150
%155 = load i32, ptr %12, align 4
%156 = load i32, ptr %10, align 4
%157 = icmp slt i32 %155, %156
br label %158
158: ; preds = %154, %150
%159 = phi i1 [ false, %150 ], [ %157, %154 ]
br i1 %159, label %160, label %195
160: ; preds = %158
%161 = load i32, ptr %11, align 4
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds [100 x float], ptr %7, i64 0, i64 %162
%164 = load float, ptr %163, align 4
%165 = load i32, ptr %12, align 4
%166 = sext i32 %165 to i64
%167 = getelementptr inbounds [100 x float], ptr %8, i64 0, i64 %166
%168 = load float, ptr %167, align 4
%169 = fcmp oeq float %164, %168
br i1 %169, label %170, label %177
170: ; preds = %160
%171 = load i32, ptr %13, align 4
%172 = add nsw i32 %171, 1
store i32 %172, ptr %13, align 4
%173 = load i32, ptr %11, align 4
%174 = add nsw i32 %173, 1
store i32 %174, ptr %11, align 4
%175 = load i32, ptr %12, align 4
%176 = add nsw i32 %175, 1
store i32 %176, ptr %12, align 4
br label %194
177: ; preds = %160
%178 = load i32, ptr %11, align 4
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds [100 x float], ptr %7, i64 0, i64 %179
%181 = load float, ptr %180, align 4
%182 = load i32, ptr %12, align 4
%183 = sext i32 %182 to i64
%184 = getelementptr inbounds [100 x float], ptr %8, i64 0, i64 %183
%185 = load float, ptr %184, align 4
%186 = fcmp olt float %181, %185
br i1 %186, label %187, label %190
187: ; preds = %177
%188 = load i32, ptr %11, align 4
%189 = add nsw i32 %188, 1
store i32 %189, ptr %11, align 4
br label %193
190: ; preds = %177
%191 = load i32, ptr %12, align 4
%192 = add nsw i32 %191, 1
store i32 %192, ptr %12, align 4
br label %193
193: ; preds = %190, %187
br label %194
194: ; preds = %193, %170
br label %150, !llvm.loop !12
195: ; preds = %158
%196 = load i32, ptr %9, align 4
%197 = load i32, ptr %10, align 4
%198 = add nsw i32 %196, %197
%199 = load i32, ptr %13, align 4
%200 = sub nsw i32 %198, %199
%201 = sub nsw i32 %200, 1
%202 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %201)
br label %203
203: ; preds = %195, %73
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
br label %28, !llvm.loop !13
204: ; preds = %28
store i32 0, ptr %3, align 4
br label %205
205: ; preds = %204, %18
%206 = load i32, ptr %3, align 4
ret i32 %206
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare signext i8 @getc(ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpd8s7boc_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Usage: %s [FILE]\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@EOF = dso_local global i8 0, align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@SEEK_CUR = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [2 x i8] c"0\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [100 x float], align 16
%8 = alloca [100 x float], align 16
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca float, align 4
%15 = alloca float, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp ne i32 %16, 2
br i1 %17, label %18, label %23
18: ; preds = %2
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 0
%21 = load ptr, ptr %20, align 8
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %21)
store i32 1, ptr %3, align 4
br label %214
23: ; preds = %2
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i32 1
store ptr %25, ptr %5, align 8
%26 = load ptr, ptr %25, align 8
%27 = call ptr @fopen(ptr noundef %26, ptr noundef @.str.1)
store ptr %27, ptr %6, align 8
%28 = load ptr, ptr %6, align 8
%29 = call signext i8 @getc(ptr noundef %28)
%30 = sext i8 %29 to i32
%31 = load i8, ptr @EOF, align 1
%32 = sext i8 %31 to i32
%33 = icmp ne i32 %30, %32
br i1 %33, label %.lr.ph8, label %213
.lr.ph8: ; preds = %23
br label %34
34: ; preds = %.lr.ph8, %206
br label %35
35: ; preds = %42, %34
%36 = load ptr, ptr %6, align 8
%37 = load i32, ptr %9, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %9, align 4
%39 = sext i32 %37 to i64
%40 = getelementptr inbounds [100 x float], ptr %7, i64 0, i64 %39
%41 = call i32 @fscanf(ptr noundef %36, ptr noundef @.str.2, ptr noundef %40)
br label %42
42: ; preds = %35
%43 = load ptr, ptr %6, align 8
%44 = call signext i8 @getc(ptr noundef %43)
%45 = sext i8 %44 to i32
%46 = icmp ne i32 %45, 41
br i1 %46, label %35, label %47, !llvm.loop !6
47: ; preds = %42
%48 = load ptr, ptr %6, align 8
%49 = load i32, ptr @SEEK_CUR, align 4
%50 = call i32 @fseek(ptr noundef %48, i32 noundef 2, i32 noundef %49)
br label %51
51: ; preds = %58, %47
%52 = load ptr, ptr %6, align 8
%53 = load i32, ptr %10, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %10, align 4
%55 = sext i32 %53 to i64
%56 = getelementptr inbounds [100 x float], ptr %8, i64 0, i64 %55
%57 = call i32 @fscanf(ptr noundef %52, ptr noundef @.str.2, ptr noundef %56)
br label %58
58: ; preds = %51
%59 = load ptr, ptr %6, align 8
%60 = call signext i8 @getc(ptr noundef %59)
%61 = sext i8 %60 to i32
%62 = icmp ne i32 %61, 41
br i1 %62, label %51, label %63, !llvm.loop !8
63: ; preds = %58
%64 = load ptr, ptr %6, align 8
%65 = load i32, ptr @SEEK_CUR, align 4
%66 = call i32 @fseek(ptr noundef %64, i32 noundef 1, i32 noundef %65)
%67 = load i32, ptr %9, align 4
%68 = icmp slt i32 %67, 2
br i1 %68, label %72, label %69
69: ; preds = %63
%70 = load i32, ptr %10, align 4
%71 = icmp slt i32 %70, 2
br i1 %71, label %72, label %74
72: ; preds = %69, %63
%73 = call i32 @puts(ptr noundef @.str.3)
br label %206
74: ; preds = %69
store i32 0, ptr %13, align 4
%75 = getelementptr inbounds [100 x float], ptr %7, i64 0, i64 0
%76 = load float, ptr %75, align 16
%77 = fcmp une float %76, 0.000000e+00
br i1 %77, label %78, label %97
78: ; preds = %74
%79 = load i32, ptr %9, align 4
%80 = sub nsw i32 %79, 1
store i32 %80, ptr %11, align 4
%81 = load i32, ptr %11, align 4
%82 = icmp sge i32 %81, 0
br i1 %82, label %.lr.ph, label %96
.lr.ph: ; preds = %78
br label %83
83: ; preds = %.lr.ph, %91
%84 = getelementptr inbounds [100 x float], ptr %7, i64 0, i64 0
%85 = load float, ptr %84, align 16
%86 = load i32, ptr %11, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [100 x float], ptr %7, i64 0, i64 %87
%89 = load float, ptr %88, align 4
%90 = fsub float %89, %85
store float %90, ptr %88, align 4
br label %91
91: ; preds = %83
%92 = load i32, ptr %11, align 4
%93 = add nsw i32 %92, -1
store i32 %93, ptr %11, align 4
%94 = load i32, ptr %11, align 4
%95 = icmp sge i32 %94, 0
br i1 %95, label %83, label %._crit_edge, !llvm.loop !9
._crit_edge: ; preds = %91
br label %96
96: ; preds = %._crit_edge, %78
br label %97
97: ; preds = %96, %74
%98 = getelementptr inbounds [100 x float], ptr %8, i64 0, i64 0
%99 = load float, ptr %98, align 16
%100 = fcmp une float %99, 0.000000e+00
br i1 %100, label %101, label %120
101: ; preds = %97
%102 = load i32, ptr %10, align 4
%103 = sub nsw i32 %102, 1
store i32 %103, ptr %11, align 4
%104 = load i32, ptr %11, align 4
%105 = icmp sge i32 %104, 0
br i1 %105, label %.lr.ph2, label %119
.lr.ph2: ; preds = %101
br label %106
106: ; preds = %.lr.ph2, %114
%107 = getelementptr inbounds [100 x float], ptr %8, i64 0, i64 0
%108 = load float, ptr %107, align 16
%109 = load i32, ptr %11, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [100 x float], ptr %8, i64 0, i64 %110
%112 = load float, ptr %111, align 4
%113 = fsub float %112, %108
store float %113, ptr %111, align 4
br label %114
114: ; preds = %106
%115 = load i32, ptr %11, align 4
%116 = add nsw i32 %115, -1
store i32 %116, ptr %11, align 4
%117 = load i32, ptr %11, align 4
%118 = icmp sge i32 %117, 0
br i1 %118, label %106, label %._crit_edge3, !llvm.loop !10
._crit_edge3: ; preds = %114
br label %119
119: ; preds = %._crit_edge3, %101
br label %120
120: ; preds = %119, %97
%121 = load i32, ptr %9, align 4
%122 = sub nsw i32 %121, 1
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds [100 x float], ptr %7, i64 0, i64 %123
%125 = load float, ptr %124, align 4
store float %125, ptr %14, align 4
%126 = load i32, ptr %10, align 4
%127 = sub nsw i32 %126, 1
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds [100 x float], ptr %8, i64 0, i64 %128
%130 = load float, ptr %129, align 4
store float %130, ptr %15, align 4
store i32 0, ptr %11, align 4
%131 = load i32, ptr %11, align 4
%132 = load i32, ptr %10, align 4
%133 = icmp slt i32 %131, %132
br i1 %133, label %.lr.ph5, label %152
.lr.ph5: ; preds = %120
br label %134
134: ; preds = %.lr.ph5, %146
%135 = load i32, ptr %11, align 4
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds [100 x float], ptr %8, i64 0, i64 %136
%138 = load float, ptr %137, align 4
%139 = load float, ptr %14, align 4
%140 = fmul float %138, %139
%141 = load float, ptr %15, align 4
%142 = fdiv float %140, %141
%143 = load i32, ptr %11, align 4
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds [100 x float], ptr %8, i64 0, i64 %144
store float %142, ptr %145, align 4
br label %146
146: ; preds = %134
%147 = load i32, ptr %11, align 4
%148 = add nsw i32 %147, 1
store i32 %148, ptr %11, align 4
%149 = load i32, ptr %11, align 4
%150 = load i32, ptr %10, align 4
%151 = icmp slt i32 %149, %150
br i1 %151, label %134, label %._crit_edge6, !llvm.loop !11
._crit_edge6: ; preds = %146
br label %152
152: ; preds = %._crit_edge6, %120
store i32 0, ptr %11, align 4
store i32 0, ptr %12, align 4
br label %153
153: ; preds = %197, %152
%154 = load i32, ptr %11, align 4
%155 = load i32, ptr %9, align 4
%156 = icmp slt i32 %154, %155
br i1 %156, label %157, label %161
157: ; preds = %153
%158 = load i32, ptr %12, align 4
%159 = load i32, ptr %10, align 4
%160 = icmp slt i32 %158, %159
br label %161
161: ; preds = %157, %153
%162 = phi i1 [ false, %153 ], [ %160, %157 ]
br i1 %162, label %163, label %198
163: ; preds = %161
%164 = load i32, ptr %11, align 4
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds [100 x float], ptr %7, i64 0, i64 %165
%167 = load float, ptr %166, align 4
%168 = load i32, ptr %12, align 4
%169 = sext i32 %168 to i64
%170 = getelementptr inbounds [100 x float], ptr %8, i64 0, i64 %169
%171 = load float, ptr %170, align 4
%172 = fcmp oeq float %167, %171
br i1 %172, label %173, label %180
173: ; preds = %163
%174 = load i32, ptr %13, align 4
%175 = add nsw i32 %174, 1
store i32 %175, ptr %13, align 4
%176 = load i32, ptr %11, align 4
%177 = add nsw i32 %176, 1
store i32 %177, ptr %11, align 4
%178 = load i32, ptr %12, align 4
%179 = add nsw i32 %178, 1
store i32 %179, ptr %12, align 4
br label %197
180: ; preds = %163
%181 = load i32, ptr %11, align 4
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds [100 x float], ptr %7, i64 0, i64 %182
%184 = load float, ptr %183, align 4
%185 = load i32, ptr %12, align 4
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds [100 x float], ptr %8, i64 0, i64 %186
%188 = load float, ptr %187, align 4
%189 = fcmp olt float %184, %188
br i1 %189, label %190, label %193
190: ; preds = %180
%191 = load i32, ptr %11, align 4
%192 = add nsw i32 %191, 1
store i32 %192, ptr %11, align 4
br label %196
193: ; preds = %180
%194 = load i32, ptr %12, align 4
%195 = add nsw i32 %194, 1
store i32 %195, ptr %12, align 4
br label %196
196: ; preds = %193, %190
br label %197
197: ; preds = %196, %173
br label %153, !llvm.loop !12
198: ; preds = %161
%199 = load i32, ptr %9, align 4
%200 = load i32, ptr %10, align 4
%201 = add nsw i32 %199, %200
%202 = load i32, ptr %13, align 4
%203 = sub nsw i32 %201, %202
%204 = sub nsw i32 %203, 1
%205 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %204)
br label %206
206: ; preds = %198, %72
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
%207 = load ptr, ptr %6, align 8
%208 = call signext i8 @getc(ptr noundef %207)
%209 = sext i8 %208 to i32
%210 = load i8, ptr @EOF, align 1
%211 = sext i8 %210 to i32
%212 = icmp ne i32 %209, %211
br i1 %212, label %34, label %._crit_edge9, !llvm.loop !13
._crit_edge9: ; preds = %206
br label %213
213: ; preds = %._crit_edge9, %23
store i32 0, ptr %3, align 4
br label %214
214: ; preds = %213, %18
%215 = load i32, ptr %3, align 4
ret i32 %215
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare signext i8 @getc(ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
|
; ModuleID = '/tmp/tmp40ng96mn.c'
source_filename = "/tmp/tmp40ng96mn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"break\0A\00", align 1
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @breakHandler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = load i32, ptr @stdout, align 4
%5 = call i32 @fflush(i32 noundef %4)
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @fflush(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp40ng96mn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"break\0A\00", align 1
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @breakHandler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @printf(ptr noundef @.str)
%4 = load i32, ptr @stdout, align 4
%5 = call i32 @fflush(i32 noundef %4)
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @fflush(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfbed7v3m.c'
source_filename = "/tmp/tmpfbed7v3m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [8192 x i8], align 16
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%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 4096, ptr %7, align 4
%12 = getelementptr inbounds [8192 x i8], ptr %8, i64 0, i64 0
%13 = call i32 @memset(ptr noundef %12, i8 noundef signext 97, i32 noundef 8192)
%14 = getelementptr inbounds [8192 x i8], ptr %8, i64 0, i64 8190
store i8 0, ptr %14, align 2
store i32 0, ptr %6, align 4
br label %15
15: ; preds = %32, %2
%16 = load i32, ptr %6, align 4
%17 = load i32, ptr %7, align 4
%18 = icmp ne i32 %16, %17
br i1 %18, label %19, label %35
19: ; preds = %15
%20 = getelementptr inbounds [8192 x i8], ptr %8, i64 0, i64 0
%21 = call i32 @completion_exists(ptr noundef %20)
store i32 %21, ptr %9, align 4
%22 = load i32, ptr %9, align 4
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %19
store i32 1, ptr %3, align 4
br label %68
25: ; preds = %19
%26 = getelementptr inbounds [8192 x i8], ptr %8, i64 0, i64 0
%27 = call i32 @init_completion(ptr noundef %26)
store i32 %27, ptr %9, align 4
%28 = load i32, ptr %9, align 4
%29 = icmp ne i32 %28, 0
br i1 %29, label %31, label %30
30: ; preds = %25
store i32 1, ptr %3, align 4
br label %68
31: ; preds = %25
br label %32
32: ; preds = %31
%33 = load i32, ptr %6, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %6, align 4
br label %15, !llvm.loop !6
35: ; preds = %15
%36 = getelementptr inbounds [8192 x i8], ptr %8, i64 0, i64 4096
store i8 0, ptr %36, align 16
store i32 0, ptr %6, align 4
br label %37
37: ; preds = %48, %35
%38 = load i32, ptr %6, align 4
%39 = load i32, ptr %7, align 4
%40 = icmp ne i32 %38, %39
br i1 %40, label %41, label %51
41: ; preds = %37
%42 = getelementptr inbounds [8192 x i8], ptr %8, i64 0, i64 0
%43 = call i32 @init_completion(ptr noundef %42)
store i32 %43, ptr %10, align 4
%44 = load i32, ptr %10, align 4
%45 = icmp ne i32 %44, 0
br i1 %45, label %47, label %46
46: ; preds = %41
store i32 1, ptr %3, align 4
br label %68
47: ; preds = %41
br label %48
48: ; preds = %47
%49 = load i32, ptr %6, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %6, align 4
br label %37, !llvm.loop !8
51: ; preds = %37
store i32 2048, ptr %7, align 4
%52 = getelementptr inbounds [8192 x i8], ptr %8, i64 0, i64 4095
store i8 0, ptr %52, align 1
store i32 0, ptr %6, align 4
br label %53
53: ; preds = %64, %51
%54 = load i32, ptr %6, align 4
%55 = load i32, ptr %7, align 4
%56 = icmp ne i32 %54, %55
br i1 %56, label %57, label %67
57: ; preds = %53
%58 = getelementptr inbounds [8192 x i8], ptr %8, i64 0, i64 0
%59 = call i32 @init_completion(ptr noundef %58)
store i32 %59, ptr %11, align 4
%60 = load i32, ptr %11, align 4
%61 = icmp ne i32 %60, 0
br i1 %61, label %62, label %63
62: ; preds = %57
store i32 1, ptr %3, align 4
br label %68
63: ; preds = %57
br label %64
64: ; preds = %63
%65 = load i32, ptr %6, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %6, align 4
br label %53, !llvm.loop !9
67: ; preds = %53
store i32 0, ptr %3, align 4
br label %68
68: ; preds = %67, %62, %46, %30, %24
%69 = load i32, ptr %3, align 4
ret i32 %69
}
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @completion_exists(ptr noundef) #1
declare i32 @init_completion(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/tmpfbed7v3m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [8192 x i8], align 16
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%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 4096, ptr %7, align 4
%12 = getelementptr inbounds [8192 x i8], ptr %8, i64 0, i64 0
%13 = call i32 @memset(ptr noundef %12, i8 noundef signext 97, i32 noundef 8192)
%14 = getelementptr inbounds [8192 x i8], ptr %8, i64 0, i64 8190
store i8 0, ptr %14, align 2
store i32 0, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %7, align 4
%17 = icmp ne i32 %15, %16
br i1 %17, label %.lr.ph, label %37
.lr.ph: ; preds = %2
br label %18
18: ; preds = %.lr.ph, %31
%19 = getelementptr inbounds [8192 x i8], ptr %8, i64 0, i64 0
%20 = call i32 @completion_exists(ptr noundef %19)
store i32 %20, ptr %9, align 4
%21 = load i32, ptr %9, align 4
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %18
store i32 1, ptr %3, align 4
br label %74
24: ; preds = %18
%25 = getelementptr inbounds [8192 x i8], ptr %8, i64 0, i64 0
%26 = call i32 @init_completion(ptr noundef %25)
store i32 %26, ptr %9, align 4
%27 = load i32, ptr %9, align 4
%28 = icmp ne i32 %27, 0
br i1 %28, label %30, label %29
29: ; preds = %24
store i32 1, ptr %3, align 4
br label %74
30: ; preds = %24
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
%34 = load i32, ptr %6, align 4
%35 = load i32, ptr %7, align 4
%36 = icmp ne i32 %34, %35
br i1 %36, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %31
br label %37
37: ; preds = %._crit_edge, %2
%38 = getelementptr inbounds [8192 x i8], ptr %8, i64 0, i64 4096
store i8 0, ptr %38, align 16
store i32 0, ptr %6, align 4
%39 = load i32, ptr %6, align 4
%40 = load i32, ptr %7, align 4
%41 = icmp ne i32 %39, %40
br i1 %41, label %.lr.ph2, label %55
.lr.ph2: ; preds = %37
br label %42
42: ; preds = %.lr.ph2, %49
%43 = getelementptr inbounds [8192 x i8], ptr %8, i64 0, i64 0
%44 = call i32 @init_completion(ptr noundef %43)
store i32 %44, ptr %10, align 4
%45 = load i32, ptr %10, align 4
%46 = icmp ne i32 %45, 0
br i1 %46, label %48, label %47
47: ; preds = %42
store i32 1, ptr %3, align 4
br label %74
48: ; preds = %42
br label %49
49: ; preds = %48
%50 = load i32, ptr %6, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %6, align 4
%52 = load i32, ptr %6, align 4
%53 = load i32, ptr %7, align 4
%54 = icmp ne i32 %52, %53
br i1 %54, label %42, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %49
br label %55
55: ; preds = %._crit_edge3, %37
store i32 2048, ptr %7, align 4
%56 = getelementptr inbounds [8192 x i8], ptr %8, i64 0, i64 4095
store i8 0, ptr %56, align 1
store i32 0, ptr %6, align 4
%57 = load i32, ptr %6, align 4
%58 = load i32, ptr %7, align 4
%59 = icmp ne i32 %57, %58
br i1 %59, label %.lr.ph5, label %73
.lr.ph5: ; preds = %55
br label %60
60: ; preds = %.lr.ph5, %67
%61 = getelementptr inbounds [8192 x i8], ptr %8, i64 0, i64 0
%62 = call i32 @init_completion(ptr noundef %61)
store i32 %62, ptr %11, align 4
%63 = load i32, ptr %11, align 4
%64 = icmp ne i32 %63, 0
br i1 %64, label %65, label %66
65: ; preds = %60
store i32 1, ptr %3, align 4
br label %74
66: ; preds = %60
br label %67
67: ; preds = %66
%68 = load i32, ptr %6, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %6, align 4
%70 = load i32, ptr %6, align 4
%71 = load i32, ptr %7, align 4
%72 = icmp ne i32 %70, %71
br i1 %72, label %60, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %67
br label %73
73: ; preds = %._crit_edge6, %55
store i32 0, ptr %3, align 4
br label %74
74: ; preds = %73, %65, %47, %29, %23
%75 = load i32, ptr %3, align 4
ret i32 %75
}
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @completion_exists(ptr noundef) #1
declare i32 @init_completion(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/tmpaolgnpr1.c'
source_filename = "/tmp/tmpaolgnpr1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PECIDomainMaxReadClear(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %3, align 8
%6 = icmp eq i64 %5, 1074462720
%7 = zext i1 %6 to i32
%8 = call i32 @DEBUG_ASSERT(i32 noundef %7)
%9 = load i64, ptr %4, align 8
%10 = call i32 @PECIDomainValid(i64 noundef %9)
%11 = call i32 @DEBUG_ASSERT(i32 noundef %10)
%12 = load i64, ptr %3, align 8
%13 = add i64 %12, 64
%14 = load i64, ptr %4, align 8
%15 = mul i64 %14, 4
%16 = add i64 %13, %15
%17 = inttoptr i64 %16 to ptr
%18 = load volatile i64, ptr %17, align 8
%19 = and i64 %18, 65535
store volatile i64 %19, ptr %17, align 8
ret void
}
declare i32 @DEBUG_ASSERT(i32 noundef) #1
declare i32 @PECIDomainValid(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/tmpaolgnpr1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PECIDomainMaxReadClear(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %3, align 8
%6 = icmp eq i64 %5, 1074462720
%7 = zext i1 %6 to i32
%8 = call i32 @DEBUG_ASSERT(i32 noundef %7)
%9 = load i64, ptr %4, align 8
%10 = call i32 @PECIDomainValid(i64 noundef %9)
%11 = call i32 @DEBUG_ASSERT(i32 noundef %10)
%12 = load i64, ptr %3, align 8
%13 = add i64 %12, 64
%14 = load i64, ptr %4, align 8
%15 = mul i64 %14, 4
%16 = add i64 %13, %15
%17 = inttoptr i64 %16 to ptr
%18 = load volatile i64, ptr %17, align 8
%19 = and i64 %18, 65535
store volatile i64 %19, ptr %17, align 8
ret void
}
declare i32 @DEBUG_ASSERT(i32 noundef) #1
declare i32 @PECIDomainValid(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/tmp3f2d3j29.c'
source_filename = "/tmp/tmp3f2d3j29.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [81 x i8] c"Inserisci PID del processo destinatario (0 per annullare, INVIO per terminare): \00", align 1
@.str.1 = private unnamed_addr constant [49 x i8] c"Non puoi inserire il tuo stesso pid.\0ARiprovare: \00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getReceivers(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %6
6: ; preds = %86, %1
%7 = call i32 @printf(ptr noundef @.str)
%8 = call i32 (...) @getValue()
store i32 %8, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = call i32 (...) @getpid()
%11 = icmp eq i32 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %6
%13 = call i32 @printf(ptr noundef @.str.1)
br label %79
14: ; preds = %6
%15 = load i32, ptr %4, align 4
%16 = icmp ne i32 %15, -1
br i1 %16, label %17, label %73
17: ; preds = %14
%18 = load i32, ptr %4, align 4
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %73
20: ; preds = %17
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %3, align 4
%23 = load ptr, ptr %2, align 8
%24 = load ptr, ptr %23, align 8
%25 = load i32, ptr %3, align 4
%26 = sext i32 %25 to i64
%27 = mul i64 8, %26
%28 = trunc i64 %27 to i32
%29 = call ptr @realloc(ptr noundef %24, i32 noundef %28)
%30 = load ptr, ptr %2, align 8
store ptr %29, ptr %30, align 8
%31 = load ptr, ptr %2, align 8
%32 = load ptr, ptr %31, align 8
%33 = icmp eq ptr %32, null
br i1 %33, label %34, label %37
34: ; preds = %20
%35 = load i32, ptr @EXIT_FAILURE, align 4
%36 = call i32 @exit(i32 noundef %35) #3
unreachable
37: ; preds = %20
%38 = load i32, ptr %4, align 4
%39 = call i32 @countDigits(i32 noundef %38)
%40 = add nsw i32 %39, 1
store i32 %40, ptr %5, align 4
%41 = load i32, ptr %5, align 4
%42 = sext i32 %41 to i64
%43 = mul i64 1, %42
%44 = trunc i64 %43 to i32
%45 = call ptr @malloc(i32 noundef %44)
%46 = load ptr, ptr %2, align 8
%47 = load ptr, ptr %46, align 8
%48 = load i32, ptr %3, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds ptr, ptr %47, i64 %49
%51 = getelementptr inbounds ptr, ptr %50, i64 -1
store ptr %45, ptr %51, align 8
%52 = load ptr, ptr %2, align 8
%53 = load ptr, ptr %52, align 8
%54 = load i32, ptr %3, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds ptr, ptr %53, i64 %55
%57 = getelementptr inbounds ptr, ptr %56, i64 -1
%58 = load ptr, ptr %57, align 8
%59 = icmp eq ptr %58, null
br i1 %59, label %60, label %63
60: ; preds = %37
%61 = load i32, ptr @EXIT_FAILURE, align 4
%62 = call i32 @exit(i32 noundef %61) #3
unreachable
63: ; preds = %37
%64 = load ptr, ptr %2, align 8
%65 = load ptr, ptr %64, align 8
%66 = load i32, ptr %3, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds ptr, ptr %65, i64 %67
%69 = getelementptr inbounds ptr, ptr %68, i64 -1
%70 = load ptr, ptr %69, align 8
%71 = load i32, ptr %4, align 4
%72 = call i32 @sprintf(ptr noundef %70, ptr noundef @.str.2, i32 noundef %71)
br label %78
73: ; preds = %17, %14
%74 = load i32, ptr %4, align 4
%75 = icmp eq i32 %74, -1
br i1 %75, label %76, label %77
76: ; preds = %73
store i32 0, ptr %3, align 4
br label %77
77: ; preds = %76, %73
br label %78
78: ; preds = %77, %63
br label %79
79: ; preds = %78, %12
br label %80
80: ; preds = %79
%81 = load i32, ptr %4, align 4
%82 = icmp ne i32 %81, -1
br i1 %82, label %83, label %86
83: ; preds = %80
%84 = load i32, ptr %4, align 4
%85 = icmp ne i32 %84, 0
br label %86
86: ; preds = %83, %80
%87 = phi i1 [ false, %80 ], [ %85, %83 ]
br i1 %87, label %6, label %88, !llvm.loop !6
88: ; preds = %86
%89 = load i32, ptr %3, align 4
ret i32 %89
}
declare i32 @printf(ptr noundef) #1
declare i32 @getValue(...) #1
declare i32 @getpid(...) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @countDigits(i32 noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmp3f2d3j29.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [81 x i8] c"Inserisci PID del processo destinatario (0 per annullare, INVIO per terminare): \00", align 1
@.str.1 = private unnamed_addr constant [49 x i8] c"Non puoi inserire il tuo stesso pid.\0ARiprovare: \00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getReceivers(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %6
6: ; preds = %86, %1
%7 = call i32 @printf(ptr noundef @.str)
%8 = call i32 (...) @getValue()
store i32 %8, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = call i32 (...) @getpid()
%11 = icmp eq i32 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %6
%13 = call i32 @printf(ptr noundef @.str.1)
br label %79
14: ; preds = %6
%15 = load i32, ptr %4, align 4
%16 = icmp ne i32 %15, -1
br i1 %16, label %17, label %73
17: ; preds = %14
%18 = load i32, ptr %4, align 4
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %73
20: ; preds = %17
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %3, align 4
%23 = load ptr, ptr %2, align 8
%24 = load ptr, ptr %23, align 8
%25 = load i32, ptr %3, align 4
%26 = sext i32 %25 to i64
%27 = mul i64 8, %26
%28 = trunc i64 %27 to i32
%29 = call ptr @realloc(ptr noundef %24, i32 noundef %28)
%30 = load ptr, ptr %2, align 8
store ptr %29, ptr %30, align 8
%31 = load ptr, ptr %2, align 8
%32 = load ptr, ptr %31, align 8
%33 = icmp eq ptr %32, null
br i1 %33, label %34, label %37
34: ; preds = %20
%35 = load i32, ptr @EXIT_FAILURE, align 4
%36 = call i32 @exit(i32 noundef %35) #3
unreachable
37: ; preds = %20
%38 = load i32, ptr %4, align 4
%39 = call i32 @countDigits(i32 noundef %38)
%40 = add nsw i32 %39, 1
store i32 %40, ptr %5, align 4
%41 = load i32, ptr %5, align 4
%42 = sext i32 %41 to i64
%43 = mul i64 1, %42
%44 = trunc i64 %43 to i32
%45 = call ptr @malloc(i32 noundef %44)
%46 = load ptr, ptr %2, align 8
%47 = load ptr, ptr %46, align 8
%48 = load i32, ptr %3, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds ptr, ptr %47, i64 %49
%51 = getelementptr inbounds ptr, ptr %50, i64 -1
store ptr %45, ptr %51, align 8
%52 = load ptr, ptr %2, align 8
%53 = load ptr, ptr %52, align 8
%54 = load i32, ptr %3, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds ptr, ptr %53, i64 %55
%57 = getelementptr inbounds ptr, ptr %56, i64 -1
%58 = load ptr, ptr %57, align 8
%59 = icmp eq ptr %58, null
br i1 %59, label %60, label %63
60: ; preds = %37
%61 = load i32, ptr @EXIT_FAILURE, align 4
%62 = call i32 @exit(i32 noundef %61) #3
unreachable
63: ; preds = %37
%64 = load ptr, ptr %2, align 8
%65 = load ptr, ptr %64, align 8
%66 = load i32, ptr %3, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds ptr, ptr %65, i64 %67
%69 = getelementptr inbounds ptr, ptr %68, i64 -1
%70 = load ptr, ptr %69, align 8
%71 = load i32, ptr %4, align 4
%72 = call i32 @sprintf(ptr noundef %70, ptr noundef @.str.2, i32 noundef %71)
br label %78
73: ; preds = %17, %14
%74 = load i32, ptr %4, align 4
%75 = icmp eq i32 %74, -1
br i1 %75, label %76, label %77
76: ; preds = %73
store i32 0, ptr %3, align 4
br label %77
77: ; preds = %76, %73
br label %78
78: ; preds = %77, %63
br label %79
79: ; preds = %78, %12
br label %80
80: ; preds = %79
%81 = load i32, ptr %4, align 4
%82 = icmp ne i32 %81, -1
br i1 %82, label %83, label %86
83: ; preds = %80
%84 = load i32, ptr %4, align 4
%85 = icmp ne i32 %84, 0
br label %86
86: ; preds = %83, %80
%87 = phi i1 [ false, %80 ], [ %85, %83 ]
br i1 %87, label %6, label %88, !llvm.loop !6
88: ; preds = %86
%89 = load i32, ptr %3, align 4
ret i32 %89
}
declare i32 @printf(ptr noundef) #1
declare i32 @getValue(...) #1
declare i32 @getpid(...) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @countDigits(i32 noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpzfva9wzj.c'
source_filename = "/tmp/tmpzfva9wzj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_heap() #0 {
%1 = call i32 (...) @test_calloc()
%2 = add nsw i32 0, %1
%3 = call i32 (...) @test_valloc()
%4 = add nsw i32 %2, %3
%5 = call i32 (...) @test_malloc()
%6 = add nsw i32 %4, %5
%7 = call i32 (...) @test_realloc()
%8 = add nsw i32 %6, %7
%9 = call i32 (...) @test_heap_torture()
%10 = add nsw i32 %8, %9
ret i32 %10
}
declare i32 @test_calloc(...) #1
declare i32 @test_valloc(...) #1
declare i32 @test_malloc(...) #1
declare i32 @test_realloc(...) #1
declare i32 @test_heap_torture(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzfva9wzj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_heap() #0 {
%1 = call i32 (...) @test_calloc()
%2 = add nsw i32 0, %1
%3 = call i32 (...) @test_valloc()
%4 = add nsw i32 %2, %3
%5 = call i32 (...) @test_malloc()
%6 = add nsw i32 %4, %5
%7 = call i32 (...) @test_realloc()
%8 = add nsw i32 %6, %7
%9 = call i32 (...) @test_heap_torture()
%10 = add nsw i32 %8, %9
ret i32 %10
}
declare i32 @test_calloc(...) #1
declare i32 @test_valloc(...) #1
declare i32 @test_malloc(...) #1
declare i32 @test_realloc(...) #1
declare i32 @test_heap_torture(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpo6gg9rpi.c'
source_filename = "/tmp/tmpo6gg9rpi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"bye\0D\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Service(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca [1024 x i8], align 16
store i32 %0, ptr %2, align 4
br label %4
4: ; preds = %11, %1
%5 = load i32, ptr %2, align 4
%6 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%7 = load i32, ptr %2, align 4
%8 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%9 = call i32 @recv(i32 noundef %7, ptr noundef %8, i32 noundef 1024, i32 noundef 0)
%10 = call i32 @send(i32 noundef %5, ptr noundef %6, i32 noundef %9, i32 noundef 0)
br label %11
11: ; preds = %4
%12 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%13 = call i64 @strncmp(ptr noundef %12, ptr noundef @.str, i32 noundef 4)
%14 = icmp ne i64 %13, 0
br i1 %14, label %4, label %15, !llvm.loop !6
15: ; preds = %11
ret void
}
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo6gg9rpi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"bye\0D\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Service(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca [1024 x i8], align 16
store i32 %0, ptr %2, align 4
%4 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
br label %5
5: ; preds = %12, %1
%6 = load i32, ptr %2, align 4
%7 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%8 = load i32, ptr %2, align 4
%9 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%10 = call i32 @recv(i32 noundef %8, ptr noundef %9, i32 noundef 1024, i32 noundef 0)
%11 = call i32 @send(i32 noundef %6, ptr noundef %7, i32 noundef %10, i32 noundef 0)
br label %12
12: ; preds = %5
%13 = call i64 @strncmp(ptr noundef %4, ptr noundef @.str, i32 noundef 4)
%14 = icmp ne i64 %13, 0
br i1 %14, label %5, label %15, !llvm.loop !6
15: ; preds = %12
ret void
}
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpsldnkooj.c'
source_filename = "/tmp/tmpsldnkooj.c"
target datalayout = "e-m:e-p270: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.sockaddr_un = type { ptr, i32 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [20 x i8] c"Usage: %s <socket>\0A\00", align 1
@AF_UNIX = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [7 x i8] c"socket\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"Trying to connect...\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"Path %s is too long!\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"connect\00", align 1
@.str.5 = private unnamed_addr constant [12 x i8] c"Connected.\0A\00", align 1
@.str.6 = private unnamed_addr constant [8 x i8] c"input> \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [5 x i8] c"send\00", align 1
@.str.8 = private unnamed_addr constant [10 x i8] c"echo > %s\00", align 1
@.str.9 = private unnamed_addr constant [5 x i8] c"recv\00", align 1
@.str.10 = private unnamed_addr constant [26 x i8] c"Server closed connection\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca %struct.sockaddr_un, align 8
%9 = alloca i32, align 4
%10 = alloca [100 x i8], align 16
%11 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = load i32, ptr %4, align 4
%13 = icmp sle i32 %12, 1
br i1 %13, label %14, label %20
14: ; preds = %2
%15 = load i32, ptr @stderr, align 4
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 0
%18 = load ptr, ptr %17, align 8
%19 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str, ptr noundef %18)
store i32 1, ptr %3, align 4
br label %102
20: ; preds = %2
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = load ptr, ptr %22, align 8
store ptr %23, ptr %6, align 8
%24 = load i32, ptr @AF_UNIX, align 4
%25 = load i32, ptr @SOCK_STREAM, align 4
%26 = call i32 @socket(i32 noundef %24, i32 noundef %25, i32 noundef 0)
store i32 %26, ptr %7, align 4
%27 = load i32, ptr %7, align 4
%28 = icmp eq i32 %27, -1
br i1 %28, label %29, label %31
29: ; preds = %20
%30 = call i32 @perror(ptr noundef @.str.1)
store i32 1, ptr %3, align 4
br label %102
31: ; preds = %20
%32 = call i64 (ptr, ...) @printf(ptr noundef @.str.2)
%33 = load i32, ptr @AF_UNIX, align 4
%34 = getelementptr inbounds %struct.sockaddr_un, ptr %8, i32 0, i32 1
store i32 %33, ptr %34, align 8
%35 = load ptr, ptr %6, align 8
%36 = call i32 @strlen(ptr noundef %35)
%37 = icmp sge i32 %36, 108
br i1 %37, label %38, label %42
38: ; preds = %31
%39 = load i32, ptr @stderr, align 4
%40 = load ptr, ptr %6, align 8
%41 = call i32 @fprintf(i32 noundef %39, ptr noundef @.str.3, ptr noundef %40)
store i32 0, ptr %3, align 4
br label %102
42: ; preds = %31
%43 = getelementptr inbounds %struct.sockaddr_un, ptr %8, i32 0, i32 0
%44 = load ptr, ptr %43, align 8
%45 = load ptr, ptr %6, align 8
%46 = call i32 @strcpy(ptr noundef %44, ptr noundef %45)
%47 = getelementptr inbounds %struct.sockaddr_un, ptr %8, i32 0, i32 0
%48 = load ptr, ptr %47, align 8
%49 = call i32 @strlen(ptr noundef %48)
%50 = sext i32 %49 to i64
%51 = add i64 %50, 4
%52 = trunc i64 %51 to i32
store i32 %52, ptr %9, align 4
%53 = load i32, ptr %7, align 4
%54 = load i32, ptr %9, align 4
%55 = call i32 @connect(i32 noundef %53, ptr noundef %8, i32 noundef %54)
%56 = icmp eq i32 %55, -1
br i1 %56, label %57, label %59
57: ; preds = %42
%58 = call i32 @perror(ptr noundef @.str.4)
store i32 1, ptr %3, align 4
br label %102
59: ; preds = %42
%60 = call i64 (ptr, ...) @printf(ptr noundef @.str.5)
br label %61
61: ; preds = %98, %59
%62 = call i64 (ptr, ...) @printf(ptr noundef @.str.6)
%63 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 0
%64 = load i32, ptr @stdin, align 4
%65 = call i32 @fgets(ptr noundef %63, i32 noundef 100, i32 noundef %64)
%66 = load i32, ptr @stdin, align 4
%67 = call i32 @feof(i32 noundef %66)
%68 = icmp ne i32 %67, 0
%69 = xor i1 %68, true
br i1 %69, label %70, label %99
70: ; preds = %61
%71 = load i32, ptr %7, align 4
%72 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 0
%73 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 0
%74 = call i32 @strlen(ptr noundef %73)
%75 = call i32 @send(i32 noundef %71, ptr noundef %72, i32 noundef %74, i32 noundef 0)
%76 = icmp eq i32 %75, -1
br i1 %76, label %77, label %79
77: ; preds = %70
%78 = call i32 @perror(ptr noundef @.str.7)
store i32 1, ptr %3, align 4
br label %102
79: ; preds = %70
%80 = load i32, ptr %7, align 4
%81 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 0
%82 = call i64 @recv(i32 noundef %80, ptr noundef %81, i32 noundef 100, i32 noundef 0)
store i64 %82, ptr %11, align 8
%83 = load i64, ptr %11, align 8
%84 = icmp ugt i64 %83, 0
br i1 %84, label %85, label %90
85: ; preds = %79
%86 = load i64, ptr %11, align 8
%87 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 %86
store i8 0, ptr %87, align 1
%88 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 0
%89 = call i64 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %88)
br label %98
90: ; preds = %79
%91 = load i64, ptr %11, align 8
%92 = icmp ult i64 %91, 0
br i1 %92, label %93, label %95
93: ; preds = %90
%94 = call i32 @perror(ptr noundef @.str.9)
br label %97
95: ; preds = %90
%96 = call i64 (ptr, ...) @printf(ptr noundef @.str.10)
br label %97
97: ; preds = %95, %93
store i32 1, ptr %3, align 4
br label %102
98: ; preds = %85
br label %61, !llvm.loop !6
99: ; preds = %61
%100 = load i32, ptr %7, align 4
%101 = call i32 @close(i32 noundef %100)
store i32 0, ptr %3, align 4
br label %102
102: ; preds = %99, %97, %77, %57, %38, %29, %14
%103 = load i32, ptr %3, align 4
ret i32 %103
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i64 @printf(ptr noundef, ...) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @feof(i32 noundef) #1
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsldnkooj.c"
target datalayout = "e-m:e-p270: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.sockaddr_un = type { ptr, i32 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [20 x i8] c"Usage: %s <socket>\0A\00", align 1
@AF_UNIX = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [7 x i8] c"socket\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"Trying to connect...\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"Path %s is too long!\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"connect\00", align 1
@.str.5 = private unnamed_addr constant [12 x i8] c"Connected.\0A\00", align 1
@.str.6 = private unnamed_addr constant [8 x i8] c"input> \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [5 x i8] c"send\00", align 1
@.str.8 = private unnamed_addr constant [10 x i8] c"echo > %s\00", align 1
@.str.9 = private unnamed_addr constant [5 x i8] c"recv\00", align 1
@.str.10 = private unnamed_addr constant [26 x i8] c"Server closed connection\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca %struct.sockaddr_un, align 8
%9 = alloca i32, align 4
%10 = alloca [100 x i8], align 16
%11 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = load i32, ptr %4, align 4
%13 = icmp sle i32 %12, 1
br i1 %13, label %14, label %20
14: ; preds = %2
%15 = load i32, ptr @stderr, align 4
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 0
%18 = load ptr, ptr %17, align 8
%19 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str, ptr noundef %18)
store i32 1, ptr %3, align 4
br label %108
20: ; preds = %2
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = load ptr, ptr %22, align 8
store ptr %23, ptr %6, align 8
%24 = load i32, ptr @AF_UNIX, align 4
%25 = load i32, ptr @SOCK_STREAM, align 4
%26 = call i32 @socket(i32 noundef %24, i32 noundef %25, i32 noundef 0)
store i32 %26, ptr %7, align 4
%27 = load i32, ptr %7, align 4
%28 = icmp eq i32 %27, -1
br i1 %28, label %29, label %31
29: ; preds = %20
%30 = call i32 @perror(ptr noundef @.str.1)
store i32 1, ptr %3, align 4
br label %108
31: ; preds = %20
%32 = call i64 (ptr, ...) @printf(ptr noundef @.str.2)
%33 = load i32, ptr @AF_UNIX, align 4
%34 = getelementptr inbounds %struct.sockaddr_un, ptr %8, i32 0, i32 1
store i32 %33, ptr %34, align 8
%35 = load ptr, ptr %6, align 8
%36 = call i32 @strlen(ptr noundef %35)
%37 = icmp sge i32 %36, 108
br i1 %37, label %38, label %42
38: ; preds = %31
%39 = load i32, ptr @stderr, align 4
%40 = load ptr, ptr %6, align 8
%41 = call i32 @fprintf(i32 noundef %39, ptr noundef @.str.3, ptr noundef %40)
store i32 0, ptr %3, align 4
br label %108
42: ; preds = %31
%43 = getelementptr inbounds %struct.sockaddr_un, ptr %8, i32 0, i32 0
%44 = load ptr, ptr %43, align 8
%45 = load ptr, ptr %6, align 8
%46 = call i32 @strcpy(ptr noundef %44, ptr noundef %45)
%47 = getelementptr inbounds %struct.sockaddr_un, ptr %8, i32 0, i32 0
%48 = load ptr, ptr %47, align 8
%49 = call i32 @strlen(ptr noundef %48)
%50 = sext i32 %49 to i64
%51 = add i64 %50, 4
%52 = trunc i64 %51 to i32
store i32 %52, ptr %9, align 4
%53 = load i32, ptr %7, align 4
%54 = load i32, ptr %9, align 4
%55 = call i32 @connect(i32 noundef %53, ptr noundef %8, i32 noundef %54)
%56 = icmp eq i32 %55, -1
br i1 %56, label %57, label %59
57: ; preds = %42
%58 = call i32 @perror(ptr noundef @.str.4)
store i32 1, ptr %3, align 4
br label %108
59: ; preds = %42
%60 = call i64 (ptr, ...) @printf(ptr noundef @.str.5)
%61 = call i64 (ptr, ...) @printf(ptr noundef @.str.6)
%62 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 0
%63 = load i32, ptr @stdin, align 4
%64 = call i32 @fgets(ptr noundef %62, i32 noundef 100, i32 noundef %63)
%65 = load i32, ptr @stdin, align 4
%66 = call i32 @feof(i32 noundef %65)
%67 = icmp ne i32 %66, 0
%68 = xor i1 %67, true
br i1 %68, label %.lr.ph, label %105
.lr.ph: ; preds = %59
br label %69
69: ; preds = %.lr.ph, %97
%70 = load i32, ptr %7, align 4
%71 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 0
%72 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 0
%73 = call i32 @strlen(ptr noundef %72)
%74 = call i32 @send(i32 noundef %70, ptr noundef %71, i32 noundef %73, i32 noundef 0)
%75 = icmp eq i32 %74, -1
br i1 %75, label %76, label %78
76: ; preds = %69
%77 = call i32 @perror(ptr noundef @.str.7)
store i32 1, ptr %3, align 4
br label %108
78: ; preds = %69
%79 = load i32, ptr %7, align 4
%80 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 0
%81 = call i64 @recv(i32 noundef %79, ptr noundef %80, i32 noundef 100, i32 noundef 0)
store i64 %81, ptr %11, align 8
%82 = load i64, ptr %11, align 8
%83 = icmp ugt i64 %82, 0
br i1 %83, label %84, label %89
84: ; preds = %78
%85 = load i64, ptr %11, align 8
%86 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 %85
store i8 0, ptr %86, align 1
%87 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 0
%88 = call i64 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef %87)
br label %97
89: ; preds = %78
%90 = load i64, ptr %11, align 8
%91 = icmp ult i64 %90, 0
br i1 %91, label %92, label %94
92: ; preds = %89
%93 = call i32 @perror(ptr noundef @.str.9)
br label %96
94: ; preds = %89
%95 = call i64 (ptr, ...) @printf(ptr noundef @.str.10)
br label %96
96: ; preds = %94, %92
store i32 1, ptr %3, align 4
br label %108
97: ; preds = %84
%98 = call i64 (ptr, ...) @printf(ptr noundef @.str.6)
%99 = load i32, ptr @stdin, align 4
%100 = call i32 @fgets(ptr noundef %62, i32 noundef 100, i32 noundef %99)
%101 = load i32, ptr @stdin, align 4
%102 = call i32 @feof(i32 noundef %101)
%103 = icmp ne i32 %102, 0
%104 = xor i1 %103, true
br i1 %104, label %69, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %97
br label %105
105: ; preds = %._crit_edge, %59
%106 = load i32, ptr %7, align 4
%107 = call i32 @close(i32 noundef %106)
store i32 0, ptr %3, align 4
br label %108
108: ; preds = %105, %96, %76, %57, %38, %29, %14
%109 = load i32, ptr %3, align 4
ret i32 %109
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i64 @printf(ptr noundef, ...) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @feof(i32 noundef) #1
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp5weptdje.c'
source_filename = "/tmp/tmp5weptdje.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"Before: myPid is %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c"After: myPid is %d, fork() said %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 -1, ptr %2, align 4
%4 = call i32 (...) @getpid()
store i32 %4, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %5)
%7 = call i32 (...) @fork()
store i32 %7, ptr %2, align 4
%8 = call i32 @sleep(i32 noundef 1)
%9 = call i32 (...) @getpid()
%10 = load i32, ptr %2, align 4
%11 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %9, i32 noundef %10)
ret i32 0
}
declare i32 @getpid(...) #1
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
declare i32 @fork(...) #1
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5weptdje.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"Before: myPid is %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c"After: myPid is %d, fork() said %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 -1, ptr %2, align 4
%4 = call i32 (...) @getpid()
store i32 %4, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str, i32 noundef %5)
%7 = call i32 (...) @fork()
store i32 %7, ptr %2, align 4
%8 = call i32 @sleep(i32 noundef 1)
%9 = call i32 (...) @getpid()
%10 = load i32, ptr %2, align 4
%11 = call i32 (ptr, i32, ...) @printf(ptr noundef @.str.1, i32 noundef %9, i32 noundef %10)
ret i32 0
}
declare i32 @getpid(...) #1
declare i32 @printf(ptr noundef, i32 noundef, ...) #1
declare i32 @fork(...) #1
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5oq6jf58.c'
source_filename = "/tmp/tmp5oq6jf58.c"
target datalayout = "e-m:e-p270: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/tmp5oq6jf58.c"
target datalayout = "e-m:e-p270: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/tmpaenp3hly.c'
source_filename = "/tmp/tmpaenp3hly.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@sal_uinttos.buf = internal global [64 x i8] zeroinitializer, align 16
@sal_uinttos.buf2 = internal global [64 x i8] zeroinitializer, align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @sal_uinttos(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %4, align 4
store ptr @sal_uinttos.buf, ptr %3, align 8
br label %5
5: ; preds = %8, %1
%6 = load i32, ptr %2, align 4
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %20
8: ; preds = %5
%9 = load i32, ptr %2, align 4
%10 = srem i32 %9, 10
%11 = add nsw i32 48, %10
%12 = trunc i32 %11 to i8
%13 = load ptr, ptr %3, align 8
store i8 %12, ptr %13, align 1
%14 = load i32, ptr %4, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %4, align 4
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds i8, ptr %16, i32 1
store ptr %17, ptr %3, align 8
%18 = load i32, ptr %2, align 4
%19 = sdiv i32 %18, 10
store i32 %19, ptr %2, align 4
br label %5, !llvm.loop !6
20: ; preds = %5
store ptr @sal_uinttos.buf2, ptr %3, align 8
br label %21
21: ; preds = %25, %20
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, -1
store i32 %23, ptr %4, align 4
%24 = icmp sge i32 %22, 0
br i1 %24, label %25, label %33
25: ; preds = %21
%26 = load i32, ptr %4, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [64 x i8], ptr @sal_uinttos.buf, i64 0, i64 %27
%29 = load i8, ptr %28, align 1
%30 = load ptr, ptr %3, align 8
store i8 %29, ptr %30, align 1
%31 = load ptr, ptr %3, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 1
store ptr %32, ptr %3, align 8
br label %21, !llvm.loop !8
33: ; preds = %21
%34 = load ptr, ptr %3, align 8
store i8 0, ptr %34, align 1
ret ptr @sal_uinttos.buf2
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpaenp3hly.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@sal_uinttos.buf = internal global [64 x i8] zeroinitializer, align 16
@sal_uinttos.buf2 = internal global [64 x i8] zeroinitializer, align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @sal_uinttos(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %4, align 4
store ptr @sal_uinttos.buf, ptr %3, align 8
%5 = load i32, ptr %2, align 4
%6 = icmp ne i32 %5, 0
br i1 %6, label %.lr.ph, label %21
.lr.ph: ; preds = %1
br label %7
7: ; preds = %.lr.ph, %7
%8 = load i32, ptr %2, align 4
%9 = srem i32 %8, 10
%10 = add nsw i32 48, %9
%11 = trunc i32 %10 to i8
%12 = load ptr, ptr %3, align 8
store i8 %11, ptr %12, align 1
%13 = load i32, ptr %4, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %4, align 4
%15 = load ptr, ptr %3, align 8
%16 = getelementptr inbounds i8, ptr %15, i32 1
store ptr %16, ptr %3, align 8
%17 = load i32, ptr %2, align 4
%18 = sdiv i32 %17, 10
store i32 %18, ptr %2, align 4
%19 = load i32, ptr %2, align 4
%20 = icmp ne i32 %19, 0
br i1 %20, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %7
br label %21
21: ; preds = %._crit_edge, %1
store ptr @sal_uinttos.buf2, ptr %3, align 8
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, -1
store i32 %23, ptr %4, align 4
%24 = icmp sge i32 %22, 0
br i1 %24, label %.lr.ph2, label %36
.lr.ph2: ; preds = %21
br label %25
25: ; preds = %.lr.ph2, %25
%26 = load i32, ptr %4, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [64 x i8], ptr @sal_uinttos.buf, i64 0, i64 %27
%29 = load i8, ptr %28, align 1
%30 = load ptr, ptr %3, align 8
store i8 %29, ptr %30, align 1
%31 = load ptr, ptr %3, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 1
store ptr %32, ptr %3, align 8
%33 = load i32, ptr %4, align 4
%34 = add nsw i32 %33, -1
store i32 %34, ptr %4, align 4
%35 = icmp sge i32 %33, 0
br i1 %35, label %25, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %25
br label %36
36: ; preds = %._crit_edge3, %21
%37 = load ptr, ptr %3, align 8
store i8 0, ptr %37, align 1
ret ptr @sal_uinttos.buf2
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp3ce59ckw.c'
source_filename = "/tmp/tmp3ce59ckw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PutLinePoint(i32 noundef %0, i32 noundef %1, i16 noundef zeroext %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i16, align 2
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i16 %2, ptr %7, align 2
store i32 %3, ptr %8, align 4
%9 = load i32, ptr %8, align 4
%10 = icmp sgt i32 %9, 1
br i1 %10, label %11, label %17
11: ; preds = %4
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %8, align 4
%15 = load i16, ptr %7, align 2
%16 = call i32 @FillCircle(i32 noundef %12, i32 noundef %13, i32 noundef %14, i16 noundef zeroext %15)
br label %22
17: ; preds = %4
%18 = load i32, ptr %5, align 4
%19 = load i32, ptr %6, align 4
%20 = load i16, ptr %7, align 2
%21 = call i32 @FBrenderPutPixel(i32 noundef %18, i32 noundef %19, i16 noundef zeroext %20)
br label %22
22: ; preds = %17, %11
ret void
}
declare i32 @FillCircle(i32 noundef, i32 noundef, i32 noundef, i16 noundef zeroext) #1
declare i32 @FBrenderPutPixel(i32 noundef, i32 noundef, i16 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3ce59ckw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PutLinePoint(i32 noundef %0, i32 noundef %1, i16 noundef zeroext %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i16, align 2
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i16 %2, ptr %7, align 2
store i32 %3, ptr %8, align 4
%9 = load i32, ptr %8, align 4
%10 = icmp sgt i32 %9, 1
br i1 %10, label %11, label %17
11: ; preds = %4
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %8, align 4
%15 = load i16, ptr %7, align 2
%16 = call i32 @FillCircle(i32 noundef %12, i32 noundef %13, i32 noundef %14, i16 noundef zeroext %15)
br label %22
17: ; preds = %4
%18 = load i32, ptr %5, align 4
%19 = load i32, ptr %6, align 4
%20 = load i16, ptr %7, align 2
%21 = call i32 @FBrenderPutPixel(i32 noundef %18, i32 noundef %19, i16 noundef zeroext %20)
br label %22
22: ; preds = %17, %11
ret void
}
declare i32 @FillCircle(i32 noundef, i32 noundef, i32 noundef, i16 noundef zeroext) #1
declare i32 @FBrenderPutPixel(i32 noundef, i32 noundef, i16 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpluvr7g43.c'
source_filename = "/tmp/tmpluvr7g43.c"
target datalayout = "e-m:e-p270: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/tmpluvr7g43.c"
target datalayout = "e-m:e-p270: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/tmp8lr10md6.c'
source_filename = "/tmp/tmp8lr10md6.c"
target datalayout = "e-m:e-p270: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 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @add_nanoseconds(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 0
%8 = load i64, ptr %7, align 8
%9 = load i64, ptr %4, align 8
%10 = add nsw i64 %8, %9
store i64 %10, ptr %5, align 8
%11 = load i64, ptr %5, align 8
%12 = srem i64 %11, 1000000000
%13 = load ptr, ptr %3, align 8
%14 = getelementptr inbounds %struct.timespec, ptr %13, i32 0, i32 0
store i64 %12, ptr %14, align 8
%15 = load i64, ptr %5, align 8
%16 = sdiv i64 %15, 1000000000
%17 = load ptr, ptr %3, align 8
%18 = getelementptr inbounds %struct.timespec, ptr %17, i32 0, i32 1
%19 = load i64, ptr %18, align 8
%20 = add nsw i64 %19, %16
store i64 %20, ptr %18, 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/tmp8lr10md6.c"
target datalayout = "e-m:e-p270: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 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @add_nanoseconds(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 0
%8 = load i64, ptr %7, align 8
%9 = load i64, ptr %4, align 8
%10 = add nsw i64 %8, %9
store i64 %10, ptr %5, align 8
%11 = load i64, ptr %5, align 8
%12 = srem i64 %11, 1000000000
%13 = load ptr, ptr %3, align 8
%14 = getelementptr inbounds %struct.timespec, ptr %13, i32 0, i32 0
store i64 %12, ptr %14, align 8
%15 = load i64, ptr %5, align 8
%16 = sdiv i64 %15, 1000000000
%17 = load ptr, ptr %3, align 8
%18 = getelementptr inbounds %struct.timespec, ptr %17, i32 0, i32 1
%19 = load i64, ptr %18, align 8
%20 = add nsw i64 %19, %16
store i64 %20, ptr %18, 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/tmph82bhoku.c'
source_filename = "/tmp/tmph82bhoku.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"digits = \00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"%d - %d ; \00", align 1
@.str.2 = private unnamed_addr constant [32 x i8] c", whitespace - %d, others = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [10 x i32], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %3, align 4
br label %7
7: ; preds = %14, %0
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 10
br i1 %9, label %10, label %17
10: ; preds = %7
%11 = load i32, ptr %3, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %12
store i32 0, ptr %13, align 4
br label %14
14: ; preds = %10
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %3, align 4
br label %7, !llvm.loop !6
17: ; preds = %7
br label %18
18: ; preds = %51, %17
%19 = call i32 (...) @getchar()
store i32 %19, ptr %2, align 4
%20 = load i32, ptr @EOF, align 4
%21 = icmp ne i32 %19, %20
br i1 %21, label %22, label %52
22: ; preds = %18
%23 = load i32, ptr %2, align 4
%24 = icmp sge i32 %23, 48
br i1 %24, label %25, label %35
25: ; preds = %22
%26 = load i32, ptr %2, align 4
%27 = icmp sle i32 %26, 57
br i1 %27, label %28, label %35
28: ; preds = %25
%29 = load i32, ptr %2, align 4
%30 = sub nsw i32 %29, 48
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %31
%33 = load i32, ptr %32, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %32, align 4
br label %51
35: ; preds = %25, %22
%36 = load i32, ptr %2, align 4
%37 = icmp eq i32 %36, 32
br i1 %37, label %44, label %38
38: ; preds = %35
%39 = load i32, ptr %2, align 4
%40 = icmp eq i32 %39, 10
br i1 %40, label %44, label %41
41: ; preds = %38
%42 = load i32, ptr %2, align 4
%43 = icmp eq i32 %42, 9
br i1 %43, label %44, label %47
44: ; preds = %41, %38, %35
%45 = load i32, ptr %4, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %4, align 4
br label %50
47: ; preds = %41
%48 = load i32, ptr %5, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %5, align 4
br label %50
50: ; preds = %47, %44
br label %51
51: ; preds = %50, %28
br label %18, !llvm.loop !8
52: ; preds = %18
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
br label %54
54: ; preds = %64, %52
%55 = load i32, ptr %3, align 4
%56 = icmp slt i32 %55, 10
br i1 %56, label %57, label %67
57: ; preds = %54
%58 = load i32, ptr %3, align 4
%59 = load i32, ptr %3, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %60
%62 = load i32, ptr %61, align 4
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %58, i32 noundef %62)
br label %64
64: ; preds = %57
%65 = load i32, ptr %3, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %3, align 4
br label %54, !llvm.loop !9
67: ; preds = %54
%68 = load i32, ptr %4, align 4
%69 = load i32, ptr %5, align 4
%70 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %68, i32 noundef %69)
ret i32 0
}
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/tmph82bhoku.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"digits = \00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"%d - %d ; \00", align 1
@.str.2 = private unnamed_addr constant [32 x i8] c", whitespace - %d, others = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [10 x i32], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 10
br i1 %8, label %.lr.ph, label %18
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %13
%10 = load i32, ptr %3, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %11
store i32 0, 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
%16 = load i32, ptr %3, align 4
%17 = icmp slt i32 %16, 10
br i1 %17, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %18
18: ; preds = %._crit_edge, %0
%19 = call i32 (...) @getchar()
store i32 %19, ptr %2, align 4
%20 = load i32, ptr @EOF, align 4
%21 = icmp ne i32 %19, %20
br i1 %21, label %.lr.ph2, label %55
.lr.ph2: ; preds = %18
br label %22
22: ; preds = %.lr.ph2, %51
%23 = load i32, ptr %2, align 4
%24 = icmp sge i32 %23, 48
br i1 %24, label %25, label %35
25: ; preds = %22
%26 = load i32, ptr %2, align 4
%27 = icmp sle i32 %26, 57
br i1 %27, label %28, label %35
28: ; preds = %25
%29 = load i32, ptr %2, align 4
%30 = sub nsw i32 %29, 48
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %31
%33 = load i32, ptr %32, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %32, align 4
br label %51
35: ; preds = %25, %22
%36 = load i32, ptr %2, align 4
%37 = icmp eq i32 %36, 32
br i1 %37, label %44, label %38
38: ; preds = %35
%39 = load i32, ptr %2, align 4
%40 = icmp eq i32 %39, 10
br i1 %40, label %44, label %41
41: ; preds = %38
%42 = load i32, ptr %2, align 4
%43 = icmp eq i32 %42, 9
br i1 %43, label %44, label %47
44: ; preds = %41, %38, %35
%45 = load i32, ptr %4, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %4, align 4
br label %50
47: ; preds = %41
%48 = load i32, ptr %5, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %5, align 4
br label %50
50: ; preds = %47, %44
br label %51
51: ; preds = %50, %28
%52 = call i32 (...) @getchar()
store i32 %52, ptr %2, align 4
%53 = load i32, ptr @EOF, align 4
%54 = icmp ne i32 %52, %53
br i1 %54, label %22, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %51
br label %55
55: ; preds = %._crit_edge3, %18
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
%57 = load i32, ptr %3, align 4
%58 = icmp slt i32 %57, 10
br i1 %58, label %.lr.ph5, label %71
.lr.ph5: ; preds = %55
br label %59
59: ; preds = %.lr.ph5, %66
%60 = load i32, ptr %3, align 4
%61 = load i32, ptr %3, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %62
%64 = load i32, ptr %63, align 4
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %60, i32 noundef %64)
br label %66
66: ; preds = %59
%67 = load i32, ptr %3, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %3, align 4
%69 = load i32, ptr %3, align 4
%70 = icmp slt i32 %69, 10
br i1 %70, label %59, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %66
br label %71
71: ; preds = %._crit_edge6, %55
%72 = load i32, ptr %4, align 4
%73 = load i32, ptr %5, align 4
%74 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %72, i32 noundef %73)
ret i32 0
}
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/tmp0q5d0038.c'
source_filename = "/tmp/tmp0q5d0038.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"Just a placeholder...\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @connect() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0q5d0038.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"Just a placeholder...\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @connect() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0yp6a73_.c'
source_filename = "/tmp/tmp0yp6a73_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dynarray_nochk_free(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 = load ptr, ptr %6, align 8
store ptr %7, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %10, label %30
10: ; preds = %2
%11 = load ptr, ptr %4, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %13, label %25
13: ; preds = %10
br label %14
14: ; preds = %18, %13
%15 = load ptr, ptr %5, align 8
%16 = load ptr, ptr %15, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %24
18: ; preds = %14
%19 = load ptr, ptr %4, align 8
%20 = load ptr, ptr %5, align 8
%21 = load ptr, ptr %20, align 8
call void %19(ptr noundef %21)
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i32 1
store ptr %23, ptr %5, align 8
br label %14, !llvm.loop !6
24: ; preds = %14
br label %25
25: ; preds = %24, %10
%26 = load ptr, ptr %3, align 8
%27 = load ptr, ptr %26, align 8
%28 = call i32 @free(ptr noundef %27)
%29 = load ptr, ptr %3, align 8
store ptr null, ptr %29, align 8
br label %30
30: ; preds = %25, %2
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0yp6a73_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dynarray_nochk_free(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 = load ptr, ptr %6, align 8
store ptr %7, ptr %5, align 8
%8 = load ptr, ptr %5, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %10, label %32
10: ; preds = %2
%11 = load ptr, ptr %4, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %13, label %27
13: ; preds = %10
%14 = load ptr, ptr %5, align 8
%15 = load ptr, ptr %14, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %.lr.ph, label %26
.lr.ph: ; preds = %13
br label %17
17: ; preds = %.lr.ph, %17
%18 = load ptr, ptr %4, align 8
%19 = load ptr, ptr %5, align 8
%20 = load ptr, ptr %19, align 8
call void %18(ptr noundef %20)
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i32 1
store ptr %22, ptr %5, align 8
%23 = load ptr, ptr %5, align 8
%24 = load ptr, ptr %23, align 8
%25 = icmp ne ptr %24, null
br i1 %25, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %26
26: ; preds = %._crit_edge, %13
br label %27
27: ; preds = %26, %10
%28 = load ptr, ptr %3, align 8
%29 = load ptr, ptr %28, align 8
%30 = call i32 @free(ptr noundef %29)
%31 = load ptr, ptr %3, align 8
store ptr null, ptr %31, align 8
br label %32
32: ; preds = %27, %2
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpenqhjar_.c'
source_filename = "/tmp/tmpenqhjar_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"..\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c".git\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c".svn\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c".hg\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c".repo\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @skip_some_entries(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = call i32 @strcmp(ptr noundef %4, ptr noundef @.str)
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %27
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = call i32 @strcmp(ptr noundef %8, ptr noundef @.str.1)
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %27
11: ; preds = %7
%12 = load ptr, ptr %3, align 8
%13 = call i32 @strcmp(ptr noundef %12, ptr noundef @.str.2)
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %27
15: ; preds = %11
%16 = load ptr, ptr %3, align 8
%17 = call i32 @strcmp(ptr noundef %16, ptr noundef @.str.3)
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %27
19: ; preds = %15
%20 = load ptr, ptr %3, align 8
%21 = call i32 @strcmp(ptr noundef %20, ptr noundef @.str.4)
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %27
23: ; preds = %19
%24 = load ptr, ptr %3, align 8
%25 = call i32 @strcmp(ptr noundef %24, ptr noundef @.str.5)
%26 = icmp ne i32 %25, 0
br i1 %26, label %28, label %27
27: ; preds = %23, %19, %15, %11, %7, %1
store i32 1, ptr %2, align 4
br label %29
28: ; preds = %23
store i32 0, ptr %2, align 4
br label %29
29: ; preds = %28, %27
%30 = load i32, ptr %2, align 4
ret i32 %30
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpenqhjar_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"..\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c".git\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c".svn\00", align 1
@.str.4 = private unnamed_addr constant [4 x i8] c".hg\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c".repo\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @skip_some_entries(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = call i32 @strcmp(ptr noundef %4, ptr noundef @.str)
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %27
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = call i32 @strcmp(ptr noundef %8, ptr noundef @.str.1)
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %27
11: ; preds = %7
%12 = load ptr, ptr %3, align 8
%13 = call i32 @strcmp(ptr noundef %12, ptr noundef @.str.2)
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %27
15: ; preds = %11
%16 = load ptr, ptr %3, align 8
%17 = call i32 @strcmp(ptr noundef %16, ptr noundef @.str.3)
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %27
19: ; preds = %15
%20 = load ptr, ptr %3, align 8
%21 = call i32 @strcmp(ptr noundef %20, ptr noundef @.str.4)
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %27
23: ; preds = %19
%24 = load ptr, ptr %3, align 8
%25 = call i32 @strcmp(ptr noundef %24, ptr noundef @.str.5)
%26 = icmp ne i32 %25, 0
br i1 %26, label %28, label %27
27: ; preds = %23, %19, %15, %11, %7, %1
store i32 1, ptr %2, align 4
br label %29
28: ; preds = %23
store i32 0, ptr %2, align 4
br label %29
29: ; preds = %28, %27
%30 = load i32, ptr %2, align 4
ret i32 %30
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7qtv1vcc.c'
source_filename = "/tmp/tmp7qtv1vcc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"pid %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"in child \0A\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"in parent\0A\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"fork error\0A\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"wait\00", align 1
@.str.5 = private unnamed_addr constant [8 x i8] c"pid=%d\0A\00", align 1
@.str.6 = private unnamed_addr constant [22 x i8] c"Stopped by signal=%d\0A\00", align 1
@.str.7 = private unnamed_addr constant [11 x i8] c"Continued\0A\00", align 1
@.str.8 = private unnamed_addr constant [40 x i8] c"Normal termination with exit status=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %3, align 4
%5 = call i32 (...) @fork()
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %6)
%8 = load i32, ptr %3, align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %20
10: ; preds = %0
store i32 0, ptr %4, align 4
br label %11
11: ; preds = %16, %10
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %12, 10
br i1 %13, label %14, label %19
14: ; preds = %11
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %16
16: ; preds = %14
%17 = load i32, ptr %4, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %4, align 4
br label %11, !llvm.loop !6
19: ; preds = %11
store i32 1, ptr %1, align 4
br label %59
20: ; preds = %0
%21 = load i32, ptr %3, align 4
%22 = icmp sgt i32 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %20
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %27
25: ; preds = %20
%26 = call i32 @perror(ptr noundef @.str.3)
br label %27
27: ; preds = %25, %23
br label %28
28: ; preds = %27
%29 = call i32 @wait(ptr noundef %2)
store i32 %29, ptr %3, align 4
%30 = load i32, ptr %3, align 4
%31 = icmp eq i32 %30, -1
br i1 %31, label %32, label %34
32: ; preds = %28
%33 = call i32 @perror(ptr noundef @.str.4)
br label %34
34: ; preds = %32, %28
%35 = load i32, ptr %3, align 4
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %35)
%37 = load i32, ptr %2, align 4
%38 = call i64 @WIFSTOPPED(i32 noundef %37)
%39 = icmp ne i64 %38, 0
br i1 %39, label %40, label %44
40: ; preds = %34
%41 = load i32, ptr %2, align 4
%42 = call i32 @WSTOPSIG(i32 noundef %41)
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %42)
br label %44
44: ; preds = %40, %34
%45 = load i32, ptr %2, align 4
%46 = call i64 @WIFCONTINUED(i32 noundef %45)
%47 = icmp ne i64 %46, 0
br i1 %47, label %48, label %50
48: ; preds = %44
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %50
50: ; preds = %48, %44
%51 = load i32, ptr %2, align 4
%52 = call i64 @WIFEXITED(i32 noundef %51)
%53 = icmp ne i64 %52, 0
br i1 %53, label %54, label %58
54: ; preds = %50
%55 = load i32, ptr %2, align 4
%56 = call i32 @WEXITSTATUS(i32 noundef %55)
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %56)
br label %58
58: ; preds = %54, %50
store i32 0, ptr %1, align 4
br label %59
59: ; preds = %58, %19
%60 = load i32, ptr %1, align 4
ret i32 %60
}
declare i32 @fork(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @perror(ptr noundef) #1
declare i32 @wait(ptr noundef) #1
declare i64 @WIFSTOPPED(i32 noundef) #1
declare i32 @WSTOPSIG(i32 noundef) #1
declare i64 @WIFCONTINUED(i32 noundef) #1
declare i64 @WIFEXITED(i32 noundef) #1
declare i32 @WEXITSTATUS(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/tmp7qtv1vcc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"pid %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"in child \0A\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"in parent\0A\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"fork error\0A\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"wait\00", align 1
@.str.5 = private unnamed_addr constant [8 x i8] c"pid=%d\0A\00", align 1
@.str.6 = private unnamed_addr constant [22 x i8] c"Stopped by signal=%d\0A\00", align 1
@.str.7 = private unnamed_addr constant [11 x i8] c"Continued\0A\00", align 1
@.str.8 = private unnamed_addr constant [40 x i8] c"Normal termination with exit status=%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %3, align 4
%5 = call i32 (...) @fork()
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %6)
%8 = load i32, ptr %3, align 4
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %21
10: ; preds = %0
store i32 0, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %11, 10
br i1 %12, label %.lr.ph, label %20
.lr.ph: ; preds = %10
br label %13
13: ; preds = %.lr.ph, %15
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %15
15: ; preds = %13
%16 = load i32, ptr %4, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %4, align 4
%18 = load i32, ptr %4, align 4
%19 = icmp slt i32 %18, 10
br i1 %19, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %20
20: ; preds = %._crit_edge, %10
store i32 1, ptr %1, align 4
br label %60
21: ; preds = %0
%22 = load i32, ptr %3, align 4
%23 = icmp sgt i32 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %28
26: ; preds = %21
%27 = call i32 @perror(ptr noundef @.str.3)
br label %28
28: ; preds = %26, %24
br label %29
29: ; preds = %28
%30 = call i32 @wait(ptr noundef %2)
store i32 %30, ptr %3, align 4
%31 = load i32, ptr %3, align 4
%32 = icmp eq i32 %31, -1
br i1 %32, label %33, label %35
33: ; preds = %29
%34 = call i32 @perror(ptr noundef @.str.4)
br label %35
35: ; preds = %33, %29
%36 = load i32, ptr %3, align 4
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %36)
%38 = load i32, ptr %2, align 4
%39 = call i64 @WIFSTOPPED(i32 noundef %38)
%40 = icmp ne i64 %39, 0
br i1 %40, label %41, label %45
41: ; preds = %35
%42 = load i32, ptr %2, align 4
%43 = call i32 @WSTOPSIG(i32 noundef %42)
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %43)
br label %45
45: ; preds = %41, %35
%46 = load i32, ptr %2, align 4
%47 = call i64 @WIFCONTINUED(i32 noundef %46)
%48 = icmp ne i64 %47, 0
br i1 %48, label %49, label %51
49: ; preds = %45
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %51
51: ; preds = %49, %45
%52 = load i32, ptr %2, align 4
%53 = call i64 @WIFEXITED(i32 noundef %52)
%54 = icmp ne i64 %53, 0
br i1 %54, label %55, label %59
55: ; preds = %51
%56 = load i32, ptr %2, align 4
%57 = call i32 @WEXITSTATUS(i32 noundef %56)
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %57)
br label %59
59: ; preds = %55, %51
store i32 0, ptr %1, align 4
br label %60
60: ; preds = %59, %20
%61 = load i32, ptr %1, align 4
ret i32 %61
}
declare i32 @fork(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @perror(ptr noundef) #1
declare i32 @wait(ptr noundef) #1
declare i64 @WIFSTOPPED(i32 noundef) #1
declare i32 @WSTOPSIG(i32 noundef) #1
declare i64 @WIFCONTINUED(i32 noundef) #1
declare i64 @WIFEXITED(i32 noundef) #1
declare i32 @WEXITSTATUS(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/tmp4vdc61ji.c'
source_filename = "/tmp/tmp4vdc61ji.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"answer: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 600000, ptr %6, align 4
br label %9
9: ; preds = %42, %2
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %10, 29000000
br i1 %11, label %12, label %45
12: ; preds = %9
%13 = load i32, ptr %6, align 4
%14 = mul nsw i32 %13, 10
store i32 %14, ptr %7, align 4
store i32 1, ptr %8, align 4
br label %15
15: ; preds = %32, %12
%16 = load i32, ptr %8, align 4
%17 = load i32, ptr %6, align 4
%18 = sdiv i32 %17, 2
%19 = add nsw i32 %18, 1
%20 = icmp slt i32 %16, %19
br i1 %20, label %21, label %35
21: ; preds = %15
%22 = load i32, ptr %6, align 4
%23 = load i32, ptr %8, align 4
%24 = srem i32 %22, %23
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %31
26: ; preds = %21
%27 = load i32, ptr %8, align 4
%28 = mul nsw i32 %27, 10
%29 = load i32, ptr %7, align 4
%30 = add nsw i32 %29, %28
store i32 %30, ptr %7, align 4
br label %31
31: ; preds = %26, %21
br label %32
32: ; preds = %31
%33 = load i32, ptr %8, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %8, align 4
br label %15, !llvm.loop !6
35: ; preds = %15
%36 = load i32, ptr %7, align 4
%37 = icmp sge i32 %36, 29000000
br i1 %37, label %38, label %41
38: ; preds = %35
%39 = load i32, ptr %6, align 4
%40 = call i32 @printf(ptr noundef @.str, i32 noundef %39)
store i32 0, ptr %3, align 4
br label %46
41: ; preds = %35
br label %42
42: ; preds = %41
%43 = load i32, ptr %6, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %6, align 4
br label %9, !llvm.loop !8
45: ; preds = %9
store i32 0, ptr %3, align 4
br label %46
46: ; preds = %45, %38
%47 = load i32, ptr %3, align 4
ret i32 %47
}
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}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4vdc61ji.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"answer: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 600000, ptr %6, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp slt i32 %9, 29000000
br i1 %10, label %.lr.ph2, label %50
.lr.ph2: ; preds = %2
br label %11
11: ; preds = %.lr.ph2, %45
%12 = load i32, ptr %6, align 4
%13 = mul nsw i32 %12, 10
store i32 %13, ptr %7, align 4
store i32 1, ptr %8, align 4
%14 = load i32, ptr %8, align 4
%15 = load i32, ptr %6, align 4
%16 = sdiv i32 %15, 2
%17 = add nsw i32 %16, 1
%18 = icmp slt i32 %14, %17
br i1 %18, label %.lr.ph, label %38
.lr.ph: ; preds = %11
br label %19
19: ; preds = %.lr.ph, %30
%20 = load i32, ptr %6, align 4
%21 = load i32, ptr %8, align 4
%22 = srem i32 %20, %21
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %29
24: ; preds = %19
%25 = load i32, ptr %8, align 4
%26 = mul nsw i32 %25, 10
%27 = load i32, ptr %7, align 4
%28 = add nsw i32 %27, %26
store i32 %28, ptr %7, align 4
br label %29
29: ; preds = %24, %19
br label %30
30: ; preds = %29
%31 = load i32, ptr %8, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %8, align 4
%33 = load i32, ptr %8, align 4
%34 = load i32, ptr %6, align 4
%35 = sdiv i32 %34, 2
%36 = add nsw i32 %35, 1
%37 = icmp slt i32 %33, %36
br i1 %37, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %38
38: ; preds = %._crit_edge, %11
%39 = load i32, ptr %7, align 4
%40 = icmp sge i32 %39, 29000000
br i1 %40, label %41, label %44
41: ; preds = %38
%42 = load i32, ptr %6, align 4
%43 = call i32 @printf(ptr noundef @.str, i32 noundef %42)
store i32 0, ptr %3, align 4
br label %51
44: ; preds = %38
br label %45
45: ; preds = %44
%46 = load i32, ptr %6, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %6, align 4
%48 = load i32, ptr %6, align 4
%49 = icmp slt i32 %48, 29000000
br i1 %49, label %11, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %45
br label %50
50: ; preds = %._crit_edge3, %2
store i32 0, ptr %3, align 4
br label %51
51: ; preds = %50, %41
%52 = load i32, ptr %3, align 4
ret i32 %52
}
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}
|
; ModuleID = '/tmp/tmp99r4xmz9.c'
source_filename = "/tmp/tmp99r4xmz9.c"
target datalayout = "e-m:e-p270: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.arr = private unnamed_addr constant [15 x i32] [i32 43, i32 423, i32 13, i32 6, i32 34, i32 64, i32 24, i32 69, i32 32, i32 28, i32 432, i32 641, i32 4365, i32 345, i32 624], align 16
@.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 [15 x i32], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.arr, i64 60, i1 false)
%3 = getelementptr inbounds [15 x i32], ptr %2, i64 0, i64 0
%4 = call i32 @qsort(i32 noundef 6, ptr noundef %3, i32 noundef 0, i32 noundef 14)
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
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, i32 noundef) #2
declare i32 @qsort(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp99r4xmz9.c"
target datalayout = "e-m:e-p270: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.arr = private unnamed_addr constant [15 x i32] [i32 43, i32 423, i32 13, i32 6, i32 34, i32 64, i32 24, i32 69, i32 32, i32 28, i32 432, i32 641, i32 4365, i32 345, i32 624], align 16
@.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 [15 x i32], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.arr, i64 60, i1 false)
%3 = getelementptr inbounds [15 x i32], ptr %2, i64 0, i64 0
%4 = call i32 @qsort(i32 noundef 6, ptr noundef %3, i32 noundef 0, i32 noundef 14)
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
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, i32 noundef) #2
declare i32 @qsort(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsg_e9fsv.c'
source_filename = "/tmp/tmpsg_e9fsv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"usage: %s server_host\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 2
br i1 %8, label %9, label %15
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 0
%12 = load ptr, ptr %11, align 8
%13 = call i32 @printf(ptr noundef @.str, ptr noundef %12)
%14 = call i32 @exit(i32 noundef 1) #3
unreachable
15: ; preds = %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = load ptr, ptr %17, align 8
store ptr %18, ptr %6, align 8
%19 = load ptr, ptr %6, align 8
%20 = call i32 @ej3b1_1(ptr noundef %19)
%21 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @ej3b1_1(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsg_e9fsv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"usage: %s server_host\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 2
br i1 %8, label %9, label %15
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 0
%12 = load ptr, ptr %11, align 8
%13 = call i32 @printf(ptr noundef @.str, ptr noundef %12)
%14 = call i32 @exit(i32 noundef 1) #3
unreachable
15: ; preds = %2
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 1
%18 = load ptr, ptr %17, align 8
store ptr %18, ptr %6, align 8
%19 = load ptr, ptr %6, align 8
%20 = call i32 @ej3b1_1(ptr noundef %19)
%21 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @ej3b1_1(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptx52f7jz.c'
source_filename = "/tmp/tmptx52f7jz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [42 x i8] c" NO WARRANTY\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [76 x i8] c" 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY\0A\00", align 1
@.str.2 = private unnamed_addr constant [74 x i8] c"FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN\0A\00", align 1
@.str.3 = private unnamed_addr constant [72 x i8] c"OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES\0A\00", align 1
@.str.4 = private unnamed_addr constant [76 x i8] c"PROVIDE THE PROGRAM \22AS IS\22 WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED\0A\00", align 1
@.str.5 = private unnamed_addr constant [70 x i8] c"OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\0A\00", align 1
@.str.6 = private unnamed_addr constant [75 x i8] c"MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS\0A\00", align 1
@.str.7 = private unnamed_addr constant [72 x i8] c"TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE\0A\00", align 1
@.str.8 = private unnamed_addr constant [74 x i8] c"PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,\0A\00", align 1
@.str.9 = private unnamed_addr constant [23 x i8] c"REPAIR OR CORRECTION.\0A\00", align 1
@.str.10 = private unnamed_addr constant [77 x i8] c" 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\0A\00", align 1
@.str.11 = private unnamed_addr constant [69 x i8] c"WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR\0A\00", align 1
@.str.12 = private unnamed_addr constant [76 x i8] c"REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,\0A\00", align 1
@.str.13 = private unnamed_addr constant [77 x i8] c"INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING\0A\00", align 1
@.str.14 = private unnamed_addr constant [75 x i8] c"OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED\0A\00", align 1
@.str.15 = private unnamed_addr constant [74 x i8] c"TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY\0A\00", align 1
@.str.16 = private unnamed_addr constant [76 x i8] c"YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER\0A\00", align 1
@.str.17 = private unnamed_addr constant [71 x i8] c"PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE\0A\00", align 1
@.str.18 = private unnamed_addr constant [30 x i8] c"POSSIBILITY OF SUCH DAMAGES.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ExecuteInfoWarranty() #0 {
%1 = load i32, ptr @stdout, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = load i32, ptr @stdout, align 4
%4 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str.1)
%5 = load i32, ptr @stdout, align 4
%6 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str.2)
%7 = load i32, ptr @stdout, align 4
%8 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str.3)
%9 = load i32, ptr @stdout, align 4
%10 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str.4)
%11 = load i32, ptr @stdout, align 4
%12 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.5)
%13 = load i32, ptr @stdout, align 4
%14 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.6)
%15 = load i32, ptr @stdout, align 4
%16 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str.7)
%17 = load i32, ptr @stdout, align 4
%18 = call i32 @fprintf(i32 noundef %17, ptr noundef @.str.8)
%19 = load i32, ptr @stdout, align 4
%20 = call i32 @fprintf(i32 noundef %19, ptr noundef @.str.9)
%21 = load i32, ptr @stdout, align 4
%22 = call i32 @fprintf(i32 noundef %21, ptr noundef @.str.10)
%23 = load i32, ptr @stdout, align 4
%24 = call i32 @fprintf(i32 noundef %23, ptr noundef @.str.11)
%25 = load i32, ptr @stdout, align 4
%26 = call i32 @fprintf(i32 noundef %25, ptr noundef @.str.12)
%27 = load i32, ptr @stdout, align 4
%28 = call i32 @fprintf(i32 noundef %27, ptr noundef @.str.13)
%29 = load i32, ptr @stdout, align 4
%30 = call i32 @fprintf(i32 noundef %29, ptr noundef @.str.14)
%31 = load i32, ptr @stdout, align 4
%32 = call i32 @fprintf(i32 noundef %31, ptr noundef @.str.15)
%33 = load i32, ptr @stdout, align 4
%34 = call i32 @fprintf(i32 noundef %33, ptr noundef @.str.16)
%35 = load i32, ptr @stdout, align 4
%36 = call i32 @fprintf(i32 noundef %35, ptr noundef @.str.17)
%37 = load i32, ptr @stdout, align 4
%38 = call i32 @fprintf(i32 noundef %37, ptr noundef @.str.18)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmptx52f7jz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [42 x i8] c" NO WARRANTY\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [76 x i8] c" 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY\0A\00", align 1
@.str.2 = private unnamed_addr constant [74 x i8] c"FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN\0A\00", align 1
@.str.3 = private unnamed_addr constant [72 x i8] c"OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES\0A\00", align 1
@.str.4 = private unnamed_addr constant [76 x i8] c"PROVIDE THE PROGRAM \22AS IS\22 WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED\0A\00", align 1
@.str.5 = private unnamed_addr constant [70 x i8] c"OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\0A\00", align 1
@.str.6 = private unnamed_addr constant [75 x i8] c"MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS\0A\00", align 1
@.str.7 = private unnamed_addr constant [72 x i8] c"TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE\0A\00", align 1
@.str.8 = private unnamed_addr constant [74 x i8] c"PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,\0A\00", align 1
@.str.9 = private unnamed_addr constant [23 x i8] c"REPAIR OR CORRECTION.\0A\00", align 1
@.str.10 = private unnamed_addr constant [77 x i8] c" 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\0A\00", align 1
@.str.11 = private unnamed_addr constant [69 x i8] c"WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR\0A\00", align 1
@.str.12 = private unnamed_addr constant [76 x i8] c"REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,\0A\00", align 1
@.str.13 = private unnamed_addr constant [77 x i8] c"INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING\0A\00", align 1
@.str.14 = private unnamed_addr constant [75 x i8] c"OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED\0A\00", align 1
@.str.15 = private unnamed_addr constant [74 x i8] c"TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY\0A\00", align 1
@.str.16 = private unnamed_addr constant [76 x i8] c"YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER\0A\00", align 1
@.str.17 = private unnamed_addr constant [71 x i8] c"PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE\0A\00", align 1
@.str.18 = private unnamed_addr constant [30 x i8] c"POSSIBILITY OF SUCH DAMAGES.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ExecuteInfoWarranty() #0 {
%1 = load i32, ptr @stdout, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = load i32, ptr @stdout, align 4
%4 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str.1)
%5 = load i32, ptr @stdout, align 4
%6 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str.2)
%7 = load i32, ptr @stdout, align 4
%8 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str.3)
%9 = load i32, ptr @stdout, align 4
%10 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str.4)
%11 = load i32, ptr @stdout, align 4
%12 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.5)
%13 = load i32, ptr @stdout, align 4
%14 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.6)
%15 = load i32, ptr @stdout, align 4
%16 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str.7)
%17 = load i32, ptr @stdout, align 4
%18 = call i32 @fprintf(i32 noundef %17, ptr noundef @.str.8)
%19 = load i32, ptr @stdout, align 4
%20 = call i32 @fprintf(i32 noundef %19, ptr noundef @.str.9)
%21 = load i32, ptr @stdout, align 4
%22 = call i32 @fprintf(i32 noundef %21, ptr noundef @.str.10)
%23 = load i32, ptr @stdout, align 4
%24 = call i32 @fprintf(i32 noundef %23, ptr noundef @.str.11)
%25 = load i32, ptr @stdout, align 4
%26 = call i32 @fprintf(i32 noundef %25, ptr noundef @.str.12)
%27 = load i32, ptr @stdout, align 4
%28 = call i32 @fprintf(i32 noundef %27, ptr noundef @.str.13)
%29 = load i32, ptr @stdout, align 4
%30 = call i32 @fprintf(i32 noundef %29, ptr noundef @.str.14)
%31 = load i32, ptr @stdout, align 4
%32 = call i32 @fprintf(i32 noundef %31, ptr noundef @.str.15)
%33 = load i32, ptr @stdout, align 4
%34 = call i32 @fprintf(i32 noundef %33, ptr noundef @.str.16)
%35 = load i32, ptr @stdout, align 4
%36 = call i32 @fprintf(i32 noundef %35, ptr noundef @.str.17)
%37 = load i32, ptr @stdout, align 4
%38 = call i32 @fprintf(i32 noundef %37, ptr noundef @.str.18)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmcd6_cec.c'
source_filename = "/tmp/tmpmcd6_cec.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"w\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [38 x i8] c"%s: cannot open file for writing: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"sxvol\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @modify_cmdline_parser_file_save(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %7, align 4
%8 = load ptr, ptr %4, align 8
%9 = call ptr @fopen(ptr noundef %8, ptr noundef @.str)
store ptr %9, ptr %6, align 8
%10 = load ptr, ptr %6, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %17, label %12
12: ; preds = %2
%13 = load i32, ptr @stderr, align 4
%14 = load ptr, ptr %4, align 8
%15 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef %14)
%16 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %16, ptr %3, align 4
br label %24
17: ; preds = %2
%18 = load ptr, ptr %6, align 8
%19 = load ptr, ptr %5, align 8
%20 = call i32 @modify_cmdline_parser_dump(ptr noundef %18, ptr noundef %19)
store i32 %20, ptr %7, align 4
%21 = load ptr, ptr %6, align 8
%22 = call i32 @fclose(ptr noundef %21)
%23 = load i32, ptr %7, align 4
store i32 %23, ptr %3, align 4
br label %24
24: ; preds = %17, %12
%25 = load i32, ptr %3, align 4
ret i32 %25
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @modify_cmdline_parser_dump(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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmcd6_cec.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"w\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [38 x i8] c"%s: cannot open file for writing: %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"sxvol\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @modify_cmdline_parser_file_save(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %7, align 4
%8 = load ptr, ptr %4, align 8
%9 = call ptr @fopen(ptr noundef %8, ptr noundef @.str)
store ptr %9, ptr %6, align 8
%10 = load ptr, ptr %6, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %17, label %12
12: ; preds = %2
%13 = load i32, ptr @stderr, align 4
%14 = load ptr, ptr %4, align 8
%15 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef %14)
%16 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %16, ptr %3, align 4
br label %24
17: ; preds = %2
%18 = load ptr, ptr %6, align 8
%19 = load ptr, ptr %5, align 8
%20 = call i32 @modify_cmdline_parser_dump(ptr noundef %18, ptr noundef %19)
store i32 %20, ptr %7, align 4
%21 = load ptr, ptr %6, align 8
%22 = call i32 @fclose(ptr noundef %21)
%23 = load i32, ptr %7, align 4
store i32 %23, ptr %3, align 4
br label %24
24: ; preds = %17, %12
%25 = load i32, ptr %3, align 4
ret i32 %25
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @modify_cmdline_parser_dump(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"}
|
; ModuleID = '/tmp/tmpk4d_nebh.c'
source_filename = "/tmp/tmpk4d_nebh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @s_test()
%3 = call i32 (...) @xsd_test()
ret i32 0
}
declare i32 @s_test(...) #1
declare i32 @xsd_test(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk4d_nebh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @s_test()
%3 = call i32 (...) @xsd_test()
ret i32 0
}
declare i32 @s_test(...) #1
declare i32 @xsd_test(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpq2yenhe0.c'
source_filename = "/tmp/tmpq2yenhe0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @timing_configure_systick(i32 noundef 1000)
%4 = call i32 (...) @led7_create()
br label %5
5: ; preds = %16, %0
store i32 0, ptr %2, align 4
br label %6
6: ; preds = %13, %5
%7 = load i32, ptr %2, align 4
%8 = icmp sle i32 %7, 9
br i1 %8, label %9, label %16
9: ; preds = %6
%10 = load i32, ptr %2, align 4
%11 = call i32 @led7_write_digit(i32 noundef %10)
%12 = call i32 @timing_delay(i32 noundef 500)
br label %13
13: ; preds = %9
%14 = load i32, ptr %2, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %2, align 4
br label %6, !llvm.loop !6
16: ; preds = %6
br label %5
}
declare i32 @timing_configure_systick(i32 noundef) #1
declare i32 @led7_create(...) #1
declare i32 @led7_write_digit(i32 noundef) #1
declare i32 @timing_delay(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/tmpq2yenhe0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @timing_configure_systick(i32 noundef 1000)
%4 = call i32 (...) @led7_create()
br label %5
5: ; preds = %17, %0
store i32 0, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp sle i32 %6, 9
br i1 %7, label %.lr.ph, label %17
.lr.ph: ; preds = %5
br label %8
8: ; preds = %.lr.ph, %12
%9 = load i32, ptr %2, align 4
%10 = call i32 @led7_write_digit(i32 noundef %9)
%11 = call i32 @timing_delay(i32 noundef 500)
br label %12
12: ; preds = %8
%13 = load i32, ptr %2, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %2, align 4
%15 = load i32, ptr %2, align 4
%16 = icmp sle i32 %15, 9
br i1 %16, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %17
17: ; preds = %._crit_edge, %5
br label %5
}
declare i32 @timing_configure_systick(i32 noundef) #1
declare i32 @led7_create(...) #1
declare i32 @led7_write_digit(i32 noundef) #1
declare i32 @timing_delay(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/tmpd337hkun.c'
source_filename = "/tmp/tmpd337hkun.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @firstMissingPositive(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
br label %6
6: ; preds = %64, %42, %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 %65
10: ; preds = %6
%11 = load ptr, ptr %3, align 8
%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 = sub nsw i32 %16, 1
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i32, ptr %11, i64 %18
%20 = load i32, ptr %19, align 4
%21 = load ptr, ptr %3, align 8
%22 = load i32, ptr %5, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i32, ptr %21, i64 %23
%25 = load i32, ptr %24, align 4
%26 = icmp eq i32 %20, %25
br i1 %26, label %42, label %27
27: ; preds = %10
%28 = load ptr, ptr %3, align 8
%29 = load i32, ptr %5, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i32, ptr %28, i64 %30
%32 = load i32, ptr %31, align 4
%33 = icmp sle i32 %32, 0
br i1 %33, label %42, label %34
34: ; preds = %27
%35 = load ptr, ptr %3, align 8
%36 = load i32, ptr %5, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %35, i64 %37
%39 = load i32, ptr %38, align 4
%40 = load i32, ptr %4, align 4
%41 = icmp sgt i32 %39, %40
br i1 %41, label %42, label %45
42: ; preds = %34, %27, %10
%43 = load i32, ptr %5, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %5, align 4
br label %6, !llvm.loop !6
45: ; preds = %34
%46 = load ptr, ptr %3, align 8
%47 = load i32, ptr %5, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i32, ptr %46, i64 %48
%50 = load i32, ptr %49, align 4
%51 = load i32, ptr %5, align 4
%52 = add nsw i32 %51, 1
%53 = icmp ne i32 %50, %52
br i1 %53, label %54, label %64
54: ; preds = %45
%55 = load ptr, ptr %3, align 8
%56 = load i32, ptr %5, align 4
%57 = load ptr, ptr %3, align 8
%58 = load i32, ptr %5, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i32, ptr %57, i64 %59
%61 = load i32, ptr %60, align 4
%62 = sub nsw i32 %61, 1
%63 = call i32 @swap(ptr noundef %55, i32 noundef %56, i32 noundef %62)
br label %64
64: ; preds = %54, %45
br label %6, !llvm.loop !6
65: ; preds = %6
store i32 0, ptr %5, align 4
br label %66
66: ; preds = %81, %65
%67 = load i32, ptr %5, align 4
%68 = load i32, ptr %4, align 4
%69 = icmp slt i32 %67, %68
br i1 %69, label %70, label %84
70: ; preds = %66
%71 = load ptr, ptr %3, align 8
%72 = load i32, ptr %5, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i32, ptr %71, i64 %73
%75 = load i32, ptr %74, align 4
%76 = load i32, ptr %5, align 4
%77 = add nsw i32 %76, 1
%78 = icmp ne i32 %75, %77
br i1 %78, label %79, label %80
79: ; preds = %70
br label %84
80: ; preds = %70
br label %81
81: ; preds = %80
%82 = load i32, ptr %5, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %5, align 4
br label %66, !llvm.loop !8
84: ; preds = %79, %66
%85 = load i32, ptr %5, align 4
%86 = add nsw i32 %85, 1
ret i32 %86
}
declare i32 @swap(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}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpd337hkun.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @firstMissingPositive(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
%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 %67
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %.backedge
%10 = load ptr, ptr %3, align 8
%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 = sub nsw i32 %15, 1
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i32, ptr %10, i64 %17
%19 = load i32, ptr %18, align 4
%20 = load ptr, ptr %3, align 8
%21 = load i32, ptr %5, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %20, i64 %22
%24 = load i32, ptr %23, align 4
%25 = icmp eq i32 %19, %24
br i1 %25, label %41, label %26
26: ; preds = %9
%27 = load ptr, ptr %3, align 8
%28 = load i32, ptr %5, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i32, ptr %27, i64 %29
%31 = load i32, ptr %30, align 4
%32 = icmp sle i32 %31, 0
br i1 %32, label %41, label %33
33: ; preds = %26
%34 = load ptr, ptr %3, align 8
%35 = load i32, ptr %5, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %34, i64 %36
%38 = load i32, ptr %37, align 4
%39 = load i32, ptr %4, align 4
%40 = icmp sgt i32 %38, %39
br i1 %40, label %41, label %47
41: ; preds = %33, %26, %9
%42 = load i32, ptr %5, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %5, align 4
br label %.backedge
.backedge: ; preds = %41, %66
%44 = load i32, ptr %5, align 4
%45 = load i32, ptr %4, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %9, label %._crit_edge, !llvm.loop !6
47: ; preds = %33
%48 = load ptr, ptr %3, align 8
%49 = load i32, ptr %5, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i32, ptr %48, i64 %50
%52 = load i32, ptr %51, align 4
%53 = load i32, ptr %5, align 4
%54 = add nsw i32 %53, 1
%55 = icmp ne i32 %52, %54
br i1 %55, label %56, label %66
56: ; preds = %47
%57 = load ptr, ptr %3, align 8
%58 = load i32, ptr %5, align 4
%59 = load ptr, ptr %3, align 8
%60 = load i32, ptr %5, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i32, ptr %59, i64 %61
%63 = load i32, ptr %62, align 4
%64 = sub nsw i32 %63, 1
%65 = call i32 @swap(ptr noundef %57, i32 noundef %58, i32 noundef %64)
br label %66
66: ; preds = %56, %47
br label %.backedge
._crit_edge: ; preds = %.backedge
br label %67
67: ; preds = %._crit_edge, %2
store i32 0, ptr %5, align 4
%68 = load i32, ptr %5, align 4
%69 = load i32, ptr %4, align 4
%70 = icmp slt i32 %68, %69
br i1 %70, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %67
br label %71
71: ; preds = %.lr.ph2, %82
%72 = load ptr, ptr %3, align 8
%73 = load i32, ptr %5, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i32, ptr %72, i64 %74
%76 = load i32, ptr %75, align 4
%77 = load i32, ptr %5, align 4
%78 = add nsw i32 %77, 1
%79 = icmp ne i32 %76, %78
br i1 %79, label %80, label %81
80: ; preds = %71
br label %88
81: ; preds = %71
br label %82
82: ; preds = %81
%83 = load i32, ptr %5, align 4
%84 = add nsw i32 %83, 1
store i32 %84, ptr %5, align 4
%85 = load i32, ptr %5, align 4
%86 = load i32, ptr %4, align 4
%87 = icmp slt i32 %85, %86
br i1 %87, label %71, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %82
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %67
br label %88
88: ; preds = %.loopexit, %80
%89 = load i32, ptr %5, align 4
%90 = add nsw i32 %89, 1
ret i32 %90
}
declare i32 @swap(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}
|
; ModuleID = '/tmp/tmpr75fjy1s.c'
source_filename = "/tmp/tmpr75fjy1s.c"
target datalayout = "e-m:e-p270: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 ptr null, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @start(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5, ptr noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
store ptr %0, ptr %8, align 8
store i32 %1, ptr %9, align 4
store ptr %2, ptr %10, align 8
store ptr %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store i32 %5, ptr %13, align 4
store ptr %6, ptr %14, align 8
store ptr null, ptr %15, align 8
%16 = load ptr, ptr %14, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %20
18: ; preds = %7
%19 = load ptr, ptr %14, align 8
store ptr %19, ptr %15, align 8
br label %22
20: ; preds = %7
%21 = load ptr, ptr @stderr, align 8
store ptr %21, ptr %15, align 8
br label %22
22: ; preds = %20, %18
%23 = load ptr, ptr %15, align 8
%24 = call i32 @fputc(i8 noundef signext 60, ptr noundef %23)
%25 = load ptr, ptr %12, align 8
%26 = load i32, ptr %13, align 4
%27 = load ptr, ptr %15, align 8
%28 = call i32 @fwrite(ptr noundef %25, i32 noundef %26, i32 noundef 1, ptr noundef %27)
%29 = load ptr, ptr %15, align 8
%30 = call i32 @fputc(i8 noundef signext 62, ptr noundef %29)
ret i32 0
}
declare i32 @fputc(i8 noundef signext, ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr75fjy1s.c"
target datalayout = "e-m:e-p270: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 ptr null, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @start(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5, ptr noundef %6) #0 {
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
store ptr %0, ptr %8, align 8
store i32 %1, ptr %9, align 4
store ptr %2, ptr %10, align 8
store ptr %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store i32 %5, ptr %13, align 4
store ptr %6, ptr %14, align 8
store ptr null, ptr %15, align 8
%16 = load ptr, ptr %14, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %20
18: ; preds = %7
%19 = load ptr, ptr %14, align 8
store ptr %19, ptr %15, align 8
br label %22
20: ; preds = %7
%21 = load ptr, ptr @stderr, align 8
store ptr %21, ptr %15, align 8
br label %22
22: ; preds = %20, %18
%23 = load ptr, ptr %15, align 8
%24 = call i32 @fputc(i8 noundef signext 60, ptr noundef %23)
%25 = load ptr, ptr %12, align 8
%26 = load i32, ptr %13, align 4
%27 = load ptr, ptr %15, align 8
%28 = call i32 @fwrite(ptr noundef %25, i32 noundef %26, i32 noundef 1, ptr noundef %27)
%29 = load ptr, ptr %15, align 8
%30 = call i32 @fputc(i8 noundef signext 62, ptr noundef %29)
ret i32 0
}
declare i32 @fputc(i8 noundef signext, ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg17xpwcc.c'
source_filename = "/tmp/tmpg17xpwcc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @file_name(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @strlen(ptr noundef %5)
store i32 %6, ptr %4, align 4
store i32 0, ptr %3, align 4
br label %7
7: ; preds = %25, %1
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %28
11: ; preds = %7
%12 = load ptr, ptr %2, align 8
%13 = load i32, ptr %3, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 46
br i1 %18, label %19, label %24
19: ; preds = %11
%20 = load ptr, ptr %2, align 8
%21 = load i32, ptr %3, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %20, i64 %22
store i8 0, ptr %23, align 1
br label %28
24: ; preds = %11
br label %25
25: ; preds = %24
%26 = load i32, ptr %3, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %3, align 4
br label %7, !llvm.loop !6
28: ; preds = %19, %7
ret void
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg17xpwcc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @file_name(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @strlen(ptr noundef %5)
store i32 %6, ptr %4, align 4
store i32 0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %1
br label %10
10: ; preds = %.lr.ph, %24
%11 = load ptr, ptr %2, align 8
%12 = load i32, ptr %3, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %11, i64 %13
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 46
br i1 %17, label %18, label %23
18: ; preds = %10
%19 = load ptr, ptr %2, align 8
%20 = load i32, ptr %3, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
store i8 0, ptr %22, align 1
br label %30
23: ; preds = %10
br label %24
24: ; preds = %23
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %3, align 4
%27 = load i32, ptr %3, align 4
%28 = load i32, ptr %4, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %10, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %24
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %1
br label %30
30: ; preds = %.loopexit, %18
ret void
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpb4yv0qmv.c'
source_filename = "/tmp/tmpb4yv0qmv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @portable_parallel_search2(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
%15 = alloca i64, align 8
%16 = alloca i32, align 4
%17 = alloca i64, align 8
%18 = alloca i64, align 8
%19 = alloca i64, align 8
%20 = alloca i64, align 8
%21 = alloca i64, align 8
%22 = alloca i64, align 8
store ptr %0, ptr %6, align 8
store i64 %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store i64 %4, ptr %10, align 8
%23 = load ptr, ptr %9, align 8
%24 = load i64, ptr %10, align 8
%25 = mul i64 %24, 8
%26 = call i32 @memset(ptr noundef %23, i32 noundef 0, i64 noundef %25)
%27 = load i64, ptr %7, align 8
%28 = udiv i64 %27, 2
store i64 %28, ptr %11, align 8
br label %29
29: ; preds = %73, %5
%30 = load i64, ptr %11, align 8
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %79
32: ; preds = %29
store i64 0, ptr %12, align 8
br label %33
33: ; preds = %69, %32
%34 = load i64, ptr %12, align 8
%35 = load i64, ptr %10, align 8
%36 = icmp ult i64 %34, %35
br i1 %36, label %37, label %72
37: ; preds = %33
%38 = load ptr, ptr %8, align 8
%39 = load i64, ptr %12, align 8
%40 = getelementptr inbounds i64, ptr %38, i64 %39
%41 = load i64, ptr %40, align 8
store i64 %41, ptr %13, align 8
%42 = load ptr, ptr %9, align 8
%43 = load i64, ptr %12, align 8
%44 = getelementptr inbounds i64, ptr %42, i64 %43
%45 = load i64, ptr %44, align 8
store i64 %45, ptr %14, align 8
%46 = load i64, ptr %14, align 8
%47 = load i64, ptr %11, align 8
%48 = add i64 %46, %47
store i64 %48, ptr %15, align 8
%49 = load ptr, ptr %6, align 8
%50 = load i64, ptr %15, align 8
%51 = getelementptr inbounds i64, ptr %49, i64 %50
%52 = load i64, ptr %51, align 8
%53 = trunc i64 %52 to i32
%54 = load i64, ptr %13, align 8
%55 = trunc i64 %54 to i32
%56 = sub nsw i32 %53, %55
store i32 %56, ptr %16, align 4
%57 = load i32, ptr %16, align 4
%58 = ashr i32 %57, 31
%59 = sext i32 %58 to i64
store i64 %59, ptr %17, align 8
%60 = load i64, ptr %11, align 8
%61 = load i64, ptr %17, align 8
%62 = and i64 %60, %61
store i64 %62, ptr %18, align 8
%63 = load i64, ptr %14, align 8
%64 = load i64, ptr %18, align 8
%65 = add i64 %63, %64
%66 = load ptr, ptr %9, align 8
%67 = load i64, ptr %12, align 8
%68 = getelementptr inbounds i64, ptr %66, i64 %67
store i64 %65, ptr %68, align 8
br label %69
69: ; preds = %37
%70 = load i64, ptr %12, align 8
%71 = add i64 %70, 1
store i64 %71, ptr %12, align 8
br label %33, !llvm.loop !6
72: ; preds = %33
br label %73
73: ; preds = %72
%74 = load i64, ptr %11, align 8
%75 = load i64, ptr %7, align 8
%76 = sub i64 %75, %74
store i64 %76, ptr %7, align 8
%77 = load i64, ptr %7, align 8
%78 = udiv i64 %77, 2
store i64 %78, ptr %11, align 8
br label %29, !llvm.loop !8
79: ; preds = %29
%80 = load ptr, ptr %6, align 8
%81 = getelementptr inbounds i64, ptr %80, i64 0
%82 = load i64, ptr %81, align 8
store i64 %82, ptr %19, align 8
store i64 0, ptr %20, align 8
br label %83
83: ; preds = %106, %79
%84 = load i64, ptr %20, align 8
%85 = load i64, ptr %10, align 8
%86 = icmp ult i64 %84, %85
br i1 %86, label %87, label %109
87: ; preds = %83
%88 = load ptr, ptr %8, align 8
%89 = load i64, ptr %20, align 8
%90 = getelementptr inbounds i64, ptr %88, i64 %89
%91 = load i64, ptr %90, align 8
store i64 %91, ptr %21, align 8
%92 = load ptr, ptr %9, align 8
%93 = load i64, ptr %20, align 8
%94 = getelementptr inbounds i64, ptr %92, i64 %93
%95 = load i64, ptr %94, align 8
%96 = add i64 %95, 1
store i64 %96, ptr %22, align 8
%97 = load i64, ptr %21, align 8
%98 = load i64, ptr %19, align 8
%99 = icmp ule i64 %97, %98
br i1 %99, label %100, label %101
100: ; preds = %87
store i64 0, ptr %22, align 8
br label %101
101: ; preds = %100, %87
%102 = load i64, ptr %22, align 8
%103 = load ptr, ptr %9, align 8
%104 = load i64, ptr %20, align 8
%105 = getelementptr inbounds i64, ptr %103, i64 %104
store i64 %102, ptr %105, align 8
br label %106
106: ; preds = %101
%107 = load i64, ptr %20, align 8
%108 = add i64 %107, 1
store i64 %108, ptr %20, align 8
br label %83, !llvm.loop !9
109: ; preds = %83
ret void
}
declare i32 @memset(ptr noundef, i32 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}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb4yv0qmv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @portable_parallel_search2(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
%15 = alloca i64, align 8
%16 = alloca i32, align 4
%17 = alloca i64, align 8
%18 = alloca i64, align 8
%19 = alloca i64, align 8
%20 = alloca i64, align 8
%21 = alloca i64, align 8
%22 = alloca i64, align 8
store ptr %0, ptr %6, align 8
store i64 %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store i64 %4, ptr %10, align 8
%23 = load ptr, ptr %9, align 8
%24 = load i64, ptr %10, align 8
%25 = mul i64 %24, 8
%26 = call i32 @memset(ptr noundef %23, i32 noundef 0, i64 noundef %25)
%27 = load i64, ptr %7, align 8
%28 = udiv i64 %27, 2
store i64 %28, ptr %11, align 8
%29 = load i64, ptr %11, align 8
%30 = icmp ne i64 %29, 0
br i1 %30, label %.lr.ph2, label %82
.lr.ph2: ; preds = %5
br label %31
31: ; preds = %.lr.ph2, %74
store i64 0, ptr %12, align 8
%32 = load i64, ptr %12, align 8
%33 = load i64, ptr %10, align 8
%34 = icmp ult i64 %32, %33
br i1 %34, label %.lr.ph, label %73
.lr.ph: ; preds = %31
br label %35
35: ; preds = %.lr.ph, %67
%36 = load ptr, ptr %8, align 8
%37 = load i64, ptr %12, align 8
%38 = getelementptr inbounds i64, ptr %36, i64 %37
%39 = load i64, ptr %38, align 8
store i64 %39, ptr %13, align 8
%40 = load ptr, ptr %9, align 8
%41 = load i64, ptr %12, align 8
%42 = getelementptr inbounds i64, ptr %40, i64 %41
%43 = load i64, ptr %42, align 8
store i64 %43, ptr %14, align 8
%44 = load i64, ptr %14, align 8
%45 = load i64, ptr %11, align 8
%46 = add i64 %44, %45
store i64 %46, ptr %15, align 8
%47 = load ptr, ptr %6, align 8
%48 = load i64, ptr %15, align 8
%49 = getelementptr inbounds i64, ptr %47, i64 %48
%50 = load i64, ptr %49, align 8
%51 = trunc i64 %50 to i32
%52 = load i64, ptr %13, align 8
%53 = trunc i64 %52 to i32
%54 = sub nsw i32 %51, %53
store i32 %54, ptr %16, align 4
%55 = load i32, ptr %16, align 4
%56 = ashr i32 %55, 31
%57 = sext i32 %56 to i64
store i64 %57, ptr %17, align 8
%58 = load i64, ptr %11, align 8
%59 = load i64, ptr %17, align 8
%60 = and i64 %58, %59
store i64 %60, ptr %18, align 8
%61 = load i64, ptr %14, align 8
%62 = load i64, ptr %18, align 8
%63 = add i64 %61, %62
%64 = load ptr, ptr %9, align 8
%65 = load i64, ptr %12, align 8
%66 = getelementptr inbounds i64, ptr %64, i64 %65
store i64 %63, ptr %66, align 8
br label %67
67: ; preds = %35
%68 = load i64, ptr %12, align 8
%69 = add i64 %68, 1
store i64 %69, ptr %12, align 8
%70 = load i64, ptr %12, align 8
%71 = load i64, ptr %10, align 8
%72 = icmp ult i64 %70, %71
br i1 %72, label %35, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %67
br label %73
73: ; preds = %._crit_edge, %31
br label %74
74: ; preds = %73
%75 = load i64, ptr %11, align 8
%76 = load i64, ptr %7, align 8
%77 = sub i64 %76, %75
store i64 %77, ptr %7, align 8
%78 = load i64, ptr %7, align 8
%79 = udiv i64 %78, 2
store i64 %79, ptr %11, align 8
%80 = load i64, ptr %11, align 8
%81 = icmp ne i64 %80, 0
br i1 %81, label %31, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %74
br label %82
82: ; preds = %._crit_edge3, %5
%83 = load ptr, ptr %6, align 8
%84 = getelementptr inbounds i64, ptr %83, i64 0
%85 = load i64, ptr %84, align 8
store i64 %85, ptr %19, align 8
store i64 0, ptr %20, align 8
%86 = load i64, ptr %20, align 8
%87 = load i64, ptr %10, align 8
%88 = icmp ult i64 %86, %87
br i1 %88, label %.lr.ph5, label %114
.lr.ph5: ; preds = %82
br label %89
89: ; preds = %.lr.ph5, %108
%90 = load ptr, ptr %8, align 8
%91 = load i64, ptr %20, align 8
%92 = getelementptr inbounds i64, ptr %90, i64 %91
%93 = load i64, ptr %92, align 8
store i64 %93, ptr %21, align 8
%94 = load ptr, ptr %9, align 8
%95 = load i64, ptr %20, align 8
%96 = getelementptr inbounds i64, ptr %94, i64 %95
%97 = load i64, ptr %96, align 8
%98 = add i64 %97, 1
store i64 %98, ptr %22, align 8
%99 = load i64, ptr %21, align 8
%100 = load i64, ptr %19, align 8
%101 = icmp ule i64 %99, %100
br i1 %101, label %102, label %103
102: ; preds = %89
store i64 0, ptr %22, align 8
br label %103
103: ; preds = %102, %89
%104 = load i64, ptr %22, align 8
%105 = load ptr, ptr %9, align 8
%106 = load i64, ptr %20, align 8
%107 = getelementptr inbounds i64, ptr %105, i64 %106
store i64 %104, ptr %107, align 8
br label %108
108: ; preds = %103
%109 = load i64, ptr %20, align 8
%110 = add i64 %109, 1
store i64 %110, ptr %20, align 8
%111 = load i64, ptr %20, align 8
%112 = load i64, ptr %10, align 8
%113 = icmp ult i64 %111, %112
br i1 %113, label %89, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %108
br label %114
114: ; preds = %._crit_edge6, %82
ret void
}
declare i32 @memset(ptr noundef, i32 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}
|
; ModuleID = '/tmp/tmprey3np4s.c'
source_filename = "/tmp/tmprey3np4s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"AtomicOps\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"stdatomic.h\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"HAS_STDATOMIC_H\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"libkern/OSAtomic.h\00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c"HAS_LIBKERN_OSATOMIC_H\00", align 1
@.str.5 = private unnamed_addr constant [26 x i8] c"OSAtomicCompareAndSwapPtr\00", align 1
@.str.6 = private unnamed_addr constant [30 x i8] c"#include <libkern/OSAtomic.h>\00", align 1
@.str.7 = private unnamed_addr constant [21 x i8] c"HAS_OSATOMIC_CAS_PTR\00", align 1
@.str.8 = private unnamed_addr constant [13 x i8] c"sys/atomic.h\00", align 1
@.str.9 = private unnamed_addr constant [17 x i8] c"HAS_SYS_ATOMIC_H\00", align 1
@.str.10 = private unnamed_addr constant [10 x i8] c"windows.h\00", align 1
@.str.11 = private unnamed_addr constant [9 x i8] c"intrin.h\00", align 1
@.str.12 = private unnamed_addr constant [13 x i8] c"HAS_INTRIN_H\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @chaz_AtomicOps_run() #0 {
%1 = call i32 @chaz_ConfWriter_start_module(ptr noundef @.str)
%2 = call i64 @chaz_HeadCheck_check_header(ptr noundef @.str.1)
%3 = icmp ne i64 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 @chaz_ConfWriter_add_def(ptr noundef @.str.2, ptr noundef null)
br label %6
6: ; preds = %4, %0
%7 = call i64 @chaz_HeadCheck_check_header(ptr noundef @.str.3)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %16
9: ; preds = %6
%10 = call i32 @chaz_ConfWriter_add_def(ptr noundef @.str.4, ptr noundef null)
%11 = call i64 @chaz_HeadCheck_defines_symbol(ptr noundef @.str.5, ptr noundef @.str.6)
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %9
%14 = call i32 @chaz_ConfWriter_add_def(ptr noundef @.str.7, ptr noundef null)
br label %15
15: ; preds = %13, %9
br label %16
16: ; preds = %15, %6
%17 = call i64 @chaz_HeadCheck_check_header(ptr noundef @.str.8)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 @chaz_ConfWriter_add_def(ptr noundef @.str.9, ptr noundef null)
br label %21
21: ; preds = %19, %16
%22 = call i64 @chaz_HeadCheck_check_header(ptr noundef @.str.10)
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %29
24: ; preds = %21
%25 = call i64 @chaz_HeadCheck_check_header(ptr noundef @.str.11)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %24
%28 = call i32 @chaz_ConfWriter_add_def(ptr noundef @.str.12, ptr noundef null)
br label %29
29: ; preds = %27, %24, %21
%30 = call i32 (...) @chaz_ConfWriter_end_module()
ret void
}
declare i32 @chaz_ConfWriter_start_module(ptr noundef) #1
declare i64 @chaz_HeadCheck_check_header(ptr noundef) #1
declare i32 @chaz_ConfWriter_add_def(ptr noundef, ptr noundef) #1
declare i64 @chaz_HeadCheck_defines_symbol(ptr noundef, ptr noundef) #1
declare i32 @chaz_ConfWriter_end_module(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmprey3np4s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"AtomicOps\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"stdatomic.h\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"HAS_STDATOMIC_H\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"libkern/OSAtomic.h\00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c"HAS_LIBKERN_OSATOMIC_H\00", align 1
@.str.5 = private unnamed_addr constant [26 x i8] c"OSAtomicCompareAndSwapPtr\00", align 1
@.str.6 = private unnamed_addr constant [30 x i8] c"#include <libkern/OSAtomic.h>\00", align 1
@.str.7 = private unnamed_addr constant [21 x i8] c"HAS_OSATOMIC_CAS_PTR\00", align 1
@.str.8 = private unnamed_addr constant [13 x i8] c"sys/atomic.h\00", align 1
@.str.9 = private unnamed_addr constant [17 x i8] c"HAS_SYS_ATOMIC_H\00", align 1
@.str.10 = private unnamed_addr constant [10 x i8] c"windows.h\00", align 1
@.str.11 = private unnamed_addr constant [9 x i8] c"intrin.h\00", align 1
@.str.12 = private unnamed_addr constant [13 x i8] c"HAS_INTRIN_H\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @chaz_AtomicOps_run() #0 {
%1 = call i32 @chaz_ConfWriter_start_module(ptr noundef @.str)
%2 = call i64 @chaz_HeadCheck_check_header(ptr noundef @.str.1)
%3 = icmp ne i64 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 @chaz_ConfWriter_add_def(ptr noundef @.str.2, ptr noundef null)
br label %6
6: ; preds = %4, %0
%7 = call i64 @chaz_HeadCheck_check_header(ptr noundef @.str.3)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %16
9: ; preds = %6
%10 = call i32 @chaz_ConfWriter_add_def(ptr noundef @.str.4, ptr noundef null)
%11 = call i64 @chaz_HeadCheck_defines_symbol(ptr noundef @.str.5, ptr noundef @.str.6)
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %9
%14 = call i32 @chaz_ConfWriter_add_def(ptr noundef @.str.7, ptr noundef null)
br label %15
15: ; preds = %13, %9
br label %16
16: ; preds = %15, %6
%17 = call i64 @chaz_HeadCheck_check_header(ptr noundef @.str.8)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 @chaz_ConfWriter_add_def(ptr noundef @.str.9, ptr noundef null)
br label %21
21: ; preds = %19, %16
%22 = call i64 @chaz_HeadCheck_check_header(ptr noundef @.str.10)
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %29
24: ; preds = %21
%25 = call i64 @chaz_HeadCheck_check_header(ptr noundef @.str.11)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %24
%28 = call i32 @chaz_ConfWriter_add_def(ptr noundef @.str.12, ptr noundef null)
br label %29
29: ; preds = %27, %24, %21
%30 = call i32 (...) @chaz_ConfWriter_end_module()
ret void
}
declare i32 @chaz_ConfWriter_start_module(ptr noundef) #1
declare i64 @chaz_HeadCheck_check_header(ptr noundef) #1
declare i32 @chaz_ConfWriter_add_def(ptr noundef, ptr noundef) #1
declare i64 @chaz_HeadCheck_defines_symbol(ptr noundef, ptr noundef) #1
declare i32 @chaz_ConfWriter_end_module(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpztsktarq.c'
source_filename = "/tmp/tmpztsktarq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"illegal option: %s\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@EXIT_SUCCESS = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [4 x i8] c"get\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"ngrams\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"tokens\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"sentences\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"scan\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [29 x i8] c"Unrecognized command '%s'.\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%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
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 1, ptr %8, align 4
br label %10
10: ; preds = %62, %2
%11 = load i32, ptr %8, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %65
14: ; preds = %10
%15 = load ptr, ptr %5, align 8
%16 = load i32, ptr %8, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds ptr, ptr %15, i64 %17
%19 = load ptr, ptr %18, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 0
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 45
br i1 %23, label %24, label %25
24: ; preds = %14
br label %65
25: ; preds = %14
%26 = load ptr, ptr %5, align 8
%27 = load i32, ptr %8, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds ptr, ptr %26, i64 %28
%30 = load ptr, ptr %29, align 8
%31 = getelementptr inbounds i8, ptr %30, i64 2
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp ne i32 %33, 0
br i1 %34, label %35, label %44
35: ; preds = %25
%36 = load ptr, ptr %5, align 8
%37 = load i32, ptr %8, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds ptr, ptr %36, i64 %38
%40 = load ptr, ptr %39, align 8
%41 = call i32 @printf(ptr noundef @.str, ptr noundef %40)
%42 = call i32 (...) @usage()
%43 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %43, ptr %3, align 4
br label %173
44: ; preds = %25
%45 = load ptr, ptr %5, align 8
%46 = load i32, ptr %8, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds ptr, ptr %45, i64 %47
%49 = load ptr, ptr %48, align 8
%50 = getelementptr inbounds i8, ptr %49, i64 1
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
store i32 %52, ptr %9, align 4
%53 = load i32, ptr %9, align 4
switch i32 %53, label %58 [
i32 104, label %54
i32 118, label %55
]
54: ; preds = %44
store i32 1, ptr %6, align 4
br label %61
55: ; preds = %44
%56 = call i32 (...) @version()
%57 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %57, ptr %3, align 4
br label %173
58: ; preds = %44
%59 = call i32 (...) @usage()
%60 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %60, ptr %3, align 4
br label %173
61: ; preds = %54
br label %62
62: ; preds = %61
%63 = load i32, ptr %8, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %8, align 4
br label %10, !llvm.loop !6
65: ; preds = %24, %10
%66 = load i32, ptr %8, align 4
%67 = load i32, ptr %4, align 4
%68 = sub nsw i32 %67, %66
store i32 %68, ptr %4, align 4
%69 = load i32, ptr %8, align 4
%70 = load ptr, ptr %5, align 8
%71 = sext i32 %69 to i64
%72 = getelementptr inbounds ptr, ptr %70, i64 %71
store ptr %72, ptr %5, align 8
%73 = load i32, ptr %4, align 4
%74 = icmp eq i32 %73, 0
br i1 %74, label %75, label %78
75: ; preds = %65
%76 = call i32 (...) @usage()
%77 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %77, ptr %3, align 4
br label %173
78: ; preds = %65
%79 = load ptr, ptr %5, align 8
%80 = getelementptr inbounds ptr, ptr %79, i64 0
%81 = load ptr, ptr %80, align 8
%82 = call i32 @strcmp(ptr noundef %81, ptr noundef @.str.1)
%83 = icmp ne i32 %82, 0
br i1 %83, label %94, label %84
84: ; preds = %78
%85 = load i32, ptr %6, align 4
%86 = icmp ne i32 %85, 0
br i1 %86, label %87, label %90
87: ; preds = %84
%88 = call i32 (...) @usage_get()
%89 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %89, ptr %3, align 4
br label %173
90: ; preds = %84
%91 = load i32, ptr %4, align 4
%92 = load ptr, ptr %5, align 8
%93 = call i32 @main_get(i32 noundef %91, ptr noundef %92)
store i32 %93, ptr %7, align 4
br label %170
94: ; preds = %78
%95 = load ptr, ptr %5, align 8
%96 = getelementptr inbounds ptr, ptr %95, i64 0
%97 = load ptr, ptr %96, align 8
%98 = call i32 @strcmp(ptr noundef %97, ptr noundef @.str.2)
%99 = icmp ne i32 %98, 0
br i1 %99, label %110, label %100
100: ; preds = %94
%101 = load i32, ptr %6, align 4
%102 = icmp ne i32 %101, 0
br i1 %102, label %103, label %106
103: ; preds = %100
%104 = call i32 (...) @usage_ngrams()
%105 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %105, ptr %3, align 4
br label %173
106: ; preds = %100
%107 = load i32, ptr %4, align 4
%108 = load ptr, ptr %5, align 8
%109 = call i32 @main_ngrams(i32 noundef %107, ptr noundef %108)
store i32 %109, ptr %7, align 4
br label %169
110: ; preds = %94
%111 = load ptr, ptr %5, align 8
%112 = getelementptr inbounds ptr, ptr %111, i64 0
%113 = load ptr, ptr %112, align 8
%114 = call i32 @strcmp(ptr noundef %113, ptr noundef @.str.3)
%115 = icmp ne i32 %114, 0
br i1 %115, label %126, label %116
116: ; preds = %110
%117 = load i32, ptr %6, align 4
%118 = icmp ne i32 %117, 0
br i1 %118, label %119, label %122
119: ; preds = %116
%120 = call i32 (...) @usage_tokens()
%121 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %121, ptr %3, align 4
br label %173
122: ; preds = %116
%123 = load i32, ptr %4, align 4
%124 = load ptr, ptr %5, align 8
%125 = call i32 @main_tokens(i32 noundef %123, ptr noundef %124)
store i32 %125, ptr %7, align 4
br label %168
126: ; preds = %110
%127 = load ptr, ptr %5, align 8
%128 = getelementptr inbounds ptr, ptr %127, i64 0
%129 = load ptr, ptr %128, align 8
%130 = call i32 @strcmp(ptr noundef %129, ptr noundef @.str.4)
%131 = icmp ne i32 %130, 0
br i1 %131, label %142, label %132
132: ; preds = %126
%133 = load i32, ptr %6, align 4
%134 = icmp ne i32 %133, 0
br i1 %134, label %135, label %138
135: ; preds = %132
%136 = call i32 (...) @usage_sentences()
%137 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %137, ptr %3, align 4
br label %173
138: ; preds = %132
%139 = load i32, ptr %4, align 4
%140 = load ptr, ptr %5, align 8
%141 = call i32 @main_sentences(i32 noundef %139, ptr noundef %140)
store i32 %141, ptr %7, align 4
br label %167
142: ; preds = %126
%143 = load ptr, ptr %5, align 8
%144 = getelementptr inbounds ptr, ptr %143, i64 0
%145 = load ptr, ptr %144, align 8
%146 = call i32 @strcmp(ptr noundef %145, ptr noundef @.str.5)
%147 = icmp ne i32 %146, 0
br i1 %147, label %158, label %148
148: ; preds = %142
%149 = load i32, ptr %6, align 4
%150 = icmp ne i32 %149, 0
br i1 %150, label %151, label %154
151: ; preds = %148
%152 = call i32 (...) @usage_scan()
%153 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %153, ptr %3, align 4
br label %173
154: ; preds = %148
%155 = load i32, ptr %4, align 4
%156 = load ptr, ptr %5, align 8
%157 = call i32 @main_scan(i32 noundef %155, ptr noundef %156)
store i32 %157, ptr %7, align 4
br label %166
158: ; preds = %142
%159 = load i32, ptr @stderr, align 4
%160 = load ptr, ptr %5, align 8
%161 = getelementptr inbounds ptr, ptr %160, i64 0
%162 = load ptr, ptr %161, align 8
%163 = call i32 @fprintf(i32 noundef %159, ptr noundef @.str.6, ptr noundef %162)
%164 = call i32 (...) @usage()
%165 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %165, ptr %3, align 4
br label %173
166: ; preds = %154
br label %167
167: ; preds = %166, %138
br label %168
168: ; preds = %167, %122
br label %169
169: ; preds = %168, %106
br label %170
170: ; preds = %169, %90
br label %171
171: ; preds = %170
%172 = load i32, ptr %7, align 4
store i32 %172, ptr %3, align 4
br label %173
173: ; preds = %171, %158, %151, %135, %119, %103, %87, %75, %58, %55, %35
%174 = load i32, ptr %3, align 4
ret i32 %174
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @usage(...) #1
declare i32 @version(...) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @usage_get(...) #1
declare i32 @main_get(i32 noundef, ptr noundef) #1
declare i32 @usage_ngrams(...) #1
declare i32 @main_ngrams(i32 noundef, ptr noundef) #1
declare i32 @usage_tokens(...) #1
declare i32 @main_tokens(i32 noundef, ptr noundef) #1
declare i32 @usage_sentences(...) #1
declare i32 @main_sentences(i32 noundef, ptr noundef) #1
declare i32 @usage_scan(...) #1
declare i32 @main_scan(i32 noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpztsktarq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"illegal option: %s\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@EXIT_SUCCESS = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [4 x i8] c"get\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"ngrams\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"tokens\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"sentences\00", align 1
@.str.5 = private unnamed_addr constant [5 x i8] c"scan\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [29 x i8] c"Unrecognized command '%s'.\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%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
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 1, ptr %8, align 4
%10 = load i32, ptr %8, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %2
br label %13
13: ; preds = %.lr.ph, %61
%14 = load ptr, ptr %5, align 8
%15 = load i32, ptr %8, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds ptr, ptr %14, i64 %16
%18 = load ptr, ptr %17, align 8
%19 = getelementptr inbounds i8, ptr %18, i64 0
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp ne i32 %21, 45
br i1 %22, label %23, label %24
23: ; preds = %13
br label %67
24: ; preds = %13
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %8, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds ptr, ptr %25, i64 %27
%29 = load ptr, ptr %28, align 8
%30 = getelementptr inbounds i8, ptr %29, i64 2
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %43
34: ; preds = %24
%35 = load ptr, ptr %5, align 8
%36 = load i32, ptr %8, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds ptr, ptr %35, i64 %37
%39 = load ptr, ptr %38, align 8
%40 = call i32 @printf(ptr noundef @.str, ptr noundef %39)
%41 = call i32 (...) @usage()
%42 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %42, ptr %3, align 4
br label %175
43: ; preds = %24
%44 = load ptr, ptr %5, align 8
%45 = load i32, ptr %8, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds ptr, ptr %44, i64 %46
%48 = load ptr, ptr %47, align 8
%49 = getelementptr inbounds i8, ptr %48, i64 1
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
store i32 %51, ptr %9, align 4
%52 = load i32, ptr %9, align 4
switch i32 %52, label %57 [
i32 104, label %53
i32 118, label %54
]
53: ; preds = %43
store i32 1, ptr %6, align 4
br label %60
54: ; preds = %43
%55 = call i32 (...) @version()
%56 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %56, ptr %3, align 4
br label %175
57: ; preds = %43
%58 = call i32 (...) @usage()
%59 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %59, ptr %3, align 4
br label %175
60: ; preds = %53
br label %61
61: ; preds = %60
%62 = load i32, ptr %8, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %8, align 4
%64 = load i32, ptr %8, align 4
%65 = load i32, ptr %4, align 4
%66 = icmp slt i32 %64, %65
br i1 %66, label %13, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %61
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %2
br label %67
67: ; preds = %.loopexit, %23
%68 = load i32, ptr %8, align 4
%69 = load i32, ptr %4, align 4
%70 = sub nsw i32 %69, %68
store i32 %70, ptr %4, align 4
%71 = load i32, ptr %8, align 4
%72 = load ptr, ptr %5, align 8
%73 = sext i32 %71 to i64
%74 = getelementptr inbounds ptr, ptr %72, i64 %73
store ptr %74, ptr %5, align 8
%75 = load i32, ptr %4, align 4
%76 = icmp eq i32 %75, 0
br i1 %76, label %77, label %80
77: ; preds = %67
%78 = call i32 (...) @usage()
%79 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %79, ptr %3, align 4
br label %175
80: ; preds = %67
%81 = load ptr, ptr %5, align 8
%82 = getelementptr inbounds ptr, ptr %81, i64 0
%83 = load ptr, ptr %82, align 8
%84 = call i32 @strcmp(ptr noundef %83, ptr noundef @.str.1)
%85 = icmp ne i32 %84, 0
br i1 %85, label %96, label %86
86: ; preds = %80
%87 = load i32, ptr %6, align 4
%88 = icmp ne i32 %87, 0
br i1 %88, label %89, label %92
89: ; preds = %86
%90 = call i32 (...) @usage_get()
%91 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %91, ptr %3, align 4
br label %175
92: ; preds = %86
%93 = load i32, ptr %4, align 4
%94 = load ptr, ptr %5, align 8
%95 = call i32 @main_get(i32 noundef %93, ptr noundef %94)
store i32 %95, ptr %7, align 4
br label %172
96: ; preds = %80
%97 = load ptr, ptr %5, align 8
%98 = getelementptr inbounds ptr, ptr %97, i64 0
%99 = load ptr, ptr %98, align 8
%100 = call i32 @strcmp(ptr noundef %99, ptr noundef @.str.2)
%101 = icmp ne i32 %100, 0
br i1 %101, label %112, label %102
102: ; preds = %96
%103 = load i32, ptr %6, align 4
%104 = icmp ne i32 %103, 0
br i1 %104, label %105, label %108
105: ; preds = %102
%106 = call i32 (...) @usage_ngrams()
%107 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %107, ptr %3, align 4
br label %175
108: ; preds = %102
%109 = load i32, ptr %4, align 4
%110 = load ptr, ptr %5, align 8
%111 = call i32 @main_ngrams(i32 noundef %109, ptr noundef %110)
store i32 %111, ptr %7, align 4
br label %171
112: ; preds = %96
%113 = load ptr, ptr %5, align 8
%114 = getelementptr inbounds ptr, ptr %113, i64 0
%115 = load ptr, ptr %114, align 8
%116 = call i32 @strcmp(ptr noundef %115, ptr noundef @.str.3)
%117 = icmp ne i32 %116, 0
br i1 %117, label %128, label %118
118: ; preds = %112
%119 = load i32, ptr %6, align 4
%120 = icmp ne i32 %119, 0
br i1 %120, label %121, label %124
121: ; preds = %118
%122 = call i32 (...) @usage_tokens()
%123 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %123, ptr %3, align 4
br label %175
124: ; preds = %118
%125 = load i32, ptr %4, align 4
%126 = load ptr, ptr %5, align 8
%127 = call i32 @main_tokens(i32 noundef %125, ptr noundef %126)
store i32 %127, ptr %7, align 4
br label %170
128: ; preds = %112
%129 = load ptr, ptr %5, align 8
%130 = getelementptr inbounds ptr, ptr %129, i64 0
%131 = load ptr, ptr %130, align 8
%132 = call i32 @strcmp(ptr noundef %131, ptr noundef @.str.4)
%133 = icmp ne i32 %132, 0
br i1 %133, label %144, label %134
134: ; preds = %128
%135 = load i32, ptr %6, align 4
%136 = icmp ne i32 %135, 0
br i1 %136, label %137, label %140
137: ; preds = %134
%138 = call i32 (...) @usage_sentences()
%139 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %139, ptr %3, align 4
br label %175
140: ; preds = %134
%141 = load i32, ptr %4, align 4
%142 = load ptr, ptr %5, align 8
%143 = call i32 @main_sentences(i32 noundef %141, ptr noundef %142)
store i32 %143, ptr %7, align 4
br label %169
144: ; preds = %128
%145 = load ptr, ptr %5, align 8
%146 = getelementptr inbounds ptr, ptr %145, i64 0
%147 = load ptr, ptr %146, align 8
%148 = call i32 @strcmp(ptr noundef %147, ptr noundef @.str.5)
%149 = icmp ne i32 %148, 0
br i1 %149, label %160, label %150
150: ; preds = %144
%151 = load i32, ptr %6, align 4
%152 = icmp ne i32 %151, 0
br i1 %152, label %153, label %156
153: ; preds = %150
%154 = call i32 (...) @usage_scan()
%155 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %155, ptr %3, align 4
br label %175
156: ; preds = %150
%157 = load i32, ptr %4, align 4
%158 = load ptr, ptr %5, align 8
%159 = call i32 @main_scan(i32 noundef %157, ptr noundef %158)
store i32 %159, ptr %7, align 4
br label %168
160: ; preds = %144
%161 = load i32, ptr @stderr, align 4
%162 = load ptr, ptr %5, align 8
%163 = getelementptr inbounds ptr, ptr %162, i64 0
%164 = load ptr, ptr %163, align 8
%165 = call i32 @fprintf(i32 noundef %161, ptr noundef @.str.6, ptr noundef %164)
%166 = call i32 (...) @usage()
%167 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %167, ptr %3, align 4
br label %175
168: ; preds = %156
br label %169
169: ; preds = %168, %140
br label %170
170: ; preds = %169, %124
br label %171
171: ; preds = %170, %108
br label %172
172: ; preds = %171, %92
br label %173
173: ; preds = %172
%174 = load i32, ptr %7, align 4
store i32 %174, ptr %3, align 4
br label %175
175: ; preds = %173, %160, %153, %137, %121, %105, %89, %77, %57, %54, %34
%176 = load i32, ptr %3, align 4
ret i32 %176
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @usage(...) #1
declare i32 @version(...) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @usage_get(...) #1
declare i32 @main_get(i32 noundef, ptr noundef) #1
declare i32 @usage_ngrams(...) #1
declare i32 @main_ngrams(i32 noundef, ptr noundef) #1
declare i32 @usage_tokens(...) #1
declare i32 @main_tokens(i32 noundef, ptr noundef) #1
declare i32 @usage_sentences(...) #1
declare i32 @main_sentences(i32 noundef, ptr noundef) #1
declare i32 @usage_scan(...) #1
declare i32 @main_scan(i32 noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpp29dci_i.c'
source_filename = "/tmp/tmpp29dci_i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wave_get_max_cbs(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 @pigpio_command(i32 noundef %3, i32 noundef 36, i32 noundef 2, i32 noundef 0, i32 noundef 1)
ret i32 %4
}
declare i32 @pigpio_command(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp29dci_i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wave_get_max_cbs(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 @pigpio_command(i32 noundef %3, i32 noundef 36, i32 noundef 2, i32 noundef 0, i32 noundef 1)
ret i32 %4
}
declare i32 @pigpio_command(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_0rovv_0.c'
source_filename = "/tmp/tmp_0rovv_0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isascii.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isascii should be 1 for Y\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isascii_0x59() #0 {
%1 = call i32 @isascii(i32 noundef 89)
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 450, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @isascii(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_0rovv_0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isascii.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isascii should be 1 for Y\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isascii_0x59() #0 {
%1 = call i32 @isascii(i32 noundef 89)
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 450, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @isascii(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/tmp71tqj5d6.c'
source_filename = "/tmp/tmp71tqj5d6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1111 x i8] c"\0AUsage: phalanx [options] [<moves> <minutes> [<increment in seconds>]]\0A phalanx [options] [<seconds per move>]\0A phalanx bench\0A phalanx bcreate [options]\0AOptions: -t <transposition table size in kilobytes>\0A -f <fixed search time in seconds>\0A -x <+/-> xboard mode on/off default: on\0A -p <+/-> permanent brain on/off default: off\0A -s <+/-> show thinking on/off default: off\0A -c <+/-> cpu time default: off\0A -o <+/-> polling input default: on\0A -b <+/-> opening book default: on\0A -r <resign value in centipawns> default: 0 (no resigning)\0A -e <easy level 0...100> default: 0 (best play)\0A -l <+/-> learning on/off default: on\0A -v print version and exit\0A -P <primary book directory>\0A -S <secondary book directory>\0A -L <learning file directory>\0A -g <log file name>\0AExamples: phalanx -c+ -s+ -o - -x- -f 60 -t4000\0A xboard -fcp \22phalanx -l+ -r800\22\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @badoptions() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp71tqj5d6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1111 x i8] c"\0AUsage: phalanx [options] [<moves> <minutes> [<increment in seconds>]]\0A phalanx [options] [<seconds per move>]\0A phalanx bench\0A phalanx bcreate [options]\0AOptions: -t <transposition table size in kilobytes>\0A -f <fixed search time in seconds>\0A -x <+/-> xboard mode on/off default: on\0A -p <+/-> permanent brain on/off default: off\0A -s <+/-> show thinking on/off default: off\0A -c <+/-> cpu time default: off\0A -o <+/-> polling input default: on\0A -b <+/-> opening book default: on\0A -r <resign value in centipawns> default: 0 (no resigning)\0A -e <easy level 0...100> default: 0 (best play)\0A -l <+/-> learning on/off default: on\0A -v print version and exit\0A -P <primary book directory>\0A -S <secondary book directory>\0A -L <learning file directory>\0A -g <log file name>\0AExamples: phalanx -c+ -s+ -o - -x- -f 60 -t4000\0A xboard -fcp \22phalanx -l+ -r800\22\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @badoptions() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1vkwtooq.c'
source_filename = "/tmp/tmp1vkwtooq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strnchr(ptr noundef %0, i64 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
br label %8
8: ; preds = %30, %3
%9 = load i64, ptr %6, align 8
%10 = add i64 %9, -1
store i64 %10, ptr %6, align 8
%11 = icmp ne i64 %9, 0
br i1 %11, label %12, label %17
12: ; preds = %8
%13 = load ptr, ptr %5, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 0
br label %17
17: ; preds = %12, %8
%18 = phi i1 [ false, %8 ], [ %16, %12 ]
br i1 %18, label %19, label %33
19: ; preds = %17
%20 = load ptr, ptr %5, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = load i32, ptr %7, align 4
%24 = trunc i32 %23 to i8
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %22, %25
br i1 %26, label %27, label %29
27: ; preds = %19
%28 = load ptr, ptr %5, align 8
store ptr %28, ptr %4, align 8
br label %34
29: ; preds = %19
br label %30
30: ; preds = %29
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 1
store ptr %32, ptr %5, align 8
br label %8, !llvm.loop !6
33: ; preds = %17
store ptr null, ptr %4, align 8
br label %34
34: ; preds = %33, %27
%35 = load ptr, ptr %4, align 8
ret ptr %35
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp1vkwtooq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strnchr(ptr noundef %0, i64 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
br label %8
8: ; preds = %30, %3
%9 = load i64, ptr %6, align 8
%10 = add i64 %9, -1
store i64 %10, ptr %6, align 8
%11 = icmp ne i64 %9, 0
br i1 %11, label %12, label %17
12: ; preds = %8
%13 = load ptr, ptr %5, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 0
br label %17
17: ; preds = %12, %8
%18 = phi i1 [ false, %8 ], [ %16, %12 ]
br i1 %18, label %19, label %33
19: ; preds = %17
%20 = load ptr, ptr %5, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = load i32, ptr %7, align 4
%24 = trunc i32 %23 to i8
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %22, %25
br i1 %26, label %27, label %29
27: ; preds = %19
%28 = load ptr, ptr %5, align 8
store ptr %28, ptr %4, align 8
br label %34
29: ; preds = %19
br label %30
30: ; preds = %29
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 1
store ptr %32, ptr %5, align 8
br label %8, !llvm.loop !6
33: ; preds = %17
store ptr null, ptr %4, align 8
br label %34
34: ; preds = %33, %27
%35 = load ptr, ptr %4, align 8
ret ptr %35
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp89l4bycw.c'
source_filename = "/tmp/tmp89l4bycw.c"
target datalayout = "e-m:e-p270: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/tmp89l4bycw.c"
target datalayout = "e-m:e-p270: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/tmp92uwn4v9.c'
source_filename = "/tmp/tmp92uwn4v9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sort_colors(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
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %6, align 4
%8 = load i32, ptr %4, align 4
%9 = sub nsw i32 %8, 1
store i32 %9, ptr %7, align 4
store i32 0, ptr %5, align 4
br label %10
10: ; preds = %67, %2
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %11, 2
br i1 %12, label %13, label %70
13: ; preds = %10
br label %14
14: ; preds = %54, %13
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %7, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %64
18: ; preds = %14
br label %19
19: ; preds = %33, %18
%20 = load i32, ptr %6, align 4
%21 = load i32, ptr %7, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %31
23: ; preds = %19
%24 = load ptr, ptr %3, align 8
%25 = load i32, ptr %6, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i32, ptr %24, i64 %26
%28 = load i32, ptr %27, align 4
%29 = load i32, ptr %5, align 4
%30 = icmp sle i32 %28, %29
br label %31
31: ; preds = %23, %19
%32 = phi i1 [ false, %19 ], [ %30, %23 ]
br i1 %32, label %33, label %36
33: ; preds = %31
%34 = load i32, ptr %6, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %6, align 4
br label %19, !llvm.loop !6
36: ; preds = %31
br label %37
37: ; preds = %51, %36
%38 = load i32, ptr %6, align 4
%39 = load i32, ptr %7, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %41, label %49
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 i32, ptr %5, align 4
%48 = icmp sgt i32 %46, %47
br label %49
49: ; preds = %41, %37
%50 = phi i1 [ false, %37 ], [ %48, %41 ]
br i1 %50, label %51, label %54
51: ; preds = %49
%52 = load i32, ptr %7, align 4
%53 = add nsw i32 %52, -1
store i32 %53, ptr %7, align 4
br label %37, !llvm.loop !8
54: ; preds = %49
%55 = load ptr, ptr %3, align 8
%56 = load i32, ptr %6, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i32, ptr %55, i64 %57
%59 = load ptr, ptr %3, align 8
%60 = load i32, ptr %7, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i32, ptr %59, i64 %61
%63 = call i32 @sort_colors_swap(ptr noundef %58, ptr noundef %62)
br label %14, !llvm.loop !9
64: ; preds = %14
%65 = load i32, ptr %4, align 4
%66 = sub nsw i32 %65, 1
store i32 %66, ptr %7, align 4
br label %67
67: ; preds = %64
%68 = load i32, ptr %5, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %5, align 4
br label %10, !llvm.loop !10
70: ; preds = %10
ret void
}
declare i32 @sort_colors_swap(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp92uwn4v9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sort_colors(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
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %6, align 4
%8 = load i32, ptr %4, align 4
%9 = sub nsw i32 %8, 1
store i32 %9, ptr %7, align 4
store i32 0, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp slt i32 %10, 2
br i1 %11, label %.lr.ph2, label %73
.lr.ph2: ; preds = %2
br label %12
12: ; preds = %.lr.ph2, %68
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %7, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %65
.lr.ph: ; preds = %12
br label %16
16: ; preds = %.lr.ph, %52
br label %17
17: ; preds = %31, %16
%18 = load i32, ptr %6, align 4
%19 = load i32, ptr %7, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %29
21: ; preds = %17
%22 = load ptr, ptr %3, align 8
%23 = load i32, ptr %6, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i32, ptr %22, i64 %24
%26 = load i32, ptr %25, align 4
%27 = load i32, ptr %5, align 4
%28 = icmp sle i32 %26, %27
br label %29
29: ; preds = %21, %17
%30 = phi i1 [ false, %17 ], [ %28, %21 ]
br i1 %30, label %31, label %34
31: ; preds = %29
%32 = load i32, ptr %6, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %6, align 4
br label %17, !llvm.loop !6
34: ; preds = %29
br label %35
35: ; preds = %49, %34
%36 = load i32, ptr %6, align 4
%37 = load i32, ptr %7, align 4
%38 = icmp slt i32 %36, %37
br i1 %38, label %39, label %47
39: ; preds = %35
%40 = load ptr, ptr %3, align 8
%41 = load i32, ptr %7, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %40, i64 %42
%44 = load i32, ptr %43, align 4
%45 = load i32, ptr %5, align 4
%46 = icmp sgt i32 %44, %45
br label %47
47: ; preds = %39, %35
%48 = phi i1 [ false, %35 ], [ %46, %39 ]
br i1 %48, label %49, label %52
49: ; preds = %47
%50 = load i32, ptr %7, align 4
%51 = add nsw i32 %50, -1
store i32 %51, ptr %7, align 4
br label %35, !llvm.loop !8
52: ; preds = %47
%53 = load ptr, ptr %3, align 8
%54 = load i32, ptr %6, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i32, ptr %53, i64 %55
%57 = load ptr, ptr %3, align 8
%58 = load i32, ptr %7, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i32, ptr %57, i64 %59
%61 = call i32 @sort_colors_swap(ptr noundef %56, ptr noundef %60)
%62 = load i32, ptr %6, align 4
%63 = load i32, ptr %7, align 4
%64 = icmp slt i32 %62, %63
br i1 %64, label %16, label %._crit_edge, !llvm.loop !9
._crit_edge: ; preds = %52
br label %65
65: ; preds = %._crit_edge, %12
%66 = load i32, ptr %4, align 4
%67 = sub nsw i32 %66, 1
store i32 %67, ptr %7, align 4
br label %68
68: ; preds = %65
%69 = load i32, ptr %5, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %5, align 4
%71 = load i32, ptr %5, align 4
%72 = icmp slt i32 %71, 2
br i1 %72, label %12, label %._crit_edge3, !llvm.loop !10
._crit_edge3: ; preds = %68
br label %73
73: ; preds = %._crit_edge3, %2
ret void
}
declare i32 @sort_colors_swap(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmphiybw53x.c'
source_filename = "/tmp/tmphiybw53x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test15(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
store float %0, ptr %3, align 4
store float %1, ptr %4, align 4
%5 = load float, ptr %3, align 4
%6 = load float, ptr %4, align 4
%7 = call i32 @__builtin_mips_cabs_ngt_s(float noundef %5, float noundef %6)
ret i32 %7
}
declare i32 @__builtin_mips_cabs_ngt_s(float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmphiybw53x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test15(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
store float %0, ptr %3, align 4
store float %1, ptr %4, align 4
%5 = load float, ptr %3, align 4
%6 = load float, ptr %4, align 4
%7 = call i32 @__builtin_mips_cabs_ngt_s(float noundef %5, float noundef %6)
ret i32 %7
}
declare i32 @__builtin_mips_cabs_ngt_s(float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpk44hc6vi.c'
source_filename = "/tmp/tmpk44hc6vi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_NONBLOCK = dso_local global i32 0, align 4
@O_RDONLY = 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/tmpk44hc6vi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_NONBLOCK = dso_local global i32 0, align 4
@O_RDONLY = 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/tmpujscuh25.c'
source_filename = "/tmp/tmpujscuh25.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"short int:\09%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"int:\09%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"long int:\09%d\0A\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"float:\09%d\0A\00", align 1
@.str.4 = private unnamed_addr constant [12 x i8] c"double:\09%d\0A\00", align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"char:\09%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i16, align 2
%3 = alloca i32, align 4
%4 = alloca i64, align 8
%5 = alloca float, align 4
%6 = alloca double, align 8
%7 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i16 1, ptr %2, align 2
store i32 2, ptr %3, align 4
store i64 3, ptr %4, align 8
store float 0x3FF19999A0000000, ptr %5, align 4
store double 2.200000e+00, ptr %6, align 8
store i8 102, ptr %7, align 1
%8 = call i32 @printf(ptr noundef @.str, i32 noundef 2)
%9 = call i32 @printf(ptr noundef @.str.1, i32 noundef 4)
%10 = call i32 @printf(ptr noundef @.str.2, i32 noundef 8)
%11 = call i32 @printf(ptr noundef @.str.3, i32 noundef 4)
%12 = call i32 @printf(ptr noundef @.str.4, i32 noundef 8)
%13 = call i32 @printf(ptr noundef @.str.5, i32 noundef 1)
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/tmpujscuh25.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"short int:\09%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"int:\09%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"long int:\09%d\0A\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"float:\09%d\0A\00", align 1
@.str.4 = private unnamed_addr constant [12 x i8] c"double:\09%d\0A\00", align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"char:\09%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i16, align 2
%3 = alloca i32, align 4
%4 = alloca i64, align 8
%5 = alloca float, align 4
%6 = alloca double, align 8
%7 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i16 1, ptr %2, align 2
store i32 2, ptr %3, align 4
store i64 3, ptr %4, align 8
store float 0x3FF19999A0000000, ptr %5, align 4
store double 2.200000e+00, ptr %6, align 8
store i8 102, ptr %7, align 1
%8 = call i32 @printf(ptr noundef @.str, i32 noundef 2)
%9 = call i32 @printf(ptr noundef @.str.1, i32 noundef 4)
%10 = call i32 @printf(ptr noundef @.str.2, i32 noundef 8)
%11 = call i32 @printf(ptr noundef @.str.3, i32 noundef 4)
%12 = call i32 @printf(ptr noundef @.str.4, i32 noundef 8)
%13 = call i32 @printf(ptr noundef @.str.5, i32 noundef 1)
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/tmpd18j_5dm.c'
source_filename = "/tmp/tmpd18j_5dm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"should not return NaN\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @benchmark(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca double, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = zext i32 %11 to i64
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %6, align 8
%14 = alloca double, i64 %12, align 16
store i64 %12, ptr %7, align 8
store i32 0, ptr %10, align 4
br label %15
15: ; preds = %25, %2
%16 = load i32, ptr %10, align 4
%17 = load i32, ptr %4, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %28
19: ; preds = %15
%20 = call double (...) @rand_double()
%21 = call double @llvm.fmuladd.f64(double %20, double 2.000000e+04, double -1.000000e+04)
%22 = load i32, ptr %10, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds double, ptr %14, i64 %23
store double %21, ptr %24, align 8
br label %25
25: ; preds = %19
%26 = load i32, ptr %10, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %10, align 4
br label %15, !llvm.loop !6
28: ; preds = %15
store double 0.000000e+00, ptr %8, align 8
%29 = call double (...) @tic()
store double %29, ptr %9, align 8
store i32 0, ptr %10, align 4
br label %30
30: ; preds = %43, %28
%31 = load i32, ptr %10, align 4
%32 = load i32, ptr %3, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %34, label %46
34: ; preds = %30
%35 = load i32, ptr %4, align 4
%36 = call double @stdlib_strided_dsemch(i32 noundef %35, i32 noundef 1, ptr noundef %14, i32 noundef 1)
store double %36, ptr %8, align 8
%37 = load double, ptr %8, align 8
%38 = load double, ptr %8, align 8
%39 = fcmp une double %37, %38
br i1 %39, label %40, label %42
40: ; preds = %34
%41 = call i32 @printf(ptr noundef @.str)
br label %46
42: ; preds = %34
br label %43
43: ; preds = %42
%44 = load i32, ptr %10, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %10, align 4
br label %30, !llvm.loop !8
46: ; preds = %40, %30
%47 = call double (...) @tic()
%48 = load double, ptr %9, align 8
%49 = fsub double %47, %48
store double %49, ptr %5, align 8
%50 = load double, ptr %8, align 8
%51 = load double, ptr %8, align 8
%52 = fcmp une double %50, %51
br i1 %52, label %53, label %55
53: ; preds = %46
%54 = call i32 @printf(ptr noundef @.str)
br label %55
55: ; preds = %53, %46
%56 = load double, ptr %5, align 8
%57 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %57)
ret double %56
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare double @rand_double(...) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
declare double @tic(...) #2
declare double @stdlib_strided_dsemch(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpd18j_5dm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"should not return NaN\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @benchmark(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca double, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = zext i32 %11 to i64
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %6, align 8
%14 = alloca double, i64 %12, align 16
store i64 %12, ptr %7, align 8
store i32 0, ptr %10, align 4
%15 = load i32, ptr %10, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph, label %30
.lr.ph: ; preds = %2
br label %18
18: ; preds = %.lr.ph, %24
%19 = call double (...) @rand_double()
%20 = call double @llvm.fmuladd.f64(double %19, double 2.000000e+04, double -1.000000e+04)
%21 = load i32, ptr %10, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds double, ptr %14, i64 %22
store double %20, ptr %23, align 8
br label %24
24: ; preds = %18
%25 = load i32, ptr %10, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %10, align 4
%27 = load i32, ptr %10, align 4
%28 = load i32, ptr %4, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %30
30: ; preds = %._crit_edge, %2
store double 0.000000e+00, ptr %8, align 8
%31 = call double (...) @tic()
store double %31, ptr %9, align 8
store i32 0, ptr %10, align 4
%32 = load i32, ptr %10, align 4
%33 = load i32, ptr %3, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %30
br label %35
35: ; preds = %.lr.ph2, %44
%36 = load i32, ptr %4, align 4
%37 = call double @stdlib_strided_dsemch(i32 noundef %36, i32 noundef 1, ptr noundef %14, i32 noundef 1)
store double %37, ptr %8, align 8
%38 = load double, ptr %8, align 8
%39 = load double, ptr %8, align 8
%40 = fcmp une double %38, %39
br i1 %40, label %41, label %43
41: ; preds = %35
%42 = call i32 @printf(ptr noundef @.str)
br label %50
43: ; preds = %35
br label %44
44: ; preds = %43
%45 = load i32, ptr %10, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %10, align 4
%47 = load i32, ptr %10, align 4
%48 = load i32, ptr %3, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %35, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %44
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %30
br label %50
50: ; preds = %.loopexit, %41
%51 = call double (...) @tic()
%52 = load double, ptr %9, align 8
%53 = fsub double %51, %52
store double %53, ptr %5, align 8
%54 = load double, ptr %8, align 8
%55 = load double, ptr %8, align 8
%56 = fcmp une double %54, %55
br i1 %56, label %57, label %59
57: ; preds = %50
%58 = call i32 @printf(ptr noundef @.str)
br label %59
59: ; preds = %57, %50
%60 = load double, ptr %5, align 8
%61 = load ptr, ptr %6, align 8
call void @llvm.stackrestore(ptr %61)
ret double %60
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare double @rand_double(...) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
declare double @tic(...) #2
declare double @stdlib_strided_dsemch(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp8lk6jtot.c'
source_filename = "/tmp/tmp8lk6jtot.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @calcDamage(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = sdiv i32 %5, 4
%7 = sub nsw i32 %4, %6
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %2, align 4
%10 = sdiv i32 %9, 5
%11 = add nsw i32 %8, %10
%12 = call i32 @rng(i32 noundef %7, i32 noundef %11)
store i32 %12, ptr %3, align 4
%13 = load i32, ptr %3, align 4
ret i32 %13
}
declare i32 @rng(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/tmp8lk6jtot.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @calcDamage(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = sdiv i32 %5, 4
%7 = sub nsw i32 %4, %6
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %2, align 4
%10 = sdiv i32 %9, 5
%11 = add nsw i32 %8, %10
%12 = call i32 @rng(i32 noundef %7, i32 noundef %11)
store i32 %12, ptr %3, align 4
%13 = load i32, ptr %3, align 4
ret i32 %13
}
declare i32 @rng(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/tmp3cs3ly27.c'
source_filename = "/tmp/tmp3cs3ly27.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@DTV_ENUM_DELSYS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @dvbfe_enum_delsys(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr @DTV_ENUM_DELSYS, align 4
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %6, align 8
%11 = call i32 @get_property(i32 noundef %7, i32 noundef %8, ptr noundef %9, ptr noundef %10)
ret i32 %11
}
declare i32 @get_property(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3cs3ly27.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@DTV_ENUM_DELSYS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @dvbfe_enum_delsys(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr @DTV_ENUM_DELSYS, align 4
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %6, align 8
%11 = call i32 @get_property(i32 noundef %7, i32 noundef %8, ptr noundef %9, ptr noundef %10)
ret i32 %11
}
declare i32 @get_property(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpj9drljqy.c'
source_filename = "/tmp/tmpj9drljqy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test10(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call ptr @strcat(ptr noundef %5, ptr noundef %6)
ret ptr %7
}
declare ptr @strcat(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/tmpj9drljqy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @test10(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call ptr @strcat(ptr noundef %5, ptr noundef %6)
ret ptr %7
}
declare ptr @strcat(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/tmph7eg5oq7.c'
source_filename = "/tmp/tmph7eg5oq7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Thread_getid() #0 {
%1 = call i32 (...) @pthread_self()
ret i32 %1
}
declare i32 @pthread_self(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmph7eg5oq7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Thread_getid() #0 {
%1 = call i32 (...) @pthread_self()
ret i32 %1
}
declare i32 @pthread_self(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppb__n3by.c'
source_filename = "/tmp/tmppb__n3by.c"
target datalayout = "e-m:e-p270: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
@errno = dso_local global i64 0, align 8
@EAGAIN = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [29 x i8] c"## _PollIn(%d,%d) pop_fd %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"## _fPollIn(%d) fpop_fd()\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @_fPollIn(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%9 = load ptr, ptr %4, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %12
11: ; preds = %2
store i32 -1, ptr %3, align 4
br label %82
12: ; preds = %2
%13 = load ptr, ptr %4, align 8
%14 = call i64 @feof(ptr noundef %13)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %12
store i32 -1, ptr %3, align 4
br label %82
17: ; preds = %12
%18 = load ptr, ptr %4, align 8
%19 = call i64 @ready_cc(ptr noundef %18)
%20 = icmp slt i64 0, %19
br i1 %20, label %21, label %22
21: ; preds = %17
store i32 1, ptr %3, align 4
br label %82
22: ; preds = %17
%23 = load ptr, ptr %4, align 8
%24 = call i32 @fileno(ptr noundef %23)
%25 = call i64 @readyAlways(i32 noundef %24)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %22
store i32 1, ptr %3, align 4
br label %82
28: ; preds = %22
%29 = load ptr, ptr %4, align 8
%30 = call i32 @fileno(ptr noundef %29)
store i32 %30, ptr %7, align 4
%31 = load i32, ptr %7, align 4
%32 = load i32, ptr %5, align 4
%33 = call i32 @_PollIn(i32 noundef %31, i32 noundef %32)
store i32 %33, ptr %6, align 4
%34 = load i32, ptr %6, align 4
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %77
36: ; preds = %28
%37 = load i32, ptr %7, align 4
%38 = call i64 @top_fd(i32 noundef %37, i32 noundef 0)
%39 = icmp sle i64 0, %38
br i1 %39, label %40, label %77
40: ; preds = %36
%41 = load ptr, ptr %4, align 8
%42 = call i32 @getc(ptr noundef %41)
store i32 %42, ptr %8, align 4
%43 = load i32, ptr %8, align 4
%44 = load i32, ptr @EOF, align 4
%45 = icmp ne i32 %43, %44
br i1 %45, label %46, label %50
46: ; preds = %40
%47 = load i32, ptr %8, align 4
%48 = load ptr, ptr %4, align 8
%49 = call i32 @ungetc(i32 noundef %47, ptr noundef %48)
br label %76
50: ; preds = %40
%51 = load i64, ptr @errno, align 8
%52 = load i64, ptr @EAGAIN, align 8
%53 = icmp eq i64 %51, %52
br i1 %53, label %54, label %64
54: ; preds = %50
%55 = load ptr, ptr %4, align 8
%56 = call i32 @clearerr(ptr noundef %55)
%57 = load i32, ptr %7, align 4
%58 = load i32, ptr %5, align 4
%59 = load i32, ptr %6, align 4
%60 = call i32 (ptr, i32, ...) @syslog_ERROR(ptr noundef @.str, i32 noundef %57, i32 noundef %58, i32 noundef %59)
%61 = load ptr, ptr %4, align 8
%62 = load i32, ptr %5, align 4
%63 = call i32 @_fPollIn(ptr noundef %61, i32 noundef %62)
store i32 %63, ptr %3, align 4
br label %82
64: ; preds = %50
%65 = load ptr, ptr %4, align 8
%66 = call i64 @fpop_fd(ptr noundef %65)
%67 = icmp ne i64 %66, 0
br i1 %67, label %68, label %74
68: ; preds = %64
%69 = load i32, ptr %7, align 4
%70 = call i32 (ptr, i32, ...) @syslog_ERROR(ptr noundef @.str.1, i32 noundef %69)
%71 = load ptr, ptr %4, align 8
%72 = load i32, ptr %5, align 4
%73 = call i32 @_fPollIn(ptr noundef %71, i32 noundef %72)
store i32 %73, ptr %3, align 4
br label %82
74: ; preds = %64
br label %75
75: ; preds = %74
br label %76
76: ; preds = %75, %46
br label %77
77: ; preds = %76, %36, %28
%78 = load i32, ptr %6, align 4
%79 = icmp slt i32 0, %78
br i1 %79, label %80, label %81
80: ; preds = %77
store i32 2, ptr %3, align 4
br label %82
81: ; preds = %77
store i32 0, ptr %3, align 4
br label %82
82: ; preds = %81, %80, %68, %54, %27, %21, %16, %11
%83 = load i32, ptr %3, align 4
ret i32 %83
}
declare i64 @feof(ptr noundef) #1
declare i64 @ready_cc(ptr noundef) #1
declare i64 @readyAlways(i32 noundef) #1
declare i32 @fileno(ptr noundef) #1
declare i32 @_PollIn(i32 noundef, i32 noundef) #1
declare i64 @top_fd(i32 noundef, i32 noundef) #1
declare i32 @getc(ptr noundef) #1
declare i32 @ungetc(i32 noundef, ptr noundef) #1
declare i32 @clearerr(ptr noundef) #1
declare i32 @syslog_ERROR(ptr noundef, i32 noundef, ...) #1
declare i64 @fpop_fd(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/tmppb__n3by.c"
target datalayout = "e-m:e-p270: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
@errno = dso_local global i64 0, align 8
@EAGAIN = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [29 x i8] c"## _PollIn(%d,%d) pop_fd %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"## _fPollIn(%d) fpop_fd()\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @_fPollIn(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%9 = load ptr, ptr %4, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %12
11: ; preds = %2
store i32 -1, ptr %3, align 4
br label %82
12: ; preds = %2
%13 = load ptr, ptr %4, align 8
%14 = call i64 @feof(ptr noundef %13)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %12
store i32 -1, ptr %3, align 4
br label %82
17: ; preds = %12
%18 = load ptr, ptr %4, align 8
%19 = call i64 @ready_cc(ptr noundef %18)
%20 = icmp slt i64 0, %19
br i1 %20, label %21, label %22
21: ; preds = %17
store i32 1, ptr %3, align 4
br label %82
22: ; preds = %17
%23 = load ptr, ptr %4, align 8
%24 = call i32 @fileno(ptr noundef %23)
%25 = call i64 @readyAlways(i32 noundef %24)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %22
store i32 1, ptr %3, align 4
br label %82
28: ; preds = %22
%29 = load ptr, ptr %4, align 8
%30 = call i32 @fileno(ptr noundef %29)
store i32 %30, ptr %7, align 4
%31 = load i32, ptr %7, align 4
%32 = load i32, ptr %5, align 4
%33 = call i32 @_PollIn(i32 noundef %31, i32 noundef %32)
store i32 %33, ptr %6, align 4
%34 = load i32, ptr %6, align 4
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %77
36: ; preds = %28
%37 = load i32, ptr %7, align 4
%38 = call i64 @top_fd(i32 noundef %37, i32 noundef 0)
%39 = icmp sle i64 0, %38
br i1 %39, label %40, label %77
40: ; preds = %36
%41 = load ptr, ptr %4, align 8
%42 = call i32 @getc(ptr noundef %41)
store i32 %42, ptr %8, align 4
%43 = load i32, ptr %8, align 4
%44 = load i32, ptr @EOF, align 4
%45 = icmp ne i32 %43, %44
br i1 %45, label %46, label %50
46: ; preds = %40
%47 = load i32, ptr %8, align 4
%48 = load ptr, ptr %4, align 8
%49 = call i32 @ungetc(i32 noundef %47, ptr noundef %48)
br label %76
50: ; preds = %40
%51 = load i64, ptr @errno, align 8
%52 = load i64, ptr @EAGAIN, align 8
%53 = icmp eq i64 %51, %52
br i1 %53, label %54, label %64
54: ; preds = %50
%55 = load ptr, ptr %4, align 8
%56 = call i32 @clearerr(ptr noundef %55)
%57 = load i32, ptr %7, align 4
%58 = load i32, ptr %5, align 4
%59 = load i32, ptr %6, align 4
%60 = call i32 (ptr, i32, ...) @syslog_ERROR(ptr noundef @.str, i32 noundef %57, i32 noundef %58, i32 noundef %59)
%61 = load ptr, ptr %4, align 8
%62 = load i32, ptr %5, align 4
%63 = call i32 @_fPollIn(ptr noundef %61, i32 noundef %62)
store i32 %63, ptr %3, align 4
br label %82
64: ; preds = %50
%65 = load ptr, ptr %4, align 8
%66 = call i64 @fpop_fd(ptr noundef %65)
%67 = icmp ne i64 %66, 0
br i1 %67, label %68, label %74
68: ; preds = %64
%69 = load i32, ptr %7, align 4
%70 = call i32 (ptr, i32, ...) @syslog_ERROR(ptr noundef @.str.1, i32 noundef %69)
%71 = load ptr, ptr %4, align 8
%72 = load i32, ptr %5, align 4
%73 = call i32 @_fPollIn(ptr noundef %71, i32 noundef %72)
store i32 %73, ptr %3, align 4
br label %82
74: ; preds = %64
br label %75
75: ; preds = %74
br label %76
76: ; preds = %75, %46
br label %77
77: ; preds = %76, %36, %28
%78 = load i32, ptr %6, align 4
%79 = icmp slt i32 0, %78
br i1 %79, label %80, label %81
80: ; preds = %77
store i32 2, ptr %3, align 4
br label %82
81: ; preds = %77
store i32 0, ptr %3, align 4
br label %82
82: ; preds = %81, %80, %68, %54, %27, %21, %16, %11
%83 = load i32, ptr %3, align 4
ret i32 %83
}
declare i64 @feof(ptr noundef) #1
declare i64 @ready_cc(ptr noundef) #1
declare i64 @readyAlways(i32 noundef) #1
declare i32 @fileno(ptr noundef) #1
declare i32 @_PollIn(i32 noundef, i32 noundef) #1
declare i64 @top_fd(i32 noundef, i32 noundef) #1
declare i32 @getc(ptr noundef) #1
declare i32 @ungetc(i32 noundef, ptr noundef) #1
declare i32 @clearerr(ptr noundef) #1
declare i32 @syslog_ERROR(ptr noundef, i32 noundef, ...) #1
declare i64 @fpop_fd(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/tmp463lih1f.c'
source_filename = "/tmp/tmp463lih1f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [12 x i8] c"/tmp/status\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"r+\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"%llu %llu\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"w\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cache_netdev(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca %struct.stat, align 4
%13 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
store ptr @.str, ptr %13, align 8
%14 = load ptr, ptr %13, align 8
%15 = call i64 @stat(ptr noundef %14, ptr noundef %12)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %29
17: ; preds = %5
%18 = getelementptr inbounds %struct.stat, ptr %12, i32 0, i32 0
%19 = load i32, ptr %18, align 4
%20 = load ptr, ptr %10, align 8
store i32 %19, ptr %20, align 4
%21 = load ptr, ptr %13, align 8
%22 = call ptr @fopen(ptr noundef %21, ptr noundef @.str.1)
store ptr %22, ptr %11, align 8
%23 = load ptr, ptr %11, align 8
%24 = load ptr, ptr %8, align 8
%25 = load ptr, ptr %9, align 8
%26 = call i32 @fscanf(ptr noundef %23, ptr noundef @.str.2, ptr noundef %24, ptr noundef %25)
%27 = load ptr, ptr %11, align 8
%28 = call i32 @rewind(ptr noundef %27)
br label %34
29: ; preds = %5
%30 = load ptr, ptr %6, align 8
store ptr %30, ptr %8, align 8
%31 = load ptr, ptr %7, align 8
store ptr %31, ptr %9, align 8
%32 = load ptr, ptr %13, align 8
%33 = call ptr @fopen(ptr noundef %32, ptr noundef @.str.3)
store ptr %33, ptr %11, align 8
br label %34
34: ; preds = %29, %17
%35 = load ptr, ptr %11, align 8
%36 = load ptr, ptr %6, align 8
%37 = load i64, ptr %36, align 8
%38 = load ptr, ptr %7, align 8
%39 = load i64, ptr %38, align 8
%40 = call i32 @fprintf(ptr noundef %35, ptr noundef @.str.2, i64 noundef %37, i64 noundef %39)
%41 = load ptr, ptr %11, align 8
%42 = call i32 @fclose(ptr noundef %41)
ret i32 0
}
declare i64 @stat(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @rewind(ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i64 noundef, i64 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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp463lih1f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [12 x i8] c"/tmp/status\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"r+\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"%llu %llu\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"w\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cache_netdev(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca %struct.stat, align 4
%13 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
store ptr @.str, ptr %13, align 8
%14 = load ptr, ptr %13, align 8
%15 = call i64 @stat(ptr noundef %14, ptr noundef %12)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %29
17: ; preds = %5
%18 = getelementptr inbounds %struct.stat, ptr %12, i32 0, i32 0
%19 = load i32, ptr %18, align 4
%20 = load ptr, ptr %10, align 8
store i32 %19, ptr %20, align 4
%21 = load ptr, ptr %13, align 8
%22 = call ptr @fopen(ptr noundef %21, ptr noundef @.str.1)
store ptr %22, ptr %11, align 8
%23 = load ptr, ptr %11, align 8
%24 = load ptr, ptr %8, align 8
%25 = load ptr, ptr %9, align 8
%26 = call i32 @fscanf(ptr noundef %23, ptr noundef @.str.2, ptr noundef %24, ptr noundef %25)
%27 = load ptr, ptr %11, align 8
%28 = call i32 @rewind(ptr noundef %27)
br label %34
29: ; preds = %5
%30 = load ptr, ptr %6, align 8
store ptr %30, ptr %8, align 8
%31 = load ptr, ptr %7, align 8
store ptr %31, ptr %9, align 8
%32 = load ptr, ptr %13, align 8
%33 = call ptr @fopen(ptr noundef %32, ptr noundef @.str.3)
store ptr %33, ptr %11, align 8
br label %34
34: ; preds = %29, %17
%35 = load ptr, ptr %11, align 8
%36 = load ptr, ptr %6, align 8
%37 = load i64, ptr %36, align 8
%38 = load ptr, ptr %7, align 8
%39 = load i64, ptr %38, align 8
%40 = call i32 @fprintf(ptr noundef %35, ptr noundef @.str.2, i64 noundef %37, i64 noundef %39)
%41 = load ptr, ptr %11, align 8
%42 = call i32 @fclose(ptr noundef %41)
ret i32 0
}
declare i64 @stat(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @rewind(ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i64 noundef, i64 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"}
|
; ModuleID = '/tmp/tmpl8famm7r.c'
source_filename = "/tmp/tmpl8famm7r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @predictor_printBasicStatistics(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 @__predictor_printBasicStatistics(i32 noundef 0, i32 noundef %3)
ret void
}
declare i32 @__predictor_printBasicStatistics(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/tmpl8famm7r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @predictor_printBasicStatistics(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 @__predictor_printBasicStatistics(i32 noundef 0, i32 noundef %3)
ret void
}
declare i32 @__predictor_printBasicStatistics(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/tmpy9zy11fs.c'
source_filename = "/tmp/tmpy9zy11fs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%.4f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printdouble(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 i32 (ptr, double, ...) @printf(ptr noundef @.str, double noundef %3)
ret void
}
declare i32 @printf(ptr noundef, double noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy9zy11fs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%.4f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printdouble(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 i32 (ptr, double, ...) @printf(ptr noundef @.str, double noundef %3)
ret void
}
declare i32 @printf(ptr noundef, double noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2_ju_dlt.c'
source_filename = "/tmp/tmp2_ju_dlt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Input please: \00", align 1
@.str.1 = private unnamed_addr constant [67 x i8] c"Enter the number between 0 and 10 and I will tell you your grade!\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.4 = private unnamed_addr constant [65 x i8] c"Sorry, invalid character data, your input must be from 0 to 10.\0A\00", align 1
@.str.5 = private unnamed_addr constant [19 x i8] c"Your grade is F. \0A\00", align 1
@.str.6 = private unnamed_addr constant [19 x i8] c"Your grade is D. \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store ptr @.str, ptr %4, align 8
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %6
6: ; preds = %0, %12, %24, %34
%7 = load ptr, ptr %4, align 8
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %7)
%9 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %2)
store i32 %9, ptr %3, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %6
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%14 = call i32 (...) @flush_stream()
br label %6
15: ; preds = %6
%16 = load i32, ptr %3, align 4
%17 = icmp sgt i32 %16, 0
br i1 %17, label %18, label %34
18: ; preds = %15
%19 = load i32, ptr %2, align 4
%20 = icmp slt i32 %19, 0
br i1 %20, label %24, label %21
21: ; preds = %18
%22 = load i32, ptr %2, align 4
%23 = icmp sgt i32 %22, 10
br i1 %23, label %24, label %27
24: ; preds = %21, %18
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%26 = call i32 (...) @flush_stream()
br label %6
27: ; preds = %21
%28 = load i32, ptr %2, align 4
switch i32 %28, label %33 [
i32 0, label %29
i32 1, label %29
i32 2, label %29
i32 3, label %29
i32 4, label %29
i32 5, label %29
i32 6, label %31
]
29: ; preds = %27, %27, %27, %27, %27, %27
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %33
31: ; preds = %27
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %33
33: ; preds = %27, %31, %29
br label %34
34: ; preds = %33, %15
br label %6
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @flush_stream(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2_ju_dlt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Input please: \00", align 1
@.str.1 = private unnamed_addr constant [67 x i8] c"Enter the number between 0 and 10 and I will tell you your grade!\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.4 = private unnamed_addr constant [65 x i8] c"Sorry, invalid character data, your input must be from 0 to 10.\0A\00", align 1
@.str.5 = private unnamed_addr constant [19 x i8] c"Your grade is F. \0A\00", align 1
@.str.6 = private unnamed_addr constant [19 x i8] c"Your grade is D. \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store ptr @.str, ptr %4, align 8
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %6
6: ; preds = %.backedge, %0
%7 = load ptr, ptr %4, align 8
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %7)
%9 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %2)
store i32 %9, ptr %3, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %6
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%14 = call i32 (...) @flush_stream()
br label %.backedge
.backedge: ; preds = %12, %24, %34
br label %6
15: ; preds = %6
%16 = load i32, ptr %3, align 4
%17 = icmp sgt i32 %16, 0
br i1 %17, label %18, label %34
18: ; preds = %15
%19 = load i32, ptr %2, align 4
%20 = icmp slt i32 %19, 0
br i1 %20, label %24, label %21
21: ; preds = %18
%22 = load i32, ptr %2, align 4
%23 = icmp sgt i32 %22, 10
br i1 %23, label %24, label %27
24: ; preds = %21, %18
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%26 = call i32 (...) @flush_stream()
br label %.backedge
27: ; preds = %21
%28 = load i32, ptr %2, align 4
switch i32 %28, label %33 [
i32 0, label %29
i32 1, label %29
i32 2, label %29
i32 3, label %29
i32 4, label %29
i32 5, label %29
i32 6, label %31
]
29: ; preds = %27, %27, %27, %27, %27, %27
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %33
31: ; preds = %27
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %33
33: ; preds = %31, %29, %27
br label %34
34: ; preds = %33, %15
br label %.backedge
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @flush_stream(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp676gk97r.c'
source_filename = "/tmp/tmp676gk97r.c"
target datalayout = "e-m:e-p270: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/tmp676gk97r.c"
target datalayout = "e-m:e-p270: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/tmpv6sayzuc.c'
source_filename = "/tmp/tmpv6sayzuc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"GPT\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"/boot/gptboot\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @partcode_path(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = call i64 @strcmp(ptr noundef %4, ptr noundef @.str)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
store ptr @.str.1, ptr %2, align 8
br label %9
8: ; preds = %1
store ptr null, ptr %2, align 8
br label %9
9: ; preds = %8, %7
%10 = load ptr, ptr %2, align 8
ret ptr %10
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv6sayzuc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"GPT\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"/boot/gptboot\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @partcode_path(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = call i64 @strcmp(ptr noundef %4, ptr noundef @.str)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
store ptr @.str.1, ptr %2, align 8
br label %9
8: ; preds = %1
store ptr null, ptr %2, align 8
br label %9
9: ; preds = %8, %7
%10 = load ptr, ptr %2, align 8
ret ptr %10
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpl2whc441.c'
source_filename = "/tmp/tmpl2whc441.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @g_traversal_setup() #0 {
%1 = call i32 (...) @ptrobj_setup()
%2 = call i32 (...) @get_setup()
%3 = call i32 (...) @set_setup()
%4 = call i32 (...) @elem_setup()
%5 = call i32 (...) @getsize_setup()
%6 = call i32 (...) @setsize_setup()
%7 = call i32 (...) @append_setup()
ret void
}
declare i32 @ptrobj_setup(...) #1
declare i32 @get_setup(...) #1
declare i32 @set_setup(...) #1
declare i32 @elem_setup(...) #1
declare i32 @getsize_setup(...) #1
declare i32 @setsize_setup(...) #1
declare i32 @append_setup(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl2whc441.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @g_traversal_setup() #0 {
%1 = call i32 (...) @ptrobj_setup()
%2 = call i32 (...) @get_setup()
%3 = call i32 (...) @set_setup()
%4 = call i32 (...) @elem_setup()
%5 = call i32 (...) @getsize_setup()
%6 = call i32 (...) @setsize_setup()
%7 = call i32 (...) @append_setup()
ret void
}
declare i32 @ptrobj_setup(...) #1
declare i32 @get_setup(...) #1
declare i32 @set_setup(...) #1
declare i32 @elem_setup(...) #1
declare i32 @getsize_setup(...) #1
declare i32 @setsize_setup(...) #1
declare i32 @append_setup(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpaco8k_u2.c'
source_filename = "/tmp/tmpaco8k_u2.c"
target datalayout = "e-m:e-p270: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.termios = type { i32 }
@stdin = dso_local global i32 0, align 4
@ECHO = dso_local global i32 0, align 4
@TCSANOW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @BarTermSetEcho(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
%3 = alloca %struct.termios, align 4
store i8 %0, ptr %2, align 1
%4 = load i32, ptr @stdin, align 4
%5 = call i32 @fileno(i32 noundef %4)
%6 = call i32 @tcgetattr(i32 noundef %5, ptr noundef %3)
%7 = load i8, ptr %2, align 1
%8 = sext i8 %7 to i32
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %15
10: ; preds = %1
%11 = load i32, ptr @ECHO, align 4
%12 = getelementptr inbounds %struct.termios, ptr %3, i32 0, i32 0
%13 = load i32, ptr %12, align 4
%14 = or i32 %13, %11
store i32 %14, ptr %12, align 4
br label %21
15: ; preds = %1
%16 = load i32, ptr @ECHO, align 4
%17 = xor i32 %16, -1
%18 = getelementptr inbounds %struct.termios, ptr %3, i32 0, i32 0
%19 = load i32, ptr %18, align 4
%20 = and i32 %19, %17
store i32 %20, ptr %18, align 4
br label %21
21: ; preds = %15, %10
%22 = load i32, ptr @stdin, align 4
%23 = call i32 @fileno(i32 noundef %22)
%24 = load i32, ptr @TCSANOW, align 4
%25 = call i32 @tcsetattr(i32 noundef %23, i32 noundef %24, ptr noundef %3)
ret void
}
declare i32 @tcgetattr(i32 noundef, ptr noundef) #1
declare i32 @fileno(i32 noundef) #1
declare i32 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaco8k_u2.c"
target datalayout = "e-m:e-p270: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.termios = type { i32 }
@stdin = dso_local global i32 0, align 4
@ECHO = dso_local global i32 0, align 4
@TCSANOW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @BarTermSetEcho(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
%3 = alloca %struct.termios, align 4
store i8 %0, ptr %2, align 1
%4 = load i32, ptr @stdin, align 4
%5 = call i32 @fileno(i32 noundef %4)
%6 = call i32 @tcgetattr(i32 noundef %5, ptr noundef %3)
%7 = load i8, ptr %2, align 1
%8 = sext i8 %7 to i32
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %15
10: ; preds = %1
%11 = load i32, ptr @ECHO, align 4
%12 = getelementptr inbounds %struct.termios, ptr %3, i32 0, i32 0
%13 = load i32, ptr %12, align 4
%14 = or i32 %13, %11
store i32 %14, ptr %12, align 4
br label %21
15: ; preds = %1
%16 = load i32, ptr @ECHO, align 4
%17 = xor i32 %16, -1
%18 = getelementptr inbounds %struct.termios, ptr %3, i32 0, i32 0
%19 = load i32, ptr %18, align 4
%20 = and i32 %19, %17
store i32 %20, ptr %18, align 4
br label %21
21: ; preds = %15, %10
%22 = load i32, ptr @stdin, align 4
%23 = call i32 @fileno(i32 noundef %22)
%24 = load i32, ptr @TCSANOW, align 4
%25 = call i32 @tcsetattr(i32 noundef %23, i32 noundef %24, ptr noundef %3)
ret void
}
declare i32 @tcgetattr(i32 noundef, ptr noundef) #1
declare i32 @fileno(i32 noundef) #1
declare i32 @tcsetattr(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpt04u8yrd.c'
source_filename = "/tmp/tmpt04u8yrd.c"
target datalayout = "e-m:e-p270: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/tmpt04u8yrd.c"
target datalayout = "e-m:e-p270: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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.