llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmp85p1y7nk.c'
source_filename = "/tmp/tmp85p1y7nk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp85p1y7nk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2srp61g8.c'
source_filename = "/tmp/tmp2srp61g8.c"
target datalayout = "e-m:e-p270: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_CREAT = dso_local global i32 0, align 4
@O_WRONLY = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [30 x i8] c"awritechar: %s: can't create\0A\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c"awritechar: %s: can't write length\0A\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"awritechar: %s: can't write data\0A\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"Wrote %d chars in %s.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @awritechar(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%10 = load ptr, ptr %5, align 8
%11 = load i32, ptr @O_CREAT, align 4
%12 = load i32, ptr @O_WRONLY, align 4
%13 = or i32 %11, %12
%14 = load i32, ptr @O_TRUNC, align 4
%15 = or i32 %13, %14
%16 = call i32 @open(ptr noundef %10, i32 noundef %15, i32 noundef 420)
store i32 %16, ptr %8, align 4
%17 = icmp slt i32 %16, 0
br i1 %17, label %18, label %22
18: ; preds = %3
%19 = load i32, ptr @stderr, align 4
%20 = load ptr, ptr %5, align 8
%21 = call i32 @fprintf(i32 noundef %19, ptr noundef @.str, ptr noundef %20)
store i32 -1, ptr %4, align 4
br label %58
22: ; preds = %3
%23 = call i32 @SWAPL(ptr noundef %7)
%24 = load i32, ptr %8, align 4
%25 = call i32 @write(i32 noundef %24, ptr noundef %7, i32 noundef 4)
%26 = icmp ne i32 %25, 4
br i1 %26, label %27, label %33
27: ; preds = %22
%28 = load i32, ptr @stderr, align 4
%29 = load ptr, ptr %5, align 8
%30 = call i32 @fprintf(i32 noundef %28, ptr noundef @.str.1, ptr noundef %29)
%31 = load i32, ptr %8, align 4
%32 = call i32 @close(i32 noundef %31)
store i32 -1, ptr %4, align 4
br label %58
33: ; preds = %22
%34 = call i32 @SWAPL(ptr noundef %7)
%35 = load i32, ptr %7, align 4
%36 = sext i32 %35 to i64
%37 = mul i64 %36, 1
%38 = trunc i64 %37 to i32
store i32 %38, ptr %9, align 4
%39 = load i32, ptr %8, align 4
%40 = load ptr, ptr %6, align 8
%41 = load i32, ptr %9, align 4
%42 = call i32 @write(i32 noundef %39, ptr noundef %40, i32 noundef %41)
%43 = load i32, ptr %9, align 4
%44 = icmp ne i32 %42, %43
br i1 %44, label %45, label %51
45: ; preds = %33
%46 = load i32, ptr @stderr, align 4
%47 = load ptr, ptr %5, align 8
%48 = call i32 @fprintf(i32 noundef %46, ptr noundef @.str.2, ptr noundef %47)
%49 = load i32, ptr %8, align 4
%50 = call i32 @close(i32 noundef %49)
store i32 -1, ptr %4, align 4
br label %58
51: ; preds = %33
%52 = load i32, ptr %7, align 4
%53 = load ptr, ptr %5, align 8
%54 = call i32 @printf(ptr noundef @.str.3, i32 noundef %52, ptr noundef %53)
%55 = load i32, ptr %8, align 4
%56 = call i32 @close(i32 noundef %55)
%57 = load i32, ptr %7, align 4
store i32 %57, ptr %4, align 4
br label %58
58: ; preds = %51, %45, %27, %18
%59 = load i32, ptr %4, align 4
ret i32 %59
}
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @SWAPL(ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2srp61g8.c"
target datalayout = "e-m:e-p270: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_CREAT = dso_local global i32 0, align 4
@O_WRONLY = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [30 x i8] c"awritechar: %s: can't create\0A\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c"awritechar: %s: can't write length\0A\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"awritechar: %s: can't write data\0A\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"Wrote %d chars in %s.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @awritechar(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%10 = load ptr, ptr %5, align 8
%11 = load i32, ptr @O_CREAT, align 4
%12 = load i32, ptr @O_WRONLY, align 4
%13 = or i32 %11, %12
%14 = load i32, ptr @O_TRUNC, align 4
%15 = or i32 %13, %14
%16 = call i32 @open(ptr noundef %10, i32 noundef %15, i32 noundef 420)
store i32 %16, ptr %8, align 4
%17 = icmp slt i32 %16, 0
br i1 %17, label %18, label %22
18: ; preds = %3
%19 = load i32, ptr @stderr, align 4
%20 = load ptr, ptr %5, align 8
%21 = call i32 @fprintf(i32 noundef %19, ptr noundef @.str, ptr noundef %20)
store i32 -1, ptr %4, align 4
br label %58
22: ; preds = %3
%23 = call i32 @SWAPL(ptr noundef %7)
%24 = load i32, ptr %8, align 4
%25 = call i32 @write(i32 noundef %24, ptr noundef %7, i32 noundef 4)
%26 = icmp ne i32 %25, 4
br i1 %26, label %27, label %33
27: ; preds = %22
%28 = load i32, ptr @stderr, align 4
%29 = load ptr, ptr %5, align 8
%30 = call i32 @fprintf(i32 noundef %28, ptr noundef @.str.1, ptr noundef %29)
%31 = load i32, ptr %8, align 4
%32 = call i32 @close(i32 noundef %31)
store i32 -1, ptr %4, align 4
br label %58
33: ; preds = %22
%34 = call i32 @SWAPL(ptr noundef %7)
%35 = load i32, ptr %7, align 4
%36 = sext i32 %35 to i64
%37 = mul i64 %36, 1
%38 = trunc i64 %37 to i32
store i32 %38, ptr %9, align 4
%39 = load i32, ptr %8, align 4
%40 = load ptr, ptr %6, align 8
%41 = load i32, ptr %9, align 4
%42 = call i32 @write(i32 noundef %39, ptr noundef %40, i32 noundef %41)
%43 = load i32, ptr %9, align 4
%44 = icmp ne i32 %42, %43
br i1 %44, label %45, label %51
45: ; preds = %33
%46 = load i32, ptr @stderr, align 4
%47 = load ptr, ptr %5, align 8
%48 = call i32 @fprintf(i32 noundef %46, ptr noundef @.str.2, ptr noundef %47)
%49 = load i32, ptr %8, align 4
%50 = call i32 @close(i32 noundef %49)
store i32 -1, ptr %4, align 4
br label %58
51: ; preds = %33
%52 = load i32, ptr %7, align 4
%53 = load ptr, ptr %5, align 8
%54 = call i32 @printf(ptr noundef @.str.3, i32 noundef %52, ptr noundef %53)
%55 = load i32, ptr %8, align 4
%56 = call i32 @close(i32 noundef %55)
%57 = load i32, ptr %7, align 4
store i32 %57, ptr %4, align 4
br label %58
58: ; preds = %51, %45, %27, %18
%59 = load i32, ptr %4, align 4
ret i32 %59
}
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @SWAPL(ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgv3iz5cw.c'
source_filename = "/tmp/tmpgv3iz5cw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"Error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getFileDescriptor(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load ptr, ptr %4, align 8
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %6, align 4
%11 = call i32 @open(ptr noundef %8, i32 noundef %9, i32 noundef %10)
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %7, align 4
%13 = icmp slt i32 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %3
%15 = call i32 @perror(ptr noundef @.str)
%16 = load i32, ptr %7, align 4
%17 = call i32 @exit(i32 noundef %16) #3
unreachable
18: ; preds = %3
%19 = load i32, ptr %7, align 4
ret i32 %19
}
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgv3iz5cw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"Error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getFileDescriptor(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load ptr, ptr %4, align 8
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %6, align 4
%11 = call i32 @open(ptr noundef %8, i32 noundef %9, i32 noundef %10)
store i32 %11, ptr %7, align 4
%12 = load i32, ptr %7, align 4
%13 = icmp slt i32 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %3
%15 = call i32 @perror(ptr noundef @.str)
%16 = load i32, ptr %7, align 4
%17 = call i32 @exit(i32 noundef %16) #3
unreachable
18: ; preds = %3
%19 = load i32, ptr %7, align 4
ret i32 %19
}
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpakqvh0nc.c'
source_filename = "/tmp/tmpakqvh0nc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.a = private unnamed_addr constant [8 x i32] [i32 1, i32 2, i32 3, i32 9, i32 6, i32 0, i32 0, i32 0], align 16
@.str = private unnamed_addr constant [4 x i8] c"\0A%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [8 x i32], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.main.a, i64 32, i1 false)
%2 = getelementptr inbounds [8 x i32], ptr %1, i64 0, i64 0
%3 = call i32 @findN(ptr noundef %2)
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
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 @findN(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpakqvh0nc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.a = private unnamed_addr constant [8 x i32] [i32 1, i32 2, i32 3, i32 9, i32 6, i32 0, i32 0, i32 0], align 16
@.str = private unnamed_addr constant [4 x i8] c"\0A%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [8 x i32], align 16
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.main.a, i64 32, i1 false)
%2 = getelementptr inbounds [8 x i32], ptr %1, i64 0, i64 0
%3 = call i32 @findN(ptr noundef %2)
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
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 @findN(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqmj2137b.c'
source_filename = "/tmp/tmpqmj2137b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @gen_WINCH() #0 {
%1 = call i32 @handle_WINCH(i32 noundef 0)
ret i32 0
}
declare i32 @handle_WINCH(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/tmpqmj2137b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @gen_WINCH() #0 {
%1 = call i32 @handle_WINCH(i32 noundef 0)
ret i32 0
}
declare i32 @handle_WINCH(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/tmpmvikl2t3.c'
source_filename = "/tmp/tmpmvikl2t3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @strvis(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call i32 @istrsenvisx(ptr noundef %7, ptr noundef null, ptr noundef %8, i32 noundef 0, i32 noundef %9, ptr noundef @.str, ptr noundef null)
ret i32 %10
}
declare i32 @istrsenvisx(ptr noundef, ptr noundef, ptr noundef, 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/tmpmvikl2t3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @strvis(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call i32 @istrsenvisx(ptr noundef %7, ptr noundef null, ptr noundef %8, i32 noundef 0, i32 noundef %9, ptr noundef @.str, ptr noundef null)
ret i32 %10
}
declare i32 @istrsenvisx(ptr noundef, ptr noundef, ptr noundef, 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/tmphwhdci32.c'
source_filename = "/tmp/tmphwhdci32.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_random(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 = load float, ptr %3, align 4
%8 = fsub float %6, %7
%9 = call float (...) @rando()
%10 = call float @llvm.fmuladd.f32(float %8, float %9, float %5)
ret float %10
}
declare float @rando(...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphwhdci32.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_random(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 = load float, ptr %3, align 4
%8 = fsub float %6, %7
%9 = call float (...) @rando()
%10 = call float @llvm.fmuladd.f32(float %8, float %9, float %5)
ret float %10
}
declare float @rando(...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmps2h_qa88.c'
source_filename = "/tmp/tmps2h_qa88.c"
target datalayout = "e-m:e-p270: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/tmps2h_qa88.c"
target datalayout = "e-m:e-p270: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/tmp7xzyltuy.c'
source_filename = "/tmp/tmp7xzyltuy.c"
target datalayout = "e-m:e-p270: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/tmp7xzyltuy.c"
target datalayout = "e-m:e-p270: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/tmpm1ope0nw.c'
source_filename = "/tmp/tmpm1ope0nw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@_FPU_DEFAULT = dso_local global i32 0, align 4
@_FPU_MASK_IM = dso_local global i32 0, align 4
@_FPU_MASK_ZM = dso_local global i32 0, align 4
@_FPU_MASK_OM = dso_local global i32 0, align 4
@llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @trapfpe, ptr null }]
; Function Attrs: noinline nounwind sspstrong uwtable
define internal void @trapfpe() #0 {
%1 = load i32, ptr @_FPU_DEFAULT, align 4
%2 = load i32, ptr @_FPU_MASK_IM, align 4
%3 = load i32, ptr @_FPU_MASK_ZM, align 4
%4 = or i32 %2, %3
%5 = load i32, ptr @_FPU_MASK_OM, align 4
%6 = or i32 %4, %5
%7 = xor i32 %6, -1
%8 = and i32 %1, %7
%9 = call i32 @__setfpucw(i32 noundef %8)
ret void
}
declare i32 @__setfpucw(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/tmpm1ope0nw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@_FPU_DEFAULT = dso_local global i32 0, align 4
@_FPU_MASK_IM = dso_local global i32 0, align 4
@_FPU_MASK_ZM = dso_local global i32 0, align 4
@_FPU_MASK_OM = dso_local global i32 0, align 4
@llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @trapfpe, ptr null }]
; Function Attrs: noinline nounwind sspstrong uwtable
define internal void @trapfpe() #0 {
%1 = load i32, ptr @_FPU_DEFAULT, align 4
%2 = load i32, ptr @_FPU_MASK_IM, align 4
%3 = load i32, ptr @_FPU_MASK_ZM, align 4
%4 = or i32 %2, %3
%5 = load i32, ptr @_FPU_MASK_OM, align 4
%6 = or i32 %4, %5
%7 = xor i32 %6, -1
%8 = and i32 %1, %7
%9 = call i32 @__setfpucw(i32 noundef %8)
ret void
}
declare i32 @__setfpucw(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/tmpnwyclm3u.c'
source_filename = "/tmp/tmpnwyclm3u.c"
target datalayout = "e-m:e-p270: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/tmpnwyclm3u.c"
target datalayout = "e-m:e-p270: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/tmp9_ukim3l.c'
source_filename = "/tmp/tmp9_ukim3l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @extractString(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = load ptr, ptr %5, align 8
store i8 0, ptr %6, align 1
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %7, align 8
%9 = getelementptr inbounds i8, ptr %8, i64 1
%10 = load ptr, ptr %4, align 8
store ptr %9, ptr %10, align 8
%11 = load ptr, ptr %3, align 8
%12 = call ptr @strdup(ptr noundef %11)
ret ptr %12
}
declare ptr @strdup(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9_ukim3l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @extractString(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = load ptr, ptr %5, align 8
store i8 0, ptr %6, align 1
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %7, align 8
%9 = getelementptr inbounds i8, ptr %8, i64 1
%10 = load ptr, ptr %4, align 8
store ptr %9, ptr %10, align 8
%11 = load ptr, ptr %3, align 8
%12 = call ptr @strdup(ptr noundef %11)
ret ptr %12
}
declare ptr @strdup(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpukdlwts8.c'
source_filename = "/tmp/tmpukdlwts8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"passkey\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"Wrong Password.\0A\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"Secret!\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 [16 x i8], align 16
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp ne i32 %8, 2
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 @exit(i32 noundef 0) #3
unreachable
12: ; preds = %2
store i32 0, ptr %7, align 4
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 1
%15 = load ptr, ptr %14, align 8
%16 = call i32 @strlen(ptr noundef %15)
%17 = icmp sle i32 %16, 16
br i1 %17, label %18, label %24
18: ; preds = %12
%19 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = call i32 @strcpy(ptr noundef %19, ptr noundef %22)
br label %24
24: ; preds = %18, %12
%25 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%26 = call i64 @strcmp(ptr noundef %25, ptr noundef @.str)
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %24
store i32 1, ptr %7, align 4
br label %32
29: ; preds = %24
%30 = call i32 @printf(ptr noundef @.str.1)
%31 = call i32 @exit(i32 noundef 0) #3
unreachable
32: ; preds = %28
%33 = load i32, ptr %7, align 4
%34 = icmp eq i32 %33, 1
br i1 %34, label %35, label %37
35: ; preds = %32
%36 = call i32 @printf(ptr noundef @.str.2)
br label %37
37: ; preds = %35, %32
ret i32 0
}
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #1
declare i32 @strlen(ptr noundef) #2
declare i32 @strcpy(ptr noundef, ptr noundef) #2
declare i64 @strcmp(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpukdlwts8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"passkey\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"Wrong Password.\0A\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"Secret!\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 [16 x i8], align 16
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp ne i32 %8, 2
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 @exit(i32 noundef 0) #3
unreachable
12: ; preds = %2
store i32 0, ptr %7, align 4
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 1
%15 = load ptr, ptr %14, align 8
%16 = call i32 @strlen(ptr noundef %15)
%17 = icmp sle i32 %16, 16
br i1 %17, label %18, label %24
18: ; preds = %12
%19 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = call i32 @strcpy(ptr noundef %19, ptr noundef %22)
br label %24
24: ; preds = %18, %12
%25 = getelementptr inbounds [16 x i8], ptr %6, i64 0, i64 0
%26 = call i64 @strcmp(ptr noundef %25, ptr noundef @.str)
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %24
store i32 1, ptr %7, align 4
br label %32
29: ; preds = %24
%30 = call i32 @printf(ptr noundef @.str.1)
%31 = call i32 @exit(i32 noundef 0) #3
unreachable
32: ; preds = %28
%33 = load i32, ptr %7, align 4
%34 = icmp eq i32 %33, 1
br i1 %34, label %35, label %37
35: ; preds = %32
%36 = call i32 @printf(ptr noundef @.str.2)
br label %37
37: ; preds = %35, %32
ret i32 0
}
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #1
declare i32 @strlen(ptr noundef) #2
declare i32 @strcpy(ptr noundef, ptr noundef) #2
declare i64 @strcmp(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbwybg76v.c'
source_filename = "/tmp/tmpbwybg76v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0ASum is : %u\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i64 0, ptr %2, align 8
store i32 1, ptr %3, align 4
br label %4
4: ; preds = %12, %0
%5 = load i32, ptr %3, align 4
%6 = icmp sle i32 %5, 1000
br i1 %6, label %7, label %15
7: ; preds = %4
%8 = load i32, ptr %3, align 4
%9 = call i64 @wordlength(i32 noundef %8)
%10 = load i64, ptr %2, align 8
%11 = add i64 %10, %9
store i64 %11, ptr %2, align 8
br label %12
12: ; preds = %7
%13 = load i32, ptr %3, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %3, align 4
br label %4, !llvm.loop !6
15: ; preds = %4
%16 = load i64, ptr %2, align 8
%17 = call i32 @printf(ptr noundef @.str, i64 noundef %16)
ret i32 0
}
declare i64 @wordlength(i32 noundef) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbwybg76v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0ASum is : %u\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i64 0, ptr %2, align 8
store i32 1, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp sle i32 %4, 1000
br i1 %5, label %.lr.ph, label %16
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %11
%7 = load i32, ptr %3, align 4
%8 = call i64 @wordlength(i32 noundef %7)
%9 = load i64, ptr %2, align 8
%10 = add i64 %9, %8
store i64 %10, ptr %2, align 8
br label %11
11: ; preds = %6
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %3, align 4
%14 = load i32, ptr %3, align 4
%15 = icmp sle i32 %14, 1000
br i1 %15, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %16
16: ; preds = %._crit_edge, %0
%17 = load i64, ptr %2, align 8
%18 = call i32 @printf(ptr noundef @.str, i64 noundef %17)
ret i32 0
}
declare i64 @wordlength(i32 noundef) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpcm8m1np8.c'
source_filename = "/tmp/tmpcm8m1np8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @appList_add(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%7 = call ptr (...) @readAppList()
store ptr %7, ptr %4, align 8
store i32 0, ptr %5, align 4
br label %8
8: ; preds = %28, %1
%9 = load ptr, ptr %4, align 8
%10 = load i32, ptr %5, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds ptr, ptr %9, i64 %11
%13 = load ptr, ptr %12, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %29
15: ; preds = %8
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %5, align 4
%19 = sext i32 %17 to i64
%20 = getelementptr inbounds ptr, ptr %16, i64 %19
%21 = load ptr, ptr %20, align 8
%22 = load ptr, ptr %3, align 8
%23 = call i64 @strcmp(ptr noundef %21, ptr noundef %22)
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %28
25: ; preds = %15
%26 = load ptr, ptr %4, align 8
%27 = call i32 @freeAppList(ptr noundef %26)
store i32 0, ptr %2, align 4
br label %44
28: ; preds = %15
br label %8, !llvm.loop !6
29: ; preds = %8
%30 = load ptr, ptr %3, align 8
%31 = call ptr @strdup(ptr noundef %30)
%32 = load ptr, ptr %4, align 8
%33 = load i32, ptr %5, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds ptr, ptr %32, i64 %34
store ptr %31, ptr %35, align 8
store i32 0, ptr %6, align 4
%36 = load ptr, ptr %4, align 8
%37 = call i32 @writeAppList(ptr noundef %36)
%38 = icmp ne i32 %37, 0
br i1 %38, label %40, label %39
39: ; preds = %29
store i32 2, ptr %6, align 4
br label %40
40: ; preds = %39, %29
%41 = load ptr, ptr %4, align 8
%42 = call i32 @freeAppList(ptr noundef %41)
%43 = load i32, ptr %6, align 4
store i32 %43, ptr %2, align 4
br label %44
44: ; preds = %40, %25
%45 = load i32, ptr %2, align 4
ret i32 %45
}
declare ptr @readAppList(...) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @freeAppList(ptr noundef) #1
declare ptr @strdup(ptr noundef) #1
declare i32 @writeAppList(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpcm8m1np8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @appList_add(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%7 = call ptr (...) @readAppList()
store ptr %7, ptr %4, align 8
store i32 0, ptr %5, align 4
%8 = load ptr, ptr %4, align 8
%9 = load i32, ptr %5, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds ptr, ptr %8, i64 %10
%12 = load ptr, ptr %11, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %.lr.ph, label %34
.lr.ph: ; preds = %1
br label %21
14: ; preds = %21
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds ptr, ptr %15, i64 %17
%19 = load ptr, ptr %18, align 8
%20 = icmp ne ptr %19, null
br i1 %20, label %21, label %._crit_edge, !llvm.loop !6
21: ; preds = %.lr.ph, %14
%22 = load ptr, ptr %4, align 8
%23 = load i32, ptr %5, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %5, align 4
%25 = sext i32 %23 to i64
%26 = getelementptr inbounds ptr, ptr %22, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = load ptr, ptr %3, align 8
%29 = call i64 @strcmp(ptr noundef %27, ptr noundef %28)
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %14
31: ; preds = %21
%32 = load ptr, ptr %4, align 8
%33 = call i32 @freeAppList(ptr noundef %32)
store i32 0, ptr %2, align 4
br label %49
._crit_edge: ; preds = %14
br label %34
34: ; preds = %._crit_edge, %1
%35 = load ptr, ptr %3, align 8
%36 = call ptr @strdup(ptr noundef %35)
%37 = load ptr, ptr %4, align 8
%38 = load i32, ptr %5, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds ptr, ptr %37, i64 %39
store ptr %36, ptr %40, align 8
store i32 0, ptr %6, align 4
%41 = load ptr, ptr %4, align 8
%42 = call i32 @writeAppList(ptr noundef %41)
%43 = icmp ne i32 %42, 0
br i1 %43, label %45, label %44
44: ; preds = %34
store i32 2, ptr %6, align 4
br label %45
45: ; preds = %44, %34
%46 = load ptr, ptr %4, align 8
%47 = call i32 @freeAppList(ptr noundef %46)
%48 = load i32, ptr %6, align 4
store i32 %48, ptr %2, align 4
br label %49
49: ; preds = %45, %31
%50 = load i32, ptr %2, align 4
ret i32 %50
}
declare ptr @readAppList(...) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @freeAppList(ptr noundef) #1
declare ptr @strdup(ptr noundef) #1
declare i32 @writeAppList(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpm3ojwia4.c'
source_filename = "/tmp/tmpm3ojwia4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@slacon_.iter = internal global i32 0, align 4
@slacon_.jump = internal global i32 0, align 4
@slacon_.jlast = internal global i32 0, align 4
@slacon_.altsgn = internal global float 0.000000e+00, align 4
@slacon_.estold = internal global float 0.000000e+00, align 4
@slacon_.i = internal global i32 0, align 4
@slacon_.j = internal global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @slacon_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca float, align 4
%16 = alloca float, align 4
%17 = alloca float, align 4
store ptr %0, ptr %8, align 8
store ptr %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store ptr %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
store i32 1, ptr %14, align 4
store float 0.000000e+00, ptr %15, align 4
store float 1.000000e+00, ptr %16, align 4
%18 = load ptr, ptr %13, align 8
%19 = load i32, ptr %18, align 4
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %43
21: ; preds = %6
store i32 0, ptr @slacon_.i, align 4
br label %22
22: ; preds = %38, %21
%23 = load i32, ptr @slacon_.i, align 4
%24 = load ptr, ptr %8, align 8
%25 = load i32, ptr %24, align 4
%26 = icmp slt i32 %23, %25
br i1 %26, label %27, label %41
27: ; preds = %22
%28 = load ptr, ptr %8, align 8
%29 = load i32, ptr %28, align 4
%30 = sitofp i32 %29 to float
%31 = fpext float %30 to double
%32 = fdiv double 1.000000e+00, %31
%33 = fptrunc double %32 to float
%34 = load ptr, ptr %10, align 8
%35 = load i32, ptr @slacon_.i, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds float, ptr %34, i64 %36
store float %33, ptr %37, align 4
br label %38
38: ; preds = %27
%39 = load i32, ptr @slacon_.i, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr @slacon_.i, align 4
br label %22, !llvm.loop !6
41: ; preds = %22
%42 = load ptr, ptr %13, align 8
store i32 1, ptr %42, align 4
store i32 1, ptr @slacon_.jump, align 4
store i32 0, ptr %7, align 4
br label %403
43: ; preds = %6
%44 = load i32, ptr @slacon_.jump, align 4
switch i32 %44, label %50 [
i32 1, label %45
i32 2, label %46
i32 3, label %47
i32 4, label %48
i32 5, label %49
]
45: ; preds = %43
br label %51
46: ; preds = %43
br label %132
47: ; preds = %43
br label %161
48: ; preds = %43
br label %315
49: ; preds = %43
br label %375
50: ; preds = %43
br label %51
51: ; preds = %50, %45
%52 = load ptr, ptr %8, align 8
%53 = load i32, ptr %52, align 4
%54 = icmp eq i32 %53, 1
br i1 %54, label %55, label %66
55: ; preds = %51
%56 = load ptr, ptr %10, align 8
%57 = getelementptr inbounds float, ptr %56, i64 0
%58 = load float, ptr %57, align 4
%59 = load ptr, ptr %9, align 8
%60 = getelementptr inbounds float, ptr %59, i64 0
store float %58, ptr %60, align 4
%61 = load ptr, ptr %9, align 8
%62 = getelementptr inbounds float, ptr %61, i64 0
%63 = load float, ptr %62, align 4
%64 = call float @fabs(float noundef %63)
%65 = load ptr, ptr %12, align 8
store float %64, ptr %65, align 4
br label %401
66: ; preds = %51
%67 = load ptr, ptr %8, align 8
%68 = load ptr, ptr %10, align 8
%69 = call float @sasum_(ptr noundef %67, ptr noundef %68, ptr noundef %14)
%70 = load ptr, ptr %12, align 8
store float %69, ptr %70, align 4
store i32 0, ptr @slacon_.i, align 4
br label %71
71: ; preds = %127, %66
%72 = load i32, ptr @slacon_.i, align 4
%73 = load ptr, ptr %8, align 8
%74 = load i32, ptr %73, align 4
%75 = icmp slt i32 %72, %74
br i1 %75, label %76, label %130
76: ; preds = %71
%77 = load ptr, ptr %10, align 8
%78 = load i32, ptr @slacon_.i, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds float, ptr %77, i64 %79
%81 = load float, ptr %80, align 4
%82 = fcmp oge float %81, 0.000000e+00
br i1 %82, label %83, label %86
83: ; preds = %76
%84 = load float, ptr %16, align 4
%85 = call float @fabs(float noundef %84)
br label %90
86: ; preds = %76
%87 = load float, ptr %16, align 4
%88 = call float @fabs(float noundef %87)
%89 = fneg float %88
br label %90
90: ; preds = %86, %83
%91 = phi float [ %85, %83 ], [ %89, %86 ]
%92 = load ptr, ptr %10, align 8
%93 = load i32, ptr @slacon_.i, align 4
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds float, ptr %92, i64 %94
store float %91, ptr %95, align 4
%96 = load ptr, ptr %10, align 8
%97 = load i32, ptr @slacon_.i, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds float, ptr %96, i64 %98
%100 = load float, ptr %99, align 4
%101 = fcmp oge float %100, 0.000000e+00
br i1 %101, label %102, label %111
102: ; preds = %90
%103 = load ptr, ptr %10, align 8
%104 = load i32, ptr @slacon_.i, align 4
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds float, ptr %103, i64 %105
%107 = load float, ptr %106, align 4
%108 = fpext float %107 to double
%109 = fadd double %108, 5.000000e-01
%110 = call i32 @floor(double noundef %109)
br label %121
111: ; preds = %90
%112 = load ptr, ptr %10, align 8
%113 = load i32, ptr @slacon_.i, align 4
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds float, ptr %112, i64 %114
%116 = load float, ptr %115, align 4
%117 = fpext float %116 to double
%118 = fsub double 5.000000e-01, %117
%119 = call i32 @floor(double noundef %118)
%120 = sub nsw i32 0, %119
br label %121
121: ; preds = %111, %102
%122 = phi i32 [ %110, %102 ], [ %120, %111 ]
%123 = load ptr, ptr %11, align 8
%124 = load i32, ptr @slacon_.i, align 4
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds i32, ptr %123, i64 %125
store i32 %122, ptr %126, align 4
br label %127
127: ; preds = %121
%128 = load i32, ptr @slacon_.i, align 4
%129 = add nsw i32 %128, 1
store i32 %129, ptr @slacon_.i, align 4
br label %71, !llvm.loop !8
130: ; preds = %71
%131 = load ptr, ptr %13, align 8
store i32 2, ptr %131, align 4
store i32 2, ptr @slacon_.jump, align 4
store i32 0, ptr %7, align 4
br label %403
132: ; preds = %46
%133 = load ptr, ptr %8, align 8
%134 = load ptr, ptr %10, align 8
%135 = getelementptr inbounds float, ptr %134, i64 0
%136 = call i32 @isamax_(ptr noundef %133, ptr noundef %135, ptr noundef %14)
store i32 %136, ptr @slacon_.j, align 4
%137 = load i32, ptr @slacon_.j, align 4
%138 = add nsw i32 %137, -1
store i32 %138, ptr @slacon_.j, align 4
store i32 2, ptr @slacon_.iter, align 4
br label %139
139: ; preds = %338, %132
store i32 0, ptr @slacon_.i, align 4
br label %140
140: ; preds = %151, %139
%141 = load i32, ptr @slacon_.i, align 4
%142 = load ptr, ptr %8, align 8
%143 = load i32, ptr %142, align 4
%144 = icmp slt i32 %141, %143
br i1 %144, label %145, label %154
145: ; preds = %140
%146 = load float, ptr %15, align 4
%147 = load ptr, ptr %10, align 8
%148 = load i32, ptr @slacon_.i, align 4
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds float, ptr %147, i64 %149
store float %146, ptr %150, align 4
br label %151
151: ; preds = %145
%152 = load i32, ptr @slacon_.i, align 4
%153 = add nsw i32 %152, 1
store i32 %153, ptr @slacon_.i, align 4
br label %140, !llvm.loop !9
154: ; preds = %140
%155 = load float, ptr %16, align 4
%156 = load ptr, ptr %10, align 8
%157 = load i32, ptr @slacon_.j, align 4
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds float, ptr %156, i64 %158
store float %155, ptr %159, align 4
%160 = load ptr, ptr %13, align 8
store i32 1, ptr %160, align 4
store i32 3, ptr @slacon_.jump, align 4
store i32 0, ptr %7, align 4
br label %403
161: ; preds = %47
%162 = load ptr, ptr %8, align 8
%163 = load ptr, ptr %10, align 8
%164 = load ptr, ptr %9, align 8
%165 = call i32 @scopy_(ptr noundef %162, ptr noundef %163, ptr noundef %14, ptr noundef %164, ptr noundef %14)
%166 = load ptr, ptr %12, align 8
%167 = load float, ptr %166, align 4
store float %167, ptr @slacon_.estold, align 4
%168 = load ptr, ptr %8, align 8
%169 = load ptr, ptr %9, align 8
%170 = call float @sasum_(ptr noundef %168, ptr noundef %169, ptr noundef %14)
%171 = load ptr, ptr %12, align 8
store float %170, ptr %171, align 4
store i32 0, ptr @slacon_.i, align 4
br label %172
172: ; preds = %243, %161
%173 = load i32, ptr @slacon_.i, align 4
%174 = load ptr, ptr %8, align 8
%175 = load i32, ptr %174, align 4
%176 = icmp slt i32 %173, %175
br i1 %176, label %177, label %246
177: ; preds = %172
%178 = load ptr, ptr %10, align 8
%179 = load i32, ptr @slacon_.i, align 4
%180 = sext i32 %179 to i64
%181 = getelementptr inbounds float, ptr %178, i64 %180
%182 = load float, ptr %181, align 4
%183 = fcmp oge float %182, 0.000000e+00
br i1 %183, label %184, label %187
184: ; preds = %177
%185 = load float, ptr %16, align 4
%186 = call float @fabs(float noundef %185)
br label %191
187: ; preds = %177
%188 = load float, ptr %16, align 4
%189 = call float @fabs(float noundef %188)
%190 = fneg float %189
br label %191
191: ; preds = %187, %184
%192 = phi float [ %186, %184 ], [ %190, %187 ]
%193 = fcmp oge float %192, 0.000000e+00
br i1 %193, label %194, label %213
194: ; preds = %191
%195 = load ptr, ptr %10, align 8
%196 = load i32, ptr @slacon_.i, align 4
%197 = sext i32 %196 to i64
%198 = getelementptr inbounds float, ptr %195, i64 %197
%199 = load float, ptr %198, align 4
%200 = fcmp oge float %199, 0.000000e+00
br i1 %200, label %201, label %204
201: ; preds = %194
%202 = load float, ptr %16, align 4
%203 = call float @fabs(float noundef %202)
br label %208
204: ; preds = %194
%205 = load float, ptr %16, align 4
%206 = call float @fabs(float noundef %205)
%207 = fneg float %206
br label %208
208: ; preds = %204, %201
%209 = phi float [ %203, %201 ], [ %207, %204 ]
%210 = fpext float %209 to double
%211 = fadd double %210, 5.000000e-01
%212 = call i32 @floor(double noundef %211)
br label %233
213: ; preds = %191
%214 = load ptr, ptr %10, align 8
%215 = load i32, ptr @slacon_.i, align 4
%216 = sext i32 %215 to i64
%217 = getelementptr inbounds float, ptr %214, i64 %216
%218 = load float, ptr %217, align 4
%219 = fcmp oge float %218, 0.000000e+00
br i1 %219, label %220, label %223
220: ; preds = %213
%221 = load float, ptr %16, align 4
%222 = call float @fabs(float noundef %221)
br label %227
223: ; preds = %213
%224 = load float, ptr %16, align 4
%225 = call float @fabs(float noundef %224)
%226 = fneg float %225
br label %227
227: ; preds = %223, %220
%228 = phi float [ %222, %220 ], [ %226, %223 ]
%229 = fpext float %228 to double
%230 = fsub double 5.000000e-01, %229
%231 = call i32 @floor(double noundef %230)
%232 = sub nsw i32 0, %231
br label %233
233: ; preds = %227, %208
%234 = phi i32 [ %212, %208 ], [ %232, %227 ]
%235 = load ptr, ptr %11, align 8
%236 = load i32, ptr @slacon_.i, align 4
%237 = sext i32 %236 to i64
%238 = getelementptr inbounds i32, ptr %235, i64 %237
%239 = load i32, ptr %238, align 4
%240 = icmp ne i32 %234, %239
br i1 %240, label %241, label %242
241: ; preds = %233
br label %247
242: ; preds = %233
br label %243
243: ; preds = %242
%244 = load i32, ptr @slacon_.i, align 4
%245 = add nsw i32 %244, 1
store i32 %245, ptr @slacon_.i, align 4
br label %172, !llvm.loop !10
246: ; preds = %172
br label %342
247: ; preds = %241
%248 = load ptr, ptr %12, align 8
%249 = load float, ptr %248, align 4
%250 = load float, ptr @slacon_.estold, align 4
%251 = fcmp ole float %249, %250
br i1 %251, label %252, label %253
252: ; preds = %247
br label %342
253: ; preds = %247
store i32 0, ptr @slacon_.i, align 4
br label %254
254: ; preds = %310, %253
%255 = load i32, ptr @slacon_.i, align 4
%256 = load ptr, ptr %8, align 8
%257 = load i32, ptr %256, align 4
%258 = icmp slt i32 %255, %257
br i1 %258, label %259, label %313
259: ; preds = %254
%260 = load ptr, ptr %10, align 8
%261 = load i32, ptr @slacon_.i, align 4
%262 = sext i32 %261 to i64
%263 = getelementptr inbounds float, ptr %260, i64 %262
%264 = load float, ptr %263, align 4
%265 = fcmp oge float %264, 0.000000e+00
br i1 %265, label %266, label %269
266: ; preds = %259
%267 = load float, ptr %16, align 4
%268 = call float @fabs(float noundef %267)
br label %273
269: ; preds = %259
%270 = load float, ptr %16, align 4
%271 = call float @fabs(float noundef %270)
%272 = fneg float %271
br label %273
273: ; preds = %269, %266
%274 = phi float [ %268, %266 ], [ %272, %269 ]
%275 = load ptr, ptr %10, align 8
%276 = load i32, ptr @slacon_.i, align 4
%277 = sext i32 %276 to i64
%278 = getelementptr inbounds float, ptr %275, i64 %277
store float %274, ptr %278, align 4
%279 = load ptr, ptr %10, align 8
%280 = load i32, ptr @slacon_.i, align 4
%281 = sext i32 %280 to i64
%282 = getelementptr inbounds float, ptr %279, i64 %281
%283 = load float, ptr %282, align 4
%284 = fcmp oge float %283, 0.000000e+00
br i1 %284, label %285, label %294
285: ; preds = %273
%286 = load ptr, ptr %10, align 8
%287 = load i32, ptr @slacon_.i, align 4
%288 = sext i32 %287 to i64
%289 = getelementptr inbounds float, ptr %286, i64 %288
%290 = load float, ptr %289, align 4
%291 = fpext float %290 to double
%292 = fadd double %291, 5.000000e-01
%293 = call i32 @floor(double noundef %292)
br label %304
294: ; preds = %273
%295 = load ptr, ptr %10, align 8
%296 = load i32, ptr @slacon_.i, align 4
%297 = sext i32 %296 to i64
%298 = getelementptr inbounds float, ptr %295, i64 %297
%299 = load float, ptr %298, align 4
%300 = fpext float %299 to double
%301 = fsub double 5.000000e-01, %300
%302 = call i32 @floor(double noundef %301)
%303 = sub nsw i32 0, %302
br label %304
304: ; preds = %294, %285
%305 = phi i32 [ %293, %285 ], [ %303, %294 ]
%306 = load ptr, ptr %11, align 8
%307 = load i32, ptr @slacon_.i, align 4
%308 = sext i32 %307 to i64
%309 = getelementptr inbounds i32, ptr %306, i64 %308
store i32 %305, ptr %309, align 4
br label %310
310: ; preds = %304
%311 = load i32, ptr @slacon_.i, align 4
%312 = add nsw i32 %311, 1
store i32 %312, ptr @slacon_.i, align 4
br label %254, !llvm.loop !11
313: ; preds = %254
%314 = load ptr, ptr %13, align 8
store i32 2, ptr %314, align 4
store i32 4, ptr @slacon_.jump, align 4
store i32 0, ptr %7, align 4
br label %403
315: ; preds = %48
%316 = load i32, ptr @slacon_.j, align 4
store i32 %316, ptr @slacon_.jlast, align 4
%317 = load ptr, ptr %8, align 8
%318 = load ptr, ptr %10, align 8
%319 = getelementptr inbounds float, ptr %318, i64 0
%320 = call i32 @isamax_(ptr noundef %317, ptr noundef %319, ptr noundef %14)
store i32 %320, ptr @slacon_.j, align 4
%321 = load i32, ptr @slacon_.j, align 4
%322 = add nsw i32 %321, -1
store i32 %322, ptr @slacon_.j, align 4
%323 = load ptr, ptr %10, align 8
%324 = load i32, ptr @slacon_.jlast, align 4
%325 = sext i32 %324 to i64
%326 = getelementptr inbounds float, ptr %323, i64 %325
%327 = load float, ptr %326, align 4
%328 = load ptr, ptr %10, align 8
%329 = load i32, ptr @slacon_.j, align 4
%330 = sext i32 %329 to i64
%331 = getelementptr inbounds float, ptr %328, i64 %330
%332 = load float, ptr %331, align 4
%333 = call float @fabs(float noundef %332)
%334 = fcmp une float %327, %333
br i1 %334, label %335, label %341
335: ; preds = %315
%336 = load i32, ptr @slacon_.iter, align 4
%337 = icmp slt i32 %336, 5
br i1 %337, label %338, label %341
338: ; preds = %335
%339 = load i32, ptr @slacon_.iter, align 4
%340 = add nsw i32 %339, 1
store i32 %340, ptr @slacon_.iter, align 4
br label %139
341: ; preds = %335, %315
br label %342
342: ; preds = %341, %252, %246
store float 1.000000e+00, ptr @slacon_.altsgn, align 4
store i32 1, ptr @slacon_.i, align 4
br label %343
343: ; preds = %370, %342
%344 = load i32, ptr @slacon_.i, align 4
%345 = load ptr, ptr %8, align 8
%346 = load i32, ptr %345, align 4
%347 = icmp sle i32 %344, %346
br i1 %347, label %348, label %373
348: ; preds = %343
%349 = load float, ptr @slacon_.altsgn, align 4
%350 = fpext float %349 to double
%351 = load i32, ptr @slacon_.i, align 4
%352 = sub nsw i32 %351, 1
%353 = sitofp i32 %352 to float
%354 = load ptr, ptr %8, align 8
%355 = load i32, ptr %354, align 4
%356 = sub nsw i32 %355, 1
%357 = sitofp i32 %356 to float
%358 = fdiv float %353, %357
%359 = fpext float %358 to double
%360 = fadd double %359, 1.000000e+00
%361 = fmul double %350, %360
%362 = fptrunc double %361 to float
%363 = load ptr, ptr %10, align 8
%364 = load i32, ptr @slacon_.i, align 4
%365 = sub nsw i32 %364, 1
%366 = sext i32 %365 to i64
%367 = getelementptr inbounds float, ptr %363, i64 %366
store float %362, ptr %367, align 4
%368 = load float, ptr @slacon_.altsgn, align 4
%369 = fneg float %368
store float %369, ptr @slacon_.altsgn, align 4
br label %370
370: ; preds = %348
%371 = load i32, ptr @slacon_.i, align 4
%372 = add nsw i32 %371, 1
store i32 %372, ptr @slacon_.i, align 4
br label %343, !llvm.loop !12
373: ; preds = %343
%374 = load ptr, ptr %13, align 8
store i32 1, ptr %374, align 4
store i32 5, ptr @slacon_.jump, align 4
store i32 0, ptr %7, align 4
br label %403
375: ; preds = %49
%376 = load ptr, ptr %8, align 8
%377 = load ptr, ptr %10, align 8
%378 = call float @sasum_(ptr noundef %376, ptr noundef %377, ptr noundef %14)
%379 = load ptr, ptr %8, align 8
%380 = load i32, ptr %379, align 4
%381 = mul nsw i32 %380, 3
%382 = sitofp i32 %381 to float
%383 = fdiv float %378, %382
%384 = fpext float %383 to double
%385 = fmul double %384, 2.000000e+00
%386 = fptrunc double %385 to float
store float %386, ptr %17, align 4
%387 = load float, ptr %17, align 4
%388 = load ptr, ptr %12, align 8
%389 = load float, ptr %388, align 4
%390 = fcmp ogt float %387, %389
br i1 %390, label %391, label %400
391: ; preds = %375
%392 = load ptr, ptr %8, align 8
%393 = load ptr, ptr %10, align 8
%394 = getelementptr inbounds float, ptr %393, i64 0
%395 = load ptr, ptr %9, align 8
%396 = getelementptr inbounds float, ptr %395, i64 0
%397 = call i32 @scopy_(ptr noundef %392, ptr noundef %394, ptr noundef %14, ptr noundef %396, ptr noundef %14)
%398 = load float, ptr %17, align 4
%399 = load ptr, ptr %12, align 8
store float %398, ptr %399, align 4
br label %400
400: ; preds = %391, %375
br label %401
401: ; preds = %400, %55
%402 = load ptr, ptr %13, align 8
store i32 0, ptr %402, align 4
store i32 0, ptr %7, align 4
br label %403
403: ; preds = %401, %373, %313, %154, %130, %41
%404 = load i32, ptr %7, align 4
ret i32 %404
}
declare float @fabs(float noundef) #1
declare float @sasum_(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @floor(double noundef) #1
declare i32 @isamax_(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @scopy_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm3ojwia4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@slacon_.iter = internal global i32 0, align 4
@slacon_.jump = internal global i32 0, align 4
@slacon_.jlast = internal global i32 0, align 4
@slacon_.altsgn = internal global float 0.000000e+00, align 4
@slacon_.estold = internal global float 0.000000e+00, align 4
@slacon_.i = internal global i32 0, align 4
@slacon_.j = internal global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @slacon_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca float, align 4
%16 = alloca float, align 4
%17 = alloca float, align 4
store ptr %0, ptr %8, align 8
store ptr %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store ptr %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
store i32 1, ptr %14, align 4
store float 0.000000e+00, ptr %15, align 4
store float 1.000000e+00, ptr %16, align 4
%18 = load ptr, ptr %13, align 8
%19 = load i32, ptr %18, align 4
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %46
21: ; preds = %6
store i32 0, ptr @slacon_.i, align 4
%22 = load i32, ptr @slacon_.i, align 4
%23 = load ptr, ptr %8, align 8
%24 = load i32, ptr %23, align 4
%25 = icmp slt i32 %22, %24
br i1 %25, label %.lr.ph14, label %44
.lr.ph14: ; preds = %21
br label %26
26: ; preds = %.lr.ph14, %37
%27 = load ptr, ptr %8, align 8
%28 = load i32, ptr %27, align 4
%29 = sitofp i32 %28 to float
%30 = fpext float %29 to double
%31 = fdiv double 1.000000e+00, %30
%32 = fptrunc double %31 to float
%33 = load ptr, ptr %10, align 8
%34 = load i32, ptr @slacon_.i, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds float, ptr %33, i64 %35
store float %32, ptr %36, align 4
br label %37
37: ; preds = %26
%38 = load i32, ptr @slacon_.i, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr @slacon_.i, align 4
%40 = load i32, ptr @slacon_.i, align 4
%41 = load ptr, ptr %8, align 8
%42 = load i32, ptr %41, align 4
%43 = icmp slt i32 %40, %42
br i1 %43, label %26, label %._crit_edge15, !llvm.loop !6
._crit_edge15: ; preds = %37
br label %44
44: ; preds = %._crit_edge15, %21
%45 = load ptr, ptr %13, align 8
store i32 1, ptr %45, align 4
store i32 1, ptr @slacon_.jump, align 4
store i32 0, ptr %7, align 4
br label %421
46: ; preds = %6
%47 = load i32, ptr @slacon_.jump, align 4
switch i32 %47, label %53 [
i32 1, label %48
i32 2, label %49
i32 3, label %50
i32 4, label %51
i32 5, label %52
]
48: ; preds = %46
br label %54
49: ; preds = %46
br label %138
50: ; preds = %46
br label %170
51: ; preds = %46
br label %330
52: ; preds = %46
br label %393
53: ; preds = %46
br label %54
54: ; preds = %53, %48
%55 = load ptr, ptr %8, align 8
%56 = load i32, ptr %55, align 4
%57 = icmp eq i32 %56, 1
br i1 %57, label %58, label %69
58: ; preds = %54
%59 = load ptr, ptr %10, align 8
%60 = getelementptr inbounds float, ptr %59, i64 0
%61 = load float, ptr %60, align 4
%62 = load ptr, ptr %9, align 8
%63 = getelementptr inbounds float, ptr %62, i64 0
store float %61, ptr %63, align 4
%64 = load ptr, ptr %9, align 8
%65 = getelementptr inbounds float, ptr %64, i64 0
%66 = load float, ptr %65, align 4
%67 = call float @fabs(float noundef %66)
%68 = load ptr, ptr %12, align 8
store float %67, ptr %68, align 4
br label %419
69: ; preds = %54
%70 = load ptr, ptr %8, align 8
%71 = load ptr, ptr %10, align 8
%72 = call float @sasum_(ptr noundef %70, ptr noundef %71, ptr noundef %14)
%73 = load ptr, ptr %12, align 8
store float %72, ptr %73, align 4
store i32 0, ptr @slacon_.i, align 4
%74 = load i32, ptr @slacon_.i, align 4
%75 = load ptr, ptr %8, align 8
%76 = load i32, ptr %75, align 4
%77 = icmp slt i32 %74, %76
br i1 %77, label %.lr.ph11, label %136
.lr.ph11: ; preds = %69
br label %78
78: ; preds = %.lr.ph11, %129
%79 = load ptr, ptr %10, align 8
%80 = load i32, ptr @slacon_.i, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds float, ptr %79, i64 %81
%83 = load float, ptr %82, align 4
%84 = fcmp oge float %83, 0.000000e+00
br i1 %84, label %85, label %88
85: ; preds = %78
%86 = load float, ptr %16, align 4
%87 = call float @fabs(float noundef %86)
br label %92
88: ; preds = %78
%89 = load float, ptr %16, align 4
%90 = call float @fabs(float noundef %89)
%91 = fneg float %90
br label %92
92: ; preds = %88, %85
%93 = phi float [ %87, %85 ], [ %91, %88 ]
%94 = load ptr, ptr %10, align 8
%95 = load i32, ptr @slacon_.i, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds float, ptr %94, i64 %96
store float %93, ptr %97, align 4
%98 = load ptr, ptr %10, align 8
%99 = load i32, ptr @slacon_.i, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds float, ptr %98, i64 %100
%102 = load float, ptr %101, align 4
%103 = fcmp oge float %102, 0.000000e+00
br i1 %103, label %104, label %113
104: ; preds = %92
%105 = load ptr, ptr %10, align 8
%106 = load i32, ptr @slacon_.i, align 4
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds float, ptr %105, i64 %107
%109 = load float, ptr %108, align 4
%110 = fpext float %109 to double
%111 = fadd double %110, 5.000000e-01
%112 = call i32 @floor(double noundef %111)
br label %123
113: ; preds = %92
%114 = load ptr, ptr %10, align 8
%115 = load i32, ptr @slacon_.i, align 4
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds float, ptr %114, i64 %116
%118 = load float, ptr %117, align 4
%119 = fpext float %118 to double
%120 = fsub double 5.000000e-01, %119
%121 = call i32 @floor(double noundef %120)
%122 = sub nsw i32 0, %121
br label %123
123: ; preds = %113, %104
%124 = phi i32 [ %112, %104 ], [ %122, %113 ]
%125 = load ptr, ptr %11, align 8
%126 = load i32, ptr @slacon_.i, align 4
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds i32, ptr %125, i64 %127
store i32 %124, ptr %128, align 4
br label %129
129: ; preds = %123
%130 = load i32, ptr @slacon_.i, align 4
%131 = add nsw i32 %130, 1
store i32 %131, ptr @slacon_.i, align 4
%132 = load i32, ptr @slacon_.i, align 4
%133 = load ptr, ptr %8, align 8
%134 = load i32, ptr %133, align 4
%135 = icmp slt i32 %132, %134
br i1 %135, label %78, label %._crit_edge12, !llvm.loop !8
._crit_edge12: ; preds = %129
br label %136
136: ; preds = %._crit_edge12, %69
%137 = load ptr, ptr %13, align 8
store i32 2, ptr %137, align 4
store i32 2, ptr @slacon_.jump, align 4
store i32 0, ptr %7, align 4
br label %421
138: ; preds = %49
%139 = load ptr, ptr %8, align 8
%140 = load ptr, ptr %10, align 8
%141 = getelementptr inbounds float, ptr %140, i64 0
%142 = call i32 @isamax_(ptr noundef %139, ptr noundef %141, ptr noundef %14)
store i32 %142, ptr @slacon_.j, align 4
%143 = load i32, ptr @slacon_.j, align 4
%144 = add nsw i32 %143, -1
store i32 %144, ptr @slacon_.j, align 4
store i32 2, ptr @slacon_.iter, align 4
br label %145
145: ; preds = %353, %138
store i32 0, ptr @slacon_.i, align 4
%146 = load i32, ptr @slacon_.i, align 4
%147 = load ptr, ptr %8, align 8
%148 = load i32, ptr %147, align 4
%149 = icmp slt i32 %146, %148
br i1 %149, label %.lr.ph8, label %163
.lr.ph8: ; preds = %145
br label %150
150: ; preds = %.lr.ph8, %156
%151 = load float, ptr %15, align 4
%152 = load ptr, ptr %10, align 8
%153 = load i32, ptr @slacon_.i, align 4
%154 = sext i32 %153 to i64
%155 = getelementptr inbounds float, ptr %152, i64 %154
store float %151, ptr %155, align 4
br label %156
156: ; preds = %150
%157 = load i32, ptr @slacon_.i, align 4
%158 = add nsw i32 %157, 1
store i32 %158, ptr @slacon_.i, align 4
%159 = load i32, ptr @slacon_.i, align 4
%160 = load ptr, ptr %8, align 8
%161 = load i32, ptr %160, align 4
%162 = icmp slt i32 %159, %161
br i1 %162, label %150, label %._crit_edge9, !llvm.loop !9
._crit_edge9: ; preds = %156
br label %163
163: ; preds = %._crit_edge9, %145
%164 = load float, ptr %16, align 4
%165 = load ptr, ptr %10, align 8
%166 = load i32, ptr @slacon_.j, align 4
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds float, ptr %165, i64 %167
store float %164, ptr %168, align 4
%169 = load ptr, ptr %13, align 8
store i32 1, ptr %169, align 4
store i32 3, ptr @slacon_.jump, align 4
store i32 0, ptr %7, align 4
br label %421
170: ; preds = %50
%171 = load ptr, ptr %8, align 8
%172 = load ptr, ptr %10, align 8
%173 = load ptr, ptr %9, align 8
%174 = call i32 @scopy_(ptr noundef %171, ptr noundef %172, ptr noundef %14, ptr noundef %173, ptr noundef %14)
%175 = load ptr, ptr %12, align 8
%176 = load float, ptr %175, align 4
store float %176, ptr @slacon_.estold, align 4
%177 = load ptr, ptr %8, align 8
%178 = load ptr, ptr %9, align 8
%179 = call float @sasum_(ptr noundef %177, ptr noundef %178, ptr noundef %14)
%180 = load ptr, ptr %12, align 8
store float %179, ptr %180, align 4
store i32 0, ptr @slacon_.i, align 4
%181 = load i32, ptr @slacon_.i, align 4
%182 = load ptr, ptr %8, align 8
%183 = load i32, ptr %182, align 4
%184 = icmp slt i32 %181, %183
br i1 %184, label %.lr.ph, label %258
.lr.ph: ; preds = %170
br label %185
185: ; preds = %.lr.ph, %251
%186 = load ptr, ptr %10, align 8
%187 = load i32, ptr @slacon_.i, align 4
%188 = sext i32 %187 to i64
%189 = getelementptr inbounds float, ptr %186, i64 %188
%190 = load float, ptr %189, align 4
%191 = fcmp oge float %190, 0.000000e+00
br i1 %191, label %192, label %195
192: ; preds = %185
%193 = load float, ptr %16, align 4
%194 = call float @fabs(float noundef %193)
br label %199
195: ; preds = %185
%196 = load float, ptr %16, align 4
%197 = call float @fabs(float noundef %196)
%198 = fneg float %197
br label %199
199: ; preds = %195, %192
%200 = phi float [ %194, %192 ], [ %198, %195 ]
%201 = fcmp oge float %200, 0.000000e+00
br i1 %201, label %202, label %221
202: ; preds = %199
%203 = load ptr, ptr %10, align 8
%204 = load i32, ptr @slacon_.i, align 4
%205 = sext i32 %204 to i64
%206 = getelementptr inbounds float, ptr %203, i64 %205
%207 = load float, ptr %206, align 4
%208 = fcmp oge float %207, 0.000000e+00
br i1 %208, label %209, label %212
209: ; preds = %202
%210 = load float, ptr %16, align 4
%211 = call float @fabs(float noundef %210)
br label %216
212: ; preds = %202
%213 = load float, ptr %16, align 4
%214 = call float @fabs(float noundef %213)
%215 = fneg float %214
br label %216
216: ; preds = %212, %209
%217 = phi float [ %211, %209 ], [ %215, %212 ]
%218 = fpext float %217 to double
%219 = fadd double %218, 5.000000e-01
%220 = call i32 @floor(double noundef %219)
br label %241
221: ; preds = %199
%222 = load ptr, ptr %10, align 8
%223 = load i32, ptr @slacon_.i, align 4
%224 = sext i32 %223 to i64
%225 = getelementptr inbounds float, ptr %222, i64 %224
%226 = load float, ptr %225, align 4
%227 = fcmp oge float %226, 0.000000e+00
br i1 %227, label %228, label %231
228: ; preds = %221
%229 = load float, ptr %16, align 4
%230 = call float @fabs(float noundef %229)
br label %235
231: ; preds = %221
%232 = load float, ptr %16, align 4
%233 = call float @fabs(float noundef %232)
%234 = fneg float %233
br label %235
235: ; preds = %231, %228
%236 = phi float [ %230, %228 ], [ %234, %231 ]
%237 = fpext float %236 to double
%238 = fsub double 5.000000e-01, %237
%239 = call i32 @floor(double noundef %238)
%240 = sub nsw i32 0, %239
br label %241
241: ; preds = %235, %216
%242 = phi i32 [ %220, %216 ], [ %240, %235 ]
%243 = load ptr, ptr %11, align 8
%244 = load i32, ptr @slacon_.i, align 4
%245 = sext i32 %244 to i64
%246 = getelementptr inbounds i32, ptr %243, i64 %245
%247 = load i32, ptr %246, align 4
%248 = icmp ne i32 %242, %247
br i1 %248, label %249, label %250
249: ; preds = %241
br label %259
250: ; preds = %241
br label %251
251: ; preds = %250
%252 = load i32, ptr @slacon_.i, align 4
%253 = add nsw i32 %252, 1
store i32 %253, ptr @slacon_.i, align 4
%254 = load i32, ptr @slacon_.i, align 4
%255 = load ptr, ptr %8, align 8
%256 = load i32, ptr %255, align 4
%257 = icmp slt i32 %254, %256
br i1 %257, label %185, label %._crit_edge, !llvm.loop !10
._crit_edge: ; preds = %251
br label %258
258: ; preds = %._crit_edge, %170
br label %357
259: ; preds = %249
%260 = load ptr, ptr %12, align 8
%261 = load float, ptr %260, align 4
%262 = load float, ptr @slacon_.estold, align 4
%263 = fcmp ole float %261, %262
br i1 %263, label %264, label %265
264: ; preds = %259
br label %357
265: ; preds = %259
store i32 0, ptr @slacon_.i, align 4
%266 = load i32, ptr @slacon_.i, align 4
%267 = load ptr, ptr %8, align 8
%268 = load i32, ptr %267, align 4
%269 = icmp slt i32 %266, %268
br i1 %269, label %.lr.ph2, label %328
.lr.ph2: ; preds = %265
br label %270
270: ; preds = %.lr.ph2, %321
%271 = load ptr, ptr %10, align 8
%272 = load i32, ptr @slacon_.i, align 4
%273 = sext i32 %272 to i64
%274 = getelementptr inbounds float, ptr %271, i64 %273
%275 = load float, ptr %274, align 4
%276 = fcmp oge float %275, 0.000000e+00
br i1 %276, label %277, label %280
277: ; preds = %270
%278 = load float, ptr %16, align 4
%279 = call float @fabs(float noundef %278)
br label %284
280: ; preds = %270
%281 = load float, ptr %16, align 4
%282 = call float @fabs(float noundef %281)
%283 = fneg float %282
br label %284
284: ; preds = %280, %277
%285 = phi float [ %279, %277 ], [ %283, %280 ]
%286 = load ptr, ptr %10, align 8
%287 = load i32, ptr @slacon_.i, align 4
%288 = sext i32 %287 to i64
%289 = getelementptr inbounds float, ptr %286, i64 %288
store float %285, ptr %289, align 4
%290 = load ptr, ptr %10, align 8
%291 = load i32, ptr @slacon_.i, align 4
%292 = sext i32 %291 to i64
%293 = getelementptr inbounds float, ptr %290, i64 %292
%294 = load float, ptr %293, align 4
%295 = fcmp oge float %294, 0.000000e+00
br i1 %295, label %296, label %305
296: ; preds = %284
%297 = load ptr, ptr %10, align 8
%298 = load i32, ptr @slacon_.i, align 4
%299 = sext i32 %298 to i64
%300 = getelementptr inbounds float, ptr %297, i64 %299
%301 = load float, ptr %300, align 4
%302 = fpext float %301 to double
%303 = fadd double %302, 5.000000e-01
%304 = call i32 @floor(double noundef %303)
br label %315
305: ; preds = %284
%306 = load ptr, ptr %10, align 8
%307 = load i32, ptr @slacon_.i, align 4
%308 = sext i32 %307 to i64
%309 = getelementptr inbounds float, ptr %306, i64 %308
%310 = load float, ptr %309, align 4
%311 = fpext float %310 to double
%312 = fsub double 5.000000e-01, %311
%313 = call i32 @floor(double noundef %312)
%314 = sub nsw i32 0, %313
br label %315
315: ; preds = %305, %296
%316 = phi i32 [ %304, %296 ], [ %314, %305 ]
%317 = load ptr, ptr %11, align 8
%318 = load i32, ptr @slacon_.i, align 4
%319 = sext i32 %318 to i64
%320 = getelementptr inbounds i32, ptr %317, i64 %319
store i32 %316, ptr %320, align 4
br label %321
321: ; preds = %315
%322 = load i32, ptr @slacon_.i, align 4
%323 = add nsw i32 %322, 1
store i32 %323, ptr @slacon_.i, align 4
%324 = load i32, ptr @slacon_.i, align 4
%325 = load ptr, ptr %8, align 8
%326 = load i32, ptr %325, align 4
%327 = icmp slt i32 %324, %326
br i1 %327, label %270, label %._crit_edge3, !llvm.loop !11
._crit_edge3: ; preds = %321
br label %328
328: ; preds = %._crit_edge3, %265
%329 = load ptr, ptr %13, align 8
store i32 2, ptr %329, align 4
store i32 4, ptr @slacon_.jump, align 4
store i32 0, ptr %7, align 4
br label %421
330: ; preds = %51
%331 = load i32, ptr @slacon_.j, align 4
store i32 %331, ptr @slacon_.jlast, align 4
%332 = load ptr, ptr %8, align 8
%333 = load ptr, ptr %10, align 8
%334 = getelementptr inbounds float, ptr %333, i64 0
%335 = call i32 @isamax_(ptr noundef %332, ptr noundef %334, ptr noundef %14)
store i32 %335, ptr @slacon_.j, align 4
%336 = load i32, ptr @slacon_.j, align 4
%337 = add nsw i32 %336, -1
store i32 %337, ptr @slacon_.j, align 4
%338 = load ptr, ptr %10, align 8
%339 = load i32, ptr @slacon_.jlast, align 4
%340 = sext i32 %339 to i64
%341 = getelementptr inbounds float, ptr %338, i64 %340
%342 = load float, ptr %341, align 4
%343 = load ptr, ptr %10, align 8
%344 = load i32, ptr @slacon_.j, align 4
%345 = sext i32 %344 to i64
%346 = getelementptr inbounds float, ptr %343, i64 %345
%347 = load float, ptr %346, align 4
%348 = call float @fabs(float noundef %347)
%349 = fcmp une float %342, %348
br i1 %349, label %350, label %356
350: ; preds = %330
%351 = load i32, ptr @slacon_.iter, align 4
%352 = icmp slt i32 %351, 5
br i1 %352, label %353, label %356
353: ; preds = %350
%354 = load i32, ptr @slacon_.iter, align 4
%355 = add nsw i32 %354, 1
store i32 %355, ptr @slacon_.iter, align 4
br label %145
356: ; preds = %350, %330
br label %357
357: ; preds = %356, %264, %258
store float 1.000000e+00, ptr @slacon_.altsgn, align 4
store i32 1, ptr @slacon_.i, align 4
%358 = load i32, ptr @slacon_.i, align 4
%359 = load ptr, ptr %8, align 8
%360 = load i32, ptr %359, align 4
%361 = icmp sle i32 %358, %360
br i1 %361, label %.lr.ph5, label %391
.lr.ph5: ; preds = %357
br label %362
362: ; preds = %.lr.ph5, %384
%363 = load float, ptr @slacon_.altsgn, align 4
%364 = fpext float %363 to double
%365 = load i32, ptr @slacon_.i, align 4
%366 = sub nsw i32 %365, 1
%367 = sitofp i32 %366 to float
%368 = load ptr, ptr %8, align 8
%369 = load i32, ptr %368, align 4
%370 = sub nsw i32 %369, 1
%371 = sitofp i32 %370 to float
%372 = fdiv float %367, %371
%373 = fpext float %372 to double
%374 = fadd double %373, 1.000000e+00
%375 = fmul double %364, %374
%376 = fptrunc double %375 to float
%377 = load ptr, ptr %10, align 8
%378 = load i32, ptr @slacon_.i, align 4
%379 = sub nsw i32 %378, 1
%380 = sext i32 %379 to i64
%381 = getelementptr inbounds float, ptr %377, i64 %380
store float %376, ptr %381, align 4
%382 = load float, ptr @slacon_.altsgn, align 4
%383 = fneg float %382
store float %383, ptr @slacon_.altsgn, align 4
br label %384
384: ; preds = %362
%385 = load i32, ptr @slacon_.i, align 4
%386 = add nsw i32 %385, 1
store i32 %386, ptr @slacon_.i, align 4
%387 = load i32, ptr @slacon_.i, align 4
%388 = load ptr, ptr %8, align 8
%389 = load i32, ptr %388, align 4
%390 = icmp sle i32 %387, %389
br i1 %390, label %362, label %._crit_edge6, !llvm.loop !12
._crit_edge6: ; preds = %384
br label %391
391: ; preds = %._crit_edge6, %357
%392 = load ptr, ptr %13, align 8
store i32 1, ptr %392, align 4
store i32 5, ptr @slacon_.jump, align 4
store i32 0, ptr %7, align 4
br label %421
393: ; preds = %52
%394 = load ptr, ptr %8, align 8
%395 = load ptr, ptr %10, align 8
%396 = call float @sasum_(ptr noundef %394, ptr noundef %395, ptr noundef %14)
%397 = load ptr, ptr %8, align 8
%398 = load i32, ptr %397, align 4
%399 = mul nsw i32 %398, 3
%400 = sitofp i32 %399 to float
%401 = fdiv float %396, %400
%402 = fpext float %401 to double
%403 = fmul double %402, 2.000000e+00
%404 = fptrunc double %403 to float
store float %404, ptr %17, align 4
%405 = load float, ptr %17, align 4
%406 = load ptr, ptr %12, align 8
%407 = load float, ptr %406, align 4
%408 = fcmp ogt float %405, %407
br i1 %408, label %409, label %418
409: ; preds = %393
%410 = load ptr, ptr %8, align 8
%411 = load ptr, ptr %10, align 8
%412 = getelementptr inbounds float, ptr %411, i64 0
%413 = load ptr, ptr %9, align 8
%414 = getelementptr inbounds float, ptr %413, i64 0
%415 = call i32 @scopy_(ptr noundef %410, ptr noundef %412, ptr noundef %14, ptr noundef %414, ptr noundef %14)
%416 = load float, ptr %17, align 4
%417 = load ptr, ptr %12, align 8
store float %416, ptr %417, align 4
br label %418
418: ; preds = %409, %393
br label %419
419: ; preds = %418, %58
%420 = load ptr, ptr %13, align 8
store i32 0, ptr %420, align 4
store i32 0, ptr %7, align 4
br label %421
421: ; preds = %419, %391, %328, %163, %136, %44
%422 = load i32, ptr %7, align 4
ret i32 %422
}
declare float @fabs(float noundef) #1
declare float @sasum_(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @floor(double noundef) #1
declare i32 @isamax_(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @scopy_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmp82rib1c_.c'
source_filename = "/tmp/tmp82rib1c_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stripTrailingSpace(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @strlen(ptr noundef %4)
%6 = sub nsw i32 %5, 1
store i32 %6, ptr %3, align 4
br label %7
7: ; preds = %20, %1
%8 = load i32, ptr %3, align 4
%9 = icmp sge i32 %8, 0
br i1 %9, label %10, label %18
10: ; preds = %7
%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 = call i64 @isspace(i8 noundef signext %15)
%17 = icmp ne i64 %16, 0
br label %18
18: ; preds = %10, %7
%19 = phi i1 [ false, %7 ], [ %17, %10 ]
br i1 %19, label %20, label %23
20: ; preds = %18
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %21, -1
store i32 %22, ptr %3, align 4
br label %7, !llvm.loop !6
23: ; preds = %18
%24 = load ptr, ptr %2, align 8
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %24, i64 %27
store i8 0, ptr %28, align 1
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i64 @isspace(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp82rib1c_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stripTrailingSpace(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @strlen(ptr noundef %4)
%6 = sub nsw i32 %5, 1
store i32 %6, ptr %3, align 4
br label %7
7: ; preds = %20, %1
%8 = load i32, ptr %3, align 4
%9 = icmp sge i32 %8, 0
br i1 %9, label %10, label %18
10: ; preds = %7
%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 = call i64 @isspace(i8 noundef signext %15)
%17 = icmp ne i64 %16, 0
br label %18
18: ; preds = %10, %7
%19 = phi i1 [ false, %7 ], [ %17, %10 ]
br i1 %19, label %20, label %23
20: ; preds = %18
%21 = load i32, ptr %3, align 4
%22 = add nsw i32 %21, -1
store i32 %22, ptr %3, align 4
br label %7, !llvm.loop !6
23: ; preds = %18
%24 = load ptr, ptr %2, align 8
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %24, i64 %27
store i8 0, ptr %28, align 1
ret void
}
declare i32 @strlen(ptr noundef) #1
declare i64 @isspace(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpmdwogsjd.c'
source_filename = "/tmp/tmpmdwogsjd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"%d files %g Kb\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printDiskUsage(i32 noundef %0, double noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca double, align 8
store i32 %0, ptr %3, align 4
store double %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = load double, ptr %4, align 8
%7 = fdiv double %6, 1.024000e+03
%8 = call i32 @printf(ptr noundef @.str, i32 noundef %5, double noundef %7)
ret void
}
declare i32 @printf(ptr noundef, i32 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/tmpmdwogsjd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"%d files %g Kb\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printDiskUsage(i32 noundef %0, double noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca double, align 8
store i32 %0, ptr %3, align 4
store double %1, ptr %4, align 8
%5 = load i32, ptr %3, align 4
%6 = load double, ptr %4, align 8
%7 = fdiv double %6, 1.024000e+03
%8 = call i32 @printf(ptr noundef @.str, i32 noundef %5, double noundef %7)
ret void
}
declare i32 @printf(ptr noundef, i32 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/tmp7f780iew.c'
source_filename = "/tmp/tmp7f780iew.c"
target datalayout = "e-m:e-p270: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/tmp7f780iew.c"
target datalayout = "e-m:e-p270: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/tmpz_zcu2j_.c'
source_filename = "/tmp/tmpz_zcu2j_.c"
target datalayout = "e-m:e-p270: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.str1 = private unnamed_addr constant [8 x i8] c"Testing\00", align 1
@__const.main.str2 = private unnamed_addr constant [9 x i8] c"gvcqable\00", align 1
@__const.main.str3 = private unnamed_addr constant [14 x i8] c"riodsgholskdf\00", align 1
@__const.main.str4 = private unnamed_addr constant [11 x i8] c"Azxczxczxc\00", align 1
@.str = private unnamed_addr constant [43 x i8] c"Position of '%c' in (-1 means not found):\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"<%s> = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca [8 x i8], align 1
%4 = alloca [9 x i8], align 1
%5 = alloca [14 x i8], align 1
%6 = alloca [11 x i8], align 1
store i32 0, ptr %1, align 4
store i8 103, ptr %2, align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.str1, i64 8, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %4, ptr align 1 @__const.main.str2, i64 9, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %5, ptr align 1 @__const.main.str3, i64 14, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %6, ptr align 1 @__const.main.str4, i64 11, i1 false)
%7 = load i8, ptr %2, align 1
%8 = sext i8 %7 to i32
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %8)
%10 = getelementptr inbounds [8 x i8], ptr %3, i64 0, i64 0
%11 = getelementptr inbounds [8 x i8], ptr %3, i64 0, i64 0
%12 = load i8, ptr %2, align 1
%13 = call i32 @string_find(ptr noundef %11, i8 noundef signext %12)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %10, i32 noundef %13)
%15 = getelementptr inbounds [9 x i8], ptr %4, i64 0, i64 0
%16 = getelementptr inbounds [9 x i8], ptr %4, i64 0, i64 0
%17 = load i8, ptr %2, align 1
%18 = call i32 @string_find(ptr noundef %16, i8 noundef signext %17)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %15, i32 noundef %18)
%20 = getelementptr inbounds [14 x i8], ptr %5, i64 0, i64 0
%21 = getelementptr inbounds [14 x i8], ptr %5, i64 0, i64 0
%22 = load i8, ptr %2, align 1
%23 = call i32 @string_find(ptr noundef %21, i8 noundef signext %22)
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %20, i32 noundef %23)
%25 = getelementptr inbounds [11 x i8], ptr %6, i64 0, i64 0
%26 = getelementptr inbounds [11 x i8], ptr %6, i64 0, i64 0
%27 = load i8, ptr %2, align 1
%28 = call i32 @string_find(ptr noundef %26, i8 noundef signext %27)
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %25, i32 noundef %28)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
declare i32 @string_find(ptr noundef, i8 noundef signext) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz_zcu2j_.c"
target datalayout = "e-m:e-p270: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.str1 = private unnamed_addr constant [8 x i8] c"Testing\00", align 1
@__const.main.str2 = private unnamed_addr constant [9 x i8] c"gvcqable\00", align 1
@__const.main.str3 = private unnamed_addr constant [14 x i8] c"riodsgholskdf\00", align 1
@__const.main.str4 = private unnamed_addr constant [11 x i8] c"Azxczxczxc\00", align 1
@.str = private unnamed_addr constant [43 x i8] c"Position of '%c' in (-1 means not found):\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"<%s> = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca [8 x i8], align 1
%4 = alloca [9 x i8], align 1
%5 = alloca [14 x i8], align 1
%6 = alloca [11 x i8], align 1
store i32 0, ptr %1, align 4
store i8 103, ptr %2, align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.str1, i64 8, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %4, ptr align 1 @__const.main.str2, i64 9, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %5, ptr align 1 @__const.main.str3, i64 14, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %6, ptr align 1 @__const.main.str4, i64 11, i1 false)
%7 = load i8, ptr %2, align 1
%8 = sext i8 %7 to i32
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %8)
%10 = getelementptr inbounds [8 x i8], ptr %3, i64 0, i64 0
%11 = getelementptr inbounds [8 x i8], ptr %3, i64 0, i64 0
%12 = load i8, ptr %2, align 1
%13 = call i32 @string_find(ptr noundef %11, i8 noundef signext %12)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %10, i32 noundef %13)
%15 = getelementptr inbounds [9 x i8], ptr %4, i64 0, i64 0
%16 = getelementptr inbounds [9 x i8], ptr %4, i64 0, i64 0
%17 = load i8, ptr %2, align 1
%18 = call i32 @string_find(ptr noundef %16, i8 noundef signext %17)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %15, i32 noundef %18)
%20 = getelementptr inbounds [14 x i8], ptr %5, i64 0, i64 0
%21 = getelementptr inbounds [14 x i8], ptr %5, i64 0, i64 0
%22 = load i8, ptr %2, align 1
%23 = call i32 @string_find(ptr noundef %21, i8 noundef signext %22)
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %20, i32 noundef %23)
%25 = getelementptr inbounds [11 x i8], ptr %6, i64 0, i64 0
%26 = getelementptr inbounds [11 x i8], ptr %6, i64 0, i64 0
%27 = load i8, ptr %2, align 1
%28 = call i32 @string_find(ptr noundef %26, i8 noundef signext %27)
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %25, i32 noundef %28)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
declare i32 @string_find(ptr noundef, i8 noundef signext) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp53w8x56o.c'
source_filename = "/tmp/tmp53w8x56o.c"
target datalayout = "e-m:e-p270: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/tmp53w8x56o.c"
target datalayout = "e-m:e-p270: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/tmp36j3oeny.c'
source_filename = "/tmp/tmp36j3oeny.c"
target datalayout = "e-m:e-p270: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 { double, i32 }
@CLOCK_MONOTONIC = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @now() #0 {
%1 = alloca %struct.timespec, align 8
%2 = load i32, ptr @CLOCK_MONOTONIC, align 4
%3 = call i32 @clock_gettime(i32 noundef %2, ptr noundef %1)
%4 = getelementptr inbounds %struct.timespec, ptr %1, i32 0, i32 0
%5 = load double, ptr %4, align 8
%6 = getelementptr inbounds %struct.timespec, ptr %1, i32 0, i32 1
%7 = load i32, ptr %6, align 8
%8 = sitofp i32 %7 to double
%9 = fdiv double %8, 1.000000e+09
%10 = fadd double %5, %9
ret double %10
}
declare i32 @clock_gettime(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/tmp36j3oeny.c"
target datalayout = "e-m:e-p270: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 { double, i32 }
@CLOCK_MONOTONIC = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @now() #0 {
%1 = alloca %struct.timespec, align 8
%2 = load i32, ptr @CLOCK_MONOTONIC, align 4
%3 = call i32 @clock_gettime(i32 noundef %2, ptr noundef %1)
%4 = getelementptr inbounds %struct.timespec, ptr %1, i32 0, i32 0
%5 = load double, ptr %4, align 8
%6 = getelementptr inbounds %struct.timespec, ptr %1, i32 0, i32 1
%7 = load i32, ptr %6, align 8
%8 = sitofp i32 %7 to double
%9 = fdiv double %8, 1.000000e+09
%10 = fadd double %5, %9
ret double %10
}
declare i32 @clock_gettime(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/tmp0dhuhbr7.c'
source_filename = "/tmp/tmp0dhuhbr7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getargs(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %6, align 4
store ptr null, ptr %9, align 8
store i32 0, ptr %10, align 4
store i32 0, ptr %11, align 4
%15 = load ptr, ptr %3, align 8
store ptr %15, ptr %7, align 8
store ptr null, ptr %8, align 8
br label %16
16: ; preds = %2, %85
%17 = load ptr, ptr %3, align 8
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
switch i32 %19, label %29 [
i32 34, label %20
i32 32, label %23
]
20: ; preds = %16
%21 = load i32, ptr %6, align 4
%22 = xor i32 %21, 1
store i32 %22, ptr %6, align 4
br label %29
23: ; preds = %16
%24 = load i32, ptr %6, align 4
%25 = icmp ne i32 %24, 0
br i1 %25, label %28, label %26
26: ; preds = %23
%27 = load ptr, ptr %3, align 8
store ptr %27, ptr %8, align 8
br label %28
28: ; preds = %26, %23
br label %29
29: ; preds = %16, %28, %20
%30 = load ptr, ptr %3, align 8
%31 = getelementptr inbounds i8, ptr %30, i32 1
store ptr %31, ptr %3, align 8
%32 = load ptr, ptr %3, align 8
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %29
%37 = load ptr, ptr %3, align 8
store ptr %37, ptr %8, align 8
br label %38
38: ; preds = %36, %29
%39 = load ptr, ptr %8, align 8
%40 = icmp ne ptr %39, null
br i1 %40, label %41, label %80
41: ; preds = %38
%42 = load ptr, ptr %8, align 8
%43 = load ptr, ptr %7, align 8
%44 = ptrtoint ptr %42 to i64
%45 = ptrtoint ptr %43 to i64
%46 = sub i64 %44, %45
%47 = trunc i64 %46 to i32
store i32 %47, ptr %12, align 4
%48 = load i32, ptr %12, align 4
%49 = add nsw i32 %48, 1
%50 = zext i32 %49 to i64
%51 = call ptr @llvm.stacksave()
store ptr %51, ptr %13, align 8
%52 = alloca i8, i64 %50, align 16
store i64 %50, ptr %14, align 8
%53 = load ptr, ptr %7, align 8
%54 = load i32, ptr %12, align 4
%55 = call i32 @strncpy(ptr noundef %52, ptr noundef %53, i32 noundef %54)
%56 = load i32, ptr %12, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i8, ptr %52, i64 %57
store i8 0, ptr %58, align 1
store ptr null, ptr %8, align 8
%59 = load ptr, ptr %3, align 8
store ptr %59, ptr %7, align 8
%60 = load i32, ptr %10, align 4
store i32 %60, ptr %11, align 4
%61 = load i32, ptr %10, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %10, align 4
%63 = load ptr, ptr %9, align 8
%64 = load i32, ptr %10, align 4
%65 = sext i32 %64 to i64
%66 = mul i64 8, %65
%67 = trunc i64 %66 to i32
%68 = call i64 @realloc(ptr noundef %63, i32 noundef %67)
%69 = inttoptr i64 %68 to ptr
store ptr %69, ptr %9, align 8
%70 = load ptr, ptr %9, align 8
%71 = icmp ne ptr %70, null
%72 = zext i1 %71 to i32
%73 = call i32 @assert(i32 noundef %72)
%74 = call ptr @strdup(ptr noundef %52)
%75 = load ptr, ptr %9, align 8
%76 = load i32, ptr %11, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds ptr, ptr %75, i64 %77
store ptr %74, ptr %78, align 8
%79 = load ptr, ptr %13, align 8
call void @llvm.stackrestore(ptr %79)
br label %80
80: ; preds = %41, %38
%81 = load ptr, ptr %3, align 8
%82 = load i8, ptr %81, align 1
%83 = icmp ne i8 %82, 0
br i1 %83, label %85, label %84
84: ; preds = %80
br label %86
85: ; preds = %80
br label %16
86: ; preds = %84
%87 = load i32, ptr %10, align 4
store i32 %87, ptr %11, align 4
%88 = load i32, ptr %10, align 4
%89 = add nsw i32 %88, 1
store i32 %89, ptr %10, align 4
%90 = load ptr, ptr %9, align 8
%91 = load i32, ptr %10, align 4
%92 = sext i32 %91 to i64
%93 = mul i64 8, %92
%94 = trunc i64 %93 to i32
%95 = call i64 @realloc(ptr noundef %90, i32 noundef %94)
%96 = inttoptr i64 %95 to ptr
store ptr %96, ptr %9, align 8
%97 = load ptr, ptr %9, align 8
%98 = icmp ne ptr %97, null
%99 = zext i1 %98 to i32
%100 = call i32 @assert(i32 noundef %99)
%101 = load ptr, ptr %9, align 8
%102 = load i32, ptr %11, align 4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds ptr, ptr %101, i64 %103
store ptr null, ptr %104, align 8
%105 = load ptr, ptr %9, align 8
%106 = load ptr, ptr %4, align 8
store ptr %105, ptr %106, align 8
%107 = load i32, ptr %10, align 4
%108 = sub nsw i32 %107, 1
ret i32 %108
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #2
declare i64 @realloc(ptr noundef, i32 noundef) #2
declare i32 @assert(i32 noundef) #2
declare ptr @strdup(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0dhuhbr7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getargs(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %6, align 4
store ptr null, ptr %9, align 8
store i32 0, ptr %10, align 4
store i32 0, ptr %11, align 4
%15 = load ptr, ptr %3, align 8
store ptr %15, ptr %7, align 8
store ptr null, ptr %8, align 8
br label %16
16: ; preds = %80, %2
%17 = load ptr, ptr %3, align 8
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
switch i32 %19, label %29 [
i32 34, label %20
i32 32, label %23
]
20: ; preds = %16
%21 = load i32, ptr %6, align 4
%22 = xor i32 %21, 1
store i32 %22, ptr %6, align 4
br label %29
23: ; preds = %16
%24 = load i32, ptr %6, align 4
%25 = icmp ne i32 %24, 0
br i1 %25, label %28, label %26
26: ; preds = %23
%27 = load ptr, ptr %3, align 8
store ptr %27, ptr %8, align 8
br label %28
28: ; preds = %26, %23
br label %29
29: ; preds = %28, %20, %16
%30 = load ptr, ptr %3, align 8
%31 = getelementptr inbounds i8, ptr %30, i32 1
store ptr %31, ptr %3, align 8
%32 = load ptr, ptr %3, align 8
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %29
%37 = load ptr, ptr %3, align 8
store ptr %37, ptr %8, align 8
br label %38
38: ; preds = %36, %29
%39 = load ptr, ptr %8, align 8
%40 = icmp ne ptr %39, null
br i1 %40, label %41, label %80
41: ; preds = %38
%42 = load ptr, ptr %8, align 8
%43 = load ptr, ptr %7, align 8
%44 = ptrtoint ptr %42 to i64
%45 = ptrtoint ptr %43 to i64
%46 = sub i64 %44, %45
%47 = trunc i64 %46 to i32
store i32 %47, ptr %12, align 4
%48 = load i32, ptr %12, align 4
%49 = add nsw i32 %48, 1
%50 = zext i32 %49 to i64
%51 = call ptr @llvm.stacksave()
store ptr %51, ptr %13, align 8
%52 = alloca i8, i64 %50, align 16
store i64 %50, ptr %14, align 8
%53 = load ptr, ptr %7, align 8
%54 = load i32, ptr %12, align 4
%55 = call i32 @strncpy(ptr noundef %52, ptr noundef %53, i32 noundef %54)
%56 = load i32, ptr %12, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i8, ptr %52, i64 %57
store i8 0, ptr %58, align 1
store ptr null, ptr %8, align 8
%59 = load ptr, ptr %3, align 8
store ptr %59, ptr %7, align 8
%60 = load i32, ptr %10, align 4
store i32 %60, ptr %11, align 4
%61 = load i32, ptr %10, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %10, align 4
%63 = load ptr, ptr %9, align 8
%64 = load i32, ptr %10, align 4
%65 = sext i32 %64 to i64
%66 = mul i64 8, %65
%67 = trunc i64 %66 to i32
%68 = call i64 @realloc(ptr noundef %63, i32 noundef %67)
%69 = inttoptr i64 %68 to ptr
store ptr %69, ptr %9, align 8
%70 = load ptr, ptr %9, align 8
%71 = icmp ne ptr %70, null
%72 = zext i1 %71 to i32
%73 = call i32 @assert(i32 noundef %72)
%74 = call ptr @strdup(ptr noundef %52)
%75 = load ptr, ptr %9, align 8
%76 = load i32, ptr %11, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds ptr, ptr %75, i64 %77
store ptr %74, ptr %78, align 8
%79 = load ptr, ptr %13, align 8
call void @llvm.stackrestore(ptr %79)
br label %80
80: ; preds = %41, %38
%81 = load ptr, ptr %3, align 8
%82 = load i8, ptr %81, align 1
%83 = icmp ne i8 %82, 0
br i1 %83, label %16, label %84
84: ; preds = %80
br label %85
85: ; preds = %84
%86 = load i32, ptr %10, align 4
store i32 %86, ptr %11, align 4
%87 = load i32, ptr %10, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %10, align 4
%89 = load ptr, ptr %9, align 8
%90 = load i32, ptr %10, align 4
%91 = sext i32 %90 to i64
%92 = mul i64 8, %91
%93 = trunc i64 %92 to i32
%94 = call i64 @realloc(ptr noundef %89, i32 noundef %93)
%95 = inttoptr i64 %94 to ptr
store ptr %95, ptr %9, align 8
%96 = load ptr, ptr %9, align 8
%97 = icmp ne ptr %96, null
%98 = zext i1 %97 to i32
%99 = call i32 @assert(i32 noundef %98)
%100 = load ptr, ptr %9, align 8
%101 = load i32, ptr %11, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds ptr, ptr %100, i64 %102
store ptr null, ptr %103, align 8
%104 = load ptr, ptr %9, align 8
%105 = load ptr, ptr %4, align 8
store ptr %104, ptr %105, align 8
%106 = load i32, ptr %10, align 4
%107 = sub nsw i32 %106, 1
ret i32 %107
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #2
declare i64 @realloc(ptr noundef, i32 noundef) #2
declare i32 @assert(i32 noundef) #2
declare ptr @strdup(ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpclwt5s9s.c'
source_filename = "/tmp/tmpclwt5s9s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"error open %s\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [17 x i8] c"read %ld %ld \0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"read end %ld \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @readJSONFile(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = call ptr @fopen(ptr noundef %8, ptr noundef @.str)
store ptr %9, ptr %4, align 8
%10 = load ptr, ptr %4, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %15, label %12
12: ; preds = %1
%13 = load ptr, ptr %3, align 8
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %13)
store ptr null, ptr %2, align 8
br label %50
15: ; preds = %1
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr @SEEK_END, align 4
%18 = call i32 @fseek(ptr noundef %16, i32 noundef 0, i32 noundef %17)
%19 = load ptr, ptr %4, align 8
%20 = call i64 @ftell(ptr noundef %19)
store i64 %20, ptr %5, align 8
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr @SEEK_SET, align 4
%23 = call i32 @fseek(ptr noundef %21, i32 noundef 0, i32 noundef %22)
%24 = load i64, ptr %5, align 8
%25 = load ptr, ptr %4, align 8
%26 = call i64 @ftell(ptr noundef %25)
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %24, i64 noundef %26)
%28 = load i64, ptr %5, align 8
%29 = mul i64 1, %28
%30 = trunc i64 %29 to i32
%31 = call ptr @malloc(i32 noundef %30)
store ptr %31, ptr %6, align 8
br label %32
32: ; preds = %35, %15
%33 = load i64, ptr %5, align 8
%34 = icmp sgt i64 %33, 0
br i1 %34, label %35, label %44
35: ; preds = %32
%36 = load ptr, ptr %6, align 8
%37 = load i64, ptr %5, align 8
%38 = load ptr, ptr %4, align 8
%39 = call i32 @fread(ptr noundef %36, i32 noundef 1, i64 noundef %37, ptr noundef %38)
store i32 %39, ptr %7, align 4
%40 = load i32, ptr %7, align 4
%41 = sext i32 %40 to i64
%42 = load i64, ptr %5, align 8
%43 = sub nsw i64 %42, %41
store i64 %43, ptr %5, align 8
br label %32, !llvm.loop !6
44: ; preds = %32
%45 = load ptr, ptr %4, align 8
%46 = call i32 @fclose(ptr noundef %45)
%47 = load i64, ptr %5, align 8
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef %47)
%49 = load ptr, ptr %6, align 8
store ptr %49, ptr %2, align 8
br label %50
50: ; preds = %44, %12
%51 = load ptr, ptr %2, align 8
ret ptr %51
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpclwt5s9s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"error open %s\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [17 x i8] c"read %ld %ld \0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"read end %ld \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @readJSONFile(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = call ptr @fopen(ptr noundef %8, ptr noundef @.str)
store ptr %9, ptr %4, align 8
%10 = load ptr, ptr %4, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %15, label %12
12: ; preds = %1
%13 = load ptr, ptr %3, align 8
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %13)
store ptr null, ptr %2, align 8
br label %51
15: ; preds = %1
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr @SEEK_END, align 4
%18 = call i32 @fseek(ptr noundef %16, i32 noundef 0, i32 noundef %17)
%19 = load ptr, ptr %4, align 8
%20 = call i64 @ftell(ptr noundef %19)
store i64 %20, ptr %5, align 8
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr @SEEK_SET, align 4
%23 = call i32 @fseek(ptr noundef %21, i32 noundef 0, i32 noundef %22)
%24 = load i64, ptr %5, align 8
%25 = load ptr, ptr %4, align 8
%26 = call i64 @ftell(ptr noundef %25)
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %24, i64 noundef %26)
%28 = load i64, ptr %5, align 8
%29 = mul i64 1, %28
%30 = trunc i64 %29 to i32
%31 = call ptr @malloc(i32 noundef %30)
store ptr %31, ptr %6, align 8
%32 = load i64, ptr %5, align 8
%33 = icmp sgt i64 %32, 0
br i1 %33, label %.lr.ph, label %45
.lr.ph: ; preds = %15
br label %34
34: ; preds = %.lr.ph, %34
%35 = load ptr, ptr %6, align 8
%36 = load i64, ptr %5, align 8
%37 = load ptr, ptr %4, align 8
%38 = call i32 @fread(ptr noundef %35, i32 noundef 1, i64 noundef %36, ptr noundef %37)
store i32 %38, ptr %7, align 4
%39 = load i32, ptr %7, align 4
%40 = sext i32 %39 to i64
%41 = load i64, ptr %5, align 8
%42 = sub nsw i64 %41, %40
store i64 %42, ptr %5, align 8
%43 = load i64, ptr %5, align 8
%44 = icmp sgt i64 %43, 0
br i1 %44, label %34, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %34
br label %45
45: ; preds = %._crit_edge, %15
%46 = load ptr, ptr %4, align 8
%47 = call i32 @fclose(ptr noundef %46)
%48 = load i64, ptr %5, align 8
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef %48)
%50 = load ptr, ptr %6, align 8
store ptr %50, ptr %2, align 8
br label %51
51: ; preds = %45, %12
%52 = load ptr, ptr %2, align 8
ret ptr %52
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp7ejg4atg.c'
source_filename = "/tmp/tmp7ejg4atg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @convert(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 %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %6, align 4
br label %8
8: ; preds = %37, %2
%9 = load i32, ptr %6, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %40
12: ; preds = %8
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %6, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
store i32 %18, ptr %7, align 4
%19 = load ptr, ptr %3, align 8
%20 = load i32, ptr %6, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 49
br i1 %25, label %26, label %36
26: ; preds = %12
%27 = load i32, ptr %4, align 4
%28 = load i32, ptr %6, align 4
%29 = add nsw i32 %28, 1
%30 = sub nsw i32 %27, %29
%31 = call i64 @pow(i32 noundef 2, i32 noundef %30)
%32 = load i32, ptr %5, align 4
%33 = sext i32 %32 to i64
%34 = add nsw i64 %33, %31
%35 = trunc i64 %34 to i32
store i32 %35, ptr %5, align 4
br label %36
36: ; preds = %26, %12
br label %37
37: ; preds = %36
%38 = load i32, ptr %6, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %6, align 4
br label %8, !llvm.loop !6
40: ; preds = %8
%41 = load i32, ptr %5, align 4
ret i32 %41
}
declare i64 @pow(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7ejg4atg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @convert(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 %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %42
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %36
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %6, 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
store i32 %17, ptr %7, align 4
%18 = load ptr, ptr %3, align 8
%19 = load i32, ptr %6, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 49
br i1 %24, label %25, label %35
25: ; preds = %11
%26 = load i32, ptr %4, align 4
%27 = load i32, ptr %6, align 4
%28 = add nsw i32 %27, 1
%29 = sub nsw i32 %26, %28
%30 = call i64 @pow(i32 noundef 2, i32 noundef %29)
%31 = load i32, ptr %5, align 4
%32 = sext i32 %31 to i64
%33 = add nsw i64 %32, %30
%34 = trunc i64 %33 to i32
store i32 %34, ptr %5, align 4
br label %35
35: ; preds = %25, %11
br label %36
36: ; preds = %35
%37 = load i32, ptr %6, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %6, align 4
%39 = load i32, ptr %6, align 4
%40 = load i32, ptr %4, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %36
br label %42
42: ; preds = %._crit_edge, %2
%43 = load i32, ptr %5, align 4
ret i32 %43
}
declare i64 @pow(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmppnroa5lm.c'
source_filename = "/tmp/tmppnroa5lm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bcd_decode(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
store i32 0, ptr %3, align 4
store i32 1, ptr %4, align 4
br label %5
5: ; preds = %28, %1
%6 = load i32, ptr %4, align 4
%7 = load ptr, ptr %2, align 8
%8 = getelementptr inbounds i8, ptr %7, i64 0
%9 = load i8, ptr %8, align 1
%10 = sext i8 %9 to i32
%11 = sub nsw i32 %10, 48
%12 = icmp sle i32 %6, %11
br i1 %12, label %13, label %31
13: ; preds = %5
%14 = load ptr, ptr %2, align 8
%15 = load i32, ptr %4, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = sub nsw i32 %19, 48
%21 = load i32, ptr %4, align 4
%22 = sub nsw i32 %21, 1
%23 = call signext i8 @pow(i32 noundef 10, i32 noundef %22)
%24 = sext i8 %23 to i32
%25 = mul nsw i32 %20, %24
%26 = load i32, ptr %3, align 4
%27 = add nsw i32 %26, %25
store i32 %27, ptr %3, align 4
br label %28
28: ; preds = %13
%29 = load i32, ptr %4, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %4, align 4
br label %5, !llvm.loop !6
31: ; preds = %5
%32 = load i32, ptr %3, align 4
ret i32 %32
}
declare signext i8 @pow(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppnroa5lm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bcd_decode(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
store i32 0, ptr %3, align 4
store i32 1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = load ptr, ptr %2, align 8
%7 = load i8, ptr %6, align 1
%8 = sext i8 %7 to i32
%9 = sub nsw i32 %8, 48
%10 = icmp sle i32 %5, %9
br i1 %10, label %.lr.ph, label %36
.lr.ph: ; preds = %1
br label %11
11: ; preds = %.lr.ph, %26
%12 = load ptr, ptr %2, align 8
%13 = load i32, ptr %4, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = sub nsw i32 %17, 48
%19 = load i32, ptr %4, align 4
%20 = sub nsw i32 %19, 1
%21 = call signext i8 @pow(i32 noundef 10, i32 noundef %20)
%22 = sext i8 %21 to i32
%23 = mul nsw i32 %18, %22
%24 = load i32, ptr %3, align 4
%25 = add nsw i32 %24, %23
store i32 %25, ptr %3, align 4
br label %26
26: ; preds = %11
%27 = load i32, ptr %4, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %4, align 4
%29 = load i32, ptr %4, align 4
%30 = load ptr, ptr %2, align 8
%31 = getelementptr inbounds i8, ptr %30, i64 0
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = sub nsw i32 %33, 48
%35 = icmp sle i32 %29, %34
br i1 %35, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %36
36: ; preds = %._crit_edge, %1
%37 = load i32, ptr %3, align 4
ret i32 %37
}
declare signext i8 @pow(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpmnqujob_.c'
source_filename = "/tmp/tmpmnqujob_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@X509_EXTENSION_it = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @d2i_X509_EXTENSION(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i64, ptr %6, align 8
%10 = call i64 @ASN1_item_d2i(ptr noundef %7, ptr noundef %8, i64 noundef %9, ptr noundef @X509_EXTENSION_it)
%11 = inttoptr i64 %10 to ptr
ret ptr %11
}
declare i64 @ASN1_item_d2i(ptr noundef, ptr noundef, i64 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/tmpmnqujob_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@X509_EXTENSION_it = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @d2i_X509_EXTENSION(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i64, ptr %6, align 8
%10 = call i64 @ASN1_item_d2i(ptr noundef %7, ptr noundef %8, i64 noundef %9, ptr noundef @X509_EXTENSION_it)
%11 = inttoptr i64 %10 to ptr
ret ptr %11
}
declare i64 @ASN1_item_d2i(ptr noundef, ptr noundef, i64 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/tmpa0pq9fak.c'
source_filename = "/tmp/tmpa0pq9fak.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 = call i32 @to_binary(double noundef 1.250000e-01)
%2 = call i32 @to_binary(double noundef 1.000000e-01)
ret i32 0
}
declare i32 @to_binary(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/tmpa0pq9fak.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 = call i32 @to_binary(double noundef 1.250000e-01)
%2 = call i32 @to_binary(double noundef 1.000000e-01)
ret i32 0
}
declare i32 @to_binary(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/tmpqacgpeyx.c'
source_filename = "/tmp/tmpqacgpeyx.c"
target datalayout = "e-m:e-p270: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/tmpqacgpeyx.c"
target datalayout = "e-m:e-p270: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/tmplr35h8jm.c'
source_filename = "/tmp/tmplr35h8jm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @flipThisRun(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i16, align 2
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
br label %14
14: ; preds = %93, %4
%15 = load i32, ptr %9, align 4
%16 = load i32, ptr %8, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %22
18: ; preds = %14
%19 = load i32, ptr %10, align 4
%20 = load i32, ptr %8, align 4
%21 = icmp slt i32 %19, %20
br label %22
22: ; preds = %18, %14
%23 = phi i1 [ false, %14 ], [ %21, %18 ]
br i1 %23, label %24, label %94
24: ; preds = %22
%25 = load i32, ptr %7, align 4
store i32 %25, ptr %12, align 4
%26 = load ptr, ptr %6, align 8
%27 = load i32, ptr %9, align 4
%28 = load i32, ptr %8, align 4
%29 = load i32, ptr %7, align 4
%30 = call i32 @findIndexOfRun(ptr noundef %26, i32 noundef %27, i32 noundef %28, i32 noundef %29)
store i32 %30, ptr %10, align 4
store i32 %30, ptr %9, align 4
br label %31
31: ; preds = %46, %24
%32 = load i32, ptr %12, align 4
%33 = load ptr, ptr %6, align 8
%34 = load i32, ptr %9, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
%37 = load i8, ptr %36, align 1
%38 = zext i8 %37 to i32
%39 = icmp sle i32 %32, %38
br i1 %39, label %40, label %44
40: ; preds = %31
%41 = load i32, ptr %9, align 4
%42 = load i32, ptr %8, align 4
%43 = icmp slt i32 %41, %42
br label %44
44: ; preds = %40, %31
%45 = phi i1 [ false, %31 ], [ %43, %40 ]
br i1 %45, label %46, label %49
46: ; preds = %44
%47 = load i32, ptr %9, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %9, align 4
br label %31, !llvm.loop !6
49: ; preds = %44
%50 = load i32, ptr %9, align 4
%51 = load i32, ptr %10, align 4
%52 = sub nsw i32 %50, %51
store i32 %52, ptr %11, align 4
br label %53
53: ; preds = %90, %49
%54 = load i32, ptr %11, align 4
%55 = load i32, ptr %9, align 4
%56 = load i32, ptr %10, align 4
%57 = sub nsw i32 %55, %56
%58 = sdiv i32 %57, 2
%59 = icmp sgt i32 %54, %58
br i1 %59, label %60, label %93
60: ; preds = %53
%61 = load ptr, ptr %5, align 8
%62 = load i32, ptr %10, align 4
%63 = load i32, ptr %11, align 4
%64 = add nsw i32 %62, %63
%65 = sub nsw i32 %64, 1
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i16, ptr %61, i64 %66
%68 = load i16, ptr %67, align 2
store i16 %68, ptr %13, align 2
%69 = load ptr, ptr %5, align 8
%70 = load i32, ptr %9, align 4
%71 = load i32, ptr %11, align 4
%72 = sub nsw i32 %70, %71
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i16, ptr %69, i64 %73
%75 = load i16, ptr %74, align 2
%76 = load ptr, ptr %5, align 8
%77 = load i32, ptr %10, align 4
%78 = load i32, ptr %11, align 4
%79 = add nsw i32 %77, %78
%80 = sub nsw i32 %79, 1
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds i16, ptr %76, i64 %81
store i16 %75, ptr %82, align 2
%83 = load i16, ptr %13, align 2
%84 = load ptr, ptr %5, align 8
%85 = load i32, ptr %9, align 4
%86 = load i32, ptr %11, align 4
%87 = sub nsw i32 %85, %86
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i16, ptr %84, i64 %88
store i16 %83, ptr %89, align 2
br label %90
90: ; preds = %60
%91 = load i32, ptr %11, align 4
%92 = add nsw i32 %91, -1
store i32 %92, ptr %11, align 4
br label %53, !llvm.loop !8
93: ; preds = %53
br label %14, !llvm.loop !9
94: ; preds = %22
ret void
}
declare i32 @findIndexOfRun(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplr35h8jm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @flipThisRun(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i16, align 2
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
br label %14
14: ; preds = %98, %4
%15 = load i32, ptr %9, align 4
%16 = load i32, ptr %8, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %22
18: ; preds = %14
%19 = load i32, ptr %10, align 4
%20 = load i32, ptr %8, align 4
%21 = icmp slt i32 %19, %20
br label %22
22: ; preds = %18, %14
%23 = phi i1 [ false, %14 ], [ %21, %18 ]
br i1 %23, label %24, label %99
24: ; preds = %22
%25 = load i32, ptr %7, align 4
store i32 %25, ptr %12, align 4
%26 = load ptr, ptr %6, align 8
%27 = load i32, ptr %9, align 4
%28 = load i32, ptr %8, align 4
%29 = load i32, ptr %7, align 4
%30 = call i32 @findIndexOfRun(ptr noundef %26, i32 noundef %27, i32 noundef %28, i32 noundef %29)
store i32 %30, ptr %10, align 4
store i32 %30, ptr %9, align 4
br label %31
31: ; preds = %46, %24
%32 = load i32, ptr %12, align 4
%33 = load ptr, ptr %6, align 8
%34 = load i32, ptr %9, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
%37 = load i8, ptr %36, align 1
%38 = zext i8 %37 to i32
%39 = icmp sle i32 %32, %38
br i1 %39, label %40, label %44
40: ; preds = %31
%41 = load i32, ptr %9, align 4
%42 = load i32, ptr %8, align 4
%43 = icmp slt i32 %41, %42
br label %44
44: ; preds = %40, %31
%45 = phi i1 [ false, %31 ], [ %43, %40 ]
br i1 %45, label %46, label %49
46: ; preds = %44
%47 = load i32, ptr %9, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %9, align 4
br label %31, !llvm.loop !6
49: ; preds = %44
%50 = load i32, ptr %9, align 4
%51 = load i32, ptr %10, align 4
%52 = sub nsw i32 %50, %51
store i32 %52, ptr %11, align 4
%53 = load i32, ptr %11, align 4
%54 = load i32, ptr %9, align 4
%55 = load i32, ptr %10, align 4
%56 = sub nsw i32 %54, %55
%57 = sdiv i32 %56, 2
%58 = icmp sgt i32 %53, %57
br i1 %58, label %.lr.ph, label %98
.lr.ph: ; preds = %49
br label %59
59: ; preds = %.lr.ph, %89
%60 = load ptr, ptr %5, align 8
%61 = load i32, ptr %10, align 4
%62 = load i32, ptr %11, align 4
%63 = add nsw i32 %61, %62
%64 = sub nsw i32 %63, 1
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i16, ptr %60, i64 %65
%67 = load i16, ptr %66, align 2
store i16 %67, ptr %13, align 2
%68 = load ptr, ptr %5, align 8
%69 = load i32, ptr %9, align 4
%70 = load i32, ptr %11, align 4
%71 = sub nsw i32 %69, %70
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i16, ptr %68, i64 %72
%74 = load i16, ptr %73, align 2
%75 = load ptr, ptr %5, align 8
%76 = load i32, ptr %10, align 4
%77 = load i32, ptr %11, align 4
%78 = add nsw i32 %76, %77
%79 = sub nsw i32 %78, 1
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i16, ptr %75, i64 %80
store i16 %74, ptr %81, align 2
%82 = load i16, ptr %13, align 2
%83 = load ptr, ptr %5, align 8
%84 = load i32, ptr %9, align 4
%85 = load i32, ptr %11, align 4
%86 = sub nsw i32 %84, %85
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i16, ptr %83, i64 %87
store i16 %82, ptr %88, align 2
br label %89
89: ; preds = %59
%90 = load i32, ptr %11, align 4
%91 = add nsw i32 %90, -1
store i32 %91, ptr %11, align 4
%92 = load i32, ptr %11, align 4
%93 = load i32, ptr %9, align 4
%94 = load i32, ptr %10, align 4
%95 = sub nsw i32 %93, %94
%96 = sdiv i32 %95, 2
%97 = icmp sgt i32 %92, %96
br i1 %97, label %59, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %89
br label %98
98: ; preds = %._crit_edge, %49
br label %14, !llvm.loop !9
99: ; preds = %22
ret void
}
declare i32 @findIndexOfRun(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpa8psh70o.c'
source_filename = "/tmp/tmpa8psh70o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [2 x i8] c".\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @floattobinfloat(x86_fp80 noundef %0, ptr noundef %1) #0 {
%3 = alloca x86_fp80, align 16
%4 = alloca ptr, align 8
%5 = alloca x86_fp80, align 16
%6 = alloca x86_fp80, align 16
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store x86_fp80 %0, ptr %3, align 16
store ptr %1, ptr %4, align 8
store x86_fp80 0xK00000000000000000000, ptr %5, align 16
store x86_fp80 0xK00000000000000000000, ptr %6, align 16
%9 = load x86_fp80, ptr %3, align 16
%10 = call x86_fp80 @modfl(x86_fp80 noundef %9, ptr noundef %5) #3
store x86_fp80 %10, ptr %6, align 16
%11 = call ptr @malloc(i32 noundef 128)
store ptr %11, ptr %7, align 8
%12 = call ptr @malloc(i32 noundef 128)
store ptr %12, ptr %8, align 8
%13 = load ptr, ptr %7, align 8
%14 = call i32 @memset(ptr noundef %13, i8 noundef signext 0, i32 noundef 128)
%15 = load ptr, ptr %8, align 8
%16 = call i32 @memset(ptr noundef %15, i8 noundef signext 0, i32 noundef 128)
%17 = load x86_fp80, ptr %5, align 16
%18 = fptosi x86_fp80 %17 to i64
%19 = load ptr, ptr %7, align 8
%20 = call i32 @inttobin(i64 noundef %18, ptr noundef %19)
%21 = load x86_fp80, ptr %6, align 16
%22 = load ptr, ptr %8, align 8
%23 = call i32 @inttobinfloatpart(x86_fp80 noundef %21, ptr noundef %22, i32 noundef 128)
%24 = load ptr, ptr %4, align 8
%25 = call i32 @memset(ptr noundef %24, i8 noundef signext 0, i32 noundef 128)
%26 = load x86_fp80, ptr %3, align 16
%27 = fcmp olt x86_fp80 %26, 0xK00000000000000000000
br i1 %27, label %28, label %37
28: ; preds = %2
%29 = load ptr, ptr %7, align 8
%30 = getelementptr inbounds i8, ptr %29, i64 0
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = icmp ne i32 %32, 45
br i1 %33, label %34, label %37
34: ; preds = %28
%35 = load ptr, ptr %4, align 8
%36 = call i32 @strcpy(ptr noundef %35, ptr noundef @.str)
br label %37
37: ; preds = %34, %28, %2
%38 = load ptr, ptr %4, align 8
%39 = load ptr, ptr %7, align 8
%40 = call i32 @strcat(ptr noundef %38, ptr noundef %39)
%41 = load ptr, ptr %4, align 8
%42 = call i32 @strcat(ptr noundef %41, ptr noundef @.str.1)
%43 = load ptr, ptr %4, align 8
%44 = load ptr, ptr %8, align 8
%45 = call i32 @strcat(ptr noundef %43, ptr noundef %44)
%46 = load ptr, ptr %4, align 8
%47 = getelementptr inbounds i8, ptr %46, i64 128
store i8 0, ptr %47, align 1
ret void
}
; Function Attrs: nounwind
declare x86_fp80 @modfl(x86_fp80 noundef, ptr noundef) #1
declare ptr @malloc(i32 noundef) #2
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #2
declare i32 @inttobin(i64 noundef, ptr noundef) #2
declare i32 @inttobinfloatpart(x86_fp80 noundef, ptr noundef, i32 noundef) #2
declare i32 @strcpy(ptr noundef, ptr noundef) #2
declare i32 @strcat(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa8psh70o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [2 x i8] c".\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @floattobinfloat(x86_fp80 noundef %0, ptr noundef %1) #0 {
%3 = alloca x86_fp80, align 16
%4 = alloca ptr, align 8
%5 = alloca x86_fp80, align 16
%6 = alloca x86_fp80, align 16
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store x86_fp80 %0, ptr %3, align 16
store ptr %1, ptr %4, align 8
store x86_fp80 0xK00000000000000000000, ptr %5, align 16
store x86_fp80 0xK00000000000000000000, ptr %6, align 16
%9 = load x86_fp80, ptr %3, align 16
%10 = call x86_fp80 @modfl(x86_fp80 noundef %9, ptr noundef %5) #3
store x86_fp80 %10, ptr %6, align 16
%11 = call ptr @malloc(i32 noundef 128)
store ptr %11, ptr %7, align 8
%12 = call ptr @malloc(i32 noundef 128)
store ptr %12, ptr %8, align 8
%13 = load ptr, ptr %7, align 8
%14 = call i32 @memset(ptr noundef %13, i8 noundef signext 0, i32 noundef 128)
%15 = load ptr, ptr %8, align 8
%16 = call i32 @memset(ptr noundef %15, i8 noundef signext 0, i32 noundef 128)
%17 = load x86_fp80, ptr %5, align 16
%18 = fptosi x86_fp80 %17 to i64
%19 = load ptr, ptr %7, align 8
%20 = call i32 @inttobin(i64 noundef %18, ptr noundef %19)
%21 = load x86_fp80, ptr %6, align 16
%22 = load ptr, ptr %8, align 8
%23 = call i32 @inttobinfloatpart(x86_fp80 noundef %21, ptr noundef %22, i32 noundef 128)
%24 = load ptr, ptr %4, align 8
%25 = call i32 @memset(ptr noundef %24, i8 noundef signext 0, i32 noundef 128)
%26 = load x86_fp80, ptr %3, align 16
%27 = fcmp olt x86_fp80 %26, 0xK00000000000000000000
br i1 %27, label %28, label %37
28: ; preds = %2
%29 = load ptr, ptr %7, align 8
%30 = getelementptr inbounds i8, ptr %29, i64 0
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = icmp ne i32 %32, 45
br i1 %33, label %34, label %37
34: ; preds = %28
%35 = load ptr, ptr %4, align 8
%36 = call i32 @strcpy(ptr noundef %35, ptr noundef @.str)
br label %37
37: ; preds = %34, %28, %2
%38 = load ptr, ptr %4, align 8
%39 = load ptr, ptr %7, align 8
%40 = call i32 @strcat(ptr noundef %38, ptr noundef %39)
%41 = load ptr, ptr %4, align 8
%42 = call i32 @strcat(ptr noundef %41, ptr noundef @.str.1)
%43 = load ptr, ptr %4, align 8
%44 = load ptr, ptr %8, align 8
%45 = call i32 @strcat(ptr noundef %43, ptr noundef %44)
%46 = load ptr, ptr %4, align 8
%47 = getelementptr inbounds i8, ptr %46, i64 128
store i8 0, ptr %47, align 1
ret void
}
; Function Attrs: nounwind
declare x86_fp80 @modfl(x86_fp80 noundef, ptr noundef) #1
declare ptr @malloc(i32 noundef) #2
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #2
declare i32 @inttobin(i64 noundef, ptr noundef) #2
declare i32 @inttobinfloatpart(x86_fp80 noundef, ptr noundef, i32 noundef) #2
declare i32 @strcpy(ptr noundef, ptr noundef) #2
declare i32 @strcat(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpah6hbwxp.c'
source_filename = "/tmp/tmpah6hbwxp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Address : %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pAddress(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
ret i32 0
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpah6hbwxp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Address : %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pAddress(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
ret i32 0
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7wpegr31.c'
source_filename = "/tmp/tmp7wpegr31.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"data.in\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"r+\00", align 1
@EOF = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [4 x i8] c"%x \00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"eof\0A\00", align 1
@.str.4 = private unnamed_addr constant [12 x i8] c"file error\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %6, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i32 @assert(ptr noundef %7)
br label %9
9: ; preds = %14, %0
%10 = load ptr, ptr %2, align 8
%11 = call i32 @getc(ptr noundef %10)
store i32 %11, ptr %3, align 4
%12 = load i32, ptr @EOF, align 4
%13 = icmp ne i32 %11, %12
br i1 %13, label %14, label %17
14: ; preds = %9
%15 = load i32, ptr %3, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %15)
br label %9, !llvm.loop !6
17: ; preds = %9
%18 = load ptr, ptr %2, align 8
%19 = call i32 @feof(ptr noundef %18)
store i32 %19, ptr %4, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %17
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %24
24: ; preds = %22, %17
%25 = load ptr, ptr %2, align 8
%26 = call i32 @ferror(ptr noundef %25)
store i32 %26, ptr %5, align 4
%27 = load i32, ptr %5, align 4
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %24
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %31
31: ; preds = %29, %24
%32 = load ptr, ptr %2, align 8
%33 = call i32 @fclose(ptr noundef %32)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @assert(ptr noundef) #1
declare i32 @getc(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @feof(ptr noundef) #1
declare i32 @ferror(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7wpegr31.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"data.in\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"r+\00", align 1
@EOF = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [4 x i8] c"%x \00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"eof\0A\00", align 1
@.str.4 = private unnamed_addr constant [12 x i8] c"file error\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %6, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i32 @assert(ptr noundef %7)
%9 = load ptr, ptr %2, align 8
%10 = call i32 @getc(ptr noundef %9)
store i32 %10, ptr %3, align 4
%11 = load i32, ptr @EOF, align 4
%12 = icmp ne i32 %10, %11
br i1 %12, label %.lr.ph, label %20
.lr.ph: ; preds = %0
br label %13
13: ; preds = %.lr.ph, %13
%14 = load i32, ptr %3, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %14)
%16 = load ptr, ptr %2, align 8
%17 = call i32 @getc(ptr noundef %16)
store i32 %17, ptr %3, align 4
%18 = load i32, ptr @EOF, align 4
%19 = icmp ne i32 %17, %18
br i1 %19, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %20
20: ; preds = %._crit_edge, %0
%21 = load ptr, ptr %2, align 8
%22 = call i32 @feof(ptr noundef %21)
store i32 %22, ptr %4, align 4
%23 = load i32, ptr %4, align 4
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %20
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %27
27: ; preds = %25, %20
%28 = load ptr, ptr %2, align 8
%29 = call i32 @ferror(ptr noundef %28)
store i32 %29, ptr %5, align 4
%30 = load i32, ptr %5, align 4
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %27
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %34
34: ; preds = %32, %27
%35 = load ptr, ptr %2, align 8
%36 = call i32 @fclose(ptr noundef %35)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @assert(ptr noundef) #1
declare i32 @getc(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @feof(ptr noundef) #1
declare i32 @ferror(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp4tn5d_nc.c'
source_filename = "/tmp/tmp4tn5d_nc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"OPENSSL_DEBUG_MEMORY\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"on\00", align 1
@CRYPTO_MEM_CHECK_ON = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [23 x i8] c"OPENSSL_malloc failed\0A\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"freeit\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = call ptr @getenv(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 %12, label %18
12: ; preds = %2
%13 = load ptr, ptr %6, align 8
%14 = call i64 @strcmp(ptr noundef %13, ptr noundef @.str.1)
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %12
%17 = call i32 @CRYPTO_set_mem_debug(i32 noundef 1)
br label %18
18: ; preds = %16, %12, %2
%19 = load i32, ptr @CRYPTO_MEM_CHECK_ON, align 4
%20 = call i32 @CRYPTO_mem_ctrl(i32 noundef %19)
%21 = call ptr @OPENSSL_malloc(i32 noundef 3)
store ptr %21, ptr %7, align 8
%22 = load ptr, ptr %7, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %27
24: ; preds = %18
%25 = load i32, ptr @stderr, align 4
%26 = call i32 @fprintf(i32 noundef %25, ptr noundef @.str.2)
store i32 1, ptr %3, align 4
br label %55
27: ; preds = %18
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i64 1
%30 = load ptr, ptr %29, align 8
%31 = icmp ne ptr %30, null
br i1 %31, label %32, label %41
32: ; preds = %27
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds ptr, ptr %33, i64 1
%35 = load ptr, ptr %34, align 8
%36 = call i64 @strcmp(ptr noundef %35, ptr noundef @.str.3)
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %41
38: ; preds = %32
%39 = load ptr, ptr %7, align 8
%40 = call i32 @OPENSSL_free(ptr noundef %39)
store ptr null, ptr %7, align 8
br label %41
41: ; preds = %38, %32, %27
%42 = load i32, ptr @stderr, align 4
%43 = call i32 @CRYPTO_mem_leaks_fp(i32 noundef %42)
store i32 %43, ptr %8, align 4
%44 = load i32, ptr %8, align 4
%45 = icmp eq i32 %44, -1
br i1 %45, label %46, label %47
46: ; preds = %41
store i32 1, ptr %3, align 4
br label %55
47: ; preds = %41
%48 = load ptr, ptr %7, align 8
%49 = icmp ne ptr %48, null
%50 = zext i1 %49 to i32
%51 = load i32, ptr %8, align 4
%52 = icmp eq i32 %51, 0
%53 = zext i1 %52 to i32
%54 = xor i32 %50, %53
store i32 %54, ptr %3, align 4
br label %55
55: ; preds = %47, %46, %24
%56 = load i32, ptr %3, align 4
ret i32 %56
}
declare ptr @getenv(ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @CRYPTO_set_mem_debug(i32 noundef) #1
declare i32 @CRYPTO_mem_ctrl(i32 noundef) #1
declare ptr @OPENSSL_malloc(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @OPENSSL_free(ptr noundef) #1
declare i32 @CRYPTO_mem_leaks_fp(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/tmp4tn5d_nc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"OPENSSL_DEBUG_MEMORY\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"on\00", align 1
@CRYPTO_MEM_CHECK_ON = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [23 x i8] c"OPENSSL_malloc failed\0A\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"freeit\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = call ptr @getenv(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 %12, label %18
12: ; preds = %2
%13 = load ptr, ptr %6, align 8
%14 = call i64 @strcmp(ptr noundef %13, ptr noundef @.str.1)
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %12
%17 = call i32 @CRYPTO_set_mem_debug(i32 noundef 1)
br label %18
18: ; preds = %16, %12, %2
%19 = load i32, ptr @CRYPTO_MEM_CHECK_ON, align 4
%20 = call i32 @CRYPTO_mem_ctrl(i32 noundef %19)
%21 = call ptr @OPENSSL_malloc(i32 noundef 3)
store ptr %21, ptr %7, align 8
%22 = load ptr, ptr %7, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %27
24: ; preds = %18
%25 = load i32, ptr @stderr, align 4
%26 = call i32 @fprintf(i32 noundef %25, ptr noundef @.str.2)
store i32 1, ptr %3, align 4
br label %55
27: ; preds = %18
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i64 1
%30 = load ptr, ptr %29, align 8
%31 = icmp ne ptr %30, null
br i1 %31, label %32, label %41
32: ; preds = %27
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds ptr, ptr %33, i64 1
%35 = load ptr, ptr %34, align 8
%36 = call i64 @strcmp(ptr noundef %35, ptr noundef @.str.3)
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %41
38: ; preds = %32
%39 = load ptr, ptr %7, align 8
%40 = call i32 @OPENSSL_free(ptr noundef %39)
store ptr null, ptr %7, align 8
br label %41
41: ; preds = %38, %32, %27
%42 = load i32, ptr @stderr, align 4
%43 = call i32 @CRYPTO_mem_leaks_fp(i32 noundef %42)
store i32 %43, ptr %8, align 4
%44 = load i32, ptr %8, align 4
%45 = icmp eq i32 %44, -1
br i1 %45, label %46, label %47
46: ; preds = %41
store i32 1, ptr %3, align 4
br label %55
47: ; preds = %41
%48 = load ptr, ptr %7, align 8
%49 = icmp ne ptr %48, null
%50 = zext i1 %49 to i32
%51 = load i32, ptr %8, align 4
%52 = icmp eq i32 %51, 0
%53 = zext i1 %52 to i32
%54 = xor i32 %50, %53
store i32 %54, ptr %3, align 4
br label %55
55: ; preds = %47, %46, %24
%56 = load i32, ptr %3, align 4
ret i32 %56
}
declare ptr @getenv(ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @CRYPTO_set_mem_debug(i32 noundef) #1
declare i32 @CRYPTO_mem_ctrl(i32 noundef) #1
declare ptr @OPENSSL_malloc(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @OPENSSL_free(ptr noundef) #1
declare i32 @CRYPTO_mem_leaks_fp(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/tmpkh6r9d7i.c'
source_filename = "/tmp/tmpkh6r9d7i.c"
target datalayout = "e-m:e-p270: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/tmpkh6r9d7i.c"
target datalayout = "e-m:e-p270: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/tmpbapuu9gx.c'
source_filename = "/tmp/tmpbapuu9gx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"Please, insert the primary value: \0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [38 x i8] c"Please, insert the secundary value. \0A\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"Please, insert the tercery value. \0A\00", align 1
@.str.4 = private unnamed_addr constant [38 x i8] c"The primary value is the big value. \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%8 = call i32 @printf(ptr noundef @.str.2)
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%10 = call i32 @printf(ptr noundef @.str.3)
%11 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %4)
%12 = load i32, ptr %2, align 4
%13 = load i32, ptr %3, align 4
%14 = icmp sgt i32 %12, %13
br i1 %14, label %15, label %21
15: ; preds = %0
%16 = load i32, ptr %2, align 4
%17 = load i32, ptr %4, align 4
%18 = icmp sgt i32 %16, %17
br i1 %18, label %19, label %21
19: ; preds = %15
%20 = call i32 @printf(ptr noundef @.str.4)
br label %21
21: ; preds = %19, %15, %0
%22 = load i32, ptr %1, align 4
ret i32 %22
}
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/tmpbapuu9gx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"Please, insert the primary value: \0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [38 x i8] c"Please, insert the secundary value. \0A\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"Please, insert the tercery value. \0A\00", align 1
@.str.4 = private unnamed_addr constant [38 x i8] c"The primary value is the big value. \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%8 = call i32 @printf(ptr noundef @.str.2)
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%10 = call i32 @printf(ptr noundef @.str.3)
%11 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %4)
%12 = load i32, ptr %2, align 4
%13 = load i32, ptr %3, align 4
%14 = icmp sgt i32 %12, %13
br i1 %14, label %15, label %21
15: ; preds = %0
%16 = load i32, ptr %2, align 4
%17 = load i32, ptr %4, align 4
%18 = icmp sgt i32 %16, %17
br i1 %18, label %19, label %21
19: ; preds = %15
%20 = call i32 @printf(ptr noundef @.str.4)
br label %21
21: ; preds = %19, %15, %0
%22 = load i32, ptr %1, align 4
ret i32 %22
}
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/tmpzab0qsm2.c'
source_filename = "/tmp/tmpzab0qsm2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bigtrim(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%9 = load ptr, ptr %3, align 8
%10 = call i32 @strlen(ptr noundef %9)
store i32 %10, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %11
11: ; preds = %25, %2
%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 %28
15: ; preds = %11
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %6, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %15
br label %28
24: ; preds = %15
br label %25
25: ; preds = %24
%26 = load i32, ptr %6, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %6, align 4
br label %11, !llvm.loop !6
28: ; preds = %23, %11
%29 = load i32, ptr %6, align 4
%30 = sub nsw i32 %29, 1
store i32 %30, ptr %7, align 4
br label %31
31: ; preds = %49, %28
%32 = load i32, ptr %7, align 4
%33 = icmp sge i32 %32, 0
br i1 %33, label %34, label %52
34: ; preds = %31
%35 = load ptr, ptr %3, align 8
%36 = load i32, ptr %7, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %35, i64 %37
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %40, 48
br i1 %41, label %42, label %47
42: ; preds = %34
%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
br label %48
47: ; preds = %34
br label %52
48: ; preds = %42
br label %49
49: ; preds = %48
%50 = load i32, ptr %7, align 4
%51 = add nsw i32 %50, -1
store i32 %51, ptr %7, align 4
br label %31, !llvm.loop !8
52: ; preds = %47, %31
%53 = load ptr, ptr %3, align 8
%54 = getelementptr inbounds i8, ptr %53, i64 0
%55 = load i8, ptr %54, align 1
%56 = sext i8 %55 to i32
%57 = icmp eq i32 %56, 0
br i1 %57, label %58, label %61
58: ; preds = %52
%59 = load ptr, ptr %3, align 8
%60 = getelementptr inbounds i8, ptr %59, i64 0
store i8 48, ptr %60, align 1
br label %61
61: ; preds = %58, %52
%62 = load i32, ptr %4, align 4
%63 = icmp sgt i32 %62, 0
br i1 %63, label %64, label %80
64: ; preds = %61
%65 = load i32, ptr %6, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %8, align 4
br label %67
67: ; preds = %76, %64
%68 = load i32, ptr %8, align 4
%69 = load i32, ptr %4, align 4
%70 = icmp sle i32 %68, %69
br i1 %70, label %71, label %79
71: ; preds = %67
%72 = load ptr, ptr %3, align 8
%73 = load i32, ptr %8, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i8, ptr %72, i64 %74
store i8 0, ptr %75, align 1
br label %76
76: ; preds = %71
%77 = load i32, ptr %8, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %8, align 4
br label %67, !llvm.loop !9
79: ; preds = %67
br label %80
80: ; preds = %79, %61
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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzab0qsm2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bigtrim(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%9 = load ptr, ptr %3, align 8
%10 = call i32 @strlen(ptr noundef %9)
store i32 %10, ptr %5, align 4
store i32 0, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %.lr.ph, label %.loopexit1
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %24
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %6, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %14
br label %30
23: ; preds = %14
br label %24
24: ; preds = %23
%25 = load i32, ptr %6, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %6, align 4
%27 = load i32, ptr %6, align 4
%28 = load i32, ptr %5, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %14, label %..loopexit1_crit_edge, !llvm.loop !6
..loopexit1_crit_edge: ; preds = %24
br label %.loopexit1
.loopexit1: ; preds = %..loopexit1_crit_edge, %2
br label %30
30: ; preds = %.loopexit1, %22
%31 = load i32, ptr %6, align 4
%32 = sub nsw i32 %31, 1
store i32 %32, ptr %7, align 4
%33 = load i32, ptr %7, align 4
%34 = icmp sge i32 %33, 0
br i1 %34, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %30
br label %35
35: ; preds = %.lr.ph2, %50
%36 = load ptr, ptr %3, align 8
%37 = load i32, ptr %7, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = icmp eq i32 %41, 48
br i1 %42, label %43, label %48
43: ; preds = %35
%44 = load ptr, ptr %3, align 8
%45 = load i32, ptr %7, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i8, ptr %44, i64 %46
store i8 0, ptr %47, align 1
br label %49
48: ; preds = %35
br label %55
49: ; preds = %43
br label %50
50: ; preds = %49
%51 = load i32, ptr %7, align 4
%52 = add nsw i32 %51, -1
store i32 %52, ptr %7, align 4
%53 = load i32, ptr %7, align 4
%54 = icmp sge i32 %53, 0
br i1 %54, label %35, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %50
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %30
br label %55
55: ; preds = %.loopexit, %48
%56 = load ptr, ptr %3, align 8
%57 = getelementptr inbounds i8, ptr %56, i64 0
%58 = load i8, ptr %57, align 1
%59 = sext i8 %58 to i32
%60 = icmp eq i32 %59, 0
br i1 %60, label %61, label %64
61: ; preds = %55
%62 = load ptr, ptr %3, align 8
%63 = getelementptr inbounds i8, ptr %62, i64 0
store i8 48, ptr %63, align 1
br label %64
64: ; preds = %61, %55
%65 = load i32, ptr %4, align 4
%66 = icmp sgt i32 %65, 0
br i1 %66, label %67, label %85
67: ; preds = %64
%68 = load i32, ptr %6, align 4
%69 = add nsw i32 %68, 1
store i32 %69, ptr %8, align 4
%70 = load i32, ptr %8, align 4
%71 = load i32, ptr %4, align 4
%72 = icmp sle i32 %70, %71
br i1 %72, label %.lr.ph3, label %84
.lr.ph3: ; preds = %67
br label %73
73: ; preds = %.lr.ph3, %78
%74 = load ptr, ptr %3, align 8
%75 = load i32, ptr %8, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i8, ptr %74, i64 %76
store i8 0, ptr %77, align 1
br label %78
78: ; preds = %73
%79 = load i32, ptr %8, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %8, align 4
%81 = load i32, ptr %8, align 4
%82 = load i32, ptr %4, align 4
%83 = icmp sle i32 %81, %82
br i1 %83, label %73, label %._crit_edge, !llvm.loop !9
._crit_edge: ; preds = %78
br label %84
84: ; preds = %._crit_edge, %67
br label %85
85: ; preds = %84, %64
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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpupd8p2ad.c'
source_filename = "/tmp/tmpupd8p2ad.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @CPU_RESET() #0 {
%1 = call i32 (...) @RESET()
ret void
}
declare i32 @RESET(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpupd8p2ad.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @CPU_RESET() #0 {
%1 = call i32 (...) @RESET()
ret void
}
declare i32 @RESET(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdzi9gxh6.c'
source_filename = "/tmp/tmpdzi9gxh6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.addrinfo = type { i32, i64, i64, i32, i32, i32 }
%struct.sockaddr_storage = type { i32 }
%struct.stat = type { i32, i32, i32 }
@AI_PASSIVE = dso_local global i32 0, align 4
@AF_UNSPEC = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [22 x i8] c"Error de argumentos.\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"::\00", align 1
@EINVAL = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [13 x i8] c"Error fork.\0A\00", align 1
@NI_MAXHOST = dso_local global i32 0, align 4
@NI_MAXSERV = dso_local global i32 0, align 4
@NI_NUMERICHOST = dso_local global i32 0, align 4
@NI_NUMERICSERV = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [22 x i8] c"Host: %s, Puerto: %s\0A\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.5 = private unnamed_addr constant [16 x i8] c"Error de stat.\0A\00", align 1
@.str.6 = private unnamed_addr constant [27 x i8] c"UID: %i, GID: %i, INO: %i\0A\00", align 1
@.str.7 = private unnamed_addr constant [21 x i8] c"CERRANDO CONEXION..\0A\00", align 1
@.str.8 = private unnamed_addr constant [38 x i8] c"Fin proceso %i, c\C3\B3digo de salida %i\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 %struct.addrinfo, align 8
%9 = alloca ptr, align 8
%10 = alloca [80 x i8], align 16
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca [2 x i32], align 4
%17 = alloca %struct.sockaddr_storage, align 4
%18 = alloca i32, align 4
%19 = alloca ptr, align 8
%20 = alloca i64, align 8
%21 = alloca i64, align 8
%22 = alloca i32, align 4
%23 = alloca [80 x i8], align 16
%24 = alloca [80 x i8], align 16
%25 = alloca %struct.stat, align 4
%26 = alloca i32, align 4
%27 = 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 %11, align 4
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
%28 = load i32, ptr @AI_PASSIVE, align 4
%29 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 5
store i32 %28, ptr %29, align 8
%30 = load i32, ptr @AF_UNSPEC, align 4
%31 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 4
store i32 %30, ptr %31, align 4
%32 = load i32, ptr @SOCK_DGRAM, align 4
%33 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 3
store i32 %32, ptr %33, align 8
%34 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 2
store i64 0, ptr %34, align 8
%35 = load i32, ptr %4, align 4
%36 = icmp slt i32 %35, 2
br i1 %36, label %37, label %39
37: ; preds = %2
%38 = call i32 @perror(ptr noundef @.str)
br label %39
39: ; preds = %37, %2
%40 = load ptr, ptr %5, align 8
%41 = getelementptr inbounds ptr, ptr %40, i64 1
%42 = load ptr, ptr %41, align 8
%43 = call i32 @getaddrinfo(ptr noundef @.str.1, ptr noundef %42, ptr noundef %8, ptr noundef %9)
store i32 %43, ptr %7, align 4
%44 = load i32, ptr %7, align 4
%45 = icmp slt i32 %44, 0
br i1 %45, label %46, label %49
46: ; preds = %39
%47 = load i32, ptr @EINVAL, align 4
%48 = sub nsw i32 0, %47
store i32 %48, ptr %3, align 4
br label %184
49: ; preds = %39
%50 = load ptr, ptr %9, align 8
%51 = getelementptr inbounds %struct.addrinfo, ptr %50, i32 0, i32 4
%52 = load i32, ptr %51, align 4
%53 = load ptr, ptr %9, align 8
%54 = getelementptr inbounds %struct.addrinfo, ptr %53, i32 0, i32 3
%55 = load i32, ptr %54, align 8
%56 = load ptr, ptr %9, align 8
%57 = getelementptr inbounds %struct.addrinfo, ptr %56, i32 0, i32 2
%58 = load i64, ptr %57, align 8
%59 = call i32 @socket(i32 noundef %52, i32 noundef %55, i64 noundef %58)
store i32 %59, ptr %6, align 4
%60 = load i32, ptr %6, align 4
%61 = load ptr, ptr %9, align 8
%62 = getelementptr inbounds %struct.addrinfo, ptr %61, i32 0, i32 1
%63 = load i64, ptr %62, align 8
%64 = inttoptr i64 %63 to ptr
%65 = load ptr, ptr %9, align 8
%66 = getelementptr inbounds %struct.addrinfo, ptr %65, i32 0, i32 0
%67 = load i32, ptr %66, align 8
%68 = call i32 @bind(i32 noundef %60, ptr noundef %64, i32 noundef %67)
store i32 0, ptr %15, align 4
br label %69
69: ; preds = %161, %49
%70 = load i32, ptr %15, align 4
%71 = icmp slt i32 %70, 2
br i1 %71, label %72, label %164
72: ; preds = %69
%73 = call i32 (...) @fork()
store i32 %73, ptr %14, align 4
%74 = load i32, ptr %14, align 4
%75 = load i32, ptr %15, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 %76
store i32 %74, ptr %77, align 4
%78 = load i32, ptr %14, align 4
%79 = icmp eq i32 %78, -1
br i1 %79, label %80, label %82
80: ; preds = %72
%81 = call i32 @perror(ptr noundef @.str.2)
br label %160
82: ; preds = %72
%83 = load i32, ptr %14, align 4
%84 = icmp eq i32 %83, 0
br i1 %84, label %85, label %159
85: ; preds = %82
br label %86
86: ; preds = %85, %158
store i32 4, ptr %18, align 4
%87 = load i32, ptr @NI_MAXHOST, align 4
%88 = zext i32 %87 to i64
%89 = call ptr @llvm.stacksave()
store ptr %89, ptr %19, align 8
%90 = alloca i8, i64 %88, align 16
store i64 %88, ptr %20, align 8
%91 = load i32, ptr @NI_MAXSERV, align 4
%92 = zext i32 %91 to i64
%93 = alloca i8, i64 %92, align 16
store i64 %92, ptr %21, align 8
%94 = load i32, ptr %6, align 4
%95 = getelementptr inbounds [80 x i8], ptr %10, i64 0, i64 0
%96 = call i32 @recvfrom(i32 noundef %94, ptr noundef %95, i32 noundef 80, i32 noundef 0, ptr noundef %17, ptr noundef %18)
store i32 %96, ptr %22, align 4
%97 = load i32, ptr %22, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds [80 x i8], ptr %10, i64 0, i64 %98
store i8 0, ptr %99, align 1
%100 = load i32, ptr %18, align 4
%101 = load i32, ptr @NI_MAXHOST, align 4
%102 = load i32, ptr @NI_MAXSERV, align 4
%103 = load i32, ptr @NI_NUMERICHOST, align 4
%104 = load i32, ptr @NI_NUMERICSERV, align 4
%105 = or i32 %103, %104
%106 = call i32 @getnameinfo(ptr noundef %17, i32 noundef %100, ptr noundef %90, i32 noundef %101, ptr noundef %93, i32 noundef %102, i32 noundef %105)
%107 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %90, ptr noundef %93)
%108 = getelementptr inbounds [80 x i8], ptr %10, i64 0, i64 0
%109 = load i8, ptr %108, align 16
%110 = sext i8 %109 to i32
%111 = icmp eq i32 %110, 105
br i1 %111, label %112, label %140
112: ; preds = %86
%113 = getelementptr inbounds [80 x i8], ptr %10, i64 0, i64 2
%114 = getelementptr inbounds [80 x i8], ptr %23, i64 0, i64 0
%115 = call i32 @sscanf(ptr noundef %113, ptr noundef @.str.4, ptr noundef %114)
%116 = getelementptr inbounds [80 x i8], ptr %23, i64 0, i64 0
%117 = call i32 @stat(ptr noundef %116, ptr noundef %25)
%118 = icmp eq i32 %117, -1
br i1 %118, label %119, label %121
119: ; preds = %112
%120 = call i32 @perror(ptr noundef @.str.5)
br label %139
121: ; preds = %112
%122 = getelementptr inbounds %struct.stat, ptr %25, i32 0, i32 0
%123 = load i32, ptr %122, align 4
store i32 %123, ptr %11, align 4
%124 = getelementptr inbounds %struct.stat, ptr %25, i32 0, i32 1
%125 = load i32, ptr %124, align 4
store i32 %125, ptr %12, align 4
%126 = getelementptr inbounds %struct.stat, ptr %25, i32 0, i32 2
%127 = load i32, ptr %126, align 4
store i32 %127, ptr %13, align 4
%128 = getelementptr inbounds [80 x i8], ptr %24, i64 0, i64 0
%129 = load i32, ptr %11, align 4
%130 = load i32, ptr %12, align 4
%131 = load i32, ptr %13, align 4
%132 = call i32 @sprintf(ptr noundef %128, ptr noundef @.str.6, i32 noundef %129, i32 noundef %130, i32 noundef %131)
%133 = load i32, ptr %6, align 4
%134 = getelementptr inbounds [80 x i8], ptr %24, i64 0, i64 0
%135 = getelementptr inbounds [80 x i8], ptr %24, i64 0, i64 0
%136 = call i32 @strlen(ptr noundef %135)
%137 = load i32, ptr %18, align 4
%138 = call i32 @sendto(i32 noundef %133, ptr noundef %134, i32 noundef %136, i32 noundef 0, ptr noundef %17, i32 noundef %137)
br label %139
139: ; preds = %121, %119
br label %154
140: ; preds = %86
%141 = getelementptr inbounds [80 x i8], ptr %10, i64 0, i64 0
%142 = load i8, ptr %141, align 16
%143 = sext i8 %142 to i32
%144 = icmp eq i32 %143, 113
br i1 %144, label %145, label %153
145: ; preds = %140
%146 = load i32, ptr %6, align 4
%147 = load i32, ptr %18, align 4
%148 = call i32 @sendto(i32 noundef %146, ptr noundef @.str.7, i32 noundef 20, i32 noundef 0, ptr noundef %17, i32 noundef %147)
%149 = load ptr, ptr %9, align 8
%150 = call i32 @freeaddrinfo(ptr noundef %149)
%151 = load i32, ptr %6, align 4
%152 = call i32 @close(i32 noundef %151)
store i32 0, ptr %3, align 4
store i32 1, ptr %26, align 4
br label %155
153: ; preds = %140
br label %154
154: ; preds = %153, %139
store i32 0, ptr %26, align 4
br label %155
155: ; preds = %154, %145
%156 = load ptr, ptr %19, align 8
call void @llvm.stackrestore(ptr %156)
%157 = load i32, ptr %26, align 4
switch i32 %157, label %186 [
i32 0, label %158
i32 1, label %184
]
158: ; preds = %155
br label %86
159: ; preds = %82
br label %160
160: ; preds = %159, %80
br label %161
161: ; preds = %160
%162 = load i32, ptr %15, align 4
%163 = add nsw i32 %162, 1
store i32 %163, ptr %15, align 4
br label %69, !llvm.loop !6
164: ; preds = %69
store i32 0, ptr %15, align 4
br label %165
165: ; preds = %168, %164
%166 = load i32, ptr %15, align 4
%167 = icmp slt i32 %166, 2
br i1 %167, label %168, label %179
168: ; preds = %165
%169 = call i32 @wait(ptr noundef %27)
%170 = load i32, ptr %15, align 4
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 %171
%173 = load i32, ptr %172, align 4
%174 = load i32, ptr %27, align 4
%175 = call i32 @WEXITSTATUS(i32 noundef %174)
%176 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %173, i32 noundef %175)
%177 = load i32, ptr %15, align 4
%178 = add nsw i32 %177, 1
store i32 %178, ptr %15, align 4
br label %165, !llvm.loop !8
179: ; preds = %165
%180 = load ptr, ptr %9, align 8
%181 = call i32 @freeaddrinfo(ptr noundef %180)
%182 = load i32, ptr %6, align 4
%183 = call i32 @close(i32 noundef %182)
store i32 0, ptr %3, align 4
br label %184
184: ; preds = %179, %155, %46
%185 = load i32, ptr %3, align 4
ret i32 %185
186: ; preds = %155
unreachable
}
declare i32 @perror(ptr noundef) #1
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i64 noundef) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @fork(...) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @recvfrom(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @getnameinfo(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @stat(ptr noundef, ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @sendto(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @freeaddrinfo(ptr noundef) #1
declare i32 @close(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
declare i32 @wait(ptr 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" }
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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdzi9gxh6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.addrinfo = type { i32, i64, i64, i32, i32, i32 }
%struct.sockaddr_storage = type { i32 }
%struct.stat = type { i32, i32, i32 }
@AI_PASSIVE = dso_local global i32 0, align 4
@AF_UNSPEC = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [22 x i8] c"Error de argumentos.\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"::\00", align 1
@EINVAL = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [13 x i8] c"Error fork.\0A\00", align 1
@NI_MAXHOST = dso_local global i32 0, align 4
@NI_MAXSERV = dso_local global i32 0, align 4
@NI_NUMERICHOST = dso_local global i32 0, align 4
@NI_NUMERICSERV = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [22 x i8] c"Host: %s, Puerto: %s\0A\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.5 = private unnamed_addr constant [16 x i8] c"Error de stat.\0A\00", align 1
@.str.6 = private unnamed_addr constant [27 x i8] c"UID: %i, GID: %i, INO: %i\0A\00", align 1
@.str.7 = private unnamed_addr constant [21 x i8] c"CERRANDO CONEXION..\0A\00", align 1
@.str.8 = private unnamed_addr constant [38 x i8] c"Fin proceso %i, c\C3\B3digo de salida %i\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 %struct.addrinfo, align 8
%9 = alloca ptr, align 8
%10 = alloca [80 x i8], align 16
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca [2 x i32], align 4
%17 = alloca %struct.sockaddr_storage, align 4
%18 = alloca i32, align 4
%19 = alloca ptr, align 8
%20 = alloca i64, align 8
%21 = alloca i64, align 8
%22 = alloca i32, align 4
%23 = alloca [80 x i8], align 16
%24 = alloca [80 x i8], align 16
%25 = alloca %struct.stat, align 4
%26 = alloca i32, align 4
%27 = 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 %11, align 4
store i32 0, ptr %12, align 4
store i32 0, ptr %13, align 4
%28 = load i32, ptr @AI_PASSIVE, align 4
%29 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 5
store i32 %28, ptr %29, align 8
%30 = load i32, ptr @AF_UNSPEC, align 4
%31 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 4
store i32 %30, ptr %31, align 4
%32 = load i32, ptr @SOCK_DGRAM, align 4
%33 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 3
store i32 %32, ptr %33, align 8
%34 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 2
store i64 0, ptr %34, align 8
%35 = load i32, ptr %4, align 4
%36 = icmp slt i32 %35, 2
br i1 %36, label %37, label %39
37: ; preds = %2
%38 = call i32 @perror(ptr noundef @.str)
br label %39
39: ; preds = %37, %2
%40 = load ptr, ptr %5, align 8
%41 = getelementptr inbounds ptr, ptr %40, i64 1
%42 = load ptr, ptr %41, align 8
%43 = call i32 @getaddrinfo(ptr noundef @.str.1, ptr noundef %42, ptr noundef %8, ptr noundef %9)
store i32 %43, ptr %7, align 4
%44 = load i32, ptr %7, align 4
%45 = icmp slt i32 %44, 0
br i1 %45, label %46, label %49
46: ; preds = %39
%47 = load i32, ptr @EINVAL, align 4
%48 = sub nsw i32 0, %47
store i32 %48, ptr %3, align 4
br label %186
49: ; preds = %39
%50 = load ptr, ptr %9, align 8
%51 = getelementptr inbounds %struct.addrinfo, ptr %50, i32 0, i32 4
%52 = load i32, ptr %51, align 4
%53 = load ptr, ptr %9, align 8
%54 = getelementptr inbounds %struct.addrinfo, ptr %53, i32 0, i32 3
%55 = load i32, ptr %54, align 8
%56 = load ptr, ptr %9, align 8
%57 = getelementptr inbounds %struct.addrinfo, ptr %56, i32 0, i32 2
%58 = load i64, ptr %57, align 8
%59 = call i32 @socket(i32 noundef %52, i32 noundef %55, i64 noundef %58)
store i32 %59, ptr %6, align 4
%60 = load i32, ptr %6, align 4
%61 = load ptr, ptr %9, align 8
%62 = getelementptr inbounds %struct.addrinfo, ptr %61, i32 0, i32 1
%63 = load i64, ptr %62, align 8
%64 = inttoptr i64 %63 to ptr
%65 = load ptr, ptr %9, align 8
%66 = getelementptr inbounds %struct.addrinfo, ptr %65, i32 0, i32 0
%67 = load i32, ptr %66, align 8
%68 = call i32 @bind(i32 noundef %60, ptr noundef %64, i32 noundef %67)
store i32 0, ptr %15, align 4
%69 = load i32, ptr %15, align 4
%70 = icmp slt i32 %69, 2
br i1 %70, label %.lr.ph, label %165
.lr.ph: ; preds = %49
br label %71
71: ; preds = %.lr.ph, %160
%72 = call i32 (...) @fork()
store i32 %72, ptr %14, align 4
%73 = load i32, ptr %14, align 4
%74 = load i32, ptr %15, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 %75
store i32 %73, ptr %76, align 4
%77 = load i32, ptr %14, align 4
%78 = icmp eq i32 %77, -1
br i1 %78, label %79, label %81
79: ; preds = %71
%80 = call i32 @perror(ptr noundef @.str.2)
br label %159
81: ; preds = %71
%82 = load i32, ptr %14, align 4
%83 = icmp eq i32 %82, 0
br i1 %83, label %84, label %158
84: ; preds = %81
br label %85
85: ; preds = %157, %84
store i32 4, ptr %18, align 4
%86 = load i32, ptr @NI_MAXHOST, align 4
%87 = zext i32 %86 to i64
%88 = call ptr @llvm.stacksave()
store ptr %88, ptr %19, align 8
%89 = alloca i8, i64 %87, align 16
store i64 %87, ptr %20, align 8
%90 = load i32, ptr @NI_MAXSERV, align 4
%91 = zext i32 %90 to i64
%92 = alloca i8, i64 %91, align 16
store i64 %91, ptr %21, align 8
%93 = load i32, ptr %6, align 4
%94 = getelementptr inbounds [80 x i8], ptr %10, i64 0, i64 0
%95 = call i32 @recvfrom(i32 noundef %93, ptr noundef %94, i32 noundef 80, i32 noundef 0, ptr noundef %17, ptr noundef %18)
store i32 %95, ptr %22, align 4
%96 = load i32, ptr %22, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [80 x i8], ptr %10, i64 0, i64 %97
store i8 0, ptr %98, align 1
%99 = load i32, ptr %18, align 4
%100 = load i32, ptr @NI_MAXHOST, align 4
%101 = load i32, ptr @NI_MAXSERV, align 4
%102 = load i32, ptr @NI_NUMERICHOST, align 4
%103 = load i32, ptr @NI_NUMERICSERV, align 4
%104 = or i32 %102, %103
%105 = call i32 @getnameinfo(ptr noundef %17, i32 noundef %99, ptr noundef %89, i32 noundef %100, ptr noundef %92, i32 noundef %101, i32 noundef %104)
%106 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %89, ptr noundef %92)
%107 = getelementptr inbounds [80 x i8], ptr %10, i64 0, i64 0
%108 = load i8, ptr %107, align 16
%109 = sext i8 %108 to i32
%110 = icmp eq i32 %109, 105
br i1 %110, label %111, label %139
111: ; preds = %85
%112 = getelementptr inbounds [80 x i8], ptr %10, i64 0, i64 2
%113 = getelementptr inbounds [80 x i8], ptr %23, i64 0, i64 0
%114 = call i32 @sscanf(ptr noundef %112, ptr noundef @.str.4, ptr noundef %113)
%115 = getelementptr inbounds [80 x i8], ptr %23, i64 0, i64 0
%116 = call i32 @stat(ptr noundef %115, ptr noundef %25)
%117 = icmp eq i32 %116, -1
br i1 %117, label %118, label %120
118: ; preds = %111
%119 = call i32 @perror(ptr noundef @.str.5)
br label %138
120: ; preds = %111
%121 = getelementptr inbounds %struct.stat, ptr %25, i32 0, i32 0
%122 = load i32, ptr %121, align 4
store i32 %122, ptr %11, align 4
%123 = getelementptr inbounds %struct.stat, ptr %25, i32 0, i32 1
%124 = load i32, ptr %123, align 4
store i32 %124, ptr %12, align 4
%125 = getelementptr inbounds %struct.stat, ptr %25, i32 0, i32 2
%126 = load i32, ptr %125, align 4
store i32 %126, ptr %13, align 4
%127 = getelementptr inbounds [80 x i8], ptr %24, i64 0, i64 0
%128 = load i32, ptr %11, align 4
%129 = load i32, ptr %12, align 4
%130 = load i32, ptr %13, align 4
%131 = call i32 @sprintf(ptr noundef %127, ptr noundef @.str.6, i32 noundef %128, i32 noundef %129, i32 noundef %130)
%132 = load i32, ptr %6, align 4
%133 = getelementptr inbounds [80 x i8], ptr %24, i64 0, i64 0
%134 = getelementptr inbounds [80 x i8], ptr %24, i64 0, i64 0
%135 = call i32 @strlen(ptr noundef %134)
%136 = load i32, ptr %18, align 4
%137 = call i32 @sendto(i32 noundef %132, ptr noundef %133, i32 noundef %135, i32 noundef 0, ptr noundef %17, i32 noundef %136)
br label %138
138: ; preds = %120, %118
br label %153
139: ; preds = %85
%140 = getelementptr inbounds [80 x i8], ptr %10, i64 0, i64 0
%141 = load i8, ptr %140, align 16
%142 = sext i8 %141 to i32
%143 = icmp eq i32 %142, 113
br i1 %143, label %144, label %152
144: ; preds = %139
%145 = load i32, ptr %6, align 4
%146 = load i32, ptr %18, align 4
%147 = call i32 @sendto(i32 noundef %145, ptr noundef @.str.7, i32 noundef 20, i32 noundef 0, ptr noundef %17, i32 noundef %146)
%148 = load ptr, ptr %9, align 8
%149 = call i32 @freeaddrinfo(ptr noundef %148)
%150 = load i32, ptr %6, align 4
%151 = call i32 @close(i32 noundef %150)
store i32 0, ptr %3, align 4
store i32 1, ptr %26, align 4
br label %154
152: ; preds = %139
br label %153
153: ; preds = %152, %138
store i32 0, ptr %26, align 4
br label %154
154: ; preds = %153, %144
%155 = load ptr, ptr %19, align 8
call void @llvm.stackrestore(ptr %155)
%156 = load i32, ptr %26, align 4
switch i32 %156, label %188 [
i32 0, label %157
i32 1, label %.loopexit
]
157: ; preds = %154
br label %85
158: ; preds = %81
br label %159
159: ; preds = %158, %79
br label %160
160: ; preds = %159
%161 = load i32, ptr %15, align 4
%162 = add nsw i32 %161, 1
store i32 %162, ptr %15, align 4
%163 = load i32, ptr %15, align 4
%164 = icmp slt i32 %163, 2
br i1 %164, label %71, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %160
br label %165
165: ; preds = %._crit_edge, %49
store i32 0, ptr %15, align 4
%166 = load i32, ptr %15, align 4
%167 = icmp slt i32 %166, 2
br i1 %167, label %.lr.ph2, label %181
.lr.ph2: ; preds = %165
br label %168
168: ; preds = %.lr.ph2, %168
%169 = call i32 @wait(ptr noundef %27)
%170 = load i32, ptr %15, align 4
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 %171
%173 = load i32, ptr %172, align 4
%174 = load i32, ptr %27, align 4
%175 = call i32 @WEXITSTATUS(i32 noundef %174)
%176 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %173, i32 noundef %175)
%177 = load i32, ptr %15, align 4
%178 = add nsw i32 %177, 1
store i32 %178, ptr %15, align 4
%179 = load i32, ptr %15, align 4
%180 = icmp slt i32 %179, 2
br i1 %180, label %168, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %168
br label %181
181: ; preds = %._crit_edge3, %165
%182 = load ptr, ptr %9, align 8
%183 = call i32 @freeaddrinfo(ptr noundef %182)
%184 = load i32, ptr %6, align 4
%185 = call i32 @close(i32 noundef %184)
store i32 0, ptr %3, align 4
br label %186
.loopexit: ; preds = %154
br label %186
186: ; preds = %.loopexit, %181, %46
%187 = load i32, ptr %3, align 4
ret i32 %187
188: ; preds = %154
unreachable
}
declare i32 @perror(ptr noundef) #1
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i64 noundef) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @fork(...) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @recvfrom(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @getnameinfo(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @stat(ptr noundef, ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @sendto(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @freeaddrinfo(ptr noundef) #1
declare i32 @close(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
declare i32 @wait(ptr 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" }
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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp90m1hslw.c'
source_filename = "/tmp/tmp90m1hslw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ExtractSecond(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [5 x i8], align 1
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = getelementptr inbounds i8, ptr %5, i64 17
%7 = load i8, ptr %6, align 1
%8 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 0
store i8 %7, ptr %8, align 1
%9 = load ptr, ptr %2, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 18
%11 = load i8, ptr %10, align 1
%12 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 1
store i8 %11, ptr %12, align 1
%13 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 2
store i8 0, ptr %13, align 1
%14 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 0
%15 = call i32 @atoi(ptr noundef %14)
store i32 %15, ptr %4, align 4
%16 = load i32, ptr %4, align 4
ret i32 %16
}
declare i32 @atoi(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp90m1hslw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ExtractSecond(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca [5 x i8], align 1
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = getelementptr inbounds i8, ptr %5, i64 17
%7 = load i8, ptr %6, align 1
%8 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 0
store i8 %7, ptr %8, align 1
%9 = load ptr, ptr %2, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 18
%11 = load i8, ptr %10, align 1
%12 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 1
store i8 %11, ptr %12, align 1
%13 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 2
store i8 0, ptr %13, align 1
%14 = getelementptr inbounds [5 x i8], ptr %3, i64 0, i64 0
%15 = call i32 @atoi(ptr noundef %14)
store i32 %15, ptr %4, align 4
%16 = load i32, ptr %4, align 4
ret i32 %16
}
declare i32 @atoi(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2ebn3bwx.c'
source_filename = "/tmp/tmp2ebn3bwx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hex_to_bin(i8 noundef signext %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i8, align 1
store i8 %0, ptr %3, align 1
%4 = load i8, ptr %3, align 1
%5 = sext i8 %4 to i32
%6 = icmp sge i32 %5, 48
br i1 %6, label %7, label %15
7: ; preds = %1
%8 = load i8, ptr %3, align 1
%9 = sext i8 %8 to i32
%10 = icmp sle i32 %9, 57
br i1 %10, label %11, label %15
11: ; preds = %7
%12 = load i8, ptr %3, align 1
%13 = sext i8 %12 to i32
%14 = sub nsw i32 %13, 48
store i32 %14, ptr %2, align 4
br label %31
15: ; preds = %7, %1
%16 = load i8, ptr %3, align 1
%17 = call signext i8 @tolower(i8 noundef signext %16)
store i8 %17, ptr %3, align 1
%18 = load i8, ptr %3, align 1
%19 = sext i8 %18 to i32
%20 = icmp sge i32 %19, 97
br i1 %20, label %21, label %30
21: ; preds = %15
%22 = load i8, ptr %3, align 1
%23 = sext i8 %22 to i32
%24 = icmp sle i32 %23, 102
br i1 %24, label %25, label %30
25: ; preds = %21
%26 = load i8, ptr %3, align 1
%27 = sext i8 %26 to i32
%28 = sub nsw i32 %27, 97
%29 = add nsw i32 %28, 10
store i32 %29, ptr %2, align 4
br label %31
30: ; preds = %21, %15
store i32 -1, ptr %2, align 4
br label %31
31: ; preds = %30, %25, %11
%32 = load i32, ptr %2, align 4
ret i32 %32
}
declare signext i8 @tolower(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2ebn3bwx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hex_to_bin(i8 noundef signext %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i8, align 1
store i8 %0, ptr %3, align 1
%4 = load i8, ptr %3, align 1
%5 = sext i8 %4 to i32
%6 = icmp sge i32 %5, 48
br i1 %6, label %7, label %15
7: ; preds = %1
%8 = load i8, ptr %3, align 1
%9 = sext i8 %8 to i32
%10 = icmp sle i32 %9, 57
br i1 %10, label %11, label %15
11: ; preds = %7
%12 = load i8, ptr %3, align 1
%13 = sext i8 %12 to i32
%14 = sub nsw i32 %13, 48
store i32 %14, ptr %2, align 4
br label %31
15: ; preds = %7, %1
%16 = load i8, ptr %3, align 1
%17 = call signext i8 @tolower(i8 noundef signext %16)
store i8 %17, ptr %3, align 1
%18 = load i8, ptr %3, align 1
%19 = sext i8 %18 to i32
%20 = icmp sge i32 %19, 97
br i1 %20, label %21, label %30
21: ; preds = %15
%22 = load i8, ptr %3, align 1
%23 = sext i8 %22 to i32
%24 = icmp sle i32 %23, 102
br i1 %24, label %25, label %30
25: ; preds = %21
%26 = load i8, ptr %3, align 1
%27 = sext i8 %26 to i32
%28 = sub nsw i32 %27, 97
%29 = add nsw i32 %28, 10
store i32 %29, ptr %2, align 4
br label %31
30: ; preds = %21, %15
store i32 -1, ptr %2, align 4
br label %31
31: ; preds = %30, %25, %11
%32 = load i32, ptr %2, align 4
ret i32 %32
}
declare signext i8 @tolower(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpln99dhm3.c'
source_filename = "/tmp/tmpln99dhm3.c"
target datalayout = "e-m:e-p270: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 { double, i32 }
@CLOCK_REALTIME = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @absolute_timestamp() #0 {
%1 = alloca %struct.timespec, align 8
%2 = load i32, ptr @CLOCK_REALTIME, align 4
%3 = call i32 @clock_gettime(i32 noundef %2, ptr noundef %1)
%4 = getelementptr inbounds %struct.timespec, ptr %1, i32 0, i32 0
%5 = load double, ptr %4, align 8
%6 = getelementptr inbounds %struct.timespec, ptr %1, i32 0, i32 1
%7 = load i32, ptr %6, align 8
%8 = sitofp i32 %7 to double
%9 = call double @llvm.fmuladd.f64(double %8, double 1.000000e-09, double %5)
ret double %9
}
declare i32 @clock_gettime(i32 noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpln99dhm3.c"
target datalayout = "e-m:e-p270: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 { double, i32 }
@CLOCK_REALTIME = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @absolute_timestamp() #0 {
%1 = alloca %struct.timespec, align 8
%2 = load i32, ptr @CLOCK_REALTIME, align 4
%3 = call i32 @clock_gettime(i32 noundef %2, ptr noundef %1)
%4 = getelementptr inbounds %struct.timespec, ptr %1, i32 0, i32 0
%5 = load double, ptr %4, align 8
%6 = getelementptr inbounds %struct.timespec, ptr %1, i32 0, i32 1
%7 = load i32, ptr %6, align 8
%8 = sitofp i32 %7 to double
%9 = call double @llvm.fmuladd.f64(double %8, double 1.000000e-09, double %5)
ret double %9
}
declare i32 @clock_gettime(i32 noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpogpc9dv7.c'
source_filename = "/tmp/tmpogpc9dv7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpogpc9dv7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpx_7f_1iq.c'
source_filename = "/tmp/tmpx_7f_1iq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"DEBUG: \00", align 1
@.str.1 = private unnamed_addr constant [55 x i8] c"read_string - no process has the pipe open for writing\00", align 1
@.str.2 = private unnamed_addr constant [36 x i8] c"read_string - Failed to read string\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read_string(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%7 = load i32, ptr %3, align 4
%8 = call i32 @read_int(i32 noundef %7, ptr noundef %5)
%9 = load i32, ptr %3, align 4
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %5, align 4
%12 = call i32 @read(i32 noundef %9, ptr noundef %10, i32 noundef %11)
store i32 %12, ptr %6, align 4
%13 = load i32, ptr %6, align 4
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %2
%16 = call i32 @printf(ptr noundef @.str)
%17 = call i32 @puts(ptr noundef @.str.1)
br label %26
18: ; preds = %2
%19 = load i32, ptr %6, align 4
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %25
21: ; preds = %18
%22 = call i32 @perror(ptr noundef @.str.2)
%23 = load i32, ptr @EXIT_FAILURE, align 4
%24 = call i32 @exit(i32 noundef %23) #3
unreachable
25: ; preds = %18
br label %26
26: ; preds = %25, %15
%27 = load i32, ptr %6, align 4
ret i32 %27
}
declare i32 @read_int(i32 noundef, ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @puts(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpx_7f_1iq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"DEBUG: \00", align 1
@.str.1 = private unnamed_addr constant [55 x i8] c"read_string - no process has the pipe open for writing\00", align 1
@.str.2 = private unnamed_addr constant [36 x i8] c"read_string - Failed to read string\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read_string(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%7 = load i32, ptr %3, align 4
%8 = call i32 @read_int(i32 noundef %7, ptr noundef %5)
%9 = load i32, ptr %3, align 4
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %5, align 4
%12 = call i32 @read(i32 noundef %9, ptr noundef %10, i32 noundef %11)
store i32 %12, ptr %6, align 4
%13 = load i32, ptr %6, align 4
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %2
%16 = call i32 @printf(ptr noundef @.str)
%17 = call i32 @puts(ptr noundef @.str.1)
br label %26
18: ; preds = %2
%19 = load i32, ptr %6, align 4
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %25
21: ; preds = %18
%22 = call i32 @perror(ptr noundef @.str.2)
%23 = load i32, ptr @EXIT_FAILURE, align 4
%24 = call i32 @exit(i32 noundef %23) #3
unreachable
25: ; preds = %18
br label %26
26: ; preds = %25, %15
%27 = load i32, ptr %6, align 4
ret i32 %27
}
declare i32 @read_int(i32 noundef, ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @puts(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqfu9235z.c'
source_filename = "/tmp/tmpqfu9235z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"LDW.D *\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @C67_LDW_PTR(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @C67_asm(ptr noundef @.str, i32 noundef %5, i32 noundef %6, i32 noundef 0)
ret void
}
declare i32 @C67_asm(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqfu9235z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"LDW.D *\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @C67_LDW_PTR(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @C67_asm(ptr noundef @.str, i32 noundef %5, i32 noundef %6, i32 noundef 0)
ret void
}
declare i32 @C67_asm(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpubcfpxmd.c'
source_filename = "/tmp/tmpubcfpxmd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @new_long2str(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca [22 x i8], align 16
store i64 %0, ptr %2, align 8
%4 = getelementptr inbounds [22 x i8], ptr %3, i64 0, i64 0
%5 = load i64, ptr %2, align 8
%6 = call i32 @long2str(ptr noundef %4, i64 noundef %5)
%7 = call ptr @new_str(i32 noundef %6)
ret ptr %7
}
declare ptr @new_str(i32 noundef) #1
declare i32 @long2str(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/tmpubcfpxmd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @new_long2str(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca [22 x i8], align 16
store i64 %0, ptr %2, align 8
%4 = getelementptr inbounds [22 x i8], ptr %3, i64 0, i64 0
%5 = load i64, ptr %2, align 8
%6 = call i32 @long2str(ptr noundef %4, i64 noundef %5)
%7 = call ptr @new_str(i32 noundef %6)
ret ptr %7
}
declare ptr @new_str(i32 noundef) #1
declare i32 @long2str(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/tmpywq5rvgu.c'
source_filename = "/tmp/tmpywq5rvgu.c"
target datalayout = "e-m:e-p270: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/tmpywq5rvgu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_jehx6zg.c'
source_filename = "/tmp/tmp_jehx6zg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.tm = type { i32 }
@.str = private unnamed_addr constant [18 x i8] c"%Y-%m-%d %H:%M:%S\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [35 x i8] c"error while processing time spec!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @parse_time(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca %struct.tm, align 4
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call ptr @strptime(ptr noundef %5, ptr noundef @.str, ptr noundef %3)
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %14
9: ; preds = %1
%10 = load ptr, ptr %4, align 8
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %9, %1
%15 = load i32, ptr @stderr, align 4
%16 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str.1)
%17 = call i32 (...) @croak_usage()
br label %18
18: ; preds = %14, %9
%19 = call i32 @mktime(ptr noundef %3)
ret i32 %19
}
declare ptr @strptime(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @croak_usage(...) #1
declare i32 @mktime(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!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_jehx6zg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.tm = type { i32 }
@.str = private unnamed_addr constant [18 x i8] c"%Y-%m-%d %H:%M:%S\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [35 x i8] c"error while processing time spec!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @parse_time(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca %struct.tm, align 4
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call ptr @strptime(ptr noundef %5, ptr noundef @.str, ptr noundef %3)
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %14
9: ; preds = %1
%10 = load ptr, ptr %4, align 8
%11 = load i8, ptr %10, align 1
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %9, %1
%15 = load i32, ptr @stderr, align 4
%16 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str.1)
%17 = call i32 (...) @croak_usage()
br label %18
18: ; preds = %14, %9
%19 = call i32 @mktime(ptr noundef %3)
ret i32 %19
}
declare ptr @strptime(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @croak_usage(...) #1
declare i32 @mktime(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp16e6qkok.c'
source_filename = "/tmp/tmp16e6qkok.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"B\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"I\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"N\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"O\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"U\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"S\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"NJ\00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c"BAL\00", align 1
@.str.8 = private unnamed_addr constant [4 x i8] c"OLS\00", align 1
@.str.9 = private unnamed_addr constant [4 x i8] c"UNJ\00", align 1
@.str.10 = private unnamed_addr constant [5 x i8] c"USER\00", align 1
@.str.11 = private unnamed_addr constant [6 x i8] c"BALME\00", align 1
@.str.12 = private unnamed_addr constant [6 x i8] c"OLSME\00", align 1
@.str.13 = private unnamed_addr constant [6 x i8] c"BIONJ\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getM(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 1, ptr %3, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @Uppercase(ptr noundef %4)
%6 = load ptr, ptr %2, align 8
%7 = call i32 @strlen(ptr noundef %6)
switch i32 %7, label %92 [
i32 1, label %8
i32 2, label %44
i32 3, label %50
i32 4, label %68
i32 5, label %74
]
8: ; preds = %1
%9 = load ptr, ptr %2, align 8
%10 = call i32 @strncmp(ptr noundef %9, ptr noundef @.str, i32 noundef 1)
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %8
store i32 1, ptr %3, align 4
br label %43
13: ; preds = %8
%14 = load ptr, ptr %2, align 8
%15 = call i32 @strncmp(ptr noundef %14, ptr noundef @.str.1, i32 noundef 1)
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %13
store i32 7, ptr %3, align 4
br label %42
18: ; preds = %13
%19 = load ptr, ptr %2, align 8
%20 = call i32 @strncmp(ptr noundef %19, ptr noundef @.str.2, i32 noundef 1)
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %18
store i32 5, ptr %3, align 4
br label %41
23: ; preds = %18
%24 = load ptr, ptr %2, align 8
%25 = call i32 @strncmp(ptr noundef %24, ptr noundef @.str.3, i32 noundef 1)
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %23
store i32 2, ptr %3, align 4
br label %40
28: ; preds = %23
%29 = load ptr, ptr %2, align 8
%30 = call i32 @strncmp(ptr noundef %29, ptr noundef @.str.4, i32 noundef 1)
%31 = icmp eq i32 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %28
store i32 6, ptr %3, align 4
br label %39
33: ; preds = %28
%34 = load ptr, ptr %2, align 8
%35 = call i32 @strncmp(ptr noundef %34, ptr noundef @.str.5, i32 noundef 1)
%36 = icmp eq i32 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %33
store i32 10, ptr %3, align 4
br label %38
38: ; preds = %37, %33
br label %39
39: ; preds = %38, %32
br label %40
40: ; preds = %39, %27
br label %41
41: ; preds = %40, %22
br label %42
42: ; preds = %41, %17
br label %43
43: ; preds = %42, %12
br label %93
44: ; preds = %1
%45 = load ptr, ptr %2, align 8
%46 = call i32 @strncmp(ptr noundef %45, ptr noundef @.str.6, i32 noundef 2)
%47 = icmp eq i32 %46, 0
br i1 %47, label %48, label %49
48: ; preds = %44
store i32 5, ptr %3, align 4
br label %49
49: ; preds = %48, %44
br label %93
50: ; preds = %1
%51 = load ptr, ptr %2, align 8
%52 = call i32 @strncmp(ptr noundef %51, ptr noundef @.str.7, i32 noundef 3)
%53 = icmp eq i32 %52, 0
br i1 %53, label %54, label %55
54: ; preds = %50
store i32 1, ptr %3, align 4
br label %67
55: ; preds = %50
%56 = load ptr, ptr %2, align 8
%57 = call i32 @strncmp(ptr noundef %56, ptr noundef @.str.8, i32 noundef 3)
%58 = icmp eq i32 %57, 0
br i1 %58, label %59, label %60
59: ; preds = %55
store i32 2, ptr %3, align 4
br label %66
60: ; preds = %55
%61 = load ptr, ptr %2, align 8
%62 = call i32 @strncmp(ptr noundef %61, ptr noundef @.str.9, i32 noundef 3)
%63 = icmp eq i32 %62, 0
br i1 %63, label %64, label %65
64: ; preds = %60
store i32 6, ptr %3, align 4
br label %65
65: ; preds = %64, %60
br label %66
66: ; preds = %65, %59
br label %67
67: ; preds = %66, %54
br label %93
68: ; preds = %1
%69 = load ptr, ptr %2, align 8
%70 = call i32 @strncmp(ptr noundef %69, ptr noundef @.str.10, i32 noundef 4)
%71 = icmp eq i32 %70, 0
br i1 %71, label %72, label %73
72: ; preds = %68
store i32 10, ptr %3, align 4
br label %73
73: ; preds = %72, %68
br label %93
74: ; preds = %1
%75 = load ptr, ptr %2, align 8
%76 = call i32 @strncmp(ptr noundef %75, ptr noundef @.str.11, i32 noundef 5)
%77 = icmp eq i32 %76, 0
br i1 %77, label %78, label %79
78: ; preds = %74
store i32 1, ptr %3, align 4
br label %91
79: ; preds = %74
%80 = load ptr, ptr %2, align 8
%81 = call i32 @strncmp(ptr noundef %80, ptr noundef @.str.12, i32 noundef 5)
%82 = icmp eq i32 %81, 0
br i1 %82, label %83, label %84
83: ; preds = %79
store i32 2, ptr %3, align 4
br label %90
84: ; preds = %79
%85 = load ptr, ptr %2, align 8
%86 = call i32 @strncmp(ptr noundef %85, ptr noundef @.str.13, i32 noundef 5)
%87 = icmp eq i32 %86, 0
br i1 %87, label %88, label %89
88: ; preds = %84
store i32 7, ptr %3, align 4
br label %89
89: ; preds = %88, %84
br label %90
90: ; preds = %89, %83
br label %91
91: ; preds = %90, %78
br label %93
92: ; preds = %1
br label %93
93: ; preds = %92, %91, %73, %67, %49, %43
%94 = load i32, ptr %3, align 4
ret i32 %94
}
declare i32 @Uppercase(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp16e6qkok.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"B\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"I\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"N\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"O\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"U\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"S\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"NJ\00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c"BAL\00", align 1
@.str.8 = private unnamed_addr constant [4 x i8] c"OLS\00", align 1
@.str.9 = private unnamed_addr constant [4 x i8] c"UNJ\00", align 1
@.str.10 = private unnamed_addr constant [5 x i8] c"USER\00", align 1
@.str.11 = private unnamed_addr constant [6 x i8] c"BALME\00", align 1
@.str.12 = private unnamed_addr constant [6 x i8] c"OLSME\00", align 1
@.str.13 = private unnamed_addr constant [6 x i8] c"BIONJ\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getM(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 1, ptr %3, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @Uppercase(ptr noundef %4)
%6 = load ptr, ptr %2, align 8
%7 = call i32 @strlen(ptr noundef %6)
switch i32 %7, label %92 [
i32 1, label %8
i32 2, label %44
i32 3, label %50
i32 4, label %68
i32 5, label %74
]
8: ; preds = %1
%9 = load ptr, ptr %2, align 8
%10 = call i32 @strncmp(ptr noundef %9, ptr noundef @.str, i32 noundef 1)
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %8
store i32 1, ptr %3, align 4
br label %43
13: ; preds = %8
%14 = load ptr, ptr %2, align 8
%15 = call i32 @strncmp(ptr noundef %14, ptr noundef @.str.1, i32 noundef 1)
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %13
store i32 7, ptr %3, align 4
br label %42
18: ; preds = %13
%19 = load ptr, ptr %2, align 8
%20 = call i32 @strncmp(ptr noundef %19, ptr noundef @.str.2, i32 noundef 1)
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %18
store i32 5, ptr %3, align 4
br label %41
23: ; preds = %18
%24 = load ptr, ptr %2, align 8
%25 = call i32 @strncmp(ptr noundef %24, ptr noundef @.str.3, i32 noundef 1)
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %23
store i32 2, ptr %3, align 4
br label %40
28: ; preds = %23
%29 = load ptr, ptr %2, align 8
%30 = call i32 @strncmp(ptr noundef %29, ptr noundef @.str.4, i32 noundef 1)
%31 = icmp eq i32 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %28
store i32 6, ptr %3, align 4
br label %39
33: ; preds = %28
%34 = load ptr, ptr %2, align 8
%35 = call i32 @strncmp(ptr noundef %34, ptr noundef @.str.5, i32 noundef 1)
%36 = icmp eq i32 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %33
store i32 10, ptr %3, align 4
br label %38
38: ; preds = %37, %33
br label %39
39: ; preds = %38, %32
br label %40
40: ; preds = %39, %27
br label %41
41: ; preds = %40, %22
br label %42
42: ; preds = %41, %17
br label %43
43: ; preds = %42, %12
br label %93
44: ; preds = %1
%45 = load ptr, ptr %2, align 8
%46 = call i32 @strncmp(ptr noundef %45, ptr noundef @.str.6, i32 noundef 2)
%47 = icmp eq i32 %46, 0
br i1 %47, label %48, label %49
48: ; preds = %44
store i32 5, ptr %3, align 4
br label %49
49: ; preds = %48, %44
br label %93
50: ; preds = %1
%51 = load ptr, ptr %2, align 8
%52 = call i32 @strncmp(ptr noundef %51, ptr noundef @.str.7, i32 noundef 3)
%53 = icmp eq i32 %52, 0
br i1 %53, label %54, label %55
54: ; preds = %50
store i32 1, ptr %3, align 4
br label %67
55: ; preds = %50
%56 = load ptr, ptr %2, align 8
%57 = call i32 @strncmp(ptr noundef %56, ptr noundef @.str.8, i32 noundef 3)
%58 = icmp eq i32 %57, 0
br i1 %58, label %59, label %60
59: ; preds = %55
store i32 2, ptr %3, align 4
br label %66
60: ; preds = %55
%61 = load ptr, ptr %2, align 8
%62 = call i32 @strncmp(ptr noundef %61, ptr noundef @.str.9, i32 noundef 3)
%63 = icmp eq i32 %62, 0
br i1 %63, label %64, label %65
64: ; preds = %60
store i32 6, ptr %3, align 4
br label %65
65: ; preds = %64, %60
br label %66
66: ; preds = %65, %59
br label %67
67: ; preds = %66, %54
br label %93
68: ; preds = %1
%69 = load ptr, ptr %2, align 8
%70 = call i32 @strncmp(ptr noundef %69, ptr noundef @.str.10, i32 noundef 4)
%71 = icmp eq i32 %70, 0
br i1 %71, label %72, label %73
72: ; preds = %68
store i32 10, ptr %3, align 4
br label %73
73: ; preds = %72, %68
br label %93
74: ; preds = %1
%75 = load ptr, ptr %2, align 8
%76 = call i32 @strncmp(ptr noundef %75, ptr noundef @.str.11, i32 noundef 5)
%77 = icmp eq i32 %76, 0
br i1 %77, label %78, label %79
78: ; preds = %74
store i32 1, ptr %3, align 4
br label %91
79: ; preds = %74
%80 = load ptr, ptr %2, align 8
%81 = call i32 @strncmp(ptr noundef %80, ptr noundef @.str.12, i32 noundef 5)
%82 = icmp eq i32 %81, 0
br i1 %82, label %83, label %84
83: ; preds = %79
store i32 2, ptr %3, align 4
br label %90
84: ; preds = %79
%85 = load ptr, ptr %2, align 8
%86 = call i32 @strncmp(ptr noundef %85, ptr noundef @.str.13, i32 noundef 5)
%87 = icmp eq i32 %86, 0
br i1 %87, label %88, label %89
88: ; preds = %84
store i32 7, ptr %3, align 4
br label %89
89: ; preds = %88, %84
br label %90
90: ; preds = %89, %83
br label %91
91: ; preds = %90, %78
br label %93
92: ; preds = %1
br label %93
93: ; preds = %92, %91, %73, %67, %49, %43
%94 = load i32, ptr %3, align 4
ret i32 %94
}
declare i32 @Uppercase(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @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"}
|
; ModuleID = '/tmp/tmphjowpu22.c'
source_filename = "/tmp/tmphjowpu22.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Please input the first five number:\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"-------------------------\0A\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"| How to use ? |\0A\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"| 1.add: use \22 a int \22 |\0A\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"| 2.pop: use \22 p \22 |\0A\00", align 1
@.str.6 = private unnamed_addr constant [27 x i8] c"| 3.exit: use \22 EOF \22 |\0A\00", align 1
@.str.7 = private unnamed_addr constant [27 x i8] c"| |\0A\00", align 1
@.str.8 = private unnamed_addr constant [27 x i8] c"------------------------|\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @start(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
br label %5
5: ; preds = %14, %1
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 5
br i1 %7, label %8, label %17
8: ; preds = %5
%9 = load ptr, ptr %2, align 8
%10 = load i32, ptr %3, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i32, ptr %9, i64 %11
%13 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %12)
br label %14
14: ; preds = %8
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %3, align 4
br label %5, !llvm.loop !6
17: ; preds = %5
%18 = call i32 @printf(ptr noundef @.str.2)
%19 = call i32 @printf(ptr noundef @.str.3)
%20 = call i32 @printf(ptr noundef @.str.4)
%21 = call i32 @printf(ptr noundef @.str.5)
%22 = call i32 @printf(ptr noundef @.str.6)
%23 = call i32 @printf(ptr noundef @.str.7)
%24 = call i32 @printf(ptr noundef @.str.8)
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphjowpu22.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Please input the first five number:\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"-------------------------\0A\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"| How to use ? |\0A\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"| 1.add: use \22 a int \22 |\0A\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"| 2.pop: use \22 p \22 |\0A\00", align 1
@.str.6 = private unnamed_addr constant [27 x i8] c"| 3.exit: use \22 EOF \22 |\0A\00", align 1
@.str.7 = private unnamed_addr constant [27 x i8] c"| |\0A\00", align 1
@.str.8 = private unnamed_addr constant [27 x i8] c"------------------------|\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @start(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp slt i32 %5, 5
br i1 %6, label %.lr.ph, label %18
.lr.ph: ; preds = %1
br label %7
7: ; preds = %.lr.ph, %13
%8 = load ptr, ptr %2, align 8
%9 = load i32, ptr %3, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i32, ptr %8, i64 %10
%12 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %11)
br label %13
13: ; preds = %7
%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, 5
br i1 %17, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %18
18: ; preds = %._crit_edge, %1
%19 = call i32 @printf(ptr noundef @.str.2)
%20 = call i32 @printf(ptr noundef @.str.3)
%21 = call i32 @printf(ptr noundef @.str.4)
%22 = call i32 @printf(ptr noundef @.str.5)
%23 = call i32 @printf(ptr noundef @.str.6)
%24 = call i32 @printf(ptr noundef @.str.7)
%25 = call i32 @printf(ptr noundef @.str.8)
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpvl4gf_hw.c'
source_filename = "/tmp/tmpvl4gf_hw.c"
target datalayout = "e-m:e-p270: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/tmpvl4gf_hw.c"
target datalayout = "e-m:e-p270: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/tmp71veoc5h.c'
source_filename = "/tmp/tmp71veoc5h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_wholly_numeric(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load ptr, ptr %3, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = icmp ne i32 %8, 0
br i1 %9, label %11, label %10
10: ; preds = %6, %1
store i32 -1, ptr %2, align 4
br label %27
11: ; preds = %6
br label %12
12: ; preds = %23, %11
%13 = load ptr, ptr %3, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %26
17: ; preds = %12
%18 = load ptr, ptr %3, align 8
%19 = load i8, ptr %18, align 1
%20 = call i32 @isdigit(i8 noundef signext %19)
%21 = icmp ne i32 %20, 0
br i1 %21, label %23, label %22
22: ; preds = %17
store i32 -1, ptr %2, align 4
br label %27
23: ; preds = %17
%24 = load ptr, ptr %3, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %3, align 8
br label %12, !llvm.loop !6
26: ; preds = %12
store i32 0, ptr %2, align 4
br label %27
27: ; preds = %26, %22, %10
%28 = load i32, ptr %2, align 4
ret i32 %28
}
declare i32 @strlen(ptr noundef) #1
declare i32 @isdigit(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp71veoc5h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_wholly_numeric(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load ptr, ptr %3, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = icmp ne i32 %8, 0
br i1 %9, label %11, label %10
10: ; preds = %6, %1
store i32 -1, ptr %2, align 4
br label %30
11: ; preds = %6
%12 = load ptr, ptr %3, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 0
br i1 %15, label %.lr.ph, label %29
.lr.ph: ; preds = %11
br label %16
16: ; preds = %.lr.ph, %22
%17 = load ptr, ptr %3, align 8
%18 = load i8, ptr %17, align 1
%19 = call i32 @isdigit(i8 noundef signext %18)
%20 = icmp ne i32 %19, 0
br i1 %20, label %22, label %21
21: ; preds = %16
store i32 -1, ptr %2, align 4
br label %30
22: ; preds = %16
%23 = load ptr, ptr %3, align 8
%24 = getelementptr inbounds i8, ptr %23, i32 1
store ptr %24, ptr %3, align 8
%25 = load ptr, ptr %3, align 8
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = icmp ne i32 %27, 0
br i1 %28, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %29
29: ; preds = %._crit_edge, %11
store i32 0, ptr %2, align 4
br label %30
30: ; preds = %29, %21, %10
%31 = load i32, ptr %2, align 4
ret i32 %31
}
declare i32 @strlen(ptr noundef) #1
declare i32 @isdigit(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpmjq1r354.c'
source_filename = "/tmp/tmpmjq1r354.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"enter a number: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"here: \00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"average \00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"increment\00", align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"decrement\00", align 1
@.str.6 = private unnamed_addr constant [17 x i8] c" is %d/%d = %.2f\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
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 1, ptr %6, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %2, align 4
%14 = sub nsw i32 %12, %13
%15 = call i64 @abs(i32 noundef %14)
%16 = load i32, ptr %4, align 4
%17 = sext i32 %16 to i64
%18 = add nsw i64 %17, %15
%19 = trunc i64 %18 to i32
store i32 %19, ptr %4, align 4
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 2
store i32 %21, ptr %5, align 4
%22 = load i32, ptr %3, align 4
%23 = load i32, ptr %2, align 4
%24 = icmp sgt i32 %22, %23
br i1 %24, label %25, label %26
25: ; preds = %0
store i32 1, ptr %6, align 4
br label %27
26: ; preds = %0
store i32 -1, ptr %6, align 4
br label %27
27: ; preds = %26, %25
%28 = phi i32 [ 1, %25 ], [ -1, %26 ]
%29 = load i32, ptr %3, align 4
store i32 %29, ptr %2, align 4
store i32 0, ptr %7, align 4
br label %30
30: ; preds = %81, %27
%31 = load i32, ptr %7, align 4
%32 = icmp ne i32 %31, 0
%33 = xor i1 %32, true
br i1 %33, label %34, label %82
34: ; preds = %30
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%36 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%37 = load i32, ptr %3, align 4
%38 = load i32, ptr %2, align 4
%39 = icmp eq i32 %37, %38
br i1 %39, label %40, label %41
40: ; preds = %34
br label %81
41: ; preds = %34
%42 = load i32, ptr %3, align 4
%43 = load i32, ptr %2, align 4
%44 = icmp sgt i32 %42, %43
br i1 %44, label %45, label %57
45: ; preds = %41
%46 = load i32, ptr %6, align 4
%47 = icmp eq i32 %46, 1
br i1 %47, label %48, label %57
48: ; preds = %45
%49 = load i32, ptr %3, align 4
%50 = load i32, ptr %2, align 4
%51 = sub nsw i32 %49, %50
%52 = load i32, ptr %4, align 4
%53 = add nsw i32 %52, %51
store i32 %53, ptr %4, align 4
%54 = load i32, ptr %5, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %5, align 4
%56 = load i32, ptr %3, align 4
store i32 %56, ptr %2, align 4
br label %80
57: ; preds = %45, %41
%58 = load i32, ptr %3, align 4
%59 = load i32, ptr %2, align 4
%60 = icmp slt i32 %58, %59
br i1 %60, label %61, label %74
61: ; preds = %57
%62 = load i32, ptr %6, align 4
%63 = icmp eq i32 %62, -1
br i1 %63, label %64, label %74
64: ; preds = %61
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%66 = load i32, ptr %2, align 4
%67 = load i32, ptr %3, align 4
%68 = sub nsw i32 %66, %67
%69 = load i32, ptr %4, align 4
%70 = add nsw i32 %69, %68
store i32 %70, ptr %4, align 4
%71 = load i32, ptr %5, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %5, align 4
%73 = load i32, ptr %3, align 4
store i32 %73, ptr %2, align 4
br label %79
74: ; preds = %61, %57
%75 = load i32, ptr %7, align 4
%76 = icmp ne i32 %75, 0
%77 = xor i1 %76, true
%78 = zext i1 %77 to i32
store i32 %78, ptr %7, align 4
br label %79
79: ; preds = %74, %64
br label %80
80: ; preds = %79, %48
br label %81
81: ; preds = %80, %40
br label %30, !llvm.loop !6
82: ; preds = %30
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%84 = load i32, ptr %6, align 4
%85 = icmp eq i32 %84, 1
br i1 %85, label %86, label %88
86: ; preds = %82
%87 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %90
88: ; preds = %82
%89 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %90
90: ; preds = %88, %86
%91 = phi i32 [ %87, %86 ], [ %89, %88 ]
%92 = load i32, ptr %4, align 4
%93 = load i32, ptr %5, align 4
%94 = load i32, ptr %4, align 4
%95 = sitofp i32 %94 to double
%96 = load i32, ptr %5, align 4
%97 = sitofp i32 %96 to double
%98 = fdiv double %95, %97
%99 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %92, i32 noundef %93, double noundef %98)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @abs(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/tmpmjq1r354.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"enter a number: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"here: \00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"average \00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"increment\00", align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"decrement\00", align 1
@.str.6 = private unnamed_addr constant [17 x i8] c" is %d/%d = %.2f\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
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 1, ptr %6, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %2, align 4
%14 = sub nsw i32 %12, %13
%15 = call i64 @abs(i32 noundef %14)
%16 = load i32, ptr %4, align 4
%17 = sext i32 %16 to i64
%18 = add nsw i64 %17, %15
%19 = trunc i64 %18 to i32
store i32 %19, ptr %4, align 4
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 2
store i32 %21, ptr %5, align 4
%22 = load i32, ptr %3, align 4
%23 = load i32, ptr %2, align 4
%24 = icmp sgt i32 %22, %23
br i1 %24, label %25, label %26
25: ; preds = %0
store i32 1, ptr %6, align 4
br label %27
26: ; preds = %0
store i32 -1, ptr %6, align 4
br label %27
27: ; preds = %26, %25
%28 = phi i32 [ 1, %25 ], [ -1, %26 ]
%29 = load i32, ptr %3, align 4
store i32 %29, ptr %2, align 4
store i32 0, ptr %7, align 4
%30 = load i32, ptr %7, align 4
%31 = icmp ne i32 %30, 0
%32 = xor i1 %31, true
br i1 %32, label %.lr.ph, label %84
.lr.ph: ; preds = %27
br label %33
33: ; preds = %.lr.ph, %80
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%35 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%36 = load i32, ptr %3, align 4
%37 = load i32, ptr %2, align 4
%38 = icmp eq i32 %36, %37
br i1 %38, label %39, label %40
39: ; preds = %33
br label %80
40: ; preds = %33
%41 = load i32, ptr %3, align 4
%42 = load i32, ptr %2, align 4
%43 = icmp sgt i32 %41, %42
br i1 %43, label %44, label %56
44: ; preds = %40
%45 = load i32, ptr %6, align 4
%46 = icmp eq i32 %45, 1
br i1 %46, label %47, label %56
47: ; preds = %44
%48 = load i32, ptr %3, align 4
%49 = load i32, ptr %2, align 4
%50 = sub nsw i32 %48, %49
%51 = load i32, ptr %4, align 4
%52 = add nsw i32 %51, %50
store i32 %52, ptr %4, align 4
%53 = load i32, ptr %5, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %5, align 4
%55 = load i32, ptr %3, align 4
store i32 %55, ptr %2, align 4
br label %79
56: ; preds = %44, %40
%57 = load i32, ptr %3, align 4
%58 = load i32, ptr %2, align 4
%59 = icmp slt i32 %57, %58
br i1 %59, label %60, label %73
60: ; preds = %56
%61 = load i32, ptr %6, align 4
%62 = icmp eq i32 %61, -1
br i1 %62, label %63, label %73
63: ; preds = %60
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%65 = load i32, ptr %2, align 4
%66 = load i32, ptr %3, align 4
%67 = sub nsw i32 %65, %66
%68 = load i32, ptr %4, align 4
%69 = add nsw i32 %68, %67
store i32 %69, ptr %4, align 4
%70 = load i32, ptr %5, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %5, align 4
%72 = load i32, ptr %3, align 4
store i32 %72, ptr %2, align 4
br label %78
73: ; preds = %60, %56
%74 = load i32, ptr %7, align 4
%75 = icmp ne i32 %74, 0
%76 = xor i1 %75, true
%77 = zext i1 %76 to i32
store i32 %77, ptr %7, align 4
br label %78
78: ; preds = %73, %63
br label %79
79: ; preds = %78, %47
br label %80
80: ; preds = %79, %39
%81 = load i32, ptr %7, align 4
%82 = icmp ne i32 %81, 0
%83 = xor i1 %82, true
br i1 %83, label %33, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %80
br label %84
84: ; preds = %._crit_edge, %27
%85 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%86 = load i32, ptr %6, align 4
%87 = icmp eq i32 %86, 1
br i1 %87, label %88, label %90
88: ; preds = %84
%89 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %92
90: ; preds = %84
%91 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %92
92: ; preds = %90, %88
%93 = phi i32 [ %89, %88 ], [ %91, %90 ]
%94 = load i32, ptr %4, align 4
%95 = load i32, ptr %5, align 4
%96 = load i32, ptr %4, align 4
%97 = sitofp i32 %96 to double
%98 = load i32, ptr %5, align 4
%99 = sitofp i32 %98 to double
%100 = fdiv double %97, %99
%101 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %94, i32 noundef %95, double noundef %100)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @abs(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/tmpc7lnvrjs.c'
source_filename = "/tmp/tmpc7lnvrjs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @benchmark_example()
ret i32 0
}
declare i32 @benchmark_example(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc7lnvrjs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @benchmark_example()
ret i32 0
}
declare i32 @benchmark_example(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkrs1yuqj.c'
source_filename = "/tmp/tmpkrs1yuqj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @puts0(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
br label %3
3: ; preds = %7, %1
%4 = load ptr, ptr %2, align 8
%5 = load i8, ptr %4, align 1
%6 = icmp ne i8 %5, 0
br i1 %6, label %7, label %13
7: ; preds = %3
%8 = load ptr, ptr %2, align 8
%9 = getelementptr inbounds i8, ptr %8, i32 1
store ptr %9, ptr %2, align 8
%10 = load i8, ptr %8, align 1
%11 = sext i8 %10 to i32
%12 = call i32 @putch(i32 noundef %11)
br label %3, !llvm.loop !6
13: ; preds = %3
ret void
}
declare i32 @putch(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/tmpkrs1yuqj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @puts0(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i8, ptr %3, align 1
%5 = icmp ne i8 %4, 0
br i1 %5, label %.lr.ph, label %15
.lr.ph: ; preds = %1
br label %6
6: ; preds = %.lr.ph, %6
%7 = load ptr, ptr %2, align 8
%8 = getelementptr inbounds i8, ptr %7, i32 1
store ptr %8, ptr %2, align 8
%9 = load i8, ptr %7, align 1
%10 = sext i8 %9 to i32
%11 = call i32 @putch(i32 noundef %10)
%12 = load ptr, ptr %2, align 8
%13 = load i8, ptr %12, align 1
%14 = icmp ne i8 %13, 0
br i1 %14, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %6
br label %15
15: ; preds = %._crit_edge, %1
ret void
}
declare i32 @putch(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/tmpabserbv4.c'
source_filename = "/tmp/tmpabserbv4.c"
target datalayout = "e-m:e-p270: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/tmpabserbv4.c"
target datalayout = "e-m:e-p270: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/tmpqpx1kjc5.c'
source_filename = "/tmp/tmpqpx1kjc5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @my_puts(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
br label %3
3: ; preds = %7, %1
%4 = load ptr, ptr %2, align 8
%5 = load i8, ptr %4, align 1
%6 = icmp ne i8 %5, 0
br i1 %6, label %7, label %13
7: ; preds = %3
%8 = load ptr, ptr %2, align 8
%9 = getelementptr inbounds i8, ptr %8, i32 1
store ptr %9, ptr %2, align 8
%10 = load i8, ptr %8, align 1
%11 = sext i8 %10 to i32
%12 = call i32 @putchar(i32 noundef %11)
br label %3, !llvm.loop !6
13: ; preds = %3
ret void
}
declare i32 @putchar(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/tmpqpx1kjc5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @my_puts(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i8, ptr %3, align 1
%5 = icmp ne i8 %4, 0
br i1 %5, label %.lr.ph, label %15
.lr.ph: ; preds = %1
br label %6
6: ; preds = %.lr.ph, %6
%7 = load ptr, ptr %2, align 8
%8 = getelementptr inbounds i8, ptr %7, i32 1
store ptr %8, ptr %2, align 8
%9 = load i8, ptr %7, align 1
%10 = sext i8 %9 to i32
%11 = call i32 @putchar(i32 noundef %10)
%12 = load ptr, ptr %2, align 8
%13 = load i8, ptr %12, align 1
%14 = icmp ne i8 %13, 0
br i1 %14, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %6
br label %15
15: ; preds = %._crit_edge, %1
ret void
}
declare i32 @putchar(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/tmpazn1lm92.c'
source_filename = "/tmp/tmpazn1lm92.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x [100 x i32]], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 0, ptr %1, align 4
%12 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %3, ptr noundef %4)
store i32 0, ptr %5, align 4
br label %13
13: ; preds = %34, %0
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %3, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %37
17: ; preds = %13
store i32 0, ptr %6, align 4
br label %18
18: ; preds = %30, %17
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %33
22: ; preds = %18
%23 = load i32, ptr %5, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [100 x [100 x i32]], ptr %2, i64 0, i64 %24
%26 = load i32, ptr %6, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [100 x i32], ptr %25, i64 0, i64 %27
%29 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %28)
br label %30
30: ; preds = %22
%31 = load i32, ptr %6, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %6, align 4
br label %18, !llvm.loop !6
33: ; preds = %18
br label %34
34: ; preds = %33
%35 = load i32, ptr %5, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %5, align 4
br label %13, !llvm.loop !8
37: ; preds = %13
%38 = load i32, ptr %3, align 4
%39 = zext i32 %38 to i64
%40 = call ptr @llvm.stacksave()
store ptr %40, ptr %7, align 8
%41 = alloca i32, i64 %39, align 16
store i64 %39, ptr %8, align 8
store i32 0, ptr %5, align 4
br label %42
42: ; preds = %69, %37
%43 = load i32, ptr %5, align 4
%44 = load i32, ptr %3, align 4
%45 = icmp slt i32 %43, %44
br i1 %45, label %46, label %72
46: ; preds = %42
store i32 0, ptr %9, align 4
store i32 0, ptr %6, align 4
br label %47
47: ; preds = %65, %46
%48 = load i32, ptr %6, align 4
%49 = load i32, ptr %4, align 4
%50 = icmp slt i32 %48, %49
br i1 %50, label %51, label %68
51: ; preds = %47
%52 = load i32, ptr %9, align 4
%53 = load i32, ptr %5, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [100 x [100 x i32]], ptr %2, i64 0, i64 %54
%56 = load i32, ptr %6, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [100 x i32], ptr %55, i64 0, i64 %57
%59 = load i32, ptr %58, align 4
%60 = add nsw i32 %52, %59
store i32 %60, ptr %9, align 4
%61 = load i32, ptr %9, align 4
%62 = load i32, ptr %5, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i32, ptr %41, i64 %63
store i32 %61, ptr %64, align 4
br label %65
65: ; preds = %51
%66 = load i32, ptr %6, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %6, align 4
br label %47, !llvm.loop !9
68: ; preds = %47
br label %69
69: ; preds = %68
%70 = load i32, ptr %5, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %5, align 4
br label %42, !llvm.loop !10
72: ; preds = %42
store i32 0, ptr %10, align 4
store i32 0, ptr %11, align 4
store i32 0, ptr %5, align 4
br label %73
73: ; preds = %90, %72
%74 = load i32, ptr %5, align 4
%75 = load i32, ptr %3, align 4
%76 = icmp slt i32 %74, %75
br i1 %76, label %77, label %93
77: ; preds = %73
%78 = load i32, ptr %5, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i32, ptr %41, i64 %79
%81 = load i32, ptr %80, align 4
%82 = load i32, ptr %11, align 4
%83 = icmp sgt i32 %81, %82
br i1 %83, label %84, label %89
84: ; preds = %77
%85 = load i32, ptr %5, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i32, ptr %41, i64 %86
%88 = load i32, ptr %87, align 4
store i32 %88, ptr %11, align 4
br label %89
89: ; preds = %84, %77
br label %90
90: ; preds = %89
%91 = load i32, ptr %5, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr %5, align 4
br label %73, !llvm.loop !11
93: ; preds = %73
store i32 0, ptr %5, align 4
br label %94
94: ; preds = %109, %93
%95 = load i32, ptr %5, align 4
%96 = load i32, ptr %3, align 4
%97 = icmp slt i32 %95, %96
br i1 %97, label %98, label %112
98: ; preds = %94
%99 = load i32, ptr %5, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i32, ptr %41, i64 %100
%102 = load i32, ptr %101, align 4
%103 = load i32, ptr %11, align 4
%104 = icmp eq i32 %102, %103
br i1 %104, label %105, label %108
105: ; preds = %98
%106 = load i32, ptr %5, align 4
%107 = call i32 @printf(ptr noundef @.str.2, i32 noundef %106)
br label %108
108: ; preds = %105, %98
br label %109
109: ; preds = %108
%110 = load i32, ptr %5, align 4
%111 = add nsw i32 %110, 1
store i32 %111, ptr %5, align 4
br label %94, !llvm.loop !12
112: ; preds = %94
store i32 0, ptr %1, align 4
%113 = load ptr, ptr %7, align 8
call void @llvm.stackrestore(ptr %113)
%114 = load i32, ptr %1, align 4
ret i32 %114
}
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @printf(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"}
!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/tmpazn1lm92.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x [100 x i32]], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 0, ptr %1, align 4
%12 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %3, ptr noundef %4)
store i32 0, ptr %5, align 4
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %3, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph2, label %41
.lr.ph2: ; preds = %0
br label %16
16: ; preds = %.lr.ph2, %35
store i32 0, ptr %6, align 4
%17 = load i32, ptr %6, align 4
%18 = load i32, ptr %4, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %.lr.ph, label %34
.lr.ph: ; preds = %16
br label %20
20: ; preds = %.lr.ph, %28
%21 = load i32, ptr %5, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [100 x [100 x i32]], ptr %2, i64 0, i64 %22
%24 = load i32, ptr %6, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [100 x i32], ptr %23, i64 0, i64 %25
%27 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %26)
br label %28
28: ; preds = %20
%29 = load i32, ptr %6, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %6, align 4
%31 = load i32, ptr %6, align 4
%32 = load i32, ptr %4, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %34
34: ; preds = %._crit_edge, %16
br label %35
35: ; preds = %34
%36 = load i32, ptr %5, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %5, align 4
%38 = load i32, ptr %5, align 4
%39 = load i32, ptr %3, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %16, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %35
br label %41
41: ; preds = %._crit_edge3, %0
%42 = load i32, ptr %3, align 4
%43 = zext i32 %42 to i64
%44 = call ptr @llvm.stacksave()
store ptr %44, ptr %7, align 8
%45 = alloca i32, i64 %43, align 16
store i64 %43, ptr %8, align 8
store i32 0, ptr %5, align 4
%46 = load i32, ptr %5, align 4
%47 = load i32, ptr %3, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %.lr.ph8, label %80
.lr.ph8: ; preds = %41
br label %49
49: ; preds = %.lr.ph8, %74
store i32 0, ptr %9, align 4
store i32 0, ptr %6, align 4
%50 = load i32, ptr %6, align 4
%51 = load i32, ptr %4, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %.lr.ph5, label %73
.lr.ph5: ; preds = %49
br label %53
53: ; preds = %.lr.ph5, %67
%54 = load i32, ptr %9, align 4
%55 = load i32, ptr %5, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [100 x [100 x i32]], ptr %2, i64 0, i64 %56
%58 = load i32, ptr %6, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [100 x i32], ptr %57, i64 0, i64 %59
%61 = load i32, ptr %60, align 4
%62 = add nsw i32 %54, %61
store i32 %62, ptr %9, align 4
%63 = load i32, ptr %9, align 4
%64 = load i32, ptr %5, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i32, ptr %45, i64 %65
store i32 %63, ptr %66, align 4
br label %67
67: ; preds = %53
%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 %4, align 4
%72 = icmp slt i32 %70, %71
br i1 %72, label %53, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %67
br label %73
73: ; preds = %._crit_edge6, %49
br label %74
74: ; preds = %73
%75 = load i32, ptr %5, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %5, align 4
%77 = load i32, ptr %5, align 4
%78 = load i32, ptr %3, align 4
%79 = icmp slt i32 %77, %78
br i1 %79, label %49, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %74
br label %80
80: ; preds = %._crit_edge9, %41
store i32 0, ptr %10, align 4
store i32 0, ptr %11, align 4
store i32 0, ptr %5, align 4
%81 = load i32, ptr %5, align 4
%82 = load i32, ptr %3, align 4
%83 = icmp slt i32 %81, %82
br i1 %83, label %.lr.ph11, label %103
.lr.ph11: ; preds = %80
br label %84
84: ; preds = %.lr.ph11, %97
%85 = load i32, ptr %5, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i32, ptr %45, i64 %86
%88 = load i32, ptr %87, align 4
%89 = load i32, ptr %11, align 4
%90 = icmp sgt i32 %88, %89
br i1 %90, label %91, label %96
91: ; preds = %84
%92 = load i32, ptr %5, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i32, ptr %45, i64 %93
%95 = load i32, ptr %94, align 4
store i32 %95, ptr %11, align 4
br label %96
96: ; preds = %91, %84
br label %97
97: ; preds = %96
%98 = load i32, ptr %5, align 4
%99 = add nsw i32 %98, 1
store i32 %99, ptr %5, align 4
%100 = load i32, ptr %5, align 4
%101 = load i32, ptr %3, align 4
%102 = icmp slt i32 %100, %101
br i1 %102, label %84, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %97
br label %103
103: ; preds = %._crit_edge12, %80
store i32 0, ptr %5, align 4
%104 = load i32, ptr %5, align 4
%105 = load i32, ptr %3, align 4
%106 = icmp slt i32 %104, %105
br i1 %106, label %.lr.ph14, label %124
.lr.ph14: ; preds = %103
br label %107
107: ; preds = %.lr.ph14, %118
%108 = load i32, ptr %5, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds i32, ptr %45, i64 %109
%111 = load i32, ptr %110, align 4
%112 = load i32, ptr %11, align 4
%113 = icmp eq i32 %111, %112
br i1 %113, label %114, label %117
114: ; preds = %107
%115 = load i32, ptr %5, align 4
%116 = call i32 @printf(ptr noundef @.str.2, i32 noundef %115)
br label %117
117: ; preds = %114, %107
br label %118
118: ; preds = %117
%119 = load i32, ptr %5, align 4
%120 = add nsw i32 %119, 1
store i32 %120, ptr %5, align 4
%121 = load i32, ptr %5, align 4
%122 = load i32, ptr %3, align 4
%123 = icmp slt i32 %121, %122
br i1 %123, label %107, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %118
br label %124
124: ; preds = %._crit_edge15, %103
store i32 0, ptr %1, align 4
%125 = load ptr, ptr %7, align 8
call void @llvm.stackrestore(ptr %125)
%126 = load i32, ptr %1, align 4
ret i32 %126
}
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @printf(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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmpw9mdtx6u.c'
source_filename = "/tmp/tmpw9mdtx6u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @KIrand_genrand_real2(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 i64 @KIrand_genrand_int32(ptr noundef %3)
%5 = sitofp i64 %4 to double
%6 = fmul double %5, 0x3DF0000000000000
ret double %6
}
declare i64 @KIrand_genrand_int32(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw9mdtx6u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @KIrand_genrand_real2(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 i64 @KIrand_genrand_int32(ptr noundef %3)
%5 = sitofp i64 %4 to double
%6 = fmul double %5, 0x3DF0000000000000
ret double %6
}
declare i64 @KIrand_genrand_int32(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp748dj5zt.c'
source_filename = "/tmp/tmp748dj5zt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%union.i2c_smbus_data = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @i2c_smbus_read_word_data(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca %union.i2c_smbus_data, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %5, align 4
%9 = call i64 @i2c_smbus_access(i32 noundef %7, i32 noundef 1, i32 noundef %8, i32 noundef 3, ptr noundef %6)
%10 = icmp sle i64 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %2
store i32 -1, ptr %3, align 4
br label %15
12: ; preds = %2
%13 = load i32, ptr %6, align 4
%14 = and i32 65535, %13
store i32 %14, ptr %3, align 4
br label %15
15: ; preds = %12, %11
%16 = load i32, ptr %3, align 4
ret i32 %16
}
declare i64 @i2c_smbus_access(i32 noundef, i32 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/tmp748dj5zt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%union.i2c_smbus_data = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @i2c_smbus_read_word_data(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca %union.i2c_smbus_data, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %5, align 4
%9 = call i64 @i2c_smbus_access(i32 noundef %7, i32 noundef 1, i32 noundef %8, i32 noundef 3, ptr noundef %6)
%10 = icmp sle i64 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %2
store i32 -1, ptr %3, align 4
br label %15
12: ; preds = %2
%13 = load i32, ptr %6, align 4
%14 = and i32 65535, %13
store i32 %14, ptr %3, align 4
br label %15
15: ; preds = %12, %11
%16 = load i32, ptr %3, align 4
ret i32 %16
}
declare i64 @i2c_smbus_access(i32 noundef, i32 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/tmp6upp77r9.c'
source_filename = "/tmp/tmp6upp77r9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ERROR!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @recurse(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = add nsw i32 %5, -1
store i32 %6, ptr %3, align 4
%7 = icmp ne i32 %5, 0
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = load i32, ptr %3, align 4
%10 = load i32, ptr %4, align 4
call void @recurse(i32 noundef %9, i32 noundef %10)
br label %14
11: ; preds = %2
%12 = load i32, ptr %4, align 4
%13 = call i32 @do_stuff(i32 noundef %12)
br label %14
14: ; preds = %11, %8
%15 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @do_stuff(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6upp77r9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ERROR!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @recurse(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = add nsw i32 %5, -1
store i32 %6, ptr %3, align 4
%7 = icmp ne i32 %5, 0
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = load i32, ptr %3, align 4
%10 = load i32, ptr %4, align 4
call void @recurse(i32 noundef %9, i32 noundef %10)
br label %14
11: ; preds = %2
%12 = load i32, ptr %4, align 4
%13 = call i32 @do_stuff(i32 noundef %12)
br label %14
14: ; preds = %11, %8
%15 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @do_stuff(i32 noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprvy_xggj.c'
source_filename = "/tmp/tmprvy_xggj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @derotate_90(float noundef %0) #0 {
%2 = alloca float, align 4
%3 = alloca i32, align 4
store float %0, ptr %2, align 4
%4 = load float, ptr %2, align 4
%5 = call double @fabs(float noundef %4)
%6 = fdiv double %5, 9.000000e+01
%7 = fptosi double %6 to i32
store i32 %7, ptr %3, align 4
%8 = load float, ptr %2, align 4
%9 = fcmp ogt float %8, 0.000000e+00
br i1 %9, label %10, label %16
10: ; preds = %1
%11 = load i32, ptr %3, align 4
%12 = mul nsw i32 90, %11
%13 = sitofp i32 %12 to float
%14 = load float, ptr %2, align 4
%15 = fsub float %14, %13
store float %15, ptr %2, align 4
br label %22
16: ; preds = %1
%17 = load i32, ptr %3, align 4
%18 = mul nsw i32 90, %17
%19 = sitofp i32 %18 to float
%20 = load float, ptr %2, align 4
%21 = fadd float %20, %19
store float %21, ptr %2, align 4
br label %22
22: ; preds = %16, %10
%23 = load float, ptr %2, align 4
%24 = fcmp olt float %23, 0.000000e+00
br i1 %24, label %25, label %28
25: ; preds = %22
%26 = load float, ptr %2, align 4
%27 = fadd float %26, 9.000000e+01
store float %27, ptr %2, align 4
br label %28
28: ; preds = %25, %22
%29 = load float, ptr %2, align 4
ret float %29
}
declare double @fabs(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/tmprvy_xggj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @derotate_90(float noundef %0) #0 {
%2 = alloca float, align 4
%3 = alloca i32, align 4
store float %0, ptr %2, align 4
%4 = load float, ptr %2, align 4
%5 = call double @fabs(float noundef %4)
%6 = fdiv double %5, 9.000000e+01
%7 = fptosi double %6 to i32
store i32 %7, ptr %3, align 4
%8 = load float, ptr %2, align 4
%9 = fcmp ogt float %8, 0.000000e+00
br i1 %9, label %10, label %16
10: ; preds = %1
%11 = load i32, ptr %3, align 4
%12 = mul nsw i32 90, %11
%13 = sitofp i32 %12 to float
%14 = load float, ptr %2, align 4
%15 = fsub float %14, %13
store float %15, ptr %2, align 4
br label %22
16: ; preds = %1
%17 = load i32, ptr %3, align 4
%18 = mul nsw i32 90, %17
%19 = sitofp i32 %18 to float
%20 = load float, ptr %2, align 4
%21 = fadd float %20, %19
store float %21, ptr %2, align 4
br label %22
22: ; preds = %16, %10
%23 = load float, ptr %2, align 4
%24 = fcmp olt float %23, 0.000000e+00
br i1 %24, label %25, label %28
25: ; preds = %22
%26 = load float, ptr %2, align 4
%27 = fadd float %26, 9.000000e+01
store float %27, ptr %2, align 4
br label %28
28: ; preds = %25, %22
%29 = load float, ptr %2, align 4
ret float %29
}
declare double @fabs(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/tmpz1advqyv.c'
source_filename = "/tmp/tmpz1advqyv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strlen(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %12, %1
%5 = load ptr, ptr %2, align 8
%6 = load i8, ptr %5, align 1
%7 = sext i8 %6 to i32
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %15
9: ; preds = %4
%10 = load i32, ptr %3, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %3, align 4
br label %12
12: ; preds = %9
%13 = load ptr, ptr %2, align 8
%14 = getelementptr inbounds i8, ptr %13, i32 1
store ptr %14, ptr %2, align 8
br label %4, !llvm.loop !6
15: ; preds = %4
%16 = load i32, ptr %3, align 4
ret i32 %16
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz1advqyv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strlen(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%4 = load ptr, ptr %2, align 8
%5 = load i8, ptr %4, align 1
%6 = sext i8 %5 to i32
%7 = icmp ne i32 %6, 0
br i1 %7, label %.lr.ph, label %18
.lr.ph: ; preds = %1
br label %8
8: ; preds = %.lr.ph, %11
%9 = load i32, ptr %3, align 4
%10 = add nsw i32 %9, 1
store i32 %10, ptr %3, align 4
br label %11
11: ; preds = %8
%12 = load ptr, ptr %2, align 8
%13 = getelementptr inbounds i8, ptr %12, i32 1
store ptr %13, ptr %2, align 8
%14 = load ptr, ptr %2, align 8
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %16, 0
br i1 %17, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %18
18: ; preds = %._crit_edge, %1
%19 = load i32, ptr %3, align 4
ret i32 %19
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp20mje7bo.c'
source_filename = "/tmp/tmp20mje7bo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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, -1555370350
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/tmp20mje7bo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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, -1555370350
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/tmpeanubvif.c'
source_filename = "/tmp/tmpeanubvif.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"called mac_init\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mac_init() #0 {
%1 = call i32 @puts(ptr noundef @.str)
ret void
}
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeanubvif.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"called mac_init\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mac_init() #0 {
%1 = call i32 @puts(ptr noundef @.str)
ret void
}
declare i32 @puts(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpuoq8p_hu.c'
source_filename = "/tmp/tmpuoq8p_hu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @pressSmallKey() #0 {
%1 = alloca i8, align 1
%2 = call i32 (...) @kbhit()
%3 = call signext i8 (...) @getch()
store i8 %3, ptr %1, align 1
%4 = load i8, ptr %1, align 1
ret i8 %4
}
declare i32 @kbhit(...) #1
declare signext i8 @getch(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuoq8p_hu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @pressSmallKey() #0 {
%1 = alloca i8, align 1
%2 = call i32 (...) @kbhit()
%3 = call signext i8 (...) @getch()
store i8 %3, ptr %1, align 1
%4 = load i8, ptr %1, align 1
ret i8 %4
}
declare i32 @kbhit(...) #1
declare signext i8 @getch(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4j_4eq0z.c'
source_filename = "/tmp/tmp4j_4eq0z.c"
target datalayout = "e-m:e-p270: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/tmp4j_4eq0z.c"
target datalayout = "e-m:e-p270: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/tmpvftuvo2d.c'
source_filename = "/tmp/tmpvftuvo2d.c"
target datalayout = "e-m:e-p270: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/tmpvftuvo2d.c"
target datalayout = "e-m:e-p270: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/tmpn5kmecrn.c'
source_filename = "/tmp/tmpn5kmecrn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fromURIPath(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
%7 = load ptr, ptr %3, align 8
%8 = call i64 @strlen(ptr noundef %7)
%9 = trunc i64 %8 to i32
store i32 %9, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp sgt i32 %10, 2
br i1 %11, label %12, label %34
12: ; preds = %1
%13 = load ptr, ptr %3, align 8
%14 = getelementptr inbounds i8, ptr %13, i64 2
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 58
br i1 %17, label %18, label %34
18: ; preds = %12
store i32 1, ptr %4, align 4
%19 = load i32, ptr %5, align 4
%20 = icmp sgt i32 %19, 3
br i1 %20, label %21, label %33
21: ; preds = %18
%22 = load ptr, ptr %3, align 8
%23 = load i32, ptr %5, align 4
%24 = sub nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %22, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %28, 47
br i1 %29, label %30, label %33
30: ; preds = %21
%31 = load i32, ptr %5, align 4
%32 = add nsw i32 %31, -1
store i32 %32, ptr %5, align 4
br label %33
33: ; preds = %30, %21, %18
br label %50
34: ; preds = %12, %1
%35 = load i32, ptr %5, align 4
%36 = icmp sgt i32 %35, 1
br i1 %36, label %37, label %49
37: ; preds = %34
%38 = load ptr, ptr %3, align 8
%39 = load i32, ptr %5, align 4
%40 = sub nsw i32 %39, 1
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8, ptr %38, i64 %41
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %44, 47
br i1 %45, label %46, label %49
46: ; preds = %37
%47 = load i32, ptr %5, align 4
%48 = add nsw i32 %47, -1
store i32 %48, ptr %5, align 4
br label %49
49: ; preds = %46, %37, %34
br label %50
50: ; preds = %49, %33
%51 = load i32, ptr %4, align 4
%52 = icmp eq i32 %51, 0
br i1 %52, label %53, label %61
53: ; preds = %50
%54 = load i32, ptr %5, align 4
%55 = load ptr, ptr %3, align 8
%56 = call i64 @strlen(ptr noundef %55)
%57 = trunc i64 %56 to i32
%58 = icmp eq i32 %54, %57
br i1 %58, label %59, label %61
59: ; preds = %53
%60 = load ptr, ptr %3, align 8
store ptr %60, ptr %2, align 8
br label %82
61: ; preds = %53, %50
%62 = load i32, ptr %5, align 4
%63 = add nsw i32 %62, 1
%64 = call i64 @malloc(i32 noundef %63)
%65 = inttoptr i64 %64 to ptr
store ptr %65, ptr %6, align 8
%66 = load ptr, ptr %6, align 8
%67 = icmp ne ptr %66, null
br i1 %67, label %68, label %80
68: ; preds = %61
%69 = load ptr, ptr %6, align 8
%70 = load ptr, ptr %3, align 8
%71 = load i32, ptr %4, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i8, ptr %70, i64 %72
%74 = load i32, ptr %5, align 4
%75 = call i32 @memcpy(ptr noundef %69, ptr noundef %73, i32 noundef %74)
%76 = load ptr, ptr %6, align 8
%77 = load i32, ptr %5, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i8, ptr %76, i64 %78
store i8 0, ptr %79, align 1
br label %80
80: ; preds = %68, %61
%81 = load ptr, ptr %6, align 8
store ptr %81, ptr %2, align 8
br label %82
82: ; preds = %80, %59
%83 = load ptr, ptr %2, align 8
ret ptr %83
}
declare i64 @strlen(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn5kmecrn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fromURIPath(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
%7 = load ptr, ptr %3, align 8
%8 = call i64 @strlen(ptr noundef %7)
%9 = trunc i64 %8 to i32
store i32 %9, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp sgt i32 %10, 2
br i1 %11, label %12, label %34
12: ; preds = %1
%13 = load ptr, ptr %3, align 8
%14 = getelementptr inbounds i8, ptr %13, i64 2
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 58
br i1 %17, label %18, label %34
18: ; preds = %12
store i32 1, ptr %4, align 4
%19 = load i32, ptr %5, align 4
%20 = icmp sgt i32 %19, 3
br i1 %20, label %21, label %33
21: ; preds = %18
%22 = load ptr, ptr %3, align 8
%23 = load i32, ptr %5, align 4
%24 = sub nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %22, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %28, 47
br i1 %29, label %30, label %33
30: ; preds = %21
%31 = load i32, ptr %5, align 4
%32 = add nsw i32 %31, -1
store i32 %32, ptr %5, align 4
br label %33
33: ; preds = %30, %21, %18
br label %50
34: ; preds = %12, %1
%35 = load i32, ptr %5, align 4
%36 = icmp sgt i32 %35, 1
br i1 %36, label %37, label %49
37: ; preds = %34
%38 = load ptr, ptr %3, align 8
%39 = load i32, ptr %5, align 4
%40 = sub nsw i32 %39, 1
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8, ptr %38, i64 %41
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %44, 47
br i1 %45, label %46, label %49
46: ; preds = %37
%47 = load i32, ptr %5, align 4
%48 = add nsw i32 %47, -1
store i32 %48, ptr %5, align 4
br label %49
49: ; preds = %46, %37, %34
br label %50
50: ; preds = %49, %33
%51 = load i32, ptr %4, align 4
%52 = icmp eq i32 %51, 0
br i1 %52, label %53, label %61
53: ; preds = %50
%54 = load i32, ptr %5, align 4
%55 = load ptr, ptr %3, align 8
%56 = call i64 @strlen(ptr noundef %55)
%57 = trunc i64 %56 to i32
%58 = icmp eq i32 %54, %57
br i1 %58, label %59, label %61
59: ; preds = %53
%60 = load ptr, ptr %3, align 8
store ptr %60, ptr %2, align 8
br label %82
61: ; preds = %53, %50
%62 = load i32, ptr %5, align 4
%63 = add nsw i32 %62, 1
%64 = call i64 @malloc(i32 noundef %63)
%65 = inttoptr i64 %64 to ptr
store ptr %65, ptr %6, align 8
%66 = load ptr, ptr %6, align 8
%67 = icmp ne ptr %66, null
br i1 %67, label %68, label %80
68: ; preds = %61
%69 = load ptr, ptr %6, align 8
%70 = load ptr, ptr %3, align 8
%71 = load i32, ptr %4, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i8, ptr %70, i64 %72
%74 = load i32, ptr %5, align 4
%75 = call i32 @memcpy(ptr noundef %69, ptr noundef %73, i32 noundef %74)
%76 = load ptr, ptr %6, align 8
%77 = load i32, ptr %5, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i8, ptr %76, i64 %78
store i8 0, ptr %79, align 1
br label %80
80: ; preds = %68, %61
%81 = load ptr, ptr %6, align 8
store ptr %81, ptr %2, align 8
br label %82
82: ; preds = %80, %59
%83 = load ptr, ptr %2, align 8
ret ptr %83
}
declare i64 @strlen(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgd54lrhb.c'
source_filename = "/tmp/tmpgd54lrhb.c"
target datalayout = "e-m:e-p270: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/tmpgd54lrhb.c"
target datalayout = "e-m:e-p270: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/tmpvjexz25x.c'
source_filename = "/tmp/tmpvjexz25x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"base64\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"encode\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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = load ptr, ptr %5, align 8
%8 = call i32 @encode_decode_lib(ptr noundef @.str, ptr noundef @.str.1, i32 noundef %6, ptr noundef %7)
ret i32 %8
}
declare i32 @encode_decode_lib(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvjexz25x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"base64\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"encode\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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = load ptr, ptr %5, align 8
%8 = call i32 @encode_decode_lib(ptr noundef @.str, ptr noundef @.str.1, i32 noundef %6, ptr noundef %7)
ret i32 %8
}
declare i32 @encode_decode_lib(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzx7v12v3.c'
source_filename = "/tmp/tmpzx7v12v3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"Usage: %s [options] tty\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [43 x i8] c"Options: -s <speed> \09(set CAN speed 0..8)\0A\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"\0APossibe baudrates:\0A\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"0 = 10 kBaud\0A\00", align 1
@.str.4 = private unnamed_addr constant [14 x i8] c"1 = 20 kBaud\0A\00", align 1
@.str.5 = private unnamed_addr constant [15 x i8] c"S2 = 50 kBaud\0A\00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"S3 = 100 kBaud\0A\00", align 1
@.str.7 = private unnamed_addr constant [16 x i8] c"S4 = 125 kBaud\0A\00", align 1
@.str.8 = private unnamed_addr constant [16 x i8] c"S5 = 250 kBaud\0A\00", align 1
@.str.9 = private unnamed_addr constant [16 x i8] c"S6 = 500 kBaud\0A\00", align 1
@.str.10 = private unnamed_addr constant [16 x i8] c"S7 = 800 kBaud\0A\00", align 1
@.str.11 = private unnamed_addr constant [14 x i8] c"S8 = 1 MBaud\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
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/tmpzx7v12v3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"Usage: %s [options] tty\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [43 x i8] c"Options: -s <speed> \09(set CAN speed 0..8)\0A\00", align 1
@.str.2 = private unnamed_addr constant [21 x i8] c"\0APossibe baudrates:\0A\00", align 1
@.str.3 = private unnamed_addr constant [14 x i8] c"0 = 10 kBaud\0A\00", align 1
@.str.4 = private unnamed_addr constant [14 x i8] c"1 = 20 kBaud\0A\00", align 1
@.str.5 = private unnamed_addr constant [15 x i8] c"S2 = 50 kBaud\0A\00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"S3 = 100 kBaud\0A\00", align 1
@.str.7 = private unnamed_addr constant [16 x i8] c"S4 = 125 kBaud\0A\00", align 1
@.str.8 = private unnamed_addr constant [16 x i8] c"S5 = 250 kBaud\0A\00", align 1
@.str.9 = private unnamed_addr constant [16 x i8] c"S6 = 500 kBaud\0A\00", align 1
@.str.10 = private unnamed_addr constant [16 x i8] c"S7 = 800 kBaud\0A\00", align 1
@.str.11 = private unnamed_addr constant [14 x i8] c"S8 = 1 MBaud\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
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/tmp4vb41trp.c'
source_filename = "/tmp/tmp4vb41trp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/dev/random\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [12 x i8] c"gelesen:%s\0A\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"works!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @threadA() #0 {
%1 = alloca [129 x i8], align 16
%2 = alloca i32, align 4
%3 = load i32, ptr @O_RDONLY, align 4
%4 = call i32 @open(ptr noundef @.str, i32 noundef %3)
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = getelementptr inbounds [129 x i8], ptr %1, i64 0, i64 0
%7 = call i64 @ult_read(i32 noundef %5, ptr noundef %6, i32 noundef 10)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %0
%10 = getelementptr inbounds [129 x i8], ptr %1, i64 0, i64 0
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %10)
br label %12
12: ; preds = %9, %0
%13 = call i32 (...) @ult_yield()
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%15 = call i32 @ult_exit(i32 noundef 0)
ret void
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i64 @ult_read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @ult_yield(...) #1
declare i32 @ult_exit(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/tmp4vb41trp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/dev/random\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [12 x i8] c"gelesen:%s\0A\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"works!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @threadA() #0 {
%1 = alloca [129 x i8], align 16
%2 = alloca i32, align 4
%3 = load i32, ptr @O_RDONLY, align 4
%4 = call i32 @open(ptr noundef @.str, i32 noundef %3)
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = getelementptr inbounds [129 x i8], ptr %1, i64 0, i64 0
%7 = call i64 @ult_read(i32 noundef %5, ptr noundef %6, i32 noundef 10)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %0
%10 = getelementptr inbounds [129 x i8], ptr %1, i64 0, i64 0
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %10)
br label %12
12: ; preds = %9, %0
%13 = call i32 (...) @ult_yield()
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%15 = call i32 @ult_exit(i32 noundef 0)
ret void
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i64 @ult_read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @ult_yield(...) #1
declare i32 @ult_exit(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/tmpyhb04cdq.c'
source_filename = "/tmp/tmpyhb04cdq.c"
target datalayout = "e-m:e-p270: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.k2 = private unnamed_addr constant [13 x i8] c"AKQJT98765432", align 1
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca [13 x i8], align 1
%4 = alloca [13 x i8], align 1
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %4, ptr align 1 @__const.main.k2, i64 13, i1 false)
br label %7
7: ; preds = %10, %0
%8 = getelementptr inbounds [13 x i8], ptr %3, i64 0, i64 0
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %8)
br label %10
10: ; preds = %7
%11 = getelementptr inbounds [13 x i8], ptr %3, i64 0, i64 0
%12 = call i32 @strlen(ptr noundef %11)
%13 = icmp ne i32 %12, 13
br i1 %13, label %7, label %14, !llvm.loop !6
14: ; preds = %10
br label %15
15: ; preds = %60, %14
store i32 0, ptr %5, align 4
br label %16
16: ; preds = %56, %15
%17 = load i32, ptr %5, align 4
%18 = icmp sle i32 %17, 12
br i1 %18, label %19, label %59
19: ; preds = %16
store i32 0, ptr %6, align 4
br label %20
20: ; preds = %52, %19
%21 = load i32, ptr %6, align 4
%22 = icmp sle i32 %21, 12
br i1 %22, label %23, label %55
23: ; preds = %20
%24 = load i32, ptr %6, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [13 x i8], ptr %4, i64 0, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = load i32, ptr %5, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [13 x i8], ptr %3, i64 0, i64 %30
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %28, %33
br i1 %34, label %35, label %51
35: ; preds = %23
%36 = load i32, ptr %6, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [13 x i8], ptr %3, i64 0, i64 %37
%39 = load i8, ptr %38, align 1
store i8 %39, ptr %2, align 1
%40 = load i32, ptr %5, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [13 x i8], ptr %3, i64 0, i64 %41
%43 = load i8, ptr %42, align 1
%44 = load i32, ptr %6, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [13 x i8], ptr %3, i64 0, i64 %45
store i8 %43, ptr %46, align 1
%47 = load i8, ptr %2, align 1
%48 = load i32, ptr %5, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [13 x i8], ptr %3, i64 0, i64 %49
store i8 %47, ptr %50, align 1
br label %55
51: ; preds = %23
br label %52
52: ; preds = %51
%53 = load i32, ptr %6, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %6, align 4
br label %20, !llvm.loop !8
55: ; preds = %35, %20
br label %56
56: ; preds = %55
%57 = load i32, ptr %5, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %5, align 4
br label %16, !llvm.loop !9
59: ; preds = %16
br label %60
60: ; preds = %59
%61 = getelementptr inbounds [13 x i8], ptr %4, i64 0, i64 0
%62 = getelementptr inbounds [13 x i8], ptr %3, i64 0, i64 0
%63 = call i64 @strcmp(ptr noundef %61, ptr noundef %62)
%64 = icmp ne i64 %63, 0
br i1 %64, label %15, label %65, !llvm.loop !10
65: ; preds = %60
%66 = getelementptr inbounds [13 x i8], ptr %3, i64 0, i64 0
%67 = call i32 @printf(ptr noundef @.str, ptr noundef %66)
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 @scanf(ptr noundef, ptr noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i64 @strcmp(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyhb04cdq.c"
target datalayout = "e-m:e-p270: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.k2 = private unnamed_addr constant [13 x i8] c"AKQJT98765432", align 1
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca [13 x i8], align 1
%4 = alloca [13 x i8], align 1
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %4, ptr align 1 @__const.main.k2, i64 13, i1 false)
%7 = getelementptr inbounds [13 x i8], ptr %3, i64 0, i64 0
br label %8
8: ; preds = %11, %0
%9 = getelementptr inbounds [13 x i8], ptr %3, i64 0, i64 0
%10 = call i32 @scanf(ptr noundef @.str, ptr noundef %9)
br label %11
11: ; preds = %8
%12 = call i32 @strlen(ptr noundef %7)
%13 = icmp ne i32 %12, 13
br i1 %13, label %8, label %14, !llvm.loop !6
14: ; preds = %11
%15 = getelementptr inbounds [13 x i8], ptr %4, i64 0, i64 0
%16 = getelementptr inbounds [13 x i8], ptr %3, i64 0, i64 0
br label %17
17: ; preds = %64, %14
store i32 0, ptr %5, align 4
%18 = load i32, ptr %5, align 4
%19 = icmp sle i32 %18, 12
br i1 %19, label %.lr.ph1, label %63
.lr.ph1: ; preds = %17
br label %20
20: ; preds = %.lr.ph1, %58
store i32 0, ptr %6, align 4
%21 = load i32, ptr %6, align 4
%22 = icmp sle i32 %21, 12
br i1 %22, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %20
br label %23
23: ; preds = %.lr.ph, %52
%24 = load i32, ptr %6, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [13 x i8], ptr %4, i64 0, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = load i32, ptr %5, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [13 x i8], ptr %3, i64 0, i64 %30
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %28, %33
br i1 %34, label %35, label %51
35: ; preds = %23
%36 = load i32, ptr %6, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [13 x i8], ptr %3, i64 0, i64 %37
%39 = load i8, ptr %38, align 1
store i8 %39, ptr %2, align 1
%40 = load i32, ptr %5, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [13 x i8], ptr %3, i64 0, i64 %41
%43 = load i8, ptr %42, align 1
%44 = load i32, ptr %6, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [13 x i8], ptr %3, i64 0, i64 %45
store i8 %43, ptr %46, align 1
%47 = load i8, ptr %2, align 1
%48 = load i32, ptr %5, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [13 x i8], ptr %3, i64 0, i64 %49
store i8 %47, ptr %50, align 1
br label %57
51: ; preds = %23
br label %52
52: ; preds = %51
%53 = load i32, ptr %6, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %6, align 4
%55 = load i32, ptr %6, align 4
%56 = icmp sle i32 %55, 12
br i1 %56, label %23, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %52
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %20
br label %57
57: ; preds = %.loopexit, %35
br label %58
58: ; preds = %57
%59 = load i32, ptr %5, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %5, align 4
%61 = load i32, ptr %5, align 4
%62 = icmp sle i32 %61, 12
br i1 %62, label %20, label %._crit_edge, !llvm.loop !9
._crit_edge: ; preds = %58
br label %63
63: ; preds = %._crit_edge, %17
br label %64
64: ; preds = %63
%65 = call i64 @strcmp(ptr noundef %15, ptr noundef %16)
%66 = icmp ne i64 %65, 0
br i1 %66, label %17, label %67, !llvm.loop !10
67: ; preds = %64
%68 = getelementptr inbounds [13 x i8], ptr %3, i64 0, i64 0
%69 = call i32 @printf(ptr noundef @.str, ptr noundef %68)
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 @scanf(ptr noundef, ptr noundef) #2
declare i32 @strlen(ptr noundef) #2
declare i64 @strcmp(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmp15ij8lpp.c'
source_filename = "/tmp/tmp15ij8lpp.c"
target datalayout = "e-m:e-p270: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/tmp15ij8lpp.c"
target datalayout = "e-m:e-p270: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/tmpy0qkjuc_.c'
source_filename = "/tmp/tmpy0qkjuc_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ztimed_read_write_wait(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %6, align 4
%11 = sext i32 %10 to i64
%12 = mul nsw i64 1000, %11
%13 = load ptr, ptr %7, align 8
%14 = load ptr, ptr %8, align 8
%15 = call i32 @ztimed_read_write_wait_millisecond(i32 noundef %9, i64 noundef %12, ptr noundef %13, ptr noundef %14)
ret i32 %15
}
declare i32 @ztimed_read_write_wait_millisecond(i32 noundef, i64 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy0qkjuc_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ztimed_read_write_wait(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %6, align 4
%11 = sext i32 %10 to i64
%12 = mul nsw i64 1000, %11
%13 = load ptr, ptr %7, align 8
%14 = load ptr, ptr %8, align 8
%15 = call i32 @ztimed_read_write_wait_millisecond(i32 noundef %9, i64 noundef %12, ptr noundef %13, ptr noundef %14)
ret i32 %15
}
declare i32 @ztimed_read_write_wait_millisecond(i32 noundef, i64 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpip7gwnml.c'
source_filename = "/tmp/tmpip7gwnml.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_val(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i32, ptr %7, i64 %9
%11 = load i32, ptr %10, align 4
%12 = shl i32 %11, 24
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %5, align 4
%15 = add nsw i32 %14, 1
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i32, ptr %13, i64 %16
%18 = load i32, ptr %17, align 4
%19 = shl i32 %18, 16
%20 = or i32 %12, %19
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %5, align 4
%23 = add nsw i32 %22, 2
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i32, ptr %21, i64 %24
%26 = load i32, ptr %25, align 4
%27 = shl i32 %26, 8
%28 = or i32 %20, %27
%29 = load ptr, ptr %4, align 8
%30 = load i32, ptr %5, align 4
%31 = add nsw i32 %30, 3
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %29, i64 %32
%34 = load i32, ptr %33, align 4
%35 = or i32 %28, %34
%36 = load ptr, ptr %6, align 8
store i32 %35, ptr %36, 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/tmpip7gwnml.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_val(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i32, ptr %7, i64 %9
%11 = load i32, ptr %10, align 4
%12 = shl i32 %11, 24
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %5, align 4
%15 = add nsw i32 %14, 1
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i32, ptr %13, i64 %16
%18 = load i32, ptr %17, align 4
%19 = shl i32 %18, 16
%20 = or i32 %12, %19
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %5, align 4
%23 = add nsw i32 %22, 2
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i32, ptr %21, i64 %24
%26 = load i32, ptr %25, align 4
%27 = shl i32 %26, 8
%28 = or i32 %20, %27
%29 = load ptr, ptr %4, align 8
%30 = load i32, ptr %5, align 4
%31 = add nsw i32 %30, 3
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %29, i64 %32
%34 = load i32, ptr %33, align 4
%35 = or i32 %28, %34
%36 = load ptr, ptr %6, align 8
store i32 %35, ptr %36, 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/tmp7hugx9_s.c'
source_filename = "/tmp/tmp7hugx9_s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [26 x i8] c"Could not write to device\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"Write failed\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @misc_write(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i64 0, ptr %8, align 8
br label %10
10: ; preds = %39, %3
%11 = load i64, ptr %8, align 8
%12 = load i64, ptr %7, align 8
%13 = icmp ult i64 %11, %12
br i1 %13, label %14, label %43
14: ; preds = %10
%15 = load i32, ptr %5, align 4
%16 = load ptr, ptr %6, align 8
%17 = ptrtoint ptr %16 to i64
%18 = load i64, ptr %8, align 8
%19 = add i64 %17, %18
%20 = inttoptr i64 %19 to ptr
%21 = load i64, ptr %7, align 8
%22 = load i64, ptr %8, align 8
%23 = sub i64 %21, %22
%24 = call i64 @write(i32 noundef %15, ptr noundef %20, i64 noundef %23)
store i64 %24, ptr %9, align 8
%25 = load i64, ptr %9, align 8
%26 = icmp eq i64 %25, -1
br i1 %26, label %27, label %32
27: ; preds = %14
%28 = load i32, ptr @errno, align 4
%29 = call ptr @strerror(i32 noundef %28)
%30 = call i32 @error_reason(ptr noundef %29)
%31 = call i32 @error_text(ptr noundef @.str)
store i32 -1, ptr %4, align 4
br label %44
32: ; preds = %14
%33 = load i64, ptr %9, align 8
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %32
%36 = call i32 @error_reason(ptr noundef @.str.1)
%37 = call i32 @error_text(ptr noundef @.str)
store i32 -1, ptr %4, align 4
br label %44
38: ; preds = %32
br label %39
39: ; preds = %38
%40 = load i64, ptr %9, align 8
%41 = load i64, ptr %8, align 8
%42 = add i64 %41, %40
store i64 %42, ptr %8, align 8
br label %10, !llvm.loop !6
43: ; preds = %10
store i32 0, ptr %4, align 4
br label %44
44: ; preds = %43, %35, %27
%45 = load i32, ptr %4, align 4
ret i32 %45
}
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @error_reason(ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @error_text(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp7hugx9_s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [26 x i8] c"Could not write to device\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"Write failed\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @misc_write(i32 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i64 0, ptr %8, align 8
%10 = load i64, ptr %8, align 8
%11 = load i64, ptr %7, align 8
%12 = icmp ult i64 %10, %11
br i1 %12, label %.lr.ph, label %45
.lr.ph: ; preds = %3
br label %13
13: ; preds = %.lr.ph, %38
%14 = load i32, ptr %5, align 4
%15 = load ptr, ptr %6, align 8
%16 = ptrtoint ptr %15 to i64
%17 = load i64, ptr %8, align 8
%18 = add i64 %16, %17
%19 = inttoptr i64 %18 to ptr
%20 = load i64, ptr %7, align 8
%21 = load i64, ptr %8, align 8
%22 = sub i64 %20, %21
%23 = call i64 @write(i32 noundef %14, ptr noundef %19, i64 noundef %22)
store i64 %23, ptr %9, align 8
%24 = load i64, ptr %9, align 8
%25 = icmp eq i64 %24, -1
br i1 %25, label %26, label %31
26: ; preds = %13
%27 = load i32, ptr @errno, align 4
%28 = call ptr @strerror(i32 noundef %27)
%29 = call i32 @error_reason(ptr noundef %28)
%30 = call i32 @error_text(ptr noundef @.str)
store i32 -1, ptr %4, align 4
br label %46
31: ; preds = %13
%32 = load i64, ptr %9, align 8
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %37
34: ; preds = %31
%35 = call i32 @error_reason(ptr noundef @.str.1)
%36 = call i32 @error_text(ptr noundef @.str)
store i32 -1, ptr %4, align 4
br label %46
37: ; preds = %31
br label %38
38: ; preds = %37
%39 = load i64, ptr %9, align 8
%40 = load i64, ptr %8, align 8
%41 = add i64 %40, %39
store i64 %41, ptr %8, align 8
%42 = load i64, ptr %8, align 8
%43 = load i64, ptr %7, align 8
%44 = icmp ult i64 %42, %43
br i1 %44, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %38
br label %45
45: ; preds = %._crit_edge, %3
store i32 0, ptr %4, align 4
br label %46
46: ; preds = %45, %34, %26
%47 = load i32, ptr %4, align 4
ret i32 %47
}
declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #1
declare i32 @error_reason(ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @error_text(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpox1mp9on.c'
source_filename = "/tmp/tmpox1mp9on.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"*XPtr's value is %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @f(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i32, ptr %3, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
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/tmpox1mp9on.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"*XPtr's value is %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @f(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i32, ptr %3, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
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/tmpvg9aj8jc.c'
source_filename = "/tmp/tmpvg9aj8jc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ExpectedTypeError2(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%9 = load ptr, ptr %4, align 8
%10 = load ptr, ptr %5, align 8
%11 = call ptr @FindFunction(ptr noundef %9, ptr noundef %10)
store ptr %11, ptr %7, align 8
%12 = load ptr, ptr %7, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %15
14: ; preds = %3
br label %25
15: ; preds = %3
%16 = load ptr, ptr %7, align 8
%17 = load i32, ptr %6, align 4
%18 = call i32 @GetNthRestriction(ptr noundef %16, i32 noundef %17)
%19 = call ptr @GetArgumentTypeName(i32 noundef %18)
store ptr %19, ptr %8, align 8
%20 = load ptr, ptr %4, align 8
%21 = load ptr, ptr %5, align 8
%22 = load i32, ptr %6, align 4
%23 = load ptr, ptr %8, align 8
%24 = call i32 @ExpectedTypeError1(ptr noundef %20, ptr noundef %21, i32 noundef %22, ptr noundef %23)
br label %25
25: ; preds = %15, %14
ret void
}
declare ptr @FindFunction(ptr noundef, ptr noundef) #1
declare ptr @GetArgumentTypeName(i32 noundef) #1
declare i32 @GetNthRestriction(ptr noundef, i32 noundef) #1
declare i32 @ExpectedTypeError1(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvg9aj8jc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ExpectedTypeError2(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%9 = load ptr, ptr %4, align 8
%10 = load ptr, ptr %5, align 8
%11 = call ptr @FindFunction(ptr noundef %9, ptr noundef %10)
store ptr %11, ptr %7, align 8
%12 = load ptr, ptr %7, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %15
14: ; preds = %3
br label %25
15: ; preds = %3
%16 = load ptr, ptr %7, align 8
%17 = load i32, ptr %6, align 4
%18 = call i32 @GetNthRestriction(ptr noundef %16, i32 noundef %17)
%19 = call ptr @GetArgumentTypeName(i32 noundef %18)
store ptr %19, ptr %8, align 8
%20 = load ptr, ptr %4, align 8
%21 = load ptr, ptr %5, align 8
%22 = load i32, ptr %6, align 4
%23 = load ptr, ptr %8, align 8
%24 = call i32 @ExpectedTypeError1(ptr noundef %20, ptr noundef %21, i32 noundef %22, ptr noundef %23)
br label %25
25: ; preds = %15, %14
ret void
}
declare ptr @FindFunction(ptr noundef, ptr noundef) #1
declare ptr @GetArgumentTypeName(i32 noundef) #1
declare i32 @GetNthRestriction(ptr noundef, i32 noundef) #1
declare i32 @ExpectedTypeError1(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp28fs6so0.c'
source_filename = "/tmp/tmp28fs6so0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_brk() #0 {
%1 = alloca ptr, align 8
%2 = call ptr @malloc(i32 noundef 16777216)
store ptr %2, ptr %1, align 8
%3 = load ptr, ptr %1, align 8
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = call i32 @err(i32 noundef 7, i32 noundef 1)
br label %7
7: ; preds = %5, %0
ret void
}
declare ptr @malloc(i32 noundef) #1
declare i32 @err(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/tmp28fs6so0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_brk() #0 {
%1 = alloca ptr, align 8
%2 = call ptr @malloc(i32 noundef 16777216)
store ptr %2, ptr %1, align 8
%3 = load ptr, ptr %1, align 8
%4 = icmp eq ptr %3, null
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = call i32 @err(i32 noundef 7, i32 noundef 1)
br label %7
7: ; preds = %5, %0
ret void
}
declare ptr @malloc(i32 noundef) #1
declare i32 @err(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/tmpi9fgtzmw.c'
source_filename = "/tmp/tmpi9fgtzmw.c"
target datalayout = "e-m:e-p270: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/tmpi9fgtzmw.c"
target datalayout = "e-m:e-p270: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/tmp56o5gu5_.c'
source_filename = "/tmp/tmp56o5gu5_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [29 x i8] c"Usage: %s [<database-file>]\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"\0AOptions:\0A\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"%d: Add new employee to database\0A\00", align 1
@.str.3 = private unnamed_addr constant [35 x i8] c"%d: Delete employee from database\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"%d: Print database to screen\0A\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"%d: Exit database program\0A\00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"\0AEnter option: \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.8 = private unnamed_addr constant [23 x i8] c"corrupted menu choice\0A\00", align 1
@.str.9 = private unnamed_addr constant [19 x i8] c"illegal choice %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 [301 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp ne i32 %9, 1
br i1 %10, label %11, label %21
11: ; preds = %2
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %21
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 (i32, ptr, ...) @fprintf(i32 noundef %15, ptr noundef @.str, ptr noundef %18)
%20 = call i32 @exit(i32 noundef -1) #3
unreachable
21: ; preds = %11, %2
%22 = load i32, ptr %4, align 4
%23 = icmp eq i32 %22, 2
br i1 %23, label %24, label %29
24: ; preds = %21
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 1
%27 = load ptr, ptr %26, align 8
%28 = call i32 @read_employee_database(ptr noundef %27)
br label %29
29: ; preds = %24, %21
br label %30
30: ; preds = %73, %53, %47, %29
%31 = load i32, ptr @stderr, align 4
%32 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %31, ptr noundef @.str.1)
%33 = load i32, ptr @stderr, align 4
%34 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %33, ptr noundef @.str.2, i32 noundef 0)
%35 = load i32, ptr @stderr, align 4
%36 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %35, ptr noundef @.str.3, i32 noundef 1)
%37 = load i32, ptr @stderr, align 4
%38 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %37, ptr noundef @.str.4, i32 noundef 2)
%39 = load i32, ptr @stderr, align 4
%40 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %39, ptr noundef @.str.5, i32 noundef 3)
%41 = load i32, ptr @stderr, align 4
%42 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %41, ptr noundef @.str.6)
%43 = load i32, ptr @stdin, align 4
%44 = getelementptr inbounds [301 x i8], ptr %8, i64 0, i64 0
%45 = call i64 @read_line(i32 noundef %43, ptr noundef %44, i32 noundef 300)
%46 = icmp ne i64 %45, 0
br i1 %46, label %47, label %48
47: ; preds = %30
br label %30
48: ; preds = %30
%49 = getelementptr inbounds [301 x i8], ptr %8, i64 0, i64 0
%50 = call i32 @sscanf(ptr noundef %49, ptr noundef @.str.7, ptr noundef %6)
store i32 %50, ptr %7, align 4
%51 = load i32, ptr %7, align 4
%52 = icmp ne i32 %51, 1
br i1 %52, label %53, label %56
53: ; preds = %48
%54 = load i32, ptr @stderr, align 4
%55 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %54, ptr noundef @.str.8)
br label %30
56: ; preds = %48
%57 = load i32, ptr %6, align 4
switch i32 %57, label %65 [
i32 0, label %58
i32 1, label %60
i32 2, label %62
i32 3, label %64
]
58: ; preds = %56
%59 = call i32 (...) @menu_add_employee()
br label %69
60: ; preds = %56
%61 = call i32 (...) @menu_delete_employee()
br label %69
62: ; preds = %56
%63 = call i32 (...) @menu_print_database()
br label %69
64: ; preds = %56
br label %69
65: ; preds = %56
%66 = load i32, ptr @stderr, align 4
%67 = load i32, ptr %6, align 4
%68 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %66, ptr noundef @.str.9, i32 noundef %67)
br label %69
69: ; preds = %65, %64, %62, %60, %58
%70 = load i32, ptr %6, align 4
%71 = icmp eq i32 %70, 3
br i1 %71, label %72, label %73
72: ; preds = %69
br label %74
73: ; preds = %69
br label %30
74: ; preds = %72
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @read_employee_database(ptr noundef) #1
declare i64 @read_line(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @menu_add_employee(...) #1
declare i32 @menu_delete_employee(...) #1
declare i32 @menu_print_database(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmp56o5gu5_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [29 x i8] c"Usage: %s [<database-file>]\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"\0AOptions:\0A\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"%d: Add new employee to database\0A\00", align 1
@.str.3 = private unnamed_addr constant [35 x i8] c"%d: Delete employee from database\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"%d: Print database to screen\0A\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"%d: Exit database program\0A\00", align 1
@.str.6 = private unnamed_addr constant [16 x i8] c"\0AEnter option: \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.7 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.8 = private unnamed_addr constant [23 x i8] c"corrupted menu choice\0A\00", align 1
@.str.9 = private unnamed_addr constant [19 x i8] c"illegal choice %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 [301 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp ne i32 %9, 1
br i1 %10, label %11, label %21
11: ; preds = %2
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %21
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 (i32, ptr, ...) @fprintf(i32 noundef %15, ptr noundef @.str, ptr noundef %18)
%20 = call i32 @exit(i32 noundef -1) #3
unreachable
21: ; preds = %11, %2
%22 = load i32, ptr %4, align 4
%23 = icmp eq i32 %22, 2
br i1 %23, label %24, label %29
24: ; preds = %21
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 1
%27 = load ptr, ptr %26, align 8
%28 = call i32 @read_employee_database(ptr noundef %27)
br label %29
29: ; preds = %24, %21
br label %30
30: ; preds = %.backedge, %29
%31 = load i32, ptr @stderr, align 4
%32 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %31, ptr noundef @.str.1)
%33 = load i32, ptr @stderr, align 4
%34 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %33, ptr noundef @.str.2, i32 noundef 0)
%35 = load i32, ptr @stderr, align 4
%36 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %35, ptr noundef @.str.3, i32 noundef 1)
%37 = load i32, ptr @stderr, align 4
%38 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %37, ptr noundef @.str.4, i32 noundef 2)
%39 = load i32, ptr @stderr, align 4
%40 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %39, ptr noundef @.str.5, i32 noundef 3)
%41 = load i32, ptr @stderr, align 4
%42 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %41, ptr noundef @.str.6)
%43 = load i32, ptr @stdin, align 4
%44 = getelementptr inbounds [301 x i8], ptr %8, i64 0, i64 0
%45 = call i64 @read_line(i32 noundef %43, ptr noundef %44, i32 noundef 300)
%46 = icmp ne i64 %45, 0
br i1 %46, label %47, label %48
47: ; preds = %30
br label %.backedge
.backedge: ; preds = %47, %53, %73
br label %30
48: ; preds = %30
%49 = getelementptr inbounds [301 x i8], ptr %8, i64 0, i64 0
%50 = call i32 @sscanf(ptr noundef %49, ptr noundef @.str.7, ptr noundef %6)
store i32 %50, ptr %7, align 4
%51 = load i32, ptr %7, align 4
%52 = icmp ne i32 %51, 1
br i1 %52, label %53, label %56
53: ; preds = %48
%54 = load i32, ptr @stderr, align 4
%55 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %54, ptr noundef @.str.8)
br label %.backedge
56: ; preds = %48
%57 = load i32, ptr %6, align 4
switch i32 %57, label %65 [
i32 0, label %58
i32 1, label %60
i32 2, label %62
i32 3, label %64
]
58: ; preds = %56
%59 = call i32 (...) @menu_add_employee()
br label %69
60: ; preds = %56
%61 = call i32 (...) @menu_delete_employee()
br label %69
62: ; preds = %56
%63 = call i32 (...) @menu_print_database()
br label %69
64: ; preds = %56
br label %69
65: ; preds = %56
%66 = load i32, ptr @stderr, align 4
%67 = load i32, ptr %6, align 4
%68 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %66, ptr noundef @.str.9, i32 noundef %67)
br label %69
69: ; preds = %65, %64, %62, %60, %58
%70 = load i32, ptr %6, align 4
%71 = icmp eq i32 %70, 3
br i1 %71, label %72, label %73
72: ; preds = %69
br label %74
73: ; preds = %69
br label %.backedge
74: ; preds = %72
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @read_employee_database(ptr noundef) #1
declare i64 @read_line(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @menu_add_employee(...) #1
declare i32 @menu_delete_employee(...) #1
declare i32 @menu_print_database(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpdzp2itak.c'
source_filename = "/tmp/tmpdzp2itak.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter two numbers: \0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"LCM = %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
store i32 0, ptr %1, align 4
store i32 1, ptr %4, align 4
store i32 1, ptr %5, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3)
br label %8
8: ; preds = %40, %0
%9 = load i32, ptr %4, align 4
%10 = load i32, ptr %2, align 4
%11 = load i32, ptr %3, align 4
%12 = icmp sgt i32 %10, %11
br i1 %12, label %13, label %15
13: ; preds = %8
%14 = load i32, ptr %2, align 4
br label %17
15: ; preds = %8
%16 = load i32, ptr %3, align 4
br label %17
17: ; preds = %15, %13
%18 = phi i32 [ %14, %13 ], [ %16, %15 ]
%19 = icmp sle i32 %9, %18
br i1 %19, label %20, label %43
20: ; preds = %17
%21 = load i32, ptr %2, align 4
%22 = load i32, ptr %4, align 4
%23 = srem i32 %21, %22
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %40
25: ; preds = %20
%26 = load i32, ptr %3, align 4
%27 = load i32, ptr %4, align 4
%28 = srem i32 %26, %27
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %40
30: ; preds = %25
%31 = load i32, ptr %2, align 4
%32 = load i32, ptr %4, align 4
%33 = sdiv i32 %31, %32
store i32 %33, ptr %2, align 4
%34 = load i32, ptr %3, align 4
%35 = load i32, ptr %4, align 4
%36 = sdiv i32 %34, %35
store i32 %36, ptr %3, align 4
%37 = load i32, ptr %5, align 4
%38 = load i32, ptr %4, align 4
%39 = mul nsw i32 %37, %38
store i32 %39, ptr %5, align 4
store i32 1, ptr %4, align 4
br label %40
40: ; preds = %30, %25, %20
%41 = load i32, ptr %4, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %4, align 4
br label %8, !llvm.loop !6
43: ; preds = %17
%44 = load i32, ptr %5, align 4
%45 = load i32, ptr %2, align 4
%46 = mul nsw i32 %44, %45
%47 = load i32, ptr %3, align 4
%48 = mul nsw i32 %46, %47
store i32 %48, ptr %5, align 4
%49 = load i32, ptr %5, align 4
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %49)
%51 = load i32, ptr %1, align 4
ret i32 %51
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdzp2itak.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter two numbers: \0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"LCM = %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
store i32 0, ptr %1, align 4
store i32 1, ptr %4, align 4
store i32 1, ptr %5, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3)
br label %8
8: ; preds = %40, %0
%9 = load i32, ptr %4, align 4
%10 = load i32, ptr %2, align 4
%11 = load i32, ptr %3, align 4
%12 = icmp sgt i32 %10, %11
br i1 %12, label %13, label %15
13: ; preds = %8
%14 = load i32, ptr %2, align 4
br label %17
15: ; preds = %8
%16 = load i32, ptr %3, align 4
br label %17
17: ; preds = %15, %13
%18 = phi i32 [ %14, %13 ], [ %16, %15 ]
%19 = icmp sle i32 %9, %18
br i1 %19, label %20, label %43
20: ; preds = %17
%21 = load i32, ptr %2, align 4
%22 = load i32, ptr %4, align 4
%23 = srem i32 %21, %22
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %40
25: ; preds = %20
%26 = load i32, ptr %3, align 4
%27 = load i32, ptr %4, align 4
%28 = srem i32 %26, %27
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %40
30: ; preds = %25
%31 = load i32, ptr %2, align 4
%32 = load i32, ptr %4, align 4
%33 = sdiv i32 %31, %32
store i32 %33, ptr %2, align 4
%34 = load i32, ptr %3, align 4
%35 = load i32, ptr %4, align 4
%36 = sdiv i32 %34, %35
store i32 %36, ptr %3, align 4
%37 = load i32, ptr %5, align 4
%38 = load i32, ptr %4, align 4
%39 = mul nsw i32 %37, %38
store i32 %39, ptr %5, align 4
store i32 1, ptr %4, align 4
br label %40
40: ; preds = %30, %25, %20
%41 = load i32, ptr %4, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %4, align 4
br label %8, !llvm.loop !6
43: ; preds = %17
%44 = load i32, ptr %5, align 4
%45 = load i32, ptr %2, align 4
%46 = mul nsw i32 %44, %45
%47 = load i32, ptr %3, align 4
%48 = mul nsw i32 %46, %47
store i32 %48, ptr %5, align 4
%49 = load i32, ptr %5, align 4
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %49)
%51 = load i32, ptr %1, align 4
ret i32 %51
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp7bwce3hp.c'
source_filename = "/tmp/tmp7bwce3hp.c"
target datalayout = "e-m:e-p270: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 [22 x i8] c"Line %3d of File %s \0A\00", align 1
@.str.1 = private unnamed_addr constant [167 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/NerdWalletOSS/Q/refs/heads/master/DEPRECATED_Q2/BAK.4.23.2015.PARSER/auxil.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @strip_extra_spaces(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%10 = load ptr, ptr %2, align 8
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %15
12: ; preds = %1
%13 = load i32, ptr @stderr, align 4
%14 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str, i32 noundef 543, ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %111
15: ; preds = %1
%16 = load ptr, ptr %2, align 8
%17 = call i32 @strlen(ptr noundef %16)
store i32 %17, ptr %5, align 4
%18 = load i32, ptr %5, align 4
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %21
20: ; preds = %15
br label %111
21: ; preds = %15
%22 = load i32, ptr %5, align 4
%23 = sub nsw i32 %22, 1
store i32 %23, ptr %6, align 4
br label %24
24: ; preds = %42, %21
%25 = load i32, ptr %6, align 4
%26 = icmp sge i32 %25, 0
br i1 %26, label %27, label %45
27: ; preds = %24
%28 = load ptr, ptr %2, align 8
%29 = load i32, ptr %6, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %28, i64 %30
%32 = load i8, ptr %31, align 1
%33 = call i64 @isspace(i8 noundef signext %32)
%34 = icmp ne i64 %33, 0
br i1 %34, label %35, label %40
35: ; preds = %27
%36 = load ptr, ptr %2, align 8
%37 = load i32, ptr %6, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
store i8 0, ptr %39, align 1
br label %41
40: ; preds = %27
br label %45
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 %24, !llvm.loop !6
45: ; preds = %40, %24
%46 = load ptr, ptr %2, align 8
%47 = call i32 @strlen(ptr noundef %46)
store i32 %47, ptr %5, align 4
%48 = load i32, ptr %5, align 4
%49 = icmp eq i32 %48, 0
br i1 %49, label %50, label %51
50: ; preds = %45
br label %111
51: ; preds = %45
store i32 0, ptr %7, align 4
store i32 0, ptr %4, align 4
br label %52
52: ; preds = %69, %51
%53 = load i32, ptr %4, align 4
%54 = load i32, ptr %5, align 4
%55 = icmp slt i32 %53, %54
br i1 %55, label %56, label %72
56: ; preds = %52
%57 = load ptr, ptr %2, align 8
%58 = load i32, ptr %4, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8, ptr %57, i64 %59
%61 = load i8, ptr %60, align 1
%62 = call i64 @isspace(i8 noundef signext %61)
%63 = icmp ne i64 %62, 0
br i1 %63, label %64, label %67
64: ; preds = %56
%65 = load i32, ptr %4, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %7, align 4
br label %68
67: ; preds = %56
br label %72
68: ; preds = %64
br label %69
69: ; preds = %68
%70 = load i32, ptr %4, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %4, align 4
br label %52, !llvm.loop !8
72: ; preds = %67, %52
store i32 0, ptr %8, align 4
br label %73
73: ; preds = %91, %72
%74 = load i32, ptr %8, align 4
%75 = load i32, ptr %5, align 4
%76 = load i32, ptr %7, align 4
%77 = sub nsw i32 %75, %76
%78 = icmp slt i32 %74, %77
br i1 %78, label %79, label %94
79: ; preds = %73
%80 = load ptr, ptr %2, align 8
%81 = load i32, ptr %8, align 4
%82 = load i32, ptr %7, align 4
%83 = add nsw i32 %81, %82
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i8, ptr %80, i64 %84
%86 = load i8, ptr %85, align 1
%87 = load ptr, ptr %2, align 8
%88 = load i32, ptr %8, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i8, ptr %87, i64 %89
store i8 %86, ptr %90, align 1
br label %91
91: ; preds = %79
%92 = load i32, ptr %8, align 4
%93 = add nsw i32 %92, 1
store i32 %93, ptr %8, align 4
br label %73, !llvm.loop !9
94: ; preds = %73
%95 = load i32, ptr %5, align 4
%96 = load i32, ptr %7, align 4
%97 = sub nsw i32 %95, %96
store i32 %97, ptr %9, align 4
br label %98
98: ; preds = %107, %94
%99 = load i32, ptr %9, align 4
%100 = load i32, ptr %5, align 4
%101 = icmp slt i32 %99, %100
br i1 %101, label %102, label %110
102: ; preds = %98
%103 = load ptr, ptr %2, align 8
%104 = load i32, ptr %9, align 4
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds i8, ptr %103, i64 %105
store i8 0, ptr %106, align 1
br label %107
107: ; preds = %102
%108 = load i32, ptr %9, align 4
%109 = add nsw i32 %108, 1
store i32 %109, ptr %9, align 4
br label %98, !llvm.loop !10
110: ; preds = %98
br label %111
111: ; preds = %110, %50, %20, %12
%112 = load i32, ptr %3, align 4
ret i32 %112
}
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @isspace(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7bwce3hp.c"
target datalayout = "e-m:e-p270: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 [22 x i8] c"Line %3d of File %s \0A\00", align 1
@.str.1 = private unnamed_addr constant [167 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/NerdWalletOSS/Q/refs/heads/master/DEPRECATED_Q2/BAK.4.23.2015.PARSER/auxil.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @strip_extra_spaces(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%10 = load ptr, ptr %2, align 8
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %15
12: ; preds = %1
%13 = load i32, ptr @stderr, align 4
%14 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str, i32 noundef 543, ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %120
15: ; preds = %1
%16 = load ptr, ptr %2, align 8
%17 = call i32 @strlen(ptr noundef %16)
store i32 %17, ptr %5, align 4
%18 = load i32, ptr %5, align 4
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %21
20: ; preds = %15
br label %120
21: ; preds = %15
%22 = load i32, ptr %5, align 4
%23 = sub nsw i32 %22, 1
store i32 %23, ptr %6, align 4
%24 = load i32, ptr %6, align 4
%25 = icmp sge i32 %24, 0
br i1 %25, label %.lr.ph, label %.loopexit1
.lr.ph: ; preds = %21
br label %26
26: ; preds = %.lr.ph, %41
%27 = load ptr, ptr %2, align 8
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
%31 = load i8, ptr %30, align 1
%32 = call i64 @isspace(i8 noundef signext %31)
%33 = icmp ne i64 %32, 0
br i1 %33, label %34, label %39
34: ; preds = %26
%35 = load ptr, ptr %2, align 8
%36 = load i32, ptr %6, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %35, i64 %37
store i8 0, ptr %38, align 1
br label %40
39: ; preds = %26
br label %46
40: ; preds = %34
br label %41
41: ; preds = %40
%42 = load i32, ptr %6, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %6, align 4
%44 = load i32, ptr %6, align 4
%45 = icmp sge i32 %44, 0
br i1 %45, label %26, label %..loopexit1_crit_edge, !llvm.loop !6
..loopexit1_crit_edge: ; preds = %41
br label %.loopexit1
.loopexit1: ; preds = %..loopexit1_crit_edge, %21
br label %46
46: ; preds = %.loopexit1, %39
%47 = load ptr, ptr %2, align 8
%48 = call i32 @strlen(ptr noundef %47)
store i32 %48, ptr %5, align 4
%49 = load i32, ptr %5, align 4
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %52
51: ; preds = %46
br label %120
52: ; preds = %46
store i32 0, ptr %7, align 4
store i32 0, ptr %4, align 4
%53 = load i32, ptr %4, align 4
%54 = load i32, ptr %5, align 4
%55 = icmp slt i32 %53, %54
br i1 %55, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %52
br label %56
56: ; preds = %.lr.ph2, %69
%57 = load ptr, ptr %2, align 8
%58 = load i32, ptr %4, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8, ptr %57, i64 %59
%61 = load i8, ptr %60, align 1
%62 = call i64 @isspace(i8 noundef signext %61)
%63 = icmp ne i64 %62, 0
br i1 %63, label %64, label %67
64: ; preds = %56
%65 = load i32, ptr %4, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %7, align 4
br label %68
67: ; preds = %56
br label %75
68: ; preds = %64
br label %69
69: ; preds = %68
%70 = load i32, ptr %4, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %4, align 4
%72 = load i32, ptr %4, align 4
%73 = load i32, ptr %5, align 4
%74 = icmp slt i32 %72, %73
br i1 %74, label %56, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %69
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %52
br label %75
75: ; preds = %.loopexit, %67
store i32 0, ptr %8, align 4
%76 = load i32, ptr %8, align 4
%77 = load i32, ptr %5, align 4
%78 = load i32, ptr %7, align 4
%79 = sub nsw i32 %77, %78
%80 = icmp slt i32 %76, %79
br i1 %80, label %.lr.ph3, label %101
.lr.ph3: ; preds = %75
br label %81
81: ; preds = %.lr.ph3, %93
%82 = load ptr, ptr %2, align 8
%83 = load i32, ptr %8, align 4
%84 = load i32, ptr %7, align 4
%85 = add nsw i32 %83, %84
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i8, ptr %82, i64 %86
%88 = load i8, ptr %87, align 1
%89 = load ptr, ptr %2, align 8
%90 = load i32, ptr %8, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i8, ptr %89, i64 %91
store i8 %88, ptr %92, align 1
br label %93
93: ; preds = %81
%94 = load i32, ptr %8, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %8, align 4
%96 = load i32, ptr %8, align 4
%97 = load i32, ptr %5, align 4
%98 = load i32, ptr %7, align 4
%99 = sub nsw i32 %97, %98
%100 = icmp slt i32 %96, %99
br i1 %100, label %81, label %._crit_edge, !llvm.loop !9
._crit_edge: ; preds = %93
br label %101
101: ; preds = %._crit_edge, %75
%102 = load i32, ptr %5, align 4
%103 = load i32, ptr %7, align 4
%104 = sub nsw i32 %102, %103
store i32 %104, ptr %9, align 4
%105 = load i32, ptr %9, align 4
%106 = load i32, ptr %5, align 4
%107 = icmp slt i32 %105, %106
br i1 %107, label %.lr.ph5, label %119
.lr.ph5: ; preds = %101
br label %108
108: ; preds = %.lr.ph5, %113
%109 = load ptr, ptr %2, align 8
%110 = load i32, ptr %9, align 4
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds i8, ptr %109, i64 %111
store i8 0, ptr %112, align 1
br label %113
113: ; preds = %108
%114 = load i32, ptr %9, align 4
%115 = add nsw i32 %114, 1
store i32 %115, ptr %9, align 4
%116 = load i32, ptr %9, align 4
%117 = load i32, ptr %5, align 4
%118 = icmp slt i32 %116, %117
br i1 %118, label %108, label %._crit_edge6, !llvm.loop !10
._crit_edge6: ; preds = %113
br label %119
119: ; preds = %._crit_edge6, %101
br label %120
120: ; preds = %119, %51, %20, %12
%121 = load i32, ptr %3, align 4
ret i32 %121
}
declare i32 @fprintf(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @isspace(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpgxp2dq1j.c'
source_filename = "/tmp/tmpgxp2dq1j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PR_SET_PDEATHSIG = dso_local global i32 0, align 4
@SIGHUP = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @h_exit(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @perror(ptr noundef %3)
%5 = load i32, ptr @PR_SET_PDEATHSIG, align 4
%6 = load i32, ptr @SIGHUP, align 4
%7 = call i32 @prctl(i32 noundef %5, i32 noundef %6)
%8 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @perror(ptr noundef) #1
declare i32 @prctl(i32 noundef, 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/tmpgxp2dq1j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PR_SET_PDEATHSIG = dso_local global i32 0, align 4
@SIGHUP = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @h_exit(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @perror(ptr noundef %3)
%5 = load i32, ptr @PR_SET_PDEATHSIG, align 4
%6 = load i32, ptr @SIGHUP, align 4
%7 = call i32 @prctl(i32 noundef %5, i32 noundef %6)
%8 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @perror(ptr noundef) #1
declare i32 @prctl(i32 noundef, 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/tmpl8wmtpbb.c'
source_filename = "/tmp/tmpl8wmtpbb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cmd_radio_off(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca [4 x i8], align 1
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
call void @llvm.memset.p0.i64(ptr align 1 %5, i8 0, i64 4, i1 false)
%6 = getelementptr inbounds [4 x i8], ptr %5, i64 0, i64 0
%7 = call i32 @setcns(i32 noundef 4213, i32 noundef 4, ptr noundef %6)
ret i32 %7
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @setcns(i32 noundef, i32 noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl8wmtpbb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cmd_radio_off(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca [4 x i8], align 1
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
call void @llvm.memset.p0.i64(ptr align 1 %5, i8 0, i64 4, i1 false)
%6 = getelementptr inbounds [4 x i8], ptr %5, i64 0, i64 0
%7 = call i32 @setcns(i32 noundef 4213, i32 noundef 4, ptr noundef %6)
ret i32 %7
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @setcns(i32 noundef, i32 noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdot_bwxv.c'
source_filename = "/tmp/tmpdot_bwxv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strnlen(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
store i64 0, ptr %5, align 8
br label %6
6: ; preds = %18, %2
%7 = load i64, ptr %5, align 8
%8 = load i64, ptr %4, align 8
%9 = icmp ult i64 %7, %8
br i1 %9, label %10, label %16
10: ; preds = %6
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds i8, ptr %11, i32 1
store ptr %12, ptr %3, align 8
%13 = load i8, ptr %11, align 1
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 0
br label %16
16: ; preds = %10, %6
%17 = phi i1 [ false, %6 ], [ %15, %10 ]
br i1 %17, label %18, label %21
18: ; preds = %16
%19 = load i64, ptr %5, align 8
%20 = add i64 %19, 1
store i64 %20, ptr %5, align 8
br label %6, !llvm.loop !6
21: ; preds = %16
%22 = load i64, ptr %5, align 8
ret i64 %22
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpdot_bwxv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strnlen(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
store i64 0, ptr %5, align 8
br label %6
6: ; preds = %18, %2
%7 = load i64, ptr %5, align 8
%8 = load i64, ptr %4, align 8
%9 = icmp ult i64 %7, %8
br i1 %9, label %10, label %16
10: ; preds = %6
%11 = load ptr, ptr %3, align 8
%12 = getelementptr inbounds i8, ptr %11, i32 1
store ptr %12, ptr %3, align 8
%13 = load i8, ptr %11, align 1
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 0
br label %16
16: ; preds = %10, %6
%17 = phi i1 [ false, %6 ], [ %15, %10 ]
br i1 %17, label %18, label %21
18: ; preds = %16
%19 = load i64, ptr %5, align 8
%20 = add i64 %19, 1
store i64 %20, ptr %5, align 8
br label %6, !llvm.loop !6
21: ; preds = %16
%22 = load i64, ptr %5, align 8
ret i64 %22
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp3gx8c8ru.c'
source_filename = "/tmp/tmp3gx8c8ru.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sigquit_handler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 (...) @tape_detach()
%4 = call i32 (...) @closedown()
%5 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @tape_detach(...) #1
declare i32 @closedown(...) #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/tmp3gx8c8ru.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sigquit_handler(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 (...) @tape_detach()
%4 = call i32 (...) @closedown()
%5 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @tape_detach(...) #1
declare i32 @closedown(...) #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/tmpozm_yasw.c'
source_filename = "/tmp/tmpozm_yasw.c"
target datalayout = "e-m:e-p270: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/tmpozm_yasw.c"
target datalayout = "e-m:e-p270: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/tmp6d8nso7f.c'
source_filename = "/tmp/tmp6d8nso7f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%s/%s\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ft_read_file(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca [256 x i8], align 16
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
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 ptr null, ptr %11, align 8
store i32 0, ptr %13, align 4
br label %14
14: ; preds = %4
%15 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%16 = load ptr, ptr %8, align 8
%17 = load ptr, ptr %9, align 8
%18 = call i32 @snprintf(ptr noundef %15, i32 noundef 256, ptr noundef @.str, ptr noundef %16, ptr noundef %17)
%19 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%20 = call ptr @fopen(ptr noundef %19, ptr noundef @.str.1)
store ptr %20, ptr %11, align 8
%21 = load ptr, ptr %11, align 8
%22 = icmp ne ptr %21, null
br i1 %22, label %24, label %23
23: ; preds = %14
br label %38
24: ; preds = %14
%25 = load ptr, ptr %6, align 8
%26 = load i64, ptr %7, align 8
%27 = sub i64 %26, 1
%28 = load ptr, ptr %11, align 8
%29 = call i32 @fread(ptr noundef %25, i32 noundef 1, i64 noundef %27, ptr noundef %28)
store i32 %29, ptr %12, align 4
%30 = load ptr, ptr %6, align 8
%31 = load i32, ptr %12, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %30, i64 %32
store i8 0, ptr %33, align 1
%34 = load i32, ptr %12, align 4
%35 = icmp ne i32 %34, 0
br i1 %35, label %37, label %36
36: ; preds = %24
br label %38
37: ; preds = %24
store i32 1, ptr %13, align 4
br label %38
38: ; preds = %37, %36, %23
%39 = load ptr, ptr %11, align 8
%40 = icmp ne ptr %39, null
br i1 %40, label %41, label %44
41: ; preds = %38
%42 = load ptr, ptr %11, align 8
%43 = call i32 @fclose(ptr noundef %42)
br label %44
44: ; preds = %41, %38
%45 = load i32, ptr %13, align 4
%46 = icmp ne i32 %45, 0
br i1 %46, label %48, label %47
47: ; preds = %44
store i32 0, ptr %5, align 4
br label %49
48: ; preds = %44
store i32 1, ptr %5, align 4
br label %49
49: ; preds = %48, %47
%50 = load i32, ptr %5, align 4
ret i32 %50
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i64 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/tmp6d8nso7f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%s/%s\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ft_read_file(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca [256 x i8], align 16
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
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 ptr null, ptr %11, align 8
store i32 0, ptr %13, align 4
br label %14
14: ; preds = %4
%15 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%16 = load ptr, ptr %8, align 8
%17 = load ptr, ptr %9, align 8
%18 = call i32 @snprintf(ptr noundef %15, i32 noundef 256, ptr noundef @.str, ptr noundef %16, ptr noundef %17)
%19 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
%20 = call ptr @fopen(ptr noundef %19, ptr noundef @.str.1)
store ptr %20, ptr %11, align 8
%21 = load ptr, ptr %11, align 8
%22 = icmp ne ptr %21, null
br i1 %22, label %24, label %23
23: ; preds = %14
br label %38
24: ; preds = %14
%25 = load ptr, ptr %6, align 8
%26 = load i64, ptr %7, align 8
%27 = sub i64 %26, 1
%28 = load ptr, ptr %11, align 8
%29 = call i32 @fread(ptr noundef %25, i32 noundef 1, i64 noundef %27, ptr noundef %28)
store i32 %29, ptr %12, align 4
%30 = load ptr, ptr %6, align 8
%31 = load i32, ptr %12, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %30, i64 %32
store i8 0, ptr %33, align 1
%34 = load i32, ptr %12, align 4
%35 = icmp ne i32 %34, 0
br i1 %35, label %37, label %36
36: ; preds = %24
br label %38
37: ; preds = %24
store i32 1, ptr %13, align 4
br label %38
38: ; preds = %37, %36, %23
%39 = load ptr, ptr %11, align 8
%40 = icmp ne ptr %39, null
br i1 %40, label %41, label %44
41: ; preds = %38
%42 = load ptr, ptr %11, align 8
%43 = call i32 @fclose(ptr noundef %42)
br label %44
44: ; preds = %41, %38
%45 = load i32, ptr %13, align 4
%46 = icmp ne i32 %45, 0
br i1 %46, label %48, label %47
47: ; preds = %44
store i32 0, ptr %5, align 4
br label %49
48: ; preds = %44
store i32 1, ptr %5, align 4
br label %49
49: ; preds = %48, %47
%50 = load i32, ptr %5, align 4
ret i32 %50
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i64 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/tmp8t8rzp_2.c'
source_filename = "/tmp/tmp8t8rzp_2.c"
target datalayout = "e-m:e-p270: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 [963 x i8] c"Usage: %s ?OPTIONS? TARGET-DB RBU-DB\0A\0AWhere options are:\0A\0A -step NSTEP\0A -vacuum\0A\0A If the -vacuum switch is not present, argument RBU-DB must be an RBU\0A database containing an update suitable for target database TARGET-DB.\0A Or, if -vacuum is specified, then TARGET-DB is a database to vacuum using\0A RBU, and RBU-DB is used as the state database for the vacuum (refer to\0A API documentation for details).\0A\0A If NSTEP is set to less than or equal to zero (the default value), this \0A program attempts to perform the entire update or vacuum operation before\0A exiting\0A\0A If NSTEP is greater than zero, then a maximum of NSTEP calls are made\0A to sqlite3rbu_step(). If the RBU update has not been completely applied\0A after the NSTEP'th call is made, the state is saved in the database RBU-DB\0A and the program exits. Subsequent invocations of this (or any other RBU)\0A application will use this state to resume applying the RBU update to the\0A target db.\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8t8rzp_2.c"
target datalayout = "e-m:e-p270: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 [963 x i8] c"Usage: %s ?OPTIONS? TARGET-DB RBU-DB\0A\0AWhere options are:\0A\0A -step NSTEP\0A -vacuum\0A\0A If the -vacuum switch is not present, argument RBU-DB must be an RBU\0A database containing an update suitable for target database TARGET-DB.\0A Or, if -vacuum is specified, then TARGET-DB is a database to vacuum using\0A RBU, and RBU-DB is used as the state database for the vacuum (refer to\0A API documentation for details).\0A\0A If NSTEP is set to less than or equal to zero (the default value), this \0A program attempts to perform the entire update or vacuum operation before\0A exiting\0A\0A If NSTEP is greater than zero, then a maximum of NSTEP calls are made\0A to sqlite3rbu_step(). If the RBU update has not been completely applied\0A after the NSTEP'th call is made, the state is saved in the database RBU-DB\0A and the program exits. Subsequent invocations of this (or any other RBU)\0A application will use this state to resume applying the RBU update to the\0A target db.\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpl9aj81hk.c'
source_filename = "/tmp/tmpl9aj81hk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @local_min(double noundef %0, double noundef %1, double noundef %2, double noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca double, align 8
%21 = alloca double, align 8
%22 = alloca double, align 8
%23 = alloca double, align 8
%24 = alloca double, align 8
%25 = alloca double, align 8
%26 = alloca double, align 8
%27 = alloca double, align 8
%28 = alloca double, align 8
%29 = alloca double, align 8
%30 = alloca double, align 8
store double %0, ptr %7, align 8
store double %1, ptr %8, align 8
store double %2, ptr %9, align 8
store double %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%31 = call double @sqrt(double noundef 5.000000e+00) #3
%32 = fsub double 3.000000e+00, %31
%33 = fmul double 5.000000e-01, %32
store double %33, ptr %13, align 8
%34 = load double, ptr %7, align 8
store double %34, ptr %24, align 8
%35 = load double, ptr %8, align 8
store double %35, ptr %25, align 8
%36 = load double, ptr %24, align 8
%37 = load double, ptr %13, align 8
%38 = load double, ptr %8, align 8
%39 = load double, ptr %7, align 8
%40 = fsub double %38, %39
%41 = call double @llvm.fmuladd.f64(double %37, double %40, double %36)
%42 = load ptr, ptr %12, align 8
store double %41, ptr %42, align 8
%43 = load ptr, ptr %12, align 8
%44 = load double, ptr %43, align 8
store double %44, ptr %30, align 8
%45 = load double, ptr %30, align 8
store double %45, ptr %29, align 8
store double 0.000000e+00, ptr %15, align 8
%46 = load ptr, ptr %11, align 8
%47 = load ptr, ptr %12, align 8
%48 = load double, ptr %47, align 8
%49 = call double %46(double noundef %48)
store double %49, ptr %19, align 8
%50 = load double, ptr %19, align 8
store double %50, ptr %18, align 8
%51 = load double, ptr %18, align 8
store double %51, ptr %17, align 8
br label %52
52: ; preds = %297, %6
%53 = load double, ptr %24, align 8
%54 = load double, ptr %25, align 8
%55 = fadd double %53, %54
%56 = fmul double 5.000000e-01, %55
store double %56, ptr %20, align 8
%57 = load double, ptr %9, align 8
%58 = load ptr, ptr %12, align 8
%59 = load double, ptr %58, align 8
%60 = call double @llvm.fabs.f64(double %59)
%61 = load double, ptr %10, align 8
%62 = call double @llvm.fmuladd.f64(double %57, double %60, double %61)
store double %62, ptr %27, align 8
%63 = load double, ptr %27, align 8
%64 = fmul double 2.000000e+00, %63
store double %64, ptr %26, align 8
%65 = load ptr, ptr %12, align 8
%66 = load double, ptr %65, align 8
%67 = load double, ptr %20, align 8
%68 = fsub double %66, %67
%69 = call double @llvm.fabs.f64(double %68)
%70 = load double, ptr %26, align 8
%71 = load double, ptr %25, align 8
%72 = load double, ptr %24, align 8
%73 = fsub double %71, %72
%74 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %73, double %70)
%75 = fcmp ole double %69, %74
br i1 %75, label %76, label %77
76: ; preds = %52
br label %298
77: ; preds = %52
store double 0.000000e+00, ptr %23, align 8
%78 = load double, ptr %23, align 8
store double %78, ptr %22, align 8
%79 = load double, ptr %22, align 8
store double %79, ptr %21, align 8
%80 = load double, ptr %27, align 8
%81 = load double, ptr %15, align 8
%82 = call double @llvm.fabs.f64(double %81)
%83 = fcmp olt double %80, %82
br i1 %83, label %84, label %128
84: ; preds = %77
%85 = load ptr, ptr %12, align 8
%86 = load double, ptr %85, align 8
%87 = load double, ptr %30, align 8
%88 = fsub double %86, %87
%89 = load double, ptr %19, align 8
%90 = load double, ptr %17, align 8
%91 = fsub double %89, %90
%92 = fmul double %88, %91
store double %92, ptr %23, align 8
%93 = load ptr, ptr %12, align 8
%94 = load double, ptr %93, align 8
%95 = load double, ptr %29, align 8
%96 = fsub double %94, %95
%97 = load double, ptr %19, align 8
%98 = load double, ptr %18, align 8
%99 = fsub double %97, %98
%100 = fmul double %96, %99
store double %100, ptr %22, align 8
%101 = load ptr, ptr %12, align 8
%102 = load double, ptr %101, align 8
%103 = load double, ptr %29, align 8
%104 = fsub double %102, %103
%105 = load double, ptr %22, align 8
%106 = load ptr, ptr %12, align 8
%107 = load double, ptr %106, align 8
%108 = load double, ptr %30, align 8
%109 = fsub double %107, %108
%110 = load double, ptr %23, align 8
%111 = fmul double %109, %110
%112 = fneg double %111
%113 = call double @llvm.fmuladd.f64(double %104, double %105, double %112)
store double %113, ptr %21, align 8
%114 = load double, ptr %22, align 8
%115 = load double, ptr %23, align 8
%116 = fsub double %114, %115
%117 = fmul double 2.000000e+00, %116
store double %117, ptr %22, align 8
%118 = load double, ptr %22, align 8
%119 = fcmp olt double 0.000000e+00, %118
br i1 %119, label %120, label %123
120: ; preds = %84
%121 = load double, ptr %21, align 8
%122 = fneg double %121
store double %122, ptr %21, align 8
br label %123
123: ; preds = %120, %84
%124 = load double, ptr %22, align 8
%125 = call double @llvm.fabs.f64(double %124)
store double %125, ptr %22, align 8
%126 = load double, ptr %15, align 8
store double %126, ptr %23, align 8
%127 = load double, ptr %14, align 8
store double %127, ptr %15, align 8
br label %128
128: ; preds = %123, %77
%129 = load double, ptr %21, align 8
%130 = call double @llvm.fabs.f64(double %129)
%131 = load double, ptr %22, align 8
%132 = fmul double 5.000000e-01, %131
%133 = load double, ptr %23, align 8
%134 = fmul double %132, %133
%135 = call double @llvm.fabs.f64(double %134)
%136 = fcmp olt double %130, %135
br i1 %136, label %137, label %186
137: ; preds = %128
%138 = load double, ptr %22, align 8
%139 = load double, ptr %24, align 8
%140 = load ptr, ptr %12, align 8
%141 = load double, ptr %140, align 8
%142 = fsub double %139, %141
%143 = fmul double %138, %142
%144 = load double, ptr %21, align 8
%145 = fcmp olt double %143, %144
br i1 %145, label %146, label %186
146: ; preds = %137
%147 = load double, ptr %21, align 8
%148 = load double, ptr %22, align 8
%149 = load double, ptr %25, align 8
%150 = load ptr, ptr %12, align 8
%151 = load double, ptr %150, align 8
%152 = fsub double %149, %151
%153 = fmul double %148, %152
%154 = fcmp olt double %147, %153
br i1 %154, label %155, label %186
155: ; preds = %146
%156 = load double, ptr %21, align 8
%157 = load double, ptr %22, align 8
%158 = fdiv double %156, %157
store double %158, ptr %14, align 8
%159 = load ptr, ptr %12, align 8
%160 = load double, ptr %159, align 8
%161 = load double, ptr %14, align 8
%162 = fadd double %160, %161
store double %162, ptr %28, align 8
%163 = load double, ptr %28, align 8
%164 = load double, ptr %24, align 8
%165 = fsub double %163, %164
%166 = load double, ptr %26, align 8
%167 = fcmp olt double %165, %166
br i1 %167, label %174, label %168
168: ; preds = %155
%169 = load double, ptr %25, align 8
%170 = load double, ptr %28, align 8
%171 = fsub double %169, %170
%172 = load double, ptr %26, align 8
%173 = fcmp olt double %171, %172
br i1 %173, label %174, label %185
174: ; preds = %168, %155
%175 = load ptr, ptr %12, align 8
%176 = load double, ptr %175, align 8
%177 = load double, ptr %20, align 8
%178 = fcmp olt double %176, %177
br i1 %178, label %179, label %181
179: ; preds = %174
%180 = load double, ptr %27, align 8
store double %180, ptr %14, align 8
br label %184
181: ; preds = %174
%182 = load double, ptr %27, align 8
%183 = fneg double %182
store double %183, ptr %14, align 8
br label %184
184: ; preds = %181, %179
br label %185
185: ; preds = %184, %168
br label %205
186: ; preds = %146, %137, %128
%187 = load ptr, ptr %12, align 8
%188 = load double, ptr %187, align 8
%189 = load double, ptr %20, align 8
%190 = fcmp olt double %188, %189
br i1 %190, label %191, label %196
191: ; preds = %186
%192 = load double, ptr %25, align 8
%193 = load ptr, ptr %12, align 8
%194 = load double, ptr %193, align 8
%195 = fsub double %192, %194
store double %195, ptr %15, align 8
br label %201
196: ; preds = %186
%197 = load double, ptr %24, align 8
%198 = load ptr, ptr %12, align 8
%199 = load double, ptr %198, align 8
%200 = fsub double %197, %199
store double %200, ptr %15, align 8
br label %201
201: ; preds = %196, %191
%202 = load double, ptr %13, align 8
%203 = load double, ptr %15, align 8
%204 = fmul double %202, %203
store double %204, ptr %14, align 8
br label %205
205: ; preds = %201, %185
%206 = load double, ptr %27, align 8
%207 = load double, ptr %14, align 8
%208 = call double @llvm.fabs.f64(double %207)
%209 = fcmp ole double %206, %208
br i1 %209, label %210, label %215
210: ; preds = %205
%211 = load ptr, ptr %12, align 8
%212 = load double, ptr %211, align 8
%213 = load double, ptr %14, align 8
%214 = fadd double %212, %213
store double %214, ptr %28, align 8
br label %229
215: ; preds = %205
%216 = load double, ptr %14, align 8
%217 = fcmp olt double 0.000000e+00, %216
br i1 %217, label %218, label %223
218: ; preds = %215
%219 = load ptr, ptr %12, align 8
%220 = load double, ptr %219, align 8
%221 = load double, ptr %27, align 8
%222 = fadd double %220, %221
store double %222, ptr %28, align 8
br label %228
223: ; preds = %215
%224 = load ptr, ptr %12, align 8
%225 = load double, ptr %224, align 8
%226 = load double, ptr %27, align 8
%227 = fsub double %225, %226
store double %227, ptr %28, align 8
br label %228
228: ; preds = %223, %218
br label %229
229: ; preds = %228, %210
%230 = load ptr, ptr %11, align 8
%231 = load double, ptr %28, align 8
%232 = call double %230(double noundef %231)
store double %232, ptr %16, align 8
%233 = load double, ptr %16, align 8
%234 = load double, ptr %19, align 8
%235 = fcmp ole double %233, %234
br i1 %235, label %236, label %256
236: ; preds = %229
%237 = load double, ptr %28, align 8
%238 = load ptr, ptr %12, align 8
%239 = load double, ptr %238, align 8
%240 = fcmp olt double %237, %239
br i1 %240, label %241, label %244
241: ; preds = %236
%242 = load ptr, ptr %12, align 8
%243 = load double, ptr %242, align 8
store double %243, ptr %25, align 8
br label %247
244: ; preds = %236
%245 = load ptr, ptr %12, align 8
%246 = load double, ptr %245, align 8
store double %246, ptr %24, align 8
br label %247
247: ; preds = %244, %241
%248 = load double, ptr %30, align 8
store double %248, ptr %29, align 8
%249 = load double, ptr %18, align 8
store double %249, ptr %17, align 8
%250 = load ptr, ptr %12, align 8
%251 = load double, ptr %250, align 8
store double %251, ptr %30, align 8
%252 = load double, ptr %19, align 8
store double %252, ptr %18, align 8
%253 = load double, ptr %28, align 8
%254 = load ptr, ptr %12, align 8
store double %253, ptr %254, align 8
%255 = load double, ptr %16, align 8
store double %255, ptr %19, align 8
br label %297
256: ; preds = %229
%257 = load double, ptr %28, align 8
%258 = load ptr, ptr %12, align 8
%259 = load double, ptr %258, align 8
%260 = fcmp olt double %257, %259
br i1 %260, label %261, label %263
261: ; preds = %256
%262 = load double, ptr %28, align 8
store double %262, ptr %24, align 8
br label %265
263: ; preds = %256
%264 = load double, ptr %28, align 8
store double %264, ptr %25, align 8
br label %265
265: ; preds = %263, %261
%266 = load double, ptr %16, align 8
%267 = load double, ptr %18, align 8
%268 = fcmp ole double %266, %267
br i1 %268, label %274, label %269
269: ; preds = %265
%270 = load double, ptr %30, align 8
%271 = load ptr, ptr %12, align 8
%272 = load double, ptr %271, align 8
%273 = fcmp oeq double %270, %272
br i1 %273, label %274, label %279
274: ; preds = %269, %265
%275 = load double, ptr %30, align 8
store double %275, ptr %29, align 8
%276 = load double, ptr %18, align 8
store double %276, ptr %17, align 8
%277 = load double, ptr %28, align 8
store double %277, ptr %30, align 8
%278 = load double, ptr %16, align 8
store double %278, ptr %18, align 8
br label %296
279: ; preds = %269
%280 = load double, ptr %16, align 8
%281 = load double, ptr %17, align 8
%282 = fcmp ole double %280, %281
br i1 %282, label %292, label %283
283: ; preds = %279
%284 = load double, ptr %29, align 8
%285 = load ptr, ptr %12, align 8
%286 = load double, ptr %285, align 8
%287 = fcmp oeq double %284, %286
br i1 %287, label %292, label %288
288: ; preds = %283
%289 = load double, ptr %29, align 8
%290 = load double, ptr %30, align 8
%291 = fcmp oeq double %289, %290
br i1 %291, label %292, label %295
292: ; preds = %288, %283, %279
%293 = load double, ptr %28, align 8
store double %293, ptr %29, align 8
%294 = load double, ptr %16, align 8
store double %294, ptr %17, align 8
br label %295
295: ; preds = %292, %288
br label %296
296: ; preds = %295, %274
br label %297
297: ; preds = %296, %247
br label %52
298: ; preds = %76
%299 = load double, ptr %19, align 8
ret double %299
}
; Function Attrs: nounwind
declare double @sqrt(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl9aj81hk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @local_min(double noundef %0, double noundef %1, double noundef %2, double noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca double, align 8
%21 = alloca double, align 8
%22 = alloca double, align 8
%23 = alloca double, align 8
%24 = alloca double, align 8
%25 = alloca double, align 8
%26 = alloca double, align 8
%27 = alloca double, align 8
%28 = alloca double, align 8
%29 = alloca double, align 8
%30 = alloca double, align 8
store double %0, ptr %7, align 8
store double %1, ptr %8, align 8
store double %2, ptr %9, align 8
store double %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%31 = call double @sqrt(double noundef 5.000000e+00) #3
%32 = fsub double 3.000000e+00, %31
%33 = fmul double 5.000000e-01, %32
store double %33, ptr %13, align 8
%34 = load double, ptr %7, align 8
store double %34, ptr %24, align 8
%35 = load double, ptr %8, align 8
store double %35, ptr %25, align 8
%36 = load double, ptr %24, align 8
%37 = load double, ptr %13, align 8
%38 = load double, ptr %8, align 8
%39 = load double, ptr %7, align 8
%40 = fsub double %38, %39
%41 = call double @llvm.fmuladd.f64(double %37, double %40, double %36)
%42 = load ptr, ptr %12, align 8
store double %41, ptr %42, align 8
%43 = load ptr, ptr %12, align 8
%44 = load double, ptr %43, align 8
store double %44, ptr %30, align 8
%45 = load double, ptr %30, align 8
store double %45, ptr %29, align 8
store double 0.000000e+00, ptr %15, align 8
%46 = load ptr, ptr %11, align 8
%47 = load ptr, ptr %12, align 8
%48 = load double, ptr %47, align 8
%49 = call double %46(double noundef %48)
store double %49, ptr %19, align 8
%50 = load double, ptr %19, align 8
store double %50, ptr %18, align 8
%51 = load double, ptr %18, align 8
store double %51, ptr %17, align 8
br label %52
52: ; preds = %297, %6
%53 = load double, ptr %24, align 8
%54 = load double, ptr %25, align 8
%55 = fadd double %53, %54
%56 = fmul double 5.000000e-01, %55
store double %56, ptr %20, align 8
%57 = load double, ptr %9, align 8
%58 = load ptr, ptr %12, align 8
%59 = load double, ptr %58, align 8
%60 = call double @llvm.fabs.f64(double %59)
%61 = load double, ptr %10, align 8
%62 = call double @llvm.fmuladd.f64(double %57, double %60, double %61)
store double %62, ptr %27, align 8
%63 = load double, ptr %27, align 8
%64 = fmul double 2.000000e+00, %63
store double %64, ptr %26, align 8
%65 = load ptr, ptr %12, align 8
%66 = load double, ptr %65, align 8
%67 = load double, ptr %20, align 8
%68 = fsub double %66, %67
%69 = call double @llvm.fabs.f64(double %68)
%70 = load double, ptr %26, align 8
%71 = load double, ptr %25, align 8
%72 = load double, ptr %24, align 8
%73 = fsub double %71, %72
%74 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %73, double %70)
%75 = fcmp ole double %69, %74
br i1 %75, label %76, label %77
76: ; preds = %52
br label %298
77: ; preds = %52
store double 0.000000e+00, ptr %23, align 8
%78 = load double, ptr %23, align 8
store double %78, ptr %22, align 8
%79 = load double, ptr %22, align 8
store double %79, ptr %21, align 8
%80 = load double, ptr %27, align 8
%81 = load double, ptr %15, align 8
%82 = call double @llvm.fabs.f64(double %81)
%83 = fcmp olt double %80, %82
br i1 %83, label %84, label %128
84: ; preds = %77
%85 = load ptr, ptr %12, align 8
%86 = load double, ptr %85, align 8
%87 = load double, ptr %30, align 8
%88 = fsub double %86, %87
%89 = load double, ptr %19, align 8
%90 = load double, ptr %17, align 8
%91 = fsub double %89, %90
%92 = fmul double %88, %91
store double %92, ptr %23, align 8
%93 = load ptr, ptr %12, align 8
%94 = load double, ptr %93, align 8
%95 = load double, ptr %29, align 8
%96 = fsub double %94, %95
%97 = load double, ptr %19, align 8
%98 = load double, ptr %18, align 8
%99 = fsub double %97, %98
%100 = fmul double %96, %99
store double %100, ptr %22, align 8
%101 = load ptr, ptr %12, align 8
%102 = load double, ptr %101, align 8
%103 = load double, ptr %29, align 8
%104 = fsub double %102, %103
%105 = load double, ptr %22, align 8
%106 = load ptr, ptr %12, align 8
%107 = load double, ptr %106, align 8
%108 = load double, ptr %30, align 8
%109 = fsub double %107, %108
%110 = load double, ptr %23, align 8
%111 = fmul double %109, %110
%112 = fneg double %111
%113 = call double @llvm.fmuladd.f64(double %104, double %105, double %112)
store double %113, ptr %21, align 8
%114 = load double, ptr %22, align 8
%115 = load double, ptr %23, align 8
%116 = fsub double %114, %115
%117 = fmul double 2.000000e+00, %116
store double %117, ptr %22, align 8
%118 = load double, ptr %22, align 8
%119 = fcmp olt double 0.000000e+00, %118
br i1 %119, label %120, label %123
120: ; preds = %84
%121 = load double, ptr %21, align 8
%122 = fneg double %121
store double %122, ptr %21, align 8
br label %123
123: ; preds = %120, %84
%124 = load double, ptr %22, align 8
%125 = call double @llvm.fabs.f64(double %124)
store double %125, ptr %22, align 8
%126 = load double, ptr %15, align 8
store double %126, ptr %23, align 8
%127 = load double, ptr %14, align 8
store double %127, ptr %15, align 8
br label %128
128: ; preds = %123, %77
%129 = load double, ptr %21, align 8
%130 = call double @llvm.fabs.f64(double %129)
%131 = load double, ptr %22, align 8
%132 = fmul double 5.000000e-01, %131
%133 = load double, ptr %23, align 8
%134 = fmul double %132, %133
%135 = call double @llvm.fabs.f64(double %134)
%136 = fcmp olt double %130, %135
br i1 %136, label %137, label %186
137: ; preds = %128
%138 = load double, ptr %22, align 8
%139 = load double, ptr %24, align 8
%140 = load ptr, ptr %12, align 8
%141 = load double, ptr %140, align 8
%142 = fsub double %139, %141
%143 = fmul double %138, %142
%144 = load double, ptr %21, align 8
%145 = fcmp olt double %143, %144
br i1 %145, label %146, label %186
146: ; preds = %137
%147 = load double, ptr %21, align 8
%148 = load double, ptr %22, align 8
%149 = load double, ptr %25, align 8
%150 = load ptr, ptr %12, align 8
%151 = load double, ptr %150, align 8
%152 = fsub double %149, %151
%153 = fmul double %148, %152
%154 = fcmp olt double %147, %153
br i1 %154, label %155, label %186
155: ; preds = %146
%156 = load double, ptr %21, align 8
%157 = load double, ptr %22, align 8
%158 = fdiv double %156, %157
store double %158, ptr %14, align 8
%159 = load ptr, ptr %12, align 8
%160 = load double, ptr %159, align 8
%161 = load double, ptr %14, align 8
%162 = fadd double %160, %161
store double %162, ptr %28, align 8
%163 = load double, ptr %28, align 8
%164 = load double, ptr %24, align 8
%165 = fsub double %163, %164
%166 = load double, ptr %26, align 8
%167 = fcmp olt double %165, %166
br i1 %167, label %174, label %168
168: ; preds = %155
%169 = load double, ptr %25, align 8
%170 = load double, ptr %28, align 8
%171 = fsub double %169, %170
%172 = load double, ptr %26, align 8
%173 = fcmp olt double %171, %172
br i1 %173, label %174, label %185
174: ; preds = %168, %155
%175 = load ptr, ptr %12, align 8
%176 = load double, ptr %175, align 8
%177 = load double, ptr %20, align 8
%178 = fcmp olt double %176, %177
br i1 %178, label %179, label %181
179: ; preds = %174
%180 = load double, ptr %27, align 8
store double %180, ptr %14, align 8
br label %184
181: ; preds = %174
%182 = load double, ptr %27, align 8
%183 = fneg double %182
store double %183, ptr %14, align 8
br label %184
184: ; preds = %181, %179
br label %185
185: ; preds = %184, %168
br label %205
186: ; preds = %146, %137, %128
%187 = load ptr, ptr %12, align 8
%188 = load double, ptr %187, align 8
%189 = load double, ptr %20, align 8
%190 = fcmp olt double %188, %189
br i1 %190, label %191, label %196
191: ; preds = %186
%192 = load double, ptr %25, align 8
%193 = load ptr, ptr %12, align 8
%194 = load double, ptr %193, align 8
%195 = fsub double %192, %194
store double %195, ptr %15, align 8
br label %201
196: ; preds = %186
%197 = load double, ptr %24, align 8
%198 = load ptr, ptr %12, align 8
%199 = load double, ptr %198, align 8
%200 = fsub double %197, %199
store double %200, ptr %15, align 8
br label %201
201: ; preds = %196, %191
%202 = load double, ptr %13, align 8
%203 = load double, ptr %15, align 8
%204 = fmul double %202, %203
store double %204, ptr %14, align 8
br label %205
205: ; preds = %201, %185
%206 = load double, ptr %27, align 8
%207 = load double, ptr %14, align 8
%208 = call double @llvm.fabs.f64(double %207)
%209 = fcmp ole double %206, %208
br i1 %209, label %210, label %215
210: ; preds = %205
%211 = load ptr, ptr %12, align 8
%212 = load double, ptr %211, align 8
%213 = load double, ptr %14, align 8
%214 = fadd double %212, %213
store double %214, ptr %28, align 8
br label %229
215: ; preds = %205
%216 = load double, ptr %14, align 8
%217 = fcmp olt double 0.000000e+00, %216
br i1 %217, label %218, label %223
218: ; preds = %215
%219 = load ptr, ptr %12, align 8
%220 = load double, ptr %219, align 8
%221 = load double, ptr %27, align 8
%222 = fadd double %220, %221
store double %222, ptr %28, align 8
br label %228
223: ; preds = %215
%224 = load ptr, ptr %12, align 8
%225 = load double, ptr %224, align 8
%226 = load double, ptr %27, align 8
%227 = fsub double %225, %226
store double %227, ptr %28, align 8
br label %228
228: ; preds = %223, %218
br label %229
229: ; preds = %228, %210
%230 = load ptr, ptr %11, align 8
%231 = load double, ptr %28, align 8
%232 = call double %230(double noundef %231)
store double %232, ptr %16, align 8
%233 = load double, ptr %16, align 8
%234 = load double, ptr %19, align 8
%235 = fcmp ole double %233, %234
br i1 %235, label %236, label %256
236: ; preds = %229
%237 = load double, ptr %28, align 8
%238 = load ptr, ptr %12, align 8
%239 = load double, ptr %238, align 8
%240 = fcmp olt double %237, %239
br i1 %240, label %241, label %244
241: ; preds = %236
%242 = load ptr, ptr %12, align 8
%243 = load double, ptr %242, align 8
store double %243, ptr %25, align 8
br label %247
244: ; preds = %236
%245 = load ptr, ptr %12, align 8
%246 = load double, ptr %245, align 8
store double %246, ptr %24, align 8
br label %247
247: ; preds = %244, %241
%248 = load double, ptr %30, align 8
store double %248, ptr %29, align 8
%249 = load double, ptr %18, align 8
store double %249, ptr %17, align 8
%250 = load ptr, ptr %12, align 8
%251 = load double, ptr %250, align 8
store double %251, ptr %30, align 8
%252 = load double, ptr %19, align 8
store double %252, ptr %18, align 8
%253 = load double, ptr %28, align 8
%254 = load ptr, ptr %12, align 8
store double %253, ptr %254, align 8
%255 = load double, ptr %16, align 8
store double %255, ptr %19, align 8
br label %297
256: ; preds = %229
%257 = load double, ptr %28, align 8
%258 = load ptr, ptr %12, align 8
%259 = load double, ptr %258, align 8
%260 = fcmp olt double %257, %259
br i1 %260, label %261, label %263
261: ; preds = %256
%262 = load double, ptr %28, align 8
store double %262, ptr %24, align 8
br label %265
263: ; preds = %256
%264 = load double, ptr %28, align 8
store double %264, ptr %25, align 8
br label %265
265: ; preds = %263, %261
%266 = load double, ptr %16, align 8
%267 = load double, ptr %18, align 8
%268 = fcmp ole double %266, %267
br i1 %268, label %274, label %269
269: ; preds = %265
%270 = load double, ptr %30, align 8
%271 = load ptr, ptr %12, align 8
%272 = load double, ptr %271, align 8
%273 = fcmp oeq double %270, %272
br i1 %273, label %274, label %279
274: ; preds = %269, %265
%275 = load double, ptr %30, align 8
store double %275, ptr %29, align 8
%276 = load double, ptr %18, align 8
store double %276, ptr %17, align 8
%277 = load double, ptr %28, align 8
store double %277, ptr %30, align 8
%278 = load double, ptr %16, align 8
store double %278, ptr %18, align 8
br label %296
279: ; preds = %269
%280 = load double, ptr %16, align 8
%281 = load double, ptr %17, align 8
%282 = fcmp ole double %280, %281
br i1 %282, label %292, label %283
283: ; preds = %279
%284 = load double, ptr %29, align 8
%285 = load ptr, ptr %12, align 8
%286 = load double, ptr %285, align 8
%287 = fcmp oeq double %284, %286
br i1 %287, label %292, label %288
288: ; preds = %283
%289 = load double, ptr %29, align 8
%290 = load double, ptr %30, align 8
%291 = fcmp oeq double %289, %290
br i1 %291, label %292, label %295
292: ; preds = %288, %283, %279
%293 = load double, ptr %28, align 8
store double %293, ptr %29, align 8
%294 = load double, ptr %16, align 8
store double %294, ptr %17, align 8
br label %295
295: ; preds = %292, %288
br label %296
296: ; preds = %295, %274
br label %297
297: ; preds = %296, %247
br label %52
298: ; preds = %76
%299 = load double, ptr %19, align 8
ret double %299
}
; Function Attrs: nounwind
declare double @sqrt(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_hxfrfxs.c'
source_filename = "/tmp/tmp_hxfrfxs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%02x\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 i32 @print_all_byte(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%8 = load ptr, ptr %4, align 8
store ptr %8, ptr %6, align 8
store i32 0, ptr %7, align 4
%9 = load ptr, ptr %6, 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 %29
12: ; preds = %2
br label %13
13: ; preds = %17, %12
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %5, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %26
17: ; preds = %13
%18 = load ptr, ptr %6, align 8
%19 = load i8, ptr %18, align 1
%20 = zext i8 %19 to i32
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %20)
%22 = load ptr, ptr %6, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 1
store ptr %23, ptr %6, align 8
%24 = load i32, ptr %7, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %7, align 4
br label %13, !llvm.loop !6
26: ; preds = %13
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%28 = load i32, ptr %7, align 4
store i32 %28, ptr %3, align 4
br label %29
29: ; preds = %26, %11
%30 = load i32, ptr %3, align 4
ret i32 %30
}
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/tmp_hxfrfxs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%02x\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 i32 @print_all_byte(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%8 = load ptr, ptr %4, align 8
store ptr %8, ptr %6, align 8
store i32 0, ptr %7, align 4
%9 = load ptr, ptr %6, 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 %31
12: ; preds = %2
%13 = load i32, ptr %7, align 4
%14 = load i32, ptr %5, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %28
.lr.ph: ; preds = %12
br label %16
16: ; preds = %.lr.ph, %16
%17 = load ptr, ptr %6, align 8
%18 = load i8, ptr %17, align 1
%19 = zext i8 %18 to i32
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %19)
%21 = load ptr, ptr %6, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %6, align 8
%23 = load i32, ptr %7, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %7, align 4
%25 = load i32, ptr %7, align 4
%26 = load i32, ptr %5, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %28
28: ; preds = %._crit_edge, %12
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%30 = load i32, ptr %7, align 4
store i32 %30, ptr %3, align 4
br label %31
31: ; preds = %28, %11
%32 = load i32, ptr %3, align 4
ret i32 %32
}
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/tmplp91wh7h.c'
source_filename = "/tmp/tmplp91wh7h.c"
target datalayout = "e-m:e-p270: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/tmplp91wh7h.c"
target datalayout = "e-m:e-p270: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/tmpjqbdv1am.c'
source_filename = "/tmp/tmpjqbdv1am.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@perfect_square.initialized = internal global i32 0, align 4
@perfect_square.sq_root = internal global [100000 x i32] zeroinitializer, align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @perfect_square(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = load i32, ptr %3, align 4
%7 = icmp ult i32 0, %6
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = load i32, ptr %3, align 4
%10 = icmp ult i32 %9, 10000
br label %11
11: ; preds = %8, %2
%12 = phi i1 [ false, %2 ], [ %10, %8 ]
%13 = zext i1 %12 to i32
%14 = call i32 @assert(i32 noundef %13)
%15 = load i32, ptr @perfect_square.initialized, align 4
%16 = icmp ne i32 %15, 0
br i1 %16, label %33, label %17
17: ; preds = %11
%18 = call i32 @memset(ptr noundef @perfect_square.sq_root, i32 noundef 0, i32 noundef 400000)
store i64 1, ptr %5, align 8
br label %19
19: ; preds = %29, %17
%20 = load i64, ptr %5, align 8
%21 = icmp ult i64 %20, 100
br i1 %21, label %22, label %32
22: ; preds = %19
%23 = load i64, ptr %5, align 8
%24 = trunc i64 %23 to i32
%25 = load i64, ptr %5, align 8
%26 = load i64, ptr %5, align 8
%27 = mul i64 %25, %26
%28 = getelementptr inbounds [100000 x i32], ptr @perfect_square.sq_root, i64 0, i64 %27
store i32 %24, ptr %28, align 4
br label %29
29: ; preds = %22
%30 = load i64, ptr %5, align 8
%31 = add i64 %30, 1
store i64 %31, ptr %5, align 8
br label %19, !llvm.loop !6
32: ; preds = %19
store i32 1, ptr @perfect_square.initialized, align 4
br label %33
33: ; preds = %32, %11
%34 = load i32, ptr %3, align 4
%35 = zext i32 %34 to i64
%36 = getelementptr inbounds [100000 x i32], ptr @perfect_square.sq_root, i64 0, i64 %35
%37 = load i32, ptr %36, align 4
%38 = load ptr, ptr %4, align 8
store i32 %37, ptr %38, align 4
%39 = load ptr, ptr %4, align 8
%40 = load i32, ptr %39, align 4
%41 = icmp ne i32 %40, 0
%42 = zext i1 %41 to i32
ret i32 %42
}
declare i32 @assert(i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjqbdv1am.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@perfect_square.initialized = internal global i32 0, align 4
@perfect_square.sq_root = internal global [100000 x i32] zeroinitializer, align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @perfect_square(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = load i32, ptr %3, align 4
%7 = icmp ult i32 0, %6
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = load i32, ptr %3, align 4
%10 = icmp ult i32 %9, 10000
br label %11
11: ; preds = %8, %2
%12 = phi i1 [ false, %2 ], [ %10, %8 ]
%13 = zext i1 %12 to i32
%14 = call i32 @assert(i32 noundef %13)
%15 = load i32, ptr @perfect_square.initialized, align 4
%16 = icmp ne i32 %15, 0
br i1 %16, label %34, label %17
17: ; preds = %11
%18 = call i32 @memset(ptr noundef @perfect_square.sq_root, i32 noundef 0, i32 noundef 400000)
store i64 1, ptr %5, align 8
%19 = load i64, ptr %5, align 8
%20 = icmp ult i64 %19, 100
br i1 %20, label %.lr.ph, label %33
.lr.ph: ; preds = %17
br label %21
21: ; preds = %.lr.ph, %28
%22 = load i64, ptr %5, align 8
%23 = trunc i64 %22 to i32
%24 = load i64, ptr %5, align 8
%25 = load i64, ptr %5, align 8
%26 = mul i64 %24, %25
%27 = getelementptr inbounds [100000 x i32], ptr @perfect_square.sq_root, i64 0, i64 %26
store i32 %23, ptr %27, align 4
br label %28
28: ; preds = %21
%29 = load i64, ptr %5, align 8
%30 = add i64 %29, 1
store i64 %30, ptr %5, align 8
%31 = load i64, ptr %5, align 8
%32 = icmp ult i64 %31, 100
br i1 %32, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %33
33: ; preds = %._crit_edge, %17
store i32 1, ptr @perfect_square.initialized, align 4
br label %34
34: ; preds = %33, %11
%35 = load i32, ptr %3, align 4
%36 = zext i32 %35 to i64
%37 = getelementptr inbounds [100000 x i32], ptr @perfect_square.sq_root, i64 0, i64 %36
%38 = load i32, ptr %37, align 4
%39 = load ptr, ptr %4, align 8
store i32 %38, ptr %39, align 4
%40 = load ptr, ptr %4, align 8
%41 = load i32, ptr %40, align 4
%42 = icmp ne i32 %41, 0
%43 = zext i1 %42 to i32
ret i32 %43
}
declare i32 @assert(i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpt6uoukd_.c'
source_filename = "/tmp/tmpt6uoukd_.c"
target datalayout = "e-m:e-p270: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/tmpt6uoukd_.c"
target datalayout = "e-m:e-p270: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/tmp9is9ravf.c'
source_filename = "/tmp/tmp9is9ravf.c"
target datalayout = "e-m:e-p270: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/tmp9is9ravf.c"
target datalayout = "e-m:e-p270: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/tmp31rcxoe7.c'
source_filename = "/tmp/tmp31rcxoe7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strnstr(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%10 = load ptr, ptr %6, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %12, label %16
12: ; preds = %3
%13 = load ptr, ptr %6, align 8
%14 = load i8, ptr %13, align 1
%15 = icmp ne i8 %14, 0
br i1 %15, label %18, label %16
16: ; preds = %12, %3
%17 = load ptr, ptr %5, align 8
store ptr %17, ptr %4, align 8
br label %45
18: ; preds = %12
%19 = load ptr, ptr %6, align 8
%20 = call i64 @strlen(ptr noundef %19)
store i64 %20, ptr %8, align 8
%21 = load i64, ptr %7, align 8
%22 = load i64, ptr %8, align 8
%23 = icmp ult i64 %21, %22
br i1 %23, label %24, label %25
24: ; preds = %18
store ptr null, ptr %4, align 8
br label %45
25: ; preds = %18
%26 = load i64, ptr %7, align 8
%27 = load i64, ptr %8, align 8
%28 = sub i64 %26, %27
store i64 %28, ptr %9, align 8
br label %29
29: ; preds = %40, %25
%30 = load ptr, ptr %5, align 8
%31 = load ptr, ptr %6, align 8
%32 = load i64, ptr %8, align 8
%33 = call i64 @memcmp(ptr noundef %30, ptr noundef %31, i64 noundef %32)
%34 = icmp ne i64 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %29
%36 = load ptr, ptr %5, align 8
store ptr %36, ptr %4, align 8
br label %45
37: ; preds = %29
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds i8, ptr %38, i32 1
store ptr %39, ptr %5, align 8
br label %40
40: ; preds = %37
%41 = load i64, ptr %9, align 8
%42 = add i64 %41, -1
store i64 %42, ptr %9, align 8
%43 = icmp ne i64 %41, 0
br i1 %43, label %29, label %44, !llvm.loop !6
44: ; preds = %40
store ptr null, ptr %4, align 8
br label %45
45: ; preds = %44, %35, %24, %16
%46 = load ptr, ptr %4, align 8
ret ptr %46
}
declare i64 @strlen(ptr noundef) #1
declare i64 @memcmp(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp31rcxoe7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strnstr(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%10 = load ptr, ptr %6, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %12, label %16
12: ; preds = %3
%13 = load ptr, ptr %6, align 8
%14 = load i8, ptr %13, align 1
%15 = icmp ne i8 %14, 0
br i1 %15, label %18, label %16
16: ; preds = %12, %3
%17 = load ptr, ptr %5, align 8
store ptr %17, ptr %4, align 8
br label %45
18: ; preds = %12
%19 = load ptr, ptr %6, align 8
%20 = call i64 @strlen(ptr noundef %19)
store i64 %20, ptr %8, align 8
%21 = load i64, ptr %7, align 8
%22 = load i64, ptr %8, align 8
%23 = icmp ult i64 %21, %22
br i1 %23, label %24, label %25
24: ; preds = %18
store ptr null, ptr %4, align 8
br label %45
25: ; preds = %18
%26 = load i64, ptr %7, align 8
%27 = load i64, ptr %8, align 8
%28 = sub i64 %26, %27
store i64 %28, ptr %9, align 8
br label %29
29: ; preds = %40, %25
%30 = load ptr, ptr %5, align 8
%31 = load ptr, ptr %6, align 8
%32 = load i64, ptr %8, align 8
%33 = call i64 @memcmp(ptr noundef %30, ptr noundef %31, i64 noundef %32)
%34 = icmp ne i64 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %29
%36 = load ptr, ptr %5, align 8
store ptr %36, ptr %4, align 8
br label %45
37: ; preds = %29
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds i8, ptr %38, i32 1
store ptr %39, ptr %5, align 8
br label %40
40: ; preds = %37
%41 = load i64, ptr %9, align 8
%42 = add i64 %41, -1
store i64 %42, ptr %9, align 8
%43 = icmp ne i64 %41, 0
br i1 %43, label %29, label %44, !llvm.loop !6
44: ; preds = %40
store ptr null, ptr %4, align 8
br label %45
45: ; preds = %44, %35, %24, %16
%46 = load ptr, ptr %4, align 8
ret ptr %46
}
declare i64 @strlen(ptr noundef) #1
declare i64 @memcmp(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp159y0en9.c'
source_filename = "/tmp/tmp159y0en9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @close_dir(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 @closedir(ptr noundef %3)
ret void
}
declare i32 @closedir(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp159y0en9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @close_dir(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 @closedir(ptr noundef %3)
ret void
}
declare i32 @closedir(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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.